window.__require = function e(t, o, n) {
function i(r, c) {
if (!o[r]) {
if (!t[r]) {
var s = r.split("/");
s = s[s.length - 1];
if (!t[s]) {
var l = "function" == typeof __require && __require;
if (!c && l) return l(s, !0);
if (a) return a(s, !0);
throw new Error("Cannot find module '" + r + "'");
}
r = s;
}
var d = o[r] = {
exports: {}
};
t[r][0].call(d.exports, function(e) {
return i(t[r][1][e] || e);
}, d, d.exports, e, t, o, n);
}
return o[r].exports;
}
for (var a = "function" == typeof __require && __require, r = 0; r < n.length; r++) i(n[r]);
return i;
}({
AccountAuthUI: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "98fe0AkhlVB66nKaD17bL4h", "AccountAuthUI");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../Models/Player"), c = e("../Shared/AddressManager"), s = e("../Shared/AudioManager"), l = e("../Shared/Global"), d = e("../Shared/NetworkLogic"), u = e("../Shared/UIManager"), p = e("LanguageData"), h = cc._decorator, f = h.ccclass, g = h.property, y = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.layout = void 0;
t.labelRealNameNode = void 0;
t.labelRealName = void 0;
t.labelPhoneNode = void 0;
t.labelPhone = void 0;
t.labelBankNode = void 0;
t.labelBank = void 0;
t.ebRealName = void 0;
t.ebPhoneNumber = void 0;
t.ebCode = void 0;
t.ebBank = void 0;
t.ebBankAddress = void 0;
t.displayCardNode = void 0;
t.displayCardLabel = void 0;
t.bankNode = void 0;
t.bankAddress = void 0;
t.nodeTemplateBank = void 0;
t.lytBankList = void 0;
t.bankListNode = void 0;
t.lbBankName = void 0;
t.confirmationNode = void 0;
t.spCode = void 0;
t._codeId = void 0;
t._bankID = null;
t._isNoBank = !0;
return t;
}
t.prototype.init = function() {
var e = this, t = r.default.getPy("bankNo"), o = r.default.getPy("realName"), n = r.default.getPy("bankname"), i = r.default.getPy("phone");
this.nodeTemplateBank.parent = null;
this.lbBankName.string = "";
this.bankListNode.active = !1;
if ("" === t || void 0 === t) {
this.displayCardNode.active = !1;
this.labelRealNameNode.active = !1;
this.labelBankNode.active = !1;
this.ebRealName.node.active = !0;
this.ebBank.node.active = !0;
this.bankNode.active = !0;
this.bankAddress.active = !0;
d.default.bankList(0, function(t) {
e._createBankList(t);
});
} else {
this.displayCardNode.active = !0;
this.displayCardLabel.string = "" + t;
this.labelRealNameNode.active = !0;
this.labelRealName.string = o;
this.ebRealName.string = o;
this.labelBankNode.active = !0;
this.labelBank.string = n;
this.ebRealName.node.active = !1;
this.ebBank.node.active = !1;
this.bankNode.active = !1;
this.bankAddress.active = !1;
this._isNoBank = !1;
}
if ("" === i || void 0 === i) {
this.ebPhoneNumber.node.active = !0;
this.labelPhoneNode.active = !1;
} else {
this.ebPhoneNumber.node.active = !1;
this.labelPhoneNode.active = !0;
this.labelPhone.string = i;
}
this.ebRealName.string = o;
this.ebPhoneNumber.string = i;
this._refreshCodeImage();
this.layout.updateLayout();
};
t.prototype.onBtnClick = function(e, t) {
switch (t) {
case "confirmation":
this._confirmation();
break;

case "cancelConfirm":
this._cancelConfirm();
break;

case "submit":
this._submit();
break;

case "code":
this._refreshCodeImage();
break;

case "close":
s.default.playSound("close");
this.node.destroy();
break;

case "bankItem":
this._bankID = e.target.bankCfg.id;
this.lbBankName.string = e.target.bankCfg.text;
this.bankListNode.active = !1;
break;

case "bankList":
this.layout.enabled = !1;
this.bankNode.zIndex = 100;
this.bankListNode.active = !this.bankListNode.active;
}
};
t.prototype._confirmation = function() {
this._inputValidation() && (this.confirmationNode.active = !0);
};
t.prototype._cancelConfirm = function() {
this.confirmationNode.active = !1;
};
t.prototype._submit = function() {
var e = this;
if (this._inputValidation()) {
var t = null;
this._isNoBank && (t = [ {
bankId: this._bankID,
bankNo: this.ebBank.string,
bankname: this.lbBankName.string,
openbankBranch: this.ebBankAddress.string,
username: this.ebRealName.string,
type: 0
} ]);
var o = {
code: this.ebCode.string,
codeId: 0 === this._codeId ? "" : this._codeId.toString(),
deviceFlag: "",
deviceModel: cc.sys.isMobile ? jsb.device.getDeviceModel() : "",
deviceType: cc.sys.os === cc.sys.OS_ANDROID ? "1" : "2",
phone: this.ebPhoneNumber.string,
realName: this.ebRealName.string,
userBankList: t,
userId: r.default.getPy("userID")
};
u.default.showLoadingUI();
d.default.getIdentityVerifyStatus(o, function() {
u.default.hideLoadingUI();
u.default.showToastUI(p.t("BasicsJS.authSuccess"), l.Global.ToastType.OK);
e.node.destroy();
}, function(t) {
e.confirmationNode.active = !1;
u.default.hideLoadingUI();
var o = "ErrorCode." + t.code, n = p.t(o);
o === n ? u.default.showToastUI(t.msg, l.Global.ToastType.Error) : u.default.showToastUI(n, l.Global.ToastType.Error);
e._refreshCodeImage();
});
}
};
t.prototype._refreshCodeImage = function() {
this._codeId = Math.floor(1e3 * Math.random());
var e = c.default.getServerAdress() + "/api/user/generator-code?code_id=" + this._codeId.toString();
cc.assetManager.loadRemote(e, {
ext: ".png"
}, function(e, t) {
if (!e && this.node) {
var o = new cc.SpriteFrame(t);
this.spCode.spriteFrame = null;
this.spCode.spriteFrame = o;
}
}.bind(this));
};
t.prototype._inputValidation = function() {
if (0 === this.ebRealName.string.length) {
u.default.showToastUI(p.t("AccountAuthUI.name_validation"), l.Global.ToastType.Warnning);
return !1;
}
if (0 === this.ebPhoneNumber.string.length) {
u.default.showToastUI(p.t("AccountAuthUI.phone_validation"), l.Global.ToastType.Warnning);
return !1;
}
if (0 === this.ebCode.string.length) {
u.default.showToastUI(p.t("login_text.vfy_pro"), l.Global.ToastType.Warnning);
return !1;
}
if (this._isNoBank) {
if (0 === this.ebBank.string.length) {
u.default.showToastUI(p.t("AccountAuthUI.bank_no_validation"), l.Global.ToastType.Warnning);
return !1;
}
if (0 === this.ebBankAddress.string.length) {
u.default.showToastUI(p.t("AccountAuthUI.bank_address_validation"), l.Global.ToastType.Warnning);
return !1;
}
if (void 0 === this._bankID) {
u.default.showToastUI(p.t("AccountAuthUI.bank_id_validation"), l.Global.ToastType.Warnning);
return !1;
}
}
return !0;
};
t.prototype._createBankList = function(e) {
var t = this;
e.filter(function(e) {
if ("0" === e.type || 0 === e.type) return !0;
}).forEach(function(e) {
var o = cc.instantiate(t.nodeTemplateBank);
o.parent = t.lytBankList.node;
o.getChildByName("name").getComponent(cc.Label).string = e.text;
o.bankCfg = e;
});
};
t.prototype.onDestroy = function() {
this.nodeTemplateBank.destroy();
};
a([ g(cc.Layout) ], t.prototype, "layout", void 0);
a([ g(cc.Node) ], t.prototype, "labelRealNameNode", void 0);
a([ g(cc.Label) ], t.prototype, "labelRealName", void 0);
a([ g(cc.Node) ], t.prototype, "labelPhoneNode", void 0);
a([ g(cc.Label) ], t.prototype, "labelPhone", void 0);
a([ g(cc.Node) ], t.prototype, "labelBankNode", void 0);
a([ g(cc.Label) ], t.prototype, "labelBank", void 0);
a([ g(cc.EditBox) ], t.prototype, "ebRealName", void 0);
a([ g(cc.EditBox) ], t.prototype, "ebPhoneNumber", void 0);
a([ g(cc.EditBox) ], t.prototype, "ebCode", void 0);
a([ g(cc.EditBox) ], t.prototype, "ebBank", void 0);
a([ g(cc.EditBox) ], t.prototype, "ebBankAddress", void 0);
a([ g(cc.Node) ], t.prototype, "displayCardNode", void 0);
a([ g(cc.Label) ], t.prototype, "displayCardLabel", void 0);
a([ g(cc.Node) ], t.prototype, "bankNode", void 0);
a([ g(cc.Node) ], t.prototype, "bankAddress", void 0);
a([ g(cc.Node) ], t.prototype, "nodeTemplateBank", void 0);
a([ g(cc.Layout) ], t.prototype, "lytBankList", void 0);
a([ g(cc.Node) ], t.prototype, "bankListNode", void 0);
a([ g(cc.Label) ], t.prototype, "lbBankName", void 0);
a([ g(cc.Node) ], t.prototype, "confirmationNode", void 0);
a([ g(cc.Sprite) ], t.prototype, "spCode", void 0);
return a([ f ], t);
}(cc.Component);
o.default = y;
cc._RF.pop();
}, {
"../Models/Player": "Player",
"../Shared/AddressManager": "AddressManager",
"../Shared/AudioManager": "AudioManager",
"../Shared/Global": "Global",
"../Shared/NetworkLogic": "NetworkLogic",
"../Shared/UIManager": "UIManager",
LanguageData: "LanguageData"
} ],
ActivityAndTask: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "d364eEzF8lLhqumRRTmoZbT", "ActivityAndTask");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
}, r = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, c = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var s = e("../../Shared/AudioManager"), l = e("../../Models/Player"), d = e("../../Shared/Utils"), u = e("../../Shared/Global"), p = e("../../Shared/PopWindowManager"), h = e("../TaskLayer/TaskData"), f = e("./ActivityData"), g = e("../../Shared/EnterSoundManager"), y = e("../../Shared/NetworkLogic"), m = e("../../Shared/UIManager"), v = e("../../Models/NoticeData"), b = e("./ActivityApplyStatus"), _ = e("LanguageData"), S = cc._decorator, C = S.ccclass, w = S.property, I = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.shareRedPoint = null;
t.particleNode = null;
t.pfbArr = [];
t.pfbShare = null;
t.pfbAgent = null;
t.TaskDetail = null;
t.contentNode = null;
t.labRedPointNum = null;
t.toggleCont = null;
t.nodeTogTask = null;
t.nodeTogSign = null;
t.activityRecordLayer = null;
t.activityRecordLayerButton = null;
t.childLayerArr = {};
t.recommendTaskData = null;
t.recommendActivityData = null;
t.tempParticle = null;
t.bShare = !1;
return t;
}
t.prototype.onLoad = function() {
l.default.isLogedIn() && "¥" === l.default.getPy("currencySymbol") && "zh_CN" === cc.sys.localStorage.getItem("CurrentLanguage") && (this.bShare = !0);
};
t.prototype.start = function() {
cc.director.on(u.Global.UserEvent.UpdateShareRedPoint, this.updateShareRedPoint, this);
var e = cc.find("Canvas/gameNode").getComponent("HallUI");
this.nodeTogSign.active = e.bOpenSign;
this.nodeTogTask.active = e.bOpenTask;
};
t.prototype.onDestroy = function() {
cc.director.off(u.Global.UserEvent.UpdateShareRedPoint, this.updateShareRedPoint, this);
};
t.prototype.updateShareRedPoint = function() {
return r(this, void 0, void 0, function() {
var e, t, o, n, i, a;
return c(this, function() {
if (!this.bShare) return [ 2 ];
if (!cc.find("Canvas/gameNode").getComponent("HallUI").bOpenTask) return [ 2 ];
e = cc.sys.localStorage.getItem(u.Global.localStorageId.TaskCopy + l.default.getPy("userID"));
t = cc.sys.localStorage.getItem(u.Global.localStorageId.TaskSave + l.default.getPy("userID"));
o = cc.sys.localStorage.getItem(u.Global.localStorageId.TaskShare + l.default.getPy("userID"));
n = cc.sys.localStorage.getItem(u.Global.localStorageId.TaskSubmit + l.default.getPy("userID"));
i = new Date();
a = 0;
e && e == "copy" + l.default.getPy("userID") && t && t == "save" + l.default.getPy("userID") && o && o == "share" + l.default.getPy("userID") && n && n === i.getUTCDate().toString() + l.default.getPy("userID") || (a = 1);
y.default.taskGetTypes({}, function(e) {
cc.log("===taskGetTypes:", e);
for (var t = 0, o = 0; o < e.length; o++) t += e[o].finishCount;
if ((t += a) > 0) {
cc.log("===redPointNum:", t);
this.shareRedPoint.active = !0;
this.shareRedPoint.getChildByName("redNum").getComponent(cc.Label).string = t;
} else this.shareRedPoint.active = !1;
}.bind(this), function() {
cc.log("===获取taskGetTypes类型错误:");
});
return [ 2 ];
});
});
};
t.prototype.updateUI = function(e, t) {
cc.log("===进入updateUI");
this.userData = e;
this.updateShareRedPoint();
if ("huodong" === e) {
this.getPfbByParam(e).active = !0;
this.recommendActivityData = t;
var o = this.toggleCont.toggleItems[0];
(n = cc.instantiate(this.particleNode)).parent = o.node;
n.position = cc.v2(0, 0);
this.tempParticle = n;
o.checkEvents[0].emit([ o.checkEvents[0].customEventData ]);
g.default.playSound("enter_huodong");
} else if ("renwu" === e) {
this.recommendTaskData = t;
o = this.toggleCont.toggleItems[1];
(n = cc.instantiate(this.particleNode)).parent = o.node;
n.position = cc.v2(0, 0);
this.tempParticle = n;
o.check();
} else if ("notice" === e) {
var n;
o = this.toggleCont.toggleItems[2];
(n = cc.instantiate(this.particleNode)).parent = o.node;
n.position = cc.v2(0, 0);
this.tempParticle = n;
o.check();
} else "signIn" === e && (o = this.toggleCont.toggleItems[3]).check();
};
t.prototype.onToggleSelected = function(e, t, o) {
void 0 === o && (o = !0);
return r(this, void 0, void 0, function() {
var e, n;
return c(this, function(i) {
switch (i.label) {
case 0:
cc.log("=====onToggleSelected 执行param：", t);
o && s.default.playSound("toggle");
this.tempParticle && this.tempParticle.destroy();
this.activityRecordLayerButton.node.active = !1;
for (e in this.childLayerArr) this.childLayerArr[e].active = !1;
if ("huodong" !== t) return [ 3, 2 ];
this.activityRecordLayerButton.node.active = !0;
this._setParticle(this.toggleCont.toggleItems[0].node);
(n = this.getPfbByParam(t)).active = !0;
return [ 4, n.getComponent("Activity").updateActivityLayer(this.recommendActivityData) ];

case 1:
i.sent();
this.recommendActivityData = null;
return [ 3, 5 ];

case 2:
if ("renwu" !== t) return [ 3, 4 ];
this._setParticle(this.toggleCont.toggleItems[1].node);
(n = this.getPfbByParam(t)).active = !0;
return [ 4, n.getComponent("TaskLayer").upateTaskLayer(this.recommendTaskData) ];

case 3:
i.sent();
this.recommendTaskData = null;
return [ 3, 5 ];

case 4:
if ("notice" === t) {
this._setParticle(this.toggleCont.toggleItems[2].node);
(n = this.getPfbByParam("notice")).active = !0;
0 === v.default.getPopUpItems().length && m.default.showToastUI(_.t("HallUI.no_announcement") + "！", u.Global.ToastType.Warnning);
} else if ("signIn" === t) {
this._setParticle(this.toggleCont.toggleItems[3].node);
if (!l.default.isLogedIn()) {
this.onBtnClose();
cc.find("Canvas/gameNode").getComponent("HallUI").checkLoginAndShowUI();
return [ 2 ];
}
(n = this.getPfbByParam("signIn")).active = !0;
n.getComponent("SignIn").updateUI();
}
i.label = 5;

case 5:
return [ 2 ];
}
});
});
};
t.prototype._setParticle = function(e) {
var t = cc.instantiate(this.particleNode);
t.parent = e;
t.active = !0;
t.position = cc.v2(0, 0);
this.tempParticle = t;
};
t.prototype.getPfbByParam = function(e) {
cc.log("==acAndTask重置任务数据" + e);
if (!this.childLayerArr[e.toString()]) {
var t = cc.instantiate(this.pfbArr[this._getIndexByParam(e)]);
t.parent = this.contentNode;
t.position = cc.v2(0, 0);
this.childLayerArr[e.toString()] = t;
}
return this.childLayerArr[e.toString()];
};
t.prototype._getIndexByParam = function(e) {
var t = 0;
switch (e) {
case "huodong":
t = 0;
break;

case "renwu":
t = 1;
break;

case "notice":
t = 2;
break;

case "signIn":
t = 3;
}
return t;
};
t.prototype.openChildUI = function(e) {
var t = cc.instantiate(e);
t.parent = this.node.parent;
return t;
};
t.prototype.onBtnClose = function() {
s.default.playSound("close");
d.default.showGameNode();
cc.log("==acAndTask重置任务数据");
h.default.resetData();
f.default.resetData();
p.default.openNext();
this.node.destroy();
};
t.prototype.onBtnActivityRecord = function() {
var e = this;
s.default.playSound("button");
if (l.default.isLogedIn()) {
this.getPfbByParam("huodong").getComponent("Activity").closeActivityDetailWebView();
this.activityRecordLayer.active = !0;
m.default.showLoadingUI();
y.default.applyActivityList(function(t) {
m.default.hideLoadingUI();
e.activityRecordLayer.getComponent(b.default).play(t);
}, function() {
m.default.hideLoadingUI();
e.activityRecordLayer.getComponent(b.default).play([]);
});
} else {
this.onBtnClose();
cc.find("Canvas/gameNode").getComponent("HallUI").checkLoginAndShowUI();
}
};
t.prototype.onBtnActivityRecordClose = function() {
s.default.playSound("close");
this.activityRecordLayer.active = !1;
};
a([ w(cc.Node) ], t.prototype, "shareRedPoint", void 0);
a([ w(cc.Node) ], t.prototype, "particleNode", void 0);
a([ w([ cc.Prefab ]) ], t.prototype, "pfbArr", void 0);
a([ w(cc.Prefab) ], t.prototype, "pfbShare", void 0);
a([ w(cc.Prefab) ], t.prototype, "pfbAgent", void 0);
a([ w(cc.Prefab) ], t.prototype, "TaskDetail", void 0);
a([ w(cc.Node) ], t.prototype, "contentNode", void 0);
a([ w(cc.Label) ], t.prototype, "labRedPointNum", void 0);
a([ w(cc.ToggleContainer) ], t.prototype, "toggleCont", void 0);
a([ w(cc.Node) ], t.prototype, "nodeTogTask", void 0);
a([ w(cc.Node) ], t.prototype, "nodeTogSign", void 0);
a([ w(cc.Node) ], t.prototype, "activityRecordLayer", void 0);
a([ w(cc.Button) ], t.prototype, "activityRecordLayerButton", void 0);
return a([ C ], t);
}(cc.Component);
o.default = I;
cc._RF.pop();
}, {
"../../Models/NoticeData": "NoticeData",
"../../Models/Player": "Player",
"../../Shared/AudioManager": "AudioManager",
"../../Shared/EnterSoundManager": "EnterSoundManager",
"../../Shared/Global": "Global",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/PopWindowManager": "PopWindowManager",
"../../Shared/UIManager": "UIManager",
"../../Shared/Utils": "Utils",
"../TaskLayer/TaskData": "TaskData",
"./ActivityApplyStatus": "ActivityApplyStatus",
"./ActivityData": "ActivityData",
LanguageData: "LanguageData"
} ],
ActivityApplyStatus: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "345daPP7uVAY57ZqxGWLu6W", "ActivityApplyStatus");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/AudioManager"), c = cc._decorator, s = c.ccclass, l = c.property, d = e("LanguageData"), u = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.item = null;
t.content = null;
t.sp1 = null;
t.sp2 = null;
t.remarkLayer = null;
t.remarkLabel = null;
t._data = void 0;
return t;
}
t.prototype.play = function(e) {
var t = this;
if (this.content.children.length > e.length) for (var o = e.length; o < this.content.children.length; o++) this.content.children[o].active = !1;
var n = null;
this.content.removeAllChildren();
var i = function(o) {
n = a.content.children.length > o ? a.content.children[o] : cc.instantiate(a.item);
var i = "ActivityNew.apply_pending", c = new cc.Color(), s = "-", l = new cc.Color();
cc.Color.fromHEX(c, "#c9c277");
cc.Color.fromHEX(l, "#d3cee3");
if (3 === e[o].status) {
i = "ActivityNew.apply_pass";
cc.Color.fromHEX(c, "#65d771");
s = e[o].activityMoney;
cc.Color.fromHEX(l, "#65d771");
} else if (2 === e[o].status) {
i = "ActivityNew.apply_failed";
cc.Color.fromHEX(c, "#f12a41");
}
var u = e[o].opRemark, p = n.getChildByName("lb_remark"), h = n.getChildByName("lb_status"), f = n.getChildByName("lb_reward");
if ("" !== u) {
p.active = !0;
p.on(cc.Node.EventType.TOUCH_START, function() {
r.default.playSound("button");
t.remarkLayer.active = !0;
t.remarkLabel.string = e[o].opRemark;
});
} else {
p.active = !1;
p.off(cc.Node.EventType.TOUCH_START);
}
n.getChildByName("bg").getComponent(cc.Sprite).spriteFrame = o % 2 == 0 ? a.sp1 : a.sp2;
n.getChildByName("lb_time").getComponent(cc.Label).string = e[o].createTime;
h.color = c;
h.getComponent(cc.Label).string = d.t(i);
f.color = l;
f.getComponent(cc.Label).string = s;
n.getChildByName("lb_title").getComponent(cc.Label).string = a.truncateText(e[o].activityName);
n.parent = a.content;
n.active = !0;
}, a = this;
for (o = 0; o < e.length; o++) i(o);
};
t.prototype.onRemarkCLose = function() {
r.default.playSound("close");
this.remarkLayer.active = !1;
};
t.prototype.onBtnClose = function() {
r.default.playSound("close");
this.node.active = !1;
};
t.prototype.onDestroy = function() {
this._data = void 0;
};
t.prototype.truncateText = function(e) {
e.length > 11 && (e = e.substring(0, 11) + "...");
return e;
};
a([ l(cc.Node) ], t.prototype, "item", void 0);
a([ l(cc.Node) ], t.prototype, "content", void 0);
a([ l(cc.SpriteFrame) ], t.prototype, "sp1", void 0);
a([ l(cc.SpriteFrame) ], t.prototype, "sp2", void 0);
a([ l(cc.Node) ], t.prototype, "remarkLayer", void 0);
a([ l(cc.Label) ], t.prototype, "remarkLabel", void 0);
return a([ s ], t);
}(cc.Component);
o.default = u;
cc._RF.pop();
}, {
"../../Shared/AudioManager": "AudioManager",
LanguageData: "LanguageData"
} ],
ActivityData: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "0b8dfGuKAtCwqxph6oxFLfQ", "ActivityData");
var n = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, i = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var a = e("../../Shared/NetworkLogic"), r = e("../../Shared/UIManager"), c = function() {
function e() {
this._typeData = null;
this.realTypeData = [];
this._listData = null;
this.listItem = {};
this._recommendData = null;
}
e.prototype.resetData = function() {
this._typeData = null;
this.realTypeData = [];
this._listData = null;
this.listItem = {};
this._recommendData = null;
};
e.prototype.getRealTypeData = function() {
return n(this, void 0, void 0, function() {
var e, t, o, n, a, r;
return i(this, function(i) {
switch (i.label) {
case 0:
if (!(this.realTypeData.length <= 0)) return [ 3, 4 ];
if (this._typeData) return [ 3, 2 ];
e = this;
return [ 4, this._getTypeData() ];

case 1:
e._typeData = i.sent();
i.label = 2;

case 2:
t = [];
o = [];
return [ 4, this.getListItem() ];

case 3:
n = i.sent();
for (a = 0; a < this._typeData.length; a++) for (r in n) {
if (this._typeData[a].id.toString() === r) {
o.push(this._typeData[a]);
break;
}
t.push(this._typeData[a]);
}
this.realTypeData = o;
i.label = 4;

case 4:
return [ 2, this.realTypeData ];
}
});
});
};
e.prototype.getListItem = function() {
return n(this, void 0, void 0, function() {
var e, t, o, n;
return i(this, function(i) {
switch (i.label) {
case 0:
if ("{}" !== JSON.stringify(this.listItem)) return [ 3, 3 ];
if (this._listData) return [ 3, 2 ];
e = this;
return [ 4, this._getListData() ];

case 1:
e._listData = i.sent();
i.label = 2;

case 2:
t = this._listData;
cc.log("====listdata rec:", t);
for (o = 0; o < t.length; o++) {
n = t[o];
this.listItem[n.typeId] || (this.listItem[n.typeId] = []);
this.listItem[n.typeId].push(n);
}
i.label = 3;

case 3:
return [ 2, this.listItem ];
}
});
});
};
e.prototype.getRecommendActivity = function() {
return n(this, void 0, void 0, function() {
var e;
return i(this, function(t) {
switch (t.label) {
case 0:
if (this._recommendData) return [ 3, 2 ];
e = this;
return [ 4, this._getRecommendActivityData() ];

case 1:
e._recommendData = t.sent();
t.label = 2;

case 2:
return [ 2, this._recommendData ];
}
});
});
};
e.prototype.loadTexture = function(e) {
var t = this;
return new Promise(function(o) {
cc.assetManager.loadRemote(e, {
ext: ".png"
}, function(e, t) {
o(e || t);
}.bind(t));
});
};
e.prototype._getListData = function() {
var e = this;
return new Promise(function(t) {
a.default.activityList({}, function(e) {
console.log("====获取ListData：", e);
this.listdata = e;
t(e);
}.bind(e), function() {
r.default.hideLoadingUI();
console.log("====获取ListData失败");
t(null);
}.bind(e));
});
};
e.prototype._getRecommendActivityData = function() {
var e = this;
return new Promise(function(t) {
a.default.activityRecommendActivity({}, function(e) {
r.default.hideLoadingUI();
cc.log("=====getRecommendActivity rec", e);
t(e);
}.bind(e), function() {
r.default.hideLoadingUI();
cc.log("=====getRecommendActivity err");
t(null);
}.bind(e));
});
};
e.prototype._getTypeData = function() {
var e = this;
return new Promise(function(t) {
a.default.activityTypeList({}, function(e) {
console.log("====获取typeData：", e);
t(e);
}.bind(e), function() {
console.log("====获取typeData失败");
t(null);
}.bind(e));
});
};
return e;
}();
o.default = new c();
cc._RF.pop();
}, {
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager"
} ],
Activity: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "0926aLIRPRKhYJPwE4kcGPq", "Activity");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
}, r = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, c = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
}, s = this && this.__spreadArrays || function() {
for (var e = 0, t = 0, o = arguments.length; t < o; t++) e += arguments[t].length;
var n = Array(e), i = 0;
for (t = 0; t < o; t++) for (var a = arguments[t], r = 0, c = a.length; r < c; r++, 
i++) n[i] = a[r];
return n;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var l = e("../../Shared/NetworkLogic"), d = e("../../Shared/htmlBefore"), u = e("../../Shared/htmlAfter"), p = e("../../Shared/htmlBeforeZcs"), h = e("../../Shared/htmlAfterZcs"), f = e("../../Shared/AudioManager"), g = e("../../Shared/UIManager"), y = e("../../Models/Player"), m = e("./ActivityData"), v = e("../../Shared/Global"), b = e("../../Shared/Utils"), _ = e("LanguageData"), S = cc._decorator, C = S.ccclass, w = S.property, I = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.kefu = null;
t.Drawing = null;
t.Recharge = null;
t.Extension = null;
t.submitPfb = null;
t.titContainer = null;
t.titleItem = null;
t.iconContent = null;
t.iconItem = null;
t.webView = null;
t.btnApply = null;
t.btnApplyLabel = null;
t.btnBack = null;
t.btnLingqu = null;
t.iconScroll = null;
t.listItem = {};
t.iconContentArr = {};
t.tempContent = null;
t.submit = null;
t.typeParam = "";
t.pfbLoginUI = null;
t.bPlayClick = !1;
t.recommendActivity = null;
t.applyTypes = {};
t.applyData = {};
t.lingquData = {};
t.currentActivityId = void 0;
return t;
}
t.prototype.onLoad = function() {
this.webView.node.active = !1;
this.bPlayClick = !1;
};
t.prototype.start = function() {
this.webView.setJavascriptInterfaceScheme("http");
this.webView.setOnJSCallback(function(e, t) {
cc.log("===url:", t);
cc.log("==acAndTask重置任务数据");
if (t.indexOf("activityId") > -1 || t.indexOf("activityid") > -1) {
var o = t.replace("http://", ""), n = {
activityId: (o = o.replace("/", "")).split("&")[0].split("=")[1],
detailId: o.split("&")[1].split("=")[1]
};
l.default.activityApplyRuleActivity(n, function() {
g.default.showToastUI(_.t("Task.Application_success"), v.Global.ToastType.OK);
this.onBtnBack();
}.bind(this), function() {
g.default.showToastUI(_.t("tips_fail"), v.Global.ToastType.Warnning);
}.bind(this));
} else cc.sys.openURL(t);
}.bind(this));
};
t.prototype.onDisable = function() {
this.closeActivityDetailWebView();
};
t.prototype.updateActivityLayer = function(e) {
return r(this, void 0, void 0, function() {
return c(this, function(t) {
switch (t.label) {
case 0:
this.recommendActivity = e;
g.default.showLoadingUI();
return [ 4, this.showTitle() ];

case 1:
t.sent();
g.default.hideLoadingUI();
return [ 2 ];
}
});
});
};
t.prototype.showTitle = function() {
return r(this, void 0, void 0, function() {
var e, t, o, n, i, a;
return c(this, function(r) {
switch (r.label) {
case 0:
return this.titContainer.node.children.length > 0 ? [ 2 ] : [ 4, m.default.getRealTypeData() ];

case 1:
e = r.sent();
return [ 4, this._getAllActivityEnable() ];

case 2:
if (1 == r.sent()) {
e.unshift({});
e[0].id = "all";
e[0].activityTypeName = _.t("general.allActivity");
}
cc.log("==acAndTask重置任务数据");
cc.log(e);
for (i = 0; i < e.length; i++) {
(t = cc.instantiate(this.titleItem)).parent = this.titContainer.node;
t.id = e[i].id;
t.getChildByName("toggle_label").getComponent(cc.Label).string = e[i].activityTypeName;
t.getComponent(cc.Toggle).checkEvents[0].customEventData = e[i].id;
t.active = !0;
}
if (this.recommendActivity) {
o = this.recommendActivity;
n = this.titContainer.toggleItems;
for (i = 0; i < n.length; i++) if (n[i].checkEvents[0].customEventData === o.activityTypeId) {
n[i].check();
n[i].checkEvents[0].emit([ n[i].checkEvents[0].customEventData ]);
break;
}
this.recommendActivity = null;
} else if (a = this.titContainer.toggleItems[0]) {
a.check();
a.checkEvents[0].emit([ a.checkEvents[0].customEventData ]);
}
return [ 2 ];
}
});
});
};
t.prototype.onLeftSelected = function(e, t, o) {
void 0 === o && (o = !0);
return r(this, void 0, void 0, function() {
var e, n, i, a, r, s, l, d;
return c(this, function(c) {
switch (c.label) {
case 0:
this.iconScroll.stopAutoScroll();
this.bPlayClick ? o && f.default.playSound("toggle") : this.bPlayClick = !0;
this.closeActivityDetailWebView();
if ("all" === t) {
this.showsAllActivity();
return [ 2 ];
}
return [ 4, m.default.getListItem() ];

case 1:
e = c.sent();
n = e[t];
this.typeParam = t;
if (!n) return [ 2 ];
this.tempContent && (this.tempContent.active = !1);
if (this.iconContentArr[t]) this.iconContentArr[t].active = !0; else {
(i = cc.instantiate(this.iconContent)).parent = this.iconContent.parent;
i.active = !0;
this.iconContentArr[t] = i;
for (a = 0; a < n.length; a++) {
d = null;
(d = cc.instantiate(this.iconItem)).parent = i;
d.getComponent(cc.Button).clickEvents[0].customEventData = JSON.stringify(n[a]);
d.activityId = n[a].id;
this.applyTypes[n[a].id] = n[a].applyType;
this.applyData[n[a].id] = JSON.stringify(n[a]);
r = d.getChildByName("btnLingqu");
s = !1;
0 !== n[a].atype && 3 !== n[a].applyType && 0 !== n[a].applyType && 4 !== n[a].applyType || (s = !1);
2 === n[a].activityTemplateId ? d.height = 195 : d.height = 330;
r.active = s;
r.getComponent(cc.Widget).updateAlignment();
r.getComponent(cc.Button).clickEvents[0].customEventData = JSON.stringify(n[a]);
d.active = !0;
}
for (l = 0; l < n.length; l++) {
d = this.iconContentArr[t].children[l];
this.getImage(n[l].activityImgPhone, d);
}
}
this.tempContent = this.iconContentArr[t];
this.iconScroll.content = this.iconContentArr[t];
return [ 2 ];
}
});
});
};
t.prototype.showsAllActivity = function() {
return r(this, void 0, void 0, function() {
var e, t, o, n, i, a, r, l, d;
return c(this, function(c) {
switch (c.label) {
case 0:
e = 9999;
return [ 4, m.default.getListItem() ];

case 1:
t = c.sent();
if (!(o = Object.values(t).reduce(function(e, t) {
return s(e, t);
}, []))) return [ 2 ];
o.sort(function(e, t) {
return e.sort - t.sort;
});
this.tempContent && (this.tempContent.active = !1);
if (this.iconContentArr[e]) this.iconContentArr[e].active = !0; else {
(n = cc.instantiate(this.iconContent)).parent = this.iconContent.parent;
n.active = !0;
this.iconContentArr[e] = n;
for (i = 0; i < o.length; i++) {
d = null;
(d = cc.instantiate(this.iconItem)).parent = n;
d.getComponent(cc.Button).clickEvents[0].customEventData = JSON.stringify(o[i]);
d.activityId = o[i].id;
this.applyTypes[o[i].id] = o[i].applyType;
this.applyData[o[i].id] = JSON.stringify(o[i]);
a = d.getChildByName("btnLingqu");
r = !1;
0 !== o[i].atype && 3 !== o[i].applyType && 0 !== o[i].applyType && 4 !== o[i].applyType || (r = !1);
2 === o[i].activityTemplateId ? d.height = 195 : d.height = 330;
a.active = r;
a.getComponent(cc.Widget).updateAlignment();
a.getComponent(cc.Button).clickEvents[0].customEventData = JSON.stringify(o[i]);
d.active = !0;
}
for (l = 0; l < o.length; l++) {
d = this.iconContentArr[e].children[l];
this.getImage(o[l].activityImgPhone, d);
}
}
this.tempContent = this.iconContentArr[e];
this.iconScroll.content = this.iconContentArr[e];
return [ 2 ];
}
});
});
};
t.prototype.onBtnClick = function(e, t) {
if ("close" === t) {
cc.log("点击关闭按钮");
this.closeActivityDetailWebView();
}
f.default.playSound("close");
b.default.disable_btn_sec(e, 5);
};
t.prototype.onBtnBack = function() {
this.closeActivityDetailWebView();
this.currentActivityId = void 0;
f.default.playSound("button");
};
t.prototype.onBtnApply = function() {
if (y.default.isLogedIn()) {
this.btnApply.getComponent(cc.Button).interactable = !1;
var e = JSON.parse(this.applyData[this.currentActivityId]);
this.closeActivityDetailWebView();
if (e.submitFlag && e.listTip && e.listTip instanceof Array && e.listTip.length > 0) {
var t = cc.instantiate(this.submitPfb);
t.parent = this.node.parent.parent;
t.getComponent("Submit").updataUI(e);
} else {
var o = {
id: e.id
};
l.default.activityApplyContentActivity(o, function(e) {
g.default.showToastUI(_.t("datum_text.apply_succ"), v.Global.ToastType.OK);
cc.log("====不提交资料rec:", e);
}.bind(this), function(e) {
cc.log("====不提交资料错误err:", e);
}.bind(this));
}
f.default.playSound("button");
} else {
this.node.parent.parent.getComponent("ActivityAndTask").onBtnClose();
cc.find("Canvas/gameNode").getComponent("HallUI").checkLoginAndShowUI();
}
};
t.prototype.onBtnClickLingqu = function(e, t) {
if (y.default.isLogedIn()) {
cc.log("==点击领取 param：", t);
var o = JSON.parse(t);
if (0 === o.atype) {
var n = {
activityId: o.id,
detailId: 0
};
if (1 === o.applyType) {
cc.log("====跳转外部链接");
cc.sys.openURL(o.jumpUrl);
} else if (0 === o.applyType) {
e.target.getComponent(cc.Button).interactable = !1;
l.default.activityApplyRuleActivity(n, function(t) {
g.default.showToastUI(_.t("Task.Application_success"), v.Global.ToastType.OK);
this.scheduleOnce(function() {
e.target.getComponent(cc.Button).interactable = !0;
}.bind(this), 5);
cc.log("====返回规则活动 rec：", t);
}.bind(this), function(e) {
cc.log("====返回规则活动错误:", e);
}.bind(this));
}
} else if (1 === o.atype) {
n = {};
if (0 != o.applyType && o.applyType && 4 != o.applyType) {
if (1 === o.applyType) {
cc.log("=====跳转外部浏览器：", o.jumpUrl);
cc.sys.openURL(o.jumpUrl);
} else if (2 === o.applyType) {
this.closeActivityDetailWebView();
var i = JSON.parse(o.jumpUrl).path;
r = cc.find("Canvas/gameNode").getComponent("HallUI");
"Home" === i ? this.node.parent.parent.getComponent("ActivityAndTask").onBtnClose() : "Kefu" === i ? r.onBtnClick(null, "customer") : "Drawing" === i ? r.onBtnClick(null, "tixian") : "Recharge" === i ? r.onBtnClick(null, "recharge") : "Extension" === i ? r.onBtnClick(null, "tuiguang") : "bountyTask" === i && this.node.parent.parent.getComponent("ActivityAndTask").updateUI("renwu");
}
} else if (o.submitFlag && o.listTip && o.listTip instanceof Array && o.listTip.length > 0) {
var a = cc.instantiate(this.submitPfb);
a.parent = this.node.parent.parent;
a.getComponent("Submit").updataUI(o);
} else {
n = {
id: o.id
};
l.default.activityApplyContentActivity(n, function(e) {
g.default.showToastUI(_.t("datum_text.apply_succ"), v.Global.ToastType.OK);
cc.log("====不提交资料rec:", e);
}.bind(this), function(e) {
cc.log("====不提交资料错误err:", e);
}.bind(this));
}
}
f.default.playSound("close");
} else {
this.node.parent.parent.getComponent("ActivityAndTask").onBtnClose();
var r;
(r = cc.find("Canvas/gameNode").getComponent("HallUI")).checkLoginAndShowUI();
}
};
t.prototype.getImage = function(e, t) {
cc.assetManager.loadRemote(e, {
ext: ".png"
}, function(e, o) {
if (!e && this.node && cc.isValid(t)) {
t.getChildByName("logo").active = !1;
t.getComponent(cc.Sprite) && (t.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(o));
}
}.bind(this));
};
t.prototype.onIconClick = function(e, t, o) {
var n = this;
void 0 === o && (o = !0);
o && f.default.playSound("button");
var i = {
id: (t = JSON.parse(t)).id
};
if (y.default.isLogedIn() || 0 !== t.atype) {
cc.log("==点击图标，显示详情");
cc.log(t);
g.default.showLoadingUI();
l.default.activityGetActivityById(i, function(e) {
if (e && 0 == e.atype) {
g.default.hideLoadingUI();
var o = "进行中";
0 == e.status && (o = _.t("activityDetails_hdjxz"));
1 == e.status && (o = _.t("activityDetails_hdwks"));
2 == e.status && (o = _.t("activityDetails_hdyjs"));
var i = p.default + "<h1> " + e.name + " </h1><p>" + _.t("a_time") + "：" + e.startTime + "~" + e.endTime + "</p><p>" + _.t("a_stauts") + "：" + o + "</p><div> " + _.t("a_rule") + "：</div><div>" + e.activityContentHtml + "</div><table>" + e.tableHtml + "</table>" + h.default, a = !0;
0 !== (r = JSON.parse(n.applyData[e.activityId])).atype && 3 !== r.applyType && 0 !== r.applyType && 4 !== r.applyType || (a = !1);
cc.log("====返回规则活动错误:");
cc.log(n.applyTypes);
cc.log(e);
if (0 === n.applyTypes[e.activityId] || 4 === n.applyTypes[e.activityId]) {
n.btnApply.getComponent(cc.Button).interactable = !0;
n.btnApply.active = !0;
n.btnLingqu.active = !1;
n.currentActivityId = e.activityId;
n.btnApplyLabel.string = 4 === n.applyTypes[e.activityId] ? _.t("ActivityNew.btn_apply") : _.t("ActivityNew.btn_lingqu");
} else {
n.btnApply.active = !1;
n.btnLingqu.active = a;
n.btnLingqu.getComponent(cc.Button).clickEvents[0].customEventData = n.applyData[e.activityId];
}
n.webView.node.active = !0;
n.btnBack.active = !0;
cc.log("===str:", i);
cc.sys.isBrowser ? cc.Canvas.instance.scheduleOnce(function() {
this.webView._impl._iframe.contentDocument.getElementsByTagName("html")[0].innerHTML = i;
}.bind(n), 0) : n.webView._impl.loadHTMLString(i);
} else {
g.default.hideLoadingUI();
var r, c = d.default + n.injectHtmlImage(t.activityImgPhone) + e.activityContentHtml + u.default;
a = !0;
0 !== (r = JSON.parse(n.applyData[e.activityId])).atype && 3 !== r.applyType && 0 !== r.applyType && 4 !== r.applyType || (a = !1);
cc.log("====返回规则活动错误:");
cc.log(n.applyTypes);
cc.log(e);
if (0 === n.applyTypes[e.activityId] || 4 === n.applyTypes[e.activityId]) {
n.btnApply.getComponent(cc.Button).interactable = !0;
n.btnApply.active = !0;
n.btnLingqu.active = !1;
n.currentActivityId = e.activityId;
n.btnApplyLabel.string = 4 === n.applyTypes[e.activityId] ? _.t("ActivityNew.btn_apply") : _.t("ActivityNew.btn_lingqu");
} else {
n.btnApply.active = !1;
n.btnLingqu.active = a;
n.btnLingqu.getComponent(cc.Button).clickEvents[0].customEventData = n.applyData[e.activityId];
}
n.webView.node.active = !0;
n.btnBack.active = !0;
n.webView._impl.loadHTMLString(c);
}
}, function() {
console.log("====传ID 返回错误");
}.bind(this));
} else {
this.node.parent.parent.getComponent("ActivityAndTask").onBtnClose();
cc.find("Canvas/gameNode").getComponent("HallUI").checkLoginAndShowUI();
}
};
t.prototype._getAllActivityEnable = function() {
return new Promise(function(e) {
l.default.getAllActivityEnable(function(t) {
e(t);
}, function() {
e(null);
});
});
};
t.prototype.closeActivityDetailWebView = function() {
this.webView.node.active = !1;
this.btnBack.active = !1;
this.btnApply.active = !1;
this.btnLingqu.active = !1;
this.currentActivityId = void 0;
};
t.prototype.injectHtmlImage = function(e) {
return '<img class="centered-image" " src="' + e + '">';
};
a([ w(cc.Prefab) ], t.prototype, "kefu", void 0);
a([ w(cc.Prefab) ], t.prototype, "Drawing", void 0);
a([ w(cc.Prefab) ], t.prototype, "Recharge", void 0);
a([ w(cc.Prefab) ], t.prototype, "Extension", void 0);
a([ w(cc.Prefab) ], t.prototype, "submitPfb", void 0);
a([ w(cc.ToggleContainer) ], t.prototype, "titContainer", void 0);
a([ w(cc.Node) ], t.prototype, "titleItem", void 0);
a([ w(cc.Node) ], t.prototype, "iconContent", void 0);
a([ w(cc.Node) ], t.prototype, "iconItem", void 0);
a([ w(cc.WebView) ], t.prototype, "webView", void 0);
a([ w(cc.Node) ], t.prototype, "btnApply", void 0);
a([ w(cc.Label) ], t.prototype, "btnApplyLabel", void 0);
a([ w(cc.Node) ], t.prototype, "btnBack", void 0);
a([ w(cc.Node) ], t.prototype, "btnLingqu", void 0);
a([ w(cc.ScrollView) ], t.prototype, "iconScroll", void 0);
a([ w(cc.Prefab) ], t.prototype, "pfbLoginUI", void 0);
return a([ C ], t);
}(cc.Component);
o.default = I;
cc._RF.pop();
}, {
"../../Models/Player": "Player",
"../../Shared/AudioManager": "AudioManager",
"../../Shared/Global": "Global",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
"../../Shared/Utils": "Utils",
"../../Shared/htmlAfter": "htmlAfter",
"../../Shared/htmlAfterZcs": "htmlAfterZcs",
"../../Shared/htmlBefore": "htmlBefore",
"../../Shared/htmlBeforeZcs": "htmlBeforeZcs",
"./ActivityData": "ActivityData",
LanguageData: "LanguageData"
} ],
AddressManager: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "f16168xv/ZPCIIA5zBFcMmP", "AddressManager");
Object.defineProperty(o, "__esModule", {
value: !0
});
var n = e("./Constant"), i = function() {
function e() {
this.serverAddressArr = [];
this.serverAddressArr = n.default.ServerAddresses.slice();
cc.sys.localStorage.setItem("ServerAddress", this.serverAddressArr[0]);
}
e.prototype.setServerDomain = function(e) {
-1 !== this.serverAddressArr.indexOf(e) ? cc.sys.localStorage.setItem("ServerAddress", e) : cc.sys.localStorage.setItem("ServerAddress", "");
};
e.prototype.flushServerList = function(e) {
this.serverAddressArr = e;
var t = cc.sys.localStorage.getItem("ServerAddress") || "";
if (-1 === this.serverAddressArr.indexOf(t)) {
if (-1 !== t.search("://127.0.0.1:")) {
var o = this.serverAddressArr.slice(-1)[0];
if (-1 !== o.search("://127.0.0.1:")) {
this.setServerDomain(o);
return;
}
}
this.setServerDomain(this.serverAddressArr[0]);
}
};
e.prototype.resetServerAddress = function(e) {
this.setServerDomain(this.serverAddressArr[e]);
};
e.prototype.getServerDomain = function() {
return cc.sys.localStorage.getItem("ServerAddress");
};
e.prototype.getServerAdress = function() {
return this.getServerDomain() + "/imsbase";
};
e.prototype.getActivityAddress = function() {
return this.getServerDomain() + "/imsact";
};
e.prototype.setAliAddress = function(e) {
if (-1 === this.serverAddressArr.indexOf(e)) {
this.serverAddressArr.unshift(e);
this.setServerDomain(e);
}
};
return e;
}();
o.default = new i();
cc._RF.pop();
}, {
"./Constant": "Constant"
} ],
Analytic: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "8130aW9xHZLBL33hRzTz/39", "Analytic");
Object.defineProperty(o, "__esModule", {
value: !0
});
o.analytic = void 0;
var n = e("../../Scripts/Shared/encryptionWay"), i = "XTR2VmIOrpXY4nQ6", a = new (function() {
function e() {
this.requestApi = void 0;
this._code = void 0;
this._userId = null;
}
e.prototype.init = function(e, t) {
void 0 === t && (t = void 0);
this._code = e;
this.requestApi = function(e) {
t(e.data, e.callback, e.fallback);
};
};
e.prototype.setID = function(e) {
this._userId = e;
};
e.prototype.postMessage = function(e, t) {
void 0 === t && (t = null);
var o = {
data: {
code: this._code,
userId: this._userId,
msg: e,
data: t
},
callback: this.apiCallback.bind(this),
fallback: this.apiFallback.bind(this)
};
this.decorator(o);
};
e.prototype.postSystemMessage = function(e) {
var t = new XMLHttpRequest();
t.setRequestHeader("Content-Type", "application/json");
var o = {
deviceId: this._code,
time: this.getFormattedDate(),
log: n.default.fourEncrypt(e, i, i)
}, a = JSON.stringify(o);
t.onload = function() {
t.status;
};
t.onerror = function(e) {
console.log(e);
};
t.open("POST", "https://o98iumncgs58g6.com/api/log", !0);
t.send(a);
};
e.prototype.decorator = function(e) {
this.requestApi(e);
this.log("" + JSON.stringify(e.data));
};
e.prototype.log = function() {};
e.prototype.apiCallback = function() {
this.log("Post Success");
};
e.prototype.apiFallback = function() {
this.log("Post Failed");
};
e.prototype.getFormattedDate = function() {
var e = new Date();
return e.getFullYear() + "-" + String(e.getMonth() + 1).padStart(2, "0") + "-" + String(e.getDate()).padStart(2, "0") + " " + String(e.getHours()).padStart(2, "0") + ":" + String(e.getMinutes()).padStart(2, "0") + ":" + String(e.getSeconds()).padStart(2, "0");
};
return e;
}())();
o.analytic = a;
cc._RF.pop();
}, {
"../../Scripts/Shared/encryptionWay": "encryptionWay"
} ],
AppGameInfo: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "cb24ayvWOxCZYtRQcMA2Rzo", "AppGameInfo");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("./Constant"), c = e("./Utils"), s = cc._decorator, l = s.ccclass, d = s.property, u = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.appVersion = null;
t.hotUpdateVersion = null;
t.lineVersion = null;
t.traceCode = null;
return t;
}
t.prototype.start = function() {
var e = cc.sys.localStorage.getItem("CurrentVersion") || "0.0.0";
this.appVersion.string = "App: " + c.default.getNativeVersion();
this.hotUpdateVersion.string = "Res: " + e;
this.lineVersion.string = "Line: " + r.default.LineVersion;
this.traceCode.string = c.default.getAnalyticCode();
};
a([ d(cc.Label) ], t.prototype, "appVersion", void 0);
a([ d(cc.Label) ], t.prototype, "hotUpdateVersion", void 0);
a([ d(cc.Label) ], t.prototype, "lineVersion", void 0);
a([ d(cc.Label) ], t.prototype, "traceCode", void 0);
return a([ l ], t);
}(cc.Component);
o.default = u;
cc._RF.pop();
}, {
"./Constant": "Constant",
"./Utils": "Utils"
} ],
AudioManager: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "a1f4fGdvEBP06fWBImtd4Tx", "AudioManager");
var n = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, i = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var a = e("./Constant"), r = e("./NetworkLogic"), c = e("./Utils"), s = e("./Global"), l = function() {
function e() {
this.soundPath = "Sounds/";
this.currentBgMusic = -1;
this.isMusicEnabled = !0;
this.isMusicPaused = !1;
this.isSoundEnabled = !0;
this.musicVolume = 1;
this.soundVolume = 1;
this.commonSoundPath = null;
this.commonSound = null;
this.musicList = null;
this.commonSoundPath = {
clickButtonSound: "Sounds/button"
};
this.commonSound = {
clickButton: null
};
if (null === cc.sys.localStorage.getItem("Music")) {
cc.sys.localStorage.setItem("Music", 1);
cc.sys.localStorage.setItem("Sound", 1);
cc.sys.localStorage.setItem("MusicVolume", a.default.DefaultMusicVolume);
cc.sys.localStorage.setItem("SoundVolume", a.default.DefaultSoundVolume);
}
this.isMusicEnabled = "1" === cc.sys.localStorage.getItem("Music");
this.isSoundEnabled = "1" === cc.sys.localStorage.getItem("Sound");
this.musicVolume = parseFloat(cc.sys.localStorage.getItem("MusicVolume") || "1");
this.soundVolume = parseFloat(cc.sys.localStorage.getItem("SoundVolume") || "1");
}
e.prototype.startPlayHallMusic = function() {
return n(this, void 0, void 0, function() {
var e, t, o, n, a, r, l, d;
return i(this, function(i) {
switch (i.label) {
case 0:
if ("true" === cc.sys.localStorage.getItem(s.Global.localStorageId.pauseMusic)) return [ 2 ];
e = cc.sys.localStorage.getItem(s.Global.localStorageId.MusicName);
return [ 4, this.getMuiscList() ];

case 1:
i.sent();
if (Array.isArray(this.musicList) && this.musicList.length > 0) {
t = null;
for (o = 0; o < this.musicList.length; o++) if ((n = this.musicList[o]).url.substring(n.url.lastIndexOf("/") + 1) === e) {
t = n;
break;
}
t || (t = this.musicList[0]);
a = t.url.substring(t.url.lastIndexOf("/") + 1, t.url.lastIndexOf("."));
r = t.url.substring(t.url.lastIndexOf("."));
l = jsb.fileUtils.getWritablePath() + "SoundCache/";
d = l + a + r;
if (jsb.fileUtils.isFileExist(d)) this.loadMusic(d, a + r); else {
!jsb.fileUtils.isDirectoryExist(l) && jsb.fileUtils.createDirectory(l);
c.default.saveUrlFile(t.url, d, function(e) {
this.loadMusic(e, a + r);
}.bind(this));
}
}
return [ 2 ];
}
});
});
};
e.prototype.loadMusic = function(e, t) {
cc.assetManager.loadRemote(e, function(e, o) {
if (!e) {
this.stopBgMusic();
this.currentBgMusic = cc.audioEngine.play(o, !0, this.isMusicEnabled ? this.musicVolume : 0);
this.isMusicPaused = !1;
cc.sys.localStorage.setItem(s.Global.localStorageId.pauseMusic, "false");
cc.sys.localStorage.setItem(s.Global.localStorageId.MusicName, t);
cc.log("====保存的名字：", t);
}
}.bind(this));
};
e.prototype.pauseMusic = function() {
cc.audioEngine.pause(this.currentBgMusic);
this.isMusicPaused = !0;
};
e.prototype.resumMusic = function() {
return n(this, void 0, void 0, function() {
return i(this, function(e) {
switch (e.label) {
case 0:
return null === this.currentBgMusic || this.currentBgMusic < 0 ? [ 4, this.startPlayHallMusic() ] : [ 3, 2 ];

case 1:
e.sent();
return [ 3, 3 ];

case 2:
cc.audioEngine.resume(this.currentBgMusic);
this.isMusicPaused = !1;
cc.sys.localStorage.setItem(s.Global.localStorageId.pauseMusic, "false");
e.label = 3;

case 3:
return [ 2 ];
}
});
});
};
e.prototype.stopBgMusic = function() {
if (!(null === this.currentBgMusic || this.currentBgMusic < 0)) {
cc.audioEngine.stop(this.currentBgMusic);
this.currentBgMusic = -1;
}
};
e.prototype.playSound = function(e, t, o) {
void 0 === t && (t = !1);
void 0 === o && (o = null);
if (e && this.isSoundEnabled) {
!0 !== t && (t = !1);
var n = -1;
if (e instanceof cc.AudioClip) {
n = cc.audioEngine.play(e, t, this.soundVolume);
o && o(n);
} else {
e = this.soundPath + e;
cc.resources.load(e, function(i, a) {
if (i) console.error("playSound failed:" + e); else {
n = cc.audioEngine.play(a, t, this.soundVolume);
o && o(n);
}
}.bind(this));
}
}
};
e.prototype.playCommonSoundClickButton = function() {
this.isSoundEnabled && (null !== this.commonSound.clickButton ? cc.audioEngine.play(this.commonSound.clickButton, !1, this.soundVolume) : cc.resources.load(this.commonSoundPath.clickButtonSound, function(e, t) {
if (e) cc.log("playCommonSoundClickButton failed"); else {
this.commonSound.clickButton = t;
cc.audioEngine.play(this.commonSound.clickButton, !1, this.soundVolume);
}
}.bind(this)));
};
e.prototype.setMusicOn = function() {
cc.sys.localStorage.setItem(s.Global.localStorageId.Music, 1);
cc.audioEngine.setVolume(this.currentBgMusic, this.musicVolume);
this.isMusicEnabled = !0;
};
e.prototype.setMusicOff = function() {
cc.sys.localStorage.setItem(s.Global.localStorageId.Music, 0);
cc.audioEngine.setVolume(this.currentBgMusic, 0);
this.isMusicEnabled = !1;
};
e.prototype.getMusicEnabled = function() {
return this.isMusicEnabled;
};
e.prototype.setSoundOn = function() {
cc.sys.localStorage.setItem("Sound", 1);
this.isSoundEnabled = !0;
};
e.prototype.setSoundOff = function() {
cc.sys.localStorage.setItem("Sound", 0);
this.isSoundEnabled = !1;
};
e.prototype.getSoundEnabled = function() {
return this.isSoundEnabled;
};
e.prototype.setMusicVolume = function(e) {
this.musicVolume = parseFloat(e.toFixed(1));
this.musicVolume === parseFloat(cc.sys.localStorage.getItem("MusicVolume")) || cc.sys.localStorage.setItem("MusicVolume", this.musicVolume);
this.currentBgMusic >= 0 && cc.audioEngine.setVolume(this.currentBgMusic, this.musicVolume);
};
e.prototype.getMusicVolume = function() {
return this.musicVolume;
};
e.prototype.setSoundVolume = function(e) {
this.soundVolume = parseFloat(e.toFixed(1));
this.soundVolume === parseFloat(cc.sys.localStorage.getItem("SoundVolume")) || cc.sys.localStorage.setItem("SoundVolume", this.soundVolume);
};
e.prototype.getSoundVolume = function() {
return this.soundVolume;
};
e.prototype.getMuiscList = function() {
return n(this, void 0, void 0, function() {
var e;
return i(this, function(t) {
switch (t.label) {
case 0:
if (this.musicList) return [ 3, 2 ];
e = this;
return [ 4, this._getMusicList() ];

case 1:
e.musicList = t.sent();
t.label = 2;

case 2:
return [ 2, this.musicList ];
}
});
});
};
e.prototype._getMusicList = function() {
var e = this;
return new Promise(function(t) {
r.default.getMusicConfig(function(e) {
t(e);
}.bind(e), function() {
t(null);
});
});
};
return e;
}();
o.default = new l();
cc._RF.pop();
}, {
"./Constant": "Constant",
"./Global": "Global",
"./NetworkLogic": "NetworkLogic",
"./Utils": "Utils"
} ],
BalanceDetails: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "be65czMoyBNIJvk52ThJGff", "BalanceDetails");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/UIManager"), c = e("../../Shared/NetworkLogic"), s = e("LanguageData"), l = cc._decorator, d = l.ccclass, u = l.property, p = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.lytContentRecords = null;
t.lytContentPayTypes = null;
t.lytContentCurrencyTypes = null;
t.nodeTemplatePayType = null;
t.nodeTemplateCurrencyType = null;
t.nodeTemplateRecord = null;
t.nodeScrollView = null;
t.nodeTimes = null;
t.nodePayTypes = null;
t.nodeCurrencyTypes = null;
t.lbTime = null;
t.lbPayType = null;
t.lbCurrencyType = null;
t._startTime = "";
t._endTime = "";
t._payType = "";
t._currencyType = "";
return t;
}
t.prototype.onLoad = function() {
this.nodeTemplatePayType.parent = null;
this.nodeTemplateCurrencyType.parent = null;
this.nodeTemplateRecord.parent = null;
this.hideNodeList();
this.node.parent.parent.on(cc.Node.EventType.TOUCH_END, this.hideNodeList, this);
this.nodeScrollView.on(cc.Node.EventType.TOUCH_END, this.hideNodeList, this);
this.nodeScrollView.on(cc.Node.EventType.TOUCH_CANCEL, this.hideNodeList, this);
};
t.prototype.start = function() {
var e = new Date();
this._startTime = e.format("yyyy-M-d ") + "00:00:00";
this._endTime = e.format("yyyy-MM-dd ") + "23:59:59";
this.createPayTypes();
this.createCurrencyTypes();
};
t.prototype.onDisable = function() {
this.hideNodeList();
};
t.prototype.onDestroy = function() {
this.nodeTemplatePayType.destroy();
this.nodeTemplateCurrencyType.destroy();
this.nodeTemplateRecord.destroy();
this.node.parent.parent.off(cc.Node.EventType.TOUCH_END, this.hideNodeList, this);
this.nodeScrollView.off(cc.Node.EventType.TOUCH_END, this.hideNodeList, this);
this.nodeScrollView.off(cc.Node.EventType.TOUCH_CANCEL, this.hideNodeList, this);
};
t.prototype.onBtnClick = function(e, t) {
"today" === t ? this.selectTimeNode(e.target, t) : "yesterday" === t ? this.selectTimeNode(e.target, t) : "month" === t ? this.selectTimeNode(e.target, t) : "payType" === t ? this.selectPayType(e.target.payTypeCfg) : "currencyType" === t ? this.selectCurrencyType(e.target.currencyTypeCfg) : "nodeTimes" === t ? this.nodeTimes.active = !this.nodeTimes.active : "nodePayTypes" === t ? this.nodePayTypes.active = !this.nodePayTypes.active : "nodeCurrencyTypes" === t && (this.nodeCurrencyTypes.active = !this.nodeCurrencyTypes.active);
};
t.prototype.hideNodeList = function() {
this.nodeTimes.active = !1;
this.nodePayTypes.active = !1;
this.nodeCurrencyTypes.active = !1;
};
t.prototype.selectTimeNode = function(e, t) {
this.nodeTimes.active = !1;
this.lbTime.string = e.getChildByName("name").getComponent(cc.Label).string;
if ("today" === t) {
var o = new Date();
this._startTime = o.format("yyyy-M-d ") + "00:00:00";
this._endTime = o.format("yyyy-MM-dd ") + "23:59:59";
} else if ("yesterday" === t) {
(o = new Date()).setDate(o.getDate() - 1);
this._startTime = o.format("yyyy-M-d ") + "00:00:00";
this._endTime = o.format("yyyy-MM-dd ") + "23:59:59";
} else if ("month" === t) {
(o = new Date()).setDate(1);
this._startTime = o.format("yyyy-M-d ") + "00:00:00";
this._endTime = new Date().format("yyyy-MM-dd ") + "23:59:59";
}
this.queryRecords();
};
t.prototype.selectPayType = function(e) {
this.nodePayTypes.active = !1;
this.lbPayType.string = e ? e.label : s.t("PlayerCenter.all");
this._payType = e ? e.value : "all";
this.queryRecords();
};
t.prototype.selectCurrencyType = function(e) {
this.nodeCurrencyTypes.active = !1;
this.lbCurrencyType.string = e ? e.currencyName : s.t("PlayerCenter.all");
this._currencyType = e ? e.currencyType : null;
this.queryRecords();
};
t.prototype.createPayTypes = function() {
var e = cc.instantiate(this.nodeTemplatePayType);
e.getChildByName("name").getComponent(cc.Label).string = s.t("PlayerCenter.all");
e.parent = this.lytContentPayTypes.node;
this.selectPayType(void 0);
c.default.payTypeList(function(e) {
var t = this;
e.coinTypeList.forEach(function(e) {
var o = cc.instantiate(t.nodeTemplatePayType);
o.getChildByName("name").getComponent("LocalizedLabel").dataID = e.label;
o.payTypeCfg = e;
o.parent = t.lytContentPayTypes.node;
});
}.bind(this));
};
t.prototype.createCurrencyTypes = function() {
var e = cc.instantiate(this.nodeTemplateCurrencyType);
e.getChildByName("name").getComponent(cc.Label).string = s.t("PlayerCenter.all");
e.parent = this.lytContentCurrencyTypes.node;
this.selectCurrencyType(void 0);
c.default.currencyTypeList(function(e) {
for (var t = 0; t < e.length; t++) {
var o = e[t], n = cc.instantiate(this.nodeTemplateCurrencyType);
n.getChildByName("name").getComponent("LocalizedLabel").dataID = o.currencyName;
n.currencyTypeCfg = o;
n.parent = this.lytContentCurrencyTypes.node;
}
}.bind(this));
};
t.prototype.queryRecords = function() {
r.default.showLoadingUI();
c.default.balanceDetailsList(this._startTime, this._endTime, this._payType, this._currencyType, function(e) {
var t = this;
r.default.hideLoadingUI();
this.lytContentRecords.node.removeAllChildren();
this.lytContentRecords.node.destroyAllChildren();
cc.log("===列表数据：", e);
e.data && e.data.forEach(function(e) {
var o = cc.instantiate(t.nodeTemplateRecord);
o.parent = t.lytContentRecords.node;
o.getChildByName("time").getComponent(cc.Label).string = e.time;
o.getChildByName("type").getComponent(cc.Label).string = e.type;
o.getChildByName("currencyType").getComponent(cc.Label).string = e.currencyName;
o.getChildByName("yue").getComponent(cc.Label).string = e.currencySymbol + e.changeBalance;
t.lytContentRecords.node.children.length % 2 == 1 && (o.getChildByName("bg").opacity = 100);
if (parseFloat(e.money) > 0) {
o.getChildByName("money").color = cc.color(80, 192, 255);
o.getChildByName("money").getComponent(cc.Label).string = "+" + e.currencySymbol + e.money;
} else {
o.getChildByName("money").color = cc.color(190, 74, 74);
o.getChildByName("money").getComponent(cc.Label).string = "-" + e.currencySymbol + Math.abs(e.money);
}
o.active = !0;
});
}.bind(this));
};
a([ u(cc.Layout) ], t.prototype, "lytContentRecords", void 0);
a([ u(cc.Layout) ], t.prototype, "lytContentPayTypes", void 0);
a([ u(cc.Layout) ], t.prototype, "lytContentCurrencyTypes", void 0);
a([ u(cc.Node) ], t.prototype, "nodeTemplatePayType", void 0);
a([ u(cc.Node) ], t.prototype, "nodeTemplateCurrencyType", void 0);
a([ u(cc.Node) ], t.prototype, "nodeTemplateRecord", void 0);
a([ u(cc.Node) ], t.prototype, "nodeScrollView", void 0);
a([ u(cc.Node) ], t.prototype, "nodeTimes", void 0);
a([ u(cc.Node) ], t.prototype, "nodePayTypes", void 0);
a([ u(cc.Node) ], t.prototype, "nodeCurrencyTypes", void 0);
a([ u(cc.Label) ], t.prototype, "lbTime", void 0);
a([ u(cc.Label) ], t.prototype, "lbPayType", void 0);
a([ u(cc.Label) ], t.prototype, "lbCurrencyType", void 0);
return a([ d ], t);
}(cc.Component);
o.default = p;
cc._RF.pop();
}, {
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
LanguageData: "LanguageData"
} ],
BaoxiangAni: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "f6526j6XcNI37gkFNLOwERh", "BaoxiangAni");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../Shared/PopWindowManager"), c = e("../Shared/AudioManager"), s = cc._decorator, l = s.ccclass, d = s.property, u = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.hengfu = null;
t.labHengfu = null;
t.goldIcon = null;
t.baoxiangAni = null;
t.bgAni = null;
t.liziAni = null;
return t;
}
t.prototype.onLoad = function() {
this.liziAni.setCompleteListener(this.liziComplete.bind(this));
};
t.prototype.start = function() {};
t.prototype.onEnable = function() {
this.liziAni.animation = "tx_lizi";
this.baoxiangAni.animation = "baoxiang_chuxian";
this.bgAni.animation = "tx_guang";
};
t.prototype.updateMoney = function(e, t) {
this.endPos = t;
this.labHengfu.string = e;
this.scheduleOnce(function() {
this.node.getComponent(cc.Animation).play("baoxiangAni");
}.bind(this), .8);
};
t.prototype.baoxiangComplete = function() {
console.log();
this.bgAni.node.active = !0;
this.liziAni.node.active = !0;
};
t.prototype.liziComplete = function() {};
t.prototype.playGoldAnimal = function(e, t) {
for (var o = [], n = 0; n < 10; ++n) {
var i = cc.instantiate(this.goldIcon);
o.push(i);
o[n].parent = this.node;
var a = new cc.Vec2(this.node.getPosition().x, this.node.getPosition().y);
o[n].setPosition(a);
}
var r = 0;
this.schedule(function() {
o[r].active = !0;
var t = new cc.Vec2(e.x, e.y);
o[r].runAction(cc.sequence(cc.moveTo(.07 * 10 - .07 * r, t), cc.callFunc(function() {
cc.log("===执行动画完成k：", r);
o[r] && (o[r].active = !1);
}.bind(this))));
r++;
}.bind(this), .07, 9);
this.scheduleOnce(function() {
t();
}.bind(this), .07 * 10 + .5);
};
t.prototype.onBtnClick = function() {
c.default.playSound("button");
cc.log("===点击领取按钮");
this.playGoldAnimal(this.endPos, function() {
r.default.openNext();
this.node.destroy();
}.bind(this));
};
a([ d(cc.Node) ], t.prototype, "hengfu", void 0);
a([ d(cc.Label) ], t.prototype, "labHengfu", void 0);
a([ d(cc.Node) ], t.prototype, "goldIcon", void 0);
a([ d(sp.Skeleton) ], t.prototype, "baoxiangAni", void 0);
a([ d(sp.Skeleton) ], t.prototype, "bgAni", void 0);
a([ d(sp.Skeleton) ], t.prototype, "liziAni", void 0);
return a([ l ], t);
}(cc.Component);
o.default = u;
cc._RF.pop();
}, {
"../Shared/AudioManager": "AudioManager",
"../Shared/PopWindowManager": "PopWindowManager"
} ],
BasicPlayerInfoLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "7d7f0n7iIZHf5Q8HP+whw6m", "BasicPlayerInfoLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Models/Player"), c = e("../../Shared/NetworkLogic"), s = e("../../Shared/UIManager"), l = e("../../Shared/Global"), d = e("../../Common/RemoteSprite"), u = e("../../Shared/AudioManager"), p = e("../WeChatBind/WeChatBindMethods"), h = e("../../Shared/Utils"), f = e("LanguageData"), g = cc._decorator, y = g.ccclass, m = g.property, v = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.pfbChangeHead = null;
t.pfbVipUI = null;
t.pfbWeChatBindMethods = null;
t.rspHead = null;
t.lbUserID = null;
t.lbVip = null;
t.lbNextVip = null;
t.lbCurExp = null;
t.lbNextExp = null;
t.damaLabel = null;
t.labNeedBet = null;
t.labNeedDeposit = null;
t.percentLabel = null;
t.barExp = null;
t.lbUserID2 = null;
t.lbNickname = null;
t.lbRealName = null;
t.lbQQ = null;
t.lbWeChat = null;
t.lbPhone = null;
t.lbMail = null;
t.nodeBtnEdit = null;
t.nodeBtnSave = null;
t.ebNickname = null;
t.ebQQ = null;
t.ebMail = null;
t.btnWechatBind = null;
t.btnRefreshWechatBind = null;
t.percent = null;
t._isWeChatBinded = !1;
t._isEnableWeChatBind = !1;
t._showBtnRefreshWeChatBind = !1;
return t;
}
t.prototype.onLoad = function() {
this.nodeBtnEdit.active = !0;
this.nodeBtnSave.active = !1;
this.barExp.barSprite.node.opacity = 0;
this.refreshUI();
cc.director.on(l.Global.UserEvent.PlayerPyChanged, this.onPlayerPyChanged, this);
};
t.prototype.start = function() {
var e = this;
this.scheduleOnce(function() {
cc.log("===this.barExp.node.width:", e.barExp.node.width);
e.barExp.totalLength = e.barExp.node.width;
e.barExp.barSprite.node.opacity = 255;
e.pullUserData();
});
};
t.prototype.onEnable = function() {};
t.prototype.onDisable = function() {
this.editModeEnabled(!1);
};
t.prototype.onDestroy = function() {
cc.director.off(l.Global.UserEvent.PlayerPyChanged, this.onPlayerPyChanged, this);
};
t.prototype.onBtnClick = function(e, t) {
var o = this;
if ("edit" === t) {
this.ebNickname.string = this.lbNickname.string;
this.ebQQ.string = this.lbQQ.string;
this.ebMail.string = this.lbMail.string;
this.editModeEnabled(!0);
} else if ("save" === t) {
s.default.showLoadingUI();
c.default.editPersonalInfo({
email: this.ebMail.string,
nickName: this.ebNickname.string,
qq: this.ebQQ.string
}, function() {
s.default.hideLoadingUI();
s.default.showToastUI(f.t("BasicsJS.editor_succ"), l.Global.ToastType.OK);
this.editModeEnabled(!1);
r.default.setPy("nickname", this.ebNickname.string);
r.default.setPy("QQ", this.ebQQ.string);
r.default.setPy("mail", this.ebMail.string);
this.refreshUI();
}.bind(this));
} else if ("vip" === t) cc.instantiate(this.pfbVipUI).parent = cc.find("Canvas"); else if ("head" === t) cc.instantiate(this.pfbChangeHead).parent = cc.find("Canvas"); else if ("wechatbind" === t) {
u.default.playSound("button");
var n = cc.instantiate(this.pfbWeChatBindMethods).getComponent(p.WeChatBindMethods);
n.init(cc.find("Canvas"), {
onCloseCallback: function() {
n.close(!1);
},
onBindLocalCallback: function(e) {
if (e) {
o._showBtnRefreshWeChatBind = !0;
o.refreshWeChatBindUI();
}
n.close(!1);
},
onBindShareCallback: function(e) {
if (e) {
o._showBtnRefreshWeChatBind = !0;
o.refreshWeChatBindUI();
}
n.close(!1);
}
});
} else if ("wechatbindrefresh" === t) {
u.default.playSound("button");
this._validateWeChatBindStatus(function(e) {
e ? o.pullUserData() : o.refreshWeChatBindUI();
}, !0);
}
};
t.prototype.onPlayerPyChanged = function() {
this.refreshUI();
};
t.prototype.pullUserData = function() {
var e = this, t = h.default.asyncSpawnCallback(2, function() {
e.refreshWeChatBindUI();
c.default.userInfo({
loadMoney: !0
}, function(t) {
s.default.hideLoadingUI();
e.percent = t.percentage;
e.labNeedBet.string = t.percentage.needValidBetNumber;
e.labNeedDeposit.string = t.percentage.needCountInMoney;
e.percentLabel.string = t.percentage.percentage.toFixed(2) + "%";
e.barExp.progress = t.percentage.percentage / 100;
e.lbVip.string = r.default.getPy("vip");
e.lbNextVip.string = t.userVipSettingList[1] && t.userVipSettingList[1].userVip;
if (t.percentage.percentage >= 100) {
e.damaLabel.node.active = !0;
e.damaLabel.string = f.t("new_maxVipLV");
e.labNeedBet.node.parent.active = !1;
e.labNeedDeposit.node.parent.active = !1;
} else e.damaLabel.node.active = !1;
r.default.setPy("serverData", t);
}, function(e) {
e && r.default.logout();
});
});
s.default.showLoadingUI();
this._validateIsEnableWeChatBind(t);
this._validateIsWeChatBinded(t);
};
t.prototype.refreshUI = function() {
this.lbUserID.string = r.default.getPy("userID");
this.lbCurExp.string = l.Global.currencySymbol + r.default.getPy("exp");
this.lbUserID2.string = r.default.getPy("userID");
this.lbNickname.string = r.default.getPy("nickname");
this.lbRealName.string = r.default.getPy("realName");
this.lbQQ.string = r.default.getPy("QQ");
this.lbWeChat.string = this._isWeChatBinded ? f.t("BasicsJS.yi_bind") : f.t("BasicsJS.wu_bind");
this.lbPhone.string = r.default.getPy("phone");
this.lbMail.string = r.default.getPy("mail");
this.refreshWeChatBindUI();
r.default.getPy("vip") > 9 && (this.lbVip.node.parent.width = 132);
r.default.getPy("vip") + 1 > 9 && (this.lbNextVip.node.parent.width = 132);
r.default.getPy("head") && (this.rspHead.url = r.default.getPy("head"));
r.default.getPy("expNextVip");
};
t.prototype.refreshWeChatBindUI = function() {
var e = this._isEnableWeChatBind;
this.btnWechatBind.node.active = !!e && !this._isWeChatBinded && !this._showBtnRefreshWeChatBind;
this.btnRefreshWechatBind.node.active = !!e && this._showBtnRefreshWeChatBind;
this._showBtnRefreshWeChatBind && (this._showBtnRefreshWeChatBind = !1);
};
t.prototype.editModeEnabled = function(e) {
this.ebNickname.node.active = e;
this.ebQQ.node.active = e;
this.ebMail.node.active = e;
this.lbNickname.node.active = !e;
this.lbQQ.node.active = !e;
this.lbMail.node.active = !e;
this.nodeBtnEdit.active = !e;
this.nodeBtnSave.active = e;
};
t.prototype._validateWeChatBindStatus = function(e, t) {
void 0 === t && (t = !1);
t && s.default.showLoadingUI();
c.default.bindWeChatInfo({}, function(o) {
cc.log("====查询微信绑定状态rec:", o);
t && s.default.hideLoadingUI();
e(o);
}, function() {
cc.log("====查询微信绑定状态错误");
t && s.default.hideLoadingUI();
e(!1);
});
};
t.prototype._validateIsEnableWeChatBind = function(e, t) {
var o = this;
void 0 === t && (t = !1);
t && s.default.showLoadingUI();
c.default.bindWeChatIsEnabled({}, function(n) {
cc.log("====查询打开微信绑定设置:", n.isEnabled);
t && s.default.hideLoadingUI();
o._isEnableWeChatBind = n.isEnabled;
e(n.isEnabled);
}, function() {
cc.log("====查询打开微信绑定设置错误");
t && s.default.hideLoadingUI();
e(!1);
});
};
t.prototype._validateIsWeChatBinded = function(e, t) {
var o = this;
void 0 === t && (t = !1);
t && s.default.showLoadingUI();
c.default.bindWeChatInfo({}, function(n) {
cc.log("====查询微信是否绑定:", n);
t && s.default.hideLoadingUI();
o._isWeChatBinded = n;
e(n);
}, function() {
cc.log("====查询微信是否绑定");
t && s.default.hideLoadingUI();
e(!1);
});
};
a([ m(cc.Prefab) ], t.prototype, "pfbChangeHead", void 0);
a([ m(cc.Prefab) ], t.prototype, "pfbVipUI", void 0);
a([ m(cc.Prefab) ], t.prototype, "pfbWeChatBindMethods", void 0);
a([ m(d.default) ], t.prototype, "rspHead", void 0);
a([ m(cc.Label) ], t.prototype, "lbUserID", void 0);
a([ m(cc.Label) ], t.prototype, "lbVip", void 0);
a([ m(cc.Label) ], t.prototype, "lbNextVip", void 0);
a([ m(cc.Label) ], t.prototype, "lbCurExp", void 0);
a([ m(cc.Label) ], t.prototype, "lbNextExp", void 0);
a([ m(cc.Label) ], t.prototype, "damaLabel", void 0);
a([ m(cc.Label) ], t.prototype, "labNeedBet", void 0);
a([ m(cc.Label) ], t.prototype, "labNeedDeposit", void 0);
a([ m(cc.Label) ], t.prototype, "percentLabel", void 0);
a([ m(cc.ProgressBar) ], t.prototype, "barExp", void 0);
a([ m(cc.Label) ], t.prototype, "lbUserID2", void 0);
a([ m(cc.Label) ], t.prototype, "lbNickname", void 0);
a([ m(cc.Label) ], t.prototype, "lbRealName", void 0);
a([ m(cc.Label) ], t.prototype, "lbQQ", void 0);
a([ m(cc.Label) ], t.prototype, "lbWeChat", void 0);
a([ m(cc.Label) ], t.prototype, "lbPhone", void 0);
a([ m(cc.Label) ], t.prototype, "lbMail", void 0);
a([ m(cc.Node) ], t.prototype, "nodeBtnEdit", void 0);
a([ m(cc.Node) ], t.prototype, "nodeBtnSave", void 0);
a([ m(cc.EditBox) ], t.prototype, "ebNickname", void 0);
a([ m(cc.EditBox) ], t.prototype, "ebQQ", void 0);
a([ m(cc.EditBox) ], t.prototype, "ebMail", void 0);
a([ m(cc.Button) ], t.prototype, "btnWechatBind", void 0);
a([ m(cc.Button) ], t.prototype, "btnRefreshWechatBind", void 0);
return a([ y ], t);
}(cc.Component);
o.default = v;
cc._RF.pop();
}, {
"../../Common/RemoteSprite": "RemoteSprite",
"../../Models/Player": "Player",
"../../Shared/AudioManager": "AudioManager",
"../../Shared/Global": "Global",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
"../../Shared/Utils": "Utils",
"../WeChatBind/WeChatBindMethods": "WeChatBindMethods",
LanguageData: "LanguageData"
} ],
BetRecordLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "36b7dvUAyZLw5H/Q68EGCTk", "BetRecordLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/NetworkLogic"), c = e("../../Common/CommonToggleContainer"), s = e("../../Shared/UIManager"), l = e("../../Shared/Global"), d = e("../../Shared/Utils"), u = e("LanguageData"), p = cc._decorator, h = p.ccclass, f = p.property, g = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.toggleContainer = null;
t.lytContentRecords = null;
t.lytContentGames = null;
t.nodeTemplateGame = null;
t.nodeTemplateRecord = null;
t.nodeScrollView = null;
t.nodeTimes = null;
t.nodeGames = null;
t.lbTime = null;
t.lbGame = null;
t._startTime = "";
t._endTime = "";
t._gameType = "";
t._platform = "";
return t;
}
t.prototype.onLoad = function() {
this.nodeTemplateGame.parent = null;
this.nodeTemplateRecord.parent = null;
this.hideNodeList();
this.toggleContainer.node.removeAllChildren();
this.toggleContainer.node.destroyAllChildren();
this.node.parent.parent.on(cc.Node.EventType.TOUCH_END, this.hideNodeList, this);
this.nodeScrollView.on(cc.Node.EventType.TOUCH_END, this.hideNodeList, this);
this.nodeScrollView.on(cc.Node.EventType.TOUCH_CANCEL, this.hideNodeList, this);
};
t.prototype.start = function() {
var e = new Date();
this._startTime = e.format("yyyy-M-d ") + "00:00:00";
this._endTime = e.format("yyyy-MM-dd ") + "23:59:59";
this.createGameTypes();
};
t.prototype.onDisable = function() {
this.hideNodeList();
};
t.prototype.onDestroy = function() {
this.nodeTemplateGame.destroy();
this.nodeTemplateRecord.destroy();
this.node.parent.parent.off(cc.Node.EventType.TOUCH_END, this.hideNodeList, this);
this.nodeScrollView.off(cc.Node.EventType.TOUCH_END, this.hideNodeList, this);
this.nodeScrollView.off(cc.Node.EventType.TOUCH_CANCEL, this.hideNodeList, this);
};
t.prototype.onBtnClick = function(e, t) {
if ("today" === t) this.selectTimeNode(e.target, t); else if ("yesterday" === t) this.selectTimeNode(e.target, t); else if ("month" === t) this.selectTimeNode(e.target, t); else if ("gameType" === t) this.selectGame(e.target.gameCfg); else if ("nodeTimes" === t) this.nodeTimes.active = !this.nodeTimes.active; else if ("nodeGames" === t) this.nodeGames.active = !this.nodeGames.active; else if ("copy" === t) {
d.default.copyText(e.target.parent.recordConfig.billNo);
s.default.showToastUI(u.t("HallUI.copy_succ"), l.Global.ToastType.OK);
}
};
t.prototype.onToggleSeclected = function(e) {
this.hideNodeList();
this._gameType = e.userData.gameType;
this.createGameList(e.userData.children);
};
t.prototype.hideNodeList = function() {
this.nodeTimes.active = !1;
this.nodeGames.active = !1;
};
t.prototype.selectTimeNode = function(e, t) {
this.nodeTimes.active = !1;
this.lbTime.string = e.getChildByName("name").getComponent(cc.Label).string;
if ("today" === t) {
var o = new Date();
this._startTime = o.format("yyyy-M-d ") + "00:00:00";
this._endTime = o.format("yyyy-MM-dd ") + "23:59:59";
} else if ("yesterday" === t) {
(o = new Date()).setDate(o.getDate() - 1);
this._startTime = o.format("yyyy-M-d ") + "00:00:00";
this._endTime = o.format("yyyy-MM-dd ") + "23:59:59";
} else if ("month" === t) {
(o = new Date()).setDate(1);
this._startTime = o.format("yyyy-M-d ") + "00:00:00";
this._endTime = new Date().format("yyyy-MM-dd ") + "23:59:59";
}
this.queryRecords();
};
t.prototype.selectGame = function(e) {
this.nodeGames.active = !1;
this.lbGame.string = e ? e.gameTitleCn : u.t("PlayerCenter.all");
this._platform = e ? e.platform : "all";
this.queryRecords();
};
t.prototype.createGameTypes = function() {
s.default.showLoadingUI();
r.default.gameTypeList(function(e) {
var t = this;
s.default.hideLoadingUI();
e.forEach(function(e) {
t.toggleContainer.addDefaultToggle(e.gameTitleCn.substr(0, 2), e, 160);
});
}.bind(this));
};
t.prototype.createGameList = function(e) {
var t = this;
this.lytContentGames.node.removeAllChildren();
this.lytContentGames.node.destroyAllChildren();
var o = cc.instantiate(this.nodeTemplateGame);
o.getChildByName("name").getComponent(cc.Label).string = u.t("PlayerCenter.all");
o.parent = this.lytContentGames.node;
this.selectGame(void 0);
e.forEach(function(e) {
var o = cc.instantiate(t.nodeTemplateGame);
o.getChildByName("name").getComponent("LocalizedLabel").dataID = e.gameTitleCn;
o.gameCfg = e;
o.parent = t.lytContentGames.node;
});
};
t.prototype.queryRecords = function() {
this.lytContentRecords.node.removeAllChildren();
this.lytContentRecords.node.destroyAllChildren();
s.default.showLoadingUI();
r.default.findUserRecord(this._startTime, this._endTime, this._gameType, this._platform, function(e) {
var t = this;
s.default.hideLoadingUI();
e.data && e.data.forEach(function(e) {
var o = cc.instantiate(t.nodeTemplateRecord);
o.parent = t.lytContentRecords.node;
o.recordConfig = e;
o.getChildByName("time").getComponent(cc.Label).string = e.beijingTime;
o.getChildByName("num").getComponent(cc.Label).string = e.gameName + e.billNo;
o.getChildByName("money").getComponent(cc.Label).string = e.currencySymbol + e.betNumber;
o.getChildByName("dml").getComponent(cc.Label).string = e.currencySymbol + e.dml;
e.netNumber >= 0 ? o.getChildByName("given").getComponent(cc.Label).string = "+" + e.currencySymbol + Math.abs(e.netNumber) : o.getChildByName("given").getComponent(cc.Label).string = "-" + e.currencySymbol + Math.abs(e.netNumber);
t.lytContentRecords.node.children.length % 2 == 1 && (o.getChildByName("bg").opacity = 100);
parseFloat(e.netNumber) > 0 ? o.getChildByName("given").color = cc.color(74, 190, 139) : o.getChildByName("given").color = cc.color(190, 74, 74);
});
}.bind(this));
};
a([ f(c.default) ], t.prototype, "toggleContainer", void 0);
a([ f(cc.Layout) ], t.prototype, "lytContentRecords", void 0);
a([ f(cc.Layout) ], t.prototype, "lytContentGames", void 0);
a([ f(cc.Node) ], t.prototype, "nodeTemplateGame", void 0);
a([ f(cc.Node) ], t.prototype, "nodeTemplateRecord", void 0);
a([ f(cc.Node) ], t.prototype, "nodeScrollView", void 0);
a([ f(cc.Node) ], t.prototype, "nodeTimes", void 0);
a([ f(cc.Node) ], t.prototype, "nodeGames", void 0);
a([ f(cc.Label) ], t.prototype, "lbTime", void 0);
a([ f(cc.Label) ], t.prototype, "lbGame", void 0);
return a([ h ], t);
}(cc.Component);
o.default = g;
cc._RF.pop();
}, {
"../../Common/CommonToggleContainer": "CommonToggleContainer",
"../../Shared/Global": "Global",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
"../../Shared/Utils": "Utils",
LanguageData: "LanguageData"
} ],
BindDevice: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "426a2ErgshGubDVD4z6GXsZ", "BindDevice");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Models/Player"), c = e("../../Shared/NetworkLogic"), s = e("../../Shared/UIManager"), l = e("../../Shared/AudioManager"), d = e("../../Shared/Global"), u = e("LanguageData"), p = cc._decorator, h = p.ccclass, f = p.property, g = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.nodeBtnBind = null;
t.nodeBtnUnbind = null;
t.labBind = null;
t.passwordLayer = null;
t.edPassword = null;
return t;
}
t.prototype.start = function() {
var e = {
userId: r.default.getPy("userID")
};
s.default.showLoadingUI();
c.default.userGetVisitorBindingStatus(e, function(e) {
s.default.hideLoadingUI();
cc.log("===绑定状态rec：", e);
if (1 === e) {
this.nodeBtnBind.active = !1;
this.nodeBtnUnbind.active = !0;
this.labBind.string = u.t("SettingLayer.bind_shuom6");
this.labBind.node.active = !0;
} else if (2 === e) {
this.nodeBtnBind.active = !1;
this.nodeBtnUnbind.active = !0;
this.labBind.string = u.t("SettingLayer.bind_shuom7");
this.labBind.node.active = !0;
} else if (0 === e) {
this.nodeBtnBind.active = !0;
this.nodeBtnUnbind.active = !1;
this.labBind.node.active = !1;
}
}.bind(this), function() {
s.default.hideLoadingUI();
}.bind(this));
};
t.prototype.onBtnBind = function() {
l.default.playSound("button");
var e = {
userId: r.default.getPy("userID")
};
s.default.showLoadingUI();
c.default.userVisitorBindingDevice(e, function(e) {
s.default.hideLoadingUI();
s.default.showToastUI(u.t("BasicsJS.bind_succ") + "！", d.Global.ToastType.OK);
cc.log("===绑定rec：", e);
this.nodeBtnBind.active = !1;
this.nodeBtnUnbind.active = !0;
this.labBind.string = u.t("SettingLayer.bind_shuom6");
this.labBind.node.active = !0;
}.bind(this), function() {
s.default.hideLoadingUI();
}.bind(this));
};
t.prototype.onBtnUnbind = function() {
l.default.playSound("button");
this.edPassword.string = "";
this.passwordLayer.active = !0;
};
t.prototype.onPasswordLayerOk = function() {
l.default.playSound("button");
if (this.edPassword.string) {
var e = {
userId: r.default.getPy("userID"),
pwd: this.edPassword.string
};
cc.log("");
s.default.showLoadingUI();
c.default.userVisitorUntieDevice(e, function(e) {
s.default.hideLoadingUI();
cc.log("===解除绑定rec：", e);
s.default.showToastUI(u.t("BasicsJS.remove_bind_succ") + "！", d.Global.ToastType.OK);
this.passwordLayer.active = !1;
this.nodeBtnUnbind.active = !1;
this.labBind.node.active = !1;
this.nodeBtnBind.active = !0;
}.bind(this), function() {
s.default.hideLoadingUI();
}.bind(this));
} else s.default.showToastUI(u.t("BasicsJS.inp_paw") + "!", d.Global.ToastType.Warnning);
};
t.prototype.onPasswordLayerClose = function() {
l.default.playSound("button");
this.passwordLayer.active = !1;
this.edPassword.string = "";
};
a([ f(cc.Node) ], t.prototype, "nodeBtnBind", void 0);
a([ f(cc.Node) ], t.prototype, "nodeBtnUnbind", void 0);
a([ f(cc.Label) ], t.prototype, "labBind", void 0);
a([ f(cc.Node) ], t.prototype, "passwordLayer", void 0);
a([ f(cc.EditBox) ], t.prototype, "edPassword", void 0);
return a([ h ], t);
}(cc.Component);
o.default = g;
cc._RF.pop();
}, {
"../../Models/Player": "Player",
"../../Shared/AudioManager": "AudioManager",
"../../Shared/Global": "Global",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
LanguageData: "LanguageData"
} ],
CQRCode: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "da4efd9aaNAlK5pA0Ii3M8z", "CQRCode");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
function r(e) {
this.mode = s.MODE_8BIT_BYTE;
this.data = e;
}
r.prototype = {
getLength: function() {
return this.data.length;
},
write: function(e) {
for (var t = 0; t < this.data.length; t++) e.put(this.data.charCodeAt(t), 8);
}
};
var c = function(e, t) {
this.typeNumber = e;
this.errorCorrectLevel = t;
this.modules = null;
this.moduleCount = 0;
this.dataCache = null;
this.dataList = new Array();
};
c.prototype = {
addData: function(e) {
var t = new r(e);
this.dataList.push(t);
this.dataCache = null;
},
isDark: function(e, t) {
if (e < 0 || this.moduleCount <= e || t < 0 || this.moduleCount <= t) throw new Error(e + "," + t);
return this.modules[e][t];
},
getModuleCount: function() {
return this.moduleCount;
},
make: function() {
if (this.typeNumber < 1) {
var e = 1;
for (e = 1; e < 40; e++) {
for (var t = h.getRSBlocks(e, this.errorCorrectLevel), o = new f(), n = 0, i = 0; i < t.length; i++) n += t[i].dataCount;
for (i = 0; i < this.dataList.length; i++) {
var a = this.dataList[i];
o.put(a.mode, 4);
o.put(a.getLength(), l.getLengthInBits(a.mode, e));
a.write(o);
}
if (o.getLengthInBits() <= 8 * n) break;
}
this.typeNumber = e;
}
this.makeImpl(!1, this.getBestMaskPattern());
},
makeImpl: function(e, t) {
this.moduleCount = 4 * this.typeNumber + 17;
this.modules = new Array(this.moduleCount);
for (var o = 0; o < this.moduleCount; o++) {
this.modules[o] = new Array(this.moduleCount);
for (var n = 0; n < this.moduleCount; n++) this.modules[o][n] = null;
}
this.setupPositionProbePattern(0, 0);
this.setupPositionProbePattern(this.moduleCount - 7, 0);
this.setupPositionProbePattern(0, this.moduleCount - 7);
this.setupPositionAdjustPattern();
this.setupTimingPattern();
this.setupTypeInfo(e, t);
this.typeNumber >= 7 && this.setupTypeNumber(e);
null == this.dataCache && (this.dataCache = c.createData(this.typeNumber, this.errorCorrectLevel, this.dataList));
this.mapData(this.dataCache, t);
},
setupPositionProbePattern: function(e, t) {
for (var o = -1; o <= 7; o++) if (!(e + o <= -1 || this.moduleCount <= e + o)) for (var n = -1; n <= 7; n++) t + n <= -1 || this.moduleCount <= t + n || (this.modules[e + o][t + n] = 0 <= o && o <= 6 && (0 == n || 6 == n) || 0 <= n && n <= 6 && (0 == o || 6 == o) || 2 <= o && o <= 4 && 2 <= n && n <= 4);
},
getBestMaskPattern: function() {
for (var e = 0, t = 0, o = 0; o < 8; o++) {
this.makeImpl(!0, o);
var n = l.getLostPoint(this);
if (0 == o || e > n) {
e = n;
t = o;
}
}
return t;
},
createMovieClip: function(e, t, o) {
var n = e.createEmptyMovieClip(t, o);
this.make();
for (var i = 0; i < this.modules.length; i++) for (var a = 1 * i, r = 0; r < this.modules[i].length; r++) {
var c = 1 * r;
if (this.modules[i][r]) {
n.beginFill(0, 100);
n.moveTo(c, a);
n.lineTo(c + 1, a);
n.lineTo(c + 1, a + 1);
n.lineTo(c, a + 1);
n.endFill();
}
}
return n;
},
setupTimingPattern: function() {
for (var e = 8; e < this.moduleCount - 8; e++) null == this.modules[e][6] && (this.modules[e][6] = e % 2 == 0);
for (var t = 8; t < this.moduleCount - 8; t++) null == this.modules[6][t] && (this.modules[6][t] = t % 2 == 0);
},
setupPositionAdjustPattern: function() {
for (var e = l.getPatternPosition(this.typeNumber), t = 0; t < e.length; t++) for (var o = 0; o < e.length; o++) {
var n = e[t], i = e[o];
if (null == this.modules[n][i]) for (var a = -2; a <= 2; a++) for (var r = -2; r <= 2; r++) this.modules[n + a][i + r] = -2 == a || 2 == a || -2 == r || 2 == r || 0 == a && 0 == r;
}
},
setupTypeNumber: function(e) {
for (var t = l.getBCHTypeNumber(this.typeNumber), o = 0; o < 18; o++) {
var n = !e && 1 == (t >> o & 1);
this.modules[Math.floor(o / 3)][o % 3 + this.moduleCount - 8 - 3] = n;
}
for (o = 0; o < 18; o++) {
n = !e && 1 == (t >> o & 1);
this.modules[o % 3 + this.moduleCount - 8 - 3][Math.floor(o / 3)] = n;
}
},
setupTypeInfo: function(e, t) {
for (var o = this.errorCorrectLevel << 3 | t, n = l.getBCHTypeInfo(o), i = 0; i < 15; i++) {
var a = !e && 1 == (n >> i & 1);
i < 6 ? this.modules[i][8] = a : i < 8 ? this.modules[i + 1][8] = a : this.modules[this.moduleCount - 15 + i][8] = a;
}
for (i = 0; i < 15; i++) {
a = !e && 1 == (n >> i & 1);
i < 8 ? this.modules[8][this.moduleCount - i - 1] = a : i < 9 ? this.modules[8][15 - i - 1 + 1] = a : this.modules[8][15 - i - 1] = a;
}
this.modules[this.moduleCount - 8][8] = !e;
},
mapData: function(e, t) {
for (var o = -1, n = this.moduleCount - 1, i = 7, a = 0, r = this.moduleCount - 1; r > 0; r -= 2) {
6 == r && r--;
for (;;) {
for (var c = 0; c < 2; c++) if (null == this.modules[n][r - c]) {
var s = !1;
a < e.length && (s = 1 == (e[a] >>> i & 1));
l.getMask(t, n, r - c) && (s = !s);
this.modules[n][r - c] = s;
if (-1 == --i) {
a++;
i = 7;
}
}
if ((n += o) < 0 || this.moduleCount <= n) {
n -= o;
o = -o;
break;
}
}
}
}
};
c.PAD0 = 236;
c.PAD1 = 17;
c.createData = function(e, t, o) {
for (var n = h.getRSBlocks(e, t), i = new f(), a = 0; a < o.length; a++) {
var r = o[a];
i.put(r.mode, 4);
i.put(r.getLength(), l.getLengthInBits(r.mode, e));
r.write(i);
}
var s = 0;
for (a = 0; a < n.length; a++) s += n[a].dataCount;
if (i.getLengthInBits() > 8 * s) throw new Error("code length overflow. (" + i.getLengthInBits() + ">" + 8 * s + ")");
i.getLengthInBits() + 4 <= 8 * s && i.put(0, 4);
for (;i.getLengthInBits() % 8 != 0; ) i.putBit(!1);
for (;!(i.getLengthInBits() >= 8 * s); ) {
i.put(c.PAD0, 8);
if (i.getLengthInBits() >= 8 * s) break;
i.put(c.PAD1, 8);
}
return c.createBytes(i, n);
};
c.createBytes = function(e, t) {
for (var o = 0, n = 0, i = 0, a = new Array(t.length), r = new Array(t.length), c = 0; c < t.length; c++) {
var s = t[c].dataCount, d = t[c].totalCount - s;
n = Math.max(n, s);
i = Math.max(i, d);
a[c] = new Array(s);
for (var u = 0; u < a[c].length; u++) a[c][u] = 255 & e.buffer[u + o];
o += s;
var h = l.getErrorCorrectPolynomial(d), f = new p(a[c], h.getLength() - 1).mod(h);
r[c] = new Array(h.getLength() - 1);
for (u = 0; u < r[c].length; u++) {
var g = u + f.getLength() - r[c].length;
r[c][u] = g >= 0 ? f.get(g) : 0;
}
}
var y = 0;
for (u = 0; u < t.length; u++) y += t[u].totalCount;
var m = new Array(y), v = 0;
for (u = 0; u < n; u++) for (c = 0; c < t.length; c++) u < a[c].length && (m[v++] = a[c][u]);
for (u = 0; u < i; u++) for (c = 0; c < t.length; c++) u < r[c].length && (m[v++] = r[c][u]);
return m;
};
for (var s = {
MODE_NUMBER: 1,
MODE_ALPHA_NUM: 2,
MODE_8BIT_BYTE: 4,
MODE_KANJI: 8
}, l = {
PATTERN_POSITION_TABLE: [ [], [ 6, 18 ], [ 6, 22 ], [ 6, 26 ], [ 6, 30 ], [ 6, 34 ], [ 6, 22, 38 ], [ 6, 24, 42 ], [ 6, 26, 46 ], [ 6, 28, 50 ], [ 6, 30, 54 ], [ 6, 32, 58 ], [ 6, 34, 62 ], [ 6, 26, 46, 66 ], [ 6, 26, 48, 70 ], [ 6, 26, 50, 74 ], [ 6, 30, 54, 78 ], [ 6, 30, 56, 82 ], [ 6, 30, 58, 86 ], [ 6, 34, 62, 90 ], [ 6, 28, 50, 72, 94 ], [ 6, 26, 50, 74, 98 ], [ 6, 30, 54, 78, 102 ], [ 6, 28, 54, 80, 106 ], [ 6, 32, 58, 84, 110 ], [ 6, 30, 58, 86, 114 ], [ 6, 34, 62, 90, 118 ], [ 6, 26, 50, 74, 98, 122 ], [ 6, 30, 54, 78, 102, 126 ], [ 6, 26, 52, 78, 104, 130 ], [ 6, 30, 56, 82, 108, 134 ], [ 6, 34, 60, 86, 112, 138 ], [ 6, 30, 58, 86, 114, 142 ], [ 6, 34, 62, 90, 118, 146 ], [ 6, 30, 54, 78, 102, 126, 150 ], [ 6, 24, 50, 76, 102, 128, 154 ], [ 6, 28, 54, 80, 106, 132, 158 ], [ 6, 32, 58, 84, 110, 136, 162 ], [ 6, 26, 54, 82, 110, 138, 166 ], [ 6, 30, 58, 86, 114, 142, 170 ] ],
G15: 1335,
G18: 7973,
G15_MASK: 21522,
getBCHTypeInfo: function(e) {
for (var t = e << 10; l.getBCHDigit(t) - l.getBCHDigit(l.G15) >= 0; ) t ^= l.G15 << l.getBCHDigit(t) - l.getBCHDigit(l.G15);
return (e << 10 | t) ^ l.G15_MASK;
},
getBCHTypeNumber: function(e) {
for (var t = e << 12; l.getBCHDigit(t) - l.getBCHDigit(l.G18) >= 0; ) t ^= l.G18 << l.getBCHDigit(t) - l.getBCHDigit(l.G18);
return e << 12 | t;
},
getBCHDigit: function(e) {
for (var t = 0; 0 != e; ) {
t++;
e >>>= 1;
}
return t;
},
getPatternPosition: function(e) {
return l.PATTERN_POSITION_TABLE[e - 1];
},
getMask: function(e, t, o) {
switch (e) {
case 0:
return (t + o) % 2 == 0;

case 1:
return t % 2 == 0;

case 2:
return o % 3 == 0;

case 3:
return (t + o) % 3 == 0;

case 4:
return (Math.floor(t / 2) + Math.floor(o / 3)) % 2 == 0;

case 5:
return t * o % 2 + t * o % 3 == 0;

case 6:
return (t * o % 2 + t * o % 3) % 2 == 0;

case 7:
return (t * o % 3 + (t + o) % 2) % 2 == 0;

default:
throw new Error("bad maskPattern:" + e);
}
},
getErrorCorrectPolynomial: function(e) {
for (var t = new p([ 1 ], 0), o = 0; o < e; o++) t = t.multiply(new p([ 1, d.gexp(o) ], 0));
return t;
},
getLengthInBits: function(e, t) {
if (1 <= t && t < 10) switch (e) {
case s.MODE_NUMBER:
return 10;

case s.MODE_ALPHA_NUM:
return 9;

case s.MODE_8BIT_BYTE:
case s.MODE_KANJI:
return 8;

default:
throw new Error("mode:" + e);
} else if (t < 27) switch (e) {
case s.MODE_NUMBER:
return 12;

case s.MODE_ALPHA_NUM:
return 11;

case s.MODE_8BIT_BYTE:
return 16;

case s.MODE_KANJI:
return 10;

default:
throw new Error("mode:" + e);
} else {
if (!(t < 41)) throw new Error("type:" + t);
switch (e) {
case s.MODE_NUMBER:
return 14;

case s.MODE_ALPHA_NUM:
return 13;

case s.MODE_8BIT_BYTE:
return 16;

case s.MODE_KANJI:
return 12;

default:
throw new Error("mode:" + e);
}
}
},
getLostPoint: function(e) {
for (var t = e.getModuleCount(), o = 0, n = 0; n < t; n++) for (var i = 0; i < t; i++) {
for (var a = 0, r = e.isDark(n, i), c = -1; c <= 1; c++) if (!(n + c < 0 || t <= n + c)) for (var s = -1; s <= 1; s++) i + s < 0 || t <= i + s || 0 == c && 0 == s || r == e.isDark(n + c, i + s) && a++;
a > 5 && (o += 3 + a - 5);
}
for (n = 0; n < t - 1; n++) for (i = 0; i < t - 1; i++) {
var l = 0;
e.isDark(n, i) && l++;
e.isDark(n + 1, i) && l++;
e.isDark(n, i + 1) && l++;
e.isDark(n + 1, i + 1) && l++;
0 != l && 4 != l || (o += 3);
}
for (n = 0; n < t; n++) for (i = 0; i < t - 6; i++) e.isDark(n, i) && !e.isDark(n, i + 1) && e.isDark(n, i + 2) && e.isDark(n, i + 3) && e.isDark(n, i + 4) && !e.isDark(n, i + 5) && e.isDark(n, i + 6) && (o += 40);
for (i = 0; i < t; i++) for (n = 0; n < t - 6; n++) e.isDark(n, i) && !e.isDark(n + 1, i) && e.isDark(n + 2, i) && e.isDark(n + 3, i) && e.isDark(n + 4, i) && !e.isDark(n + 5, i) && e.isDark(n + 6, i) && (o += 40);
var d = 0;
for (i = 0; i < t; i++) for (n = 0; n < t; n++) e.isDark(n, i) && d++;
return o + Math.abs(100 * d / t / t - 50) / 5 * 10;
}
}, d = {
glog: function(e) {
if (e < 1) throw new Error("glog(" + e + ")");
return d.LOG_TABLE[e];
},
gexp: function(e) {
for (;e < 0; ) e += 255;
for (;e >= 256; ) e -= 255;
return d.EXP_TABLE[e];
},
EXP_TABLE: new Array(256),
LOG_TABLE: new Array(256)
}, u = 0; u < 8; u++) d.EXP_TABLE[u] = 1 << u;
for (u = 8; u < 256; u++) d.EXP_TABLE[u] = d.EXP_TABLE[u - 4] ^ d.EXP_TABLE[u - 5] ^ d.EXP_TABLE[u - 6] ^ d.EXP_TABLE[u - 8];
for (u = 0; u < 255; u++) d.LOG_TABLE[d.EXP_TABLE[u]] = u;
function p(e, t) {
if (null == e.length) throw new Error(e.length + "/" + t);
for (var o = 0; o < e.length && 0 == e[o]; ) o++;
this.num = new Array(e.length - o + t);
for (var n = 0; n < e.length - o; n++) this.num[n] = e[n + o];
}
p.prototype = {
get: function(e) {
return this.num[e];
},
getLength: function() {
return this.num.length;
},
multiply: function(e) {
for (var t = new Array(this.getLength() + e.getLength() - 1), o = 0; o < this.getLength(); o++) for (var n = 0; n < e.getLength(); n++) t[o + n] ^= d.gexp(d.glog(this.get(o)) + d.glog(e.get(n)));
return new p(t, 0);
},
mod: function(e) {
if (this.getLength() - e.getLength() < 0) return this;
for (var t = d.glog(this.get(0)) - d.glog(e.get(0)), o = new Array(this.getLength()), n = 0; n < this.getLength(); n++) o[n] = this.get(n);
for (n = 0; n < e.getLength(); n++) o[n] ^= d.gexp(d.glog(e.get(n)) + t);
return new p(o, 0).mod(e);
}
};
function h(e, t) {
this.totalCount = e;
this.dataCount = t;
}
h.RS_BLOCK_TABLE = [ [ 1, 26, 19 ], [ 1, 26, 16 ], [ 1, 26, 13 ], [ 1, 26, 9 ], [ 1, 44, 34 ], [ 1, 44, 28 ], [ 1, 44, 22 ], [ 1, 44, 16 ], [ 1, 70, 55 ], [ 1, 70, 44 ], [ 2, 35, 17 ], [ 2, 35, 13 ], [ 1, 100, 80 ], [ 2, 50, 32 ], [ 2, 50, 24 ], [ 4, 25, 9 ], [ 1, 134, 108 ], [ 2, 67, 43 ], [ 2, 33, 15, 2, 34, 16 ], [ 2, 33, 11, 2, 34, 12 ], [ 2, 86, 68 ], [ 4, 43, 27 ], [ 4, 43, 19 ], [ 4, 43, 15 ], [ 2, 98, 78 ], [ 4, 49, 31 ], [ 2, 32, 14, 4, 33, 15 ], [ 4, 39, 13, 1, 40, 14 ], [ 2, 121, 97 ], [ 2, 60, 38, 2, 61, 39 ], [ 4, 40, 18, 2, 41, 19 ], [ 4, 40, 14, 2, 41, 15 ], [ 2, 146, 116 ], [ 3, 58, 36, 2, 59, 37 ], [ 4, 36, 16, 4, 37, 17 ], [ 4, 36, 12, 4, 37, 13 ], [ 2, 86, 68, 2, 87, 69 ], [ 4, 69, 43, 1, 70, 44 ], [ 6, 43, 19, 2, 44, 20 ], [ 6, 43, 15, 2, 44, 16 ], [ 4, 101, 81 ], [ 1, 80, 50, 4, 81, 51 ], [ 4, 50, 22, 4, 51, 23 ], [ 3, 36, 12, 8, 37, 13 ], [ 2, 116, 92, 2, 117, 93 ], [ 6, 58, 36, 2, 59, 37 ], [ 4, 46, 20, 6, 47, 21 ], [ 7, 42, 14, 4, 43, 15 ], [ 4, 133, 107 ], [ 8, 59, 37, 1, 60, 38 ], [ 8, 44, 20, 4, 45, 21 ], [ 12, 33, 11, 4, 34, 12 ], [ 3, 145, 115, 1, 146, 116 ], [ 4, 64, 40, 5, 65, 41 ], [ 11, 36, 16, 5, 37, 17 ], [ 11, 36, 12, 5, 37, 13 ], [ 5, 109, 87, 1, 110, 88 ], [ 5, 65, 41, 5, 66, 42 ], [ 5, 54, 24, 7, 55, 25 ], [ 11, 36, 12 ], [ 5, 122, 98, 1, 123, 99 ], [ 7, 73, 45, 3, 74, 46 ], [ 15, 43, 19, 2, 44, 20 ], [ 3, 45, 15, 13, 46, 16 ], [ 1, 135, 107, 5, 136, 108 ], [ 10, 74, 46, 1, 75, 47 ], [ 1, 50, 22, 15, 51, 23 ], [ 2, 42, 14, 17, 43, 15 ], [ 5, 150, 120, 1, 151, 121 ], [ 9, 69, 43, 4, 70, 44 ], [ 17, 50, 22, 1, 51, 23 ], [ 2, 42, 14, 19, 43, 15 ], [ 3, 141, 113, 4, 142, 114 ], [ 3, 70, 44, 11, 71, 45 ], [ 17, 47, 21, 4, 48, 22 ], [ 9, 39, 13, 16, 40, 14 ], [ 3, 135, 107, 5, 136, 108 ], [ 3, 67, 41, 13, 68, 42 ], [ 15, 54, 24, 5, 55, 25 ], [ 15, 43, 15, 10, 44, 16 ], [ 4, 144, 116, 4, 145, 117 ], [ 17, 68, 42 ], [ 17, 50, 22, 6, 51, 23 ], [ 19, 46, 16, 6, 47, 17 ], [ 2, 139, 111, 7, 140, 112 ], [ 17, 74, 46 ], [ 7, 54, 24, 16, 55, 25 ], [ 34, 37, 13 ], [ 4, 151, 121, 5, 152, 122 ], [ 4, 75, 47, 14, 76, 48 ], [ 11, 54, 24, 14, 55, 25 ], [ 16, 45, 15, 14, 46, 16 ], [ 6, 147, 117, 4, 148, 118 ], [ 6, 73, 45, 14, 74, 46 ], [ 11, 54, 24, 16, 55, 25 ], [ 30, 46, 16, 2, 47, 17 ], [ 8, 132, 106, 4, 133, 107 ], [ 8, 75, 47, 13, 76, 48 ], [ 7, 54, 24, 22, 55, 25 ], [ 22, 45, 15, 13, 46, 16 ], [ 10, 142, 114, 2, 143, 115 ], [ 19, 74, 46, 4, 75, 47 ], [ 28, 50, 22, 6, 51, 23 ], [ 33, 46, 16, 4, 47, 17 ], [ 8, 152, 122, 4, 153, 123 ], [ 22, 73, 45, 3, 74, 46 ], [ 8, 53, 23, 26, 54, 24 ], [ 12, 45, 15, 28, 46, 16 ], [ 3, 147, 117, 10, 148, 118 ], [ 3, 73, 45, 23, 74, 46 ], [ 4, 54, 24, 31, 55, 25 ], [ 11, 45, 15, 31, 46, 16 ], [ 7, 146, 116, 7, 147, 117 ], [ 21, 73, 45, 7, 74, 46 ], [ 1, 53, 23, 37, 54, 24 ], [ 19, 45, 15, 26, 46, 16 ], [ 5, 145, 115, 10, 146, 116 ], [ 19, 75, 47, 10, 76, 48 ], [ 15, 54, 24, 25, 55, 25 ], [ 23, 45, 15, 25, 46, 16 ], [ 13, 145, 115, 3, 146, 116 ], [ 2, 74, 46, 29, 75, 47 ], [ 42, 54, 24, 1, 55, 25 ], [ 23, 45, 15, 28, 46, 16 ], [ 17, 145, 115 ], [ 10, 74, 46, 23, 75, 47 ], [ 10, 54, 24, 35, 55, 25 ], [ 19, 45, 15, 35, 46, 16 ], [ 17, 145, 115, 1, 146, 116 ], [ 14, 74, 46, 21, 75, 47 ], [ 29, 54, 24, 19, 55, 25 ], [ 11, 45, 15, 46, 46, 16 ], [ 13, 145, 115, 6, 146, 116 ], [ 14, 74, 46, 23, 75, 47 ], [ 44, 54, 24, 7, 55, 25 ], [ 59, 46, 16, 1, 47, 17 ], [ 12, 151, 121, 7, 152, 122 ], [ 12, 75, 47, 26, 76, 48 ], [ 39, 54, 24, 14, 55, 25 ], [ 22, 45, 15, 41, 46, 16 ], [ 6, 151, 121, 14, 152, 122 ], [ 6, 75, 47, 34, 76, 48 ], [ 46, 54, 24, 10, 55, 25 ], [ 2, 45, 15, 64, 46, 16 ], [ 17, 152, 122, 4, 153, 123 ], [ 29, 74, 46, 14, 75, 47 ], [ 49, 54, 24, 10, 55, 25 ], [ 24, 45, 15, 46, 46, 16 ], [ 4, 152, 122, 18, 153, 123 ], [ 13, 74, 46, 32, 75, 47 ], [ 48, 54, 24, 14, 55, 25 ], [ 42, 45, 15, 32, 46, 16 ], [ 20, 147, 117, 4, 148, 118 ], [ 40, 75, 47, 7, 76, 48 ], [ 43, 54, 24, 22, 55, 25 ], [ 10, 45, 15, 67, 46, 16 ], [ 19, 148, 118, 6, 149, 119 ], [ 18, 75, 47, 31, 76, 48 ], [ 34, 54, 24, 34, 55, 25 ], [ 20, 45, 15, 61, 46, 16 ] ];
h.getRSBlocks = function(e, t) {
var o = h.getRsBlockTable(e, t);
if (null == o) throw new Error("bad rs block @ typeNumber:" + e + "/errorCorrectLevel:" + t);
for (var n = o.length / 3, i = new Array(), a = 0; a < n; a++) for (var r = o[3 * a + 0], c = o[3 * a + 1], s = o[3 * a + 2], l = 0; l < r; l++) i.push(new h(c, s));
return i;
};
h.getRsBlockTable = function(e, t) {
switch (t) {
case 1:
return h.RS_BLOCK_TABLE[4 * (e - 1) + 0];

case 0:
return h.RS_BLOCK_TABLE[4 * (e - 1) + 1];

case 3:
return h.RS_BLOCK_TABLE[4 * (e - 1) + 2];

case 2:
return h.RS_BLOCK_TABLE[4 * (e - 1) + 3];

default:
return;
}
};
function f() {
this.buffer = new Array();
this.length = 0;
}
f.prototype = {
get: function(e) {
var t = Math.floor(e / 8);
return 1 == (this.buffer[t] >>> 7 - e % 8 & 1);
},
put: function(e, t) {
for (var o = 0; o < t; o++) this.putBit(1 == (e >>> t - o - 1 & 1));
},
getLengthInBits: function() {
return this.length;
},
putBit: function(e) {
var t = Math.floor(this.length / 8);
this.buffer.length <= t && this.buffer.push(0);
e && (this.buffer[t] |= 128 >>> this.length % 8);
this.length++;
}
};
var g = cc._decorator, y = g.ccclass, m = g.property, v = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t._string = "";
t._backColor = cc.Color.WHITE;
t._foreColor = cc.Color.BLACK;
t.graphic = void 0;
t._margin = 10;
t._size = 200;
t._errorCorrectLevel = 2;
return t;
}
Object.defineProperty(t.prototype, "string", {
get: function() {
return this._string;
},
set: function(e) {
if (this._string !== e) {
this._string = e;
this.setContent();
}
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "backColor", {
get: function() {
return this._backColor;
},
set: function(e) {
this._backColor = e;
this.setContent();
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "foreColor", {
get: function() {
return this._foreColor;
},
set: function(e) {
this._foreColor = e;
this.node.color = this.foreColor;
this.setContent();
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "margin", {
get: function() {
return this._margin;
},
set: function(e) {
if (e !== this._margin) {
this._margin = e;
this.setContent();
}
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "size", {
get: function() {
return this._size;
},
set: function(e) {
if (e !== this._size) {
this.node.setContentSize(e, e);
this.setContent();
this._size = e;
}
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "errorCorrectLevel", {
get: function() {
return this._errorCorrectLevel;
},
set: function(e) {
if (this._errorCorrectLevel !== e) {
this._errorCorrectLevel = e;
this.setContent();
}
},
enumerable: !1,
configurable: !0
});
t.prototype.onLoad = function() {
this.node.setContentSize(this._size, this._size);
this.setContent();
this.graphic = this.node.getComponent(cc.Graphics);
null === this.graphic && (this.graphic = this.node.addComponent(cc.Graphics));
};
t.prototype.setContent = function() {
this.graphic = this.node.getComponent(cc.Graphics);
null === this.graphic && (this.graphic = this.node.addComponent(cc.Graphics));
this.graphic.clear();
this.graphic.fillColor = this.backColor;
var e = this.node.width, t = -e * this.node.anchorX, o = -e * this.node.anchorY;
this.graphic.rect(t, o, e, e);
this.graphic.fill();
this.graphic.close();
var n = new c(-1, this.errorCorrectLevel);
n.addData(this.string);
n.make();
this.graphic.fillColor = this.foreColor;
for (var i = e - 2 * this.margin, a = n.getModuleCount(), r = i / a, s = i / a, l = Math.ceil(r), d = Math.ceil(s), u = 0; u < a; u++) for (var p = 0; p < a; p++) if (n.isDark(u, p)) {
this.graphic.rect(t + this.margin + p * r, t + i - s - Math.round(u * s) + this.margin, l, d);
this.graphic.fill();
}
};
a([ m(cc.String) ], t.prototype, "_string", void 0);
a([ m({
type: cc.String
}) ], t.prototype, "string", null);
a([ m(cc.Color) ], t.prototype, "_backColor", void 0);
a([ m({
type: cc.Color
}) ], t.prototype, "backColor", null);
a([ m(cc.Color) ], t.prototype, "_foreColor", void 0);
a([ m({
type: cc.Color
}) ], t.prototype, "foreColor", null);
a([ m(cc.Float) ], t.prototype, "_margin", void 0);
a([ m({
type: cc.Float
}) ], t.prototype, "margin", null);
a([ m(cc.Float) ], t.prototype, "_size", void 0);
a([ m({
type: cc.Float
}) ], t.prototype, "size", null);
a([ m(cc.Integer) ], t.prototype, "_errorCorrectLevel", void 0);
a([ m({
type: cc.Integer
}) ], t.prototype, "errorCorrectLevel", null);
return a([ y ], t);
}(cc.Component);
o.default = v;
cc.Class.Attr.setClassAttr(v, "lineWidth", "visible", !1);
cc.Class.Attr.setClassAttr(v, "lineJoin", "visible", !1);
cc.Class.Attr.setClassAttr(v, "lineCap", "visible", !1);
cc.Class.Attr.setClassAttr(v, "strokeColor", "visible", !1);
cc.Class.Attr.setClassAttr(v, "miterLimit", "visible", !1);
cc.Class.Attr.setClassAttr(v, "fillColor", "visible", !1);
cc._RF.pop();
}, {} ],
CaiFuBang: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "4e064p1ybVDfbnPD2cNv7EI", "CaiFuBang");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/NetworkLogic"), c = e("../../Shared/UIManager"), s = e("../../Shared/Global"), l = (e("LanguageData"), 
cc._decorator), d = l.ccclass, u = l.property, p = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.bgArr = [];
t.spNo1 = null;
t.spNo2 = null;
t.spNo3 = null;
t.item = null;
t.content = null;
return t;
}
t.prototype.start = function() {
c.default.showLoadingUI();
r.default.agentGetRanking({}, function(e) {
c.default.hideLoadingUI();
console.log("===财富榜数据 data：", e);
this.content.destroyAllChildren();
for (var t = 0; t < e.length; t++) {
var o = cc.instantiate(this.item);
0 === t ? o.getChildByName("spPaiMing").getComponent(cc.Sprite).spriteFrame = this.spNo1 : 1 === t ? o.getChildByName("spPaiMing").getComponent(cc.Sprite).spriteFrame = this.spNo2 : 2 === t ? o.getChildByName("spPaiMing").getComponent(cc.Sprite).spriteFrame = this.spNo3 : o.getChildByName("spPaiMing").active = !1;
o.getChildByName("bg").getComponent(cc.Sprite).spriteFrame = this.bgArr[t % 2];
o.getChildByName("labPaiMing").getComponent(cc.Label).string = t + 1;
o.getChildByName("labTotal").getComponent(cc.Label).string = e[t].userId;
o.getChildByName("labMonthMoney").getComponent(cc.Label).string = s.Global.currencySymbol + e[t].brokerageMoney;
o.getChildByName("labShareReward").getComponent(cc.Label).string = s.Global.currencySymbol + e[t].shareBonusMoney;
o.parent = this.content;
o.active = !0;
}
}.bind(this), function() {
console.log("===财富榜数据错误");
}.bind(this));
};
a([ u([ cc.SpriteFrame ]) ], t.prototype, "bgArr", void 0);
a([ u(cc.SpriteFrame) ], t.prototype, "spNo1", void 0);
a([ u(cc.SpriteFrame) ], t.prototype, "spNo2", void 0);
a([ u(cc.SpriteFrame) ], t.prototype, "spNo3", void 0);
a([ u(cc.Node) ], t.prototype, "item", void 0);
a([ u(cc.Node) ], t.prototype, "content", void 0);
return a([ d ], t);
}(cc.Component);
o.default = p;
cc._RF.pop();
}, {
"../../Shared/Global": "Global",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
LanguageData: "LanguageData"
} ],
CaptchaManager: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "29514W3j5hCgJnH3Gwr8+cP", "CaptchaManager");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
}, r = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, c = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var s = e("./CaptchaMock"), l = cc._decorator, d = l.ccclass, u = (l.property, function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t._captchaId = "";
t._tempWVNode = null;
t._closeTimer = 0;
t._onValidateCallback = void 0;
t._onFailedCallback = void 0;
return t;
}
t.prototype.setup = function(e, t) {
this._onValidateCallback = e;
this._onFailedCallback = t;
};
t.prototype.trigger = function(e, t) {
return r(this, void 0, void 0, function() {
var o, n;
return c(this, function(i) {
switch (i.label) {
case 0:
this._captchaId = e;
if (!this._captchaId) {
this._emitFail("captchaId 未设置");
return [ 2 ];
}
if (cc.sys.isBrowser) {
this._emitFail("当前组件面向原生 WebView，本地脚本请在 Web 端自行集成");
return [ 2 ];
}
return [ 4, this._ensureWebView() ];

case 1:
(o = i.sent()).setJavascriptInterfaceScheme("yidun");
o.setOnJSCallback(this._onWebJsCallback.bind(this));
n = s.CaptchaHtmlString(this._captchaId);
o.node.opacity = 0;
o._impl.loadHTMLString(n, "https://cstaticdun.126.net");
this._armCloseTimeout(1e3 * t);
return [ 2 ];
}
});
});
};
t.prototype.close = function() {
this._onValidateCallback = void 0;
this._onFailedCallback = void 0;
this._teardownWebView();
this.node.removeFromParent;
this.node.destroy();
};
t.prototype.onDestroy = function() {
this.close();
};
t.prototype._ensureWebView = function() {
return r(this, void 0, Promise, function() {
var e, t;
return c(this, function() {
this._tempWVNode = new cc.Node("YidunWebView_Temp");
this._tempWVNode.parent = this.node;
(e = this._tempWVNode) && e.setContentSize && e.setContentSize(this.node.width, this.node.height);
t = this._tempWVNode.addComponent(cc.WebView);
this._tempWVNode.setSiblingIndex(this._tempWVNode.parent.childrenCount - 1);
this._tempWVNode.setPosition(0, 1e4);
return [ 2, t ];
});
});
};
t.prototype._armCloseTimeout = function(e) {
var t = this;
if (this._closeTimer) {
clearTimeout(this._closeTimer);
this._closeTimer = 0;
}
this._closeTimer = setTimeout(function() {
t._emitFail("验证超时");
t.close();
}, e);
};
t.prototype._teardownWebView = function() {
var e = this;
if (this._closeTimer) {
clearTimeout(this._closeTimer);
this._closeTimer = 0;
}
try {
if (this._tempWVNode && this._tempWVNode.isValid) {
var t = this._tempWVNode.getComponent(cc.WebView);
try {
t && t.setOnJSCallback(function() {});
} catch (e) {}
try {
var o = this._tempWVNode;
o && o.setContentSize && o.setContentSize(0, 0);
} catch (e) {}
try {
t && (t.url = "about:blank");
} catch (e) {}
this.scheduleOnce(function() {
if (e._tempWVNode && e._tempWVNode.isValid) {
e._tempWVNode.removeFromParent();
e._tempWVNode.destroy();
}
e._tempWVNode = null;
}, 0);
}
} catch (e) {
this._tempWVNode && this._tempWVNode.isValid && this._tempWVNode.destroy();
this._tempWVNode = null;
}
};
t.prototype._parseCompactWH = function(e) {
for (var t, o = 0, n = 0, i = 0, a = 0, r = 1, c = /(vw|vh|dpr|w|h)\s*=?\s*([0-9]+(?:\.[0-9]+)?)/gi; null !== (t = c.exec(e)); ) {
var s = t[1].toLowerCase(), l = Number(t[2]);
"w" === s ? o = l : "h" === s ? n = l : "vw" === s ? i = l : "vh" === s ? a = l : "dpr" === s && (r = l);
}
return {
width: o,
height: n,
vw: i,
vh: a,
dpr: r
};
};
t.prototype._onWebJsCallback = function(e, t) {
try {
console.log(t);
var o = t.replace("yidun://", "").split("?data="), n = o[0], i = o[1];
switch (n) {
case "onVerify":
this._onVerified(i);
return;

case "resize":
this._onResize(i);
return;

case "close":
this.close();
return;

case "error":
this._emitFail(i);
}
} catch (e) {
console.log(e.toString());
}
};
t.prototype._onVerified = function(e) {
var t = this;
if (null !== e) {
console.log("[Yidun] validate:", e);
this._emitOk(e);
} else this._emitFail(e);
this.unscheduleAllCallbacks();
this.scheduleOnce(function() {
var e, o = null === (e = t._tempWVNode) || void 0 === e ? void 0 : e.getComponent(cc.WebView);
if (o) {
try {
o.url = "about:blank";
} catch (e) {}
o.node.removeFromParent();
o.node.destroy();
t.node.removeFromParent;
t.node.destroy();
}
}, .85);
};
t.prototype._onResize = function(e) {
var t = this._parseCompactWH(e), o = cc.view.getDesignResolutionSize(), n = o.width / Math.max(1, t.vw), i = o.height / Math.max(1, t.vh), a = (Math.round(t.width * n), 
Math.round(t.height * i), this._tempWVNode);
if (a) {
var r = a.getComponent(cc.WebView);
cc.sys.isNative && r._impl._iframe && r._impl._iframe.setBackgroundTransparent && r._impl._iframe.setBackgroundTransparent(!0);
a.setPosition(cc.v2(0, 0));
}
};
t.prototype._emitOk = function(e) {
this._onValidateCallback && this._onValidateCallback(e);
};
t.prototype._emitFail = function(e) {
this._onFailedCallback && this._onFailedCallback(e);
this.close();
};
return a([ d ], t);
}(cc.Component));
o.default = u;
cc._RF.pop();
}, {
"./CaptchaMock": "CaptchaMock"
} ],
CaptchaMock: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "0e8e2zZUtlE87Qm3V5suqFg", "CaptchaMock");
Object.defineProperty(o, "__esModule", {
value: !0
});
o.CaptchaHtmlString = void 0;
o.CaptchaHtmlString = function(e) {
return '<!DOCTYPE html>\n<html lang="zh-CN">\n\n<head>\n    <meta charset="utf-8" />\n    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1" />\n    <title>Yidun Local Bridge</title>\n    <script src="https://cstaticdun.126.net/load.min.js"><\/script>\n    \x3c!-- 本地脚本：与本文件同目录 --\x3e\n    <style>\n        html,\n        body {\n            margin: 0;\n            height: 100%;\n            background: transparent !important;\n        }\n\n        #wrap {\n            display: flex;\n            align-items: center;\n            justify-content: center;\n            width: 100vw;\n            height: 100vh;\n            background: transparent !important;\n        }\n\n        /* 内嵌容器固定宽高，避免撑满 */\n        #captcha {\n            width: 320px;\n            height: 260px;\n        }\n    </style>\n</head>\n\n<body>\n    <div id="wrap">\n        <div id="captcha"></div>\n    </div>\n    <script>\n        var f = document.createElement(\'iframe\');\n        f.style.display = \'none\';\n        f.setAttribute(\'aria-hidden\', \'true\');\n        document.documentElement.appendChild(f);\n\n        function send(path, obj) {\n            console.log(path);\n            f.src = \'yidun://\' + path + \'?data=\' + obj;\n        }\n\n        // 把 #captcha 实际内容尺寸（含外观变化）发出去\n        function reportSize() {\n            var el = document.getElementById(\'captcha\');\n            if (!el) return;\n            // 建议包一层拿外层高度更稳（包括验证条、提示）\n            var rect = el.getBoundingClientRect();\n            var padding = 16;\n            var w = "w=" + (Math.ceil(rect.width) + padding);\n            var h = "h=" + (Math.ceil(rect.height) + padding);\n            var vw = "vw=" + Math.ceil(window.innerWidth);\n            var vh = "vh=" + Math.ceil(window.innerHeight);\n            var dpr = \'dpr=\' + window.devicePixelRatio || 1;\n            // 预留一点外边距，避免裁切\n            var message = w + h + vw + vh + dpr;\n            console.log(message);\n            send(\'resize\', message);\n        }\n\n        function boot() {\n            if (!window.initNECaptcha) {\n                send(\'error\', \'NetShield is not initialize.\');\n            }\n\n            window.initNECaptcha({\n                element: "#captcha",\n                captchaId: "' + e + "\",\n                mode: 'popup',\n                apiVersion: 2,\n                popupStyles: { position: 'fixed', top: '20%' },\n                onVerify: function (err, data) {\n                    if (err) {\n                        const msg = e.name + \":\" + e.code;\n                        send('error', msg)\n                    } else if (data.validate) {\n                        send('onVerify', data.validate);\n                    } else {\n                        send('error', 'Validate result is not defined.')\n                    }\n                },\n                onClose: function () {\n                    send('close', \"\");\n                }\n            }, function onload(ins) {\n                try { ins && ins.verify && ins.verify(); } catch (e) { }\n                reportSize();\n            }, function onerror(e) {\n                const msg = e.name + \":\" + e.code;\n                send('error', msg);\n            });\n        }\n\n        // 等脚本 ready（本地文件加载也可能稍有延迟）\n        boot();\n    <\/script>\n</body>\n\n</html>";
};
cc._RF.pop();
}, {} ],
ChangeHeadUI: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "cf77bDzGIhOlobJVta6BRDk", "ChangeHeadUI");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/NetworkLogic"), c = e("../../Common/RemoteSprite"), s = e("../../Models/Player"), l = e("../../Shared/AudioManager"), d = cc._decorator, u = d.ccclass, p = d.property, h = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.lytContent = null;
t.nodeTemplateHead = null;
t.rspHead = null;
t._selectedHeadCfg = null;
return t;
}
t.prototype.onLoad = function() {
this.nodeTemplateHead.parent = null;
};
t.prototype.start = function() {
r.default.getListPhoto(function(e) {
this.createHeads(e);
}.bind(this));
};
t.prototype.onDestroy = function() {
this.nodeTemplateHead.destroy();
};
t.prototype.onBtnClick = function(e, t) {
if ("ok" === t) r.default.editUserImage(this._selectedHeadCfg.imageId, function() {
s.default.setPy("head", this._selectedHeadCfg.imageUrl);
this.node.destroy();
}.bind(this)); else if ("close" === t) {
l.default.playSound("close");
this.node.destroy();
}
};
t.prototype.onToggleSelete = function(e) {
this.rspHead.url = e.node.headConfig.imageUrl;
this._selectedHeadCfg = e.node.headConfig;
};
t.prototype.createHeads = function(e) {
for (var t = 0; t < e.length; t++) {
var o = e[t], n = cc.instantiate(this.nodeTemplateHead).getComponent(cc.Toggle);
n.node.parent = this.lytContent.node;
n.node.headConfig = o;
n.node.getChildByName("head").getComponent(c.default).url = o.imageUrl;
0 !== t && o.imageUrl !== s.default.getPy("head") || (n.isChecked ? this.onToggleSelete(n) : n.isChecked = !0);
}
};
a([ p(cc.Layout) ], t.prototype, "lytContent", void 0);
a([ p(cc.Node) ], t.prototype, "nodeTemplateHead", void 0);
a([ p(c.default) ], t.prototype, "rspHead", void 0);
return a([ u ], t);
}(cc.Component);
o.default = h;
cc._RF.pop();
}, {
"../../Common/RemoteSprite": "RemoteSprite",
"../../Models/Player": "Player",
"../../Shared/AudioManager": "AudioManager",
"../../Shared/NetworkLogic": "NetworkLogic"
} ],
ChangeLanguageLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "8a927TnFDFO4KpXzvaDcmfK", "ChangeLanguageLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
}, r = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, c = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var s = e("../../Common/CommonToggleContainer"), l = e("../../Common/ToggleItem"), d = e("../../Shared/UIManager"), u = e("../../Shared/NetworkLogic"), p = e("../../Common/RemoteSprite"), h = e("../../Shared/Global"), f = e("../../Shared/Utils"), g = e("../../Shared/SDKManager"), y = e("../../Models/Player"), m = e("LanguageData"), v = cc._decorator, b = v.ccclass, _ = v.property, S = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.toggleContainer = null;
t.templateItem = null;
t._isSelectedToggles = !1;
t._languageData = [];
t._toggleBefore = null;
return t;
}
t.prototype.onLoad = function() {
this.templateItem.parent = null;
};
t.prototype.start = function() {
return r(this, void 0, void 0, function() {
var e;
return c(this, function(t) {
switch (t.label) {
case 0:
e = this;
return [ 4, this.getLanguageData() ];

case 1:
e._languageData = t.sent();
this.initToggles();
this._toggleBefore = this.toggleContainer.checkedToggle;
this._isSelectedToggles = !0;
return [ 2 ];
}
});
});
};
t.prototype.onDestroy = function() {
this.templateItem.destroy();
};
t.prototype.onToggleSelected = function(e) {
if (this._isSelectedToggles && this.toggleContainer.checkedToggle !== this._toggleBefore) if (1 !== e.languageCfg.status) {
d.default.showToastUI("该语言不接受预览，请联系商务", h.Global.ToastType.Warnning);
this._toggleBefore && this.toggleContainer.selectToggle(this._toggleBefore);
} else {
g.default.setTags([ e.languageCfg.languageFlag ]);
m.init(e.languageCfg.languageFlag);
cc.sys.localStorage.setItem("CurrentLanguage", e.languageCfg.languageFlag);
y.default.isLogedIn() || (h.Global.currencySymbol = m.t("currency_symbol"));
d.default.showTipUI(m.t("set_text.change_language_tips"), function() {
f.default.restartGame();
}.bind(this), m.t("set_text.restart"));
this._toggleBefore = this.toggleContainer.checkedToggle;
}
};
t.prototype.getLanguageData = function() {
var e = this;
return new Promise(function(t) {
u.default.getLanguageListAll(function(e) {
t(e);
}.bind(e), function() {
t([]);
}.bind(e));
});
};
t.prototype.initToggles = function() {
for (var e = cc.sys.localStorage.getItem("CurrentLanguage"), t = 0; t < this._languageData.length; t++) {
var o = this._languageData[t];
if (1 === o.status) {
var n = cc.instantiate(this.templateItem).getComponent(l.default);
this.toggleContainer.addToggle(n);
n.languageCfg = o;
e === o.languageFlag && this.toggleContainer.selectToggle(n);
n.node.getChildByName("flag").getComponent(p.default).url = o.languageUrl;
n.node.getChildByName("name").getComponent(cc.Label).string = o.languageName;
}
}
!this.toggleContainer.checkedToggle && this.toggleContainer.selectFirstItem();
};
a([ _(s.default) ], t.prototype, "toggleContainer", void 0);
a([ _(cc.Node) ], t.prototype, "templateItem", void 0);
return a([ b ], t);
}(cc.Component);
o.default = S;
cc._RF.pop();
}, {
"../../Common/CommonToggleContainer": "CommonToggleContainer",
"../../Common/RemoteSprite": "RemoteSprite",
"../../Common/ToggleItem": "ToggleItem",
"../../Models/Player": "Player",
"../../Shared/Global": "Global",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/SDKManager": "SDKManager",
"../../Shared/UIManager": "UIManager",
"../../Shared/Utils": "Utils",
LanguageData: "LanguageData"
} ],
ChangeMusicLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "bb053xd/0RGaYzsiBAn+9UN", "ChangeMusicLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
}, r = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, c = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var s = e("../Shared/AudioManager"), l = e("../Shared/Utils"), d = e("../Common/CommonToggleContainer"), u = e("../Common/ToggleItem"), p = e("../Shared/Global"), h = (e("LanguageData"), 
cc._decorator), f = h.ccclass, g = h.property, y = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.lbMusicName = null;
t.nodeMusicPlay = null;
t.nodeMusicPause = null;
t.nodeTemplateMusic = null;
t.toggleContainerMusic = null;
return t;
}
t.prototype.onLoad = function() {
this.lbMusicName.string = "";
this.nodeTemplateMusic.parent = null;
if ("true" === cc.sys.localStorage.getItem(p.Global.localStorageId.pauseMusic)) {
this.nodeMusicPause.active = !1;
this.nodeMusicPlay.active = !0;
} else {
this.nodeMusicPause.active = !0;
this.nodeMusicPlay.active = !1;
}
};
t.prototype.start = function() {
return r(this, void 0, void 0, function() {
var e, t, o;
return c(this, function(n) {
switch (n.label) {
case 0:
return [ 4, s.default.getMuiscList() ];

case 1:
e = n.sent();
if (Array.isArray(e)) for (t = 0; t < e.length; t++) {
o = e[t];
this.createMusicItem(o, t);
}
return [ 2 ];
}
});
});
};
t.prototype.onDestroy = function() {
this.nodeTemplateMusic.destroy();
};
t.prototype.onBtnClick = function(e, t) {
if ("play" === t) {
cc.sys.localStorage.setItem(p.Global.localStorageId.pauseMusic, "false");
s.default.resumMusic();
this.nodeMusicPause.active = !0;
this.nodeMusicPlay.active = !1;
} else if ("pause" === t) {
s.default.pauseMusic();
cc.sys.localStorage.setItem(p.Global.localStorageId.pauseMusic, "true");
this.nodeMusicPause.active = !1;
this.nodeMusicPlay.active = !0;
} else if ("left" === t) {
for (var o = 0; o < this.toggleContainerMusic.node.children.length; o++) if ((i = this.toggleContainerMusic.node.children[o].getComponent(u.default)) && i === this.toggleContainerMusic.checkedToggle) {
var n = 0 === o ? this.toggleContainerMusic.node.children.length - 1 : o - 1;
(a = this.toggleContainerMusic.node.children[n].getComponent(u.default)) && this.toggleContainerMusic.selectToggle(a);
break;
}
} else if ("right" === t) for (o = 0; o < this.toggleContainerMusic.node.children.length; o++) {
var i;
if ((i = this.toggleContainerMusic.node.children[o].getComponent(u.default)) && i === this.toggleContainerMusic.checkedToggle) {
var a;
n = o === this.toggleContainerMusic.node.children.length - 1 ? 0 : o + 1;
(a = this.toggleContainerMusic.node.children[n].getComponent(u.default)) && this.toggleContainerMusic.selectToggle(a);
break;
}
}
};
t.prototype.onSelectToggleMusic = function(e) {
var t = e.node.musicCfg;
if (t) {
this.lbMusicName.string = t.name;
if (cc.sys.localStorage.getItem(p.Global.localStorageId.MusicName) === t.url.substring(t.url.lastIndexOf("/") + 1)) return;
var o = t.url.substring(t.url.lastIndexOf("/") + 1, t.url.lastIndexOf(".")), n = t.url.substring(t.url.lastIndexOf("."));
cc.log("===musicCfg.url:", t.url);
cc.log("===musicFileName:", o);
cc.log("===extName:", n);
var i = jsb.fileUtils.getWritablePath() + "SoundCache/", a = i + o + n;
if (jsb.fileUtils.isFileExist(a)) {
s.default.loadMusic(a, o + n);
this.recordMusic(o + n);
} else {
var r = e.node.getChildByName("progressBar").getComponent(cc.ProgressBar);
if (r.node.active) return;
!jsb.fileUtils.isDirectoryExist(i) && jsb.fileUtils.createDirectory(i);
r.node.active = !0;
r.progress = 0;
l.default.saveUrlFile(t.url, a, function(e) {
if (r && r.isValid) {
r.node.active = !1;
s.default.loadMusic(e, o + n);
this.recordMusic(o + n);
}
}.bind(this), function(e) {
r.progress = e;
}.bind(this));
}
}
};
t.prototype.recordMusic = function(e) {
this.nodeMusicPlay.active = !1;
this.nodeMusicPause.active = !0;
cc.sys.localStorage.setItem(p.Global.localStorageId.MusicName, e);
};
t.prototype.createMusicItem = function(e, t) {
var o = cc.sys.localStorage.getItem(p.Global.localStorageId.MusicName) || "", n = cc.instantiate(this.nodeTemplateMusic).getComponent(u.default);
n.node.getChildByName("progressBar").active = !1;
n.node.getChildByName("name").getComponent(cc.Label).string = e.name;
n.node.musicCfg = e;
this.toggleContainerMusic.addToggle(n);
e.url.substring(e.url.lastIndexOf("/") + 1);
o ? e.url.substring(e.url.lastIndexOf("/") + 1) === o && this.toggleContainerMusic.selectToggle(n) : 0 == t && this.toggleContainerMusic.selectToggle(n);
};
a([ g(cc.Label) ], t.prototype, "lbMusicName", void 0);
a([ g(cc.Node) ], t.prototype, "nodeMusicPlay", void 0);
a([ g(cc.Node) ], t.prototype, "nodeMusicPause", void 0);
a([ g(cc.Node) ], t.prototype, "nodeTemplateMusic", void 0);
a([ g(d.default) ], t.prototype, "toggleContainerMusic", void 0);
return a([ f ], t);
}(cc.Component);
o.default = y;
cc._RF.pop();
}, {
"../Common/CommonToggleContainer": "CommonToggleContainer",
"../Common/ToggleItem": "ToggleItem",
"../Shared/AudioManager": "AudioManager",
"../Shared/Global": "Global",
"../Shared/Utils": "Utils",
LanguageData: "LanguageData"
} ],
CheckHotUpdate: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "ecbfeFd4C1OJp93+iMzVxQp", "CheckHotUpdate");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
}, r = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, c = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var s = e("../Shared/Utils"), l = e("../Shared/Constant"), d = e("../Shared/Global"), u = e("./HallUI"), p = e("../Shared/AddressManager"), h = cc._decorator, f = h.ccclass, g = h.property, y = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.manifestUrl = null;
t._am = null;
t._foundNewVersion = !1;
return t;
}
t.prototype.onLoad = function() {
cc.director.on(d.Global.UserEvent.EnterHall, this.onEnterHall, this);
cc.game.on(cc.game.EVENT_SHOW, this.onAppShow, this);
};
t.prototype.onDestroy = function() {
cc.director.off(d.Global.UserEvent.EnterHall, this.onEnterHall, this);
cc.game.off(cc.game.EVENT_SHOW, this.onAppShow, this);
};
t.prototype.onEnterHall = function() {
this.checkUpdate();
};
t.prototype.onAppShow = function() {
var e = cc.find("Canvas/gameNode") && cc.find("Canvas/gameNode").getComponent(u.default);
e && e.node.active && !e.isExistChildUI() && this.checkUpdate();
};
t.prototype.checkCb = function(e) {
cc.log("CheckHotUpdate: Code: " + e.getEventCode());
switch (e.getEventCode()) {
case jsb.EventAssetsManager.ERROR_NO_LOCAL_MANIFEST:
cc.log("===CheckHotUpdate: 没有找到本地的version.manifest文件");
break;

case jsb.EventAssetsManager.ERROR_DOWNLOAD_MANIFEST:
case jsb.EventAssetsManager.ERROR_PARSE_MANIFEST:
cc.log("CheckHotUpdate: 下载version.manifest文件失败");
break;

case jsb.EventAssetsManager.ALREADY_UP_TO_DATE:
cc.log("CheckHotUpdate: 已经是最新版本");
break;

case jsb.EventAssetsManager.NEW_VERSION_FOUND:
cc.log("====CheckHotUpdate: 发现新版本");
this._foundNewVersion = !0;
cc.sys.localStorage.removeItem("HotUpdateFinished");
s.default.restartGame();
}
};
t.prototype.checkUpdate = function() {
return r(this, void 0, void 0, function() {
var e, t;
return c(this, function(o) {
switch (o.label) {
case 0:
if (!cc.sys.isMobile || this._foundNewVersion) return [ 2 ];
this._am = new jsb.AssetsManager(this.manifestUrl.nativeUrl, l.default.HotUpdateStoragePath, s.default.versionCompare);
this._am.setEventCallback(this.checkCb.bind(this));
return [ 4, this.getHotUpdateDomain() ];

case 1:
return (e = o.sent()) ? [ 4, this.checkDomainConnect(e) ] : [ 3, 3 ];

case 2:
t = o.sent();
return [ 3, 4 ];

case 3:
t = !1;
o.label = 4;

case 4:
if (t) {
this._am.setHostUrl(e);
cc.log("CheckHotUpdate: 新的热更域名是：", e);
}
this._am.checkUpdate();
return [ 2 ];
}
});
});
};
t.prototype.getHotUpdateDomain = function() {
var e = this;
return new Promise(function(t) {
var o = "";
p.default.serverAddressArr.forEach(function(n) {
var i = new XMLHttpRequest();
i.responseType = "json";
i.onload = function() {
200 === i.status && (o = i.response.data.value0 || "");
t(o);
}.bind(e);
i.open("GET", n + "/imsbase/api/conf/getValue?type=hotUpdate", !0);
i.send();
});
e.scheduleOnce(function() {
t(o);
}, 2);
});
};
t.prototype.checkDomainConnect = function(e) {
var t = this;
return new Promise(function(o) {
var n = new XMLHttpRequest();
n.onload = function() {
200 === n.status ? o(!0) : o(!1);
}.bind(t);
n.onerror = function() {
o(!1);
};
n.open("GET", e, !0);
n.send();
t.scheduleOnce(function() {
o(!1);
}, 2);
});
};
a([ g({
type: cc.Asset
}) ], t.prototype, "manifestUrl", void 0);
return a([ f ], t);
}(cc.Component);
o.default = y;
cc._RF.pop();
}, {
"../Shared/AddressManager": "AddressManager",
"../Shared/Constant": "Constant",
"../Shared/Global": "Global",
"../Shared/Utils": "Utils",
"./HallUI": "HallUI"
} ],
ChessAndCardLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "80159xTwFJKLI9yp3v5T62T", "ChessAndCardLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("./GamesConfig"), c = e("../Shared/Global"), s = e("../Models/GameList"), l = e("../Shared/Constant"), d = e("../Common/SimpleScrollView"), u = e("LanguageData"), p = cc._decorator, h = p.ccclass, f = p.property, g = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.scrollView = null;
t.nodeContent = null;
t._selectedNode = null;
t._firstNodeItem = null;
t._lastNodeItem = null;
t._isFixingPosition = !1;
return t;
}
t.prototype.onLoad = function() {
this.nodeContent.removeAllChildren();
cc.winSize.width / cc.winSize.height > 2 && this.scrollView.getComponent(cc.Widget) && (this.scrollView.getComponent(cc.Widget).left += l.default.BangLength);
cc.director.on(c.Global.UserEvent.GameListChanged, this.createNodeItems, this);
};
t.prototype.onEnable = function() {
this.checkItemsPosition();
};
t.prototype.onDestroy = function() {
cc.director.off(c.Global.UserEvent.GameListChanged, this.createNodeItems, this);
};
t.prototype.update = function() {
this._isFixingPosition && this.checkItemsPosition();
};
t.prototype.onScrollViewEvent = function(e, t) {
if (t === c.Global.SimpleScrollViewEventType.SCROLL_BEGAN) {
this._isFixingPosition = !1;
this.selectedNode(null);
} else if (t === c.Global.SimpleScrollViewEventType.SCROLL_ENDED) this.checkSelectedNode(); else if (t === c.Global.SimpleScrollViewEventType.SCROLLING) {
this.checkItemsCircle();
this.checkItemsPosition();
}
};
t.prototype.createNodeItems = function() {
var e = this;
if (s.default.serverData) {
var t = s.default.getGameListByType(c.Global.GameType.Chess).twoLevelList || [], o = 0;
t.forEach(function(n) {
var i = new cc.Node(), a = new cc.Node(), c = a.addComponent(sp.Skeleton), s = i.addComponent(cc.Button), d = r.default.chessandcard[n.platform];
a.name = "nodeSpine";
a.parent = i;
i.width = 290;
i.height = 460;
i.parent = e.nodeContent;
i.zIndex = e.nodeContent.children.length;
e.nodeContent.width = e.nodeContent.children.length * i.width;
i.x = i.width / 2 + (e.nodeContent.children.length - 1) * i.width;
if (!d) {
d = "Hall/ChessAndCard/qipai_00";
if (l.default.RemindMissingRes) {
var p = new cc.Node(), h = p.addComponent(cc.Label);
p.color = cc.color(255, 0, 0);
p.parent = i;
h.string = n.gameTitleCn + "\n" + u.t("CheckHot.lack_resources") + "!";
h.fontSize = 40;
}
}
n === t[0] ? e._firstNodeItem = i : n === t[t.length - 1] && (e._lastNodeItem = i);
cc.resources.load(d, sp.SkeletonData, function(e, n) {
if (!e && this.node) {
c.skeletonData = n;
c.animation = "an_00";
}
o++;
this.checkItemsPosition();
o === t.length && this.checkSelectedNode();
}.bind(e));
if (-1 !== [ "YG", "LY", "NW" ].indexOf(n.platform)) {
var f = new cc.Node(), g = f.addComponent(cc.Sprite);
f.setAnchorPoint(cc.v2(1, 1));
f.position = cc.v2(.45 * i.width, .52 * i.height);
f.scale = .6;
f.parent = i;
cc.resources.load("Common/hot", cc.SpriteFrame, function(e, t) {
!e && g && g.isValid && (g.spriteFrame = t);
}.bind(e));
}
var y = new cc.Node(), m = y.addComponent(cc.Label), v = y.addComponent(cc.LabelOutline);
y.parent = a;
y.name = "nodeName";
y.width = 220;
y.height = 60;
y.position = cc.v2(0, -158);
y.skewX = 8;
m.string = n.gameTitleCn;
m.horizontalAlign = cc.Label.HorizontalAlign.CENTER;
m.useSystemFont = !0;
m.fontSize = 42;
m.lineHeight = 42;
m.overflow = cc.Label.Overflow.SHRINK;
m.enableBold = !0;
v.color = cc.color(0, 59, 159);
v.width = 3;
if ("2" === n.gameStatus) {
var b = new cc.Node(), _ = b.addComponent(cc.Sprite);
b.parent = a;
b.position = cc.v2(86, -165);
a.color = cc.color(70, 70, 70);
y.color = cc.color(70, 70, 70);
v.color = cc.color(0, 17.7, 159 * .3);
cc.resources.load("Common/maintenance", cc.SpriteFrame, function(e, t) {
!e && _ && _.isValid && (_.spriteFrame = t);
}.bind(e));
}
var S = new cc.Component.EventHandler();
S.target = cc.find("Canvas/gameNode");
S.component = "HallUI";
S.handler = "onGameItemClick";
s.clickEvents.push(S);
s.node.gameConfig = n;
});
}
};
t.prototype.selectedNode = function(e) {
if (this._selectedNode !== e) {
if (this._selectedNode) {
this._selectedNode.scale /= 1.05;
this._selectedNode.getChildByName("nodeSpine").getComponent(sp.Skeleton).animation = "an_00";
"2" === this._selectedNode.gameConfig.gameStatus ? cc.find("nodeSpine/nodeName", this._selectedNode).getComponent(cc.LabelOutline).color = cc.color(0, 17.7, 159 * .3) : cc.find("nodeSpine/nodeName", this._selectedNode).getComponent(cc.LabelOutline).color = cc.color(0, 59, 159);
}
this._selectedNode = e;
if (this._selectedNode) {
this._selectedNode.scale *= 1.05;
this._selectedNode.getChildByName("nodeSpine").getComponent(sp.Skeleton).animation = "liang_00";
this.fixPosition();
"2" === this._selectedNode.gameConfig.gameStatus ? cc.find("nodeSpine/nodeName", this._selectedNode).getComponent(cc.LabelOutline).color = cc.color(68.7, 16.2, 0) : cc.find("nodeSpine/nodeName", this._selectedNode).getComponent(cc.LabelOutline).color = cc.color(229, 54, 0);
}
}
};
t.prototype.checkItemsCircle = function() {
if (this.scrollView.node.convertToNodeSpaceAR(this._firstNodeItem.convertToWorldSpaceAR(cc.v2(0, 0))).x >= -this.scrollView.node.width / 2) {
this._lastNodeItem.parent = null;
this._lastNodeItem.parent = this.nodeContent;
this._lastNodeItem.x = this._firstNodeItem.x - this._firstNodeItem.width;
this._lastNodeItem.zIndex = this._firstNodeItem.zIndex - 1;
this.nodeContent.sortAllChildren();
this._firstNodeItem = this._lastNodeItem;
this._lastNodeItem = this.nodeContent.children[this.nodeContent.children.length - 1];
this.scrollView.setContentPosition(cc.v2(this.nodeContent.x - this._lastNodeItem.width, this.nodeContent.y));
this.nodeContent.children.forEach(function(e) {
e.x += e.width;
});
}
if (this.scrollView.node.convertToNodeSpaceAR(this._lastNodeItem.convertToWorldSpaceAR(cc.v2(0, 0))).x <= this.scrollView.node.width / 2) {
this._firstNodeItem.parent = null;
this._firstNodeItem.parent = this.nodeContent;
this._firstNodeItem.x = this._lastNodeItem.x + this._lastNodeItem.width;
this._firstNodeItem.zIndex = this._lastNodeItem.zIndex + 1;
this.nodeContent.sortAllChildren();
this._lastNodeItem = this._firstNodeItem;
this._firstNodeItem = this.nodeContent.children[0];
this.scrollView.setContentPosition(cc.v2(this.nodeContent.x + this._lastNodeItem.width, this.nodeContent.y));
this.nodeContent.children.forEach(function(e) {
e.x -= e.width;
});
}
};
t.prototype.checkItemsPosition = function() {
var e = this;
this.nodeContent.children.forEach(function(t) {
if (t !== e._selectedNode) {
var o = e.scrollView.node.convertToNodeSpaceAR(t.convertToWorldSpaceAR(cc.v2(0, 0))).x;
t.scale = 1.12 - .38 * Math.abs(o) / (e.scrollView.node.width / 2);
}
});
};
t.prototype.checkSelectedNode = function() {
var e = null;
this.nodeContent.children.forEach(function(t) {
(!e || t.scale > e.scale) && (e = t);
});
e && this.selectedNode(e);
};
t.prototype.fixPosition = function() {
if (this._selectedNode) {
this._isFixingPosition = !0;
var e = this._selectedNode.convertToNodeSpaceAR(this.scrollView.node.convertToWorldSpaceAR(cc.v2(0, 0))).x;
this.nodeContent.runAction(cc.sequence(cc.moveBy(.2, e, 0).easing(cc.easeSineOut()), cc.callFunc(function() {
this._isFixingPosition = !1;
}.bind(this))));
}
};
a([ f(d.default) ], t.prototype, "scrollView", void 0);
a([ f(cc.Node) ], t.prototype, "nodeContent", void 0);
return a([ h ], t);
}(cc.Component);
o.default = g;
cc._RF.pop();
}, {
"../Common/SimpleScrollView": "SimpleScrollView",
"../Models/GameList": "GameList",
"../Shared/Constant": "Constant",
"../Shared/Global": "Global",
"./GamesConfig": "GamesConfig",
LanguageData: "LanguageData"
} ],
CommitData: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "ce8356XPotPtK8Dj9jrzPSV", "CommitData");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/NetworkLogic"), c = e("../../Shared/Utils"), s = e("../../Shared/UIManager"), l = e("../../Shared/AudioManager"), d = e("LanguageData"), u = cc._decorator, p = u.ccclass, h = u.property, f = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.content = [];
t.btnSubmit = null;
t.editBox = null;
t.NewLab = null;
t.strUrl = null;
t.submitType = "";
t.id = "";
t.applyMode = "";
return t;
}
t.prototype.onLoad = function() {
this.node.on("COMMITDATA", this.updateUI.bind(this));
};
t.prototype.onEnable = function() {
console.log("=====子界面打开");
};
t.prototype.updateUI = function(e) {
var t = e.split(",");
this.id = t[0];
this.applyMode = t[1];
this.submitType = t[2];
cc.log("===this.submitType", this.submitType);
for (var o = 0; o < this.content.length; o++) this.content[o].active = !1;
this.content[Number(this.submitType) - 1].active = !0;
if ("1" === this.submitType) {
this.editBox.node.active = !0;
this.editBox.placeholder = d.t("Task.friends_account");
this.NewLab.active = !1;
} else if ("2" === this.submitType) {
this.editBox.node.active = !1;
this.NewLab.active = !0;
this.NewLab.getChildByName("labHttp").getComponent(cc.Label).string = d.t("Task.update_pic");
} else if ("3" === this.submitType) {
this.editBox.node.active = !1;
this.NewLab.active = !0;
this.NewLab.getChildByName("labHttp").getComponent(cc.Label).string = d.t("Task.update_video");
}
this.btnSubmit.clickEvents[0].customEventData = this.id;
};
t.prototype.onBtnClick = function(e, t) {
l.default.playSound("button");
console.log("===点击onBtnClick");
if ("close" === t) {
l.default.playSound("close");
this.node.active = !1;
} else if ("image" === t) {
console.log("===点击打开相册");
c.default.pickImageFromAlbum("image", function(e) {
cc.log("=====打开相册的path", e);
cc.log(e);
var t = e.split("/"), o = t[t.length - 1];
if (jsb.fileUtils.getFileSize(e) >= 1048576) s.default.showToastUI(d.t("Task.pic_limit_size")); else {
s.default.showLoadingUI();
r.default.uploadFile(o, jsb.fileUtils.getDataFromFile(e), function(e) {
console.log("=====上传照片之后返回", e);
s.default.hideLoadingUI();
this.strUrl = e.path;
this.NewLab.getChildByName("labHttp").getComponent(cc.Label).string = this.strUrl;
}.bind(this), function() {
cc.log("====照片上传错误");
}.bind(this));
}
}.bind(this));
} else if ("video" === t) {
console.log("===点击打开视频");
c.default.pickImageFromAlbum("video", function(e) {
cc.log("=====打开视频的path", e);
cc.log(e);
var t = e.split("/"), o = t[t.length - 1];
if (jsb.fileUtils.getFileSize(e) > 2097152) s.default.showToastUI(d.t("Task.video_limit_size")); else {
s.default.showLoadingUI();
r.default.uploadFile(o, jsb.fileUtils.getDataFromFile(e), function(e) {
console.log("=====上传视频之后返回", e);
s.default.hideLoadingUI();
this.strUrl = e.path;
this.NewLab.getChildByName("labHttp").getComponent(cc.Label).string = this.strUrl;
}.bind(this), function() {
cc.log("====照片视频错误");
}.bind(this));
}
}.bind(this));
}
};
t.prototype.onBtnSubmit = function(e, t) {
l.default.playSound("button");
var o = null;
if ("1" === this.submitType) {
if (!this.editBox.string) {
s.default.showToastUI(d.t("Task.inp_account"));
return;
}
o = {
taskId: t,
friendUserId: this.editBox.string
};
} else if ("2" === this.submitType) {
cc.log("=== 点击上传图片 imageUrl：", this.strUrl);
if (!this.strUrl) {
s.default.showToastUI(d.t("Task.q_update_pic"));
return;
}
o = {
friendUserId: "",
taskId: t,
imageUrl: this.strUrl,
videoUrl: ""
};
} else if ("3" === this.submitType) {
if (!this.strUrl) {
s.default.showToastUI(d.t("Task.q_update_video"));
return;
}
o = {
friendUserId: "",
taskId: t,
imageUrl: "",
videoUrl: this.strUrl
};
}
s.default.showLoadingUI();
r.default.agentApplicationReward(o, function() {
s.default.hideLoadingUI();
s.default.showTipUI(d.t("datum_text.apply_succ"));
}, function() {
console.log("=====提交错误");
});
};
t.prototype.onDestroy = function() {
this.node.off("COMMITDATA");
};
a([ h(cc.Node) ], t.prototype, "content", void 0);
a([ h(cc.Button) ], t.prototype, "btnSubmit", void 0);
a([ h(cc.EditBox) ], t.prototype, "editBox", void 0);
a([ h(cc.Node) ], t.prototype, "NewLab", void 0);
return a([ p ], t);
}(cc.Component);
o.default = f;
cc._RF.pop();
}, {
"../../Shared/AudioManager": "AudioManager",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
"../../Shared/Utils": "Utils",
LanguageData: "LanguageData"
} ],
CommonProgressBar: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "5345e46q0hMarOoeh6wgRNI", "CommonProgressBar");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
o.CommonProgressBar = void 0;
var r = cc._decorator, c = r.ccclass, s = r.property, l = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.bar = void 0;
t.totalLength = 0;
t._progress = 0;
return t;
}
t.prototype.start = function() {
this.totalLength = this.node.width;
};
t.prototype.progress = function() {
return this._progress;
};
t.prototype.add = function(e) {
e >= 1 && (e = 1);
e <= 0 && (e = 0);
this.bar.node.width = this.totalLength * e;
this._progress = e;
};
a([ s(cc.Sprite) ], t.prototype, "bar", void 0);
return a([ c ], t);
}(cc.Component);
o.CommonProgressBar = l;
cc._RF.pop();
}, {} ],
CommonToggleContainer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "48c342OXtFD4YRJutL7D0Je", "CommonToggleContainer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("./ToggleItem"), c = e("../Shared/AudioManager"), s = cc._decorator, l = s.ccclass, d = s.property, u = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.pfbToggle = null;
t.isSelectFirstItem = !0;
t.isAllowedMultipleSelect = !1;
t.toggleEvents = [];
t._checkedToggle = null;
return t;
}
Object.defineProperty(t.prototype, "checkedToggle", {
get: function() {
return this._checkedToggle;
},
enumerable: !1,
configurable: !0
});
t.prototype.onLoad = function() {
for (var e = 0; e < this.node.children.length; e++) {
var t = this.node.children[e].getComponent(r.default);
t && this.addClickToggleEvent(t);
}
this.node.on(cc.Node.EventType.CHILD_REMOVED, this.onRemovedChild, this);
};
t.prototype.start = function() {
!this._checkedToggle && this.isSelectFirstItem && this.selectFirstItem();
};
t.prototype.onDestroy = function() {
this.node.off(cc.Node.EventType.CHILD_REMOVED, this.onRemovedChild, this);
};
t.prototype.clear = function() {
this.node.children.forEach(function(e) {
e.destroy();
});
this._checkedToggle = null;
};
t.prototype.onRemovedChild = function(e) {
var t = e.getComponent(r.default);
t && this._checkedToggle === t && (this._checkedToggle = null);
};
t.prototype.onToggleClick = function(e) {
c.default.playSound("toggle");
this.selectToggle(e.target.getComponent(r.default));
};
t.prototype.selectToggle = function(e) {
if ((this.isAllowedMultipleSelect || !this._checkedToggle || this._checkedToggle !== e) && this.enabled) {
this._checkedToggle && (this._checkedToggle.isChecked = !1);
this._checkedToggle = e;
this._checkedToggle.isChecked = !0;
this.emitMsg();
}
};
t.prototype.selectFirstItem = function() {
for (var e = 0; e < this.node.children.length; e++) {
var t = this.node.children[e].getComponent(r.default);
if (t) {
this.selectToggle(t);
break;
}
}
};
t.prototype.emitMsg = function() {
var e = this;
this.toggleEvents.forEach(function(t) {
t.emit([ e._checkedToggle ]);
});
};
t.prototype.addClickToggleEvent = function(e) {
var t = e.addComponent(cc.Button), o = new cc.Component.EventHandler();
o.target = this.node;
o.component = "CommonToggleContainer";
o.handler = "onToggleClick";
t.clickEvents.push(o);
};
t.prototype.addDefaultToggle = function(e, t, o) {
if (this.pfbToggle) {
var n = cc.instantiate(this.pfbToggle).getComponent(r.default);
n.toggleName = e;
n.userData = t || "";
o && (n.node.width = o);
this.addToggle(n);
return n;
}
cc.log("pfbToggle未设置");
};
t.prototype.addToggle = function(e) {
e.isChecked = !1;
e.node.parent = this.node;
this.addClickToggleEvent(e);
!this._checkedToggle && this.isSelectFirstItem && this.selectToggle(e);
};
a([ d(cc.Prefab) ], t.prototype, "pfbToggle", void 0);
a([ d(cc.Boolean) ], t.prototype, "isSelectFirstItem", void 0);
a([ d(cc.Boolean) ], t.prototype, "isAllowedMultipleSelect", void 0);
a([ d([ cc.Component.EventHandler ]) ], t.prototype, "toggleEvents", void 0);
a([ d({
type: r.default,
visible: !1
}) ], t.prototype, "checkedToggle", null);
return a([ l ], t);
}(cc.Component);
o.default = u;
cc._RF.pop();
}, {
"../Shared/AudioManager": "AudioManager",
"./ToggleItem": "ToggleItem"
} ],
ConfirmBox: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "16f22HD+65AM5Lux2X4o5iV", "ConfirmBox");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
o.ConfirmBox = void 0;
var r = e("../Shared/UIManager"), c = e("../Shared/AudioManager"), s = e("LanguageData"), l = cc._decorator, d = l.ccclass, u = l.property, p = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.labelContent = void 0;
t.btnOk = void 0;
t.btnCancel = void 0;
t.labelOk = void 0;
t.labelCancel = void 0;
t.labelClose = void 0;
t._okCallback = void 0;
t._cancelCallback = void 0;
t._closeCallback = void 0;
t._isDestroy = !0;
t._btnX = 0;
return t;
}
t.prototype.init = function() {
this._btnX = this.btnOk.node.x;
};
t.prototype.onLoad = function() {};
t.prototype.showConfirm = function(e, t, o, n, i, a, r, c) {
void 0 === a && (a = !0);
this.labelOk.string = o || s.t("label_text.queding");
this.labelCancel.string = i || s.t("label_text.quxiao");
this.labelClose.string = c || s.t("BasicsJS.close");
i && (this.labelCancel.string = i);
this.btnOk.node.active = !0;
this.btnCancel.node.active = !0;
this._okCallback = t;
this._cancelCallback = n;
this.labelContent.string = e || "";
this.node.active = !0;
this._isDestroy = a;
if (c) {
this.node.getChildByName("bg").getChildByName("content").getComponent(cc.Layout).spacingX = 100;
this.node.getChildByName("bg").getChildByName("content").getChildByName("btnClose").active = !0;
this._closeCallback = r;
}
};
t.prototype.showTip = function(e, t, o) {
this.labelOk.string = o || s.t("label_text.queding");
this._okCallback = t;
this.btnCancel.node.active = !1;
this.btnOk.node.active = !0;
this.labelContent.string = e || "";
this.node.active = !0;
};
t.prototype.onClicked = function(e, t) {
c.default.playSound("button");
switch (t) {
case "ok":
"function" == typeof this._okCallback && this._okCallback();
break;

case "cancel":
"function" == typeof this._cancelCallback && this._cancelCallback();
break;

case "close":
"function" == typeof this._closeCallback && this._closeCallback();
}
if (this._isDestroy) {
this._okCallback = void 0;
this._cancelCallback = void 0;
this._closeCallback = void 0;
this.node.destroy();
r.default.confirmBox = null;
r.default.boxNum = 0;
}
};
a([ u(cc.Label) ], t.prototype, "labelContent", void 0);
a([ u(cc.Button) ], t.prototype, "btnOk", void 0);
a([ u(cc.Button) ], t.prototype, "btnCancel", void 0);
a([ u(cc.Label) ], t.prototype, "labelOk", void 0);
a([ u(cc.Label) ], t.prototype, "labelCancel", void 0);
a([ u(cc.Label) ], t.prototype, "labelClose", void 0);
return a([ d ], t);
}(cc.Component);
o.ConfirmBox = p;
cc._RF.pop();
}, {
"../Shared/AudioManager": "AudioManager",
"../Shared/UIManager": "UIManager",
LanguageData: "LanguageData"
} ],
Constant: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "e4725UcaABAGYtcMzcOTs1u", "Constant");
Object.defineProperty(o, "__esModule", {
value: !0
});
var n = e("./PackageConfig");
o.default = new function() {
this.LineVersion = void 0 === n.default.LineVersion ? "1.0.0" : void 0 === n.default.LineVersion;
this.Environment = void 0 === n.default.Environment ? 2 : n.default.Environment;
this.WebsiteSign = void 0 === n.default.WebsiteSign ? "TEST_NULL(bucunzaidedizhi)" : n.default.WebsiteSign;
this.CustomChannelIcon = n.default.CustomChannelIcon ? n.default.CustomChannelIcon : "";
this.RemindMissingRes = !0;
this.CheckSignalAPI = "/api/home/checkNetWorkStatus";
this.BangLength = 62;
this.HotUpdateStorageFolder = "bigplay-remote-asset";
this.HotUpdateStoragePath = (cc.sys.isNative ? jsb.fileUtils.getWritablePath() : "/") + this.HotUpdateStorageFolder;
this.PopSwitch = !0;
this.DefaultMusicVolume = .5;
this.DefaultSoundVolume = 1;
this.TestEncrypt = n.default.TestEncrypt;
this.LanguagesCode = [ "zh_CN", "en_US", "hi_HI", "id_ID", "th_TH", "ms_MS", "vi_VI", "ja_JP", "ko_KO" ];
this.PackageFlag = n.default.PackageFlag;
this.UpdatePackageName = n.default.updatePackageName;
this.PackageName = n.default.PackageName;
this.CloseYxd = n.default.closeYxd;
this.InstallSDK = n.default.InstallSDK;
this.CustomerServiceAddress = n.default.CustomerServiceAddress;
this.WeChatAppID = n.default.WeChatAppID;
this.ServerAddresses = [];
2 !== this.Environment && (this.Environment = parseInt(cc.sys.localStorage.getItem("ServerEnvironment") || "0"));
0 === this.Environment ? this.ServerAddresses = [ "http://ali-test-pch5.go043.com/" ] : 1 === this.Environment ? this.ServerAddresses = [ "http://ali-test-pch5.go043.com/" ] : 2 === this.Environment ? this.ServerAddresses = n.default.ServerAddresses : 3 === this.Environment ? this.ServerAddresses = [ "http://ali-test-pch5.go043.com/" ] : 4 === this.Environment ? this.ServerAddresses = [ "http://huidu.jotozm.com" ] : 5 === this.Environment && (this.ServerAddresses = [ "https://gfhuidu.uvjmijm.com" ]);
}();
cc._RF.pop();
}, {
"./PackageConfig": "PackageConfig"
} ],
CustomButton: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "3cc55xiLURFmrFPs0PySx1o", "CustomButton");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = cc._decorator, c = r.ccclass, s = r.property, l = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.label = null;
t.text = "hello";
return t;
}
t.prototype.onLoad = function() {};
t.prototype.polygonHitTest = function() {};
a([ s(cc.Label) ], t.prototype, "label", void 0);
a([ s ], t.prototype, "text", void 0);
return a([ c ], t);
}(cc.Button);
o.default = l;
cc._RF.pop();
}, {} ],
CustomerServiceUI: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "e9ff6bMEQJAjp+c4mjPQuR/", "CustomerServiceUI");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r, c = e("../Common/CommonToggleContainer"), s = e("../Shared/Utils"), l = e("../Shared/UIManager"), d = e("../Shared/NetworkLogic"), u = e("../Shared/SDKManager"), p = e("../Shared/Global"), h = e("../Shared/AudioManager"), f = e("../Shared/WebViewManager"), g = e("../Shared/EnterSoundManager"), y = e("../Shared/Constant"), m = e("../Shared/ImageCache"), v = e("LanguageData"), b = cc._decorator, _ = b.ccclass, S = b.property;
(function(e) {
e[e.WEBVIEW = 1] = "WEBVIEW";
e[e.BROWSER = 2] = "BROWSER";
e[e.CLIPBOARD = 3] = "CLIPBOARD";
})(r || (r = {}));
var C = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.toggleContainer = null;
t.wgtNode = null;
t.nodeList = null;
t.nodeProblems = null;
t.nodeTemplateChatItem = null;
t.nodeTemplateQuestionItem = null;
t.lytContentChat = null;
t.lytContentQuestion = null;
t.customerTypeName = "";
t._urlOnlineChat = "";
t.bhide = !1;
return t;
}
t.prototype.onLoad = function() {
this.nodeList.active = !1;
this.nodeProblems.active = !1;
this.nodeTemplateChatItem.parent = null;
this.nodeTemplateQuestionItem.parent = null;
s.default.hideGameNode();
cc.game.on(cc.game.EVENT_SHOW, this.onAppShow, this);
cc.game.on(cc.game.EVENT_HIDE, this.onAppHide, this);
};
t.prototype.start = function() {
cc.winSize.width / cc.winSize.height > 2 && (this.wgtNode.left += y.default.BangLength);
l.default.showLoadingUI();
d.default.customServiceList(function(e) {
l.default.hideLoadingUI();
this.createToggles(e);
}.bind(this));
g.default.playSound("enter_kefu");
};
t.prototype.onAppShow = function() {};
t.prototype.onAppHide = function() {
this.bhide = !0;
};
t.prototype.onDestroy = function() {
this.nodeTemplateChatItem.destroy();
this.nodeTemplateQuestionItem.destroy();
};
t.prototype.onBtnClick = function(e, t) {
if ("back" === t) {
h.default.playSound("close");
s.default.showGameNode();
this.node.destroy();
} else "chat" === t && this.evaluateRedirectMethod(e.target);
};
t.prototype.onToggleSelected = function(e) {
this.nodeList.active = !1;
this.nodeProblems.active = !1;
var t = e.userData;
if ("Online" === t.type) {
t.list[0] && (this._urlOnlineChat = t.list[0].content);
this.nodeList.active = !0;
this.createChatItems(t.list, t.type);
} else if ("CJ" === t.type) {
this.nodeProblems.active = !0;
this.createQuestionItems(t.list);
} else {
this.nodeList.active = !0;
this.createChatItems(t.list, t.type);
}
};
t.prototype.createToggles = function(e) {
var t = this, o = {
Online: v.t("customer_text.Online"),
QQ: v.t("customer_text.QQ"),
WECHAT: v.t("customer_text.WECHAT"),
MT: v.t("customer_text.MT"),
CJ: v.t("customer_text.CJ")
};
e.forEach(function(e) {
var n = t.toggleContainer.addDefaultToggle(o[e.type] || e.type, e);
t.customerTypeName === e.type && t.toggleContainer.selectToggle(n);
});
};
t.prototype.createChatItems = function(e, t) {
var o = this;
this.lytContentChat.node.destroyAllChildren();
e.forEach(function(e) {
var n = cc.instantiate(o.nodeTemplateChatItem), i = n.getChildByName("name").getComponent(cc.Label);
i.string = e.customerName;
n.getChildByName("btn").ChatID = e.content;
n.getChildByName("btn").ChatType = t;
n.getChildByName("btn").ChatRedirect = e.redirectMethod;
var a = n.getChildByName("id").getComponent(cc.Label);
a.string = "Online" === t ? v.t("customer_text.Online") : s.default.isUrl(e.content) ? "" : e.content;
i.node.active = !!i.string;
a.node.active = !!a.string;
cc.sys.isNative ? m.default.loadImage(e.icon, function(e, t) {
!e && n && n.isValid && (n.getChildByName("head").getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(t));
}.bind(o)) : cc.assetManager.loadRemote(e.icon, {
ext: ".png"
}, function(e, t) {
!e && n && n.isValid && (n.getChildByName("head").getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(t));
}.bind(o));
n.parent = o.lytContentChat.node;
});
};
t.prototype.createQuestionItems = function(e) {
this.lytContentQuestion.node.destroyAllChildren();
for (var t = 0; t < e.length; t++) {
var o = e[t], n = cc.instantiate(this.nodeTemplateQuestionItem);
n.getChildByName("title").getComponent(cc.Label).string = t + 1 + "、" + o.content;
n.getChildByName("text").getComponent(cc.Label).string = o.icon;
n.parent = this.lytContentQuestion.node;
}
};
t.prototype.evaluateRedirectMethod = function(e) {
var t = e.ChatID, o = void 0;
switch (e.ChatType, e.ChatRedirect) {
case r.WEBVIEW:
o = function() {
var e = cc.find("Canvas") && cc.find("Canvas").getComponent(f.default);
if (e) {
s.default.setOrientation("V");
e.openOnlineKefu(t);
}
};
break;

case r.BROWSER:
o = function() {
cc.sys.openURL(t);
};
break;

case r.CLIPBOARD:
o = function() {
s.default.copyText(t);
l.default.showTipUI(v.t("HallUI.copy_succ"));
};
break;

default:
o = function() {
var e = cc.find("Canvas") && cc.find("Canvas").getComponent(f.default);
if (e) {
s.default.setOrientation("V");
e.openOnlineKefu(t);
}
};
}
if ("QQ" === e.ChatType) u.default.isInstall(u.default.UMSocialPlatformType.QQ) ? cc.sys.openURL("mqq://im/chat?chat_type=wpa&uin={0}&version=1&src_type=web".format(t)) : l.default.showToastUI(v.t("customer_text.not_ind_qq"), p.Global.ToastType.Warnning); else if ("WECHAT" === e.ChatType) l.default.showConfirmUI(v.t("customer_text.jump_wx"), function() {
u.default.isInstall(u.default.UMSocialPlatformType.WechatSession) ? cc.sys.openURL("weixin://") : l.default.showToastUI(v.t("customer_text.not_ind_wx"), p.Global.ToastType.Warnning);
}.bind(this)); else if ("MT" === e.ChatType) {
s.default.copyText(t);
l.default.showConfirmUI(v.t("customer_text.jump_mt"), function() {
l.default.showLoadingUI();
d.default.getConfigValue("mtDownUrl", function(e) {
l.default.hideLoadingUI();
cc.sys.openURL(e && e.value0 || "https://mtios.com");
}.bind(this));
}.bind(this));
} else {
o && o();
o = void 0;
}
};
a([ S(c.default) ], t.prototype, "toggleContainer", void 0);
a([ S(cc.Widget) ], t.prototype, "wgtNode", void 0);
a([ S(cc.Node) ], t.prototype, "nodeList", void 0);
a([ S(cc.Node) ], t.prototype, "nodeProblems", void 0);
a([ S(cc.Node) ], t.prototype, "nodeTemplateChatItem", void 0);
a([ S(cc.Node) ], t.prototype, "nodeTemplateQuestionItem", void 0);
a([ S(cc.Layout) ], t.prototype, "lytContentChat", void 0);
a([ S(cc.Layout) ], t.prototype, "lytContentQuestion", void 0);
return a([ _ ], t);
}(cc.Component);
o.default = C;
cc._RF.pop();
}, {
"../Common/CommonToggleContainer": "CommonToggleContainer",
"../Shared/AudioManager": "AudioManager",
"../Shared/Constant": "Constant",
"../Shared/EnterSoundManager": "EnterSoundManager",
"../Shared/Global": "Global",
"../Shared/ImageCache": "ImageCache",
"../Shared/NetworkLogic": "NetworkLogic",
"../Shared/SDKManager": "SDKManager",
"../Shared/UIManager": "UIManager",
"../Shared/Utils": "Utils",
"../Shared/WebViewManager": "WebViewManager",
LanguageData: "LanguageData"
} ],
DownloadFailedImages: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "9958edDOJ5A2ob+snXFXpOu", "DownloadFailedImages");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../Shared/ImageCache"), c = cc._decorator, s = c.ccclass, l = (c.property, 
function(e) {
i(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.start = function() {
this.schedule(function() {
r.default.downloadFailedImages();
}, 6);
};
return a([ s ], t);
}(cc.Component));
o.default = l;
cc._RF.pop();
}, {
"../Shared/ImageCache": "ImageCache"
} ],
ESportsLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "68cd7GaIpBKJpM1nylDWDC/", "ESportsLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("./GamesConfig"), c = e("../Shared/Global"), s = e("../Models/GameList"), l = e("../Shared/Constant"), d = e("LanguageData"), u = cc._decorator, p = u.ccclass, h = u.property, f = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.layoutItems = null;
t.aniItems = null;
t.wgtScrollView = null;
t._nodeItems = [];
return t;
}
t.prototype.onLoad = function() {
this.layoutItems.node.removeAllChildren();
cc.winSize.width / cc.winSize.height > 2 && (this.wgtScrollView.left += l.default.BangLength);
cc.director.on(c.Global.UserEvent.GameListChanged, this.createNodeItems, this);
};
t.prototype.onEnable = function() {
this.showItems();
};
t.prototype.onDisable = function() {
this.aniItems.stop();
};
t.prototype.onDestroy = function() {
cc.director.off(c.Global.UserEvent.GameListChanged, this.createNodeItems, this);
};
t.prototype.createNodeItems = function() {
var e = this;
s.default.serverData && (s.default.getGameListByType(c.Global.GameType.ESport).twoLevelList || []).forEach(function(t) {
var o = new cc.Node(), n = new cc.Node(), i = n.addComponent(sp.Skeleton), a = o.addComponent(cc.Button), c = r.default.esports[t.platform];
n.parent = o;
o.width = e.layoutItems.node.height;
o.height = e.layoutItems.node.height;
o.parent = e.layoutItems.node;
e._nodeItems.push(o);
if (!c) {
c = "Hall/ESports/dianjing_00";
if (l.default.RemindMissingRes) {
var s = new cc.Node(), u = s.addComponent(cc.Label);
s.color = cc.color(255, 0, 0);
s.parent = o;
u.string = t.gameTitleCn + "\n" + d.t("CheckHot.lack_resources") + "!";
u.fontSize = 40;
}
}
cc.resources.load(c, sp.SkeletonData, function(e, t) {
if (!e && this.node) {
i.skeletonData = t;
i.animation = "liang_00";
}
}.bind(e));
var p = new cc.Node(), h = p.addComponent(cc.Label);
p.parent = n;
p.width = 230;
p.height = 60;
p.position = cc.v2(3, -130);
p.skewX = 8;
p.opacity = 150;
h.string = t.gameTitleCn;
h.horizontalAlign = cc.Label.HorizontalAlign.CENTER;
h.verticalAlign = cc.Label.VerticalAlign.CENTER;
h.useSystemFont = !0;
h.fontSize = 45;
h.lineHeight = 45;
h.overflow = cc.Label.Overflow.SHRINK;
h.enableBold = !0;
if ("2" === t.gameStatus) {
var f = new cc.Node(), g = f.addComponent(cc.Sprite);
f.parent = n;
f.position = cc.v2(137, -170);
n.color = cc.color(70, 70, 70);
p.color = cc.color(70, 70, 70);
cc.resources.load("Common/maintenance", cc.SpriteFrame, function(e, t) {
!e && g && g.isValid && (g.spriteFrame = t);
}.bind(e));
}
var y = new cc.Component.EventHandler();
y.target = cc.find("Canvas/gameNode");
y.component = "HallUI";
y.handler = "onGameItemClick";
a.clickEvents.push(y);
a.transition = cc.Button.Transition.SCALE;
a.zoomScale = .9;
a.node.gameConfig = t;
});
};
t.prototype.showItems = function() {
if (0 !== this.layoutItems.node.children.length) {
this.layoutItems.enabled = !0;
this.layoutItems.updateLayout();
this.layoutItems.enabled = !1;
var e = this.layoutItems.node.convertToNodeSpaceAR(this.node.convertToWorldSpaceAR(cc.v2(this.node.width * this.node.anchorX, 0))).x - this.layoutItems.node.children[0].x - this.layoutItems.node.children[0].width / 2;
this.layoutItems.node.children.forEach(function(t) {
var o = t.position;
t.x += e;
t.stopAllActions();
t.runAction(cc.moveTo(.3, o).easing(cc.easeSineOut()));
});
}
};
a([ h(cc.Layout) ], t.prototype, "layoutItems", void 0);
a([ h(cc.Animation) ], t.prototype, "aniItems", void 0);
a([ h(cc.Widget) ], t.prototype, "wgtScrollView", void 0);
return a([ p ], t);
}(cc.Component);
o.default = f;
cc._RF.pop();
}, {
"../Models/GameList": "GameList",
"../Shared/Constant": "Constant",
"../Shared/Global": "Global",
"./GamesConfig": "GamesConfig",
LanguageData: "LanguageData"
} ],
ElectronicLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "d9b63st419DBJ3UsV1P9/L5", "ElectronicLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("./GamesConfig"), c = e("../Shared/Constant"), s = e("../Models/GameList"), l = e("../Shared/Global"), d = e("../Common/EllipticalStage"), u = e("LanguageData"), p = cc._decorator, h = p.ccclass, f = p.property, g = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.ellipticalStage = null;
t.wgtStage = null;
t.nodeBgSpine = null;
t._selectedNode = null;
return t;
}
t.prototype.onLoad = function() {
if (cc.winSize.width / cc.winSize.height > 2) {
this.wgtStage.left += c.default.BangLength;
this.ellipticalStage.maxShowCount = 8;
}
this.nodeBgSpine.scaleX = cc.winSize.width / cc.view.getDesignResolutionSize().width;
cc.director.on(l.Global.UserEvent.GameListChanged, this.createNodeItems, this);
};
t.prototype.onEnable = function() {};
t.prototype.onDestroy = function() {
cc.director.off(l.Global.UserEvent.GameListChanged, this.createNodeItems, this);
};
t.prototype.onRotateStageEvents = function(e, t) {
t === l.Global.EllipticalStageEventType.ROTATE_BEGAN ? this.selectedNode(null) : t === l.Global.EllipticalStageEventType.ROTATE_ENDED && this.checkSelectedNode();
};
t.prototype.createNodeItems = function() {
var e = this;
if (s.default.serverData) {
var t = s.default.getGameListByType(l.Global.GameType.Electronic), o = t.twoLevelList ? t.twoLevelList.slice() : [], n = 0;
if (o.length > 0) for (var i = this.ellipticalStage.maxShowCount - o.length; i > 0; ) {
for (var a = 0; a < Math.min(o.length, i); a++) o.push(JSON.parse(JSON.stringify(o[a])));
i = this.ellipticalStage.maxShowCount - o.length;
}
o.forEach(function(t) {
var i = new cc.Node(), a = new cc.Node(), s = a.addComponent(sp.Skeleton), l = i.addComponent(cc.Button), d = r.default.electronic[t.platform];
a.name = "nodeSpine";
a.scale = 1.1;
a.parent = i;
i.anchorY = 0;
i.width = 300;
i.height = 370;
a.y = .45 * i.height;
i.parent = e.ellipticalStage.node;
if (!d) {
d = "Hall/Electronic/dianzi_01";
if (c.default.RemindMissingRes) {
var p = new cc.Node(), h = p.addComponent(cc.Label);
p.color = cc.color(255, 0, 0);
p.parent = i;
h.string = t.gameTitleCn + "\n" + u.t("CheckHot.lack_resources") + "!";
h.fontSize = 40;
}
}
cc.resources.load(d, sp.SkeletonData, function(e, t) {
if (!e && this.node) {
s.skeletonData = t;
s.animation = "an_00";
}
++n === o.length && this.checkSelectedNode();
}.bind(e));
if (-1 !== [ "AG", "PG", "MG" ].indexOf(t.platform)) {
var f = new cc.Node(), g = f.addComponent(cc.Sprite);
f.setAnchorPoint(cc.v2(1, 1));
f.position = cc.v2(.32 * i.width, .52 * i.height);
f.scale = .6;
f.parent = a;
cc.resources.load("Common/hot", cc.SpriteFrame, function(e, t) {
!e && g && g.isValid && (g.spriteFrame = t);
}.bind(e));
}
var y = new cc.Node(), m = y.addComponent(cc.Label), v = y.addComponent(cc.LabelOutline);
y.parent = a;
y.name = "nodeName";
y.width = 116;
y.height = 30;
y.position = cc.v2(25, -135);
m.string = t.gameTitleCn;
m.horizontalAlign = cc.Label.HorizontalAlign.CENTER;
m.verticalAlign = cc.Label.VerticalAlign.CENTER;
m.useSystemFont = !0;
m.fontSize = 25;
m.lineHeight = 25;
m.overflow = cc.Label.Overflow.SHRINK;
m.enableBold = !0;
v.color = cc.color(0, 52, 92);
v.width = 2;
if ("2" === t.gameStatus) {
var b = new cc.Node(), _ = b.addComponent(cc.Sprite);
b.parent = a;
b.position = cc.v2(60, -136);
a.color = cc.color(70, 70, 70);
y.color = cc.color(70, 70, 70);
v.color = cc.color(0, 15.6, 92 * .3);
cc.resources.load("Common/maintenance", cc.SpriteFrame, function(e, t) {
!e && _ && _.isValid && (_.spriteFrame = t);
}.bind(e));
}
var S = new cc.Component.EventHandler();
S.target = cc.find("Canvas/gameNode");
S.component = "HallUI";
S.handler = "onGameItemClick";
l.clickEvents.push(S);
l.node.gameConfig = t;
});
}
};
t.prototype.selectedNode = function(e) {
if (this._selectedNode !== e) {
if (this._selectedNode) {
this._selectedNode.getChildByName("nodeSpine").getComponent(sp.Skeleton).animation = "an_00";
this._selectedNode.getChildByName("nodeSpine").y += 20;
"2" === this._selectedNode.gameConfig.gameStatus ? cc.find("nodeSpine/nodeName", this._selectedNode).getComponent(cc.LabelOutline).color = cc.color(0, 15.6, 92 * .3) : cc.find("nodeSpine/nodeName", this._selectedNode).getComponent(cc.LabelOutline).color = cc.color(0, 52, 92);
}
this._selectedNode = e;
if (this._selectedNode) {
this._selectedNode.getChildByName("nodeSpine").getComponent(sp.Skeleton).animation = "liang_00";
this._selectedNode.getChildByName("nodeSpine").y -= 20;
"2" === this._selectedNode.gameConfig.gameStatus ? cc.find("nodeSpine/nodeName", this._selectedNode).getComponent(cc.LabelOutline).color = cc.color(76.5, 72 * .3, 0) : cc.find("nodeSpine/nodeName", this._selectedNode).getComponent(cc.LabelOutline).color = cc.color(255, 72, 0);
}
}
};
t.prototype.checkSelectedNode = function() {
var e = null;
this.ellipticalStage.node.children.forEach(function(t) {
255 === t.opacity && (!e || Math.abs(t.x) < Math.abs(e.x)) && (e = t);
});
e && this.selectedNode(e);
};
a([ f(d.default) ], t.prototype, "ellipticalStage", void 0);
a([ f(cc.Widget) ], t.prototype, "wgtStage", void 0);
a([ f(cc.Node) ], t.prototype, "nodeBgSpine", void 0);
return a([ h ], t);
}(cc.Component);
o.default = g;
cc._RF.pop();
}, {
"../Common/EllipticalStage": "EllipticalStage",
"../Models/GameList": "GameList",
"../Shared/Constant": "Constant",
"../Shared/Global": "Global",
"./GamesConfig": "GamesConfig",
LanguageData: "LanguageData"
} ],
EllipticalStage: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "9611esZYu9LfrByQi9iqyIY", "EllipticalStage");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = cc._decorator, c = r.ccclass, s = r.property, l = cc.Enum({
ROTATING: 0,
ROTATE_ENDED: 1,
TOUCH_UP: 2,
ROTATE_BEGAN: 3
}), d = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.maxShowCount = 5;
t.hideBackstage = !1;
t.nodeTouch = null;
t.brake = .03;
t.rotateStageEvents = [];
t._a = 0;
t._b = 0;
t._c = 0;
t._v = 0;
t._preTime = 0;
t._touchMoved = !1;
t._touchEnded = !0;
t._childrenByOrder = [];
t._childInWait = [];
return t;
}
t.prototype.onLoad = function() {
this.node.on(cc.Node.EventType.CHILD_ADDED, this.onAddChild, this);
this.nodeTouch.on(cc.Node.EventType.TOUCH_START, this.onTouchStart, this, !0);
this.nodeTouch.on(cc.Node.EventType.TOUCH_MOVE, this.onTouchMove, this, !0);
this.nodeTouch.on(cc.Node.EventType.TOUCH_END, this.onTouchEnd, this, !0);
this.nodeTouch.on(cc.Node.EventType.TOUCH_CANCEL, this.onTouchCancel, this, !0);
};
t.prototype.start = function() {
this.node.getComponent(cc.Widget).updateAlignment();
this._a = this.node.width / 2;
this._b = this.node.height / 2;
this._c = Math.sqrt(Math.pow(this._a, 2) - Math.pow(this._b, 2));
};
t.prototype.onDestroy = function() {
this.node.off(cc.Node.EventType.CHILD_ADDED, this.onAddChild, this);
this.nodeTouch.off(cc.Node.EventType.TOUCH_START, this.onTouchStart, this, !0);
this.nodeTouch.off(cc.Node.EventType.TOUCH_MOVE, this.onTouchMove, this, !0);
this.nodeTouch.off(cc.Node.EventType.TOUCH_END, this.onTouchEnd, this, !0);
this.nodeTouch.off(cc.Node.EventType.TOUCH_CANCEL, this.onTouchCancel, this, !0);
};
t.prototype.update = function(e) {
this.processAutoRotating(e);
};
t.prototype.onAddChild = function(e) {
if (!e.radian) if (this.node.children.length > this.maxShowCount) {
this._childInWait.push(e);
e.parent = null;
} else {
var t = Math.PI + Math.PI / (this.maxShowCount - 1) * (this.node.children.length - 1);
this.setChildPositionByRadian(e, t);
this._childrenByOrder.push(e);
}
};
t.prototype.onTouchStart = function() {
this._v = 0;
this._touchMoved = !1;
this._touchEnded = !1;
cc.Component.EventHandler.emitEvents(this.rotateStageEvents, this, l.ROTATE_BEGAN);
};
t.prototype.onTouchMove = function(e) {
var t = e.getDeltaX() / this.node.width * Math.PI;
this.rotateStage(t);
if (0 !== this._preTime) {
var o = (new Date().getTime() - this._preTime) / 1e3;
o = o < 1e-5 ? 1 / 60 : o;
this._v = t / o;
}
this._preTime = new Date().getTime();
e.touch.getLocation().sub(e.touch.getStartLocation()).mag() > 7 && (this._touchMoved = !0);
};
t.prototype.onTouchCancel = function() {
this._preTime = 0;
this._touchEnded = !0;
cc.Component.EventHandler.emitEvents(this.rotateStageEvents, this, l.TOUCH_UP);
0 === this._v && this.stopAutoRotate();
};
t.prototype.onTouchEnd = function(e) {
this._preTime = 0;
this._touchEnded = !0;
cc.Component.EventHandler.emitEvents(this.rotateStageEvents, this, l.TOUCH_UP);
0 === this._v && this.stopAutoRotate();
this._touchMoved && e.stopPropagation();
};
t.prototype.stopAutoRotate = function() {
this._v = 0;
cc.Component.EventHandler.emitEvents(this.rotateStageEvents, this, l.ROTATE_ENDED);
};
t.prototype.rotateStage = function(e) {
for (var t = 0; t < this.node.children.length; t++) {
var o = this.node.children[t], n = o.radian + e;
this.setChildPositionByRadian(o, n);
}
this.checkAddOrRemoveChild(e);
cc.Component.EventHandler.emitEvents(this.rotateStageEvents, this, l.ROTATING);
};
t.prototype.rotateStageInTime = function(e, t) {
var o = 0, n = 0, i = e / t, a = function(r) {
var c = i * r;
n + c > e && (c = e - n);
n += c;
this.rotateStage(c);
if ((o += r) > t) {
this.unschedule(a);
cc.Component.EventHandler.emitEvents(this.rotateStageEvents, this, l.ROTATE_ENDED);
}
};
this.schedule(a, 0);
cc.Component.EventHandler.emitEvents(this.rotateStageEvents, this, l.ROTATE_BEGAN);
};
t.prototype.getPositionByRadian = function(e) {
return cc.v2(this._a * Math.cos(e), this._b * Math.sin(e));
};
t.prototype.setChildPositionByRadian = function(e, t) {
e.radian = t;
e.position = this.getPositionByRadian(t);
e.zIndex = -e.y;
var o = -this.node.height * this.node.anchorY;
e.scale = -.4 * Math.abs(e.y - o) / this.node.height + 1;
if (this.hideBackstage) {
var n = Math.sin(t), i = Math.sin(Math.PI / 7), a = Math.sin(Math.PI / 2);
e.opacity = n > -a && n < -i ? 255 : n > i && n < a ? 0 : (i - n) / (2 * i) * 255;
}
};
t.prototype.processAutoRotating = function(e) {
if (this._touchEnded && 0 !== this._v) {
var t = this._v * e;
this._v = this._v * (1 - this.brake);
Math.abs(t) > .005 ? this.rotateStage(t) : this.stopAutoRotate();
}
};
t.prototype.checkAddOrRemoveChild = function(e) {
for (var t = this._childrenByOrder[0], o = this._childrenByOrder[this._childrenByOrder.length - 1]; ;) {
var n = !1;
if (e > 0 && t && Math.sin(t.radian) < Math.sin(Math.PI)) {
if (a = this._childInWait.shift()) {
n = !0;
var i = t.radian - Math.PI / (this.maxShowCount - 1);
this.setChildPositionByRadian(a, i);
a.parent = this.node;
this._childrenByOrder.unshift(a);
t = a;
cc.log("<--左边新增电子:", a.gameConfig.gameTitleCn);
}
} else if (e < 0 && o && Math.sin(o.radian) < 0) {
var a;
if (a = this._childInWait.pop()) {
n = !0;
i = o.radian + Math.PI / (this.maxShowCount - 1);
this.setChildPositionByRadian(a, i);
a.parent = this.node;
this._childrenByOrder.push(a);
o = a;
cc.log("--\x3e右边新增电子:", a.gameConfig.gameTitleCn);
}
}
if (!n) break;
}
for (;;) if (e > 0 && o && 0 === o.opacity) {
this._childInWait.push(o);
o.parent = null;
this._childrenByOrder.pop();
o = this._childrenByOrder[this._childrenByOrder.length - 1];
} else {
if (!(e < 0 && t && 0 === t.opacity)) break;
this._childInWait.unshift(t);
t.parent = null;
this._childrenByOrder.shift();
t = this._childrenByOrder[0];
}
};
a([ s({
tooltip: "横向最多能显示多少个子节点"
}) ], t.prototype, "maxShowCount", void 0);
a([ s({
tooltip: "是否隐藏位于舞台后面的节点"
}) ], t.prototype, "hideBackstage", void 0);
a([ s({
type: cc.Node,
tooltip: "触摸节点。该节点响应触摸事件"
}) ], t.prototype, "nodeTouch", void 0);
a([ s(cc.Float) ], t.prototype, "brake", void 0);
a([ s({
type: [ cc.Component.EventHandler ]
}) ], t.prototype, "rotateStageEvents", void 0);
return a([ c ], t);
}(cc.Component);
o.default = d;
cc._RF.pop();
}, {} ],
EnterSoundManager: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "0ac7dPD8+pGTJ3GLCpH9O4h", "EnterSoundManager");
Object.defineProperty(o, "__esModule", {
value: !0
});
var n = e("./AudioManager"), i = function() {
function e() {
this._playedSounds = [];
this._curSoundID = null;
}
e.prototype.playSound = function(e) {
if (-1 === this._playedSounds.indexOf(e)) {
this._playedSounds.push(e);
this._curSoundID && cc.audioEngine.stopEffect(this._curSoundID);
n.default.playSound(e, !1, function(e) {
this._curSoundID = e;
}.bind(this));
}
};
return e;
}();
o.default = new i();
cc._RF.pop();
}, {
"./AudioManager": "AudioManager"
} ],
Extend: [ function(e, t) {
"use strict";
cc._RF.push(t, "ecdd5v3duhDPZubQmuWyhgK", "Extend");
Date.prototype.format = function(e) {
var t = {
"M+": this.getMonth() + 1,
"d+": this.getDate(),
"h+": this.getHours(),
"m+": this.getMinutes(),
"s+": this.getSeconds(),
"q+": Math.floor((this.getMonth() + 3) / 3),
"S+": this.getMilliseconds()
};
/(y+)/i.test(e) && (e = e.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)));
for (var o in t) new RegExp("(" + o + ")").test(e) && (e = e.replace(RegExp.$1, 1 === RegExp.$1.length ? t[o] : ("00" + t[o]).substr(("" + t[o]).length)));
return e;
};
String.prototype.format = function(e) {
var t = this;
if (arguments.length > 0) if (1 === arguments.length && "object" == typeof e) {
for (var o in e) if (void 0 !== e[o]) {
var n = new RegExp("({" + o + "})", "g");
t = t.replace(n, e[o]);
}
} else for (var i = 0; i < arguments.length; i++) if (void 0 !== arguments[i]) {
n = new RegExp("({[" + i + "]})", "g");
t = t.replace(n, arguments[i]);
}
return t;
};
cc._RF.pop();
}, {} ],
FilterGameType: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "7ac86xTyTREB5JvOpCqzMkX", "FilterGameType");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../Shared/AudioManager"), c = e("../Shared/Global"), s = e("../Models/GameList"), l = cc._decorator, d = l.ccclass, u = l.property, p = function(e) {
i(t, e);
function t() {
var t, o = null !== e && e.apply(this, arguments) || this;
o.svTypes = null;
o.mask = null;
o.layerTopsGames = null;
o.layerChessAndCard = null;
o.layerFish = null;
o.layerLiveVideo = null;
o.layerElectronic = null;
o.layerSports = null;
o.layerLottery = null;
o.layerESports = null;
o._type2Layer = {};
o._curLayer = null;
o._gameTypt2Name = ((t = {
"": "topgames"
})[c.Global.GameType.Chess] = "chessandcard", t[c.Global.GameType.Fish] = "fish", 
t[c.Global.GameType.ESport] = "esports", t[c.Global.GameType.Electronic] = "electronic", 
t[c.Global.GameType.Live] = "livevideo", t[c.Global.GameType.Sport] = "sports", 
t[c.Global.GameType.Lottery] = "lottery", t);
return o;
}
t.prototype.onLoad = function() {
this._type2Layer = {
topgames: this.layerTopsGames,
chessandcard: this.layerChessAndCard,
fish: this.layerFish,
livevideo: this.layerLiveVideo,
electronic: this.layerElectronic,
sports: this.layerSports,
lottery: this.layerLottery,
esports: this.layerESports
};
this.layerTopsGames.active = !0;
this.layerChessAndCard.active = !0;
this.layerFish.active = !0;
this.layerLiveVideo.active = !0;
this.layerElectronic.active = !0;
this.layerSports.active = !0;
this.layerLottery.active = !0;
this.layerESports.active = !0;
cc.director.on(c.Global.UserEvent.GameListChanged, this.sortGameTypes, this);
};
t.prototype.start = function() {
this.scheduleOnce(function() {
this.layerChessAndCard.active = !1;
this.layerFish.active = !1;
this.layerLiveVideo.active = !1;
this.layerElectronic.active = !1;
this.layerSports.active = !1;
this.layerLottery.active = !1;
this.layerESports.active = !1;
}, .05);
this.showLayer(this._gameTypt2Name[""]);
};
t.prototype.onDestroy = function() {
cc.director.off(c.Global.UserEvent.GameListChanged, this.sortGameTypes, this);
};
t.prototype.onFilter = function(e) {
r.default.playSound("toggle");
this.showLayer(e.node.name);
this.checkScroll(e);
};
t.prototype.showLayer = function(e) {
this._curLayer && (this._curLayer.active = !1);
this._curLayer = this._type2Layer[e];
this._curLayer.active = !0;
};
t.prototype.checkScroll = function(e) {
var t = -e.node.height * e.node.anchorY, o = -this.mask.node.height * this.mask.node.anchorY;
if (e.node.convertToWorldSpaceAR(cc.v2(0, t)).y - this.mask.node.convertToWorldSpaceAR(cc.v2(0, o)).y < 20) this.svTypes.scrollToBottom(1); else {
var n = -e.node.height * e.node.anchorY + e.node.height, i = -this.mask.node.height * this.mask.node.anchorY + this.mask.node.height;
this.mask.node.convertToWorldSpaceAR(cc.v2(0, i)).y - e.node.convertToWorldSpaceAR(cc.v2(0, n)).y < 20 && this.svTypes.scrollToTop(1);
}
};
t.prototype.sortGameTypes = function() {
for (var e in this._gameTypt2Name) cc.find(this._gameTypt2Name[e], this.node).active = !1;
for (var t = 0; t < s.default.serverData.tabList.length; t++) {
var o = s.default.serverData.tabList[t], n = o.gameTypes ? parseInt(o.gameTypes) : "", i = (r = cc.find(this._gameTypt2Name[n], this.node).getComponent(cc.Toggle)).node.getChildByName("name_label").getComponent(cc.Label);
r.node.active = !0;
r.node.zIndex = +o.sort;
i.string = o.categoryName;
}
var a = this.node.children[0];
if (a) {
var r;
(r = a.getComponent(cc.Toggle)) && (r.isChecked = !0);
}
};
a([ u(cc.ScrollView) ], t.prototype, "svTypes", void 0);
a([ u(cc.Mask) ], t.prototype, "mask", void 0);
a([ u(cc.Node) ], t.prototype, "layerTopsGames", void 0);
a([ u(cc.Node) ], t.prototype, "layerChessAndCard", void 0);
a([ u(cc.Node) ], t.prototype, "layerFish", void 0);
a([ u(cc.Node) ], t.prototype, "layerLiveVideo", void 0);
a([ u(cc.Node) ], t.prototype, "layerElectronic", void 0);
a([ u(cc.Node) ], t.prototype, "layerSports", void 0);
a([ u(cc.Node) ], t.prototype, "layerLottery", void 0);
a([ u(cc.Node) ], t.prototype, "layerESports", void 0);
return a([ d ], t);
}(cc.Component);
o.default = p;
cc._RF.pop();
}, {
"../Models/GameList": "GameList",
"../Shared/AudioManager": "AudioManager",
"../Shared/Global": "Global"
} ],
FishLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "7c915KUh85IiJuBMAmssaBR", "FishLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../Models/GameList"), c = e("../Shared/Global"), s = e("./ThirdGameItem"), l = e("../Shared/Constant"), d = e("../Shared/AudioManager"), u = cc._decorator, p = u.ccclass, h = u.property, f = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.pfbGameItem = null;
t.scrollview = null;
t.wgtScrollView = null;
t.layoutItems = null;
t.nodeGirl = null;
t.nodeGameTypes = null;
t.nodeTrangle = null;
t._movedLeft = !1;
t._scrollStartPos = cc.v2(0, 0);
t._oldGirlPosX = 0;
t._oldItemsPosX = 0;
t._gameItems = [];
return t;
}
t.prototype.onLoad = function() {
this.layoutItems.node.removeAllChildren();
cc.winSize.width / cc.winSize.height > 2 && (this.wgtScrollView.right += l.default.BangLength);
cc.director.on(c.Global.UserEvent.GameListChanged, this.createNodeItems, this);
};
t.prototype.onEnable = function() {
r.default.serverData && this.showItems(this._gameItems);
};
t.prototype.onDestroy = function() {
cc.director.off(c.Global.UserEvent.GameListChanged, this.createNodeItems, this);
};
t.prototype.onBtnClick = function(e, t) {
if ("sanjiaoxing" === t) {
d.default.playSound("show");
e.target.scaleX > 0 ? this.moveToLeft() : this.moveToRight();
}
};
t.prototype.createNodeItems = function() {
if (r.default.serverData) {
var e = r.default.getGameListByType(c.Global.GameType.Fish);
this._gameItems = this.createGameItems(e.twoLevelList || []);
this.showItems(this._gameItems);
}
};
t.prototype.onScrollViewEvent = function(e, t) {
t !== cc.ScrollView.EventType.SCROLL_BEGAN ? t === cc.ScrollView.EventType.SCROLLING && e.content.x < this._scrollStartPos.x && e.content.x < 0 && !this._movedLeft ? this.moveToLeft() : t === cc.ScrollView.EventType.SCROLLING && e.content.x > this._scrollStartPos.x && e.content.x > 0 && this._movedLeft && this.moveToRight() : this._scrollStartPos = e.content.position;
};
t.prototype.createGameItem = function(e) {
var t = cc.instantiate(this.pfbGameItem), o = t.getComponent(s.default), n = t.getChildByName("node").addComponent(cc.Button), i = new cc.Component.EventHandler();
t.width = .49 * this.layoutItems.node.height;
t.height = .49 * this.layoutItems.node.height;
o.urlImgPrefix = r.default.serverData.imgPrefix;
o.gameConfig = e;
i.target = cc.find("Canvas/gameNode");
i.component = "HallUI";
i.handler = "onGameItemClick";
n.clickEvents.push(i);
n.transition = cc.Button.Transition.SCALE;
n.zoomScale = .9;
n.node.gameConfig = o.gameConfig;
return o;
};
t.prototype.createGameItems = function(e) {
var t = this, o = [];
e.forEach(function(e) {
o.push(t.createGameItem(e));
});
return o;
};
t.prototype.showItems = function(e) {
var t = this;
this.layoutItems.node.removeAllChildren();
e.forEach(function(e) {
e.node.parent = t.layoutItems.node;
});
this.layoutItems.node.x = 0;
this.layoutItems.enabled = !0;
this.layoutItems.updateLayout();
this.layoutItems.enabled = !1;
this.scrollview.content.width = Math.max(this.scrollview.content.width, this.scrollview.node.width + 10);
var o = 0;
this.layoutItems.node.children.forEach(function(e) {
var t = e.position;
e.position = cc.v2(t.x + 1e3, t.y);
e.stopAllActions();
e.runAction(cc.sequence(cc.delayTime(o), cc.moveTo(.2, cc.v2(t.x - 50, t.y)).easing(cc.easeSineOut()), cc.moveTo(.15, t).easing(cc.easeSineInOut())));
o += .05;
});
};
t.prototype.moveToLeft = function() {
if (0 === this._oldGirlPosX) {
this._oldGirlPosX = this.nodeGirl.x;
this._oldItemsPosX = this.scrollview.node.x;
}
this.nodeTrangle.scaleX *= -1;
this._movedLeft = !0;
this.nodeGirl.stopAllActions();
this.scrollview.node.stopAllActions();
this.nodeGirl.runAction(cc.spawn(cc.moveTo(.25, cc.v2(-this.nodeGirl.width / 2 - this.nodeGirl.parent.width * this.nodeGirl.anchorX, this.nodeGirl.y)).easing(cc.easeSineOut()), cc.fadeOut(.25)));
var e = this.scrollview.node.parent.convertToNodeSpaceAR(this.nodeGameTypes.convertToWorldSpaceAR(cc.v2(this.nodeGameTypes.width * this.nodeGameTypes.anchorX + l.default.BangLength, 0)));
this.scrollview.node.runAction(cc.moveTo(.25, cc.v2(e.x, this.scrollview.node.y)).easing(cc.easeSineOut()));
};
t.prototype.moveToRight = function() {
this.nodeTrangle.scaleX *= -1;
this._movedLeft = !1;
this.nodeGirl.stopAllActions();
this.scrollview.node.stopAllActions();
this.nodeGirl.runAction(cc.spawn(cc.moveTo(.25, cc.v2(this._oldGirlPosX, this.nodeGirl.y)).easing(cc.easeSineOut()), cc.fadeIn(.25)));
this.scrollview.node.runAction(cc.moveTo(.25, cc.v2(this._oldItemsPosX, this.scrollview.node.y)).easing(cc.easeSineOut()));
};
a([ h(cc.Prefab) ], t.prototype, "pfbGameItem", void 0);
a([ h(cc.ScrollView) ], t.prototype, "scrollview", void 0);
a([ h(cc.Widget) ], t.prototype, "wgtScrollView", void 0);
a([ h(cc.Layout) ], t.prototype, "layoutItems", void 0);
a([ h(cc.Node) ], t.prototype, "nodeGirl", void 0);
a([ h(cc.Node) ], t.prototype, "nodeGameTypes", void 0);
a([ h(cc.Node) ], t.prototype, "nodeTrangle", void 0);
return a([ p ], t);
}(cc.Component);
o.default = f;
cc._RF.pop();
}, {
"../Models/GameList": "GameList",
"../Shared/AudioManager": "AudioManager",
"../Shared/Constant": "Constant",
"../Shared/Global": "Global",
"./ThirdGameItem": "ThirdGameItem"
} ],
FixToolUI: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "155b3HsPdZN2bGNqAXGvQxY", "FixToolUI");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../Common/RemoteSprite"), c = e("../Shared/UIManager"), s = e("../Shared/NetworkLogic"), l = e("../Shared/EnterSoundManager"), d = e("../Models/Player"), u = cc._decorator, p = u.ccclass, h = u.property, f = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.nodeContent = null;
t.nodeTemplate = null;
return t;
}
t.prototype.onLoad = function() {
this.nodeTemplate.parent = null;
};
t.prototype.start = function() {
c.default.showLoadingUI();
s.default.getFixData(function(e) {
var t = this;
c.default.hideLoadingUI();
e.forEach(function(e) {
if (0 === e.showType || 1 === e.showType && cc.sys.os === cc.sys.OS_ANDROID || 2 === e.showType && cc.sys.os === cc.sys.OS_IOS) {
if (0 === e.type && 0 === d.default.getPy("money")) return;
var o = cc.instantiate(t.nodeTemplate);
o.getChildByName("icon").getComponent(r.default).url = e.iconSrc;
o.getChildByName("tips").getComponent(cc.Label).string = e.descript;
o.getChildByName("install").downloadUrl = e.download;
o.parent = t.nodeContent;
}
});
}.bind(this));
l.default.playSound("enter_xiufu");
};
t.prototype.onDestroy = function() {
this.nodeTemplate.destroy();
};
t.prototype.onBtnClick = function(e, t) {
if ("close" === t) this.node.destroy(); else if ("install" === t) {
var o = e.target.downloadUrl || "";
"http" !== o.substr(0, 4) && (o = "http://" + o);
cc.sys.openURL(o);
}
};
a([ h(cc.Node) ], t.prototype, "nodeContent", void 0);
a([ h(cc.Node) ], t.prototype, "nodeTemplate", void 0);
return a([ p ], t);
}(cc.Component);
o.default = f;
cc._RF.pop();
}, {
"../Common/RemoteSprite": "RemoteSprite",
"../Models/Player": "Player",
"../Shared/EnterSoundManager": "EnterSoundManager",
"../Shared/NetworkLogic": "NetworkLogic",
"../Shared/UIManager": "UIManager"
} ],
GameList: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "d2ccbh7RuVLDruCnbRTnr4R", "GameList");
Object.defineProperty(o, "__esModule", {
value: !0
});
var n = e("../Shared/Global"), i = function() {
function e() {
this._serverData = null;
}
Object.defineProperty(e.prototype, "serverData", {
get: function() {
return this._serverData;
},
set: function(e) {
this._serverData = e;
cc.director.emit(n.Global.UserEvent.GameListChanged);
},
enumerable: !1,
configurable: !0
});
e.prototype.getGameListByType = function(e) {
for (var t = {}, o = 0; o < this.serverData.tabList.length; o++) {
var n = this.serverData.tabList[o];
if (n.gameTypes == e) {
t = n;
break;
}
}
return t;
};
e.prototype.getGameConfigById = function(e) {
var t = null, o = this._serverData.tabList;
cc.log("====获取gameConfig  tabList:", o);
for (var n = 0; n < o.length; n++) if (null !== o[n].gameTypes && "" !== o[n].gameTypes) for (var i = o[n].twoLevelList, a = 0; a < i.length; a++) if (i[a].platformGameType == e.gameType && i[a].platform === e.gamePlat) if (0 === (t = i[a]).entranceFlag) {
if (e.gameListId === t.gameListId) return t;
} else if (1 === t.entranceFlag) return t;
return t;
};
e.prototype.getCategoryNameByTypeId = function(e) {
for (var t = this._serverData.tabList, o = 0; o < t.length; o++) for (var n = t[o].twoLevelList, i = 0; i < n.length; i++) if (n[i].platformGameType === e) return t[o].categoryName;
};
return e;
}();
o.default = new i();
cc._RF.pop();
}, {
"../Shared/Global": "Global"
} ],
GamesConfig: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "44a3egqza5B+LnLWwGBSamE", "GamesConfig");
Object.defineProperty(o, "__esModule", {
value: !0
});
o.default = {
chessandcard: {
PG: "Hall/ChessAndCard/qipai_00",
EG: "Hall/ChessAndCard/qipai_01",
YG: "Hall/ChessAndCard/qipai_02",
NW: "Hall/ChessAndCard/qipai_03",
FG: "Hall/ChessAndCard/qipai_04",
RMG: "Hall/ChessAndCard/qipai_05",
MT: "Hall/ChessAndCard/qipai_06",
LY: "Hall/ChessAndCard/qipai_07",
VG: "Hall/ChessAndCard/qipai_08",
JDB: "Hall/ChessAndCard/qipai_09",
MW: "Hall/ChessAndCard/qipai_10",
TH: "Hall/ChessAndCard/qipai_11",
HT: "Hall/ChessAndCard/qipai_13",
DG: "Hall/ChessAndCard/qipai_14",
CQ: "Hall/ChessAndCard/qipai_15",
BSP: "Hall/ChessAndCard/qipai_16",
DT: "Hall/ChessAndCard/qipai_17",
PP: "Hall/ChessAndCard/qipai_18",
VB: "Hall/ChessAndCard/qipai_19",
OBGQP: "Hall/ChessAndCard/qipai_pm",
PMQP: "Hall/ChessAndCard/qipai_pm",
DTQP: "Hall/ChessAndCard/qipai_dt"
},
fish: {},
electronic: {
BG: "Hall/Electronic/dianzi_00",
TH: "Hall/Electronic/dianzi_01",
PT: "Hall/Electronic/dianzi_02",
MW: "Hall/Electronic/dianzi_03",
PP: "Hall/Electronic/dianzi_04",
PG: "Hall/Electronic/dianzi_05",
MG: "Hall/Electronic/dianzi_06",
FG: "Hall/Electronic/dianzi_07",
AG: "Hall/Electronic/dianzi_08",
SG: "Hall/Electronic/dianzi_09",
JDB: "Hall/Electronic/dianzi_10",
MT: "Hall/Electronic/dianzi_11",
CQ: "Hall/Electronic/dianzi_12",
xxxxxxxxxxxxxxxxx: "Hall/Electronic/dianzi_13",
HT: "Hall/Electronic/dianzi_14",
DG: "Hall/Electronic/dianzi_15",
BBIN: "Hall/Electronic/dianzi_16",
RMG: "Hall/Electronic/dianzi_17",
LY: "Hall/Electronic/dianzi_18",
BSP: "Hall/Electronic/dianzi_19",
yyyyyyyyyyyyyyyyy: "Hall/Electronic/dianzi_20",
DT: "Hall/Electronic/dianzi_21",
SEA: "Hall/Electronic/dianzi_22",
ICG: "Hall/Electronic/dianzi_23",
JQ: "Hall/Electronic/dianzi_24",
OBGDZ: "Hall/Electronic/dianzi_pm",
PMDZ: "Hall/Electronic/dianzi_pm",
JILI: "Hall/Electronic/jilidianzi_99"
},
sports: {
XJ: "Hall/Sports/188",
RIBO: "Hall/Sports/189",
CR: "Hall/Sports/huangguan",
SBO: "Hall/Sports/liji",
SB: "Hall/Sports/shaba",
BTI: "Hall/Sports/bti",
SH: "Hall/Sports/sansheng",
SONE: "Hall/Sports/douji",
IMSB: "Hall/Sports/im",
SEXY: "Hall/Sports/sexy",
OBGSP: "Hall/Sports/pmty",
PMSP: "Hall/Sports/pmty",
CMD: "Hall/Sports/cmd",
SBOV2: "Hall/Sports/sbov2"
},
lottery: {},
esports: {
IM: "Hall/ESports/dianjing_00",
RG: "Hall/ESports/dianjing_01",
AVIA: "Hall/ESports/dianjing_02",
TF: "Hall/ESports/dianjing_03",
OBGES: "Hall/ESports/dianjing_pm",
PMES: "Hall/ESports/dianjing_pm"
},
livevideo: {
BG: "Hall/LiveVideo/bg",
AG: "Hall/LiveVideo/ag",
BBIN: "Hall/LiveVideo/bb",
PT: "Hall/LiveVideo/pt",
EVO: "Hall/LiveVideo/evo",
OB: "Hall/LiveVideo/ob",
IG: "Hall/LiveVideo/ig",
DGZR: "Hall/LiveVideo/dg",
EBET: "Hall/LiveVideo/ebet",
PP: "Hall/LiveVideo/play",
AE: "Hall/LiveVideo/ae",
RIBOLV: "Hall/LiveVideo/xj",
GLG: "Hall/LiveVideo/glg",
OBGLV: "Hall/LiveVideo/pmlv",
PMLV: "Hall/LiveVideo/pmlv"
}
};
cc._RF.pop();
}, {} ],
GlobalUtils: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "d0b22HXATFDHakQe1gn3Eu3", "GlobalUtils");
var n = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
e("../global_editbox_extension");
var i = cc._decorator.ccclass, a = new (function() {
function e() {}
e.prototype.init = function() {
cc.systemEvent.on("global-editbox-began", this._onEditBoxBegan.bind(this));
cc.systemEvent.on("global-editbox-ended", this._onEditBoxEnded.bind(this));
};
e.prototype.clear = function() {
cc.systemEvent.off("global-editbox-began");
cc.systemEvent.off("global-editbox-ended");
};
e.prototype._onEditBoxBegan = function(e) {
var t = e.editBox, o = t.node.parent.convertToWorldSpaceAR(t.node.position), n = .72 * cc.view.getDesignResolutionSize().height;
console.log(n);
var i = 0;
o.y < n && (i = n - o.y + .14 * n);
cc.Camera.findCamera(t.node).node.setPosition(0, -i);
};
e.prototype._onEditBoxEnded = function(e) {
var t = e.editBox;
cc.Camera.findCamera(t.node).node.setPosition(0, 0);
};
return n([ i ], e);
}())();
a.init();
o.default = a;
cc._RF.pop();
}, {
"../global_editbox_extension": "global_editbox_extension"
} ],
Global: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "8e510SnaC5DpIEFqcK61fyk", "Global");
Object.defineProperty(o, "__esModule", {
value: !0
});
o.Global = void 0;
var n = e("LanguageData");
(function(e) {
(function(e) {
e[e.OK = 0] = "OK";
e[e.Error = 1] = "Error";
e[e.Warnning = 2] = "Warnning";
})(e.ToastType || (e.ToastType = {}));
e.UserEvent = {
UpdateMoney: "updateMoney",
PlayerPyChanged: "playerPyChanged",
PlayerLogin: "playerLogin",
PlayerLogout: "playerLogout",
GameListChanged: "gameListChanged",
CloseThirdGame: "closeThirdGame",
HallLoaded: "hallLoaded",
LoadingHallEnd: "loadingHallEnd",
MsgListChanged: "msgListChanged",
EnterHall: "enterHall",
ExitHall: "exitHall",
AddOftenGameConfig: "addOftenGameConfig",
CheckSignal: "CheckSignal",
XimaGameDetail: "XimaGameDetail",
GetWakeUpParams: "getWakeUpParams",
AfterLogin: "afterLogin",
OpenBaoxiang: "openBaoxiang",
OpenThirdPayment: "openThirdPayment",
UpdateShareTaskBtn: "updateShareTaskBtn",
OrientationChanged: "orientationChanged",
UpdateShareRedPoint: "UpdateShareRedPoint",
OpenMantain: "OpenMantain"
};
(function(e) {
e[e.SCROLL_TO_TOP = 0] = "SCROLL_TO_TOP";
e[e.SCROLL_TO_BOTTOM = 1] = "SCROLL_TO_BOTTOM";
e[e.SCROLL_TO_LEFT = 2] = "SCROLL_TO_LEFT";
e[e.SCROLL_TO_RIGHT = 3] = "SCROLL_TO_RIGHT";
e[e.SCROLLING = 4] = "SCROLLING";
e[e.SCROLL_ENDED = 5] = "SCROLL_ENDED";
e[e.TOUCH_UP = 6] = "TOUCH_UP";
e[e.SCROLL_BEGAN = 7] = "SCROLL_BEGAN";
})(e.SimpleScrollViewEventType || (e.SimpleScrollViewEventType = {}));
(function(e) {
e[e.HORIZONTAL = 0] = "HORIZONTAL";
e[e.VERTICAL = 1] = "VERTICAL";
})(e.SimpleScrollViewDirection || (e.SimpleScrollViewDirection = {}));
(function(e) {
e[e.ROTATING = 0] = "ROTATING";
e[e.ROTATE_ENDED = 1] = "ROTATE_ENDED";
e[e.TOUCH_UP = 2] = "TOUCH_UP";
e[e.ROTATE_BEGAN = 3] = "ROTATE_BEGAN";
})(e.EllipticalStageEventType || (e.EllipticalStageEventType = {}));
(function(e) {
e[e.Default = 0] = "Default";
e[e.Chess = 1] = "Chess";
e[e.Fish = 2] = "Fish";
e[e.ESport = 3] = "ESport";
e[e.Electronic = 4] = "Electronic";
e[e.Live = 5] = "Live";
e[e.Sport = 6] = "Sport";
e[e.Lottery = 7] = "Lottery";
})(e.GameType || (e.GameType = {}));
e.GameTypeName = {
1: n.t("XimaLayer.chess_game"),
2: n.t("XimaLayer.fishing_game"),
3: n.t("XimaLayer.tournament"),
4: n.t("XimaLayer.electronic_game"),
5: n.t("XimaLayer.real_video"),
6: n.t("XimaLayer.sports_events"),
7: n.t("XimaLayer.lottery_game")
};
e.localStorageId = {
TaskCopy: "TaskCopy",
TaskSave: "TaskSave",
TaskShare: "TaskShare",
TaskSubmit: "TaskSubmit",
pauseMusic: "pauseMusic",
MusicName: "MusicName",
Music: "Music"
};
e.currencySymbol = "¥";
e.languageName = "zh_CN";
e.installParms = {
channelCode: "",
bindData: ""
};
e.paramsdata = "";
e.pasedata = "";
e.regID = "";
e.tkID = "";
e.bEnterHall = !1;
})(o.Global || (o.Global = {}));
cc._RF.pop();
}, {
LanguageData: "LanguageData"
} ],
HallUI: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "58cf4HSpMhO44qKQ/751Ote", "HallUI");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
}, r = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, c = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var s = e("../Shared/Global"), l = e("../Models/Player"), d = e("../Shared/UIManager"), u = e("../Shared/NetworkLogic"), p = e("../Models/GameList"), h = e("../Shared/WebViewManager"), f = e("./ThirdGamesListUI"), g = e("../Shared/Constant"), y = e("../Shared/Utils"), m = e("../Shared/SDKManager"), v = e("../Common/RemoteSprite"), b = e("../Shared/AudioManager"), _ = e("../Shared/PingTool"), S = e("../Shared/AddressManager"), C = e("../Models/NoticeData"), w = e("./Sign/SignData"), I = e("./Activity/ActivityData"), L = e("./TaskLayer/TaskData"), T = e("../Shared/PopWindowManager"), P = e("./TopElectronicUI"), k = e("../Shared/EnterSoundManager"), N = e("../../lib/analytic/Analytic"), O = e("../../lib/semver/Semver"), R = e("LanguageData"), M = cc._decorator, U = M.ccclass, B = M.property, D = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.nodeXima = null;
t.nodeYueBao = null;
t.nodeTask = null;
t.nodeSign = null;
t.customChannelIconSF = null;
t.taskRedPoint = null;
t.labTaskRedNum = null;
t.goldPos = null;
t.signBtn = null;
t.signalNum = null;
t.signalIconArr = [];
t.wifiIconArr = [];
t.signalSprite = null;
t.nodeLoading = null;
t.nodeMore = null;
t.aniHall = null;
t.pfbLoginCurrencyChoose = null;
t.pfbLoginCompleteInformation = null;
t.pfbBindWeChat = null;
t.pfbRecommondActivity = null;
t.pfbRecommondTask = null;
t.pfbRecommendBank = null;
t.baoxiangPrefab = null;
t.pfbRegisterUI = null;
t.pfbLoginUI = null;
t.pfbVistorLoginTips = null;
t.pfbPlayerCenter = null;
t.pfbSettingLayer = null;
t.pfbThirdGamesListUI = null;
t.pfbWithdrawalUI = null;
t.pfbRechargeUI = null;
t.pfbCustomerServiceUI = null;
t.pfbMsgBoxUI = null;
t.pfbActivity = null;
t.pfbSignal = null;
t.pfbXima = null;
t.pfbYueBao = null;
t.pfbVip = null;
t.pfbTuiGuang = null;
t.pfbTopElectronicLayer = null;
t.pfbSignInUI = null;
t.pfbRankingListUI = null;
t.pfbNoticeUI = null;
t.pfbFixToolUI = null;
t.pfbAccountAuth = null;
t.wgtGameTypes = null;
t.lbUserID = null;
t.lbVip = null;
t.lbUnReadMsg = null;
t.nodeTimeReceive = null;
t.lbNotice = null;
t.barExp = null;
t.nodePlayer = null;
t.nodePlayerUnLogin = null;
t.rspHead = null;
t.svGameTypes = null;
t.remoteLogo = null;
t.appGameInfoPrefab = null;
t.appUpdateNode = null;
t._curChildUI = null;
t._thirdGamesListUI = null;
t._interval = 5;
t._versionData = null;
t._isPulledLoginConfig = !1;
t._isGotTemplateId = !1;
t._siteUrl = "";
t.bOpenTask = !0;
t.bOpenXima = !0;
t.bOpenYueBao = !0;
t.bOpenSign = !0;
t._newAppUrl = void 0;
return t;
}
t.prototype.onLoad = function() {
m.default.setBadge(0);
this.nodePlayerUnLogin.active = !0;
this.nodePlayer.active = !1;
this.barExp.progress = 0;
this.lbUnReadMsg.node.parent.active = !1;
this.nodeTimeReceive.active = !1;
this.lbNotice.node.active = !1;
this.nodeLoading.active = !0;
this.nodeMore.active = !1;
cc.sys.localStorage.removeItem("HideAppTime");
cc.winSize.width / cc.winSize.height > 2 && (this.wgtGameTypes.left = g.default.BangLength);
cc.director.on(s.Global.UserEvent.LoadingHallEnd, this.onLoadingHallEnd, this);
cc.director.on(s.Global.UserEvent.PlayerLogin, this.onPlayerLogin, this);
cc.director.on(s.Global.UserEvent.PlayerLogout, this.onPlayerLogout, this);
cc.director.on(s.Global.UserEvent.PlayerPyChanged, this.onPlayerPyChanged, this);
cc.director.on(s.Global.UserEvent.CloseThirdGame, this.onCloseThirdGame, this);
cc.director.on(s.Global.UserEvent.CheckSignal, this.checkSignal.bind(this));
cc.director.on(s.Global.UserEvent.OpenBaoxiang, this.playBaoxiangAni.bind(this));
cc.director.on(s.Global.UserEvent.UpdateShareRedPoint, this.updateShareRedPoint, this);
cc.game.on(cc.game.EVENT_SHOW, this.onAppShow, this);
cc.game.on(cc.game.EVENT_HIDE, this.onAppHide, this);
};
t.prototype.start = function() {
y.default.setIsLiteRestart(!1);
this.refreshPlayerData();
this.refreshOftenGames();
this.getTemplateID();
var e = cc.instantiate(this.appGameInfoPrefab);
e.setParent(this.node);
e.setPosition(cc.v2(0, 0));
e.zIndex = 999;
};
t.prototype.onEnable = function() {
this.aniHall.play();
if (this._isGotTemplateId) {
l.default.isLogedIn() && this.pullUserData(!1);
this.pullNoticeData();
}
this.funcPing();
this.schedule(this.funcPing.bind(this), this._interval);
cc.log("===每次返回大厅，检测热更");
cc.director.emit(s.Global.UserEvent.EnterHall);
};
t.prototype.onDisable = function() {
cc.director.emit(s.Global.UserEvent.ExitHall);
this.unschedule(this.funcPing);
};
t.prototype.update = function() {
R.updateSceneRenderers();
};
t.prototype.onDestroy = function() {
cc.director.off(s.Global.UserEvent.UpdateShareRedPoint, this.updateShareRedPoint, this);
cc.director.off(s.Global.UserEvent.LoadingHallEnd, this.onLoadingHallEnd, this);
cc.director.off(s.Global.UserEvent.PlayerLogin, this.onPlayerLogin, this);
cc.director.off(s.Global.UserEvent.PlayerLogout, this.onPlayerLogout, this);
cc.director.off(s.Global.UserEvent.PlayerPyChanged, this.onPlayerPyChanged, this);
cc.director.off(s.Global.UserEvent.CloseThirdGame, this.onCloseThirdGame, this);
cc.director.off(s.Global.UserEvent.CheckSignal, this.checkSignal.bind(this));
cc.director.off(s.Global.UserEvent.OpenBaoxiang, this.playBaoxiangAni.bind(this));
cc.game.off(cc.game.EVENT_SHOW, this.onAppShow, this);
cc.game.off(cc.game.EVENT_HIDE, this.onAppHide, this);
};
t.prototype.onBtnClick = function(e, t) {
if ("register" === t) this.openChildUI(this.pfbRegisterUI); else if ("login" === t) this.openChildUI(this.pfbLoginUI); else if ("head" === t) this.openChildUI(this.pfbPlayerCenter, !0); else if ("setting" === t) this.openChildUI(this.pfbSettingLayer); else if ("recharge" === t) this.openChildUI(this.pfbRechargeUI, !0); else if ("customer" === t) this.openChildUI(this.pfbCustomerServiceUI); else if ("msgbox" === t) this.openChildUI(this.pfbMsgBoxUI, !0); else if ("xima" === t) this.openChildUI(this.pfbXima, !0); else if ("yuebao" === t) this.openChildUI(this.pfbYueBao, !0); else if ("tuiguang" === t) {
var o = this.openChildUI(this.pfbTuiGuang, !0);
o && o.getComponent("TuiGuangLayer").updateUI();
} else if ("huodong" === t) (n = this.openChildUI(this.pfbActivity, !1)) && n.getComponent("ActivityAndTask").updateUI(t); else if ("renwu" === t) (n = this.openChildUI(this.pfbActivity, !1)) && n.getComponent("ActivityAndTask").updateUI(t); else if ("signal" === t) {
b.default.playSound("show");
d.default.showChangeDomainUI();
} else if ("tixian" === t) this.openChildUI(this.pfbWithdrawalUI, !0); else if ("copy" === t) {
y.default.copyText(this.lbUserID.string);
d.default.showToastUI(R.t("HallUI.copy_succ"), s.Global.ToastType.OK);
} else if ("topDianzi" === t) (n = this.openChildUI(this.pfbTopElectronicLayer, !0)) && (n.getComponent(P.default).gameType = s.Global.GameType.Electronic); else if ("topQipai" === t) (n = this.openChildUI(this.pfbTopElectronicLayer, !0)) && (n.getComponent(P.default).gameType = s.Global.GameType.Chess); else if ("topBuyu" === t) (n = this.openChildUI(this.pfbTopElectronicLayer, !0)) && (n.getComponent(P.default).gameType = s.Global.GameType.Fish); else if ("more" === t) this.nodeMore.active = !this.nodeMore.active; else if ("signIn" === t) {
this.nodeMore.active = !1;
(n = this.openChildUI(this.pfbActivity, !0)) && n.getComponent("ActivityAndTask").updateUI(t);
} else if ("rank" === t) d.default.showToastUI(R.t("HallUI.moment_open"), s.Global.ToastType.Warnning); else if ("notice" === t) {
if (C.default.getPopUpItems().length > 0) {
var n;
(n = this.openChildUI(this.pfbActivity, !1)) && n.getComponent("ActivityAndTask").updateUI(t);
} else d.default.showToastUI(R.t("HallUI.no_announcement") + "！", s.Global.ToastType.Warnning);
this.nodeMore.active = !1;
} else if ("down" === t) this.svGameTypes.scrollToBottom(1); else if ("oftenGame" === t) this.checkLoginAndShowUI(); else if ("url" === t) {
y.default.copyText(this._siteUrl);
d.default.showToastUI(R.t("HallUI.copy_succ"), s.Global.ToastType.OK);
} else "fix" === t ? this.openChildUI(this.pfbFixToolUI) : "update_app" === t ? this.showUpdateAppPanel() : d.default.showToastUI(R.t("HallUI.moment_open"), s.Global.ToastType.Warnning);
};
t.prototype.updateShareRedPoint = function() {
return r(this, void 0, void 0, function() {
var e, t, o, n, i, a, r, d;
return c(this, function() {
e = !1;
l.default.isLogedIn() && "¥" === l.default.getPy("currencySymbol") && "zh_CN" === cc.sys.localStorage.getItem("CurrentLanguage") && (e = !0);
if (!e) return [ 2 ];
if (!this.bOpenTask) return [ 2 ];
t = cc.sys.localStorage.getItem(s.Global.localStorageId.TaskCopy + l.default.getPy("userID"));
o = cc.sys.localStorage.getItem(s.Global.localStorageId.TaskSave + l.default.getPy("userID"));
n = cc.sys.localStorage.getItem(s.Global.localStorageId.TaskShare + l.default.getPy("userID"));
i = cc.sys.localStorage.getItem(s.Global.localStorageId.TaskSubmit + l.default.getPy("userID"));
a = new Date();
r = 0;
d = l.default.getPy("userID");
cc.log("===userId:", d);
t && t == "copy" + l.default.getPy("userID") && o && o == "save" + l.default.getPy("userID") && n && n == "share" + l.default.getPy("userID") && i && i === a.getUTCDate().toString() + l.default.getPy("userID") || (r = 1);
u.default.taskGetTypes({}, function(e) {
cc.log("===taskGetTypes:", e);
for (var t = 0, o = 0; o < e.length; o++) t += e[o].finishCount;
t += r;
this.taskRedPoint.active = t > 0;
}.bind(this), function() {
cc.log("===获取taskGetTypes类型错误:");
});
return [ 2 ];
});
});
};
t.prototype.requestPermissions = function() {
cc.sys.os === cc.sys.OS_ANDROID && y.default.requestPermissions([ "android.permission.READ_EXTERNAL_STORAGE", "android.permission.WRITE_EXTERNAL_STORAGE", "android.permission.CAMERA" ]);
};
t.prototype.getTemplateID = function() {
d.default.showLoadingUI();
u.default.getTemplates([ g.default.PackageFlag ], function(e) {
d.default.hideLoadingUI();
for (var t = 0; t < e.length; t++) {
var o = e[t];
if (o.packageFlag === g.default.PackageFlag) {
this._isGotTemplateId = !0;
cc.sys.localStorage.setItem("TemplateID", o.templateId);
this.startNetworkRequest();
return;
}
}
d.default.showTipUI(R.t("HallUI.tmpled_err"), function() {
cc.game.end();
}.bind(this));
}.bind(this), function(e) {
!e && d.default.showChangeDomainUI(function() {
this.getTemplateID();
}.bind(this));
}.bind(this));
};
t.prototype.startNetworkRequest = function() {
return r(this, void 0, void 0, function() {
var e;
return c(this, function(t) {
switch (t.label) {
case 0:
return [ 4, this.pullNoticeData() ];

case 1:
t.sent();
t.label = 2;

case 2:
t.trys.push([ 2, 9, , 10 ]);
return [ 4, this.autoLogin() ];

case 3:
return t.sent() ? [ 4, this.asyncPullUserData() ] : [ 3, 6 ];

case 4:
t.sent();
l.default.isVisitor() && T.default.popWindowArr.push({
data: null,
pfb: this.pfbVistorLoginTips
});
C.default.getPopUpItems().length > 0 && T.default.popWindowArr.push({
pfb: this.pfbNoticeUI,
data: null
});
return [ 4, this.setSignActivityTaskPop() ];

case 5:
t.sent();
return [ 3, 8 ];

case 6:
return [ 4, this.sequenceWindow() ];

case 7:
t.sent();
t.label = 8;

case 8:
return [ 3, 10 ];

case 9:
e = t.sent();
N.analytic.postMessage("HallUI", e);
return [ 3, 10 ];

case 10:
this.verifyClientVersion();
this.recordLogin();
this.pullGameList();
this.checkNativeVersion();
this.initHomeLogo();
this.updateShareRedPoint();
cc.director.emit(s.Global.UserEvent.HallLoaded);
return [ 4, this.checkOpen() ];

case 11:
t.sent();
return [ 4, y.default.initOpenShare() ];

case 12:
t.sent();
return [ 4, y.default.getInstallParms(this) ];

case 13:
t.sent();
return [ 2 ];
}
});
});
};
t.prototype.checkOpen = function() {
var e = this;
return new Promise(function(t) {
u.default.checkOpen(function(e) {
cc.log("====checkOpen data", e);
if (e && Array.isArray(e)) {
for (var o = 0; o < e.length; o++) if (0 == e[o].type) {
this.bOpenTask = "1" == e[o].status;
this.nodeTask.active = this.bOpenTask;
this.nodeTask.parent.getChildByName("line_task").active = this.bOpenTask;
} else if (1 == e[o].type) {
this.bOpenSign = "1" == e[o].status;
this.nodeSign.active = this.bOpenSign;
} else if (2 == e[o].type) {
this.bOpenXima = "1" == e[o].status;
this.nodeXima.active = this.bOpenXima;
this.nodeXima.parent.getChildByName("line_xima").active = this.bOpenXima;
} else if (3 == e[o].type) {
this.bOpenYueBao = "1" == e[o].status;
this.nodeYueBao.active = this.bOpenYueBao;
this.nodeYueBao.parent.getChildByName("line_yuebao").active = this.bOpenYueBao;
}
t();
}
}.bind(e), function(e) {
cc.log("====checkOpen err", e);
t();
}.bind(e));
});
};
t.prototype.funcPing = function() {
return r(this, void 0, void 0, function() {
var e, t, o, n;
return c(this, function(i) {
switch (i.label) {
case 0:
this.signalNum.node.active = !1;
return [ 4, _.default.checkHttpLatency(S.default.getServerDomain()) ];

case 1:
e = i.sent();
(t = _.default.getColorByNum(e.latency))[0];
o = t[2];
n = cc.sys.getNetworkType();
this.signalSprite.spriteFrame = 1 === n ? this.wifiIconArr[o] : this.signalIconArr[o];
return [ 2 ];
}
});
});
};
t.prototype.playBaoxiangAni = function(e, t) {
var o = this.openChildUI(this.baoxiangPrefab);
o.getComponent("ReceiveAwardAni").updateMoney(e);
t && (o.getComponent("ReceiveAwardAni").callbackClose = t);
};
t.prototype.onGameItemClick = function(e) {
this.enterGame(e.target.gameConfig);
};
t.prototype.enterGame = function(e) {
return r(this, void 0, void 0, function() {
var t, o;
return c(this, function() {
if (!this.checkLoginAndShowUI()) return [ 2 ];
if (2 === l.default.getPy("userType")) {
if (-1 !== l.default.getPy("visitorFillInfoTime").indexOf("2")) {
(t = cc.find("Canvas/gameNode").getComponent("HallUI")).openChildUI(t.pfbLoginCompleteInformation);
return [ 2 ];
}
d.default.showToastUI(R.t("vistor_toast"), s.Global.ToastType.Warnning);
}
if (e.gameStatus && "0" !== e.gameStatus) {
d.default.showToastUI(R.t("HallUI.game_maintain"), s.Global.ToastType.Warnning);
return [ 2 ];
}
if (0 === parseInt(e.entranceFlag)) {
cc.log("==gameConfig:", e);
o = {
gameListId: e.gameListId
};
d.default.showLoadingUI();
u.default.forwardGameVerify(o, function(t) {
d.default.hideLoadingUI();
cc.log("===货币接口forwardGameVerify:", t);
t.flag ? d.default.showRateTips(e, t, function() {
this.enterThirdGame(e);
}.bind(this)) : this.enterThirdGame(e);
}.bind(this), function() {
d.default.hideLoadingUI();
}.bind(this));
} else {
this._thirdGamesListUI = this._thirdGamesListUI && this._thirdGamesListUI.node ? this._thirdGamesListUI : cc.instantiate(this.pfbThirdGamesListUI).getComponent(f.default);
this._thirdGamesListUI.plateformID = parseInt(e.id);
this._thirdGamesListUI.gameTypeID = parseInt(e.gameCategoryId);
this._thirdGamesListUI.node.parent ? this._thirdGamesListUI.node.active = !0 : this._thirdGamesListUI.node.parent = this.node.parent;
this._curChildUI = this._thirdGamesListUI.node;
}
return [ 2 ];
});
});
};
t.prototype.enterThirdGame = function(e) {
d.default.showLoadingUI();
u.default.enterThirdGame(e.id, e.gameListId, function(t) {
this.checkOftenGames(e);
d.default.hideLoadingUI();
var o = t, n = cc.find("Canvas") && cc.find("Canvas").getComponent(h.default);
if (n) {
e.platformGameType === s.Global.GameType.Lottery && "SG" === e.platform ? n.isFillNotch = !1 : n.isFillNotch = !0;
2 === parseInt(e.screenLayout) ? y.default.setOrientation("V") : 1 === parseInt(e.screenLayout) ? y.default.setOrientation("H") : y.default.setOrientation("A");
this._thirdGamesListUI && (this._thirdGamesListUI.node.active = !1);
k.default.playSound("enter_youxi");
b.default.pauseMusic();
n.openThirdGame(o);
}
}.bind(this));
};
t.prototype.checkSignal = function() {
cc.log("=====大厅重新检测信号");
this.funcPing();
};
t.prototype.getBankTask = function() {
var e = this;
return new Promise(function(t) {
u.default.getBankTask({}, function(e) {
d.default.hideLoadingUI();
cc.log("=====getBankTask rec", e);
t(e);
}.bind(e), function() {
d.default.hideLoadingUI();
cc.log("=====getBankTask err");
t(null);
}.bind(e));
});
};
t.prototype.setSignActivityTaskPop = function() {
return r(this, void 0, void 0, function() {
var e, t, o, n;
return c(this, function(i) {
switch (i.label) {
case 0:
return g.default.PopSwitch ? [ 4, w.default.getSignSwitch() ] : [ 2 ];

case 1:
return i.sent() ? [ 4, w.default.getCanSign() ] : [ 3, 3 ];

case 2:
i.sent() && T.default.popWindowArr.push({
pfb: this.pfbSignInUI,
data: null
});
i.label = 3;

case 3:
cc.log("=====getBankTask rec");
return [ 4, this.getBankTask() ];

case 4:
(e = i.sent()).switch && T.default.popWindowArr.push({
pfb: this.pfbRecommendBank,
data: e.logo
});
return [ 4, I.default.getRecommendActivity() ];

case 5:
t = i.sent();
if (Array.isArray(t) && t.length > 0) for (n = 0; n < t.length; n++) T.default.popWindowArr.push({
pfb: this.pfbRecommondActivity,
data: t[n]
});
return [ 4, L.default.getTaskMainSwitch() ];

case 6:
return i.sent() ? [ 4, L.default.getTaskPopSwitch() ] : [ 3, 9 ];

case 7:
return i.sent() && l.default.isLogedIn() ? [ 4, L.default.getRecommendTask() ] : [ 3, 9 ];

case 8:
if ((o = i.sent()).length > 0) for (n = 0; n < o.length; n++) T.default.popWindowArr.push({
pfb: this.pfbRecommondTask,
data: o[n]
});
i.label = 9;

case 9:
return [ 2 ];
}
});
});
};
t.prototype.sequenceWindow = function() {
return r(this, void 0, void 0, function() {
return c(this, function() {
if (!g.default.PopSwitch) return [ 2 ];
l.default.isLogedIn() || (cc.sys.localStorage.getItem("OpenRegister") ? T.default.popWindowArr.push({
pfb: this.pfbRegisterUI,
data: null
}) : C.default.getPopUpItems().length > 0 && T.default.popWindowArr.push({
pfb: this.pfbNoticeUI,
data: null
}));
return [ 2 ];
});
});
};
t.prototype.onLoadingHallEnd = function() {
return r(this, void 0, void 0, function() {
return c(this, function(e) {
switch (e.label) {
case 0:
s.Global.bEnterHall = !0;
this.aniHall.play();
k.default.playSound("enter_app");
T.default.openNext();
return [ 4, this.setBgMusic() ];

case 1:
e.sent();
return [ 4, this.showVersionUI() ];

case 2:
e.sent();
return [ 4, this.pullLoginConfig() ];

case 3:
e.sent();
return [ 4, w.default.getSignSwitch() ];

case 4:
e.sent() || (this.signBtn.active = !1);
return [ 2 ];
}
});
});
};
t.prototype.onPlayerLogin = function() {
u.default.userInfo({
loadMoney: !0
}, function(e) {
return r(this, void 0, void 0, function() {
return c(this, function(t) {
switch (t.label) {
case 0:
l.default.setPy("serverData", e);
cc.log("===pullUserData userInfo:", e);
N.analytic.setID(e.userId);
l.default.isVisitor() && T.default.popWindowArr.push({
data: null,
pfb: this.pfbVistorLoginTips
});
return [ 4, this.setSignActivityTaskPop() ];

case 1:
t.sent();
s.Global.bEnterHall && T.default.openNext();
return [ 4, this.pullLoginConfig() ];

case 2:
t.sent();
m.default.setAlias(l.default.getPy("userID"));
this.nodePlayerUnLogin.active = !1;
this.nodePlayer.active = !0;
this.pullMailCount();
this.updateShareRedPoint();
return [ 2 ];
}
});
});
}.bind(this), function(e) {
e && l.default.logout();
}.bind(this));
};
t.prototype.asyncPullUserData = function() {
var e = this;
return new Promise(function(t) {
u.default.userInfo({
loadMoney: !0
}, function(e) {
return r(this, void 0, void 0, function() {
return c(this, function(o) {
switch (o.label) {
case 0:
l.default.setPy("serverData", e);
return [ 4, this.pullLoginConfig() ];

case 1:
o.sent();
m.default.setAlias(l.default.getPy("userID"));
this.nodePlayerUnLogin.active = !1;
this.nodePlayer.active = !0;
this.pullMailCount();
this.updateShareRedPoint();
t();
return [ 2 ];
}
});
});
}.bind(e), function() {
t();
}.bind(e));
});
};
t.prototype.onPlayerLogout = function() {
T.default.popWindowArr = [];
T.default.popNum = 0;
this.nodePlayerUnLogin.active = !0;
this.nodePlayer.active = !1;
this._isPulledLoginConfig = !1;
if (this._curChildUI) {
this._curChildUI.destroy();
y.default.showGameNode();
}
w.default.resetSignData();
L.default.resetData();
cc.log("== hall onPlayerLogout重置任务数据");
I.default.resetData();
this.updateShareRedPoint();
};
t.prototype.onPlayerPyChanged = function() {
this.refreshPlayerData();
};
t.prototype.onCloseThirdGame = function() {
var e = cc.sys.localStorage.getItem("pauseMusic");
cc.log("====bPauseMusic:", e);
"true" !== e && b.default.resumMusic();
};
t.prototype.onAppShow = function() {
m.default.setBadge(0);
var e = parseInt(cc.sys.localStorage.getItem("HideAppTime") || "0"), t = new Date().getTime();
0 !== e && t - e > 216e5 && y.default.restartGame();
};
t.prototype.onAppHide = function() {
cc.sys.localStorage.setItem("HideAppTime", new Date().getTime());
cc.sys.garbageCollect();
};
t.prototype.isExistChildUI = function() {
return this._curChildUI && this._curChildUI.isValid;
};
t.prototype.openChildUI = function(e, t) {
if (!t || this.checkLoginAndShowUI()) {
b.default.playSound("show");
this._curChildUI = cc.instantiate(e);
this._curChildUI.parent = this.node.parent;
return this._curChildUI;
}
};
t.prototype.openAccountAuth = function() {
b.default.playSound("show");
this._curChildUI = cc.instantiate(this.pfbAccountAuth);
this._curChildUI.getComponent("AccountAuthUI").init();
this._curChildUI.parent = this.node.parent;
};
t.prototype.checkLoginAndShowUI = function() {
if (!l.default.isLogedIn()) {
b.default.playSound("show");
this._curChildUI = cc.instantiate(this.pfbLoginUI);
this._curChildUI.parent = this.node.parent;
return !1;
}
return !0;
};
t.prototype.refreshPlayerData = function() {
this.lbUserID.string = l.default.getPy("userFlag");
this.lbVip.string = "VIP " + l.default.getPy("vip");
l.default.getPy("head") && (this.rspHead.url = l.default.getPy("head"));
this.barExp.progress = l.default.getPy("percentage") && (l.default.getPy("percentage").percentage / 100).toFixed(2);
};
t.prototype.recordLogin = function() {
u.default.loginRecord();
};
t.prototype.autoLogin = function() {
return r(this, void 0, void 0, function() {
return c(this, function() {
return [ 2, new Promise(function(e) {
var t = !1, o = cc.sys.localStorage.getItem("Token") || "";
t = !!o;
l.default.setPy("token", o);
t ? u.default.userInfo({
loadMoney: !0
}, function() {
e(t = !0);
}, function() {
e(t = !1);
}) : e(t);
}) ];
});
});
};
t.prototype.pullGameList = function() {
this.scheduleOnce(this.postGetGameListFailed, 3);
u.default.getGameList(null, function(e) {
this.unschedule(this.postGetGameListFailed);
cc.log("===拉取列表getGameList", e);
p.default.serverData = e;
}.bind(this), function(e) {
this.unschedule(this.postGetGameListFailed);
!e && d.default.showChangeDomainUI(function() {
this.pullGameList();
}.bind(this));
}.bind(this));
};
t.prototype.pullUserData = function(e) {
void 0 === e && (e = !0);
u.default.userInfo({
loadMoney: !0
}, function(e) {
return r(this, void 0, void 0, function() {
return c(this, function(t) {
switch (t.label) {
case 0:
l.default.setPy("serverData", e);
cc.log("===pullUserData userInfo:", e);
return [ 4, this.pullLoginConfig() ];

case 1:
t.sent();
m.default.setAlias(l.default.getPy("userID"));
this.nodePlayerUnLogin.active = !1;
this.nodePlayer.active = !0;
this.pullMailCount();
this.updateShareRedPoint();
return [ 2 ];
}
});
});
}.bind(this), function(e) {
e && l.default.logout();
}.bind(this));
};
t.prototype.pullMailCount = function() {
u.default.receiveMessageCount(function(e) {
this.nodeTimeReceive.active = e.money > 0;
this.lbUnReadMsg.node.parent.active = e.count > 0;
e.count > 0 && (this.lbUnReadMsg.string = Math.min(e.count, 99));
}.bind(this));
};
t.prototype.pullNoticeData = function() {
var e = this;
return new Promise(function(t) {
u.default.noticeList(function(e) {
cc.log("====notice data:", e);
C.default.setData(e);
this.createNoticeBanner();
t(0);
}.bind(e), function() {
t(0);
});
});
};
t.prototype.pullLoginConfig = function() {
var e = this;
return new Promise(function(t) {
if (l.default.isLogedIn() && l.default.isVisitor()) {
d.default.showLoadingUI();
u.default.userLoginConfig({}, function(e) {
d.default.hideLoadingUI();
cc.log("===获取visitorFillInfoTime：", e);
l.default.setPy("visitorFillInfoTime", e.visitorDataPerfectTime);
t();
}.bind(e), function() {
t();
}.bind(e));
} else t();
});
};
t.prototype.checkOftenGames = function(e) {
if (0 === parseInt(e.entranceFlag)) {
for (var t = JSON.parse(cc.sys.localStorage.getItem("OftenGames") || "[]"), o = !1, n = 0; n < t.length; n++) {
var i = t[n];
if (i.gameConfig.id === e.id) {
o = !0;
i.date = new Date().getTime();
break;
}
}
if (!o) {
t.push({
gameConfig: e,
date: new Date().getTime()
});
cc.director.emit(s.Global.UserEvent.AddOftenGameConfig, e);
}
cc.sys.localStorage.setItem("OftenGames", JSON.stringify(t));
}
};
t.prototype.refreshOftenGames = function() {
for (var e = JSON.parse(cc.sys.localStorage.getItem("OftenGames") || "[]"), t = 0; t < e.length; t++) {
var o = e[t];
if (new Date().getTime() - o.date > 1296e6) {
e.splice(t, 1);
t--;
}
}
cc.sys.localStorage.setItem("OftenGames", JSON.stringify(e));
};
t.prototype.createNoticeBanner = function() {
var e = C.default.getBannerItems(), t = "";
e.forEach(function(e) {
t += "    " + e.content;
});
if ((t = t.replace(/[\r\n]/g, "")) !== this.lbNotice.string) {
this.lbNotice.node.active = !0;
this.lbNotice.string = t;
this.lbNotice.node.stopAllActions();
this.lbNotice.node.x = this.lbNotice.node.parent.width;
this.scheduleOnce(function() {
var e = (this.lbNotice.node.width + this.lbNotice.node.parent.width) / (this.lbNotice.node.parent.width / 15);
this.lbNotice.node.runAction(cc.repeatForever(cc.sequence(cc.moveTo(e, cc.v2(-this.lbNotice.node.width, 0)), cc.callFunc(function() {
this.lbNotice.node.x = this.lbNotice.node.parent.width;
}.bind(this)))));
}, .1);
}
};
t.prototype.setBgMusic = function() {
return r(this, void 0, void 0, function() {
return c(this, function(e) {
switch (e.label) {
case 0:
cc.log("===进入setBgMusic");
return [ 4, b.default.startPlayHallMusic() ];

case 1:
e.sent();
return [ 2 ];
}
});
});
};
t.prototype.checkNativeVersion = function() {
for (var e = "", t = y.default.getNativeVersion().split("."), o = 0; o < 3; o++) {
var n = t[o];
e += n ? e ? "." + n : n : e ? ".0" : "0";
}
var i = cc.sys.localStorage.getItem("CurrentVersion") || "0.0.0";
i = i.slice(0, i.lastIndexOf("."));
cc.log("====resVersion:", i);
u.default.getHotUpdateInfo({
devieceType: cc.sys.os,
packageName: g.default.UpdatePackageName,
versionCode: "v" + i
}, function(e) {
this._versionData = e;
cc.log("===this.versionData:", JSON.stringify(e));
}.bind(this));
};
t.prototype.showVersionUI = function() {
var e = this;
return new Promise(function(t) {
e._versionData ? 1 === parseInt(e._versionData.isForceUpdate) ? d.default.showTipUI(e._versionData.info.replace(",", "\n"), function() {
cc.sys.openURL(this._versionData.downloadUrl);
cc.game.end();
}.bind(e), R.t("baes_text.update")) : d.default.showConfirmUI(e._versionData.info.replace(",", "\n"), function() {
cc.sys.openURL(this._versionData.downloadUrl);
t(1);
}.bind(e), R.t("baes_text.update"), function() {
t(0);
}.bind(e), R.t("baes_text.cancel")) : t(0);
});
};
t.prototype.initHomeLogo = function() {
if (g.default.CustomChannelIcon) {
this._siteUrl = g.default.CustomChannelIcon;
this.remoteLogo.node.getComponent(cc.Sprite).spriteFrame = this.customChannelIconSF;
} else u.default.siteGlobal(function(e) {
var t = Array.isArray(e.siteLogo) && e.siteLogo[0];
if (t) {
this._siteUrl = t.siteUrl;
this.remoteLogo.url = t.siteLogoUrl;
} else this.remoteLogo.node.active = !1;
}.bind(this), function() {}.bind(this));
};
t.prototype.postGetGameListFailed = function() {
N.analytic.postMessage("HallUI", "get game list slow");
};
t.prototype.verifyClientVersion = function() {
var e = this, t = y.default.getNativeVersion();
u.default.getLatestVersion(function(o) {
var n = o.split(" ");
if (0 !== n.length) {
var i = n[0], a = n[1], r = n[2], c = cc.sys.os === cc.sys.OS_IOS ? i : a;
if (O.semver.satisfies(t, c)) e.appUpdateNode.active = !1; else {
e._newAppUrl = r;
e.appUpdateNode.active = !0;
}
}
});
};
t.prototype.showUpdateAppPanel = function() {
var e = this;
d.default.showConfirmUI(R.t("label_text.download_new_app") + "\n" + R.t("label_text.download_new_app_tips"), function() {
cc.sys.openURL(e._newAppUrl);
y.default.closeGame();
}, R.t("label_text.go_download"));
};
a([ B(cc.Node) ], t.prototype, "nodeXima", void 0);
a([ B(cc.Node) ], t.prototype, "nodeYueBao", void 0);
a([ B(cc.Node) ], t.prototype, "nodeTask", void 0);
a([ B(cc.Node) ], t.prototype, "nodeSign", void 0);
a([ B(cc.SpriteFrame) ], t.prototype, "customChannelIconSF", void 0);
a([ B(cc.Node) ], t.prototype, "taskRedPoint", void 0);
a([ B(cc.Label) ], t.prototype, "labTaskRedNum", void 0);
a([ B(cc.Node) ], t.prototype, "goldPos", void 0);
a([ B(cc.Node) ], t.prototype, "signBtn", void 0);
a([ B(cc.Label) ], t.prototype, "signalNum", void 0);
a([ B([ cc.SpriteFrame ]) ], t.prototype, "signalIconArr", void 0);
a([ B([ cc.SpriteFrame ]) ], t.prototype, "wifiIconArr", void 0);
a([ B(cc.Sprite) ], t.prototype, "signalSprite", void 0);
a([ B(cc.Node) ], t.prototype, "nodeLoading", void 0);
a([ B(cc.Node) ], t.prototype, "nodeMore", void 0);
a([ B(cc.Animation) ], t.prototype, "aniHall", void 0);
a([ B(cc.Prefab) ], t.prototype, "pfbLoginCurrencyChoose", void 0);
a([ B(cc.Prefab) ], t.prototype, "pfbLoginCompleteInformation", void 0);
a([ B(cc.Prefab) ], t.prototype, "pfbBindWeChat", void 0);
a([ B(cc.Prefab) ], t.prototype, "pfbRecommondActivity", void 0);
a([ B(cc.Prefab) ], t.prototype, "pfbRecommondTask", void 0);
a([ B(cc.Prefab) ], t.prototype, "pfbRecommendBank", void 0);
a([ B(cc.Prefab) ], t.prototype, "baoxiangPrefab", void 0);
a([ B(cc.Prefab) ], t.prototype, "pfbRegisterUI", void 0);
a([ B(cc.Prefab) ], t.prototype, "pfbLoginUI", void 0);
a([ B(cc.Prefab) ], t.prototype, "pfbVistorLoginTips", void 0);
a([ B(cc.Prefab) ], t.prototype, "pfbPlayerCenter", void 0);
a([ B(cc.Prefab) ], t.prototype, "pfbSettingLayer", void 0);
a([ B(cc.Prefab) ], t.prototype, "pfbThirdGamesListUI", void 0);
a([ B(cc.Prefab) ], t.prototype, "pfbWithdrawalUI", void 0);
a([ B(cc.Prefab) ], t.prototype, "pfbRechargeUI", void 0);
a([ B(cc.Prefab) ], t.prototype, "pfbCustomerServiceUI", void 0);
a([ B(cc.Prefab) ], t.prototype, "pfbMsgBoxUI", void 0);
a([ B(cc.Prefab) ], t.prototype, "pfbActivity", void 0);
a([ B(cc.Prefab) ], t.prototype, "pfbSignal", void 0);
a([ B(cc.Prefab) ], t.prototype, "pfbXima", void 0);
a([ B(cc.Prefab) ], t.prototype, "pfbYueBao", void 0);
a([ B(cc.Prefab) ], t.prototype, "pfbVip", void 0);
a([ B(cc.Prefab) ], t.prototype, "pfbTuiGuang", void 0);
a([ B(cc.Prefab) ], t.prototype, "pfbTopElectronicLayer", void 0);
a([ B(cc.Prefab) ], t.prototype, "pfbSignInUI", void 0);
a([ B(cc.Prefab) ], t.prototype, "pfbRankingListUI", void 0);
a([ B(cc.Prefab) ], t.prototype, "pfbNoticeUI", void 0);
a([ B(cc.Prefab) ], t.prototype, "pfbFixToolUI", void 0);
a([ B(cc.Prefab) ], t.prototype, "pfbAccountAuth", void 0);
a([ B(cc.Widget) ], t.prototype, "wgtGameTypes", void 0);
a([ B(cc.Label) ], t.prototype, "lbUserID", void 0);
a([ B(cc.Label) ], t.prototype, "lbVip", void 0);
a([ B(cc.Label) ], t.prototype, "lbUnReadMsg", void 0);
a([ B(cc.Node) ], t.prototype, "nodeTimeReceive", void 0);
a([ B(cc.Label) ], t.prototype, "lbNotice", void 0);
a([ B(cc.ProgressBar) ], t.prototype, "barExp", void 0);
a([ B(cc.Node) ], t.prototype, "nodePlayer", void 0);
a([ B(cc.Node) ], t.prototype, "nodePlayerUnLogin", void 0);
a([ B(v.default) ], t.prototype, "rspHead", void 0);
a([ B(cc.ScrollView) ], t.prototype, "svGameTypes", void 0);
a([ B(v.default) ], t.prototype, "remoteLogo", void 0);
a([ B(cc.Prefab) ], t.prototype, "appGameInfoPrefab", void 0);
a([ B(cc.Node) ], t.prototype, "appUpdateNode", void 0);
return a([ U ], t);
}(cc.Component);
o.default = D;
cc._RF.pop();
}, {
"../../lib/analytic/Analytic": "Analytic",
"../../lib/semver/Semver": "Semver",
"../Common/RemoteSprite": "RemoteSprite",
"../Models/GameList": "GameList",
"../Models/NoticeData": "NoticeData",
"../Models/Player": "Player",
"../Shared/AddressManager": "AddressManager",
"../Shared/AudioManager": "AudioManager",
"../Shared/Constant": "Constant",
"../Shared/EnterSoundManager": "EnterSoundManager",
"../Shared/Global": "Global",
"../Shared/NetworkLogic": "NetworkLogic",
"../Shared/PingTool": "PingTool",
"../Shared/PopWindowManager": "PopWindowManager",
"../Shared/SDKManager": "SDKManager",
"../Shared/UIManager": "UIManager",
"../Shared/Utils": "Utils",
"../Shared/WebViewManager": "WebViewManager",
"./Activity/ActivityData": "ActivityData",
"./Sign/SignData": "SignData",
"./TaskLayer/TaskData": "TaskData",
"./ThirdGamesListUI": "ThirdGamesListUI",
"./TopElectronicUI": "TopElectronicUI",
LanguageData: "LanguageData"
} ],
HideTailLabel: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "22adedpAIhIPqnrcNh6IKc6", "HideTailLabel");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../Shared/Utils"), c = cc._decorator, s = c.ccclass, l = (c.property, 
function(e) {
i(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.start = function() {
var e = this.getComponent(cc.Label);
e.string = r.default.handleNameLen(e.string, 12);
};
return a([ s ], t);
}(cc.Component));
o.default = l;
cc._RF.pop();
}, {
"../Shared/Utils": "Utils"
} ],
HotUpdate: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "e0c4e/BqRNFUYAghu1KD3Lk", "HotUpdate");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
}, r = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, c = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var s = e("../Lib/jsb_runtime_md5"), l = e("../Shared/UIManager"), d = e("../Shared/Constant"), u = e("../Shared/Utils"), p = e("../Shared/AddressManager"), h = e("../Shared/encryptionWay"), f = e("../Shared/NetworkLogic"), g = e("../../lib/semver/Semver"), y = e("../Shared/PingTool"), m = e("../../lib/analytic/Analytic"), v = e("LanguageData"), b = cc._decorator, _ = b.ccclass, S = b.property, C = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.manifestUrl = null;
t.nodeUpdateUI = null;
t.lbFileProgress = null;
t.lbFileSize = null;
t.lbByteProgress = null;
t.barFileProgress = null;
t.barByteProgress = null;
t.appGameInfoPrefab = null;
t._checkingOrUpdating = !1;
t._canRetry = !1;
t._storagePath = "";
t._am = null;
t._verfiyFailed = !1;
t._checkUpdateTime = -1;
t._checkNetworkTimes = 0;
t._networkAvailable = !1;
t._retryTime = 0;
t._majorUpdate = !1;
t._domain = void 0;
t._retryIndex = 0;
t._delayIsRetry = !1;
t._errorFile = new Map();
return t;
}
t.prototype.onLoad = function() {
this.nodeUpdateUI.active = !0;
this.lbFileSize.node.active = !1;
cc.sys.isMobile && this.initHotUpdate();
};
t.prototype.start = function() {
var e = cc.instantiate(this.appGameInfoPrefab);
e.setParent(this.node);
e.setPosition(cc.v2(0, 0));
var t = u.default.getIsLiteRestart() ? .75 : .2;
this.lbFileProgress.string = v.t("HallUI.game_loading") + "... " + 100 * t + "%";
this.lbByteProgress.string = v.t("HallUI.game_loading") + "... " + 100 * t + "%";
this.barFileProgress.progress = t;
this.barByteProgress.progress = t;
cc.log("===进入热更场景");
cc.sys.isMobile ? this.checkNetworkAvailable() : this.enterGame();
};
t.prototype.update = function(e) {
if (-1 !== this._checkUpdateTime) if (this._checkUpdateTime > 10) {
cc.log("HotUpdate: 检查更新超时");
this._checkUpdateTime = -1;
this._am.setEventCallback(null);
this._checkingOrUpdating = !1;
m.analytic.postMessage("HotUpdate", this._domain + ":Hotupdate timeout");
l.default.showTipUI(v.t("BasicsJS.updateTimeout"), function() {
this.scheduleOnce(function() {
this.checkUpdate();
}, .1);
}.bind(this), v.t("BasicsJS.retry"));
} else this._checkUpdateTime += e;
};
t.prototype.onBtnClick = function(e, t) {
"kefu" === t && u.default.openOnlineCustomerUrl();
};
t.prototype.checkCb = function(e) {
var t = this;
this._checkUpdateTime = -1;
var o = !1, n = !1;
cc.log("HotUpdate: Code: " + e.getEventCode());
switch (e.getEventCode()) {
case jsb.EventAssetsManager.ERROR_NO_LOCAL_MANIFEST:
cc.log("HotUpdate: 没有找到本地的version.manifest文件，跳过更新");
m.analytic.postMessage("HotUpdate", this._domain + ":" + e.getEventCode() + ":Missing local manifest");
break;

case jsb.EventAssetsManager.ERROR_DOWNLOAD_MANIFEST:
case jsb.EventAssetsManager.ERROR_PARSE_MANIFEST:
cc.log("HotUpdate: 下载version.manifest文件失败，跳过更新");
m.analytic.postMessage("HotUpdate", this._domain + ":" + e.getEventCode() + ":Error download manifest");
break;

case jsb.EventAssetsManager.ALREADY_UP_TO_DATE:
cc.log("HotUpdate: 已经是最新版本，进入游戏大厅");
n = !0;
break;

case jsb.EventAssetsManager.NEW_VERSION_FOUND:
cc.log("HotUpdate: 发现新版本，开始下载");
this.barFileProgress.progress = .2;
this.barByteProgress.progress = .2;
o = !0;
break;

default:
return;
}
this._am.setEventCallback(null);
this._checkingOrUpdating = !1;
if (o) {
this.lbFileSize.node.active = !0;
this.hotUpdate();
} else if (n) {
cc.sys.localStorage.setItem("CurrentVersion", this._am.getLocalManifest().getVersion());
this.verifyClientVersion(function() {
t.enterGame();
});
} else l.default.showLiteConfirmUI(v.t("BasicsJS.err_check_network"), function() {
cc.sys.openURL(d.default.CustomerServiceAddress);
}.bind(this), v.t("customer_text.contact_online"), function() {
u.default.restartGame();
}.bind(this), v.t("BasicsJS.retry"), !1);
};
t.prototype._appendErrorFile = function(e, t, o, n) {
if (e && this._errorFile.size < 10) {
this._errorFile.set(this.trimAssetId(e), t + "::" + o + "::" + n);
m.analytic.postMessage("HotUpdate", e + "::" + t);
}
};
t.prototype.trimAssetId = function(e) {
return e.split("/").filter(Boolean).slice(1).join("/");
};
t.prototype.updateCb = function(e) {
var t = !1, o = !1;
switch (e.getEventCode()) {
case jsb.EventAssetsManager.ERROR_NO_LOCAL_MANIFEST:
cc.log("HotUpdate: 没有找到本地的project.manifest文件");
m.analytic.postMessage("HotUpdate", e.getAssetId() + "-Local Manifest Missing");
o = !0;
break;

case jsb.EventAssetsManager.UPDATE_PROGRESSION:
var n = 25 + 50 * (e.getPercent() || 0), i = 25 + 50 * (e.getPercentByFile() || 0);
this.barByteProgress.progress = .01 * n;
this.barFileProgress.progress = .01 * i;
this.lbFileProgress.string = v.t("label_text.loading_msg") + "... " + Math.round(i).toString() + "%";
this.lbByteProgress.string = v.t("label_text.loading_msg") + "... " + Math.round(n).toString() + "%";
var a = "(" + (this._am.getDownloadedBytes() / 1024 / 1024).toFixed(2) + "M/" + (this._am.getTotalBytes() / 1024 / 1024).toFixed(2) + "M)";
this.lbFileSize.string = a;
this._retryTime > 0 && (this._retryTime = 0);
var r = e.getMessage();
r && cc.log("HotUpdate: Updated file: " + r);
this._am.getTotalBytes() / 1024 / 1024 > 15 && (this._majorUpdate = !0);
break;

case jsb.EventAssetsManager.ERROR_DOWNLOAD_MANIFEST:
case jsb.EventAssetsManager.ERROR_PARSE_MANIFEST:
cc.log("HotUpdate: 下载project.manifest失败");
m.analytic.postMessage("HotUpdate", e.getAssetId() + "-Manifest Missing");
o = !0;
break;

case jsb.EventAssetsManager.ALREADY_UP_TO_DATE:
cc.log("HotUpdate: 已经是最新版本");
o = !0;
break;

case jsb.EventAssetsManager.UPDATE_FINISHED:
cc.log("HotUpdate: 更新完成：" + e.getMessage());
t = !0;
break;

case jsb.EventAssetsManager.UPDATE_FAILED:
cc.log("HotUpdate: 更新失败：" + e.getMessage());
this._checkingOrUpdating = !1;
this._canRetry = !0;
this._appendErrorFile(e.getAssetId(), e.getMessage(), e.getCURLECode(), e.getCURLMCode());
if (this._verfiyFailed) u.default.restartGame(); else if (0 === this._retryTime) {
this._retryTime = new Date().getTime();
this.retry();
} else if (new Date().getTime() - this._retryTime > 1e4) if (this._delayIsRetry) l.default.showLiteConfirmUI(v.t("BasicsJS.err_retry"), function() {
cc.sys.openURL(d.default.CustomerServiceAddress);
}.bind(this), v.t("customer_text.contact_online"), function() {
l.default.confirmBoxLite.destroy();
l.default.confirmBoxLite = null;
this._retryTime = new Date().getTime();
this.retry();
}.bind(this), v.t("BasicsJS.retry"), !1); else {
this._delayIsRetry = !0;
this.scheduleOnce(function() {
this.retry();
}.bind(this), 10);
} else this.retry();
break;

case jsb.EventAssetsManager.ERROR_UPDATING:
cc.log("HotUpdate: 更新文件出错： " + e.getAssetId() + ", " + e.getMessage());
this._appendErrorFile(e.getAssetId(), e.getMessage(), e.getCURLECode(), e.getCURLMCode());
break;

case jsb.EventAssetsManager.ERROR_DECOMPRESS:
m.analytic.postMessage("HotUpdate", this._domain + ":" + e.getEventCode() + ":Decompress Error");
cc.log(e.getMessage());
}
if (o) {
this._am.setEventCallback(null);
this._checkingOrUpdating = !1;
}
if (t) {
this._am.setEventCallback(null);
var c = jsb.fileUtils.getSearchPaths(), s = this._am.getLocalManifest().getSearchPaths();
console.log(JSON.stringify(s));
Array.prototype.unshift.apply(c, s);
var p = [];
c.forEach(function(e) {
-1 === p.indexOf(e) && p.push(e);
});
cc.sys.localStorage.setItem("HotUpdateSearchPaths", JSON.stringify(p));
jsb.fileUtils.setSearchPaths(p);
cc.sys.localStorage.setItem("HotUpdateFinished", 1);
cc.sys.localStorage.setItem("CurrentVersion", this._am.getLocalManifest().getVersion());
if (this._majorUpdate) l.default.showTipUI(v.t("BasicsJS.hot_update_success_close_game"), function() {
u.default.closeGame();
}); else {
cc.sys.localStorage.setItem("LiteRestart", 1);
u.default.restartGame();
}
}
};
t.prototype.initHotUpdate = function() {
this._storagePath = d.default.HotUpdateStoragePath;
cc.log("HotUpdate: Storage path for remote asset : " + this._storagePath);
this._am = new jsb.AssetsManager("", this._storagePath, u.default.versionCompare);
this._am.setVerifyCallback(this.verifyCallback.bind(this));
cc.log("====this._am:", JSON.stringify(this._am));
};
t.prototype.verifyClientVersion = function(e) {
var t = u.default.getNativeVersion();
f.default.getClientVersion(function(o) {
var n = o.split(" ");
if (0 !== n.length) {
var i = n[0], a = n[1], r = n[2], c = n[3], s = cc.sys.os === cc.sys.OS_IOS ? i : a;
isNaN(+s.charAt(0)) || void 0 === c || (s = c + s);
g.semver.version(t, s) ? e() : l.default.showTipUI("" + v.t("label_text.download_new_app"), function() {
cc.sys.openURL(r);
u.default.closeGame();
}, v.t("label_text.go_download"));
} else e();
});
};
t.prototype.enterGame = function() {
if (cc.assetManager.bundles.find(function(e) {
return null !== e.getSceneInfo("Hall");
})) cc.director.loadScene("Hall"); else {
var e = u.default.getIsLiteRestart() ? .75 : .2;
this.lbFileProgress.string = v.t("HallUI.game_loading") + "... " + 100 * e + "% (9005)";
this.lbByteProgress.string = v.t("HallUI.game_loading") + "... " + 100 * e + "% (9005)";
this.barFileProgress.progress = e;
this.barByteProgress.progress = e;
this._retryIndex++;
l.default.showLiteConfirmUI(v.t("BasicsJS.no_get_data"), function() {
cc.sys.openURL(d.default.CustomerServiceAddress);
}.bind(this), v.t("customer_text.contact_online"), function() {
u.default.restartGame();
}.bind(this), v.t("BasicsJS.retry"), !1);
}
};
t.prototype.checkNetworkAvailable = function() {
this._retryIndex = 0;
this.schedule(this.checkNetwork, .5);
};
t.prototype.checkNetwork = function() {
this._checkNetworkTimes++;
if (this._checkNetworkTimes > 20) {
this._checkNetworkTimes = 0;
this.unschedule(this.checkNetwork);
l.default.showLiteConfirmUI(v.t("BasicsJS.network_retry"), function() {
cc.sys.openURL(d.default.CustomerServiceAddress);
}.bind(this), v.t("customer_text.contact_online"), function() {
u.default.closeGame();
}.bind(this), v.t("BasicsJS.close"), !1);
} else {
var e = new XMLHttpRequest();
e.responseType = "json";
e.onload = function() {
return r(this, void 0, void 0, function() {
var e, t, o;
return c(this, function(n) {
switch (n.label) {
case 0:
if (this._networkAvailable || !(this._checkNetworkTimes > 0)) return [ 3, 4 ];
cc.log("HotUpdate: Network is available, start checking for update");
this._networkAvailable = !0;
this.unschedule(this.checkNetwork);
return [ 4, this.getHotUpdateDomain() ];

case 1:
e = n.sent();
t = e.split(" ");
return [ 4, this.getBestRoute(t, t[0]) ];

case 2:
o = n.sent();
return [ 4, this.checkDomainConnect(o) ];

case 3:
if (n.sent()) {
this._am.setHostUrl(o);
this._domain = o;
cc.log("=====HotUpdate: 新的热更域名是：", o);
}
this.checkUpdate();
n.label = 4;

case 4:
return [ 2 ];
}
});
});
}.bind(this);
var t = this._checkNetworkTimes < 10 ? "http://www.baidu.com" : "http://www.google.com";
e.open("GET", t, !0);
e.send();
}
};
t.prototype.getHotUpdateDomain = function() {
var e = this;
return new Promise(function(t) {
var o = "", n = !1;
p.default.serverAddressArr.forEach(function(i) {
var a = new XMLHttpRequest();
a.responseType = "json";
a.onload = function() {
if (200 === a.status) {
var i = null;
try {
i = a.response;
} catch (e) {
i = JSON.parse(h.default.decrypt(a.responseText));
}
"string" == typeof i && (i = JSON.parse(h.default.decrypt(i)));
o = i.data.value0 || "";
}
if (!n) {
n = !0;
e.unscheduleAllCallbacks();
t(o);
}
};
a.open("GET", i + "/imsbase/api/conf/getValue?type=hotUpdate", !0);
a.send();
});
e.scheduleOnce(function() {
t(o);
}, 5);
});
};
t.prototype.checkDomainConnect = function(e) {
var t = this;
return new Promise(function(o) {
var n = new XMLHttpRequest();
n.onload = function() {
t.unscheduleAllCallbacks();
200 === n.status ? o(!0) : o(!1);
};
n.onerror = function() {
t.unscheduleAllCallbacks();
o(!1);
};
n.open("GET", e, !0);
n.send();
t.scheduleOnce(function() {
o(!1);
}, 5);
});
};
t.prototype.checkUpdate = function() {
if (this._checkingOrUpdating) cc.log("HotUpdate: Checking or updating ..."); else {
if (this._am.getState() === jsb.AssetsManager.State.UNINITED) {
var e = this.manifestUrl.nativeUrl;
cc.loader.md5Pipe && (e = cc.loader.md5Pipe.transformURL(e));
this._am.loadLocalManifest(e);
}
if (this._am.getLocalManifest() && this._am.getLocalManifest().isLoaded()) {
this._am.setEventCallback(this.checkCb.bind(this));
this._checkUpdateTime = 0;
this._am.checkUpdate();
this._checkingOrUpdating = !0;
cc.log("===this._am:", JSON.stringify(this._am));
} else cc.log("HotUpdate: Failed to load local manifest ...");
}
};
t.prototype.hotUpdate = function() {
if (this._am && !this._checkingOrUpdating) {
this._am.setEventCallback(this.updateCb.bind(this));
if (this._am.getState() === jsb.AssetsManager.State.UNINITED) {
var e = this.manifestUrl.nativeUrl;
cc.loader.md5Pipe && (e = cc.loader.md5Pipe.transformURL(e));
this._am.loadLocalManifest(e);
}
this._am.update();
this._checkingOrUpdating = !0;
this.nodeUpdateUI.active = !0;
}
};
t.prototype.retry = function() {
if (!this._checkingOrUpdating && this._canRetry) {
this._canRetry = !1;
cc.log("HotUpdate: Retry failed Assets...");
this._am.downloadFailedAssets();
}
};
t.prototype.verifyCallback = function(e, t) {
var o = t.compressed, n = t.md5, i = t.path;
t.size;
if (o) {
cc.log("HotUpdate: Verification passed : " + i);
return !0;
}
if (s.default(jsb.fileUtils.getDataFromFile(e)) === n) {
cc.log("HotUpdate: Verification passed : " + i + " (" + n + ")");
return !0;
}
cc.log("HotUpdate: Verification failed : " + i + " (" + n + ")");
this._verfiyFailed = !0;
return !1;
};
t.prototype.getBestRoute = function(e, t) {
var o = this;
return new Promise(function(n) {
return r(o, void 0, void 0, function() {
var o, i;
return c(this, function(a) {
switch (a.label) {
case 0:
this.unscheduleAllCallbacks();
console.log("HotUpdate :: Route Step Search");
this._retryIndex = 0;
o = t;
if (0 === e.length || this._retryIndex >= e.length) {
n(t);
return [ 2 ];
}
i = 0;
a.label = 1;

case 1:
return i < e.length ? [ 4, this.pingUrls(e[i]) ] : [ 3, 4 ];

case 2:
if (a.sent()) {
o = e[i];
return [ 3, 4 ];
}
a.label = 3;

case 3:
i++;
return [ 3, 1 ];

case 4:
this.unscheduleAllCallbacks();
n(o);
return [ 2 ];
}
});
});
});
};
t.prototype.pingUrls = function(e) {
var t = this;
return new Promise(function(o) {
return r(t, void 0, void 0, function() {
var t, n, i, a = this;
return c(this, function() {
t = [];
n = function() {
a.unscheduleAllCallbacks();
console.log("Route :: " + e + " :: " + t);
if (0 !== t.length) {
var n = Math.min.apply(Math, t);
t.indexOf(n);
return o(9999 !== n);
}
return o(!1);
};
i = u.default.asyncSpawnCallback(3, n);
this.schedule(function() {
y.default.checkHttpsLatency(e, !0).then(function(e) {
t.push(e.latency);
i();
});
}, .2, 3);
return [ 2 ];
});
});
});
};
a([ S({
type: cc.Asset
}) ], t.prototype, "manifestUrl", void 0);
a([ S(cc.Node) ], t.prototype, "nodeUpdateUI", void 0);
a([ S(cc.Label) ], t.prototype, "lbFileProgress", void 0);
a([ S(cc.Label) ], t.prototype, "lbFileSize", void 0);
a([ S(cc.Label) ], t.prototype, "lbByteProgress", void 0);
a([ S(cc.ProgressBar) ], t.prototype, "barFileProgress", void 0);
a([ S(cc.ProgressBar) ], t.prototype, "barByteProgress", void 0);
a([ S(cc.Prefab) ], t.prototype, "appGameInfoPrefab", void 0);
return a([ _ ], t);
}(cc.Component);
o.default = C;
cc._RF.pop();
}, {
"../../lib/analytic/Analytic": "Analytic",
"../../lib/semver/Semver": "Semver",
"../Lib/jsb_runtime_md5": "jsb_runtime_md5",
"../Shared/AddressManager": "AddressManager",
"../Shared/Constant": "Constant",
"../Shared/NetworkLogic": "NetworkLogic",
"../Shared/PingTool": "PingTool",
"../Shared/UIManager": "UIManager",
"../Shared/Utils": "Utils",
"../Shared/encryptionWay": "encryptionWay",
LanguageData: "LanguageData"
} ],
IRechargeLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "63c06Uv0LxBRZbvSH8aFYT7", "IRechargeLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/UIManager"), c = e("../../Shared/Global"), s = e("LanguageData"), l = cc._decorator, d = l.ccclass, u = l.property, p = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.parentConfig = null;
t._configs = [];
return t;
}
Object.defineProperty(t.prototype, "configs", {
get: function() {
return this._configs;
},
set: function(e) {
this._configs = e;
this.refreshData();
},
enumerable: !1,
configurable: !0
});
t.prototype.refreshData = function() {};
t.prototype.checkMoney = function(e) {
if (/^[0-9]+.?[0-9]*$/.test(e)) return !0;
e ? r.default.showToastUI(s.t("BasicsJS.inp_correct_amount"), c.Global.ToastType.Warnning) : r.default.showToastUI(s.t("BasicsJS.inp_amount"), c.Global.ToastType.Warnning);
return !1;
};
t.prototype.onEditMoneyEnded = function(e) {
var t = parseFloat(e.string) || 0, o = t.toString().split(".");
if (o[1] && o[1].length > 2) {
e.string = t.toFixed(2);
"0.00" === e.string && (e.string = "");
} else e.string = t > 0 ? t.toString() : "";
};
a([ u({
type: Object,
visible: !1
}) ], t.prototype, "parentConfig", void 0);
a([ u(Array) ], t.prototype, "_configs", void 0);
a([ u({
type: Array,
visible: !1
}) ], t.prototype, "configs", null);
return a([ d ], t);
}(cc.Component);
o.default = p;
cc._RF.pop();
}, {
"../../Shared/Global": "Global",
"../../Shared/UIManager": "UIManager",
LanguageData: "LanguageData"
} ],
IWithdrawalLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "847a9QJddBOHZmbx0bYHw50", "IWithdrawalLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = cc._decorator, c = r.ccclass, s = (r.property, function(e) {
i(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
return a([ c ], t);
}(cc.Component));
o.default = s;
cc._RF.pop();
}, {} ],
ImageCache: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "8b266gnbytJG4UJnMBCUe8t", "ImageCache");
Object.defineProperty(o, "__esModule", {
value: !0
});
var n = e("./Utils"), i = e("../Lib/crypto-js"), a = cc.sys.isNative ? jsb.fileUtils.getWritablePath() + "ImageCache/" : "", r = function() {
function e() {
this._downloadFailedImages = [];
}
e.prototype.loadImage = function(e, t) {
if (cc.sys.isNative) {
var o = this.getCachePath(e);
jsb.fileUtils.isFileExist(o) && this.load(o, t);
!jsb.fileUtils.isDirectoryExist(a) && jsb.fileUtils.createDirectory(a);
this.downloadImage(e, o, t);
} else this.load(e, t);
};
e.prototype.getCachePath = function(e) {
var t = e.substring(0, e.lastIndexOf(".")), o = e.substring(e.lastIndexOf("."));
return a + i.MD5(t) + o;
};
e.prototype.removeCasheDirectory = function() {
cc.sys.isNative ? jsb.fileUtils.isDirectoryExist(a) && jsb.fileUtils.removeDirectory(a) : cc.log("该方法只支持原生平台");
};
e.prototype.downloadFailedImages = function() {
var e = this;
if (0 !== this._downloadFailedImages.length) {
this._downloadFailedImages.forEach(function(t) {
e.downloadImage(t.url, t.path, t.callback);
});
this._downloadFailedImages = [];
}
};
e.prototype.load = function(e, t) {
cc.assetManager.loadRemote(e, {
ext: ".png"
}, function(e, o) {
t(e, o);
}.bind(this));
};
e.prototype.downloadImage = function(e, t, o) {
n.default.saveUrlFile2(e, t, function(e) {
setTimeout(function() {
this.load(e, o);
}.bind(this), 200);
}.bind(this), function() {
this._downloadFailedImages.push({
url: e,
path: t,
callback: o
});
}.bind(this));
};
return e;
}();
o.default = new r();
cc._RF.pop();
}, {
"../Lib/crypto-js": "crypto-js",
"./Utils": "Utils"
} ],
Introduce: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "0f1bfGWfptDiqJEEUYVaTKi", "Introduce");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/NetworkLogic"), c = e("../../Shared/UIManager"), s = e("../../Shared/htmlAfter"), l = e("./TuiguangHtmlBefore"), d = cc._decorator, u = d.ccclass, p = d.property, h = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.webView = null;
t.data = null;
return t;
}
t.prototype.onLoad = function() {
console.log("======代理介绍执行");
this.webView.node.active = !1;
};
t.prototype.start = function() {};
t.prototype.onEnable = function() {
this.webView.node.active = !1;
c.default.showLoadingUI();
r.default.agentGeneralize({}, function(e) {
console.log("===推广说明data：", e);
c.default.hideLoadingUI();
if (!(e.length <= 0)) {
this.data = e;
var t = l.default + e[0].tutorialText + s.default;
this.webView.node.active = !0;
this.webView._impl.loadHTMLString(t);
}
}.bind(this), function() {
console.log("===推广错误");
}.bind(this));
};
a([ p(cc.WebView) ], t.prototype, "webView", void 0);
return a([ u ], t);
}(cc.Component);
o.default = h;
cc._RF.pop();
}, {
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
"../../Shared/htmlAfter": "htmlAfter",
"./TuiguangHtmlBefore": "TuiguangHtmlBefore"
} ],
LanguageData: [ function(e, t) {
"use strict";
cc._RF.push(t, "61de062n4dJ7ZM9/Xdumozn", "LanguageData");
var o = e("polyglot.min"), n = null;
window.i18n || (window.i18n = {
languages: {},
curLang: ""
});
function i(e) {
return window.i18n.languages[e];
}
function a(e) {
e && (n ? n.replace(e) : n = new o({
phrases: e,
allowMissing: !0
}));
}
t.exports = {
init: function(e) {
if (e !== window.i18n.curLang) {
var t = i(e) || {};
window.i18n.curLang = e;
a(t);
this.inst = n;
}
},
t: function(e, t) {
if (n) return n.t(e, t);
},
inst: n,
updateSceneRenderers: function() {
for (var e = cc.director.getScene().children, t = [], o = 0; o < e.length; ++o) {
var n = e[o].getComponentsInChildren("LocalizedLabel");
Array.prototype.push.apply(t, n);
}
for (var i = 0; i < t.length; ++i) {
var a = t[i];
a.node.active && a.updateLabel();
}
for (var r = [], c = 0; c < e.length; ++c) {
var s = e[c].getComponentsInChildren("LocalizedSprite");
Array.prototype.push.apply(r, s);
}
for (var l = 0; l < r.length; ++l) {
var d = r[l];
d.node.active && d.updateSprite(window.i18n.curLang);
}
}
};
cc._RF.pop();
}, {
"polyglot.min": "polyglot.min"
} ],
LaunchScene: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "7a230RaMCtFxqIbN2I02JD0", "LaunchScene");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
}, r = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, c = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var s = e("../Shared/Utils"), l = e("../Shared/Constant"), d = e("../Shared/NetworkLogic"), u = e("../Shared/UIManager"), p = e("../Shared/SDKManager"), h = e("../Shared/Global"), f = e("../Shared/PingTool"), g = e("../Shared/AddressManager"), y = e("../../lib/semver/Semver"), m = e("./LaunchSignal"), v = e("../../lib/analytic/Analytic"), b = e("../Shared/PackageConfig"), _ = e("../Common/CommonProgressBar"), S = e("LanguageData"), C = cc._decorator, w = C.ccclass, I = C.property, L = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.signal = null;
t.signalIconArr = [];
t.wifiIconArr = [];
t.signalSprite = null;
t.appGameInfoPrefab = null;
t.lbProgress = null;
t.progressBar = null;
t._isLiteRestart = !1;
return t;
}
t.prototype.onLoad = function() {
s.default.setOrientation("H");
};
t.prototype.start = function() {
return r(this, void 0, void 0, function() {
var e, t, o = this;
return c(this, function(n) {
switch (n.label) {
case 0:
(e = cc.instantiate(this.appGameInfoPrefab)).setParent(this.node);
e.setPosition(cc.v2(0, 0));
if (1 == cc.sys.localStorage.getItem("LiteRestart")) {
s.default.setIsLiteRestart(!0);
this._isLiteRestart = !0;
}
cc.sys.localStorage.setItem("LiteRestart", 0);
t = s.default.getAnalyticCode();
S.init("zh_CN");
v.analytic.init(t, d.default.postAnalytic.bind(d.default));
this.updateProgress(0);
return [ 4, s.default.checkInternetConnectivity() ];

case 1:
if (!n.sent()) {
u.default.showLiteConfirmUI("" + S.t("BasicsJS.network_retry"), function() {
cc.sys.openURL(l.default.CustomerServiceAddress);
}, S.t("customer_text.contact_customer"), function() {
s.default.closeGame();
}, S.t("BasicsJS.close"), !1);
return [ 2 ];
}
this.getAddress(function() {
console.log("LaunchScene :: Route Step 4");
o.setOff().then(function() {
o.initLanguage();
o.loadScene();
});
});
return [ 2 ];
}
});
});
};
t.prototype.setOff = function() {
return r(this, void 0, void 0, function() {
return c(this, function(e) {
switch (e.label) {
case 0:
this.removeNativeLaunchImage();
return [ 4, this.initApp() ];

case 1:
e.sent();
return [ 2 ];
}
});
});
};
t.prototype.initApp = function() {
return r(this, void 0, void 0, function() {
return c(this, function() {
cc.sys.isMobile && jsb.device.setKeepScreenOn(!0);
cc.sys.localStorage.setItem("HotUpdateStorageFolder", l.default.HotUpdateStorageFolder);
return [ 2 ];
});
});
};
t.prototype.loadScene = function() {
cc.sys.localStorage.getItem("HotUpdateFinished");
cc.log("===加载场景", "HotUpdate");
this.preloadScene("HotUpdate");
};
t.prototype.preloadScene = function(e) {
cc.director.preloadScene(e, null, function() {
cc.director.loadScene(e, function() {
u.default.boxNum = 0;
u.default.confirmBox && u.default.confirmBox.destroy();
u.default.confirmBox = null;
});
}.bind(this));
};
t.prototype.verifyClientVersion = function(e) {
var t = s.default.getNativeVersion();
d.default.getClientVersion(function(o) {
var n = o.split(" ");
if (0 !== n.length) {
var i = n[0], a = n[1], r = n[2], c = n[3], l = cc.sys.os === cc.sys.OS_IOS ? i : a;
isNaN(+l.charAt(0)) || void 0 === c || (l = c + l);
y.semver.version(t, l) ? e() : u.default.showTipUI("" + S.t("label_text.download_new_app"), function() {
cc.sys.openURL(r);
s.default.closeGame();
}, S.t("label_text.go_download"));
} else e();
});
};
t.prototype.initLanguage = function() {
var e = this;
return new Promise(function(t) {
return r(e, void 0, void 0, function() {
var e, o, n, i;
return c(this, function(a) {
switch (a.label) {
case 0:
if (e = cc.sys.localStorage.getItem("CurrentLanguage")) return [ 3, 2 ];
e = "zh_CN";
return [ 4, this.getLanguageData() ];

case 1:
o = a.sent();
for (n = 0; n < o.length; n++) if (0 === (i = o[n]).defaultLang) {
e = i.languageFlag;
break;
}
cc.sys.localStorage.setItem("CurrentLanguage", e);
a.label = 2;

case 2:
p.default.setTags([ e ]);
S.init(e);
h.Global.currencySymbol = S.t("currency_symbol");
t();
return [ 2 ];
}
});
});
});
};
t.prototype.getLanguageData = function() {
var e = this;
return new Promise(function(t) {
d.default.getLanguageList(function(e) {
t(e);
}.bind(e), function() {
t([]);
}.bind(e));
});
};
t.prototype.removeNativeLaunchImage = function() {
cc.sys.os === cc.sys.OS_IOS ? jsb.reflection.callStaticMethod("AppController", "removeLaunchImage") : cc.sys.os === cc.sys.OS_ANDROID && jsb.reflection.callStaticMethod("org/cocos2dx/javascript/AppActivity", "removeLaunchImage", "()V");
};
t.prototype.getAddress = function(e) {
return r(this, void 0, void 0, function() {
var t, o, n, i, a = this;
return c(this, function() {
console.log("LaunchScene :: Route Step 1");
this.updateProgress(.05);
t = !1;
o = s.default.asyncSpawnCallback(2, function() {
a._showNetworkUnavailable(!0);
});
n = function(o) {
return r(a, void 0, void 0, function() {
var n;
return c(this, function(i) {
switch (i.label) {
case 0:
if (t) return [ 2 ];
t = !0;
g.default.flushServerList(o);
return [ 4, f.default.getBestRoute(o) ];

case 1:
if ((n = i.sent()).allFail) this._showNetworkUnavailable(!1); else {
this.updateWifiDisplay(n.latency);
g.default.setServerDomain(n.url);
this.updateProgress(.15);
e && e();
}
return [ 2 ];
}
});
});
};
i = function(o) {
if (!t) {
t = !0;
a.updateWifiDisplay(o.latency);
g.default.setServerDomain(o.url);
a.updateProgress(.12);
d.default.getGameAddr(function(t) {
return r(a, void 0, void 0, function() {
var o, n;
return c(this, function(i) {
switch (i.label) {
case 0:
console.log("LaunchScene :: Route Step 3");
console.log("LaunchScene :: getAddress");
console.log(t);
if (!t) return [ 3, 2 ];
o = t.split(",");
g.default.flushServerList(o);
this.updateProgress(.13);
return [ 4, f.default.getBestRoute(o) ];

case 1:
if ((n = i.sent()).allFail) this._showNetworkUnavailable(!1); else {
this.updateWifiDisplay(n.latency);
g.default.setServerDomain(n.url);
this.updateProgress(.15);
e && e();
}
i.label = 2;

case 2:
return [ 2 ];
}
});
});
});
}
};
this.getOssAddress().then(function(e) {
void 0 !== e && Array.isArray(e) ? n && n(e) : o && o();
});
f.default.getBestRoute(g.default.serverAddressArr, !0).then(function(e) {
e.allFail ? o && o() : i && i(e);
});
return [ 2 ];
});
});
};
t.prototype.updateWifiDisplay = function(e) {
var t = f.default.getColorByNum(e), o = (t[0], t[2]), n = cc.sys.getNetworkType();
this.signalSprite.spriteFrame = 1 === n ? this.wifiIconArr[o] : this.signalIconArr[o];
};
t.prototype.onBtnClick = function(e, t) {
if ("signal" === t) {
this.signal.node.active = !0;
this.signal.play();
}
};
t.prototype._showNetworkUnavailable = function(e) {
void 0 === e && (e = !1);
var t = void 0;
if (e) {
this.updateProgress(.05, "(9001)");
t = "BasicsJS.err_static_network";
} else {
this.updateProgress(.13, "(9007)");
t = "BasicsJS.err_dynamic_network";
v.analytic.postMessage("LaunchScene:Route Unavailable");
}
u.default.showLiteConfirmUI("" + S.t(t), function() {
cc.sys.openURL(l.default.CustomerServiceAddress);
}, S.t("customer_text.contact_customer"), function() {
s.default.restartGame();
}, S.t("BasicsJS.retry"), !1);
};
t.prototype.updateProgress = function(e, t) {
void 0 === t && (t = "");
if (e < this.progressBar.progress() && !this._isLiteRestart) this.lbProgress.string = "游戏正在加载中... 10% (9003)"; else {
this._isLiteRestart && (e = .75);
this.progressBar.add(e);
this.lbProgress.string = S.t("HallUI.game_loading") + "... " + Math.floor(100 * e) + "% " + t;
}
};
t.prototype.getOssAddress = function() {
return r(this, void 0, Promise, function() {
var e, t, o = this;
return c(this, function() {
e = b.default.aliOss;
t = b.default.tengxunOss;
return [ 2, new Promise(function(n) {
return r(o, void 0, void 0, function() {
var o, i, a = this;
return c(this, function(s) {
switch (s.label) {
case 0:
if (void 0 === e && void 0 === t) {
n(void 0);
return [ 2 ];
}
o = function(e, o) {
return r(a, void 0, void 0, function() {
var n, i, a;
return c(this, function(r) {
switch (r.label) {
case 0:
n = t + "/sample.json";
if (void 0 === t) {
o();
return [ 2 ];
}
r.label = 1;

case 1:
r.trys.push([ 1, 3, , 4 ]);
return [ 4, d.default.ossRequest(n) ];

case 2:
i = r.sent();
e(i.content);
return [ 3, 4 ];

case 3:
a = r.sent();
o(a);
return [ 3, 4 ];

case 4:
return [ 2 ];
}
});
});
};
i = void 0;
return [ 4, (l = function(e) {
a.updateProgress(.07);
i = e;
}, u = function() {
a.updateProgress(.07, "(9002)");
}, r(a, void 0, void 0, function() {
var t, o;
return c(this, function(n) {
switch (n.label) {
case 0:
t = e + "/sample.json";
if (void 0 === e) {
u();
return [ 2 ];
}
n.label = 1;

case 1:
n.trys.push([ 1, 3, , 4 ]);
return [ 4, d.default.ossRequest(t) ];

case 2:
o = n.sent();
l(o.content);
return [ 3, 4 ];

case 3:
n.sent();
u();
return [ 3, 4 ];

case 4:
return [ 2 ];
}
});
})) ];

case 1:
s.sent();
return void 0 !== i ? [ 3, 3 ] : [ 4, o(function(e) {
a.updateProgress(.1);
i = e;
}, function() {
a.updateProgress(.1, "(9003)");
}) ];

case 2:
s.sent();
s.label = 3;

case 3:
return [ 4, this.timeout(1e3) ];

case 4:
s.sent();
n(i);
return [ 2 ];
}
var l, u;
});
});
}) ];
});
});
};
t.prototype.timeout = function(e) {
return new Promise(function(t) {
return setTimeout(t, e);
});
};
a([ I(m.default) ], t.prototype, "signal", void 0);
a([ I([ cc.SpriteFrame ]) ], t.prototype, "signalIconArr", void 0);
a([ I([ cc.SpriteFrame ]) ], t.prototype, "wifiIconArr", void 0);
a([ I(cc.Sprite) ], t.prototype, "signalSprite", void 0);
a([ I(cc.Prefab) ], t.prototype, "appGameInfoPrefab", void 0);
a([ I(cc.Label) ], t.prototype, "lbProgress", void 0);
a([ I(_.CommonProgressBar) ], t.prototype, "progressBar", void 0);
return a([ w ], t);
}(cc.Component);
o.default = L;
cc._RF.pop();
}, {
"../../lib/analytic/Analytic": "Analytic",
"../../lib/semver/Semver": "Semver",
"../Common/CommonProgressBar": "CommonProgressBar",
"../Shared/AddressManager": "AddressManager",
"../Shared/Constant": "Constant",
"../Shared/Global": "Global",
"../Shared/NetworkLogic": "NetworkLogic",
"../Shared/PackageConfig": "PackageConfig",
"../Shared/PingTool": "PingTool",
"../Shared/SDKManager": "SDKManager",
"../Shared/UIManager": "UIManager",
"../Shared/Utils": "Utils",
"./LaunchSignal": "LaunchSignal",
LanguageData: "LanguageData"
} ],
LaunchSignal: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "ea2caALtlZIJp5DT1SSC0r+", "LaunchSignal");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
}, r = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, c = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var s = e("../Shared/PingTool"), l = e("../Shared/Global"), d = e("../Shared/AudioManager"), u = e("../Shared/AddressManager"), p = cc._decorator, h = p.ccclass, f = p.property, g = e("LanguageData"), y = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.content = null;
t.item = null;
t.callback = null;
t.interval = 1;
t.urls = [];
return t;
}
t.prototype.onEnable = function() {
console.warn("xxLaunchSignalxx");
};
t.prototype.play = function() {
return r(this, void 0, void 0, function() {
var e, t, o, n, i, a;
return c(this, function(r) {
switch (r.label) {
case 0:
console.warn("xxLaunchSignaplaylxx");
this.urls = this.urls.concat(u.default.serverAddressArr);
for (n = 0; n < this.urls.length; n++) {
(e = cc.instantiate(this.item)).parent = this.content;
e.active = !0;
t = cc.sys.localStorage.getItem("ServerAddress");
cc.log("====add:", t);
cc.log("====curUrl:", this.urls[n]);
t === this.urls[n] && (e.getChildByName("spCur").active = !0);
cc.log("===this.url[%s]:", n, this.urls[n]);
e.getChildByName("labName").getComponent(cc.Label).string = g.t("Signal.speed") + (n + 1);
e.getChildByName("btnQiehuan").getComponent(cc.Button).clickEvents[0].customEventData = n.toString();
a = this.urls[n];
(i = e.getChildByName("signalNum")).getComponent(cc.Label).string = g.t("Signal.in_test") + "...";
}
o = this.content.children;
n = 0;
r.label = 1;

case 1:
if (!(n < this.urls.length)) return [ 3, 4 ];
i = o[n].getChildByName("signalNum");
a = this.urls[n];
return [ 4, this.func(a, i) ];

case 2:
r.sent();
this.schedule(this.func.bind(this, a, i), this.interval);
r.label = 3;

case 3:
n++;
return [ 3, 1 ];

case 4:
return [ 2 ];
}
});
});
};
t.prototype.func = function(e, t) {
return r(this, void 0, void 0, function() {
var o, n, i;
return c(this, function(a) {
switch (a.label) {
case 0:
return [ 4, s.default.checkHttpLatency(e) ];

case 1:
o = a.sent();
n = s.default.getColorByNum(o.latency);
i = n[0];
if (cc.isValid(t)) {
t && (t.color = i);
t && (t.getComponent(cc.Label).string = o.latency + "ms" + n[1]);
}
return [ 2 ];
}
});
});
};
t.prototype.update = function() {};
t.prototype.onDestroy = function() {
this.unscheduleAllCallbacks();
};
t.prototype.onBtnClose = function() {
d.default.playSound("close");
this.callback && this.callback();
this.node.active = !1;
this.urls = [];
this.content.removeAllChildren();
};
t.prototype.onBtnClick = function(e, t) {
d.default.playSound("button");
var o = this.urls[parseInt(t)];
u.default.setServerDomain(o);
cc.director.emit(l.Global.UserEvent.CheckSignal, o);
this.callback && this.callback();
this.node.active = !1;
this.urls = [];
this.content.removeAllChildren();
};
a([ f(cc.Node) ], t.prototype, "content", void 0);
a([ f(cc.Node) ], t.prototype, "item", void 0);
a([ f({
type: Function,
visible: !1
}) ], t.prototype, "callback", void 0);
return a([ h ], t);
}(cc.Component);
o.default = y;
cc._RF.pop();
}, {
"../Shared/AddressManager": "AddressManager",
"../Shared/AudioManager": "AudioManager",
"../Shared/Global": "Global",
"../Shared/PingTool": "PingTool",
LanguageData: "LanguageData"
} ],
LiveVideoLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "d563bDLNg1CJ5FiuGCypDx0", "LiveVideoLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("./GamesConfig"), c = e("../Shared/Constant"), s = e("../Models/GameList"), l = e("../Shared/Global"), d = e("LanguageData"), u = cc._decorator, p = u.ccclass, h = u.property, f = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.nodeContent = null;
t.spGirl = null;
t.wgtTable = null;
t._girlSpriteFrames = {};
t._curNodeToggle = null;
return t;
}
t.prototype.onLoad = function() {
cc.winSize.width / cc.winSize.height > 2 && (this.wgtTable.left += c.default.BangLength);
cc.director.on(l.Global.UserEvent.GameListChanged, this.createNodeItems, this);
};
t.prototype.onEnable = function() {
if (s.default.serverData) {
this._curNodeToggle || this.selectNodeToggle(this.nodeContent.children[0]);
this.nodeContent.y = 0;
this.showItems();
}
};
t.prototype.onDestroy = function() {
cc.director.off(l.Global.UserEvent.GameListChanged, this.createNodeItems, this);
};
t.prototype.onBtnClick = function(e, t) {
"touzhu" === t ? cc.find("Canvas/gameNode").getComponent("HallUI").enterGame(this._curNodeToggle.gameConfig) : "toggle" === t && this.selectNodeToggle(e.target);
};
t.prototype.createNodeItems = function() {
var e = this;
if (s.default.serverData) {
var t = s.default.getGameListByType(l.Global.GameType.Live).twoLevelList || [];
this.nodeContent.removeAllChildren();
t.forEach(function(t) {
var o = new cc.Node(), n = new cc.Node(), i = new cc.Node(), a = n.addComponent(cc.Sprite), s = i.addComponent(cc.Sprite), l = o.addComponent(cc.Button), u = r.default.livevideo[t.platform];
n.parent = o;
n.name = "bg";
i.parent = o;
i.active = !1;
i.name = "mark";
o.name = "toggle" + e.nodeContent.children.length;
o.parent = e.nodeContent;
o.setContentSize(367, 128);
if (!u) {
u = "Hall/LiveVideo/ag";
if (c.default.RemindMissingRes) {
var p = new cc.Node(), h = p.addComponent(cc.Label);
p.color = cc.color(255, 0, 0);
p.parent = o;
h.string = t.gameTitleCn + "\n" + d.t("CheckHot.lack_resources") + "!";
h.fontSize = 40;
}
}
cc.resources.load(u + "_1", cc.SpriteFrame, function(e, t) {
if (!e && this.node) {
this._girlSpriteFrames[o.name] = t;
this._curNodeToggle && this._curNodeToggle === o && (this.spGirl.spriteFrame = t);
}
}.bind(e));
cc.resources.load(u + "_2", cc.SpriteFrame, function(e, t) {
!e && this.node && (a.spriteFrame = t);
}.bind(e));
cc.resources.load(u + "_3", cc.SpriteFrame, function(e, t) {
!e && this.node && (s.spriteFrame = t);
}.bind(e));
var f = new cc.Node(), g = f.addComponent(cc.Label);
f.parent = o;
f.width = 200;
f.height = 30;
f.position = cc.v2(82, -9);
g.string = t.gameTitleCn;
g.horizontalAlign = cc.Label.HorizontalAlign.CENTER;
g.verticalAlign = cc.Label.VerticalAlign.CENTER;
g.useSystemFont = !0;
g.fontSize = 28;
g.lineHeight = 28;
g.overflow = cc.Label.Overflow.SHRINK;
if ("2" === t.gameStatus) {
var y = new cc.Node(), m = y.addComponent(cc.Sprite);
y.parent = o;
y.position = cc.v2(142, -25);
n.color = cc.color(70, 70, 70);
i.color = cc.color(70, 70, 70);
f.color = cc.color(70, 70, 70);
cc.resources.load("Common/maintenance", cc.SpriteFrame, function(e, t) {
!e && m && m.isValid && (m.spriteFrame = t);
}.bind(e));
}
var v = new cc.Component.EventHandler();
v.target = e.node;
v.component = "LiveVideoLayer";
v.handler = "onBtnClick";
v.customEventData = "toggle";
l.clickEvents.push(v);
l.node.gameConfig = t;
});
}
};
t.prototype.showItems = function() {
for (var e = 0; e < this.nodeContent.children.length; e++) {
var t = this.nodeContent.children[e];
t.x = t.width;
t.stopAllActions();
t.runAction(cc.sequence(cc.delayTime(.07 * e), cc.moveTo(.2, 0, t.y).easing(cc.easeSineOut())));
}
};
t.prototype.selectNodeToggle = function(e) {
if (this._curNodeToggle !== e) {
if (this._curNodeToggle) {
this._curNodeToggle.getChildByName("mark").active = !1;
this._curNodeToggle.getChildByName("bg").active = !0;
}
this._curNodeToggle = e;
this._curNodeToggle.getChildByName("mark").active = !0;
this._curNodeToggle.getChildByName("bg").active = !1;
var t = this._girlSpriteFrames[e.name];
t && (this.spGirl.spriteFrame = t);
}
};
a([ h(cc.Node) ], t.prototype, "nodeContent", void 0);
a([ h(cc.Sprite) ], t.prototype, "spGirl", void 0);
a([ h(cc.Widget) ], t.prototype, "wgtTable", void 0);
return a([ p ], t);
}(cc.Component);
o.default = f;
cc._RF.pop();
}, {
"../Models/GameList": "GameList",
"../Shared/Constant": "Constant",
"../Shared/Global": "Global",
"./GamesConfig": "GamesConfig",
LanguageData: "LanguageData"
} ],
LoadingUI: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "e5edcgVJ5FIT4IkgJxGvGor", "LoadingUI");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../Shared/Global"), c = e("../Shared/Utils"), s = e("LanguageData"), l = cc._decorator, d = l.ccclass, u = l.property, p = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.barLoading = null;
t.lbProgress = null;
t._laodedScene = !1;
t._totalTime = 0;
return t;
}
t.prototype.onLoad = function() {
this.barLoading.progress = .9;
cc.director.on(r.Global.UserEvent.HallLoaded, this.onHallLoaded, this);
};
t.prototype.onDestroy = function() {
cc.director.off(r.Global.UserEvent.HallLoaded, this.onHallLoaded, this);
};
t.prototype.update = function(e) {
this._totalTime += e;
this.barLoading.progress = .9 + .1 * Math.min(1, this._totalTime / 3);
this._totalTime < 8 && 1 === this.barLoading.progress && !this._laodedScene && (this.barLoading.progress = .9999);
this.lbProgress.string = s.t("HallUI.game_loading") + "... " + Math.floor(100 * this.barLoading.progress) + "%";
1 === this.barLoading.progress && this.enterHall();
};
t.prototype.onBtnClick = function(e, t) {
"kefu" === t && c.default.openOnlineCustomerUrl();
};
t.prototype.onHallLoaded = function() {
this._laodedScene = !0;
};
t.prototype.enterHall = function() {
cc.director.emit(r.Global.UserEvent.LoadingHallEnd);
this.node.destroy();
this.node.parent = null;
};
a([ u(cc.ProgressBar) ], t.prototype, "barLoading", void 0);
a([ u(cc.Label) ], t.prototype, "lbProgress", void 0);
return a([ d ], t);
}(cc.Component);
o.default = p;
cc._RF.pop();
}, {
"../Shared/Global": "Global",
"../Shared/Utils": "Utils",
LanguageData: "LanguageData"
} ],
LocalizedLabel: [ function(e, t) {
"use strict";
cc._RF.push(t, "744dcs4DCdNprNhG0xwq6FK", "LocalizedLabel");
var o = e("LanguageData");
cc.Class({
extends: cc.Component,
editor: {
executeInEditMode: !0,
menu: "i18n/LocalizedLabel"
},
properties: {
dataID: {
get: function() {
return this._dataID;
},
set: function(e) {
if (this._dataID !== e) {
this._dataID = e;
this.updateLabel();
}
}
},
_dataID: ""
},
onLoad: function() {
o.inst || o.init();
this.fetchRender();
},
fetchRender: function() {
var e = this.getComponent(cc.Label);
if (e) {
this.label = e;
this.updateLabel();
}
},
updateLabel: function() {
this.label && o.t(this.dataID) && (this.label.string = o.t(this.dataID));
}
});
cc._RF.pop();
}, {
LanguageData: "LanguageData"
} ],
LocalizedSprite: [ function(e, t) {
"use strict";
cc._RF.push(t, "f34ac2GGiVOBbG6XlfvgYP4", "LocalizedSprite");
var o = e("SpriteFrameSet");
cc.Class({
extends: cc.Component,
editor: {
executeInEditMode: !0,
inspector: "packages://i18n/inspector/localized-sprite.js",
menu: "i18n/LocalizedSprite"
},
properties: {
spriteFrameSet: {
default: [],
type: o
}
},
onLoad: function() {
this.fetchRender();
},
fetchRender: function() {
var e = this.getComponent(cc.Sprite);
if (e) {
this.sprite = e;
this.updateSprite(window.i18n.curLang);
}
},
getSpriteFrameByLang: function(e) {
for (var t = 0; t < this.spriteFrameSet.length; ++t) if (this.spriteFrameSet[t].language === e) return this.spriteFrameSet[t].spriteFrame;
},
updateSprite: function(e) {
if (this.sprite) {
var t = this.getSpriteFrameByLang(e);
!t && this.spriteFrameSet[0] && (t = this.spriteFrameSet[0].spriteFrame);
this.sprite.spriteFrame = t;
} else cc.error("Failed to update localized sprite, sprite component is invalid!");
}
});
cc._RF.pop();
}, {
SpriteFrameSet: "SpriteFrameSet"
} ],
LoginCompleteInformation: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "e2d08uTupxLup31il1mqLNJ", "LoginCompleteInformation");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
}, r = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, c = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var s = e("../Shared/NetworkLogic"), l = e("../Shared/UIManager"), d = e("../Shared/Global"), u = e("../Models/Player"), p = e("../Shared/AudioManager"), h = e("./RegisterUI"), f = e("../Shared/PopWindowManager"), g = e("LanguageData"), y = cc._decorator, m = y.ccclass, v = (y.property, 
function(e) {
i(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.start = function() {
return r(this, void 0, void 0, function() {
var e, t;
return c(this, function(o) {
switch (o.label) {
case 0:
this.lbEmailCodeTime = this.btnSendEmail.node.getChildByName("code").getComponent(cc.Label);
cc.sys.localStorage.setItem("OpenRegister", "");
this.nodeItems.active = !1;
this._channelCode = d.Global.installParms.channelCode;
this._bindData = d.Global.installParms.bindData;
return [ 4, this.downloadUserConfig() ];

case 1:
o.sent();
if (!this._userLoginConfig) return [ 2 ];
e = this._userLoginConfig.userLoginConfig || [];
t = 0;
o.label = 2;

case 2:
return t < e.length ? "phone" !== e[t].registerFieldName ? [ 3, 4 ] : [ 4, this.areaLanguageFlag() ] : [ 3, 5 ];

case 3:
o.sent();
return [ 3, 5 ];

case 4:
t++;
return [ 3, 2 ];

case 5:
this.showItemsFromLoginConfig();
this.refreshCodeImage();
return [ 2 ];
}
});
});
};
t.prototype.downloadUserConfig = function() {
var e = this;
return new Promise(function(t) {
l.default.showLoadingUI();
s.default.userLoginConfig({
agentCode: e._bindData.code || ""
}, function(e) {
l.default.hideLoadingUI();
this._userLoginConfig = e;
t();
}.bind(e), function() {
t();
});
});
};
t.prototype.check = function() {
if (0 === this.ebUserName.string.length) {
l.default.showToastUI(g.t("register_text.user_not_mag"), d.Global.ToastType.Warnning);
return !1;
}
if (this.ebUserName.string.length < 6 || this.ebUserName.string.length > 12 || !/\d+/.test(this.ebUserName.string) || !/[a-zA-Z]+/.test(this.ebUserName.string)) {
l.default.showToastUI(g.t("register_text.user_pro"), d.Global.ToastType.Warnning);
return !1;
}
if (/\s/.test(this.ebUserName.string)) {
l.default.showToastUI(g.t("register_text.user_pro"), d.Global.ToastType.Warnning);
return !1;
}
if (/\s/.test(this.ebPossword.string)) {
l.default.showToastUI(g.t("register_text.paw_pro"), d.Global.ToastType.Warnning);
return !1;
}
if (/[^0-9A-Za-z~！\\\\@#￥%&()*-_=+{}[]|;:''"",.<>?]+/g.test(this.ebPossword.string)) {
l.default.showToastUI(g.t("register_text.paw_pro"), d.Global.ToastType.Warnning);
cc.log("===不行");
return !1;
}
if (0 === this.ebPossword.string.length) {
l.default.showToastUI(g.t("login_text.psw_pro"), d.Global.ToastType.Warnning);
return !1;
}
if (this.ebPossword.string.length < 6 || this.ebPossword.string.length > 12) {
l.default.showToastUI(g.t("register_text.paw_pro"), d.Global.ToastType.Warnning);
return !1;
}
if (0 === this.ebConfirm.string.length) {
l.default.showToastUI(g.t("register_text.confirm_paw_pro"), d.Global.ToastType.Warnning);
return !1;
}
if (this.ebConfirm.string !== this.ebPossword.string) {
l.default.showToastUI(g.t("register_text.paw_consistent"), d.Global.ToastType.Warnning);
return !1;
}
if (0 === parseInt(this._userLoginConfig.isOpenReCode) && 0 === this.ebCode.string.length) {
l.default.showToastUI(g.t("register_text.paw_pro"), d.Global.ToastType.Warnning);
return !1;
}
for (var e = this._userLoginConfig.userLoginConfig || [], t = 0; t < e.length; t++) {
var o, n = e[t];
o = "phone" === n.registerFieldName ? this.ebPhoneNum : cc.find(n.registerFieldName + "/EditBox", this.nodeContent).getComponent(cc.EditBox);
if (n.isNotNull) {
if (0 === o.string.length) {
g.t("register_text.No_null");
l.default.showToastUI(n.registerName + g.t("register_text.No_null"), d.Global.ToastType.Warnning);
return !1;
}
if ("phone" === n.registerFieldName && (o.string.length < 6 || o.string.length > 15 || !/^\d+$/.test(o.string))) {
l.default.showToastUI(g.t("register_text.correct_phone"), d.Global.ToastType.Warnning);
return !1;
}
}
}
if (0 === parseInt(this._userLoginConfig.isOpenPhoneCode) && 0 === this.ebPhoneCode.string.length) {
l.default.showToastUI(g.t("register_text.phone_vfy"), d.Global.ToastType.Warnning);
return !1;
}
if (this._userLoginConfig.emailSwitch && !this.ebEmailCode.string) {
l.default.showToastUI(g.t("register_text.emailplaceholder"), d.Global.ToastType.Warnning);
return !1;
}
return !0;
};
t.prototype.onBtnClose = function() {
p.default.playSound("close");
this.node.destroy();
f.default.openNext();
};
t.prototype.onBtnUpgrade = function() {
if (this.check()) {
var e = this._bindData && this._bindData.code;
!e && this.agentCodeEb && (e = this.agentCodeEb.string);
var t = {
agentUrl: "",
channelDomain: "",
channelFlag: "",
code: this.ebCode.string,
codeId: 0 === this._codeId ? "" : this._codeId.toString(),
deviceFlag: "",
deviceModel: cc.sys.isMobile ? jsb.device.getDeviceModel() : "",
deviceType: cc.sys.os === cc.sys.OS_ANDROID ? "1" : "2",
domainId: this._channelCode,
email: cc.find("email/EditBox", this.nodeContent) ? cc.find("email/EditBox", this.nodeContent).getComponent(cc.EditBox).string : "",
emailCode: this.ebEmailCode.string,
ipAdr: "",
parentAgentCode: e,
phone: this.ebPhoneNum.string || "",
phoneCode: this.ebPhoneCode.string,
pwd: this.ebPossword.string,
qq: cc.find("qq/EditBox", this.nodeContent) ? cc.find("qq/EditBox", this.nodeContent).getComponent(cc.EditBox).string : "",
area: this.selectAreaCodeData && this.selectAreaCodeData.areaNumber,
sign: "",
uaToken: "",
userId: this.ebUserName.string,
verifyPwd: this.ebConfirm.string,
weChat: cc.find("wechat/EditBox", this.nodeContent) ? cc.find("wechat/EditBox", this.nodeContent).getComponent(cc.EditBox).string : "",
webUmidToken: "",
currencyType: u.default.getPy("currencyType")
};
l.default.showLoadingUI();
s.default.visitorEditUserData(t, function(e) {
l.default.hideLoadingUI();
cc.log("===升级成功rec：", e);
l.default.showToastUI("升级成功", d.Global.ToastType.OK);
u.default.setPy("userType", 0);
this.node.destroy();
f.default.openNext();
}.bind(this), function() {
l.default.hideLoadingUI();
}.bind(this));
}
};
return a([ m ], t);
}(h.default));
o.default = v;
cc._RF.pop();
}, {
"../Models/Player": "Player",
"../Shared/AudioManager": "AudioManager",
"../Shared/Global": "Global",
"../Shared/NetworkLogic": "NetworkLogic",
"../Shared/PopWindowManager": "PopWindowManager",
"../Shared/UIManager": "UIManager",
"./RegisterUI": "RegisterUI",
LanguageData: "LanguageData"
} ],
LoginCurrencyChoose: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "79efb8rn59O0KkvzBEUYd4y", "LoginCurrencyChoose");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../Shared/AudioManager"), c = e("../Shared/UIManager"), s = e("../Shared/Global"), l = e("../Shared/Utils"), d = e("../Shared/NetworkLogic"), u = e("../Shared/Constant"), p = e("../Shared/SDKManager"), h = e("../Models/Player"), f = e("../Shared/PackageConfig"), g = (e("LanguageData"), 
cc._decorator), y = g.ccclass, m = g.property, v = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.currencyToggleItem = null;
t.currencyToggleContent = null;
t.nodeTips = null;
t.currencyTips = null;
t.currencyLabel = null;
t.nodeCurrencyScroll = null;
t.currencyLanguageDto = null;
t.data = null;
return t;
}
t.prototype.start = function() {};
t.prototype.updateUI = function(e, t) {
this.data = e;
this.createCurrencyList(t);
};
t.prototype.createCurrencyList = function(e) {
for (var t = 0; t < e.length; t++) {
var o = cc.instantiate(this.currencyToggleItem);
o.parent = this.currencyToggleContent;
o.getChildByName("lbBack").getComponent(cc.Label).string = e[t].currencyName;
o.getComponent(cc.Button).clickEvents[0].customEventData = e[t];
o.active = !0;
}
};
t.prototype.onBtnChooseCurrency = function() {
r.default.playSound("button");
this.nodeCurrencyScroll.active = !this.nodeCurrencyScroll.active;
};
t.prototype.onBtnCurrencySelected = function(e, t) {
r.default.playSound("button");
this.currencyTips.active = !1;
this.currencyLanguageDto = t;
this.currencyLabel.string = t.currencyName;
this.nodeCurrencyScroll.active = !1;
};
t.prototype.onBtnTips = function() {
r.default.playSound("button");
this.nodeTips.active = !0;
};
t.prototype.onBtnOk = function() {
r.default.playSound("button");
var e = l.default.getChannelCode() || s.Global.installParms.channelCode;
f.default.TingzhuSign && "1038" === f.default.TingzhuSign && (e = f.default.ChannelCode);
var t = {
deviceModel: cc.sys.isMobile ? jsb.device.getDeviceModel() : "",
deviceType: cc.sys.os === cc.sys.OS_ANDROID ? "1" : "2",
domainId: e,
parentAgentCode: s.Global.installParms.bindData.code || "",
currencyType: this.currencyLanguageDto.currencyType
};
c.default.showLoadingUI();
d.default.visitorUserRegistered(t, function(e) {
c.default.hideLoadingUI();
cc.log("===注册成功", e);
0 === u.default.InstallSDK ? p.default.reportRegister() : 1 === u.default.InstallSDK && p.default.shareInstallReportRegister();
h.default.setPy("token", e.token);
cc.director.emit(s.Global.UserEvent.PlayerLogin);
}.bind(this), function() {
c.default.hideLoadingUI();
cc.log("===loginVisitorRegistered失败原因呢");
}.bind(this));
this.node.destroy();
};
t.prototype.onTipsOk = function() {
this.nodeTips.active = !1;
};
a([ m(cc.Node) ], t.prototype, "currencyToggleItem", void 0);
a([ m(cc.Node) ], t.prototype, "currencyToggleContent", void 0);
a([ m(cc.Node) ], t.prototype, "nodeTips", void 0);
a([ m(cc.Node) ], t.prototype, "currencyTips", void 0);
a([ m(cc.Label) ], t.prototype, "currencyLabel", void 0);
a([ m(cc.Node) ], t.prototype, "nodeCurrencyScroll", void 0);
return a([ y ], t);
}(cc.Component);
o.default = v;
cc._RF.pop();
}, {
"../Models/Player": "Player",
"../Shared/AudioManager": "AudioManager",
"../Shared/Constant": "Constant",
"../Shared/Global": "Global",
"../Shared/NetworkLogic": "NetworkLogic",
"../Shared/PackageConfig": "PackageConfig",
"../Shared/SDKManager": "SDKManager",
"../Shared/UIManager": "UIManager",
"../Shared/Utils": "Utils",
LanguageData: "LanguageData"
} ],
LoginQuickRegister: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "111e7hdWDBOtYkwc67Sf8oT", "LoginQuickRegister");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
}, r = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, c = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var s = e("../Shared/NetworkLogic"), l = e("../Shared/Utils"), d = e("../Shared/UIManager"), u = e("../Shared/Global"), p = e("../Shared/AudioManager"), h = e("../Models/Player"), f = e("../Shared/SDKManager"), g = e("../Shared/Constant"), y = e("../Common/RemoteSprite"), m = e("LanguageData"), v = cc._decorator, b = v.ccclass, _ = v.property, S = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.nodeBtnClose = null;
t.edUserId = null;
t.edPassword = null;
t.nodeEditBtn1 = null;
t.nodeEditBtn2 = null;
t.nodeCheckBtn1 = null;
t.nodeCheckBtn2 = null;
t.nodeSaveImage = null;
t.userId1 = null;
t.password1 = null;
t.nodeBtnOk = null;
t.nodeBtnSave = null;
t.currencyLabel = null;
t.languageLabel = null;
t.languageIcon = null;
t.langToggleItem = null;
t.langToggleContent = null;
t.currencyToggleItem = null;
t.currencyToggleContent = null;
t.nodeLangScroll = null;
t.nodeCurrencyScroll = null;
t.nodePosCur = null;
t.nodeTips = null;
t.currencyTips = null;
t.currencyLanguageDto = null;
t._languageData = null;
t.check1 = !0;
t.check2 = !0;
return t;
}
t.prototype.onLoad = function() {};
t.prototype.start = function() {
return r(this, void 0, void 0, function() {
var e;
return c(this, function(t) {
switch (t.label) {
case 0:
if (cc.sys.localStorage.getItem("OpenLoginQuickRegister")) {
cc.sys.localStorage.setItem("OpenLoginQuickRegister", "");
d.default.showLoadingUI();
s.default.loginVisitorCreate(function(e) {
d.default.hideLoadingUI();
this.updateUI(e);
}.bind(this), function(e) {
cc.log("===获取游客账号失败:", e);
d.default.showToastUI(m.t("login_text.quick_login_fail"), u.Global.ToastType.Error);
});
}
return [ 4, this.getLanguageData() ];

case 1:
t.sent();
e = {
agentCode: u.Global.installParms.bindData.code || ""
};
d.default.showLoadingUI();
s.default.userLoginConfig(e, function(e) {
d.default.hideLoadingUI();
if (Array.isArray(e.currencyLanguageDto) && !(e.currencyLanguageDto.length <= 0)) {
this.currencyLabel.node.parent.parent.active = e.currencyLanguageDto.length > 1;
if (1 === e.currencyLanguageDto.length) {
this.onBtnCurrencySelected(null, e.currencyLanguageDto[0]);
var t = this.currencyLabel.node.parent.getComponent(cc.Button);
t.interactable = !1;
t.node.getChildByName("spXiala").active = !1;
} else this.createCurrencyList(e.currencyLanguageDto);
cc.log("====userLoginConfig data:", e);
}
}.bind(this), function() {}.bind(this));
return [ 2 ];
}
});
});
};
t.prototype.createCurrencyList = function(e) {
for (var t = 0; t < e.length; t++) {
var o = cc.instantiate(this.currencyToggleItem);
o.parent = this.currencyToggleContent;
o.getChildByName("lbBack").getComponent(cc.Label).string = e[t].currencyName;
o.getComponent(cc.Button).clickEvents[0].customEventData = e[t];
o.active = !0;
}
};
t.prototype.updateUI = function(e) {
this.edUserId.string = e.userId;
this.edPassword.string = e.password;
};
t.prototype.onBtnEdit1 = function() {
p.default.playSound("button");
this.edUserId.enabled = !0;
this.nodeEditBtn1.active = !1;
this.nodeCheckBtn1.active = !0;
this.check1 = !1;
};
t.prototype.onBtnEdit2 = function() {
p.default.playSound("button");
this.edPassword.enabled = !0;
this.nodeEditBtn2.active = !1;
this.nodeCheckBtn2.active = !0;
this.check2 = !1;
};
t.prototype.onBtnCheck1 = function() {
p.default.playSound("button");
var e = {
userId: this.edUserId.string,
pwd: this.edPassword.string
};
s.default.loginVisitorVerification(e, function(e) {
cc.log("===修改账号成功", e);
this.edUserId.enabled = !1;
this.check1 = !0;
this.nodeCheckBtn1.active = !1;
}.bind(this), function() {
cc.log("===失败原因呢");
});
};
t.prototype.onBtnCheck2 = function() {
p.default.playSound("button");
this.edPassword.enabled = !0;
var e = {
userId: this.edUserId.string,
pwd: this.edPassword.string
};
s.default.loginVisitorVerification(e, function(e) {
cc.log("===修改密码成功", e);
this.edPassword.enabled = !1;
this.check2 = !0;
this.nodeCheckBtn2.active = !1;
}.bind(this), function() {
cc.log("===失败原因呢");
});
};
t.prototype.onBtnOk = function() {
p.default.playSound("button");
if (this.check1 && this.check2) if (this.currencyLanguageDto) {
cc.log("====设备号：", l.default.getDeviceId());
this.userId1.string = this.edUserId.string;
this.password1.string = this.edPassword.string;
var e = {
deviceModel: cc.sys.isMobile ? jsb.device.getDeviceModel() : "",
deviceType: cc.sys.os === cc.sys.OS_ANDROID ? "1" : "2",
domainId: l.default.getChannelCode() ? l.default.getChannelCode() : u.Global.installParms.channelCode,
parentAgentCode: u.Global.installParms.bindData.code || "",
pwd: this.edPassword.string,
userId: this.edUserId.string,
currencyType: this.currencyLanguageDto.currencyType
};
d.default.showLoadingUI();
s.default.loginVisitorRegistered(e, function(e) {
d.default.hideLoadingUI();
cc.log("===注册成功", e);
0 === g.default.InstallSDK ? f.default.reportRegister() : 1 === g.default.InstallSDK && f.default.shareInstallReportRegister();
this.nodeBtnOk.active = !1;
this.nodeBtnSave.active = !0;
h.default.setPy("token", e.token);
cc.director.emit(u.Global.UserEvent.PlayerLogin);
cc.log("====注册成功之后AfterLogin token：", h.default.getPy("token"));
}.bind(this), function() {
d.default.hideLoadingUI();
cc.log("===loginVisitorRegistered失败原因呢");
this.node.destroy();
}.bind(this));
} else d.default.showToastUI(m.t("register_chooseCurrency"), u.Global.ToastType.Warnning); else d.default.showToastUI(m.t("register_text.please_tick"), u.Global.ToastType.Warnning);
};
t.prototype.onBtnSave = function() {
p.default.playSound("button");
if (cc.sys.isNative) l.default.saveNodeImageToAlbum(this.nodeSaveImage, "userIdAndPassword.png", function(e) {
if (e) {
d.default.showToastUI(m.t("register_text.save_suc"), u.Global.ToastType.OK);
this.node.destroy();
} else {
d.default.showTipUI(m.t("register_text.save_err"), u.Global.ToastType.Error);
this.nodeBtnClose.active = !0;
}
}.bind(this)); else {
cc.log("该方法只支持原生平台");
this.nodeBtnClose.active = !0;
}
};
t.prototype.onBtnClose = function() {
p.default.playSound("close");
this.node.destroy();
};
t.prototype.initLanguageToggles = function() {
if (Array.isArray(this._languageData) && !(this._languageData.length <= 0)) {
this.languageLabel.node.parent.active = this._languageData.length > 1;
if (1 === this._languageData.length) {
this.onLangToggleSelected(null, this._languageData[0]);
var e = this.languageLabel.node.parent.getChildByName("btn").getComponent(cc.Button);
e.interactable = !1;
e.node.getChildByName("xiala").active = !1;
var t = this._languageData[0];
this.languageLabel.string = t.languageName;
this.languageIcon.url = t.languageUrl;
} else for (var o = cc.sys.localStorage.getItem("CurrentLanguage"), n = 0; n < this._languageData.length; n++) if (1 === (t = this._languageData[n]).status) {
var i = cc.instantiate(this.langToggleItem);
i.parent = this.langToggleContent;
cc.find("lbBack", i).getComponent(cc.Label).string = t.languageName;
i.getChildByName("icon").getComponent(y.default).url = t.languageUrl;
i.active = !0;
i.getComponent(cc.Button).clickEvents[0].customEventData = t;
if (o === t.languageFlag) {
this.languageLabel.string = t.languageName;
this.languageIcon.url = t.languageUrl;
this.onLangToggleSelected(null, t);
}
}
}
};
t.prototype.onLangToggleSelected = function(e, t) {
p.default.playSound("button");
cc.log("===进入 语言Toggle param：", t);
if (cc.sys.localStorage.getItem("CurrentLanguage") !== t.languageFlag) {
this.languageLabel.string = t.languageName;
this.languageIcon.url = t.languageUrl;
this.nodeLangScroll.active = !1;
f.default.setTags([ t.languageFlag ]);
m.init(t.languageFlag);
cc.sys.localStorage.setItem("CurrentLanguage", t.languageFlag);
cc.sys.localStorage.setItem("OpenLoginQuickRegister", "LoginQuickRegister");
d.default.showTipUI(m.t("set_text.change_language_tips"), function() {
l.default.restartGame();
}.bind(this), m.t("set_text.restart"));
} else this.nodeLangScroll.active = !1;
};
t.prototype.onBtnCurrencySelected = function(e, t) {
p.default.playSound("button");
this.currencyTips.active = !1;
this.currencyLanguageDto = t;
this.currencyLabel.string = t.currencyName;
this.nodeCurrencyScroll.active = !1;
};
t.prototype.onCloseLang = function() {
this.nodeLangScroll.active = !1;
};
t.prototype.onBtnChooseLanguage = function() {
p.default.playSound("button");
this.nodeLangScroll.active = !this.nodeLangScroll.active;
};
t.prototype.onBtnChooseCurrency = function() {
p.default.playSound("button");
this.nodeCurrencyScroll.active = !this.nodeCurrencyScroll.active;
};
t.prototype.onBtnCloseTips = function() {
p.default.playSound("button");
this.nodeTips.active = !1;
};
t.prototype.onBtnTips = function() {
p.default.playSound("button");
this.nodeTips.active = !0;
};
t.prototype.getLanguageData = function() {
var e = this;
return new Promise(function(t) {
d.default.showLoadingUI();
s.default.getLanguageListAll(function(e) {
d.default.hideLoadingUI();
this._languageData = e;
this.initLanguageToggles();
t(e);
}.bind(e), function() {
d.default.hideLoadingUI();
t([]);
}.bind(e));
});
};
a([ _(cc.Node) ], t.prototype, "nodeBtnClose", void 0);
a([ _(cc.EditBox) ], t.prototype, "edUserId", void 0);
a([ _(cc.EditBox) ], t.prototype, "edPassword", void 0);
a([ _(cc.Node) ], t.prototype, "nodeEditBtn1", void 0);
a([ _(cc.Node) ], t.prototype, "nodeEditBtn2", void 0);
a([ _(cc.Node) ], t.prototype, "nodeCheckBtn1", void 0);
a([ _(cc.Node) ], t.prototype, "nodeCheckBtn2", void 0);
a([ _(cc.Node) ], t.prototype, "nodeSaveImage", void 0);
a([ _(cc.Label) ], t.prototype, "userId1", void 0);
a([ _(cc.Label) ], t.prototype, "password1", void 0);
a([ _(cc.Node) ], t.prototype, "nodeBtnOk", void 0);
a([ _(cc.Node) ], t.prototype, "nodeBtnSave", void 0);
a([ _(cc.Label) ], t.prototype, "currencyLabel", void 0);
a([ _(cc.Label) ], t.prototype, "languageLabel", void 0);
a([ _(y.default) ], t.prototype, "languageIcon", void 0);
a([ _(cc.Node) ], t.prototype, "langToggleItem", void 0);
a([ _(cc.Node) ], t.prototype, "langToggleContent", void 0);
a([ _(cc.Node) ], t.prototype, "currencyToggleItem", void 0);
a([ _(cc.Node) ], t.prototype, "currencyToggleContent", void 0);
a([ _(cc.Node) ], t.prototype, "nodeLangScroll", void 0);
a([ _(cc.Node) ], t.prototype, "nodeCurrencyScroll", void 0);
a([ _(cc.Node) ], t.prototype, "nodePosCur", void 0);
a([ _(cc.Node) ], t.prototype, "nodeTips", void 0);
a([ _(cc.Node) ], t.prototype, "currencyTips", void 0);
return a([ b ], t);
}(cc.Component);
o.default = S;
cc._RF.pop();
}, {
"../Common/RemoteSprite": "RemoteSprite",
"../Models/Player": "Player",
"../Shared/AudioManager": "AudioManager",
"../Shared/Constant": "Constant",
"../Shared/Global": "Global",
"../Shared/NetworkLogic": "NetworkLogic",
"../Shared/SDKManager": "SDKManager",
"../Shared/UIManager": "UIManager",
"../Shared/Utils": "Utils",
LanguageData: "LanguageData"
} ],
LoginUI: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "49cde0KDSJHEoXy0VTYz8xv", "LoginUI");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../Shared/NetworkLogic"), c = e("../Shared/UIManager"), s = e("../Shared/Global"), l = e("../Models/Player"), d = e("../Shared/AudioManager"), u = e("../Shared/AddressManager"), p = e("./HallUI"), h = e("../Shared/Utils"), f = e("LanguageData"), g = e("./VerificationUI"), y = e("../Lib/crypto-js"), m = e("../Shared/Constant"), v = e("../Shared/SDKManager"), b = e("../Shared/PopWindowManager"), _ = e("../Shared/PackageConfig"), S = e("./VerificationSMSLayer"), C = e("../../lib/captcha/CaptchaManager"), w = cc._decorator, I = w.ccclass, L = w.property, T = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.nodeQucikBtn = null;
t.pfbCustomerServiceUI = null;
t.captchaPrefab = null;
t.pfbRegisterUI = null;
t.nodeItems = null;
t.nodeUserName = null;
t.nodeCode = null;
t.ebUserName = null;
t.ebPossword = null;
t.ebCode = null;
t.spCode = null;
t.toggleRemember = null;
t.pfbVerificationLayer = null;
t.pfbVerificationSMSLayer = null;
t._codeId = 0;
t._userLoginConfig = null;
t._bankNum = "";
t._phone = "";
t._phoneCode = void 0;
t.parentAgentCode = null;
t._showVerifyMessage = void 0;
t._captchaManager = void 0;
t._captchaSessionId = void 0;
t._captchaId = void 0;
t._captchaValidateId = void 0;
t._captchaExpireTime = void 0;
return t;
}
t.prototype.start = function() {
this.parentAgentCode = s.Global.installParms.bindData.code || "";
this.nodeItems.active = !1;
this.downloadUserConfig();
this.refreshCodeImage();
this.init();
};
t.prototype.init = function() {
this._captchaExpireTime = void 0;
this._captchaSessionId = void 0;
this._captchaValidateId = void 0;
this._captchaId = void 0;
this.toggleRemember.isChecked = !JSON.parse(cc.sys.localStorage.getItem("IsNotRememberUserID"));
this.toggleRemember.isChecked && cc.sys.localStorage.getItem("SavedUserID") && (this.ebUserName.string = cc.sys.localStorage.getItem("SavedUserID"));
};
t.prototype.onBtnClick = function(e, t) {
if ("login" === t) {
if (!this.check()) return;
var o = {
code: this.ebCode.string,
codeId: this._codeId,
ipCode: this.ebCode.string,
ipCodeId: this._codeId
};
this.login(o);
} else if ("quickLogin" === t) this.quickLogin(); else if ("send" === t) ; else if ("go" === t) {
cc.instantiate(this.pfbRegisterUI).parent = this.node.parent;
this.node.destroy();
} else if ("code" === t) this.refreshCodeImage(); else if ("close" === t) {
d.default.playSound("close");
this.node.destroy();
} else if ("forget" === t) {
var n = cc.find("Canvas/gameNode") && cc.find("Canvas/gameNode").getComponent(p.default);
n && n.openChildUI(this.pfbCustomerServiceUI);
this.node.destroy();
} else "remember" === t && (this.toggleRemember.isChecked = !this.toggleRemember.isChecked);
};
t.prototype._onCaptchSuccess = function(e) {
this._captchaValidateId = e;
};
t.prototype._onCaptchFailed = function(e) {
c.default.showToastUI(e);
};
t.prototype.login = function(e, t) {
var o = this;
void 0 === t && (t = !1);
var n = !0 === this._userLoginConfig.yidunCaptchaSwitch;
if (!n || void 0 !== this._captchaValidateId || t) {
var i = void 0, a = {
agentUrl: "",
code: e.code,
codeId: 0 === e.codeId ? "" : e.codeId.toString(),
deviceFlag: "",
deviceModel: cc.sys.isMobile ? jsb.device.getDeviceModel() : "",
deviceType: cc.sys.os === cc.sys.OS_ANDROID ? "1" : "2",
phone: this._phone,
pwd: this.ebPossword.string,
sign: "",
phoneCode: this._phoneCode,
userId: this.ebUserName.string,
bankNum: this._bankNum && y.MD5(this._bankNum.toLocaleLowerCase() + e.ipCodeId) + "" || "",
ipCode: e.ipCode,
ipCodeId: e.ipCodeId,
emulatorJson: h.default.getDeviceInfo()
};
if (n && !t) {
a.captchaSessionId = this._captchaSessionId;
a.captchaValidate = this._captchaValidateId;
this._captchaExpireTime = void 0;
this._captchaSessionId = void 0;
this._captchaValidateId = void 0;
this._captchaId = void 0;
}
if (n && t && void 0 !== i) {
a.seid = i;
i = void 0;
}
c.default.showLoadingUI();
r.default.login(a, function(e) {
c.default.hideLoadingUI();
l.default.setPy("token", e.token);
cc.director.emit(s.Global.UserEvent.PlayerLogin);
cc.log("===login登录AfterLogin data：", e);
cc.sys.localStorage.setItem("IsNotRememberUserID", !this.toggleRemember.isChecked);
this.toggleRemember.isChecked && cc.sys.localStorage.setItem("SavedUserID", this.ebUserName.string);
if (void 0 !== this._showVerifyMessage) {
c.default.showToastUI(this._showVerifyMessage);
this._showVerifyMessage = void 0;
}
this.node.destroy();
}.bind(this), function(e) {
var t = this;
if (e) if ("100" === e.code) {
(o = cc.find("Canvas/gameNode").getComponent("HallUI").openChildUI(this.pfbVerificationLayer).getComponent(g.default)).payType = e.data.type;
o.payNumber = e.data.bankNo;
o.callback = function(e, t, o) {
this._bankNum = e;
var n = {
code: t,
codeId: o,
ipCode: t,
ipCodeId: o
};
this.login(n, !0);
this._bankNum = "";
}.bind(this);
i = e.seid;
} else if ("104" === e.code) {
var o = cc.find("Canvas/gameNode").getComponent("HallUI").openChildUI(this.pfbVerificationSMSLayer).getComponent(S.default);
this._phone = e.data.phone;
o.init(function(e, o, n) {
t._phoneCode = e;
t._showVerifyMessage = f.t("BasicsJS.phoneAuthSuccess");
var i = {
code: o,
codeId: n,
ipCode: o,
ipCodeId: n
};
t.login(i, !0);
t._phone = "";
t._phoneCode = "";
}, e.data.phone);
i = e.seid;
} else if ("101" === e.code) {
(o = cc.find("Canvas/gameNode").getComponent("HallUI").openChildUI(this.pfbVerificationLayer).getComponent(g.default)).payType = 2;
o.payNumber = e.data.phone;
o.callback = function(e, t, o) {
this._phone = e;
var n = {
code: t,
codeId: o,
ipCode: t,
ipCodeId: o
};
this.login(n, !0);
this._phone = "";
}.bind(this);
i = e.seid;
} else if (+e.code >= 5001 && +e.code <= 5007) c.default.showToastUI(f.t("Error." + e.code)); else {
this.refreshCodeImage();
this.downloadUserConfig();
}
}.bind(this));
} else {
var d = cc.instantiate(this.captchaPrefab);
d.parent = cc.find("Canvas");
this._captchaManager = d.getComponent(C.default);
r.default.captchaInit(void 0, function(t) {
o._captchaSessionId = t.sessionId;
o._captchaId = t.captchaId;
o._captchaExpireTime = t.expireSeconds;
o._captchaManager.setup(function(t) {
o._captchaValidateId = t;
o.login(e);
}, o._onCaptchFailed.bind(o));
o._captchaManager.trigger(o._captchaId, o._captchaExpireTime);
});
}
};
t.prototype.quickLogin = function() {
var e = h.default.getChannelCode() || s.Global.installParms.channelCode || "";
_.default.TingzhuSign && "1038" === _.default.TingzhuSign && (e = _.default.ChannelCode);
var t = {
deviceModel: cc.sys.isMobile ? jsb.device.getDeviceModel() : "",
deviceType: cc.sys.os === cc.sys.OS_ANDROID ? "1" : "2",
domainId: e,
parentAgentCode: this.parentAgentCode,
currencyType: ""
};
cc.sys.localStorage.setItem("DeviceID", h.default.getDeviceId().toString());
c.default.showLoadingUI();
r.default.visitorUserRegistered(t, function(e) {
c.default.hideLoadingUI();
cc.log("===visitorUserRegistered:", e);
if (e.token) {
l.default.setPy("token", e.token);
cc.director.emit(s.Global.UserEvent.PlayerLogin);
} else {
var t = this._userLoginConfig.currencyLanguageDto;
if (!Array.isArray(t) || t.length <= 0) return;
if (1 === t.length) this._quickRegister(e, t); else {
var o = cc.find("Canvas/gameNode").getComponent("HallUI");
o.openChildUI(o.pfbLoginCurrencyChoose).getComponent("LoginCurrencyChoose").updateUI(e, t);
}
}
this.node.destroy();
}.bind(this), function(e) {
cc.log("===获取游客账号失败:", e);
c.default.showToastUI(f.t("login_text.quick_login_fail"), s.Global.ToastType.Error);
});
};
t.prototype._quickRegister = function(e, t) {
var o = this;
return new Promise(function(e) {
var n = h.default.getChannelCode() || s.Global.installParms.channelCode || "";
_.default.TingzhuSign && "1038" === _.default.TingzhuSign && (n = _.default.ChannelCode);
var i = {
deviceModel: cc.sys.isMobile ? jsb.device.getDeviceModel() : "",
deviceType: cc.sys.os === cc.sys.OS_ANDROID ? "1" : "2",
domainId: n,
parentAgentCode: o.parentAgentCode,
currencyType: t[0].currencyType
};
c.default.showLoadingUI();
r.default.visitorUserRegistered(i, function(t) {
c.default.hideLoadingUI();
cc.log("===注册成功", t);
0 === m.default.InstallSDK ? v.default.reportRegister() : 1 === m.default.InstallSDK && v.default.shareInstallReportRegister();
var o = cc.find("Canvas/gameNode") && cc.find("Canvas/gameNode").getComponent(p.default);
b.default.popWindowArr.push({
data: null,
pfb: o.pfbVistorLoginTips
});
l.default.setPy("token", t.token);
cc.director.emit(s.Global.UserEvent.PlayerLogin);
e(1);
}.bind(o), function() {
c.default.hideLoadingUI();
e(0);
cc.log("===loginVisitorRegistered失败原因呢");
}.bind(o));
});
};
t.prototype.refreshCodeImage = function() {
this._codeId = Math.floor(1e3 * Math.random());
var e = u.default.getServerAdress() + "/api/user/generator-code?code_id=" + this._codeId.toString();
cc.assetManager.loadRemote(e, {
ext: ".png"
}, function(e, t) {
if (!e && this.node) {
var o = new cc.SpriteFrame(t);
this.spCode.spriteFrame = null;
this.spCode.spriteFrame = o;
}
}.bind(this));
};
t.prototype.downloadUserConfig = function() {
c.default.showLoadingUI();
r.default.userLoginConfig({
agentCode: this.parentAgentCode || ""
}, function(e) {
c.default.hideLoadingUI();
cc.log("===获取登录数据：", e);
this._userLoginConfig = e;
_.default.TingzhuSign && "1038" === _.default.TingzhuSign ? this.nodeQucikBtn.active = !1 : 0 === e.isOpenVisitorLogin ? this.nodeQucikBtn.active = !0 : this.nodeQucikBtn.active = !1;
this.showItemsFromLoginConfig(e);
}.bind(this));
};
t.prototype.showItemsFromLoginConfig = function() {
this.nodeItems.active = !0;
this.nodeCode.active = !1;
1 === parseInt(this._userLoginConfig.isOpenLoginCode) && (this.nodeCode.active = !0);
};
t.prototype.check = function() {
if (0 === this.ebUserName.string.length) {
c.default.showToastUI(f.t("login_text.account_pro"), s.Global.ToastType.Warnning);
return !1;
}
if (0 === this.ebPossword.string.length) {
c.default.showToastUI(f.t("login_text.psw_pro"), s.Global.ToastType.Warnning);
return !1;
}
if (1 === parseInt(this._userLoginConfig.isOpenLoginCode) && 0 === this.ebCode.string.length) {
c.default.showToastUI(f.t("login_text.vfy_pro"), s.Global.ToastType.Warnning);
return !1;
}
return !0;
};
a([ L(cc.Node) ], t.prototype, "nodeQucikBtn", void 0);
a([ L(cc.Prefab) ], t.prototype, "pfbCustomerServiceUI", void 0);
a([ L(cc.Prefab) ], t.prototype, "captchaPrefab", void 0);
a([ L(cc.Prefab) ], t.prototype, "pfbRegisterUI", void 0);
a([ L(cc.Node) ], t.prototype, "nodeItems", void 0);
a([ L(cc.Node) ], t.prototype, "nodeUserName", void 0);
a([ L(cc.Node) ], t.prototype, "nodeCode", void 0);
a([ L(cc.EditBox) ], t.prototype, "ebUserName", void 0);
a([ L(cc.EditBox) ], t.prototype, "ebPossword", void 0);
a([ L(cc.EditBox) ], t.prototype, "ebCode", void 0);
a([ L(cc.Sprite) ], t.prototype, "spCode", void 0);
a([ L(cc.Toggle) ], t.prototype, "toggleRemember", void 0);
a([ L(cc.Prefab) ], t.prototype, "pfbVerificationLayer", void 0);
a([ L(cc.Prefab) ], t.prototype, "pfbVerificationSMSLayer", void 0);
return a([ I ], t);
}(cc.Component);
o.default = T;
cc._RF.pop();
}, {
"../../lib/captcha/CaptchaManager": "CaptchaManager",
"../Lib/crypto-js": "crypto-js",
"../Models/Player": "Player",
"../Shared/AddressManager": "AddressManager",
"../Shared/AudioManager": "AudioManager",
"../Shared/Constant": "Constant",
"../Shared/Global": "Global",
"../Shared/NetworkLogic": "NetworkLogic",
"../Shared/PackageConfig": "PackageConfig",
"../Shared/PopWindowManager": "PopWindowManager",
"../Shared/SDKManager": "SDKManager",
"../Shared/UIManager": "UIManager",
"../Shared/Utils": "Utils",
"./HallUI": "HallUI",
"./VerificationSMSLayer": "VerificationSMSLayer",
"./VerificationUI": "VerificationUI",
LanguageData: "LanguageData"
} ],
LotteryLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "3df3aN2LvxDH5Q2CPYz/7Jf", "LotteryLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("./GamesConfig"), c = e("../Shared/Global"), s = e("../Models/GameList"), l = e("../Shared/Constant"), d = e("./ThirdGameItem"), u = e("LanguageData"), p = cc._decorator, h = p.ccclass, f = p.property, g = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.pfbGameItem = null;
t.layoutItems = null;
t.aniItems = null;
t.wgtScrollView = null;
t._nodeItems = [];
return t;
}
t.prototype.onLoad = function() {
cc.winSize.width / cc.winSize.height > 2 && (this.wgtScrollView.left += l.default.BangLength);
cc.director.on(c.Global.UserEvent.GameListChanged, this.createNodeItems, this);
};
t.prototype.onEnable = function() {
s.default.serverData && this.showItems();
};
t.prototype.onDisable = function() {
this.aniItems.stop();
};
t.prototype.onDestroy = function() {
cc.director.off(c.Global.UserEvent.GameListChanged, this.createNodeItems, this);
};
t.prototype.createNodeItems = function() {
if (s.default.serverData) {
this.layoutItems.node.removeAllChildren();
var e = s.default.getGameListByType(c.Global.GameType.Lottery).twoLevelList || [];
this.createGameItemsFromServer(e);
}
};
t.prototype.createGameItemsFromLocal = function(e) {
var t = this;
e.forEach(function(e) {
var o = new cc.Node(), n = new cc.Node(), i = n.addComponent(cc.Sprite), a = o.addComponent(cc.Button), c = r.default.sports[e.platform];
n.parent = o;
o.parent = t.layoutItems.node;
t._nodeItems.push(o);
if (!c) {
c = "Hall/Sports/huangguan";
if (l.default.RemindMissingRes) {
var s = new cc.Node(), d = s.addComponent(cc.Label);
s.color = cc.color(255, 0, 0);
s.parent = o;
d.string = e.gameTitleCn + "\n" + u.t("CheckHot.lack_resources") + "!";
d.fontSize = 40;
}
}
cc.resources.load(c, cc.SpriteFrame, function(e, t) {
if (!e && this.node) {
i.spriteFrame = t;
o.width = n.width;
o.height = n.height;
}
}.bind(t));
var p = new cc.Node(), h = p.addComponent(cc.Label);
p.parent = o;
p.width = 206;
p.height = 100;
p.position = cc.v2(0, -26);
p.skewX = 8;
h.string = e.gameTitleCn;
h.useSystemFont = !0;
h.fontSize = 60;
h.lineHeight = 60;
h.overflow = cc.Label.Overflow.SHRINK;
h.horizontalAlign = cc.Label.HorizontalAlign.CENTER;
h.verticalAlign = cc.Label.VerticalAlign.CENTER;
h.enableBold = !0;
var f = new cc.Node(), g = f.addComponent(cc.Label), y = f.addComponent("LocalizedLabel");
f.parent = o;
f.width = 110;
f.height = 50;
f.position = cc.v2(-4, -132);
f.color = cc.color(105, 48, 18);
f.skewX = 15;
g.useSystemFont = !0;
g.fontSize = 25;
g.lineHeight = 25;
g.overflow = cc.Label.Overflow.SHRINK;
g.horizontalAlign = cc.Label.HorizontalAlign.CENTER;
y.dataID = "HallUI.play_now";
if ("2" === e.gameStatus) {
var m = new cc.Node(), v = m.addComponent(cc.Sprite);
m.parent = o;
m.position = cc.v2(66, -136);
n.color = cc.color(70, 70, 70);
p.color = cc.color(70, 70, 70);
f.color = cc.color(31.5, 48 * .3, 18 * .3);
cc.resources.load("Common/maintenance", cc.SpriteFrame, function(e, t) {
!e && v && v.isValid && (v.spriteFrame = t);
}.bind(t));
}
var b = new cc.Component.EventHandler();
b.target = cc.find("Canvas/gameNode");
b.component = "HallUI";
b.handler = "onGameItemClick";
a.clickEvents.push(b);
a.transition = cc.Button.Transition.SCALE;
a.zoomScale = .9;
a.node.gameConfig = e;
});
};
t.prototype.createGameItemsFromServer = function(e) {
var t = this;
e.forEach(function(e) {
var o = cc.instantiate(t.pfbGameItem), n = o.getComponent(d.default), i = o.getChildByName("node").addComponent(cc.Button), a = new cc.Component.EventHandler();
o.parent = t.layoutItems.node;
n.urlImgPrefix = s.default.serverData.imgPrefix;
n.gameConfig = e;
a.target = cc.find("Canvas/gameNode");
a.component = "HallUI";
a.handler = "onGameItemClick";
i.clickEvents.push(a);
i.transition = cc.Button.Transition.SCALE;
i.zoomScale = .9;
i.node.gameConfig = n.gameConfig;
});
};
t.prototype.showItems = function() {
if (0 !== this.layoutItems.node.children.length) {
this.layoutItems.enabled = !0;
this.layoutItems.updateLayout();
this.layoutItems.enabled = !1;
var e = this.layoutItems.node.convertToNodeSpaceAR(this.node.convertToWorldSpaceAR(cc.v2(this.node.width * this.node.anchorX, 0))).x - this.layoutItems.node.children[0].x - this.layoutItems.node.children[0].width / 2;
this.layoutItems.node.children.forEach(function(t) {
var o = t.position;
t.x += e;
t.stopAllActions();
t.runAction(cc.moveTo(.3, o).easing(cc.easeSineOut()));
});
}
};
a([ f(cc.Prefab) ], t.prototype, "pfbGameItem", void 0);
a([ f(cc.Layout) ], t.prototype, "layoutItems", void 0);
a([ f(cc.Animation) ], t.prototype, "aniItems", void 0);
a([ f(cc.Widget) ], t.prototype, "wgtScrollView", void 0);
return a([ h ], t);
}(cc.Component);
o.default = g;
cc._RF.pop();
}, {
"../Models/GameList": "GameList",
"../Shared/Constant": "Constant",
"../Shared/Global": "Global",
"./GamesConfig": "GamesConfig",
"./ThirdGameItem": "ThirdGameItem",
LanguageData: "LanguageData"
} ],
MailBoxUI: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "fcf03vFrB9LbKOLmAJrLQLM", "MailBoxUI");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../Shared/Utils"), c = e("../Shared/UIManager"), s = e("../Shared/NetworkLogic"), l = e("../Common/CommonToggleContainer"), d = e("../Models/MsgCenterData"), u = e("../Shared/AudioManager"), p = e("../Shared/EnterSoundManager"), h = e("../Shared/Global"), f = e("../Shared/Constant"), g = e("LanguageData"), y = cc._decorator, m = y.ccclass, v = y.property, b = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.toggleContainer = null;
t.wgtNode = null;
t.lytContent = null;
t.nodeTemplate = null;
t.nodeMsgBox = null;
t.aniMsgBox = null;
t.lbReaded = null;
t.lbTotal = null;
t._msgType = 0;
t._selectedItem = null;
return t;
}
t.prototype.onLoad = function() {
this.nodeTemplate.parent = null;
this.nodeMsgBox.active = !1;
this.toggleContainer.isSelectFirstItem = !1;
r.default.hideGameNode();
};
t.prototype.start = function() {
cc.winSize.width / cc.winSize.height > 2 && (this.wgtNode.left += f.default.BangLength);
c.default.showLoadingUI();
this.scheduleOnce(function() {
s.default.receiveMessage(1, 99, function(e) {
c.default.hideLoadingUI();
d.default.msgList = e;
this.toggleContainer.selectFirstItem();
}.bind(this));
}, .3);
p.default.playSound("enter_xiaoxi");
};
t.prototype.onDestroy = function() {
this.nodeTemplate.destroy();
};
t.prototype.onBtnClick = function(e, t) {
var o = this;
if ("back" === t) {
u.default.playSound("close");
r.default.showGameNode();
this.node.destroy();
} else if ("item" === t) {
this._selectedItem = e.target;
if (!this._selectedItem.msgData.readed) {
var n = this._selectedItem.msgData.id;
c.default.showLoadingUI();
s.default.noticeReaded(n, function() {
c.default.hideLoadingUI();
d.default.readMsg(n);
this.readed(this._selectedItem);
this.refreshNum();
}.bind(this));
}
u.default.playSound("show");
this.nodeMsgBox.active = !0;
this.aniMsgBox.play("show_msgbox");
cc.find("bg/title", this.nodeMsgBox).getComponent(cc.Label).string = this._selectedItem.msgData.title;
cc.find("bg/time", this.nodeMsgBox).getComponent(cc.Label).string = this._selectedItem.msgData.publishTime;
cc.find("bg/content", this.nodeMsgBox).getComponent(cc.Label).string = this._selectedItem.msgData.content;
cc.find("bg/type", this.nodeMsgBox).getComponent(cc.Label).string = 0 === this._msgType ? g.t("msg_text.message") : g.t("msg_text.email");
var i = [ "", g.t("msg_text.receive"), g.t("msg_text.overdue") ];
cc.find("bg/type", this.nodeMsgBox).getComponent(cc.Label).string = i[this._selectedItem.msgData.validType] || "";
cc.find("bg/btn_get", this.nodeMsgBox).active = 0 === this._selectedItem.msgData.validType;
} else if ("close" === t) {
this._selectedItem = null;
u.default.playSound("close");
this.aniMsgBox.play("hide_msgbox");
} else if ("allRead" === t) {
u.default.playSound("button");
c.default.showLoadingUI();
s.default.noticeAllReaded(function() {
var e = this;
c.default.hideLoadingUI();
d.default.readAllMsg();
this.lytContent.node.children.forEach(function(t) {
e.readed(t);
});
this.refreshNum();
}.bind(this));
} else if ("del" === t) {
u.default.playSound("button");
if (0 === e.target.parent.msgData.validType) {
c.default.showToastUI(g.t("msg_text.not_delete"), h.Global.ToastType.Warnning);
return;
}
var a = e.target.parent.msgData.id;
c.default.showLoadingUI();
s.default.noticeDel(a, function() {
c.default.hideLoadingUI();
d.default.delMsg(a);
e.target.parent.destroy();
this.refreshNum();
}.bind(this));
} else if ("allDel" === t) {
u.default.playSound("button");
c.default.showLoadingUI();
s.default.noticeDelAll(function() {
c.default.hideLoadingUI();
this.lytContent.node.children.forEach(function(e) {
0 !== e.msgData.validType && e.destroy();
});
d.default.delAllMsg();
this.refreshNum();
d.default.msgList.length > 0 && c.default.showToastUI(g.t("msg_text.not_be_deleted"), h.Global.ToastType.Warnning);
}.bind(this));
} else "getReward" === t ? r.default.validateAuth(function() {
r.default.disable_btn_sec(e, 5);
u.default.playSound("button");
var t = o._selectedItem.msgData.id, n = o._selectedItem.msgData.money;
c.default.showLoadingUI();
s.default.noticeReceiveAward(t, function() {
c.default.hideLoadingUI();
this.nodeMsgBox.active = !1;
d.default.receiveAward(t);
this.receivedAward(this._selectedItem);
cc.director.emit(h.Global.UserEvent.OpenBaoxiang, n);
}.bind(o));
}) : "getAllReward" === t && r.default.validateAuth(function() {
r.default.disable_btn_sec(e, 5);
u.default.playSound("button");
c.default.showLoadingUI();
s.default.noticeReceiveAwardAll(function() {
var e = this;
c.default.hideLoadingUI();
for (var t = [], o = 0; o < d.default.msgList.length; o++) {
var n = d.default.msgList[o];
0 === n.validType && n.money > 0 && t.push(n.money);
}
this.showGetMoneyUI(t);
this.lytContent.node.children.forEach(function(t) {
if (0 === t.msgData.validType) {
e.readed(t);
e.receivedAward(t);
}
});
d.default.receiveAllAward();
this.refreshNum();
}.bind(o));
});
};
t.prototype.onHideMsgBox = function() {
this.nodeMsgBox.active = !1;
};
t.prototype.onToggleSelected = function(e) {
this.lytContent.node.destroyAllChildren();
this.lytContent.node.removeAllChildren();
this.lytContent.enabled = !0;
"msg" === e.userData ? this._msgType = 0 : "mail" === e.userData && (this._msgType = 1);
for (var t = d.default.getMsgs(this._msgType), o = 0; o < t.length; o++) {
var n = t[o];
(c = cc.instantiate(this.nodeTemplate)).parent = this.lytContent.node;
c.msgData = n;
c.getChildByName("title").getComponent(cc.Label).string = n.title;
c.getChildByName("time").getComponent(cc.Label).string = n.publishTime;
c.getChildByName("mailOpen").active = !1;
c.getChildByName("mailClose").active = !0;
c.getChildByName("stateWait").active = !1;
c.getChildByName("stateGot").active = !1;
c.getChildByName("stateOverDue").active = !1;
for (var i = [ "stateWait", "stateGot", "stateOverDue" ], a = 0; a < i.length; a++) {
var r = c.getChildByName(i[a]);
a === n.validType ? r.active = !0 : r.active = !1;
}
n.readed && this.readed(c);
}
this.refreshNum();
this.lytContent.updateLayout();
this.lytContent.enabled = !1;
for (o = 0; o < this.lytContent.node.children.length; o++) {
var c, s = (c = this.lytContent.node.children[o]).position;
c.width = c.parent.width;
c.position = cc.v2(c.x - 1e3, c.y + c.height);
c.opacity = 0;
c.runAction(cc.sequence(cc.delayTime(.1 * o), cc.spawn(cc.moveTo(.3, s).easing(cc.easeSineOut()), cc.fadeIn(.3).easing(cc.easeSineOut())), cc.callFunc(function(e) {
e === this.lytContent.node.children[this.lytContent.node.children.length - 1] && (this.lytContent.enabled = !0);
}.bind(this))));
}
};
t.prototype.showGetMoneyUI = function(e) {
e.length > 0 && cc.director.emit(h.Global.UserEvent.OpenBaoxiang, e[0], function() {
e.splice(0, 1);
this.showGetMoneyUI(e);
}.bind(this));
};
t.prototype.readed = function(e) {
if (!e.getChildByName("mailOpen").active) {
e.getChildByName("bg").opacity = 150;
e.getChildByName("mailOpen").active = !0;
e.getChildByName("mailClose").active = !1;
}
};
t.prototype.refreshNum = function() {
var e = 0, t = d.default.getMsgs(this._msgType).length.toString();
this.lytContent.node.children.forEach(function(t) {
if (t.active) {
var o = t.msgData;
o && o.readed && e++;
}
});
this.lbReaded.string = e.toString();
this.lbTotal.string = "/" + t.toString();
};
t.prototype.receivedAward = function(e) {
e.getChildByName("stateWait").active = !1;
e.getChildByName("stateGot").active = !0;
e.getChildByName("stateOverDue").active = !1;
};
a([ v(l.default) ], t.prototype, "toggleContainer", void 0);
a([ v(cc.Widget) ], t.prototype, "wgtNode", void 0);
a([ v(cc.Layout) ], t.prototype, "lytContent", void 0);
a([ v(cc.Node) ], t.prototype, "nodeTemplate", void 0);
a([ v(cc.Node) ], t.prototype, "nodeMsgBox", void 0);
a([ v(cc.Animation) ], t.prototype, "aniMsgBox", void 0);
a([ v(cc.Label) ], t.prototype, "lbReaded", void 0);
a([ v(cc.Label) ], t.prototype, "lbTotal", void 0);
return a([ m ], t);
}(cc.Component);
o.default = b;
cc._RF.pop();
}, {
"../Common/CommonToggleContainer": "CommonToggleContainer",
"../Models/MsgCenterData": "MsgCenterData",
"../Shared/AudioManager": "AudioManager",
"../Shared/Constant": "Constant",
"../Shared/EnterSoundManager": "EnterSoundManager",
"../Shared/Global": "Global",
"../Shared/NetworkLogic": "NetworkLogic",
"../Shared/UIManager": "UIManager",
"../Shared/Utils": "Utils",
LanguageData: "LanguageData"
} ],
MsgCenterData: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "19dfe9GneZCCqvI6WMzlRfR", "MsgCenterData");
Object.defineProperty(o, "__esModule", {
value: !0
});
var n = e("../Shared/Global"), i = function() {
function e() {
this._msgList = [];
}
Object.defineProperty(e.prototype, "msgList", {
get: function() {
return this._msgList;
},
set: function(e) {
this._msgList = e;
cc.director.emit(n.Global.UserEvent.MsgListChanged);
},
enumerable: !1,
configurable: !0
});
e.prototype.getMsgs = function(e) {
for (var t = [], o = 0; o < this._msgList.length; o++) {
var n = this._msgList[o];
n.messageType === e && t.push(n);
}
return t;
};
e.prototype.getMsgData = function(e) {
for (var t = 0; t < this._msgList.length; t++) {
var o = this._msgList[t];
if (o.id === e) return o;
}
};
e.prototype.readMsg = function(e) {
for (var t = 0; t < this._msgList.length; t++) {
var o = this._msgList[t];
if (o.id === e) {
o.readed = !0;
cc.director.emit(n.Global.UserEvent.MsgListChanged);
break;
}
}
};
e.prototype.readAllMsg = function() {
for (var e = 0; e < this._msgList.length; e++) this._msgList[e].readed = !0;
cc.director.emit(n.Global.UserEvent.MsgListChanged);
};
e.prototype.delMsg = function(e) {
for (var t = 0; t < this._msgList.length; t++) if (this._msgList[t].id === e) {
this._msgList.splice(t, 1);
cc.director.emit(n.Global.UserEvent.MsgListChanged);
break;
}
};
e.prototype.delAllMsg = function() {
for (var e = 0; e < this._msgList.length; e++) if (0 !== this._msgList[e].validType) {
this._msgList.splice(e, 1);
e--;
}
cc.director.emit(n.Global.UserEvent.MsgListChanged);
};
e.prototype.receiveAward = function(e) {
for (var t = 0; t < this._msgList.length; t++) {
var o = this._msgList[t];
if (o.id === e) {
if (0 === o.validType) {
o.validType = 1;
cc.director.emit(n.Global.UserEvent.MsgListChanged);
}
break;
}
}
};
e.prototype.receiveAllAward = function() {
for (var e = 0; e < this._msgList.length; e++) {
var t = this._msgList[e];
if (0 === t.validType) {
t.validType = 1;
t.readed = !0;
}
}
cc.director.emit(n.Global.UserEvent.MsgListChanged);
};
return e;
}();
o.default = new i();
cc._RF.pop();
}, {
"../Shared/Global": "Global"
} ],
MyAgent: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "aa832jiWz5C7oYvYJpGQ0cA", "MyAgent");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/NetworkLogic"), c = e("../../Shared/Utils"), s = e("../../Shared/UIManager"), l = e("../../Models/Player"), d = e("../../Shared/SDKManager"), u = e("../../Shared/CQRCode"), p = e("../../Shared/Constant"), h = e("../../Shared/AudioManager"), f = e("../../Shared/Global"), g = cc._decorator, y = g.ccclass, m = g.property, v = e("LanguageData"), b = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.layout = null;
t.btnBind = null;
t.btnShareReceive = null;
t.btnLingQu = null;
t.playerBalanceUI = null;
t.userId = null;
t.grandTotalMoney = null;
t.returnMoney = null;
t.subordinate = null;
t.noSubordinate = null;
t.yesterdayNum = null;
t.yesyerdayNumNo = null;
t.subordinateMoney = null;
t.noSubordinateMoney = null;
t.shareMoneyLabel = null;
t.promoteTheAddress = null;
t.QRCode = null;
t.shareDetails = null;
t.ReceiveRecords = null;
t.nodeShare = null;
t.share = null;
t.codeAddress = "";
t.retMoney = 0;
t.shareMoney = 0;
return t;
}
t.prototype.onLoad = function() {
this.shareDetails.active = !1;
this.ReceiveRecords.active = !1;
this.nodeShare.active = !1;
cc.game.on(cc.game.EVENT_SHOW, this.onGameShow, this);
};
t.prototype.start = function() {
this.btnBind.node.active = !1;
this.layout.spacingY = 40;
this.userId.string = l.default.userID;
this.node.active = !1;
s.default.showLoadingUI();
r.default.agentInfo(function(e) {
console.log("=== 代理首页数据data:", e);
this.share = e.returnGeneralizeShare;
this.grandTotalMoney.string = (l.default.getPy("currencySymbol") ? l.default.getPy("currencySymbol") : v.t("currency_symbol")) + e.grandTotalMoney;
this.retMoney = e.returnMoney;
this.returnMoney.string = (l.default.getPy("currencySymbol") ? l.default.getPy("currencySymbol") : v.t("currency_symbol")) + e.returnMoney;
this.subordinate.string = e.subordinate;
this.noSubordinate.string = e.noSubordinate;
this.yesterdayNum.string = e.yesterdayNum;
this.yesyerdayNumNo.string = e.yesyerdayNumNo;
this.subordinateMoney.string = (l.default.getPy("currencySymbol") ? l.default.getPy("currencySymbol") : v.t("currency_symbol")) + e.subordinateMoney;
this.noSubordinateMoney.string = (l.default.getPy("currencySymbol") ? l.default.getPy("currencySymbol") : v.t("currency_symbol")) + e.noSubordinateMoney;
this.shareMoneyLabel.string = f.Global.currencySymbol + e.shareMoney;
this.shareMoney = e.shareMoney;
for (var t = e.returnGeneralizeShare.promoteTheAddress, o = 0, n = 0; n < 3; n++) {
o = t.indexOf("/");
t = t.substring(1 + o);
}
e.returnGeneralizeShare.promoteTheAddress = p.default.CustomChannelIcon ? p.default.CustomChannelIcon + "/" + t : e.returnGeneralizeShare.promoteTheAddress;
var i = e.returnGeneralizeShare.promoteTheAddress;
this.QRCode.string = i;
this.promoteTheAddress.string = i;
this.codeAddress = i;
this.node.active = !0;
r.default.bindWeChatInfo({}, function(e) {
s.default.hideLoadingUI();
cc.log("====查询微信状态rec:", e);
if (e) {
this.btnBind.node.getChildByName("bind_label").getComponent(cc.Label).string = v.t("BasicsJS.bind_succ");
this.btnBind.interactable = !1;
}
}.bind(this), function() {
s.default.hideLoadingUI();
cc.log("====查询微信状态错误");
}.bind(this));
var a = this.node.parent.parent.getComponent("TuiGuangLayer");
if (a.jumpBindWechat) {
cc.log("===进入绑定微信");
this.onBtnBind();
a.jumpBindWechat = !1;
}
}.bind(this), function() {
s.default.hideLoadingUI();
}.bind(this));
};
t.prototype.onBtnClick = function(e, t) {
var o = this;
h.default.playSound("button");
if ("0" === t) c.default.validateAuth(function() {
var t = {
receiveType: 0,
userId: l.default.getPy("userID")
};
c.default.disable_btn_sec(e, 5);
s.default.showLoadingUI();
r.default.agentReceivReword(t, function() {
console.log("====收到领奖 data：", t);
s.default.hideLoadingUI();
cc.director.emit(f.Global.UserEvent.OpenBaoxiang, this.shareMoney);
this.shareMoneyLabel.string = f.Global.currencySymbol + 0;
this.shareMoney = 0;
this.playerBalanceUI.getComponent("PlayerBalanceUI").pullMoney(0);
}.bind(o), function() {
console.log("===领奖错误");
}.bind(o));
}); else if ("1" === t) c.default.validateAuth(function() {
var t = {
receiveType: 1,
userId: l.default.getPy("userID")
};
s.default.showLoadingUI();
c.default.disable_btn_sec(e, 5);
r.default.agentNewReceivReword(t, function() {
s.default.hideLoadingUI();
cc.director.emit(f.Global.UserEvent.OpenBaoxiang, this.retMoney);
this.returnMoney.string = f.Global.currencySymbol + 0;
this.retMoney = 0;
this.playerBalanceUI.getComponent("PlayerBalanceUI").pullMoney(0);
}.bind(o), function() {
console.log("===领奖错误");
}.bind(o));
}); else if ("shareReceiveInfo" === t) this.shareDetails.active = !0; else if ("receiveRecord" === t) this.ReceiveRecords.active = !0; else if ("save" === t) {
s.default.showLoadingUI();
r.default.getQrcodeImage(function(e) {
s.default.hideLoadingUI();
e.qrCodePath && cc.assetManager.loadRemote(e.qrCodePath, {
ext: ".png"
}, function(e, t) {
if (!e && cc.isValid(this.nodeShare)) {
this.nodeShare.active = !0;
this.nodeShare.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(t);
this.nodeShare.getChildByName("qrCode").getComponent(u.default).string = this.QRCode.string;
c.default.saveNodeImageToAlbum(this.nodeShare, "tuiguang_share.jpg", function(e) {
e ? s.default.showToastUI(v.t("share_text.save_img_succ"), f.Global.ToastType.OK) : s.default.showTipUI(v.t("share_text.save_err"));
}.bind(this));
this.nodeShare.active = !1;
}
}.bind(this));
}.bind(this));
} else if ("copy" === t) {
c.default.copyText(this.codeAddress);
s.default.showToastUI(v.t("share_text.copy_succ"));
} else if ("qq" === t) {
s.default.showLoadingUI();
d.default.shareURL({
url: this.codeAddress,
platformType: d.default.UMSocialPlatformType.QQ,
title: this.share.shareTitle,
describe: this.share.shareText,
thumbUrl: this.share.promoteTheAddress
}, function(e) {
s.default.hideLoadingUI();
cc.log("=====qq分享param：", e);
0 !== e && "0" !== e || s.default.showTipUI(v.t("share_text.share_err_qq"));
}.bind(this));
} else if ("wx" === t) {
s.default.showLoadingUI();
d.default.shareURL({
url: this.codeAddress,
platformType: d.default.UMSocialPlatformType.WechatSession,
title: this.share.shareTitle,
describe: this.share.shareText,
thumbUrl: this.share.promoteTheAddress
}, function(e) {
s.default.hideLoadingUI();
0 !== e && "0" !== e || s.default.showTipUI(v.t("share_text.share_err_wx"));
}.bind(this));
} else if ("pyq" === t) {
s.default.showLoadingUI();
d.default.shareURL({
url: this.codeAddress,
platformType: d.default.UMSocialPlatformType.WechatTimeLine,
title: this.share.shareTitle,
describe: this.share.shareText,
thumbUrl: this.share.promoteTheAddress
}, function(e) {
s.default.hideLoadingUI();
0 !== e && "0" !== e || s.default.showTipUI(v.t("share_text.share_err_wx"));
}.bind(this));
} else if ("share" === t) {
s.default.showLoadingUI();
r.default.getQrcodeImage(function(e) {
s.default.hideLoadingUI();
e.qrCodePath && cc.assetManager.loadRemote(e.qrCodePath, {
ext: ".png"
}, function(e, t) {
if (!e && cc.isValid(this.nodeShare)) {
this.nodeShare.active = !0;
this.nodeShare.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(t);
this.nodeShare.getChildByName("qrCode").getComponent(u.default).string = this.QRCode.string;
c.default.saveNodeImage(this.nodeShare, "tuiguang_share.jpg");
c.default.share("", jsb.fileUtils.getWritablePath() + "tuiguang_share.jpg", "");
this.nodeShare.active = !1;
}
}.bind(this));
}.bind(this));
}
};
t.prototype.onBtnBind = function() {
h.default.playSound("button");
s.default.showLoadingUI();
d.default.getUserInfo(d.default.UMSocialPlatformType.WechatSession, function(e) {
cc.log("====绑定微信data：", JSON.stringify(e));
if ("{}" != JSON.stringify(e)) if (0 !== e && "0" !== e) if (1 !== e && "1" !== e) {
var t = {
accessToken: e.accessToken,
appid: p.default.WeChatAppID,
iconurl: e.iconurl,
name: e.name,
openid: e.openid,
unionid: e.unionId,
userId: l.default.getPy("userID"),
deviceFlag: ""
};
r.default.bindWeChat(t, function(e) {
cc.log("=====绑定微信成功rec:", e);
s.default.hideLoadingUI();
this.btnBind.node.getChildByName("labBind").getComponent(cc.Label).string = v.t("BasicsJS.bind_succ");
this.btnBind.interactable = !1;
s.default.showTipUI(v.t("BasicsJS.bind_succ"));
}.bind(this), function() {
s.default.hideLoadingUI();
s.default.showTipUI(v.t("share_text.share_err_wl"));
cc.log("=====绑定微信错误");
});
} else s.default.hideLoadingUI(); else {
cc.log("====绑定安卓失败");
s.default.hideLoadingUI();
s.default.showTipUI(v.t("share_text.share_err_wx"));
} else {
cc.log("====绑定苹果失败");
s.default.hideLoadingUI();
s.default.showTipUI(v.t("share_text.share_err_wx"));
}
}.bind(this));
};
t.prototype.onGameShow = function() {
s.default.hideLoadingUI();
cc.log("===切回来，重新隐藏Loading");
};
t.prototype.onDestroy = function() {
cc.game.off(cc.game.EVENT_SHOW, this.onGameShow, this);
};
a([ m(cc.Layout) ], t.prototype, "layout", void 0);
a([ m(cc.Button) ], t.prototype, "btnBind", void 0);
a([ m(cc.Button) ], t.prototype, "btnShareReceive", void 0);
a([ m(cc.Button) ], t.prototype, "btnLingQu", void 0);
a([ m(cc.Node) ], t.prototype, "playerBalanceUI", void 0);
a([ m(cc.Label) ], t.prototype, "userId", void 0);
a([ m(cc.Label) ], t.prototype, "grandTotalMoney", void 0);
a([ m(cc.Label) ], t.prototype, "returnMoney", void 0);
a([ m(cc.Label) ], t.prototype, "subordinate", void 0);
a([ m(cc.Label) ], t.prototype, "noSubordinate", void 0);
a([ m(cc.Label) ], t.prototype, "yesterdayNum", void 0);
a([ m(cc.Label) ], t.prototype, "yesyerdayNumNo", void 0);
a([ m(cc.Label) ], t.prototype, "subordinateMoney", void 0);
a([ m(cc.Label) ], t.prototype, "noSubordinateMoney", void 0);
a([ m(cc.Label) ], t.prototype, "shareMoneyLabel", void 0);
a([ m(cc.Label) ], t.prototype, "promoteTheAddress", void 0);
a([ m(u.default) ], t.prototype, "QRCode", void 0);
a([ m(cc.Node) ], t.prototype, "shareDetails", void 0);
a([ m(cc.Node) ], t.prototype, "ReceiveRecords", void 0);
a([ m(cc.Node) ], t.prototype, "nodeShare", void 0);
return a([ y ], t);
}(cc.Component);
o.default = b;
cc._RF.pop();
}, {
"../../Models/Player": "Player",
"../../Shared/AudioManager": "AudioManager",
"../../Shared/CQRCode": "CQRCode",
"../../Shared/Constant": "Constant",
"../../Shared/Global": "Global",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/SDKManager": "SDKManager",
"../../Shared/UIManager": "UIManager",
"../../Shared/Utils": "Utils",
LanguageData: "LanguageData"
} ],
NativeCallback: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "6999cDEK05LdrJV8dZFBWBx", "NativeCallback");
Object.defineProperty(o, "__esModule", {
value: !0
});
var n = e("./Global"), i = new (function() {
function e() {
this.pickImageFromAlbumCallback = null;
this.saveImageToAlbumCallback = null;
}
e.prototype.onPickImageFromAlbum = function(e) {
if (this.pickImageFromAlbumCallback) {
this.pickImageFromAlbumCallback(e);
this.pickImageFromAlbumCallback = null;
}
};
e.prototype.onSaveImageToAlbum = function(e) {
if (this.saveImageToAlbumCallback) {
this.saveImageToAlbumCallback(e);
this.saveImageToAlbumCallback = null;
}
};
e.prototype.onOrientationChanged = function(e) {
var t = cc.view.getFrameSize(), o = cc.view.getDesignResolutionSize();
if ("H" === e) {
cc.view.setOrientation(cc.macro.ORIENTATION_LANDSCAPE);
cc.view.setDesignResolutionSize(Math.max(o.width, o.height), Math.min(o.width, o.height), cc.view.getResolutionPolicy());
cc.view.setFrameSize(Math.max(t.width, t.height), Math.min(t.width, t.height));
} else if ("V" === e) {
cc.view.setOrientation(cc.macro.ORIENTATION_PORTRAIT);
cc.view.setDesignResolutionSize(Math.min(o.width, o.height), Math.max(o.width, o.height), cc.view.getResolutionPolicy());
cc.view.setFrameSize(Math.min(t.width, t.height), Math.max(t.width, t.height));
}
cc.Canvas.instance.designResolution = cc.view.getDesignResolutionSize();
cc.director.emit(n.Global.UserEvent.OrientationChanged);
};
return e;
}())();
window.NativeCallback = i;
o.default = i;
cc._RF.pop();
}, {
"./Global": "Global"
} ],
NetworkLogic: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "d613cTIe2JAn5PU+MCZUNOm", "NetworkLogic");
Object.defineProperty(o, "__esModule", {
value: !0
});
var n = e("./Network"), i = e("./UIManager"), a = e("./Global"), r = e("../Models/Player"), c = e("./AddressManager"), s = e("LanguageData"), l = function() {
function e() {
this._failedRequestsParams = [];
}
e.prototype.makeParams = function(e, t, o, n, c, l, d) {
return {
url: e,
method: t,
data: o,
ignoreEncryption: l,
requestHeader: d,
cb: function(e, t) {
if (e) {
i.default.hideLoadingUI();
c && c();
} else if ("200" !== t.code) {
i.default.hideLoadingUI();
if (t.msg && "20064" !== t.code) try {
JSON.parse(t.msg);
} catch (e) {
var o = "ErrorCode." + t.code, l = s.t(o);
o === l ? a.Global.bEnterHall && i.default.showToastUI(t.msg, a.Global.ToastType.Warnning) : i.default.showToastUI(l, a.Global.ToastType.Error);
}
if ("10086" === t.code || "9002" === t.code) {
r.default.logout();
!t.msg && i.default.showToastUI(s.t("data_req_text.login_failure"), a.Global.ToastType.Warnning);
c && c(t);
} else if ("10092" === t.code) {
cc.director.emit(a.Global.UserEvent.OpenMantain);
var d = JSON.parse(t.msg);
i.default.showConfirmUI(d.explainTxt, function() {
cc.sys.openURL(d.address);
}, s.t("customer_text.Online"), function() {}, s.t("BasicsJS.Quit_game"));
} else c && c(t);
} else n && n(t.data);
}.bind(this)
};
};
e.prototype.httpRequest = function(e, t, o, i, a, r, c) {
var s = this.makeParams(e, t, o, i, a, r, c);
n.default.httpRequest(s);
};
e.prototype.reHttpRequest = function() {
this._failedRequestsParams && this._failedRequestsParams.forEach(function(e) {
var t = c.default.getServerDomain();
t && -1 === e.url.indexOf(t) && (e.url = e.url.replace(/(http|https):\/\/(.*?)\//g, t + "/"));
n.default.httpRequest(e);
});
this._failedRequestsParams = [];
};
e.prototype.uploadHttpRequest = function(e, t, o, i, a) {
var r = this.makeParams(e, t, o, i, a, !0);
n.default.uploadRequest(r);
};
e.prototype.gameServerHttpRequest = function(e, t, o, n, i, a, r) {
var s = c.default.getServerAdress() + e;
this.httpRequest(s, t, o, n, i, a, r);
};
e.prototype.activityServerHttpRequest = function(e, t, o, n, i, a, r) {
var s = c.default.getActivityAddress() + e;
this.httpRequest(s, t, o, n, i, a, r);
};
e.prototype.getParamsStr = function(e) {
var t = "?";
for (var o in e) if (e.hasOwnProperty(o)) {
"?" !== t && (t += "&");
t += o + "=" + e[o];
}
return t;
};
e.prototype.uploadFile = function(e, t, o, n) {
var i = c.default.getServerAdress() + "/api/upload", a = {
fileName: e,
fileData: t
};
this.uploadHttpRequest(i, "POST", a, o, n);
};
e.prototype.getConfigValue = function(e, t, o) {
var n = "/api/conf/getValue" + this.getParamsStr({
type: e
});
this.gameServerHttpRequest(n, "POST", {}, t, o);
};
e.prototype.getOssAddr = function(e, t) {
this.gameServerHttpRequest("/api/conf/getConfig?type=apiOssDomain&label=url", "POST", {}, e, t);
};
e.prototype.getGameAddr = function(e, t) {
console.log("LaunchScene :: Route Step 2");
this.gameServerHttpRequest("/api/conf/getConfig?type=apiLineDomain&label=url", "POST", {}, e, t);
};
e.prototype.getClientVersion = function(e, t) {
this.gameServerHttpRequest("/api/conf/getConfig?type=appDownloadDomain&label=url", "POST", {}, e, t);
};
e.prototype.getLatestVersion = function(e, t) {
this.gameServerHttpRequest("/api/conf/getConfig?type=latestAppVersion&label=url", "POST", {}, e, t);
};
e.prototype.getAllActivityEnable = function(e, t) {
this.gameServerHttpRequest("/api/conf/getConfig?type=activityAll&label=url", "POST", {}, e, t);
};
e.prototype.userLoginConfig = function(e, t, o) {
this.gameServerHttpRequest("/api/user/userLoginConfig", "POST", e, t, o);
};
e.prototype.userGetVisitorBindingStatus = function(e, t, o) {
this.gameServerHttpRequest("/api/user/getVisitorBindingStatus", "POST", e, t, o);
};
e.prototype.userVisitorBindingDevice = function(e, t, o) {
this.gameServerHttpRequest("/api/user/visitorBindingDevice", "POST", e, t, o);
};
e.prototype.userVisitorUntieDevice = function(e, t, o) {
this.gameServerHttpRequest("/api/user/visitorUntieDevice", "POST", e, t, o);
};
e.prototype.loginVisitorCreate = function(e, t) {
this.gameServerHttpRequest("/api/user/visitorCreate", "POST", {}, e, t);
};
e.prototype.loginVisitorVerification = function(e, t, o) {
this.gameServerHttpRequest("/api/user/visitorVerification", "POST", e, t, o);
};
e.prototype.visitorUserRegistered = function(e, t, o) {
this.gameServerHttpRequest("/api/user/visitorUserRegistered", "POST", e, t, o);
};
e.prototype.loginVisitorEditData = function(e, t, o) {
this.gameServerHttpRequest("/api/user/visitorEditData", "POST", e, t, o);
};
e.prototype.visitorEditUserData = function(e, t, o) {
this.gameServerHttpRequest("/api/user/visitorEditUserData", "POST", e, t, o);
};
e.prototype.getLanguageList = function(e, t) {
this.gameServerHttpRequest("/api/languageConfig/list", "POST", {}, e, t);
};
e.prototype.getLanguageListAll = function(e, t) {
this.gameServerHttpRequest("/api/languageConfig/ListAll", "POST", {}, e, t);
};
e.prototype.phoneCode = function(e, t, o) {
var n = "/api/user/sms" + this.getParamsStr(e);
this.gameServerHttpRequest(n, "GET", {}, t, o);
};
e.prototype.vonageSms = function(e, t, o) {
var n = "/api/user/vonageSms" + this.getParamsStr(e);
this.gameServerHttpRequest(n, "GET", {}, t, o);
};
e.prototype.sendEmailCode = function(e, t, o) {
var n = "/api/user/email/sendCode" + this.getParamsStr(e);
this.gameServerHttpRequest(n, "GET", {}, t, o);
};
e.prototype.areaLanguageFlag = function(e, t) {
this.gameServerHttpRequest("/api/user/areaLanguageFlag", "POST", {}, e, t);
};
e.prototype.register = function(e, t, o) {
var n = e;
this.gameServerHttpRequest("/api/user/register", "POST", n, t, o);
};
e.prototype.login = function(e, t, o) {
var n = e;
this.gameServerHttpRequest("/api/user/login", "POST", n, t, o);
};
e.prototype.captchaInit = function(e, t, o) {
this.gameServerHttpRequest("/api/user/captcha/init", "GET", {}, t, o);
};
e.prototype.loginRecord = function(e, t) {
this.gameServerHttpRequest("/api/user/loginRecord", "POST", {}, e, t);
};
e.prototype.userInfo = function(e, t, o) {
var n = e;
this.gameServerHttpRequest("/api/user/userInfo", "POST", n, t, o);
};
e.prototype.forwardGameVerify = function(e, t, o) {
var n = e;
this.gameServerHttpRequest("/api/thirdGames/forwardGameVerify", "POST", n, t, o);
};
e.prototype.editPersonalInfo = function(e, t, o) {
var n = e;
this.gameServerHttpRequest("/api/user/editPersonalInfo", "POST", n, t, o);
};
e.prototype.editPassword = function(e, t, o, n) {
var i = {
userPwd: e,
newUserPwd: t
};
this.gameServerHttpRequest("/api/user/editPassword", "POST", i, o, n);
};
e.prototype.logout = function(e, t) {
this.gameServerHttpRequest("/api/user/logout", "POST", null, e, t);
};
e.prototype.findAmount = function(e, t) {
this.gameServerHttpRequest("/api/user/findAmount", "POST", null, e, t);
};
e.prototype.getHomeLogo = function(e, t) {
this.gameServerHttpRequest("/api/site/logo/findById", "POST", null, e, t);
};
e.prototype.siteGlobal = function(e, t) {
this.gameServerHttpRequest("/api/siteGlobal", "POST", {}, e, t);
};
e.prototype.getGameList = function(e, t, o) {
var n = "/api/home/getGameList" + (e ? this.getParamsStr({
parent: e
}) : "");
this.gameServerHttpRequest(n, "POST", {}, t, o, null, {
templateId: cc.sys.localStorage.getItem("TemplateID")
});
};
e.prototype.hotPlusGames = function(e, t, o) {
var n = "/api/home/hotPlusGames" + this.getParamsStr({
gameType: e
});
this.gameServerHttpRequest(n, "POST", {}, t, o, null, {
templateId: cc.sys.localStorage.getItem("TemplateID")
});
};
e.prototype.enterThirdGame = function(e, t, o, n) {
var i = {
id: e,
gameListId: t
};
this.gameServerHttpRequest("/api/thirdGames/forwardGame", "POST", i, o, n);
};
e.prototype.lowerScore = function(e, t, o) {
var n = {
flag: e
};
this.gameServerHttpRequest("/api/thirdGames/lowerScore", "POST", n, t, o);
};
e.prototype.chargeTypelist = function(e, t) {
this.gameServerHttpRequest("/api/charge/chargeTypelist", "POST", {}, e, t);
};
e.prototype.getNewConfigMoneyInOfficialTransfer = function(e, t, o) {
var n = {
chargeConfigId: e
};
this.gameServerHttpRequest("/api/charge/getNewConfigMoneyInOfficialTransfer", "POST", n, t, o);
};
e.prototype.getNewConfigMoneyInOnline = function(e, t, o) {
var n = {
chargeConfigId: e
};
this.gameServerHttpRequest("/api/charge/getNewConfigMoneyInOnline", "POST", n, t, o);
};
e.prototype.getNewConfigMoneyInSolidcode = function(e, t, o) {
var n = {
chargeConfigId: e
};
this.gameServerHttpRequest("/api/charge/getNewConfigMoneyInSolidcode", "POST", n, t, o);
};
e.prototype.getConfigMoneyInVip = function(e, t, o) {
var n = {
chargeConfigId: e
};
this.gameServerHttpRequest("/api/charge/getNewConfigMoneyInVip", "POST", n, t, o);
};
e.prototype.getQuickChargeConfig = function(e, t, o) {
var n = {
chargeConfigId: e
};
this.gameServerHttpRequest("/api/charge/getQuickReChargeConfig", "POST", n, t, o);
};
e.prototype.quickReCharge = function(e, t, o) {
var n = {
id: e
};
this.gameServerHttpRequest("/api/charge/quickReCharge", "POST", n, t, o);
};
e.prototype.getNewConfigMoneyInUSDT = function(e, t, o) {
var n = {
chargeConfigId: e
};
this.gameServerHttpRequest("/api/charge/getConfigMoneyInUsdt", "POST", n, t, o);
};
e.prototype.getLatestUsdtOrder = function(e, t) {
this.gameServerHttpRequest("/api/charge/getLatestUsdtOrder", "POST", {}, e, t);
};
e.prototype.cancelLatestUsdtOrder = function(e, t, o) {
var n = "/api/charge/cancelLatestUsdtOrder" + this.getParamsStr({
orderId: e
});
this.gameServerHttpRequest(n, "POST", {}, t, o);
};
e.prototype.getUsdtDecimals = function(e, t) {
this.gameServerHttpRequest("/api/charge/getUsdtDecimals", "POST", {}, e, t);
};
e.prototype.createUSDTOrder = function(e, t, o) {
var n = e;
this.gameServerHttpRequest("/api/charge/createUsdtOrder", "POST", n, t, o);
};
e.prototype.submitUSDTOrder = function(e, t, o) {
var n = e;
this.gameServerHttpRequest("/api/charge/subbmitUsdtOrderInfo", "POST", n, t, o);
};
e.prototype.getUsdtInfoConfig = function(e, t) {
this.gameServerHttpRequest("/api/charge/getUsdtInfoConfig", "POST", {}, e, t);
};
e.prototype.getUSDTPaymentURL = function(e, t) {
this.gameServerHttpRequest("/api/charge/getUSDTPaymentURL", "POST", {}, e, t);
};
e.prototype.getYinshangDiscountConfig = function(e, t) {
this.gameServerHttpRequest("/api/charge/getYinshangDiscountConfig", "POST", {}, e, t);
};
e.prototype.getYinShangDomain = function(e, t) {
this.gameServerHttpRequest("/api/conf/getValue?type=yinshangUrl", "GET", {}, e, t);
};
e.prototype.chargeByOnLine = function(e, t, o, n) {
var i = {
chargeMoney: e,
id: t
};
this.gameServerHttpRequest("/api/charge/chargeByOnLine2", "POST", i, o, n);
};
e.prototype.chargeByUnderLine = function(e, t, o) {
var n = {
bankAddress: e.bankAddress,
bankName: e.bankName,
cardNo: e.cardNo,
cardPeopleName: e.cardPeopleName,
chargeMoney: e.chargeMoney,
chargeTypeId: e.chargeTypeId,
id: e.id,
remark: e.remark,
userBankAddress: e.userBankAddress,
userBankName: e.userBankName,
userBankTransferType: e.userBankTransferType,
userCardNo: e.userCardNo,
userCardPeopleName: e.userCardPeopleName
};
this.gameServerHttpRequest("/api/charge/chargeByUnderLine", "POST", n, t, o);
};
e.prototype.chargeByUnderLineSolidcode = function(e, t, o) {
var n = {
chargeMoney: e.chargeMoney,
chargeTypeId: e.chargeTypeId,
id: e.id,
remark: e.remark,
userCardNo: e.userCardNo
};
this.gameServerHttpRequest("/api/charge/chargeByUnderLineSolidcode", "POST", n, t, o);
};
e.prototype.getRecord = function(e, t, o, n) {
var i = "/api/charge/getRecord" + this.getParamsStr({
pageNum: e,
pageSize: t
});
this.gameServerHttpRequest(i, "POST", {}, o, n);
};
e.prototype.rechargeCourseList = function(e, t, o) {
this.gameServerHttpRequest("/api/rechargeCourse/list", "POST", e, t, o);
};
e.prototype.getRecordDetail = function(e, t, o) {
var n = {
id: e
};
this.gameServerHttpRequest("/api/charge/getRecordDetail", "POST", n, t, o);
};
e.prototype.customServiceList = function(e, t) {
this.gameServerHttpRequest("/api/customService/list", "POST", {}, e, t);
};
e.prototype.receiveMessageCount = function(e, t) {
this.gameServerHttpRequest("/api/notice/receiveMessageCount", "POST", {}, e, t);
};
e.prototype.receiveMessage = function(e, t, o, n) {
var i = "/api/notice/receiveMessage" + this.getParamsStr({
pageNum: e,
pageSize: t
});
this.gameServerHttpRequest(i, "POST", {}, o, n);
};
e.prototype.noticeReaded = function(e, t, o) {
var n = {
id: e
};
this.gameServerHttpRequest("/api/notice/readed", "POST", n, t, o);
};
e.prototype.noticeAllReaded = function(e, t) {
this.gameServerHttpRequest("/api/notice/allReaded", "POST", {}, e, t);
};
e.prototype.noticeDel = function(e, t, o) {
var n = {
id: e
};
this.gameServerHttpRequest("/api/notice/del", "POST", n, t, o);
};
e.prototype.noticeDelAll = function(e, t) {
this.gameServerHttpRequest("/api/notice/delAll", "POST", {}, e, t);
};
e.prototype.noticeReceiveAward = function(e, t, o) {
var n = {
id: e
};
this.gameServerHttpRequest("/api/notice/receiveAward", "POST", n, t, o);
};
e.prototype.noticeReceiveAwardAll = function(e, t) {
this.gameServerHttpRequest("/api/notice/receiveAwardAll", "POST", {}, e, t);
};
e.prototype.checkOpen = function(e, t) {
this.gameServerHttpRequest("/api/conf/checkOpen", "POST", {}, e, t);
};
e.prototype.getYuebaoBalance = function(e, t) {
this.gameServerHttpRequest("/api/yuebao/getYuebaoBalance", "POST", {}, e, t);
};
e.prototype.getYuebaoConfig = function(e, t) {
this.gameServerHttpRequest("/api/yuebao/getYuebaoConfig", "POST", {}, e, t);
};
e.prototype.transferInYuebao = function(e, t, o) {
this.gameServerHttpRequest("/api/yuebao/transferInYuebao", "POST", e, t, o);
};
e.prototype.transferOutYuebao = function(e, t, o) {
this.gameServerHttpRequest("/api/yuebao/transferOutYuebao", "POST", e, t, o);
};
e.prototype.getYuebaoRecord = function(e, t) {
this.gameServerHttpRequest("/api/yuebao/getYuebaoRecord", "POST", {}, e, t);
};
e.prototype.ximaInfo = function(e, t) {
this.gameServerHttpRequest("/api/wash/info", "POST", {}, e, t);
};
e.prototype.ximaGameList = function(e, t) {
this.gameServerHttpRequest("/api/wash/gameList", "POST", {}, e, t);
};
e.prototype.ximaMaualWashCode = function(e, t) {
this.gameServerHttpRequest("/api/wash/maualWashCode", "POST", {}, e, t);
};
e.prototype.ximaRecord = function(e, t) {
this.gameServerHttpRequest("/api/wash/record", "POST", {}, e, t);
};
e.prototype.ximaWashCodeDetail = function(e, t, o) {
this.gameServerHttpRequest("/api/wash/washCodeDeatil", "POST", e, t, o);
};
e.prototype.ximaVippercentset = function(e, t, o) {
this.gameServerHttpRequest("/return/washcode/vippercentset/listForGameType", "POST", e, t, o);
};
e.prototype.vipShow = function(e, t) {
this.gameServerHttpRequest("/api/userVip/info", "POST", {}, e, t);
};
e.prototype.vipReceivReword = function(e, t, o) {
this.gameServerHttpRequest("/api/userVip/receivReword", "POST", e, t, o);
};
e.prototype.signInSignGet = function(e, t, o) {
this.gameServerHttpRequest("/activity/signrecord/get", "POST", e, t, o, !0);
};
e.prototype.signInSign = function(e, t, o) {
this.gameServerHttpRequest("/activity/signrecord/sign", "POST", e, t, o, !0);
};
e.prototype.signGetSignSwitch = function(e, t, o) {
this.gameServerHttpRequest("/activity/signrecord/getSignSwitch", "POST", e, t, o, !0);
};
e.prototype.bindWeChatInfo = function(e, t, o) {
this.gameServerHttpRequest("/api/wetchat/info", "POST", e, t, o);
};
e.prototype.bindWeChat = function(e, t, o) {
this.gameServerHttpRequest("/api/wetchat/bind", "POST", e, t, o);
};
e.prototype.bindWeChatBindingConfig = function(e, t, o) {
this.gameServerHttpRequest("/api/wetchat/getWechatBindingConfig", "POST", e, t, o);
};
e.prototype.bindWeChatIsEnabled = function(e, t, o) {
this.gameServerHttpRequest("/api/wetchat/isEnabled", "POST", e, t, o);
};
e.prototype.bindWeChatCreateTempSecret = function(e, t, o) {
this.gameServerHttpRequest("/api/wetchat/createTempSecret", "POST", e, t, o);
};
e.prototype.wechatNotice = function(e, t, o) {
this.gameServerHttpRequest("/api/wetchat/notice", "GET", e, t, o);
};
e.prototype.agentInfo = function(e, t) {
this.gameServerHttpRequest("/api/retrun/brokerag/newInfo", "POST", {}, e, t);
};
e.prototype.agentGetAgentRecruitment = function(e, t) {
this.gameServerHttpRequest("/api/retrun/brokerag/getAgentRecruitment", "POST", {}, e, t);
};
e.prototype.agentReceivReword = function(e, t, o) {
this.gameServerHttpRequest("/api/retrun/brokerag/receivReword", "POST", e, t, o);
};
e.prototype.agentNewReceivReword = function(e, t, o) {
this.gameServerHttpRequest("/api/retrun/brokerag/newReceivReword", "POST", e, t, o);
};
e.prototype.agentShareDetail = function(e, t, o, n, i) {
var a = "/api/retrun/brokerag/shareDeatial" + this.getParamsStr({
pageNum: t,
pageSize: o
});
this.gameServerHttpRequest(a, "POST", e, n, i);
};
e.prototype.agentReturnReceiveInfo = function(e, t, o, n, i) {
var a = "/api/retrun/brokerag/returnReceiveInfo" + this.getParamsStr({
pageNum: t,
pageSize: o
});
this.gameServerHttpRequest(a, "POST", e, n, i);
};
e.prototype.agentSubordinateInfo = function(e, t, o, n, i) {
var a = "/api/retrun/brokerag/subordinateInfo" + this.getParamsStr({
pageNum: t,
pageSize: o
});
this.gameServerHttpRequest(a, "POST", e, n, i);
};
e.prototype.agentSubordinateRecordInfo = function(e, t, o) {
this.gameServerHttpRequest("/api/retrun/brokerag/subordinateRecordInfo", "POST", e, t, o);
};
e.prototype.agentPerformance = function(e, t, o, n, i) {
var a = "/api/retrun/brokerag/performance" + this.getParamsStr({
pageNum: t,
pageSize: o
});
this.gameServerHttpRequest(a, "POST", e, n, i);
};
e.prototype.agentGameDetail = function(e, t, o, n, i) {
var a = "/api/retrun/brokerag/performance/gameDetail" + this.getParamsStr({
pageNum: t,
pageSize: o
});
this.gameServerHttpRequest(a, "POST", e, n, i);
};
e.prototype.agentDayGameReturnInfoTotal = function(e, t, o) {
this.gameServerHttpRequest("/api/retrun/brokerag/dayGameReturnInfoTotal", "POST", e, t, o);
};
e.prototype.agentGetGameCategoryAndGamePlatform = function(e, t, o) {
this.gameServerHttpRequest("/api/retrun/brokerag/getGameCategoryAndGamePlatform", "POST", e, t, o);
};
e.prototype.agentApplicationReward = function(e, t, o) {
this.gameServerHttpRequest("/api/retrun/brokerag/applicationReward", "POST", e, t, o);
};
e.prototype.agentGeneralize = function(e, t, o) {
this.gameServerHttpRequest("/api/retrun/brokerag/generalize", "POST", e, t, o);
};
e.prototype.getQrcodeImage = function(e, t) {
this.gameServerHttpRequest("/api/home/qrcodeModel", "POST", {}, e, t);
};
e.prototype.agentGetRanking = function(e, t, o) {
this.gameServerHttpRequest("/api/retrun/brokerag/getRanking", "POST", e, t, o);
};
e.prototype.agentReturnConfig = function(e, t, o) {
this.gameServerHttpRequest("/api/retrun/brokerag/returnConfig", "POST", e, t, o);
};
e.prototype.agentshareTask = function(e, t, o) {
this.gameServerHttpRequest("/api/retrun/brokerag/shareTask", "POST", e, t, o);
};
e.prototype.bankList = function(e, t, o) {
var n = "/api/user/bankList" + this.getParamsStr({
type: e
});
this.gameServerHttpRequest(n, "POST", {}, t, o);
};
e.prototype.getAllPaymentByUser = function(e, t) {
this.gameServerHttpRequest("/api/user/getAllPaymentByUser", "POST", {}, e, t);
};
e.prototype.getWithdrawList = function(e, t, o, n, i) {
var a = {
page_no: e,
page_size: t,
data_type: o
};
this.gameServerHttpRequest("/api/withdrawCash/list", "POST", a, n, i);
};
e.prototype.bindBank = function(e, t, o) {
var n = e;
this.gameServerHttpRequest("/api/user/bindBank", "POST", n, t, o);
};
e.prototype.applyPaymentout = function(e, t, o) {
var n = e;
this.gameServerHttpRequest("/api/paymentout/applyPaymentout", "POST", n, t, o);
};
e.prototype.findUserRecord = function(e, t, o, n, i, a) {
var r = {
end_time: t,
game_type: o,
page_no: 1,
page_size: 1e3,
start_time: e,
type: n
};
this.gameServerHttpRequest("/api/gameRecord/findUserRecord", "POST", r, i, a);
};
e.prototype.gameTypeList = function(e, t) {
this.gameServerHttpRequest("/api/home/gameTypeList", "POST", {}, e, t);
};
e.prototype.payTypeList = function(e, t) {
this.gameServerHttpRequest("/api/detailsFunds/coinType", "POST", {}, e, t);
};
e.prototype.currencyTypeList = function(e, t) {
this.gameServerHttpRequest("/api/currency/selectList", "POST", {}, e, t);
};
e.prototype.balanceDetailsList = function(e, t, o, n, i, a) {
var r = {
startTime: e,
endTime: t,
page_no: 1,
page_size: 1e3,
type: o,
currencyType: n
};
this.gameServerHttpRequest("/api/detailsFunds/payDetails/list", "POST", r, i, a);
};
e.prototype.noticeList = function(e, t) {
this.gameServerHttpRequest("/api/home/noticeList", "POST", {}, e, t);
};
e.prototype.getListPhoto = function(e, t) {
this.gameServerHttpRequest("/api/user/getListPhoto", "POST", {}, e, t);
};
e.prototype.editUserImage = function(e, t, o) {
var n = {
imageId: e
};
this.gameServerHttpRequest("/api/user/editUserImage", "POST", n, t, o);
};
e.prototype.getMoneyOutlimit = function(e, t) {
this.gameServerHttpRequest("/api/user/getNewMoneyOutlimit", "POST", {}, e, t);
};
e.prototype.setDrawingPassword = function(e, t, o, n) {
var i = {
oldPassword: e,
drawingPwd: t
};
this.gameServerHttpRequest("/api/user/setDrawingPassword", "POST", i, o, n);
};
e.prototype.getHotUpdateInfo = function(e, t, o) {
var n = {
deviceType: e.devieceType,
packageName: e.packageName,
versionCode: e.versionCode
};
this.gameServerHttpRequest("/api/app/upgrade/info", "POST", n, t, o);
};
e.prototype.getRandomDecimal = function(e, t) {
this.gameServerHttpRequest("/api/charge/getRandom", "POST", {}, e, t);
};
e.prototype.getFixData = function(e, t) {
this.gameServerHttpRequest("/api/app/fix/list", "POST", {}, e, t);
};
e.prototype.addYinShangAccount = function(e, t) {
this.gameServerHttpRequest("/api/charge/addNewYinShangAccount", "POST", {}, e, t);
};
e.prototype.getMusicConfig = function(e, t) {
this.gameServerHttpRequest("/musicapi/config/getMusicConfig", "POST", {}, e, t);
};
e.prototype.getPayDomainList = function(e, t) {
this.gameServerHttpRequest("/api/conf/getPayDomainList", "POST", {}, e, t);
};
e.prototype.getTemplates = function(e, t, o) {
var n = {
packages: e
};
this.gameServerHttpRequest("/api/gamebiddings/getTemplates", "POST", n, t, o);
};
e.prototype.taskAuditShare = function(e, t, o) {
this.gameServerHttpRequest("/api/task/auditShare", "POST", e, t, o);
};
e.prototype.taskList = function(e, t, o) {
this.gameServerHttpRequest("/api/task/list", "POST", e, t, o);
};
e.prototype.taskGetTypes = function(e, t, o) {
this.gameServerHttpRequest("/api/task/getTypes", "POST", e, t, o);
};
e.prototype.taskGetAward = function(e, t, o) {
this.gameServerHttpRequest("/api/task/getAward", "POST", e, t, o);
};
e.prototype.taskRecommend = function(e, t, o) {
this.gameServerHttpRequest("/api/task/recommend", "POST", e, t, o);
};
e.prototype.taskSwitch = function(e, t, o, n) {
var i = "/api/task/" + t + "/switch";
this.gameServerHttpRequest(i, "POST", e, o, n);
};
e.prototype.getBankTask = function(e, t, o) {
this.gameServerHttpRequest("/api/task/getBankTask", "POST", e, t, o);
};
e.prototype.activityTypeList = function(e, t, o) {
this.activityServerHttpRequest("/api/activity/typeList", "POST", e, t, o);
};
e.prototype.activityRecommendActivity = function(e, t, o) {
this.activityServerHttpRequest("/api/activity/recommendActivityList", "POST", e, t, o);
};
e.prototype.activityList = function(e, t, o) {
this.activityServerHttpRequest("/api/activity/list", "POST", e, t, o);
};
e.prototype.activityApplyContentActivity = function(e, t, o) {
this.activityServerHttpRequest("/api/activity/applyContentActivity", "POST", e, t, o);
};
e.prototype.activityApplyRuleActivity = function(e, t, o) {
this.activityServerHttpRequest("/api/activity/applyRuleActivity", "POST", e, t, o);
};
e.prototype.activityGetActivityById = function(e, t, o) {
var n = r.default.isLogedIn() ? "/api/activity/getActivityByIdV2" : "/api/activity/getActivityById";
this.activityServerHttpRequest(n, "POST", e, t, o);
};
e.prototype.getIdentityVerifyStatus = function(e, t, o) {
this.gameServerHttpRequest("/api/user/getIdentityVerifyStatus", "POST", e, t, o);
};
e.prototype.getUserRIVStatus = function(e, t) {
this.gameServerHttpRequest("/api/user/getUserRIVStatus", "POST", {}, e, t, !0);
};
e.prototype.postAnalytic = function(e, t, o) {
this.gameServerHttpRequest("/api/app/upgrade/special/log", "POST", e, t, o);
};
e.prototype.applyActivityList = function(e, t) {
this.activityServerHttpRequest("/api/activity/applyActivityList", "POST", {}, e, t);
};
e.prototype.applyContentActivity = function(e, t, o) {
this.activityServerHttpRequest("/api/activity/applyContentActivity", "POST", e, t, o);
};
e.prototype.applyRuleActivity = function(e, t, o) {
this.activityServerHttpRequest("/api/activity/applyRuleActivity", "POST", e, t, o);
};
e.prototype.sendPhoneCode = function(e) {
this.gameServerHttpRequest("/api/user/login/tac", "POST", e, function() {}, function() {});
};
e.prototype.ossRequest = function(e) {
return n.default.getRequest(e);
};
return e;
}();
o.default = new l();
cc._RF.pop();
}, {
"../Models/Player": "Player",
"./AddressManager": "AddressManager",
"./Global": "Global",
"./Network": "Network",
"./UIManager": "UIManager",
LanguageData: "LanguageData"
} ],
Network: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "480eeAaJsFGYZGNaPVlautn", "Network");
Object.defineProperty(o, "__esModule", {
value: !0
});
var n = e("./encryptionWay"), i = e("../Models/Player"), a = e("./Utils"), r = e("./Constant"), c = function() {
function e() {}
e.httpRequest = function(e) {
cc.log("请求URL:", e.url);
cc.sys.isBrowser ? cc.log("发送数据:", e.data) : cc.log("发送数据:", JSON.stringify(e.data));
var t = e.url, o = e.method || "GET", c = e.responseType || "json", s = i.default.getPy("token"), l = new XMLHttpRequest();
l.params = e;
l.responseType = c;
l.onload = function() {
if (200 === l.status) {
var t = null;
try {
t = l.response;
} catch (e) {
t = JSON.parse(n.default.decrypt(l.responseText));
}
"string" == typeof t && (t = JSON.parse(n.default.decrypt(t)));
cc.sys.isBrowser ? cc.log("收到数据:", t) : cc.log("收到数据:", JSON.stringify(t));
e.cb && e.cb(null, t, l.params);
} else {
cc.error("请求失败：status = " + l.status);
e.cb && e.cb("请求失败", null, l.params);
}
};
l.onerror = function() {
setTimeout(function() {
cc.error("网络错误");
e.cb && e.cb("网络错误", null, l.params);
}, 1e3);
};
l.timeout = 2e4;
l.ontimeout = function() {
cc.error("请求超时");
e.cb && e.cb("请求超时", null, l.params);
};
l.open(o, t, !0);
var d = {
"Content-Type": "application/json",
deviceModel: cc.sys.isMobile ? jsb.device.getDeviceModel() : "",
deviceFlag: a.default.getDeviceId(),
templateId: cc.sys.localStorage.getItem("TemplateID"),
deviceType: cc.sys.os === cc.sys.OS_ANDROID ? "1" : "2",
languageType: cc.sys.localStorage.getItem("CurrentLanguage")
};
for (var u in e.requestHeader) d[u] = e.requestHeader[u];
for (var u in d) l.setRequestHeader(u, d[u]);
s && l.setRequestHeader("Authorization", "Bearer_" + s);
if (e.data) {
var p = JSON.stringify(e.data);
if (p.length > 0) {
var h = p;
if (!e.ignoreEncryption) if (r.default.TestEncrypt && !i.default.isLogedIn()) {
var f = "AAAAAAAAAAAAAAAA";
h = n.default.autoTestEncrypt1(p, f, "AAAAAAAAAAAAAAAA");
} else {
f = s ? s.substring(s.length - 16) : "";
h = n.default.fourEncrypt(p, f, f);
}
l.send(h);
} else l.send();
} else l.send();
};
e.uploadRequest = function(e) {
cc.log("请求URL:", e.url);
var t = e.url, o = e.method || "GET", n = e.responseType || "json", i = e.data.fileName, r = e.data.fileData;
if (i) if (r) {
var c = new XMLHttpRequest();
c.params = e;
c.responseType = n;
c.onload = function() {
if (200 === c.status) {
cc.sys.isBrowser ? cc.log("收到数据:", c.response) : cc.log("收到数据:", JSON.stringify(c.response));
e.cb && e.cb(null, c.response, c.params);
} else {
cc.error("请求失败：status=" + c.status);
e.cb && e.cb("请求失败", null, c.params);
}
};
c.onerror = function() {
setTimeout(function() {
cc.error("网络错误");
e.cb && e.cb("网络错误", null, c.params);
}, 1e3);
};
c.timeout = 6e4;
c.ontimeout = function() {
cc.error("请求超时");
e.cb && e.cb("请求超时", null, c.params);
};
var s = "----" + a.default.randomString(), l = "\r\n--" + s + "\r\n";
l = l + 'Content-Disposition: form-data; name="file"; filename="' + i + '"\r\n';
l += "Content-Type: application/octet-stream\r\n\r\n";
l = (l += a.default.uint8Array2String(r)) + "\r\n--" + s + "--\r\n";
c.open(o, t, !0);
c.setRequestHeader("Content-Type", "multipart/form-data; boundary = " + s);
c.send(a.default.string2Uint8Array(l));
} else cc.log("上传文件数据不能为空"); else cc.log("上传文件名不能呢为空");
};
e.getRequest = function(e) {
return new Promise(function(t, o) {
var n = new XMLHttpRequest();
n.responseType = "json";
n.timeout = 2e4;
n.onload = function() {
200 === n.status ? t(n.response) : o(n.status);
};
n.onerror = function(e) {
o(e);
};
n.ontimeout = function() {
o("请求超时");
};
n.open("GET", e, !0);
n.send();
});
};
return e;
}();
o.default = c;
cc._RF.pop();
}, {
"../Models/Player": "Player",
"./Constant": "Constant",
"./Utils": "Utils",
"./encryptionWay": "encryptionWay"
} ],
NoticeData: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "e79c7Q1NvtBGr0xsjW9xdcO", "NoticeData");
Object.defineProperty(o, "__esModule", {
value: !0
});
var n = function() {
function e() {
this._bannerItems = [];
this._popUpItems = [];
}
e.prototype.setData = function(e) {
var t = this;
this._bannerItems = [];
this._popUpItems = [];
e.forEach(function(e) {
0 === e.messageType ? t._bannerItems.push(e) : 1 === e.messageType && t._popUpItems.push(e);
});
};
e.prototype.getBannerItems = function() {
return this._bannerItems.slice();
};
e.prototype.getPopUpItems = function() {
return this._popUpItems.slice();
};
return e;
}();
o.default = new n();
cc._RF.pop();
}, {} ],
NoticeUI: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "527d9bAMyNCAYcpPkg02TLT", "NoticeUI");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../Common/CommonToggleContainer"), c = e("../Shared/AudioManager"), s = e("../Models/NoticeData"), l = e("../Shared/PopWindowManager"), d = e("LanguageData"), u = cc._decorator, p = u.ccclass, h = u.property, f = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.toggleContainer = null;
t.wvContent = null;
t.htmlStr = "";
return t;
}
t.prototype.onLoad = function() {
if (!cc.find("Canvas/gameNode") || cc.find("Canvas/gameNode").active) {
this.wvContent.node.active = !1;
this.wvContent.setJavascriptInterfaceScheme("http");
this.wvContent.setOnJSCallback(function(e, t) {
cc.sys.openURL(t);
}.bind(this));
} else {
l.default.popWindowArr = [];
this.node.destroy();
}
};
t.prototype.start = function() {
this.createToggles(s.default.getPopUpItems());
};
t.prototype.onEnable = function() {
this.wvContent.node.active = !0;
this.htmlStr && this.wvContent._impl.loadHTMLString(this.htmlStr);
};
t.prototype.onDisable = function() {
this.wvContent.node.active = !1;
};
t.prototype.onBtnClick = function(e, t) {
if ("close" === t) {
c.default.playSound("close");
this.wvContent.node.active = !1;
l.default.openNext();
this.node.destroy();
}
};
t.prototype.onWebViewEvent = function() {
cc.WebView.EventType.LOADED;
};
t.prototype.onEnterAnimationEnd = function() {};
t.prototype.onExitAnimationEnd = function() {};
t.prototype.onSelectToggle = function(e) {
var t = '<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" /><style>body{background:#313B8C;color: #FFFFFF;font-size: 15px;}</style><div style="width:100%;word-break:break-all;word-wrap:break-word;">';
this.htmlStr = t + e.userData.content + "</div>";
this.wvContent._impl.loadHTMLString(t + e.userData.content + "</div>");
};
t.prototype.createToggles = function(e) {
var t = this;
e.forEach(function(e) {
1 === e.messageType && t.toggleContainer.addDefaultToggle(e.title || d.t("task_text.announcement"), e);
});
};
a([ h(r.default) ], t.prototype, "toggleContainer", void 0);
a([ h(cc.WebView) ], t.prototype, "wvContent", void 0);
return a([ p ], t);
}(cc.Component);
o.default = f;
cc._RF.pop();
}, {
"../Common/CommonToggleContainer": "CommonToggleContainer",
"../Models/NoticeData": "NoticeData",
"../Shared/AudioManager": "AudioManager",
"../Shared/PopWindowManager": "PopWindowManager",
LanguageData: "LanguageData"
} ],
OpenShare: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "4de23z9kS9Lq6Jqmbor8Z05", "OpenShare");
Object.defineProperty(o, "__esModule", {
value: !0
});
o.openShare = void 0;
var n = e("crypto-js"), i = new (function() {
function e() {
this.appKey = void 0;
this.openShareAdd = void 0;
this.key = "rL7KMDtX24bUADk7DJBzS21ZJ1EFxfxv";
this.iv = "uIlN0e9IfjJXVwub";
}
e.prototype.init = function(e, t, o) {
var n = this;
return new Promise(function(i) {
n.appKey = e;
var a = new XMLHttpRequest();
a.responseType = "json";
a.onload = function() {
if (200 === a.status) {
var e = null;
try {
e = a.response;
} catch (t) {
e = JSON.parse(o(a.responseText));
}
"string" == typeof e && (e = JSON.parse(o(e)));
cc.sys.isBrowser ? console.log("收到数据:", e) : console.log("收到数据:", JSON.stringify(e));
n.openShareAdd = e.data || "";
i(null);
} else {
console.log("OpenShare domain is not support.");
i(null);
}
};
var r = cc.path.join(t, "/api/conf/getConfig?type=openshare&label=url");
a.open("GET", r, !0);
console.log("请求URL:", r);
a.send();
});
};
e.prototype.getShareParams = function(e) {
var t = this;
if (void 0 !== this.appKey) {
var o = new XMLHttpRequest();
o.responseType = "json";
o.onload = function() {
if (200 === o.status) {
var n = null;
try {
n = o.response;
} catch (e) {
n = JSON.parse(t.decrypt(o.responseText));
}
"string" == typeof n && (n = JSON.parse(t.decrypt(n)));
cc.sys.isBrowser ? console.log("收到数据:", n) : console.log("收到数据:", JSON.stringify(n));
e(n.data.data);
} else e({
error: "Unable to retrieve OpenShare Params"
});
};
o.setRequestHeader("Content-Type", "application/json");
o.setRequestHeader("Is-Encrypt", "1");
var n, i = {
app_key: this.appKey,
device_type: cc.sys.os === cc.sys.OS_ANDROID ? "android" : "ios"
};
n = {
param: this.encrypt(JSON.stringify(i))
};
var a = JSON.stringify(n), r = cc.path.join(this.openShareAdd, "api/ProxyCode/check");
o.open("POST", r, !0);
o.send(a);
} else e({});
};
e.prototype.decrypt = function(e) {
var t = n.enc.Utf8.parse(this.iv), o = n.enc.Utf8.parse(this.key);
return n.AES.decrypt(e, o, {
iv: t,
mode: n.mode.CBC,
padding: n.pad.Pkcs7
}).toString(n.enc.Utf8);
};
e.prototype.encrypt = function(e) {
var t = n.enc.Utf8.parse(this.iv), o = n.enc.Utf8.parse(this.key);
return n.AES.encrypt(e, o, {
iv: t,
mode: n.mode.CBC,
padding: n.pad.Pkcs7
}).toString();
};
return e;
}())();
o.openShare = i;
cc._RF.pop();
}, {
"crypto-js": "crypto-js"
} ],
PackageConfig: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "65b63GjS/xP2qn5OjGSZzGi", "PackageConfig");
Object.defineProperty(o, "__esModule", {
value: !0
});
o.default = {
updatePackageName: "com.kingkong.asubopushb0612",
WebsiteSign: "prod/heng/huidu_1_guojihua",
PackageName: "灰度国际化",
PackageFlag: "newPK",
WeChatAppID: "wx4877d380770078e0",
CustomerServiceAddress: "https://temp-chat.mstatik.com/widget/standalone.html?eid=174975",
HomeUrl: "https://subo365.cc",
ShareUrl: "https://subo365.cc",
ServerAddresses: [ "https://gfhuidu.uvjmijm.com", "https://gfhuidu1.uvjmijm.com", "https://gfhuidu2.uvjmijm.com", "https://gfhuidu3.uvjmijm.com" ],
closeYxd: !0,
aliOss: "https://t11-oss.oss-cn-hangzhou.aliyuncs.com/huidu",
tengxunOss: "",
InstallSDK: 4
};
cc._RF.pop();
}, {} ],
PingTool: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "bc35bq6G0lB4JLAip/uqJpC", "PingTool");
var n = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, i = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var a = e("./Constant"), r = e("LanguageData"), c = function() {
function e() {}
e.getColorByNum = function(e) {
for (var t = [ 6e3, 3e3, 1500, 900 ], o = 0, n = 0; n < t.length; n++) e <= t[n] && (o = n);
var i = [ "(" + r.t("Signal.poor") + ")", "(" + r.t("Signal.general") + ")", "(" + r.t("Signal.smooth") + ")", "(" + r.t("Signal.speed1") + ")" ], a = cc.Color.BLACK;
a.fromHEX([ "#f40000", "#f97d1f", "#F0C02A", "#25ef68" ][o]);
return [ a, i[o], o ];
};
e.checkHttpLatency = function(e, t, o) {
void 0 === t && (t = 15e3);
void 0 === o && (o = !1);
return new Promise(function(n) {
var i = 0, r = function() {
var c = e + "/imsbase" + a.default.CheckSignalAPI, s = new XMLHttpRequest(), l = Date.now();
s.timeout = t;
var d = function() {
if (o && i < 2) {
i++;
setTimeout(r, 300);
} else n({
success: !1,
latency: 9999
});
};
s.onerror = d;
s.ontimeout = d;
s.onreadystatechange = function() {
if (4 === s.readyState) try {
if (200 === s.status) {
var e = JSON.parse(s.responseText);
if ("200" === (null == e ? void 0 : e.code)) {
cc.sys.isNative || s.abort();
var t = Math.min(Date.now() - l, 9999);
console.log("c成功xxxx");
n({
success: !0,
latency: t
});
} else d();
} else d();
} catch (e) {
d();
}
};
try {
s.open("GET", c);
s.setRequestHeader("Content-Type", "application/json");
s.send();
} catch (e) {
console.log("====checkHttpLatency错误");
console.log(e);
d();
}
};
r();
});
};
e.checkHttpsLatency = function(e, t) {
void 0 === t && (t = !1);
return new Promise(function(o) {
var n = 0, i = function() {
var a = new XMLHttpRequest(), r = Date.now();
a.timeout = 15e3;
var c = function() {
if (t && n < 2) {
n++;
setTimeout(i, 300);
} else o({
success: !1,
latency: 9999
});
};
a.onerror = c;
a.ontimeout = c;
a.onreadystatechange = function() {
if (4 === a.readyState) if (200 === a.status) {
cc.sys.isNative || a.abort();
var e = Math.min(Date.now() - r, 9999);
o({
success: !0,
latency: e
});
} else c();
};
try {
a.open("GET", e);
a.setRequestHeader("Content-Type", "application/json");
a.send();
} catch (e) {
console.log("====checkHttpsLatency错误");
console.log(e);
c();
}
};
i();
});
};
e.getBestRoute = function(e, t) {
void 0 === t && (t = !1);
return n(this, void 0, Promise, function() {
return i(this, function() {
return [ 2, new Promise(function(o) {
for (var n = [], i = 0, r = function(r) {
var c = e[r] + "/imsbase" + a.default.CheckSignalAPI, s = new XMLHttpRequest();
s.timeout = 15e3;
n.push(s);
var l = !1, d = function() {
i++;
console.log("总连接数" + e.length);
console.log("失败的次数" + i);
console.log(t);
console.log(l);
i !== e.length || l || o({
allFail: !0,
url: null,
latency: 9999
});
};
s.onerror = d;
s.ontimeout = d;
var u = Date.now();
s.onreadystatechange = function() {
if (4 === s.readyState) try {
if (200 === s.status) {
var t = JSON.parse(s.responseText);
if ("200" === (null == t ? void 0 : t.code)) {
cc.sys.isNative || s.abort();
console.log("成功");
l = !0;
var i = Math.min(Date.now() - u, 9999);
o({
allFail: !1,
url: e[r],
latency: i
});
for (var a = 0; a < n.length; a++) n[a].abort();
} else d();
} else d();
} catch (e) {
d();
}
};
s.open("GET", c);
s.setRequestHeader("Content-Type", "application/json");
s.send();
}, c = 0; c < e.length; c++) r(c);
}) ];
});
});
};
return e;
}();
o.default = c;
cc._RF.pop();
}, {
"./Constant": "Constant",
LanguageData: "LanguageData"
} ],
PlayerBalanceUI: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "f29b8ugdIJDp5aG0EVcSYPp", "PlayerBalanceUI");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../Models/Player"), c = e("../Shared/Global"), s = e("../Shared/NetworkLogic"), l = e("../Shared/UIManager"), d = e("LanguageData"), u = cc._decorator, p = u.ccclass, h = u.property, f = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.lbMoney = null;
t.nodeRefresh = null;
t._lowerScoreFinished = !0;
return t;
}
t.prototype.onLoad = function() {
cc.director.on(c.Global.UserEvent.UpdateMoney, this.pullMoney, this);
cc.director.on(c.Global.UserEvent.PlayerPyChanged, this.onPlayerPyChanged, this);
cc.director.on(c.Global.UserEvent.CloseThirdGame, this.onCloseThirdGame, this);
};
t.prototype.start = function() {
this.refreshMoney();
};
t.prototype.onDestroy = function() {
cc.director.off(c.Global.UserEvent.UpdateMoney, this.pullMoney, this);
cc.director.off(c.Global.UserEvent.PlayerPyChanged, this.onPlayerPyChanged, this);
cc.director.off(c.Global.UserEvent.CloseThirdGame, this.onCloseThirdGame, this);
};
t.prototype.onBtnClick = function(e, t) {
"refresh" === t && r.default.isLogedIn() && this.pullMoney(0);
};
t.prototype.pullMoney = function(e) {
this.nodeRefresh.runAction(cc.repeatForever(cc.sequence(cc.rotateBy(.5, 720), cc.callFunc(function() {
this._lowerScoreFinished && this.nodeRefresh.stopAllActions();
}.bind(this)))));
this._lowerScoreFinished = !1;
l.default.showLoadingUI();
s.default.lowerScore(e, function(e) {
l.default.hideLoadingUI();
this._lowerScoreFinished = !0;
r.default.setPy("money", e);
}.bind(this), function(e) {
this._lowerScoreFinished = !0;
e && l.default.showToastUI(d.t("HallUI.get_err") + "！", c.Global.ToastType.Warnning);
}.bind(this));
};
t.prototype.onPlayerPyChanged = function(e) {
"money" !== e.property && "currencySymbol" !== e.property || this.refreshMoney();
};
t.prototype.refreshMoney = function() {
this.lbMoney.string = (r.default.getPy("currencySymbol") ? r.default.getPy("currencySymbol") : "") + r.default.getPy("money");
};
t.prototype.onCloseThirdGame = function() {
this.pullMoney(1);
};
a([ h(cc.Label) ], t.prototype, "lbMoney", void 0);
a([ h(cc.Node) ], t.prototype, "nodeRefresh", void 0);
return a([ p ], t);
}(cc.Component);
o.default = f;
cc._RF.pop();
}, {
"../Models/Player": "Player",
"../Shared/Global": "Global",
"../Shared/NetworkLogic": "NetworkLogic",
"../Shared/UIManager": "UIManager",
LanguageData: "LanguageData"
} ],
PlayerCenterUI: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "8e70fRW1k5Dy4p36UxJxojS", "PlayerCenterUI");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/Utils"), c = e("../../Shared/Constant"), s = e("../../Shared/AudioManager"), l = e("../WeChatBind/WechatBindTutorial"), d = e("../../Shared/NetworkLogic"), u = e("../../Shared/UIManager"), p = cc._decorator, h = p.ccclass, f = p.property, g = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.pfbWeChatBindTutorial = null;
t.wechatBindTutorialNode = null;
t.layerBasicInfo = null;
t.layerBetRecords = null;
t.layerBalanceRecords = null;
t.wgtNode = null;
t._type2Layer = {};
t._curLayer = null;
return t;
}
t.prototype.onLoad = function() {
var e = this;
this._type2Layer = {
basicInfo: this.layerBasicInfo,
betRecords: this.layerBetRecords,
balanceRecords: this.layerBalanceRecords
};
this.wechatBindTutorialNode.active = !1;
this.layerBasicInfo.active = !1;
this.layerBetRecords.active = !1;
this.layerBalanceRecords.active = !1;
this._validateIsEnableWeChatBind(function(t) {
e.wechatBindTutorialNode.active = t;
}, !0);
};
t.prototype.start = function() {
cc.winSize.width / cc.winSize.height > 2 && (this.wgtNode.left += c.default.BangLength);
r.default.hideGameNode();
};
t.prototype.onDestroy = function() {};
t.prototype.onBtnClick = function(e, t) {
if ("back" === t) {
s.default.playSound("close");
r.default.showGameNode();
this.node.destroy();
} else if ("tutorial" === t) {
s.default.playSound("button");
cc.instantiate(this.pfbWeChatBindTutorial).getComponent(l.default).init(cc.find("Canvas"));
}
};
t.prototype.onSelectToggle = function(e) {
this.showLayer(e.userData);
};
t.prototype.showLayer = function(e) {
this._curLayer && (this._curLayer.active = !1);
this._curLayer = this._type2Layer[e];
this._curLayer.active = !0;
};
t.prototype._validateIsEnableWeChatBind = function(e, t) {
void 0 === t && (t = !1);
t && u.default.showLoadingUI();
d.default.bindWeChatIsEnabled({}, function(o) {
cc.log("====查询打开微信绑定设置:", o.isEnabled);
t && u.default.hideLoadingUI();
e(o.isEnabled);
}, function() {
cc.log("====查询打开微信绑定设置错误");
t && u.default.hideLoadingUI();
e(!1);
});
};
a([ f(cc.Prefab) ], t.prototype, "pfbWeChatBindTutorial", void 0);
a([ f(cc.Node) ], t.prototype, "wechatBindTutorialNode", void 0);
a([ f(cc.Node) ], t.prototype, "layerBasicInfo", void 0);
a([ f(cc.Node) ], t.prototype, "layerBetRecords", void 0);
a([ f(cc.Node) ], t.prototype, "layerBalanceRecords", void 0);
a([ f(cc.Widget) ], t.prototype, "wgtNode", void 0);
return a([ h ], t);
}(cc.Component);
o.default = g;
cc._RF.pop();
}, {
"../../Shared/AudioManager": "AudioManager",
"../../Shared/Constant": "Constant",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
"../../Shared/Utils": "Utils",
"../WeChatBind/WechatBindTutorial": "WechatBindTutorial"
} ],
PlayerCheck: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "f3facJRlPFC5ZSzGmN0fhN4", "PlayerCheck");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
}, r = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, c = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var s = e("../../Shared/NetworkLogic"), l = e("../../Models/Player"), d = e("../../Shared/UIManager"), u = e("../../Shared/AudioManager"), p = e("LanguageData"), h = cc._decorator, f = h.ccclass, g = h.property, y = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.sp1 = null;
t.sp2 = null;
t.subordinateReturnNumber = null;
t.touzhuNumber = null;
t.content = null;
t.item = null;
t.empty = null;
t.editBox = null;
t.zhiShuDetail = null;
t.data = null;
return t;
}
t.prototype.onLoad = function() {
this.content.getChildByName("sp0").active = !1;
this.zhiShuDetail.active = !1;
};
t.prototype.start = function() {
this.check("");
};
t.prototype.check = function(e) {
for (var t = 0; t < this.content.children.length; t++) this.content.children[t].active = !1;
var o = {
registeredDate: "",
soubUserId: e,
type: 1
};
d.default.showLoadingUI();
s.default.agentSubordinateInfo(o, 1, 9999, function(e) {
return r(this, void 0, void 0, function() {
return c(this, function() {
console.log("====收到查询数据recdata:", e);
d.default.hideLoadingUI();
this.data = e;
this.showItem(e);
return [ 2 ];
});
});
}.bind(this), function() {
console.log("=====查询数据错误");
}.bind(this));
};
t.prototype.showItem = function(e) {
this.subordinateReturnNumber.string = e.subordinateReturnNumber;
this.touzhuNumber.string = e.myTodayValidBetNumber;
if (e.subordianteDetails.length > 0) {
if (this.content.children.length > e.subordianteDetails.length) for (var t = e.subordianteDetails.length; t < this.content.children.length; t++) this.content.children[t].active = !1;
for (t = 0; t < e.subordianteDetails.length; t++) {
var o = null;
t < this.content.children.length ? o = this.content.children[t] : (o = cc.instantiate(this.item)).parent = this.content;
var n = e.subordianteDetails[t];
o.parent = this.content;
o.getChildByName("bg").getComponent(cc.Sprite).spriteFrame = t % 2 == 0 ? this.sp1 : this.sp2;
o.getChildByName("labId").getComponent(cc.Label).string = n.soubUserId;
o.getChildByName("labToday").getComponent(cc.Label).string = (l.default.getPy("currencySymbol") ? l.default.getPy("currencySymbol") : p.t("currency_symbol")) + n.todayValidBetNumber;
o.getChildByName("labTo").getComponent(cc.Label).string = (l.default.getPy("currencySymbol") ? l.default.getPy("currencySymbol") : p.t("currency_symbol")) + n.todayTotalValidBetNumber;
o.getChildByName("labTotalPerson").getComponent(cc.Label).string = n.teamTotalNumber;
o.getChildByName("labDirectPerson").getComponent(cc.Label).string = n.subordinateReturnNumber;
o.getChildByName("btnDetail").getComponent(cc.Button).clickEvents[0].customEventData = n.soubUserId;
o.active = !0;
this.empty.active = !1;
}
}
};
t.prototype.onBtnClick = function(e, t) {
return r(this, void 0, void 0, function() {
return c(this, function() {
u.default.playSound("close");
if ("cx" === t) {
console.log("====this.editBox.string:", this.editBox.string);
this.check(this.editBox.string);
} else if ("cz" === t) {
this.editBox.string = "";
this.check("");
}
return [ 2 ];
});
});
};
t.prototype.onBtnDetail = function(e, t) {
u.default.playSound("button");
var o = {
userId: t
};
d.default.showLoadingUI();
s.default.agentSubordinateRecordInfo(o, function(e) {
d.default.hideLoadingUI();
this.zhiShuDetail.active = !0;
this.zhiShuDetail.emit("ZSDETAIL", e, t);
console.log("===做二级界面re：", e);
}.bind(this), function(e) {
console.log("===代理错误err:", e);
});
};
a([ g(cc.SpriteFrame) ], t.prototype, "sp1", void 0);
a([ g(cc.SpriteFrame) ], t.prototype, "sp2", void 0);
a([ g(cc.Label) ], t.prototype, "subordinateReturnNumber", void 0);
a([ g(cc.Label) ], t.prototype, "touzhuNumber", void 0);
a([ g(cc.Node) ], t.prototype, "content", void 0);
a([ g(cc.Node) ], t.prototype, "item", void 0);
a([ g(cc.Node) ], t.prototype, "empty", void 0);
a([ g(cc.EditBox) ], t.prototype, "editBox", void 0);
a([ g(cc.Node) ], t.prototype, "zhiShuDetail", void 0);
return a([ f ], t);
}(cc.Component);
o.default = y;
cc._RF.pop();
}, {
"../../Models/Player": "Player",
"../../Shared/AudioManager": "AudioManager",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
LanguageData: "LanguageData"
} ],
Player: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "18dd3NU1StF/43s4gbJ0ied", "Player");
Object.defineProperty(o, "__esModule", {
value: !0
});
var n = e("../Shared/Global"), i = function() {
function e() {
this.token = "";
this.money = 0;
this.userID = "";
this.userFlag = 0;
this.head = "";
this.nickname = "";
this.realName = "";
this.phone = "";
this.WeChat = "";
this.QQ = "";
this.mail = "";
this.vip = 0;
this.exp = 0;
this.expNextVip = 0;
this.percentage = null;
this.isSetDrawPassword = !1;
this.visitorFillInfoTime = "";
this.currencyName = "";
this.languageFlag = "";
this.currencyRate = "";
this.languageName = "";
this.currencySymbol = "";
this.serverData = {};
this.userType = 0;
this.bankNo = 0;
this.isRealIdentityVerify = 0;
this.isRealIdentityVerifyOn = 0;
this.bankname = "";
}
e.prototype.setPy = function(e, t) {
if (this.hasOwnProperty(e)) {
var o = this[e];
this[e] = t;
cc.director.emit(n.Global.UserEvent.PlayerPyChanged, {
property: e,
old: o,
now: this[e]
});
}
"token" === e ? cc.sys.localStorage.setItem("Token", t) : "userID" === e && cc.sys.localStorage.setItem("UserID", t);
if ("serverData" === e && t) {
void 0 !== t.totalMoney && this.setPy("money", t.totalMoney);
void 0 !== t.userId && this.setPy("userID", t.userId);
void 0 !== t.userFlag && this.setPy("userFlag", t.userFlag);
void 0 !== t.imageUrl && this.setPy("head", t.imageUrl);
void 0 !== t.nickName && this.setPy("nickname", t.nickName);
void 0 !== t.realName && this.setPy("realName", t.realName);
void 0 !== t.phone && this.setPy("phone", t.phone);
void 0 !== t.wechat && this.setPy("WeChat", t.wechat);
void 0 !== t.qq && this.setPy("QQ", t.qq);
void 0 !== t.email && this.setPy("mail", t.email);
void 0 !== t.vipExp && this.setPy("exp", t.vipExp);
void 0 !== t.isTestOnline && this.setPy("userType", t.isTestOnline);
void 0 !== t.percentage && this.setPy("percentage", t.percentage);
void 0 !== t.bankNo && this.setPy("bankNo", t.bankNo);
void 0 !== t.bankname && this.setPy("bankname", t.bankname);
void 0 !== t.isRealIdentityVerify && this.setPy("isRealIdentityVerify", t.isRealIdentityVerify);
void 0 !== t.isRealIdentityVerifyOn && this.setPy("isRealIdentityVerifyOn", t.isRealIdentityVerifyOn);
if (t.currencyLanguageDto) {
this.setPy("languageFlag", t.currencyLanguageDto.languageFlag);
this.setPy("currencyName", t.currencyLanguageDto.currencyName);
this.setPy("currencyRate", t.currencyLanguageDto.currencyRate);
this.setPy("languageName", t.currencyLanguageDto.languageName);
this.setPy("currencySymbol", t.currencyLanguageDto.currencySymbol);
var i = window.i18n.languages[t.currencyLanguageDto.languageFlag];
n.Global.currencySymbol = i.currency_symbol;
}
var a = t.userVipSettingList || [];
void 0 !== a[0] && this.setPy("vip", a[0].userVip);
void 0 !== a[1] && this.setPy("expNextVip", 1e4 * a[1].totalValidBetNumber);
void 0 !== t.setDrawPassword && this.setPy("isSetDrawPassword", t.setDrawPassword);
}
};
e.prototype.getPy = function(e) {
return this[e];
};
e.prototype.logout = function() {
this.setPy("token", "");
this.setPy("money", 0);
this.setPy("userID", "");
this.setPy("userFlag", 0);
this.setPy("head", "");
this.setPy("nickname", "");
this.setPy("realName", "");
this.setPy("phone", "");
this.setPy("WeChat", "");
this.setPy("QQ", "");
this.setPy("mail", "");
this.setPy("vip", 0);
this.setPy("exp", 0);
this.setPy("expNextVip", 0);
this.setPy("expNextVip", 0);
this.setPy("setDrawPassword", !1);
this.setPy("currencyName", "");
this.setPy("currencyRate", "");
this.setPy("languageName", "");
this.setPy("currencySymbol", "");
this.setPy("isSetDrawPassword", "");
this.setPy("bankNo", 0);
this.setPy("isRealIdentityVerify", 0);
this.setPy("isRealIdentityVerifyOn", 0);
cc.director.emit(n.Global.UserEvent.PlayerLogout);
};
e.prototype.isLogedIn = function() {
return !!this.getPy("token");
};
e.prototype.isVisitor = function() {
return 2 === this.getPy("userType");
};
return e;
}();
o.default = new i();
cc._RF.pop();
}, {
"../Shared/Global": "Global"
} ],
PopWindowManager: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "48f632pkvxDo7NEXLN9g/xr", "PopWindowManager");
Object.defineProperty(o, "__esModule", {
value: !0
});
var n = function() {
function e() {
this.popWindowArr = [];
this.popNum = 0;
}
e.prototype.openNext = function() {
var e = cc.find("Canvas/gameNode").getComponent("HallUI");
if (this.popWindowArr.length > this.popNum) {
e.openChildUI(this.popWindowArr[this.popNum].pfb).popData = this.popWindowArr[this.popNum].data;
this.popNum++;
}
};
return e;
}();
o.default = new n();
cc._RF.pop();
}, {} ],
RankingListUI: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "8fb8csxFBNJNbk9OEupQF2Q", "RankingListUI");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../Common/CommonToggleContainer"), c = cc._decorator, s = c.ccclass, l = c.property, d = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.toggleContainerRankType = null;
t.toggleContainerDateType = null;
return t;
}
t.prototype.onRankTypeToggleSelected = function() {};
t.prototype.onTimeToggleSelected = function() {};
t.prototype.onBtnClick = function(e, t) {
"close" === t && this.node.destroy();
};
a([ l(r.default) ], t.prototype, "toggleContainerRankType", void 0);
a([ l(r.default) ], t.prototype, "toggleContainerDateType", void 0);
return a([ s ], t);
}(cc.Component);
o.default = d;
cc._RF.pop();
}, {
"../Common/CommonToggleContainer": "CommonToggleContainer"
} ],
RatDetails: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "d14f23fsUFK45wlcLhpz9kb", "RatDetails");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/AudioManager"), c = cc._decorator, s = c.ccclass, l = c.property, d = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.sp1 = null;
t.sp2 = null;
t.label = null;
t.content = null;
return t;
}
t.prototype.start = function() {};
t.prototype.changeRdata = function(e) {
var t = [];
for (var o in e) for (var n = e[o], i = 0; i < n.length; i++) t.push(n[i]);
return t;
};
t.prototype.updateUI = function(e) {
e = this.changeRdata(e);
if (this.content.children.length > e.length) for (var t = e.length; t < this.content.children.length; t++) this.content.children[t].active = !1;
var o = null;
for (t = 0; t < e.length; t++) {
o = this.content.children.length > t ? this.content.children[t] : cc.instantiate(this.content.children[0]);
var n = e[t].wcMoneyScope.split(",");
o.getChildByName("bg").getComponent(cc.Sprite).spriteFrame = t % 2 == 0 ? this.sp1 : this.sp2;
o.getChildByName("labRank").getComponent(cc.Label).string = n[0] + "-" + n[1];
o.getChildByName("labVip").getComponent(cc.Label).string = e[t].vipId;
o.getChildByName("labMoney").getComponent(cc.Label).string = e[t].wcPercent + "%";
o.parent = this.content;
o.active = !0;
}
};
t.prototype.onBtnClose = function() {
r.default.playSound("close");
this.node.active = !1;
};
a([ l(cc.SpriteFrame) ], t.prototype, "sp1", void 0);
a([ l(cc.SpriteFrame) ], t.prototype, "sp2", void 0);
a([ l(cc.Label) ], t.prototype, "label", void 0);
a([ l(cc.Node) ], t.prototype, "content", void 0);
return a([ s ], t);
}(cc.Component);
o.default = d;
cc._RF.pop();
}, {
"../../Shared/AudioManager": "AudioManager"
} ],
RateTips: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "1e7f1W5YDhOmYS8sm4k82RT", "RateTips");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
o.RateTips = void 0;
var r = e("../Shared/AudioManager"), c = (e("LanguageData"), cc._decorator), s = c.ccclass, l = c.property, d = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.label0 = void 0;
t.label1 = void 0;
t.label2 = void 0;
t.label3 = void 0;
t._okCallback = void 0;
return t;
}
t.prototype.onLoad = function() {};
t.prototype.showTip = function(e, t, o, n, i) {
this._okCallback = i;
this.node.active = !0;
this.label0.string = e;
this.label1.string = t;
this.label2.string = o;
this.label3.string = n;
};
t.prototype.onClicked = function(e, t) {
r.default.playSound("button");
switch (t) {
case "ok":
"function" == typeof this._okCallback && this._okCallback();
}
this._okCallback = void 0;
this.node.destroy();
};
a([ l(cc.RichText) ], t.prototype, "label0", void 0);
a([ l(cc.RichText) ], t.prototype, "label1", void 0);
a([ l(cc.RichText) ], t.prototype, "label2", void 0);
a([ l(cc.RichText) ], t.prototype, "label3", void 0);
return a([ s ], t);
}(cc.Component);
o.RateTips = d;
cc._RF.pop();
}, {
"../Shared/AudioManager": "AudioManager",
LanguageData: "LanguageData"
} ],
ReceiveAwardAni: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "7f099GglnJOkJCV4MzlqD+3", "ReceiveAwardAni");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../Shared/AudioManager"), c = e("../Shared/PopWindowManager"), s = e("../Shared/Global"), l = (e("LanguageData"), 
cc._decorator), d = l.ccclass, u = l.property, p = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.labMoney = null;
t.callbackClose = null;
return t;
}
t.prototype.start = function() {};
t.prototype.updateMoney = function(e) {
this.labMoney.string = s.Global.currencySymbol + e;
r.default.playSound("gold");
};
t.prototype.onBtnClick = function() {
r.default.playSound("close");
c.default.openNext();
this.callbackClose && this.callbackClose();
this.node.destroy();
};
a([ u(cc.Label) ], t.prototype, "labMoney", void 0);
return a([ d ], t);
}(cc.Component);
o.default = p;
cc._RF.pop();
}, {
"../Shared/AudioManager": "AudioManager",
"../Shared/Global": "Global",
"../Shared/PopWindowManager": "PopWindowManager",
LanguageData: "LanguageData"
} ],
ReceiveRecords: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "e773evtysJD+Iuppev/uO2G", "ReceiveRecords");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/NetworkLogic"), c = e("../../Models/Player"), s = e("../../Shared/UIManager"), l = e("../../Shared/AudioManager"), d = cc._decorator, u = d.ccclass, p = d.property, h = (e("LanguageData"), 
function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.nodata = null;
t.sp1 = null;
t.sp2 = null;
t.content = null;
return t;
}
t.prototype.onEnable = function() {
var e = {
receiveType: 1,
userId: c.default.getPy("userID")
};
s.default.showLoadingUI();
r.default.agentReturnReceiveInfo(e, 1, 9999, function(e) {
s.default.hideLoadingUI();
this.data = e;
var t = null;
if (e) {
this.nodata.active = !1;
if (this.content.children.length > e.length) for (var o = e.length; o < this.content.children.length; o++) this.content.children[o].active = !1;
e = e.reverse();
for (o = 0; o < e.length; o++) {
(t = this.content.children.length > o ? this.content.children[o] : cc.instantiate(this.content.children[0])).getChildByName("labName").getComponent(cc.Label).string = e[o].stlmDate;
t.getChildByName("labMoney").getComponent(cc.Label).string = c.default.getPy("currencySymbol") + e[o].reward;
t.getChildByName("sprite").getComponent(cc.Sprite).spriteFrame = o % 2 == 0 ? this.sp1 : this.sp2;
t.parent = this.content;
t.active = !0;
}
}
}.bind(this), function() {
console.log("==== 领奖记录错误");
}.bind(this));
};
t.prototype.start = function() {};
t.prototype.onBtnClick = function() {
l.default.playSound("close");
this.node.active = !1;
};
a([ p(cc.Node) ], t.prototype, "nodata", void 0);
a([ p(cc.SpriteFrame) ], t.prototype, "sp1", void 0);
a([ p(cc.SpriteFrame) ], t.prototype, "sp2", void 0);
a([ p(cc.Node) ], t.prototype, "content", void 0);
return a([ u ], t);
}(cc.Component));
o.default = h;
cc._RF.pop();
}, {
"../../Models/Player": "Player",
"../../Shared/AudioManager": "AudioManager",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
LanguageData: "LanguageData"
} ],
RechargeAgentLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "5cc525qcRBCvYGXArigrX2b", "RechargeAgentLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
}, r = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, c = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var s = e("./IRechargeLayer"), l = e("../../Shared/UIManager"), d = e("../../Shared/Global"), u = e("../../Shared/WebViewManager"), p = e("../../Shared/Utils"), h = e("../../Models/YinShangAccount"), f = e("../../Shared/NetworkLogic"), g = e("../../Models/Player"), y = e("LanguageData"), m = cc._decorator, v = m.ccclass, b = m.property, _ = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.lyContent = null;
t.nodeTemplateItem = null;
t.yinShangAccountData = null;
t.yinShangDomain = null;
return t;
}
t.prototype.onLoad = function() {};
t.prototype.start = function() {
return r(this, void 0, void 0, function() {
var e;
return c(this, function(t) {
switch (t.label) {
case 0:
e = this;
return [ 4, h.default.getYinShangAccount() ];

case 1:
e.yinShangAccountData = t.sent();
return [ 2 ];
}
});
});
};
t.prototype.onDisable = function() {
this.lyContent.node.destroyAllChildren();
};
t.prototype.onDestroy = function() {};
t.prototype.refreshData = function() {
f.default.getYinshangDiscountConfig(function(e) {
var t = this;
this.configs.forEach(function(o) {
o.offerPercentage = 100 * parseFloat(e);
t.addItem(o);
});
}.bind(this));
};
t.prototype.addItem = function(e) {
var t = cc.instantiate(this.nodeTemplateItem);
t.getChildByName("name").getComponent(cc.Label).string = e.name;
t.rechargeCfg = e;
t.parent = this.lyContent.node;
t.active = !0;
e.offerPercentage > 0 ? cc.find("iconDiscount/discount", t).getComponent(cc.Label).string = y.t("BasicsJS.gift") + e.offerPercentage + "%" : cc.find("iconDiscount", t).active = !1;
cc.assetManager.loadRemote(this.yinShangDomain + e.avatar, {
ext: ".png"
}, function(e, o) {
!e && t && t.isValid && (t.getChildByName("head").getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(o));
}.bind(this));
Array.isArray(e.logoUrls) && e.logoUrls.forEach(function(e) {
if (e) for (var o = t.getChildByName("iconNodes"), n = 0; n < o.children.length; n++) {
var i = o.children[n].name;
if (-1 != e.indexOf(i)) {
o.children[n].active = !0;
break;
}
}
});
};
t.prototype.onBtnClick = function(e, t) {
if ("recharge" === t || "chat" === t) {
if (-1 !== g.default.getPy("visitorFillInfoTime").indexOf("3") && 2 === g.default.getPy("userType")) {
var o = cc.find("Canvas/gameNode").getComponent("HallUI");
o.openChildUI(o.pfbLoginCompleteInformation);
return;
}
var n = cc.find("Canvas") && cc.find("Canvas").getComponent(u.default);
if (n && this.yinShangAccountData) {
var i = e.target.parent.rechargeCfg, a = "";
if (!this.yinShangDomain || !this.yinShangAccountData.accid || !this.yinShangAccountData.token) {
l.default.showToastUI(y.t("BasicsJS.no_login_yinshang"), d.Global.ToastType.Warnning);
return;
}
"recharge" === t ? this.yinShangDomain && (a = this.yinShangDomain + "/index.html?account=" + this.yinShangAccountData.accid + "&token=" + this.yinShangAccountData.token + "&timestap=" + new Date().getTime() + "#/chat/p2p-" + i.account.toLowerCase()) : this.yinShangDomain && (a = this.yinShangDomain + "/index.html?account=" + this.yinShangAccountData.accid + "&token=" + this.yinShangAccountData.token + "&timestap=" + new Date().getTime() + "#/session");
cc.log("银商地址：" + a);
p.default.setOrientation("V");
cc.sys.isMobile ? n.openAgentRecharge(a) : cc.sys.openURL(a);
} else this.yinShangAccountData || l.default.showToastUI(y.t("BasicsJS.no_login_yinshang"), d.Global.ToastType.Warnning);
}
};
a([ b(cc.Layout) ], t.prototype, "lyContent", void 0);
a([ b(cc.Node) ], t.prototype, "nodeTemplateItem", void 0);
return a([ v ], t);
}(s.default);
o.default = _;
cc._RF.pop();
}, {
"../../Models/Player": "Player",
"../../Models/YinShangAccount": "YinShangAccount",
"../../Shared/Global": "Global",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
"../../Shared/Utils": "Utils",
"../../Shared/WebViewManager": "WebViewManager",
"./IRechargeLayer": "IRechargeLayer",
LanguageData: "LanguageData"
} ],
RechargeCodeLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "43b6as8gWZIvJakL2diVBG8", "RechargeCodeLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("./IRechargeLayer"), c = e("../../Common/CommonToggleContainer"), s = e("../../Shared/UIManager"), l = e("../../Common/ToggleItem"), d = e("../../Shared/NetworkLogic"), u = e("./RechargeInfoUI"), p = e("../../Shared/Global"), h = e("../../Shared/Utils"), f = e("../../Models/Player"), g = e("LanguageData"), y = cc._decorator, m = y.ccclass, v = y.property, b = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.nodeTemplateFlag = null;
t.pfbRechargeInfoLayer = null;
t.toggleContainer = null;
t.toggleMoneyContainer = null;
t.spCode = null;
t.nodeClear = null;
t.ebMoney = null;
t.ebRealName = null;
t.ebAccountName = null;
t.lbMoney = null;
t.lbRate = null;
t.currencyType = null;
t.currencySymbol = null;
t.lbRemark = null;
t.svLayer = null;
t._decimal = 0;
return t;
}
t.prototype.start = function() {
d.default.getRandomDecimal(function(e) {
this._decimal = parseFloat(e);
}.bind(this));
};
t.prototype.onEnable = function() {
this.checkPlateform();
};
t.prototype.onDisable = function() {
this.toggleContainer.clear();
this.svLayer.scrollToTop();
};
t.prototype.refreshData = function() {
var e = this;
this.configs.forEach(function(t) {
var o = e.toggleContainer.addDefaultToggle(t.clientChannelName.replace("/", "\n"), t);
if (t.offerPercentage > 0) {
var n = cc.instantiate(e.nodeTemplateFlag);
n.position = cc.v2(o.node.width / 2 - 20, o.node.height / 2 - 5);
n.parent = o.node;
n.getChildByName("num").getComponent(cc.Label).string = +t.offerPercentage + "%";
}
});
};
t.prototype.onBtnClick = function(e, t) {
if ("clear" === t) this.ebMoney.string = ""; else if ("recharge" === t) {
if (-1 !== f.default.getPy("visitorFillInfoTime").indexOf("3") && 2 === f.default.getPy("userType")) {
var o = cc.find("Canvas/gameNode") && cc.find("Canvas/gameNode").getComponent("HallUI");
o.openChildUI(o.pfbLoginCompleteInformation);
return;
}
var n = this.ebMoney.node.active ? this.ebMoney.string : this.lbMoney.string;
if (this.checkMoney(n)) {
if ("" === this.ebRealName.string) {
s.default.showToastUI(g.t("BasicsJS.voucher_cannot_empty"), p.Global.ToastType.Warnning);
this.svLayer.node.convertToNodeSpaceAR(this.ebRealName.node.convertToWorldSpaceAR(cc.v2(0, 0))).y < -this.svLayer.node.height && this.svLayer.scrollToBottom(.2);
return;
}
var i = this.toggleContainer.checkedToggle.getComponent(l.default).userData;
0 !== i.languageRate && (parseFloat(n) / i.languageRate).toFixed(2);
s.default.showLoadingUI();
d.default.chargeByUnderLineSolidcode({
chargeMoney: n,
chargeTypeId: this.parentConfig.chargeTypeId,
id: i.id,
remark: this.ebAccountName.string,
userCardNo: this.ebRealName.string
}, function(e) {
s.default.hideLoadingUI();
this.ebMoney.string = "";
this.ebRealName.string = "";
this.ebAccountName.string = "";
var t = cc.instantiate(this.pfbRechargeInfoLayer).getComponent(u.default);
t.node.parent = cc.find("Canvas");
t.money = e.money;
t.order = e.orderNumber;
t.date = e.createTime;
t.type = e.type;
t.state = e.status;
}.bind(this));
} else this.svLayer.node.convertToNodeSpaceAR(this.ebMoney.node.convertToWorldSpaceAR(cc.v2(0, 0))).y < -this.svLayer.node.height && this.svLayer.scrollToBottom(.2);
} else "saveCode" === t && (this.spCode.spriteFrame ? h.default.saveUrlImageToAlbum(this.spCode.spriteFrame.getTexture().url, "recharge_code_img.png", function(e) {
e ? s.default.showToastUI(g.t("share_text.save_img_succ"), p.Global.ToastType.OK) : s.default.showTipUI(g.t("share_text.save_err"));
}.bind(this)) : s.default.showToastUI(g.t("BasicsJS.pic_loading") + "...", p.Global.ToastType.Warnning));
};
t.prototype.onSelectToggle = function(e, t) {
var o = this;
if ("type" === t) {
this.reset();
this.ebRealName.placeholder = e.userData.mustFillItem;
cc.assetManager.loadRemote(e.userData.qrCode, {
ext: ".png"
}, function(e, t) {
!e && this.node && (this.spCode.spriteFrame = new cc.SpriteFrame(t));
}.bind(this));
if (0 === e.userData.paymentLineType && 0 === e.userData.isopenMonyInput) {
this.nodeClear.active = !0;
this.ebMoney.node.active = !0;
this.lbMoney.node.active = !1;
this.ebMoney.placeholder = g.t("label_text.inPlease_enter_the") + e.userData.limitRangeDown + "~" + e.userData.limitRangeUp + g.t("BasicsJS.amount_between");
} else {
this.nodeClear.active = !1;
this.ebMoney.node.active = !1;
this.lbMoney.node.active = !0;
}
JSON.parse(e.userData.fixedAmount).forEach(function(e) {
o.toggleMoneyContainer.addDefaultToggle((f.default.getPy("currencySymbol") ? f.default.getPy("currencySymbol") : g.t("RechargeLayer.currency_symbol")) + e.QuickSelectionAmount, e);
});
this.lbRemark.string = e.userData.remark;
this.refreshRate();
} else if ("money" === t) {
var n = 0 === this.toggleContainer.checkedToggle.userData.isopenDecimalPoint ? this._decimal : 0;
if (0 === this.toggleContainer.checkedToggle.userData.isopenRepeatInput) {
this.lbMoney.string = (this.lbMoney.string ? parseInt(this.lbMoney.string) : 0) + e.userData.QuickSelectionAmount + n;
this.ebMoney.string = (this.ebMoney.string ? parseInt(this.ebMoney.string) : 0) + e.userData.QuickSelectionAmount + n;
} else {
this.lbMoney.string = e.userData.QuickSelectionAmount + n;
this.ebMoney.string = e.userData.QuickSelectionAmount + n;
}
this.refreshRate();
}
};
t.prototype.onEditMoneyEnded = function(t) {
e.prototype.onEditMoneyEnded.call(this, t);
this.refreshRate();
};
t.prototype.reset = function() {
this.toggleMoneyContainer.clear();
this.spCode.spriteFrame = null;
this.ebMoney.string = "";
this.ebRealName.string = "";
this.ebAccountName.string = "";
this.lbMoney.string = "";
};
t.prototype.checkPlateform = function() {
this.parentConfig;
};
t.prototype.refreshRate = function() {
this.currencyType.string = f.default.getPy("currencyName");
this.currencyType.node.position = cc.v2(this.currencyType.node.parent.width, this.currencyType.node.position.y);
this.currencySymbol.string = f.default.getPy("currencySymbol");
};
a([ v(cc.Node) ], t.prototype, "nodeTemplateFlag", void 0);
a([ v(cc.Prefab) ], t.prototype, "pfbRechargeInfoLayer", void 0);
a([ v(c.default) ], t.prototype, "toggleContainer", void 0);
a([ v(c.default) ], t.prototype, "toggleMoneyContainer", void 0);
a([ v(cc.Sprite) ], t.prototype, "spCode", void 0);
a([ v(cc.Node) ], t.prototype, "nodeClear", void 0);
a([ v(cc.EditBox) ], t.prototype, "ebMoney", void 0);
a([ v(cc.EditBox) ], t.prototype, "ebRealName", void 0);
a([ v(cc.EditBox) ], t.prototype, "ebAccountName", void 0);
a([ v(cc.Label) ], t.prototype, "lbMoney", void 0);
a([ v(cc.Label) ], t.prototype, "lbRate", void 0);
a([ v(cc.Label) ], t.prototype, "currencyType", void 0);
a([ v(cc.Label) ], t.prototype, "currencySymbol", void 0);
a([ v(cc.Label) ], t.prototype, "lbRemark", void 0);
a([ v(cc.ScrollView) ], t.prototype, "svLayer", void 0);
return a([ m ], t);
}(r.default);
o.default = b;
cc._RF.pop();
}, {
"../../Common/CommonToggleContainer": "CommonToggleContainer",
"../../Common/ToggleItem": "ToggleItem",
"../../Models/Player": "Player",
"../../Shared/Global": "Global",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
"../../Shared/Utils": "Utils",
"./IRechargeLayer": "IRechargeLayer",
"./RechargeInfoUI": "RechargeInfoUI",
LanguageData: "LanguageData"
} ],
RechargeCourse: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "c72af3KgZdIx6BYrlKaVATy", "RechargeCourse");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = cc._decorator, c = r.ccclass, s = r.property, l = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.pageV = null;
t.page = null;
t.content = null;
t.labText = null;
t.data = [];
return t;
}
t.prototype.start = function() {};
t.prototype.updateUI = function(e) {
var t = JSON.parse(e);
cc.log("===教程数据data:", t);
this.data = t;
this.pageV.removeAllPages();
for (var o = 0; o < t.length; o++) {
var n = cc.instantiate(this.page);
n.active = !0;
this.pageV.addPage(n);
this.pageV.setCurrentPageIndex(o);
}
this.labText.string = t[0].text;
this.pageV.scrollToPage(0, .1);
var i = function(e) {
var o = a.content.children[e];
cc.assetManager.loadRemote(t[e].url, {
ext: ".png"
}, function(e, t) {
if (!e && this.node) {
if (cc.isValid(o)) {
o.getChildByName("logo").active = !1;
o.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(t);
}
} else cc.log("===加载教程图片错误");
}.bind(a));
}, a = this;
for (o = 0; o < t.length; o++) i(o);
};
t.prototype.onBtnLeft = function() {
var e = this.pageV.getCurrentPageIndex() - 1;
cc.log("====index:", e);
e = e < 0 ? 0 : e;
this.labText.string = this.data[e].text;
this.pageV.scrollToPage(e, .3);
};
t.prototype.onBtnRight = function() {
var e = this.pageV.getCurrentPageIndex() + 1;
e > this.pageV.getPages().length - 1 && (e = this.pageV.getPages().length - 1);
this.labText.string = this.data[e].text;
this.pageV.scrollToPage(e, .3);
};
t.prototype.onBtnClose = function() {
this.node.active = !1;
};
a([ s(cc.PageView) ], t.prototype, "pageV", void 0);
a([ s(cc.Node) ], t.prototype, "page", void 0);
a([ s(cc.Node) ], t.prototype, "content", void 0);
a([ s(cc.Label) ], t.prototype, "labText", void 0);
return a([ c ], t);
}(cc.Component);
o.default = l;
cc._RF.pop();
}, {} ],
RechargeInfoUI: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "8824bHy3dFMxqX9AFO1D6Mm", "RechargeInfoUI");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/AudioManager"), c = e("../../Shared/Utils"), s = e("../../Shared/UIManager"), l = e("../../Shared/Global"), d = e("../HallUI"), u = e("LanguageData"), p = cc._decorator, h = p.ccclass, f = p.property, g = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.pfbCustomerServiceUI = null;
t.lbMoney = null;
t.lbOrder = null;
t.lbDate = null;
t.lbType = null;
t.lbState = null;
t._money = 0;
t._order = "";
t._date = "";
t._type = "";
t._state = 0;
return t;
}
Object.defineProperty(t.prototype, "money", {
get: function() {
return this._money;
},
set: function(e) {
this._money = e;
this.lbMoney.string = "+" + this._money;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "order", {
get: function() {
return this._order;
},
set: function(e) {
this._order = e;
this.lbOrder.string = u.t("pre_details_text.order") + "：" + this._order;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "date", {
get: function() {
return this._date;
},
set: function(e) {
this._date = e;
this.lbDate.string = u.t("pre_details_text.order") + "：" + this._date;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "type", {
get: function() {
return this._type;
},
set: function(e) {
this._type = e;
this.lbType.string = u.t("pre_details_text.czType") + "：" + (this._type || u.t("pre_details_text.transfer"));
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "state", {
get: function() {
return this._state;
},
set: function(e) {
var t = [ u.t("pre_details_text.succ"), u.t("pre_details_text.error"), u.t("pre_details_text.audit"), u.t("pre_details_text.czSucc") ], o = [ cc.color(74, 190, 139), cc.color(190, 74, 74), cc.color(190, 190, 74), cc.color(190, 74, 74) ];
this._state = e;
this.lbState.string = t[this._state];
this.lbState.node.color = o[this._state];
},
enumerable: !1,
configurable: !0
});
t.prototype.onBtnClick = function(e, t) {
if ("close" === t) {
r.default.playSound("close");
this.node.destroy();
} else if ("customer" === t) {
var o = cc.find("Canvas/gameNode") && cc.find("Canvas/gameNode").getComponent(d.default);
o && o.openChildUI(this.pfbCustomerServiceUI);
this.node.destroy();
} else if ("copy" === t) {
c.default.copyText(this._order);
s.default.showToastUI(u.t("pre_details_text.copy_succ"), l.Global.ToastType.OK);
}
};
a([ f(cc.Prefab) ], t.prototype, "pfbCustomerServiceUI", void 0);
a([ f(cc.Label) ], t.prototype, "lbMoney", void 0);
a([ f(cc.Label) ], t.prototype, "lbOrder", void 0);
a([ f(cc.Label) ], t.prototype, "lbDate", void 0);
a([ f(cc.Label) ], t.prototype, "lbType", void 0);
a([ f(cc.Label) ], t.prototype, "lbState", void 0);
a([ f(cc.Float) ], t.prototype, "_money", void 0);
a([ f({
type: cc.Flags
}) ], t.prototype, "money", null);
a([ f(cc.String) ], t.prototype, "_order", void 0);
a([ f({
type: cc.String
}) ], t.prototype, "order", null);
a([ f(cc.String) ], t.prototype, "_date", void 0);
a([ f({
type: cc.String
}) ], t.prototype, "date", null);
a([ f(cc.String) ], t.prototype, "_type", void 0);
a([ f({
type: cc.String
}) ], t.prototype, "type", null);
a([ f(cc.Integer) ], t.prototype, "_state", void 0);
a([ f({
type: cc.Integer
}) ], t.prototype, "state", null);
return a([ h ], t);
}(cc.Component);
o.default = g;
cc._RF.pop();
}, {
"../../Shared/AudioManager": "AudioManager",
"../../Shared/Global": "Global",
"../../Shared/UIManager": "UIManager",
"../../Shared/Utils": "Utils",
"../HallUI": "HallUI",
LanguageData: "LanguageData"
} ],
RechargeOfflineLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "840f9DJIx1PILSJyk+jyLx6", "RechargeOfflineLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("./IRechargeLayer"), c = e("../../Common/CommonToggleContainer"), s = e("../../Shared/UIManager"), l = e("../../Shared/NetworkLogic"), d = e("../../Common/ToggleItem"), u = e("./RechargeInfoUI"), p = e("../../Shared/Global"), h = e("../../Shared/Utils"), f = e("../../Models/Player"), g = e("LanguageData"), y = cc._decorator, m = y.ccclass, v = y.property, b = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.nodeTemplateFlag = null;
t.pfbRechargeInfoLayer = null;
t.toggleContainer = null;
t.toggleMoneyContainer = null;
t.spIcon = null;
t.lbAccountID = null;
t.lbAccountName = null;
t.lbAccountAddress = null;
t.nodeClear = null;
t.ebMoney = null;
t.ebRealName = null;
t.ebAccountName = null;
t.lbMoney = null;
t.lbDescribeCardNum = null;
t.lbDescribeName = null;
t.lbDescribeAddress = null;
t.lbRate = null;
t.currencyType = null;
t.currencySymbol = null;
t.lbRemark = null;
t.svLayer = null;
t._decimal = 0;
return t;
}
t.prototype.onLoad = function() {};
t.prototype.start = function() {
l.default.getRandomDecimal(function(e) {
this._decimal = parseFloat(e);
}.bind(this));
};
t.prototype.onEnable = function() {
this.checkPlateform();
};
t.prototype.onDisable = function() {
this.toggleContainer.clear();
this.svLayer.scrollToTop();
};
t.prototype.onDestroy = function() {};
t.prototype.refreshData = function() {
var e = this;
this.configs.forEach(function(t) {
var o = e.toggleContainer.addDefaultToggle(t.clientChannelName.replace("/", "\n"), t);
if (t.offerPercentage > 0) {
var n = cc.instantiate(e.nodeTemplateFlag);
n.position = cc.v2(o.node.width / 2 - 20, o.node.height / 2 - 5);
n.parent = o.node;
n.getChildByName("num").getComponent(cc.Label).string = g.t("BasicsJS.gift") + t.offerPercentage + "%";
}
});
};
t.prototype.onBtnClick = function(e, t) {
if ("clear" === t) this.ebMoney.string = ""; else if ("recharege" === t) {
if (-1 !== f.default.getPy("visitorFillInfoTime").indexOf("3") && 2 === f.default.getPy("userType")) {
var o = cc.find("Canvas/gameNode").getComponent("HallUI");
o.openChildUI(o.pfbLoginCompleteInformation);
return;
}
var n = this.ebMoney.node.active ? this.ebMoney.string : this.lbMoney.string;
if (this.checkMoney(n)) {
if ("" === this.ebRealName.string) {
s.default.showToastUI(g.t("BasicsJS.voucher_cannot_empty"), p.Global.ToastType.Warnning);
this.svLayer.node.convertToNodeSpaceAR(this.ebRealName.node.convertToWorldSpaceAR(cc.v2(0, 0))).y < -this.svLayer.node.height && this.svLayer.scrollToBottom(.2);
return;
}
var i = this.toggleContainer.checkedToggle.getComponent(d.default).userData;
0 !== i.languageRate && (parseFloat(n) / i.languageRate).toFixed(2);
s.default.showLoadingUI();
l.default.chargeByUnderLine({
bankAddress: i.bankAddress,
bankName: i.name,
cardNo: i.cardNo,
cardPeopleName: i.bankPeopleName,
chargeMoney: n,
chargeTypeId: this.parentConfig.chargeTypeId,
id: i.id,
remark: this.ebAccountName.string,
userBankAddress: "",
userBankName: "",
userBankTransferType: "",
userCardNo: this.ebRealName.string,
userCardPeopleName: this.ebRealName.string
}, function(e) {
s.default.hideLoadingUI();
this.ebMoney.string = "";
this.ebRealName.string = "";
this.ebAccountName.string = "";
var t = cc.instantiate(this.pfbRechargeInfoLayer).getComponent(u.default);
t.node.parent = cc.find("Canvas");
t.money = e.money;
t.order = e.orderNumber;
t.date = e.createTime;
t.type = e.type;
t.state = e.status;
}.bind(this));
} else this.svLayer.node.convertToNodeSpaceAR(this.ebMoney.node.convertToWorldSpaceAR(cc.v2(0, 0))).y < -this.svLayer.node.height && this.svLayer.scrollToBottom(.2);
} else if ("copyNum" === t) {
h.default.copyText(this.lbAccountID.string);
s.default.showToastUI(g.t("HallUI.copy_succ"), p.Global.ToastType.OK);
} else if ("copyName" === t) {
h.default.copyText(this.lbAccountName.string);
s.default.showToastUI(g.t("HallUI.copy_succ"), p.Global.ToastType.OK);
}
};
t.prototype.onSelectToggle = function(e, t) {
var o = this;
if ("type" === t) {
this.reset();
this.lbAccountID.string = e.userData.cardNo;
this.lbAccountName.string = e.userData.bankPeopleName;
this.ebRealName.placeholder = e.userData.mustFillItem;
-1 !== this.parentConfig.type.indexOf(g.t("BasicsJS.card")) ? this.lbAccountAddress.string = e.userData.bankAddress : this.lbAccountAddress.string = g.t("BasicsJS.note_info");
if (0 === e.userData.paymentLineType && 0 === e.userData.isopenMonyInput) {
this.nodeClear.active = !0;
this.ebMoney.node.active = !0;
this.lbMoney.node.active = !1;
this.ebMoney.placeholder = g.t("label_text.inPlease_enter_the") + e.userData.limitRangeDown + "~" + e.userData.limitRangeUp + g.t("BasicsJS.amount_between");
} else {
this.nodeClear.active = !1;
this.ebMoney.node.active = !1;
this.lbMoney.node.active = !0;
}
JSON.parse(e.userData.fixedAmount).forEach(function(e) {
o.toggleMoneyContainer.addDefaultToggle((f.default.getPy("currencySymbol") ? f.default.getPy("currencySymbol") : g.t("currency_symbol")) + e.QuickSelectionAmount, e);
});
this.lbRemark.string = e.userData.remark;
this.refreshRate();
} else if ("money" === t) {
var n = 0 === this.toggleContainer.checkedToggle.userData.isopenDecimalPoint ? this._decimal : 0;
if (0 === this.toggleContainer.checkedToggle.userData.isopenRepeatInput) {
this.lbMoney.string = (this.lbMoney.string ? parseInt(this.lbMoney.string) : 0) + e.userData.QuickSelectionAmount + n;
this.ebMoney.string = (this.ebMoney.string ? parseInt(this.ebMoney.string) : 0) + e.userData.QuickSelectionAmount + n;
} else {
this.lbMoney.string = e.userData.QuickSelectionAmount + n;
this.ebMoney.string = e.userData.QuickSelectionAmount + n;
}
this.refreshRate();
}
};
t.prototype.onEditMoneyEnded = function(t) {
e.prototype.onEditMoneyEnded.call(this, t);
this.refreshRate();
};
t.prototype.reset = function() {
this.toggleMoneyContainer.clear();
this.ebMoney.string = "";
this.ebRealName.string = "";
this.ebAccountName.string = "";
this.lbMoney.string = "";
this.lbAccountID.string = "";
this.lbAccountName.string = "";
this.lbAccountAddress.string = "";
};
t.prototype.checkPlateform = function() {
if (this.parentConfig) {
cc.assetManager.loadRemote(this.parentConfig.icon, function(e, t) {
!e && this.node && (this.spIcon.spriteFrame = new cc.SpriteFrame(t));
}.bind(this));
if (-1 !== this.parentConfig.type.indexOf(g.t("BasicsJS.card"))) {
this.lbDescribeCardNum.string = g.t("BasicsJS.credit_cord");
this.lbDescribeName.string = g.t("RechargeLayer.payee");
this.lbDescribeAddress.string = g.t("RechargeLayer.where");
} else {
this.lbDescribeCardNum.string = this.parentConfig.type + g.t("TuiGuangLayer.account");
this.lbDescribeName.string = this.parentConfig.type + g.t("general.name");
this.lbDescribeAddress.string = g.t("WithdrawLayer.warm_prompt");
}
}
};
t.prototype.refreshRate = function() {
this.currencyType.string = f.default.getPy("currencyName");
this.currencyType.node.position = cc.v2(this.currencyType.node.parent.width, this.currencyType.node.position.y);
this.currencySymbol.string = f.default.getPy("currencySymbol");
};
a([ v(cc.Node) ], t.prototype, "nodeTemplateFlag", void 0);
a([ v(cc.Prefab) ], t.prototype, "pfbRechargeInfoLayer", void 0);
a([ v(c.default) ], t.prototype, "toggleContainer", void 0);
a([ v(c.default) ], t.prototype, "toggleMoneyContainer", void 0);
a([ v(cc.Sprite) ], t.prototype, "spIcon", void 0);
a([ v(cc.Label) ], t.prototype, "lbAccountID", void 0);
a([ v(cc.Label) ], t.prototype, "lbAccountName", void 0);
a([ v(cc.Label) ], t.prototype, "lbAccountAddress", void 0);
a([ v(cc.Node) ], t.prototype, "nodeClear", void 0);
a([ v(cc.EditBox) ], t.prototype, "ebMoney", void 0);
a([ v(cc.EditBox) ], t.prototype, "ebRealName", void 0);
a([ v(cc.EditBox) ], t.prototype, "ebAccountName", void 0);
a([ v(cc.Label) ], t.prototype, "lbMoney", void 0);
a([ v(cc.Label) ], t.prototype, "lbDescribeCardNum", void 0);
a([ v(cc.Label) ], t.prototype, "lbDescribeName", void 0);
a([ v(cc.Label) ], t.prototype, "lbDescribeAddress", void 0);
a([ v(cc.Label) ], t.prototype, "lbRate", void 0);
a([ v(cc.Label) ], t.prototype, "currencyType", void 0);
a([ v(cc.Label) ], t.prototype, "currencySymbol", void 0);
a([ v(cc.Label) ], t.prototype, "lbRemark", void 0);
a([ v(cc.ScrollView) ], t.prototype, "svLayer", void 0);
return a([ m ], t);
}(r.default);
o.default = b;
cc._RF.pop();
}, {
"../../Common/CommonToggleContainer": "CommonToggleContainer",
"../../Common/ToggleItem": "ToggleItem",
"../../Models/Player": "Player",
"../../Shared/Global": "Global",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
"../../Shared/Utils": "Utils",
"./IRechargeLayer": "IRechargeLayer",
"./RechargeInfoUI": "RechargeInfoUI",
LanguageData: "LanguageData"
} ],
RechargeOnlineLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "59c2c2tZixBGr+e/RgptrZp", "RechargeOnlineLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("./IRechargeLayer"), c = e("../../Common/CommonToggleContainer"), s = e("../../Shared/UIManager"), l = e("../../Shared/NetworkLogic"), d = e("../../Common/ToggleItem"), u = e("../../Shared/SDKManager"), p = e("../../Shared/Global"), h = e("../../Models/Player"), f = e("../../Shared/CQRCode"), g = e("LanguageData"), y = cc._decorator, m = y.ccclass, v = y.property, b = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.nodeTemplateFlag = null;
t.toggleContainer = null;
t.toggleMoneyContainer = null;
t.nodeClear = null;
t.ebMoney = null;
t.lbMoney = null;
t.lbRate = null;
t.currencyType = null;
t.currencySymbol = null;
t.lbRemark = null;
t.svLayer = null;
t.qrLayer = null;
t.cqrCode = null;
t._decimal = 0;
return t;
}
t.prototype.onLoad = function() {};
t.prototype.start = function() {
var e = this;
l.default.getRandomDecimal(function(e) {
this._decimal = parseFloat(e);
}.bind(this));
this.qrLayer.active = !1;
this.qrLayer.on(cc.Node.EventType.TOUCH_END, function() {
e.qrLayer.active = !1;
});
};
t.prototype.onDisable = function() {
this.toggleContainer.clear();
this.svLayer.scrollToTop();
};
t.prototype.onDestroy = function() {};
t.prototype.refreshData = function() {
var e = this;
this.configs.forEach(function(t) {
var o = e.toggleContainer.addDefaultToggle(t.clientChannelName.replace("/", "\n"), t);
if (t.offerPercentage > 0) {
var n = cc.instantiate(e.nodeTemplateFlag);
n.position = cc.v2(o.node.width / 2 - 20, o.node.height / 2 - 5);
n.parent = o.node;
n.getChildByName("num").getComponent(cc.Label).string = g.t("BasicsJS.gift") + t.offerPercentage + "%";
}
});
};
t.prototype.onBtnClick = function(e, t) {
if ("clear" === t) this.ebMoney.string = ""; else if ("recharege" === t) {
if (-1 !== h.default.getPy("visitorFillInfoTime").indexOf("3") && 2 === h.default.getPy("userType")) {
var o = cc.find("Canvas/gameNode").getComponent("HallUI");
o.openChildUI(o.pfbLoginCompleteInformation);
return;
}
var n = this.ebMoney.node.active ? this.ebMoney.string : this.lbMoney.string;
if (this.checkMoney(n)) {
var i = this.toggleContainer.checkedToggle.getComponent(d.default).userData;
0 !== i.languageRate && (parseFloat(n) / i.languageRate).toFixed(2);
s.default.showLoadingUI();
l.default.chargeByOnLine(n, i.id, function(e) {
s.default.hideLoadingUI();
if ("4001" === e.typeCode) {
cc.sys.openURL(e.url);
cc.director.emit(p.Global.UserEvent.OpenThirdPayment);
} else if ("4002" === e.typeCode) this.replaceToFastUrl(e.url, function(e) {
cc.sys.openURL(e);
cc.director.emit(p.Global.UserEvent.OpenThirdPayment);
}.bind(this)); else if ("5001" === e.typeCode) {
cc.director.emit(p.Global.UserEvent.OpenThirdPayment);
u.default.alipay(e.url, function() {}.bind(this));
} else if ("6001" === e.typeCode) {
this.cqrCode.string = e.url;
this.qrLayer.active = !0;
}
}.bind(this));
} else this.svLayer.node.convertToNodeSpaceAR(this.ebMoney.node.convertToWorldSpaceAR(cc.v2(0, 0))).y < -this.svLayer.node.height && this.svLayer.scrollToBottom(.2);
} else "qr_close" === t && (this.qrLayer.active = !1);
};
t.prototype.onSelectToggle = function(e, t) {
var o = this;
if ("type" === t) {
this.reset();
if (0 === e.userData.paymentLineType && 0 === e.userData.isopenMonyInput) {
this.nodeClear.active = !0;
this.ebMoney.node.active = !0;
this.lbMoney.node.active = !1;
this.ebMoney.placeholder = g.t("label_text.inPlease_enter_the") + e.userData.limitRangeDown + "~" + e.userData.limitRangeUp + g.t("BasicsJS.amount_between");
} else {
this.nodeClear.active = !1;
this.ebMoney.node.active = !1;
this.lbMoney.node.active = !0;
}
JSON.parse(e.userData.fixedAmount).forEach(function(e) {
o.toggleMoneyContainer.addDefaultToggle((h.default.getPy("currencySymbol") ? h.default.getPy("currencySymbol") : g.t("RechargeLayer.currency_symbol")) + e.QuickSelectionAmount, e);
});
this.lbRemark.string = e.userData.remark;
this.refreshRate();
} else if ("money" === t) {
var n = 0 === this.toggleContainer.checkedToggle.userData.isopenDecimalPoint ? this._decimal : 0;
if (0 === this.toggleContainer.checkedToggle.userData.isopenRepeatInput) {
this.lbMoney.string = (this.lbMoney.string ? parseInt(this.lbMoney.string) : 0) + e.userData.QuickSelectionAmount + n;
this.ebMoney.string = (this.ebMoney.string ? parseInt(this.ebMoney.string) : 0) + e.userData.QuickSelectionAmount + n;
} else {
this.lbMoney.string = e.userData.QuickSelectionAmount + n;
this.ebMoney.string = e.userData.QuickSelectionAmount + n;
}
this.refreshRate();
}
};
t.prototype.onEditMoneyEnded = function(t) {
e.prototype.onEditMoneyEnded.call(this, t);
this.refreshRate();
};
t.prototype.reset = function() {
this.toggleMoneyContainer.clear();
this.ebMoney.string = "";
this.lbMoney.string = "";
};
t.prototype.replaceToFastUrl = function(e, t) {
s.default.showLoadingUI();
l.default.getPayDomainList(function(o) {
var n = !1, i = o.split(","), a = 0, r = i.length, c = function(e) {
if (!n) {
s.default.hideLoadingUI();
n = !0;
t(e);
}
};
i.forEach(function(t) {
var o = new XMLHttpRequest();
o.domain = t;
o.responseType = "json";
o.onload = function() {
c(o.domain + e.substring(e.indexOf("/", 10)));
};
o.onerror = function() {
++a >= r && c(e);
};
o.timeout = 2e4;
o.ontimeout = function() {
c(e);
};
o.open("GET", t + "/ims/api/cheakDomain", !0);
o.send();
});
}.bind(this));
};
t.prototype.refreshRate = function() {
this.currencyType.string = h.default.getPy("currencyName");
this.currencyType.node.position = cc.v2(this.currencyType.node.parent.width, this.currencyType.node.position.y);
this.currencySymbol.string = h.default.getPy("currencySymbol");
};
a([ v(cc.Node) ], t.prototype, "nodeTemplateFlag", void 0);
a([ v(c.default) ], t.prototype, "toggleContainer", void 0);
a([ v(c.default) ], t.prototype, "toggleMoneyContainer", void 0);
a([ v(cc.Node) ], t.prototype, "nodeClear", void 0);
a([ v(cc.EditBox) ], t.prototype, "ebMoney", void 0);
a([ v(cc.Label) ], t.prototype, "lbMoney", void 0);
a([ v(cc.Label) ], t.prototype, "lbRate", void 0);
a([ v(cc.Label) ], t.prototype, "currencyType", void 0);
a([ v(cc.Label) ], t.prototype, "currencySymbol", void 0);
a([ v(cc.Label) ], t.prototype, "lbRemark", void 0);
a([ v(cc.ScrollView) ], t.prototype, "svLayer", void 0);
a([ v(cc.Node) ], t.prototype, "qrLayer", void 0);
a([ v(f.default) ], t.prototype, "cqrCode", void 0);
return a([ m ], t);
}(r.default);
o.default = b;
cc._RF.pop();
}, {
"../../Common/CommonToggleContainer": "CommonToggleContainer",
"../../Common/ToggleItem": "ToggleItem",
"../../Models/Player": "Player",
"../../Shared/CQRCode": "CQRCode",
"../../Shared/Global": "Global",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/SDKManager": "SDKManager",
"../../Shared/UIManager": "UIManager",
"./IRechargeLayer": "IRechargeLayer",
LanguageData: "LanguageData"
} ],
RechargeQuickLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "f0350bKMIJIY4Q2Ec0wOawR", "RechargeQuickLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/NetworkLogic"), c = e("./IRechargeLayer"), s = cc._decorator, l = s.ccclass, d = s.property, u = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.labName = null;
t.lyContentSeller = null;
t.nodeTemplateItemSeller = null;
t.labReminderAll = null;
t._appURL = "";
t._sellerCfg = null;
return t;
}
t.prototype.start = function() {
console.log("=====parentConfigs:" + JSON.stringify(this.parentConfig));
console.log("=====Configs:" + JSON.stringify(this.configs));
};
t.prototype.onDisable = function() {
this.lyContentSeller.node.destroyAllChildren();
};
t.prototype.refreshData = function() {
var e = this;
this.configs.forEach(function(t) {
e.addSellerItem(t);
});
this.lyContentSeller.updateLayout();
this.labReminderAll.node.active = this.configs.length > 0;
};
t.prototype.addSellerItem = function(e) {
var t = cc.instantiate(this.nodeTemplateItemSeller);
t.getChildByName("name").getComponent(cc.Label).string = e.clientChannelName;
t.rechargeCfg = e;
t.parent = this.lyContentSeller.node;
t.active = !0;
};
t.prototype.onBtnClick = function(e) {
this._sellerCfg = e.target.parent.rechargeCfg;
var t = this._sellerCfg.quickRechargeUrl;
r.default.quickReCharge(this._sellerCfg.id, function() {
console.log("===请求成功");
-1 == t.indexOf("http") ? cc.sys.openURL("https:/" + t) : cc.sys.openURL(t);
}, function() {
console.log("===请求失败");
});
};
a([ d(cc.Label) ], t.prototype, "labName", void 0);
a([ d(cc.Layout) ], t.prototype, "lyContentSeller", void 0);
a([ d(cc.Node) ], t.prototype, "nodeTemplateItemSeller", void 0);
a([ d(cc.Label) ], t.prototype, "labReminderAll", void 0);
return a([ l ], t);
}(c.default);
o.default = u;
cc._RF.pop();
}, {
"../../Shared/NetworkLogic": "NetworkLogic",
"./IRechargeLayer": "IRechargeLayer"
} ],
RechargeRecordsUI: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "95e3fVho7RGZ4VDfTmNEg1d", "RechargeRecordsUI");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/UIManager"), c = e("../../Shared/NetworkLogic"), s = e("./RechargeInfoUI"), l = e("../../Shared/AudioManager"), d = e("LanguageData"), u = cc._decorator, p = u.ccclass, h = u.property, f = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.pfbRechargeInfoLayer = null;
t.nodeTemplateItem = null;
t.nodeContent = null;
t._page = 1;
return t;
}
t.prototype.start = function() {
this.nodeTemplateItem.parent = null;
this.getRecordsFromServer();
};
t.prototype.onDestroy = function() {
this.nodeTemplateItem.destroy();
};
t.prototype.onBtnClick = function(e, t) {
if ("close" === t) {
l.default.playSound("close");
this.node.destroy();
} else if ("info" === t) {
r.default.showLoadingUI();
c.default.getRecordDetail(e.target.parent.recordID, function(e) {
r.default.hideLoadingUI();
var t = cc.instantiate(this.pfbRechargeInfoLayer).getComponent(s.default);
t.node.parent = this.node;
t.money = e.money;
t.order = e.orderNumber;
t.date = e.createTime;
t.type = e.type;
t.state = e.status;
}.bind(this));
}
};
t.prototype.onScrollEvent = function(e, t) {
t === cc.ScrollView.EventType.SCROLL_TO_BOTTOM && this.getRecordsFromServer();
};
t.prototype.getRecordsFromServer = function() {
r.default.showLoadingUI();
c.default.getRecord(this._page, 10, function(e) {
r.default.hideLoadingUI();
e.length > 0 && this._page++;
this.createItems(e);
}.bind(this));
};
t.prototype.createItems = function(e) {
var t = this, o = [ d.t("pre_details_text.succ"), d.t("pre_details_text.error"), d.t("pre_details_text.audit"), d.t("pre_details_text.czSucc") ], n = [ cc.color(74, 190, 139), cc.color(190, 74, 74), cc.color(190, 190, 74), cc.color(190, 74, 74) ];
e.forEach(function(e) {
var i = cc.instantiate(t.nodeTemplateItem);
i.recordID = e.id;
i.getChildByName("time").getComponent(cc.Label).string = e.createTime;
i.getChildByName("state").color = n[parseInt(e.status)];
i.getChildByName("state").getComponent(cc.Label).string = o[parseInt(e.status)];
i.getChildByName("money").getComponent(cc.Label).string = e.chargeMoney;
i.parent = t.nodeContent;
});
};
a([ h(cc.Prefab) ], t.prototype, "pfbRechargeInfoLayer", void 0);
a([ h(cc.Node) ], t.prototype, "nodeTemplateItem", void 0);
a([ h(cc.Node) ], t.prototype, "nodeContent", void 0);
return a([ p ], t);
}(cc.Component);
o.default = f;
cc._RF.pop();
}, {
"../../Shared/AudioManager": "AudioManager",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
"./RechargeInfoUI": "RechargeInfoUI",
LanguageData: "LanguageData"
} ],
RechargeUI: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "d0c78F3Q4dOA6mr04xB8rdG", "RechargeUI");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
}, r = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, c = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var s = e("../../Common/CommonToggleContainer"), l = e("../../Common/ToggleItem"), d = e("../../Shared/NetworkLogic"), u = e("../../Shared/UIManager"), p = e("../Recharge/RechargeOnlineLayer"), h = e("../Recharge/RechargeCodeLayer"), f = e("../Recharge/RechargeAgentLayer"), g = e("../Recharge/RechargeOfflineLayer"), y = e("../../Shared/Utils"), m = e("../../Shared/Constant"), v = e("../../Shared/AudioManager"), b = e("../../Shared/Global"), _ = e("../HallUI"), S = e("../../Shared/EnterSoundManager"), C = e("./RechargeUSDTLayer"), w = e("../../Models/Player"), I = e("./RechargeQuickLayer"), L = e("LanguageData"), T = cc._decorator, P = T.ccclass, k = T.property, N = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.pfbCustomerServiceUI = null;
t.pfbRechargeRecords = null;
t.rechargeOnlineLayer = null;
t.rechargeOfflineLayer = null;
t.rechargeCodeLayer = null;
t.rechargeAgentLayer = null;
t.rechargeUSDTLayer = null;
t.rechargeQuickLayer = null;
t.wgtNode = null;
t.toggleContainer = null;
t.nodeCourse = null;
t.rechargeCourseLayer = null;
t._chargeTypelist = [];
t._isOpenedThirdPayment = !1;
t.bJump = !1;
t.jumpChargeTypeIdArr = [];
t.courseData = null;
t.rechargeCourseList = [];
return t;
}
t.prototype.onLoad = function() {
this.rechargeOnlineLayer.node.active = !1;
this.rechargeOfflineLayer.node.active = !1;
this.rechargeCodeLayer.node.active = !1;
this.rechargeAgentLayer.node.active = !1;
this.rechargeUSDTLayer.node.active = !1;
this.rechargeQuickLayer.node.active = !1;
cc.game.on(cc.game.EVENT_SHOW, this.onGameShow, this);
cc.director.on(b.Global.UserEvent.OpenThirdPayment, this.onOpenThirdPayment, this);
};
t.prototype.start = function() {
cc.winSize.width / cc.winSize.height > 2 && (this.wgtNode.left += m.default.BangLength);
y.default.hideGameNode();
2 === w.default.getPy("userType") && u.default.showToastUI(L.t("vistor_toast"), b.Global.ToastType.Warnning);
this.pullChargeTypelist();
S.default.playSound("enter_chongzhi");
};
t.prototype.onDestroy = function() {
cc.game.off(cc.game.EVENT_SHOW, this.onGameShow, this);
cc.director.on(b.Global.UserEvent.OpenThirdPayment, this.onOpenThirdPayment, this);
};
t.prototype.onBtnClick = function(e, t) {
if ("back" === t) {
v.default.playSound("close");
y.default.showGameNode();
this.node.destroy();
} else if ("record" === t) this.showRecordUI(); else if ("weidaozhang" === t) {
var o = cc.find("Canvas/gameNode") && cc.find("Canvas/gameNode").getComponent(_.default);
o && o.openChildUI(this.pfbCustomerServiceUI);
this.node.destroy();
} else if ("course" === t) if (this.courseData && 2 === this.courseData.jumpType) cc.sys.openURL(this.courseData.jumpUrl); else if (this.courseData && 1 === this.courseData.jumpType) {
this.rechargeCourseLayer.active = !0;
this.rechargeCourseLayer.getComponent("RechargeCourse").updateUI(this.courseData.imgs);
}
};
t.prototype.onToggleSelected = function(e) {
return r(this, void 0, void 0, function() {
var t, o, n, i;
return c(this, function(a) {
switch (a.label) {
case 0:
cc.log("====进入onToggleSelected");
t = parseInt(e.userData.flag);
o = e.userData.id;
n = !1;
return [ 4, this.checkCourseByTypeId(o) ];

case 1:
i = a.sent();
n = i[0];
cc.log("===bCourseActive:", n);
this.nodeCourse.active = n;
this.courseData = i[1];
if (0 === t) {
u.default.showLoadingUI();
d.default.getNewConfigMoneyInOnline(o, function(t) {
u.default.hideLoadingUI();
this.showInfoLayer(e.userData, t);
}.bind(this));
} else if (1 === t) {
u.default.showLoadingUI();
d.default.getNewConfigMoneyInOfficialTransfer(o, function(t) {
u.default.hideLoadingUI();
this.showInfoLayer(e.userData, t);
}.bind(this));
} else if (2 === t) {
u.default.showLoadingUI();
d.default.getNewConfigMoneyInSolidcode(o, function(t) {
u.default.hideLoadingUI();
this.showInfoLayer(e.userData, t);
}.bind(this));
} else if (3 === t) {
u.default.showLoadingUI();
d.default.getConfigMoneyInVip(o, function(t) {
u.default.hideLoadingUI();
this.showInfoLayer(e.userData, t);
}.bind(this));
} else if (4 === t) {
u.default.showLoadingUI();
d.default.getNewConfigMoneyInUSDT(o, function(t) {
u.default.hideLoadingUI();
this.showInfoLayer(e.userData, t);
}.bind(this));
} else if (5 === t) {
u.default.showLoadingUI();
d.default.getQuickChargeConfig(o, function(t) {
u.default.hideLoadingUI();
this.showInfoLayer(e.userData, t);
}.bind(this));
}
return [ 2 ];
}
});
});
};
t.prototype.checkCourseByTypeId = function(e) {
return r(this, void 0, void 0, function() {
var t, o, n;
return c(this, function(i) {
switch (i.label) {
case 0:
return this.rechargeCourseList.length <= 0 ? [ 4, this.getRechargeCourseList() ] : [ 3, 2 ];

case 1:
i.sent();
i.label = 2;

case 2:
cc.log("=====typeId:", e);
t = !1;
o = null;
for (n = 0; n < this.rechargeCourseList.length; n++) if (this.rechargeCourseList[n].chargeTypeNameId === e) {
t = !0;
o = this.rechargeCourseList[n];
break;
}
return [ 2, [ t, o ] ];
}
});
});
};
t.prototype.getRechargeCourseList = function() {
var e = this;
return new Promise(function(t) {
e.rechargeCourseList.length > 0 && t(e.rechargeCourseList);
u.default.showLoadingUI();
d.default.rechargeCourseList({}, function(e) {
cc.log("====教程list：", e);
u.default.hideLoadingUI();
this.rechargeCourseList = e;
t(this.rechargeCourseList);
}.bind(e), function() {
t(0);
}.bind(e));
});
};
t.prototype.onGameShow = function() {
if (this._isOpenedThirdPayment) {
this._isOpenedThirdPayment = !1;
this.showRecordUI();
}
};
t.prototype.onOpenThirdPayment = function() {
this._isOpenedThirdPayment = !0;
};
t.prototype.pullChargeTypelist = function() {
u.default.showLoadingUI();
d.default.chargeTypelist(function(e) {
u.default.hideLoadingUI();
cc.log("====拉取充值列表 parentConfigs：", e);
this._chargeTypelist = e.list;
this.scheduleOnce(function() {
this.createToggles();
}, .3);
}.bind(this), function(e) {
!e && u.default.showChangeDomainUI(function() {
this.pullChargeTypelist();
}.bind(this));
}.bind(this));
};
t.prototype.showRecordUI = function() {
if (!this.node.getChildByName("recordLayer")) {
var e = cc.instantiate(this.pfbRechargeRecords);
e.name = "recordLayer";
e.parent = this.node;
}
};
t.prototype.createToggles = function() {
var e = this;
this.toggleContainer.isSelectFirstItem = !this.bJump;
this._chargeTypelist.forEach(function(t) {
var o = e.toggleContainer.addDefaultToggle(t.chargeName, t), n = new cc.Node(), i = n.addComponent(cc.Sprite);
n.setAnchorPoint(1, 1);
n.position = cc.v2(o.node.width * o.node.anchorX, o.node.height * o.node.anchorY);
n.parent = o.node;
t.chargeCornerUrl && cc.assetManager.loadRemote(t.chargeCornerUrl, {
ext: ".png"
}, function(e, t) {
!e && i && i.isValid && (i.spriteFrame = new cc.SpriteFrame(t));
}.bind(e));
});
var t = this._chargeTypelist.filter(function(t) {
if (e.jumpChargeTypeIdArr.indexOf(t.chargeTypeId.toString()) > -1) return !0;
});
if (this.bJump && t.length > 0) {
this.toggleContainer.node.getComponent(cc.Layout).updateLayout();
for (var o = this.toggleContainer.node.parent.parent.getComponent(cc.ScrollView), n = this.toggleContainer.node.children, i = 0; i < n.length; i++) {
var a = n[i].getComponent(l.default);
if (a.userData.chargeTypeId === t[0].chargeTypeId) {
var r = 1 * i / n.length;
o.scrollTo(cc.v2(0, 1 - r), .1);
this.toggleContainer.selectToggle(a);
break;
}
}
this.bJump = !1;
} else this.toggleContainer.selectFirstItem();
};
t.prototype.showInfoLayer = function(e, t) {
return r(this, void 0, void 0, function() {
var o, n;
return c(this, function() {
this.rechargeOnlineLayer.node.active = !1;
this.rechargeOfflineLayer.node.active = !1;
this.rechargeCodeLayer.node.active = !1;
this.rechargeAgentLayer.node.active = !1;
this.rechargeUSDTLayer.node.active = !1;
this.rechargeQuickLayer.node.active = !1;
if (0 === (o = parseInt(e.flag))) {
this.rechargeOnlineLayer.parentConfig = e;
this.rechargeOnlineLayer.node.active = !0;
this.rechargeOnlineLayer.configs = t;
} else if (1 === o) {
this.rechargeOfflineLayer.parentConfig = e;
this.rechargeOfflineLayer.node.active = !0;
this.rechargeOfflineLayer.configs = t;
} else if (2 === o) {
this.rechargeCodeLayer.parentConfig = e;
this.rechargeCodeLayer.node.active = !0;
this.rechargeCodeLayer.configs = t;
} else if (3 === o) {
this.rechargeAgentLayer.parentConfig = e;
this.rechargeAgentLayer.node.active = !0;
this.rechargeAgentLayer.configs = t.seatList;
n = t.H5Domain;
this.rechargeAgentLayer.yinShangDomain = n;
} else if (4 === o) {
this.rechargeUSDTLayer.parentConfig = e;
this.rechargeUSDTLayer.node.active = !0;
this.rechargeUSDTLayer.configs = t;
cc.log("===usdt充值configs：", t);
} else if (5 === o) {
this.rechargeQuickLayer.parentConfig = e;
this.rechargeQuickLayer.node.active = !0;
this.rechargeQuickLayer.configs = t;
cc.log("===快速充值configs：", t);
}
return [ 2 ];
});
});
};
a([ k(cc.Prefab) ], t.prototype, "pfbCustomerServiceUI", void 0);
a([ k(cc.Prefab) ], t.prototype, "pfbRechargeRecords", void 0);
a([ k(p.default) ], t.prototype, "rechargeOnlineLayer", void 0);
a([ k(g.default) ], t.prototype, "rechargeOfflineLayer", void 0);
a([ k(h.default) ], t.prototype, "rechargeCodeLayer", void 0);
a([ k(f.default) ], t.prototype, "rechargeAgentLayer", void 0);
a([ k(C.default) ], t.prototype, "rechargeUSDTLayer", void 0);
a([ k(I.default) ], t.prototype, "rechargeQuickLayer", void 0);
a([ k(cc.Widget) ], t.prototype, "wgtNode", void 0);
a([ k(s.default) ], t.prototype, "toggleContainer", void 0);
a([ k(cc.Node) ], t.prototype, "nodeCourse", void 0);
a([ k(cc.Node) ], t.prototype, "rechargeCourseLayer", void 0);
return a([ P ], t);
}(cc.Component);
o.default = N;
cc._RF.pop();
}, {
"../../Common/CommonToggleContainer": "CommonToggleContainer",
"../../Common/ToggleItem": "ToggleItem",
"../../Models/Player": "Player",
"../../Shared/AudioManager": "AudioManager",
"../../Shared/Constant": "Constant",
"../../Shared/EnterSoundManager": "EnterSoundManager",
"../../Shared/Global": "Global",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
"../../Shared/Utils": "Utils",
"../HallUI": "HallUI",
"../Recharge/RechargeAgentLayer": "RechargeAgentLayer",
"../Recharge/RechargeCodeLayer": "RechargeCodeLayer",
"../Recharge/RechargeOfflineLayer": "RechargeOfflineLayer",
"../Recharge/RechargeOnlineLayer": "RechargeOnlineLayer",
"./RechargeQuickLayer": "RechargeQuickLayer",
"./RechargeUSDTLayer": "RechargeUSDTLayer",
LanguageData: "LanguageData"
} ],
RechargeUSDTLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "d457fHfBchI6YW71hiKzSmM", "RechargeUSDTLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
}, r = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, c = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var s = e("./IRechargeLayer"), l = e("../../Models/Player"), d = e("../../Shared/NetworkLogic"), u = e("../../Shared/UIManager"), p = e("../../Common/CommonToggleContainer"), h = e("../../Shared/CQRCode"), f = e("../../Shared/Global"), g = e("../../Shared/Utils"), y = e("LanguageData"), m = {
erc20: 1,
omni: 2,
trc20: 3
}, v = cc._decorator, b = v.ccclass, _ = v.property, S = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.nodeStep0 = null;
t.nodeStep1 = null;
t.nodeStep2 = null;
t.nodeStep3 = null;
t.labReminderAll = null;
t.labReminderSeller = null;
t.btnsNodeCreated = null;
t.btnsNodeUnCreated = null;
t.lyContentSeller = null;
t.nodeTemplateItemSeller = null;
t.toggleMoneyContainer = null;
t.lbRate = null;
t.lbMoneyRecharge = null;
t.lbMoneyYuan = null;
t.currencyType = null;
t.toggleChainTypeContainer = null;
t.lbMoneyRecharge1 = null;
t.lbChainAddress = null;
t.lbChainDescription = null;
t.cqrCodeChainAddress = null;
t.ebActualUSDT = null;
t.ebFee = null;
t._sellerCfg = null;
t._orderInfo = null;
t._decimal = 0;
t._lineType = 0;
t._appURL = "";
return t;
}
t.prototype.onLoad = function() {
this.nodeTemplateItemSeller.parent = null;
this.labReminderAll.node.active = !1;
this.nodeStep0.active = !0;
this.nodeStep1.active = !1;
this.nodeStep2.active = !1;
this.nodeStep3.active = !1;
};
t.prototype.start = function() {
d.default.getUsdtInfoConfig(function(e) {
this.labReminderAll.string = e || "";
}.bind(this));
d.default.getUSDTPaymentURL(function(e) {
this._appURL = e;
}.bind(this));
};
t.prototype.onDisable = function() {
this.nodeStep0.active = !0;
this.nodeStep1.active = !1;
this.nodeStep2.active = !1;
this.nodeStep3.active = !1;
this.lyContentSeller.node.destroyAllChildren();
};
t.prototype.onDestroy = function() {
this.nodeTemplateItemSeller.destroy();
};
t.prototype.refreshData = function() {
var e = this;
this.configs.forEach(function(t) {
e.addSellerItem(t);
});
this.lyContentSeller.updateLayout();
this.labReminderAll.node.active = this.configs.length > 0;
};
t.prototype.addSellerItem = function(e) {
var t = cc.instantiate(this.nodeTemplateItemSeller);
t.getChildByName("name").getComponent(cc.Label).string = e.clientChannelName;
t.getChildByName("rate").getComponent(cc.Label).string = y.t("BasicsJS.rate") + "：1USDT=" + e.rate + l.default.getPy("currencyName");
t.rechargeCfg = e;
t.parent = this.lyContentSeller.node;
e.offerPercentage > 0 ? cc.find("iconDiscount/discount", t).getComponent(cc.Label).string = y.t("BasicsJS.gift") + e.offerPercentage + "%" : cc.find("iconDiscount", t).active = !1;
};
t.prototype.onBtnClick = function(e, t) {
return r(this, void 0, void 0, function() {
var o, n, i, a, r;
return c(this, function(c) {
switch (c.label) {
case 0:
if ("recharge" !== t) return [ 3, 3 ];
if (-1 !== l.default.getPy("visitorFillInfoTime").indexOf("3") && 2 === l.default.getPy("userType")) {
(o = cc.find("Canvas/gameNode").getComponent("HallUI")).openChildUI(o.pfbLoginCompleteInformation);
return [ 2 ];
}
n = this;
return [ 4, this.getLatestUsdtOrder() ];

case 1:
n._orderInfo = c.sent();
i = this;
return [ 4, this.getUsdtDecimals() ];

case 2:
i._decimal = c.sent();
if (this._orderInfo) {
for (a = 0; a < this.configs.length; a++) if ((r = this.configs[a]).id === this._orderInfo.depositorTypeId) {
this._sellerCfg = r;
break;
}
if (!this._sellerCfg) {
u.default.showTipUI(y.t("BasicsJS.not_channel"));
return [ 2 ];
}
} else this._sellerCfg = e.target.parent.rechargeCfg;
this.nodeStep0.active = !1;
this.nodeStep1.active = !0;
this.initData();
this.setDataByOrderInfo();
return [ 3, 4 ];

case 3:
if ("createOrder" === t) {
if (!this.lbMoneyRecharge.string) {
u.default.showToastUI(y.t("BasicsJS.select_amount"), f.Global.ToastType.Warnning);
return [ 2 ];
}
u.default.showLoadingUI();
d.default.createUSDTOrder({
id: this._sellerCfg.id,
usdtChargeNum: parseFloat(this.lbMoneyRecharge.string),
usdtRate: this._sellerCfg.rate
}, function(e) {
u.default.hideLoadingUI();
this._orderInfo = e;
this.setDataByOrderInfo();
this.nodeStep1.active = !1;
this.nodeStep2.active = !0;
}.bind(this));
} else if ("created" === t) {
this.nodeStep1.active = !1;
this.nodeStep2.active = !0;
} else if ("cancelOrder" === t) u.default.showConfirmUI(y.t("BasicsJS.confirm_cancellation_order") + "？", function() {
u.default.showLoadingUI();
d.default.cancelLatestUsdtOrder(this._orderInfo.id, function() {
u.default.hideLoadingUI();
this.nodeStep1.active = !1;
this.nodeStep0.active = !0;
}.bind(this));
}.bind(this)); else if ("back" === t) {
this.nodeStep1.active = !1;
this.nodeStep0.active = !0;
} else if ("copyAddress" === t) {
g.default.copyText(this.lbChainAddress.string);
this._appURL ? u.default.showConfirmUI(y.t("RechargeLayer.go_pay"), function() {
cc.sys.openURL(this._appURL);
}.bind(this), y.t("RechargeLayer.pay_now")) : u.default.showToastUI(y.t("HallUI.copy_succ"), f.Global.ToastType.OK);
} else if ("saveCode" === t) g.default.saveNodeImageToAlbum(this.cqrCodeChainAddress.node, "usdt_address.png", function(e) {
e ? u.default.showToastUI(y.t("share_text.save_img_succ"), f.Global.ToastType.OK) : u.default.showTipUI(y.t("share_text.save_err"));
}.bind(this)); else if ("copyUSDT" === t) {
g.default.copyText(this.lbMoneyRecharge1.string);
this._appURL ? u.default.showConfirmUI(y.t("RechargeLayer.go_pay"), function() {
cc.sys.openURL(this._appURL);
}.bind(this), y.t("RechargeLayer.pay_now")) : u.default.showToastUI(y.t("HallUI.copy_succ"), f.Global.ToastType.OK);
} else if ("preStep" === t) {
this.nodeStep2.active = !1;
this.nodeStep1.active = !0;
} else if ("nextStep" === t) {
this.nodeStep2.active = !1;
this.nodeStep3.active = !0;
} else if ("preStep1" === t) {
this.nodeStep3.active = !1;
this.nodeStep2.active = !0;
} else if ("finish" === t) {
u.default.showLoadingUI();
d.default.submitUSDTOrder({
chargeVirtualAddress: this.lbChainAddress.string,
chargeVirtualServiceCharge: this.ebFee.string || 0,
chargeVirtualType: this._lineType,
id: this._sellerCfg.id,
orderId: this._orderInfo.id,
usdtChargeNum: this._orderInfo.chargeVirtualNum,
usdtRate: this._sellerCfg.rate
}, function() {
u.default.hideLoadingUI();
u.default.showToastUI(y.t("BasicsJS.been_submit"), f.Global.ToastType.OK);
this.nodeStep3.active = !1;
this.nodeStep2.active = !1;
this.nodeStep0.active = !0;
}.bind(this));
}
c.label = 4;

case 4:
return [ 2 ];
}
});
});
};
t.prototype.onSelectToggle = function(e, t) {
if ("money" === t) {
0 === this.toggleMoneyContainer.checkedToggle.userData.isopenRepeatInput ? this.lbMoneyRecharge.string = (this.lbMoneyRecharge.string ? parseInt(this.lbMoneyRecharge.string) : 0) + e.userData.QuickSelectionAmount + this._decimal : this.lbMoneyRecharge.string = e.userData.QuickSelectionAmount + this._decimal;
var o = this._decimal.toString().split(".")[1], n = o ? o.length : 0;
this.lbMoneyRecharge.string = parseFloat(this.lbMoneyRecharge.string).toFixed(n);
var i = parseFloat(this.lbMoneyRecharge.string), a = parseFloat((i * this._sellerCfg.rate).toFixed(2));
this.lbMoneyYuan.string = y.t("BasicsJS.Eventually_topUp_amount") + " " + a + "（" + i + "USDT*" + y.t("BasicsJS.current_rate") + this._sellerCfg.rate + l.default.getPy("currencyName") + "）";
} else if ("lineType" === t) {
this._lineType = m[e.userData];
cc.log("====this._sellerCfg:" + JSON.stringify(this._sellerCfg));
this.lbChainAddress.string = this._sellerCfg[e.userData + "Url"];
this.lbChainDescription.string = this._sellerCfg[e.userData + "Description"];
this.cqrCodeChainAddress.string = this._sellerCfg[e.userData + "Url"];
}
};
t.prototype.getLatestUsdtOrder = function() {
var e = this;
return new Promise(function(t) {
u.default.showLoadingUI();
d.default.getLatestUsdtOrder(function(e) {
u.default.hideLoadingUI();
e && "2" === e.status && !e.chargeVirtualAddress ? u.default.showConfirmUI(y.t("BasicsJS.Outstanding_orders") + "？", function() {
t(e);
}.bind(this), y.t("BasicsJS.Continue"), function() {
u.default.showLoadingUI();
d.default.cancelLatestUsdtOrder(e.id, function() {
u.default.hideLoadingUI();
t(null);
}.bind(this));
}.bind(this), y.t("BasicsJS.Cancel_order")) : t(null);
}.bind(e));
});
};
t.prototype.getUsdtDecimals = function() {
var e = this;
return new Promise(function(t) {
u.default.showLoadingUI();
d.default.getUsdtDecimals(function(e) {
u.default.hideLoadingUI();
t(e);
}.bind(e), function(e) {
!e && u.default.showChangeDomainUI(function() {
return r(this, void 0, void 0, function() {
var e;
return c(this, function(o) {
switch (o.label) {
case 0:
return [ 4, this.getUsdtDecimals() ];

case 1:
(e = o.sent()) && t(e);
return [ 2 ];
}
});
});
}.bind(this));
}.bind(e));
});
};
t.prototype.initData = function() {
var e = this;
this.toggleMoneyContainer.node.removeAllChildren();
this.toggleMoneyContainer.node.destroyAllChildren();
JSON.parse(this._sellerCfg.fixedAmount).forEach(function(t) {
e.toggleMoneyContainer.addDefaultToggle(t.QuickSelectionAmount, t);
});
this.currencyType.string = l.default.getPy("currencyName");
this.currencyType.node.position = cc.v2(this.currencyType.node.parent.width, this.currencyType.node.position.y);
this.lbRate.string = y.t("BasicsJS.rate") + "：1USDT=" + this._sellerCfg.rate + l.default.getPy("currencyName");
this.lbMoneyRecharge.string = "";
this.lbMoneyYuan.string = y.t("BasicsJS.Eventually_topUp_amount");
this.labReminderSeller.string = this._sellerCfg.remark;
this.ebActualUSDT.string = "";
this.ebFee.string = "";
this.btnsNodeCreated.active = !1;
this.btnsNodeUnCreated.active = !0;
this.toggleMoneyContainer.enabled = !0;
this.nodeStep2.active = !0;
this.lbChainAddress.string = "";
this.toggleChainTypeContainer.node.removeAllChildren();
this.toggleChainTypeContainer.node.destroyAllChildren();
this._sellerCfg.erc20Url && this.toggleChainTypeContainer.addDefaultToggle(this._sellerCfg.businessName, "erc20");
this._sellerCfg.omniUrl && this.toggleChainTypeContainer.addDefaultToggle(this._sellerCfg.businessName, "omni");
this._sellerCfg.trc20Url && this.toggleChainTypeContainer.addDefaultToggle(this._sellerCfg.businessName, "trc20");
this.nodeStep2.active = !1;
};
t.prototype.setDataByOrderInfo = function() {
if (this._orderInfo) {
this.btnsNodeCreated.active = !0;
this.btnsNodeUnCreated.active = !1;
this.toggleMoneyContainer.enabled = !1;
this.lbMoneyRecharge.string = this._orderInfo.chargeVirtualNum;
this.lbMoneyRecharge1.string = this._orderInfo.chargeVirtualNum;
var e = parseFloat((this._orderInfo.chargeVirtualNum * this._sellerCfg.rate).toFixed(2));
this.lbMoneyYuan.string = y.t("BasicsJS.Eventually_topUp_amount") + " " + e + "（" + this._orderInfo.chargeVirtualNum + "USDT*" + y.t("BasicsJS.current_rate") + this._sellerCfg.rate + l.default.getPy("currencyName") + "）";
}
};
a([ _(cc.Node) ], t.prototype, "nodeStep0", void 0);
a([ _(cc.Node) ], t.prototype, "nodeStep1", void 0);
a([ _(cc.Node) ], t.prototype, "nodeStep2", void 0);
a([ _(cc.Node) ], t.prototype, "nodeStep3", void 0);
a([ _(cc.Label) ], t.prototype, "labReminderAll", void 0);
a([ _(cc.Label) ], t.prototype, "labReminderSeller", void 0);
a([ _(cc.Node) ], t.prototype, "btnsNodeCreated", void 0);
a([ _(cc.Node) ], t.prototype, "btnsNodeUnCreated", void 0);
a([ _(cc.Layout) ], t.prototype, "lyContentSeller", void 0);
a([ _(cc.Node) ], t.prototype, "nodeTemplateItemSeller", void 0);
a([ _(p.default) ], t.prototype, "toggleMoneyContainer", void 0);
a([ _(cc.Label) ], t.prototype, "lbRate", void 0);
a([ _(cc.Label) ], t.prototype, "lbMoneyRecharge", void 0);
a([ _(cc.Label) ], t.prototype, "lbMoneyYuan", void 0);
a([ _(cc.Label) ], t.prototype, "currencyType", void 0);
a([ _(p.default) ], t.prototype, "toggleChainTypeContainer", void 0);
a([ _(cc.Label) ], t.prototype, "lbMoneyRecharge1", void 0);
a([ _(cc.Label) ], t.prototype, "lbChainAddress", void 0);
a([ _(cc.Label) ], t.prototype, "lbChainDescription", void 0);
a([ _(h.default) ], t.prototype, "cqrCodeChainAddress", void 0);
a([ _(cc.EditBox) ], t.prototype, "ebActualUSDT", void 0);
a([ _(cc.EditBox) ], t.prototype, "ebFee", void 0);
return a([ b ], t);
}(s.default);
o.default = S;
cc._RF.pop();
}, {
"../../Common/CommonToggleContainer": "CommonToggleContainer",
"../../Models/Player": "Player",
"../../Shared/CQRCode": "CQRCode",
"../../Shared/Global": "Global",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
"../../Shared/Utils": "Utils",
"./IRechargeLayer": "IRechargeLayer",
LanguageData: "LanguageData"
} ],
RecommendActivity: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "ecb24d6CNBLqp2c/tZfO0Qr", "RecommendActivity");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
}, r = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, c = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var s = e("../../Shared/PopWindowManager"), l = e("../../Shared/ImageCache"), d = e("../../Shared/AudioManager"), u = cc._decorator, p = u.ccclass, h = u.property, f = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.bgNode = null;
t.xWidget = null;
return t;
}
t.prototype.onLoad = function() {
this.bgNode.node.active = !1;
};
t.prototype.start = function() {
return r(this, void 0, void 0, function() {
var e, t;
return c(this, function() {
e = this.node.popData;
t = e.activityImg;
l.default.loadImage(t, function(e, t) {
if (cc.isValid(this.bgNode)) {
this.bgNode.node.getChildByName("logo").active = !1;
this.bgNode.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(t);
this.bgNode.node.active = !0;
this.xWidget.updateAlignment();
}
}.bind(this));
this.scheduleOnce(function() {
this.bgNode.node.active = !0;
}.bind(this), .2);
return [ 2 ];
});
});
};
t.prototype.onBtnClose = function() {
d.default.playSound("close");
s.default.openNext();
this.node.destroy();
};
t.prototype.onBtnGo = function() {
cc.log("====popData:", this.node.popData);
var e = cc.find("Canvas/gameNode").getComponent("HallUI");
e.openChildUI(e.pfbActivity, !1).getComponent("ActivityAndTask").updateUI("huodong", this.node.popData);
this.node.destroy();
};
a([ h(cc.Sprite) ], t.prototype, "bgNode", void 0);
a([ h(cc.Widget) ], t.prototype, "xWidget", void 0);
return a([ p ], t);
}(cc.Component);
o.default = f;
cc._RF.pop();
}, {
"../../Shared/AudioManager": "AudioManager",
"../../Shared/ImageCache": "ImageCache",
"../../Shared/PopWindowManager": "PopWindowManager"
} ],
RecommendBank: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "bb23f/pMUJI64IPt1P4W+Ro", "RecommendBank");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../Shared/ImageCache"), c = e("../Shared/AudioManager"), s = e("../Shared/PopWindowManager"), l = cc._decorator, d = l.ccclass, u = l.property, p = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.bgSprite = null;
t.xWidget = null;
return t;
}
t.prototype.start = function() {
var e = this.node.popData;
r.default.loadImage(e, function(e, t) {
if (cc.isValid(this.bgSprite)) {
this.bgSprite.node.getChildByName("logo").active = !1;
this.bgSprite.spriteFrame = new cc.SpriteFrame(t);
this.bgSprite.node.active = !0;
this.xWidget.updateAlignment();
}
}.bind(this));
this.scheduleOnce(function() {
this.bgSprite.node.active = !0;
}.bind(this), .2);
};
t.prototype.onBtnClose = function() {
c.default.playSound("close");
s.default.openNext();
this.node.destroy();
};
t.prototype.onBtnGo = function() {
var e = cc.find("Canvas/gameNode").getComponent("HallUI"), t = e.openChildUI(e.pfbWithdrawalUI).getComponent("WithdrawUI");
t.commonToggleContainer.selectToggle(t.walletToggle);
this.node.destroy();
};
a([ u(cc.Sprite) ], t.prototype, "bgSprite", void 0);
a([ u(cc.Widget) ], t.prototype, "xWidget", void 0);
return a([ d ], t);
}(cc.Component);
o.default = p;
cc._RF.pop();
}, {
"../Shared/AudioManager": "AudioManager",
"../Shared/ImageCache": "ImageCache",
"../Shared/PopWindowManager": "PopWindowManager"
} ],
RecommendTask: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "bbe19rcbhtPWpWfscr0UUZc", "RecommendTask");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
}, r = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, c = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var s = e("../../Shared/ImageCache"), l = e("../../Shared/PopWindowManager"), d = e("../../Shared/AudioManager"), u = cc._decorator, p = u.ccclass, h = u.property, f = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.bgSprite = null;
t.xWidget = null;
return t;
}
t.prototype.onLoad = function() {
this.bgSprite.node.active = !1;
};
t.prototype.start = function() {
return r(this, void 0, void 0, function() {
var e, t;
return c(this, function() {
e = this.node.popData;
t = e.popImg;
s.default.loadImage(t, function(e, t) {
if (cc.isValid(this.bgSprite)) {
this.bgSprite.node.getChildByName("logo").active = !1;
this.bgSprite.spriteFrame = new cc.SpriteFrame(t);
this.bgSprite.node.active = !0;
this.xWidget.updateAlignment();
}
}.bind(this));
this.scheduleOnce(function() {
this.bgSprite.node.active = !0;
}.bind(this), .2);
return [ 2 ];
});
});
};
t.prototype.onBtnClose = function() {
d.default.playSound("close");
l.default.openNext();
this.node.destroy();
};
t.prototype.onBtnGo = function() {
var e = cc.find("Canvas/gameNode").getComponent("HallUI");
e.openChildUI(e.pfbActivity).getComponent("ActivityAndTask").updateUI("renwu", this.node.popData);
this.node.destroy();
};
a([ h(cc.Sprite) ], t.prototype, "bgSprite", void 0);
a([ h(cc.Widget) ], t.prototype, "xWidget", void 0);
return a([ p ], t);
}(cc.Component);
o.default = f;
cc._RF.pop();
}, {
"../../Shared/AudioManager": "AudioManager",
"../../Shared/ImageCache": "ImageCache",
"../../Shared/PopWindowManager": "PopWindowManager"
} ],
RegisterUI: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "99c8fHrkbtME6W/MRBlO/dj", "RegisterUI");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
}, r = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, c = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var s = e("../Shared/NetworkLogic"), l = e("../Shared/Constant"), d = e("../Shared/UIManager"), u = e("../Shared/Global"), p = e("../Models/Player"), h = e("../Shared/SDKManager"), f = e("../Shared/AudioManager"), g = e("../Shared/AddressManager"), y = e("../Shared/EnterSoundManager"), m = e("../Common/RemoteSprite"), v = e("../Shared/Utils"), b = e("../Shared/PackageConfig"), _ = e("LanguageData"), S = cc._decorator, C = S.ccclass, w = S.property, I = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.pfbLoginUI = null;
t.pfbLoginItem = null;
t.nodeItems = null;
t.nodeContent = null;
t.nodeUserName = null;
t.phoneLoginItem = null;
t.btnSend = null;
t.btnSendEmail = null;
t.lbAreaCode = null;
t.ebPhoneNum = null;
t.nodePhoneCode = null;
t.ebPhoneCode = null;
t.nodeCode = null;
t.ebUserName = null;
t.ebPossword = null;
t.ebConfirm = null;
t.ebCode = null;
t.spCode = null;
t.lbCodeTime = null;
t.AreaCodeLayer = null;
t.toggleItem = null;
t.areaContent = null;
t.currencyLabel = null;
t.languageLabel = null;
t.languageIcon = null;
t.langToggleItem = null;
t.langToggleContent = null;
t.currencyToggleItem = null;
t.currencyToggleContent = null;
t.nodeLangScroll = null;
t.nodeCurrencyScroll = null;
t.nodePosCur = null;
t.nodeTips = null;
t.currencyTips = null;
t.ebEmailCode = null;
t.scrollView = null;
t.currencyLanguageDto = null;
t.isAgentOn = !1;
t._codeId = 0;
t._codeCD = 0;
t._eMailCodeCD = 0;
t._userLoginConfig = null;
t._channelCode = "";
t._bindData = null;
t.areaLanguageData = null;
t.selectAreaCodeData = null;
t._languageData = null;
t.confirmAgentCurrency = !1;
t.agentCodeEb = null;
t.lbEmailCodeTime = null;
t.ebEmailBox = null;
return t;
}
t.prototype.start = function() {
return r(this, void 0, void 0, function() {
var e, t;
return c(this, function(o) {
switch (o.label) {
case 0:
this.isAgentOn = !1;
cc.sys.localStorage.setItem("OpenRegister", "");
this.lbEmailCodeTime = this.btnSendEmail.node.getChildByName("code").getComponent(cc.Label);
this.nodeItems.active = !1;
this._channelCode = u.Global.installParms.channelCode;
this._bindData = u.Global.installParms.bindData;
return [ 4, this.getLanguageData() ];

case 1:
o.sent();
return [ 4, this.downloadUserConfig() ];

case 2:
o.sent();
if (!this._userLoginConfig) return [ 2 ];
e = this._userLoginConfig.userLoginConfig || [];
t = 0;
o.label = 3;

case 3:
return t < e.length ? "phone" !== e[t].registerFieldName ? [ 3, 5 ] : [ 4, this.areaLanguageFlag() ] : [ 3, 6 ];

case 4:
o.sent();
return [ 3, 6 ];

case 5:
t++;
return [ 3, 3 ];

case 6:
this.showItemsFromLoginConfig();
this.refreshCodeImage();
y.default.playSound("enter_zhuce");
return [ 2 ];
}
});
});
};
t.prototype.update = function(e) {
if (this._codeCD > 0) {
this._codeCD -= e;
if (this._codeCD <= 0) {
this._codeCD = 0;
this.btnSend.interactable = !0;
this.lbCodeTime.string = _.t("register_text.send_verify");
} else this.lbCodeTime.string = _.t("register_text.retry_verify") + "(" + Math.ceil(this._codeCD).toString() + ")";
}
if (this._eMailCodeCD > 0) {
this._eMailCodeCD -= e;
if (this._eMailCodeCD <= 0) {
this._eMailCodeCD = 0;
this.btnSendEmail.interactable = !0;
this.lbEmailCodeTime.string = _.t("register_text.send_verify");
} else this.lbEmailCodeTime.string = _.t("register_text.retry_verify") + "(" + Math.ceil(this._eMailCodeCD).toString() + ")";
}
};
t.prototype.onBtnClick = function(e, t) {
var o = this;
if ("register" === t) this.isAgentOn && "" === this.agentCodeEb.string ? d.default.showConfirmUI(_.t("register_text.agentCodeContent"), function() {
o.register();
}, _.t("register_text.agentCodeConfirm"), function() {
o.goToScrollView(o.agentCodeEb);
}, _.t("register_text.agentCodeBack")) : this.register(); else if ("send" === t) {
if (this._codeCD > 0) return;
this.btnSend.interactable = !1;
var n = this.ebPhoneNum.string;
if (n.length < 6 || n.length > 15 || !/^\d+$/.test(n)) d.default.showToastUI(_.t("register_text.phone_confirm"), u.Global.ToastType.Warnning); else {
d.default.showLoadingUI();
var i = null, a = {
phone: n
};
if (0 == this._userLoginConfig.aliOrVonage) {
a.area = this.selectAreaCodeData.areaNumber;
a.smsType = 0;
i = s.default.phoneCode.bind(s.default);
} else if (1 == this._userLoginConfig.aliOrVonage) {
a.area = this.selectAreaCodeData.areaNumber;
i = s.default.vonageSms.bind(s.default);
} else if (2 == this._userLoginConfig.aliOrVonage) {
a.area = this.selectAreaCodeData.areaNumber;
a.smsType = 2;
i = s.default.phoneCode.bind(s.default);
}
i(a, function() {
d.default.hideLoadingUI();
d.default.showToastUI(_.t("sendSuccess"), u.Global.ToastType.OK);
o._codeCD = 60;
}, function() {
cc.log("===短信发送失败");
o.btnSend.interactable = !0;
});
}
} else if ("go" === t) {
cc.instantiate(this.pfbLoginUI).parent = this.node.parent;
this.node.destroy();
} else if ("code" === t) this.refreshCodeImage(); else if ("close" === t) {
f.default.playSound("close");
cc.sys.localStorage.setItem("OpenRegister", "");
this.node.destroy();
} else if ("email" === t) {
if (this._eMailCodeCD > 0) return;
this.btnSendEmail.interactable = !1;
var r = this.ebEmailBox.string;
if (/^[A-Za-z\d]+([-_.][A-Za-z\d]+)*@([A-Za-z\d]+[-.])+[A-Za-z\d]{2,4}$/.test(r)) {
d.default.showLoadingUI();
a = {
email: r
};
s.default.sendEmailCode(a, function() {
d.default.hideLoadingUI();
d.default.showToastUI(_.t("sendSuccess"), u.Global.ToastType.OK);
o._eMailCodeCD = 60;
}, function() {
cc.log("===短信发送失败");
o.btnSendEmail.interactable = !0;
});
} else {
d.default.showToastUI(_.t("register_text.email_error"), u.Global.ToastType.Warnning);
this.btnSendEmail.interactable = !0;
}
}
};
t.prototype.register = function() {
if (this.check()) {
cc.log("===手机验证码：", this.ebPhoneCode.string);
var e = this._bindData && this._bindData.code, t = v.default.getChannelCode() || this._channelCode;
!e && this.agentCodeEb && (e = this.agentCodeEb.string);
b.default.TingzhuSign && "1038" === b.default.TingzhuSign && (t = b.default.ChannelCode);
var o = {
agentUrl: "",
channelDomain: "",
channelFlag: "",
code: this.ebCode.string,
codeId: 0 === this._codeId ? "" : this._codeId.toString(),
deviceFlag: "",
deviceModel: cc.sys.isMobile ? jsb.device.getDeviceModel() : "",
deviceType: cc.sys.os === cc.sys.OS_ANDROID ? "1" : "2",
domainId: t,
email: cc.find("email/EditBox", this.nodeContent) ? cc.find("email/EditBox", this.nodeContent).getComponent(cc.EditBox).string : "",
emailCode: this.ebEmailCode.string,
ipAdr: "",
parentAgentCode: e,
phone: this.ebPhoneNum.string || "",
phoneCode: this.ebPhoneCode.string,
pwd: this.ebPossword.string,
qq: cc.find("qq/EditBox", this.nodeContent) ? cc.find("qq/EditBox", this.nodeContent).getComponent(cc.EditBox).string : "",
area: this.selectAreaCodeData && this.selectAreaCodeData.areaNumber,
sign: "",
uaToken: "",
userId: this.ebUserName.string,
verifyPwd: this.ebConfirm.string,
weChat: cc.find("wechat/EditBox", this.nodeContent) ? cc.find("wechat/EditBox", this.nodeContent).getComponent(cc.EditBox).string : "",
webUmidToken: "",
currencyType: this.currencyLanguageDto.currencyType,
confirmAgentCurrency: this.confirmAgentCurrency
};
d.default.showLoadingUI();
s.default.register(o, function(e) {
d.default.hideLoadingUI();
d.default.showToastUI(_.t("register_text.register_suc"), u.Global.ToastType.OK);
0 === l.default.InstallSDK ? h.default.reportRegister() : 1 === l.default.InstallSDK && h.default.shareInstallReportRegister();
p.default.setPy("token", e.token);
cc.director.emit(u.Global.UserEvent.PlayerLogin);
this.node.destroy();
}.bind(this), function(e) {
d.default.hideLoadingUI();
cc.log("==response", e);
if (e) {
this.refreshCodeImage();
if ("20064" === e.code) {
var t = e.msg;
d.default.showConfirmUI(t, function() {
var e = this;
this.confirmAgentCurrency = !0;
this.isAgentOn && "" === this.agentCodeEb.string ? d.default.showConfirmUI(_.t("register_text.agentCodeContent"), function() {
e.register();
}, _.t("register_text.agentCodeConfirm"), function() {
e.goToScrollView(e.agentCodeEb);
}, _.t("register_text.agentCodeBack")) : this.register();
}.bind(this));
}
}
}.bind(this));
}
};
t.prototype.refreshCodeImage = function() {
this._codeId = Math.floor(1e3 * Math.random());
var e = g.default.getServerAdress() + "/api/user/generator-code?code_id=" + this._codeId.toString();
cc.assetManager.loadRemote(e, {
ext: ".png"
}, function(e, t) {
if (!e && this.node) {
var o = new cc.SpriteFrame(t);
this.spCode.spriteFrame = null;
this.spCode.spriteFrame = o;
}
}.bind(this));
};
t.prototype.downloadUserConfig = function() {
var e = this;
return new Promise(function(t) {
d.default.showLoadingUI();
s.default.userLoginConfig({
agentCode: e._bindData.code || ""
}, function(e) {
d.default.hideLoadingUI();
this._userLoginConfig = e;
if (Array.isArray(e.currencyLanguageDto) && !(e.currencyLanguageDto.length <= 0)) {
this.currencyLabel.node.parent.active = e.currencyLanguageDto.length > 1;
if (1 === e.currencyLanguageDto.length) {
this.onBtnCurrencySelected(null, e.currencyLanguageDto[0]);
var o = this.currencyLabel.node.parent.getChildByName("btnChooseCode").getComponent(cc.Button);
o.interactable = !1;
o.node.getChildByName("spXiala").active = !1;
} else this.createCurrencyList(e.currencyLanguageDto);
t();
}
}.bind(e), function() {
t();
});
});
};
t.prototype.createCurrencyList = function(e) {
for (var t = 0; t < e.length; t++) {
var o = cc.instantiate(this.currencyToggleItem);
o.parent = this.currencyToggleContent;
o.getChildByName("lbBack").getComponent(cc.Label).string = e[t].currencyName;
o.getComponent(cc.Button).clickEvents[0].customEventData = e[t];
o.active = !0;
}
};
t.prototype.areaLanguageFlag = function() {
var e = this;
d.default.showLoadingUI();
return new Promise(function(t) {
s.default.areaLanguageFlag(function(o) {
e.areaLanguageData = o;
e.setAreaCode(o);
d.default.hideLoadingUI();
t();
}, function() {
return r(e, void 0, void 0, function() {
return c(this, function() {
cc.log("===区号接口获取失败");
return [ 2 ];
});
});
});
});
};
t.prototype.setAreaCode = function(e) {
if (e) {
var t = cc.sys.localStorage.getItem("CurrentLanguage");
cc.log("--=lan:", t);
var o = e.filter(function(e) {
if (e.languageFlag === t) return !0;
});
cc.log("====dataArr", JSON.stringify(o));
o.length <= 0 && (o[0] = e[0]);
this.lbAreaCode.string = o[0].languageTranslation + o[0].areaNumber;
this.selectAreaCodeData = o[0];
var n = this.phoneLoginItem.getChildByName("areaCode");
1 == e.length ? n.active = !1 : n.active = !0;
}
};
t.prototype.showItemsFromLoginConfig = function() {
this.nodeItems.active = !0;
this.nodePhoneCode.active = !1;
this.nodeCode.active = !1;
if (0 === parseInt(this._userLoginConfig.isOpenReCode)) {
this.nodeCode.parent = null;
this.nodeCode.parent = this.nodeContent;
this.nodeCode.active = !0;
}
for (var e = this._userLoginConfig.userLoginConfig || [], t = 0; t < e.length; t++) {
var o = e[t], n = null;
if ("phone" === o.registerFieldName) {
this.phoneLoginItem.parent = this.nodeContent;
this.phoneLoginItem.active = !0;
n = this.phoneLoginItem.getChildByName("LoginItem");
this.phoneLoginItem.getChildByName("areaCode");
} else (n = cc.instantiate(this.pfbLoginItem)).parent = this.nodeContent;
var i = n.getChildByName("EditBox").getComponent(cc.EditBox);
n.name = o.registerFieldName;
n.getComponent(cc.Label).string = o.registerName + "：";
i.placeholder = _.t("label_text.inPlease_enter_the") + o.registerName;
if ("phone" === o.registerFieldName) {
i.inputMode = cc.EditBox.InputMode.PHONE_NUMBER;
i.maxLength = 15;
var a = _.t("register_text.inp_phone");
o.isNotNull || (a += "(" + _.t("optional") + ")");
i.placeholder = a;
} else if ("qq" === o.registerFieldName) i.inputMode = cc.EditBox.InputMode.NUMERIC; else if ("agentCode" === o.registerFieldName) {
this.isAgentOn = !0;
n.getComponent(cc.Label).string = _.t("agentCode") + "：";
a = _.t("label_text.inPlease_enter_the") + _.t("agentCode");
o.isNotNull || (a += "(" + _.t("optional") + ")");
i.placeholder = a;
i.maxLength = 15;
this.agentCodeEb = i;
if (this._bindData && this._bindData.code) {
i.string = this._bindData.code;
i.enabled = !1;
}
} else if ("email" === o.registerFieldName) {
this.ebEmailBox = i;
if (this._userLoginConfig.emailSwitch) {
var r = this.ebEmailCode.node.parent;
r.parent = this.nodeContent;
var c = n.getSiblingIndex();
r.setSiblingIndex(c + 1);
}
}
}
if (0 === parseInt(this._userLoginConfig.isOpenPhoneCode)) {
this.nodePhoneCode.parent = null;
this.nodePhoneCode.parent = this.nodeContent;
this.nodePhoneCode.active = !0;
c = this.phoneLoginItem.getSiblingIndex();
this.nodePhoneCode.setSiblingIndex(c + 1);
}
};
t.prototype.onBthAreaCode = function() {
if (this.areaLanguageData) {
this.AreaCodeLayer.active = !0;
for (var e = 0; e < this.areaLanguageData.length; e++) {
var t = this.areaLanguageData[e], o = null;
(o = this.areaContent.children.length > e ? this.areaContent.children[e] : cc.instantiate(this.toggleItem)).getChildByName("labAreaCode").getComponent(cc.Label).string = t.languageTranslation + " " + t.areaNumber;
var n = o.getComponent(cc.Toggle);
n.checkEvents[0].customEventData = t;
o.parent = this.areaContent;
o.active = !0;
t.areaNumber === this.selectAreaCodeData.areaNumber && n.check();
}
}
};
t.prototype.onToggleSelected = function(e, t) {
this.lbAreaCode.string = t.languageTranslation + t.areaNumber;
this.selectAreaCodeData = t;
};
t.prototype.onBtnAreaLayerClose = function() {
this.AreaCodeLayer.active = !1;
};
t.prototype.check = function() {
if (!this.currencyLanguageDto) {
d.default.showToastUI(_.t("register_chooseCurrency"), u.Global.ToastType.Warnning);
return !1;
}
if (0 === this.ebUserName.string.length) {
d.default.showToastUI(_.t("register_text.user_not_mag"), u.Global.ToastType.Warnning);
return !1;
}
if (this.ebUserName.string.length < 6 || this.ebUserName.string.length > 12 || !/\d+/.test(this.ebUserName.string) || !/[a-zA-Z]+/.test(this.ebUserName.string)) {
d.default.showToastUI(_.t("register_text.user_pro"), u.Global.ToastType.Warnning);
return !1;
}
if (/\s/.test(this.ebUserName.string)) {
d.default.showToastUI(_.t("register_text.user_pro"), u.Global.ToastType.Warnning);
return !1;
}
if (/\s/.test(this.ebPossword.string)) {
d.default.showToastUI(_.t("register_text.paw_pro"), u.Global.ToastType.Warnning);
return !1;
}
if (/[^0-9A-Za-z~！\\\\@#￥%&()*-_=+{}[]|;:''"",.<>?]+/g.test(this.ebPossword.string)) {
d.default.showToastUI(_.t("register_text.paw_pro"), u.Global.ToastType.Warnning);
cc.log("===不行");
return !1;
}
if (0 === this.ebPossword.string.length) {
d.default.showToastUI(_.t("login_text.psw_pro"), u.Global.ToastType.Warnning);
return !1;
}
if (this.ebPossword.string.length < 6 || this.ebPossword.string.length > 12) {
d.default.showToastUI(_.t("register_text.paw_pro"), u.Global.ToastType.Warnning);
return !1;
}
if (0 === this.ebConfirm.string.length) {
d.default.showToastUI(_.t("register_text.confirm_paw_pro"), u.Global.ToastType.Warnning);
return !1;
}
if (this.ebConfirm.string !== this.ebPossword.string) {
d.default.showToastUI(_.t("register_text.paw_consistent"), u.Global.ToastType.Warnning);
return !1;
}
if (0 === parseInt(this._userLoginConfig.isOpenReCode) && 0 === this.ebCode.string.length) {
d.default.showToastUI(_.t("register_text.paw_pro"), u.Global.ToastType.Warnning);
return !1;
}
for (var e = this._userLoginConfig.userLoginConfig || [], t = 0; t < e.length; t++) {
var o, n = e[t];
o = "phone" === n.registerFieldName ? this.ebPhoneNum : cc.find(n.registerFieldName + "/EditBox", this.nodeContent).getComponent(cc.EditBox);
if (n.isNotNull) {
if (0 === o.string.length) {
_.t("register_text.No_null");
d.default.showToastUI(n.registerName + _.t("register_text.No_null"), u.Global.ToastType.Warnning);
return !1;
}
if ("phone" === n.registerFieldName && (o.string.length < 6 || o.string.length > 15 || !/^\d+$/.test(o.string))) {
d.default.showToastUI(_.t("register_text.correct_phone"), u.Global.ToastType.Warnning);
return !1;
}
}
}
if (0 === parseInt(this._userLoginConfig.isOpenPhoneCode) && 0 === this.ebPhoneCode.string.length) {
d.default.showToastUI(_.t("register_text.phone_vfy"), u.Global.ToastType.Warnning);
return !1;
}
if (this._userLoginConfig.emailSwitch && !/^[0-9][0-9]{3,5}$/.test(this.ebEmailCode.string)) {
d.default.showToastUI(_.t("register_text.emailcode_error"), u.Global.ToastType.Warnning);
return !1;
}
return !0;
};
t.prototype.initLanguageToggles = function() {
if (Array.isArray(this._languageData) && !(this._languageData.length <= 0)) {
this.languageLabel.node.parent.active = this._languageData.length > 1;
if (1 === this._languageData.length) {
this.onLangToggleSelected(null, this._languageData[0]);
var e = this.languageLabel.node.parent.getChildByName("btn").getComponent(cc.Button);
e.interactable = !1;
e.node.getChildByName("xiala").active = !1;
var t = this._languageData[0];
this.languageLabel.string = t.languageName;
this.languageIcon.url = t.languageUrl;
} else for (var o = cc.sys.localStorage.getItem("CurrentLanguage"), n = 0; n < this._languageData.length; n++) if (1 === (t = this._languageData[n]).status) {
var i = cc.instantiate(this.langToggleItem);
i.parent = this.langToggleContent;
cc.find("lbBack", i).getComponent(cc.Label).string = t.languageName;
i.getChildByName("icon").getComponent(m.default).url = t.languageUrl;
i.active = !0;
i.getComponent(cc.Button).clickEvents[0].customEventData = t;
if (o === t.languageFlag) {
this.languageLabel.string = t.languageName;
this.languageIcon.url = t.languageUrl;
this.onLangToggleSelected(null, t);
}
}
}
};
t.prototype.onLangToggleSelected = function(e, t) {
cc.log("===进入 语言Toggle param：", t);
if (cc.sys.localStorage.getItem("CurrentLanguage") !== t.languageFlag) {
this.languageLabel.string = t.languageName;
this.languageIcon.url = t.languageUrl;
this.nodeLangScroll.active = !1;
h.default.setTags([ t.languageFlag ]);
_.init(t.languageFlag);
cc.sys.localStorage.setItem("CurrentLanguage", t.languageFlag);
cc.sys.localStorage.setItem("OpenRegister", "register");
d.default.showTipUI(_.t("set_text.change_language_tips"), function() {
v.default.restartGame();
}.bind(this), _.t("set_text.restart"));
} else this.nodeLangScroll.active = !1;
};
t.prototype.onCloseLang = function() {
this.nodeLangScroll.active = !1;
};
t.prototype.onBtnCurrencySelected = function(e, t) {
this.currencyTips.active = !1;
this.currencyLanguageDto = t;
this.currencyLabel.string = t.currencyName;
this.nodeCurrencyScroll.active = !1;
};
t.prototype.onBtnChooseLanguage = function() {
this.nodeLangScroll.active = !this.nodeLangScroll.active;
};
t.prototype.onBtnChooseCurrency = function() {
this.nodeCurrencyScroll.active = !this.nodeCurrencyScroll.active;
};
t.prototype.onBtnCloseTips = function() {
this.nodeTips.active = !1;
};
t.prototype.onBtnTips = function() {
this.nodeTips.active = !0;
};
t.prototype.getLanguageData = function() {
var e = this;
return new Promise(function(t) {
d.default.showLoadingUI();
s.default.getLanguageListAll(function(e) {
d.default.hideLoadingUI();
this._languageData = e;
this.initLanguageToggles();
t(e);
}.bind(e), function() {
d.default.hideLoadingUI();
t([]);
}.bind(e));
});
};
t.prototype.goToScrollView = function(e) {
var t = e.node.parent;
this.scrollView.scrollTo(cc.v2(0, t.position.y), .1);
t.stopAllActions();
t.runAction(cc.sequence(cc.scaleTo(.2, 1.1), cc.scaleTo(.2, 1).easing(cc.easeBackOut())));
};
a([ w(cc.Prefab) ], t.prototype, "pfbLoginUI", void 0);
a([ w(cc.Prefab) ], t.prototype, "pfbLoginItem", void 0);
a([ w(cc.Node) ], t.prototype, "nodeItems", void 0);
a([ w(cc.Node) ], t.prototype, "nodeContent", void 0);
a([ w(cc.Node) ], t.prototype, "nodeUserName", void 0);
a([ w(cc.Node) ], t.prototype, "phoneLoginItem", void 0);
a([ w(cc.Button) ], t.prototype, "btnSend", void 0);
a([ w(cc.Button) ], t.prototype, "btnSendEmail", void 0);
a([ w(cc.Label) ], t.prototype, "lbAreaCode", void 0);
a([ w(cc.EditBox) ], t.prototype, "ebPhoneNum", void 0);
a([ w(cc.Node) ], t.prototype, "nodePhoneCode", void 0);
a([ w(cc.EditBox) ], t.prototype, "ebPhoneCode", void 0);
a([ w(cc.Node) ], t.prototype, "nodeCode", void 0);
a([ w(cc.EditBox) ], t.prototype, "ebUserName", void 0);
a([ w(cc.EditBox) ], t.prototype, "ebPossword", void 0);
a([ w(cc.EditBox) ], t.prototype, "ebConfirm", void 0);
a([ w(cc.EditBox) ], t.prototype, "ebCode", void 0);
a([ w(cc.Sprite) ], t.prototype, "spCode", void 0);
a([ w(cc.Label) ], t.prototype, "lbCodeTime", void 0);
a([ w(cc.Node) ], t.prototype, "AreaCodeLayer", void 0);
a([ w(cc.Node) ], t.prototype, "toggleItem", void 0);
a([ w(cc.Node) ], t.prototype, "areaContent", void 0);
a([ w(cc.Label) ], t.prototype, "currencyLabel", void 0);
a([ w(cc.Label) ], t.prototype, "languageLabel", void 0);
a([ w(m.default) ], t.prototype, "languageIcon", void 0);
a([ w(cc.Node) ], t.prototype, "langToggleItem", void 0);
a([ w(cc.Node) ], t.prototype, "langToggleContent", void 0);
a([ w(cc.Node) ], t.prototype, "currencyToggleItem", void 0);
a([ w(cc.Node) ], t.prototype, "currencyToggleContent", void 0);
a([ w(cc.Node) ], t.prototype, "nodeLangScroll", void 0);
a([ w(cc.Node) ], t.prototype, "nodeCurrencyScroll", void 0);
a([ w(cc.Node) ], t.prototype, "nodePosCur", void 0);
a([ w(cc.Node) ], t.prototype, "nodeTips", void 0);
a([ w(cc.Node) ], t.prototype, "currencyTips", void 0);
a([ w(cc.EditBox) ], t.prototype, "ebEmailCode", void 0);
a([ w(cc.ScrollView) ], t.prototype, "scrollView", void 0);
return a([ C ], t);
}(cc.Component);
o.default = I;
cc._RF.pop();
}, {
"../Common/RemoteSprite": "RemoteSprite",
"../Models/Player": "Player",
"../Shared/AddressManager": "AddressManager",
"../Shared/AudioManager": "AudioManager",
"../Shared/Constant": "Constant",
"../Shared/EnterSoundManager": "EnterSoundManager",
"../Shared/Global": "Global",
"../Shared/NetworkLogic": "NetworkLogic",
"../Shared/PackageConfig": "PackageConfig",
"../Shared/SDKManager": "SDKManager",
"../Shared/UIManager": "UIManager",
"../Shared/Utils": "Utils",
LanguageData: "LanguageData"
} ],
RemoteSprite: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "42202nFu6xNt4vU6s8B7DNq", "RemoteSprite");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../Shared/ImageCache"), c = cc._decorator, s = c.ccclass, l = c.property, d = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t._url = "";
return t;
}
Object.defineProperty(t.prototype, "url", {
get: function() {
return this._url;
},
set: function(e) {
this._url = e;
this._url ? r.default.loadImage(this._url, function(e, t) {
!e && this.node && (this.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(t));
}.bind(this)) : this.getComponent(cc.Sprite).spriteFrame = null;
},
enumerable: !1,
configurable: !0
});
t.prototype.start = function() {};
a([ l(cc.String) ], t.prototype, "_url", void 0);
a([ l({
type: cc.String
}) ], t.prototype, "url", null);
return a([ s ], t);
}(cc.Component);
o.default = d;
cc._RF.pop();
}, {
"../Shared/ImageCache": "ImageCache"
} ],
SDKManager: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "529d9+2FFhFmLCYzJ2iOyH4", "SDKManager");
Object.defineProperty(o, "__esModule", {
value: !0
});
var n = e("../../lib/openshare/OpenShare"), i = e("./Global"), a = {
WechatSession: 1,
WechatTimeLine: 2,
WechatFavorite: 3,
QQ: 4,
Qzone: 5
};
cc.sys.os === cc.sys.OS_ANDROID && (a = {
WechatSession: 8,
WechatTimeLine: 9,
WechatFavorite: 10,
QQ: 6,
Qzone: 5
});
var r = new (function() {
function e() {
this.UMSocialPlatformType = {
WechatSession: a.WechatSession,
WechatTimeLine: a.WechatTimeLine,
WechatFavorite: a.WechatFavorite,
QQ: a.QQ,
Qzone: a.Qzone
};
this._shareCallback = null;
this._getUserInfoCallback = null;
this._getInstallParmsCallback = null;
this._alipayCallback = null;
this._getShareInstallParmsCallback = null;
this._getShareTraceParmsCallback = null;
this._getOpenShareParmsCallback = null;
}
e.prototype.shareURL = function(e, t) {
this._shareCallback = t;
if (cc.sys.os === cc.sys.OS_IOS) jsb.reflection.callStaticMethod("SDKManager", "shareURL:addPlatformType:addTitle:addDescribe:addThumbUrl:", e.url, e.platformType, e.title, e.describe, e.thumbUrl); else if (cc.sys.os === cc.sys.OS_ANDROID) jsb.reflection.callStaticMethod("org/cocos2dx/javascript/SDKManager", "shareURL", "(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", e.url, e.platformType, e.title, e.describe, e.thumbUrl); else {
this._shareCallback = null;
cc.log("该方法只支持原生平台");
}
};
e.prototype.getUserInfo = function(e, t) {
this._getUserInfoCallback = t;
if (cc.sys.os === cc.sys.OS_IOS) jsb.reflection.callStaticMethod("SDKManager", "getUserInfo:", e); else if (cc.sys.os === cc.sys.OS_ANDROID) jsb.reflection.callStaticMethod("org/cocos2dx/javascript/SDKManager", "getUserInfo", "(I)V", e); else {
this._getUserInfoCallback = null;
cc.log("该方法只支持原生平台");
}
};
e.prototype.isInstall = function(e) {
return cc.sys.os === cc.sys.OS_IOS ? jsb.reflection.callStaticMethod("SDKManager", "isInstall:", e) : cc.sys.os === cc.sys.OS_ANDROID && jsb.reflection.callStaticMethod("org/cocos2dx/javascript/SDKManager", "isInstall", "(I)Z", e);
};
e.prototype.getInstallParms = function(e) {
this._getInstallParmsCallback = e;
if (cc.sys.os === cc.sys.OS_IOS) jsb.reflection.callStaticMethod("SDKManager", "getInstallParms"); else if (cc.sys.os === cc.sys.OS_ANDROID) jsb.reflection.callStaticMethod("org/cocos2dx/javascript/SDKManager", "getInstallParms", "()V"); else {
this._getInstallParmsCallback = null;
cc.log("该方法只支持原生平台");
}
};
e.prototype.reportRegister = function() {
cc.sys.os === cc.sys.OS_IOS ? jsb.reflection.callStaticMethod("SDKManager", "reportRegister") : cc.sys.os === cc.sys.OS_ANDROID ? jsb.reflection.callStaticMethod("org/cocos2dx/javascript/SDKManager", "reportRegister", "()V") : cc.log("该方法只支持原生平台");
};
e.prototype.reportEffectPoint = function(e, t) {
cc.sys.os === cc.sys.OS_IOS ? jsb.reflection.callStaticMethod("SDKManager", "reportEffectPoint:effectValue:", e, t) : cc.sys.os === cc.sys.OS_ANDROID ? jsb.reflection.callStaticMethod("org/cocos2dx/javascript/SDKManager", "reportEffectPoint", "(Ljava/lang/String;I)V", e, t) : cc.log("该方法只支持原生平台");
};
e.prototype.getRegistrationID = function() {
if (cc.sys.os === cc.sys.OS_IOS) return jsb.reflection.callStaticMethod("SDKManager", "getRegistrationID");
if (cc.sys.os === cc.sys.OS_ANDROID) return jsb.reflection.callStaticMethod("org/cocos2dx/javascript/SDKManager", "getRegistrationID", "()Ljava/lang/String;");
cc.log("该方法只支持原生平台");
return "该方法只支持原生平台";
};
e.prototype.getOpenShareKey = function() {
if (cc.sys.os === cc.sys.OS_IOS) return jsb.reflection.callStaticMethod("SDKManager", "getOpenShareKey");
if (cc.sys.os === cc.sys.OS_ANDROID) return jsb.reflection.callStaticMethod("org/cocos2dx/javascript/SDKManager", "getOpenShareKey", "()Ljava/lang/String;");
cc.log("该方法只支持原生平台");
return "该方法只支持原生平台";
};
e.prototype.setBadge = function(e) {
cc.sys.os === cc.sys.OS_IOS ? jsb.reflection.callStaticMethod("SDKManager", "setBadge:", e) : cc.sys.os === cc.sys.OS_ANDROID ? jsb.reflection.callStaticMethod("org/cocos2dx/javascript/SDKManager", "setBadge", "(I)V", e) : cc.log("该方法只支持原生平台");
};
e.prototype.setAlias = function(e) {
cc.sys.os === cc.sys.OS_IOS ? jsb.reflection.callStaticMethod("SDKManager", "setAlias:", e) : cc.sys.os === cc.sys.OS_ANDROID ? jsb.reflection.callStaticMethod("org/cocos2dx/javascript/SDKManager", "setAlias", "(Ljava/lang/String;)V", e) : cc.log("该方法只支持原生平台");
};
e.prototype.deleteAlias = function() {
cc.sys.os === cc.sys.OS_IOS ? jsb.reflection.callStaticMethod("SDKManager", "deleteAlias") : cc.sys.os === cc.sys.OS_ANDROID ? jsb.reflection.callStaticMethod("org/cocos2dx/javascript/SDKManager", "deleteAlias", "()V") : cc.log("该方法只支持原生平台");
};
e.prototype.setTags = function(e) {
var t = JSON.stringify(e);
cc.sys.os === cc.sys.OS_IOS ? jsb.reflection.callStaticMethod("SDKManager", "setTags:", t) : cc.sys.os === cc.sys.OS_ANDROID ? jsb.reflection.callStaticMethod("org/cocos2dx/javascript/SDKManager", "setTags", "(Ljava/lang/String;)Z", t) : cc.log("该方法只支持原生平台");
};
e.prototype.addTags = function(e) {
var t = JSON.stringify(e);
cc.sys.os === cc.sys.OS_IOS ? jsb.reflection.callStaticMethod("SDKManager", "addTags:", t) : cc.sys.os === cc.sys.OS_ANDROID ? jsb.reflection.callStaticMethod("org/cocos2dx/javascript/SDKManager", "addTags", "(Ljava/lang/String;)Z", t) : cc.log("该方法只支持原生平台");
};
e.prototype.cleanTags = function() {
cc.sys.os === cc.sys.OS_IOS ? jsb.reflection.callStaticMethod("SDKManager", "cleanTags") : cc.sys.os === cc.sys.OS_ANDROID ? jsb.reflection.callStaticMethod("org/cocos2dx/javascript/SDKManager", "cleanTags", "()Z") : cc.log("该方法只支持原生平台");
};
e.prototype.alipay = function(e, t) {
this._alipayCallback = t;
cc.sys.os === cc.sys.OS_IOS ? jsb.reflection.callStaticMethod("SDKManager", "alipay:", e) : cc.sys.os === cc.sys.OS_ANDROID ? jsb.reflection.callStaticMethod("org/cocos2dx/javascript/SDKManager", "alipay", "(Ljava/lang/String;)V", e) : cc.log("该方法只支持原生平台");
};
e.prototype.onShareResult = function(e) {
"function" == typeof this._shareCallback && this._shareCallback(e);
this._shareCallback = null;
};
e.prototype.onGetUserInfo = function(e) {
"function" == typeof this._getUserInfoCallback && this._getUserInfoCallback(e);
this._getUserInfoCallback = null;
};
e.prototype.onGetInstallParms = function(e) {
"function" == typeof this._getInstallParmsCallback && this._getInstallParmsCallback(e);
this._getInstallParmsCallback = null;
};
e.prototype.onGetWakeUpParams = function(e) {
cc.log("wake up parms:" + (e ? JSON.stringify(e) : ""));
cc.director.emit(i.Global.UserEvent.GetWakeUpParams, e);
};
e.prototype.onAlipay = function(e) {
"function" == typeof this._alipayCallback && this._alipayCallback(e);
this._alipayCallback = null;
};
e.prototype.onGetShareInstall = function(e) {
"function" == typeof this._getShareInstallParmsCallback && this._getShareInstallParmsCallback(e);
this._getShareInstallParmsCallback = null;
};
e.prototype.shareInstallReportRegister = function() {
cc.sys.os === cc.sys.OS_IOS ? jsb.reflection.callStaticMethod("SDKManager", "shareInstallReportRegister") : cc.sys.os === cc.sys.OS_ANDROID ? jsb.reflection.callStaticMethod("org/cocos2dx/javascript/SDKManager", "shareInstallReportRegister", "()V") : cc.log("该方法只支持原生平台");
};
e.prototype.getOpenShareSDK = function(e) {
this._getOpenShareParmsCallback = e;
if (cc.sys.os === cc.sys.OS_IOS) {
cc.log("===进入getShareTraceParm");
jsb.reflection.callStaticMethod("SDKManager", "getOpenShareSDKParam");
} else if (cc.sys.os === cc.sys.OS_ANDROID) jsb.reflection.callStaticMethod("org/cocos2dx/javascript/SDKManager", "getOpenShareSDKParam", "()V"); else {
this._getOpenShareParmsCallback = null;
cc.log("该方法只支持原生平台");
}
};
e.prototype.onGetShareTrace = function(e) {
cc.log("===sharetrace 回调参数data:", e);
if ("function" == typeof this._getShareTraceParmsCallback) {
for (var t = {}, o = (e.paramsData, e.paramsData.split("&")), n = 0; n < o.length; n++) {
var i = o[n].split("=");
t[i[0]] = i[1];
}
this._getShareTraceParmsCallback(t);
}
this._getShareTraceParmsCallback = null;
};
e.prototype.onGetOpenShareSDK = function(e) {
console.log("===onGetOpenShareSDK 回调参数data:", JSON.stringify(e));
if ("function" == typeof this._getOpenShareParmsCallback) {
i.Global.paramsdata = JSON.stringify(e);
var t = JSON.stringify(e), o = {};
if (t) {
t.replace("{", "");
t.replace("}", "");
for (var n = t.split(","), a = 0; a < n.length; a++) {
var r = n[a].split(":");
o[r[0].replace('"', "").replace("{", "").replace('"', "").trim()] = r[1].replace('"', "").replace("}", "").replace('"', "").trim();
}
}
cc.log("===第4步paramsData:" + o);
i.Global.pasedata = JSON.stringify(o);
this._getOpenShareParmsCallback(o);
}
this._getOpenShareParmsCallback = null;
};
e.prototype.openShareLib = function(e) {
this._getOpenShareParmsCallback = e;
if (cc.sys.os === cc.sys.OS_IOS) n.openShare.getShareParams(this._getOpenShareParmsCallback); else if (cc.sys.os === cc.sys.OS_ANDROID) n.openShare.getShareParams(this._getOpenShareParmsCallback); else {
this._getOpenShareParmsCallback = null;
cc.log("该方法只支持原生平台");
}
};
return e;
}())();
window.SDKManager = r;
o.default = r;
cc._RF.pop();
}, {
"../../lib/openshare/OpenShare": "OpenShare",
"./Global": "Global"
} ],
SHORT_BU66_SDK: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "c2d670fkfNObZcT1yUbV04R", "SHORT_BU66_SDK");
Object.defineProperty(o, "__esModule", {
value: !0
});
var n = function() {
function e() {
this._apikey = "302631-2212-BDB";
this._apisecret = "b46112b9129082e7419f0509de296f95";
this.action = "add";
this._server = "https://api.bu66.com/api/" + this.action + "?apikey=" + this._apikey + "&apisecret=" + this._apisecret;
}
e.prototype.api = function() {};
e.prototype.sendShortBu66 = function(e, t) {
var o = this;
return new Promise(function(n) {
o.action = e;
var i = o._server, a = {
link: t,
info: "subo"
}, r = new XMLHttpRequest();
r.onload = function() {
if (200 === r.status) {
cc.sys.isBrowser ? cc.log("=====短链接收到数据:", r.response) : cc.log("=====短链接收到数据:", JSON.stringify(r.response));
n(r.response);
} else {
cc.error("请求失败：status=" + r.status);
n(!1);
}
};
r.onerror = function() {
cc.error("===请求短链接网络错误");
n(!1);
};
r.timeout = 8e3;
r.ontimeout = function() {
cc.error("====sendShortBu66请求超时");
n(!1);
};
r.open("POST", i, !0);
var c = JSON.stringify(a);
r.send(c);
});
};
return e;
}();
o.default = new n();
cc._RF.pop();
}, {} ],
ScoreCheck: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "31d39KyO4xH+YFscqNGNjEP", "ScoreCheck");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/NetworkLogic"), c = e("../../Models/Player"), s = e("../../Shared/UIManager"), l = e("../../Shared/AudioManager"), d = cc._decorator, u = d.ccclass, p = d.property, h = e("LanguageData"), f = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.sp1 = null;
t.sp2 = null;
t.content = null;
t.item = null;
t.empty = null;
t.scoreDetails = null;
t.editBox = null;
t.secondData = {};
t.data = null;
return t;
}
t.prototype.onLoad = function() {
this.content.getChildByName("sp0").active = !1;
};
t.prototype.start = function() {
this.check("");
};
t.prototype.check = function(e) {
for (var t = 0; t < this.content.children.length; t++) this.content.children[t].active = !1;
var o = {
gameType: 0,
stlmDate: "",
userId: e
};
s.default.showLoadingUI();
r.default.agentPerformance(o, 1, 9999, function(e) {
s.default.hideLoadingUI();
console.log("===收到直属业绩re：", e);
this.data = e;
this.showItem(e);
}.bind(this), function() {
console.log("===直属业绩错误");
}.bind(this));
};
t.prototype.showItem = function(e) {
e.length > 0 ? this.empty.active = !1 : this.empty.active = !0;
for (var t = 0; t < e.length; t++) {
if (this.content.children.length > e.length) for (var o = e.length; o < this.content.children.length; o++) this.content.children[o].active = !1;
var n = null;
t < this.content.children.length ? n = this.content.children[t] : (n = cc.instantiate(this.item)).parent = this.content;
n.getChildByName("bg").getComponent(cc.Sprite).spriteFrame = t % 2 == 0 ? this.sp1 : this.sp2;
n.getChildByName("labName").getComponent(cc.Label).string = e[t].stlmDate;
n.getChildByName("labTotal").getComponent(cc.Label).string = e[t].newSubordinateReturnNumber;
n.getChildByName("labRat").getComponent(cc.Label).string = e[t].newTeamTotalNumber;
n.getChildByName("labMoney").getComponent(cc.Label).string = (c.default.getPy("currencySymbol") ? c.default.getPy("currencySymbol") : h.t("currency_symbol")) + e[t].subordinateReturnMoney;
n.getChildByName("labMoney copy").getComponent(cc.Label).string = (c.default.getPy("currencySymbol") ? c.default.getPy("currencySymbol") : h.t("currency_symbol")) + e[t].noSubordinateReturnMoney;
n.getChildByName("labTotalReturn").getComponent(cc.Label).string = (c.default.getPy("currencySymbol") ? c.default.getPy("currencySymbol") : h.t("currency_symbol")) + e[t].returnAllMoney;
n.getChildByName("New Button").getComponent(cc.Button).clickEvents[0].customEventData = e[t].stlmDate + "," + e[t].userId;
n.active = !0;
}
};
t.prototype.onBtnClick = function(e, t) {
l.default.playSound("button");
if ("cx" === t) this.check(this.editBox.string); else if ("cz" === t) {
this.editBox.string = "";
this.check("");
}
};
t.prototype.onDetailsClick = function(e, t) {
l.default.playSound("button");
var o = t.split(","), n = cc.instantiate(this.scoreDetails);
n.parent = cc.Canvas.instance.node;
var i = n.getComponent("ScoreDetails");
i.userID = o[1];
i.stlmDate = o[0];
i.checkUpdate();
};
a([ p(cc.SpriteFrame) ], t.prototype, "sp1", void 0);
a([ p(cc.SpriteFrame) ], t.prototype, "sp2", void 0);
a([ p(cc.Node) ], t.prototype, "content", void 0);
a([ p(cc.Node) ], t.prototype, "item", void 0);
a([ p(cc.Node) ], t.prototype, "empty", void 0);
a([ p(cc.Prefab) ], t.prototype, "scoreDetails", void 0);
a([ p(cc.EditBox) ], t.prototype, "editBox", void 0);
return a([ u ], t);
}(cc.Component);
o.default = f;
cc._RF.pop();
}, {
"../../Models/Player": "Player",
"../../Shared/AudioManager": "AudioManager",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
LanguageData: "LanguageData"
} ],
ScoreDetails: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "c88catoLM5NmoBdR162Nx8W", "ScoreDetails");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/NetworkLogic"), c = e("../../Shared/UIManager"), s = e("../../Shared/AudioManager"), l = e("../../Models/Player"), d = e("LanguageData"), u = cc._decorator, p = u.ccclass, h = u.property, f = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.togItem = null;
t.sp1 = null;
t.sp2 = null;
t.scrollV = null;
t.toCont = null;
t.content = null;
t.nodata = null;
t.totalBet = null;
t.totalReturn = null;
t.userID = "";
t.stlmDate = "";
return t;
}
t.prototype.checkUpdate = function() {
c.default.showLoadingUI();
r.default.agentGetGameCategoryAndGamePlatform({}, function(e) {
c.default.hideLoadingUI();
console.log("===做二级界面GameCategory：", e);
var t = [];
this.toCont.node.destroyAllChildren();
for (var o = 0; o < e.length; o++) t.push({
gameTitleCn: e[o].gameTitleCn,
id: o + 1
});
for (o = 0; o < t.length; o++) {
var n = cc.instantiate(this.togItem);
n.parent = this.toCont.node;
n.getChildByName("lab0").getComponent(cc.Label).string = t[o].gameTitleCn;
n.getComponent(cc.Toggle).checkEvents[0].customEventData = t[o].id;
n.active = !0;
}
var i = this.toCont.toggleItems[0];
i.check();
i.checkEvents[0].emit([ i.checkEvents[0].customEventData ]);
this.scrollV.scrollToLeft();
}.bind(this), function(e) {
console.log("===代理错误err:", e);
});
};
t.prototype.onEnable = function() {};
t.prototype.updataUI = function(e) {
if (e.length > 0) {
this.nodata.active = !1;
this.content.active = !0;
if (this.content.children.length > e.length) for (var t = e.length; t < this.content.children.length; t++) this.content.children[t].active = !1;
for (t = 0; t < e.length; t++) {
var o = e[t], n = null;
(n = t < this.content.children.length ? this.content.children[t] : cc.instantiate(this.content.children[0])).parent = this.content;
n.getChildByName("bg").getComponent(cc.Sprite).spriteFrame = t % 2 == 0 ? this.sp1 : this.sp2;
n.getChildByName("soubUserId").getComponent(cc.Label).string = o.soubUserId;
n.getChildByName("relationship").getComponent(cc.Label).string = 1 === o.relationship ? d.t("BasicsJS.directly") : d.t("BasicsJS.not_directly");
n.getChildByName("validBetNumber").getComponent(cc.Label).string = l.default.getPy("currencySymbol") + o.validBetNumber;
var i = o.brokerageRate + "%", a = i;
if (o.relationship > 2) for (var r = 0; r < o.relationship - 2; r++) a = a + "*" + i;
n.getChildByName("brokerageRate").getComponent(cc.Label).string = a;
n.getChildByName("returnMoney").getComponent(cc.Label).string = l.default.getPy("currencySymbol") + o.returnAllMoney;
n.active = !0;
}
} else {
this.nodata.active = !0;
this.content.active = !1;
}
};
t.prototype.onTitleClick = function(e, t) {
s.default.playSound("button");
var o = {
gameType: t,
stlmDate: this.stlmDate,
userId: this.userID
};
c.default.showLoadingUI();
r.default.agentGameDetail(o, 1, 9999, function(e) {
console.log("===做二级界面item 赋值 gentGameDetail：", e);
r.default.agentDayGameReturnInfoTotal(o, function(e) {
console.log("===做二级界面总计 re：", e);
this.totalBet.string = l.default.getPy("currencySymbol") + e.validBetNumber;
this.totalReturn.string = l.default.getPy("currencySymbol") + e.returnAllMoney;
c.default.hideLoadingUI();
}.bind(this), function(e) {
c.default.hideLoadingUI();
console.log("===代理错误err:", e);
});
this.updataUI(e.returnBrokerageInfoDtos);
}.bind(this), function(e) {
console.log("===代理错误err:", e);
});
};
t.prototype.onBtnClose = function() {
s.default.playSound("close");
this.node.destroy();
};
a([ h(cc.Node) ], t.prototype, "togItem", void 0);
a([ h(cc.SpriteFrame) ], t.prototype, "sp1", void 0);
a([ h(cc.SpriteFrame) ], t.prototype, "sp2", void 0);
a([ h(cc.ScrollView) ], t.prototype, "scrollV", void 0);
a([ h(cc.ToggleContainer) ], t.prototype, "toCont", void 0);
a([ h(cc.Node) ], t.prototype, "content", void 0);
a([ h(cc.Node) ], t.prototype, "nodata", void 0);
a([ h(cc.Label) ], t.prototype, "totalBet", void 0);
a([ h(cc.Label) ], t.prototype, "totalReturn", void 0);
return a([ p ], t);
}(cc.Component);
o.default = f;
cc._RF.pop();
}, {
"../../Models/Player": "Player",
"../../Shared/AudioManager": "AudioManager",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
LanguageData: "LanguageData"
} ],
SelectBankLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "b3382h5tH9PmJZ/kptObJN8", "SelectBankLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/AudioManager"), c = cc._decorator, s = c.ccclass, l = c.property, d = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.lytContent = null;
t.animation = null;
t.nodeTemplate = null;
t.toggleContainer = null;
t.bankList = [];
t.selectedIndex = 0;
t.callback = null;
return t;
}
t.prototype.onLoad = function() {
this.nodeTemplate.parent = null;
this.node.active = !1;
};
t.prototype.onEnable = function() {
this.animation.play();
this.lytContent.node.destroyAllChildren();
for (var e = function(e) {
var o = t.bankList[e], n = cc.instantiate(t.nodeTemplate);
n.parent = t.lytContent.node;
n.getChildByName("name").getComponent(cc.Label).string = o.bankname;
n.getChildByName("account").getComponent(cc.Label).string = o.bankNum;
o.logoUrl && cc.assetManager.loadRemote(o.logoUrl, {
ext: ".png"
}, function(e, t) {
!e && n && n.isValid && (n.getChildByName("icon").getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(t));
}.bind(t));
t.selectedIndex === e && t.scheduleOnce(function() {
n.getComponent(cc.Toggle).isChecked = !0;
}, .01);
}, t = this, o = 0; o < this.bankList.length; o++) e(o);
};
t.prototype.onDestroy = function() {
this.nodeTemplate.destroy();
};
t.prototype.onBtnClick = function(e, t) {
if ("close" === t) {
r.default.playSound("close");
this.animation.play("exit_select_bank");
} else if ("select" === t) {
this.animation.play("exit_select_bank");
for (var o = 0; o < this.toggleContainer.toggleItems.length; o++) if (this.toggleContainer.toggleItems[o].isChecked && this.callback) {
this.callback(o);
break;
}
}
};
t.prototype.onExitAnimationEnd = function() {
this.node.active = !1;
};
a([ l(cc.Layout) ], t.prototype, "lytContent", void 0);
a([ l(cc.Animation) ], t.prototype, "animation", void 0);
a([ l(cc.Node) ], t.prototype, "nodeTemplate", void 0);
a([ l(cc.ToggleContainer) ], t.prototype, "toggleContainer", void 0);
a([ l([]) ], t.prototype, "bankList", void 0);
a([ l({
type: cc.Integer,
visible: !1
}) ], t.prototype, "selectedIndex", void 0);
return a([ s ], t);
}(cc.Component);
o.default = d;
cc._RF.pop();
}, {
"../../Shared/AudioManager": "AudioManager"
} ],
SelfHelpWithdrawalLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "e6146kDhCFFTJJ4YFWFjjUx", "SelfHelpWithdrawalLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("./IWithdrawalLayer"), c = e("../../Shared/UIManager"), s = e("../../Shared/NetworkLogic"), l = e("../../Common/CommonToggleContainer"), d = e("../../Common/ToggleItem"), u = e("./SelectBankLayer"), p = e("../../Models/Player"), h = e("../../Shared/Global"), f = e("LanguageData"), g = cc._decorator, y = g.ccclass, m = g.property, v = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.toggleContainerParent = null;
t.toggleContainer = null;
t.selectBankLayer = null;
t.nodeInfo = null;
t.nodeTixianMima = null;
t.nodeInputPossword = null;
t.nodeBankCard = null;
t.nodeNoBankCard = null;
t.ebMoney = null;
t.ebPassword = null;
t.ebPasswordConfirm = null;
t.ebInputPassword = null;
t.lbMoneyLmit = null;
t.sliderMoney = null;
t.lbPercent = null;
t.lbtips = null;
t.lbChangeBank = null;
t.lbMoneySymbol = null;
t.lbMoney = null;
t.lbUsdtRate = null;
t.lbUsdtMoney = null;
t.lbRate = null;
t.currencyType = null;
t.currencySymbol = null;
t.progressBar = null;
t.lbProgress = null;
t.lbDml = null;
t._bankIndex = 0;
t._hasPassword = !1;
t._moneyOutLimit = [];
t.bWitdrawInt = !1;
return t;
}
t.prototype.onLoad = function() {
this.nodeInfo.active = !0;
this.nodeTixianMima.active = !1;
this.nodeInputPossword.active = !1;
this.selectBankLayer.node.active = !0;
this.selectBankLayer.node.active = !1;
this.nodeBankCard.active = !1;
this.nodeNoBankCard.active = !1;
};
t.prototype.start = function() {};
t.prototype.onEnable = function() {
this.progressBar.progress = 0;
this.nodeInfo.active = !0;
this.nodeTixianMima.active = !1;
this.nodeInputPossword.active = !1;
this.ebMoney.string = "";
this.ebInputPassword.string = "";
this.setSliderProgress(0);
this.pullGetMoneyOutlimit();
};
t.prototype.onDisable = function() {
this.toggleContainer.node.destroyAllChildren();
};
t.prototype.onBtnClick = function(e, t) {
if ("clear" === t) {
this.setSliderProgress(0);
this.onSlider();
} else if ("max" === t) {
this.setSliderProgress(1);
this.onSlider();
} else if ("addBank" === t) this.toggleContainerParent.selectToggle(this.toggleContainerParent.node.children[2].getComponent(d.default)); else if ("tixian" === t) {
if (!this.ebMoney.string) {
c.default.showToastUI(f.t("BasicsJS.amount_not_null"), h.Global.ToastType.Warnning);
return;
}
if (parseFloat(this.ebMoney.string) <= 0) {
c.default.showToastUI(f.t("WithdrawLayer.more_than_0"), h.Global.ToastType.Warnning);
return;
}
var o = this.toggleContainer.checkedToggle.userData.bankList;
if (o) {
this.nodeInfo.active = !1;
p.default.getPy("isSetDrawPassword") ? this.nodeInputPossword.active = !0 : this.nodeTixianMima.active = !0;
this.lbMoneySymbol.string = p.default.getPy("currencySymbol");
this.lbMoney.string = "" + this.ebMoney.string;
if (3 === o[this._bankIndex].type) {
this.lbUsdtRate.node.parent.active = !0;
this.lbUsdtMoney.node.parent.active = !0;
this.lbUsdtRate.string = "" + o[this._bankIndex].virtualMoneyRate;
this.lbUsdtMoney.string = "" + (parseFloat(this.ebMoney.string) / o[this._bankIndex].virtualMoneyRate).toFixed(2);
} else {
this.lbUsdtRate.node.parent.active = !1;
this.lbUsdtMoney.node.parent.active = !1;
}
} else c.default.showToastUI(f.t("BasicsJS.Qbind") + this.toggleContainer.checkedToggle.userData.label, h.Global.ToastType.Warnning);
} else if ("changeBank" === t) {
this.selectBankLayer.bankList = this.toggleContainer.checkedToggle.userData.bankList;
this.selectBankLayer.selectedIndex = this._bankIndex;
this.selectBankLayer.node.active = !0;
this.selectBankLayer.callback = function(e) {
this._bankIndex = e;
this.refreshBankData();
}.bind(this);
} else if ("tijiao" === t) {
if (!this.ebPassword.string) {
c.default.showToastUI(f.t("set_text.tx_paw_null"), h.Global.ToastType.Warnning);
return;
}
if (!this.ebPasswordConfirm.string) {
c.default.showToastUI(f.t("set_text.con_tx_paw"), h.Global.ToastType.Warnning);
return;
}
if (this.ebPassword.string !== this.ebPasswordConfirm.string) {
c.default.showToastUI(f.t("set_text.tx_paw_consistent"), h.Global.ToastType.Warnning);
return;
}
if (6 !== this.ebPassword.string.length) {
c.default.showToastUI(f.t("set_text.tx_paw_limit"), h.Global.ToastType.Warnning);
return;
}
s.default.setDrawingPassword("", this.ebPasswordConfirm.string, function() {
this.nodeTixianMima.active = !1;
this.nodeInputPossword.active = !0;
p.default.setPy("isSetDrawPassword", !0);
}.bind(this));
} else if ("clearPossword0" === t) this.ebInputPassword.string = ""; else if ("clearPossword1" === t) this.ebPassword.string = ""; else if ("clearPossword2" === t) this.ebPasswordConfirm.string = ""; else if ("tixianConfirm" === t) {
if (-1 !== p.default.getPy("visitorFillInfoTime").indexOf("4") && 2 === p.default.getPy("userType")) {
var n = cc.find("Canvas/gameNode").getComponent("HallUI");
n.openChildUI(n.pfbLoginCompleteInformation);
return;
}
this.sendTixianRequest(0);
} else if ("pre1" === t) {
this.nodeInfo.active = !0;
this.nodeTixianMima.active = !1;
} else if ("pre2" === t) {
this.nodeInfo.active = !0;
this.nodeInputPossword.active = !1;
}
};
t.prototype.onTextChanged = function() {
this.ebMoney.string = Math.max(0, Math.min(p.default.getPy("money"), parseFloat(this.ebMoney.string) || 0)).toString();
if (this.bWitdrawInt) {
this.ebMoney.string = parseInt(this.ebMoney.string).toString();
this.setSliderProgress(0 === p.default.getPy("money") ? 0 : parseInt(this.ebMoney.string) / p.default.getPy("money"));
} else this.setSliderProgress(0 === p.default.getPy("money") ? 0 : parseFloat(this.ebMoney.string) / p.default.getPy("money"));
this.refreshRate();
};
t.prototype.onSlider = function() {
var e = this.sliderMoney.progress;
this.lbPercent.string = Math.round(100 * e).toString() + "%";
if (this.bWitdrawInt) {
this.ebMoney.string = (p.default.getPy("money") * e).toFixed(0);
"0" === this.ebMoney.string && (this.ebMoney.string = "");
} else {
this.ebMoney.string = (p.default.getPy("money") * e).toFixed(2).toString();
"0.00" === this.ebMoney.string && (this.ebMoney.string = "");
}
this.refreshRate();
};
t.prototype.onToggleSelected = function(e) {
this.setSliderProgress(0);
this.onSlider();
this.bWitdrawInt = e.userData.isInt;
this._bankIndex = 0;
this.lbtips.string = f.t("BasicsJS.moment_not_bind") + e.userData.label + "，" + f.t("BasicsJS.QgoBind");
this.lbChangeBank.string = f.t("BasicsJS.replace") + e.userData.label;
if (0 === (e.userData.bankList || []).length) {
this.nodeBankCard.active = !1;
this.nodeNoBankCard.active = !0;
} else {
this.nodeBankCard.active = !0;
this.nodeNoBankCard.active = !1;
this.refreshBankData();
}
this.refreshMoneyLimit(parseInt(e.userData.value));
this.refreshRate();
};
t.prototype.pullGetMoneyOutlimit = function() {
c.default.showLoadingUI();
s.default.getMoneyOutlimit(function(e) {
this._moneyOutLimit = e;
s.default.getAllPaymentByUser(function(e) {
c.default.hideLoadingUI();
var t = Number.parseFloat(e.dmlPercentage);
this.lbProgress.string = e.dmlPercentage + "%";
this.lbDml.string = e.surplusDml >= 1 ? p.default.getPy("currencySymbol") + " " + e.surplusDml : "-";
this.progressBar.progress = t > 0 ? .01 * t : 0;
this.createToggles(e.accountList);
}.bind(this));
}.bind(this), function(e) {
!e && c.default.showChangeDomainUI(function() {
this.pullGetMoneyOutlimit();
}.bind(this));
}.bind(this));
};
t.prototype.refreshMoneyLimit = function(e) {
if (this._moneyOutLimit[e]) {
var t = this._moneyOutLimit[e].limitOfPayment.split("-");
2 === t.length && (this.lbMoneyLmit.string = f.t("BasicsJS.WithdrawalAmount") + " " + p.default.getPy("currencySymbol") + t[0] + "-" + p.default.getPy("currencySymbol") + t[1] + f.t("BasicsJS.between"));
cc.log("===limit :%s,== %s", t[0], t[1]);
}
};
t.prototype.setSliderProgress = function(e) {
this.sliderMoney.progress = e;
this.lbPercent.string = Math.round(100 * e).toString() + "%";
};
t.prototype.createToggles = function(e) {
var t = this;
e.forEach(function(e) {
t.toggleContainer.addDefaultToggle(e.label, e);
});
};
t.prototype.refreshBankData = function() {
var e = this.toggleContainer.checkedToggle.userData.bankList[this._bankIndex];
this.nodeBankCard.getChildByName("name").getComponent(cc.Label).string = e.bankname;
this.nodeBankCard.getChildByName("account").getComponent(cc.Label).string = e.bankNum;
e.logoUrl && cc.assetManager.loadRemote(e.logoUrl, {
ext: ".png"
}, function(e, t) {
this.node && (this.nodeBankCard.getChildByName("icon").getComponent(cc.Sprite).spriteFrame = e ? null : new cc.SpriteFrame(t));
}.bind(this));
};
t.prototype.sendTixianRequest = function(e) {
if (this.ebInputPassword.string) if (this.ebInputPassword.string.length < 6) c.default.showToastUI(f.t("set_text.tx_paw_limit"), h.Global.ToastType.Warnning); else {
var t = this.toggleContainer.checkedToggle.userData.bankList[this._bankIndex];
c.default.showLoadingUI();
s.default.applyPaymentout({
bankNo: t.bankNo,
money: this.ebMoney.string || 0,
type: t.type,
outMoneyFlag: e,
payPwd: this.ebInputPassword.string
}, function() {
c.default.hideLoadingUI();
c.default.showToastUI(f.t("BasicsJS.request_submit"), h.Global.ToastType.OK);
this.nodeInfo.active = !0;
this.nodeInputPossword.active = !1;
}.bind(this), function(e) {
if (e && "201" === e.code) {
c.default.hideToastUI();
c.default.showConfirmUI(e.msg.replace(/&/g, "\n"), function() {
this.sendTixianRequest(1);
}.bind(this), f.t("BasicsJS.ContinueToCarry"), null, f.t("BasicsJS.GiveUpWithdrawal"));
}
}.bind(this));
} else c.default.showToastUI(f.t("set_text.tx_paw_null"), h.Global.ToastType.Warnning);
};
t.prototype.refreshRate = function() {
if (3 === parseInt(this.toggleContainer.checkedToggle.userData.value)) this.lbRate.node.active = !1; else {
this.lbRate.node.active = !1;
this.currencyType.string = p.default.getPy("currencyName");
this.currencyType.node.position = cc.v2(this.currencyType.node.parent.width, this.currencyType.node.position.y);
this.currencySymbol.string = p.default.getPy("currencySymbol");
}
};
a([ m(l.default) ], t.prototype, "toggleContainerParent", void 0);
a([ m(l.default) ], t.prototype, "toggleContainer", void 0);
a([ m(u.default) ], t.prototype, "selectBankLayer", void 0);
a([ m(cc.Node) ], t.prototype, "nodeInfo", void 0);
a([ m(cc.Node) ], t.prototype, "nodeTixianMima", void 0);
a([ m(cc.Node) ], t.prototype, "nodeInputPossword", void 0);
a([ m(cc.Node) ], t.prototype, "nodeBankCard", void 0);
a([ m(cc.Node) ], t.prototype, "nodeNoBankCard", void 0);
a([ m(cc.EditBox) ], t.prototype, "ebMoney", void 0);
a([ m(cc.EditBox) ], t.prototype, "ebPassword", void 0);
a([ m(cc.EditBox) ], t.prototype, "ebPasswordConfirm", void 0);
a([ m(cc.EditBox) ], t.prototype, "ebInputPassword", void 0);
a([ m(cc.Label) ], t.prototype, "lbMoneyLmit", void 0);
a([ m(cc.Slider) ], t.prototype, "sliderMoney", void 0);
a([ m(cc.Label) ], t.prototype, "lbPercent", void 0);
a([ m(cc.Label) ], t.prototype, "lbtips", void 0);
a([ m(cc.Label) ], t.prototype, "lbChangeBank", void 0);
a([ m(cc.Label) ], t.prototype, "lbMoneySymbol", void 0);
a([ m(cc.Label) ], t.prototype, "lbMoney", void 0);
a([ m(cc.Label) ], t.prototype, "lbUsdtRate", void 0);
a([ m(cc.Label) ], t.prototype, "lbUsdtMoney", void 0);
a([ m(cc.Label) ], t.prototype, "lbRate", void 0);
a([ m(cc.Label) ], t.prototype, "currencyType", void 0);
a([ m(cc.Label) ], t.prototype, "currencySymbol", void 0);
a([ m(cc.ProgressBar) ], t.prototype, "progressBar", void 0);
a([ m(cc.Label) ], t.prototype, "lbProgress", void 0);
a([ m(cc.Label) ], t.prototype, "lbDml", void 0);
return a([ y ], t);
}(r.default);
o.default = v;
cc._RF.pop();
}, {
"../../Common/CommonToggleContainer": "CommonToggleContainer",
"../../Common/ToggleItem": "ToggleItem",
"../../Models/Player": "Player",
"../../Shared/Global": "Global",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
"./IWithdrawalLayer": "IWithdrawalLayer",
"./SelectBankLayer": "SelectBankLayer",
LanguageData: "LanguageData"
} ],
Semver: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "adf8eTJ/KlHtYr6ujdD8j3I", "Semver");
var n = this && this.__assign || function() {
return (n = Object.assign || function(e) {
for (var t, o = 1, n = arguments.length; o < n; o++) {
t = arguments[o];
for (var i in t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
}
return e;
}).apply(this, arguments);
};
Object.defineProperty(o, "__esModule", {
value: !0
});
o.semver = void 0;
var i = new (function() {
function e() {}
e.prototype.version = function(e, t) {
if (!isNaN(+t.charAt(0))) {
var o = this.parseVersion(e), n = this.parseVersion(t);
return 0 === this.compareVersions(o, n);
}
var i = this.parseVersionRange(t), a = i[0], r = i[1], c = this.parseVersion(e), s = this.compareVersions(c, this.parseVersion(a)), l = this.compareVersions(c, this.parseVersion(r));
return s >= 0 && l < 0;
};
e.prototype.satisfies = function(e, t) {
var o = t.split(/(\d+)/).filter(Boolean), n = o[0], i = o.slice(1), a = e.split(".").map(Number), r = i.map(Number);
return "~" === n ? a[0] === r[0] && a[1] === r[1] && a[2] >= r[2] : "^" === n ? a[0] === r[0] && (a[1] > r[1] || a[1] === r[1] && a[2] >= r[2]) : e === t;
};
e.prototype.parseVersion = function(e) {
var t = e.split(".").map(Number);
return {
major: t[0],
minor: t[1],
patch: t[2]
};
};
e.prototype.compareVersions = function(e, t) {
return e.major !== t.major ? e.major - t.major : e.minor !== t.minor ? e.minor - t.minor : e.patch !== t.patch ? e.patch - t.patch : 0;
};
e.prototype.parseVersionRange = function(e) {
var t = e.charAt(0), o = e.substring(1), i = this.parseVersion(o), a = n({}, i);
"~" === t ? 0 !== i.major ? a.minor++ : 0 !== i.minor && a.patch++ : "^" === t && (0 !== i.major ? a.major++ : 0 !== i.minor ? a.minor++ : a.patch++);
return [ o, a.major + "." + a.minor + "." + a.patch ];
};
return e;
}())();
o.semver = i;
cc._RF.pop();
}, {} ],
SettingLayerDevelop: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "3e2a1vHGE1MYoJTs0m8WW/n", "SettingLayerDevelop");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../Shared/AddressManager"), c = e("../Shared/ImageCache"), s = e("../Shared/UIManager"), l = e("../Shared/Global"), d = cc._decorator, u = d.ccclass, p = d.property, h = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.toggleTest1 = null;
t.toggleTest2 = null;
t.toggleTest3 = null;
t.toggleGray1 = null;
t.toggleGray2 = null;
t.ebAddress = null;
t._isLoaded = !1;
return t;
}
t.prototype.onLoad = function() {
var e = cc.sys.localStorage.getItem("ServerEnvironment") || "0";
"0" === e ? this.toggleTest1.isChecked = !0 : "1" === e ? this.toggleTest2.isChecked = !0 : "3" === e ? this.toggleTest3.isChecked = !0 : "4" === e ? this.toggleGray1.isChecked = !0 : "5" === e && (this.toggleGray2.isChecked = !0);
this._isLoaded = !0;
};
t.prototype.onToggleSelected = function(e) {
if (this._isLoaded) {
e === this.toggleTest1 ? cc.sys.localStorage.setItem("ServerEnvironment", 0) : e === this.toggleTest2 ? cc.sys.localStorage.setItem("ServerEnvironment", 1) : e === this.toggleTest3 ? cc.sys.localStorage.setItem("ServerEnvironment", 3) : e === this.toggleGray1 ? cc.sys.localStorage.setItem("ServerEnvironment", 4) : e === this.toggleGray2 && cc.sys.localStorage.setItem("ServerEnvironment", 5);
r.default.setServerDomain("");
c.default.removeCasheDirectory();
cc.audioEngine.stopAll();
cc.game.restart();
}
};
t.prototype.onBtnClick = function(e, t) {
if ("ok" === t) {
cc.sys.localStorage.setItem("ServerAddress", this.ebAddress.string);
s.default.showToastUI("自定义域名设置成功", l.Global.ToastType.OK);
}
};
a([ p(cc.Toggle) ], t.prototype, "toggleTest1", void 0);
a([ p(cc.Toggle) ], t.prototype, "toggleTest2", void 0);
a([ p(cc.Toggle) ], t.prototype, "toggleTest3", void 0);
a([ p(cc.Toggle) ], t.prototype, "toggleGray1", void 0);
a([ p(cc.Toggle) ], t.prototype, "toggleGray2", void 0);
a([ p(cc.EditBox) ], t.prototype, "ebAddress", void 0);
return a([ u ], t);
}(cc.Component);
o.default = h;
cc._RF.pop();
}, {
"../Shared/AddressManager": "AddressManager",
"../Shared/Global": "Global",
"../Shared/ImageCache": "ImageCache",
"../Shared/UIManager": "UIManager"
} ],
SettingLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "96c0eGjTiBNxIF7dSMbHTKS", "SettingLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
}, r = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, c = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var s = e("../Shared/AudioManager"), l = e("../Shared/NetworkLogic"), d = e("../Models/Player"), u = e("../Shared/UIManager"), p = e("../Shared/Global"), h = e("../Common/RemoteSprite"), f = e("../Shared/Utils"), g = e("../Shared/Constant"), y = e("../../lib/semver/Semver"), m = e("LanguageData"), v = cc._decorator, b = v.ccclass, _ = v.property, S = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.pfbLoginLayer = null;
t.animation = null;
t.nodeChangePassword = null;
t.nodeBasic = null;
t.nodeBind = null;
t.layerVolume = null;
t.layerchangeMusic = null;
t.layerPassword = null;
t.layerPasswordTixian = null;
t.layerVersion = null;
t.layerbind = null;
t.layerChangeServer = null;
t.layerChangeLanguage = null;
t.rspHead = null;
t.lbUserID = null;
t.lbVIP = null;
t.lbVersion = null;
t.barMusic = null;
t.barEffect = null;
t.sliderMusic = null;
t.sliderEffect = null;
t.toggleVolume = null;
t.ebOldPassword = null;
t.ebNewPassword = null;
t.ebPasswordConfirm = null;
t.ebOldPasswordTiXian = null;
t.ebNewPasswordTiXian = null;
t.ebPasswordConfirmTiXian = null;
t.togglePasswordTiXian = null;
t.toggleChangeServer = null;
t.toggleLanguageLayer = null;
t._type2Layer = {};
t._curLayer = null;
t._clickTestBtnTimes = 0;
return t;
}
t.prototype.onLoad = function() {
return r(this, void 0, void 0, function() {
var e;
return c(this, function(t) {
switch (t.label) {
case 0:
this._type2Layer = {
volumeLayer: this.layerVolume,
changeMusicLayer: this.layerchangeMusic,
passwordLayer: this.layerPassword,
passwordTiXianLayer: this.layerPasswordTixian,
versionLayer: this.layerVersion,
bindLayer: this.layerbind,
changeServerLayer: this.layerChangeServer,
changeLanguageLayer: this.layerChangeLanguage
};
this.layerVolume.active = !1;
this.layerchangeMusic.active = !1;
this.layerPassword.active = !1;
this.layerPasswordTixian.active = !1;
this.layerVersion.active = !1;
this.layerbind.active = !1;
this.layerChangeServer.active = !1;
this.layerChangeLanguage.active = !1;
d.default.getPy("isSetDrawPassword") || (this.togglePasswordTiXian.node.active = !1);
2 === g.default.Environment && (this.toggleChangeServer.node.active = !1);
return [ 4, this.getLanguageData() ];

case 1:
(e = t.sent()) && e.length <= 1 ? this.toggleLanguageLayer.node.active = !1 : e && e.length > 1 && (this.toggleLanguageLayer.node.active = !0);
return [ 2 ];
}
});
});
};
t.prototype.start = function() {
this.showLayer("volumeLayer");
this.init();
};
t.prototype.getLanguageData = function() {
var e = this;
return new Promise(function(t) {
l.default.getLanguageListAll(function(e) {
t(e);
}.bind(e), function() {
t([]);
}.bind(e));
});
};
t.prototype.init = function() {
this.barMusic.progress = s.default.musicVolume;
this.sliderMusic.progress = s.default.musicVolume;
this.barEffect.progress = s.default.soundVolume;
this.sliderEffect.progress = s.default.soundVolume;
this.toggleVolume.isChecked = !s.default.isMusicEnabled && !s.default.isSoundEnabled;
if (d.default.isLogedIn()) {
this.nodeChangePassword.active = !0;
this.nodeBasic.active = !0;
this.lbUserID.string = d.default.getPy("userID");
this.lbVIP.string = d.default.getPy("vip");
d.default.getPy("vip") > 9 && (this.lbVIP.node.parent.width = 132);
d.default.getPy("head") && (this.rspHead.url = d.default.getPy("head"));
} else {
this.nodeChangePassword.active = !1;
this.nodeBasic.active = !1;
this.nodeBind.active = !1;
}
var e = cc.sys.localStorage.getItem("CurrentVersion") || "0.0.0";
this.lbVersion.string = m.t("set_text.version") + "：App v" + f.default.getNativeVersion() + "    Res v" + e;
};
t.prototype.onAnimationEnd = function() {
this.node.destroy();
};
t.prototype.onBtnClick = function(e, t) {
if ("close" === t) {
s.default.playSound("close");
this.animation.play("exit_setting_layer");
} else if ("logout" === t) this.logout(); else if ("mute" === t) this.toggleVolume.isChecked = !this.toggleVolume.isChecked; else if ("changePassword" === t) this.changePassword(); else if ("changePasswordTiXian" === t) this.changePasswordTiXian(); else if ("checkUpdate" === t) this.checkUpdate(); else if ("vistor_up" === t) {
var o = cc.find("Canvas/gameNode").getComponent("HallUI");
o.openChildUI(o.pfbLoginCompleteInformation);
this.node.destroy();
}
};
t.prototype.onFilter = function(e) {
s.default.playSound("toggle");
this.showLayer(e.node.name);
};
t.prototype.onSlider = function(e, t) {
if ("music" === t) {
this.barMusic.progress = e.progress;
s.default.setMusicVolume(e.progress);
} else if ("effect" === t) {
this.barEffect.progress = e.progress;
s.default.setSoundVolume(e.progress);
}
"music" !== t && "effect" !== t || (this.toggleVolume.isChecked = !1);
};
t.prototype.onToggle = function(e, t) {
this.checkJG();
if ("mute" === t) if (e.isChecked) {
s.default.setMusicOff();
s.default.setSoundOff();
} else {
s.default.setMusicOn();
s.default.setSoundOn();
}
};
t.prototype.logout = function() {
l.default.logout(function() {
d.default.logout();
cc.instantiate(this.pfbLoginLayer).parent = this.node.parent;
this.node.destroy();
}.bind(this));
};
t.prototype.showLayer = function(e) {
this._curLayer && (this._curLayer.active = !1);
this._curLayer = this._type2Layer[e];
this._curLayer.active = !0;
if ("passwordLayer" == e) {
var t = d.default.getPy("userType");
this._curLayer.getChildByName("nodeVistor").active = 2 == t;
}
};
t.prototype.changePassword = function() {
if (0 !== this.ebOldPassword.string.length) if (this.ebOldPassword.string.length < 6 || this.ebOldPassword.string.length > 12) u.default.showToastUI(m.t("set_text.old_paw_limit_length"), p.Global.ToastType.Warnning); else {
if (/\s/.test(this.ebNewPassword.string)) {
u.default.showToastUI(m.t("register_text.paw_pro"), p.Global.ToastType.Warnning);
return !1;
}
if (0 !== this.ebNewPassword.string.length) if (this.ebNewPassword.string.length < 6 || this.ebNewPassword.string.length > 12) u.default.showToastUI(m.t("register_text.paw_pro"), p.Global.ToastType.Warnning); else if (0 !== this.ebPasswordConfirm.string.length) if (this.ebPasswordConfirm.string === this.ebNewPassword.string) if (this.ebOldPassword.string !== this.ebNewPassword.string) {
u.default.showLoadingUI();
l.default.editPassword(this.ebOldPassword.string, this.ebNewPassword.string, function() {
u.default.hideLoadingUI();
u.default.showToastUI(m.t("set_text.change_succ"), p.Global.ToastType.OK);
this.logout();
}.bind(this));
} else u.default.showToastUI(m.t("set_text.new_old_paw_consistent"), p.Global.ToastType.Warnning); else u.default.showToastUI(m.t("set_text.con_paw_consistent"), p.Global.ToastType.Warnning); else u.default.showToastUI(m.t("set_text.con_paw_null"), p.Global.ToastType.Warnning); else u.default.showToastUI(m.t("set_text.new_paw_null"), p.Global.ToastType.Warnning);
} else u.default.showToastUI(m.t("set_text.old_paw_null"), p.Global.ToastType.Warnning);
};
t.prototype.changePasswordTiXian = function() {
if (this.ebOldPasswordTiXian.string) if (6 === this.ebOldPasswordTiXian.string.length) if (this.ebNewPasswordTiXian.string) if (this.ebPasswordConfirmTiXian.string) if (this.ebNewPasswordTiXian.string === this.ebPasswordConfirmTiXian.string) if (6 === this.ebNewPasswordTiXian.string.length) {
u.default.showLoadingUI();
l.default.setDrawingPassword(this.ebOldPasswordTiXian.string, this.ebNewPasswordTiXian.string, function() {
u.default.hideLoadingUI();
this.ebOldPasswordTiXian.string = "";
this.ebNewPasswordTiXian.string = "";
this.ebPasswordConfirmTiXian.string = "";
u.default.showToastUI(m.t("set_text.paw_change_succ"), p.Global.ToastType.OK);
}.bind(this));
} else u.default.showToastUI(m.t("set_text.tx_paw_limit"), p.Global.ToastType.Warnning); else u.default.showToastUI(m.t("set_text.tx_paw_consistent"), p.Global.ToastType.Warnning); else u.default.showToastUI(m.t("set_text.con_tx_paw"), p.Global.ToastType.Warnning); else u.default.showToastUI(m.t("set_text.tx_paw_null"), p.Global.ToastType.Warnning); else u.default.showToastUI(m.t("set_text.old_paw_limit_length"), p.Global.ToastType.Warnning); else u.default.showToastUI(m.t("set_text.old_paw_null"), p.Global.ToastType.Warnning);
};
t.prototype.checkUpdate = function() {
this._clickTestBtnTimes++;
if (1 === this._clickTestBtnTimes) this.scheduleOnce(function() {
this._clickTestBtnTimes = 0;
}, 2); else if (this._clickTestBtnTimes >= 5) {
var e = f.default.getChannelCode() ? f.default.getChannelCode() : p.Global.installParms.channelCode, t = p.Global.installParms.bindData.code || "";
u.default.showTipUI("pasedata:" + p.Global.pasedata + "&&paramgsdata:" + p.Global.paramsdata + "&&channelcode:" + e + "AND agentcode:" + t);
}
if (cc.sys.isNative) {
for (var o = "", n = f.default.getNativeVersion().split("."), i = 0; i < 3; i++) {
var a = n[i];
o += a ? o ? "." + a : a : o ? ".0" : "0";
}
u.default.showLoadingUI();
var r = cc.sys.localStorage.getItem("CurrentVersion") || "0.0.0";
r = r.slice(0, r.lastIndexOf("."));
var c = f.default.getNativeVersion();
l.default.getLatestVersion(function(e) {
u.default.hideLoadingUI();
var t = e.split(" ");
if (0 !== t.length) {
var o = t[0], n = t[1], i = t[2], a = cc.sys.os === cc.sys.OS_IOS ? o : n;
y.semver.satisfies(c, a) ? u.default.showToastUI(m.t("set_text.latest_version"), p.Global.ToastType.OK) : u.default.showConfirmUI(m.t("label_text.download_new_app") + "\n" + m.t("label_text.download_new_app_tips"), function() {
cc.sys.openURL(i);
f.default.closeGame();
}, m.t("label_text.go_download"));
}
});
}
};
t.prototype.checkJG = function() {
this._clickTestBtnTimes++;
if (1 === this._clickTestBtnTimes) this.scheduleOnce(function() {
this._clickTestBtnTimes = 0;
}, 2); else if (this._clickTestBtnTimes >= 5) {
var e = "regID : " + f.default.getRegistrationID();
u.default.showTipUI(e);
f.default.copyText(e);
}
};
a([ _(cc.Prefab) ], t.prototype, "pfbLoginLayer", void 0);
a([ _(cc.Animation) ], t.prototype, "animation", void 0);
a([ _(cc.Node) ], t.prototype, "nodeChangePassword", void 0);
a([ _(cc.Node) ], t.prototype, "nodeBasic", void 0);
a([ _(cc.Node) ], t.prototype, "nodeBind", void 0);
a([ _(cc.Node) ], t.prototype, "layerVolume", void 0);
a([ _(cc.Node) ], t.prototype, "layerchangeMusic", void 0);
a([ _(cc.Node) ], t.prototype, "layerPassword", void 0);
a([ _(cc.Node) ], t.prototype, "layerPasswordTixian", void 0);
a([ _(cc.Node) ], t.prototype, "layerVersion", void 0);
a([ _(cc.Node) ], t.prototype, "layerbind", void 0);
a([ _(cc.Node) ], t.prototype, "layerChangeServer", void 0);
a([ _(cc.Node) ], t.prototype, "layerChangeLanguage", void 0);
a([ _(h.default) ], t.prototype, "rspHead", void 0);
a([ _(cc.Label) ], t.prototype, "lbUserID", void 0);
a([ _(cc.Label) ], t.prototype, "lbVIP", void 0);
a([ _(cc.Label) ], t.prototype, "lbVersion", void 0);
a([ _(cc.ProgressBar) ], t.prototype, "barMusic", void 0);
a([ _(cc.ProgressBar) ], t.prototype, "barEffect", void 0);
a([ _(cc.Slider) ], t.prototype, "sliderMusic", void 0);
a([ _(cc.Slider) ], t.prototype, "sliderEffect", void 0);
a([ _(cc.Toggle) ], t.prototype, "toggleVolume", void 0);
a([ _(cc.EditBox) ], t.prototype, "ebOldPassword", void 0);
a([ _(cc.EditBox) ], t.prototype, "ebNewPassword", void 0);
a([ _(cc.EditBox) ], t.prototype, "ebPasswordConfirm", void 0);
a([ _(cc.EditBox) ], t.prototype, "ebOldPasswordTiXian", void 0);
a([ _(cc.EditBox) ], t.prototype, "ebNewPasswordTiXian", void 0);
a([ _(cc.EditBox) ], t.prototype, "ebPasswordConfirmTiXian", void 0);
a([ _(cc.Toggle) ], t.prototype, "togglePasswordTiXian", void 0);
a([ _(cc.Toggle) ], t.prototype, "toggleChangeServer", void 0);
a([ _(cc.Toggle) ], t.prototype, "toggleLanguageLayer", void 0);
return a([ b ], t);
}(cc.Component);
o.default = S;
cc._RF.pop();
}, {
"../../lib/semver/Semver": "Semver",
"../Common/RemoteSprite": "RemoteSprite",
"../Models/Player": "Player",
"../Shared/AudioManager": "AudioManager",
"../Shared/Constant": "Constant",
"../Shared/Global": "Global",
"../Shared/NetworkLogic": "NetworkLogic",
"../Shared/UIManager": "UIManager",
"../Shared/Utils": "Utils",
LanguageData: "LanguageData"
} ],
ShareDetails: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "2b307LV/ERN/ZF3mr68SB3s", "ShareDetails");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/NetworkLogic"), c = e("../../Models/Player"), s = e("../../Shared/AudioManager"), l = cc._decorator, d = l.ccclass, u = l.property, p = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.nodata = null;
t.sp1 = null;
t.sp2 = null;
t.content = null;
t.data = null;
return t;
}
t.prototype.onLoad = function() {};
t.prototype.onEnable = function() {
r.default.agentShareDetail({
day: 365
}, 1, 9999, function(e) {
console.log("==== 分享记录data：", e);
this.data = e;
if (e && !(e.length <= 0)) {
this.nodata.active = !1;
var t = null;
if (this.content.children.length > e.length) for (var o = e.length; o < this.content.children.length; o++) this.content.children[o].active = !1;
for (o = 0; o < e.length; o++) {
(t = this.content.children.length > o ? this.content.children[o] : cc.instantiate(this.content.children[0])).getChildByName("labName").getComponent(cc.Label).string = e[o].date;
t.getChildByName("labMoney").getComponent(cc.Label).string = c.default.getPy("currencySymbol") + e[o].money;
t.getChildByName("sprite").getComponent(cc.Sprite).spriteFrame = o % 2 == 0 ? this.sp1 : this.sp2;
t.parent = this.content;
t.setSiblingIndex(0);
t.active = !0;
}
}
}.bind(this), function() {
console.log("==== 分享记录错误");
}.bind(this));
};
t.prototype.start = function() {};
t.prototype.onBtnClick = function() {
s.default.playSound("close");
this.node.active = !1;
};
a([ u(cc.Node) ], t.prototype, "nodata", void 0);
a([ u(cc.SpriteFrame) ], t.prototype, "sp1", void 0);
a([ u(cc.SpriteFrame) ], t.prototype, "sp2", void 0);
a([ u(cc.Node) ], t.prototype, "content", void 0);
return a([ d ], t);
}(cc.Component);
o.default = p;
cc._RF.pop();
}, {
"../../Models/Player": "Player",
"../../Shared/AudioManager": "AudioManager",
"../../Shared/NetworkLogic": "NetworkLogic"
} ],
ShareToWeChat: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "80760LvTeBAfb+srFefWqxa", "ShareToWeChat");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
}, r = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, c = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var s = e("../../Shared/UIManager"), l = e("../../Shared/SDKManager"), d = e("../../Shared/AudioManager"), u = cc._decorator, p = u.ccclass, h = (u.property, 
e("LanguageData")), f = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.shareData = null;
return t;
}
t.prototype.updateUI = function(e) {
this.shareData = e;
};
t.prototype.onBtnClick = function(e, t) {
return r(this, void 0, void 0, function() {
return c(this, function() {
d.default.playSound("button");
if ("qq" === t) l.default.shareURL({
url: this.shareData.codeAddress,
platformType: l.default.UMSocialPlatformType.QQ,
title: this.shareData.shareTitle,
describe: this.shareData.shareText,
thumbUrl: this.shareData.promoteTheAddress
}, function(e) {
cc.log("=====qq分享param：", e);
0 !== e && "0" !== e || s.default.showToastUI(h.t("share_text.share_err_qq"));
}.bind(this)); else if ("wx" === t) l.default.shareURL({
url: this.shareData.codeAddress,
platformType: l.default.UMSocialPlatformType.WechatSession,
title: this.shareData.shareTitle,
describe: this.shareData.shareText,
thumbUrl: this.shareData.promoteTheAddress
}, function(e) {
0 !== e && "0" !== e || s.default.showToastUI(h.t("share_text.share_err_wx"));
}.bind(this)); else if ("pyq" === t) {
s.default.showLoadingUI();
l.default.shareURL({
url: this.shareData.codeAddress,
platformType: l.default.UMSocialPlatformType.WechatTimeLine,
title: this.shareData.shareTitle,
describe: this.shareData.shareText,
thumbUrl: this.shareData.promoteTheAddress
}, function(e) {
s.default.hideLoadingUI();
0 !== e && "0" !== e || s.default.showToastUI(h.t("share_text.share_err_wx"));
}.bind(this));
}
return [ 2 ];
});
});
};
t.prototype.onBtnClose = function() {
d.default.playSound("close");
this.node.destroy();
};
return a([ p ], t);
}(cc.Component);
o.default = f;
cc._RF.pop();
}, {
"../../Shared/AudioManager": "AudioManager",
"../../Shared/SDKManager": "SDKManager",
"../../Shared/UIManager": "UIManager",
LanguageData: "LanguageData"
} ],
Share: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "b5d00/oPIVCfI5dcA4LSFDf", "Share");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/NetworkLogic"), c = e("../../Shared/UIManager"), s = e("../../Shared/AudioManager"), l = e("LanguageData"), d = cc._decorator, u = d.ccclass, p = d.property, h = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.sp1 = null;
t.sp2 = null;
t.content = null;
t.tips = null;
t.shareToWeChat = null;
return t;
}
t.prototype.start = function() {
c.default.showLoadingUI();
r.default.agentshareTask(null, function(e) {
c.default.hideLoadingUI();
console.log("======分享任务 data：", e);
var t = e.updateDtoList, o = this.content.children;
if (o.length > t.length) for (var n = t.length; n < o.length; n++) o[n].active = !1;
for (n = 0; n < t.length; n++) {
var i = null;
(i = o.length > n ? o[n] : cc.instantiate(o[0])).parent = this.content;
o[n].getChildByName("bg").getComponent(cc.Sprite).spriteFrame = n % 2 == 0 ? this.sp1 : this.sp2;
o[n].getChildByName("labPaiMing").getComponent(cc.Label).string = t[n].name;
o[n].getChildByName("labTotal").getComponent(cc.Label).string = t[n].activityDynamics;
o[n].getChildByName("labMonthMoney").getComponent(cc.Label).string = t[n].activityDynamicsMoney;
o[n].getChildByName("labShareReward").getComponent(cc.Label).string = t[n].content;
var a = o[n].getChildByName("New Button").getChildByName("Label").getComponent(cc.Label);
0 === t[n].submitType ? 1 === t[n].applyMode ? a.string = l.t("TuiGuangLayer.to_share") : 2 === t[n].applyMode && (a.string = l.t("Task.apply_reward")) : a.string = l.t("Task.disclose_data");
o[n].getChildByName("New Button").getComponent(cc.Button).clickEvents[0].customEventData = t[n].id + "," + t[n].applyMode + "," + t[n].submitType;
i.active = !0;
}
}.bind(this), function() {}.bind(this));
};
t.prototype.onBtnClick = function(e, t) {
s.default.playSound("button");
var o = t.split(",");
if ("0" === o[2]) {
if ("1" === o[1]) this.shareToWeChat.active = !0; else if ("2" === o[1]) {
var n = {
taskId: o[0]
};
c.default.showLoadingUI();
r.default.agentApplicationReward(n, function() {
c.default.hideLoadingUI();
c.default.showTipUI(l.t("Task.Succ_application_Award") + "！");
}.bind(this), function() {
c.default.hideLoadingUI();
cc.log("=====申请奖励错误");
});
}
} else {
this.tips.active = !0;
this.tips.emit("COMMITDATA", t);
}
};
a([ p(cc.SpriteFrame) ], t.prototype, "sp1", void 0);
a([ p(cc.SpriteFrame) ], t.prototype, "sp2", void 0);
a([ p(cc.Node) ], t.prototype, "content", void 0);
a([ p(cc.Node) ], t.prototype, "tips", void 0);
a([ p(cc.Node) ], t.prototype, "shareToWeChat", void 0);
return a([ u ], t);
}(cc.Component);
o.default = h;
cc._RF.pop();
}, {
"../../Shared/AudioManager": "AudioManager",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
LanguageData: "LanguageData"
} ],
SignData: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "c5e15cEm4lCN4aKV4GD2GL3", "SignData");
var n = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, i = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var a = e("../../Shared/NetworkLogic"), r = e("../../Models/Player"), c = function() {
function e() {
this._bSignSwitch = null;
this._bCanSign = null;
this.signSignInData = null;
}
e.prototype.resetSignData = function() {
this._bCanSign = null;
this.signSignInData = null;
this._bSignSwitch = null;
};
e.prototype.getSignSwitch = function() {
return n(this, void 0, void 0, function() {
var e;
return i(this, function(t) {
switch (t.label) {
case 0:
if (null !== this._bSignSwitch) return [ 3, 2 ];
e = this;
return [ 4, this._getSignSwitch() ];

case 1:
e._bSignSwitch = t.sent();
t.label = 2;

case 2:
return [ 2, this._bSignSwitch ];
}
});
});
};
e.prototype.getCanSign = function() {
return n(this, void 0, void 0, function() {
var e, t, o, n;
return i(this, function(i) {
switch (i.label) {
case 0:
return [ 4, this.getSignSwitch() ];

case 1:
if (!i.sent()) {
this._bCanSign = !1;
return [ 2, this._bCanSign ];
}
if (null !== this._bCanSign) return [ 3, 4 ];
if (this.signSignInData) return [ 3, 3 ];
e = this;
return [ 4, this._signInSignGet() ];

case 2:
e.signSignInData = i.sent();
i.label = 3;

case 3:
if (!(t = this.signSignInData && this.signSignInData.signData)) {
this._bCanSign = !1;
return [ 2, !1 ];
}
o = !1;
for (n = 0; n < t.length; n++) if (1 === t[n].whetherNotSignIn) {
cc.log("====whetherNotSignIn i:w:", n, t[n].whetherNotSignIn);
o = !0;
break;
}
this._bCanSign = o;
i.label = 4;

case 4:
return [ 2, this._bCanSign ];
}
});
});
};
e.prototype.getSignData = function() {
return n(this, void 0, void 0, function() {
var e;
return i(this, function(t) {
switch (t.label) {
case 0:
if (this.signSignInData) return [ 3, 2 ];
e = this;
return [ 4, this._signInSignGet() ];

case 1:
e.signSignInData = t.sent();
t.label = 2;

case 2:
return [ 2, this.signSignInData ];
}
});
});
};
e.prototype._getSignSwitch = function() {
var e = this;
return new Promise(function(t) {
a.default.signGetSignSwitch({}, function(e) {
this.bSignSwitch = e;
t(e);
}.bind(e), function() {
t(!1);
}.bind(e));
});
};
e.prototype._signInSignGet = function() {
var e = this;
if (r.default.isLogedIn()) return new Promise(function(t) {
a.default.signInSignGet({}, function(e) {
return n(this, void 0, void 0, function() {
return i(this, function() {
t(e);
return [ 2 ];
});
});
}.bind(e), function() {
t(null);
});
});
};
return e;
}();
o.default = new c();
cc._RF.pop();
}, {
"../../Models/Player": "Player",
"../../Shared/NetworkLogic": "NetworkLogic"
} ],
SignInPop: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "3ba55FocfBE6poMHx1mdZrf", "SignInPop");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/NetworkLogic"), c = e("../../Shared/Global"), s = e("../../Shared/AudioManager"), l = e("./SignData"), d = e("../../Shared/PopWindowManager"), u = e("../../Shared/Utils"), p = e("LanguageData"), h = cc._decorator, f = h.ccclass, g = h.property, y = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.itemArr = [];
t.btnLingqu = null;
t.baoxiangPrefab = null;
t.scrollV = null;
t.labBottom = null;
t.content = null;
t.iconArr = [];
t.openNext = !0;
t.bCanSign = !1;
return t;
}
t.prototype.onLoad = function() {};
t.prototype.start = function() {
var e = this;
l.default.getSignData().then(function(t) {
e._updateUI(t);
});
};
t.prototype._updateUI = function(e) {
var t = e.signData;
this.labBottom.string = e.explain;
this.content.destroyAllChildren();
for (var o = 0; o < t.length; o++) {
var n = (t[o].day - 1) % 7;
cc.log("===signData[i].day:", t[o].day);
cc.log(n);
(r = cc.instantiate(this.itemArr[n])).parent = this.content;
r.active = !0;
var i = r.getChildByName(this._getNameByWhetherNotSignIn(t[o].whetherNotSignIn));
i.active = !0;
i.getChildByName("num_label").getComponent(cc.Label).string = t[o].day + p.t("BasicsJS.day");
i.getChildByName("labMoney").getComponent(cc.Label).string = c.Global.currencySymbol + t[o].signMoney;
r.getChildByName("icon").getComponent(cc.Sprite).spriteFrame = this.iconArr[o % 4];
r.getChildByName("spYes").active = 0 === t[o].whetherNotSignIn;
r.iconUrl = t[o].signImg;
r.signData = t[o];
}
for (o = 0; o < t.length; o++) if (1 === t[o].whetherNotSignIn) {
this.bCanSign = !0;
var a = this.scrollV.getMaxScrollOffset().y / t.length * (o + 1);
this.scrollV.scrollToOffset(cc.v2(0, a), .1);
break;
}
for (o = 0; o < this.content.children.length; o++) {
var r = this.content.children[o];
this.getIcon(r.signData.signImg, r);
}
this.bCanSign || (this.btnLingqu.interactable = !1);
cc.log("===signData", t);
};
t.prototype._getNameByWhetherNotSignIn = function(e) {
switch (e) {
case 0:
return "spYilingqu";

case 1:
return "spCan";

case 2:
return "spCannt";
}
};
t.prototype.getIcon = function(e, t) {
cc.assetManager.loadRemote(e, {
ext: ".png"
}, function(e, o) {
!e && this.node && cc.isValid(t) && (t.getChildByName("icon").getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(o));
}.bind(this));
};
t.prototype.onBtnLingqu = function(e) {
var t = this;
u.default.disable_btn_sec(e, 5);
for (var o = null, n = 0; n < this.content.children.length; n++) {
var i = this.content.children[n];
if (1 === i.signData.whetherNotSignIn) {
o = i;
break;
}
}
u.default.validateAuth(function() {
r.default.signInSign({}, function(e) {
cc.log("====签到成功rec：", e);
o.getChildByName("spYes").active = !0;
this.btnLingqu.interactable = !1;
cc.director.emit(c.Global.UserEvent.UpdateMoney);
cc.director.emit(c.Global.UserEvent.OpenBaoxiang, o.signData.signMoney);
this.openNext = !1;
l.default.resetSignData();
this.onBtnClose();
}.bind(t), function() {
cc.log("=====签到错误");
}.bind(t));
});
};
t.prototype.onBtnClose = function(e, t, o) {
void 0 === o && (o = !0);
o && s.default.playSound("close");
this.openNext && d.default.openNext();
this.node.destroy();
};
t.prototype.onDestroy = function() {};
a([ g([ cc.Node ]) ], t.prototype, "itemArr", void 0);
a([ g(cc.Button) ], t.prototype, "btnLingqu", void 0);
a([ g(cc.Prefab) ], t.prototype, "baoxiangPrefab", void 0);
a([ g(cc.ScrollView) ], t.prototype, "scrollV", void 0);
a([ g(cc.Label) ], t.prototype, "labBottom", void 0);
a([ g(cc.Node) ], t.prototype, "content", void 0);
a([ g([ cc.SpriteFrame ]) ], t.prototype, "iconArr", void 0);
return a([ f ], t);
}(cc.Component);
o.default = y;
cc._RF.pop();
}, {
"../../Shared/AudioManager": "AudioManager",
"../../Shared/Global": "Global",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/PopWindowManager": "PopWindowManager",
"../../Shared/Utils": "Utils",
"./SignData": "SignData",
LanguageData: "LanguageData"
} ],
SignIn: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "da6c5R0f6RO5qMyIkSOKEPB", "SignIn");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/NetworkLogic"), c = e("../../Shared/UIManager"), s = e("../../Shared/Global"), l = e("./SignData"), d = e("../../Shared/Utils"), u = e("LanguageData"), p = cc._decorator, h = p.ccclass, f = p.property, g = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.item = null;
t.itemArr = [];
t.btnLingqu = null;
t.baoxiangPrefab = null;
t.scrollV = null;
t.labBottom = null;
t.content = null;
t.iconArr = [];
t.openNext = !0;
t.bCanSign = !1;
return t;
}
t.prototype.onLoad = function() {};
t.prototype.start = function() {};
t.prototype.updateUI = function() {
var e = this;
if (!(this.content.children.length > 0)) {
c.default.showLoadingUI();
l.default.getSignData().then(function(t) {
c.default.hideLoadingUI();
e._updateUI(t);
});
}
};
t.prototype._updateUI = function(e) {
var t = e.signData;
this.labBottom.string = e.explain;
this.content.destroyAllChildren();
for (var o = 0; o < t.length; o++) {
var n = (t[o].day - 1) % 7;
cc.log("===signData[i].day:", t[o].day);
cc.log(n);
(r = cc.instantiate(this.itemArr[n])).parent = this.content;
r.active = !0;
var i = r.getChildByName(this._getNameByWhetherNotSignIn(t[o].whetherNotSignIn));
i.active = !0;
i.getChildByName("num_label").getComponent(cc.Label).string = t[o].day + u.t("BasicsJS.day");
i.getChildByName("labMoney").getComponent(cc.Label).string = s.Global.currencySymbol + t[o].signMoney;
r.getChildByName("icon").getComponent(cc.Sprite).spriteFrame = this.iconArr[o % 4];
r.getChildByName("spYes").active = 0 === t[o].whetherNotSignIn;
r.iconUrl = t[o].signImg;
r.signData = t[o];
}
for (o = 0; o < t.length; o++) if (1 === t[o].whetherNotSignIn) {
this.bCanSign = !0;
var a = this.scrollV.getMaxScrollOffset().y / t.length * (o + 1);
this.scrollV.scrollToOffset(cc.v2(0, a), .1);
break;
}
for (o = 0; o < this.content.children.length; o++) {
var r = this.content.children[o];
this.getIcon(r.signData.signImg, r);
}
this.bCanSign || (this.btnLingqu.interactable = !1);
cc.log("===signData", t);
};
t.prototype._getNameByWhetherNotSignIn = function(e) {
switch (e) {
case 0:
return "spYilingqu";

case 1:
return "spCan";

case 2:
return "spCannt";
}
};
t.prototype.getIcon = function(e, t) {
cc.assetManager.loadRemote(e, {
ext: ".png"
}, function(e, o) {
!e && this.node && cc.isValid(t) && (t.getChildByName("icon").getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(o));
}.bind(this));
};
t.prototype.onBtnLingqu = function() {
for (var e = this, t = null, o = 0; o < this.content.children.length; o++) {
var n = this.content.children[o];
if (1 === n.signData.whetherNotSignIn) {
t = n;
break;
}
}
d.default.validateAuth(function() {
r.default.signInSign({}, function(e) {
cc.log("====签到成功rec：", e);
t.getChildByName("spYes").active = !0;
this.btnLingqu.interactable = !1;
cc.director.emit(s.Global.UserEvent.UpdateMoney);
cc.director.emit(s.Global.UserEvent.OpenBaoxiang, t.signData.signMoney);
l.default.resetSignData();
}.bind(e), function() {
cc.log("=====签到错误");
}.bind(e));
});
};
t.prototype.onDestroy = function() {};
a([ f(cc.Node) ], t.prototype, "item", void 0);
a([ f([ cc.Node ]) ], t.prototype, "itemArr", void 0);
a([ f(cc.Button) ], t.prototype, "btnLingqu", void 0);
a([ f(cc.Prefab) ], t.prototype, "baoxiangPrefab", void 0);
a([ f(cc.ScrollView) ], t.prototype, "scrollV", void 0);
a([ f(cc.Label) ], t.prototype, "labBottom", void 0);
a([ f(cc.Node) ], t.prototype, "content", void 0);
a([ f([ cc.SpriteFrame ]) ], t.prototype, "iconArr", void 0);
return a([ h ], t);
}(cc.Component);
o.default = g;
cc._RF.pop();
}, {
"../../Shared/Global": "Global",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
"../../Shared/Utils": "Utils",
"./SignData": "SignData",
LanguageData: "LanguageData"
} ],
Signal: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "04864jEy+ZDTY+1Wub3RXNo", "Signal");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
}, r = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, c = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var s = e("../Shared/PingTool"), l = e("../Shared/Global"), d = e("../Shared/AudioManager"), u = e("../Shared/AddressManager"), p = cc._decorator, h = p.ccclass, f = p.property, g = e("LanguageData"), y = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.content = null;
t.item = null;
t.callback = null;
t.interval = 1;
t.urls = [];
return t;
}
t.prototype.start = function() {
return r(this, void 0, void 0, function() {
var e, t, o, n, i, a;
return c(this, function(r) {
switch (r.label) {
case 0:
this.urls = this.urls.concat(u.default.serverAddressArr);
for (n = 0; n < this.urls.length; n++) {
(e = cc.instantiate(this.item)).parent = this.content;
e.active = !0;
t = cc.sys.localStorage.getItem("ServerAddress");
cc.log("====add:", t);
cc.log("====curUrl:", this.urls[n]);
t === this.urls[n] && (e.getChildByName("spCur").active = !0);
cc.log("===this.url[%s]:", n, this.urls[n]);
e.getChildByName("labName").getComponent(cc.Label).string = g.t("Signal.speed") + (n + 1);
e.getChildByName("btnQiehuan").getComponent(cc.Button).clickEvents[0].customEventData = n.toString();
a = this.urls[n];
(i = e.getChildByName("signalNum")).getComponent(cc.Label).string = g.t("Signal.in_test") + "...";
}
o = this.content.children;
n = 0;
r.label = 1;

case 1:
if (!(n < this.urls.length)) return [ 3, 4 ];
i = o[n].getChildByName("signalNum");
a = this.urls[n];
return [ 4, this.func(a, i) ];

case 2:
r.sent();
this.schedule(this.func.bind(this, a, i), this.interval);
r.label = 3;

case 3:
n++;
return [ 3, 1 ];

case 4:
return [ 2 ];
}
});
});
};
t.prototype.func = function(e, t) {
return r(this, void 0, void 0, function() {
var o, n, i;
return c(this, function(a) {
switch (a.label) {
case 0:
return [ 4, s.default.checkHttpLatency(e) ];

case 1:
o = a.sent();
n = s.default.getColorByNum(o.latency);
i = n[0];
if (cc.isValid(t)) {
t && (t.color = i);
t && (t.getComponent(cc.Label).string = o.latency + "ms" + n[1]);
}
return [ 2 ];
}
});
});
};
t.prototype.update = function() {};
t.prototype.onDestroy = function() {
this.unscheduleAllCallbacks();
};
t.prototype.onBtnClose = function() {
d.default.playSound("close");
this.callback && this.callback();
this.node.destroy();
};
t.prototype.onBtnClick = function(e, t) {
d.default.playSound("button");
var o = this.urls[parseInt(t)];
u.default.setServerDomain(o);
cc.director.emit(l.Global.UserEvent.CheckSignal, o);
this.callback && this.callback();
this.node.destroy();
};
a([ f(cc.Node) ], t.prototype, "content", void 0);
a([ f(cc.Node) ], t.prototype, "item", void 0);
a([ f({
type: Function,
visible: !1
}) ], t.prototype, "callback", void 0);
return a([ h ], t);
}(cc.Component);
o.default = y;
cc._RF.pop();
}, {
"../Shared/AddressManager": "AddressManager",
"../Shared/AudioManager": "AudioManager",
"../Shared/Global": "Global",
"../Shared/PingTool": "PingTool",
LanguageData: "LanguageData"
} ],
SimpleScrollView: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "58596LL1ZxFNL4dRTK+ky5W", "SimpleScrollView");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = cc._decorator, c = r.ccclass, s = r.property, l = cc.Enum({
HORIZONTAL: 0,
VERTICAL: 1
}), d = cc.Enum({
SCROLL_TO_TOP: 0,
SCROLL_TO_BOTTOM: 1,
SCROLL_TO_LEFT: 2,
SCROLL_TO_RIGHT: 3,
SCROLLING: 4,
SCROLL_ENDED: 5,
TOUCH_UP: 6,
SCROLL_BEGAN: 7
}), u = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.content = null;
t.direction = l.HORIZONTAL;
t.brake = .03;
t.scrollEvents = [];
t._v = 0;
t._preTime = 0;
t._touchMoved = !1;
t._touchEnded = !0;
return t;
}
t.prototype.onLoad = function() {
this.node.on(cc.Node.EventType.TOUCH_START, this.onTouchStart, this, !0);
this.node.on(cc.Node.EventType.TOUCH_MOVE, this.onTouchMove, this, !0);
this.node.on(cc.Node.EventType.TOUCH_END, this.onTouchEnd, this, !0);
this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.onTouchCancel, this, !0);
};
t.prototype.onDestroy = function() {
this.node.off(cc.Node.EventType.TOUCH_START, this.onTouchStart, this, !0);
this.node.off(cc.Node.EventType.TOUCH_MOVE, this.onTouchMove, this, !0);
this.node.off(cc.Node.EventType.TOUCH_END, this.onTouchEnd, this, !0);
this.node.off(cc.Node.EventType.TOUCH_CANCEL, this.onTouchCancel, this, !0);
};
t.prototype.update = function(e) {
this.processAutoScrolling(e);
};
t.prototype.onTouchStart = function() {
this._v = 0;
this._touchMoved = !1;
this._touchEnded = !1;
cc.Component.EventHandler.emitEvents(this.scrollEvents, this, d.SCROLL_BEGAN);
};
t.prototype.onTouchMove = function(e) {
if (!(this.direction === l.HORIZONTAL && this.content.width < this.node.width || this.direction === l.VERTICAL && this.content.height < this.node.height)) {
var t = this.direction === l.HORIZONTAL ? e.getDeltaX() : e.getDeltaY();
if (0 !== this._preTime) {
var o = (new Date().getTime() - this._preTime) / 1e3;
o = o < 1e-5 ? 1 / 60 : o;
this._v = t / o;
}
this.direction === l.HORIZONTAL ? this.setContentPosition(cc.v2(this.content.x + t, this.content.y)) : this.setContentPosition(cc.v2(this.content.x, this.content.y + t));
cc.Component.EventHandler.emitEvents(this.scrollEvents, this, d.SCROLLING);
this._preTime = new Date().getTime();
e.touch.getLocation().sub(e.touch.getStartLocation()).mag() > 7 && (this._touchMoved = !0);
}
};
t.prototype.onTouchCancel = function() {
this._touchEnded = !0;
this._preTime = 0;
cc.Component.EventHandler.emitEvents(this.scrollEvents, this, d.TOUCH_UP);
};
t.prototype.onTouchEnd = function(e) {
this._touchEnded = !0;
this._preTime = 0;
cc.Component.EventHandler.emitEvents(this.scrollEvents, this, d.TOUCH_UP);
this._touchMoved && e.stopPropagation();
};
t.prototype.setContentPosition = function(e) {
this.content.position = e;
if (this.direction === l.HORIZONTAL) {
var t = this.node.convertToNodeSpaceAR(this.content.convertToWorldSpaceAR(cc.v2(-this.content.width * this.content.anchorX, 0))).x, o = -this.node.width * this.node.anchorX;
if (t > o) {
this.content.x = this.content.parent.convertToNodeSpaceAR(this.node.convertToWorldSpaceAR(cc.v2(o, 0))).x + this.content.width * this.content.anchorX;
cc.Component.EventHandler.emitEvents(this.scrollEvents, this, d.SCROLL_TO_LEFT);
} else {
var n = t + this.content.width, i = o + this.node.width;
if (n < i) {
this.content.x = this.content.parent.convertToNodeSpaceAR(this.node.convertToWorldSpaceAR(cc.v2(i, 0))).x - this.content.width * (1 - this.content.anchorX);
cc.Component.EventHandler.emitEvents(this.scrollEvents, this, d.SCROLL_TO_RIGHT);
}
}
} else if (this.direction === l.VERTICAL) {
var a = this.node.convertToNodeSpaceAR(this.content.convertToWorldSpaceAR(cc.v2(0, -this.content.height * this.content.anchorY))).y, r = -this.node.height * this.node.anchorY;
if (a > r) {
this.content.y = this.content.parent.convertToNodeSpaceAR(this.node.convertToWorldSpaceAR(cc.v2(0, r))).y + this.content.height * this.content.anchorY;
cc.Component.EventHandler.emitEvents(this.scrollEvents, this, d.SCROLL_TO_BOTTOM);
} else {
var c = a + this.content.height, s = r + this.node.height;
if (c < s) {
this.content.y = this.content.parent.convertToNodeSpaceAR(this.node.convertToWorldSpaceAR(cc.v2(0, s))).y - this.content.height * (1 - this.content.anchorY);
cc.Component.EventHandler.emitEvents(this.scrollEvents, this, d.SCROLL_TO_TOP);
}
}
}
};
t.prototype.stopAutoScroll = function() {
this._v = 0;
cc.Component.EventHandler.emitEvents(this.scrollEvents, this, d.SCROLL_ENDED);
};
t.prototype.processAutoScrolling = function(e) {
if (this._touchEnded && 0 !== this._v) {
var t = this._v * e;
this._v = this._v * (1 - this.brake);
if (Math.abs(t) > 2) {
this.direction === l.HORIZONTAL ? this.setContentPosition(cc.v2(this.content.x + t, this.content.y)) : this.setContentPosition(cc.v2(this.content.x, this.content.y + t));
cc.Component.EventHandler.emitEvents(this.scrollEvents, this, d.SCROLLING);
} else this.stopAutoScroll();
}
};
a([ s(cc.Node) ], t.prototype, "content", void 0);
a([ s({
type: l
}) ], t.prototype, "direction", void 0);
a([ s(cc.Float) ], t.prototype, "brake", void 0);
a([ s({
type: [ cc.Component.EventHandler ]
}) ], t.prototype, "scrollEvents", void 0);
return a([ c ], t);
}(cc.Component);
o.default = u;
cc._RF.pop();
}, {} ],
SportsLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "e9e3eyV7/pGaoTY+0is+d7K", "SportsLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("./GamesConfig"), c = e("../Shared/Global"), s = e("../Models/GameList"), l = e("../Shared/Constant"), d = e("LanguageData"), u = cc._decorator, p = u.ccclass, h = u.property, f = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.content = null;
t.scrollView = null;
t.layoutItems = null;
t.aniItems = null;
t.wgtScrollView = null;
t._nodeItems = [];
return t;
}
t.prototype.onLoad = function() {
cc.winSize.width / cc.winSize.height > 2 && (this.wgtScrollView.left += l.default.BangLength);
cc.director.on(c.Global.UserEvent.GameListChanged, this.createNodeItems, this);
};
t.prototype.onEnable = function() {
s.default.serverData && this.showItems();
};
t.prototype.onDisable = function() {};
t.prototype.onDestroy = function() {
cc.director.off(c.Global.UserEvent.GameListChanged, this.createNodeItems, this);
};
t.prototype.createNodeItems = function() {
if (s.default.serverData) {
var e = s.default.getGameListByType(c.Global.GameType.Sport).twoLevelList || [];
this.layoutItems.node.removeAllChildren();
this.createGameItemsFromLocal(e);
}
};
t.prototype.createGameItemsFromLocal = function(e) {
var t = this;
e.forEach(function(e) {
var o = new cc.Node();
o.width = 276;
var n = new cc.Node(), i = n.addComponent(cc.Sprite), a = o.addComponent(cc.Button), c = r.default.sports[e.platform];
n.parent = o;
o.parent = t.layoutItems.node;
t._nodeItems.push(o);
if (!c) {
c = "Hall/Sports/huangguan";
if (l.default.RemindMissingRes) {
var s = new cc.Node(), u = s.addComponent(cc.Label);
s.color = cc.color(255, 0, 0);
s.parent = o;
u.string = e.gameTitleCn + "\n" + d.t("CheckHot.lack_resources") + "!";
u.fontSize = 40;
}
}
cc.resources.load(c, cc.SpriteFrame, function(e, t) {
if (!e && this.node) {
i.spriteFrame = t;
o.width = n.width;
o.height = n.height;
}
}.bind(t));
var p = new cc.Node(), h = p.addComponent(cc.Label);
p.parent = o;
p.width = 210;
p.height = 100;
p.position = cc.v2(0, -26);
p.skewX = 8;
h.string = e.gameTitleCn;
h.useSystemFont = !0;
h.fontSize = 60;
h.lineHeight = 60;
h.overflow = cc.Label.Overflow.SHRINK;
h.horizontalAlign = cc.Label.HorizontalAlign.CENTER;
h.verticalAlign = cc.Label.VerticalAlign.CENTER;
h.enableBold = !0;
var f = new cc.Node(), g = f.addComponent(cc.Label), y = f.addComponent("LocalizedLabel");
f.parent = o;
f.width = 115;
f.height = 50;
f.position = cc.v2(-4, -132);
f.color = cc.color(105, 48, 18);
f.skewX = 15;
g.useSystemFont = !0;
g.fontSize = 25;
g.lineHeight = 25;
g.overflow = cc.Label.Overflow.SHRINK;
g.horizontalAlign = cc.Label.HorizontalAlign.CENTER;
y.dataID = "HallUI.play_now";
if ("2" === e.gameStatus) {
var m = new cc.Node(), v = m.addComponent(cc.Sprite);
m.parent = o;
m.position = cc.v2(66, -136);
n.color = cc.color(70, 70, 70);
p.color = cc.color(70, 70, 70);
f.color = cc.color(31.5, 48 * .3, 18 * .3);
cc.resources.load("Common/maintenance", cc.SpriteFrame, function(e, t) {
!e && v && v.isValid && (v.spriteFrame = t);
}.bind(t));
}
var b = new cc.Component.EventHandler();
b.target = cc.find("Canvas/gameNode");
b.component = "HallUI";
b.handler = "onGameItemClick";
a.clickEvents.push(b);
a.transition = cc.Button.Transition.SCALE;
a.zoomScale = .9;
a.node.gameConfig = e;
});
};
t.prototype.showItems = function() {
if (0 !== this.layoutItems.node.children.length) {
this.scrollView.scrollToLeft(.1);
this.layoutItems.enabled = !0;
this.layoutItems.updateLayout();
this.layoutItems.enabled = !1;
var e = this.layoutItems.node.convertToNodeSpaceAR(this.node.convertToWorldSpaceAR(cc.v2(this.node.width * this.node.anchorX, 0))).x - this.layoutItems.node.children[0].x - this.layoutItems.node.children[0].width / 2;
this.layoutItems.node.children.forEach(function(t) {
var o = t.position;
t.x += e;
t.stopAllActions();
t.runAction(cc.moveTo(.3, o).easing(cc.easeSineOut()));
});
}
};
a([ h(cc.Node) ], t.prototype, "content", void 0);
a([ h(cc.ScrollView) ], t.prototype, "scrollView", void 0);
a([ h(cc.Layout) ], t.prototype, "layoutItems", void 0);
a([ h(cc.Animation) ], t.prototype, "aniItems", void 0);
a([ h(cc.Widget) ], t.prototype, "wgtScrollView", void 0);
return a([ p ], t);
}(cc.Component);
o.default = f;
cc._RF.pop();
}, {
"../Models/GameList": "GameList",
"../Shared/Constant": "Constant",
"../Shared/Global": "Global",
"./GamesConfig": "GamesConfig",
LanguageData: "LanguageData"
} ],
SpriteFrameSet: [ function(e, t) {
"use strict";
cc._RF.push(t, "97019Q80jpE2Yfz4zbuCZBq", "SpriteFrameSet");
var o = cc.Class({
name: "SpriteFrameSet",
properties: {
language: "",
spriteFrame: cc.SpriteFrame
}
});
t.exports = o;
cc._RF.pop();
}, {} ],
Submit: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "86ea9MY9dFEnYrQ/SBWknMm", "Submit");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/UIManager"), c = e("../../Shared/NetworkLogic"), s = e("../../Shared/AudioManager"), l = e("../../Shared/Global"), d = e("../../Models/Player"), u = e("LanguageData"), p = cc._decorator, h = p.ccclass, f = p.property, g = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.item = null;
t.content = null;
t.activityId = void 0;
t.textField = [];
return t;
}
t.prototype.start = function() {};
t.prototype.updataUI = function(e) {
this.data = e;
cc.log("====data:", this.data);
this.node.active = !0;
var t = this.data.listTip;
this.activityId = e.id;
if (Array.isArray(t) && t.length > 0) for (var o = 0; o < t.length; o++) {
var n = cc.instantiate(this.item);
n.parent = this.content;
var i = n.getChildByName("New EditBox").getComponent(cc.EditBox);
i.string = "";
i.placeholder = u.t("label_text.inPlease_enter_the") + t[o];
n.getChildByName("labName").getComponent(cc.Label).string = t[o] + ":";
n.active = !0;
this.textField.push(i);
}
for (var a = 0; a < this.textField.length; a++) {
var r = this._getItem(this.activityId, a);
"" !== r && null !== r && (this.textField[a].string = r);
}
};
t.prototype.onBtnClick = function(e, t) {
s.default.playSound("button");
var o = this.textField;
if ("close" === t) this.node.destroy(); else if ("ok" === t) {
var n = [], i = this.data.listTip, a = "";
if (Array.isArray(i) && i.length > 0) {
for (var d = 0; d < this.content.children.length; d++) {
var p = this.content.children[d].getChildByName("New EditBox").getComponent(cc.EditBox).string;
if (!p) {
r.default.showToastUI(u.t("datum_text.input_datum"), l.Global.ToastType.Warnning);
return;
}
n.push(p);
d < i.length - 1 ? a += i[d] + ":" + p + "," : d === i.length - 1 && (a += i[d] + ":" + p);
}
var h = {
id: this.data.id,
user_submit_data: a
};
c.default.activityApplyContentActivity(h, function(e) {
r.default.showToastUI(u.t("datum_text.apply_succ"), l.Global.ToastType.OK);
cc.log("====返回内容活动 rec：", e);
}.bind(this), function(e) {
cc.log("====返回内容活动 错误：", e);
}.bind(this));
this._clearItem(this.activityId);
this.node.destroy();
}
} else if ("save" === t) {
r.default.showToastUI(u.t("register_text.save_suc"), l.Global.ToastType.OK);
for (var f = 0; f < o.length; f++) "" !== o[f].string && this._setItem(this.activityId, f, o[f].string);
}
};
t.prototype._setItem = function(e, t, o) {
var n = this._generateID(e, t);
cc.sys.localStorage.setItem(n, o);
};
t.prototype._getItem = function(e, t) {
var o = this._generateID(e, t);
return cc.sys.localStorage.getItem(o);
};
t.prototype._clearItem = function(e) {
for (var t = this.textField, o = 0; o < t.length; o++) {
var n = this._generateID(e, o);
cc.sys.localStorage.removeItem(n);
}
};
t.prototype._generateID = function(e, t) {
return d.default.getPy("userID") + "_activity_" + e + "_" + t;
};
a([ f(cc.Node) ], t.prototype, "item", void 0);
a([ f(cc.Node) ], t.prototype, "content", void 0);
return a([ h ], t);
}(cc.Component);
o.default = g;
cc._RF.pop();
}, {
"../../Models/Player": "Player",
"../../Shared/AudioManager": "AudioManager",
"../../Shared/Global": "Global",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
LanguageData: "LanguageData"
} ],
TaskAgent: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "7e746np4ohD5LDFfcU+KHV1", "TaskAgent");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/htmlAfter"), c = e("./TaskHtmlBefore"), s = e("../../Shared/NetworkLogic"), l = e("../../Shared/UIManager"), d = e("../../Shared/AudioManager"), u = e("../CustomerServiceUI"), p = e("LanguageData"), h = cc._decorator, f = h.ccclass, g = h.property, y = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.gunPingArr = [];
t.webV = null;
t.layout = null;
t.rankIndex = 0;
t.index = 0;
t.rankingList = [];
t.data = null;
t.allActivityNode = null;
t.bscroll = !1;
t.constHeight = 0;
t.cosntPosY = 0;
t.speed = 1;
return t;
}
t.prototype.start = function() {
this.pos0 = this.gunPingArr[0].position;
this.pos1 = this.gunPingArr[1].position;
this.constHeight = this.gunPingArr[0].height;
this.cosntPosY = this.gunPingArr[0].position.y;
l.default.showLoadingUI();
s.default.agentGetAgentRecruitment(function(e) {
this.data = e;
cc.log("==代理招募数据：", e);
this.rankingList = e.rankingList;
this.htmlContent = e.shareTaskSet.agentRecruitmentTutorialText;
this.rankingList.length > 0 && this.setScrollData(this.rankingList);
this.setWebView(this.htmlContent);
l.default.hideLoadingUI();
}.bind(this), function(e) {
l.default.hideLoadingUI();
cc.log("====任务列表错误", e);
}.bind(this));
};
t.prototype.onEnable = function() {
this.htmlContent && this.setWebView(this.htmlContent);
};
t.prototype.onDisable = function() {
this.webV.node.active = !1;
};
t.prototype.onDestroy = function() {
this.unscheduleAllCallbacks();
};
t.prototype.loadImge = function(e, t) {
cc.assetManager.loadRemote(e, {
ext: ".png"
}, function(e, o) {
!e && this.node ? cc.isValid(t) && (t.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(o)) : cc.log("===加载图片spAgent错误");
}.bind(this));
};
t.prototype.onBtnAgent = function() {
d.default.playSound("button");
var e = cc.find("Canvas/gameNode").getComponent("HallUI"), t = e.openChildUI(e.pfbCustomerServiceUI);
t && (t.getComponent(u.default).customerTypeName = "MT");
this.node.parent.parent.destroy();
};
t.prototype.setScrollData = function(e) {
for (var t = 0; t < this.gunPingArr[0].children.length; t++) {
this.gunPingArr[0].children[t].getComponent(cc.RichText).string = this._getStr(e[this.rankIndex]);
this.rankIndex++;
this.rankIndex %= e.length;
}
for (t = 0; t < this.gunPingArr[1].children.length; t++) {
this.gunPingArr[1].children[t].getComponent(cc.RichText).string = this._getStr(e[this.rankIndex]);
this.rankIndex++;
this.rankIndex %= e.length;
}
this.bscroll = !0;
};
t.prototype.rankListScroll = function() {
this.schedule(function() {
this.gunPing0.runAction(cc.sequence(cc.moveBy(.2, cc.v2(0, 502)), cc.callFunc(function() {
if (this.index % 2 == 0) {
this.gunPing0.position = this.pos1;
for (var e = 0; e < this.gunPing0.children.length; e++) {
this.gunPing0.children[e].getComponent(cc.RichText).string = this._getStr(this.rankingList[this.rankIndex]);
this.rankIndex++;
this.rankIndex %= this.rankingList.length;
}
}
}.bind(this))));
this.gunPing1.runAction(cc.sequence(cc.moveBy(.2, cc.v2(0, 502)), cc.callFunc(function() {
if (this.index % 2 == 1) {
this.gunPing1.position = this.pos1;
for (var e = 0; e < this.gunPing1.children.length; e++) {
this.gunPing1.children[e].getComponent(cc.RichText).string = this._getStr(this.rankingList[this.rankIndex]);
this.rankIndex++;
this.rankIndex %= this.rankingList.length;
}
}
this.index++;
}.bind(this))));
}.bind(this), 2);
};
t.prototype._getStr = function(e) {
var t = "";
1 === e.type ? t = "<color =#FFEB00>" + e.userId + "</color>" + p.t("XimaLayer.receive") + "<color =#0fffff>" + p.t("TuiGuangLayer.agent_commission") + "</color><color =#FF0000>" + e.brokerageMoney + "</color>" : 2 === e.type && (t = "<color =#FFEB00>" + e.userId + "</color>" + p.t("XimaLayer.receive") + "<color =#0fffff>" + p.t("TuiGuangLayer.share_commission") + "</color><color =#FF0000>" + e.shareBonusMoney + "</color>");
return t;
};
t.prototype.update = function() {
if (this.bscroll && !(this.rankingList.length <= 0)) for (var e = 0; e < this.gunPingArr.length; e++) {
var t = this.gunPingArr[e];
t.position = cc.v2(t.position.x, t.position.y + this.speed);
if (t.position.y >= this.constHeight + this.cosntPosY) {
t.position = this.pos1;
for (var o = 0; o < t.children.length; o++) {
t.children[o].getComponent(cc.RichText).string = this._getStr(this.rankingList[this.rankIndex]);
this.rankIndex++;
this.rankIndex %= this.rankingList.length;
}
}
}
};
t.prototype.setWebView = function(e) {
this.webV.node.active = !0;
var t = c.default + e + r.default;
cc.log("=====webView1 str:", t);
this.webV._impl.loadHTMLString(t);
cc.sys.isNative && this.webV._impl._iframe && this.webV._impl._iframe.setBackgroundTransparent && this.webV._impl._iframe.setBackgroundTransparent(!0);
};
t.prototype.onBtnClose = function() {
d.default.playSound("close");
this.node.destroy();
};
a([ g([ cc.Node ]) ], t.prototype, "gunPingArr", void 0);
a([ g(cc.WebView) ], t.prototype, "webV", void 0);
a([ g(cc.Node) ], t.prototype, "layout", void 0);
return a([ f ], t);
}(cc.Component);
o.default = y;
cc._RF.pop();
}, {
"../../Shared/AudioManager": "AudioManager",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
"../../Shared/htmlAfter": "htmlAfter",
"../CustomerServiceUI": "CustomerServiceUI",
"./TaskHtmlBefore": "TaskHtmlBefore",
LanguageData: "LanguageData"
} ],
TaskData: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "9a9ea+jIcJOPLVLr7a3akks", "TaskData");
var n = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, i = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var a = e("../../Shared/NetworkLogic"), r = e("../../Shared/UIManager"), c = e("LanguageData"), s = function() {
function e() {
this._mainSwitch = null;
this._popSwitch = null;
this.recommendData = null;
this.listType = {};
this.recommendTexture = null;
this.taskNum = 0;
}
e.prototype.resetData = function() {
this._mainSwitch = null;
this._popSwitch = null;
this.recommendData = null;
this.listType = {};
this.taskNum = 0;
};
e.prototype.getTaskMainSwitch = function() {
return n(this, void 0, void 0, function() {
var e;
return i(this, function(t) {
switch (t.label) {
case 0:
if (this._mainSwitch) return [ 3, 2 ];
e = this;
return [ 4, this._getTaskMainSwitch() ];

case 1:
e._mainSwitch = t.sent();
t.label = 2;

case 2:
return [ 2, this._mainSwitch ];
}
});
});
};
e.prototype.getTaskPopSwitch = function() {
return n(this, void 0, void 0, function() {
var e, t;
return i(this, function(o) {
switch (o.label) {
case 0:
return this._popSwitch ? [ 3, 2 ] : [ 4, this._getTaskPopSwitch() ];

case 1:
e = o.sent();
t = !1;
"0" === e.status && (t = !0);
this._popSwitch = t;
o.label = 2;

case 2:
return [ 2, this._popSwitch ];
}
});
});
};
e.prototype.getList = function(e) {
return n(this, void 0, void 0, function() {
var t;
return i(this, function(o) {
switch (o.label) {
case 0:
return this.listType[e] ? [ 3, 2 ] : [ 4, this._getTaskList(e) ];

case 1:
t = o.sent();
this.listType[e] = t;
o.label = 2;

case 2:
return [ 2, this.listType[e] ];
}
});
});
};
Object.defineProperty(e.prototype, "ListType", {
set: function(e) {
this.listType = e;
},
enumerable: !1,
configurable: !0
});
e.prototype.getRecommendTask = function() {
return n(this, void 0, void 0, function() {
var e;
return i(this, function(t) {
switch (t.label) {
case 0:
if (this.recommendData) return [ 3, 2 ];
e = this;
return [ 4, this._getRecommendTask() ];

case 1:
e.recommendData = t.sent();
t.label = 2;

case 2:
return [ 2, this.recommendData ];
}
});
});
};
e.prototype.loadTexture = function(e) {
var t = this;
return new Promise(function(o) {
cc.assetManager.loadRemote(e, {
ext: ".png"
}, function(e, t) {
o(e || t);
}.bind(t));
});
};
e.prototype.taskGetTypes = function() {
var e = this;
return new Promise(function(t) {
a.default.taskGetTypes({}, function(e) {
cc.log("====_getTaskList:", e);
t(e);
}.bind(e), function() {
t(null);
}.bind(e));
});
};
e.prototype._getTaskList = function(e) {
var t = this;
cc.log("====进_getTaskList");
r.default.showLoadingUI();
return new Promise(function(o) {
a.default.taskList({
taskTypeId: e
}, function(e) {
r.default.hideLoadingUI();
cc.log("====_getTaskList:", e);
o(e);
}.bind(t), function() {
o([]);
}.bind(t));
});
};
e.prototype._getTaskPopSwitch = function() {
var e = this;
return new Promise(function(t) {
a.default.taskSwitch({}, "pop", function(e) {
cc.log("====任务副开关rec：", e);
t(e);
}.bind(e), function() {
t(!1);
}.bind(e));
});
};
e.prototype._getTaskMainSwitch = function() {
var e = this;
return new Promise(function(t) {
a.default.taskSwitch({}, "main", function(e) {
cc.log("====任务总开关rec：", e);
r.default.hideLoadingUI();
var o = !1;
"0" === e.status && (o = !0);
t(o);
}.bind(e), function() {
r.default.hideLoadingUI();
t(!1);
}.bind(e));
});
};
e.prototype._getRecommendTask = function() {
var e = this;
return new Promise(function(t) {
a.default.taskRecommend({}, function(e) {
cc.log("=====getRecommendTask rec", e);
t(e);
}.bind(e), function() {
cc.log("=====rec");
t(null);
}.bind(e));
});
};
e.prototype.getBtnType = function(e) {
var t = "";
switch (e) {
case -1:
t = c.t("Task.complete");
break;

case 0:
t = c.t("Task.application");
break;

case 1:
t = c.t("msg_text.receive");
break;

case 2:
t = c.t("Task.refused");
break;

case 3:
t = c.t("XimaLayer.receive");
break;

case 4:
t = c.t("Task.apply_reward");
}
return t;
};
e.prototype.getBtnType1 = function(e) {
var t = "";
switch (e) {
case -1:
t = c.t("share_text.submit_audit");
break;

case 0:
t = c.t("Task.application");
break;

case 1:
t = c.t("msg_text.receive");
break;

case 2:
t = c.t("Task.refused");
break;

case 3:
t = c.t("XimaLayer.receive");
break;

case 4:
t = c.t("share_text.apply_reward");
}
return t;
};
e.prototype.getStateStr = function(e) {
var t = "";
switch (e) {
case -1:
t = c.t("Task,submit_creenshot");
break;

case 0:
t = c.t("pre_details_text.audit");
break;

case 1:
t = c.t("msg_text.receive");
break;

case 2:
t = c.t("Task.Audit_failure");
break;

case 3:
t = c.t("XimaLayer.receive");
break;

case 4:
t = c.t("share_text.apply_reward");
}
return t;
};
e.prototype.getBtnInteractable = function(e) {
var t = !0;
switch (e) {
case -1:
t = !0;
break;

case 0:
case 1:
case 2:
t = !1;
break;

case 3:
case 4:
t = !0;
}
return t;
};
return e;
}();
o.default = new s();
cc._RF.pop();
}, {
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
LanguageData: "LanguageData"
} ],
TaskDetail: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "a339cBVhkNJrbUBiFZvQSjc", "TaskDetail");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/AudioManager"), c = cc._decorator, s = c.ccclass, l = c.property, d = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.content = null;
return t;
}
t.prototype.start = function() {};
t.prototype.updateUI = function(e) {
this.content.getChildByName("labName").getComponent(cc.Label).string = e.taskName;
this.content.getChildByName("labTime").getComponent(cc.Label).string = e.taskTime;
this.content.getChildByName("labContent").getComponent(cc.Label).string = e.taskContent;
this.content.getChildByName("labDetail").getComponent(cc.Label).string = e.taskDetail;
};
t.prototype.onBtnClose = function() {
r.default.playSound("close");
this.node.destroy();
};
a([ l(cc.Node) ], t.prototype, "content", void 0);
return a([ s ], t);
}(cc.Component);
o.default = d;
cc._RF.pop();
}, {
"../../Shared/AudioManager": "AudioManager"
} ],
TaskHtmlBefore: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "582febnHsJFlIjW2F/x1QJj", "TaskHtmlBefore");
Object.defineProperty(o, "__esModule", {
value: !0
});
o.default = '\n    <!doctype html>\n<html lang="en">\n<head>\n    <meta charset="UTF-8">\n    <meta name="viewport"\n          content="width=device-width, user-scalable=1, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">\n\x3c!--    <meta http-equiv="X-UA-Compatible" content="ie=edge">--\x3e\n\x3c!--    <title>代理教程</title>--\x3e\n    <style>\n        .div{\n            display: block;\n        }\n        body {\n            padding: 0;\n            margin: 0;\n            background-color: #313891;\n            font-size: 12px;\n            color: #fff;\n            /*max-width: 100%; !*最大宽度不超过 800 像素*!*/\n        }\n\n        .hd-title {\n            text-align: center;\n        }\n\n        .text {\n            color: #fdfdfd;\n        }\n\n        .main-box {\n            padding: 0 12px;\n        }\n\n        table,\n        th,\n        td {\n            border: 1px solid #318DD6;\n        }\n\n        table {\n            border-collapse: collapse;\n            max-width: 100%;\n        }\n\n        th {\n            line-height: 30px;\n        }\n\n        th,\n        td {\n            text-align: center;\n        }\n\n        th {\n            background: #318DD6;\n            color: #000;\n        }\n\n        td {\n            color: #fdfdfd;\n        }\n\n        .title {\n            font-size: 16px;\n            font-weight: bold;\n            color: #fff;\n        }\n\n        .but {\n            background: linear-gradient(#2ad6fd, #0088fe);\n            width: 200px;\n            height: 42px;\n            border-radius: 42px;\n            line-height: 42px;\n            font-size: 18px;\n            font-weight: 400;\n            text-align: center;\n            margin: 0 auto;\n            color: #fff;\n        }\n    </style>\n    <style>.vfinder-info a,\n    .vfinder-info div {\n        color: #dedede;\n    }\n\n    .vfinder-info *,\n    .vfinder-code * {\n        margin: 0;\n        padding: 0;\n        border-width: 0;\n        background: transparent;\n    }\n\n    .vfinder-info > div {\n        padding: 4px 12px;\n    }\n\n    .vfinder-info > div:hover {\n        background: rgba(140, 140, 140, 0.36);\n    }\n\n    .vfinder-info {\n        position: fixed;\n        border-radius: 4px;\n        padding: 5px 0;\n        background: rgba(64, 64, 64, 0.9);\n\n        /*    padding: 10px 18px;*/\n        z-index: 9999999;\n        border: 1px solid rgb(143, 143, 143);\n        font-size: 13px;\n    }\n\n    .vfinder-info:after {\n        position: absolute;\n        content: " ";\n        width: 10px;\n        height: 10px;\n        -webkit-transform: rotate(45deg);\n        background: rgba(64, 64, 64, 0.9);\n        left: -5px;\n        top: 50%;\n        margin-top: -5px;\n    }\n\n    .vfinder-info-name-template {\n        color: #ff7474;\n    }\n\n    .vfinder-info-name-style {\n        color: #17ceff;\n    }\n\n    .vfinder-info-name-script {\n        color: #f281ff;\n    }\n\n    .vfinder-info-name-created {\n        color: #40c22a;\n    }\n\n    .vfinder-info-name-template,\n    .vfinder-info-name-style,\n    .vfinder-info-name-script,\n    .vfinder-info-name-created {\n        display: inline-block;\n        width: 75px;\n    }\n\n    .vfinder-mask {\n        position: fixed;\n        z-index: 9999998;\n        background-color: #588DE1;\n        pointer-events: none;\n    }\n\n    .vfinder-code {\n        position: fixed;\n        /*    padding: 10px;*/\n        /*    background: rgba(254, 255, 221, 0.9);*/\n        background: rgba(64, 64, 64, 0.9);\n        max-width: 400px;\n        font-size: 10px;\n        z-index: 10000000;\n        word-wrap: break-word;\n        border-radius: 4px;\n        /*    color: #747474;*/\n        color: #dedede;\n        border: 1px solid rgba(222, 222, 222, 0.34);\n    }\n\n    .vfinder-path::-webkit-scrollbar,\n    .vfinder-code-content::-webkit-scrollbar {\n        height: 8px;\n        width: 8px;\n    }\n\n    .vfinder-path::-webkit-scrollbar-thumb,\n    .vfinder-code-content::-webkit-scrollbar-thumb {\n        background: rgba(103, 103, 103, 0.9);\n        border-radius: 4px;\n    }\n\n    .vfinder-path::-webkit-scrollbar-track,\n    .vfinder-code-content::-webkit-scrollbar-track {\n        background: #ddd;\n        border-radius: 4px;\n    }\n\n\n    .vfinder-code-content {\n        padding: 0 10px;\n        overflow: auto;\n        max-height: 260px;\n    }\n\n    .vfinder-code-content p {\n        padding: 2px 6px 2px 0;\n    }\n\n    .vfinder-code-content > pre {\n        float: left;\n        clear: left;\n        white-space: nowrap;\n    }\n\n    .vfinder-current-code-line {\n        background: rgba(234, 102, 223, 0.25);\n        border-radius: 2px;\n    }\n\n    .vfinder-path {\n        padding: 10px;\n        border-bottom: 1px solid rgba(222, 222, 222, 0.34);\n        background: rgba(140, 140, 140, 0.36);\n        white-space: nowrap;\n        overflow-x: auto;\n    }\n\n    .vfinder-line-count {\n        color: #dedede;\n        min-width: 25px;\n        display: inline-block;\n    }\n\n\n    </style>\n    <style>/*\n  IR_Black style (c) Vasily Mikhailitchenko <vaskas@programica.ru>\n*/\n\n    .hljs {\n        display: block;\n        overflow-x: auto;\n        padding: 0.5em;\n        background: #000;\n        color: #f8f8f8;\n    }\n\n    .hljs-comment,\n    .hljs-quote,\n    .hljs-meta {\n        color: #7c7c7c;\n    }\n\n    .hljs-keyword,\n    .hljs-selector-tag,\n    .hljs-tag,\n    .hljs-name {\n        color: #96cbfe;\n    }\n\n    .hljs-attribute,\n    .hljs-selector-id {\n        color: #ffffb6;\n    }\n\n    .hljs-string,\n    .hljs-selector-attr,\n    .hljs-selector-pseudo,\n    .hljs-addition {\n        color: #a8ff60;\n    }\n\n    .hljs-subst {\n        color: #daefa3;\n    }\n\n    .hljs-regexp,\n    .hljs-link {\n        color: #e9c062;\n    }\n\n    .hljs-title,\n    .hljs-section,\n    .hljs-type,\n    .hljs-doctag {\n        color: #ffffb6;\n    }\n\n    .hljs-symbol,\n    .hljs-bullet,\n    .hljs-variable,\n    .hljs-template-variable,\n    .hljs-literal {\n        color: #c6c5fe;\n    }\n\n    .hljs-number,\n    .hljs-deletion {\n        color: #ff73fd;\n    }\n\n    .hljs-emphasis {\n        font-style: italic;\n    }\n\n    .hljs-strong {\n        font-weight: bold;\n    }\n    img{\n        max-width:100vw;\n    }\n    </style>\n</head>\n<body>\n\x3c!--body下 必须用一个 class为aff的div包裹起来，以方便APP那边计算网页高度--\x3e\n<div class="aff">\n\x3c!--    <p class="hd-title">--\x3e\n\x3c!--        <img width="100%"--\x3e\n\x3c!--             src="data:image/png;base64, "--\x3e\n\x3c!--             alt="">--\x3e\n    </p>\n';
cc._RF.pop();
}, {} ],
TaskLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "77707qk2/5BM45JdO+8l7/8", "TaskLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
}, r = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, c = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var s = e("../../Shared/AudioManager"), l = e("../../Shared/NetworkLogic"), d = e("../../Shared/Utils"), u = e("../../Models/GameList"), p = e("../../Shared/UIManager"), h = e("../../Models/Player"), f = e("./TaskData"), g = e("../../Shared/Global"), y = e("LanguageData"), m = cc._decorator, v = m.ccclass, b = m.property, _ = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.scrollView = null;
t.btnSpArr = [];
t.detailLayer = null;
t.titleContainer = null;
t.leftItem = null;
t.rightContent = null;
t.rightItem = null;
t.rightLayer = null;
t.rightShareLayer = null;
t.bPlayClick = !1;
t.recommendData = null;
t.tempContent = null;
t.rightLayerArr = {};
t.redPoint = null;
t.bShare = !1;
return t;
}
t.prototype.onLoad = function() {
this.bPlayClick = !1;
};
t.prototype.start = function() {
cc.director.on(g.Global.UserEvent.UpdateShareRedPoint, this.updateShareRedPoint, this);
};
t.prototype.onDestroy = function() {
cc.director.off(g.Global.UserEvent.UpdateShareRedPoint, this.updateShareRedPoint, this);
};
t.prototype.updateShareRedPoint = function() {
var e = cc.sys.localStorage.getItem(g.Global.localStorageId.TaskCopy + h.default.getPy("userID")), t = cc.sys.localStorage.getItem(g.Global.localStorageId.TaskSave + h.default.getPy("userID")), o = cc.sys.localStorage.getItem(g.Global.localStorageId.TaskShare + h.default.getPy("userID")), n = cc.sys.localStorage.getItem(g.Global.localStorageId.TaskSubmit + h.default.getPy("userID")), i = new Date(), a = 0;
e && e == "copy" + h.default.getPy("userID") && t && t == "save" + h.default.getPy("userID") && o && o == "share" + h.default.getPy("userID") && n && n === i.getUTCDate().toString() + h.default.getPy("userID") || (a = 1);
l.default.taskGetTypes({}, function(e) {
cc.log("===taskGetTypes:", e);
for (var t = this.titleContainer.node.children, o = 0; o < e.length; o++) for (var n = 0; n < t.length; n++) {
var i = t[n];
if (i.taskTypeId === e[o].taskTypeId) {
var r = i.getChildByName("redPoint");
if (e[o].finishCount > 0) {
r.active = !0;
r.getChildByName("labNum").getComponent(cc.Label).string = e[o].finishCount + a;
} else if (a > 0) {
this.redPoint.active = !0;
r.getChildByName("labNum").getComponent(cc.Label).string = a;
} else r.active = !1;
break;
}
}
}.bind(this), function() {
cc.log("===获取taskGetTypes类型错误:");
});
};
t.prototype.upateTaskLayer = function(e) {
return r(this, void 0, void 0, function() {
var t, o;
return c(this, function(n) {
switch (n.label) {
case 0:
p.default.showLoadingUI();
return [ 4, f.default.getTaskMainSwitch() ];

case 1:
t = n.sent();
p.default.hideLoadingUI();
if (!t) {
this.node.getChildByName("noData").active = !0;
return [ 2 ];
}
this.node.getChildByName("noData").active = !1;
this.recommendData = e;
cc.log("=====upateTaskLayer");
p.default.showLoadingUI();
return [ 4, f.default.getTaskMainSwitch() ];

case 2:
o = n.sent();
p.default.hideLoadingUI();
if (o) {
p.default.showLoadingUI();
l.default.taskGetTypes({}, function(e) {
p.default.hideLoadingUI();
cc.log("===taskGetTypes:", e);
this._setTitle(e);
}.bind(this), function() {
p.default.hideLoadingUI();
cc.log("===获取taskGetTypes类型错误:");
});
} else p.default.showToastUI(y.t("Task.activit_Shut") + "！");
return [ 2 ];
}
});
});
};
t.prototype._setTitle = function(e) {
void 0 === e && (e = []);
if (!(this.titleContainer.node.children.length > 0)) {
for (var t = 0; t < e.length; t++) {
cc.log("===CurrentLanguage:", cc.sys.localStorage.getItem("CurrentLanguage"));
if (8 === e[t].taskTypeId) {
if (h.default.isLogedIn() && "¥" === h.default.getPy("currencySymbol") && "zh_CN" === cc.sys.localStorage.getItem("CurrentLanguage")) {
var o = this._setTitleData(e[t]);
this.bShare = !0;
this.redPoint = o.getChildByName("redPoint");
var n = cc.sys.localStorage.getItem(g.Global.localStorageId.TaskCopy + h.default.getPy("userID")), i = cc.sys.localStorage.getItem(g.Global.localStorageId.TaskSave + h.default.getPy("userID")), a = cc.sys.localStorage.getItem(g.Global.localStorageId.TaskShare + h.default.getPy("userID")), r = cc.sys.localStorage.getItem(g.Global.localStorageId.TaskSubmit + h.default.getPy("userID")), c = new Date();
if (!(n && n == "copy" + h.default.getPy("userID") && i && i == "save" + h.default.getPy("userID") && a && a == "share" + h.default.getPy("userID") && r && r === c.getUTCDate().toString() + h.default.getPy("userID"))) {
this.redPoint.active = !0;
this.redPoint.getChildByName("labNum").getComponent(cc.Label).string = "1";
}
}
} else this._setTitleData(e[t]);
}
if (this.recommendData) {
var s = this.titleContainer.toggleItems;
for (t = 0; t < s.length; t++) if (s[t].checkEvents[0].customEventData === this.recommendData.taskTypeId) {
s[t].isChecked ? s[t].checkEvents[0].emit([ s[t].checkEvents[0].customEventData ]) : s[t].check();
break;
}
this.recommendData = null;
} else {
var l = this.titleContainer.toggleItems[0];
if (!l) return;
l.node.active = !0;
l.isChecked ? l.checkEvents[0].emit([ l.checkEvents[0].customEventData ]) : l.check();
}
}
};
t.prototype._setTitleData = function(e) {
var t = cc.instantiate(this.leftItem);
t.active = !0;
t.parent = this.titleContainer.node;
t.taskTypeId = e.taskTypeId;
t.getComponent(cc.Toggle).checkEvents[0].customEventData = e.taskTypeId;
t.getChildByName("labTitle").getComponent(cc.Label).string = e.taskTypeName;
if (e.finishCount > 0) {
var o = t.getChildByName("redPoint");
o.active = !0;
o.getChildByName("labNum").getComponent(cc.Label).string = e.finishCount;
}
return t;
};
t.prototype.onToggleSelected = function(e, t, o) {
void 0 === o && (o = !0);
this.scrollView.stopAutoScroll();
cc.log("===进入onToggleSelected param：", t);
this.bPlayClick ? o && s.default.playSound("toggle") : this.bPlayClick = !0;
if (8 === parseInt(t)) {
this.rightLayer.active = !1;
this.rightShareLayer.active = !0;
this.rightShareLayer.getComponent("TaskShare").updateUI(t);
} else {
this.rightShareLayer.active = !1;
this.rightLayer.active = !0;
cc.log("===param:", t);
this._setRightLayer(t);
}
};
t.prototype._setRightLayer = function(e) {
return r(this, void 0, void 0, function() {
var t, o, n, i, a, r, s, l, u, p, g, y, m, v, b, _, S, C;
return c(this, function(c) {
switch (c.label) {
case 0:
t = parseInt(e);
return [ 4, f.default.getList(t) ];

case 1:
if (!(o = c.sent())) return [ 2 ];
this.tempContent && (this.tempContent.active = !1);
if (this.rightLayerArr[e]) this.rightLayerArr[e].active = !0; else {
(n = cc.instantiate(this.rightContent)).parent = this.rightContent.parent;
n.active = !0;
this.rightLayerArr[e] = n;
for (i = 0; i < o.length; i++) {
C = null;
(C = cc.instantiate(this.rightItem)).parent = n;
a = C.getChildByName("nodeNotmove");
(r = a.getChildByName("name").getComponent(cc.Label)).string = o[i].taskName;
r._forceUpdateRenderData(!0);
if (r.node.width >= 400) {
s = d.default.handleNameLen(o[i].taskName, 25);
r.string = s;
}
a.getChildByName("money").getComponent(cc.Label).string = (h.default.getPy("currencySymbol") ? h.default.getPy("currencySymbol") : "") + o[i].taskMoney;
a.getChildByName("btnDetail").getComponent(cc.Button).clickEvents[0].customEventData = JSON.stringify(o[i]);
l = o[i].alreadyMoney;
u = C.getChildByName("firstProgress");
if (-1 === o[i].taskHandleStatus && l[0] && l[0].targetMoney) {
p = 0;
u.getChildByName("nameNow").getComponent(cc.Label).string = l[0].alreadyMoney + "/" + l[0].targetMoney;
p = l[0].alreadyMoney / l[0].targetMoney;
u.getChildByName("progressBar").getComponent(cc.ProgressBar).progress = p;
if (2 === l.length) {
(g = cc.find("secondProgress", C)).active = !0;
g.getChildByName("nameNow").getComponent(cc.Label).string = l[1].alreadyMoney + "/" + l[1].targetMoney;
p = l[1].alreadyMoney / l[1].targetMoney;
g.getChildByName("progressBar").getComponent(cc.ProgressBar).progress = p;
g.getChildByName("labContent").getComponent(cc.RichText).string = this.addRichColor(d.default.handleNameLen(o[i].alreadyMoney[1].planName, 38));
} else 1 === l.length && (cc.find("secondProgress", C).active = !1);
} else {
u.getChildByName("nameNow").getComponent(cc.Label).string = "";
u.getChildByName("progressBar").getComponent(cc.ProgressBar).progress = 1;
}
y = u.getChildByName("labContent").getComponent(cc.RichText);
m = o[i].alreadyMoney[0].planName;
v = d.default.handleNameLen(m, 38);
y.string = this.addRichColor(v);
C.taskId = o[i].taskId;
b = f.default.getBtnType(o[i].taskHandleStatus);
_ = a.getChildByName("btnGo").getComponent(cc.Button);
o[i].taskHandleStatus >= 0 && (_.node.getComponent(cc.Sprite).spriteFrame = this.btnSpArr[o[i].taskHandleStatus]);
_.node.getChildByName("btnGo_label").getComponent(cc.Label).string = b;
_.clickEvents[0].customEventData = JSON.stringify(o[i]);
_.interactable = f.default.getBtnInteractable(o[i].taskHandleStatus);
C.active = !0;
3 === o[i].taskHandleStatus && (a.getChildByName("redPoint").active = !0);
}
for (S = 0; S < o.length; S++) {
C = this.rightLayerArr[e].children[S];
this.getImage(o[S].logo, C);
}
}
this.tempContent = this.rightLayerArr[e];
this.scrollView.content = this.rightLayerArr[e];
return [ 2 ];
}
});
});
};
t.prototype.getImage = function(e, t) {
cc.assetManager.loadRemote(e, {
ext: ".png"
}, function(e, o) {
!e && this.node && cc.isValid(t) && (cc.find("nodeNotmove/mask/icon", t).getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(o));
}.bind(this));
};
t.prototype.onBtnGo = function(e, t) {
return r(this, void 0, void 0, function() {
var o = this;
return c(this, function(n) {
switch (n.label) {
case 0:
s.default.playSound("button");
if (!h.default.isLogedIn()) {
this.node.parent.parent.getComponent("ActivityAndTask").onBtnClose();
cc.find("Canvas/gameNode").getComponent("HallUI").checkLoginAndShowUI();
this.node.parent.parent.getComponent("ActivityAndTask").onBtnClose();
return [ 2 ];
}
return 1 !== (t = JSON.parse(t)).bindWechat ? [ 3, 2 ] : [ 4, new Promise(function(e) {
p.default.showLoadingUI();
l.default.bindWeChatInfo({}, function(t) {
cc.log("====查询微信是否绑定:", t);
p.default.hideLoadingUI();
e(t);
}, function() {
cc.log("====查询微信是否绑定失败");
p.default.hideLoadingUI();
e(!1);
});
}) ];

case 1:
if (!n.sent()) {
p.default.showConfirmUI(y.t("Task.Qbind_wx"), function() {
var e = cc.find("Canvas/gameNode").getComponent("HallUI");
e.openChildUI(e.pfbPlayerCenter);
o.node.parent.parent.getComponent("ActivityAndTask").onBtnClose();
}, y.t("vip_text.but_text"));
return [ 2 ];
}
n.label = 2;

case 2:
if (-1 === t.taskHandleStatus) {
this.jumpOut(t);
this.node.parent.parent.getComponent("ActivityAndTask").onBtnClose();
} else d.default.validateAuth(function() {
var n = {
taskId: t.taskId
};
p.default.showLoadingUI();
l.default.taskGetAward(n, function(o) {
p.default.hideLoadingUI();
cc.log("=====taskGetAward rec:", o);
e.target.getChildByName("btnGo_label").getComponent(cc.Label).string = f.default.getBtnType(o.status);
e.target.getComponent(cc.Button).interactable = f.default.getBtnInteractable(o.status);
e.target.getComponent(cc.Sprite).spriteFrame = this.btnSpArr[o.status];
e.target.parent.getChildByName("redPoint").active = !1;
if (3 === t.taskHandleStatus) {
cc.director.emit(g.Global.UserEvent.UpdateMoney);
cc.director.emit(g.Global.UserEvent.OpenBaoxiang, o.taskMoney);
cc.director.emit(g.Global.UserEvent.UpdateShareRedPoint, t.taskId);
} else 4 === t.taskHandleStatus && p.default.showToastUI(y.t("Task.Application_success") + "！");
f.default.ListType = {};
}.bind(o), function() {}.bind(o));
});
return [ 2 ];
}
});
});
};
t.prototype.onBtnDetail = function(e, t) {
s.default.playSound("button");
t = JSON.parse(t);
var o = this.node.parent.parent.getComponent("ActivityAndTask");
o.openChildUI(o.TaskDetail).getComponent("TaskDetail").updateUI(t);
};
t.prototype.addRichColor = function(e) {
var t = new RegExp("\\d+", "g");
if (t.test(e)) {
var o = e.match(t);
e = e.replace(/\d+/g, "&");
for (var n = 0; n < o.length; n++) e = e.replace("&", "<color =#FF2626>" + o[n] + "</color>");
}
return e;
};
t.prototype.jumpOut = function(e) {
var t = JSON.parse(e.taskConditionConfig)[0];
cc.log("====jumpOut taskConditionConfig:", t);
if (1 === t.conditionType) {
var o = cc.find("Canvas/gameNode").getComponent("HallUI"), n = o.openChildUI(o.pfbRechargeUI, !0).getComponent("RechargeUI");
n.bJump = !0;
n.jumpChargeTypeIdArr = t.conditionDeposit.depositType.split(",");
} else 2 === t.conditionType ? this._jumpToGame(t.conditionBet) : 3 === t.conditionType ? this._jumpToGame(t.conditionPlayTimes) : 4 === t.conditionType && this._jumpToGame(t.conditionLoss);
};
t.prototype._jumpToGame = function(e) {
if (0 === e.gameType) cc.log("===跳转到首页"); else if ("ALL" === e.gamePlat) this.clickGamType(e); else if (0 === e.gameListId) {
this.clickGamType(e);
this.clickGamePlat(e);
} else if (0 != e.gameListId) {
var t = cc.find("Canvas/gameNode").getComponent("HallUI"), o = u.default.getGameConfigById(e);
if (o) {
p.default.showLoadingUI();
0 === o.entranceFlag ? t.enterGame(o) : l.default.getGameList(o.id, function(o) {
p.default.hideLoadingUI();
for (var n = o.tabList, i = 0; i < n.length; i++) if (n[i].gameListId === e.gameListId) {
t.enterGame(n[i]);
break;
}
}.bind(this));
}
}
};
t.prototype.clickGamType = function(e) {
for (var t = cc.find("Canvas/gameNode/gameTypes/node/view/content").getComponent(cc.ToggleContainer).toggleItems, o = d.default.gameTypeToLayer(e.gameType), n = 0; n < t.length; n++) if (t[n].node.name === o) {
t[n].check();
break;
}
};
t.prototype.clickGamePlat = function(e) {
var t = cc.find("Canvas/gameNode").getComponent("HallUI"), o = this.getGameConfig(e);
o && t.enterGame(o);
};
t.prototype.getGameConfig = function(e) {
for (var t = u.default.serverData.tabList, o = 0; o < t.length; o++) if (null !== t[o].gameTypes && "" !== t[o].gameTypes) for (var n = 0; n < t[o].twoLevelList.length; n++) {
var i = t[o].twoLevelList[n];
if (i.platform === e.gamePlat && i.platformGameType === e.gameType) return i;
}
};
t.prototype.onTaskDetailClose = function() {
this.detailLayer.active = !1;
};
a([ b(cc.ScrollView) ], t.prototype, "scrollView", void 0);
a([ b([ cc.SpriteFrame ]) ], t.prototype, "btnSpArr", void 0);
a([ b(cc.Node) ], t.prototype, "detailLayer", void 0);
a([ b(cc.ToggleContainer) ], t.prototype, "titleContainer", void 0);
a([ b(cc.Node) ], t.prototype, "leftItem", void 0);
a([ b(cc.Node) ], t.prototype, "rightContent", void 0);
a([ b(cc.Node) ], t.prototype, "rightItem", void 0);
a([ b(cc.Node) ], t.prototype, "rightLayer", void 0);
a([ b(cc.Node) ], t.prototype, "rightShareLayer", void 0);
return a([ v ], t);
}(cc.Component);
o.default = _;
cc._RF.pop();
}, {
"../../Models/GameList": "GameList",
"../../Models/Player": "Player",
"../../Shared/AudioManager": "AudioManager",
"../../Shared/Global": "Global",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
"../../Shared/Utils": "Utils",
"./TaskData": "TaskData",
LanguageData: "LanguageData"
} ],
TaskShareClick: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "573afF1iwlAYatjwA/Hc0ak", "TaskShareClick");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
}, r = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, c = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var s = e("../../Shared/Utils"), l = e("../../Shared/UIManager"), d = e("../../Shared/CQRCode"), u = e("../../Shared/Global"), p = e("./TaskData"), h = e("../../Shared/AudioManager"), f = e("../../Models/Player"), g = e("LanguageData"), y = cc._decorator, m = y.ccclass, v = y.property, b = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.btnSpArr = [];
t.pfbShareToWechat = null;
t.pfbSubmit = null;
t.shareText = null;
t.labBottomLeft = null;
t.labState = null;
t.spArr = [];
t.spArrBig = [];
t.btnSubmit = null;
t.btnCopy = null;
t.btnSave = null;
t.btnShare = null;
t.spShareTutorial = null;
t.spUploadImgTutorial = null;
t.nodeImageShare = null;
t.nodeImageSubmit = null;
t.nodeIntroduce = null;
t.QRCode = null;
t.QRCode1 = null;
t.data = null;
t.strShare = "";
t.codeAddress = null;
return t;
}
t.prototype.start = function() {
cc.director.on(u.Global.UserEvent.UpdateShareTaskBtn, this.updateBtn, this);
};
t.prototype.onDestroy = function() {
cc.director.off(u.Global.UserEvent.UpdateShareTaskBtn, this.updateBtn, this);
};
t.prototype.updateBtn = function(e) {
cc.log("===更新按钮");
this.btnSubmit.node.getChildByName("labName").getComponent(cc.Label).string = p.default.getBtnType(0);
this.btnSubmit.node.getComponent(cc.Sprite).spriteFrame = this.btnSpArr[1];
this.btnSubmit.interactable = p.default.getBtnInteractable(0);
this.labState.string = e;
};
t.prototype.updateUI = function(e) {
return r(this, void 0, void 0, function() {
var t, o, n, i, a, r, l, d, h, g, y, m, v, b;
return c(this, function() {
this.data = e;
t = e.promoteTheAddress;
this.codeAddress = t;
o = e.shareText.split("&");
n = s.default.getRandomNum(0, o.length - 1);
i = o[n];
this.strShare = i;
a = new Date();
r = a.getDate().toString();
l = this._getTime();
this.shareText.string = i + "\n" + l + "\n" + t;
this.QRCode.string = t;
this.QRCode1.string = t;
this.btnSubmit.node.getChildByName("labName").getComponent(cc.Label).string = p.default.getBtnType1(e.taskHandleStatus);
this.btnSubmit.node.getComponent(cc.Sprite).spriteFrame = this.btnSpArr[e.taskHandleStatus + 1];
this.btnSubmit.interactable = p.default.getBtnInteractable(e.taskHandleStatus);
this.labBottomLeft.string = e.auditText;
this.labState.string = e.descText;
d = cc.sys.localStorage.getItem(u.Global.localStorageId.TaskCopy + f.default.getPy("userID"));
h = cc.sys.localStorage.getItem(u.Global.localStorageId.TaskSave + f.default.getPy("userID"));
g = cc.sys.localStorage.getItem(u.Global.localStorageId.TaskShare + f.default.getPy("userID"));
if (-1 != e.taskHandleStatus) {
cc.sys.localStorage.setItem(u.Global.localStorageId.TaskSubmit + f.default.getPy("userID"), r.toString() + f.default.getPy("userID"));
cc.director.emit(u.Global.UserEvent.UpdateShareRedPoint);
}
y = cc.sys.localStorage.getItem(u.Global.localStorageId.TaskSubmit + f.default.getPy("userID"));
d && d == "copy" + f.default.getPy("userID") || (this.btnCopy.node.getChildByName("redPoint").active = !0);
h && h == "save" + f.default.getPy("userID") || (this.btnSave.node.getChildByName("redPoint").active = !0);
g && g == "share" + f.default.getPy("userID") || (this.btnShare.node.getChildByName("redPoint").active = !0);
y && y == r.toString() + f.default.getPy("userID") || (this.btnSubmit.node.getChildByName("redPoint").active = !0);
cc.assetManager.loadRemote(e.shareTutorial, {
ext: ".png"
}, function(e, t) {
if (!e && this.node) {
if (cc.isValid(this.spShareTutorial)) {
this.spShareTutorial.spriteFrame = new cc.SpriteFrame(t);
this.nodeImageShare.getChildByName("btnImage").getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(t);
}
} else cc.log("===加载图片spAgent错误");
}.bind(this));
cc.assetManager.loadRemote(e.uploadImgTutorial, {
ext: ".png"
}, function(e, t) {
if (!e && this.node) {
if (cc.isValid(this.spUploadImgTutorial)) {
this.spUploadImgTutorial.spriteFrame = new cc.SpriteFrame(t);
this.nodeImageSubmit.getChildByName("btnImage").getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(t);
}
} else cc.log("===加载图片spAgent错误");
}.bind(this));
this.spArr[0].node.parent.active = !0;
m = function(t) {
cc.assetManager.loadRemote(e.shareImg[t], {
ext: ".png"
}, function(e, o) {
if (!e && this.node) {
if (cc.isValid(this.spArr[t])) {
this.spArr[t].spriteFrame = new cc.SpriteFrame(o);
this.spArrBig[t].spriteFrame = new cc.SpriteFrame(o);
}
} else cc.log("===加载图片spAgent错误");
}.bind(v));
};
v = this;
for (b = 0; b < e.shareImg.length; b++) m(b);
return [ 2 ];
});
});
};
t.prototype._getTime = function() {
var e = new Date(), t = (e.getMonth() + 1).toString(), o = e.getDate().toString();
1 === t.length && (t = "0" + t);
1 === o.length && (o = "0" + o);
cc.log("====获取时间：", t + o);
return t + o;
};
t.prototype._saveImage = function(e, t) {
return new Promise(function(o) {
s.default.saveNodeImageToAlbum(e, "QRCode" + t + ".png", function(e) {
o(e);
});
});
};
t.prototype.onBtnCopy = function() {
h.default.playSound("button");
this.shareText.string = this.strShare + "\n" + this._getTime() + "\n" + this.codeAddress;
s.default.copyText(this.shareText.string);
l.default.showToastUI(g.t("share_text.copy_succ"));
this.btnCopy.node.getChildByName("redPoint").active = !1;
cc.sys.localStorage.setItem(u.Global.localStorageId.TaskCopy + f.default.getPy("userID"), "copy" + f.default.getPy("userID"));
cc.director.emit(u.Global.UserEvent.UpdateShareRedPoint);
};
t.prototype.onBtnSaveImage = function() {
return r(this, void 0, void 0, function() {
var e;
return c(this, function() {
h.default.playSound("button");
this.btnSave.node.getChildByName("redPoint").active = !1;
cc.sys.localStorage.setItem(u.Global.localStorageId.TaskSave + f.default.getPy("userID"), "save" + f.default.getPy("userID"));
cc.director.emit(u.Global.UserEvent.UpdateShareRedPoint);
for (e = 0; e < this.spArr.length; e++) e === this.spArr.length - 1 ? s.default.saveNodeImageToAlbum(this.spArrBig[e].node, "QRCode" + e + ".png", function(e) {
e ? l.default.showToastUI(g.t("share_text.save_img_succ"), u.Global.ToastType.OK) : l.default.showTipUI(g.t("share_text.save_err"));
}.bind(this)) : s.default.saveNodeImageToAlbum(this.spArrBig[e].node, "QRCode" + e + ".png");
return [ 2 ];
});
});
};
t.prototype.onBtnShare = function() {
h.default.playSound("button");
this.btnShare.node.getChildByName("redPoint").active = !1;
cc.sys.localStorage.setItem(u.Global.localStorageId.TaskShare + f.default.getPy("userID"), "share" + f.default.getPy("userID"));
cc.director.emit(u.Global.UserEvent.UpdateShareRedPoint);
this.nodeIntroduce.active = !0;
this.nodeIntroduce.getComponent("TaskShareIntroduce").updateUI(this.data.titleImg);
};
t.prototype.onBtnSubmit = function() {
h.default.playSound("button");
cc.instantiate(this.pfbSubmit).parent = this.node.parent;
this.btnSubmit.node.getChildByName("redPoint").active = !1;
var e = new Date();
cc.sys.localStorage.setItem(u.Global.localStorageId.TaskSubmit + f.default.getPy("userID"), e.getDate().toString() + f.default.getPy("userID"));
cc.director.emit(u.Global.UserEvent.UpdateShareRedPoint);
};
t.prototype.onBtnImageShare = function() {
h.default.playSound("button");
this.nodeImageShare.active = !0;
};
t.prototype.onBtnImageSubmit = function() {
h.default.playSound("button");
this.nodeImageSubmit.active = !0;
};
t.prototype.onBtnBigImageShare = function() {
h.default.playSound("button");
this.nodeImageShare.active = !1;
};
t.prototype.onBtnBigImageSubmit = function() {
h.default.playSound("button");
this.nodeImageSubmit.active = !1;
};
t.prototype.onBtnClose = function() {
h.default.playSound("close");
this.node.destroy();
};
a([ v([ cc.SpriteFrame ]) ], t.prototype, "btnSpArr", void 0);
a([ v(cc.Prefab) ], t.prototype, "pfbShareToWechat", void 0);
a([ v(cc.Prefab) ], t.prototype, "pfbSubmit", void 0);
a([ v(cc.Label) ], t.prototype, "shareText", void 0);
a([ v(cc.Label) ], t.prototype, "labBottomLeft", void 0);
a([ v(cc.Label) ], t.prototype, "labState", void 0);
a([ v([ cc.Sprite ]) ], t.prototype, "spArr", void 0);
a([ v([ cc.Sprite ]) ], t.prototype, "spArrBig", void 0);
a([ v(cc.Button) ], t.prototype, "btnSubmit", void 0);
a([ v(cc.Button) ], t.prototype, "btnCopy", void 0);
a([ v(cc.Button) ], t.prototype, "btnSave", void 0);
a([ v(cc.Button) ], t.prototype, "btnShare", void 0);
a([ v(cc.Sprite) ], t.prototype, "spShareTutorial", void 0);
a([ v(cc.Sprite) ], t.prototype, "spUploadImgTutorial", void 0);
a([ v(cc.Node) ], t.prototype, "nodeImageShare", void 0);
a([ v(cc.Node) ], t.prototype, "nodeImageSubmit", void 0);
a([ v(cc.Node) ], t.prototype, "nodeIntroduce", void 0);
a([ v(d.default) ], t.prototype, "QRCode", void 0);
a([ v(d.default) ], t.prototype, "QRCode1", void 0);
return a([ m ], t);
}(cc.Component);
o.default = b;
cc._RF.pop();
}, {
"../../Models/Player": "Player",
"../../Shared/AudioManager": "AudioManager",
"../../Shared/CQRCode": "CQRCode",
"../../Shared/Global": "Global",
"../../Shared/UIManager": "UIManager",
"../../Shared/Utils": "Utils",
"./TaskData": "TaskData",
LanguageData: "LanguageData"
} ],
TaskShareFriend: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "fab7fLwjS1GXqtmw4MOouoa", "TaskShareFriend");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/AudioManager"), c = e("../../Shared/UIManager"), s = e("../../Shared/NetworkLogic"), l = e("LanguageData"), d = cc._decorator, u = d.ccclass, p = d.property, h = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.editBox = null;
t.btnSubmit = null;
return t;
}
t.prototype.start = function() {};
t.prototype.updateUI = function(e) {
this.editBox.placeholder = l.t("Task.friends_account");
this.editBox.string = "";
this.btnSubmit.clickEvents[0].customEventData = e.id;
};
t.prototype.onBtnClose = function() {
r.default.playSound("close");
this.node.active = !1;
};
t.prototype.onBtnSubmit = function(e, t) {
r.default.playSound("button");
if (this.editBox.string) {
var o = {
taskId: t,
friendUserId: this.editBox.string
};
c.default.showLoadingUI();
s.default.agentApplicationReward(o, function() {
c.default.hideLoadingUI();
this.node.active = !1;
c.default.showTipUI(l.t("datum_text.apply_succ"));
}.bind(this), function() {
console.log("=====提交错误");
});
} else c.default.showToastUI(l.t("Task.inp_account"));
};
a([ p(cc.EditBox) ], t.prototype, "editBox", void 0);
a([ p(cc.Button) ], t.prototype, "btnSubmit", void 0);
return a([ u ], t);
}(cc.Component);
o.default = h;
cc._RF.pop();
}, {
"../../Shared/AudioManager": "AudioManager",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
LanguageData: "LanguageData"
} ],
TaskShareImage: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "428c0mWbs1KJpDb/w77QdEQ", "TaskShareImage");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/AudioManager"), c = e("../../Shared/UIManager"), s = e("../../Shared/NetworkLogic"), l = e("../../Shared/Utils"), d = e("../../Shared/Global"), u = e("LanguageData"), p = cc._decorator, h = p.ccclass, f = p.property, g = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.labHttp = null;
t.btnSubmit = null;
t.tips1 = null;
t.tips2 = null;
t.button1 = null;
t.button2 = null;
t.strUrl = "";
t.shareDatumType = 0;
return t;
}
t.prototype.start = function() {};
t.prototype.updateUI = function(e) {
this.labHttp.string = u.t("datum_text.update_img");
this.btnSubmit.clickEvents[0].customEventData = e.id;
};
t.prototype.onBtnClose = function() {
r.default.playSound("close");
this.node.active = !1;
};
t.prototype.onBtnUploadImage = function() {
l.default.pickImageFromAlbum("image", function(e) {
cc.log("=====打开相册的path", e);
cc.log(e);
var t = e.split("/"), o = t[t.length - 1];
jsb.fileUtils.getFileSize(e);
c.default.showLoadingUI();
s.default.uploadFile(o, jsb.fileUtils.getDataFromFile(e), function(e) {
console.log("=====上传照片之后返回", e.path);
c.default.hideLoadingUI();
this.strUrl = e.path;
this.shareDatumType = 0;
this.labHttp.string = this.strUrl;
}.bind(this), function() {
c.default.hideLoadingUI();
cc.log("====照片上传错误");
}.bind(this));
}.bind(this));
};
t.prototype.onBtnSubmit = function() {
r.default.playSound("button");
if (this.strUrl) {
var e = this.strUrl.lastIndexOf("."), t = this.strUrl.substr(e + 1);
cc.log("==suffix:", t);
if ("png" == t || "jpeg" == t || "jpg" == t) {
cc.log("====strUrl:", this.strUrl);
var o = {
shareDatum: this.strUrl,
shareDatumType: this.shareDatumType
};
c.default.showLoadingUI();
s.default.taskAuditShare(o, function(e) {
c.default.hideLoadingUI();
cc.log("==== 提交资料成功 rec:", JSON.stringify(e));
cc.director.emit(d.Global.UserEvent.UpdateShareTaskBtn, e);
this.node.destroy();
c.default.showTipUI(u.t("datum_text.apply_succ"));
}.bind(this), function() {
console.log("=====提交错误");
});
} else c.default.showToastUI(u.t("datum_text.mag_update_pic") + "!", d.Global.ToastType.Warnning);
} else {
u.t("datum_text.update_img");
c.default.showToastUI(u.t("datum_text.msg_update_data") + "!", d.Global.ToastType.Warnning);
}
};
a([ f(cc.Label) ], t.prototype, "labHttp", void 0);
a([ f(cc.Button) ], t.prototype, "btnSubmit", void 0);
a([ f(cc.Node) ], t.prototype, "tips1", void 0);
a([ f(cc.Node) ], t.prototype, "tips2", void 0);
a([ f(cc.Node) ], t.prototype, "button1", void 0);
a([ f(cc.Node) ], t.prototype, "button2", void 0);
return a([ h ], t);
}(cc.Component);
o.default = g;
cc._RF.pop();
}, {
"../../Shared/AudioManager": "AudioManager",
"../../Shared/Global": "Global",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
"../../Shared/Utils": "Utils",
LanguageData: "LanguageData"
} ],
TaskShareIntroduce: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "81757hfAANC+4Brfnft3F+M", "TaskShareIntroduce");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = cc._decorator, c = r.ccclass, s = r.property, l = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.pageV = null;
t.page = null;
t.content = null;
return t;
}
t.prototype.start = function() {};
t.prototype.updateUI = function(e) {
if (!(this.content.children.length > 0)) {
for (var t = 0; t < e.length; t++) {
var o = cc.instantiate(this.page);
o.active = !0;
this.pageV.addPage(o);
this.pageV.setCurrentPageIndex(t);
}
this.pageV.scrollToPage(0, .1);
var n = function(t) {
var o = i.content.children[t];
cc.assetManager.loadRemote(e[t], {
ext: ".png"
}, function(e, t) {
if (!e && this.node) {
if (cc.isValid(o)) {
o.getChildByName("logo").active = !1;
o.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(t);
}
} else cc.log("===加载图片spAgent错误");
}.bind(i));
}, i = this;
for (t = 0; t < e.length; t++) n(t);
}
};
t.prototype.onBtnIKnow = function() {
this.node.active = !1;
};
t.prototype.onBtnLeft = function() {
var e = this.pageV.getCurrentPageIndex() - 1;
cc.log("====index:", e);
e = e < 0 ? 0 : e;
this.pageV.scrollToPage(e, .3);
};
t.prototype.onBtnRight = function() {
var e = this.pageV.getCurrentPageIndex() + 1;
e > this.pageV.getPages().length - 1 && (e = this.pageV.getPages().length - 1);
this.pageV.scrollToPage(e, .3);
};
a([ s(cc.PageView) ], t.prototype, "pageV", void 0);
a([ s(cc.Node) ], t.prototype, "page", void 0);
a([ s(cc.Node) ], t.prototype, "content", void 0);
return a([ c ], t);
}(cc.Component);
o.default = l;
cc._RF.pop();
}, {} ],
TaskShareVideo: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "d94b60hX7ZB1o5NEtmair2q", "TaskShareVideo");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/AudioManager"), c = e("../../Shared/UIManager"), s = e("../../Shared/Utils"), l = e("../../Shared/NetworkLogic"), d = e("LanguageData"), u = cc._decorator, p = u.ccclass, h = u.property, f = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.labHttp = null;
t.btnSubmit = null;
t.strUrl = null;
return t;
}
t.prototype.start = function() {};
t.prototype.updateUI = function(e) {
this.labHttp.string = d.t("Task.update_video");
this.btnSubmit.clickEvents[0].customEventData = e.id;
};
t.prototype.onBtnClose = function() {
r.default.playSound("close");
this.node.active = !1;
};
t.prototype.onBtnUpload = function() {
s.default.pickImageFromAlbum("video", function(e) {
cc.log("=====打开视频的path", e);
cc.log(e);
var t = e.split("/"), o = t[t.length - 1];
if (jsb.fileUtils.getFileSize(e) > 2097152) {
c.default.hideLoadingUI();
c.default.showToastUI(d.t("Task.video_limit_size"));
} else {
c.default.showLoadingUI();
l.default.uploadFile(o, jsb.fileUtils.getDataFromFile(e), function(e) {
console.log("=====上传视频之后返回", e);
c.default.hideLoadingUI();
this.strUrl = e.path;
this.labHttp.string = this.strUrl;
}.bind(this), function() {
c.default.hideLoadingUI();
cc.log("====照片视频错误");
}.bind(this));
}
}.bind(this));
};
t.prototype.onBtnSubmit = function(e, t) {
r.default.playSound("button");
if (this.strUrl) {
var o = {
friendUserId: "",
taskId: t,
imageUrl: "",
videoUrl: this.strUrl
};
c.default.showLoadingUI();
l.default.agentApplicationReward(o, function() {
c.default.hideLoadingUI();
cc.log("==== 提交视频资料成功 param：", parseInt(t));
this.node.active = !1;
c.default.showTipUI(d.t("datum_text.apply_succ"));
}.bind(this), function() {
console.log("=====提交错误");
});
} else c.default.showToastUI(d.t("datum_text.msg_update_data"));
};
a([ h(cc.Label) ], t.prototype, "labHttp", void 0);
a([ h(cc.Button) ], t.prototype, "btnSubmit", void 0);
return a([ p ], t);
}(cc.Component);
o.default = f;
cc._RF.pop();
}, {
"../../Shared/AudioManager": "AudioManager",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
"../../Shared/Utils": "Utils",
LanguageData: "LanguageData"
} ],
TaskShare: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "9c63fLCqTFK8bSLp1zid67l", "TaskShare");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
}, r = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, c = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var s = e("../../Shared/UIManager"), l = e("../../Shared/AudioManager"), d = e("../../Shared/Global"), u = e("./TaskData"), p = e("../../Models/Player"), h = e("../HallUI"), f = e("LanguageData"), g = cc._decorator, y = g.ccclass, m = g.property, v = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.gunPing0 = null;
t.gunPing1 = null;
t.gunPingArr = [];
t.spShare = null;
t.spAgent = null;
t.shareData = null;
t.rankIndex = 0;
t.index = 0;
t.rankingList = [];
t.bscroll = !1;
t.speed = 1;
return t;
}
t.prototype.onLoad = function() {};
t.prototype.start = function() {
cc.director.on(d.Global.UserEvent.UpdateShareRedPoint, this.updateShareRedPoint, this);
cc.director.on(d.Global.UserEvent.UpdateShareTaskBtn, this.updateBtn, this);
this.pos0 = this.gunPing0.position;
this.pos1 = this.gunPing1.position;
};
t.prototype.onDestroy = function() {
this.unscheduleAllCallbacks();
cc.director.off(d.Global.UserEvent.UpdateShareRedPoint, this.updateShareRedPoint, this);
cc.director.off(d.Global.UserEvent.UpdateShareTaskBtn, this.updateBtn, this);
};
t.prototype.updateShareRedPoint = function() {
var e = cc.sys.localStorage.getItem(d.Global.localStorageId.TaskCopy + p.default.getPy("userID")), t = cc.sys.localStorage.getItem(d.Global.localStorageId.TaskSave + p.default.getPy("userID")), o = cc.sys.localStorage.getItem(d.Global.localStorageId.TaskShare + p.default.getPy("userID")), n = cc.sys.localStorage.getItem(d.Global.localStorageId.TaskSubmit + p.default.getPy("userID")), i = new Date();
e && e == "copy" + p.default.getPy("userID") && t && t == "save" + p.default.getPy("userID") && o && o == "share" + p.default.getPy("userID") && n && n === i.getUTCDate().toString() + p.default.getPy("userID") ? this.spShare.node.getChildByName("redPoint").active = !1 : this.spShare.node.getChildByName("redPoint").active = !0;
};
t.prototype.updateBtn = function() {
return r(this, void 0, void 0, function() {
var e;
return c(this, function(t) {
switch (t.label) {
case 0:
e = this;
return [ 4, u.default._getTaskList(8) ];

case 1:
e.shareData = t.sent();
return [ 2 ];
}
});
});
};
t.prototype.updateUI = function(e) {
return r(this, void 0, void 0, function() {
var t, o, n, i, a, r, s, l;
return c(this, function(c) {
switch (c.label) {
case 0:
t = parseInt(e);
if (this.shareData) return [ 3, 2 ];
o = this;
return [ 4, u.default._getTaskList(t) ];

case 1:
o.shareData = c.sent();
c.label = 2;

case 2:
if (!this.shareData) return [ 2 ];
this.rankingList = this.shareData.rankingList;
this.rankingList.length > 0 && this.setScrollData(this.rankingList);
if (n = this.shareData.shareTaskSet) {
i = cc.sys.localStorage.getItem(d.Global.localStorageId.TaskCopy + p.default.getPy("userID"));
a = cc.sys.localStorage.getItem(d.Global.localStorageId.TaskSave + p.default.getPy("userID"));
r = cc.sys.localStorage.getItem(d.Global.localStorageId.TaskShare + p.default.getPy("userID"));
s = cc.sys.localStorage.getItem(d.Global.localStorageId.TaskSubmit + p.default.getPy("userID"));
l = new Date();
i && i == "copy" + p.default.getPy("userID") && a && a == "save" + p.default.getPy("userID") && r && r == "share" + p.default.getPy("userID") && s && s === l.getUTCDate().toString() + p.default.getPy("userID") || (this.spShare.node.getChildByName("redPoint").active = !0);
cc.assetManager.loadRemote(n.shareDesc, {
ext: ".png"
}, function(e, t) {
if (!e && this.node) {
if (cc.isValid(this.spShare)) {
this.spShare.node.getChildByName("logo").active = !1;
this.spShare.spriteFrame = new cc.SpriteFrame(t);
}
} else cc.log("===加载图片spShare错误");
}.bind(this));
} else this.spShare.node.active = !1;
cc.assetManager.loadRemote(n.agentRecruitmentDesc, {
ext: ".png"
}, function(e, t) {
if (!e && this.node) {
if (cc.isValid(this.spAgent)) {
this.spAgent.node.getChildByName("logo").active = !1;
this.spAgent.spriteFrame = new cc.SpriteFrame(t);
}
} else cc.log("===加载图片spAgent错误");
}.bind(this));
return [ 2 ];
}
});
});
};
t.prototype.setScrollData = function(e) {
if (!(this.rankingList.length <= 0)) {
for (var t = 0; t < this.gunPing0.children.length; t++) {
this.gunPing0.children[t].getComponent(cc.RichText).string = this._getStr(e[this.rankIndex]);
this.rankIndex++;
this.rankIndex %= e.length;
}
for (t = 0; t < this.gunPing1.children.length; t++) {
this.gunPing1.children[t].getComponent(cc.RichText).string = this._getStr(e[this.rankIndex]);
this.rankIndex++;
this.rankIndex %= e.length;
}
this.bscroll = !0;
}
};
t.prototype.rankListScroll = function() {
var e = cc.repeatForever(cc.sequence(cc.moveBy(7, cc.v2(0, 361.6)), cc.callFunc(function() {
this.gunPing0.position = this.pos1;
for (var e = 0; e < this.gunPing0.children.length; e++) {
this.gunPing0.children[e].getComponent(cc.RichText).string = this._getStr(this.rankingList[this.rankIndex]);
this.rankIndex++;
this.rankIndex %= this.rankingList.length;
}
}.bind(this)))), t = cc.repeatForever(cc.sequence(cc.moveBy(7, cc.v2(0, 361.6)), cc.callFunc(function() {
this.gunPing1.position = this.pos1;
for (var e = 0; e < this.gunPing0.children.length; e++) {
this.gunPing0.children[e].getComponent(cc.RichText).string = this._getStr(this.rankingList[this.rankIndex]);
this.rankIndex++;
this.rankIndex %= this.rankingList.length;
}
}.bind(this))));
this.gunPing0.runAction(e);
this.scheduleOnce(function() {
this.gunPing1.runAction(t);
}.bind(this), 4);
};
t.prototype.update = function() {
if (this.bscroll && !(this.rankingList.length <= 0)) for (var e = 0; e < this.gunPingArr.length; e++) {
var t = this.gunPingArr[e];
t.position = cc.v2(t.position.x, t.position.y + this.speed);
if (t.position.y >= 281.6) {
t.position = cc.v2(t.position.x, -121.6);
for (var o = 0; o < t.children.length; o++) {
t.children[o].getComponent(cc.RichText).string = this._getStr(this.rankingList[this.rankIndex]);
this.rankIndex++;
this.rankIndex %= this.rankingList.length;
}
}
}
};
t.prototype._getStr = function(e) {
var t = "";
1 === e.type ? t = "<color =#FFEB00>" + e.userId + "</color>" + f.t("XimaLayer.receive") + "<color =#0fffff>" + f.t("TuiGuangLayer.agent_commission") + "</color><color =#FF0000>" + e.brokerageMoney + "</color>" + f.t("baes_text.coin") : 2 === e.type && (t = "<color =#FFEB00>" + e.userId + "</color>" + f.t("XimaLayer.receive") + "<color =#0fffff>" + f.t("TuiGuangLayer.share_commission") + "</color><color =#FF0000>" + e.shareBonusMoney + "</color>" + f.t("baes_text.coin"));
return t;
};
t.prototype.onBtnClick = function(e, t) {
l.default.playSound("button");
var o = this.node.parent.parent.parent.getComponent("ActivityAndTask");
if (p.default.isLogedIn()) if ("share" === t) {
if ("0" != this.shareData.shareTaskSet.shareSwitch) {
s.default.showToastUI(f.t("Task.task_ShutDown"));
return;
}
o.openChildUI(o.pfbShare).getComponent("TaskShareClick").updateUI(this.shareData.shareTaskSet);
} else "agent" === t && (n = cc.find("Canvas/gameNode").getComponent("HallUI")).openChildUI(n.pfbTuiGuang).getComponent("TuiGuangLayer").updateUI("agentRecruit"); else {
var n;
(n = cc.find("Canvas/gameNode") && cc.find("Canvas/gameNode").getComponent(h.default)).checkLoginAndShowUI();
o.onBtnClose();
}
};
a([ m(cc.Node) ], t.prototype, "gunPing0", void 0);
a([ m(cc.Node) ], t.prototype, "gunPing1", void 0);
a([ m([ cc.Node ]) ], t.prototype, "gunPingArr", void 0);
a([ m(cc.Sprite) ], t.prototype, "spShare", void 0);
a([ m(cc.Sprite) ], t.prototype, "spAgent", void 0);
return a([ y ], t);
}(cc.Component);
o.default = v;
cc._RF.pop();
}, {
"../../Models/Player": "Player",
"../../Shared/AudioManager": "AudioManager",
"../../Shared/Global": "Global",
"../../Shared/UIManager": "UIManager",
"../HallUI": "HallUI",
"./TaskData": "TaskData",
LanguageData: "LanguageData"
} ],
Test: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "a03d7mHGG9ElKhpShiH8vEO", "Test");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("LanguageData"), c = cc._decorator, s = c.ccclass, l = (c.property, function(e) {
i(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.start = function() {};
t.prototype.onBtnZhong = function() {
r.init("zh");
};
t.prototype.onBtnYing = function() {
r.init("en");
};
return a([ s ], t);
}(cc.Component));
o.default = l;
cc._RF.pop();
}, {
LanguageData: "LanguageData"
} ],
ThirdGameItem: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "0c71ebII8ZLg5+1Wk2pckEo", "ThirdGameItem");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../Shared/ImageCache"), c = cc._decorator, s = c.ccclass, l = c.property, d = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.nodeDefaultImage = null;
t.nodeMaintenance = null;
t.lbName = null;
t.spUrlImage = null;
t.urlImgPrefix = "";
t._gameConfig = null;
return t;
}
Object.defineProperty(t.prototype, "gameConfig", {
get: function() {
return this._gameConfig;
},
set: function(e) {
this.nodeDefaultImage.active = !1;
this._gameConfig = e;
this.lbName.string = this._gameConfig.gameTitleCn;
if (this._gameConfig.gameStatus && "0" !== this._gameConfig.gameStatus) {
this.nodeMaintenance.active = !0;
this.nodeDefaultImage.color = cc.color(111, 111, 111);
this.spUrlImage.node.color = cc.color(111, 111, 111);
this.lbName.node.color = cc.color(111, 111, 111);
} else {
this.nodeMaintenance.active = !1;
this.nodeDefaultImage.color = cc.color(255, 255, 255);
this.spUrlImage.node.color = cc.color(255, 255, 255);
this.lbName.node.color = cc.color(255, 255, 255);
}
if (this._gameConfig.gameImageUrl1) {
cc.sys.isNative ? r.default.loadImage(this.urlImgPrefix + this._gameConfig.gameImageUrl1, function(e, t) {
!e && this.node && this._gameConfig && t.nativeUrl === r.default.getCachePath(this.urlImgPrefix + this._gameConfig.gameImageUrl1) && this.showTexture(t);
}.bind(this)) : cc.assetManager.loadRemote(this.urlImgPrefix + this._gameConfig.gameImageUrl1, {
ext: ".png"
}, function(e, t) {
!e && this.node && this._gameConfig && t.nativeUrl === this.urlImgPrefix + this._gameConfig.gameImageUrl1 && this.showTexture(t);
}.bind(this));
this.scheduleOnce(function() {
this.spUrlImage.spriteFrame || (this.nodeDefaultImage.active = !0);
}.bind(this), .2);
} else {
this.spUrlImage.spriteFrame = null;
this.nodeDefaultImage.active = !0;
}
},
enumerable: !1,
configurable: !0
});
t.prototype.reuse = function() {
this.nodeDefaultImage.active = !1;
};
t.prototype.unuse = function() {
this.spUrlImage.spriteFrame = null;
this.urlImgPrefix = "";
this._gameConfig = null;
this.node.active = !0;
this.node.position = cc.v2(0, 0);
};
t.prototype.showTexture = function(e) {
this.spUrlImage.spriteFrame = new cc.SpriteFrame(e);
this.nodeDefaultImage.active = !1;
};
a([ l(cc.Node) ], t.prototype, "nodeDefaultImage", void 0);
a([ l(cc.Node) ], t.prototype, "nodeMaintenance", void 0);
a([ l(cc.Label) ], t.prototype, "lbName", void 0);
a([ l(cc.Sprite) ], t.prototype, "spUrlImage", void 0);
return a([ s ], t);
}(cc.Component);
o.default = d;
cc._RF.pop();
}, {
"../Shared/ImageCache": "ImageCache"
} ],
ThirdGamesListUI: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "30649JJErdJIK0VdPvcW1yH", "ThirdGamesListUI");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../Shared/NetworkLogic"), c = e("../Shared/UIManager"), s = e("../Models/GameList"), l = e("./ThirdGameItem"), d = e("../Common/CommonToggleContainer"), u = e("../Shared/Utils"), p = e("../Shared/AudioManager"), h = e("LanguageData"), f = cc._decorator, g = f.ccclass, y = f.property, m = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.toggleContainer = null;
t.aniEnter = null;
t.pfbGameItem = null;
t.wgtNode = null;
t.scvItems = null;
t.layoutItems = null;
t.lbPlateform = null;
t.lbTotal = null;
t.ebSearch = null;
t.plateformID = 0;
t.gameTypeID = 0;
t._gamesList = {};
t._urlImgPrefix = "";
t._gameItemPool = null;
return t;
}
t.prototype.onLoad = function() {
this._gameItemPool = new cc.NodePool(l.default);
};
t.prototype.onEnable = function() {
this.lbPlateform.string = "";
this.lbTotal.string = "";
this.aniEnter.play();
this.createGamesListToggle();
u.default.hideGameNode();
};
t.prototype.onDisable = function() {
this.plateformID = 0;
this.gameTypeID = 0;
this.toggleContainer.node.children.forEach(function(e) {
e.destroy();
});
};
t.prototype.onDestroy = function() {
this._gameItemPool.clear();
};
t.prototype.onBtnClick = function(e, t) {
if ("back" === t) {
p.default.playSound("close");
u.default.showGameNode();
this.node.active = !1;
}
};
t.prototype.onToggleSelected = function(e) {
this.lbPlateform.string = e.userData.gameTitleCn;
this.ebSearch.string = "";
this.plateformID = e.userData.id;
this.scvItems.stopAutoScroll();
this.scvItems.setContentPosition(cc.v2(0, 0));
for (;this.layoutItems.node.children.length > 0; ) this._gameItemPool.put(this.layoutItems.node.children[0]);
if (this._gamesList[this.plateformID]) this.showGameItems(this._gamesList[this.plateformID]); else {
c.default.showLoadingUI();
r.default.getGameList(this.plateformID, function(e) {
c.default.hideLoadingUI();
cc.log("==== thirdGamesLists gameConfigs:", e);
this._gamesList[this.plateformID] = e.tabList;
this._urlImgPrefix = e.imgPrefix;
this.showGameItems(this._gamesList[this.plateformID]);
}.bind(this));
}
};
t.prototype.onTextChange = function(e, t, o) {
"search" === o && this.searchGame(e);
};
t.prototype.onScrollEvent = function(e, t) {
t === cc.ScrollView.EventType.SCROLLING && this.checkShowItems();
};
t.prototype.checkShowItems = function() {
for (var e = !1, t = 0; t < this.layoutItems.node.children.length; t++) {
var o = this.layoutItems.node.children[t], n = o.getComponent(l.default);
if (!n.gameConfig && this.scvItems.node.convertToNodeSpaceAR(o.convertToWorldSpaceAR(cc.v2(0, o.height * o.anchorY))).y > -this.scvItems.node.height * this.scvItems.node.anchorY) {
n.urlImgPrefix = this._urlImgPrefix;
n.gameConfig = o.getChildByName("node").gameConfig;
e = !0;
} else if (e) break;
}
};
t.prototype.searchGame = function(e) {
for (var t = 0; t < this.layoutItems.node.children.length; t++) {
var o = this.layoutItems.node.children[t];
-1 === o.getChildByName("node").gameConfig.gameTitleCn.indexOf(e) ? o.active = !1 : o.active = !0;
}
};
t.prototype.clickGame = function(e) {
for (var t = 0; t < this.layoutItems.node.children.length; t++) {
var o = this.layoutItems.node.children[t].getChildByName("node");
cc.log("====进入clickGame");
if (o.gameConfig.gameListId === e) {
cc.log("====进入clickGame  gameListId：", e);
o.getComponent(cc.Button).clickEvents[0].emit([]);
}
}
};
t.prototype.showGameItems = function(e) {
var t = this;
this.lbTotal.string = h.t("BasicsJS.tall") + " " + e.length + " " + h.t("BasicsJS.minGame");
e.forEach(function(e) {
var o = t._gameItemPool.get();
o || (o = cc.instantiate(t.pfbGameItem));
o.width = t.layoutItems.node.width / 5;
o.height = t.layoutItems.node.width / 5;
o.parent = t.layoutItems.node;
var n = o.getChildByName("node"), i = n.getComponent(cc.Button);
n.gameConfig = e;
if (!i) {
var a = new cc.Component.EventHandler();
i = n.addComponent(cc.Button);
a.target = cc.find("Canvas/gameNode");
a.component = "HallUI";
a.handler = "onGameItemClick";
i.clickEvents.push(a);
i.transition = cc.Button.Transition.SCALE;
i.zoomScale = .9;
}
});
this.layoutItems.updateLayout();
this.checkShowItems();
};
t.prototype.createGamesListToggle = function() {
for (var e = [], t = 0; t < s.default.serverData.tabList.length; t++) {
var o = s.default.serverData.tabList[t];
if (parseInt(o.id) === this.gameTypeID) {
e = o.twoLevelList;
break;
}
}
for (t = 0; t < e.length; t++) {
var n = e[t];
if (0 !== parseInt(n.entranceFlag)) {
var i = this.toggleContainer.addDefaultToggle(n.gameTitleCn, n);
parseInt(n.id) === this.plateformID && this.toggleContainer.selectToggle(i);
}
}
};
a([ y(d.default) ], t.prototype, "toggleContainer", void 0);
a([ y(cc.Animation) ], t.prototype, "aniEnter", void 0);
a([ y(cc.Prefab) ], t.prototype, "pfbGameItem", void 0);
a([ y(cc.Widget) ], t.prototype, "wgtNode", void 0);
a([ y(cc.ScrollView) ], t.prototype, "scvItems", void 0);
a([ y(cc.Layout) ], t.prototype, "layoutItems", void 0);
a([ y(cc.Label) ], t.prototype, "lbPlateform", void 0);
a([ y(cc.Label) ], t.prototype, "lbTotal", void 0);
a([ y(cc.EditBox) ], t.prototype, "ebSearch", void 0);
a([ y(cc.Integer) ], t.prototype, "plateformID", void 0);
a([ y(cc.Integer) ], t.prototype, "gameTypeID", void 0);
return a([ g ], t);
}(cc.Component);
o.default = m;
cc._RF.pop();
}, {
"../Common/CommonToggleContainer": "CommonToggleContainer",
"../Models/GameList": "GameList",
"../Shared/AudioManager": "AudioManager",
"../Shared/NetworkLogic": "NetworkLogic",
"../Shared/UIManager": "UIManager",
"../Shared/Utils": "Utils",
"./ThirdGameItem": "ThirdGameItem",
LanguageData: "LanguageData"
} ],
ToastUI: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "e894frmXcVEiKAOlOAEByrG", "ToastUI");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../Shared/Global"), c = cc._decorator, s = c.ccclass, l = c.property, d = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.nodeOk = null;
t.nodeError = null;
t.nodeWarnning = null;
t.lblText = null;
t.animation = null;
return t;
}
Object.defineProperty(t.prototype, "toastType", {
set: function(e) {
this.nodeOk.active = !1;
this.nodeError.active = !1;
this.nodeWarnning.active = !1;
e === r.Global.ToastType.OK ? this.nodeOk.active = !0 : e === r.Global.ToastType.Error ? this.nodeError.active = !0 : e === r.Global.ToastType.Warnning && (this.nodeWarnning.active = !0);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "content", {
set: function(e) {
this.lblText.string = e && e.replace("<br/>", "\n");
},
enumerable: !1,
configurable: !0
});
t.prototype.start = function() {
this.animation.on("finished", function() {
this.node.destroy();
}, this);
};
a([ l(cc.Node) ], t.prototype, "nodeOk", void 0);
a([ l(cc.Node) ], t.prototype, "nodeError", void 0);
a([ l(cc.Node) ], t.prototype, "nodeWarnning", void 0);
a([ l(cc.Label) ], t.prototype, "lblText", void 0);
a([ l(cc.Animation) ], t.prototype, "animation", void 0);
a([ l ], t.prototype, "toastType", null);
a([ l ], t.prototype, "content", null);
return a([ s ], t);
}(cc.Component);
o.default = d;
cc._RF.pop();
}, {
"../Shared/Global": "Global"
} ],
ToggleItem: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "e810dbkaxZFXpo9kEbD4U7Q", "ToggleItem");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = cc._decorator, c = r.ccclass, s = r.property, l = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.nodeMark = null;
t.lbName = null;
t.userData = "";
return t;
}
Object.defineProperty(t.prototype, "toggleName", {
get: function() {
return this.lbName ? this.lbName.string : "";
},
set: function(e) {
this.lbName.string = e;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "isChecked", {
get: function() {
return !!this.nodeMark && this.nodeMark.active;
},
set: function(e) {
this.nodeMark.active = e;
},
enumerable: !1,
configurable: !0
});
t.prototype.onLoad = function() {
this.isChecked = !1;
};
a([ s(cc.Node) ], t.prototype, "nodeMark", void 0);
a([ s(cc.Label) ], t.prototype, "lbName", void 0);
a([ s({
type: cc.String
}) ], t.prototype, "toggleName", null);
a([ s({
type: cc.Boolean,
visible: !1
}) ], t.prototype, "isChecked", null);
a([ s(cc.String) ], t.prototype, "userData", void 0);
return a([ c ], t);
}(cc.Component);
o.default = l;
cc._RF.pop();
}, {} ],
Tool: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "f3d43aYIxNM3oQtbQn/D5fc", "Tool");
Object.defineProperty(o, "__esModule", {
value: !0
});
var n = function() {
function e() {}
e.getName = function(e) {
var t = "";
switch (e) {
case 2:
t = "sports";
break;

case 3:
t = "livevideo";
break;

case 4:
t = "electronic";
break;

case 5:
t = "chessandcard";
break;

case 6:
t = "lottery";
break;

case 7:
t = "fish";
}
return t;
};
return e;
}();
o.default = n;
cc._RF.pop();
}, {} ],
TopElectronicUI: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "2f407i8BdZJ7oH9cVdQpF0I", "TopElectronicUI");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../Shared/Utils"), c = e("./ThirdGamesListUI"), s = e("../Models/GameList"), l = e("../Shared/AudioManager"), d = e("../Shared/Global"), u = e("../Shared/NetworkLogic"), p = e("../Shared/ImageCache"), h = e("../Shared/UIManager"), f = cc._decorator, g = f.ccclass, y = f.property, m = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.pfbThirdGamesListUI = null;
t.nodeNoData = null;
t.nodeTemplateItem = null;
t.lyContent = null;
t.nodeMore = null;
t.nodeQipai = null;
t.nodeDianzi = null;
t.nodeBuyu = null;
t.nodeLeft = null;
t.nodeRight = null;
t.gameType = d.Global.GameType.Default;
t._topGames = [];
t._electronicID = -1;
return t;
}
t.prototype.onLoad = function() {
this.nodeTemplateItem.parent = null;
this.nodeLeft.active = !1;
this.nodeRight.active = !1;
this.nodeNoData.active = !1;
};
t.prototype.start = function() {
r.default.hideGameNode();
for (var e = 0; e < s.default.serverData.tabList.length; e++) {
var t = s.default.serverData.tabList[e];
if (t.gameTypes === this.gameType.toString()) {
this._electronicID = t.id;
break;
}
}
this.gameType === d.Global.GameType.Fish && (this.nodeMore.active = !1);
this.nodeDianzi.active = !1;
this.nodeQipai.active = !1;
this.nodeBuyu.active = !1;
this.gameType === d.Global.GameType.Electronic ? this.nodeDianzi.active = !0 : this.gameType === d.Global.GameType.Chess ? this.nodeQipai.active = !0 : this.gameType === d.Global.GameType.Fish && (this.nodeBuyu.active = !0);
h.default.showLoadingUI();
u.default.hotPlusGames(this.gameType, function(e) {
h.default.hideLoadingUI();
this._topGames = e;
this.nodeNoData.active = 0 === this._topGames.length;
this.createItems();
this.lyContent.updateLayout();
this.checkLeftAndRightBtn();
}.bind(this));
};
t.prototype.onDestroy = function() {
this.nodeTemplateItem.destroy();
};
t.prototype.onBtnClick = function(e, t) {
if ("home" === t) {
l.default.playSound("close");
this.node.destroy();
r.default.showGameNode();
} else if ("more" === t) {
l.default.playSound("show");
var o = cc.instantiate(this.pfbThirdGamesListUI).getComponent(c.default);
o.toggleContainer.isSelectFirstItem = !0;
o.gameTypeID = this._electronicID;
o.node.parent = this.node.parent;
this.node.destroy();
}
};
t.prototype.onScrollViewEvent = function(e, t) {
t === cc.ScrollView.EventType.SCROLLING && this.checkLeftAndRightBtn();
};
t.prototype.createItems = function() {
for (var e = function(e) {
var o = cc.instantiate(t.nodeTemplateItem), n = t._topGames[e], i = new cc.Component.EventHandler();
o.parent = t.lyContent.node;
i.target = cc.find("Canvas/gameNode");
i.component = "HallUI";
i.handler = "onGameItemClick";
cc.find("node/play_new", o).gameConfig = n;
cc.find("node/play_new", o).getComponent(cc.Button).clickEvents.push(i);
cc.find("node/itemBg/name", o).getComponent(cc.Label).string = n.gameTitleCn;
cc.find("node/rank" + (e + 1), o) && (cc.find("node/rank" + (e + 1), o).active = !0);
if (e > 2) {
var a = cc.find("node/iconRank", o), r = a.getChildByName("rank").getComponent(cc.Label);
a.active = !0;
r.string = (e + 1).toString();
}
if (n.gameStatus && "0" !== n.gameStatus) {
cc.find("node/mask/icon", o).color = cc.color(70, 70, 70);
cc.find("node/mask/maintenance", o).active = !0;
}
p.default.loadImage(s.default.serverData.imgPrefix + n.gameImageUrl1, function(e, t) {
!e && o && o.isValid && (cc.find("node/mask/icon", o).getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(t));
}.bind(t));
e < 3 && o.getChildByName("node").runAction(cc.repeatForever(cc.sequence(cc.delayTime(e), cc.scaleTo(.5, 1.2).easing(cc.easeSineOut()), cc.scaleTo(.5, 1).easing(cc.easeSineOut()), cc.delayTime(2 - e))));
}, t = this, o = 0; o < this._topGames.length; o++) e(o);
};
t.prototype.checkLeftAndRightBtn = function() {
this.nodeLeft.active = this.lyContent.node.x < 0;
this.nodeRight.active = this.lyContent.node.x + this.lyContent.node.width > this.lyContent.node.parent.width;
};
a([ y(cc.Prefab) ], t.prototype, "pfbThirdGamesListUI", void 0);
a([ y(cc.Node) ], t.prototype, "nodeNoData", void 0);
a([ y(cc.Node) ], t.prototype, "nodeTemplateItem", void 0);
a([ y(cc.Layout) ], t.prototype, "lyContent", void 0);
a([ y(cc.Node) ], t.prototype, "nodeMore", void 0);
a([ y(cc.Node) ], t.prototype, "nodeQipai", void 0);
a([ y(cc.Node) ], t.prototype, "nodeDianzi", void 0);
a([ y(cc.Node) ], t.prototype, "nodeBuyu", void 0);
a([ y(cc.Node) ], t.prototype, "nodeLeft", void 0);
a([ y(cc.Node) ], t.prototype, "nodeRight", void 0);
a([ y(cc.Integer) ], t.prototype, "gameType", void 0);
return a([ g ], t);
}(cc.Component);
o.default = m;
cc._RF.pop();
}, {
"../Models/GameList": "GameList",
"../Shared/AudioManager": "AudioManager",
"../Shared/Global": "Global",
"../Shared/ImageCache": "ImageCache",
"../Shared/NetworkLogic": "NetworkLogic",
"../Shared/UIManager": "UIManager",
"../Shared/Utils": "Utils",
"./ThirdGamesListUI": "ThirdGamesListUI"
} ],
TopGamesLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "49586erQgxDhajNYyDNI38o", "TopGamesLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../Models/GameList"), c = e("../Shared/Global"), s = e("./ThirdGameItem"), l = e("../Shared/Constant"), d = e("../Shared/UIManager"), u = e("../Shared/AudioManager"), p = e("../Models/Player"), h = e("LanguageData"), f = cc._decorator, g = f.ccclass, y = f.property, m = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.toggleContainer = null;
t.pfbGameItem = null;
t.scrollview = null;
t.wgtScrollView = null;
t.layoutItems = null;
t.nodeGirl = null;
t.nodeGameTypes = null;
t.nodeTrangle = null;
t.aniTopGames = null;
t._movedLeft = !1;
t._scrollStartPos = cc.v2(0, 0);
t._oldGirlPosX = 0;
t._oldItemsPosX = 0;
t._willShowItems = !0;
t._topGameItems = [];
t._oftenGameItems = [];
return t;
}
t.prototype.onLoad = function() {
this.layoutItems.node.removeAllChildren();
cc.winSize.width / cc.winSize.height > 2 && (this.wgtScrollView.right += l.default.BangLength);
cc.director.on(c.Global.UserEvent.GameListChanged, this.createNodeItems, this);
cc.director.on(c.Global.UserEvent.AddOftenGameConfig, this.onAddOftenGameConfig, this);
};
t.prototype.onEnable = function() {
if (r.default.serverData) {
if (this._movedLeft) {
this.nodeTrangle.scaleX = 1;
this._movedLeft = !1;
this.nodeGirl.stopAllActions();
this.nodeGirl.runAction(cc.spawn(cc.moveTo(.25, cc.v2(this._oldGirlPosX, this.nodeGirl.y)).easing(cc.easeSineOut()), cc.fadeIn(.25)));
}
this.showItems(this._topGameItems);
}
};
t.prototype.onDisable = function() {
this.toggleContainer.toggleItems[0].isChecked = !0;
};
t.prototype.onDestroy = function() {
cc.director.off(c.Global.UserEvent.GameListChanged, this.createNodeItems, this);
cc.director.off(c.Global.UserEvent.AddOftenGameConfig, this.onAddOftenGameConfig, this);
};
t.prototype.onBtnClick = function(e, t) {
if ("sanjiaoxing" === t) {
u.default.playSound("show");
e.target.scaleX > 0 ? this.moveToLeft() : this.moveToRight();
}
};
t.prototype.createNodeItems = function() {
var e = this;
if (r.default.serverData) {
JSON.parse(cc.sys.localStorage.getItem("OftenGames") || "[]").forEach(function(t) {
e._oftenGameItems.push(e.createGameItem(t.gameConfig));
});
var t = r.default.getGameListByType("");
0 === Object.keys(t).length && (t = r.default.getGameListByType(null));
this._topGameItems = this.createGameItems(t.twoLevelList || []);
this.showItems(this._topGameItems);
}
};
t.prototype.onAddOftenGameConfig = function(e) {
this._oftenGameItems.push(this.createGameItem(e));
};
t.prototype.onScrollViewEvent = function(e, t) {
t !== cc.ScrollView.EventType.SCROLL_BEGAN ? t === cc.ScrollView.EventType.SCROLLING && e.content.x < this._scrollStartPos.x && e.content.x < 0 && !this._movedLeft ? this.moveToLeft() : t === cc.ScrollView.EventType.SCROLLING && e.content.x > this._scrollStartPos.x && e.content.x > 0 && this._movedLeft && this.moveToRight() : this._scrollStartPos = e.content.position;
};
t.prototype.onSelectToggle = function(e) {
u.default.playSound("toggle");
if ("top" === e.node.name) this._willShowItems ? this.showItems(this._topGameItems) : this._willShowItems = !0; else if ("often" === e.node.name) {
if (!p.default.isLogedIn()) {
this._willShowItems = !1;
this.toggleContainer.toggleItems[0].isChecked = !0;
return;
}
if (0 === this._oftenGameItems.length) {
d.default.showToastUI(h.t("BasicsJS.play_game"), c.Global.ToastType.Warnning);
this._willShowItems = !1;
this.toggleContainer.toggleItems[0].isChecked = !0;
return;
}
this.showItems(this._oftenGameItems);
}
};
t.prototype.createGameItem = function(e) {
var t = cc.instantiate(this.pfbGameItem), o = t.getComponent(s.default), n = t.getChildByName("node").addComponent(cc.Button), i = new cc.Component.EventHandler();
t.width = .49 * this.layoutItems.node.height;
t.height = .49 * this.layoutItems.node.height;
o.urlImgPrefix = r.default.serverData.imgPrefix;
o.gameConfig = e;
i.target = cc.find("Canvas/gameNode");
i.component = "HallUI";
i.handler = "onGameItemClick";
n.clickEvents.push(i);
n.transition = cc.Button.Transition.SCALE;
n.zoomScale = .9;
n.node.gameConfig = o.gameConfig;
return o;
};
t.prototype.createGameItems = function(e) {
var t = this, o = [];
e.forEach(function(e) {
o.push(t.createGameItem(e));
});
return o;
};
t.prototype.showItems = function(e) {
var t = this;
this.layoutItems.node.removeAllChildren();
e.forEach(function(e) {
e.node.parent = t.layoutItems.node;
});
this.layoutItems.node.x = 0;
this.layoutItems.enabled = !0;
this.layoutItems.updateLayout();
this.layoutItems.enabled = !1;
this.scrollview.content.width = Math.max(this.scrollview.content.width, this.scrollview.node.width + 10);
var o = 0;
this.layoutItems.node.children.forEach(function(e) {
var t = e.position;
e.position = cc.v2(t.x + 1e3, t.y);
e.stopAllActions();
e.runAction(cc.sequence(cc.delayTime(o), cc.moveTo(.2, cc.v2(t.x - 50, t.y)).easing(cc.easeSineOut()), cc.moveTo(.15, t).easing(cc.easeSineInOut())));
o += .05;
});
};
t.prototype.moveToLeft = function() {
if (0 === this._oldGirlPosX) {
this._oldGirlPosX = this.nodeGirl.x;
this._oldItemsPosX = this.scrollview.node.x;
}
this.nodeTrangle.scaleX *= -1;
this._movedLeft = !0;
this.nodeGirl.stopAllActions();
this.scrollview.node.stopAllActions();
this.nodeGirl.runAction(cc.spawn(cc.moveTo(.25, cc.v2(-this.nodeGirl.width / 2 - this.nodeGirl.parent.width * this.nodeGirl.anchorX, this.nodeGirl.y)).easing(cc.easeSineOut()), cc.fadeOut(.25)));
var e = this.scrollview.node.parent.convertToNodeSpaceAR(this.nodeGameTypes.convertToWorldSpaceAR(cc.v2(this.nodeGameTypes.width * this.nodeGameTypes.anchorX + l.default.BangLength, 0)));
this.scrollview.node.runAction(cc.moveTo(.25, cc.v2(e.x, this.scrollview.node.y)).easing(cc.easeSineOut()));
};
t.prototype.moveToRight = function() {
this.nodeTrangle.scaleX *= -1;
this._movedLeft = !1;
this.nodeGirl.stopAllActions();
this.scrollview.node.stopAllActions();
this.nodeGirl.runAction(cc.spawn(cc.moveTo(.25, cc.v2(this._oldGirlPosX, this.nodeGirl.y)).easing(cc.easeSineOut()), cc.fadeIn(.25)));
this.scrollview.node.runAction(cc.moveTo(.25, cc.v2(this._oldItemsPosX, this.scrollview.node.y)).easing(cc.easeSineOut()));
};
a([ y(cc.ToggleContainer) ], t.prototype, "toggleContainer", void 0);
a([ y(cc.Prefab) ], t.prototype, "pfbGameItem", void 0);
a([ y(cc.ScrollView) ], t.prototype, "scrollview", void 0);
a([ y(cc.Widget) ], t.prototype, "wgtScrollView", void 0);
a([ y(cc.Layout) ], t.prototype, "layoutItems", void 0);
a([ y(cc.Node) ], t.prototype, "nodeGirl", void 0);
a([ y(cc.Node) ], t.prototype, "nodeGameTypes", void 0);
a([ y(cc.Node) ], t.prototype, "nodeTrangle", void 0);
a([ y(cc.Animation) ], t.prototype, "aniTopGames", void 0);
return a([ g ], t);
}(cc.Component);
o.default = m;
cc._RF.pop();
}, {
"../Models/GameList": "GameList",
"../Models/Player": "Player",
"../Shared/AudioManager": "AudioManager",
"../Shared/Constant": "Constant",
"../Shared/Global": "Global",
"../Shared/UIManager": "UIManager",
"./ThirdGameItem": "ThirdGameItem",
LanguageData: "LanguageData"
} ],
TuiGuangLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "5930f1RIzxAt6XtO4Rx/rsj", "TuiGuangLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/Constant"), c = e("../../Shared/AudioManager"), s = e("../../Shared/PopWindowManager"), l = e("../../Shared/Utils"), d = e("../../Shared/EnterSoundManager"), u = cc._decorator, p = u.ccclass, h = u.property, f = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.wgtNode = null;
t.togC = null;
t.myAgent = null;
t.playerCheck = null;
t.scoreCheck = null;
t.agentRecruit = null;
t.introduce = null;
t.treasure = null;
t.togMyAgent = null;
t._curLayer = null;
t._type2Layer = null;
t.jumpBindWechat = !1;
return t;
}
t.prototype.onLoad = function() {
l.default.hideGameNode();
};
t.prototype.start = function() {
if (cc.winSize.width / cc.winSize.height > 2) {
this.wgtNode.left += r.default.BangLength;
console.log("===this.wgtNode.left:", this.wgtNode.left);
}
};
t.prototype.updateUI = function(e) {
d.default.playSound("enter_tuiguang");
this._type2Layer = {
myAgent: this.myAgent,
playerCheck: this.playerCheck,
scoreCheck: this.scoreCheck,
agentRecruit: this.agentRecruit,
introduce: this.introduce,
treasure: this.treasure
};
if (e) for (var t = 0; t < this.togC.toggleItems.length; t++) {
var o = this.togC.toggleItems[t];
if (o.node.name === e) {
o.check();
break;
}
} else this.onToggleSelected(null, "myAgent", !1);
};
t.prototype.onEnable = function() {
this.node.getComponent(cc.Animation).play("enter_tuiguang");
};
t.prototype.onBtnClick = function(e, t) {
c.default.playSound("close");
if ("back" === t) {
c.default.playSound("close");
s.default.openNext();
l.default.showGameNode();
this.node.destroy();
}
};
t.prototype.onToggleSelected = function(e, t, o) {
void 0 === o && (o = !0);
o && c.default.playSound("toggle");
for (var n in this._type2Layer) this._type2Layer[n].active = !1;
this._curLayer && (this._curLayer.active = !1);
this._curLayer = this._type2Layer[t];
this._curLayer.active = !0;
};
a([ h(cc.Widget) ], t.prototype, "wgtNode", void 0);
a([ h(cc.ToggleContainer) ], t.prototype, "togC", void 0);
a([ h(cc.Node) ], t.prototype, "myAgent", void 0);
a([ h(cc.Node) ], t.prototype, "playerCheck", void 0);
a([ h(cc.Node) ], t.prototype, "scoreCheck", void 0);
a([ h(cc.Node) ], t.prototype, "agentRecruit", void 0);
a([ h(cc.Node) ], t.prototype, "introduce", void 0);
a([ h(cc.Node) ], t.prototype, "treasure", void 0);
a([ h(cc.Toggle) ], t.prototype, "togMyAgent", void 0);
return a([ p ], t);
}(cc.Component);
o.default = f;
cc._RF.pop();
}, {
"../../Shared/AudioManager": "AudioManager",
"../../Shared/Constant": "Constant",
"../../Shared/EnterSoundManager": "EnterSoundManager",
"../../Shared/PopWindowManager": "PopWindowManager",
"../../Shared/Utils": "Utils"
} ],
TuiguangHtmlBefore: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "8113fihp21JUbjjmaod5xH9", "TuiguangHtmlBefore");
Object.defineProperty(o, "__esModule", {
value: !0
});
o.default = '\n    <!doctype html>\n<html lang="en">\n<head>\n    <meta charset="UTF-8">\n    <meta name="viewport"\n          content="width=device-width, user-scalable=1, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">\n    <meta http-equiv="X-UA-Compatible" content="ie=edge">\n    \n    <style>\n        .div{\n            display: block;\n        }\n        body {\n            padding: 0;\n            margin: 0;\n            background-color: #313891;\n            font-size: 12px;\n            color: #fff;\n            /*max-width: 100%; !*最大宽度不超过 800 像素*!*/\n        }\n\n        .hd-title {\n            text-align: center;\n        }\n\n        .text {\n            color: #fdfdfd;\n        }\n\n        .main-box {\n            padding: 0 12px;\n        }\n\n        table,\n        th,\n        td {\n            border: 1px solid #318DD6;\n        }\n\n        table {\n            border-collapse: collapse;\n            max-width: 100%;\n        }\n\n        th {\n            line-height: 30px;\n        }\n\n        th,\n        td {\n            text-align: center;\n        }\n\n        th {\n            background: #318DD6;\n            color: #000;\n        }\n\n        td {\n            color: #fdfdfd;\n        }\n\n        .title {\n            font-size: 16px;\n            font-weight: bold;\n            color: #fff;\n        }\n\n        .but {\n            background: linear-gradient(#2ad6fd, #0088fe);\n            width: 200px;\n            height: 42px;\n            border-radius: 42px;\n            line-height: 42px;\n            font-size: 18px;\n            font-weight: 400;\n            text-align: center;\n            margin: 0 auto;\n            color: #fff;\n        }\n    </style>\n    <style>.vfinder-info a,\n    .vfinder-info div {\n        color: #dedede;\n    }\n\n    .vfinder-info *,\n    .vfinder-code * {\n        margin: 0;\n        padding: 0;\n        border-width: 0;\n        background: transparent;\n    }\n\n    .vfinder-info > div {\n        padding: 4px 12px;\n    }\n\n    .vfinder-info > div:hover {\n        background: rgba(140, 140, 140, 0.36);\n    }\n\n    .vfinder-info {\n        position: fixed;\n        border-radius: 4px;\n        padding: 5px 0;\n        background: rgba(64, 64, 64, 0.9);\n\n        /*    padding: 10px 18px;*/\n        z-index: 9999999;\n        border: 1px solid rgb(143, 143, 143);\n        font-size: 13px;\n    }\n\n    .vfinder-info:after {\n        position: absolute;\n        content: " ";\n        width: 10px;\n        height: 10px;\n        -webkit-transform: rotate(45deg);\n        background: rgba(64, 64, 64, 0.9);\n        left: -5px;\n        top: 50%;\n        margin-top: -5px;\n    }\n\n    .vfinder-info-name-template {\n        color: #ff7474;\n    }\n\n    .vfinder-info-name-style {\n        color: #17ceff;\n    }\n\n    .vfinder-info-name-script {\n        color: #f281ff;\n    }\n\n    .vfinder-info-name-created {\n        color: #40c22a;\n    }\n\n    .vfinder-info-name-template,\n    .vfinder-info-name-style,\n    .vfinder-info-name-script,\n    .vfinder-info-name-created {\n        display: inline-block;\n        width: 75px;\n    }\n\n    .vfinder-mask {\n        position: fixed;\n        z-index: 9999998;\n        background-color: #588DE1;\n        pointer-events: none;\n    }\n\n    .vfinder-code {\n        position: fixed;\n        /*    padding: 10px;*/\n        /*    background: rgba(254, 255, 221, 0.9);*/\n        background: rgba(64, 64, 64, 0.9);\n        max-width: 400px;\n        font-size: 10px;\n        z-index: 10000000;\n        word-wrap: break-word;\n        border-radius: 4px;\n        /*    color: #747474;*/\n        color: #dedede;\n        border: 1px solid rgba(222, 222, 222, 0.34);\n    }\n\n    .vfinder-path::-webkit-scrollbar,\n    .vfinder-code-content::-webkit-scrollbar {\n        height: 8px;\n        width: 8px;\n    }\n\n    .vfinder-path::-webkit-scrollbar-thumb,\n    .vfinder-code-content::-webkit-scrollbar-thumb {\n        background: rgba(103, 103, 103, 0.9);\n        border-radius: 4px;\n    }\n\n    .vfinder-path::-webkit-scrollbar-track,\n    .vfinder-code-content::-webkit-scrollbar-track {\n        background: #ddd;\n        border-radius: 4px;\n    }\n\n\n    .vfinder-code-content {\n        padding: 0 10px;\n        overflow: auto;\n        max-height: 260px;\n    }\n\n    .vfinder-code-content p {\n        padding: 2px 6px 2px 0;\n    }\n\n    .vfinder-code-content > pre {\n        float: left;\n        clear: left;\n        white-space: nowrap;\n    }\n\n    .vfinder-current-code-line {\n        background: rgba(234, 102, 223, 0.25);\n        border-radius: 2px;\n    }\n\n    .vfinder-path {\n        padding: 10px;\n        border-bottom: 1px solid rgba(222, 222, 222, 0.34);\n        background: rgba(140, 140, 140, 0.36);\n        white-space: nowrap;\n        overflow-x: auto;\n    }\n\n    .vfinder-line-count {\n        color: #dedede;\n        min-width: 25px;\n        display: inline-block;\n    }\n\n\n    </style>\n    <style>/*\n  IR_Black style (c) Vasily Mikhailitchenko <vaskas@programica.ru>\n*/\n\n    .hljs {\n        display: block;\n        overflow-x: auto;\n        padding: 0.5em;\n        background: #000;\n        color: #f8f8f8;\n    }\n\n    .hljs-comment,\n    .hljs-quote,\n    .hljs-meta {\n        color: #7c7c7c;\n    }\n\n    .hljs-keyword,\n    .hljs-selector-tag,\n    .hljs-tag,\n    .hljs-name {\n        color: #96cbfe;\n    }\n\n    .hljs-attribute,\n    .hljs-selector-id {\n        color: #ffffb6;\n    }\n\n    .hljs-string,\n    .hljs-selector-attr,\n    .hljs-selector-pseudo,\n    .hljs-addition {\n        color: #a8ff60;\n    }\n\n    .hljs-subst {\n        color: #daefa3;\n    }\n\n    .hljs-regexp,\n    .hljs-link {\n        color: #e9c062;\n    }\n\n    .hljs-title,\n    .hljs-section,\n    .hljs-type,\n    .hljs-doctag {\n        color: #ffffb6;\n    }\n\n    .hljs-symbol,\n    .hljs-bullet,\n    .hljs-variable,\n    .hljs-template-variable,\n    .hljs-literal {\n        color: #c6c5fe;\n    }\n\n    .hljs-number,\n    .hljs-deletion {\n        color: #ff73fd;\n    }\n\n    .hljs-emphasis {\n        font-style: italic;\n    }\n\n    .hljs-strong {\n        font-weight: bold;\n    }\n    img{\n        max-width:100vw;\n    }\n    </style>\n</head>\n<body>\n\x3c!--body下 必须用一个 class为aff的div包裹起来，以方便APP那边计算网页高度--\x3e\n<div class="aff">\n';
cc._RF.pop();
}, {} ],
UIManager: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "68fd8Q+FL1EuLxUBdNKqAWp", "UIManager");
var n = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, i = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var a = e("../Common/Signal"), r = e("LanguageData"), c = function() {
function e() {
this._loadingCircleUI = null;
this._toastUI = null;
this._changeDomainUI = null;
this._isLoadingCircleUIHidden = !1;
this.confirmBox = null;
this.confirmBoxLite = null;
this.boxNum = 0;
}
e.prototype.showToastUI = function(e, t) {
this._toastUI && this._toastUI.isValid || cc.resources.load("Common/Toast", cc.Prefab, function(o, n) {
if (!(o || this._toastUI && this._toastUI.isValid)) {
this._toastUI = cc.instantiate(n);
var i = this._toastUI.getComponent("ToastUI");
i.content = e;
i.toastType = t;
this._toastUI.parent = cc.Canvas.instance.node;
}
}.bind(this));
};
e.prototype.hideToastUI = function() {
if (this._toastUI) {
this._toastUI.destroy();
this._toastUI = null;
}
};
e.prototype.showTipUI = function(e, t, o) {
return n(this, void 0, void 0, function() {
return i(this, function(n) {
switch (n.label) {
case 0:
if (!this.confirmBox) return [ 3, 1 ];
this.confirmBox.active = !0;
this.confirmBox.parent = cc.Canvas.instance.node;
this.confirmBox.getComponent("ConfirmBox").showTip(e, t, o);
return [ 3, 3 ];

case 1:
return [ 4, this.loadTipBox(e, t, o) ];

case 2:
n.sent();
n.label = 3;

case 3:
return [ 2 ];
}
});
});
};
e.prototype.showRateTips = function(e, t, o) {
var n, i = r.t("new_r_tips9") + "<color =#E1BC3F> " + e.gameTitleCn + " </color> " + r.t("new_r_game"), a = "" + r.t("new_r_rate");
n = t.regCurrencyRate > t.dfRate ? r.t("new_r_rate1") + "<color =#E1BC3F> 1" + r.t("gameCoin") + " = " + t.currencySymbol + t.currencyRate + " </color>" : r.t("new_r_rate1") + "<color =#E1BC3F>" + t.currencySymbol + "1 = " + t.currencyRate + r.t("gameCoin") + " </color>";
var c = r.t("new_r_money") + "<color =#E1BC3F> " + t.balance.toFixed(2) + " </color> ";
cc.resources.load("Common/RateTips", cc.Prefab, function(e, t) {
if (e) {
this.hideLoadingUI();
cc.log("===进入确认框err");
} else {
this.hideLoadingUI();
var r = cc.instantiate(t);
r.parent = cc.Canvas.instance.node;
r.getComponent("RateTips").showTip(i, a, n, c, o);
cc.log("===进入确认框---");
}
}.bind(this));
};
e.prototype.showVistorLoginTips = function() {
cc.resources.load("Common/VistorLoginTips", cc.Prefab, function(e, t) {
this.hideLoadingUI();
e || (cc.instantiate(t).parent = cc.Canvas.instance.node);
}.bind(this));
};
e.prototype.showConfirmUI = function(e, t, o, a, r, c) {
return n(this, void 0, void 0, function() {
return i(this, function(n) {
switch (n.label) {
case 0:
this.boxNum++;
return this.boxNum > 1 ? [ 2 ] : this.confirmBox ? [ 2 ] : [ 3, 1 ];

case 1:
return [ 4, this.loadConfirmBox(e, t, o, a, r, c) ];

case 2:
n.sent();
n.label = 3;

case 3:
return [ 2 ];
}
});
});
};
e.prototype.showLiteConfirmUI = function(e, t, o, a, r, c, s, l) {
return n(this, void 0, void 0, function() {
return i(this, function(n) {
switch (n.label) {
case 0:
if (!this.confirmBoxLite) return [ 3, 1 ];
this.confirmBoxLite.getComponent("ConfirmBox").showConfirm(e, t, o, a, r, c, s, l);
return [ 2 ];

case 1:
return [ 4, this.loadConfirmBoxLite(e, t, o, a, r, c, s, l) ];

case 2:
n.sent();
n.label = 3;

case 3:
return [ 2 ];
}
});
});
};
e.prototype.showChangeDomainUI = function(e) {
this._changeDomainUI || cc.resources.load("Common/Signal", function(t, o) {
if (t || this._changeDomainUI) cc.error("==加载错误"); else {
var n = cc.instantiate(o).getComponent(a.default);
this._changeDomainUI = n.node;
this._changeDomainUI.zIndex = 999;
this._changeDomainUI.parent = cc.Canvas.instance.node;
n.callback = function() {
this._changeDomainUI = null;
e && e();
}.bind(this);
}
}.bind(this));
};
e.prototype.loadConfirmBox = function(e, t, o, n, i, a) {
var r = this;
return new Promise(function(c) {
cc.resources.load("Common/ConfirmBox", cc.Prefab, function(r, s) {
if (r) {
cc.log("===进入确认框err");
c();
} else {
this.confirmBox = cc.instantiate(s);
this.confirmBox.parent = cc.Canvas.instance.node;
this.confirmBox.getComponent("ConfirmBox").showConfirm(e, t, o, n, i, a);
cc.log("===进入确认框---");
c();
}
}.bind(r));
});
};
e.prototype.loadConfirmBoxLite = function(e, t, o, n, i, a, r, c) {
var s = this;
return new Promise(function(l) {
cc.resources.load("Common/ConfirmBoxLite", cc.Prefab, function(s, d) {
if (s) {
cc.log("===进入确认框err");
l();
} else {
this.confirmBoxLite = cc.instantiate(d);
this.confirmBoxLite.parent = cc.Canvas.instance.node;
this.confirmBoxLite.getComponent("ConfirmBox").showConfirm(e, t, o, n, i, a, r, c);
cc.log("===进入确认框---");
l();
}
}.bind(s));
});
};
e.prototype.loadTipBox = function(e, t, o) {
var n = this;
return new Promise(function(i) {
cc.resources.load("Common/ConfirmBox", cc.Prefab, function(n, a) {
if (n) {
cc.log("===进入确认框err");
i();
} else {
this.confirmBox = cc.instantiate(a);
this.confirmBox.parent = cc.Canvas.instance.node;
this.confirmBox.getComponent("ConfirmBox").showTip(e, t, o);
cc.log("===进入确认框---");
i();
}
}.bind(n));
});
};
e.prototype.showLoadingUI = function() {
if (!this._loadingCircleUI) {
this._isLoadingCircleUIHidden = !1;
cc.resources.load("Common/LoadingCircle", cc.Prefab, function(e, t) {
if (!e && !this._loadingCircleUI && !this._isLoadingCircleUIHidden) {
this._loadingCircleUI = cc.instantiate(t);
this._loadingCircleUI.zIndex = 998;
this._loadingCircleUI.parent = cc.Canvas.instance.node;
}
}.bind(this));
}
};
e.prototype.hideLoadingUI = function() {
if (this._loadingCircleUI) {
this._loadingCircleUI.destroy();
this._loadingCircleUI = null;
}
this._isLoadingCircleUIHidden = !0;
};
return e;
}();
o.default = new c();
cc._RF.pop();
}, {
"../Common/Signal": "Signal",
LanguageData: "LanguageData"
} ],
Utils: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "d4236D85dVESrRokVsB12zs", "Utils");
var n = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, i = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var a = e("./NativeCallback"), r = e("./Constant"), c = e("./AddressManager"), s = e("./UIManager"), l = e("./Global"), d = e("./SDKManager"), u = e("./NetworkLogic"), p = e("../../lib/openshare/OpenShare"), h = e("./encryptionWay"), f = e("../../lib/analytic/Analytic"), g = e("LanguageData"), y = function() {
function e() {
this.world_local_POS = function(e, t) {
return e.convertToNodeSpaceAR(t);
};
this.local_world__POS = function(e, t) {
void 0 === t && (t = cc.v2(0, 0));
return e.convertToWorldSpaceAR(t);
};
this.disable_btn_sec = function(e, t) {
if (e instanceof cc.Event.EventTouch) {
var o = e.target;
o.getComponent(cc.Button).interactable = !1;
o.runAction(cc.sequence(cc.delayTime(t), cc.callFunc(function() {
o.getComponent(cc.Button).interactable = !0;
})));
}
};
this._isLiteRestart = !1;
}
e.prototype.restartGame = function() {
setTimeout(function() {
cc.audioEngine.stopAll();
cc.game.restart();
}.bind(this), 100);
};
e.prototype.closeGame = function() {
setTimeout(function() {
cc.audioEngine.stopAll();
cc.game.end();
}.bind(this), 100);
};
e.prototype.showGameNode = function() {
var e = cc.find("Canvas/gameNode");
e && (e.active = !0);
};
e.prototype.hideGameNode = function() {
var e = cc.find("Canvas/gameNode");
e && (e.active = !1);
};
e.prototype.validateAuth = function(e) {
s.default.showLoadingUI();
u.default.getUserRIVStatus(function(t) {
s.default.hideLoadingUI();
0 == t.isRealIdentityVerifyOn && 1 == t.isRealIdentityVerify ? cc.find("Canvas/gameNode").getComponent("HallUI").openAccountAuth() : setTimeout(function() {
e && e();
}, 500);
}, function(e) {
s.default.hideLoadingUI();
s.default.showToastUI(e, l.Global.ToastType.Error);
});
};
e.prototype.actionShowContent = function(e) {
var t = e.getComponent(cc.Widget);
t && t.updateAlignment();
for (var o = 0; o < e.children.length; o++) if ((n = e.children[o]).getNumberOfRunningActions() > 0) return;
for (o = 0; o < e.children.length; o++) {
var n, i = (n = e.children[o]).position, a = n.parent.parent.width;
n.width = a;
n.position = cc.v2(n.x - 400, n.y);
n.opacity = 0;
n.runAction(cc.sequence(cc.delayTime(.1 * o), cc.spawn(cc.moveTo(.2, i).easing(cc.easeSineOut()), cc.fadeIn(.2).easing(cc.easeSineOut()))));
}
};
e.prototype.versionCompare = function(e, t) {
cc.log("====version A is " + e + ", ====version B is " + t);
for (var o = e.split("."), n = t.split("."), i = 0; i < o.length; ++i) {
var a = parseInt(o[i]), r = parseInt(n[i] || 0);
if (a !== r) return a - r;
}
return n.length > o.length ? -1 : 0;
};
e.prototype.captureScreen = function(e) {
var t = new cc.Node();
t.setContentSize(e.getContentSize());
t.parent = e;
var o = t.addComponent(cc.Camera), n = new cc.RenderTexture();
n.initWithSize(t.width, t.height);
o.cullingMask = 4294967295;
o.targetTexture = n;
o.alignWithScreen = !1;
var i = t.width / t.height / (cc.winSize.width / cc.winSize.height);
o.orthoSize = i < 1 ? t.height / 2 : t.height / 2 * i;
t.angle += 180;
e.scaleX *= -1;
o.render(e);
t.destroy();
e.scaleX *= -1;
return n;
};
e.prototype.saveNodeImage = function(e, t) {
if (cc.sys.isNative) {
var o = this.captureScreen(e);
o && jsb.saveImageData(o.readPixels(), e.width, e.height, jsb.fileUtils.getWritablePath() + t);
} else cc.log("该方法只支持原生平台");
};
e.prototype.saveNodeImageToAlbum = function(e, t, o) {
if (cc.sys.isNative) {
this.saveNodeImage(e, t);
var n = jsb.fileUtils.getWritablePath() + t;
this.saveImageToAlbum(n, t, o);
} else {
cc.log("该方法只支持原生平台");
o && o(!1);
}
};
e.prototype.saveUrlFile = function(e, t, o, n, i) {
if (cc.sys.isNative) {
var a = jsb.fileUtils.isAbsolutePath(t) ? t : jsb.fileUtils.getWritablePath() + t, r = new jsb.Downloader();
r.setOnFileTaskSuccess(function() {
o && o(a);
});
r.setOnTaskProgress(function(e, t, o, i) {
n && n(o / i);
});
r.setOnTaskError(function(t, o, n, a) {
cc.log("下载文件失败", o, n, a, e);
i && i();
});
r.createDownloadFileTask(e, a, "");
} else cc.log("该方法只支持原生平台");
};
e.prototype.saveUrlFile2 = function(e, t, o, n) {
if (cc.sys.isNative) {
var i = new XMLHttpRequest();
i.onreadystatechange = function() {
if (4 === i.readyState && 200 === i.status && i.response) {
var e = new Uint8Array(i.response);
if (e.length > 0) {
var a = jsb.fileUtils.isAbsolutePath(t) ? t : jsb.fileUtils.getWritablePath() + t;
jsb.fileUtils.writeDataToFile(e, a);
o && o(a);
return;
}
}
n && n();
};
i.ontimeout = function() {
n && n();
};
i.onerror = function() {
n && n();
};
i.responseType = "arraybuffer";
i.timeout = 6e4;
i.open("GET", e, !0);
i.send();
} else cc.log("该方法只支持原生平台");
};
e.prototype.saveUrlImageToAlbum = function(e, t, o) {
cc.sys.isNative ? this.saveUrlFile(e, t, function() {
var e = jsb.fileUtils.getWritablePath() + t;
this.saveImageToAlbum(e, t, o);
}.bind(this)) : cc.log("该方法只支持原生平台");
};
e.prototype.saveImageToAlbum = function(e, t, o) {
a.default.saveImageToAlbumCallback = o;
if (cc.sys.os === cc.sys.OS_IOS) jsb.reflection.callStaticMethod("NativeUtils", "saveImageToAlbum:", e); else if (cc.sys.os === cc.sys.OS_ANDROID) jsb.reflection.callStaticMethod("org/cocos2dx/javascript/NativeUtils", "saveImageToAlbum", "(Ljava/lang/String;Ljava/lang/String;)V", e, t); else {
a.default.saveImageToAlbumCallback = null;
o && o(!1);
cc.log("该方法只支持原生平台");
}
};
e.prototype.copyText = function(e) {
cc.sys.isNative && jsb.copyTextToClipboard(e);
};
e.prototype.getDeviceId = function() {
if (cc.sys.os === cc.sys.OS_IOS) {
var e = jsb.reflection.callStaticMethod("NativeUtils", "getDeviceId");
return this.encodeIosDeviceID(e);
}
return cc.sys.os === cc.sys.OS_ANDROID ? jsb.reflection.callStaticMethod("org/cocos2dx/javascript/NativeUtils", "getDeviceId", "()Ljava/lang/String;") : "unknowns12";
};
e.prototype.pickImageFromAlbum = function(e, t) {
a.default.pickImageFromAlbumCallback = t;
if (cc.sys.os === cc.sys.OS_IOS) jsb.reflection.callStaticMethod("NativeUtils", "pickImageFromAlbum:", e); else if (cc.sys.os === cc.sys.OS_ANDROID) jsb.reflection.callStaticMethod("org/cocos2dx/javascript/NativeUtils", "pickImageFromAlbum", "(Ljava/lang/String;)V", e); else {
a.default.pickImageFromAlbumCallback = null;
cc.log("该方法只支持原生平台");
}
};
e.prototype.randomString = function(e) {
e = e || 32;
for (var t = "ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678", o = t.length, n = "", i = 0; i < e; i++) n += t.charAt(Math.floor(Math.random() * o));
return n;
};
e.prototype.string2Uint8Array = function(e) {
for (var t = [], o = e.length, n = 0; n < o; n++) t.push(e.charCodeAt(n));
return new Uint8Array(t);
};
e.prototype.uint8Array2String = function(e) {
for (var t = "", o = e.length, n = 0; n < o; n++) t += String.fromCharCode(e[n]);
return t;
};
e.prototype.setOrientation = function(e) {
e = e.toUpperCase();
var t = cc.view.getFrameSize();
if (cc.sys.os === cc.sys.OS_IOS) jsb.reflection.callStaticMethod("AppController", "setOrientation:", e); else if (cc.sys.os === cc.sys.OS_ANDROID) jsb.reflection.callStaticMethod("org/cocos2dx/javascript/AppActivity", "setOrientation", "(Ljava/lang/String;)V", e); else if (cc.sys.isBrowser) if ("V" === e) {
cc.view.setOrientation(cc.macro.ORIENTATION_PORTRAIT);
t.width > t.height && cc.view.setFrameSize(t.height, t.width);
} else if ("H" === e) {
cc.view.setOrientation(cc.macro.ORIENTATION_LANDSCAPE);
t.width < t.height && cc.view.setFrameSize(t.height, t.width);
} else cc.view.setOrientation(cc.macro.ORIENTATION_AUTO);
a.default.onOrientationChanged(e);
};
e.prototype.requestPermissions = function(e) {
cc.sys.os === cc.sys.OS_ANDROID && jsb.reflection.callStaticMethod("org/cocos2dx/javascript/NativeUtils", "requestPermissions", "(Ljava/lang/String;)V", e.toString());
};
e.prototype.getPackageName = function() {
if (cc.sys.os === cc.sys.OS_IOS) return jsb.reflection.callStaticMethod("NativeUtils", "getPackageName");
if (cc.sys.os === cc.sys.OS_ANDROID) return jsb.reflection.callStaticMethod("org/cocos2dx/javascript/NativeUtils", "getPackageName", "()Ljava/lang/String;");
cc.log("该方法只支持原生平台");
return "";
};
e.prototype.getNativeVersion = function() {
if (cc.sys.os === cc.sys.OS_IOS) return jsb.reflection.callStaticMethod("NativeUtils", "getVersionString");
if (cc.sys.os === cc.sys.OS_ANDROID) return jsb.reflection.callStaticMethod("org/cocos2dx/javascript/NativeUtils", "getVersionString", "()Ljava/lang/String;");
cc.log("该方法只支持原生平台");
return "0.0.0";
};
e.prototype.flushServerList = function(e) {
c.default.flushServerList(e);
};
e.prototype.resetServerAddress = function(e) {
c.default.resetServerAddress(e);
};
e.prototype.gameTypeToLayer = function(e) {
var t = "";
switch (e) {
case l.Global.GameType.Chess:
t = "chessandcard";
break;

case l.Global.GameType.Lottery:
t = "lottery";
break;

case l.Global.GameType.Electronic:
t = "electronic";
break;

case l.Global.GameType.Live:
t = "livevideo";
break;

case l.Global.GameType.Sport:
t = "sports";
break;

case l.Global.GameType.ESport:
t = "esports";
break;

case l.Global.GameType.Fish:
t = "fish";
}
return t;
};
e.prototype.getImage = function(e) {
var t = this;
s.default.showLoadingUI();
return new Promise(function(o) {
cc.assetManager.loadRemote(e, function(e, t) {
if (e) {
s.default.hideLoadingUI();
o(null);
} else {
s.default.hideLoadingUI();
o(t);
}
}.bind(t));
});
};
e.prototype.getRandomNum = function(e, t) {
var o = t - e, n = Math.random();
return e + Math.round(n * o);
};
e.prototype.share = function(e, t, o, n) {
if (cc.sys.isMobile) {
var i = void 0;
cc.sys.os === cc.sys.OS_IOS ? i = jsb.reflection.callStaticMethod("NativeUtils", "share:imagePath:url:", e, t, o) : cc.sys.os === cc.sys.OS_ANDROID && (i = jsb.reflection.callStaticMethod("org/cocos2dx/javascript/NativeUtils", "share", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z", e, t, o));
if (void 0 === i) {
s.default.showTipUI(g.t("download_new_version"));
n && n(!1);
} else n && n(!0);
} else {
cc.log("该方法只支持原生平台");
n && n(!1);
}
};
e.prototype.openOnlineCustomerUrl = function() {
s.default.showLoadingUI();
var e = new XMLHttpRequest();
e.responseType = "json";
e.onload = function() {
s.default.hideLoadingUI();
if (200 === e.status) for (var t = e.response.data || [], o = 0; o < t.length; o++) {
var n = t[o];
if ("Online" === n.type && n.list.length > 0) {
cc.sys.openURL(n.list[0].content);
break;
}
}
}.bind(this);
e.onerror = function() {
s.default.hideLoadingUI();
};
e.ontimeout = function() {
s.default.hideLoadingUI();
};
e.open("POST", c.default.getServerAdress() + "/api/customService/list", !0);
e.send();
};
e.prototype.cutStr = function(e, t) {
var o = "", n = e.length;
if (e.replace(/[^\x00-\xff]/g, "**").length <= t) return e;
for (var i = 0, a = 0; i < n; i++) {
var r = e.charAt(i);
/[\x00-\xff]/.test(r) ? a++ : a += 2;
if (!(a <= t)) return o;
o += r;
}
};
e.prototype.strlen = function(e) {
for (var t = 0, o = 0; o < e.length; o++) {
var n = e.charCodeAt(o);
n >= 1 && n <= 126 || 65376 <= n && n <= 65439 ? t++ : t += 2;
}
return t;
};
e.prototype.handleNameLen = function(e, t) {
var o = "", n = 0;
if (this.strlen(e) > t) {
for (var i = 0; i < t; i) {
var a = e.charCodeAt(n);
a >= 1 && a <= 126 || 65376 <= a && a <= 65439 ? i++ : i += 2;
o += e[n++];
if (e.length <= n) break;
}
o += "...";
} else o = e;
return o;
};
e.prototype.getChannelCode = function() {
var e = "";
if (cc.sys.os === cc.sys.OS_IOS) (t = jsb.reflection.callStaticMethod("AppController", "nativeChannel")) && "default" !== t && "zheshiyuanshengqudaohao" !== t && "undefined" !== t && (e = t); else if (cc.sys.os === cc.sys.OS_ANDROID) {
var t;
(t = jsb.reflection.callStaticMethod("org/cocos2dx/javascript/AppActivity", "nativeChannel", "()Ljava/lang/String;")) && "default" !== t && "zheshiyuanshengqudaohao" !== t && "undefined" !== t && (e = t);
}
return e;
};
e.prototype.getInstallParms = function(e) {
var t = this, o = null, n = null, i = this.getChannelCode(), a = null, c = function(e, t) {
n = e && e.channelCode ? e.channelCode : "";
o = i || n;
l.Global.installParms.channelCode = o;
l.Global.installParms.bindData = t;
};
return new Promise(function(n) {
if (cc.sys.isMobile || 4 === r.default.InstallSDK) {
0 === r.default.InstallSDK ? d.default.getInstallParms(function(e) {
cc.log("x === 0 parms:" + (e ? JSON.stringify(e) : ""));
a = e && e.bindData ? JSON.parse(e.bindData) : {};
c(e, a);
n([ o, a ]);
}.bind(t)) : 1 === r.default.InstallSDK ? d.default.getShareInstallParm(function(e) {
cc.log("InstallSDK === 1 parms:" + (e ? JSON.stringify(e) : ""));
a = {
code: e && e.code ? e.code : ""
};
c(e, a);
n([ o, a ]);
}.bind(t)) : 3 == r.default.InstallSDK ? d.default.getOpenShareSDK(function(e) {
cc.log("getOpenShareSDK === 3 parms:" + (e ? JSON.stringify(e) : ""));
a = {
code: e && e.code ? e.code : ""
};
c(e, a);
n([ o, a ]);
}.bind(t)) : 4 == r.default.InstallSDK && d.default.openShareLib(function(e) {
a = {
code: e && e.code ? e.code : ""
};
c(e, a);
n([ o, a ]);
});
e.scheduleOnce(function() {
n([ o, a ]);
}, 10);
} else n([ o, a ]);
});
};
e.prototype.getRegistrationID = function() {
return d.default.getRegistrationID();
};
e.prototype.getDeviceInfo = function() {
try {
if (cc.sys.os === cc.sys.OS_IOS) return null;
if (cc.sys.os === cc.sys.OS_ANDROID) {
var e = {}, t = jsb.reflection.callStaticMethod("org/cocos2dx/javascript/NativeUtils", "getDeviceInfo", "()Ljava/lang/String;"), o = t.split("|");
e.Manufacturer = o[0];
e.Model = o[1];
e.Hardware = o[2];
e.Fingerprint = o[3];
e.Board = o[4];
e.Product = o[5];
e.Device = o[6];
e.Brand = o[7];
e.raw = t;
return JSON.stringify(e);
}
return null;
} catch (e) {
console.log("getDeviceInfo :: Native Not support yet");
return null;
}
};
e.prototype.base64ImageLoad = function(e, t) {
var o = new Image();
o.src = t;
var n = new cc.Texture2D();
n.initWithElement(o);
n.handleLoadedTexture();
e.node.isValid && (e.spriteFrame = new cc.SpriteFrame(n));
};
e.prototype.asyncSpawnCallback = function(e, t) {
return function() {
0 == --e && t();
};
};
e.prototype.isUrl = function(e) {
try {
return e.startsWith("http") || e.startsWith("www");
} catch (e) {
return !1;
}
};
e.prototype.initOpenShare = function() {
return n(this, void 0, Promise, function() {
var e;
return i(this, function(t) {
switch (t.label) {
case 0:
if (4 !== r.default.InstallSDK) return [ 2 ];
t.label = 1;

case 1:
t.trys.push([ 1, 3, , 4 ]);
e = d.default.getOpenShareKey();
return [ 4, p.openShare.init(e, c.default.getServerAdress(), h.default.decrypt) ];

case 2:
t.sent();
e || f.analytic.postMessage("OpenShare:Initiate Failed key undefined");
return [ 3, 4 ];

case 3:
t.sent();
f.analytic.postMessage("OpenShare:Initiate Failed");
console.log("Init openshare failed");
return [ 3, 4 ];

case 4:
return [ 2 ];
}
});
});
};
e.prototype.getAnalyticCode = function() {
var e = this.getDeviceId();
return e.substring(e.length - 5);
};
e.prototype.encodeIosDeviceID = function(e) {
var t = e.split("|")[0];
if (t) return t.replace(/-/g, "");
console.log("Unable to retrieve id : " + e);
return "unknowns12";
};
e.prototype.getIsLiteRestart = function() {
return this._isLiteRestart;
};
e.prototype.setIsLiteRestart = function(e) {
this._isLiteRestart = e;
};
e.prototype.checkInternetConnectivity = function() {
var e = [ "https://www.google.com", "https://www.baidu.com" ];
return new Promise(function(t) {
var o = function(n) {
if (n >= e.length) t(!1); else {
var i = new XMLHttpRequest();
i.timeout = 15e3;
i.onerror = function() {
return o(n + 1);
};
i.ontimeout = function() {
return o(n + 1);
};
i.onload = function() {
t(!0);
};
i.open("GET", e[n], !0);
i.send();
}
};
o(0);
});
};
return e;
}();
o.default = new y();
cc._RF.pop();
}, {
"../../lib/analytic/Analytic": "Analytic",
"../../lib/openshare/OpenShare": "OpenShare",
"./AddressManager": "AddressManager",
"./Constant": "Constant",
"./Global": "Global",
"./NativeCallback": "NativeCallback",
"./NetworkLogic": "NetworkLogic",
"./SDKManager": "SDKManager",
"./UIManager": "UIManager",
"./encryptionWay": "encryptionWay",
LanguageData: "LanguageData"
} ],
VerificationSMSLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "87dd3tzXy9Imrn7HHBBjlMA", "VerificationSMSLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../Shared/AddressManager"), c = e("../Shared/Global"), s = e("../Shared/NetworkLogic"), l = e("../Shared/UIManager"), d = e("LanguageData"), u = cc._decorator, p = u.ccclass, h = u.property, f = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.phoneCode = void 0;
t.getButton = void 0;
t.getLabel = void 0;
t.ebCode = void 0;
t.spCode = null;
t._codeId = 0;
t._phoneNumber = 0;
t._smsType = null;
t._confirmCallback = void 0;
return t;
}
t.prototype.init = function(e, t) {
var o = this;
this._confirmCallback = e;
this._phoneNumber = t;
this.getLabel.string = d.t("register_text.label_get");
this.refreshCodeImage();
s.default.userLoginConfig({}, function(e) {
o._smsType = e.aliOrVonage;
}, function() {
o._smsType = null;
});
};
t.prototype.onBtnClick = function(e, t) {
switch (t) {
case "get":
this.sendPhoneCode();
break;

case "confirm":
this._submit();
break;

case "code":
this.refreshCodeImage();
break;

case "close":
this.node.destroy();
}
};
t.prototype._submit = function() {
if ("" !== this.phoneCode.string) if ("" !== this.ebCode.string) {
this._confirmCallback && this._confirmCallback(this.phoneCode.string, this.ebCode.string, this._codeId);
this.node.destroy();
} else l.default.showToastUI(d.t("login_text.enter_code"), c.Global.ToastType.Warnning); else l.default.showToastUI(d.t("login_text.enter_code"), c.Global.ToastType.Warnning);
};
t.prototype.refreshCodeImage = function() {
var e = this;
this._codeId = Math.floor(1e3 * Math.random());
var t = r.default.getServerAdress() + "/api/user/generator-code?code_id=" + this._codeId.toString();
cc.assetManager.loadRemote(t, {
ext: ".png"
}, function(t, o) {
if (!t && e.node) {
var n = new cc.SpriteFrame(o);
e.spCode.spriteFrame = null;
e.spCode.spriteFrame = n;
}
});
};
t.prototype.sendPhoneCode = function() {
var e = this, t = {
phone: this._phoneNumber,
smsType: this._smsType
};
s.default.sendPhoneCode(t);
this.getButton.interactable = !1;
this.getLabel.enableUnderline = !1;
var o = 60;
this.getLabel.string = "60";
this.getLabel.node.color = new cc.Color(121, 121, 121);
this.unscheduleAllCallbacks();
this.schedule(function() {
e.getLabel.string = "" + (o - 1);
o -= 1;
}, 1, 59);
this.scheduleOnce(function() {
e.getButton.interactable = !0;
e.getLabel.enableUnderline = !0;
e.getLabel.string = d.t("register_text.label_get");
e.getLabel.node.color = new cc.Color(0, 204, 255);
e.unscheduleAllCallbacks();
}, 61);
};
a([ h(cc.EditBox) ], t.prototype, "phoneCode", void 0);
a([ h(cc.Button) ], t.prototype, "getButton", void 0);
a([ h(cc.Label) ], t.prototype, "getLabel", void 0);
a([ h(cc.EditBox) ], t.prototype, "ebCode", void 0);
a([ h(cc.Sprite) ], t.prototype, "spCode", void 0);
return a([ p ], t);
}(cc.Component);
o.default = f;
cc._RF.pop();
}, {
"../Shared/AddressManager": "AddressManager",
"../Shared/Global": "Global",
"../Shared/NetworkLogic": "NetworkLogic",
"../Shared/UIManager": "UIManager",
LanguageData: "LanguageData"
} ],
VerificationUI: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "aec3dtEpOhB9bpOBAawjlb0", "VerificationUI");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../Shared/AddressManager"), c = e("../Shared/UIManager"), s = e("../Shared/Global"), l = e("LanguageData"), d = cc._decorator, u = d.ccclass, p = d.property, h = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.lbPayType = null;
t.ebPayNumber = null;
t.ebCode = null;
t.spCode = null;
t.nodeIconBank = null;
t.nodeIconAlipay = null;
t.nodeIconPhone = null;
t.callback = null;
t._payType = 0;
t._codeId = 0;
return t;
}
Object.defineProperty(t.prototype, "payType", {
get: function() {
return this._payType;
},
set: function(e) {
this._payType = e;
if (0 === this._payType) {
this.lbPayType.string = l.t("login_text.bank_card");
this.ebPayNumber.placeholder = l.t("login_text.enter_bank_card");
this.ebPayNumber.inputMode = cc.EditBox.InputMode.NUMERIC;
this.ebPayNumber.node.getChildByName("PLACEHOLDER_LABEL").getComponent(cc.Label).overflow = cc.Label.Overflow.SHRINK;
this.nodeIconBank.active = !0;
this.nodeIconAlipay.active = !1;
this.nodeIconPhone.active = !1;
} else if (1 === this._payType) {
this.lbPayType.string = l.t("login_text.alipay");
this.ebPayNumber.placeholder = l.t("login_text.enter_alipay");
this.ebPayNumber.inputMode = cc.EditBox.InputMode.SINGLE_LINE;
this.ebPayNumber.node.getChildByName("PLACEHOLDER_LABEL").getComponent(cc.Label).overflow = cc.Label.Overflow.SHRINK;
this.nodeIconBank.active = !1;
this.nodeIconAlipay.active = !0;
this.nodeIconPhone.active = !1;
} else if (2 === this._payType) {
this.lbPayType.string = l.t("login_text.phone");
this.ebPayNumber.placeholder = l.t("login_text.enter_phone");
this.ebPayNumber.inputMode = cc.EditBox.InputMode.NUMERIC;
this.ebPayNumber.node.getChildByName("PLACEHOLDER_LABEL").getComponent(cc.Label).overflow = cc.Label.Overflow.SHRINK;
this.nodeIconBank.active = !1;
this.nodeIconAlipay.active = !1;
this.nodeIconPhone.active = !0;
}
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "payNumber", {
get: function() {
return this.ebPayNumber ? this.ebPayNumber.string : "";
},
set: function(e) {
this.ebPayNumber.placeholder += "（" + e + "）";
},
enumerable: !1,
configurable: !0
});
t.prototype.start = function() {
this.refreshCodeImage();
};
t.prototype.onBtnClick = function(e, t) {
if ("confirm" === t) {
if ("" === this.ebPayNumber.string) {
0 === this._payType ? c.default.showToastUI(l.t("login_text.bind_bank"), s.Global.ToastType.Warnning) : 1 === this._payType && c.default.showToastUI(l.t("login_text.bind_alipay"), s.Global.ToastType.Warnning);
return;
}
if ("" === this.ebCode.string) {
c.default.showToastUI(l.t("login_text.enter_code"), s.Global.ToastType.Warnning);
return;
}
this.callback && this.callback(this.ebPayNumber.string, this.ebCode.string, this._codeId);
this.node.destroy();
} else "close" === t ? this.node.destroy() : "code" === t && this.refreshCodeImage();
};
t.prototype.refreshCodeImage = function() {
this._codeId = Math.floor(1e3 * Math.random());
var e = r.default.getServerAdress() + "/api/user/generator-code?code_id=" + this._codeId.toString();
cc.assetManager.loadRemote(e, {
ext: ".png"
}, function(e, t) {
if (!e && this.node) {
var o = new cc.SpriteFrame(t);
this.spCode.spriteFrame = null;
this.spCode.spriteFrame = o;
}
}.bind(this));
};
a([ p(cc.Label) ], t.prototype, "lbPayType", void 0);
a([ p(cc.EditBox) ], t.prototype, "ebPayNumber", void 0);
a([ p(cc.EditBox) ], t.prototype, "ebCode", void 0);
a([ p(cc.Sprite) ], t.prototype, "spCode", void 0);
a([ p(cc.Node) ], t.prototype, "nodeIconBank", void 0);
a([ p(cc.Node) ], t.prototype, "nodeIconAlipay", void 0);
a([ p(cc.Node) ], t.prototype, "nodeIconPhone", void 0);
a([ p({
type: Function,
visible: !1
}) ], t.prototype, "callback", void 0);
a([ p(cc.Integer) ], t.prototype, "_payType", void 0);
a([ p({
type: cc.Integer
}) ], t.prototype, "payType", null);
a([ p({
type: cc.String
}) ], t.prototype, "payNumber", null);
return a([ u ], t);
}(cc.Component);
o.default = h;
cc._RF.pop();
}, {
"../Shared/AddressManager": "AddressManager",
"../Shared/Global": "Global",
"../Shared/UIManager": "UIManager",
LanguageData: "LanguageData"
} ],
VipLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "c7eb2U9UbRLerGMlTiOo0L6", "VipLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../Shared/NetworkLogic"), c = e("../Shared/AudioManager"), s = e("../Shared/UIManager"), l = e("../Models/Player"), d = e("../Shared/Global"), u = e("../Common/RemoteSprite"), p = e("../Shared/EnterSoundManager"), h = e("../Shared/Utils"), f = e("LanguageData"), g = cc._decorator, y = g.ccclass, m = g.property, v = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.iconHead = null;
t.washCodeProportion = null;
t.rspHead = null;
t.scrollView = null;
t.content = null;
t.item0 = null;
t.item1 = null;
t.labjjLingQu = null;
t.labWeekLingQu = null;
t.labMonLingQu = null;
t.labVipLevel = null;
t.labCurMoney = null;
t.labjjMoney = null;
t.labWeekMoney = null;
t.labMonMoney = null;
t.btnjj = null;
t.btnWeek = null;
t.btnMon = null;
t.itemLayout = null;
t.confirmBox = null;
t.confirmBoxTitle = null;
t.confirmBoxRecharge = null;
t.confirmBoxRechargeAmount = null;
t.confirmBoxBet = null;
t.confirmBoxBetAmount = null;
t.data = null;
t.userVipLevel = null;
t.userVipSettings = null;
t.tempLevel = null;
t.vipExistingRewardSwitch = !0;
t.tempI = null;
t.mePos = null;
return t;
}
t.prototype.onLoad = function() {
console.log("vipLayer启动成功");
};
t.prototype.start = function() {
p.default.playSound("enter_vip");
l.default.getPy("head") && (this.rspHead.url = l.default.getPy("head"));
this.node.getChildByName("bg").getComponent(cc.Sprite).setState(0);
s.default.showLoadingUI();
r.default.vipShow(function(e) {
s.default.hideLoadingUI();
console.log("======vip data:", e);
this.data = e;
this.labCurMoney.string = (l.default.getPy("currencySymbol") ? l.default.getPy("currencySymbol") : f.t("currency_symbol")) + e.currentExp;
var t, o = e.vipId < 1 ? 1 : e.vipId;
this.userVipSettings = e.userVipSettings;
!1 === e.vipExistingRewardSwitch && (this.vipExistingRewardSwitch = !1);
this.userVipSettings.sort((t = "userVip", function(e, o) {
return e[t] - o[t];
}));
for (var n = 0; n < this.userVipSettings.length; n++) {
if (o === this.userVipSettings[n].id) {
this.userVipLevel = this.userVipSettings[n].userVip;
this.labVipLevel.string = "VIP" + this.userVipLevel;
this.tempI = n;
}
var i = n % 2 == 0 ? this.item0 : this.item1, a = cc.instantiate(i);
a.parent = this.content;
a.active = !0;
var r = cc.find("icon/vip/spVip1", a), c = cc.find("icon/vip/labVip", a), d = cc.find("icon/bg/labLimitMoney", a), u = this.userVipSettings[n];
r.active = u.userVip <= this.userVipLevel;
c.getComponent(cc.Label).string = "VIP" + u.userVip;
d.getComponent(cc.Label).string = (l.default.getPy("currencySymbol") ? l.default.getPy("currencySymbol") : f.t("currency_symbol")) + (1e4 * u.totalValidBetNumber).toString();
a.getComponent(cc.Toggle).checkEvents[0].customEventData = n;
if (u.userVip === this.userVipLevel) {
this.washCodeProportion.string = u.washCodeProportion + "%";
a.getComponent(cc.Toggle).check();
a.getChildByName("me").active = !0;
}
n === this.userVipSettings.length - 1 && (a.getChildByName("line").active = !1);
}
this.itemLayout.updateLayout();
var p = this.scrollView.getMaxScrollOffset();
this.mePos = p.x * this.tempI / this.userVipSettings.length;
this.scrollView.scrollToOffset(cc.v2(this.mePos, 0), .1);
}.bind(this), function() {
console.log("vip获取失败");
});
this.confirmBox.active = !1;
};
t.prototype.onBtnClick = function(e, t) {
var o = this;
c.default.playSound("button");
if ("back" === t) {
c.default.playSound("close");
this.node.destroy();
} else if ("receive" === t) h.default.validateAuth(function() {
h.default.disable_btn_sec(e, 5);
var t = {
giftMoneyType: 1,
vipId: o.tempLevel
};
r.default.vipReceivReword(t, function() {
this._receiveReword(1, t);
}.bind(o), function(e) {
o._displayTarget(1, e.msg);
console.log("===返回失败");
});
}); else if ("week" === t) h.default.validateAuth(function() {
h.default.disable_btn_sec(e, 5);
var t = {
giftMoneyType: 2,
vipId: o.tempLevel
};
r.default.vipReceivReword(t, function() {
this._receiveReword(2);
}.bind(o), function(e) {
o._displayTarget(2, e.msg);
console.log("===返回失败");
});
}); else if ("month" === t) h.default.validateAuth(function() {
h.default.disable_btn_sec(e, 5);
var t = {
giftMoneyType: 3,
vipId: o.tempLevel
};
r.default.vipReceivReword(t, function() {
this._receiveReword(3);
}.bind(o), function(e) {
o._displayTarget(3, e.msg);
console.log("===返回失败");
});
}); else if ("me" === t) {
cc.log("==mePos:", this.mePos);
this.scrollView.scrollToOffset(cc.v2(this.mePos, 0), .1);
} else if ("xima" === t) {
var n = null, i = cc.find("Canvas/XimaLayer");
if (!i) {
cc.find("Canvas/gameNode").getComponent("HallUI").onBtnClick(null, "xima");
i = cc.find("Canvas/XimaLayer");
}
(n = i.getComponent("XimaLayer")).toggleContainer.toggleItems[2].check();
n.onToggleSelected(null, "ximabili");
this.node.destroy();
} else "confirmBox" === t && (this.confirmBox.active = !1);
};
t.prototype.onToggleSelected = function(e, t) {
c.default.playSound("toggle");
this.tempI = Number(t);
isNaN(this.tempI) || this._setBottom(this.tempI);
};
t.prototype._setBottom = function(e) {
console.log("====this.userVipSettings:", this.userVipSettings);
var t = this.userVipSettings[e];
this.tempLevel = t.id;
this.labjjMoney.string = (l.default.getPy("currencySymbol") ? l.default.getPy("currencySymbol") : f.t("currency_symbol")) + t.advanceGiftMoney;
this.labWeekMoney.string = (l.default.getPy("currencySymbol") ? l.default.getPy("currencySymbol") : f.t("currency_symbol")) + t.weekGiftMoney;
this.labMonMoney.string = (l.default.getPy("currencySymbol") ? l.default.getPy("currencySymbol") : f.t("currency_symbol")) + t.monthGiftMoney;
this.labjjLingQu.string = 0 === t.receiveStatus ? f.t("msg_text.receive") : f.t("label_text.receive");
this.labWeekLingQu.string = 0 === t.weekStatus ? f.t("msg_text.receive") : f.t("label_text.receive");
this.labMonLingQu.string = 0 === t.monthStatus ? f.t("msg_text.receive") : f.t("label_text.receive");
var o = 0 !== t.receiveStatus && 2 !== t.receiveStatus, n = 0 !== t.weekStatus && 2 !== t.weekStatus, i = 0 !== t.monthStatus && 2 !== t.monthStatus, a = this.vipExistingRewardSwitch || !this.vipExistingRewardSwitch && this.userVipLevel === e + 1;
o = 0 !== t.advanceGiftMoney && o;
n = 0 !== t.weekGiftMoney && n;
i = 0 !== t.monthGiftMoney && i;
this.btnjj.interactable = o && a;
this.btnWeek.interactable = n;
this.btnMon.interactable = i;
};
t.prototype._receiveReword = function(e) {
r.default.lowerScore(0, function(e) {
l.default.setPy("money", e);
}.bind(this), function(e) {
e && s.default.showToastUI(f.t("vip_text.get_error"), d.Global.ToastType.Warnning);
}.bind(this));
var t = this.userVipSettings[this.tempI];
this.tempLevel = t.id;
this.labjjMoney.string = (l.default.getPy("currencySymbol") ? l.default.getPy("currencySymbol") : f.t("currency_symbol")) + t.advanceGiftMoney;
var o = 0;
if (1 === e) {
t.receiveStatus = 0;
o = t.advanceGiftMoney;
} else if (2 === e) {
t.weekStatus = 0;
o = t.weekGiftMoney;
} else if (3 === e) {
t.monthStatus = 0;
o = t.monthGiftMoney;
}
cc.director.emit(d.Global.UserEvent.OpenBaoxiang, o);
this._setBottom(this.tempI);
};
t.prototype._displayTarget = function(e, t) {
if (null != t) try {
var o = JSON.parse(t);
if (null === o.differBetMoney && null === o.differRechargeMoney) return;
var n = "";
switch (e) {
case 1:
n = f.t("vip_text.was_filled_error");
break;

case 2:
n = f.t("vip_text.weeks_amounts_error");
break;

case 3:
n = f.t("vip_text.month_amounts_error");
}
this.confirmBox.active = !0;
this.confirmBoxTitle.string = n;
this.confirmBoxRecharge.active = 0 !== o.differRechargeMoney;
this.confirmBoxBet.active = 0 !== o.differBetMoney;
this.confirmBoxRechargeAmount.string = "" + l.default.getPy("currencySymbol") + o.differRechargeMoney;
this.confirmBoxBetAmount.string = "" + l.default.getPy("currencySymbol") + o.differBetMoney;
} catch (e) {
return;
}
};
a([ m(cc.Node) ], t.prototype, "iconHead", void 0);
a([ m(cc.Label) ], t.prototype, "washCodeProportion", void 0);
a([ m(u.default) ], t.prototype, "rspHead", void 0);
a([ m(cc.ScrollView) ], t.prototype, "scrollView", void 0);
a([ m(cc.Node) ], t.prototype, "content", void 0);
a([ m(cc.Node) ], t.prototype, "item0", void 0);
a([ m(cc.Node) ], t.prototype, "item1", void 0);
a([ m(cc.Label) ], t.prototype, "labjjLingQu", void 0);
a([ m(cc.Label) ], t.prototype, "labWeekLingQu", void 0);
a([ m(cc.Label) ], t.prototype, "labMonLingQu", void 0);
a([ m(cc.Label) ], t.prototype, "labVipLevel", void 0);
a([ m(cc.Label) ], t.prototype, "labCurMoney", void 0);
a([ m(cc.Label) ], t.prototype, "labjjMoney", void 0);
a([ m(cc.Label) ], t.prototype, "labWeekMoney", void 0);
a([ m(cc.Label) ], t.prototype, "labMonMoney", void 0);
a([ m(cc.Button) ], t.prototype, "btnjj", void 0);
a([ m(cc.Button) ], t.prototype, "btnWeek", void 0);
a([ m(cc.Button) ], t.prototype, "btnMon", void 0);
a([ m(cc.Layout) ], t.prototype, "itemLayout", void 0);
a([ m(cc.Node) ], t.prototype, "confirmBox", void 0);
a([ m(cc.Label) ], t.prototype, "confirmBoxTitle", void 0);
a([ m(cc.Node) ], t.prototype, "confirmBoxRecharge", void 0);
a([ m(cc.Label) ], t.prototype, "confirmBoxRechargeAmount", void 0);
a([ m(cc.Node) ], t.prototype, "confirmBoxBet", void 0);
a([ m(cc.Label) ], t.prototype, "confirmBoxBetAmount", void 0);
return a([ y ], t);
}(cc.Component);
o.default = v;
cc._RF.pop();
}, {
"../Common/RemoteSprite": "RemoteSprite",
"../Models/Player": "Player",
"../Shared/AudioManager": "AudioManager",
"../Shared/EnterSoundManager": "EnterSoundManager",
"../Shared/Global": "Global",
"../Shared/NetworkLogic": "NetworkLogic",
"../Shared/UIManager": "UIManager",
"../Shared/Utils": "Utils",
LanguageData: "LanguageData"
} ],
VistorLoginTips: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "b9adafgQTNLCbfVHkGZm5Lp", "VistorLoginTips");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/AudioManager"), c = e("../../Shared/PopWindowManager"), s = cc._decorator, l = s.ccclass, d = (s.property, 
function(e) {
i(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.start = function() {};
t.prototype.onBtnUpgrade = function() {
var e = cc.find("Canvas/gameNode").getComponent("HallUI");
this.node.destroy();
e.openChildUI(e.pfbLoginCompleteInformation);
};
t.prototype.onBtnClose = function() {
r.default.playSound("close");
this.node.destroy();
c.default.openNext();
};
return a([ l ], t);
}(cc.Component));
o.default = d;
cc._RF.pop();
}, {
"../../Shared/AudioManager": "AudioManager",
"../../Shared/PopWindowManager": "PopWindowManager"
} ],
WalletManagerLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "67a2aFiXONMRol2xCsIZ3MY", "WalletManagerLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("./IWithdrawalLayer"), c = e("../../Shared/NetworkLogic"), s = e("../../Common/CommonToggleContainer"), l = e("../../Shared/UIManager"), d = e("../../Models/Player"), u = e("../../Shared/Global"), p = e("LanguageData"), h = cc._decorator, f = h.ccclass, g = h.property, y = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.toggleContainer = null;
t.nodeInfoLayer = null;
t.nodeBankLayer = null;
t.nodeOtherLayer = null;
t.nodeUsdtLayer = null;
t.nodeWalletPayLayer = null;
t.lytBankInfoList = null;
t.bankListNode = null;
t.lytBankList = null;
t.nodeTemplateCard = null;
t.nodeTemplateAddCard = null;
t.nodeTemplateBank = null;
t.ebUserNameBank = null;
t.currencyType = null;
t.lbBankName = null;
t.ebBankNo = null;
t.ebBankAddres = null;
t.ebRealName = null;
t.ebAccount = null;
t.lbAccountName = null;
t.lbTipsBank = null;
t.lbTipsOther = null;
t.lbTipsUsdt = null;
t.usdtBankListNode = null;
t.wpBankListNode = null;
t.lytUsdtBankList = null;
t.lytWalletPayContent = null;
t.nodeTemplateUsdtBank = null;
t.nodeTemplateWpBank = null;
t.lbUsdtBankName = null;
t.lbWpBankName = null;
t.ebUsdtBankAddres = null;
t.ebWpBankAddres = null;
t._bankID = 0;
t._realUserName = "";
t._usdtBankID = 0;
t._wpBankID = 0;
return t;
}
t.prototype.onLoad = function() {
this.nodeInfoLayer.active = !0;
this.nodeBankLayer.active = !1;
this.nodeOtherLayer.active = !1;
this.nodeUsdtLayer.active = !1;
this.nodeWalletPayLayer.active = !1;
this.bankListNode.active = !1;
this.nodeWalletPayLayer.active = !1;
this.nodeTemplateCard.parent = null;
this.nodeTemplateAddCard.parent = null;
this.nodeTemplateBank.parent = null;
this.nodeTemplateUsdtBank.parent = null;
this.nodeTemplateWpBank.parent = null;
this.usdtBankListNode.active = !1;
this.wpBankListNode.active = !1;
};
t.prototype.start = function() {
this.pullPaymentData();
c.default.bankList(0, function(e) {
this.createBankList(e);
}.bind(this));
c.default.bankList(3, function(e) {
this.createUsdtBankList(e);
}.bind(this));
c.default.bankList(4, function(e) {
this.createWalletPayList(e);
}.bind(this));
};
t.prototype.onDisable = function() {
this.nodeInfoLayer.active = !0;
this.nodeBankLayer.active = !1;
this.nodeOtherLayer.active = !1;
this.nodeUsdtLayer.active = !1;
this.nodeWalletPayLayer.active = !1;
};
t.prototype.onDestroy = function() {
this.nodeTemplateCard.destroy();
this.nodeTemplateAddCard.destroy();
this.nodeTemplateBank.destroy();
this.nodeTemplateUsdtBank.destroy();
this.nodeTemplateWpBank.destroy();
};
t.prototype.onBtnClick = function(e, t) {
if ("addBank" === t) {
this.nodeInfoLayer.active = !1;
if (0 === (n = parseInt(this.toggleContainer.checkedToggle.userData.value))) {
this.nodeBankLayer.active = !0;
this.lbTipsBank.string = this.toggleContainer.checkedToggle.userData.remark;
} else if (3 === n) {
this.nodeUsdtLayer.active = !0;
this.lbTipsUsdt.string = this.toggleContainer.checkedToggle.userData.remark;
} else if (4 === n) {
this.nodeWalletPayLayer.active = !0;
cc.find("node/tips", this.nodeWalletPayLayer).getComponent(cc.Label).string = this.toggleContainer.checkedToggle.userData.remark;
} else {
this.nodeOtherLayer.active = !0;
var o = this.toggleContainer.checkedToggle.userData.label;
this.ebRealName.placeholder = p.t("label_text.inPlease_enter_the") + o + p.t("label_text.real_name");
this.lbTipsOther.string = this.toggleContainer.checkedToggle.userData.remark;
this.ebAccount.inputMode = cc.EditBox.InputMode.SINGLE_LINE;
if (1 === n) {
this.ebAccount.placeholder = p.t("label_text.inPlease_enter_the") + o + p.t("TuiGuangLayer.account");
this.lbAccountName.string = o + p.t("TuiGuangLayer.account") + "：";
} else if (2 === n) {
this.ebAccount.placeholder = p.t("register_text.inp_phone");
this.ebAccount.inputMode = cc.EditBox.InputMode.NUMERIC;
this.lbAccountName.string = o + p.t("BasicsJS.phoneNo") + "：";
}
}
} else if ("pre" === t) {
this.nodeInfoLayer.active = !0;
this.nodeBankLayer.active = !1;
this.nodeOtherLayer.active = !1;
this.nodeUsdtLayer.active = !1;
this.nodeWalletPayLayer.active = !1;
this.clearData();
} else if ("confirm" === t) {
var n = parseInt(this.toggleContainer.checkedToggle.userData.value), i = this._realUserName || "", a = void 0, r = void 0, s = void 0;
if (0 === n) {
if (/\s/.test(this.ebUserNameBank.string) || /\s/.test(this.ebBankAddres.string)) {
l.default.showToastUI(p.t("noSpace"), u.Global.ToastType.Warnning);
return;
}
i = this.ebUserNameBank.string;
a = this._bankID;
r = this.ebBankNo.string;
s = this.ebBankAddres.string;
} else if (3 === n) {
if (/\s/.test(this.ebUsdtBankAddres.string)) {
l.default.showToastUI(p.t("noSpace"), u.Global.ToastType.Warnning);
return;
}
a = this._usdtBankID;
r = this.ebUsdtBankAddres.string;
} else if (4 === n) {
a = this._wpBankID;
r = this.ebWpBankAddres.string;
if (/[^0-9A-Za-z~！\\\\@#￥%&()*-_=+{}[]|;:''"",.<>?]+/g.test(this.ebWpBankAddres.string)) {
l.default.showToastUI(p.t("wpAccountPsR"), u.Global.ToastType.Warnning);
return;
}
if (/\s/.test(this.ebWpBankAddres.string)) {
l.default.showToastUI(p.t("noSpace"), u.Global.ToastType.Warnning);
return;
}
if (!a) {
l.default.showToastUI(p.t("psChoose") + p.t("wpType"), u.Global.ToastType.Warnning);
return;
}
if (!r) {
l.default.showToastUI(p.t("wpAccountPs"), u.Global.ToastType.Warnning);
return;
}
} else {
if (/\s/.test(this.ebRealName.string) || /\s/.test(this.ebAccount.string)) {
l.default.showToastUI(p.t("noSpace"), u.Global.ToastType.Warnning);
return;
}
i = this.ebRealName.string;
r = this.ebAccount.string;
}
l.default.showLoadingUI();
c.default.bindBank({
type: n,
username: i,
bankId: a,
bankNo: r,
openbankBranch: s
}, function() {
l.default.hideLoadingUI();
this.nodeInfoLayer.active = !0;
this.nodeBankLayer.active = !1;
this.nodeOtherLayer.active = !1;
this.nodeUsdtLayer.active = !1;
this.nodeWalletPayLayer.active = !1;
this.clearData();
this.pullPaymentData();
}.bind(this));
} else if ("bankList" === t) this.bankListNode.active = !this.bankListNode.active; else if ("bankListUsdt" === t) this.usdtBankListNode.active = !this.usdtBankListNode.active; else if ("bankListWp" === t) this.wpBankListNode.active = !this.wpBankListNode.active; else if ("bankItem" === t) {
this._bankID = e.target.bankCfg.id;
this.lbBankName.string = e.target.bankCfg.text;
this.bankListNode.active = !1;
} else if ("bankItemUsdt" === t) {
this._usdtBankID = e.target.bankCfg.id;
this.lbUsdtBankName.string = e.target.bankCfg.text;
this.usdtBankListNode.active = !1;
} else if ("bankItemWp" === t) {
this._wpBankID = e.target.bankCfg.id;
this.lbWpBankName.string = e.target.bankCfg.text;
this.wpBankListNode.active = !1;
}
};
t.prototype.onToggleSelected = function(e) {
var t = this, o = e.userData.bankList || [];
this.lytBankInfoList.node.destroyAllChildren();
o.forEach(function(e) {
t.addBankCard(e);
});
var n = cc.instantiate(this.nodeTemplateAddCard);
this.lytBankInfoList.node.addChild(n);
n.getChildByName("tips").getComponent(cc.Label).string = p.t("BasicsJS.add") + e.userData.label;
};
t.prototype.clearData = function() {
this.ebRealName.string = this._realUserName;
this.ebUserNameBank.string = this._realUserName;
this.ebBankAddres.string = "";
this.ebBankNo.string = "";
this.ebUsdtBankAddres.string = "";
this.ebWpBankAddres.string = "";
this.ebAccount.string = "";
this.lbBankName.string = "";
this.lbUsdtBankName.string = "";
this.lbWpBankName.string = "";
this._bankID = 0;
this._usdtBankID = 0;
this._wpBankID = 0;
};
t.prototype.pullPaymentData = function() {
c.default.getAllPaymentByUser(function(e) {
this.toggleContainer.clear();
this.createToggles(e.accountList);
this._realUserName = e.realUserName;
if (this._realUserName) {
this.ebRealName.string = this._realUserName;
this.ebUserNameBank.string = this._realUserName;
this.ebRealName.enabled = !1;
this.ebUserNameBank.enabled = !1;
}
this.currencyType.string = d.default.getPy("currencyName");
this.currencyType.enabled = !1;
}.bind(this));
};
t.prototype.createToggles = function(e) {
var t = this;
e.forEach(function(e) {
t.toggleContainer.addDefaultToggle(e.label, e);
});
};
t.prototype.addBankCard = function(e) {
var t = cc.instantiate(this.nodeTemplateCard);
t.parent = this.lytBankInfoList.node;
t.getChildByName("name").getComponent(cc.Label).string = e.bankname;
t.getChildByName("account").getComponent(cc.Label).string = e.bankNum;
e.logoUrl && cc.assetManager.loadRemote(e.logoUrl, {
ext: ".png"
}, function(e, o) {
!e && t && t.isValid && (t.getChildByName("icon").getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(o));
}.bind(this));
};
t.prototype.createBankList = function(e) {
var t = this;
e.filter(function(e) {
if ("0" === e.type || 0 === e.type) return !0;
}).forEach(function(e) {
var o = cc.instantiate(t.nodeTemplateBank);
o.parent = t.lytBankList.node;
o.getChildByName("name").getComponent(cc.Label).string = e.text;
o.bankCfg = e;
});
};
t.prototype.createUsdtBankList = function(e) {
var t = this;
e.forEach(function(e) {
var o = cc.instantiate(t.nodeTemplateUsdtBank);
o.parent = t.lytUsdtBankList.node;
o.getChildByName("name").getComponent(cc.Label).string = e.text;
o.bankCfg = e;
});
};
t.prototype.createWalletPayList = function(e) {
var t = this;
e.forEach(function(e) {
var o = cc.instantiate(t.nodeTemplateWpBank);
o.parent = t.lytWalletPayContent.node;
o.getChildByName("name").getComponent(cc.Label).string = e.text;
o.bankCfg = e;
});
};
a([ g(s.default) ], t.prototype, "toggleContainer", void 0);
a([ g(cc.Node) ], t.prototype, "nodeInfoLayer", void 0);
a([ g(cc.Node) ], t.prototype, "nodeBankLayer", void 0);
a([ g(cc.Node) ], t.prototype, "nodeOtherLayer", void 0);
a([ g(cc.Node) ], t.prototype, "nodeUsdtLayer", void 0);
a([ g(cc.Node) ], t.prototype, "nodeWalletPayLayer", void 0);
a([ g(cc.Layout) ], t.prototype, "lytBankInfoList", void 0);
a([ g(cc.Node) ], t.prototype, "bankListNode", void 0);
a([ g(cc.Layout) ], t.prototype, "lytBankList", void 0);
a([ g(cc.Node) ], t.prototype, "nodeTemplateCard", void 0);
a([ g(cc.Node) ], t.prototype, "nodeTemplateAddCard", void 0);
a([ g(cc.Node) ], t.prototype, "nodeTemplateBank", void 0);
a([ g(cc.EditBox) ], t.prototype, "ebUserNameBank", void 0);
a([ g(cc.EditBox) ], t.prototype, "currencyType", void 0);
a([ g(cc.Label) ], t.prototype, "lbBankName", void 0);
a([ g(cc.EditBox) ], t.prototype, "ebBankNo", void 0);
a([ g(cc.EditBox) ], t.prototype, "ebBankAddres", void 0);
a([ g(cc.EditBox) ], t.prototype, "ebRealName", void 0);
a([ g(cc.EditBox) ], t.prototype, "ebAccount", void 0);
a([ g(cc.Label) ], t.prototype, "lbAccountName", void 0);
a([ g(cc.Label) ], t.prototype, "lbTipsBank", void 0);
a([ g(cc.Label) ], t.prototype, "lbTipsOther", void 0);
a([ g(cc.Label) ], t.prototype, "lbTipsUsdt", void 0);
a([ g(cc.Node) ], t.prototype, "usdtBankListNode", void 0);
a([ g(cc.Node) ], t.prototype, "wpBankListNode", void 0);
a([ g(cc.Layout) ], t.prototype, "lytUsdtBankList", void 0);
a([ g(cc.Layout) ], t.prototype, "lytWalletPayContent", void 0);
a([ g(cc.Node) ], t.prototype, "nodeTemplateUsdtBank", void 0);
a([ g(cc.Node) ], t.prototype, "nodeTemplateWpBank", void 0);
a([ g(cc.Label) ], t.prototype, "lbUsdtBankName", void 0);
a([ g(cc.Label) ], t.prototype, "lbWpBankName", void 0);
a([ g(cc.EditBox) ], t.prototype, "ebUsdtBankAddres", void 0);
a([ g(cc.EditBox) ], t.prototype, "ebWpBankAddres", void 0);
return a([ f ], t);
}(r.default);
o.default = y;
cc._RF.pop();
}, {
"../../Common/CommonToggleContainer": "CommonToggleContainer",
"../../Models/Player": "Player",
"../../Shared/Global": "Global",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
"./IWithdrawalLayer": "IWithdrawalLayer",
LanguageData: "LanguageData"
} ],
WeChatBindMethods: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "f6fc3xTfapD4LTaa+Cld4Sj", "WeChatBindMethods");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
o.WeChatBindMethods = void 0;
var r = e("../../Shared/UIManager"), c = e("../../Shared/AudioManager"), s = e("./WeChatBindShareLayer"), l = e("../../Models/Player"), d = e("../../Shared/NetworkLogic"), u = e("../../Shared/encryptionWay"), p = e("../../Shared/Utils"), h = e("../../Shared/AddressManager"), f = cc._decorator, g = f.ccclass, y = f.property, m = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.className = "WeChatBindMethods";
t.pfbWeChatBindShareLayer = null;
t.labelTitle = void 0;
t.labelContent = void 0;
t.btnClose = void 0;
t.btnWechatBindLocal = void 0;
t.btnWechatBindShare = void 0;
t._wechatBindShareLayer = void 0;
t._onBindLocalCallback = void 0;
t._onBindShareCallback = void 0;
t._onCloseCallback = void 0;
return t;
}
t.prototype.init = function(e, t, o) {
var n = this;
r.default.showLoadingUI();
this.node.parent = e;
this._wechatBindShareLayer = cc.instantiate(this.pfbWeChatBindShareLayer).getComponent(s.WeChatBindShareLayer);
if (t) {
this._onBindLocalCallback = t.onBindLocalCallback;
this._onBindShareCallback = t.onBindShareCallback;
this._onCloseCallback = t.onCloseCallback;
}
d.default.bindWeChatCreateTempSecret({}, function(e) {
d.default.bindWeChatBindingConfig({}, function(t) {
r.default.hideLoadingUI();
if (t) {
var i = l.default.getPy("currencySymbol") ? l.default.getPy("currencySymbol") : "", a = e.userId, c = e.secret, s = p.default.getDeviceId(), d = h.default.getServerDomain(), f = u.default.encryptWechatCallbackState(d, a, c, s), g = n._generateQRCodeContent(t.appId, t.redirectUri, f);
n._wechatBindShareLayer.init(n.node, {
fileName: "wechat_bind",
fileExtension: "jpg",
rewardAmount: t.bindingReward,
currency: i,
qrCodeContent: g
});
}
o && o(!1);
}, function() {
r.default.hideLoadingUI();
o && o(!0);
});
}, function() {
r.default.hideLoadingUI();
o && o(!0);
});
};
t.prototype.reset = function() {
this.node.stopAllActions();
this.node.opacity = 255;
this._wechatBindShareLayer.destroy();
this._wechatBindShareLayer = void 0;
this._onBindLocalCallback = void 0;
this._onBindShareCallback = void 0;
this._onCloseCallback = void 0;
};
t.prototype.close = function(e) {
var t = this;
void 0 === e && (e = !0);
cc.log(this.className + " :: close");
e && c.default.playSound("close");
this.node.stopAllActions();
this.node.runAction(cc.sequence(cc.fadeOut(.2), cc.callFunc(function() {
t.reset();
t.node.destroy();
})));
};
t.prototype.onClicked = function(e, t) {
switch (t) {
case "local_bind":
c.default.playSound("button");
this._localBind();
break;

case "share_bind":
c.default.playSound("button");
this._shareBind();
break;

case "close":
this.close();
var o = this._onCloseCallback;
o && o();
}
};
t.prototype._localBind = function() {
cc.log(this.className + " :: localBind");
var e = this._onBindLocalCallback;
this._wechatBindShareLayer.saveImageToLocalAlbum(e);
};
t.prototype._shareBind = function() {
cc.log(this.className + " :: shareBind");
var e = this._onBindShareCallback;
this._wechatBindShareLayer.shareImageToThirdParty(e);
};
t.prototype._generateQRCodeContent = function(e, t, o) {
return "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + e + "&redirect_uri=" + t + "/callback/weixin&response_type=code&scope=snsapi_userinfo&state=" + o + "#wechat_redirect";
};
a([ y(cc.Prefab) ], t.prototype, "pfbWeChatBindShareLayer", void 0);
a([ y(cc.Label) ], t.prototype, "labelTitle", void 0);
a([ y(cc.Label) ], t.prototype, "labelContent", void 0);
a([ y(cc.Button) ], t.prototype, "btnClose", void 0);
a([ y(cc.Button) ], t.prototype, "btnWechatBindLocal", void 0);
a([ y(cc.Button) ], t.prototype, "btnWechatBindShare", void 0);
return a([ g ], t);
}(cc.Component);
o.WeChatBindMethods = m;
cc._RF.pop();
}, {
"../../Models/Player": "Player",
"../../Shared/AddressManager": "AddressManager",
"../../Shared/AudioManager": "AudioManager",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
"../../Shared/Utils": "Utils",
"../../Shared/encryptionWay": "encryptionWay",
"./WeChatBindShareLayer": "WeChatBindShareLayer"
} ],
WeChatBindShareLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "83dfdv10r9EJI6VpzlLsur8", "WeChatBindShareLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
o.WeChatBindShareLayer = void 0;
var r = e("../../Shared/CQRCode"), c = e("../../Shared/Global"), s = e("../../Shared/UIManager"), l = e("../../Shared/Utils"), d = cc._decorator, u = d.ccclass, p = d.property, h = e("LanguageData"), f = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.className = "WeChatBindShareLayer";
t.labelRewardAmount = void 0;
t.qrCode = void 0;
t._fileName = "";
return t;
}
t.prototype.init = function(e, t) {
this.node.parent = e;
var o = -1 !== t.fileExtension.indexOf(".") ? t.fileExtension : "." + t.fileExtension;
this._fileName = "" + t.fileName + o;
this.labelRewardAmount.string = "" + t.currency + t.rewardAmount.toFixed(2);
this.qrCode.string = t.qrCodeContent;
};
t.prototype.reset = function() {
this.node.parent = void 0;
this.labelRewardAmount.string = "";
this.qrCode.string = "";
};
t.prototype.saveImageToLocalAlbum = function(e) {
var t = this.node;
t.active = !0;
l.default.saveNodeImageToAlbum(t, this._fileName, function(o) {
if (o) {
s.default.showToastUI(h.t("share_text.save_img_succ"), c.Global.ToastType.OK);
e(!0);
} else {
s.default.showTipUI(h.t("share_text.save_err"));
e(!1);
}
t.active = !1;
});
};
t.prototype.shareImageToThirdParty = function(e) {
var t = this.node;
t.active = !0;
l.default.saveNodeImage(this.node, this._fileName);
l.default.share("", jsb.fileUtils.getWritablePath() + this._fileName, "", function(o) {
if (o) {
s.default.showToastUI(h.t("WeChatBind.ShareSuccess"), c.Global.ToastType.OK);
e(!0);
} else {
s.default.showTipUI(h.t("WeChatBind.ShareFailed"));
e(!1);
}
t.active = !1;
});
};
a([ p(cc.Label) ], t.prototype, "labelRewardAmount", void 0);
a([ p(r.default) ], t.prototype, "qrCode", void 0);
return a([ u ], t);
}(cc.Component);
o.WeChatBindShareLayer = f;
cc._RF.pop();
}, {
"../../Shared/CQRCode": "CQRCode",
"../../Shared/Global": "Global",
"../../Shared/UIManager": "UIManager",
"../../Shared/Utils": "Utils",
LanguageData: "LanguageData"
} ],
WeChatBindTutorialGroupItem: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "f3c58FKiitJZaDUj3xSff+X", "WeChatBindTutorialGroupItem");
var n = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var i = cc._decorator, a = i.ccclass, r = i.property, c = function() {
function e() {
this.className = "WeChatBindTutorialGroupItem";
this.labelText = "";
this.tutorialSpriteFrame = null;
}
n([ r(cc.String) ], e.prototype, "labelText", void 0);
n([ r(cc.SpriteFrame) ], e.prototype, "tutorialSpriteFrame", void 0);
return n([ a("WeChatBindTutorialGroupItem") ], e);
}();
o.default = c;
cc._RF.pop();
}, {} ],
WeChatBindTutorialGroup: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "5f001fnaGpKlaGm5AjUBr5t", "WeChatBindTutorialGroup");
var n = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var i = e("./WeChatBindTutorialGroupItem"), a = cc._decorator, r = a.ccclass, c = a.property, s = function() {
function e() {
this.className = "WeChatBindTutorialGroup";
this.groupTitle = "";
this.groupItemList = [];
}
n([ c(cc.String) ], e.prototype, "groupTitle", void 0);
n([ c([ i.default ]) ], e.prototype, "groupItemList", void 0);
return n([ r("WeChatBindTutorialGroup") ], e);
}();
o.default = s;
cc._RF.pop();
}, {
"./WeChatBindTutorialGroupItem": "WeChatBindTutorialGroupItem"
} ],
WebViewManager: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "0c339UBQBRK3pRksizDGMai", "WebViewManager");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("./Global"), c = e("./Utils"), s = e("./Constant"), l = e("./NetworkLogic"), d = e("LanguageData"), u = cc._decorator, p = u.ccclass, h = u.property, f = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.pfbConnectingLayer = null;
t.webView = null;
t.isFillNotch = !0;
t._nodeConnectingBg = null;
t._isAgentRecharge = !1;
t._isIngame = !1;
return t;
}
t.prototype.onLoad = function() {
this.webView.node.active = !1;
cc.director.on(r.Global.UserEvent.OrientationChanged, this.onOrientationChanged, this);
cc.director.on(r.Global.UserEvent.OpenMantain, this.openMaintain, this);
};
t.prototype.onDestroy = function() {
cc.director.off(r.Global.UserEvent.OpenMantain, this.openMaintain, this);
cc.director.off(r.Global.UserEvent.OrientationChanged, this.onOrientationChanged, this);
};
t.prototype.openThirdGame = function(e) {
if (c.default.isUrl(e)) {
this.openWebView(e);
var t = "cc.find('Canvas').getComponent('WebViewManager').onBackHallFromGame();";
this.createNativeButton(t);
this.schedule(this._checkMaintain, 15);
} else {
this.openWebViewWithHtml(e);
t = "cc.find('Canvas').getComponent('WebViewManager').onBackHallFromGame();";
this.createNativeButton(t);
this.schedule(this._checkMaintain, 15);
}
};
t.prototype.openMaintain = function() {
if (this._isIngame) {
this.onBackHallFromGame();
if (cc.sys.isBrowser) {
var e = document.getElementById("btn");
e && e.remove();
}
}
};
t.prototype._checkMaintain = function() {
l.default.siteGlobal(function() {}.bind(this), function() {}.bind(this));
};
t.prototype.openAgentRecharge = function(e) {
var t = this;
this._isAgentRecharge = !0;
this.openWebView(e);
this.webView.setJavascriptInterfaceScheme("methods");
this.webView.setOnJSCallback(function(e, o) {
var n = (o = o.replace("methods://", "")).split("&"), i = n[0] ? n[0].replace("type=", "") : "";
if ("close" === i) {
this.closeWebView();
this.webView.setJavascriptInterfaceScheme("");
this.webView.setOnJSCallback(null);
} else if ("saveimg" === i) {
var a = n[1] ? n[1].replace("url=", "") : "";
cc.log("===imgUrl:", a);
if (a) {
a = (a = a.replace("http//", "http://")).replace("https//", "https://");
c.default.saveUrlImageToAlbum(a, "web_save_image.png", function(e) {
if (e) {
cc.log("====success:", e);
t.webView.evaluateJS('window.alert("保存成功")');
} else {
cc.log("====error:", e);
this.webView.evaluateJS('window.alert("保存失败")');
}
}.bind(this));
}
}
}.bind(this));
};
t.prototype.openOnlineKefu = function(e) {
this.openWebView(e);
this.createNativeButton("cc.find('Canvas').getComponent('WebViewManager').onBackHall();");
};
t.prototype.onBackHallFromGame = function() {
this.closeWebView();
cc.director.emit(r.Global.UserEvent.CloseThirdGame);
this.unscheduleAllCallbacks();
};
t.prototype.onBackHall = function() {
this.closeWebView();
};
t.prototype.onWebViewEvent = function(e, t) {
if (t === cc.WebView.EventType.LOADED) {
cc.log("WebView Loaded!");
if (this._nodeConnectingBg.active) {
this.webView.node.y = 0;
this._nodeConnectingBg.active = !1;
this.addWidgetComponent();
}
} else if (t === cc.WebView.EventType.LOADING) cc.log("WebView Loading!"); else if (t === cc.WebView.EventType.ERROR) {
cc.log("WebView Error!");
this._isAgentRecharge && this.createNativeButton("cc.find('Canvas').getComponent('WebViewManager').onBackHall();");
}
};
t.prototype.onOrientationChanged = function() {
this.setWebViewWidgetSize();
};
t.prototype.openWebView = function(e) {
cc.log("webview网址：", e);
c.default.hideGameNode();
this.webView.node.y = 1e5;
this.webView.url = e;
this.webView.node.active = !0;
this.webView.getComponent(cc.Widget) && this.webView.node.removeComponent(cc.Widget);
this._nodeConnectingBg = cc.instantiate(this.pfbConnectingLayer);
this._nodeConnectingBg.parent = this.node;
this._isIngame = !0;
};
t.prototype.openWebViewWithHtml = function(e) {
cc.log("webview网址：", e);
c.default.hideGameNode();
this.webView.node.y = 1e5;
this.webView.node.active = !0;
var t = '<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" /><style>body{background:#313B8C;color: #FFFFFF;font-size: 15px;}</style><div style="width:100%;word-break:break-all;word-wrap:break-word;">' + e + "</div>";
this.webView._impl.loadHTMLString(t);
this.webView.getComponent(cc.Widget) && this.webView.node.removeComponent(cc.Widget);
this._nodeConnectingBg = cc.instantiate(this.pfbConnectingLayer);
this._nodeConnectingBg.parent = this.node;
this._isIngame = !0;
};
t.prototype.closeWebView = function() {
c.default.showGameNode();
this.isFillNotch = !0;
this._nodeConnectingBg && this._nodeConnectingBg.destroy();
this._nodeConnectingBg = null;
this._isAgentRecharge = !1;
this.webView.node.active = !1;
this.webView.url = "";
c.default.setOrientation("H");
this._isIngame = !1;
};
t.prototype.createNativeButton = function(e) {
if (cc.sys.os === cc.sys.OS_IOS) jsb.reflection.callStaticMethod("NativeUIManager", "createWebViewButton:scriptStr:", "btn.png", e); else if (cc.sys.os === cc.sys.OS_ANDROID) jsb.reflection.callStaticMethod("org/cocos2dx/javascript/NativeUIManager", "createWebViewButton", "(Ljava/lang/String;Ljava/lang/String;)V", "btn.png", e); else if (cc.sys.isBrowser) {
var t = document.createElement("button");
document.getElementById("GameDiv").appendChild(t);
t.setAttribute("id", "btn");
var o = document.getElementById("btn");
o.innerHTML = d.t("BasicsJS.ReturnHall");
o.style.position = "fixed";
o.style.top = "100px";
o.style.left = "100px";
o.addEventListener("click", function() {
o.remove();
this.onBackHallFromGame();
}.bind(this));
}
};
t.prototype.addWidgetComponent = function() {
var e = this.webView.addComponent(cc.Widget);
e.isAlignTop = !0;
e.isAlignBottom = !0;
e.isAlignLeft = !0;
e.isAlignRight = !0;
this.setWebViewWidgetSize();
};
t.prototype.setWebViewWidgetSize = function() {
var e = this.webView.getComponent(cc.Widget);
if (e) {
e.top = 0;
e.bottom = 0;
e.left = 0;
e.right = 0;
if (!this.isFillNotch) {
var t = cc.view.getFrameSize();
if (Math.max(t.width, t.height) / Math.min(t.width, t.height) > 2) if (t.width > t.height) e.left = s.default.BangLength; else {
e.top = s.default.BangLength;
e.bottom = s.default.BangLength;
}
}
}
};
a([ h(cc.Prefab) ], t.prototype, "pfbConnectingLayer", void 0);
a([ h(cc.WebView) ], t.prototype, "webView", void 0);
a([ h(cc.Boolean) ], t.prototype, "isFillNotch", void 0);
return a([ p ], t);
}(cc.Component);
o.default = f;
cc._RF.pop();
}, {
"./Constant": "Constant",
"./Global": "Global",
"./NetworkLogic": "NetworkLogic",
"./Utils": "Utils",
LanguageData: "LanguageData"
} ],
WechatBindTutorial: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "2d38egSF0NNIKwblsXOMiLb", "WechatBindTutorial");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r, c = e("../../Shared/AudioManager"), s = e("./WeChatBindTutorialGroup"), l = cc._decorator, d = l.ccclass, u = l.property, p = e("LanguageData");
(function(e) {
e[e.BIND_LOCAL = 0] = "BIND_LOCAL";
e[e.BIND_SHARE = 1] = "BIND_SHARE";
})(r || (r = {}));
var h = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.className = "WeChatBindTutorial";
t.pageView = null;
t.page = null;
t.content = null;
t.labelDescriptionTitle = null;
t.labelDescriptionText = null;
t.buttonTutorialGroupActiveSpriteList = [];
t.tutorialGroup = [];
t._tutorialGroupType = r.BIND_LOCAL;
return t;
}
t.prototype.init = function(e) {
this.node.parent = e;
this.pageView.node.on("page-turning", this._onPageViewChange.bind(this), this);
this.refreshView();
};
t.prototype.refreshView = function() {
var e = this;
this.pageView.removeAllPages();
var t = this._getTutorialGroupItem();
this.buttonTutorialGroupActiveSpriteList.forEach(function(t, o) {
t.node.active = o === e._tutorialGroupType;
});
this.labelDescriptionTitle.string = p.t(t.groupTitle);
t.groupItemList.forEach(function(t, o) {
var n = cc.instantiate(e.page);
n.getChildByName("logo").active = !1;
n.getComponent(cc.Sprite).spriteFrame = t.tutorialSpriteFrame;
n.active = !0;
e.pageView.addPage(n);
e.pageView.setCurrentPageIndex(o);
});
this._updatePageViewIndex(0);
};
t.prototype.onToggleGroupType = function(e, t) {
var o = parseInt(t, 10);
switch (o) {
case r.BIND_LOCAL:
case r.BIND_SHARE:
c.default.playSound("toggle");
if (this._tutorialGroupType !== o) {
this._tutorialGroupType = o;
this.refreshView();
}
}
};
t.prototype.onBtnClick = function(e, t) {
var o = this;
switch (t) {
case "left":
n = (n = this.pageView.getCurrentPageIndex() - 1) < 0 ? 0 : n;
this._updatePageViewIndex(n);
break;

case "right":
var n;
(n = this.pageView.getCurrentPageIndex() + 1) > this.pageView.getPages().length - 1 && (n = this.pageView.getPages().length - 1);
this._updatePageViewIndex(n);
break;

case "close":
c.default.playSound("close");
this.node.stopAllActions();
this.node.runAction(cc.sequence(cc.fadeOut(.2), cc.callFunc(function() {
o.reset();
o.node.destroy();
})));
}
};
t.prototype.reset = function() {
this.pageView.node.off("page-turning", this._onPageViewChange.bind(this), this);
this.node.stopAllActions();
this.node.opacity = 255;
};
t.prototype._onPageViewChange = function(e) {
this._updatePageViewIndex(e.getCurrentPageIndex());
};
t.prototype._updatePageViewIndex = function(e) {
if (!(e < 0)) {
var t = this._getTutorialGroupItem(), o = e + 1;
this.labelDescriptionText.string = o + ". " + p.t(t.groupItemList[e].labelText);
this.pageView.scrollToPage(e, .3);
}
};
t.prototype._getTutorialGroupItem = function() {
return this.tutorialGroup[this._tutorialGroupType];
};
a([ u(cc.PageView) ], t.prototype, "pageView", void 0);
a([ u(cc.Node) ], t.prototype, "page", void 0);
a([ u(cc.Node) ], t.prototype, "content", void 0);
a([ u(cc.Label) ], t.prototype, "labelDescriptionTitle", void 0);
a([ u(cc.Label) ], t.prototype, "labelDescriptionText", void 0);
a([ u([ cc.Sprite ]) ], t.prototype, "buttonTutorialGroupActiveSpriteList", void 0);
a([ u([ s.default ]) ], t.prototype, "tutorialGroup", void 0);
return a([ d ], t);
}(cc.Component);
o.default = h;
cc._RF.pop();
}, {
"../../Shared/AudioManager": "AudioManager",
"./WeChatBindTutorialGroup": "WeChatBindTutorialGroup",
LanguageData: "LanguageData"
} ],
WechatNoticeData: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "d0ac90bQc1PDY2OY50nkD2o", "WechatNoticeData");
Object.defineProperty(o, "__esModule", {
value: !0
});
var n = e("../../Shared/NetworkLogic"), i = function() {
function e() {
this.wechatData = null;
}
e.prototype.getWechatData = function() {
var e = this;
return new Promise(function(t) {
n.default.wechatNotice({}, function(e) {
t(e);
}.bind(e), function() {
t(null);
});
});
};
return e;
}();
o.default = new i();
cc._RF.pop();
}, {
"../../Shared/NetworkLogic": "NetworkLogic"
} ],
WechatNotice: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "1a95ezKiktEXqsfenps+Ofl", "WechatNotice");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/NetworkLogic"), c = e("../../Shared/AudioManager"), s = e("../../Shared/PopWindowManager"), l = cc._decorator, d = l.ccclass, u = l.property, p = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.labMoney = null;
t.labMoney1 = null;
return t;
}
t.prototype.start = function() {
r.default.wechatNotice({}, function(e) {
cc.log("===wechatNotice rec:", e);
if (e.bOpen) {
this.labMoney.string = e.activityMoney;
this.labMoney1.string = e.activityMoney;
}
}.bind(this), function() {});
};
t.prototype.onBtnClose = function(e) {
void 0 === e && (e = !0);
e && c.default.playSound("close");
s.default.openNext();
this.node.destroy();
};
t.prototype.onBtnYes = function() {
c.default.playSound("button");
cc.find("Canvas/gameNode").getComponent("HallUI").onBtnClick(null, "tuiguang");
this.node.destroy();
};
a([ u(cc.Label) ], t.prototype, "labMoney", void 0);
a([ u(cc.Label) ], t.prototype, "labMoney1", void 0);
return a([ d ], t);
}(cc.Component);
o.default = p;
cc._RF.pop();
}, {
"../../Shared/AudioManager": "AudioManager",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/PopWindowManager": "PopWindowManager"
} ],
WithdrawUI: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "a8ab5lBrelBk4jDpAgs5VDR", "WithdrawUI");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../Withdrawal/SelfHelpWithdrawalLayer"), c = e("../Withdrawal/WithdrawalRecordLayer"), s = e("../Withdrawal/WalletManagerLayer"), l = e("../../Shared/Constant"), d = e("../../Shared/Utils"), u = e("../../Common/ToggleItem"), p = e("../../Shared/AudioManager"), h = e("../../Shared/EnterSoundManager"), f = e("../../Models/Player"), g = e("../../Shared/UIManager"), y = e("../../Shared/Global"), m = e("../../Common/CommonToggleContainer"), v = e("LanguageData"), b = cc._decorator, _ = b.ccclass, S = b.property, C = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.selfHelpWithdrawalLayer = null;
t.withdrawalRecordLayer = null;
t.walletManagerLayer = null;
t.wgtNode = null;
t.commonToggleContainer = null;
t.walletToggle = null;
t._chargeTypelist = [];
return t;
}
t.prototype.onLoad = function() {
this.selfHelpWithdrawalLayer.node.active = !1;
this.withdrawalRecordLayer.node.active = !1;
this.walletManagerLayer.node.active = !1;
};
t.prototype.start = function() {
cc.winSize.width / cc.winSize.height > 2 && (this.wgtNode.left += l.default.BangLength);
d.default.hideGameNode();
h.default.playSound("enter_tixian");
2 === f.default.getPy("userType") && g.default.showToastUI(v.t("vistor_toast"), y.Global.ToastType.Warnning);
};
t.prototype.onDestroy = function() {};
t.prototype.onBtnClick = function(e, t) {
if ("back" === t) {
p.default.playSound("close");
d.default.showGameNode();
this.node.destroy();
}
};
t.prototype.onToggleSelected = function(e) {
if ("self" === e.userData) {
this.selfHelpWithdrawalLayer.node.active = !0;
this.withdrawalRecordLayer.node.active = !1;
this.walletManagerLayer.node.active = !1;
} else if ("record" === e.userData) {
this.selfHelpWithdrawalLayer.node.active = !1;
this.withdrawalRecordLayer.node.active = !0;
this.walletManagerLayer.node.active = !1;
} else if ("wallet" === e.userData) {
this.selfHelpWithdrawalLayer.node.active = !1;
this.withdrawalRecordLayer.node.active = !1;
this.walletManagerLayer.node.active = !0;
}
};
a([ S(r.default) ], t.prototype, "selfHelpWithdrawalLayer", void 0);
a([ S(c.default) ], t.prototype, "withdrawalRecordLayer", void 0);
a([ S(s.default) ], t.prototype, "walletManagerLayer", void 0);
a([ S(cc.Widget) ], t.prototype, "wgtNode", void 0);
a([ S(m.default) ], t.prototype, "commonToggleContainer", void 0);
a([ S(u.default) ], t.prototype, "walletToggle", void 0);
return a([ _ ], t);
}(cc.Component);
o.default = C;
cc._RF.pop();
}, {
"../../Common/CommonToggleContainer": "CommonToggleContainer",
"../../Common/ToggleItem": "ToggleItem",
"../../Models/Player": "Player",
"../../Shared/AudioManager": "AudioManager",
"../../Shared/Constant": "Constant",
"../../Shared/EnterSoundManager": "EnterSoundManager",
"../../Shared/Global": "Global",
"../../Shared/UIManager": "UIManager",
"../../Shared/Utils": "Utils",
"../Withdrawal/SelfHelpWithdrawalLayer": "SelfHelpWithdrawalLayer",
"../Withdrawal/WalletManagerLayer": "WalletManagerLayer",
"../Withdrawal/WithdrawalRecordLayer": "WithdrawalRecordLayer",
LanguageData: "LanguageData"
} ],
WithdrawalRecordLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "00c73KI6eNPboEeTXfG19QH", "WithdrawalRecordLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("./IWithdrawalLayer"), c = e("../../Shared/NetworkLogic"), s = e("../../Models/Player"), l = e("LanguageData"), d = cc._decorator, u = d.ccclass, p = d.property, h = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.lytContent = null;
t.nodeTemplateItem = null;
t.nodeEmpty = null;
return t;
}
t.prototype.onLoad = function() {
this.nodeTemplateItem.parent = null;
this.nodeEmpty.active = !1;
};
t.prototype.start = function() {
c.default.getWithdrawList(1, 1e3, 5, function(e) {
if (e.length > 0) {
this.nodeEmpty.active = !1;
this.createItems(e);
} else this.nodeEmpty.active = !0;
}.bind(this));
};
t.prototype.onDestroy = function() {
this.nodeTemplateItem.destroy();
};
t.prototype.createItems = function(e) {
var t = this;
e.forEach(function(e) {
var o = cc.instantiate(t.nodeTemplateItem);
o.parent = t.lytContent.node;
o.msgData = e;
o.getChildByName("time").getComponent(cc.Label).string = e.timeCreated;
o.getChildByName("money").getComponent(cc.Label).string = (s.default.getPy("currencySymbol") ? s.default.getPy("currencySymbol") : l.t("currency_symbol")) + e.changeCoin;
o.getChildByName("state").getComponent(cc.Label).string = e.flagName;
o.getChildByName("info").getComponent(cc.Label).string = e.opRemark;
});
};
a([ p(cc.Layout) ], t.prototype, "lytContent", void 0);
a([ p(cc.Node) ], t.prototype, "nodeTemplateItem", void 0);
a([ p(cc.Node) ], t.prototype, "nodeEmpty", void 0);
return a([ u ], t);
}(r.default);
o.default = h;
cc._RF.pop();
}, {
"../../Models/Player": "Player",
"../../Shared/NetworkLogic": "NetworkLogic",
"./IWithdrawalLayer": "IWithdrawalLayer",
LanguageData: "LanguageData"
} ],
XiMaBiLi: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "2f8d3bEKTNGJ5X5MfjroC+O", "XiMaBiLi");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
}, r = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, c = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var s = e("../../Shared/NetworkLogic"), l = e("../../Shared/UIManager"), d = e("../../Shared/AudioManager"), u = e("../../Models/Player"), p = e("LanguageData"), h = cc._decorator, f = h.ccclass, g = h.property, y = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.ratDetail = null;
t.sp1 = null;
t.sp2 = null;
t.togContent = null;
t.titleItem = null;
t.item = null;
t.content = null;
t.data = [];
t.childDataArr = [];
t.tempPlatformGameType = 0;
t.infoDtos = null;
return t;
}
t.prototype.onLoad = function() {};
t.prototype.start = function() {
return r(this, void 0, void 0, function() {
var e;
return c(this, function(t) {
switch (t.label) {
case 0:
if (this.infoDtos) return [ 3, 2 ];
e = this;
return [ 4, this.getInfo() ];

case 1:
e.infoDtos = t.sent();
t.label = 2;

case 2:
this.infoDtos && this.updateUI(this.infoDtos);
return [ 2 ];
}
});
});
};
t.prototype.getInfo = function() {
var e = this;
return new Promise(function(t) {
l.default.showLoadingUI();
s.default.ximaInfo(function(e) {
l.default.hideLoadingUI();
var o = e.washCodeTypeInfoDtos;
t(o);
}.bind(e), function() {
l.default.hideLoadingUI();
console.log("rich=== ximaZZXM请求失败");
t(null);
});
});
};
t.prototype.updateUI = function(e) {
this.data = [];
for (var t = 0; t < e.length; t++) {
var o = {
gameTypeName: "",
platformGameType: 0,
childGameList: []
};
if (2 === e[t].gameTypeId) {
var n = e[t].gameInfoLists;
o.gameTypeName = e[t].gameTypeName;
for (var i = {
gameTypeName: p.t("XimaLayer.eSports_game"),
platformGameType: 3,
childGameList: []
}, a = 0; a < n.length; a++) if (6 === n[a].gameTypeId) {
o.platformGameType = n[a].gameTypeId;
o.childGameList.push({
gameName: n[a].gameName,
platformGameType: n[a].gameTypeId,
platform: n[a].platform
});
} else {
i.platformGameType = n[a].gameTypeId;
i.childGameList.push({
gameName: n[a].gameName,
platformGameType: n[a].gameTypeId,
platform: n[a].platform
});
}
this.data.push(i);
} else {
n = e[t].gameInfoLists;
o.gameTypeName = e[t].gameTypeName;
for (a = 0; a < n.length; a++) {
o.platformGameType = n[a].gameTypeId;
o.childGameList.push({
gameName: n[a].gameName,
platformGameType: n[a].gameTypeId,
platform: n[a].platform,
id: n[a].id
});
}
}
this.data.push(o);
}
for (t = 0; t < this.data.length; t++) {
var r = null;
(r = t < this.togContent.toggleItems.length ? this.togContent.toggleItems[t] : cc.instantiate(this.titleItem).getComponent(cc.Toggle)).node.parent = this.togContent.node;
r.node.getChildByName("title_label").getComponent(cc.Label).string = this.data[t].gameTypeName;
r.checkEvents[0].customEventData = this.data[t].platformGameType;
r.node.active = !0;
}
this.onToggleSlicked(null, this.data[0].platformGameType);
};
t.prototype.onBtnDetails = function(e, t) {
d.default.playSound("button");
this.ratDetail.active = !0;
var o = this.childDataArr[this.tempPlatformGameType][parseInt(t)].rec;
this.ratDetail.getComponent("RatDetails").updateUI(o);
};
t.prototype.onToggleSlicked = function(e, t) {
return r(this, void 0, void 0, function() {
var e, o, n, i, a;
return c(this, function(r) {
switch (r.label) {
case 0:
d.default.playSound("toggle");
this.tempPlatformGameType = parseInt(t);
e = null;
for (a = 0; a < this.data.length; a++) if (this.data[a].platformGameType === parseInt(t)) {
e = this.data[a].childGameList;
break;
}
o = [];
if (this.childDataArr[parseInt(t)]) return [ 3, 2 ];
n = {
platformGameType: t
};
return [ 4, this.getRec(n) ];

case 1:
i = r.sent();
if (2 == t) for (a = 0; a < e.length; a++) o.push({
gameName: e[a].gameName,
rec: i[e[a].id]
}); else for (a = 0; a < e.length; a++) o.push({
gameName: e[a].gameName,
rec: i[e[a].platform]
});
this.childDataArr[parseInt(t)] = o;
return [ 3, 3 ];

case 2:
o = this.childDataArr[parseInt(t)];
r.label = 3;

case 3:
this.showItem(o);
return [ 2 ];
}
});
});
};
t.prototype.showItem = function(e) {
if (this.content.children.length > e.length) for (var t = e.length; t < this.content.children.length; t++) this.content.children[t].active = !1;
var o = null;
for (t = 0; t < e.length; t++) {
(o = t < this.content.children.length ? this.content.children[t] : cc.instantiate(this.item)).parent = this.content;
o.getChildByName("bg").getComponent(cc.Sprite).spriteFrame = t % 2 == 0 ? this.sp1 : this.sp2;
o.getChildByName("labName").getComponent(cc.Label).string = e[t].gameName;
o.getChildByName("labSum").getComponent(cc.Label).string = this.getSum(e[t].rec)[0].toString();
o.getChildByName("labRat").getComponent(cc.Label).string = this.getSum(e[t].rec)[1].toString();
o.getChildByName("btn").getComponent(cc.Button).clickEvents[0].customEventData = t.toString();
o.active = !0;
}
};
t.prototype.getSum = function(e) {
var t = 0, o = 0, n = 0, i = 0;
for (var a in e) {
for (var r = e[a], c = 0; c < r.length; c++) {
n = r[0].wcPercent;
i = r[0].wcPercent;
o = (s = r[c].wcMoneyScope.split(","))[0];
t = s[1];
break;
}
break;
}
for (var a in e) {
for (r = e[a], c = 0; c < r.length; c++) {
var s = r[c].wcMoneyScope.split(","), l = parseInt(s[0]), d = parseInt(s[1]);
o = l < o ? l : o;
t = d > t ? d : t;
}
for (c = 0; c < r.length; c++) {
n <= r[c].wcPercent && (n = r[c].wcPercent);
i >= r[c].wcPercent && (i = r[c].wcPercent);
}
}
return [ (u.default.getPy("currencySymbol") ? u.default.getPy("currencySymbol") : p.t("currency_symbol")) + o + "-" + (u.default.getPy("currencySymbol") ? u.default.getPy("currencySymbol") : p.t("currency_symbol")) + t, i + "%-" + n + "%" ];
};
t.prototype.getRec = function(e) {
var t = this;
l.default.showLoadingUI();
return new Promise(function(o) {
s.default.ximaVippercentset(e, function(e) {
cc.log("===getRat rec:", e);
l.default.hideLoadingUI();
o(e);
}.bind(t), function() {
l.default.hideLoadingUI();
o(null);
}.bind(t));
});
};
t.prototype.onDestroy = function() {};
a([ g(cc.Node) ], t.prototype, "ratDetail", void 0);
a([ g(cc.SpriteFrame) ], t.prototype, "sp1", void 0);
a([ g(cc.SpriteFrame) ], t.prototype, "sp2", void 0);
a([ g(cc.ToggleContainer) ], t.prototype, "togContent", void 0);
a([ g(cc.Node) ], t.prototype, "titleItem", void 0);
a([ g(cc.Node) ], t.prototype, "item", void 0);
a([ g(cc.Node) ], t.prototype, "content", void 0);
return a([ f ], t);
}(cc.Component);
o.default = y;
cc._RF.pop();
}, {
"../../Models/Player": "Player",
"../../Shared/AudioManager": "AudioManager",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
LanguageData: "LanguageData"
} ],
XiMaJiLu: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "95bb0ODNv9H4oEAu4jBtKv/", "XiMaJiLu");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/NetworkLogic"), c = e("../../Shared/UIManager"), s = e("../../Shared/Utils"), l = e("../../Shared/AudioManager"), d = cc._decorator, u = d.ccclass, p = d.property, h = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.sp1 = null;
t.sp2 = null;
t.emptyNode = null;
t.contentNode = null;
t.itemNode = null;
t.pfbXimaDetails = null;
t.bPlayAction = !1;
return t;
}
t.prototype.onLoad = function() {
this.emptyNode.active = !1;
this.contentNode.active = !1;
console.log("=====onLoad");
r.default.ximaRecord(function(e) {
c.default.hideLoadingUI();
if (!e || e.length <= 0) this.emptyNode.active = !0; else {
for (var t = 0; t < e.length; t++) {
var o = cc.instantiate(this.itemNode);
o.parent = this.contentNode;
o.getChildByName("spBg").getComponent(cc.Sprite).spriteFrame = t % 2 == 0 ? this.sp1 : this.sp2;
o.getChildByName("labTime").getComponent(cc.Label).string = e[t].washCodeTime;
o.getChildByName("labTotal").getComponent(cc.Label).string = e[t].washCodeDml.toFixed(2);
o.getChildByName("labMoney").getComponent(cc.Label).string = e[t].washCodeMoney.toFixed(2);
o.getChildByName("btnChaKan").getComponent(cc.Button).clickEvents[0].customEventData = e[t].wcdId;
o.active = !0;
o.width = o.parent.parent.width;
}
this.contentNode.active = !0;
s.default.actionShowContent(this.contentNode);
this.bPlayAction = !0;
}
console.log("rich=== Record:", e);
}.bind(this), function() {
console.log("rich=== ximaZZXM请求失败");
});
};
t.prototype.onEnable = function() {
console.log("=====OnEnable");
this.bPlayAction && s.default.actionShowContent(this.contentNode);
};
t.prototype.start = function() {};
t.prototype.onBtnClick = function(e, t) {
l.default.playSound("button");
var o = {
gameTypeId: 2,
wcdId: parseInt(t)
};
console.log("====点击详情");
c.default.showLoadingUI();
r.default.ximaWashCodeDetail(o, function(e) {
c.default.hideLoadingUI();
console.log("====洗码详情 data:", e);
var t = cc.instantiate(this.pfbXimaDetails);
t.parent = this.node.parent.parent;
t.active = !0;
t.getComponent("XimaDetails").data = e;
}.bind(this), function() {
console.log("===洗码记录失败");
}.bind(this));
};
a([ p(cc.SpriteFrame) ], t.prototype, "sp1", void 0);
a([ p(cc.SpriteFrame) ], t.prototype, "sp2", void 0);
a([ p(cc.Node) ], t.prototype, "emptyNode", void 0);
a([ p(cc.Node) ], t.prototype, "contentNode", void 0);
a([ p(cc.Node) ], t.prototype, "itemNode", void 0);
a([ p(cc.Prefab) ], t.prototype, "pfbXimaDetails", void 0);
return a([ u ], t);
}(cc.Component);
o.default = h;
cc._RF.pop();
}, {
"../../Shared/AudioManager": "AudioManager",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
"../../Shared/Utils": "Utils"
} ],
XimaDetails: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "30feajhW/xLWYnBQtZqifJl", "XimaDetails");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/AudioManager"), c = e("../../Models/Player"), s = e("LanguageData"), l = cc._decorator, d = l.ccclass, u = l.property, p = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.sp1 = null;
t.sp2 = null;
t.item = null;
t.contentNode = null;
t.toggleContainer = null;
t.data = null;
return t;
}
t.prototype.onLoad = function() {
console.log("===进入details onLoad");
this.node.setScale(.1);
this.node.opacity = 50;
this.contentNode.active = !1;
};
t.prototype.start = function() {
this.node.active = !0;
this.node.runAction(cc.sequence(cc.spawn(cc.scaleTo(.2, 1).easing(cc.easeSineOut()), cc.fadeIn(.2).easing(cc.easeSineOut())), cc.callFunc(function() {
this.onToggleSelected(null, "5", !1);
}.bind(this))));
};
t.prototype.onEnable = function() {
console.log("===进入details start");
};
t.prototype.onBtnClick = function(e, t) {
r.default.playSound("close");
if ("close" === t) {
r.default.playSound("close");
this.node.destroy();
}
};
t.prototype.onToggleSelected = function(e, t, o) {
void 0 === o && (o = !0);
o && r.default.playSound("toggle");
for (var n = parseInt(t), i = 0; i < this.data.length; i++) {
var a = this.data[i];
if (n === a.gameTypeId) {
for (var l = a.gameInfoLists, d = this.contentNode.children, u = 0; u < l.length; u++) {
var p = l[u], h = null;
(h = u < d.length ? d[u] : cc.instantiate(this.item)).parent = this.contentNode;
h.active = !0;
h.getChildByName("sprite").getComponent(cc.Sprite).spriteFrame = u % 2 == 0 ? this.sp1 : this.sp2;
h.getChildByName("labName").getComponent(cc.Label).string = p.gameName;
h.getChildByName("labCode").getComponent(cc.Label).string = (c.default.getPy("currencySymbol") ? c.default.getPy("currencySymbol") : s.t("currency_symbol")) + p.gameWashCodeDml.toFixed(2);
h.getChildByName("labRat").getComponent(cc.Label).string = p.washCodeProportion.toFixed(2) + "%";
h.getChildByName("labMoney").getComponent(cc.Label).string = (c.default.getPy("currencySymbol") ? c.default.getPy("currencySymbol") : s.t("currency_symbol")) + p.washCodeMoney.toFixed(2);
}
if (d.length > l.length) for (var f = l.length; f < d.length; f++) d[f].active = !1;
this.contentNode.active = !0;
break;
}
}
this.node.active = !0;
};
a([ u(cc.SpriteFrame) ], t.prototype, "sp1", void 0);
a([ u(cc.SpriteFrame) ], t.prototype, "sp2", void 0);
a([ u(cc.Node) ], t.prototype, "item", void 0);
a([ u(cc.Node) ], t.prototype, "contentNode", void 0);
a([ u(cc.ToggleContainer) ], t.prototype, "toggleContainer", void 0);
return a([ d ], t);
}(cc.Component);
o.default = p;
cc._RF.pop();
}, {
"../../Models/Player": "Player",
"../../Shared/AudioManager": "AudioManager",
LanguageData: "LanguageData"
} ],
XimaLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "cad55Z/4tNAvbBG9iO+QTih", "XimaLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/Utils"), c = e("../../Shared/AudioManager"), s = e("../../Shared/EnterSoundManager"), l = e("../../Shared/Constant"), d = cc._decorator, u = d.ccclass, p = d.property, h = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.toggleContainer = null;
t.wgtNode = null;
t.nodeZiZhuXiMa = null;
t.nodeXiMaJiLu = null;
t.nodeXiMaBili = null;
return t;
}
t.prototype.onLoad = function() {
cc.winSize.width / cc.winSize.height > 2 && (this.wgtNode.left += l.default.BangLength);
this.node.active = !0;
this.nodeZiZhuXiMa.active = !0;
this.nodeXiMaJiLu.active = !1;
this.nodeXiMaBili.active = !1;
r.default.hideGameNode();
};
t.prototype.start = function() {
s.default.playSound("enter_xima");
};
t.prototype.onEnable = function() {
this.node.getComponent(cc.Animation).play("enter_xima");
};
t.prototype.onBtnClick = function(e, t) {
if ("back" === t) {
console.log("rich=== 点击返回按钮");
c.default.playSound("close");
r.default.showGameNode();
this.node.destroy();
}
};
t.prototype.onToggleSelected = function(e, t) {
c.default.playSound("toggle");
if ("zizhuxima" === t) {
this.nodeZiZhuXiMa.active = !0;
this.nodeXiMaJiLu.active = !1;
this.nodeXiMaBili.active = !1;
} else if ("ximajilu" === t) {
this.nodeZiZhuXiMa.active = !1;
this.nodeXiMaJiLu.active = !0;
this.nodeXiMaBili.active = !1;
} else if ("ximabili" === t) {
this.nodeZiZhuXiMa.active = !1;
this.nodeXiMaJiLu.active = !1;
this.nodeXiMaBili.active = !0;
}
};
a([ p(cc.ToggleContainer) ], t.prototype, "toggleContainer", void 0);
a([ p(cc.Widget) ], t.prototype, "wgtNode", void 0);
a([ p(cc.Node) ], t.prototype, "nodeZiZhuXiMa", void 0);
a([ p(cc.Node) ], t.prototype, "nodeXiMaJiLu", void 0);
a([ p(cc.Node) ], t.prototype, "nodeXiMaBili", void 0);
return a([ u ], t);
}(cc.Component);
o.default = h;
cc._RF.pop();
}, {
"../../Shared/AudioManager": "AudioManager",
"../../Shared/Constant": "Constant",
"../../Shared/EnterSoundManager": "EnterSoundManager",
"../../Shared/Utils": "Utils"
} ],
YinShangAccount: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "d35c3LZHKlPbIHaKbNI14W8", "YinShangAccount");
var n = this && this.__awaiter || function(e, t, o, n) {
return new (o || (o = Promise))(function(i, a) {
function r(e) {
try {
s(n.next(e));
} catch (e) {
a(e);
}
}
function c(e) {
try {
s(n.throw(e));
} catch (e) {
a(e);
}
}
function s(e) {
e.done ? i(e.value) : (t = e.value, t instanceof o ? t : new o(function(e) {
e(t);
})).then(r, c);
var t;
}
s((n = n.apply(e, t || [])).next());
});
}, i = this && this.__generator || function(e, t) {
var o, n, i, a, r = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return a = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function c(e) {
return function(t) {
return s([ e, t ]);
};
}
function s(a) {
if (o) throw new TypeError("Generator is already executing.");
for (;r; ) try {
if (o = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 
0) : n.next) && !(i = i.call(n, a[1])).done) return i;
(n = 0, i) && (a = [ 2 & a[0], i.value ]);
switch (a[0]) {
case 0:
case 1:
i = a;
break;

case 4:
r.label++;
return {
value: a[1],
done: !1
};

case 5:
r.label++;
n = a[1];
a = [ 0 ];
continue;

case 7:
a = r.ops.pop();
r.trys.pop();
continue;

default:
if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
r = 0;
continue;
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
r.label = a[1];
break;
}
if (6 === a[0] && r.label < i[1]) {
r.label = i[1];
i = a;
break;
}
if (i && r.label < i[2]) {
r.label = i[2];
r.ops.push(a);
break;
}
i[2] && r.ops.pop();
r.trys.pop();
continue;
}
a = t.call(e, r);
} catch (e) {
a = [ 6, e ];
n = 0;
} finally {
o = i = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var a = e("../Shared/NetworkLogic"), r = e("../Shared/UIManager"), c = function() {
function e() {
this._serverData = null;
}
e.prototype.getYinShangAccount = function() {
return n(this, void 0, void 0, function() {
var e;
return i(this, function(t) {
switch (t.label) {
case 0:
if (this._serverData) return [ 3, 2 ];
e = this;
return [ 4, this._getYinShangAccount() ];

case 1:
e._serverData = t.sent();
t.label = 2;

case 2:
return [ 2, this._serverData ];
}
});
});
};
e.prototype._getYinShangAccount = function() {
var e = this;
return new Promise(function(t) {
r.default.showLoadingUI();
a.default.addYinShangAccount(function(e) {
r.default.hideLoadingUI();
t(e);
}.bind(e), function() {
r.default.hideLoadingUI();
t(null);
});
});
};
return e;
}();
o.default = new c();
cc._RF.pop();
}, {
"../Shared/NetworkLogic": "NetworkLogic",
"../Shared/UIManager": "UIManager"
} ],
YueBaoDetail: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "a2b24DOWGZEgpSvjawZyck1", "YueBaoDetail");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/NetworkLogic"), c = e("../../Shared/UIManager"), s = cc._decorator, l = s.ccclass, d = s.property, u = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.item = null;
t.content = null;
t.sp1 = null;
t.sp2 = null;
return t;
}
t.prototype.onEnable = function() {
var e = this;
c.default.showLoadingUI();
r.default.getYuebaoRecord(function(t) {
c.default.hideLoadingUI();
e.updateUI(t);
}, function() {
c.default.hideLoadingUI();
});
};
t.prototype.updateUI = function(e) {
if (this.content.children.length > e.length) for (var t = e.length; t < this.content.children.length; t++) this.content.children[t].active = !1;
var o = null;
for (t = 0; t < e.length; t++) {
(o = this.content.children.length > t ? this.content.children[t] : cc.instantiate(this.item)).active = !0;
o.getChildByName("bg").getComponent(cc.Sprite).spriteFrame = t % 2 == 0 ? this.sp1 : this.sp2;
o.getChildByName("labTime").getComponent(cc.Label).string = e[t].createTime;
o.getChildByName("labSum").getComponent(cc.Label).string = e[t].changeMoney;
o.getChildByName("labLeft").getComponent(cc.Label).string = e[t].changeBalance;
var n = "";
1 == e[t].accountChange ? n = "转入" : 2 == e[t].accountChange ? n = "转出" : 3 == e[t].accountChange && (n = "利息");
o.getChildByName("labRate").getComponent(cc.Label).string = n;
o.parent = this.content;
o.active = !0;
}
};
a([ d(cc.Node) ], t.prototype, "item", void 0);
a([ d(cc.Node) ], t.prototype, "content", void 0);
a([ d(cc.SpriteFrame) ], t.prototype, "sp1", void 0);
a([ d(cc.SpriteFrame) ], t.prototype, "sp2", void 0);
return a([ l ], t);
}(cc.Component);
o.default = u;
cc._RF.pop();
}, {
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager"
} ],
YueBaoInstruction: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "d96cfnTrQpMJq3HqWdWbp4c", "YueBaoInstruction");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/NetworkLogic"), c = e("../../Shared/UIManager"), s = cc._decorator, l = s.ccclass, d = s.property, u = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.item = null;
t.vipItem = null;
t.vipContent = null;
t.content = null;
t.sp1 = null;
t.sp2 = null;
t._vipButton = [];
t._data = void 0;
t._currentVip = void 0;
return t;
}
t.prototype.play = function() {
var e = this, t = function() {
var t = e._data;
if (void 0 === e._currentVip && t.length > 0) {
e._currentVip = +t[0].vipId;
e.onVipClick(void 0, e._currentVip);
}
};
if (void 0 === this._data) {
c.default.showLoadingUI();
r.default.getYuebaoConfig(function(o) {
c.default.hideLoadingUI();
e._data = o;
e.generateVipButtn();
t();
}, function() {});
} else t();
};
t.prototype.generateVipButtn = function() {
for (var e = this._data, t = 0; t < e.length; t++) if (void 0 === this._vipButton[e[t].vipId]) {
var o = void 0;
if (0 === this._vipButton.length) {
o = this.vipContent.children[t].getComponent(cc.Button);
cc.log("existing vip icon" + e[t].vipId);
} else {
(o = cc.instantiate(this.vipItem).getComponent(cc.Button)).node.parent = this.vipContent;
o.node.active = !0;
o.interactable = !0;
cc.log("new add vip icon" + e[t].vipId);
}
var n = new cc.Component.EventHandler();
n.target = this.node;
n.component = "YueBaoInstruction";
n.handler = "onVipClick";
n.customEventData = e[t].vipId;
o.clickEvents = [];
o.clickEvents.push(n);
this._vipButton[e[t].vipId] = o;
o.node.getChildByName("vip_label").getComponent(cc.Label).string = "VIP " + e[t].vipId;
}
};
t.prototype.onVipClick = function(e, t) {
this._currentVip = t;
this._vipButton.forEach(function(e, o) {
return e.interactable = o !== t;
});
this.updateUI(this._currentVip);
};
t.prototype.updateUI = function(e) {
var t = this._data;
if (this.content.children.length > t.length) for (var o = t.length; o < this.content.children.length; o++) this.content.children[o].active = !1;
var n = null, i = t.filter(function(t) {
return t.vipId === e;
});
this.content.removeAllChildren();
for (o = 0; o < i.length; o++) {
(n = this.content.children.length > o ? this.content.children[o] : cc.instantiate(this.item)).getChildByName("bg").getComponent(cc.Sprite).spriteFrame = o % 2 == 0 ? this.sp1 : this.sp2;
n.getChildByName("labRank").getComponent(cc.Label).string = "¥" + i[o].amountStart + "-" + i[o].amountEnd;
n.getChildByName("labRate").getComponent(cc.Label).string = i[o].interestRatio + "%";
n.getChildByName("labCondition").getComponent(cc.Label).string = i[o].interestTerms;
n.parent = this.content;
n.active = !0;
}
};
t.prototype.onBtnClose = function() {
this._currentVip = void 0;
this.node.active = !1;
};
t.prototype.onDestroy = function() {
this._vipButton.forEach(function(e) {
return e.destroy();
});
this._vipButton = void 0;
this._currentVip = void 0;
this._data = void 0;
};
a([ d(cc.Node) ], t.prototype, "item", void 0);
a([ d(cc.Node) ], t.prototype, "vipItem", void 0);
a([ d(cc.Node) ], t.prototype, "vipContent", void 0);
a([ d(cc.Node) ], t.prototype, "content", void 0);
a([ d(cc.SpriteFrame) ], t.prototype, "sp1", void 0);
a([ d(cc.SpriteFrame) ], t.prototype, "sp2", void 0);
return a([ l ], t);
}(cc.Component);
o.default = u;
cc._RF.pop();
}, {
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager"
} ],
YueBaoLayer: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "712dbhHtFlFg7GN5h7M/WDW", "YueBaoLayer");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/AudioManager"), c = e("../../Shared/Utils"), s = e("../../Shared/Constant"), l = e("./YueBaoInstruction"), d = cc._decorator, u = d.ccclass, p = d.property, h = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.wgtNode = null;
t.moveInLayer = null;
t.moveOutLayer = null;
t.detailLayer = null;
t.shuomingLayer = null;
return t;
}
t.prototype.start = function() {
this.node.getComponent(cc.Animation).play("enter_yuebao");
cc.winSize.width / cc.winSize.height > 2 && (this.wgtNode.left += s.default.BangLength);
c.default.hideGameNode();
this.moveInLayer.active = !0;
this.moveOutLayer.active = !1;
this.detailLayer.active = !1;
};
t.prototype.onToggleSelected = function(e, t) {
if ("in" === t) {
this.moveInLayer.active = !0;
this.moveOutLayer.active = !1;
this.detailLayer.active = !1;
} else if ("out" === t) {
this.moveInLayer.active = !1;
this.moveOutLayer.active = !0;
this.detailLayer.active = !1;
} else if ("detail" === t) {
this.moveInLayer.active = !1;
this.moveOutLayer.active = !1;
this.detailLayer.active = !0;
}
};
t.prototype.onBtnClick = function(e, t) {
if ("shuoming" == t) {
this.shuomingLayer.active = !0;
this.shuomingLayer.getComponent(l.default).play();
}
};
t.prototype.onBtnBack = function() {
r.default.playSound("close");
c.default.showGameNode();
this.node.destroy();
};
a([ p(cc.Widget) ], t.prototype, "wgtNode", void 0);
a([ p(cc.Node) ], t.prototype, "moveInLayer", void 0);
a([ p(cc.Node) ], t.prototype, "moveOutLayer", void 0);
a([ p(cc.Node) ], t.prototype, "detailLayer", void 0);
a([ p(cc.Node) ], t.prototype, "shuomingLayer", void 0);
return a([ u ], t);
}(cc.Component);
o.default = h;
cc._RF.pop();
}, {
"../../Shared/AudioManager": "AudioManager",
"../../Shared/Constant": "Constant",
"../../Shared/Utils": "Utils",
"./YueBaoInstruction": "YueBaoInstruction"
} ],
YueBaoMoveIn: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "cdca483dqZGlas12qzkmvSC", "YueBaoMoveIn");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Models/Player"), c = e("../../Shared/UIManager"), s = e("../../Shared/NetworkLogic"), l = cc._decorator, d = l.ccclass, u = l.property, p = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.ebMoney = null;
t.sliderMoney = null;
t.lbPercent = null;
t.lbMoneyBox = null;
t.lbMoneyPlayer = null;
t.bWitdrawInt = !0;
return t;
}
t.prototype.start = function() {
var e = this;
this.lbMoneyPlayer.string = r.default.getPy("money");
c.default.showLoadingUI();
s.default.getYuebaoBalance(function(t) {
c.default.hideLoadingUI();
e.lbMoneyBox.string = t;
}, function() {
c.default.hideLoadingUI();
});
};
t.prototype.onEnable = function() {
var e = this;
this.lbMoneyPlayer.string = r.default.getPy("money");
c.default.showLoadingUI();
s.default.getYuebaoBalance(function(t) {
c.default.hideLoadingUI();
e.lbMoneyBox.string = t;
}, function() {
c.default.hideLoadingUI();
});
this.setSliderProgress(0);
};
t.prototype.setSliderProgress = function(e) {
this.sliderMoney.progress = e;
this.lbPercent.string = Math.round(100 * e).toString() + "%";
};
t.prototype.onTextChanged = function() {
this.ebMoney.string = Math.max(0, Math.min(r.default.getPy("money"), parseFloat(this.ebMoney.string) || 0)).toString();
this.ebMoney.string = parseInt(this.ebMoney.string).toString();
this.setSliderProgress(0 === r.default.getPy("money") ? 0 : parseInt(this.ebMoney.string) / r.default.getPy("money"));
};
t.prototype.onSlider = function() {
var e = this.sliderMoney.progress;
this.lbPercent.string = Math.round(100 * e).toString() + "%";
this.ebMoney.string = (r.default.getPy("money") * e).toFixed(0);
"0" === this.ebMoney.string && (this.ebMoney.string = "");
};
t.prototype.onBtnClick = function(e, t) {
var o = this;
if ("clear" === t) {
this.setSliderProgress(0);
this.onSlider();
} else if ("max" === t) {
this.setSliderProgress(1);
this.onSlider();
} else if ("confirm" === t) {
cc.log("===点击确认");
if ("0" === this.ebMoney.string || "" === this.ebMoney.string || !/^[0-9]+.?[0-9]*$/.test(this.ebMoney.string)) {
c.default.showToastUI("请输入正确的金额");
return;
}
var n = {
money: this.ebMoney.string
};
c.default.showLoadingUI();
s.default.transferInYuebao(n, function(e) {
o.lbMoneyBox.string = e;
s.default.lowerScore(0, function(e) {
c.default.hideLoadingUI();
r.default.setPy("money", e);
this.lbMoneyPlayer.string = r.default.getPy("money");
c.default.showToastUI("转入成功");
this.ebMoney.string = "";
this.setSliderProgress(0);
}.bind(o), function() {}.bind(o));
}, function() {});
}
};
a([ u(cc.EditBox) ], t.prototype, "ebMoney", void 0);
a([ u(cc.Slider) ], t.prototype, "sliderMoney", void 0);
a([ u(cc.Label) ], t.prototype, "lbPercent", void 0);
a([ u(cc.Label) ], t.prototype, "lbMoneyBox", void 0);
a([ u(cc.Label) ], t.prototype, "lbMoneyPlayer", void 0);
return a([ d ], t);
}(cc.Component);
o.default = p;
cc._RF.pop();
}, {
"../../Models/Player": "Player",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager"
} ],
YueBaoMoveOut: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "0b1d8zbQv5PMJC6NSWCfZ7r", "YueBaoMoveOut");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Models/Player"), c = e("../../Shared/UIManager"), s = e("../../Shared/NetworkLogic"), l = e("./YueBaoNotice"), d = e("../../Shared/Utils"), u = e("LanguageData"), p = cc._decorator, h = p.ccclass, f = p.property, g = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.ebMoney = null;
t.sliderMoney = null;
t.lbPercent = null;
t.lbMoneyBox = null;
t.lbMoneyPlayer = null;
t.noticeNode = null;
t.bWitdrawInt = !1;
return t;
}
t.prototype.start = function() {
var e = this;
this.lbMoneyPlayer.string = r.default.getPy("money");
c.default.showLoadingUI();
s.default.getYuebaoBalance(function(t) {
c.default.hideLoadingUI();
e.lbMoneyBox.string = t;
}, function() {
c.default.hideLoadingUI();
});
};
t.prototype.onEnable = function() {
var e = this;
this.lbMoneyPlayer.string = r.default.getPy("money");
c.default.showLoadingUI();
s.default.getYuebaoBalance(function(t) {
c.default.hideLoadingUI();
e.lbMoneyBox.string = t;
}, function() {
c.default.hideLoadingUI();
});
this.setSliderProgress(0);
};
t.prototype.setSliderProgress = function(e) {
this.sliderMoney.progress = e;
this.lbPercent.string = Math.round(100 * e).toString() + "%";
};
t.prototype.onTextChanged = function() {
var e = Number(this.ebMoney.string).toFixed(2), t = Math.max(0, Math.min(parseFloat(this.lbMoneyBox.string), parseFloat(e) || 0));
this.ebMoney.string = t.toString();
this.setSliderProgress(0 === r.default.getPy("money") ? 0 : parseFloat(this.ebMoney.string) / parseFloat(this.lbMoneyBox.string));
};
t.prototype.onSlider = function() {
var e = this.sliderMoney.progress;
this.lbPercent.string = Math.round(100 * e).toString() + "%";
this.ebMoney.string = (parseFloat(this.lbMoneyBox.string) * e).toFixed(2);
"0" === this.ebMoney.string && (this.ebMoney.string = "");
};
t.prototype.onBtnClick = function(e, t) {
var o = this;
if ("clear" === t) {
this.setSliderProgress(0);
this.onSlider();
} else if ("max" === t) {
this.setSliderProgress(1);
this.onSlider();
} else "confirm" === t && d.default.validateAuth(function() {
cc.log("===点击确认");
if ("0" !== o.ebMoney.string && "" !== o.ebMoney.string && /^[0-9]+.?[0-9]*$/.test(o.ebMoney.string)) {
var e = u.t("yuebao.transfer_out_notice");
o.noticeNode.getComponent(l.default).play(e, !0, function() {
var e = {
money: o.ebMoney.string
};
c.default.showLoadingUI();
s.default.transferOutYuebao(e, function(e) {
o.lbMoneyBox.string = e;
s.default.lowerScore(0, function(e) {
c.default.hideLoadingUI();
r.default.setPy("money", e);
this.lbMoneyPlayer.string = r.default.getPy("money");
c.default.showToastUI("转出成功");
this.ebMoney.string = "";
this.setSliderProgress(0);
}.bind(o), function() {}.bind(o));
}, function() {});
});
} else c.default.showToastUI("请输入正确的金额");
});
};
a([ f(cc.EditBox) ], t.prototype, "ebMoney", void 0);
a([ f(cc.Slider) ], t.prototype, "sliderMoney", void 0);
a([ f(cc.Label) ], t.prototype, "lbPercent", void 0);
a([ f(cc.Label) ], t.prototype, "lbMoneyBox", void 0);
a([ f(cc.Label) ], t.prototype, "lbMoneyPlayer", void 0);
a([ f(cc.Node) ], t.prototype, "noticeNode", void 0);
return a([ h ], t);
}(cc.Component);
o.default = g;
cc._RF.pop();
}, {
"../../Models/Player": "Player",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
"../../Shared/Utils": "Utils",
"./YueBaoNotice": "YueBaoNotice",
LanguageData: "LanguageData"
} ],
YueBaoNotice: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "01b99SKTS1A5J7B2/5n77Zi", "YueBaoNotice");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = cc._decorator, c = r.ccclass, s = r.property, l = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.label = null;
t.closeNode = null;
t.confirmButton = null;
t._onConfirmCallback = void 0;
return t;
}
t.prototype.play = function(e, t, o) {
this.node.active = !0;
this.label.string = e;
this._onConfirmCallback = o;
this.closeNode.active = t;
this.confirmButton.interactable = !0;
};
t.prototype.close = function() {
this.node.active = !1;
this._onConfirmCallback = void 0;
};
t.prototype.onConfirmClick = function() {
this.confirmButton.interactable = !1;
var e = this._onConfirmCallback;
this._onConfirmCallback = void 0;
e && e();
this.close();
};
a([ s(cc.Label) ], t.prototype, "label", void 0);
a([ s(cc.Node) ], t.prototype, "closeNode", void 0);
a([ s(cc.Button) ], t.prototype, "confirmButton", void 0);
return a([ c ], t);
}(cc.Component);
o.default = l;
cc._RF.pop();
}, {} ],
ZhiShuDetails: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "4dfc3WYKelMOIqgo+kCUB7W", "ZhiShuDetails");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Common/RemoteSprite"), c = e("../../Models/Player"), s = e("../../Shared/AudioManager"), l = cc._decorator, d = l.ccclass, u = l.property, p = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.rspHead = null;
t.soubUserId = null;
t.registerDate = null;
t.todayValidBetNumber = null;
t.todayTotalValidBetNumber = null;
t.teamTotalNumber = null;
t.todayTeamValidBetNumber = null;
t.subordinateReturnNumber = null;
t.yesterdayReturnMoney = null;
t.historyReturnMoney = null;
t.extractReturnMoney = null;
return t;
}
t.prototype.onLoad = function() {
this.node.on("ZSDETAIL", this.updateUI.bind(this));
c.default.getPy("head") && (this.rspHead.url = c.default.getPy("head"));
};
t.prototype.updateUI = function(e, t) {
this.soubUserId.string = t;
this.registerDate.string = e.registerDate;
this.todayValidBetNumber.string = c.default.getPy("currencySymbol") + e.todayValidBetNumber;
this.todayTotalValidBetNumber.string = c.default.getPy("currencySymbol") + e.todayTotalValidBetNumber;
this.todayTeamValidBetNumber.string = c.default.getPy("currencySymbol") + e.todayTeamValidBetNumber;
this.teamTotalNumber.string = e.teamTotalNumber + "(" + e.newTeamTotalNumber + ")";
this.subordinateReturnNumber.string = e.subordinateReturnNumber + "(" + e.newSubordinateReturnNumber + ")";
this.yesterdayReturnMoney.string = c.default.getPy("currencySymbol") + e.yesterdayReturnMoney;
this.historyReturnMoney.string = c.default.getPy("currencySymbol") + e.historyReturnMoney;
this.extractReturnMoney.string = c.default.getPy("currencySymbol") + e.extractReturnMoney;
};
t.prototype.onDestroy = function() {
this.node.off("ZSDETAIL");
};
t.prototype.onBtnClick = function() {
s.default.playSound("close");
this.node.active = !1;
};
a([ u(r.default) ], t.prototype, "rspHead", void 0);
a([ u(cc.Label) ], t.prototype, "soubUserId", void 0);
a([ u(cc.Label) ], t.prototype, "registerDate", void 0);
a([ u(cc.Label) ], t.prototype, "todayValidBetNumber", void 0);
a([ u(cc.Label) ], t.prototype, "todayTotalValidBetNumber", void 0);
a([ u(cc.Label) ], t.prototype, "teamTotalNumber", void 0);
a([ u(cc.Label) ], t.prototype, "todayTeamValidBetNumber", void 0);
a([ u(cc.Label) ], t.prototype, "subordinateReturnNumber", void 0);
a([ u(cc.Label) ], t.prototype, "yesterdayReturnMoney", void 0);
a([ u(cc.Label) ], t.prototype, "historyReturnMoney", void 0);
a([ u(cc.Label) ], t.prototype, "extractReturnMoney", void 0);
return a([ d ], t);
}(cc.Component);
o.default = p;
cc._RF.pop();
}, {
"../../Common/RemoteSprite": "RemoteSprite",
"../../Models/Player": "Player",
"../../Shared/AudioManager": "AudioManager"
} ],
ZiZhuXiMa: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "9a958RZJ4tEL7FJrLMAIzS6", "ZiZhuXiMa");
var n, i = this && this.__extends || (n = function(e, t) {
return (n = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
})(e, t);
}, function(e, t) {
n(e, t);
function o() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
}), a = this && this.__decorate || function(e, t, o, n) {
var i, a = arguments.length, r = a < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; c >= 0; c--) (i = e[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
return a > 3 && r && Object.defineProperty(t, o, r), r;
};
Object.defineProperty(o, "__esModule", {
value: !0
});
var r = e("../../Shared/UIManager"), c = e("../../Shared/NetworkLogic"), s = e("../../Shared/Utils"), l = e("./Tool"), d = e("../../Models/Player"), u = e("../../Common/RemoteSprite"), p = e("../../Shared/AudioManager"), h = e("../../Shared/Global"), f = e("./XiMaBiLi"), g = (e("LanguageData"), 
cc._decorator), y = g.ccclass, m = g.property, v = function(e) {
i(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.xiMaBiLi = null;
t.nodeItem = null;
t.spBgArr = [];
t.iconGold = null;
t.rspHead = null;
t.labVipLevel = null;
t.nodeContent = null;
t.playerBalanceUI = null;
t.btnQuickPick = null;
t.labTotalMoney = null;
t.ttMoney = 0;
return t;
}
t.prototype.onLoad = function() {
this.btnQuickPick.interactable = !1;
};
t.prototype.onEnable = function() {
s.default.actionShowContent(this.nodeContent);
};
t.prototype.start = function() {
d.default.getPy("head") && (this.rspHead.url = d.default.getPy("head"));
r.default.showLoadingUI();
c.default.ximaInfo(function(e) {
r.default.hideLoadingUI();
console.log("rich=== Info:", e);
var t = e.washCodeTypeInfoDtos;
if (t) {
this.xiMaBiLi.infoDtos = t;
this.nodeContent.destroyAllChildren();
for (var o = 0; o < t.length; o++) {
var n = cc.instantiate(this.nodeItem);
n.parent = this.nodeContent;
n.getChildByName("bg").getComponent(cc.Sprite).spriteFrame = this.spBgArr[o % 2];
n.getChildByName("labName").getComponent(cc.Label).string = t[o].gameTypeName;
for (var i = t[o].gameInfoLists, a = 0, c = 0, l = 0, d = 0; d < i.length; d++) {
a += i[d].washCodeMoney;
c += i[d].gameWashCodeDml;
l = l >= i[d].washCodeProportion ? l : i[d].washCodeProportion;
}
this.ttMoney += a;
n.getChildByName("labTotalDml").getComponent(cc.Label).string = h.Global.currencySymbol + c.toFixed(2);
n.getChildByName("labRat").getComponent(cc.Label).string = l.toFixed(2) + "%";
n.getChildByName("labMoney").getComponent(cc.Label).string = h.Global.currencySymbol + a.toFixed(2);
n.getChildByName("btnGo").getComponent(cc.Button).clickEvents[0].customEventData = t[o].gameTypeId;
n.active = !0;
}
this.labTotalMoney.string = h.Global.currencySymbol + this.ttMoney.toFixed(2);
this.btnQuickPick.interactable = this.ttMoney > 0;
s.default.actionShowContent(this.nodeContent);
}
}.bind(this), function() {
console.log("rich=== ximaZZXM请求失败");
});
c.default.vipShow(function(e) {
cc.log("====vip data:", e);
for (var t = 0; t < e.userVipSettings.length; t++) {
var o = e.userVipSettings[t];
o.id === e.vipId && (this.labVipLevel.string = o.userVip);
}
}.bind(this), function() {
console.log("vip获取失败");
});
};
t.prototype.onBtnClick = function(e, t) {
var o = this;
p.default.playSound("button");
var n = parseInt(t);
if (n) {
s.default.showGameNode();
for (var i = cc.find("Canvas/gameNode/gameTypes/node/view/content").getComponent(cc.ToggleContainer).toggleItems, a = l.default.getName(n), d = 0; d < i.length; d++) if (i[d].node.name === a) {
i[d].check();
break;
}
this.node.parent.parent.destroy();
}
if ("lq" === t) s.default.validateAuth(function() {
s.default.disable_btn_sec(e, 5);
r.default.showLoadingUI();
c.default.ximaMaualWashCode(function() {
r.default.hideLoadingUI();
cc.director.emit(h.Global.UserEvent.OpenBaoxiang, this.ttMoney.toFixed(2));
for (var e = 0; e < this.nodeContent.children.length; e++) {
var t = this.nodeContent.children[e];
t.getChildByName("labTotalDml").getComponent(cc.Label).string = h.Global.currencySymbol + 0;
t.getChildByName("labMoney").getComponent(cc.Label).string = h.Global.currencySymbol + 0;
}
this.labTotalMoney.string = h.Global.currencySymbol + 0;
this.ttMoney = 0;
this.btnQuickPick.interactable = !1;
this.playerBalanceUI.getComponent("PlayerBalanceUI").pullMoney(0);
}.bind(o), function() {
console.log("====手动洗码出错");
}.bind(o));
}); else if ("vip" === t) {
console.log("===点击自助洗码");
var u = cc.director.getScene().getChildByName("Canvas"), f = u.getChildByName("gameNode").getComponent("HallUI");
if (f) {
var g = f.pfbVip;
cc.instantiate(g).parent = u;
}
}
};
t.prototype.getGoldPos = function() {
var e = this.iconGold.parent.convertToWorldSpaceAR(this.iconGold.getPosition());
return this.node.parent.convertToNodeSpaceAR(e);
};
a([ m(f.default) ], t.prototype, "xiMaBiLi", void 0);
a([ m(cc.Node) ], t.prototype, "nodeItem", void 0);
a([ m([ cc.SpriteFrame ]) ], t.prototype, "spBgArr", void 0);
a([ m(cc.Node) ], t.prototype, "iconGold", void 0);
a([ m(u.default) ], t.prototype, "rspHead", void 0);
a([ m(cc.Label) ], t.prototype, "labVipLevel", void 0);
a([ m(cc.Node) ], t.prototype, "nodeContent", void 0);
a([ m(cc.Node) ], t.prototype, "playerBalanceUI", void 0);
a([ m(cc.Button) ], t.prototype, "btnQuickPick", void 0);
a([ m(cc.Label) ], t.prototype, "labTotalMoney", void 0);
return a([ y ], t);
}(cc.Component);
o.default = v;
cc._RF.pop();
}, {
"../../Common/RemoteSprite": "RemoteSprite",
"../../Models/Player": "Player",
"../../Shared/AudioManager": "AudioManager",
"../../Shared/Global": "Global",
"../../Shared/NetworkLogic": "NetworkLogic",
"../../Shared/UIManager": "UIManager",
"../../Shared/Utils": "Utils",
"./Tool": "Tool",
"./XiMaBiLi": "XiMaBiLi",
LanguageData: "LanguageData"
} ],
"crypto-js": [ function(e, t, o) {
"use strict";
cc._RF.push(t, "a2c36eK84RMsL4v3to92Uof", "crypto-js");
n = function() {
var e, t, o, n = n || function(e) {
var t = Object.create || function() {
function e() {}
return function(t) {
var o;
e.prototype = t;
o = new e();
e.prototype = null;
return o;
};
}(), o = {}, n = o.lib = {}, i = n.Base = {
extend: function(e) {
var o = t(this);
e && o.mixIn(e);
o.hasOwnProperty("init") && this.init !== o.init || (o.init = function() {
o.$super.init.apply(this, arguments);
});
o.init.prototype = o;
o.$super = this;
return o;
},
create: function() {
var e = this.extend();
e.init.apply(e, arguments);
return e;
},
init: function() {},
mixIn: function(e) {
for (var t in e) e.hasOwnProperty(t) && (this[t] = e[t]);
e.hasOwnProperty("toString") && (this.toString = e.toString);
},
clone: function() {
return this.init.prototype.extend(this);
}
}, a = n.WordArray = i.extend({
init: function(e, t) {
e = this.words = e || [];
this.sigBytes = null != t ? t : 4 * e.length;
},
toString: function(e) {
return (e || c).stringify(this);
},
concat: function(e) {
var t = this.words, o = e.words, n = this.sigBytes, i = e.sigBytes;
this.clamp();
if (n % 4) for (var a = 0; a < i; a++) {
var r = o[a >>> 2] >>> 24 - a % 4 * 8 & 255;
t[n + a >>> 2] |= r << 24 - (n + a) % 4 * 8;
} else for (a = 0; a < i; a += 4) t[n + a >>> 2] = o[a >>> 2];
this.sigBytes += i;
return this;
},
clamp: function() {
var t = this.words, o = this.sigBytes;
t[o >>> 2] &= 4294967295 << 32 - o % 4 * 8;
t.length = e.ceil(o / 4);
},
clone: function() {
var e = i.clone.call(this);
e.words = this.words.slice(0);
return e;
},
random: function(t) {
for (var o, n = [], i = function(t) {
t = t;
var o = 987654321, n = 4294967295;
return function() {
var i = ((o = 36969 * (65535 & o) + (o >> 16) & n) << 16) + (t = 18e3 * (65535 & t) + (t >> 16) & n) & n;
i /= 4294967296;
return (i += .5) * (e.random() > .5 ? 1 : -1);
};
}, r = 0; r < t; r += 4) {
var c = i(4294967296 * (o || e.random()));
o = 987654071 * c();
n.push(4294967296 * c() | 0);
}
return new a.init(n, t);
}
}), r = o.enc = {}, c = r.Hex = {
stringify: function(e) {
for (var t = e.words, o = e.sigBytes, n = [], i = 0; i < o; i++) {
var a = t[i >>> 2] >>> 24 - i % 4 * 8 & 255;
n.push((a >>> 4).toString(16));
n.push((15 & a).toString(16));
}
return n.join("");
},
parse: function(e) {
for (var t = e.length, o = [], n = 0; n < t; n += 2) o[n >>> 3] |= parseInt(e.substr(n, 2), 16) << 24 - n % 8 * 4;
return new a.init(o, t / 2);
}
}, s = r.Latin1 = {
stringify: function(e) {
for (var t = e.words, o = e.sigBytes, n = [], i = 0; i < o; i++) {
var a = t[i >>> 2] >>> 24 - i % 4 * 8 & 255;
n.push(String.fromCharCode(a));
}
return n.join("");
},
parse: function(e) {
for (var t = e.length, o = [], n = 0; n < t; n++) o[n >>> 2] |= (255 & e.charCodeAt(n)) << 24 - n % 4 * 8;
return new a.init(o, t);
}
}, l = r.Utf8 = {
stringify: function(e) {
try {
return decodeURIComponent(escape(s.stringify(e)));
} catch (e) {
throw new Error("Malformed UTF-8 data");
}
},
parse: function(e) {
return s.parse(unescape(encodeURIComponent(e)));
}
}, d = n.BufferedBlockAlgorithm = i.extend({
reset: function() {
this._data = new a.init();
this._nDataBytes = 0;
},
_append: function(e) {
"string" == typeof e && (e = l.parse(e));
this._data.concat(e);
this._nDataBytes += e.sigBytes;
},
_process: function(t) {
var o = this._data, n = o.words, i = o.sigBytes, r = this.blockSize, c = i / (4 * r), s = (c = t ? e.ceil(c) : e.max((0 | c) - this._minBufferSize, 0)) * r, l = e.min(4 * s, i);
if (s) {
for (var d = 0; d < s; d += r) this._doProcessBlock(n, d);
var u = n.splice(0, s);
o.sigBytes -= l;
}
return new a.init(u, l);
},
clone: function() {
var e = i.clone.call(this);
e._data = this._data.clone();
return e;
},
_minBufferSize: 0
}), u = (n.Hasher = d.extend({
cfg: i.extend(),
init: function(e) {
this.cfg = this.cfg.extend(e);
this.reset();
},
reset: function() {
d.reset.call(this);
this._doReset();
},
update: function(e) {
this._append(e);
this._process();
return this;
},
finalize: function(e) {
e && this._append(e);
return this._doFinalize();
},
blockSize: 16,
_createHelper: function(e) {
return function(t, o) {
return new e.init(o).finalize(t);
};
},
_createHmacHelper: function(e) {
return function(t, o) {
return new u.HMAC.init(e, o).finalize(t);
};
}
}), o.algo = {});
return o;
}(Math);
(function() {
var e = n, t = e.lib.WordArray;
e.enc.Base64 = {
stringify: function(e) {
var t = e.words, o = e.sigBytes, n = this._map;
e.clamp();
for (var i = [], a = 0; a < o; a += 3) for (var r = (t[a >>> 2] >>> 24 - a % 4 * 8 & 255) << 16 | (t[a + 1 >>> 2] >>> 24 - (a + 1) % 4 * 8 & 255) << 8 | t[a + 2 >>> 2] >>> 24 - (a + 2) % 4 * 8 & 255, c = 0; c < 4 && a + .75 * c < o; c++) i.push(n.charAt(r >>> 6 * (3 - c) & 63));
var s = n.charAt(64);
if (s) for (;i.length % 4; ) i.push(s);
return i.join("");
},
parse: function(e) {
var t = e.length, n = this._map, i = this._reverseMap;
if (!i) {
i = this._reverseMap = [];
for (var a = 0; a < n.length; a++) i[n.charCodeAt(a)] = a;
}
var r = n.charAt(64);
if (r) {
var c = e.indexOf(r);
-1 !== c && (t = c);
}
return o(e, t, i);
},
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
};
function o(e, o, n) {
for (var i = [], a = 0, r = 0; r < o; r++) if (r % 4) {
var c = n[e.charCodeAt(r - 1)] << r % 4 * 2, s = n[e.charCodeAt(r)] >>> 6 - r % 4 * 2;
i[a >>> 2] |= (c | s) << 24 - a % 4 * 8;
a++;
}
return t.create(i, a);
}
})();
(function(e) {
var t = n, o = t.lib, i = o.WordArray, a = o.Hasher, r = t.algo, c = [];
(function() {
for (var t = 0; t < 64; t++) c[t] = 4294967296 * e.abs(e.sin(t + 1)) | 0;
})();
var s = r.MD5 = a.extend({
_doReset: function() {
this._hash = new i.init([ 1732584193, 4023233417, 2562383102, 271733878 ]);
},
_doProcessBlock: function(e, t) {
for (var o = 0; o < 16; o++) {
var n = t + o, i = e[n];
e[n] = 16711935 & (i << 8 | i >>> 24) | 4278255360 & (i << 24 | i >>> 8);
}
var a = this._hash.words, r = e[t + 0], s = e[t + 1], h = e[t + 2], f = e[t + 3], g = e[t + 4], y = e[t + 5], m = e[t + 6], v = e[t + 7], b = e[t + 8], _ = e[t + 9], S = e[t + 10], C = e[t + 11], w = e[t + 12], I = e[t + 13], L = e[t + 14], T = e[t + 15], P = a[0], k = a[1], N = a[2], O = a[3];
P = l(P, k, N, O, r, 7, c[0]);
O = l(O, P, k, N, s, 12, c[1]);
N = l(N, O, P, k, h, 17, c[2]);
k = l(k, N, O, P, f, 22, c[3]);
P = l(P, k, N, O, g, 7, c[4]);
O = l(O, P, k, N, y, 12, c[5]);
N = l(N, O, P, k, m, 17, c[6]);
k = l(k, N, O, P, v, 22, c[7]);
P = l(P, k, N, O, b, 7, c[8]);
O = l(O, P, k, N, _, 12, c[9]);
N = l(N, O, P, k, S, 17, c[10]);
k = l(k, N, O, P, C, 22, c[11]);
P = l(P, k, N, O, w, 7, c[12]);
O = l(O, P, k, N, I, 12, c[13]);
N = l(N, O, P, k, L, 17, c[14]);
P = d(P, k = l(k, N, O, P, T, 22, c[15]), N, O, s, 5, c[16]);
O = d(O, P, k, N, m, 9, c[17]);
N = d(N, O, P, k, C, 14, c[18]);
k = d(k, N, O, P, r, 20, c[19]);
P = d(P, k, N, O, y, 5, c[20]);
O = d(O, P, k, N, S, 9, c[21]);
N = d(N, O, P, k, T, 14, c[22]);
k = d(k, N, O, P, g, 20, c[23]);
P = d(P, k, N, O, _, 5, c[24]);
O = d(O, P, k, N, L, 9, c[25]);
N = d(N, O, P, k, f, 14, c[26]);
k = d(k, N, O, P, b, 20, c[27]);
P = d(P, k, N, O, I, 5, c[28]);
O = d(O, P, k, N, h, 9, c[29]);
N = d(N, O, P, k, v, 14, c[30]);
P = u(P, k = d(k, N, O, P, w, 20, c[31]), N, O, y, 4, c[32]);
O = u(O, P, k, N, b, 11, c[33]);
N = u(N, O, P, k, C, 16, c[34]);
k = u(k, N, O, P, L, 23, c[35]);
P = u(P, k, N, O, s, 4, c[36]);
O = u(O, P, k, N, g, 11, c[37]);
N = u(N, O, P, k, v, 16, c[38]);
k = u(k, N, O, P, S, 23, c[39]);
P = u(P, k, N, O, I, 4, c[40]);
O = u(O, P, k, N, r, 11, c[41]);
N = u(N, O, P, k, f, 16, c[42]);
k = u(k, N, O, P, m, 23, c[43]);
P = u(P, k, N, O, _, 4, c[44]);
O = u(O, P, k, N, w, 11, c[45]);
N = u(N, O, P, k, T, 16, c[46]);
P = p(P, k = u(k, N, O, P, h, 23, c[47]), N, O, r, 6, c[48]);
O = p(O, P, k, N, v, 10, c[49]);
N = p(N, O, P, k, L, 15, c[50]);
k = p(k, N, O, P, y, 21, c[51]);
P = p(P, k, N, O, w, 6, c[52]);
O = p(O, P, k, N, f, 10, c[53]);
N = p(N, O, P, k, S, 15, c[54]);
k = p(k, N, O, P, s, 21, c[55]);
P = p(P, k, N, O, b, 6, c[56]);
O = p(O, P, k, N, T, 10, c[57]);
N = p(N, O, P, k, m, 15, c[58]);
k = p(k, N, O, P, I, 21, c[59]);
P = p(P, k, N, O, g, 6, c[60]);
O = p(O, P, k, N, C, 10, c[61]);
N = p(N, O, P, k, h, 15, c[62]);
k = p(k, N, O, P, _, 21, c[63]);
a[0] = a[0] + P | 0;
a[1] = a[1] + k | 0;
a[2] = a[2] + N | 0;
a[3] = a[3] + O | 0;
},
_doFinalize: function() {
var t = this._data, o = t.words, n = 8 * this._nDataBytes, i = 8 * t.sigBytes;
o[i >>> 5] |= 128 << 24 - i % 32;
var a = e.floor(n / 4294967296), r = n;
o[15 + (i + 64 >>> 9 << 4)] = 16711935 & (a << 8 | a >>> 24) | 4278255360 & (a << 24 | a >>> 8);
o[14 + (i + 64 >>> 9 << 4)] = 16711935 & (r << 8 | r >>> 24) | 4278255360 & (r << 24 | r >>> 8);
t.sigBytes = 4 * (o.length + 1);
this._process();
for (var c = this._hash, s = c.words, l = 0; l < 4; l++) {
var d = s[l];
s[l] = 16711935 & (d << 8 | d >>> 24) | 4278255360 & (d << 24 | d >>> 8);
}
return c;
},
clone: function() {
var e = a.clone.call(this);
e._hash = this._hash.clone();
return e;
}
});
function l(e, t, o, n, i, a, r) {
var c = e + (t & o | ~t & n) + i + r;
return (c << a | c >>> 32 - a) + t;
}
function d(e, t, o, n, i, a, r) {
var c = e + (t & n | o & ~n) + i + r;
return (c << a | c >>> 32 - a) + t;
}
function u(e, t, o, n, i, a, r) {
var c = e + (t ^ o ^ n) + i + r;
return (c << a | c >>> 32 - a) + t;
}
function p(e, t, o, n, i, a, r) {
var c = e + (o ^ (t | ~n)) + i + r;
return (c << a | c >>> 32 - a) + t;
}
t.MD5 = a._createHelper(s);
t.HmacMD5 = a._createHmacHelper(s);
})(Math);
(function() {
var e = n, t = e.lib, o = t.WordArray, i = t.Hasher, a = e.algo, r = [], c = a.SHA1 = i.extend({
_doReset: function() {
this._hash = new o.init([ 1732584193, 4023233417, 2562383102, 271733878, 3285377520 ]);
},
_doProcessBlock: function(e, t) {
for (var o = this._hash.words, n = o[0], i = o[1], a = o[2], c = o[3], s = o[4], l = 0; l < 80; l++) {
if (l < 16) r[l] = 0 | e[t + l]; else {
var d = r[l - 3] ^ r[l - 8] ^ r[l - 14] ^ r[l - 16];
r[l] = d << 1 | d >>> 31;
}
var u = (n << 5 | n >>> 27) + s + r[l];
u += l < 20 ? 1518500249 + (i & a | ~i & c) : l < 40 ? 1859775393 + (i ^ a ^ c) : l < 60 ? (i & a | i & c | a & c) - 1894007588 : (i ^ a ^ c) - 899497514;
s = c;
c = a;
a = i << 30 | i >>> 2;
i = n;
n = u;
}
o[0] = o[0] + n | 0;
o[1] = o[1] + i | 0;
o[2] = o[2] + a | 0;
o[3] = o[3] + c | 0;
o[4] = o[4] + s | 0;
},
_doFinalize: function() {
var e = this._data, t = e.words, o = 8 * this._nDataBytes, n = 8 * e.sigBytes;
t[n >>> 5] |= 128 << 24 - n % 32;
t[14 + (n + 64 >>> 9 << 4)] = Math.floor(o / 4294967296);
t[15 + (n + 64 >>> 9 << 4)] = o;
e.sigBytes = 4 * t.length;
this._process();
return this._hash;
},
clone: function() {
var e = i.clone.call(this);
e._hash = this._hash.clone();
return e;
}
});
e.SHA1 = i._createHelper(c);
e.HmacSHA1 = i._createHmacHelper(c);
})();
(function(e) {
var t = n, o = t.lib, i = o.WordArray, a = o.Hasher, r = t.algo, c = [], s = [];
(function() {
function t(t) {
for (var o = e.sqrt(t), n = 2; n <= o; n++) if (!(t % n)) return !1;
return !0;
}
function o(e) {
return 4294967296 * (e - (0 | e)) | 0;
}
for (var n = 2, i = 0; i < 64; ) {
if (t(n)) {
i < 8 && (c[i] = o(e.pow(n, .5)));
s[i] = o(e.pow(n, 1 / 3));
i++;
}
n++;
}
})();
var l = [], d = r.SHA256 = a.extend({
_doReset: function() {
this._hash = new i.init(c.slice(0));
},
_doProcessBlock: function(e, t) {
for (var o = this._hash.words, n = o[0], i = o[1], a = o[2], r = o[3], c = o[4], d = o[5], u = o[6], p = o[7], h = 0; h < 64; h++) {
if (h < 16) l[h] = 0 | e[t + h]; else {
var f = l[h - 15], g = (f << 25 | f >>> 7) ^ (f << 14 | f >>> 18) ^ f >>> 3, y = l[h - 2], m = (y << 15 | y >>> 17) ^ (y << 13 | y >>> 19) ^ y >>> 10;
l[h] = g + l[h - 7] + m + l[h - 16];
}
var v = n & i ^ n & a ^ i & a, b = (n << 30 | n >>> 2) ^ (n << 19 | n >>> 13) ^ (n << 10 | n >>> 22), _ = p + ((c << 26 | c >>> 6) ^ (c << 21 | c >>> 11) ^ (c << 7 | c >>> 25)) + (c & d ^ ~c & u) + s[h] + l[h];
p = u;
u = d;
d = c;
c = r + _ | 0;
r = a;
a = i;
i = n;
n = _ + (b + v) | 0;
}
o[0] = o[0] + n | 0;
o[1] = o[1] + i | 0;
o[2] = o[2] + a | 0;
o[3] = o[3] + r | 0;
o[4] = o[4] + c | 0;
o[5] = o[5] + d | 0;
o[6] = o[6] + u | 0;
o[7] = o[7] + p | 0;
},
_doFinalize: function() {
var t = this._data, o = t.words, n = 8 * this._nDataBytes, i = 8 * t.sigBytes;
o[i >>> 5] |= 128 << 24 - i % 32;
o[14 + (i + 64 >>> 9 << 4)] = e.floor(n / 4294967296);
o[15 + (i + 64 >>> 9 << 4)] = n;
t.sigBytes = 4 * o.length;
this._process();
return this._hash;
},
clone: function() {
var e = a.clone.call(this);
e._hash = this._hash.clone();
return e;
}
});
t.SHA256 = a._createHelper(d);
t.HmacSHA256 = a._createHmacHelper(d);
})(Math);
(function() {
var e = n, t = e.lib.WordArray, o = e.enc;
o.Utf16 = o.Utf16BE = {
stringify: function(e) {
for (var t = e.words, o = e.sigBytes, n = [], i = 0; i < o; i += 2) {
var a = t[i >>> 2] >>> 16 - i % 4 * 8 & 65535;
n.push(String.fromCharCode(a));
}
return n.join("");
},
parse: function(e) {
for (var o = e.length, n = [], i = 0; i < o; i++) n[i >>> 1] |= e.charCodeAt(i) << 16 - i % 2 * 16;
return t.create(n, 2 * o);
}
};
o.Utf16LE = {
stringify: function(e) {
for (var t = e.words, o = e.sigBytes, n = [], a = 0; a < o; a += 2) {
var r = i(t[a >>> 2] >>> 16 - a % 4 * 8 & 65535);
n.push(String.fromCharCode(r));
}
return n.join("");
},
parse: function(e) {
for (var o = e.length, n = [], a = 0; a < o; a++) n[a >>> 1] |= i(e.charCodeAt(a) << 16 - a % 2 * 16);
return t.create(n, 2 * o);
}
};
function i(e) {
return e << 8 & 4278255360 | e >>> 8 & 16711935;
}
})();
(function() {
if ("function" == typeof ArrayBuffer) {
var e = n.lib.WordArray, t = e.init;
(e.init = function(e) {
e instanceof ArrayBuffer && (e = new Uint8Array(e));
(e instanceof Int8Array || "undefined" != typeof Uint8ClampedArray && e instanceof Uint8ClampedArray || e instanceof Int16Array || e instanceof Uint16Array || e instanceof Int32Array || e instanceof Uint32Array || e instanceof Float32Array || e instanceof Float64Array) && (e = new Uint8Array(e.buffer, e.byteOffset, e.byteLength));
if (e instanceof Uint8Array) {
for (var o = e.byteLength, n = [], i = 0; i < o; i++) n[i >>> 2] |= e[i] << 24 - i % 4 * 8;
t.call(this, n, o);
} else t.apply(this, arguments);
}).prototype = e;
}
})();
(function() {
var e = n, t = e.lib, o = t.WordArray, i = t.Hasher, a = e.algo, r = o.create([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13 ]), c = o.create([ 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11 ]), s = o.create([ 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6 ]), l = o.create([ 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11 ]), d = o.create([ 0, 1518500249, 1859775393, 2400959708, 2840853838 ]), u = o.create([ 1352829926, 1548603684, 1836072691, 2053994217, 0 ]), p = a.RIPEMD160 = i.extend({
_doReset: function() {
this._hash = o.create([ 1732584193, 4023233417, 2562383102, 271733878, 3285377520 ]);
},
_doProcessBlock: function(e, t) {
for (var o = 0; o < 16; o++) {
var n = t + o, i = e[n];
e[n] = 16711935 & (i << 8 | i >>> 24) | 4278255360 & (i << 24 | i >>> 8);
}
var a, p, b, _, S, C, w, I, L, T, P, k = this._hash.words, N = d.words, O = u.words, R = r.words, M = c.words, U = s.words, B = l.words;
C = a = k[0];
w = p = k[1];
I = b = k[2];
L = _ = k[3];
T = S = k[4];
for (o = 0; o < 80; o += 1) {
P = a + e[t + R[o]] | 0;
P += o < 16 ? h(p, b, _) + N[0] : o < 32 ? f(p, b, _) + N[1] : o < 48 ? g(p, b, _) + N[2] : o < 64 ? y(p, b, _) + N[3] : m(p, b, _) + N[4];
P = (P = v(P |= 0, U[o])) + S | 0;
a = S;
S = _;
_ = v(b, 10);
b = p;
p = P;
P = C + e[t + M[o]] | 0;
P += o < 16 ? m(w, I, L) + O[0] : o < 32 ? y(w, I, L) + O[1] : o < 48 ? g(w, I, L) + O[2] : o < 64 ? f(w, I, L) + O[3] : h(w, I, L) + O[4];
P = (P = v(P |= 0, B[o])) + T | 0;
C = T;
T = L;
L = v(I, 10);
I = w;
w = P;
}
P = k[1] + b + L | 0;
k[1] = k[2] + _ + T | 0;
k[2] = k[3] + S + C | 0;
k[3] = k[4] + a + w | 0;
k[4] = k[0] + p + I | 0;
k[0] = P;
},
_doFinalize: function() {
var e = this._data, t = e.words, o = 8 * this._nDataBytes, n = 8 * e.sigBytes;
t[n >>> 5] |= 128 << 24 - n % 32;
t[14 + (n + 64 >>> 9 << 4)] = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8);
e.sigBytes = 4 * (t.length + 1);
this._process();
for (var i = this._hash, a = i.words, r = 0; r < 5; r++) {
var c = a[r];
a[r] = 16711935 & (c << 8 | c >>> 24) | 4278255360 & (c << 24 | c >>> 8);
}
return i;
},
clone: function() {
var e = i.clone.call(this);
e._hash = this._hash.clone();
return e;
}
});
function h(e, t, o) {
return e ^ t ^ o;
}
function f(e, t, o) {
return e & t | ~e & o;
}
function g(e, t, o) {
return (e | ~t) ^ o;
}
function y(e, t, o) {
return e & o | t & ~o;
}
function m(e, t, o) {
return e ^ (t | ~o);
}
function v(e, t) {
return e << t | e >>> 32 - t;
}
e.RIPEMD160 = i._createHelper(p);
e.HmacRIPEMD160 = i._createHmacHelper(p);
})(Math);
t = (e = n).lib.Base, o = e.enc.Utf8, e.algo.HMAC = t.extend({
init: function(e, t) {
e = this._hasher = new e.init();
"string" == typeof t && (t = o.parse(t));
var n = e.blockSize, i = 4 * n;
t.sigBytes > i && (t = e.finalize(t));
t.clamp();
for (var a = this._oKey = t.clone(), r = this._iKey = t.clone(), c = a.words, s = r.words, l = 0; l < n; l++) {
c[l] ^= 1549556828;
s[l] ^= 909522486;
}
a.sigBytes = r.sigBytes = i;
this.reset();
},
reset: function() {
var e = this._hasher;
e.reset();
e.update(this._iKey);
},
update: function(e) {
this._hasher.update(e);
return this;
},
finalize: function(e) {
var t = this._hasher, o = t.finalize(e);
t.reset();
return t.finalize(this._oKey.clone().concat(o));
}
});
(function() {
var e = n, t = e.lib, o = t.Base, i = t.WordArray, a = e.algo, r = a.SHA1, c = a.HMAC, s = a.PBKDF2 = o.extend({
cfg: o.extend({
keySize: 4,
hasher: r,
iterations: 1
}),
init: function(e) {
this.cfg = this.cfg.extend(e);
},
compute: function(e, t) {
for (var o = this.cfg, n = c.create(o.hasher, e), a = i.create(), r = i.create([ 1 ]), s = a.words, l = r.words, d = o.keySize, u = o.iterations; s.length < d; ) {
var p = n.update(t).finalize(r);
n.reset();
for (var h = p.words, f = h.length, g = p, y = 1; y < u; y++) {
g = n.finalize(g);
n.reset();
for (var m = g.words, v = 0; v < f; v++) h[v] ^= m[v];
}
a.concat(p);
l[0]++;
}
a.sigBytes = 4 * d;
return a;
}
});
e.PBKDF2 = function(e, t, o) {
return s.create(o).compute(e, t);
};
})();
(function() {
var e = n, t = e.lib, o = t.Base, i = t.WordArray, a = e.algo, r = a.MD5, c = a.EvpKDF = o.extend({
cfg: o.extend({
keySize: 4,
hasher: r,
iterations: 1
}),
init: function(e) {
this.cfg = this.cfg.extend(e);
},
compute: function(e, t) {
for (var o = this.cfg, n = o.hasher.create(), a = i.create(), r = a.words, c = o.keySize, s = o.iterations; r.length < c; ) {
l && n.update(l);
var l = n.update(e).finalize(t);
n.reset();
for (var d = 1; d < s; d++) {
l = n.finalize(l);
n.reset();
}
a.concat(l);
}
a.sigBytes = 4 * c;
return a;
}
});
e.EvpKDF = function(e, t, o) {
return c.create(o).compute(e, t);
};
})();
(function() {
var e = n, t = e.lib.WordArray, o = e.algo, i = o.SHA256, a = o.SHA224 = i.extend({
_doReset: function() {
this._hash = new t.init([ 3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428 ]);
},
_doFinalize: function() {
var e = i._doFinalize.call(this);
e.sigBytes -= 4;
return e;
}
});
e.SHA224 = i._createHelper(a);
e.HmacSHA224 = i._createHmacHelper(a);
})();
(function() {
var e = n, t = e.lib, o = t.Base, i = t.WordArray, a = e.x64 = {};
a.Word = o.extend({
init: function(e, t) {
this.high = e;
this.low = t;
}
}), a.WordArray = o.extend({
init: function(e, t) {
e = this.words = e || [];
this.sigBytes = null != t ? t : 8 * e.length;
},
toX32: function() {
for (var e = this.words, t = e.length, o = [], n = 0; n < t; n++) {
var a = e[n];
o.push(a.high);
o.push(a.low);
}
return i.create(o, this.sigBytes);
},
clone: function() {
for (var e = o.clone.call(this), t = e.words = this.words.slice(0), n = t.length, i = 0; i < n; i++) t[i] = t[i].clone();
return e;
}
});
})();
(function(e) {
var t = n, o = t.lib, i = o.WordArray, a = o.Hasher, r = t.x64.Word, c = t.algo, s = [], l = [], d = [];
(function() {
for (var e = 1, t = 0, o = 0; o < 24; o++) {
s[e + 5 * t] = (o + 1) * (o + 2) / 2 % 64;
var n = (2 * e + 3 * t) % 5;
e = t % 5;
t = n;
}
for (e = 0; e < 5; e++) for (t = 0; t < 5; t++) l[e + 5 * t] = t + (2 * e + 3 * t) % 5 * 5;
for (var i = 1, a = 0; a < 24; a++) {
for (var c = 0, u = 0, p = 0; p < 7; p++) {
if (1 & i) {
var h = (1 << p) - 1;
h < 32 ? u ^= 1 << h : c ^= 1 << h - 32;
}
128 & i ? i = i << 1 ^ 113 : i <<= 1;
}
d[a] = r.create(c, u);
}
})();
var u = [];
(function() {
for (var e = 0; e < 25; e++) u[e] = r.create();
})();
var p = c.SHA3 = a.extend({
cfg: a.cfg.extend({
outputLength: 512
}),
_doReset: function() {
for (var e = this._state = [], t = 0; t < 25; t++) e[t] = new r.init();
this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
},
_doProcessBlock: function(e, t) {
for (var o = this._state, n = this.blockSize / 2, i = 0; i < n; i++) {
var a = e[t + 2 * i], r = e[t + 2 * i + 1];
a = 16711935 & (a << 8 | a >>> 24) | 4278255360 & (a << 24 | a >>> 8);
r = 16711935 & (r << 8 | r >>> 24) | 4278255360 & (r << 24 | r >>> 8);
(k = o[i]).high ^= r;
k.low ^= a;
}
for (var c = 0; c < 24; c++) {
for (var p = 0; p < 5; p++) {
for (var h = 0, f = 0, g = 0; g < 5; g++) {
h ^= (k = o[p + 5 * g]).high;
f ^= k.low;
}
var y = u[p];
y.high = h;
y.low = f;
}
for (p = 0; p < 5; p++) {
var m = u[(p + 4) % 5], v = u[(p + 1) % 5], b = v.high, _ = v.low;
for (h = m.high ^ (b << 1 | _ >>> 31), f = m.low ^ (_ << 1 | b >>> 31), g = 0; g < 5; g++) {
(k = o[p + 5 * g]).high ^= h;
k.low ^= f;
}
}
for (var S = 1; S < 25; S++) {
var C = (k = o[S]).high, w = k.low, I = s[S];
I < 32 ? (h = C << I | w >>> 32 - I, f = w << I | C >>> 32 - I) : (h = w << I - 32 | C >>> 64 - I, 
f = C << I - 32 | w >>> 64 - I);
var L = u[l[S]];
L.high = h;
L.low = f;
}
var T = u[0], P = o[0];
T.high = P.high;
T.low = P.low;
for (p = 0; p < 5; p++) for (g = 0; g < 5; g++) {
var k = o[S = p + 5 * g], N = u[S], O = u[(p + 1) % 5 + 5 * g], R = u[(p + 2) % 5 + 5 * g];
k.high = N.high ^ ~O.high & R.high;
k.low = N.low ^ ~O.low & R.low;
}
k = o[0];
var M = d[c];
k.high ^= M.high;
k.low ^= M.low;
}
},
_doFinalize: function() {
var t = this._data, o = t.words, n = (this._nDataBytes, 8 * t.sigBytes), a = 32 * this.blockSize;
o[n >>> 5] |= 1 << 24 - n % 32;
o[(e.ceil((n + 1) / a) * a >>> 5) - 1] |= 128;
t.sigBytes = 4 * o.length;
this._process();
for (var r = this._state, c = this.cfg.outputLength / 8, s = c / 8, l = [], d = 0; d < s; d++) {
var u = r[d], p = u.high, h = u.low;
p = 16711935 & (p << 8 | p >>> 24) | 4278255360 & (p << 24 | p >>> 8);
h = 16711935 & (h << 8 | h >>> 24) | 4278255360 & (h << 24 | h >>> 8);
l.push(h);
l.push(p);
}
return new i.init(l, c);
},
clone: function() {
for (var e = a.clone.call(this), t = e._state = this._state.slice(0), o = 0; o < 25; o++) t[o] = t[o].clone();
return e;
}
});
t.SHA3 = a._createHelper(p);
t.HmacSHA3 = a._createHmacHelper(p);
})(Math);
(function() {
var e = n, t = e.lib.Hasher, o = e.x64, i = o.Word, a = o.WordArray, r = e.algo;
function c() {
return i.create.apply(i, arguments);
}
var s = [ c(1116352408, 3609767458), c(1899447441, 602891725), c(3049323471, 3964484399), c(3921009573, 2173295548), c(961987163, 4081628472), c(1508970993, 3053834265), c(2453635748, 2937671579), c(2870763221, 3664609560), c(3624381080, 2734883394), c(310598401, 1164996542), c(607225278, 1323610764), c(1426881987, 3590304994), c(1925078388, 4068182383), c(2162078206, 991336113), c(2614888103, 633803317), c(3248222580, 3479774868), c(3835390401, 2666613458), c(4022224774, 944711139), c(264347078, 2341262773), c(604807628, 2007800933), c(770255983, 1495990901), c(1249150122, 1856431235), c(1555081692, 3175218132), c(1996064986, 2198950837), c(2554220882, 3999719339), c(2821834349, 766784016), c(2952996808, 2566594879), c(3210313671, 3203337956), c(3336571891, 1034457026), c(3584528711, 2466948901), c(113926993, 3758326383), c(338241895, 168717936), c(666307205, 1188179964), c(773529912, 1546045734), c(1294757372, 1522805485), c(1396182291, 2643833823), c(1695183700, 2343527390), c(1986661051, 1014477480), c(2177026350, 1206759142), c(2456956037, 344077627), c(2730485921, 1290863460), c(2820302411, 3158454273), c(3259730800, 3505952657), c(3345764771, 106217008), c(3516065817, 3606008344), c(3600352804, 1432725776), c(4094571909, 1467031594), c(275423344, 851169720), c(430227734, 3100823752), c(506948616, 1363258195), c(659060556, 3750685593), c(883997877, 3785050280), c(958139571, 3318307427), c(1322822218, 3812723403), c(1537002063, 2003034995), c(1747873779, 3602036899), c(1955562222, 1575990012), c(2024104815, 1125592928), c(2227730452, 2716904306), c(2361852424, 442776044), c(2428436474, 593698344), c(2756734187, 3733110249), c(3204031479, 2999351573), c(3329325298, 3815920427), c(3391569614, 3928383900), c(3515267271, 566280711), c(3940187606, 3454069534), c(4118630271, 4000239992), c(116418474, 1914138554), c(174292421, 2731055270), c(289380356, 3203993006), c(460393269, 320620315), c(685471733, 587496836), c(852142971, 1086792851), c(1017036298, 365543100), c(1126000580, 2618297676), c(1288033470, 3409855158), c(1501505948, 4234509866), c(1607167915, 987167468), c(1816402316, 1246189591) ], l = [];
(function() {
for (var e = 0; e < 80; e++) l[e] = c();
})();
var d = r.SHA512 = t.extend({
_doReset: function() {
this._hash = new a.init([ new i.init(1779033703, 4089235720), new i.init(3144134277, 2227873595), new i.init(1013904242, 4271175723), new i.init(2773480762, 1595750129), new i.init(1359893119, 2917565137), new i.init(2600822924, 725511199), new i.init(528734635, 4215389547), new i.init(1541459225, 327033209) ]);
},
_doProcessBlock: function(e, t) {
for (var o = this._hash.words, n = o[0], i = o[1], a = o[2], r = o[3], c = o[4], d = o[5], u = o[6], p = o[7], h = n.high, f = n.low, g = i.high, y = i.low, m = a.high, v = a.low, b = r.high, _ = r.low, S = c.high, C = c.low, w = d.high, I = d.low, L = u.high, T = u.low, P = p.high, k = p.low, N = h, O = f, R = g, M = y, U = m, B = v, D = b, A = _, x = S, E = C, G = w, j = I, F = L, H = T, V = P, W = k, q = 0; q < 80; q++) {
var z = l[q];
if (q < 16) var J = z.high = 0 | e[t + 2 * q], X = z.low = 0 | e[t + 2 * q + 1]; else {
var K = l[q - 15], Q = K.high, Y = K.low, Z = (Q >>> 1 | Y << 31) ^ (Q >>> 8 | Y << 24) ^ Q >>> 7, $ = (Y >>> 1 | Q << 31) ^ (Y >>> 8 | Q << 24) ^ (Y >>> 7 | Q << 25), ee = l[q - 2], te = ee.high, oe = ee.low, ne = (te >>> 19 | oe << 13) ^ (te << 3 | oe >>> 29) ^ te >>> 6, ie = (oe >>> 19 | te << 13) ^ (oe << 3 | te >>> 29) ^ (oe >>> 6 | te << 26), ae = l[q - 7], re = ae.high, ce = ae.low, se = l[q - 16], le = se.high, de = se.low;
J = (J = (J = Z + re + ((X = $ + ce) >>> 0 < $ >>> 0 ? 1 : 0)) + ne + ((X += ie) >>> 0 < ie >>> 0 ? 1 : 0)) + le + ((X += de) >>> 0 < de >>> 0 ? 1 : 0);
z.high = J;
z.low = X;
}
var ue, pe = x & G ^ ~x & F, he = E & j ^ ~E & H, fe = N & R ^ N & U ^ R & U, ge = O & M ^ O & B ^ M & B, ye = (N >>> 28 | O << 4) ^ (N << 30 | O >>> 2) ^ (N << 25 | O >>> 7), me = (O >>> 28 | N << 4) ^ (O << 30 | N >>> 2) ^ (O << 25 | N >>> 7), ve = (x >>> 14 | E << 18) ^ (x >>> 18 | E << 14) ^ (x << 23 | E >>> 9), be = (E >>> 14 | x << 18) ^ (E >>> 18 | x << 14) ^ (E << 23 | x >>> 9), _e = s[q], Se = _e.high, Ce = _e.low, we = V + ve + ((ue = W + be) >>> 0 < W >>> 0 ? 1 : 0), Ie = me + ge;
V = F;
W = H;
F = G;
H = j;
G = x;
j = E;
x = D + (we = (we = (we = we + pe + ((ue += he) >>> 0 < he >>> 0 ? 1 : 0)) + Se + ((ue += Ce) >>> 0 < Ce >>> 0 ? 1 : 0)) + J + ((ue += X) >>> 0 < X >>> 0 ? 1 : 0)) + ((E = A + ue | 0) >>> 0 < A >>> 0 ? 1 : 0) | 0;
D = U;
A = B;
U = R;
B = M;
R = N;
M = O;
N = we + (ye + fe + (Ie >>> 0 < me >>> 0 ? 1 : 0)) + ((O = ue + Ie | 0) >>> 0 < ue >>> 0 ? 1 : 0) | 0;
}
f = n.low = f + O;
n.high = h + N + (f >>> 0 < O >>> 0 ? 1 : 0);
y = i.low = y + M;
i.high = g + R + (y >>> 0 < M >>> 0 ? 1 : 0);
v = a.low = v + B;
a.high = m + U + (v >>> 0 < B >>> 0 ? 1 : 0);
_ = r.low = _ + A;
r.high = b + D + (_ >>> 0 < A >>> 0 ? 1 : 0);
C = c.low = C + E;
c.high = S + x + (C >>> 0 < E >>> 0 ? 1 : 0);
I = d.low = I + j;
d.high = w + G + (I >>> 0 < j >>> 0 ? 1 : 0);
T = u.low = T + H;
u.high = L + F + (T >>> 0 < H >>> 0 ? 1 : 0);
k = p.low = k + W;
p.high = P + V + (k >>> 0 < W >>> 0 ? 1 : 0);
},
_doFinalize: function() {
var e = this._data, t = e.words, o = 8 * this._nDataBytes, n = 8 * e.sigBytes;
t[n >>> 5] |= 128 << 24 - n % 32;
t[30 + (n + 128 >>> 10 << 5)] = Math.floor(o / 4294967296);
t[31 + (n + 128 >>> 10 << 5)] = o;
e.sigBytes = 4 * t.length;
this._process();
return this._hash.toX32();
},
clone: function() {
var e = t.clone.call(this);
e._hash = this._hash.clone();
return e;
},
blockSize: 32
});
e.SHA512 = t._createHelper(d);
e.HmacSHA512 = t._createHmacHelper(d);
})();
(function() {
var e = n, t = e.x64, o = t.Word, i = t.WordArray, a = e.algo, r = a.SHA512, c = a.SHA384 = r.extend({
_doReset: function() {
this._hash = new i.init([ new o.init(3418070365, 3238371032), new o.init(1654270250, 914150663), new o.init(2438529370, 812702999), new o.init(355462360, 4144912697), new o.init(1731405415, 4290775857), new o.init(2394180231, 1750603025), new o.init(3675008525, 1694076839), new o.init(1203062813, 3204075428) ]);
},
_doFinalize: function() {
var e = r._doFinalize.call(this);
e.sigBytes -= 16;
return e;
}
});
e.SHA384 = r._createHelper(c);
e.HmacSHA384 = r._createHmacHelper(c);
})();
n.lib.Cipher || function(e) {
var t = n, o = t.lib, i = o.Base, a = o.WordArray, r = o.BufferedBlockAlgorithm, c = t.enc, s = (c.Utf8, 
c.Base64), l = t.algo.EvpKDF, d = o.Cipher = r.extend({
cfg: i.extend(),
createEncryptor: function(e, t) {
return this.create(this._ENC_XFORM_MODE, e, t);
},
createDecryptor: function(e, t) {
return this.create(this._DEC_XFORM_MODE, e, t);
},
init: function(e, t, o) {
this.cfg = this.cfg.extend(o);
this._xformMode = e;
this._key = t;
this.reset();
},
reset: function() {
r.reset.call(this);
this._doReset();
},
process: function(e) {
this._append(e);
return this._process();
},
finalize: function(e) {
e && this._append(e);
return this._doFinalize();
},
keySize: 4,
ivSize: 4,
_ENC_XFORM_MODE: 1,
_DEC_XFORM_MODE: 2,
_createHelper: function() {
function e(e) {
return "string" == typeof e ? b : m;
}
return function(t) {
return {
encrypt: function(o, n, i) {
return e(n).encrypt(t, o, n, i);
},
decrypt: function(o, n, i) {
return e(n).decrypt(t, o, n, i);
}
};
};
}()
}), u = (o.StreamCipher = d.extend({
_doFinalize: function() {
return this._process(!0);
},
blockSize: 1
}), t.mode = {}), p = o.BlockCipherMode = i.extend({
createEncryptor: function(e, t) {
return this.Encryptor.create(e, t);
},
createDecryptor: function(e, t) {
return this.Decryptor.create(e, t);
},
init: function(e, t) {
this._cipher = e;
this._iv = t;
}
}), h = u.CBC = function() {
var t = p.extend();
t.Encryptor = t.extend({
processBlock: function(e, t) {
var n = this._cipher, i = n.blockSize;
o.call(this, e, t, i);
n.encryptBlock(e, t);
this._prevBlock = e.slice(t, t + i);
}
});
t.Decryptor = t.extend({
processBlock: function(e, t) {
var n = this._cipher, i = n.blockSize, a = e.slice(t, t + i);
n.decryptBlock(e, t);
o.call(this, e, t, i);
this._prevBlock = a;
}
});
function o(t, o, n) {
var i = this._iv;
if (i) {
var a = i;
this._iv = e;
} else a = this._prevBlock;
for (var r = 0; r < n; r++) t[o + r] ^= a[r];
}
return t;
}(), f = (t.pad = {}).Pkcs7 = {
pad: function(e, t) {
for (var o = 4 * t, n = o - e.sigBytes % o, i = n << 24 | n << 16 | n << 8 | n, r = [], c = 0; c < n; c += 4) r.push(i);
var s = a.create(r, n);
e.concat(s);
},
unpad: function(e) {
var t = 255 & e.words[e.sigBytes - 1 >>> 2];
e.sigBytes -= t;
}
}, g = (o.BlockCipher = d.extend({
cfg: d.cfg.extend({
mode: h,
padding: f
}),
reset: function() {
d.reset.call(this);
var e = this.cfg, t = e.iv, o = e.mode;
if (this._xformMode == this._ENC_XFORM_MODE) var n = o.createEncryptor; else {
n = o.createDecryptor;
this._minBufferSize = 1;
}
if (this._mode && this._mode.__creator == n) this._mode.init(this, t && t.words); else {
this._mode = n.call(o, this, t && t.words);
this._mode.__creator = n;
}
},
_doProcessBlock: function(e, t) {
this._mode.processBlock(e, t);
},
_doFinalize: function() {
var e = this.cfg.padding;
if (this._xformMode == this._ENC_XFORM_MODE) {
e.pad(this._data, this.blockSize);
var t = this._process(!0);
} else {
t = this._process(!0);
e.unpad(t);
}
return t;
},
blockSize: 4
}), o.CipherParams = i.extend({
init: function(e) {
this.mixIn(e);
},
toString: function(e) {
return (e || this.formatter).stringify(this);
}
})), y = (t.format = {}).OpenSSL = {
stringify: function(e) {
var t = e.ciphertext, o = e.salt;
if (o) var n = a.create([ 1398893684, 1701076831 ]).concat(o).concat(t); else n = t;
return n.toString(s);
},
parse: function(e) {
var t = s.parse(e), o = t.words;
if (1398893684 == o[0] && 1701076831 == o[1]) {
var n = a.create(o.slice(2, 4));
o.splice(0, 4);
t.sigBytes -= 16;
}
return g.create({
ciphertext: t,
salt: n
});
}
}, m = o.SerializableCipher = i.extend({
cfg: i.extend({
format: y
}),
encrypt: function(e, t, o, n) {
n = this.cfg.extend(n);
var i = e.createEncryptor(o, n), a = i.finalize(t), r = i.cfg;
return g.create({
ciphertext: a,
key: o,
iv: r.iv,
algorithm: e,
mode: r.mode,
padding: r.padding,
blockSize: e.blockSize,
formatter: n.format
});
},
decrypt: function(e, t, o, n) {
n = this.cfg.extend(n);
t = this._parse(t, n.format);
return e.createDecryptor(o, n).finalize(t.ciphertext);
},
_parse: function(e, t) {
return "string" == typeof e ? t.parse(e, this) : e;
}
}), v = (t.kdf = {}).OpenSSL = {
execute: function(e, t, o, n) {
n || (n = a.random(8));
var i = l.create({
keySize: t + o
}).compute(e, n), r = a.create(i.words.slice(t), 4 * o);
i.sigBytes = 4 * t;
return g.create({
key: i,
iv: r,
salt: n
});
}
}, b = o.PasswordBasedCipher = m.extend({
cfg: m.cfg.extend({
kdf: v
}),
encrypt: function(e, t, o, n) {
var i = (n = this.cfg.extend(n)).kdf.execute(o, e.keySize, e.ivSize);
n.iv = i.iv;
var a = m.encrypt.call(this, e, t, i.key, n);
a.mixIn(i);
return a;
},
decrypt: function(e, t, o, n) {
n = this.cfg.extend(n);
t = this._parse(t, n.format);
var i = n.kdf.execute(o, e.keySize, e.ivSize, t.salt);
n.iv = i.iv;
return m.decrypt.call(this, e, t, i.key, n);
}
});
}();
n.mode.CFB = function() {
var e = n.lib.BlockCipherMode.extend();
e.Encryptor = e.extend({
processBlock: function(e, o) {
var n = this._cipher, i = n.blockSize;
t.call(this, e, o, i, n);
this._prevBlock = e.slice(o, o + i);
}
});
e.Decryptor = e.extend({
processBlock: function(e, o) {
var n = this._cipher, i = n.blockSize, a = e.slice(o, o + i);
t.call(this, e, o, i, n);
this._prevBlock = a;
}
});
function t(e, t, o, n) {
var i = this._iv;
if (i) {
var a = i.slice(0);
this._iv = void 0;
} else a = this._prevBlock;
n.encryptBlock(a, 0);
for (var r = 0; r < o; r++) e[t + r] ^= a[r];
}
return e;
}();
n.mode.ECB = function() {
var e = n.lib.BlockCipherMode.extend();
e.Encryptor = e.extend({
processBlock: function(e, t) {
this._cipher.encryptBlock(e, t);
}
});
e.Decryptor = e.extend({
processBlock: function(e, t) {
this._cipher.decryptBlock(e, t);
}
});
return e;
}();
n.pad.AnsiX923 = {
pad: function(e, t) {
var o = e.sigBytes, n = 4 * t, i = n - o % n, a = o + i - 1;
e.clamp();
e.words[a >>> 2] |= i << 24 - a % 4 * 8;
e.sigBytes += i;
},
unpad: function(e) {
var t = 255 & e.words[e.sigBytes - 1 >>> 2];
e.sigBytes -= t;
}
};
n.pad.Iso10126 = {
pad: function(e, t) {
var o = 4 * t, i = o - e.sigBytes % o;
e.concat(n.lib.WordArray.random(i - 1)).concat(n.lib.WordArray.create([ i << 24 ], 1));
},
unpad: function(e) {
var t = 255 & e.words[e.sigBytes - 1 >>> 2];
e.sigBytes -= t;
}
};
n.pad.Iso97971 = {
pad: function(e, t) {
e.concat(n.lib.WordArray.create([ 2147483648 ], 1));
n.pad.ZeroPadding.pad(e, t);
},
unpad: function(e) {
n.pad.ZeroPadding.unpad(e);
e.sigBytes--;
}
};
n.mode.OFB = function() {
var e = n.lib.BlockCipherMode.extend(), t = e.Encryptor = e.extend({
processBlock: function(e, t) {
var o = this._cipher, n = o.blockSize, i = this._iv, a = this._keystream;
if (i) {
a = this._keystream = i.slice(0);
this._iv = void 0;
}
o.encryptBlock(a, 0);
for (var r = 0; r < n; r++) e[t + r] ^= a[r];
}
});
e.Decryptor = t;
return e;
}();
n.pad.NoPadding = {
pad: function() {},
unpad: function() {}
};
(function() {
var e = n, t = e.lib.CipherParams, o = e.enc.Hex;
e.format.Hex = {
stringify: function(e) {
return e.ciphertext.toString(o);
},
parse: function(e) {
var n = o.parse(e);
return t.create({
ciphertext: n
});
}
};
})();
(function() {
var e = n, t = e.lib.BlockCipher, o = e.algo, i = [], a = [], r = [], c = [], s = [], l = [], d = [], u = [], p = [], h = [];
(function() {
for (var e = [], t = 0; t < 256; t++) e[t] = t < 128 ? t << 1 : t << 1 ^ 283;
var o = 0, n = 0;
for (t = 0; t < 256; t++) {
var f = n ^ n << 1 ^ n << 2 ^ n << 3 ^ n << 4;
f = f >>> 8 ^ 255 & f ^ 99;
i[o] = f;
a[f] = o;
var g = e[o], y = e[g], m = e[y], v = 257 * e[f] ^ 16843008 * f;
r[o] = v << 24 | v >>> 8;
c[o] = v << 16 | v >>> 16;
s[o] = v << 8 | v >>> 24;
l[o] = v;
v = 16843009 * m ^ 65537 * y ^ 257 * g ^ 16843008 * o;
d[f] = v << 24 | v >>> 8;
u[f] = v << 16 | v >>> 16;
p[f] = v << 8 | v >>> 24;
h[f] = v;
if (o) {
o = g ^ e[e[e[m ^ g]]];
n ^= e[e[n]];
} else o = n = 1;
}
})();
var f = [ 0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54 ], g = o.AES = t.extend({
_doReset: function() {
if (!this._nRounds || this._keyPriorReset !== this._key) {
for (var e = this._keyPriorReset = this._key, t = e.words, o = e.sigBytes / 4, n = 4 * ((this._nRounds = o + 6) + 1), a = this._keySchedule = [], r = 0; r < n; r++) if (r < o) a[r] = t[r]; else {
var c = a[r - 1];
if (r % o) o > 6 && r % o == 4 && (c = i[c >>> 24] << 24 | i[c >>> 16 & 255] << 16 | i[c >>> 8 & 255] << 8 | i[255 & c]); else {
c = i[(c = c << 8 | c >>> 24) >>> 24] << 24 | i[c >>> 16 & 255] << 16 | i[c >>> 8 & 255] << 8 | i[255 & c];
c ^= f[r / o | 0] << 24;
}
a[r] = a[r - o] ^ c;
}
for (var s = this._invKeySchedule = [], l = 0; l < n; l++) {
r = n - l;
c = l % 4 ? a[r] : a[r - 4];
s[l] = l < 4 || r <= 4 ? c : d[i[c >>> 24]] ^ u[i[c >>> 16 & 255]] ^ p[i[c >>> 8 & 255]] ^ h[i[255 & c]];
}
}
},
encryptBlock: function(e, t) {
this._doCryptBlock(e, t, this._keySchedule, r, c, s, l, i);
},
decryptBlock: function(e, t) {
var o = e[t + 1];
e[t + 1] = e[t + 3];
e[t + 3] = o;
this._doCryptBlock(e, t, this._invKeySchedule, d, u, p, h, a);
o = e[t + 1];
e[t + 1] = e[t + 3];
e[t + 3] = o;
},
_doCryptBlock: function(e, t, o, n, i, a, r, c) {
for (var s = this._nRounds, l = e[t] ^ o[0], d = e[t + 1] ^ o[1], u = e[t + 2] ^ o[2], p = e[t + 3] ^ o[3], h = 4, f = 1; f < s; f++) {
var g = n[l >>> 24] ^ i[d >>> 16 & 255] ^ a[u >>> 8 & 255] ^ r[255 & p] ^ o[h++], y = n[d >>> 24] ^ i[u >>> 16 & 255] ^ a[p >>> 8 & 255] ^ r[255 & l] ^ o[h++], m = n[u >>> 24] ^ i[p >>> 16 & 255] ^ a[l >>> 8 & 255] ^ r[255 & d] ^ o[h++], v = n[p >>> 24] ^ i[l >>> 16 & 255] ^ a[d >>> 8 & 255] ^ r[255 & u] ^ o[h++];
l = g;
d = y;
u = m;
p = v;
}
g = (c[l >>> 24] << 24 | c[d >>> 16 & 255] << 16 | c[u >>> 8 & 255] << 8 | c[255 & p]) ^ o[h++], 
y = (c[d >>> 24] << 24 | c[u >>> 16 & 255] << 16 | c[p >>> 8 & 255] << 8 | c[255 & l]) ^ o[h++], 
m = (c[u >>> 24] << 24 | c[p >>> 16 & 255] << 16 | c[l >>> 8 & 255] << 8 | c[255 & d]) ^ o[h++], 
v = (c[p >>> 24] << 24 | c[l >>> 16 & 255] << 16 | c[d >>> 8 & 255] << 8 | c[255 & u]) ^ o[h++];
e[t] = g;
e[t + 1] = y;
e[t + 2] = m;
e[t + 3] = v;
},
keySize: 8
});
e.AES = t._createHelper(g);
})();
(function() {
var e = n, t = e.lib, o = t.WordArray, i = t.BlockCipher, a = e.algo, r = [ 57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36, 63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, 5, 28, 20, 12, 4 ], c = [ 14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10, 23, 19, 12, 4, 26, 8, 16, 7, 27, 20, 13, 2, 41, 52, 31, 37, 47, 55, 30, 40, 51, 45, 33, 48, 44, 49, 39, 56, 34, 53, 46, 42, 50, 36, 29, 32 ], s = [ 1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28 ], l = [ {
0: 8421888,
268435456: 32768,
536870912: 8421378,
805306368: 2,
1073741824: 512,
1342177280: 8421890,
1610612736: 8389122,
1879048192: 8388608,
2147483648: 514,
2415919104: 8389120,
2684354560: 33280,
2952790016: 8421376,
3221225472: 32770,
3489660928: 8388610,
3758096384: 0,
4026531840: 33282,
134217728: 0,
402653184: 8421890,
671088640: 33282,
939524096: 32768,
1207959552: 8421888,
1476395008: 512,
1744830464: 8421378,
2013265920: 2,
2281701376: 8389120,
2550136832: 33280,
2818572288: 8421376,
3087007744: 8389122,
3355443200: 8388610,
3623878656: 32770,
3892314112: 514,
4160749568: 8388608,
1: 32768,
268435457: 2,
536870913: 8421888,
805306369: 8388608,
1073741825: 8421378,
1342177281: 33280,
1610612737: 512,
1879048193: 8389122,
2147483649: 8421890,
2415919105: 8421376,
2684354561: 8388610,
2952790017: 33282,
3221225473: 514,
3489660929: 8389120,
3758096385: 32770,
4026531841: 0,
134217729: 8421890,
402653185: 8421376,
671088641: 8388608,
939524097: 512,
1207959553: 32768,
1476395009: 8388610,
1744830465: 2,
2013265921: 33282,
2281701377: 32770,
2550136833: 8389122,
2818572289: 514,
3087007745: 8421888,
3355443201: 8389120,
3623878657: 0,
3892314113: 33280,
4160749569: 8421378
}, {
0: 1074282512,
16777216: 16384,
33554432: 524288,
50331648: 1074266128,
67108864: 1073741840,
83886080: 1074282496,
100663296: 1073758208,
117440512: 16,
134217728: 540672,
150994944: 1073758224,
167772160: 1073741824,
184549376: 540688,
201326592: 524304,
218103808: 0,
234881024: 16400,
251658240: 1074266112,
8388608: 1073758208,
25165824: 540688,
41943040: 16,
58720256: 1073758224,
75497472: 1074282512,
92274688: 1073741824,
109051904: 524288,
125829120: 1074266128,
142606336: 524304,
159383552: 0,
176160768: 16384,
192937984: 1074266112,
209715200: 1073741840,
226492416: 540672,
243269632: 1074282496,
260046848: 16400,
268435456: 0,
285212672: 1074266128,
301989888: 1073758224,
318767104: 1074282496,
335544320: 1074266112,
352321536: 16,
369098752: 540688,
385875968: 16384,
402653184: 16400,
419430400: 524288,
436207616: 524304,
452984832: 1073741840,
469762048: 540672,
486539264: 1073758208,
503316480: 1073741824,
520093696: 1074282512,
276824064: 540688,
293601280: 524288,
310378496: 1074266112,
327155712: 16384,
343932928: 1073758208,
360710144: 1074282512,
377487360: 16,
394264576: 1073741824,
411041792: 1074282496,
427819008: 1073741840,
444596224: 1073758224,
461373440: 524304,
478150656: 0,
494927872: 16400,
511705088: 1074266128,
528482304: 540672
}, {
0: 260,
1048576: 0,
2097152: 67109120,
3145728: 65796,
4194304: 65540,
5242880: 67108868,
6291456: 67174660,
7340032: 67174400,
8388608: 67108864,
9437184: 67174656,
10485760: 65792,
11534336: 67174404,
12582912: 67109124,
13631488: 65536,
14680064: 4,
15728640: 256,
524288: 67174656,
1572864: 67174404,
2621440: 0,
3670016: 67109120,
4718592: 67108868,
5767168: 65536,
6815744: 65540,
7864320: 260,
8912896: 4,
9961472: 256,
11010048: 67174400,
12058624: 65796,
13107200: 65792,
14155776: 67109124,
15204352: 67174660,
16252928: 67108864,
16777216: 67174656,
17825792: 65540,
18874368: 65536,
19922944: 67109120,
20971520: 256,
22020096: 67174660,
23068672: 67108868,
24117248: 0,
25165824: 67109124,
26214400: 67108864,
27262976: 4,
28311552: 65792,
29360128: 67174400,
30408704: 260,
31457280: 65796,
32505856: 67174404,
17301504: 67108864,
18350080: 260,
19398656: 67174656,
20447232: 0,
21495808: 65540,
22544384: 67109120,
23592960: 256,
24641536: 67174404,
25690112: 65536,
26738688: 67174660,
27787264: 65796,
28835840: 67108868,
29884416: 67109124,
30932992: 67174400,
31981568: 4,
33030144: 65792
}, {
0: 2151682048,
65536: 2147487808,
131072: 4198464,
196608: 2151677952,
262144: 0,
327680: 4198400,
393216: 2147483712,
458752: 4194368,
524288: 2147483648,
589824: 4194304,
655360: 64,
720896: 2147487744,
786432: 2151678016,
851968: 4160,
917504: 4096,
983040: 2151682112,
32768: 2147487808,
98304: 64,
163840: 2151678016,
229376: 2147487744,
294912: 4198400,
360448: 2151682112,
425984: 0,
491520: 2151677952,
557056: 4096,
622592: 2151682048,
688128: 4194304,
753664: 4160,
819200: 2147483648,
884736: 4194368,
950272: 4198464,
1015808: 2147483712,
1048576: 4194368,
1114112: 4198400,
1179648: 2147483712,
1245184: 0,
1310720: 4160,
1376256: 2151678016,
1441792: 2151682048,
1507328: 2147487808,
1572864: 2151682112,
1638400: 2147483648,
1703936: 2151677952,
1769472: 4198464,
1835008: 2147487744,
1900544: 4194304,
1966080: 64,
2031616: 4096,
1081344: 2151677952,
1146880: 2151682112,
1212416: 0,
1277952: 4198400,
1343488: 4194368,
1409024: 2147483648,
1474560: 2147487808,
1540096: 64,
1605632: 2147483712,
1671168: 4096,
1736704: 2147487744,
1802240: 2151678016,
1867776: 4160,
1933312: 2151682048,
1998848: 4194304,
2064384: 4198464
}, {
0: 128,
4096: 17039360,
8192: 262144,
12288: 536870912,
16384: 537133184,
20480: 16777344,
24576: 553648256,
28672: 262272,
32768: 16777216,
36864: 537133056,
40960: 536871040,
45056: 553910400,
49152: 553910272,
53248: 0,
57344: 17039488,
61440: 553648128,
2048: 17039488,
6144: 553648256,
10240: 128,
14336: 17039360,
18432: 262144,
22528: 537133184,
26624: 553910272,
30720: 536870912,
34816: 537133056,
38912: 0,
43008: 553910400,
47104: 16777344,
51200: 536871040,
55296: 553648128,
59392: 16777216,
63488: 262272,
65536: 262144,
69632: 128,
73728: 536870912,
77824: 553648256,
81920: 16777344,
86016: 553910272,
90112: 537133184,
94208: 16777216,
98304: 553910400,
102400: 553648128,
106496: 17039360,
110592: 537133056,
114688: 262272,
118784: 536871040,
122880: 0,
126976: 17039488,
67584: 553648256,
71680: 16777216,
75776: 17039360,
79872: 537133184,
83968: 536870912,
88064: 17039488,
92160: 128,
96256: 553910272,
100352: 262272,
104448: 553910400,
108544: 0,
112640: 553648128,
116736: 16777344,
120832: 262144,
124928: 537133056,
129024: 536871040
}, {
0: 268435464,
256: 8192,
512: 270532608,
768: 270540808,
1024: 268443648,
1280: 2097152,
1536: 2097160,
1792: 268435456,
2048: 0,
2304: 268443656,
2560: 2105344,
2816: 8,
3072: 270532616,
3328: 2105352,
3584: 8200,
3840: 270540800,
128: 270532608,
384: 270540808,
640: 8,
896: 2097152,
1152: 2105352,
1408: 268435464,
1664: 268443648,
1920: 8200,
2176: 2097160,
2432: 8192,
2688: 268443656,
2944: 270532616,
3200: 0,
3456: 270540800,
3712: 2105344,
3968: 268435456,
4096: 268443648,
4352: 270532616,
4608: 270540808,
4864: 8200,
5120: 2097152,
5376: 268435456,
5632: 268435464,
5888: 2105344,
6144: 2105352,
6400: 0,
6656: 8,
6912: 270532608,
7168: 8192,
7424: 268443656,
7680: 270540800,
7936: 2097160,
4224: 8,
4480: 2105344,
4736: 2097152,
4992: 268435464,
5248: 268443648,
5504: 8200,
5760: 270540808,
6016: 270532608,
6272: 270540800,
6528: 270532616,
6784: 8192,
7040: 2105352,
7296: 2097160,
7552: 0,
7808: 268435456,
8064: 268443656
}, {
0: 1048576,
16: 33555457,
32: 1024,
48: 1049601,
64: 34604033,
80: 0,
96: 1,
112: 34603009,
128: 33555456,
144: 1048577,
160: 33554433,
176: 34604032,
192: 34603008,
208: 1025,
224: 1049600,
240: 33554432,
8: 34603009,
24: 0,
40: 33555457,
56: 34604032,
72: 1048576,
88: 33554433,
104: 33554432,
120: 1025,
136: 1049601,
152: 33555456,
168: 34603008,
184: 1048577,
200: 1024,
216: 34604033,
232: 1,
248: 1049600,
256: 33554432,
272: 1048576,
288: 33555457,
304: 34603009,
320: 1048577,
336: 33555456,
352: 34604032,
368: 1049601,
384: 1025,
400: 34604033,
416: 1049600,
432: 1,
448: 0,
464: 34603008,
480: 33554433,
496: 1024,
264: 1049600,
280: 33555457,
296: 34603009,
312: 1,
328: 33554432,
344: 1048576,
360: 1025,
376: 34604032,
392: 33554433,
408: 34603008,
424: 0,
440: 34604033,
456: 1049601,
472: 1024,
488: 33555456,
504: 1048577
}, {
0: 134219808,
1: 131072,
2: 134217728,
3: 32,
4: 131104,
5: 134350880,
6: 134350848,
7: 2048,
8: 134348800,
9: 134219776,
10: 133120,
11: 134348832,
12: 2080,
13: 0,
14: 134217760,
15: 133152,
2147483648: 2048,
2147483649: 134350880,
2147483650: 134219808,
2147483651: 134217728,
2147483652: 134348800,
2147483653: 133120,
2147483654: 133152,
2147483655: 32,
2147483656: 134217760,
2147483657: 2080,
2147483658: 131104,
2147483659: 134350848,
2147483660: 0,
2147483661: 134348832,
2147483662: 134219776,
2147483663: 131072,
16: 133152,
17: 134350848,
18: 32,
19: 2048,
20: 134219776,
21: 134217760,
22: 134348832,
23: 131072,
24: 0,
25: 131104,
26: 134348800,
27: 134219808,
28: 134350880,
29: 133120,
30: 2080,
31: 134217728,
2147483664: 131072,
2147483665: 2048,
2147483666: 134348832,
2147483667: 133152,
2147483668: 32,
2147483669: 134348800,
2147483670: 134217728,
2147483671: 134219808,
2147483672: 134350880,
2147483673: 134217760,
2147483674: 134219776,
2147483675: 0,
2147483676: 133120,
2147483677: 2080,
2147483678: 131104,
2147483679: 134350848
} ], d = [ 4160749569, 528482304, 33030144, 2064384, 129024, 8064, 504, 2147483679 ], u = a.DES = i.extend({
_doReset: function() {
for (var e = this._key.words, t = [], o = 0; o < 56; o++) {
var n = r[o] - 1;
t[o] = e[n >>> 5] >>> 31 - n % 32 & 1;
}
for (var i = this._subKeys = [], a = 0; a < 16; a++) {
var l = i[a] = [], d = s[a];
for (o = 0; o < 24; o++) {
l[o / 6 | 0] |= t[(c[o] - 1 + d) % 28] << 31 - o % 6;
l[4 + (o / 6 | 0)] |= t[28 + (c[o + 24] - 1 + d) % 28] << 31 - o % 6;
}
l[0] = l[0] << 1 | l[0] >>> 31;
for (o = 1; o < 7; o++) l[o] = l[o] >>> 4 * (o - 1) + 3;
l[7] = l[7] << 5 | l[7] >>> 27;
}
var u = this._invSubKeys = [];
for (o = 0; o < 16; o++) u[o] = i[15 - o];
},
encryptBlock: function(e, t) {
this._doCryptBlock(e, t, this._subKeys);
},
decryptBlock: function(e, t) {
this._doCryptBlock(e, t, this._invSubKeys);
},
_doCryptBlock: function(e, t, o) {
this._lBlock = e[t];
this._rBlock = e[t + 1];
p.call(this, 4, 252645135);
p.call(this, 16, 65535);
h.call(this, 2, 858993459);
h.call(this, 8, 16711935);
p.call(this, 1, 1431655765);
for (var n = 0; n < 16; n++) {
for (var i = o[n], a = this._lBlock, r = this._rBlock, c = 0, s = 0; s < 8; s++) c |= l[s][((r ^ i[s]) & d[s]) >>> 0];
this._lBlock = r;
this._rBlock = a ^ c;
}
var u = this._lBlock;
this._lBlock = this._rBlock;
this._rBlock = u;
p.call(this, 1, 1431655765);
h.call(this, 8, 16711935);
h.call(this, 2, 858993459);
p.call(this, 16, 65535);
p.call(this, 4, 252645135);
e[t] = this._lBlock;
e[t + 1] = this._rBlock;
},
keySize: 2,
ivSize: 2,
blockSize: 2
});
function p(e, t) {
var o = (this._lBlock >>> e ^ this._rBlock) & t;
this._rBlock ^= o;
this._lBlock ^= o << e;
}
function h(e, t) {
var o = (this._rBlock >>> e ^ this._lBlock) & t;
this._lBlock ^= o;
this._rBlock ^= o << e;
}
e.DES = i._createHelper(u);
var f = a.TripleDES = i.extend({
_doReset: function() {
var e = this._key.words;
this._des1 = u.createEncryptor(o.create(e.slice(0, 2)));
this._des2 = u.createEncryptor(o.create(e.slice(2, 4)));
this._des3 = u.createEncryptor(o.create(e.slice(4, 6)));
},
encryptBlock: function(e, t) {
this._des1.encryptBlock(e, t);
this._des2.decryptBlock(e, t);
this._des3.encryptBlock(e, t);
},
decryptBlock: function(e, t) {
this._des3.decryptBlock(e, t);
this._des2.encryptBlock(e, t);
this._des1.decryptBlock(e, t);
},
keySize: 6,
ivSize: 2,
blockSize: 2
});
e.TripleDES = i._createHelper(f);
})();
(function() {
var e = n, t = e.lib.StreamCipher, o = e.algo, i = o.RC4 = t.extend({
_doReset: function() {
for (var e = this._key, t = e.words, o = e.sigBytes, n = this._S = [], i = 0; i < 256; i++) n[i] = i;
i = 0;
for (var a = 0; i < 256; i++) {
var r = i % o, c = t[r >>> 2] >>> 24 - r % 4 * 8 & 255;
a = (a + n[i] + c) % 256;
var s = n[i];
n[i] = n[a];
n[a] = s;
}
this._i = this._j = 0;
},
_doProcessBlock: function(e, t) {
e[t] ^= a.call(this);
},
keySize: 8,
ivSize: 0
});
function a() {
for (var e = this._S, t = this._i, o = this._j, n = 0, i = 0; i < 4; i++) {
o = (o + e[t = (t + 1) % 256]) % 256;
var a = e[t];
e[t] = e[o];
e[o] = a;
n |= e[(e[t] + e[o]) % 256] << 24 - 8 * i;
}
this._i = t;
this._j = o;
return n;
}
e.RC4 = t._createHelper(i);
var r = o.RC4Drop = i.extend({
cfg: i.cfg.extend({
drop: 192
}),
_doReset: function() {
i._doReset.call(this);
for (var e = this.cfg.drop; e > 0; e--) a.call(this);
}
});
e.RC4Drop = t._createHelper(r);
})();
n.mode.CTRGladman = function() {
var e = n.lib.BlockCipherMode.extend();
function t(e) {
if (255 == (e >> 24 & 255)) {
var t = e >> 16 & 255, o = e >> 8 & 255, n = 255 & e;
if (255 === t) {
t = 0;
if (255 === o) {
o = 0;
255 === n ? n = 0 : ++n;
} else ++o;
} else ++t;
e = 0;
e += t << 16;
e += o << 8;
e += n;
} else e += 1 << 24;
return e;
}
function o(e) {
0 === (e[0] = t(e[0])) && (e[1] = t(e[1]));
return e;
}
var i = e.Encryptor = e.extend({
processBlock: function(e, t) {
var n = this._cipher, i = n.blockSize, a = this._iv, r = this._counter;
if (a) {
r = this._counter = a.slice(0);
this._iv = void 0;
}
o(r);
var c = r.slice(0);
n.encryptBlock(c, 0);
for (var s = 0; s < i; s++) e[t + s] ^= c[s];
}
});
e.Decryptor = i;
return e;
}();
(function() {
var e = n, t = e.lib.StreamCipher, o = e.algo, i = [], a = [], r = [], c = o.Rabbit = t.extend({
_doReset: function() {
for (var e = this._key.words, t = this.cfg.iv, o = 0; o < 4; o++) e[o] = 16711935 & (e[o] << 8 | e[o] >>> 24) | 4278255360 & (e[o] << 24 | e[o] >>> 8);
var n = this._X = [ e[0], e[3] << 16 | e[2] >>> 16, e[1], e[0] << 16 | e[3] >>> 16, e[2], e[1] << 16 | e[0] >>> 16, e[3], e[2] << 16 | e[1] >>> 16 ], i = this._C = [ e[2] << 16 | e[2] >>> 16, 4294901760 & e[0] | 65535 & e[1], e[3] << 16 | e[3] >>> 16, 4294901760 & e[1] | 65535 & e[2], e[0] << 16 | e[0] >>> 16, 4294901760 & e[2] | 65535 & e[3], e[1] << 16 | e[1] >>> 16, 4294901760 & e[3] | 65535 & e[0] ];
this._b = 0;
for (o = 0; o < 4; o++) s.call(this);
for (o = 0; o < 8; o++) i[o] ^= n[o + 4 & 7];
if (t) {
var a = t.words, r = a[0], c = a[1], l = 16711935 & (r << 8 | r >>> 24) | 4278255360 & (r << 24 | r >>> 8), d = 16711935 & (c << 8 | c >>> 24) | 4278255360 & (c << 24 | c >>> 8), u = l >>> 16 | 4294901760 & d, p = d << 16 | 65535 & l;
i[0] ^= l;
i[1] ^= u;
i[2] ^= d;
i[3] ^= p;
i[4] ^= l;
i[5] ^= u;
i[6] ^= d;
i[7] ^= p;
for (o = 0; o < 4; o++) s.call(this);
}
},
_doProcessBlock: function(e, t) {
var o = this._X;
s.call(this);
i[0] = o[0] ^ o[5] >>> 16 ^ o[3] << 16;
i[1] = o[2] ^ o[7] >>> 16 ^ o[5] << 16;
i[2] = o[4] ^ o[1] >>> 16 ^ o[7] << 16;
i[3] = o[6] ^ o[3] >>> 16 ^ o[1] << 16;
for (var n = 0; n < 4; n++) {
i[n] = 16711935 & (i[n] << 8 | i[n] >>> 24) | 4278255360 & (i[n] << 24 | i[n] >>> 8);
e[t + n] ^= i[n];
}
},
blockSize: 4,
ivSize: 2
});
function s() {
for (var e = this._X, t = this._C, o = 0; o < 8; o++) a[o] = t[o];
t[0] = t[0] + 1295307597 + this._b | 0;
t[1] = t[1] + 3545052371 + (t[0] >>> 0 < a[0] >>> 0 ? 1 : 0) | 0;
t[2] = t[2] + 886263092 + (t[1] >>> 0 < a[1] >>> 0 ? 1 : 0) | 0;
t[3] = t[3] + 1295307597 + (t[2] >>> 0 < a[2] >>> 0 ? 1 : 0) | 0;
t[4] = t[4] + 3545052371 + (t[3] >>> 0 < a[3] >>> 0 ? 1 : 0) | 0;
t[5] = t[5] + 886263092 + (t[4] >>> 0 < a[4] >>> 0 ? 1 : 0) | 0;
t[6] = t[6] + 1295307597 + (t[5] >>> 0 < a[5] >>> 0 ? 1 : 0) | 0;
t[7] = t[7] + 3545052371 + (t[6] >>> 0 < a[6] >>> 0 ? 1 : 0) | 0;
this._b = t[7] >>> 0 < a[7] >>> 0 ? 1 : 0;
for (o = 0; o < 8; o++) {
var n = e[o] + t[o], i = 65535 & n, c = n >>> 16, s = ((i * i >>> 17) + i * c >>> 15) + c * c, l = ((4294901760 & n) * n | 0) + ((65535 & n) * n | 0);
r[o] = s ^ l;
}
e[0] = r[0] + (r[7] << 16 | r[7] >>> 16) + (r[6] << 16 | r[6] >>> 16) | 0;
e[1] = r[1] + (r[0] << 8 | r[0] >>> 24) + r[7] | 0;
e[2] = r[2] + (r[1] << 16 | r[1] >>> 16) + (r[0] << 16 | r[0] >>> 16) | 0;
e[3] = r[3] + (r[2] << 8 | r[2] >>> 24) + r[1] | 0;
e[4] = r[4] + (r[3] << 16 | r[3] >>> 16) + (r[2] << 16 | r[2] >>> 16) | 0;
e[5] = r[5] + (r[4] << 8 | r[4] >>> 24) + r[3] | 0;
e[6] = r[6] + (r[5] << 16 | r[5] >>> 16) + (r[4] << 16 | r[4] >>> 16) | 0;
e[7] = r[7] + (r[6] << 8 | r[6] >>> 24) + r[5] | 0;
}
e.Rabbit = t._createHelper(c);
})();
n.mode.CTR = function() {
var e = n.lib.BlockCipherMode.extend(), t = e.Encryptor = e.extend({
processBlock: function(e, t) {
var o = this._cipher, n = o.blockSize, i = this._iv, a = this._counter;
if (i) {
a = this._counter = i.slice(0);
this._iv = void 0;
}
var r = a.slice(0);
o.encryptBlock(r, 0);
a[n - 1] = a[n - 1] + 1 | 0;
for (var c = 0; c < n; c++) e[t + c] ^= r[c];
}
});
e.Decryptor = t;
return e;
}();
(function() {
var e = n, t = e.lib.StreamCipher, o = e.algo, i = [], a = [], r = [], c = o.RabbitLegacy = t.extend({
_doReset: function() {
var e = this._key.words, t = this.cfg.iv, o = this._X = [ e[0], e[3] << 16 | e[2] >>> 16, e[1], e[0] << 16 | e[3] >>> 16, e[2], e[1] << 16 | e[0] >>> 16, e[3], e[2] << 16 | e[1] >>> 16 ], n = this._C = [ e[2] << 16 | e[2] >>> 16, 4294901760 & e[0] | 65535 & e[1], e[3] << 16 | e[3] >>> 16, 4294901760 & e[1] | 65535 & e[2], e[0] << 16 | e[0] >>> 16, 4294901760 & e[2] | 65535 & e[3], e[1] << 16 | e[1] >>> 16, 4294901760 & e[3] | 65535 & e[0] ];
this._b = 0;
for (var i = 0; i < 4; i++) s.call(this);
for (i = 0; i < 8; i++) n[i] ^= o[i + 4 & 7];
if (t) {
var a = t.words, r = a[0], c = a[1], l = 16711935 & (r << 8 | r >>> 24) | 4278255360 & (r << 24 | r >>> 8), d = 16711935 & (c << 8 | c >>> 24) | 4278255360 & (c << 24 | c >>> 8), u = l >>> 16 | 4294901760 & d, p = d << 16 | 65535 & l;
n[0] ^= l;
n[1] ^= u;
n[2] ^= d;
n[3] ^= p;
n[4] ^= l;
n[5] ^= u;
n[6] ^= d;
n[7] ^= p;
for (i = 0; i < 4; i++) s.call(this);
}
},
_doProcessBlock: function(e, t) {
var o = this._X;
s.call(this);
i[0] = o[0] ^ o[5] >>> 16 ^ o[3] << 16;
i[1] = o[2] ^ o[7] >>> 16 ^ o[5] << 16;
i[2] = o[4] ^ o[1] >>> 16 ^ o[7] << 16;
i[3] = o[6] ^ o[3] >>> 16 ^ o[1] << 16;
for (var n = 0; n < 4; n++) {
i[n] = 16711935 & (i[n] << 8 | i[n] >>> 24) | 4278255360 & (i[n] << 24 | i[n] >>> 8);
e[t + n] ^= i[n];
}
},
blockSize: 4,
ivSize: 2
});
function s() {
for (var e = this._X, t = this._C, o = 0; o < 8; o++) a[o] = t[o];
t[0] = t[0] + 1295307597 + this._b | 0;
t[1] = t[1] + 3545052371 + (t[0] >>> 0 < a[0] >>> 0 ? 1 : 0) | 0;
t[2] = t[2] + 886263092 + (t[1] >>> 0 < a[1] >>> 0 ? 1 : 0) | 0;
t[3] = t[3] + 1295307597 + (t[2] >>> 0 < a[2] >>> 0 ? 1 : 0) | 0;
t[4] = t[4] + 3545052371 + (t[3] >>> 0 < a[3] >>> 0 ? 1 : 0) | 0;
t[5] = t[5] + 886263092 + (t[4] >>> 0 < a[4] >>> 0 ? 1 : 0) | 0;
t[6] = t[6] + 1295307597 + (t[5] >>> 0 < a[5] >>> 0 ? 1 : 0) | 0;
t[7] = t[7] + 3545052371 + (t[6] >>> 0 < a[6] >>> 0 ? 1 : 0) | 0;
this._b = t[7] >>> 0 < a[7] >>> 0 ? 1 : 0;
for (o = 0; o < 8; o++) {
var n = e[o] + t[o], i = 65535 & n, c = n >>> 16, s = ((i * i >>> 17) + i * c >>> 15) + c * c, l = ((4294901760 & n) * n | 0) + ((65535 & n) * n | 0);
r[o] = s ^ l;
}
e[0] = r[0] + (r[7] << 16 | r[7] >>> 16) + (r[6] << 16 | r[6] >>> 16) | 0;
e[1] = r[1] + (r[0] << 8 | r[0] >>> 24) + r[7] | 0;
e[2] = r[2] + (r[1] << 16 | r[1] >>> 16) + (r[0] << 16 | r[0] >>> 16) | 0;
e[3] = r[3] + (r[2] << 8 | r[2] >>> 24) + r[1] | 0;
e[4] = r[4] + (r[3] << 16 | r[3] >>> 16) + (r[2] << 16 | r[2] >>> 16) | 0;
e[5] = r[5] + (r[4] << 8 | r[4] >>> 24) + r[3] | 0;
e[6] = r[6] + (r[5] << 16 | r[5] >>> 16) + (r[4] << 16 | r[4] >>> 16) | 0;
e[7] = r[7] + (r[6] << 8 | r[6] >>> 24) + r[5] | 0;
}
e.RabbitLegacy = t._createHelper(c);
})();
n.pad.ZeroPadding = {
pad: function(e, t) {
var o = 4 * t;
e.clamp();
e.sigBytes += o - (e.sigBytes % o || o);
},
unpad: function(e) {
for (var t = e.words, o = e.sigBytes - 1; !(t[o >>> 2] >>> 24 - o % 4 * 8 & 255); ) o--;
e.sigBytes = o + 1;
}
};
return n;
}, "object" == typeof o ? t.exports = o = n() : "function" == typeof define && define.amd ? define([], n) : (void 0).CryptoJS = n();
var n;
cc._RF.pop();
}, {} ],
encryptionWay: [ function(require, module, exports) {
"use strict";
cc._RF.push(module, "7e5f2FLCvxNs6PuNZKJ9YXd", "encryptionWay");
Object.defineProperty(exports, "__esModule", {
value: !0
});
var CryptoJS = require("crypto-js");
function unicode2string(unicode) {
return eval("'" + unicode + "'");
}
var KK = "3f162f46d3b2f9ub", IV = CryptoJS.enc.Utf8.parse(""), KEY = CryptoJS.enc.Utf8.parse(KK), encryptWays = {
oneEncrypt: function(e, t, o) {
var n = KEY, i = IV;
if (t) {
i = CryptoJS.enc.Utf8.parse(o);
n = CryptoJS.enc.Utf8.parse(t);
}
return CryptoJS[unicode2string("Rabbit")].encrypt(e, n, {
iv: i,
mode: CryptoJS.mode[unicode2string("OFB")],
padding: CryptoJS.pad[unicode2string("Iso10126")]
}).toString();
},
twoEncrypt: function(e, t, o) {
var n = KEY, i = IV;
if (t) {
i = CryptoJS.enc.Utf8.parse(o);
n = CryptoJS.enc.Utf8.parse(t);
}
return CryptoJS[unicode2string("DES")].encrypt(e, n, {
iv: i,
mode: CryptoJS.mode[unicode2string("CFB")],
padding: CryptoJS.pad[unicode2string("Iso97971")]
}).toString();
},
threeEncrypt: function(e, t, o) {
var n = KEY, i = IV;
if (t) {
i = CryptoJS.enc.Utf8.parse(o);
n = CryptoJS.enc.Utf8.parse(t);
}
return CryptoJS[unicode2string("TripleDES")].encrypt(e, n, {
iv: i,
mode: CryptoJS.mode[unicode2string("CTR")],
padding: CryptoJS.pad[unicode2string("AnsiX923")]
}).toString();
},
fourEncrypt: function(e, t, o) {
var n = KEY, i = IV;
if (t) {
i = CryptoJS.enc.Utf8.parse(o);
n = CryptoJS.enc.Utf8.parse(t);
}
return CryptoJS[unicode2string("AES")].encrypt(e, n, {
iv: i,
mode: CryptoJS.mode[unicode2string("ECB")],
padding: CryptoJS.pad[unicode2string("Pkcs7")]
}).toString();
},
fiveEncrypt: function(e, t, o) {
var n = KEY, i = IV;
if (t) {
i = CryptoJS.enc.Utf8.parse(o);
n = CryptoJS.enc.Utf8.parse(t);
}
return CryptoJS[unicode2string("RC4")].encrypt(e, n, {
iv: i,
mode: CryptoJS.mode[unicode2string("CBC")],
padding: CryptoJS.pad[unicode2string("ZeroPadding")]
}).toString();
},
decrypt: function(e, t, o) {
var n = CryptoJS.enc.Utf8.parse(""), i = CryptoJS.enc.Utf8.parse("r922Rv2XBWWxEj52"), a = n;
if (t) {
a = CryptoJS.enc.Utf8.parse(o);
i = CryptoJS.enc.Utf8.parse(t);
}
return CryptoJS.AES.decrypt(e, i, {
iv: a,
mode: CryptoJS.mode.ECB,
padding: CryptoJS.pad.Pkcs7
}).toString(CryptoJS.enc.Utf8);
},
sixEncrypt: function(e, t, o) {
var n = KEY, i = IV;
if (t) {
i = CryptoJS.enc.Utf8.parse(o);
n = CryptoJS.enc.Utf8.parse(t);
}
return CryptoJS[unicode2string("RC4Drop")].encrypt(e, n, {
iv: i,
mode: CryptoJS.mode[unicode2string("CTR")],
padding: CryptoJS.pad[unicode2string("NoPadding")]
}).toString();
},
sevenEncrypt: function(e, t, o) {
var n = KEY, i = IV;
if (t) {
i = CryptoJS.enc.Utf8.parse(o);
n = CryptoJS.enc.Utf8.parse(t);
}
return CryptoJS.AES.encrypt(e, n, {
iv: i,
mode: CryptoJS.mode.ECB,
padding: CryptoJS.pad.Iso10126
}).toString();
},
autoTestEncrypt: function(e, t, o) {
var n = KEY, i = IV;
if (t) {
i = CryptoJS.enc.Utf8.parse(o);
n = CryptoJS.enc.Utf8.parse(t);
}
return CryptoJS[unicode2string("AES")].encrypt(e, n, {
iv: i,
mode: CryptoJS.mode[unicode2string("CBC")],
padding: CryptoJS.pad[unicode2string("NoPadding")]
}).toString();
},
autoTestEncrypt1: function(e, t, o) {
var n = KEY, i = IV;
if (t) {
i = CryptoJS.enc.Utf8.parse(o);
n = CryptoJS.enc.Utf8.parse(t);
}
return CryptoJS[unicode2string("AES")].encrypt(e, n, {
iv: i,
mode: CryptoJS.mode[unicode2string("ECB")],
padding: CryptoJS.pad[unicode2string("Pkcs7")]
}).toString();
},
encryptWechatCallbackState: function(e, t, o, n) {
var i = t + "," + e + "," + o + "," + n, a = CryptoJS.AES.encrypt(i, KEY, {
iv: IV,
mode: CryptoJS.mode.CBC,
padding: CryptoJS.pad.Pkcs7
}).toString();
return encodeURIComponent(a);
}
};
exports.default = encryptWays;
cc._RF.pop();
}, {
"crypto-js": "crypto-js"
} ],
global_editbox_extension: [ function(e, t) {
"use strict";
cc._RF.push(t, "8e0bckOjMdKhobwcknuOYVK", "global_editbox_extension");
var o = cc.EditBox.prototype.editBoxEditingDidBegan, n = cc.EditBox.prototype.editBoxEditingDidEnded;
cc.EditBox.prototype.editBoxEditingDidBegan = function() {
o && o.call(this);
cc.sys.isMobile && cc.systemEvent.emit("global-editbox-began", {
editBox: this
});
};
cc.EditBox.prototype.editBoxEditingDidEnded = function() {
n && n.call(this);
cc.sys.isMobile && cc.systemEvent.emit("global-editbox-ended", {
editBox: this
});
};
cc._RF.pop();
}, {} ],
htmlAfterZcs: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "7a27b8DeulHRpQKUT/BxpXp", "htmlAfterZcs");
Object.defineProperty(o, "__esModule", {
value: !0
});
o.default = '\n    <p style="height: 3px"></p>\n</div>\n</body>\n</html>\n';
cc._RF.pop();
}, {} ],
htmlAfter: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "ea520JtBC1Jzqxymj2KY379", "htmlAfter");
Object.defineProperty(o, "__esModule", {
value: !0
});
o.default = '\n        <p style="height: 3px"></p>\n    </div>\n    </body>\n    </html>\n';
cc._RF.pop();
}, {} ],
htmlBeforeZcs: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "9a08a7jXXpAcq9vXVHwMXf3", "htmlBeforeZcs");
Object.defineProperty(o, "__esModule", {
value: !0
});
o.default = '\n<!doctype html>\n<html lang="en">\n<head>\n    <meta charset="UTF-8">\n    <meta name="viewport"\n          content="width=device-width, user-scalable=1, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">\n    <meta http-equiv="X-UA-Compatible" content="ie=edge">\n    <title>活动</title>\n    <style>\n        .div {\n            display: block;\n        }\n\n        body {\n            padding: 0;\n            margin: 0;\n            background-color: #313891;\n            font-size: 12px;\n            color: #fff;\n            /*max-width: 100%; !*最大宽度不超过 800 像素*!*/\n        }\n\n        .hd-title {\n            text-align: center;\n        }\n\n        .text {\n            color: #fdfdfd;\n        }\n\n        .main-box {\n            padding: 0 12px;\n        }\n\n        table,\n        th,\n        td {\n            border: 1px solid #318DD6;\n        }\n\n        table {\n            border-collapse: collapse;\n            max-width: 100%;\n        }\n\n        th {\n            line-height: 30px;\n        }\n\n        th,\n        td {\n            text-align: center;\n        }\n\n        th {\n            background: #318DD6;\n            color: #000;\n        }\n\n        td {\n            color: #fdfdfd;\n        }\n\n        .title {\n            font-size: 16px;\n            font-weight: bold;\n            color: #fff;\n        }\n\n        .but {\n            background: linear-gradient(#2ad6fd, #0088fe);\n            width: 200px;\n            height: 42px;\n            border-radius: 42px;\n            line-height: 42px;\n            font-size: 18px;\n            font-weight: 400;\n            text-align: center;\n            margin: 0 auto;\n            color: #fff;\n        }\n    </style>\n    <style>.vfinder-info a,\n    .vfinder-info div {\n        color: #dedede;\n    }\n\n    .vfinder-info *,\n    .vfinder-code * {\n        margin: 0;\n        padding: 0;\n        border-width: 0;\n        background: transparent;\n    }\n\n    .vfinder-info > div {\n        padding: 4px 12px;\n    }\n\n    .vfinder-info > div:hover {\n        background: rgba(140, 140, 140, 0.36);\n    }\n\n    .vfinder-info {\n        position: fixed;\n        border-radius: 4px;\n        padding: 5px 0;\n        background: rgba(64, 64, 64, 0.9);\n\n        /*    padding: 10px 18px;*/\n        z-index: 9999999;\n        border: 1px solid rgb(143, 143, 143);\n        font-size: 13px;\n    }\n\n    .vfinder-info:after {\n        position: absolute;\n        content: " ";\n        width: 10px;\n        height: 10px;\n        -webkit-transform: rotate(45deg);\n        background: rgba(64, 64, 64, 0.9);\n        left: -5px;\n        top: 50%;\n        margin-top: -5px;\n    }\n\n    .vfinder-info-name-template {\n        color: #ff7474;\n    }\n\n    .vfinder-info-name-style {\n        color: #17ceff;\n    }\n\n    .vfinder-info-name-script {\n        color: #f281ff;\n    }\n\n    .vfinder-info-name-created {\n        color: #40c22a;\n    }\n\n    .vfinder-info-name-template,\n    .vfinder-info-name-style,\n    .vfinder-info-name-script,\n    .vfinder-info-name-created {\n        display: inline-block;\n        width: 75px;\n    }\n\n    .vfinder-mask {\n        position: fixed;\n        z-index: 9999998;\n        background-color: #588DE1;\n        pointer-events: none;\n    }\n\n    .vfinder-code {\n        position: fixed;\n        /*    padding: 10px;*/\n        /*    background: rgba(254, 255, 221, 0.9);*/\n        background: rgba(64, 64, 64, 0.9);\n        max-width: 400px;\n        font-size: 10px;\n        z-index: 10000000;\n        word-wrap: break-word;\n        border-radius: 4px;\n        /*    color: #747474;*/\n        color: #dedede;\n        border: 1px solid rgba(222, 222, 222, 0.34);\n    }\n\n    .vfinder-path::-webkit-scrollbar,\n    .vfinder-code-content::-webkit-scrollbar {\n        height: 8px;\n        width: 8px;\n    }\n\n    .vfinder-path::-webkit-scrollbar-thumb,\n    .vfinder-code-content::-webkit-scrollbar-thumb {\n        background: rgba(103, 103, 103, 0.9);\n        border-radius: 4px;\n    }\n\n    .vfinder-path::-webkit-scrollbar-track,\n    .vfinder-code-content::-webkit-scrollbar-track {\n        background: #ddd;\n        border-radius: 4px;\n    }\n\n\n    .vfinder-code-content {\n        padding: 0 10px;\n        overflow: auto;\n        max-height: 260px;\n    }\n\n    .vfinder-code-content p {\n        padding: 2px 6px 2px 0;\n    }\n\n    .vfinder-code-content > pre {\n        float: left;\n        clear: left;\n        white-space: nowrap;\n    }\n\n    .vfinder-current-code-line {\n        background: rgba(234, 102, 223, 0.25);\n        border-radius: 2px;\n    }\n\n    .vfinder-path {\n        padding: 10px;\n        border-bottom: 1px solid rgba(222, 222, 222, 0.34);\n        background: rgba(140, 140, 140, 0.36);\n        white-space: nowrap;\n        overflow-x: auto;\n    }\n\n    .vfinder-line-count {\n        color: #dedede;\n        min-width: 25px;\n        display: inline-block;\n    }\n\n\n    </style>\n    <style>/*\n  IR_Black style (c) Vasily Mikhailitchenko <vaskas@programica.ru>\n*/\n\n    .hljs {\n        display: block;\n        overflow-x: auto;\n        padding: 0.5em;\n        background: #000;\n        color: #f8f8f8;\n    }\n\n    .hljs-comment,\n    .hljs-quote,\n    .hljs-meta {\n        color: #7c7c7c;\n    }\n\n    .hljs-keyword,\n    .hljs-selector-tag,\n    .hljs-tag,\n    .hljs-name {\n        color: #96cbfe;\n    }\n\n    .hljs-attribute,\n    .hljs-selector-id {\n        color: #ffffb6;\n    }\n\n    .hljs-string,\n    .hljs-selector-attr,\n    .hljs-selector-pseudo,\n    .hljs-addition {\n        color: #a8ff60;\n    }\n\n    .hljs-subst {\n        color: #daefa3;\n    }\n\n    .hljs-regexp,\n    .hljs-link {\n        color: #e9c062;\n    }\n\n    .hljs-title,\n    .hljs-section,\n    .hljs-type,\n    .hljs-doctag {\n        color: #ffffb6;\n    }\n\n    .hljs-symbol,\n    .hljs-bullet,\n    .hljs-variable,\n    .hljs-template-variable,\n    .hljs-literal {\n        color: #c6c5fe;\n    }\n\n    .hljs-number,\n    .hljs-deletion {\n        color: #ff73fd;\n    }\n\n    .hljs-emphasis {\n        font-style: italic;\n    }\n\n    .hljs-strong {\n        font-weight: bold;\n    }\n\n    .aff{\n        padding: 10px;\n    }\n\n    img {\n        max-width: 100vw;\n    }\n\n    table{\n        border: 1px;\n        width: 96%;\n        margin: 10px 2% 0 2%;\n    }\n    .c_ydc {\n      color: green;\n    }\n    /*未达成颜色*/\n    .c_wdc {\n      color: red;\n    }\n    .btnLq {\n      display: inline-block;\n      padding: 4px 8px;\n      \n      /*width: 40px;*/\n      height: 23px;\n      background: #46a8fe;\n      text-align: center;\n      border-radius: 3px;\n      line-height: 23px;\n      color: #fff;\n    }\n    </style>\n    <script >\n        window["nowVue"] = {\n            linqu:function(activityId, detailId){\n                document.location = \'http://activityId=\'+activityId+\'&detailId=\'+detailId;\n            }\n        };\n    <\/script>\n</head>\n<body>\n\x3c!--body下 必须用一个 class为aff的div包裹起来，以方便APP那边计算网页高度--\x3e\n<div class="aff">\n';
cc._RF.pop();
}, {} ],
htmlBefore: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "af726p1RIRLiZuWzq9qYHin", "htmlBefore");
Object.defineProperty(o, "__esModule", {
value: !0
});
o.default = '\n    <!doctype html>\n<html lang="en">\n<head>\n    <meta charset="UTF-8">\n    <meta name="viewport"\n          content="width=device-width, user-scalable=1, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">\n    <meta http-equiv="X-UA-Compatible" content="ie=edge">\n    <title>活动</title>\n    <style>\n        .div{\n            display: block;\n        }\n        body {\n            padding: 0;\n            margin: 0;\n            background-color: #313891;\n            font-size: 12px;\n            color: #fff;\n            /*max-width: 100%; !*最大宽度不超过 800 像素*!*/\n        }\n\n        .hd-title {\n            text-align: center;\n        }\n\n        .text {\n            color: #fdfdfd;\n        }\n\n        .main-box {\n            padding: 0 12px;\n        }\n\n        table,\n        th,\n        td {\n            border: 1px solid #318DD6;\n        }\n\n        table {\n            border-collapse: collapse;\n            max-width: 100%;\n        }\n\n        th {\n            line-height: 30px;\n        }\n\n        th,\n        td {\n            text-align: center;\n        }\n\n        th {\n            background: #318DD6;\n            color: #000;\n        }\n\n        td {\n            color: #fdfdfd;\n        }\n\n        .title {\n            font-size: 16px;\n            font-weight: bold;\n            color: #fff;\n        }\n\n        .but {\n            background: linear-gradient(#2ad6fd, #0088fe);\n            width: 200px;\n            height: 42px;\n            border-radius: 42px;\n            line-height: 42px;\n            font-size: 18px;\n            font-weight: 400;\n            text-align: center;\n            margin: 0 auto;\n            color: #fff;\n        }\n    </style>\n    <style>.vfinder-info a,\n    .vfinder-info div {\n        color: #dedede;\n    }\n\n    .vfinder-info *,\n    .vfinder-code * {\n        margin: 0;\n        padding: 0;\n        border-width: 0;\n        background: transparent;\n    }\n\n    .vfinder-info > div {\n        padding: 4px 12px;\n    }\n\n    .vfinder-info > div:hover {\n        background: rgba(140, 140, 140, 0.36);\n    }\n\n    .vfinder-info {\n        position: fixed;\n        border-radius: 4px;\n        padding: 5px 0;\n        background: rgba(64, 64, 64, 0.9);\n\n        /*    padding: 10px 18px;*/\n        z-index: 9999999;\n        border: 1px solid rgb(143, 143, 143);\n        font-size: 13px;\n    }\n\n    .vfinder-info:after {\n        position: absolute;\n        content: " ";\n        width: 10px;\n        height: 10px;\n        -webkit-transform: rotate(45deg);\n        background: rgba(64, 64, 64, 0.9);\n        left: -5px;\n        top: 50%;\n        margin-top: -5px;\n    }\n\n    .vfinder-info-name-template {\n        color: #ff7474;\n    }\n\n    .vfinder-info-name-style {\n        color: #17ceff;\n    }\n\n    .vfinder-info-name-script {\n        color: #f281ff;\n    }\n\n    .vfinder-info-name-created {\n        color: #40c22a;\n    }\n\n    .vfinder-info-name-template,\n    .vfinder-info-name-style,\n    .vfinder-info-name-script,\n    .vfinder-info-name-created {\n        display: inline-block;\n        width: 75px;\n    }\n\n    .vfinder-mask {\n        position: fixed;\n        z-index: 9999998;\n        background-color: #588DE1;\n        pointer-events: none;\n    }\n\n    .vfinder-code {\n        position: fixed;\n        /*    padding: 10px;*/\n        /*    background: rgba(254, 255, 221, 0.9);*/\n        background: rgba(64, 64, 64, 0.9);\n        max-width: 400px;\n        font-size: 10px;\n        z-index: 10000000;\n        word-wrap: break-word;\n        border-radius: 4px;\n        /*    color: #747474;*/\n        color: #dedede;\n        border: 1px solid rgba(222, 222, 222, 0.34);\n    }\n\n    .vfinder-path::-webkit-scrollbar,\n    .vfinder-code-content::-webkit-scrollbar {\n        height: 8px;\n        width: 8px;\n    }\n\n    .vfinder-path::-webkit-scrollbar-thumb,\n    .vfinder-code-content::-webkit-scrollbar-thumb {\n        background: rgba(103, 103, 103, 0.9);\n        border-radius: 4px;\n    }\n\n    .vfinder-path::-webkit-scrollbar-track,\n    .vfinder-code-content::-webkit-scrollbar-track {\n        background: #ddd;\n        border-radius: 4px;\n    }\n\n\n    .vfinder-code-content {\n        padding: 0 10px;\n        overflow: auto;\n        max-height: 260px;\n    }\n\n    .vfinder-code-content p {\n        padding: 2px 6px 2px 0;\n    }\n\n    .vfinder-code-content > pre {\n        float: left;\n        clear: left;\n        white-space: nowrap;\n    }\n\n    .vfinder-current-code-line {\n        background: rgba(234, 102, 223, 0.25);\n        border-radius: 2px;\n    }\n\n    .vfinder-path {\n        padding: 10px;\n        border-bottom: 1px solid rgba(222, 222, 222, 0.34);\n        background: rgba(140, 140, 140, 0.36);\n        white-space: nowrap;\n        overflow-x: auto;\n    }\n\n    .vfinder-line-count {\n        color: #dedede;\n        min-width: 25px;\n        display: inline-block;\n    }\n\n\n    </style>\n    <style>/*\n  IR_Black style (c) Vasily Mikhailitchenko <vaskas@programica.ru>\n*/\n\n    .hljs {\n        display: block;\n        overflow-x: auto;\n        padding: 0.5em;\n        background: #000;\n        color: #f8f8f8;\n    }\n\n    .hljs-comment,\n    .hljs-quote,\n    .hljs-meta {\n        color: #7c7c7c;\n    }\n\n    .hljs-keyword,\n    .hljs-selector-tag,\n    .hljs-tag,\n    .hljs-name {\n        color: #96cbfe;\n    }\n\n    .hljs-attribute,\n    .hljs-selector-id {\n        color: #ffffb6;\n    }\n\n    .hljs-string,\n    .hljs-selector-attr,\n    .hljs-selector-pseudo,\n    .hljs-addition {\n        color: #a8ff60;\n    }\n\n    .hljs-subst {\n        color: #daefa3;\n    }\n\n    .hljs-regexp,\n    .hljs-link {\n        color: #e9c062;\n    }\n\n    .hljs-title,\n    .hljs-section,\n    .hljs-type,\n    .hljs-doctag {\n        color: #ffffb6;\n    }\n\n    .hljs-symbol,\n    .hljs-bullet,\n    .hljs-variable,\n    .hljs-template-variable,\n    .hljs-literal {\n        color: #c6c5fe;\n    }\n\n    .hljs-number,\n    .hljs-deletion {\n        color: #ff73fd;\n    }\n\n    .hljs-emphasis {\n        font-style: italic;\n    }\n\n    .hljs-strong {\n        font-weight: bold;\n    }\n    img{\n        max-width:100vw;\n    }\n    .centered-image {\n        display: block;\n        margin-left: auto;\n        margin-right: auto;\n    }\n    </style>\n</head>\n<body>\n\x3c!--body下 必须用一个 class为aff的div包裹起来，以方便APP那边计算网页高度--\x3e\n<div class="aff">\n';
cc._RF.pop();
}, {} ],
jsb_runtime_md5: [ function(e, t, o) {
"use strict";
cc._RF.push(t, "8950bAwurdDgYUSBnbUYTWF", "jsb_runtime_md5");
Object.defineProperty(o, "__esModule", {
value: !0
});
o.default = function(e) {
function t(e, t, o) {
return e & t | ~e & o;
}
function o(e, t, o) {
return o & e | ~o & t;
}
function n(e, t, o) {
return e ^ t ^ o;
}
function i(e, t, o) {
return t ^ (e | ~o);
}
function a(e, t) {
return e[t + 3] << 24 | e[t + 2] << 16 | e[t + 1] << 8 | e[t];
}
if (!(e instanceof Uint8Array)) {
(function() {
try {
console.log("input data type mismatch only support Uint8Array");
} catch (e) {}
})();
return null;
}
for (var r = [], c = 0; c < e.byteLength; c++) r.push(e[c]);
var s = r.length;
r.push(128);
var l = r.length % 64;
if (l > 56) {
for (c = 0; c < 64 - l; c++) r.push(0);
l = r.length % 64;
}
for (c = 0; c < 56 - l; c++) r.push(0);
r = r.concat(function(e) {
for (var t = [], o = 0; o < 8; o++) {
t.push(255 & e);
e >>>= 8;
}
return t;
}(8 * s));
var d = 1732584193, u = 4023233417, p = 2562383102, h = 271733878, f = 0, g = 0, y = 0, m = 0;
function v(e, t) {
return 4294967295 & e + t;
}
var b = function(e, t, o, n) {
var i, a, r = m;
m = y;
y = g;
g = v(g, (i = v(f, v(e, v(t, o)))) << (a = n) & 4294967295 | i >>> 32 - a);
f = r;
};
for (c = 0; c < r.length / 64; c++) {
f = d;
var _ = 64 * c;
b(t(g = u, y = p, m = h), 3614090360, a(r, _), 7);
b(t(g, y, m), 3905402710, a(r, _ + 4), 12);
b(t(g, y, m), 606105819, a(r, _ + 8), 17);
b(t(g, y, m), 3250441966, a(r, _ + 12), 22);
b(t(g, y, m), 4118548399, a(r, _ + 16), 7);
b(t(g, y, m), 1200080426, a(r, _ + 20), 12);
b(t(g, y, m), 2821735955, a(r, _ + 24), 17);
b(t(g, y, m), 4249261313, a(r, _ + 28), 22);
b(t(g, y, m), 1770035416, a(r, _ + 32), 7);
b(t(g, y, m), 2336552879, a(r, _ + 36), 12);
b(t(g, y, m), 4294925233, a(r, _ + 40), 17);
b(t(g, y, m), 2304563134, a(r, _ + 44), 22);
b(t(g, y, m), 1804603682, a(r, _ + 48), 7);
b(t(g, y, m), 4254626195, a(r, _ + 52), 12);
b(t(g, y, m), 2792965006, a(r, _ + 56), 17);
b(t(g, y, m), 1236535329, a(r, _ + 60), 22);
b(o(g, y, m), 4129170786, a(r, _ + 4), 5);
b(o(g, y, m), 3225465664, a(r, _ + 24), 9);
b(o(g, y, m), 643717713, a(r, _ + 44), 14);
b(o(g, y, m), 3921069994, a(r, _), 20);
b(o(g, y, m), 3593408605, a(r, _ + 20), 5);
b(o(g, y, m), 38016083, a(r, _ + 40), 9);
b(o(g, y, m), 3634488961, a(r, _ + 60), 14);
b(o(g, y, m), 3889429448, a(r, _ + 16), 20);
b(o(g, y, m), 568446438, a(r, _ + 36), 5);
b(o(g, y, m), 3275163606, a(r, _ + 56), 9);
b(o(g, y, m), 4107603335, a(r, _ + 12), 14);
b(o(g, y, m), 1163531501, a(r, _ + 32), 20);
b(o(g, y, m), 2850285829, a(r, _ + 52), 5);
b(o(g, y, m), 4243563512, a(r, _ + 8), 9);
b(o(g, y, m), 1735328473, a(r, _ + 28), 14);
b(o(g, y, m), 2368359562, a(r, _ + 48), 20);
b(n(g, y, m), 4294588738, a(r, _ + 20), 4);
b(n(g, y, m), 2272392833, a(r, _ + 32), 11);
b(n(g, y, m), 1839030562, a(r, _ + 44), 16);
b(n(g, y, m), 4259657740, a(r, _ + 56), 23);
b(n(g, y, m), 2763975236, a(r, _ + 4), 4);
b(n(g, y, m), 1272893353, a(r, _ + 16), 11);
b(n(g, y, m), 4139469664, a(r, _ + 28), 16);
b(n(g, y, m), 3200236656, a(r, _ + 40), 23);
b(n(g, y, m), 681279174, a(r, _ + 52), 4);
b(n(g, y, m), 3936430074, a(r, _), 11);
b(n(g, y, m), 3572445317, a(r, _ + 12), 16);
b(n(g, y, m), 76029189, a(r, _ + 24), 23);
b(n(g, y, m), 3654602809, a(r, _ + 36), 4);
b(n(g, y, m), 3873151461, a(r, _ + 48), 11);
b(n(g, y, m), 530742520, a(r, _ + 60), 16);
b(n(g, y, m), 3299628645, a(r, _ + 8), 23);
b(i(g, y, m), 4096336452, a(r, _), 6);
b(i(g, y, m), 1126891415, a(r, _ + 28), 10);
b(i(g, y, m), 2878612391, a(r, _ + 56), 15);
b(i(g, y, m), 4237533241, a(r, _ + 20), 21);
b(i(g, y, m), 1700485571, a(r, _ + 48), 6);
b(i(g, y, m), 2399980690, a(r, _ + 12), 10);
b(i(g, y, m), 4293915773, a(r, _ + 40), 15);
b(i(g, y, m), 2240044497, a(r, _ + 4), 21);
b(i(g, y, m), 1873313359, a(r, _ + 32), 6);
b(i(g, y, m), 4264355552, a(r, _ + 60), 10);
b(i(g, y, m), 2734768916, a(r, _ + 24), 15);
b(i(g, y, m), 1309151649, a(r, _ + 52), 21);
b(i(g, y, m), 4149444226, a(r, _ + 16), 6);
b(i(g, y, m), 3174756917, a(r, _ + 44), 10);
b(i(g, y, m), 718787259, a(r, _ + 8), 15);
b(i(g, y, m), 3951481745, a(r, _ + 36), 21);
d = v(d, f);
u = v(u, g);
p = v(p, y);
h = v(h, m);
}
return function(e, t, o, n) {
for (var i, a, r, c = "", s = 0, l = 0, d = 3; d >= 0; d--) {
s = 255 & (l = arguments[d]);
s <<= 8;
s |= 255 & (l >>>= 8);
s <<= 8;
s |= 255 & (l >>>= 8);
s <<= 8;
c += (a = void 0, r = void 0, a = ((i = s |= l >>>= 8) >>> 24).toString(16), r = (16777215 & i).toString(16), 
"00".substr(0, 2 - a.length) + a + "000000".substr(0, 6 - r.length) + r);
}
return c;
}(h, p, u, d).toLowerCase();
};
cc._RF.pop();
}, {} ],
"polyglot.min": [ function(e, t, o) {
"use strict";
cc._RF.push(t, "e26fd9yy65A4q3/JkpVnFYg", "polyglot.min");
(function(e, n) {
"function" == typeof define && define.amd ? define([], function() {
return n(e);
}) : "object" == typeof o ? t.exports = n(e) : e.Polyglot = n(e);
})(void 0, function(e) {
function t(e) {
e = e || {}, this.phrases = {}, this.extend(e.phrases || {}), this.currentLocale = e.locale || "en", 
this.allowMissing = !!e.allowMissing, this.warn = e.warn || s;
}
function o(e) {
var t, o, n, i = {};
for (t in e) if (e.hasOwnProperty(t)) {
o = e[t];
for (n in o) i[o[n]] = t;
}
return i;
}
function n(e) {
return e.replace(/^\s+|\s+$/g, "");
}
function i(e, t, o) {
var i;
return null != o && e ? n((i = e.split(d))[r(t, o)] || i[0]) : e;
}
function a(e) {
var t = o(p);
return t[e] || t.en;
}
function r(e, t) {
return u[a(e)](t);
}
function c(e, t) {
for (var o in t) "_" !== o && t.hasOwnProperty(o) && (e = e.replace(new RegExp("%\\{" + o + "\\}", "g"), t[o]));
return e;
}
function s(t) {
e.console && e.console.warn && e.console.warn("WARNING: " + t);
}
function l(e) {
var t = {};
for (var o in e) t[o] = e[o];
return t;
}
t.VERSION = "0.4.3", t.prototype.locale = function(e) {
return e && (this.currentLocale = e), this.currentLocale;
}, t.prototype.extend = function(e, t) {
var o;
for (var n in e) e.hasOwnProperty(n) && (o = e[n], t && (n = t + "." + n), "object" == typeof o ? this.extend(o, n) : this.phrases[n] = o);
}, t.prototype.clear = function() {
this.phrases = {};
}, t.prototype.replace = function(e) {
this.clear(), this.extend(e);
}, t.prototype.t = function(e, t) {
var o, n;
return "number" == typeof (t = null == t ? {} : t) && (t = {
smart_count: t
}), "string" == typeof this.phrases[e] ? o = this.phrases[e] : "string" == typeof t._ ? o = t._ : this.allowMissing ? o = e : (this.warn('Missing translation for key: "' + e + '"'), 
n = e), "string" == typeof o && (t = l(t), n = c(n = i(o, this.currentLocale, t.smart_count), t)), 
n;
}, t.prototype.has = function(e) {
return e in this.phrases;
};
var d = "||||", u = {
chinese: function() {
return 0;
},
german: function(e) {
return 1 !== e ? 1 : 0;
},
french: function(e) {
return e > 1 ? 1 : 0;
},
russian: function(e) {
return e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2;
},
czech: function(e) {
return 1 === e ? 0 : e >= 2 && e <= 4 ? 1 : 2;
},
polish: function(e) {
return 1 === e ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2;
},
icelandic: function(e) {
return e % 10 != 1 || e % 100 == 11 ? 1 : 0;
}
}, p = {
chinese: [ "fa", "id", "ja", "ko", "lo", "ms", "th", "tr", "zh" ],
german: [ "da", "de", "en", "es", "fi", "el", "he", "hu", "it", "nl", "no", "pt", "sv" ],
french: [ "fr", "tl", "pt-br" ],
russian: [ "hr", "ru" ],
czech: [ "cs" ],
polish: [ "pl" ],
icelandic: [ "is" ]
};
return t;
});
cc._RF.pop();
}, {} ],
use_reversed_rotateBy: [ function(e, t) {
"use strict";
cc._RF.push(t, "ccecaKb1lVEKLDovcFc7qUD", "use_reversed_rotateBy");
cc.RotateBy._reverse = !0;
cc._RF.pop();
}, {} ],
"use_v2.1-2.2.1_cc.Toggle_event": [ function(e, t) {
"use strict";
cc._RF.push(t, "358e0zoJQ1N4YiNir49ReFD", "use_v2.1-2.2.1_cc.Toggle_event");
cc.Toggle && (cc.Toggle._triggerEventInScript_isChecked = !0);
cc._RF.pop();
}, {} ]
}, {}, [ "CommonProgressBar", "CommonToggleContainer", "ConfirmBox", "EllipticalStage", "GlobalUtils", "HideTailLabel", "RateTips", "RemoteSprite", "Signal", "SimpleScrollView", "ToastUI", "ToggleItem", "AccountAuthUI", "Activity", "ActivityAndTask", "ActivityApplyStatus", "ActivityData", "RecommendActivity", "Submit", "BaoxiangAni", "ChangeMusicLayer", "CheckHotUpdate", "ChessAndCardLayer", "CustomerServiceUI", "DownloadFailedImages", "ESportsLayer", "ElectronicLayer", "FilterGameType", "FishLayer", "FixToolUI", "GamesConfig", "HallUI", "LiveVideoLayer", "LoadingUI", "LoginCompleteInformation", "LoginCurrencyChoose", "LoginQuickRegister", "LoginUI", "LotteryLayer", "MailBoxUI", "NoticeUI", "PlayerBalanceUI", "BalanceDetails", "BasicPlayerInfoLayer", "BetRecordLayer", "ChangeHeadUI", "PlayerCenterUI", "RankingListUI", "ReceiveAwardAni", "IRechargeLayer", "RechargeAgentLayer", "RechargeCodeLayer", "RechargeCourse", "RechargeInfoUI", "RechargeOfflineLayer", "RechargeOnlineLayer", "RechargeQuickLayer", "RechargeRecordsUI", "RechargeUI", "RechargeUSDTLayer", "RecommendBank", "RegisterUI", "SettingLayer", "BindDevice", "ChangeLanguageLayer", "SettingLayerDevelop", "CustomButton", "SignData", "SignIn", "SignInPop", "SportsLayer", "CommitData", "RecommendTask", "ShareToWeChat", "TaskData", "TaskDetail", "TaskLayer", "TaskShare", "TaskShareClick", "TaskShareFriend", "TaskShareImage", "TaskShareIntroduce", "TaskShareVideo", "ThirdGameItem", "ThirdGamesListUI", "TopElectronicUI", "TopGamesLayer", "CaiFuBang", "Introduce", "MyAgent", "PlayerCheck", "ReceiveRecords", "ScoreCheck", "ScoreDetails", "Share", "ShareDetails", "TaskAgent", "TaskHtmlBefore", "TuiGuangLayer", "TuiguangHtmlBefore", "ZhiShuDetails", "VerificationSMSLayer", "VerificationUI", "VipLayer", "VistorLoginTips", "WeChatBindMethods", "WeChatBindShareLayer", "WeChatBindTutorialGroup", "WeChatBindTutorialGroupItem", "WechatBindTutorial", "WechatNotice", "WechatNoticeData", "IWithdrawalLayer", "SelectBankLayer", "SelfHelpWithdrawalLayer", "WalletManagerLayer", "WithdrawUI", "WithdrawalRecordLayer", "RatDetails", "Tool", "XiMaBiLi", "XiMaJiLu", "XimaDetails", "XimaLayer", "ZiZhuXiMa", "YueBaoDetail", "YueBaoInstruction", "YueBaoLayer", "YueBaoMoveIn", "YueBaoMoveOut", "YueBaoNotice", "HotUpdate", "LaunchScene", "LaunchSignal", "crypto-js", "jsb_runtime_md5", "GameList", "MsgCenterData", "NoticeData", "Player", "YinShangAccount", "AddressManager", "AppGameInfo", "AudioManager", "CQRCode", "Constant", "EnterSoundManager", "Extend", "Global", "ImageCache", "NativeCallback", "Network", "NetworkLogic", "PackageConfig", "PingTool", "PopWindowManager", "SDKManager", "SHORT_BU66_SDK", "UIManager", "Utils", "WebViewManager", "encryptionWay", "htmlAfter", "htmlAfterZcs", "htmlBefore", "htmlBeforeZcs", "Test", "global_editbox_extension", "Analytic", "CaptchaManager", "CaptchaMock", "OpenShare", "Semver", "use_reversed_rotateBy", "use_v2.1-2.2.1_cc.Toggle_event", "LanguageData", "LocalizedLabel", "LocalizedSprite", "SpriteFrameSet", "polyglot.min" ]);