window.__require = function t(e, n, i) {
function o(_, d) {
if (!n[_]) {
if (!e[_]) {
var r = _.split("/");
r = r[r.length - 1];
if (!e[r]) {
var s = "function" == typeof __require && __require;
if (!d && s) return s(r, !0);
if (a) return a(r, !0);
throw new Error("Cannot find module '" + _ + "'");
}
_ = r;
}
var c = n[_] = {
exports: {}
};
e[_][0].call(c.exports, function(t) {
return o(e[_][1][t] || t);
}, c, c.exports, t, e, n, i);
}
return n[_].exports;
}
for (var a = "function" == typeof __require && __require, _ = 0; _ < i.length; _++) o(i[_]);
return o;
}({
AD_htdjd_GameBanner2: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "1a3d1qICbRDlbBCF5cIe4NN", "AD_htdjd_GameBanner2");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("./AD_htdjd_WXBanner"), d = t("../../Util/App_htdjd_Platform"), r = t("../../Platform/WX/WXAPI"), s = t("../../Config/AppSwitchConfig"), c = t("../../Mgr/wudian_htdjd_Mgr"), h = cc._decorator, l = h.ccclass, p = (h.property, 
function(t) {
o(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
e.prototype.refreshWXBanner_htdjd = function() {
t.prototype.refreshWXBanner_htdjd.call(this);
};
e.prototype.refresh_htdjd = function() {
this.refreshBanner_htdjd();
};
e.prototype.needShow_htdjd = function() {
var t = null;
d.default.is_WECHAT_GAME_htdjd() && (t = r.default.getLaunchOptionsSync_htdjd().scene);
console.log("========launchScene========>>>>", t);
for (var e = !0, n = s.default.getInstance_htdjd().getAppSwitchData_htdjd().wudianSceneList_htdjd, i = 0; i < n.length; ++i) t == n[i] && (e = !1);
console.log("========noEnterBySearch========>>>>", e);
return c.default.htdjd_GetIpBlocked_htdjd() && e;
};
return a([ l ], e);
}(_.default));
n.default = p;
cc._RF.pop();
}, {
"../../Config/AppSwitchConfig": "AppSwitchConfig",
"../../Mgr/wudian_htdjd_Mgr": "wudian_htdjd_Mgr",
"../../Platform/WX/WXAPI": "WXAPI",
"../../Util/App_htdjd_Platform": "App_htdjd_Platform",
"./AD_htdjd_WXBanner": "AD_htdjd_WXBanner"
} ],
AD_htdjd_GameBanner: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "b414c6O5DBCz4NsN6tX7a/4", "AD_htdjd_GameBanner");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("./AD_htdjd_WXBanner"), d = t("../../Util/App_htdjd_Platform"), r = t("../../Platform/WX/WXAPI"), s = t("../../Config/AppSwitchConfig"), c = t("../../Mgr/wudian_htdjd_Mgr"), h = cc._decorator, l = h.ccclass, p = (h.property, 
function(t) {
o(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
e.prototype.needShow_htdjd = function() {
var t = null;
d.default.is_WECHAT_GAME_htdjd() && (t = r.default.getLaunchOptionsSync_htdjd().scene);
for (var e = !0, n = s.default.getInstance_htdjd().getAppSwitchData_htdjd().wudianSceneList_htdjd, i = 0; i < n.length; ++i) t == n[i] && (e = !1);
return c.default.htdjd_GetIpBlocked_htdjd() && e;
};
e.prototype.refresh_htdjd = function() {
this.refreshWXBanner_htdjd();
};
return a([ l ], e);
}(_.default));
n.default = p;
cc._RF.pop();
}, {
"../../Config/AppSwitchConfig": "AppSwitchConfig",
"../../Mgr/wudian_htdjd_Mgr": "wudian_htdjd_Mgr",
"../../Platform/WX/WXAPI": "WXAPI",
"../../Util/App_htdjd_Platform": "App_htdjd_Platform",
"./AD_htdjd_WXBanner": "AD_htdjd_WXBanner"
} ],
AD_htdjd_ListView: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "147d4lAHtdE+7v8H7JuuNc6", "AD_htdjd_ListView");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _, d = t("./KRQ_htdjd_Base"), r = t("../../Interface/FM_htdjd_Interface"), s = t("../../Net/GameMatrixControl"), c = t("../../Util/App_htdjd_Platform"), h = cc._decorator, l = h.ccclass, p = h.property, u = h.menu, f = h.disallowMultiple;
(function(t) {
t[t.AUTO_VIEW = 1] = "AUTO_VIEW";
t[t.FIX_VIEW = 2] = "FIX_VIEW";
t[t.FIX_VIEW_NO_ACT = 3] = "FIX_VIEW_NO_ACT";
})(_ || (_ = {}));
var y = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.scrollView = null;
e.cloneItem = null;
e.AdLocationType = s.ComponentStyle.h_slider;
e.maxRowNum = 2;
e.itemStartX = 0;
e.itemStartY = 0;
e.viewType = _.FIX_VIEW;
e.itemGapHeight = 0;
e.itemGapWidth = 0;
e.moveEndSum = 0;
e.itemRankSum = 2;
e.stopWaitTimeSum = 0;
e.moveSpeed = 3;
e.showCount = 5;
e.stopWaitTime_htdjd = 0;
e.isTouchView_htdjd = !1;
e._AdPosID_htdjd = -1;
e.state_htdjd = -1;
e.moveWay_htdjd = 0;
e.moveEndPoint_htdjd = 0;
e.moveMaxLength_htdjd = 0;
e.adAllDatas_htdjd = [];
e.m_itemWidth = 0;
return e;
}
e.prototype.onLoad = function() {
var t = this;
(c.default.is_QQ_PLAY_htdjd() || c.default.is_TT_GAME_htdjd() || c.default.is_OPPO_GAME_htdjd() || c.default.is_VIVO_GAME_htdjd()) && this.node.destroy();
this.scrollView.content.removeAllChildren();
this.scrollView.content.setAnchorPoint(cc.v2(0, 1));
this.scrollView.elastic = !1;
this.cloneItem.active = !1;
this.cloneItem.anchorX = .5;
this.cloneItem.anchorY = .5;
this.scrollView.node.on("scroll-ended", function() {
t.isTouchView_htdjd = !1;
t.setState_htdjd(1);
}, this);
this.scrollView.node.on("scroll-began", function() {
t.isTouchView_htdjd = !0;
}, this);
};
e.prototype.start = function() {
var t = this;
this.isTouchView_htdjd = !1;
this.scrollView.content.removeAllChildren();
this.setState_htdjd(-1);
this.schedule(this.onUpdateMove_htdjd, 0, cc.macro.REPEAT_FOREVER);
setTimeout(function() {
t.updateDatas();
}, 200);
};
e.prototype.updateDatas = function() {
var t = s.default.getInstance().getDataByStyleAndCount(this.AdLocationType, this.showCount);
if (null != t) {
s.default.getInstance().addShowRecord(this.AdLocationType);
var e = .6;
this.adAllDatas_htdjd = t;
console.log(this.adAllDatas_htdjd);
for (var n = this.itemRankSum * this.maxRowNum, i = 0, o = 0, a = 0, c = this.itemStartY, h = this.itemStartX, l = function(s) {
var l = t[s], u = cc.instantiate(p.cloneItem);
e = u.scaleX;
p.m_itemWidth = u.width * e;
u.active = !0;
var f = u.getComponent(d.default);
f.setData_htdjd(l);
p.scrollView.content.addChild(u);
if (p.scrollView.horizontal) {
if (0 == i) {
o = h + u.width / 2 * e;
h = h + u.width * e + p.itemGapWidth;
a = -p.itemStartY;
}
a -= u.height / 2 * e;
u.x = o;
u.y = a;
a -= u.height / 2 * e;
a -= p.itemGapHeight;
(i += 1) >= p.itemRankSum && (i = 0);
} else {
if (0 == i) {
a = -(c + u.height / 2 * e);
c = c + u.height * e + p.itemGapHeight;
o = p.itemStartX;
}
o += u.width / 2 * e;
u.x = o;
u.y = a;
o += u.width / 2 * e;
o += p.itemGapWidth;
(i += 1) >= p.itemRankSum && (i = 0);
}
if (p.viewType == _.FIX_VIEW) {
f.setCallClickListener_htdjd(r.handleFM_htdjd(function() {
var e = t[Math.floor(Math.random() * t.length)];
f.setData_htdjd(e);
}, p));
p.htdjd_playAni_htdjd(u);
if ((n -= 1) <= 0) return "break";
} else if (p.viewType == _.FIX_VIEW_NO_ACT) {
f.setCallClickListener_htdjd(r.handleFM_htdjd(function() {
var e = t[Math.floor(Math.random() * t.length)];
f.setData_htdjd(e);
}, p));
if ((n -= 1) <= 0) return "break";
}
}, p = this, u = 0; u < t.length && "break" !== l(u); u++) ;
if (this.viewType == _.AUTO_VIEW) {
if (this.scrollView.horizontal) {
this.scrollView.content.width = h;
this.moveMaxLength_htdjd = h - this.scrollView.node.width;
} else {
this.scrollView.content.height = c;
this.moveMaxLength_htdjd = c - this.scrollView.node.height;
}
this.moveMaxLength_htdjd < 0 && (this.moveMaxLength_htdjd = 0);
this.moveSpeed <= 0 ? this.setState_htdjd(-1) : this.scrollView.horizontal ? this.scrollView.content.width <= this.scrollView.node.width ? this.setState_htdjd(-1) : this.setState_htdjd(0) : this.scrollView.vertical && (this.scrollView.content.height <= this.scrollView.node.height ? this.setState_htdjd(-1) : this.setState_htdjd(0));
} else this.setState_htdjd(-1);
this._listneRefresh_htdjd && r.callFM_htdjd(this._listneRefresh_htdjd, this.scrollView.content, this.adAllDatas_htdjd);
}
};
e.prototype.setListenerRefresh_htdjd = function(t) {
this._listneRefresh_htdjd = t;
};
e.prototype.onUpdateMove_htdjd = function() {
if (this.viewType == _.AUTO_VIEW && !this.isTouchView_htdjd) switch (this.state_htdjd) {
case 0:
this.stopWaitTime_htdjd = this.stopWaitTime_htdjd + 1;
if (this.stopWaitTime_htdjd > this.stopWaitTimeSum) {
this.stopWaitTime_htdjd = 0;
this.setState_htdjd(1);
}
break;

case 1:
break;

case 2:
if (this.scrollView.horizontal) if (0 == this.moveWay_htdjd) {
this.scrollView.content.x = this.scrollView.content.x - this.moveSpeed;
if (this.scrollView.content.x <= -this.moveMaxLength_htdjd) {
this.setState_htdjd(0);
this.moveWay_htdjd = 1;
} else this.scrollView.content.x <= this.moveEndPoint_htdjd && this.setState_htdjd(0);
} else {
this.scrollView.content.x = this.scrollView.content.x + this.moveSpeed;
if (this.scrollView.content.x >= 0) {
this.moveWay_htdjd = 0;
this.setState_htdjd(0);
} else this.scrollView.content.x >= this.moveEndPoint_htdjd && this.setState_htdjd(0);
} else if (this.scrollView.vertical) if (0 == this.moveWay_htdjd) {
this.scrollView.content.y = this.scrollView.content.y + this.moveSpeed;
if (this.scrollView.content.y > this.moveMaxLength_htdjd) {
this.scrollView.content.y = this.moveMaxLength_htdjd;
this.setState_htdjd(0);
this.moveWay_htdjd = 1;
} else this.moveEndSum > 0 && this.scrollView.content.y > this.moveEndPoint_htdjd && this.setState_htdjd(0);
} else {
this.scrollView.content.y = this.scrollView.content.y - this.moveSpeed;
if (this.scrollView.content.y < 0) {
this.scrollView.content.y = 0;
this.moveWay_htdjd = 0;
this.setState_htdjd(0);
} else this.moveEndSum > 0 && this.scrollView.content.y < this.moveEndPoint_htdjd && this.setState_htdjd(0);
}
}
};
e.prototype.htdjd_playAni_htdjd = function(t, e) {
var n = cc.view.getFrameSize().width, i = t.x;
t.x = t.x - n;
cc.tween(t).by(.4, {
angle: -360,
x: n
}).call(function() {
t.angle = 0;
t.x = i;
null != e && e();
}).start();
};
e.prototype.setState_htdjd = function(t) {
this.state_htdjd = t;
switch (this.state_htdjd) {
case 0:
this.stopWaitTime_htdjd = 0;
this.stopWaitTimeSum <= 0 && this.setState_htdjd(1);
break;

case 1:
if (this.moveEndSum <= 0) this.setState_htdjd(2); else if (this.scrollView.horizontal) {
var e = this.cloneItem.width + this.itemGapWidth, n = Math.floor(Math.abs(this.scrollView.content.x - this.itemStartX) / e);
if (0 == this.moveWay_htdjd) {
this.moveEndPoint_htdjd = -(n + 1) * e - this.itemStartX;
var i = -(this.scrollView.content.width - this.scrollView.node.width);
console.log("-----------", this.scrollView.content.width, this.scrollView.node.width);
this.moveEndPoint_htdjd <= i && (this.moveEndPoint_htdjd = i);
} else {
this.moveEndPoint_htdjd = -(n - 1) * e - this.itemStartX;
this.moveEndPoint_htdjd >= 0 && (this.moveEndPoint_htdjd = 0);
}
this.setState_htdjd(2);
} else if (this.scrollView.vertical) {
var o = this.cloneItem.height + this.itemGapHeight;
n = Math.floor(Math.abs(this.scrollView.content.y + this.itemStartY) / o);
if (0 == this.moveWay_htdjd) {
this.moveEndPoint_htdjd = this.itemStartY + (n + 1) * o;
this.moveEndPoint_htdjd + o / 2 >= this.scrollView.content.height - this.scrollView.node.height && (this.moveEndPoint_htdjd = this.scrollView.content.height - this.scrollView.node.height);
} else {
this.moveEndPoint_htdjd = this.itemStartY + (n - 1) * o;
this.moveEndPoint_htdjd - o / 2 <= 0 && (this.moveEndPoint_htdjd = 0);
}
this.setState_htdjd(2);
}
}
};
a([ p({
tooltip: "滚动容器",
type: cc.ScrollView
}) ], e.prototype, "scrollView", void 0);
a([ p({
tooltip: "克隆的Item",
type: cc.Node
}) ], e.prototype, "cloneItem", void 0);
a([ p({
type: cc.Enum(s.ComponentStyle),
tooltip: "当前广告的类型\n ID_LoopAd 普通导出广告\nID_BannerAd Banner广告\nID_InsertAd 插屏广告\nID_AniAd 序列帧广告\n ID_HistoryAd 历史广告\nID_MoreGameAd 更多游戏广告"
}) ], e.prototype, "AdLocationType", void 0);
a([ p({
tooltip: "最大行数",
type: cc.Integer,
visible: function() {
return this.viewType == _.FIX_VIEW || this.viewType == _.FIX_VIEW_NO_ACT;
}
}) ], e.prototype, "maxRowNum", void 0);
a([ p({
tooltip: "起始X间隔",
type: cc.Float
}) ], e.prototype, "itemStartX", void 0);
a([ p({
tooltip: "起始Y间隔",
type: cc.Float
}) ], e.prototype, "itemStartY", void 0);
a([ p({
type: cc.Enum(_),
tooltip: "滚动方向:\n AUTO_VIEW 自动滚动\nFIX_VIEW固定不动 带进入动画\nFIX_VIEW_NO_ACT固定不动 不带进入动画"
}) ], e.prototype, "viewType", void 0);
a([ p({
tooltip: "竖向间隔",
type: cc.Float
}) ], e.prototype, "itemGapHeight", void 0);
a([ p({
tooltip: "横向间隔",
type: cc.Float
}) ], e.prototype, "itemGapWidth", void 0);
a([ p({
tooltip: "移动间隔数（0持续）",
type: cc.Integer
}) ], e.prototype, "moveEndSum", void 0);
a([ p({
tooltip: "一行几列 or 一列几行",
type: cc.Integer
}) ], e.prototype, "itemRankSum", void 0);
a([ p({
tooltip: "移动的开始等待时间(帧数)",
type: cc.Float
}) ], e.prototype, "stopWaitTimeSum", void 0);
a([ p({
tooltip: "移动的速度(0不动)",
type: cc.Float
}) ], e.prototype, "moveSpeed", void 0);
a([ p({
tooltip: "显示数量",
type: cc.Integer
}) ], e.prototype, "showCount", void 0);
return a([ l, f(), u("FrameWork组件/AD_htdjd_ListView") ], e);
}(cc.Component);
n.default = y;
cc._RF.pop();
}, {
"../../Interface/FM_htdjd_Interface": "FM_htdjd_Interface",
"../../Net/GameMatrixControl": "GameMatrixControl",
"../../Util/App_htdjd_Platform": "App_htdjd_Platform",
"./KRQ_htdjd_Base": "KRQ_htdjd_Base"
} ],
AD_htdjd_Single: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "08a79DhIu1PZLfP1X3J0g2a", "AD_htdjd_Single");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("./KRQ_htdjd_Base"), d = t("../../Net/GameMatrixControl"), r = t("../../Net/Net_Mgr"), s = t("../../Util/App_htdjd_Platform"), c = cc._decorator, h = c.ccclass, l = c.property, p = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e._AdPosID_htdjd = -10086;
e._datas_htdjd = [];
e.offset = 0;
return e;
}
n = e;
e.prototype.initView_htdjd = function() {
this.closeShow();
this.node.on("click", this.onClickAd_htdjd, this);
this.sprIcon.node.active = !1;
this.refresh_htdjd();
this.schedule(function() {
this.refresh_htdjd();
}, 5, cc.macro.REPEAT_FOREVER, 5);
};
e.prototype.start = function() {
s.default.is_WECHAT_GAME_htdjd() && r.default.WX_SdkCustomKey.isScene && (this.node.active = !1);
(s.default.is_OPPO_GAME_htdjd() || s.default.is_VIVO_GAME_htdjd()) && (this.node.active = !1);
};
e.prototype.onClickAd_htdjd = function() {
var t = this;
d.default.navigateTo(this.AdLocationType, this.ad_data_htdjd, function() {
r.default.sendAloConttrol(t.AdsStyle);
});
this.refresh_htdjd();
console.log("点击了图片 做跳转");
};
e.prototype.clearRepeat_htdjd = function() {
if (null != this.ad_data_htdjd) for (var t = 0; t < n._repeatCheckList_htdjd.length; ++t) if (n._repeatCheckList_htdjd[t] == this.ad_data_htdjd.appId) {
n._repeatCheckList_htdjd.splice(t, 1);
break;
}
};
e.prototype.refresh_htdjd = function(t) {
this._initView_htdjd();
var e = d.default.getInstance().getDataByStyleAndCountOrder(this.AdLocationType, 1, this.offset);
if (null != e) {
this.offset += 1;
d.default.getInstance().addShowRecord(this.AdLocationType);
this._datas_htdjd = e;
if (this.node) {
for (var i = 0; i < this._datas_htdjd.length; ++i) {
for (var o = !1, a = this._datas_htdjd[i], _ = 0; _ < n._repeatCheckList_htdjd.length; ++_) if (n._repeatCheckList_htdjd[_] == a.appid) {
o = !0;
break;
}
if (!o) {
this.clearRepeat_htdjd();
this.ad_data_htdjd = a;
break;
}
}
null == this.ad_data_htdjd && (this.ad_data_htdjd = this._datas_htdjd[Math.floor(Math.random() * e.length)]);
if (null != this.ad_data_htdjd) {
this.setData_htdjd(this.ad_data_htdjd);
this.playActionAngle_htdjd();
var r = !1;
for (_ = 0; _ < n._repeatCheckList_htdjd.length; ++_) if (n._repeatCheckList_htdjd[_] == this.ad_data_htdjd.appId) {
r = !0;
break;
}
r || n._repeatCheckList_htdjd.push(this.ad_data_htdjd.appId);
} else {
this.sprIcon.node.active = !1;
t && t();
}
}
} else {
this.sprIcon.node.active = !1;
t && t();
}
};
e.prototype.playActionAngle_htdjd = function() {
var t = this;
t.node.angle = 0;
cc.tween(t.node).to(.25, {
angle: 20
}).to(.25, {
angle: 0
}).call(function() {
t.node.angle = 0;
}).start();
};
var n;
e._repeatCheckList_htdjd = new Array();
a([ l({
tooltip: "获取广告的偏移值 请设置为当前联动数量的依次加1达到最好效果"
}) ], e.prototype, "offset", void 0);
return n = a([ h ], e);
}(_.default);
n.default = p;
cc._RF.pop();
}, {
"../../Net/GameMatrixControl": "GameMatrixControl",
"../../Net/Net_Mgr": "Net_Mgr",
"../../Util/App_htdjd_Platform": "App_htdjd_Platform",
"./KRQ_htdjd_Base": "KRQ_htdjd_Base"
} ],
AD_htdjd_WXBanner: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "142800zIqNPy4DYJWAvDj0c", "AD_htdjd_WXBanner");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("./KRQ_htdjd_Base"), d = t("../../Util/Log_htdjd_Utils"), r = t("../../Mgr/Remote_htdjd_Mgr"), s = t("../../Interface/FM_htdjd_Interface"), c = t("../../Net/GameMatrixControl"), h = t("../../Net/Net_Mgr"), l = cc._decorator, p = l.ccclass, u = l.property, f = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e._wxBanner_htdjd = null;
e._onLoad_htdjd = null;
e._onResize_htdjd = null;
e._onError_htdjd = null;
e._isCreating_htdjd = !1;
e._AdPosID_htdjd = -10086;
e._isOnStartFlag_htdjd = !1;
e._datasAll_htdjd = [];
e.isCustomAd = !1;
e.bannerY = 0;
e.bannerMAX_Y = 5e3;
return e;
}
e.prototype.initView_htdjd = function() {
var t = this;
this.sprIcon.node.on(cc.Node.EventType.TOUCH_START, this.onClickAd_htdjd, this);
this.sprIcon.node.active = !1;
this.bannerY = this.node.y;
console.log("initView_htdjd  wx微信 微信 ", this.bannerY, this.node.x);
var e = this.node.getComponent(cc.Widget);
e && e.updateAlignment();
this.scheduleOnce(function() {
t._isOnStartFlag_htdjd = !0;
t.isActiveView_htdjd() && t.refresh_htdjd();
});
};
e.prototype.closeShow = function() {};
e.prototype.addEvent_htdjd = function() {};
e.prototype.removeEvent_htdjd = function() {};
e.prototype.onClickAd_htdjd = function() {
var t = this;
console.log("点击了图片 做跳转");
c.default.navigateTo(this.AdLocationType, this.ad_data_htdjd, function() {
h.default.sendAloConttrol(t.AdsStyle);
});
};
e.prototype.setData_htdjd = function(t) {
this.ad_data_htdjd = t;
};
e.prototype.showView_htdjd = function() {
console.log("显示 showView_htdjd", this.node.y, this.node.x);
this.node.y = this.bannerY;
var t = this.node.getComponent(cc.Widget);
t && t.updateAlignment();
console.log("xian显示 showView_htdjd", this.node.y, this.bannerY, t.right, t.bottom);
};
e.prototype.updateBaner = function() {};
e.prototype.refreshWXBanner_htdjd = function() {};
e.prototype.clearWXBaner_htdjd = function() {
console.log("清除微信端banner");
if (this._wxBanner_htdjd) {
this._wxBanner_htdjd.hide();
this._wxBanner_htdjd.offLoad(this._onLoad_htdjd);
this._wxBanner_htdjd.offError(this._onError_htdjd);
this._wxBanner_htdjd.offResize(this._onResize_htdjd);
this._wxBanner_htdjd.destroy();
}
this._wxBanner_htdjd = null;
};
e.prototype.hideView_htdjd = function() {
console.log("隐藏 hideView_htdjd", this.node.y, this.node.x);
this.node.y = this.bannerMAX_Y;
var t = this.node.getComponent(cc.Widget);
t && t.updateAlignment();
console.log("xian隐藏 hideView_htdjd", this.node.y, this.bannerMAX_Y, t.right, t.bottom);
this.refresh_htdjd();
};
e.prototype.refresh_htdjd = function() {
if (this.isValid) {
this._initView_htdjd();
this.refreshWXBanner_htdjd();
}
};
e.prototype.refreshBanner_htdjd = function() {
if (this.isValid) {
var t = this, e = c.default.getInstance().getDataByStyleAndCount(c.ComponentStyle.banner, 1);
if (e) {
c.default.getInstance().addShowRecord(this.AdLocationType);
console.log("刷新本地banner");
t._datasAll_htdjd = e;
t.setData_htdjd(e);
var n = e[Math.floor(Math.random() * e.length)];
if (n) {
t.setData_htdjd(n);
r.default.loadRemote_htdjd(n.useImgList[0], s.handleFM_htdjd(function(e, i) {
if (!e && t.isValid && t.sprIcon) {
var o = new cc.SpriteFrame(i);
t.sprIcon.spriteFrame = o;
t.sprIcon.node.active = !0;
console.log("下载  " + n.useImgList[0]);
}
}, this));
}
} else d.Log_htdjd_Utils.error_htdjd("刷新图片异常" + t.ad_data_htdjd);
}
};
e.prototype.onDestroy = function() {
t.prototype.onDestroy.call(this);
console.log("refreshWXBanner_htdjd4");
this.clearWXBaner_htdjd();
};
e.prototype.onEnable = function() {
t.prototype.onEnable.call(this);
this._isOnStartFlag_htdjd && this.refresh_htdjd();
};
e.prototype.onDisable = function() {
t.prototype.onDisable.call(this);
console.log("refreshWXBanner_htdjd3");
this.clearWXBaner_htdjd();
this.unschedule(this.refreshWXBanner_htdjd);
};
a([ u({
tooltip: "是否是自定义banner"
}) ], e.prototype, "isCustomAd", void 0);
return a([ p ], e);
}(_.default);
n.default = f;
cc._RF.pop();
}, {
"../../Interface/FM_htdjd_Interface": "FM_htdjd_Interface",
"../../Mgr/Remote_htdjd_Mgr": "Remote_htdjd_Mgr",
"../../Net/GameMatrixControl": "GameMatrixControl",
"../../Net/Net_Mgr": "Net_Mgr",
"../../Util/Log_htdjd_Utils": "Log_htdjd_Utils",
"./KRQ_htdjd_Base": "KRQ_htdjd_Base"
} ],
ADmgr: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "bd8fbq1aRhNZo8cdZ3qHeVe", "ADmgr");
var i = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = t("./box/UIRankBox"), a = t("./SignIn/UISignIn"), _ = t("./UIBoss"), d = t("./UIWuQi"), r = cc._decorator, s = r.ccclass, c = (r.property, 
function() {
function t() {
this.m_loadUI = [];
this.m_uiwq = null;
this.m_uiSignIn = null;
this.m_box = null;
this.m_boss = null;
}
e = t;
Object.defineProperty(t, "instance", {
get: function() {
e._instance || (e._instance = new e());
return e._instance;
},
enumerable: !1,
configurable: !0
});
t.prototype.openBoss = function() {
if (this.m_boss) return this.m_boss.open();
var t = this;
this.loadui("prefab/UIBoss", function(e) {
cc.game.addPersistRootNode(e);
t.m_boss = e.getComponent(_.default);
t.m_boss.open();
});
};
t.prototype.openBox = function(t) {
if (this.m_box) return this.m_box.open(t);
var e = this;
this.loadui("prefab/UIRankBox", function(n) {
cc.game.addPersistRootNode(n);
e.m_box = n.getComponent(o.default);
e.m_box.open(t);
});
};
t.prototype.openSignIn = function() {
if (this.m_uiSignIn) return this.m_uiSignIn.open();
var t = this;
this.loadui("prefab/UISignIn", function(e) {
cc.game.addPersistRootNode(e);
t.m_uiSignIn = e.getComponent(a.default);
t.m_uiSignIn.open();
});
};
t.prototype.openUIWuQi = function(t) {
if (this.m_uiwq) return this.m_uiwq.open(t);
var e = this;
this.loadui("prefab/UIWuQi", function(n) {
cc.game.addPersistRootNode(n);
e.m_uiwq = n.getComponent(d.default);
e.m_uiwq.open(t);
});
};
t.prototype.loadui = function(t, e, n, i, o) {
var a = this;
void 0 === n && (n = null);
void 0 === i && (i = null);
void 0 === o && (o = null);
if (!this.m_loadUI[t]) {
this.m_loadUI[t] = !0;
console.log("加载界面---------", t);
cc.loader.loadRes(t, cc.Asset, function() {}, function(n, i) {
if (n) {
a.m_loadUI[t] = !1;
console.log("加载界面  失败-------");
} else {
var o = cc.instantiate(i);
o.setParent(cc.director.getScene());
e && e(o);
}
});
}
};
var e;
return e = i([ s ], t);
}());
n.default = c;
cc._RF.pop();
}, {
"./SignIn/UISignIn": "UISignIn",
"./UIBoss": "UIBoss",
"./UIWuQi": "UIWuQi",
"./box/UIRankBox": "UIRankBox"
} ],
AI_htdjd_Player: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "17e636OogpJoa411ILMVHKE", "AI_htdjd_Player");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../../Script/Event/Event_htdjd_Defs"), d = t("./Player_htdjd"), r = t("../Scene_htdjd_Play"), s = t("../../HelpMgr"), c = t("../../Script/Event/EventEnum"), h = t("../../Script/Event/Event_htdjd_Mgr"), l = cc._decorator, p = l.ccclass, u = (l.property, 
function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.can_htdjd_Att = !0;
e.players_htdjd = [];
e.can_htdjd_AttDZ = !1;
e.operation_htdjd_CD = 2;
e.operation_htdjd_Time = 0;
return e;
}
n = e;
e.prototype.start = function() {
t.prototype.start.call(this);
var e = this.node.parent.parent.getComponent(r.default);
this.players_htdjd = e.players;
this.curr_htdjd_Group = this.node.group;
};
e.prototype.gameStart = function() {};
e.prototype.playDeadAnim_htdjd_New = function() {
cc.log("调用了AI的死亡   ");
t.prototype.playDeadAnim_htdjd_New.call(this);
this.node.active = !1;
if (s.default.instance.m_nBossBattle >= 0 && this.user_htdjd_Info.isBoss) setTimeout(function() {
h.default.dispatch(c.htdjd_Event.GAME_FINISH, _.GameOver_htdjd_Type.win);
}, 500); else {
var e = this;
setTimeout(function() {
cc.log("调用了AI的复活   ");
e.onUser_htdjd_Revive();
}, 3e3);
}
};
e.prototype.update = function(t) {
if (n.isMove) {
this.dead_htdjd;
this.user_htdjd_Info.isBoss && (t *= .35);
if (this.game_htdjd_Type == _.Game_htdjd_Type.game) if (this.can_htdjd_Att) {
var e = this;
this.can_htdjd_Att = !1;
var i = void 0;
i = (o = this.getDistanceMin_htdjd_Enemy()) ? o.x > this.node.x ? _.TouchOperate_htdjd_Type.right : o.x < this.node.x ? _.TouchOperate_htdjd_Type.left : _.TouchOperate_htdjd_Type.up : _.TouchOperate_htdjd_Type.up;
this.onPlayer_htdjd_Operate(i);
this.scheduleOnce(function() {
e.can_htdjd_Att = !0;
}, this.user_htdjd_Data.att_htdjd_CD + this.randomRange_htdjd_Integer(30, 50) / 10);
this.play_htdjd_RoleAnim(_.playRole_htdjd_Name.attack, 1);
} else if (this.can_htdjd_AttDZ) ; else {
this.operation_htdjd_Time += t;
if (this.operation_htdjd_Time >= this.operation_htdjd_CD) {
var o;
i = void 0;
i = (o = this.getDistanceMin_htdjd_Enemy()) ? o.x > this.node.x ? _.TouchOperate_htdjd_Type.right : o.x < this.node.x ? _.TouchOperate_htdjd_Type.left : _.TouchOperate_htdjd_Type.up : this.randomRange_htdjd_Integer(0, 2);
this.can_htdjd_Wall && this.onPlayer_htdjd_Operate(_.TouchOperate_htdjd_Type.up);
this.onPlayer_htdjd_Operate(i);
this.operation_htdjd_Time = 0;
}
}
this.onUpdate(t);
}
};
e.prototype.getDistanceMin_htdjd_Enemy = function() {
for (var t, e = 1e7, n = 0; n < this.players_htdjd.length; n++) {
var i = this.players_htdjd[n];
if (i.group != this.curr_htdjd_Group) {
var o = Math.abs(i.x - this.node.x);
if (o < e) {
t = i;
e = o;
}
}
}
return t;
};
var n;
e.isMove = !0;
return n = a([ p ], e);
}(d.default));
n.default = u;
cc._RF.pop();
}, {
"../../HelpMgr": "HelpMgr",
"../../Script/Event/EventEnum": "EventEnum",
"../../Script/Event/Event_htdjd_Defs": "Event_htdjd_Defs",
"../../Script/Event/Event_htdjd_Mgr": "Event_htdjd_Mgr",
"../Scene_htdjd_Play": "Scene_htdjd_Play",
"./Player_htdjd": "Player_htdjd"
} ],
AI_htdjd_Skill: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "ecda5G15StCc6dnAW0FMbpU", "AI_htdjd_Skill");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("./AI_htdjd_Player"), d = cc._decorator, r = d.ccclass, s = (d.property, 
function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.can_htdjd_Use = !0;
e._cost_htdjd = 0;
e.cd_htdjd_Time = 1;
return e;
}
Object.defineProperty(e.prototype, "cost", {
get: function() {
return this._cost_htdjd;
},
enumerable: !1,
configurable: !0
});
e.prototype.Use_htdjd_Skill = function() {
if (this.can_htdjd_Use) {
this.can_htdjd_Use = !1;
this.unschedule(this.cd_htdjd_Over);
this.scheduleOnce(this.cd_htdjd_Over, this.cd_htdjd_Time);
return !0;
}
return !1;
};
e.prototype.start = function() {
this.base_htdjd_Role = this.node.getComponent(_.default);
};
e.prototype.cd_htdjd_Over = function() {
this.can_htdjd_Use = !0;
this.unschedule(this.cd_htdjd_Over);
};
e.prototype.Init = function(t) {
this.cd_htdjd_Time = t.cd;
this._cost_htdjd = t.cost;
};
return a([ r ], e);
}(cc.Component));
n.default = s;
cc._RF.pop();
}, {
"./AI_htdjd_Player": "AI_htdjd_Player"
} ],
AppSwitchConfig: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "363a2/EfUxOjLZAJUzEw51c", "AppSwitchConfig");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.cocosWxcfg = n.WXCfg = n.AppSwitchData = void 0;
var i = t("./App_htdjd_Config"), o = t("../Util/Log_htdjd_Utils"), a = t("../Interface/FM_htdjd_Interface"), _ = function() {
function t() {
this.version_htdjd = "";
this.banner_htdjd = 0;
this.wudianAvailableTime_htdjd = {
0: 0,
1: 0,
2: 0,
3: 0,
4: 0,
5: 0,
6: 0,
7: 0,
8: 0,
9: 0,
10: 0,
11: 0,
12: 0,
13: 0,
14: 0,
15: 0,
16: 0,
17: 0,
18: 0,
19: 0,
20: 0,
21: 0,
22: 0,
23: 0
};
this.wudian_htdjd = 0;
this.mailiang_htdjd = 1;
this.mailianglist_htdjd = new Array();
this.mailiangSceneList_htdjd = new Array();
this.recreateBannerIDList_htdjd = new Array();
this.wxWuDianBanners_htdjd = new Array();
this.bannerRecreateTime_htdjd = 5;
this.kuangdianjiange_htdjd = 0;
this.btnMoveTimer_htdjd = 1;
this.bannerMoveTimer_htdjd = .5;
this.bannerCreateFailNum_htdjd = 3;
this.bannerFreshTimer_htdjd = 200;
this.bannerTodayBannerMax_htdjd = 10;
this.adSwitch_htdjd = 1;
this.wudianSceneList_htdjd = new Array();
this.bannerShowTime_htdjd = 30;
this.continueBtnDelayTime_htdjd = 2;
this.fakeBtn_htdjd = 0;
this.continueBannerShowTime_htdjd = 2;
this.popAd_htdjd = 0;
this.continueBanner_htdjd = 0;
this.continueBannerHideTime_htdjd = 2;
this.cocosWxcfg_htdjd = new r();
this.wxcfg_htdjd = new d();
}
Object.defineProperty(t.prototype, "wudianTimeAvaliable_htdjd", {
get: function() {
return 1 == this.wudianAvailableTime_htdjd[new Date().getHours()];
},
enumerable: !1,
configurable: !0
});
return t;
}();
n.AppSwitchData = _;
var d = function() {
this.kuangdianBanner_htdjd = 0;
this.kuangdianLevelSpcacing_htdjd = 0;
};
n.WXCfg = d;
var r = function() {
this.loopAd = {
rollWayLeftUp_htdjd: 0,
rollWaitNum_htdjd: 1,
rollWaitTime_htdjd: 1,
roolSpeed_htdjd: 3,
bgColor_htdjd: "62d5ff"
};
this.skinTrial = {
videoIcon_htdjd: 0,
wudian_htdjd: 0,
timeClick_htdjd: 0,
butMoveTime_htdjd: 0,
bannerShowTime_htdjd: 0,
bannerHideTime_htdjd: 0,
butDelayShowTime_htdjd: 0,
rollWayLeftUp_htdjd: 1,
rollWaitNum_htdjd: 1,
rollWaitTime_htdjd: 1,
roolSpeed_htdjd: 3
};
this.revival = {
videoIcon_htdjd: 0,
wudian_htdjd: 0,
timeClick_htdjd: 0,
butMoveTime_htdjd: 0,
bannerShowTime_htdjd: 0,
bannerHideTime_htdjd: 0,
butDelayShowTime_htdjd: 0,
rollWayLeftUp_htdjd: 1,
rollWaitNum_htdjd: 1,
rollWaitTime_htdjd: 1,
roolSpeed_htdjd: 3
};
this.moreGoodGame = {
bgColor_htdjd: "3485fb",
maskColor_htdjd: "",
mouseEventIsUp_htdjd: 0,
cancelIntercept_htdjd: 1,
wudian_htdjd: 0,
timeClick_htdjd: 0,
butMoveTime_htdjd: 0,
bannerShowTime_htdjd: 0,
bannerHideTime_htdjd: 0,
butDelayShowTime_htdjd: 0,
rollWayLeftUp_htdjd: 1,
rollWaitNum_htdjd: 1,
rollWaitTime_htdjd: 1,
roolSpeed_htdjd: 3
};
this.bigLoopAd = {
bgColor_htdjd: "3485fb",
maskColor_htdjd: "",
wudian_htdjd: 0,
timeClick_htdjd: 0,
butMoveTime_htdjd: 0,
bannerShowTime_htdjd: 0,
bannerHideTime_htdjd: 0,
butDelayShowTime_htdjd: 0,
rollWayLeftUp_htdjd: 1,
rollWaitNum_htdjd: 1,
rollWaitTime_htdjd: 1,
roolSpeed_htdjd: 3
};
this.settlePage = {
bgColor_htdjd: "3485fb",
maskColor_htdjd: "",
wudian_htdjd: 0,
timeClick_htdjd: 0,
butMoveTime_htdjd: 0,
bannerShowTime_htdjd: 0,
bannerHideTime_htdjd: 0,
butDelayShowTime_htdjd: 0,
rollWayLeftUp_htdjd: 1,
rollWaitNum_htdjd: 1,
rollWaitTime_htdjd: 1,
roolSpeed_htdjd: 3
};
this.moreGoodGame2 = {
bgColor_htdjd: "3485fb",
maskColor_htdjd: "",
butDelayShowTime_htdjd: 0,
rollWayLeftUp_htdjd: 1,
rollWaitNum_htdjd: 1,
rollWaitTime_htdjd: 1,
roolSpeed_htdjd: 3
};
};
n.cocosWxcfg = r;
var s = function() {
function t() {
this._data_htdjd = new Array();
}
t.getInstance_htdjd = function() {
return t._instance_htdjd;
};
t.prototype.loadUrlConfig_htdjd = function(t) {
var e = this;
cc.assetManager.loadRemote(i.default.ResServer_htdjd + "/json/appswitch.json", function(n, i) {
if (n) o.Log_htdjd_Utils.error_htdjd(n); else {
e._data_htdjd.length = 0;
var d = i.json;
o.Log_htdjd_Utils.log_htdjd("下载 appswitch.json>>>");
o.Log_htdjd_Utils.log_htdjd(i);
if (d) for (var r = 0; r < d.length; ++r) {
var s = d[r], c = new _();
c.version_htdjd = String(s.version);
c.banner_htdjd = Number(s.banner);
c.wudian_htdjd = Number(s.wudian);
c.wudianAvailableTime_htdjd = Object(s.wudianTime);
c.mailiang_htdjd = Number(s.mailiang);
var h = s.mailianglist;
if (null != h) for (var l = 0; l < h.length; ++l) {
var p = Number(h[l]);
c.mailianglist_htdjd.push(p);
}
var u = s.mailiangScenelist;
if (null != u) for (l = 0; l < u.length; ++l) {
var f = Number(u[l]);
c.mailiangSceneList_htdjd.push(f);
}
var y = s.wxwudianbanners;
if (null != y) for (l = 0; l < y.length; ++l) {
var g = String(y[l]);
c.wxWuDianBanners_htdjd.push(g);
}
var m = s.recreateBannerIDList;
if (null != m) for (l = 0; l < m.length; ++l) {
g = String(m[l]);
c.recreateBannerIDList_htdjd.push(g);
}
c.bannerRecreateTime_htdjd = null != s.bannerRecreateTime ? Number(s.bannerRecreateTime) : c.bannerRecreateTime_htdjd;
c.kuangdianjiange_htdjd = null != s.kuangdianjiange ? Number(s.kuangdianjiange) : c.kuangdianjiange_htdjd;
c.btnMoveTimer_htdjd = Number(s.btnMoveTimer);
c.bannerMoveTimer_htdjd = Number(s.bannerMoveTimer);
c.bannerCreateFailNum_htdjd = Number(s.createFailNum);
c.bannerFreshTimer_htdjd = Number(s.bannerFreshTimer);
c.bannerTodayBannerMax_htdjd = Number(s.todayBannerMax);
c.adSwitch_htdjd = Number(s.adSwitch);
var v = s.wudianSceneList;
if (null != v) for (l = 0; l < v.length; ++l) {
var j = Number(v[l]);
c.wudianSceneList_htdjd.push(j);
}
c.continueBtnDelayTime_htdjd = Number(s.continueBtnDelayTime);
c.bannerShowTime_htdjd = Number(s.bannerShowTime);
c.fakeBtn_htdjd = null != s.fakeBtn ? Number(s.fakeBtn) : c.fakeBtn_htdjd;
c.popAd_htdjd = null != s.popAd ? Number(s.popAd) : c.popAd_htdjd;
c.continueBanner_htdjd = null != s.continueBanner ? Number(s.continueBanner) : c.continueBanner_htdjd;
c.continueBannerShowTime_htdjd = null != s.continueBannerShowTime ? Number(s.continueBannerShowTime) : c.continueBannerShowTime_htdjd;
c.continueBannerHideTime_htdjd = null != s.continueBannerHideTime ? Number(s.continueBannerHideTime) : c.continueBannerHideTime_htdjd;
if (null != s.wxcfg) {
var b = s.wxcfg;
c.wxcfg_htdjd.kuangdianBanner_htdjd = Number(b.kuangdianBanner);
c.wxcfg_htdjd.kuangdianLevelSpcacing_htdjd = Number(b.kuangdianLevelSpcacing);
}
if (null != s.cocosWxConfig) {
var w = (b = s.cocosWxConfig).loopAd, x = b.skinTrial, k = b.revival, S = b.moreGoodGame, A = b.bigLoopAd, I = b.settlePage, O = b.moreGoodGame2;
for (var P in c.cocosWxcfg_htdjd.loopAd) Object.prototype.hasOwnProperty.call(c.cocosWxcfg_htdjd.loopAd, P) && (c.cocosWxcfg_htdjd.loopAd[P] = "bgColor" == P ? null != w[P] ? String(w[P]) : c.cocosWxcfg_htdjd.loopAd[P] : null != w[P] ? Number(w[P]) : c.cocosWxcfg_htdjd.loopAd[P]);
for (var P in c.cocosWxcfg_htdjd.skinTrial) Object.prototype.hasOwnProperty.call(c.cocosWxcfg_htdjd.skinTrial, P) && (c.cocosWxcfg_htdjd.skinTrial[P] = null != x[P] ? Number(x[P]) : c.cocosWxcfg_htdjd.skinTrial[P]);
for (var P in c.cocosWxcfg_htdjd.revival) Object.prototype.hasOwnProperty.call(c.cocosWxcfg_htdjd.revival, P) && (c.cocosWxcfg_htdjd.revival[P] = null != k[P] ? Number(k[P]) : c.cocosWxcfg_htdjd.revival[P]);
for (var P in c.cocosWxcfg_htdjd.moreGoodGame) Object.prototype.hasOwnProperty.call(c.cocosWxcfg_htdjd.moreGoodGame, P) && (c.cocosWxcfg_htdjd.moreGoodGame[P] = "bgColor" == P || "maskColor" == P ? null != S[P] ? String(S[P]) : c.cocosWxcfg_htdjd.moreGoodGame[P] : null != S[P] ? Number(S[P]) : c.cocosWxcfg_htdjd.moreGoodGame[P]);
for (var P in c.cocosWxcfg_htdjd.bigLoopAd) Object.prototype.hasOwnProperty.call(c.cocosWxcfg_htdjd.bigLoopAd, P) && (c.cocosWxcfg_htdjd.bigLoopAd[P] = "bgColor" == P || "maskColor" == P ? null != A[P] ? String(A[P]) : c.cocosWxcfg_htdjd.bigLoopAd[P] : null != A[P] ? Number(A[P]) : c.cocosWxcfg_htdjd.bigLoopAd[P]);
for (var P in c.cocosWxcfg_htdjd.settlePage) Object.prototype.hasOwnProperty.call(c.cocosWxcfg_htdjd.settlePage, P) && (c.cocosWxcfg_htdjd.settlePage[P] = "bgColor" == P || "maskColor" == P ? null != I[P] ? String(I[P]) : c.cocosWxcfg_htdjd.settlePage[P] : null != I[P] ? Number(I[P]) : c.cocosWxcfg_htdjd.settlePage[P]);
for (var P in c.cocosWxcfg_htdjd.moreGoodGame2) Object.prototype.hasOwnProperty.call(c.cocosWxcfg_htdjd.moreGoodGame2, P) && (c.cocosWxcfg_htdjd.moreGoodGame2[P] = "bgColor" == P || "maskColor" == P ? null != O[P] ? String(O[P]) : c.cocosWxcfg_htdjd.moreGoodGame2[P] : null != O[P] ? Number(O[P]) : c.cocosWxcfg_htdjd.moreGoodGame2[P]);
}
e._data_htdjd.push(c);
} else e._data_htdjd.push(new _());
t && a.callFM_htdjd(t);
}
});
};
t.prototype.getAppSwitchData_htdjd = function() {
return this._data_htdjd[0];
};
t._instance_htdjd = new t();
return t;
}();
n.default = s;
cc._RF.pop();
}, {
"../Interface/FM_htdjd_Interface": "FM_htdjd_Interface",
"../Util/Log_htdjd_Utils": "Log_htdjd_Utils",
"./App_htdjd_Config": "App_htdjd_Config"
} ],
App_htdjd_Config: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "b8f67bBoedOMYO872FafoSD", "App_htdjd_Config");
Object.defineProperty(n, "__esModule", {
value: !0
});
var i;
(function(t) {
t[t.WX = 0] = "WX";
t[t.QQ = 2] = "QQ";
})(i || (i = {}));
var o = function() {
function t() {}
t.GameName_htdjd = "";
t.closeUseSDK_htdjd = !0;
t.showLoadingLogo_htdjd = !1;
t.WX_APP_ID_htdjd = "wx3b54fa57b9d02de0  ";
t.QQ_APP_ID_htdjd = "";
t.TT_APP_ID_htdjd = "";
t.OPPO_APP_ID_htdjd = "";
t.VIVO_APP_ID_htdjd = "";
t.isWX_TT_QQ_MiniGame_htdjd = i.WX;
t.WX_gameid_htdjd = 444;
t.WX_Versions_htdjd = "1.0.0";
t.QQ_Versions_htdjd = "1.0.0";
t.TT_Versions_htdjd = "1.0.0";
t.OPPO_Versions_htdjd = "1.0.0";
t.VIVO_Versions_htdjd = "1.0.0";
t.WX_ResServer_htdjd = "";
t.WX_InsertAdLocationID_htdjd = -1;
t.WX_HistoryLocationID_htdjd = "";
t.WX_LoopAdLocationID_htdjd = "";
t.WX_BannerAdLocationID_htdjd = "";
t.WX_MoreGameLocationID_htdjd = "";
t.WX_AniAdLocationID_htdjd = -1;
t.wx_adUnitId_htdjd = "adunit-ab9e213bfadbbd16";
t.wx_InsAdUnitId_htdjd = "";
t.wx_bannerAdUnitId_htdjd = "adunit-9fc72f53455378aa";
t.wx_bannerAdCustomAdList_htdjd = [ "", "a" ];
t.qq_bannerAdUnitId_htdjd = "";
t.qq_adUnitId_htdjd = "";
t.qq_InsAdUnitId_htdjd = "";
t.qq_AppBoxId_htdjd = "";
t.qq_blockAdArray_htdjd = [];
t.tt_templateId_htdjd = "";
t.tt_bannerAdUnitId_htdjd = "";
t.tt_adUnitId_htdjd = "";
t.tt_InsAdUnitId_htdjd = "";
t.oppo_bannerAdUnitId_htdjd = "";
t.oppo_videoadUnitId_htdjd = "";
t.vivo_bannerAdUnitId_htdjd = "";
t.vivo_videoadUnitId_htdjd = "";
t.subResArray_htdjd = [ "resources" ];
t.WX_state_htdjd = 0;
t.state_htdjd = 0;
t.AppID_htdjd = "";
t.gameid_htdjd = 0;
t.Versions_htdjd = "0.0.0";
t.ResServer_htdjd = "";
t.LoopAdLocationID_htdjd = -1;
t.BannerAdLocationID_htdjd = -1;
t.InsertAdLocationID_htdjd = -1;
t.AniAdLocationID_htdjd = -1;
t.HistoryLocationID_htdjd = -1;
t.MoreGameLocationID_htdjd = -1;
t.UseSDK_htdjd = !0;
t.showType = 0;
t.isBannerWD = !1;
t.isTouch = !1;
t.curRound = 1;
t.isWuShuang = 0;
t.upPercent = .1;
t.upPercent1 = .06;
t.maxHP = 1e4;
t.maxAtt = 1e3;
return t;
}();
n.default = o;
cc._RF.pop();
}, {} ],
App_htdjd_Platform: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "f8b57dn8sFM+5vHjIk2kcjH", "App_htdjd_Platform");
Object.defineProperty(n, "__esModule", {
value: !0
});
var i = t("../Config/App_htdjd_Config"), o = function() {
function t() {}
t.dumpPlatform_htdjd = function() {};
t.is_QQ_PLAY_htdjd = function() {
return cc.sys.platform == cc.sys.WECHAT_GAME && 2 == i.default.isWX_TT_QQ_MiniGame_htdjd;
};
t.is_OPPO_GAME_htdjd = function() {
return cc.sys.platform == cc.sys.VIVO_GAME;
};
t.is_WECHAT_GAME_htdjd = function() {
return 0 == i.default.isWX_TT_QQ_MiniGame_htdjd && cc.sys.platform == cc.sys.WECHAT_GAME;
};
t.is_VIVO_GAME_htdjd = function() {
return cc.sys.platform == cc.sys.OPPO_GAME;
};
t.isIphoneX_htdjd = function() {
if (this.isIphone_htdjd()) {
var t = cc.sys.windowPixelResolution;
if (2436 == t.width && 1125 == t.height || 2436 == t.height && 1125 == t.width) return !0;
if (2688 == t.width && 1242 == t.height || 2688 == t.height && 1242 == t.width) return !0;
if (1792 == t.width && 828 == t.height || 1792 == t.height && 828 == t.width) return !0;
}
return !1;
};
t.is_TT_GAME_htdjd = function() {
return cc.sys.platform == cc.sys.BYTEDANCE_GAME;
};
t.isIphone_htdjd = function() {
return cc.sys.os == cc.sys.OS_IOS;
};
return t;
}();
n.default = o;
cc._RF.pop();
}, {
"../Config/App_htdjd_Config": "App_htdjd_Config"
} ],
Base_htdjd_View: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "a1393onMmVKPK3ibs6aIRZh", "Base_htdjd_View");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = cc._decorator, d = _.ccclass, r = _.property, s = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.sceneName = "";
e._dataBaseView = {};
return e;
}
e.prototype.setListenerBaseView = function(t) {
this.listenerBaseView = t;
};
e.prototype.openView = function(t) {
this._dataBaseView = t;
this.openScene(t);
};
e.prototype.openScene = function(t) {
this._dataBaseView = t;
};
e.prototype.closeView = function() {
this.destroy();
};
a([ r({
displayName: "场景名"
}) ], e.prototype, "sceneName", void 0);
return a([ d ], e);
}(cc.Component);
n.default = s;
cc._RF.pop();
}, {} ],
Bundle_htdjd_Mgr: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "877a3UASUlFu5nMq3NX2h6R", "Bundle_htdjd_Mgr");
Object.defineProperty(n, "__esModule", {
value: !0
});
var i = t("../Interface/FM_htdjd_Interface"), o = function() {
function t() {}
t.loadBundleByName_htdjd = function(t, e) {
console.error("开始加载资源包 1111111" + t);
cc.assetManager.loadBundle(t, function(n, i) {
console.error("加载成功分包" + t, n, i);
e(n, i);
});
};
t.getBundle_htdjd = function(t) {
return cc.assetManager.getBundle(t);
};
t.runScene_htdjd = function(t, e, n) {
void 0 === n && (n = null);
var o = this.getBundle_htdjd(t);
o ? o.loadScene(e, function(t, e) {
n && i.callFM_htdjd(n);
cc.director.runScene(e);
}) : this.loadBundleByName_htdjd(t, i.handleFM_htdjd(function(t, o) {
o.loadScene(e, function(t, e) {
n && i.callFM_htdjd(n);
cc.director.runScene(e);
});
}, this));
};
t.removeBundle_htdjd = function(t, e) {
void 0 === e && (e = !0);
var n = this.getBundle_htdjd(t);
n && e && n.releaseAll();
cc.assetManager.removeBundle(n);
};
return t;
}();
n.default = o;
cc._RF.pop();
}, {
"../Interface/FM_htdjd_Interface": "FM_htdjd_Interface"
} ],
ButWudian_htdjd_Prefab: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "c3e29hQpexBSp9hLAx6IHLa", "ButWudian_htdjd_Prefab");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../../Mgr/wudian_htdjd_Mgr"), d = t("../../Util/App_htdjd_Platform"), r = t("../../Platform/WX/WXAPI"), s = t("../../Config/AppSwitchConfig"), c = t("../../Event/Event_htdjd_Mgr"), h = t("../../Event/EventEnum"), l = t("../MiniGame/MiniGame_htdjd_View"), p = t("../../Interface/FM_htdjd_Interface"), u = t("../../Base/FM_htdjd_ViewBase"), f = t("../../Util/Common_htdjd"), y = cc._decorator, g = y.ccclass, m = y.property, v = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.miniGamePrefab = null;
return e;
}
e.prototype.addEvent_htdjd = function() {
c.default.onEvent_htdjd(h.htdjd_Event.htdjd_App_OnUpdateIpBlockState_htdjd, this.onUpdateIpBlockState_htdjd, this);
};
e.prototype.initView_htdjd = function() {
_.default.htdjd_GetIpBlocked_htdjd() ? this.node.active = this.isShowHistoryBtn_htdjd() : this.node.active = !1;
this.node.on("click", this.onHistoryBtn_htdjd, this);
};
e.prototype.setlistenerCallFunction_htdjd = function(t) {
this.listenerCall_htdjd = t;
};
e.prototype.onHistoryBtn_htdjd = function() {
var t = this;
if (null == this.miniGame_htdjd) {
this.miniGame_htdjd = f.default.createPrefab_htdjd(this.miniGamePrefab, l.default);
this.miniGame_htdjd.onListenerEventView_htdjd(p.handleFM_htdjd(function(e) {
if (e == t.miniGame_htdjd.EventEnumView_htdjd.CloseView_htdjd) {
t.miniGame_htdjd.removeView_htdjd();
t.miniGame_htdjd = null;
t.emitListenerEvent_htdjd(t.EventEnumView_htdjd.CloseHistoryView_htdjd);
}
}, this));
}
this.miniGame_htdjd.showView_htdjd();
this.emitListenerEvent_htdjd(this.EventEnumView_htdjd.OpenHistoryView_htdjd);
};
e.prototype.removeEvent_htdjd = function() {
c.default.offEvent_htdjd(h.htdjd_Event.htdjd_App_OnUpdateIpBlockState_htdjd, this.onUpdateIpBlockState_htdjd, this);
};
e.prototype.onUpdateIpBlockState_htdjd = function() {
this.node.active = this.isShowHistoryBtn_htdjd();
};
e.prototype.isShowHistoryBtn_htdjd = function() {
var t = 0;
d.default.is_WECHAT_GAME_htdjd() && (t = r.default.getLaunchOptionsSync_htdjd().scene);
for (var e = !0, n = s.default.getInstance_htdjd().getAppSwitchData_htdjd().wudianSceneList_htdjd, i = 0; i < n.length; ++i) if (t == n[i]) {
e = !1;
break;
}
return !(d.default.is_OPPO_GAME_htdjd() || !e || !_.default.htdjd_GetIpBlocked_htdjd() || 0 == s.default.getInstance_htdjd().getAppSwitchData_htdjd().fakeBtn_htdjd);
};
a([ m({
tooltip: "点击跳转MiniGamePrefab",
type: cc.Prefab
}) ], e.prototype, "miniGamePrefab", void 0);
return a([ g ], e);
}(u.default);
n.default = v;
cc._RF.pop();
}, {
"../../Base/FM_htdjd_ViewBase": "FM_htdjd_ViewBase",
"../../Config/AppSwitchConfig": "AppSwitchConfig",
"../../Event/EventEnum": "EventEnum",
"../../Event/Event_htdjd_Mgr": "Event_htdjd_Mgr",
"../../Interface/FM_htdjd_Interface": "FM_htdjd_Interface",
"../../Mgr/wudian_htdjd_Mgr": "wudian_htdjd_Mgr",
"../../Platform/WX/WXAPI": "WXAPI",
"../../Util/App_htdjd_Platform": "App_htdjd_Platform",
"../../Util/Common_htdjd": "Common_htdjd",
"../MiniGame/MiniGame_htdjd_View": "MiniGame_htdjd_View"
} ],
CachedWXBannerAd: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "4506beo50hH1ojjpgW+w0ZP", "CachedWXBannerAd");
Object.defineProperty(n, "__esModule", {
value: !0
});
var i = t("../../Config/AppSwitchConfig"), o = function() {
function t() {}
t.preloadBanner_htdjd = function() {
for (var t = i.default.getInstance_htdjd().getAppSwitchData_htdjd().wxWuDianBanners_htdjd, e = i.default.getInstance_htdjd().getAppSwitchData_htdjd().bannerTodayBannerMax_htdjd, n = new Array(), o = 0; o < t.length; ++o) n.push(t[o]);
if (n.length > e) {
var a = n.length - e;
for (o = 0; o < a; ++o) n.splice(Math.floor(Math.random() * n.length), 1);
}
console.log("开始预创建微信Bannaer", n);
console.log("Bannaer 最大数限制 ：", e);
};
t.create_htdjd = function() {};
t.getBanner_htdjd = function(e) {
if (null == e || "" == e) return null;
var n = t._bannerCache_htdjd[e];
null == n && null != (n = t.create_htdjd(e)) && (t._bannerCache_htdjd[e] = n);
return n;
};
t.show_htdjd = function() {
if (null != t._curBanner_htdjd) {
t._curBanner_htdjd.hide();
t._curBanner_htdjd = null;
}
var e = i.default.getInstance_htdjd().getAppSwitchData_htdjd().wxWuDianBanners_htdjd, n = e[Math.floor(Math.random() * e.length)], o = t.getBanner_htdjd(n);
if (o) {
t._curBanner_htdjd = o;
var a = window.wx.getSystemInfoSync(), _ = (a.screenWidth, a.screenHeight);
t._curBanner_htdjd.style.top = (cc.visibleRect.height - 240) / cc.visibleRect.height * _;
t._curBanner_htdjd.show();
console.log("CachedWXBanner 广告显示 bannerid ： ", n);
}
i.default.getInstance_htdjd().getAppSwitchData_htdjd().bannerFreshTimer_htdjd;
};
t.changeShow_htdjd = function() {
if (null != t._curBanner_htdjd) {
t._curBanner_htdjd.hide();
t._curBanner_htdjd = null;
}
t.show_htdjd();
};
t.hide_htdjd = function() {
if (null != t._curBanner_htdjd) {
t._curBanner_htdjd.hide();
t._curBanner_htdjd = null;
}
console.log("CachedWXBanner 广告隐藏");
};
t.clear_htdjd = function() {
for (var e in t._bannerCache_htdjd) {
var n = t._bannerCache_htdjd[e];
null != n && n.destroy();
t._bannerCache_htdjd[e] = null;
}
};
t._bannerCache_htdjd = {};
t._preLoopObj_htdjd = {};
t._curBanner_htdjd = null;
return t;
}();
n.default = o;
cc._RF.pop();
}, {
"../../Config/AppSwitchConfig": "AppSwitchConfig"
} ],
Common_htdjd: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "50741XyLllMFLPp3iHvyV3u", "Common_htdjd");
Object.defineProperty(n, "__esModule", {
value: !0
});
var i = function() {
function t() {}
t.createPrefab_htdjd = function(t, e, n) {
var i = cc.instantiate(t);
n ? n.addChild(i) : cc.director.getScene().getChildByName("Canvas").addChild(i);
console.log("创建", t.name);
return i.getComponent(e);
};
return t;
}();
n.default = i;
cc._RF.pop();
}, {} ],
Date_htdjd_Utils: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "553a9c8nklAvIKumN8bOwCk", "Date_htdjd_Utils");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Date_htdjd_Utils = void 0;
var i = function() {
function t() {}
t.formatTime2_htdjd = function(t) {
var e = "", n = t / 60, i = t - 60 * (n = parseInt(n + ""));
return (e += n > 9 ? n + "分" : "0" + n + "分") + ((i = parseInt(i + "")) > 9 ? i + "秒" : "0" + i + "秒");
};
t.formatTime3_htdjd = function(t) {
var e = "", n = t / 60, i = t - 60 * (n = parseInt(n + ""));
return (e += n > 9 ? n + ":" : "0" + n + ":") + ((i = parseInt(i + "")) > 9 ? i : "0" + i);
};
t.getNowTime_htdjd = function() {
return new Date().getTime();
};
t.formatTime_htdjd = function(t) {
var e = "", n = t / 3600, i = (t - 3600 * (n = parseInt(n + ""))) / 60, o = t - 3600 * n - 60 * (i = parseInt(i + ""));
n > 0 && (e += n + ":");
return (e += i > 9 ? i + ":" : "0" + i + ":") + ((o = parseInt(o + "")) > 9 ? o + "" : "0" + o);
};
t.millisecondsToDate_htdjd = function(t, e) {
var n = new Date(t), i = {
"M+": n.getMonth() + 1,
"d+": n.getDate(),
"h+": n.getHours(),
"H+": n.getHours(),
"m+": n.getMinutes(),
"s+": n.getSeconds(),
"q+": Math.floor((n.getMonth() + 3) / 3),
S: n.getMilliseconds()
};
/(y+)/.test(e) && (e = e.replace(RegExp.$1, (n.getFullYear() + "").substr(4 - RegExp.$1.length)));
/(E+)/.test(e) && (e = e.replace(RegExp.$1, (RegExp.$1.length > 1 ? RegExp.$1.length > 2 ? "星期" : "周" : "") + {
0: "日",
1: "一",
2: "二",
3: "三",
4: "四",
5: "五",
6: "六"
}[n.getDay() + ""]));
for (var o in i) new RegExp("(" + o + ")").test(e) && (e = e.replace(RegExp.$1, 1 == RegExp.$1.length ? i[o] : ("00" + i[o]).substr(("" + i[o]).length)));
return e;
};
t.convertDateFromString_htdjd = function(t) {
if (t) {
var e = t.split(" ")[0].split("/");
return new Date(e[0], e[1] - 1, e[2]);
}
};
t.getMonTimeByNowTime_htdjd = function() {
var t = new Date(), e = t.getDay();
0 == e && (e = 7);
t.setHours(0, 0, 0, 0);
return new Date(t.getTime() - 864e5 * (e - 1)).getTime();
};
t.getMonthWeek_htdjd = function() {
var t = new Date(), e = (t.getFullYear(), t.getDay(), t.getDate(), t.getDay()), n = t.getDate();
return Math.ceil((n + 6 - e) / 7);
};
t.isSameDay_htdjd = function(t, e) {
void 0 === e && (e = Date.now());
var n = Number(t), i = Number(e);
if (n && i) {
var o = new Date(n), a = new Date(i);
return o.setHours(0, 0, 0, 0) == a.setHours(0, 0, 0, 0);
}
return !1;
};
return t;
}();
n.Date_htdjd_Utils = i;
cc._RF.pop();
}, {} ],
EnterScene: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "3c8728z7hpMOLZimXniZM0U", "EnterScene");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("./HelpMgr"), d = t("./FlyLabelHelpMgr"), r = cc._decorator, s = r.ccclass, c = r.property, h = 0;
if (cc.sys.os === cc.sys.OS_IOS && cc.sys.isBrowser && cc.sys.isMobile && /iPhone OS 14/.test(window.navigator.userAgent)) {
cc.MeshBuffer.prototype.checkAndSwitchBuffer = function(t) {
if (this.vertexOffset + t > 65535) {
this.uploadData();
this._batcher._flush();
}
};
cc.MeshBuffer.prototype.forwardIndiceStartToOffset = function() {
this.uploadData();
this.switchBuffer();
};
}
var l = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.m_jdLabel = null;
e.m_pro = null;
e.m_labelPre = null;
e._onPro = 0;
e._maxPro = 0;
e._isLoadFinish = !1;
e._isDownSubFinish = 0;
e._count = 0;
return e;
}
e.prototype.onLoad = function() {
_.default.instance.init();
this.initUI();
this.notDonw();
};
e.prototype.initUI = function() {
if (!this.m_jdLabel) {
this.m_jdLabel = cc.find("Canvas/labelNode/jzpro").getComponent(cc.Label);
this.m_pro = cc.find("Canvas/pro").getComponent(cc.ProgressBar);
this._maxPro = .9999;
}
};
e.prototype.notDonw = function() {
h = 1;
this.loadSubFinish();
};
e.prototype.downSub = function(t) {
var e = this;
h++;
"undefined" != typeof wx ? setTimeout(function() {
e.downSubpackage(t, e.loadSubFinish.bind(e));
}, 10) : this.loadSubFinish();
};
e.prototype.downSubpackage = function(t, e) {
if ("undefined" != typeof wx) {
var n = this;
cc.assetManager.loadBundle(t, function(i) {
if (i) {
n._count++;
if (n._count < 10) {
n.downSubpackage(t, e);
return console.error(i);
}
}
e && e();
console.log("load subpackage successfully.");
});
} else e && e();
};
e.prototype.loadSubFinish = function() {
this._isDownSubFinish++;
if (this._isDownSubFinish == h) {
d.default.setParentNode(!0, this.m_labelPre);
cc.director.preloadScene("Scene2", this.onProgress.bind(this), this.enterGame.bind(this));
}
};
e.prototype.onProgress = function() {};
e.prototype.enterGame = function() {
if (!this._isLoadFinish) {
this._maxPro = 1;
this._isLoadFinish = !0;
}
};
e.prototype.isFinish = function() {
return this._isLoadFinish && this._isDownSubFinish == h;
};
e.prototype.update = function() {
if (this._maxPro > 0) {
var t = .01;
this.isFinish() && (t = .1);
this._onPro + t <= this._maxPro ? this._onPro += t : this._onPro < this._maxPro && (this._onPro = this._maxPro);
if (this._onPro >= .9999) {
this._onPro = 1;
if (this.isFinish()) {
cc.director.loadScene("Scene2");
this._maxPro = -1;
}
}
this.m_pro.progress = this._onPro;
this.m_jdLabel.string = Math.ceil(100 * this.m_pro.progress) + "%";
}
};
a([ c(cc.Prefab) ], e.prototype, "m_labelPre", void 0);
return a([ s ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {
"./FlyLabelHelpMgr": "FlyLabelHelpMgr",
"./HelpMgr": "HelpMgr"
} ],
EventEnum: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "94947oCpcdGZ6oeuKmdOGCo", "EventEnum");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.htdjd_Event = void 0;
(function(t) {
t[t.htdjd_App_CloseFirstLoadingView_htdjd = 500] = "htdjd_App_CloseFirstLoadingView_htdjd";
t[t.htdjd_None_htdjd = 0] = "htdjd_None_htdjd";
t[t.htdjd_ADKRQ_ClickQuit_htdjd = 400] = "htdjd_ADKRQ_ClickQuit_htdjd";
t[t.htdjd_Game_OnViewClose_htdjd = 601] = "htdjd_Game_OnViewClose_htdjd";
t[t.htdjd_Game_OnUserMoneyChange_htdjd = 701] = "htdjd_Game_OnUserMoneyChange_htdjd";
t[t.htdjd_AD_OnShareAdFail_htdjd = 501] = "htdjd_AD_OnShareAdFail_htdjd";
t[t.htdjd_Game_OnUserUnlockedStore_htdjd = 703] = "htdjd_Game_OnUserUnlockedStore_htdjd";
t[t.htdjd_AD_WudianBanner_LoadComplete_htdjd = 2217] = "htdjd_AD_WudianBanner_LoadComplete_htdjd";
t[t.htdjd_Game_OnUserCrystalChange_htdjd = 702] = "htdjd_Game_OnUserCrystalChange_htdjd";
t[t.htdjd_Game_OnLevelStart_htdjd = 1e3] = "htdjd_Game_OnLevelStart_htdjd";
t[t.htdjd_Game_OnLevelComplate_htdjd = 1001] = "htdjd_Game_OnLevelComplate_htdjd";
t[t.htdjd_AD_WudianBanner_Show_htdjd = 2218] = "htdjd_AD_WudianBanner_Show_htdjd";
t[t.htdjd_App_OnUpdateIpBlockState_htdjd = 2221] = "htdjd_App_OnUpdateIpBlockState_htdjd";
t[t.htdjd_AD_WudianBanner_PreLoad_htdjd = 2220] = "htdjd_AD_WudianBanner_PreLoad_htdjd";
t[t.htdjd_AD_WudianBanner_Hide_htdjd = 2219] = "htdjd_AD_WudianBanner_Hide_htdjd";
t[t.htdjd_Game_OnViewOpen_htdjd = 600] = "htdjd_Game_OnViewOpen_htdjd";
t[t.Game_UserKillInfo = 20003] = "Game_UserKillInfo";
t[t.Game_GameOverPush = 20004] = "Game_GameOverPush";
t[t.Game_BulletBlast = 20002] = "Game_BulletBlast";
t[t.Game_UserLaunchBullet = 20001] = "Game_UserLaunchBullet";
t[t.Role_Dead_Ani = 20005] = "Role_Dead_Ani";
t[t.Game_UserInfoBar = 20006] = "Game_UserInfoBar";
t[t.WuShuang_Index = 20007] = "WuShuang_Index";
t[t.curClickHallPlayer = 20008] = "curClickHallPlayer";
t[t.UPDATA_ROLE = 20009] = "UPDATA_ROLE";
t[t.UPDATE_WQ_SKIN = 20010] = "UPDATE_WQ_SKIN";
t[t.GAME_FINISH = 20011] = "GAME_FINISH";
t[t.jiesuo_htdjd_Node = 20012] = "jiesuo_htdjd_Node";
t[t.on_htdjd_GameStart = 20013] = "on_htdjd_GameStart";
})(n.htdjd_Event || (n.htdjd_Event = {}));
cc._RF.pop();
}, {} ],
Event_htdjd_Defs: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "a534e4NSTROGLTmDt/GtuQq", "Event_htdjd_Defs");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.playRole_htdjd_Name = n.TouchOperate_htdjd_Type = n.Game_htdjd_Type = n.GameOver_htdjd_Type = void 0;
(function(t) {
t[t.win = 0] = "win";
t[t.lose = 1] = "lose";
t[t.draw = 2] = "draw";
})(n.GameOver_htdjd_Type || (n.GameOver_htdjd_Type = {}));
(function(t) {
t[t.default = -1] = "default";
t[t.game = 0] = "game";
t[t.over = 1] = "over";
})(n.Game_htdjd_Type || (n.Game_htdjd_Type = {}));
(function(t) {
t[t.not = -1] = "not";
t[t.left = 0] = "left";
t[t.right = 1] = "right";
t[t.up = 2] = "up";
})(n.TouchOperate_htdjd_Type || (n.TouchOperate_htdjd_Type = {}));
(function(t) {
t.attack = "PuGong";
t.jump = "TiaoYue";
t.attacked = "ShouJi";
t.jumpattack = "TiaoYue";
t.standby = "DaiJi";
t.lose = "SiWang";
t.walk = "YiDong";
t.daZhao = "DaZhao";
t.win = "victory";
})(n.playRole_htdjd_Name || (n.playRole_htdjd_Name = {}));
cc._RF.pop();
}, {} ],
Event_htdjd_Mgr: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "f8dfeJgdmJHo6btOQzfwZzs", "Event_htdjd_Mgr");
Object.defineProperty(n, "__esModule", {
value: !0
});
var i = function() {
function t() {}
t.dispatch = function(t, e, n, i, o, a) {
this.eventTarget_htdjd.emit(t + "", e, n, i, o, a);
};
t.emitEvent_htdjd = function(t, e, n, i, o, a) {
this.eventTarget_htdjd.emit(t + "", e, n, i, o, a);
};
t.onEvent_htdjd = function(t, e, n) {
this.eventTarget_htdjd.on(t + "", e, n);
};
t.onceEvent_htdjd = function(t, e, n) {
this.eventTarget_htdjd.once(t + "", e, n);
};
t.offEvent_htdjd = function(t, e, n) {
this.eventTarget_htdjd.off(t + "", e, n);
};
t.offTargetEvent_htdjd = function(t) {
this.eventTarget_htdjd.targetOff(t);
};
t.eventTarget_htdjd = new cc.EventTarget();
return t;
}();
n.default = i;
cc._RF.pop();
}, {} ],
Export1_htdjd_View: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "379fdF3noJNOaTyR0wTwuQF", "Export1_htdjd_View");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../Banner/WXBanner_htdjd_View"), d = t("../Prefab/ButWudian_htdjd_Prefab"), r = t("../../Interface/FM_htdjd_Interface"), s = t("../../Util/Common_htdjd"), c = t("../../Base/FM_htdjd_ViewBase"), h = cc._decorator, l = h.ccclass, p = h.property, u = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.clickBut = null;
e.wxBannerNode = null;
e.backWudianBut = null;
return e;
}
e.prototype.initView_htdjd = function() {
var t = this;
this.scriptWXBannerView_htdjd = this.wxBannerNode.getComponent(_.default);
this.clickBut.active = !1;
this.clickBut.on(cc.Node.EventType.TOUCH_START, function() {
t.emitListenerEvent_htdjd(t.EventEnumView_htdjd.ContinueGame_htdjd);
}, this);
var e = this, n = s.default.createPrefab_htdjd(this.backWudianBut, d.default, this.node);
n.onListenerEventView_htdjd(r.handleFM_htdjd(function(t) {
t == n.EventEnumView_htdjd.OpenHistoryView_htdjd ? e.scriptWXBannerView_htdjd.node.active = !0 : t == n.EventEnumView_htdjd.CloseHistoryView_htdjd && (e.scriptWXBannerView_htdjd.node.active = !1);
}, this));
this.clickBut.active = !0;
};
e.prototype.removeEvent_htdjd = function() {};
e.prototype.addEvent_htdjd = function() {};
a([ p({
tooltip: "返回按钮",
type: cc.Node
}) ], e.prototype, "clickBut", void 0);
a([ p({
tooltip: "wxBanner",
type: cc.Node
}) ], e.prototype, "wxBannerNode", void 0);
a([ p({
tooltip: "误点返回按钮",
type: cc.Prefab
}) ], e.prototype, "backWudianBut", void 0);
return a([ l ], e);
}(c.default);
n.default = u;
cc._RF.pop();
}, {
"../../Base/FM_htdjd_ViewBase": "FM_htdjd_ViewBase",
"../../Interface/FM_htdjd_Interface": "FM_htdjd_Interface",
"../../Util/Common_htdjd": "Common_htdjd",
"../Banner/WXBanner_htdjd_View": "WXBanner_htdjd_View",
"../Prefab/ButWudian_htdjd_Prefab": "ButWudian_htdjd_Prefab"
} ],
Export2_htdjd_View: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "e1b53CEIONOGI2JgdoZ8AZR", "Export2_htdjd_View");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../../Config/AppSwitchConfig"), d = t("../../Mgr/wudian_htdjd_Mgr"), r = t("../../Base/FM_htdjd_ViewBase"), s = t("../Prefab/ButWudian_htdjd_Prefab"), c = t("../../Util/Common_htdjd"), h = t("../../Interface/FM_htdjd_Interface"), l = t("../../Net/Net_Mgr"), p = cc._decorator, u = p.ccclass, f = p.property, y = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.clickBut = null;
e.backWudianBut = null;
e.bannerNode = null;
e._isCanClose_htdjd = !1;
e._isBannerTime_htdjd = !0;
return e;
}
e.prototype.quitBtnWD = function() {
var t = this;
this._isCanClose_htdjd = !1;
this._isBannerTime_htdjd = !0;
this.bannerNode.active = !1;
console.log("quitBtnWD");
if (l.default.WX_SdkCustomKey.exportBanner && l.default.WX_SdkCustomKey.appId) {
this.clickBut.active = !1;
this.scheduleOnce(function() {
t._isCanClose_htdjd = !0;
t.clickBut.active = !0;
t._isBannerTime_htdjd = !0;
}, l.default.WX_SdkCustomKey.btnDelayShow);
} else {
this._isCanClose_htdjd = !0;
this._isBannerTime_htdjd = !1;
}
};
e.prototype.closeShow = function() {};
e.prototype.initView_htdjd = function() {
var t = this;
this.clickBut.on(cc.Node.EventType.TOUCH_END, this.onContinueBtn_htdjd, this);
var e = this, n = c.default.createPrefab_htdjd(this.backWudianBut, s.default, this.node);
n.onListenerEventView_htdjd(h.handleFM_htdjd(function(t) {
t == n.EventEnumView_htdjd.OpenHistoryView_htdjd || n.EventEnumView_htdjd.CloseHistoryView_htdjd;
}, this));
if (d.default.wudianFlag_htdjd && 1 == _.default.getInstance_htdjd().getAppSwitchData_htdjd().continueBanner_htdjd) {
this.clickBut.active = !0;
this.scheduleOnce(function() {
e.showBanner_htdjd();
t.scheduleOnce(function() {
e._isCanClose_htdjd = !0;
null != e._banner_htdjd && e._banner_htdjd.hide_htdjd();
e._banner_htdjd = null;
}, _.default.getInstance_htdjd().getAppSwitchData_htdjd().continueBannerHideTime_htdjd);
}, _.default.getInstance_htdjd().getAppSwitchData_htdjd().continueBannerShowTime_htdjd);
} else {
this.clickBut.active = !0;
e._isCanClose_htdjd = !0;
}
};
e.prototype.okBtn_htdjd_WD = function() {
var t = this;
this.bannerNode.active = !0;
this.scheduleOnce(function() {
t._isCanClose_htdjd = !0;
t.bannerNode.active = !1;
}, 3);
};
e.prototype.onEnable = function() {
t.prototype.onEnable.call(this);
this.quitBtnWD();
};
e.prototype.addEvent_htdjd = function() {};
e.prototype.onContinueBtn_htdjd = function() {
var t = this;
if (this._isCanClose_htdjd) if (this._isBannerTime_htdjd) {
this._isBannerTime_htdjd = !1;
this._isCanClose_htdjd = !1;
this.scheduleOnce(function() {
t.okBtn_htdjd_WD();
});
} else if (this._isCanClose_htdjd) {
this.emitListenerEvent_htdjd(this.EventEnumView_htdjd.ContinueGame_htdjd);
this.unscheduleAllCallbacks();
}
};
e.prototype.removeEvent_htdjd = function() {};
a([ f({
tooltip: "继续游戏",
type: cc.Node
}) ], e.prototype, "clickBut", void 0);
a([ f({
tooltip: "误点返回按钮",
type: cc.Prefab
}) ], e.prototype, "backWudianBut", void 0);
a([ f({
tooltip: "banner",
type: cc.Node
}) ], e.prototype, "bannerNode", void 0);
return a([ u ], e);
}(r.default);
n.default = y;
cc._RF.pop();
}, {
"../../Base/FM_htdjd_ViewBase": "FM_htdjd_ViewBase",
"../../Config/AppSwitchConfig": "AppSwitchConfig",
"../../Interface/FM_htdjd_Interface": "FM_htdjd_Interface",
"../../Mgr/wudian_htdjd_Mgr": "wudian_htdjd_Mgr",
"../../Net/Net_Mgr": "Net_Mgr",
"../../Util/Common_htdjd": "Common_htdjd",
"../Prefab/ButWudian_htdjd_Prefab": "ButWudian_htdjd_Prefab"
} ],
Export3_htdjd_View: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "8803eqdkcFKkJ0t9fMw/Rlc", "Export3_htdjd_View");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../../Mgr/wudian_htdjd_Mgr"), d = t("../../Config/AppSwitchConfig"), r = t("../Prefab/ButWudian_htdjd_Prefab"), s = t("../../Interface/FM_htdjd_Interface"), c = t("../../Util/Common_htdjd"), h = t("../../Base/FM_htdjd_ViewBase"), l = cc._decorator, p = l.ccclass, u = l.property, f = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.viewMore = null;
e.clickBut = null;
e.backWudianBut = null;
e._clickTimingTag_htdjd = !1;
e._clickTag_htdjd = !1;
return e;
}
e.prototype.initView_htdjd = function() {
var t = cc.view.getVisibleSize().width / cc.view.getVisibleSize().height;
this.viewMore.height = t < .5 ? 900 : 750;
this.clickBut.on(cc.Node.EventType.TOUCH_START, this.onCloseBtn_htdjd, this);
var e = this, n = c.default.createPrefab_htdjd(this.backWudianBut, r.default, this.node);
n.onListenerEventView_htdjd(s.handleFM_htdjd(function(t) {
t == n.EventEnumView_htdjd.OpenHistoryView_htdjd ? null != e._banner_htdjd && e._banner_htdjd.hide_htdjd() : t == n.EventEnumView_htdjd.CloseHistoryView_htdjd && null != e._banner_htdjd && e._banner_htdjd.show_htdjd();
}, this));
if (_.default.wudianFlag_htdjd) {
var i = d.default.getInstance_htdjd().getAppSwitchData_htdjd().btnMoveTimer_htdjd, o = d.default.getInstance_htdjd().getAppSwitchData_htdjd().bannerMoveTimer_htdjd;
this.scheduleOnce(this.BannerUp_htdjd, o);
this.scheduleOnce(this.BtnUp_htdjd, i);
}
};
e.prototype.addEvent_htdjd = function() {};
e.prototype.removeEvent_htdjd = function() {};
e.prototype.onCloseBtn_htdjd = function() {
if (this._clickTag_htdjd || !_.default.wudianFlag_htdjd) {
this.emitListenerEvent_htdjd(this.EventEnumView_htdjd.ContinueGame_htdjd);
this.unscheduleAllCallbacks();
} else if (!this._clickTimingTag_htdjd) {
this._clickTimingTag_htdjd = !0;
var t = d.default.getInstance_htdjd().getAppSwitchData_htdjd().btnMoveTimer_htdjd, e = d.default.getInstance_htdjd().getAppSwitchData_htdjd().bannerMoveTimer_htdjd;
this.scheduleOnce(this.BannerUp_htdjd, e);
this.scheduleOnce(this.BtnUp_htdjd, t);
}
};
e.prototype.BannerUp_htdjd = function() {
this.showBanner_htdjd();
};
e.prototype.BtnUp_htdjd = function() {
this._clickTag_htdjd = !0;
this.clickBut.getComponent(cc.Widget).bottom = 270;
var t = cc.view.getVisibleSize().width / cc.view.getVisibleSize().height;
this.clickBut.getComponent(cc.Widget).bottom = t < .5 ? 270 : 370;
};
a([ u({
tooltip: "滚动区域",
type: cc.Node
}) ], e.prototype, "viewMore", void 0);
a([ u({
tooltip: "继续游戏",
type: cc.Node
}) ], e.prototype, "clickBut", void 0);
a([ u({
tooltip: "误点返回按钮",
type: cc.Prefab
}) ], e.prototype, "backWudianBut", void 0);
return a([ p ], e);
}(h.default);
n.default = f;
cc._RF.pop();
}, {
"../../Base/FM_htdjd_ViewBase": "FM_htdjd_ViewBase",
"../../Config/AppSwitchConfig": "AppSwitchConfig",
"../../Interface/FM_htdjd_Interface": "FM_htdjd_Interface",
"../../Mgr/wudian_htdjd_Mgr": "wudian_htdjd_Mgr",
"../../Util/Common_htdjd": "Common_htdjd",
"../Prefab/ButWudian_htdjd_Prefab": "ButWudian_htdjd_Prefab"
} ],
FM_htdjd_Button: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "063f2oeVtlKeav7jb4gZRiz", "FM_htdjd_Button");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.FM_htdjd_Button = void 0;
var _ = t("../Mgr/Sound_htdjd_Mgr"), d = cc._decorator, r = d.ccclass, s = (d.property, 
d.menu), c = d.disallowMultiple, h = (d.executionOrder, d.requireComponent), l = function(t) {
o(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
e.prototype.onLoad = function() {
var t = this.node.getComponent(cc.Button);
if (t.transition == cc.Button.Transition.NONE) {
t.transition = cc.Button.Transition.SCALE;
t.duration = .1;
t.zoomScale = .9;
}
this.node.on("click", function() {
_.default.playSound_htdjd("anniu");
}, this);
};
return a([ r, h(cc.Button), c(), s("FM组件/FM_htdjd_Button") ], e);
}(cc.Component);
n.FM_htdjd_Button = l;
cc._RF.pop();
}, {
"../Mgr/Sound_htdjd_Mgr": "Sound_htdjd_Mgr"
} ],
FM_htdjd_Interface: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "960ddPW6plCX7rTQuyZQoCo", "FM_htdjd_Interface");
var i = this && this.__spreadArrays || function() {
for (var t = 0, e = 0, n = arguments.length; e < n; e++) t += arguments[e].length;
var i = Array(t), o = 0;
for (e = 0; e < n; e++) for (var a = arguments[e], _ = 0, d = a.length; _ < d; _++, 
o++) i[o] = a[_];
return i;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.handleFM_htdjd = n.callFM_htdjd = void 0;
n.callFM_htdjd = function(t) {
for (var e, n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
if (t && t.callback) return (e = t.callback).call.apply(e, i([ t.target ], n));
};
n.handleFM_htdjd = function(t, e) {
return {
target: e,
callback: t
};
};
cc._RF.pop();
}, {} ],
FM_htdjd_ItemLayout: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "8482a+fXPVGpbazvKpZtGQW", "FM_htdjd_ItemLayout");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../Base/FM_htdjd_ViewBase"), d = t("../Interface/FM_htdjd_Interface"), r = cc._decorator, s = r.ccclass, c = r.property, h = (r.requireComponent, 
r.disallowMultiple), l = (r.menu, function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.itemChilds = [];
e.ad_tag_htdjd = null;
e.itemIndex_htdjd = 0;
return e;
}
e.prototype.addEvent_htdjd = function() {};
e.prototype.removeEvent_htdjd = function() {};
e.prototype.initView_htdjd = function() {};
e.prototype.setItemIndex_htdjd = function(t) {
this.itemIndex_htdjd = t;
if (this._fmListenerData_htdjd) for (var e = this.itemChilds.length, n = 0; n < e; n++) {
var i = this.itemIndex_htdjd * e + n, o = d.callFM_htdjd(this._fmListenerData_htdjd, i);
this.updateDataItemByIndex_htdjd(o, n);
}
};
e.prototype.setAdTag_htdjd = function(t) {
this.ad_tag_htdjd = t;
};
e.prototype.setFMListenerUpdate_htdjd = function(t) {
this._fmListenerData_htdjd = t;
};
e.prototype.updateDataItemByIndex_htdjd = function() {};
e.prototype.getPointY_htdjd = function() {
return this.node.y;
};
e.prototype.getPointX_htdjd = function() {
return this.node.x;
};
e.prototype.getItemIndex_htdjd = function() {
return this.itemIndex_htdjd;
};
e.prototype.setPointY_htdjd = function(t) {
this.node.y = t;
};
e.prototype.getItemChildrenCount_htdjd = function() {
return this.itemChilds.length;
};
e.prototype.setPointX_htdjd = function(t) {
this.node.x = t;
};
a([ c({
tooltip: "子节点集合",
type: [ cc.Node ]
}) ], e.prototype, "itemChilds", void 0);
return a([ s, h() ], e);
}(_.default));
n.default = l;
cc._RF.pop();
}, {
"../Base/FM_htdjd_ViewBase": "FM_htdjd_ViewBase",
"../Interface/FM_htdjd_Interface": "FM_htdjd_Interface"
} ],
FM_htdjd_ScrollViewLoop: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "685e88bRjRGNawxLozbkHdK", "FM_htdjd_ScrollViewLoop");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("./FM_htdjd_TouchMaskView"), d = t("../Interface/FM_htdjd_Interface"), r = t("../Util/Utilit_htdjd"), s = t("./FM_htdjd_ItemLayout"), c = cc._decorator, h = c.ccclass, l = c.property, p = c.disallowMultiple, u = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e._isAutoMoveType = !0;
e.arrayFreeListLayout_htdjd = [];
e.arrayAliveListLayout_htdjd = [];
e.viewLayoutSum_htdjd = 0;
e.viewLayoutGapNum_htdjd = 3;
e.viewLayoutNum_htdjd = 0;
e.isCanUpdateItems_htdjd = !1;
e.startIndexItem_htdjd = 0;
e.isAutoMoveWayLeftUp_htdjd = !0;
e._isCanScrollViewLoopUpdate_htdjd = !0;
e.isTouchStop_htdjd = !1;
e.autoMoveWaitNum_htdjd = 1;
e.autoMoveWaitTime_htdjd = 60;
e.autoMoveSpeed_htdjd = 3;
e._moveState_htdjd = 0;
e._nextMoveLength_htdjd = 0;
e._waitTimeNum_htdjd = 0;
return e;
}
Object.defineProperty(e.prototype, "isAutoMoveType", {
get: function() {
return this._isAutoMoveType;
},
set: function(t) {
this._isAutoMoveType = t;
},
enumerable: !1,
configurable: !0
});
e.prototype._init_htdjd = function() {
if (t.prototype._init_htdjd.call(this)) {
this._slideDirection == _.SlideDirection.HORIZONTAL ? this.viewLayoutNum_htdjd = Math.ceil(this.node.width / this.itemPrefabWidth_htdjd) : this._slideDirection == _.SlideDirection.VERTICAL && (this.viewLayoutNum_htdjd = Math.ceil(this.node.width / this.itemPrefabHeight_htdjd));
this.viewLayoutSum_htdjd = this.viewLayoutNum_htdjd + 2 * this.viewLayoutGapNum_htdjd;
for (var e = 0, n = 0; n < this.viewLayoutSum_htdjd; n++) {
var i = this.cloneLayout_htdjd(), o = i.node;
if (this._slideDirection == _.SlideDirection.HORIZONTAL) {
o.x = e;
o.y = 0;
e += o.width;
} else if (this._slideDirection == _.SlideDirection.VERTICAL) {
o.x = 0;
o.y = e;
e -= o.height;
}
this.arrayAliveListLayout_htdjd.push(i);
}
this.isCanUpdateItems_htdjd = !0;
return !0;
}
return !1;
};
e.prototype.setFMListenerUpdateItem_htdjd = function(t) {
this.fmListenerUpdateData_htdjd = t;
};
e.prototype.isTouchStopView_htdjd = function() {
return this.isTouchStop_htdjd;
};
e.prototype.setAutoData_htdjd = function(t, e, n, i, o) {
this.isAutoMoveWayLeftUp_htdjd = 0 == t;
this.autoMoveWaitNum_htdjd = e ? Math.abs(e) : 0;
this.autoMoveWaitTime_htdjd = n ? 60 * Math.abs(n) : 60;
this.autoMoveSpeed_htdjd = i ? Math.abs(i) : 3;
o && (this.node.color = r.default.colorHex2Rgb_htdjd(o));
};
e.prototype.initUpdateItems_htdjd = function() {
this._init_htdjd();
this.startIndexItem_htdjd = 0;
if (this._slideDirection == _.SlideDirection.HORIZONTAL) for (var t = 3 * -this.itemPrefabWidth_htdjd, e = 0; e < this.arrayAliveListLayout_htdjd.length; e++) {
(n = this.arrayAliveListLayout_htdjd[e]).setPointX_htdjd(t);
n.setItemIndex_htdjd(this.startIndexItem_htdjd + e);
t += this.itemPrefabWidth_htdjd;
} else for (t = 3 * this.itemPrefabHeight_htdjd, e = 0; e < this.arrayAliveListLayout_htdjd.length; e++) {
var n;
(n = this.arrayAliveListLayout_htdjd[e]).setPointY_htdjd(t);
n.setItemIndex_htdjd(this.startIndexItem_htdjd + e);
t -= this.itemPrefabHeight_htdjd;
}
this._updateNextLengthTime_htdjd();
};
e.prototype.update = function() {
if (this.isCanUpdateItems_htdjd && this._isCanScrollViewLoopUpdate_htdjd) {
this.updateScrollingItems_htdjd();
1 == this.isAutoMoveType && this._updateAutoMove_htdjd();
}
};
e.prototype.setCanScrollViewLoopUpdate_htdjd = function(t) {
this._isCanScrollViewLoopUpdate_htdjd = t;
};
e.prototype._updateAutoMove_htdjd = function() {
if (!this.isTouchStopView_htdjd()) if (0 == this._moveState_htdjd) {
this.isAutoMoveWayLeftUp_htdjd ? this._slideDirection == _.SlideDirection.HORIZONTAL ? this.content_htdjd.x = this.content_htdjd.x - this.autoMoveSpeed_htdjd : this.content_htdjd.y = this.content_htdjd.y + this.autoMoveSpeed_htdjd : this._slideDirection == _.SlideDirection.HORIZONTAL ? this.content_htdjd.x = this.content_htdjd.x + this.autoMoveSpeed_htdjd : this.content_htdjd.y = this.content_htdjd.y - this.autoMoveSpeed_htdjd;
if (this.autoMoveWaitNum_htdjd > 0) {
this._nextMoveLength_htdjd = this._nextMoveLength_htdjd - this.autoMoveSpeed_htdjd;
this._nextMoveLength_htdjd <= 0 && (this._moveState_htdjd = 1);
}
} else {
this._waitTimeNum_htdjd = this._waitTimeNum_htdjd + 1;
if (this._waitTimeNum_htdjd >= this.autoMoveWaitTime_htdjd) {
this._waitTimeNum_htdjd = 0;
this._updateNextLengthTime_htdjd();
}
}
};
e.prototype.setAdTag_htdjd = function(t) {
this.ad_tag_htdjd = t;
for (var e = 0; e < this.arrayAliveListLayout_htdjd.length; e++) this.arrayAliveListLayout_htdjd[e].setAdTag_htdjd(this.ad_tag_htdjd);
for (e = 0; e < this.arrayFreeListLayout_htdjd.length; e++) this.arrayFreeListLayout_htdjd[e].setAdTag_htdjd(this.ad_tag_htdjd);
};
e.prototype._dispatchEvent_htdjd = function(t) {
if (t == _.FMTouchEvent.Scrolling) ; else if (t == _.FMTouchEvent.TouchStart) this.isTouchStop_htdjd = !0; else if (t == _.FMTouchEvent.TouchEnded) {
this._updateNextLengthTime_htdjd();
this.isTouchStop_htdjd = !1;
}
};
e.prototype.listenerUpdateInitItem_htdjd = function(t) {
if (this.fmListenerUpdateData_htdjd) return d.callFM_htdjd(this.fmListenerUpdateData_htdjd, t);
};
e.prototype._updateNextLengthTime_htdjd = function() {
if (this.autoMoveWaitNum_htdjd > 0) if (this._slideDirection == _.SlideDirection.HORIZONTAL) {
this._nextMoveLength_htdjd = this.autoMoveWaitNum_htdjd * this.itemPrefab.data.width;
if (this.isAutoMoveWayLeftUp_htdjd) for (var t = 0; t < this.arrayAliveListLayout_htdjd.length; t++) {
var e = this.arrayAliveListLayout_htdjd[t];
if ((n = this.content_htdjd.x + e.node.x) > -e.node.width && n < 0) {
this._nextMoveLength_htdjd = this._nextMoveLength_htdjd + n;
break;
}
} else for (t = this.arrayAliveListLayout_htdjd.length - 1; t >= 0; t--) {
var n;
e = this.arrayAliveListLayout_htdjd[t];
if ((n = this.content_htdjd.x + e.node.x) < this.node.width + e.node.width && n > this.node.width) {
n -= this.node.width;
this._nextMoveLength_htdjd = this._nextMoveLength_htdjd - n;
break;
}
}
} else {
this._nextMoveLength_htdjd = this.autoMoveWaitNum_htdjd * this.itemPrefab.data.height;
if (this.isAutoMoveWayLeftUp_htdjd) for (t = 0; t < this.arrayAliveListLayout_htdjd.length; t++) {
e = this.arrayAliveListLayout_htdjd[t];
if ((i = this.content_htdjd.y + e.node.y) < e.node.height && i > 0) {
this._nextMoveLength_htdjd = this._nextMoveLength_htdjd - i;
break;
}
} else for (t = this.arrayAliveListLayout_htdjd.length - 1; t >= 0; t--) {
var i;
e = this.arrayAliveListLayout_htdjd[t];
if ((i = this.content_htdjd.y + e.node.y - e.node.height) > -(this.node.height + e.node.height) && i < -this.node.height) {
i += this.node.height;
this._nextMoveLength_htdjd = this._nextMoveLength_htdjd + i;
break;
}
}
}
this._waitTimeNum_htdjd = 0;
this._moveState_htdjd = 0;
};
e.prototype.updateScrollingItems_htdjd = function() {
var t = [];
if (this._slideDirection == _.SlideDirection.HORIZONTAL) {
for (var e = 0; e < this.arrayAliveListLayout_htdjd.length; e++) {
var n = this.arrayAliveListLayout_htdjd[e];
this.content_htdjd.x + n.getPointX_htdjd() < 3 * -this.itemPrefabWidth_htdjd ? this.addFreeItem_htdjd(n) : n.getPointX_htdjd() + this.content_htdjd.x > this.node.width + 3 * this.itemPrefabWidth_htdjd ? this.addFreeItem_htdjd(n) : t.push(n);
}
if (t[0].getPointX_htdjd() + this.content_htdjd.x > -this.itemPrefabWidth_htdjd) {
(n = this.getFreeItem_htdjd()).setPointX_htdjd(t[0].getPointX_htdjd() - this.itemPrefabWidth_htdjd);
n.setItemIndex_htdjd(t[0].getItemIndex_htdjd() - 1);
t.splice(0, 0, n);
n.node.active = !0;
}
if (t[t.length - 1].getPointX_htdjd() + this.content_htdjd.x < +this.node.width + this.itemPrefabWidth_htdjd) {
(n = this.getFreeItem_htdjd()).setPointX_htdjd(t[t.length - 1].getPointX_htdjd() + this.itemPrefabWidth_htdjd);
n.setItemIndex_htdjd(t[t.length - 1].getItemIndex_htdjd() + 1);
t.push(n);
n.node.active = !0;
}
} else {
for (e = 0; e < this.arrayAliveListLayout_htdjd.length; e++) (n = this.arrayAliveListLayout_htdjd[e]).getPointY_htdjd() + this.content_htdjd.y > 3 * this.itemPrefabHeight_htdjd ? this.addFreeItem_htdjd(n) : n.getPointY_htdjd() < -(this.content_htdjd.y + this.node.height + 3 * this.itemPrefabHeight_htdjd) ? this.addFreeItem_htdjd(n) : t.push(n);
if (t[0].getPointY_htdjd() + this.content_htdjd.y <= this.itemPrefabHeight_htdjd) {
(n = this.getFreeItem_htdjd()).setPointY_htdjd(t[0].getPointY_htdjd() + this.itemPrefabHeight_htdjd);
n.setItemIndex_htdjd(t[0].getItemIndex_htdjd() - 1);
t.splice(0, 0, n);
n.node.active = !0;
}
if (t[t.length - 1].getPointY_htdjd() >= -(this.content_htdjd.y + this.node.height + this.itemPrefabHeight_htdjd)) {
(n = this.getFreeItem_htdjd()).setPointY_htdjd(t[t.length - 1].getPointY_htdjd() - this.itemPrefabHeight_htdjd);
n.setItemIndex_htdjd(t[t.length - 1].getItemIndex_htdjd() + 1);
t.push(n);
n.node.active = !0;
}
}
this.arrayAliveListLayout_htdjd = t;
};
e.prototype.addFreeItem_htdjd = function(t) {
t.node.active = !1;
this.arrayFreeListLayout_htdjd.push(t);
};
e.prototype.cloneLayout_htdjd = function() {
var t = cc.instantiate(this.itemPrefab), e = t.getComponent(s.default);
e.setAdTag_htdjd(this.ad_tag_htdjd);
e.setFMListenerUpdate_htdjd(d.handleFM_htdjd(this.listenerUpdateInitItem_htdjd, this));
this.content_htdjd.addChild(t);
return e;
};
e.prototype.getFreeItem_htdjd = function() {
var t = this.arrayFreeListLayout_htdjd.pop();
t || (t = this.cloneLayout_htdjd());
return t;
};
a([ l() ], e.prototype, "_isAutoMoveType", void 0);
a([ l({
tooltip: "自动滚动",
type: cc.Boolean
}) ], e.prototype, "isAutoMoveType", null);
return a([ h, p() ], e);
}(_.default);
n.default = u;
cc._RF.pop();
}, {
"../Interface/FM_htdjd_Interface": "FM_htdjd_Interface",
"../Util/Utilit_htdjd": "Utilit_htdjd",
"./FM_htdjd_ItemLayout": "FM_htdjd_ItemLayout",
"./FM_htdjd_TouchMaskView": "FM_htdjd_TouchMaskView"
} ],
FM_htdjd_TouchMaskView: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "74f62CQmAVNqqrNvtKV9cdq", "FM_htdjd_TouchMaskView");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.FMTouchEvent = n.SlideDirection = void 0;
var _, d, r = t("../Util/Log_htdjd_Utils"), s = t("./FM_htdjd_ItemLayout"), c = cc._decorator, h = c.ccclass, l = c.property, p = (c.requireComponent, 
c.disallowMultiple);
c.menu;
(function(t) {
t[t.HORIZONTAL = 1] = "HORIZONTAL";
t[t.VERTICAL = 2] = "VERTICAL";
})(_ = n.SlideDirection || (n.SlideDirection = {}));
(function(t) {
t.TouchStart = "touch_start";
t.Scrolling = "scrolling";
t.TouchEnded = "touch_ended";
})(d = n.FMTouchEvent || (n.FMTouchEvent = {}));
var u = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e._slideDirection = _.HORIZONTAL;
e.itemPrefab = null;
e._tempPoint_htdjd = cc.v2();
e._tempPrevPoint_htdjd = cc.v2();
e._outOfBoundaryAmount_htdjd = cc.v2(0, 0);
e._outOfBoundaryAmountDirty_htdjd = !0;
e._inited_htdjd = !1;
e.cancelInnerEvents_htdjd = !0;
e.itemPrefabWidth_htdjd = 0;
e._touchMoved_htdjd = !1;
e.itemPrefabHeight_htdjd = 0;
return e;
}
Object.defineProperty(e.prototype, "slideDirection", {
get: function() {
return this._slideDirection;
},
set: function(t) {
this._slideDirection = t;
},
enumerable: !1,
configurable: !0
});
e.prototype._init_htdjd = function() {
if (this._inited_htdjd) return !1;
var t = this.node.getComponent(cc.Widget);
t && t.updateAlignment();
var e = new cc.Node();
e.anchorX = 0;
e.anchorY = 1;
var n = e.addComponent(cc.Widget);
n.top = 0;
n.left = 0;
n.right = 0;
n.bottom = 0;
n.isAlignTop = !0;
n.isAlignLeft = !0;
n.isAlignRight = !0;
n.isAlignBottom = !0;
this.node.addChild(e);
n.updateAlignment();
e.addComponent(cc.Mask).type = cc.Mask.Type.RECT;
this.content_htdjd = new cc.Node();
e.addChild(this.content_htdjd);
this.content_htdjd.width = e.width;
this.content_htdjd.height = e.height;
this.content_htdjd.anchorX = 0;
this.content_htdjd.anchorY = 1;
this.content_htdjd.x = 0;
this.content_htdjd.y = 0;
this.itemPrefabWidth_htdjd = this.itemPrefab.data.width;
this.itemPrefabHeight_htdjd = this.itemPrefab.data.height;
this.scriptItemPrefab_htdjd = this.itemPrefab.data.getComponent(s.default);
this.scriptItemPrefab_htdjd ? 0 == this.scriptItemPrefab_htdjd.getItemChildrenCount_htdjd() && r.Log_htdjd_Utils.error_htdjd("FMTouchMaskView -> _init -> scriptItemPrefab item child count ==0") : r.Log_htdjd_Utils.error_htdjd("FMTouchMaskView -> _init -> scriptItemPrefab is null");
this._inited_htdjd = !0;
return !0;
};
e.prototype.onLoad = function() {
this._init_htdjd();
};
e.prototype.setCancelInnerEvents_htdjd = function(t) {
this.cancelInnerEvents_htdjd = t;
};
e.prototype.handlePressLogic_htdjd = function() {
this._dispatchEvent_htdjd(d.TouchStart);
};
e.prototype._dispatchEvent_htdjd = function(t) {
console.log("FMTouchMaskView -> _dispatchEvent -> name", t);
};
e.prototype.handleMoveLogic_htdjd = function(t) {
var e = this.getLocalAxisAlignDelta_htdjd(t), n = e = this.clampDelta_htdjd(e), i = this.getHowMuchOutOfBoundary_htdjd(n);
if (0 !== (n = n.add(i)).x || 0 !== n.y) {
this._moveContent_htdjd(n);
this._dispatchEvent_htdjd(d.Scrolling);
}
};
e.prototype._flattenVectorByDirection_htdjd = function(t) {
var e = t;
e.x = this._slideDirection == _.HORIZONTAL ? e.x : 0;
e.y = this._slideDirection == _.VERTICAL ? e.y : 0;
return e;
};
e.prototype.handleReleaseLogic_htdjd = function(t) {
this.getLocalAxisAlignDelta_htdjd(t);
this._dispatchEvent_htdjd(d.TouchEnded);
};
e.prototype._moveContent_htdjd = function(t) {
var e = this._flattenVectorByDirection_htdjd(t), n = this.getContentPosition_htdjd().add(e);
this.setContentPosition_htdjd(n);
};
e.prototype._hasNestedViewGroup_htdjd = function(t, e) {
if (t.eventPhase === cc.Event.CAPTURING_PHASE) {
if (e) for (var n = 0; n < e.length; ++n) {
var i = e[n];
if (this.node === i) return !!t.target.getComponent(cc.ViewGroup);
if (i.getComponent(cc.ViewGroup)) return !0;
}
return !1;
}
};
e.prototype._stopPropagationIfTargetIsMe_htdjd = function(t) {
t.eventPhase === cc.Event.AT_TARGET && t.target === this.node && t.stopPropagation();
};
e.prototype.getLocalAxisAlignDelta_htdjd = function(t) {
this.node.convertToNodeSpaceAR(t.getLocation(), this._tempPoint_htdjd);
this.node.convertToNodeSpaceAR(t.getPreviousLocation(), this._tempPrevPoint_htdjd);
return this._tempPoint_htdjd.sub(this._tempPrevPoint_htdjd);
};
e.prototype._onTouchBegan_htdjd = function(t, e) {
if (this.enabledInHierarchy && !this._hasNestedViewGroup_htdjd(t, e)) {
var n = t.touch;
this.content_htdjd && this.handlePressLogic_htdjd(n);
this._touchMoved_htdjd = !1;
this._stopPropagationIfTargetIsMe_htdjd(t);
}
};
e.prototype._onTouchMoved_htdjd = function(t, e) {
if (this.enabledInHierarchy && !this._hasNestedViewGroup_htdjd(t, e)) {
var n = t.touch;
if (this.node._hitTest(n.getLocation(), this.node)) {
this.content_htdjd && this.handleMoveLogic_htdjd(n);
if (this.cancelInnerEvents_htdjd) {
if (n.getLocation().sub(n.getStartLocation()).mag() > 7 && !this._touchMoved_htdjd) {
var i = new cc.Event.EventTouch(t.getTouches(), t.bubbles);
i.type = cc.Node.EventType.TOUCH_CANCEL;
i.touch = t.touch;
i.simulate = !0;
t.target.dispatchEvent(i);
this._touchMoved_htdjd = !0;
}
this._stopPropagationIfTargetIsMe_htdjd(t);
}
}
}
};
e.prototype.clampDelta_htdjd = function(t) {
this._slideDirection == _.HORIZONTAL ? t.y = 0 : this._slideDirection == _.VERTICAL && (t.x = 0);
return t;
};
e.prototype._onTouchCancelled_htdjd = function(t, e) {
if (this.enabledInHierarchy && !this._hasNestedViewGroup_htdjd(t, e)) {
if (!t.simulate) {
var n = t.touch;
this.content_htdjd && this.handleReleaseLogic_htdjd(n);
}
this._stopPropagationIfTargetIsMe_htdjd(t);
}
};
e.prototype.getHowMuchOutOfBoundary_htdjd = function(t) {
if ((t = t || cc.v2(0, 0)).fuzzyEquals(cc.v2(0, 0), 1e-4) && !this._outOfBoundaryAmountDirty_htdjd) return this._outOfBoundaryAmount_htdjd;
var e = cc.v2(0, 0);
if (t.fuzzyEquals(cc.v2(0, 0), 1e-4)) {
this._outOfBoundaryAmount_htdjd = e;
this._outOfBoundaryAmountDirty_htdjd = !1;
}
return this.clampDelta_htdjd(e);
};
e.prototype._onTouchEnded_htdjd = function(t, e) {
if (this.enabledInHierarchy && !this._hasNestedViewGroup_htdjd(t, e)) {
var n = t.touch;
this.content_htdjd && this.handleReleaseLogic_htdjd(n);
this._touchMoved_htdjd ? t.stopPropagation() : this._stopPropagationIfTargetIsMe_htdjd(t);
}
};
e.prototype.setContentPosition_htdjd = function(t) {
if (!t.fuzzyEquals(this.getContentPosition_htdjd(), 1e-4)) {
this.content_htdjd.setPosition(t);
this._outOfBoundaryAmountDirty_htdjd = !0;
}
};
e.prototype.getContentPosition_htdjd = function() {
return this.content_htdjd.getPosition();
};
e.prototype._registerEvent_htdjd = function() {
this.node.on(cc.Node.EventType.TOUCH_START, this._onTouchBegan_htdjd, this, !0);
this.node.on(cc.Node.EventType.TOUCH_MOVE, this._onTouchMoved_htdjd, this, !0);
this.node.on(cc.Node.EventType.TOUCH_END, this._onTouchEnded_htdjd, this, !0);
this.node.on(cc.Node.EventType.TOUCH_CANCEL, this._onTouchCancelled_htdjd, this, !0);
};
e.prototype.onDisable = function() {
this._unregisterEvent_htdjd();
};
e.prototype.onEnable = function() {
this._registerEvent_htdjd();
};
e.prototype._unregisterEvent_htdjd = function() {
this.node.off(cc.Node.EventType.TOUCH_START, this._onTouchBegan_htdjd, this, !0);
this.node.off(cc.Node.EventType.TOUCH_MOVE, this._onTouchMoved_htdjd, this, !0);
this.node.off(cc.Node.EventType.TOUCH_END, this._onTouchEnded_htdjd, this, !0);
this.node.off(cc.Node.EventType.TOUCH_CANCEL, this._onTouchCancelled_htdjd, this, !0);
};
a([ l() ], e.prototype, "_slideDirection", void 0);
a([ l({
type: cc.Enum(_),
tooltip: "滚动方向:\n HORIZONTAL 水平滚动\nVERTICAL垂直滚动"
}) ], e.prototype, "slideDirection", null);
a([ l({
tooltip: "layout预制体(0,1)",
type: cc.Prefab
}) ], e.prototype, "itemPrefab", void 0);
return a([ h, p() ], e);
}(cc.Component);
n.default = u;
cc._RF.pop();
}, {
"../Util/Log_htdjd_Utils": "Log_htdjd_Utils",
"./FM_htdjd_ItemLayout": "FM_htdjd_ItemLayout"
} ],
FM_htdjd_ViewBase: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "3b171HYpFRDJ7C8uE/nm09B", "FM_htdjd_ViewBase");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
});
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = t("../../Script/Mgr/WXADMgr"), _ = t("../Interface/FM_htdjd_Interface"), d = t("../Util/App_htdjd_Platform"), r = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e._banner_htdjd = null;
e.EventEnumView_htdjd = {};
e._isInit_htdjd = 0;
return e;
}
e.prototype.onLoad = function() {};
e.prototype._initView_htdjd = function() {
this.closeShow();
if (0 == this._isInit_htdjd) {
this._isInit_htdjd = 1;
this.initView_htdjd();
this.addEvent_htdjd();
this._isInit_htdjd = 2;
return !0;
}
};
e.prototype.onListenerEventView_htdjd = function(t) {
this._listenerCallView_htdjd = t;
};
e.prototype.emitListenerEvent_htdjd = function(t) {
console.log("发送 " + t);
this._listenerCallView_htdjd && _.callFM_htdjd(this._listenerCallView_htdjd, t, this);
};
e.prototype.closeShow = function() {
(d.default.is_QQ_PLAY_htdjd() || d.default.is_TT_GAME_htdjd()) && this.node.destroy();
};
e.prototype.hideView_htdjd = function() {
this.node.active = !1;
};
e.prototype.showView_htdjd = function() {
this.node.active = !0;
};
e.prototype.removeView_htdjd = function() {
this.onDestroy();
this.node.destroy();
};
e.prototype.showBanner_htdjd = function() {
var t = this;
d.default.is_WECHAT_GAME_htdjd() && a.default.getBanner_htdjd(function(e) {
if (cc.isValid(t, !0) && t.node.activeInHierarchy) {
null != t._banner_htdjd && t._banner_htdjd.hide_htdjd();
t._banner_htdjd = e;
null != t._banner_htdjd && t._banner_htdjd.show_htdjd();
}
});
};
e.prototype.isActiveView_htdjd = function() {
return !(!cc.isValid(this, !0) || !this.node.activeInHierarchy);
};
e.prototype.onDisable = function() {
this.hideBanner_htdjd();
};
e.prototype.onEnable = function() {
this._initView_htdjd();
};
e.prototype.onDestroy = function() {
this.removeEvent_htdjd();
this.hideBanner_htdjd();
};
e.prototype.hideBanner_htdjd = function() {
null != this._banner_htdjd && this._banner_htdjd.hide_htdjd();
this._banner_htdjd = null;
};
return e;
}(cc.Component);
n.default = r;
cc._RF.pop();
}, {
"../../Script/Mgr/WXADMgr": "WXADMgr",
"../Interface/FM_htdjd_Interface": "FM_htdjd_Interface",
"../Util/App_htdjd_Platform": "App_htdjd_Platform"
} ],
FixedSingle_htdjd_Ad: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "222d2sUCRFDc5/8uTj9fYvc", "FixedSingle_htdjd_Ad");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../../Platform/ShareAd/ShareAd"), d = t("../KRQ/KRQ_htdjd_Base"), r = t("../../Interface/FM_htdjd_Interface"), s = t("../../Util/Utilit_htdjd"), c = cc._decorator, h = c.ccclass, l = c.property, p = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.AdLocationType = _.AdLocationTypeEnum.ID_LoopAd;
e.adAllDatas_htdjd = [];
e.itemList = new Array();
e._AdPosID_htdjd = -1;
return e;
}
e.prototype.onLoad = function() {
for (var t = this, e = this.node.children, n = function(n) {
var o = e[n].getComponent(d.default);
o.setCallClickListener_htdjd(r.handleFM_htdjd(function() {
o.getData_htdjd() && t.updateSingleAd(n);
}, i));
i.itemList.push({
krq: o,
adIndex: -1
});
}, i = this, o = 0; o < e.length; o++) n(o);
};
e.prototype.updateSingleAd = function(t) {
for (var e = this.itemList[t], n = {}, i = 0; i < this.itemList.length; i++) {
var o = this.itemList[i];
-1 != o.adIndex && (n[o.adIndex] = !0);
}
for (var a = [], _ = 0; _ < this.adAllDatas_htdjd.length; _++) n[_] || a.push(_);
if (a.length > 0) {
var d = s.default.random_htdjd(a.length);
e.adIndex = a[d];
e.krq.setData_htdjd(this.adAllDatas_htdjd[a[d]]);
}
};
a([ l({
type: cc.Enum(_.AdLocationTypeEnum),
tooltip: "当前广告的类型\n ID_LoopAd 普通导出广告\nID_BannerAd Banner广告\nID_InsertAd 插屏广告\nID_AniAd 序列帧广告\n ID_HistoryAd 历史广告\nID_MoreGameAd 更多游戏广告"
}) ], e.prototype, "AdLocationType", void 0);
return a([ h ], e);
}(cc.Component);
n.default = p;
cc._RF.pop();
}, {
"../../Interface/FM_htdjd_Interface": "FM_htdjd_Interface",
"../../Platform/ShareAd/ShareAd": "ShareAd",
"../../Util/Utilit_htdjd": "Utilit_htdjd",
"../KRQ/KRQ_htdjd_Base": "KRQ_htdjd_Base"
} ],
FlyLabelHelpMgr: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "9f14eHHEF1K66Na+/yg/Pos", "FlyLabelHelpMgr");
var i = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = cc._decorator, a = o.ccclass, _ = (o.property, function() {
function t() {}
e = t;
t.flyColorTips = function(t, n, i) {
void 0 === n && (n = cc.Color.WHITE);
void 0 === i && (i = null);
if (t) {
e.m_runList.push([ t, i, n ]);
e.m_isFlyIng || e.runNext();
}
};
t.flyFinishTips = function(t, e) {
void 0 === e && (e = null);
this.flyColorTips(t, cc.Color.GREEN, e);
};
t.flyFailTips = function(t, e) {
void 0 === e && (e = null);
this.flyColorTips(t, cc.Color.RED, e);
};
t.flyWarnTips = function(t, e) {
void 0 === e && (e = null);
this.flyColorTips(t, cc.Color.YELLOW, e);
};
t.runNext = function() {
e.m_isFlyIng = !1;
e.m_isAuto && e.updateRun();
};
t.reStart = function() {
e.m_isFlyIng = !1;
};
t.setParentNode = function(t, n) {
e.m_isFlyIng = !1;
e.m_isAuto = t;
e.m_runList = [];
this.m_labelPassPrefab = cc.instantiate(n);
var i = cc.find("Canvas").getComponent(cc.Canvas).node;
this.m_labelPassPrefab.active = !1;
i.parent.addChild(this.m_labelPassPrefab);
cc.game.addPersistRootNode(this.m_labelPassPrefab);
};
t.updateRun = function() {
if (!e.m_isFlyIng) {
var t = e.m_runList.pop();
if (t) {
var n = t[0], i = this.m_labelPassPrefab, o = t[2];
console.error("看这里-----------", this.m_labelPassPrefab);
e.m_isFlyIng = !0;
var a = cc.instantiate(i), _ = a.getComponent("FlyRemoveLabel");
a.active = !0;
_.setCallBack(this.runNext.bind(this));
var d = null;
d = cc.director.getScene();
_.setNodeAndRun(cc.v2(cc.winSize.width / 2, cc.winSize.height / 2), n, o);
_.setFontSize(40);
d.addChild(a, cc.macro.MAX_ZINDEX);
}
}
};
var e;
t.m_isFlyIng = !1;
t.m_runList = [];
t.m_isAuto = !1;
t.m_labelPassPrefab = null;
return e = i([ a ], t);
}());
n.default = _;
cc._RF.pop();
}, {} ],
FlyRemoveLabel: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "9ad30A8GsJEzIk8n7OHvrzp", "FlyRemoveLabel");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = cc._decorator, d = _.ccclass, r = _.property, s = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.label = null;
e.m_callFunc = null;
return e;
}
e.prototype.setNodeAndRun = function(t, e, n) {
void 0 === n && (n = null);
this.node.setPosition(t);
this.label.string = e;
this.setFontSize(40);
n && (this.label.node.color = n);
};
e.prototype.setFontSize = function(t) {
this.label.fontSize = t;
};
e.prototype.playHpChange = function(t, e, n) {
if (0 != e) {
null == n && (n = "");
var i = n;
if (e > 0) {
i += " - " + e;
this.label.node.color = cc.Color.RED;
} else {
i += " + " + -e;
this.label.node.color = cc.Color.GREEN;
}
this.setNodeAndRun(t, i);
}
};
e.prototype.playDodge = function(t, e) {
this.label.node.color = cc.Color.YELLOW;
this.setNodeAndRun(t, e);
};
e.prototype.setCallBack = function(t) {
this.m_callFunc = t;
};
e.prototype.runCallFunc = function() {
if (this.m_callFunc) {
this.m_callFunc(this);
this.m_callFunc = null;
}
};
e.prototype.removeSelf = function() {
this.node.destroy();
};
a([ r(cc.Label) ], e.prototype, "label", void 0);
return a([ d ], e);
}(cc.Component);
n.default = s;
cc._RF.pop();
}, {} ],
FlyRemoveNode: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "0f144GhH7BLB5CJmhN5YVY2", "FlyRemoveNode");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = cc._decorator, d = _.ccclass, r = _.property, s = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.p_node = null;
e.m_flyLabel = null;
return e;
}
e.prototype.start = function() {
this.m_flyLabel = this.p_node.getComponent("FlyRemoveLabel");
};
e.prototype.removeSelf = function() {
this.m_flyLabel.removeSelf();
};
e.prototype.runNext = function() {
this.m_flyLabel.runCallFunc();
};
a([ r(cc.Node) ], e.prototype, "p_node", void 0);
return a([ d ], e);
}(cc.Component);
n.default = s;
cc._RF.pop();
}, {} ],
GSkinHelp: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "b2a6511q4BCDKSNOW6Ai2ss", "GSkinHelp");
var i = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = t("../../HelpMgr"), a = cc._decorator, _ = a.ccclass, d = (a.property, function() {
function t() {
this.wq_skinArmature = null;
if (e._instance) throw new Error("please use GSkinHelp.instance");
e._instance = this;
this.loadWqSkin();
}
e = t;
Object.defineProperty(t, "instance", {
get: function() {
e._instance || new e();
return e._instance;
},
enumerable: !1,
configurable: !0
});
t.prototype.loadWqSkin = function() {
var t = this;
if (this.wq_skinArmature) return !0;
o.default.instance.loadDragonbonesByPath("FrameWork/anim_HTDJD/wuSkin", function(e) {
t.wq_skinArmature = e.getComponent(dragonBones.ArmatureDisplay);
}, null, "wuqi_0");
return !1;
};
t.prototype.getWqSKin = function(t) {
if (this.loadWqSkin() && !(t <= 0)) {
var e = o.default.instance.getStoreConfig()[t - 1].anim;
console.error("跟新武器名字", e);
return this.wq_skinArmature.buildArmature(e).armature();
}
};
var e;
return e = i([ _ ], t);
}());
n.default = d;
cc._RF.pop();
}, {
"../../HelpMgr": "HelpMgr"
} ],
GameMatrixControl: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "bd661Tg42lOX5ODo5QB1erm", "GameMatrixControl");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.APPItemRecord = n.APPItem = n.ComponentStyle = void 0;
var i, o = t("./Net_Mgr"), a = function() {
function t() {
this.platform = window.wx;
}
t.prototype.random000 = function(t, e) {
return t == e ? t : Math.floor(Math.random() * (e - t + 1) + t);
};
t.prototype.requestHttpByUrl = function(t, e) {
var n = cc.loader.getXMLHttpRequest();
n.onreadystatechange = function() {
if (4 === n.readyState && n.status >= 200 && n.status < 300) {
var t = n.responseText;
e && e(t);
}
};
var i = t + "?" + this.random000(121212121, 545454541313213);
n.open("GET", i, !0);
console.log("url -------", i);
n.timeout = 5e3;
n.setRequestHeader("Content-Disposition", "application/json");
n.send();
};
t.prototype.httpRequestRequest = function(t, e, n, i) {
this.requestHttpByUrl(t, i);
};
t.prototype.httpRequest = function(t, e, n, i, o, a) {
void 0 === o && (o = 5e3);
void 0 === a && (a = "POST");
this.httpRequestRequest(t, e, n, i);
};
t.prototype.httpRequestGetXMLHttpRequest = function(t, e, n, i, o, a) {
void 0 === o && (o = 5e3);
void 0 === a && (a = "POST");
var d = cc.loader.getXMLHttpRequest();
d.onloadend = function() {
if (4 === d.readyState) if (200 == d.status) {
var t = d.responseText, e = JSON.parse(t);
i && i(e);
} else i && i(null);
};
d.onerror = function(t) {
_.log("[Matrix] err:", t);
};
d.open(a, t, !0);
n && d.setRequestHeader("Content-Type", n);
d.timeout = o;
d.send(e);
};
t.prototype.navigateToMiniProgram = function(t) {
this.platform.navigateToMiniProgram({
appId: t._appid,
path: t._advertPath,
success: function(e) {
t._success(e);
},
fail: function(e) {
t._fail(e);
},
complete: function(e) {
t._complete(e);
}
});
};
t.prototype.init = function() {};
t.prototype.getLaunchOptionsSync = function() {
if (cc.sys.os != cc.sys.OS_WINDOWS && this.platform && this.platform.getLaunchOptionsSync) return this.platform.getLaunchOptionsSync();
};
t.prototype.login = function() {
console.log("login  de登陆。。。。");
};
t.prototype.exitMiniProgram = function() {
this.platform.exitMiniProgram({
success: function() {},
fail: function() {},
complete: function() {}
});
};
return t;
}(), _ = function() {
function t() {
this.m_runId = 0;
this.mMultiPlatform = null;
this.mAppId = "";
this.mOpenId = "";
this.mServerRootUrl = "";
this.mProductId = 0;
this._productsOrder = [];
this._canUsedStyle = [];
this._products = [];
this._isCheck = !1;
this._loaded = !1;
this._materiaList = [];
this.shareCount = 0;
this._exportProductList = [];
this._recording = !1;
this._url_matrixReport = "reportGame/matrixReport";
this.mMultiPlatform = new a();
this.mMultiPlatform.init();
}
t.getInstance = function() {
null === this.mInstance && (this.mInstance = new t());
return this.mInstance;
};
t.isDebugLog = function() {
return !0;
};
t.prototype.getMultiPlatform = function() {
return this.mMultiPlatform;
};
t.prototype.initMatix = function(e, n, i) {
void 0 === n && (n = "https://");
if (t.isMacOsPlatform()) i && i(null); else {
this.mAppId = e;
this.mServerRootUrl = n;
this.init(i || null);
}
};
t.prototype.init = function(t, e) {
void 0 === e && (e = "");
this.loadInfo(e, function(e) {
console.log("loadInfo");
t && t(e);
});
};
t.prototype.loadInfo = function(t, e) {
var n = this;
console.info("开始登录 --------", n.mMultiPlatform);
(function() {
console.info("onload -------------");
var i = n.mMultiPlatform.getLaunchOptionsSync() || {}, a = i.scene, _ = "";
o.default.WX_SdkCustomKey.scene = a;
o.default.QQ_SdkCustomKey.scene = a;
o.default.OPPO_SdkCustomKey.scene = a;
console.info(i);
console.info("oppo");
if (i.referrerInfo) {
_ = i.referrerInfo.appId;
console.log("Net_Mgr.SdkCustomKey().appId ", o.default.WX_SdkCustomKey.appId);
}
i.referrerInfo && i.referrerInfo.appId && (_ = i.referrerInfo.appId);
var d = {};
d.appId = n.mAppId;
d.code = {
code: 1
};
d.sceneCode = a;
d.sceneAppId = _;
d.shareUser = t;
e && e();
})();
};
t.prototype.getProductsList = function() {
return this._products;
};
t.navigateTo = function(e, n, i, o) {
if (!t.isMacOsPlatform()) {
t.getInstance().addClickRecord(e, n);
t.getInstance().getMultiPlatform().navigateToMiniProgram({
_appid: n.appId,
_advertPath: n.advertPath || "",
_success: function(e) {
t.log("[Matrix] 跳转 success", e);
i && i(e);
},
_fail: function(e) {
t.log("[Matrix] 跳转 fail", e);
o && o(e);
},
_complete: function() {}
});
}
};
t.prototype.clearData = function() {
this._products = [];
};
t.prototype.canUseStyle = function(t) {
return this._canUsedStyle.indexOf(t) > -1;
};
t.prototype.getIsPassed = function() {
return this._isCheck;
};
t.prototype.getDataByStyleAndCount = function(e, n) {
if (o.default.WX_SdkCustomKey.isScene) return [];
var i = [];
if (!this._products || 0 == this._products.length) return i;
if (!this._loaded) return i;
for (var a = [], _ = 0; _ < this._products.length; _++) a[_] = this._products[_];
0 == n && (n = this._products.length);
for (var d = [], r = [], s = 0; i.length < n && a.length > 0 && s < 50 * n; ) {
var c = t.getRandomByWeight(a), h = JSON.parse(JSON.stringify(a[c])), l = -1 == r.indexOf(h.appId), p = t.getUseImgUrl(e, h, l, d);
if (p.length > 0) {
h.useImgList = p;
i.push(h);
1 == p.length ? d.push(p[0]) : r.push(h.appId);
} else {
var u = t.getRandomByWeight(a);
a.splice(u, 1);
}
s += 1;
}
var f = (i = this.repetitionArr(i)).length;
if (f > 0 && f < 20) {
var y = 20 - f, g = 0;
for (_ = 0; _ < y; _++) {
g >= f && (g = 0);
i.push(i[g]);
g++;
}
}
return i;
};
t.getIsCanUseGifByStyle = function(t) {
return t == i.ce_la_lan || t == i.big_export_ui || t == i.h_slider;
};
t.prototype.getDataByStyleAndCountOrder = function(e, n, i) {
void 0 === i && (i = 0);
var o = [];
if (!this._productsOrder || 0 == this._productsOrder.length) return o;
if (!this._loaded) return o;
for (var a = [], _ = 0; _ < this._productsOrder.length; _++) a[_] = this._productsOrder[_];
0 == n && (n = this._productsOrder.length);
for (var d = [], r = [], s = i %= a.length; o.length < n && a.length > 0 && s < 50 * n; ) {
var c = JSON.parse(JSON.stringify(a[s])), h = -1 == r.indexOf(c.appId), l = t.getUseImgUrl(e, c, h, d);
if (l.length > 0) {
c.useImgList = l;
o.push(c);
1 == l.length ? d.push(l[0]) : r.push(c.appId);
} else {
var p = t.getRandomByWeight(a);
a.splice(p, 1);
}
s += 1;
}
return o;
};
t.prototype.repetitionArr = function(t) {
for (var e = {}, n = 0; n < t.length; n++) {
var i = t[n], o = e[i.appId];
o || (o = []);
o.push(i);
e[i.appId] = o;
}
var a = [];
for (n = 0; n < 5; n++) for (var _ in e) if (Object.prototype.hasOwnProperty.call(e, _)) {
var d = e[_];
d[n] && a.push(d[n]);
}
return a;
};
t.prototype.getWeituichuDataList = function() {
var t = [];
if (!this._products || 0 == this._products.length) return t;
if (!this.canUseStyle(i.wei_tui_chu)) return t;
if (!this._loaded) return t;
for (var e = [], n = 0; n < this._products.length; n++) e[n] = this._products[n];
for (;e.length > 0; ) {
var o = Math.floor(Math.random() * e.length), a = e[o], _ = Math.floor(Math.random() * a.iconFilletList.length), d = [ a.iconFilletList[_] ];
if (d.length > 0) {
a.useImgList = d;
t.push(a);
}
e.splice(o, 1);
}
return t;
};
t.getUseImgUrl = function(t, e, n, i) {
if (!e) return [];
var o = [];
this.getIsCanUseGifByStyle(t) && n && e.gifList && e.gifList.length > 0 && (o = e.gifList);
var a = e.iconFilletList, _ = .5;
0 == o.length && (_ = 1.1);
if (Math.random() > _) return o;
if (0 == a.length) return [];
for (var d = [], r = 0; r < a.length; ++r) -1 == i.indexOf(a[r]) && d.push(a[r]);
return 0 == d.length ? [] : [ d[Math.floor(Math.random() * d.length)] ];
};
t.copyArray = function(t) {
return JSON.parse(JSON.stringify(t));
};
t.getRandomByWeight = function(t) {
for (var e = 0, n = 0; n < t.length; n++) e += t[n].weight;
var i = Math.floor(Math.random() * e), o = 0;
for (n = 0; n < t.length; n++) {
n > 0 && (i -= t[n - 1].weight);
if (i < t[n].weight) {
o = n;
break;
}
}
return o;
};
t.getRandomArr = function(t) {
t.sort(function() {
return .5 - Math.random();
});
return t;
};
t.prototype.addClickRecord = function(t, e) {
for (var n = !1, i = 0; i < this._exportProductList.length; i++) {
var o = this._exportProductList[i];
if (e.advertId == Number(o.productId)) {
this._exportProductList[i].clickCount++;
n = !0;
}
}
if (!n) {
o = {
productId: "" + e.advertId,
clickCount: 1
};
this._exportProductList.push(o);
}
for (i = 0; i < this._materiaList.length; i++) {
var a = this._materiaList[i];
t == Number(a.locationCode) && this._materiaList[i].clickCount++;
}
};
t.prototype.addShowRecord = function(t) {
for (var e = !1, n = 0; n < this._materiaList.length; n++) {
var i = this._materiaList[n];
if (t == Number(i.locationCode)) {
this._materiaList[n].displayCount++;
e = !0;
}
}
if (!e) {
(i = new d()).locationCode = "" + t;
i.displayCount = 1;
i.clickCount = 0;
i.isExport = 0;
i.exportCount = 0;
i.exportProductId = "";
this._materiaList.push(i);
}
};
t.prototype.checkMateria = function() {
if (this._materiaList.length <= 0) return !1;
for (var t = 0; t < this._materiaList.length; t++) if (0 != this._materiaList[t].clickCount || 0 != this._materiaList[t].displayCount || 0 != this._materiaList[t].exportCount || 0 != this._materiaList[t].isExport) return !0;
return !1;
};
t.prototype.clearRecord = function() {
for (var t = 0; t < this._materiaList.length; t++) {
this._materiaList[t].clickCount = 0;
this._materiaList[t].displayCount = 0;
this._materiaList[t].exportCount = 0;
this._materiaList[t].isExport = 0;
}
for (t = 0; t < this._exportProductList.length; t++) this._exportProductList[t].clickCount = 0;
this.shareCount = 0;
};
t.isMacOsPlatform = function() {
return !1;
};
t.log = function(e, n) {
void 0 === n && (n = "");
if (t.isDebugLog()) {
n || 0 == n || (n = "");
e = " -- debugLog:   " + e;
console.log(e, n);
}
};
t.getParamsMsgForObj = function(t) {
var e = [];
for (var n in t) e.push(n + "=" + t[n]);
return e.join("&");
};
t.httpPost = function(e, n, i) {
return t.httpRequest(e, n, "application/x-www-form-urlencoded", 5e3, i);
};
t.httpPostJson = function(e, n, i) {
return t.httpRequest(e, JSON.stringify(n), "application/json", 5e3, i);
};
t.httpRequest = function(e, n, i, o, a, _) {
void 0 === o && (o = 5e3);
void 0 === _ && (_ = "POST");
t.mInstance.mMultiPlatform.httpRequest(e, n, i, a);
};
t.mInstance = null;
return t;
}();
n.default = _;
(function(t) {
t[t.ce_la_lan = 1] = "ce_la_lan";
t[t.h_slider = 2] = "h_slider";
t[t.banner = 3] = "banner";
t[t.big_export_ui = 4] = "big_export_ui";
t[t.over_ui = 5] = "over_ui";
t[t.wei_tui_chu = 6] = "wei_tui_chu";
t[t.LCDC = 7] = "LCDC";
t[t.DBDC = 8] = "DBDC";
t[t.DJJSDC = 9] = "DJJSDC";
t[t.JBJSDC = 10] = "JBJSDC";
t[t.QPDC = 11] = "QPDC";
})(i = n.ComponentStyle || (n.ComponentStyle = {}));
n.APPItem = function() {
this.gifList = [];
this.screenList = [];
this.bannerList = [];
this.weight = 1;
this.iconFilletList = [];
this.displayCount = 0;
this.useImgList = [];
};
var d = function() {
this.displayCount = 0;
this.clickCount = 0;
this.exportCount = 0;
this.isExport = 0;
};
n.APPItemRecord = d;
cc._RF.pop();
}, {
"./Net_Mgr": "Net_Mgr"
} ],
Game_htdjd_Camera: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "3bad5HQWlZIXq9Mk8C+2vRK", "Game_htdjd_Camera");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("./role/Player_htdjd"), d = cc._decorator, r = d.ccclass, s = d.property, c = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.mainRole = null;
e.camvas = null;
e.isStart_htdjd_ToLookRole = !1;
e.y_htdjd_Min = 30;
e.y_htdjd_Max = 200;
e.x_htdjd_Max = 200;
e.x_htdjd_Min = -200;
return e;
}
e.prototype.start = function() {
cc.log("GameCamera  start ", this.node.position.x);
this.node.setPosition(2268, 0);
cc.delayTime(1);
this.scheduleOnce(function() {
cc.tween(this.node).to(2, {
x: 0
}).start();
}, 1);
};
e.prototype.update_htdjd_GameCamera = function() {
if (!this.isStart_htdjd_ToLookRole) {
var t = new cc.Vec2();
this.camvas.getWorldToScreenPoint(this.mainRole.node.getPosition(), t);
t.x < this.x_htdjd_Min ? this.node.x = this.node.x - Math.abs(Math.abs(this.x_htdjd_Min) - Math.abs(t.x)) : t.x > this.x_htdjd_Max && (this.node.x = this.node.x + Math.abs(Math.abs(this.x_htdjd_Max) - Math.abs(t.x)));
t.y < this.y_htdjd_Min ? this.node.y = this.node.y - Math.abs(Math.abs(this.y_htdjd_Min) - Math.abs(t.y)) : t.y > this.y_htdjd_Max && (this.node.y = this.node.y + Math.abs(Math.abs(this.y_htdjd_Max) - Math.abs(t.y)));
}
};
e.prototype.Look_htdjd_Role = function() {};
a([ s({
type: _.default,
displayName: "玩家"
}) ], e.prototype, "mainRole", void 0);
a([ s({
type: cc.Camera,
displayName: "摄像头"
}) ], e.prototype, "camvas", void 0);
return a([ r ], e);
}(cc.Component);
n.default = c;
cc._RF.pop();
}, {
"./role/Player_htdjd": "Player_htdjd"
} ],
Game_htdjd_Config: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "40480N8oRxBeZZFM1OQ0+qA", "Game_htdjd_Config");
var i;
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = function() {
function t() {}
t.rankName = ((i = {})[1] = "青铜", i[2] = "青铜", i[3] = "青铜", i[4] = "白银", i[5] = "白银", 
i[6] = "白银", i[7] = "黄金", i[8] = "黄金", i[9] = "黄金", i[10] = "铂金", i[11] = "铂金", 
i[12] = "铂金", i[13] = "钻石", i[14] = "钻石", i[15] = "钻石", i[16] = "大师", i[17] = "大师", 
i[18] = "大师", i[19] = "王者", i[20] = "王者", i[21] = "王者", i[22] = "荣耀", i[23] = "荣耀", 
i[24] = "荣耀", i[25] = "至尊", i[26] = "至尊", i[27] = "至尊", i[28] = "永恒", i[29] = "永恒", 
i[30] = "永恒", i[31] = "巅峰", i[32] = "巅峰", i[33] = "巅峰", i);
t.max = 33;
return t;
}();
n.default = o;
cc._RF.pop();
}, {} ],
Game_htdjd_Mgr: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "00994MxDNBEArlTl2C0FNx/", "Game_htdjd_Mgr");
Object.defineProperty(n, "__esModule", {
value: !0
});
var i = t("../User/User_htdjd"), o = t("./View_htdjd_Mgr"), a = function() {
function t() {}
t.getInstance_htdjd = function() {
return t._instance_htdjd;
};
t.prototype.onLoadToWorldScene_htdjd = function() {
console.log("跳转游戏场景 FMMainScene");
o.default.instance().openScene(o.viewDefs.Hall, "hellbody", function() {});
};
t.prototype.onMainToGameScene_htdjd = function() {
cc.director.loadScene("FMGameScene", function() {
console.log("跳转游戏场景 FMGameScene");
});
};
t.prototype.onGameToGameFailScene_htdjd = function() {
cc.director.loadScene("FMGameSettleFailScene", function() {
console.log("跳转游戏场景 FMGameSettleFailScene");
});
};
t.prototype.onGameToGameWinScene_htdjd = function() {
cc.director.loadScene("FMGameSettleWinScene", function() {
console.log("跳转游戏场景 FMGameSettleWinScene");
});
};
t.prototype.onGameWinToScene_htdjd = function() {
cc.director.loadScene("FMMainScene", function() {
console.log("跳转游戏场景 FMMainScene");
});
};
t.prototype.onGameFailToScene_htdjd = function() {
cc.director.loadScene("FMMainScene", function() {
console.log("跳转游戏场景 FMMainScene");
});
};
t.prototype.saveGameData_htdjd = function() {
i.default.saveUserData();
};
t._instance_htdjd = new t();
return t;
}();
n.default = a;
cc._RF.pop();
}, {
"../User/User_htdjd": "User_htdjd",
"./View_htdjd_Mgr": "View_htdjd_Mgr"
} ],
Game_htdjd_Over: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "54d6eSSotVFU7SquRb355rE", "Game_htdjd_Over");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../Script/Net/Net_Mgr"), d = t("./UI_htdjd_Level"), r = t("../Script/Util/App_htdjd_Platform"), s = t("../Script/Platform/QQ/QQMiniGameAPI"), c = t("../Script/Platform/TT/TtMgr"), h = t("../Script/Platform/OPPO/OppoMgr"), l = t("../Script/Util/Game_htdjd_Util"), p = t("../Script/Platform/VIVO/VivoMgr"), u = t("../Script/Event/Event_htdjd_Defs"), f = t("../Script/Event/Event_htdjd_Mgr"), y = t("../Script/Mgr/Game_htdjd_Mgr"), g = t("../Script/Mgr/View_htdjd_Mgr"), m = t("../Script/Mgr/wudian_htdjd_Mgr"), v = t("../Script/Platform/WX/WXAPI"), j = t("../Script/User/User_htdjd"), b = t("../Script/View/Base_htdjd_View"), w = t("../../syyx_sdk/controller/syyx_manager"), x = t("../../syyx_sdk/syyx_sdk_api"), k = t("../HelpMgr"), S = t("../../syyx_sdk/configs/syyx_sdk_enum"), A = cc._decorator, I = A.ccclass, O = A.property, P = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.loseAudio = null;
e.winAudio = null;
e.btnNext = null;
e.addCoin = null;
e.jxGame = null;
e.btn_confirm = null;
e.resultNode = null;
e.overNode = null;
e.addNode = null;
e.loseBgdi = null;
e.winBgdi = null;
e.overType = null;
e.btnYes = null;
e.btnVideo = null;
e.overTypeSprite = [];
e.lvNewNode = null;
e.right_cxr_Node = null;
e.lvOldNode = null;
e.click_htdjd_Taolu = !1;
e.click_htdjd_Flag = !1;
e.over_htdjd_Data = [];
e.isbtnQuit = !1;
e.isbtnOk = !1;
e.isclick = !1;
e.m_htAdView = null;
e.m_gameType = 0;
e.m_time = 0;
e.m_initS = null;
return e;
}
e.prototype.openScene = function(t) {
this.over_htdjd_Data = t;
k.default.instance.m_gameIsWin = t.type;
this.isclick = !1;
console.log("openScene  ", t);
};
e.prototype.update = function(t) {
this.m_time += t;
if (this.m_time >= 1) {
this.m_time = 0;
switch (this.m_gameType) {
case 1:
console.log("关闭banner");
break;

case 2:
console.log("开启banner");
}
}
};
e.prototype.showOppo = function() {
var t = !1, e = w.syyx_manager.get_business_config();
if (e) {
var n = e.popular_games_push;
console.error("看这里---------------", n);
if (n) {
var i = n.value[0] || 1;
if (k.default.instance.m_hallCount >= i) switch (k.default.instance.m_overCount) {
case 0:
t = !0;
k.default.instance.m_overCount = 1;
break;

case 1:
t = !1;
k.default.instance.m_overCount = 0;
}
}
}
if (t || !k.default.instance.show_inner_interstitial_native(this.addNode, this.jxGame, this.btn_confirm)) {
this.m_htAdView = k.default.instance.show_gamebox();
this.m_htAdView || k.default.instance.show_normal_inter();
}
this.okBtn_htdjd_WD(t);
};
e.prototype.showVivo = function() {
k.default.instance.show_inner_interstitial_native(this.addNode, this.jxGame, this.btn_confirm);
this.okBtn_htdjd_WD(!1);
};
e.prototype.updateCount = function() {
if (!this.m_initS) {
this.m_initS = [];
var t = this.btn_confirm.x, e = this.jxGame.x;
this.m_initS.push(t);
this.m_initS.push(e);
}
var n = k.default.instance.getSdkValue("button_change_times"), i = k.default.instance.m_hallCount - 1, o = Math.floor(i / n) % 2 == 0;
if (o) {
this.btn_confirm.x = this.m_initS[0];
this.jxGame.x = this.m_initS[1];
} else {
this.btn_confirm.x = this.m_initS[1];
this.jxGame.x = this.m_initS[0];
}
console.log("showOver", i, n, o, this.m_initS, this.btn_confirm.x);
};
e.prototype.onLoad = function() {
var t = this;
this.m_gameType = 1;
k.default.instance.close_native_banner();
x.syyx_sdk_api.send_settlement_event(S.e_settlement_stat_type.enter_settlement);
this.updateCount();
this.jxGame.active = !1;
this.btn_confirm.active = !1;
setTimeout(function() {
t.showVivo();
}, 200);
};
e.prototype.openOppoNative_htdjd_Banner = function() {
console.info("openOppoNative_htdjd_Banner");
};
e.prototype.start = function() {
this.resultNode.active = !1;
this.overNode.active = !0;
this.isbtnOk = !1;
this.isbtnQuit = !1;
this.set_htdjd_UserInfo();
this.set_htdjd_BgImgInfo();
this.checkBanner_htdjd_Show();
y.default.getInstance_htdjd().saveGameData_htdjd();
};
e.prototype.okBtn_htdjd_WD = function(t) {
var e = this, n = w.syyx_manager.get_business_config();
if (n && !t) {
var i = n.btn_delay_time_native_get;
if (i) {
this.btnYes.active = !1;
var o = i.value[0] || 0;
console.log("等待时间", o, i);
this.scheduleOnce(function() {
e.btnYes.active = !0;
}, o);
} else this.btnYes.active = !0;
} else this.btnYes.active = !0;
this.isbtnOk = !0;
};
e.prototype.set_htdjd_UserInfo = function() {
this.lvOldNode.set_htdjd_RankInfo(j.default.LeveNum);
if (this.over_htdjd_Data.type == u.GameOver_htdjd_Type.win) {
this.addCoin.string = "x100";
j.default.addRankStar();
_.default.sendAloConttrol(6);
cc.audioEngine.play(this.winAudio, !1, 1);
x.syyx_sdk_api.send_chapter_event(j.default._gameData_htdjd.levelNum - 1, !0);
} else if (this.over_htdjd_Data.type == u.GameOver_htdjd_Type.lose) {
k.default.instance.m_nBossBattle = -1;
this.addCoin.string = "0";
_.default.sendAloConttrol(12);
j.default.subRankStar();
cc.audioEngine.play(this.loseAudio, !1, 1);
x.syyx_sdk_api.send_chapter_event(j.default._gameData_htdjd.levelNum - 1, !1);
} else if (this.over_htdjd_Data.type == u.GameOver_htdjd_Type.draw) {
k.default.instance.m_nBossBattle = -1;
this.addCoin.string = "0";
cc.audioEngine.play(this.winAudio, !1, 1);
x.syyx_sdk_api.send_chapter_event(j.default._gameData_htdjd.levelNum - 1, !0);
}
this.lvNewNode.set_htdjd_RankInfo(j.default.LeveNum);
console.log("关卡打点测试", j.default._gameData_htdjd.levelNum - 1);
};
e.prototype.set_htdjd_BgImgInfo = function() {
this.loseBgdi.active = !1;
this.winBgdi.active = !1;
this.over_htdjd_Data.type == u.GameOver_htdjd_Type.draw || this.over_htdjd_Data.type == u.GameOver_htdjd_Type.win ? this.winBgdi.active = !0 : this.loseBgdi.active = !0;
this.overType.spriteFrame = this.overTypeSprite[this.over_htdjd_Data.type];
};
e.prototype.quitBtn_htdjd_WD = function() {
var t = this;
if (_.default.WX_SdkCustomKey.moveBanner && _.default.WX_SdkCustomKey.appId) {
this.isbtnQuit = !1;
var e = this.btnNext.y;
this.btnNext.y = -(cc.winSize.height / 2 - this.btnNext.height);
this.scheduleOnce(function() {
t.btnNext.y = e;
}, _.default.WX_SdkCustomKey.btnMoveTime);
this.scheduleOnce(function() {
t.scheduleOnce(function() {
t.isbtnQuit = !0;
}, 1);
}, _.default.WX_SdkCustomKey.bannerMoveTime);
} else this.isbtnQuit = !0;
};
e.prototype.banner_htdjd_Up = function() {};
e.prototype.onDestroy = function() {
this.banner_htdjd && this.banner_htdjd.hide_htdjd();
this.banner_htdjd = null;
};
e.prototype.btn_htdjd_Up = function() {
this.unschedule(this.btn_htdjd_Up);
this.click_htdjd_Flag = !0;
};
e.prototype.check_htdjd_WuDian = function() {
if (!this.click_htdjd_Flag && m.default.wudianFlag_htdjd) {
if (!this.click_htdjd_Taolu) {
this.click_htdjd_Taolu = !0;
this.checkBanner_htdjd_Show();
}
return !0;
}
return !1;
};
e.prototype.onVideo_htdjd_Btn = function() {
var t = this;
r.default.is_WECHAT_GAME_htdjd() ? v.default.showRewardedVideoAd_htdjd(function(e) {
e ? t.jiangli(300) : t.jiangli(60);
}, function() {}) : r.default.is_QQ_PLAY_htdjd() ? s.default.showRewardedVideoAd_htdjd(function(e) {
e ? t.jiangli(300) : t.jiangli(60);
}, function() {}) : r.default.is_TT_GAME_htdjd() ? c.TtMgr.playAd(function(e) {
e && t.jiangli(300);
}) : r.default.is_OPPO_GAME_htdjd() ? h.OppoMgr.instance.playAd(function(e) {
e ? t.jiangli(300) : t.jiangli(60);
}) : r.default.is_VIVO_GAME_htdjd() ? p.default.instance.playAd(function(e) {
e ? t.jiangli(300) : t.jiangli(60);
}) : h.OppoMgr.instance.playAd(function(e) {
e ? t.jiangli(300) : t.jiangli(60);
});
};
e.prototype.jiangli = function(t) {
_.default.sendAloConttrol(5);
j.default.addMoney_htdjd(t);
y.default.getInstance_htdjd().saveGameData_htdjd();
this.btnVideo.active = !1;
this.resultNode.active = !1;
this.go_htdjd_Next();
300 == t ? x.syyx_sdk_api.send_settlement_event("3") : x.syyx_sdk_api.send_settlement_event("4");
};
e.prototype.onBtnOk = function() {
var t = this;
k.default.instance.set_on_click_inner_interstitial_btn(function() {
t.btnOkFinish();
});
};
e.prototype.btnOkFinish = function() {
this.resultNode.active = !0;
console.info("this.resultNode", this.resultNode);
this.overNode.active = !1;
k.default.instance.hide_native_inner_interstitial();
k.default.instance.hide_game_banner_box();
k.default.instance.showYSGG();
this.m_htAdView && this.m_htAdView.hide();
x.syyx_sdk_api.send_settlement_event("2");
};
e.prototype.go_htdjd_Next = function() {
this.btnNext.active = !1;
console.log("onBtnEnter", this.isclick);
this.resultNode.active = !1;
if (r.default.is_OPPO_GAME_htdjd()) {
var t = l.Game_htdjd_Util.limit(0, 100);
console.info(t, _.default.OPPO_SdkCustomKey.nativeProReward);
if (t <= _.default.OPPO_SdkCustomKey.nativeProReward && _.default.OPPO_SdkCustomKey.appId && !this.isclick) {
console.info("nativeProReward");
cc.game.emit("OppoNatBanner");
this.isclick = !0;
this.btnNext.active = !0;
}
this.open_htdjd_hallScene();
} else if (r.default.is_VIVO_GAME_htdjd()) {
this.resultNode.active = !0;
t = l.Game_htdjd_Util.limit(0, 100);
console.info(t, _.default.VIVO_SdkCustomKey.nativeProReward);
if (t <= _.default.VIVO_SdkCustomKey.nativeProReward && _.default.VIVO_SdkCustomKey.appId && !this.isclick) {
console.info("nativeProReward");
cc.game.emit("OppoNatBanner");
this.isclick = !0;
this.btnNext.active = !0;
}
this.open_htdjd_hallScene();
} else this.open_htdjd_hallScene();
};
e.prototype.checkBanner_htdjd_Show = function() {
this.scheduleOnce(this.btn_htdjd_Up, 1);
this.scheduleOnce(this.banner_htdjd_Up, 2);
};
e.prototype.onBtnEnter = function() {
this.jiangli(60);
};
e.prototype.onDisable = function() {
f.default.offTargetEvent_htdjd(this);
};
e.prototype.open_htdjd_hallScene = function() {
g.default.instance().openScene(g.viewDefs.Hall, "over", function() {});
};
a([ O({
type: cc.AudioClip,
displayName: "失败音效"
}) ], e.prototype, "loseAudio", void 0);
a([ O({
type: cc.AudioClip,
displayName: "胜利音效"
}) ], e.prototype, "winAudio", void 0);
a([ O({
type: cc.Node,
displayName: "退出按钮"
}) ], e.prototype, "btnNext", void 0);
a([ O({
type: cc.Label,
displayName: "奖励金币"
}) ], e.prototype, "addCoin", void 0);
a([ O({
type: cc.Node,
displayName: "继续游戏"
}) ], e.prototype, "jxGame", void 0);
a([ O({
type: cc.Node,
displayName: "点击查看"
}) ], e.prototype, "btn_confirm", void 0);
a([ O({
type: cc.Node,
displayName: "结算界面"
}) ], e.prototype, "resultNode", void 0);
a([ O({
type: cc.Node,
displayName: "胜利失败界面"
}) ], e.prototype, "overNode", void 0);
a([ O({
type: cc.Node,
displayName: "添加导出页节点"
}) ], e.prototype, "addNode", void 0);
a([ O({
type: cc.Node,
displayName: "失败段位图"
}) ], e.prototype, "loseBgdi", void 0);
a([ O({
type: cc.Node,
displayName: "胜利段位图"
}) ], e.prototype, "winBgdi", void 0);
a([ O({
type: cc.Sprite,
displayName: "输赢图片"
}) ], e.prototype, "overType", void 0);
a([ O({
type: cc.Node,
displayName: "确定按钮"
}) ], e.prototype, "btnYes", void 0);
a([ O({
type: cc.Node,
displayName: "视频按钮"
}) ], e.prototype, "btnVideo", void 0);
a([ O({
type: [ cc.SpriteFrame ],
displayName: "结束类型"
}) ], e.prototype, "overTypeSprite", void 0);
a([ O({
type: d.default,
displayName: "新段位"
}) ], e.prototype, "lvNewNode", void 0);
a([ O({
type: cc.Node,
displayName: "结算奖励右边点"
}) ], e.prototype, "right_cxr_Node", void 0);
a([ O({
type: d.default,
displayName: "旧段位"
}) ], e.prototype, "lvOldNode", void 0);
return a([ I ], e);
}(b.default);
n.default = P;
cc._RF.pop();
}, {
"../../syyx_sdk/configs/syyx_sdk_enum": "syyx_sdk_enum",
"../../syyx_sdk/controller/syyx_manager": "syyx_manager",
"../../syyx_sdk/syyx_sdk_api": "syyx_sdk_api",
"../HelpMgr": "HelpMgr",
"../Script/Event/Event_htdjd_Defs": "Event_htdjd_Defs",
"../Script/Event/Event_htdjd_Mgr": "Event_htdjd_Mgr",
"../Script/Mgr/Game_htdjd_Mgr": "Game_htdjd_Mgr",
"../Script/Mgr/View_htdjd_Mgr": "View_htdjd_Mgr",
"../Script/Mgr/wudian_htdjd_Mgr": "wudian_htdjd_Mgr",
"../Script/Net/Net_Mgr": "Net_Mgr",
"../Script/Platform/OPPO/OppoMgr": "OppoMgr",
"../Script/Platform/QQ/QQMiniGameAPI": "QQMiniGameAPI",
"../Script/Platform/TT/TtMgr": "TtMgr",
"../Script/Platform/VIVO/VivoMgr": "VivoMgr",
"../Script/Platform/WX/WXAPI": "WXAPI",
"../Script/User/User_htdjd": "User_htdjd",
"../Script/Util/App_htdjd_Platform": "App_htdjd_Platform",
"../Script/Util/Game_htdjd_Util": "Game_htdjd_Util",
"../Script/View/Base_htdjd_View": "Base_htdjd_View",
"./UI_htdjd_Level": "UI_htdjd_Level"
} ],
Game_htdjd_Util: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "dffcaOFsnhJ87K0vmYMW7o9", "Game_htdjd_Util");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Game_htdjd_Util = void 0;
var i = function() {
function t() {}
t.judgeTime = function(t) {
if ("0" == t) return !0;
var e = (t += "").split("-");
if (e.length <= 1) return !0;
var n = e[0], i = e[1], o = this.getServerTime().getFullYear(), a = this.getServerTime().getMonth() + 1, _ = this.getServerTime().getDate(), d = o + "-" + a + "-" + _ + " " + i + ":00", r = new Date(o + "-" + a + "-" + _ + " " + n + ":00").getTime(), s = new Date(d).getTime(), c = this.getServerTime().getTime();
return r <= c && c <= s || r >= c && c >= s;
};
t.formatSecond = function(t) {
var e = "00", n = "00";
if (t > 1e3) {
e = "" + (t - (i = t % 1e3)) / 1e3;
n = Math.round(i / 10) + "";
} else {
var i;
n = (i = Math.round(t / 10)) > 0 ? i + "" : "00";
}
return e + ":" + n;
};
t.randomSelect = function(t) {
t.sort(function() {
return Math.random() > .5 ? -1 : 1;
});
return t;
};
t.getFormatBySecond = function(t) {
void 0 === t && (t = 0);
if (t <= 0) return "00:00:00";
var e, n, i, o = Math.floor(t / 3600), a = Math.floor((t - 3600 * o) / 60), _ = Math.floor((t - 3600 * o) % 60);
e = 0 == a ? "00" : a < 10 ? "0" + a : "" + a;
n = 0 == _ ? "00" : _ < 10 ? "0" + _ : "" + _;
return "00" == (i = 0 == o ? "00" : o < 10 ? "0" + o : "" + o) ? e + ":" + n : i + ":" + e + ":" + n;
};
t.limit = function(t, e) {
t = Math.min(t, e);
var n = (e = Math.max(t, e)) - t;
return t + Math.random() * n;
};
t.getServerTime = function() {
return new Date();
};
t.limitInteger = function(t, e) {
return Math.floor(this.limit(t, e + 1));
};
t.replaceChar = function(t, e, n) {
return "0" == e ? n : n = n.replace(t, e);
};
return t;
}();
n.Game_htdjd_Util = i;
cc._RF.pop();
}, {} ],
Global_htdjd_Data: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "e3a4aCG0ONDEoHwwXbyH5H5", "Global_htdjd_Data");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Global_htdjd_Data = void 0;
var i = function() {
function t() {}
t.userinfo = null;
t.scene_id = "";
t.fileversion = "";
t.userBt = null;
t.isshowcourse = !1;
t.gameversion = "";
t.score = 0;
t.lv = 1;
t.platform = 1;
t.path = null;
t.isshake = !0;
t.nowpass = 1;
t.backhomestar = 0;
t.backhomecoin = 0;
t.scene3dtype = 1;
t.openId = null;
t.productId = -1;
t.rewardcurTime = 0;
return t;
}();
n.Global_htdjd_Data = i;
cc._RF.pop();
}, {} ],
HelloworldApk: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "becd9pw2EVHL7LzL7G/ze3Z", "HelloworldApk");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../syyx_sdk/syyx_sdk_api"), d = t("../syyx_sdk/configs/syyx_sdk_enum"), r = t("../syyx_sdk/utils/syyx_sdk_utils"), s = cc._decorator, c = s.ccclass, h = s.property, l = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.btn_normal_inter = null;
e.btn_native_inter = null;
e.btn_close_native_inter = null;
e.btn_load_native = null;
e.btn_inner_native_inter = null;
e.btn_inner_check = null;
e.btn_inner_return = null;
e.btn_inner_confirm = null;
e.btn_inner_exit = null;
e.btn_normal_banner = null;
e.btn_banenr = null;
e.btn_close_banner = null;
e.btn_video_inter = null;
e.btn_video = null;
e.inner_interstitial_parent = null;
e.btn_jump_leisure = null;
e.btn_get_channel_id = null;
e.btn_get_devicel_id = null;
e.btn_get_ad_channel_id = null;
return e;
}
e.prototype.onLoad = function() {
var t = this;
_.syyx_sdk_api.init("syyx_configs/syyx_game_init.json", function(e, n) {
if (!0 === e) {
console.log("mijia ----- 1");
if (n.load_init_complete) {
_.syyx_sdk_api.show_privacy_view();
_.syyx_sdk_api.init_param("user_account", "user_id");
console.log("mijia ----- 2");
_.syyx_sdk_api.send_hall_event(d.e_hall_stat_type.enter_hall);
_.syyx_sdk_api.send_chapter_event(1);
_.syyx_sdk_api.send_chapter_event(1, !1);
_.syyx_sdk_api.send_chapter_event(2, !0);
_.syyx_sdk_api.send_settlement_event(d.e_settlement_stat_type.enter_settlement);
}
if (n.load_local_complete) {
console.log("igc-----business_config data:" + JSON.stringify(n.business_config));
t.btn_banenr.on("click", t.show_banner_native, t);
t.btn_normal_banner.on("click", t.show_banner_normal, t);
t.btn_close_banner.on("click", t.close_native_banner, t);
t.btn_normal_inter.on("click", t.show_interstitial_normal, t);
t.btn_native_inter.on("click", t.show_interstitial_native, t);
t.btn_close_native_inter.on("click", t.close_native_interstitial, t);
t.btn_video_inter.on("click", t.show_video_inter, t);
t.btn_video.on("click", t.show_video, t);
t.btn_jump_leisure.on("click", t.jump_leisure, t);
t.btn_get_channel_id.on("click", t.get_apk_channel_id, t);
t.btn_get_devicel_id.on("click", t.get_apk_device_id, t);
t.btn_get_ad_channel_id.on("click", t.get_apk_ad_channel_id, t);
t.btn_load_native.on("click", t.load_inner_interstitial_native, t);
t.btn_inner_native_inter.on("click", t.show_inner_interstitial_native, t);
}
n.load_remote_complete;
}
}.bind(this));
};
e.prototype.close_native_interstitial = function() {
_.syyx_sdk_api.hide_native_interstitial();
_.syyx_sdk_api.hide_native_inner_interstitial();
};
e.prototype.show_interstitial_normal = function() {
_.syyx_sdk_api.show_interstitial(d.e_ad_id.native_interstitial_hall, function(t, e) {
console.log("igc-----show show_native on_load:" + JSON.stringify(e));
}, function() {
console.log("igc-----show show_native onShow");
}, function() {}, function(t, e) {
console.log("igc-----show show_native onError:" + JSON.stringify(e));
});
};
e.prototype.show_video_inter = function() {
_.syyx_sdk_api.show_video_interstitial(function(t, e) {
console.log("igc-----show show_video_inter on_load:" + JSON.stringify(e));
}, function() {
console.log("igc-----show show_video_inter onShow");
}, function(t, e) {
console.log("igc-----show show_video_inter onClose:" + JSON.stringify(e));
}, function(t, e) {
console.log("igc-----show show_video_inter onError:" + JSON.stringify(e));
});
};
e.prototype.show_video = function() {
_.syyx_sdk_api.show_video(d.e_ad_id.video_add_gold, function() {
console.log("igc-----show show_video on_load");
}, function() {
console.log("igc-----show show_video onShow");
}, function(t, e) {
console.log("igc-----show show_video onClose:" + JSON.stringify(e));
e.isEnded ? console.log("igc---视频已看完发放奖励") : console.log("igc---视频未看完");
}, function(t, e) {
console.log("igc-----show show_video onError:" + JSON.stringify(e));
});
};
e.prototype.show_banner_normal = function() {
_.syyx_sdk_api.show_normal_banner(d.e_ad_id.banner_hall, function() {
console.log("igc-----show banner on_load");
}, function() {
console.log("igc-----show banner onShow");
}, function() {
console.log("igc-----show banner onClose");
}, function() {
console.log("igc-----show banner onError");
});
};
e.prototype.show_banner_native = function() {
var t = new d.apk_ad_attr();
t.container = new d.apk_ad_attr_enum();
t.container.width = "800";
_.syyx_sdk_api.show_banner(d.e_ad_id.banner_hall, function() {
console.log("igc-----show banner on_load");
}, function() {
console.log("igc-----show banner onShow");
}, function() {
console.log("igc-----show banner onClose");
}, function() {
console.log("igc-----show banner onError");
}, t);
};
e.prototype.close_native_banner = function() {
_.syyx_sdk_api.hide_banner();
};
e.prototype.show_interstitial_native = function() {
_.syyx_sdk_api.show_native_interstitial(d.e_ad_id.native_interstitial_hall, function(t, e) {
console.log("igc-----show show_native on_load:" + JSON.stringify(e));
}, function() {
console.log("igc-----show show_native onShow");
}, function() {}, function(t, e) {
console.log("igc-----show show_native onError:" + JSON.stringify(e));
});
};
e.prototype.load_inner_interstitial_native = function() {
_.syyx_sdk_api.preload_native_inner_interstitial(d.e_ad_id.native_inner_interstitial_success, function(t, e) {
console.log("igc-----show show_native on_load:" + JSON.stringify(e));
}, function() {
console.log("igc-----show show_native onShow");
}, function() {}, function(t, e) {
console.log("igc-----show show_native onError:" + JSON.stringify(e));
});
};
e.prototype.show_inner_interstitial_native = function() {
var t = this;
this.btn_inner_check.active = !1;
var e = _.syyx_sdk_api.get_local_native_data();
console.log("igc----- show_inner_interstitial_native can_show_inner" + e);
if (e) {
var n = new d.apk_ad_attr();
n.set_click_btn(r.syyx_sdk_utils.getScreenLeftNTop(this.btn_inner_check));
n.set_container(r.syyx_sdk_utils.getScreenLeftNTop(this.inner_interstitial_parent));
var i = this.gen_inner_btn_group();
n.set_special_btn_group(i);
_.syyx_sdk_api.show_native_inner_interstitial(d.e_ad_id.native_inner_interstitial_success, null, function(e, n) {
console.log("igc-----show_inner_interstitial_native on_load:" + JSON.stringify(n));
t.btn_inner_check.active = !1;
}, function() {
console.log("igc-----show_inner_interstitial_native  onShow");
t.btn_inner_check.active = !0;
}, function() {
console.log("igc-----show_inner_interstitial_native onHide");
t.btn_inner_check.active = !1;
}, !0, n);
}
};
e.prototype.gen_inner_btn_group = function() {
var t = {};
t.btn1 = r.syyx_sdk_utils.getScreenLeftNTop(this.btn_inner_confirm);
t.btn2 = r.syyx_sdk_utils.getScreenLeftNTop(this.btn_inner_exit);
t.btn3 = r.syyx_sdk_utils.getScreenLeftNTop(this.btn_inner_return);
return t;
};
e.prototype.jump_leisure = function() {
_.syyx_sdk_api.jump_leisure_subject();
};
e.prototype.set_on_exit_finish = function() {
_.syyx_sdk_api.set_on_exit_finish(function() {
console.log("igc-----  准备关闭游戏了 快溜！！！");
});
};
e.prototype.get_apk_channel_id = function() {
console.log("igc get_apk_channel_id--- " + _.syyx_sdk_api.get_apk_channel_id());
};
e.prototype.get_apk_device_id = function() {
console.log("igc get_apk_device_id--- " + _.syyx_sdk_api.get_apk_device_id());
};
e.prototype.get_apk_ad_channel_id = function() {
console.log("igc --- get_apk_ad_channel_id" + _.syyx_sdk_api.get_apk_ad_channel_id());
};
a([ h(cc.Node) ], e.prototype, "btn_normal_inter", void 0);
a([ h(cc.Node) ], e.prototype, "btn_native_inter", void 0);
a([ h(cc.Node) ], e.prototype, "btn_close_native_inter", void 0);
a([ h(cc.Node) ], e.prototype, "btn_load_native", void 0);
a([ h(cc.Node) ], e.prototype, "btn_inner_native_inter", void 0);
a([ h(cc.Node) ], e.prototype, "btn_inner_check", void 0);
a([ h(cc.Node) ], e.prototype, "btn_inner_return", void 0);
a([ h(cc.Node) ], e.prototype, "btn_inner_confirm", void 0);
a([ h(cc.Node) ], e.prototype, "btn_inner_exit", void 0);
a([ h(cc.Node) ], e.prototype, "btn_normal_banner", void 0);
a([ h(cc.Node) ], e.prototype, "btn_banenr", void 0);
a([ h(cc.Node) ], e.prototype, "btn_close_banner", void 0);
a([ h(cc.Node) ], e.prototype, "btn_video_inter", void 0);
a([ h(cc.Node) ], e.prototype, "btn_video", void 0);
a([ h(cc.Node) ], e.prototype, "inner_interstitial_parent", void 0);
a([ h(cc.Node) ], e.prototype, "btn_jump_leisure", void 0);
a([ h(cc.Node) ], e.prototype, "btn_get_channel_id", void 0);
a([ h(cc.Node) ], e.prototype, "btn_get_devicel_id", void 0);
a([ h(cc.Node) ], e.prototype, "btn_get_ad_channel_id", void 0);
return a([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {
"../syyx_sdk/configs/syyx_sdk_enum": "syyx_sdk_enum",
"../syyx_sdk/syyx_sdk_api": "syyx_sdk_api",
"../syyx_sdk/utils/syyx_sdk_utils": "syyx_sdk_utils"
} ],
Helloworld: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "e1b90/rohdEk4SdmmEZANaD", "Helloworld");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../syyx_sdk/syyx_sdk_api"), d = t("../syyx_sdk/configs/syyx_sdk_enum"), r = t("../syyx_sdk/model/model"), s = cc._decorator, c = s.ccclass, h = s.property, l = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.btn_new_produce = null;
e.btn_bannerbox = null;
e.btn_portalbox = null;
e.btn_close_box = null;
e.btn_native_inter = null;
e.btn_close_native_inter = null;
e.btn_load_native = null;
e.btn_inner_native_inter = null;
e.btn_inner_check = null;
e.btn_inner_return = null;
e.btn_banenr = null;
e.btn_close_banner = null;
e.btn_normal_inter = null;
e.btn_video = null;
e.btn_appbox = null;
e.btn_show_block = null;
e.btn_hide_block = null;
e.btn_show_native_icon = null;
e.btn_hide_native_icon = null;
e.inner_interstitial_parent = null;
e.msg = null;
return e;
}
e.prototype.onLoad = function() {
var t = this;
_.syyx_sdk_api.init("syyx_configs/syyx_game_init.json", function(e, n) {
if (!0 === e) {
console.log("mijia ----- 1");
if (n.load_init_complete) {
_.syyx_sdk_api.init_param("user_account", "user_id");
console.log("mijia ----- 2");
_.syyx_sdk_api.send_hall_event(d.e_hall_stat_type.enter_hall);
_.syyx_sdk_api.send_chapter_event(1);
_.syyx_sdk_api.send_chapter_event(1, !1);
_.syyx_sdk_api.send_chapter_event(2, !0);
_.syyx_sdk_api.send_settlement_event(d.e_settlement_stat_type.enter_settlement);
}
n.load_local_complete;
if (n.load_remote_complete) {
console.log("mijia ----- 3");
console.log("igc-----business_config data:" + JSON.stringify(n.business_config));
t.btn_new_produce.on("click", t.show_new_produce, t);
t.btn_bannerbox.on("click", t.show_bannerbox, t);
t.btn_portalbox.on("click", t.show_portalbox, t);
t.btn_close_box.on("click", t.close_oppo_box, t);
t.btn_native_inter.on("click", t.show_interstitial_native, t);
t.btn_inner_check.on("click", t.click_native_inner_interstitial, t);
t.btn_inner_return.on("click", t.set_on_click_inner_interstitial_btn, t);
t.btn_close_native_inter.on("click", t.close_native_interstitial, t);
t.btn_load_native.on("click", t.pre_load_native, t);
t.btn_inner_native_inter.on("click", t.show_inner_interstitial_native, t);
t.btn_banenr.on("click", t.show_banner_native, t);
t.btn_close_banner.on("click", t.close_native_banner, t);
t.btn_normal_inter.on("click", t.show_normal_inter, t);
t.btn_video.on("click", t.show_video, t);
t.btn_appbox.on("click", t.show_appbox, t);
t.btn_show_block.on("click", t.show_block, t);
t.btn_hide_block.on("click", t.hide_block, t);
t.btn_show_native_icon.on("click", t.show_native_icon, t);
t.btn_hide_native_icon.on("click", t.hide_native_icon, t);
}
}
}.bind(this));
var e = 0;
setInterval(function() {
t.msg.string = ++e + "";
}, 1e3);
};
e.prototype.close_native_interstitial = function() {
_.syyx_sdk_api.hide_native_interstitial();
_.syyx_sdk_api.hide_native_inner_interstitial();
};
e.prototype.show_normal_inter = function() {
_.syyx_sdk_api.show_interstitial(d.e_ad_id.interstitial_hall, function(t, e) {
console.log("igc-----show show_interstitial on_load:" + JSON.stringify(e));
}, function() {
console.log("igc-----show show_interstitial onShow");
}, function(t, e) {
console.log("igc-----show show_interstitial onClose:" + JSON.stringify(e));
}, function(t, e) {
console.log("igc-----show show_interstitial onError:" + JSON.stringify(e));
});
};
e.prototype.pre_load_native = function() {
this.load_inner_interstitial_native();
};
e.prototype.show_video = function() {
_.syyx_sdk_api.show_video(d.e_ad_id.video_add_gold, function() {
console.log("igc-----show show_video on_load");
}, function() {
console.log("igc-----show show_video onShow");
}, function(t, e) {
console.log("igc-----show show_video onClose:" + JSON.stringify(e));
}, function(t, e) {
console.log("igc-----show show_video onError:" + JSON.stringify(e));
});
};
e.prototype.show_banner_native = function() {
_.syyx_sdk_api.show_banner(d.e_ad_id.banner_hall, function() {
console.log("igc-----show banner on_load");
}, function() {
console.log("igc-----show banner onShow");
}, function() {
console.log("igc-----show banner onClose");
}, function() {
console.log("igc-----show banner onError");
});
};
e.prototype.close_native_banner = function() {
_.syyx_sdk_api.hide_banner();
};
e.prototype.set_native_banner_pos = function() {
_.syyx_sdk_api.set_normal_banner_switch(!1);
_.syyx_sdk_api.load_view(r.syyx_view.native_banner, function(t) {
if (t && t.set_pos_and_scale) {
var e = cc.view.getVisibleSize().width, n = (e - 200) / 1080, i = -cc.view.getVisibleSize().height / 2;
t.set_pos_and_scale(-(e - 1080 * n) / 2, i, n, n);
}
});
};
e.prototype.resume_native_banner_pos = function() {
_.syyx_sdk_api.load_view(r.syyx_view.native_banner, function(t) {
t && t.resume_pos_and_scale && t.resume_pos_and_scale();
});
};
e.prototype.show_native_icon = function() {
_.syyx_sdk_api.show_native_icon(this.inner_interstitial_parent, d.e_ad_id.native_icon, function(t, e) {
console.log("igc-----show show_native_icon on_load:" + JSON.stringify(e));
}, function() {
console.log("igc-----show show_native_icon onShow");
}, function() {}, function(t, e) {
console.log("igc-----show show_native_icon onError:" + JSON.stringify(e));
});
};
e.prototype.hide_native_icon = function() {
_.syyx_sdk_api.hide_native_icon();
};
e.prototype.show_interstitial_native = function() {
_.syyx_sdk_api.show_native_interstitial(d.e_ad_id.native_interstitial_hall, function(t, e) {
console.log("igc-----show show_native on_load:" + JSON.stringify(e));
}, function() {
console.log("igc-----show show_native onShow");
}, function() {
console.log("igc-----show show_native onClose");
}, function(t, e) {
console.log("igc-----show show_native onError:" + JSON.stringify(e));
});
};
e.prototype.load_inner_interstitial_native = function() {
_.syyx_sdk_api.preload_native_inner_interstitial(d.e_ad_id.native_inner_interstitial_success, function(t, e) {
console.log("igc-----show show_native on_load:" + JSON.stringify(e));
}, function() {
console.log("igc-----show show_native onShow");
}, function() {}, function(t, e) {
console.log("igc-----show show_native onError:" + JSON.stringify(e));
});
};
e.prototype.show_inner_interstitial_native = function() {
var t = this;
if (_.syyx_sdk_api.get_local_native_data(d.e_ad_id.native_inner_interstitial_success)) {
console.log("igc-----加载到原生数据  可以展示");
_.syyx_sdk_api.show_native_inner_interstitial(d.e_ad_id.native_inner_interstitial_success, this.inner_interstitial_parent, function() {
var t = d.e_stat_event_id.win_click_native_adv;
_.syyx_sdk_api.send_other_event(t, d.e_stat_event_type.result);
}, function() {
t.btn_inner_check.active = !0;
console.log("igc----- 结算原生已显示");
}, function() {
t.btn_inner_check.active = !1;
console.log("igc----- 结算原生隐藏");
}, !0);
} else console.log("igc-----未加载到原生数据 不展示结算原生");
};
e.prototype.click_native_inner_interstitial = function() {
_.syyx_sdk_api.click_native_inner_interstitial();
};
e.prototype.set_on_click_inner_interstitial_btn = function() {
_.syyx_sdk_api.set_on_click_inner_interstitial_btn(function() {
console.log("正常点击，回到大厅！！！");
});
};
e.prototype.show_appbox = function() {
_.syyx_sdk_api.show_app_box(d.e_ad_id.appbox_hall, function() {
console.log("igc-----show show_app_box on_load");
}, function() {
console.log("igc-----show show_app_box onShow");
}, function() {
console.log("igc-----show show_app_box onClose");
}, function(t, e) {
console.log("igc-----show show_app_box onError:" + JSON.stringify(e));
});
};
e.prototype.show_block = function() {
_.syyx_sdk_api.show_block({
size: 5,
orientation: "vertical",
left: 0,
top: 100,
vertical_center_y: 0,
vertical_right: 100,
auto_update: !1
}, d.e_ad_id.right_block, function() {
console.log("igc-----show block on_load");
}, function() {
console.log("igc-----show block onShow");
}, function() {
console.log("igc-----show block onClose");
}, function() {
console.log("igc-----show block onError");
});
};
e.prototype.hide_block = function() {
_.syyx_sdk_api.hide_block(d.e_ad_id.right_block);
};
e.prototype.share_card = function() {
_.syyx_sdk_api.share("title", "https://imageUrl", "", "", function() {
console.log("igc-----share success");
}, function() {
console.log("igc-----share fail");
});
};
e.prototype.get_system_info = function() {
var t = _.syyx_sdk_api.get_system_info_sync();
console.log("igc-----system_info", t);
};
e.prototype.start_record = function() {
_.syyx_sdk_api.start_record_screen(300, !0, 30);
};
e.prototype.stop_record = function() {
_.syyx_sdk_api.stop_record_screen();
};
e.prototype.share_record = function() {
_.syyx_sdk_api.share_record_screen([ "画线大作战", "有人@你，就喜欢看你追上我又杀不了我，我的画线秘籍就是..", "抖音小游戏" ], "画线大作战", "就喜欢看你追上我又杀不了我，我的画线秘籍就是..", "", "", function() {
console.log("igc-----share screeb recording fail ");
}, function() {
console.log("igc-----share screeb recording success");
});
};
e.prototype.show_bannerbox = function() {
_.syyx_sdk_api.show_game_banner_box(d.e_ad_id.game_banner_box, function(t, e) {
console.log("igc-----show show_game_banner_box on_load:" + JSON.stringify(e));
}, function() {
console.log("igc-----show show_game_banner_box onShow");
}, function() {
console.log("igc-----show show_game_banner_box onClose");
}, function(t, e) {
console.log("igc-----show show_game_banner_box onError:" + JSON.stringify(e));
});
};
e.prototype.close_oppo_box = function() {
_.syyx_sdk_api.hide_game_banner_box(d.e_ad_id.game_banner_box);
};
e.prototype.show_portalbox = function() {
_.syyx_sdk_api.show_game_portal_box(d.e_ad_id.game_portal_box, function(t, e) {
console.log("igc-----show show_portal_box on_load:" + JSON.stringify(e));
}, function() {
console.log("igc-----show show_portal_box onShow");
}, function() {
console.log("igc-----show show_portal_box onClose");
}, function(t, e) {
console.log("igc-----show show_portal_box onError:" + JSON.stringify(e));
});
};
e.prototype.show_new_produce = function() {
_.syyx_sdk_api.show_new_products(function(t) {
console.log("igc----- 新品尝鲜完成，请发放奖励，数量为：", t);
});
};
a([ h(cc.Node) ], e.prototype, "btn_new_produce", void 0);
a([ h(cc.Node) ], e.prototype, "btn_bannerbox", void 0);
a([ h(cc.Node) ], e.prototype, "btn_portalbox", void 0);
a([ h(cc.Node) ], e.prototype, "btn_close_box", void 0);
a([ h(cc.Node) ], e.prototype, "btn_native_inter", void 0);
a([ h(cc.Node) ], e.prototype, "btn_close_native_inter", void 0);
a([ h(cc.Node) ], e.prototype, "btn_load_native", void 0);
a([ h(cc.Node) ], e.prototype, "btn_inner_native_inter", void 0);
a([ h(cc.Node) ], e.prototype, "btn_inner_check", void 0);
a([ h(cc.Node) ], e.prototype, "btn_inner_return", void 0);
a([ h(cc.Node) ], e.prototype, "btn_banenr", void 0);
a([ h(cc.Node) ], e.prototype, "btn_close_banner", void 0);
a([ h(cc.Node) ], e.prototype, "btn_normal_inter", void 0);
a([ h(cc.Node) ], e.prototype, "btn_video", void 0);
a([ h(cc.Node) ], e.prototype, "btn_appbox", void 0);
a([ h(cc.Node) ], e.prototype, "btn_show_block", void 0);
a([ h(cc.Node) ], e.prototype, "btn_hide_block", void 0);
a([ h(cc.Node) ], e.prototype, "btn_show_native_icon", void 0);
a([ h(cc.Node) ], e.prototype, "btn_hide_native_icon", void 0);
a([ h(cc.Node) ], e.prototype, "inner_interstitial_parent", void 0);
a([ h(cc.Label) ], e.prototype, "msg", void 0);
return a([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {
"../syyx_sdk/configs/syyx_sdk_enum": "syyx_sdk_enum",
"../syyx_sdk/model/model": "model",
"../syyx_sdk/syyx_sdk_api": "syyx_sdk_api"
} ],
HelpMgr: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "6d4990YT4dEJbmiDpELZluT", "HelpMgr");
var i = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = t("../syyx_sdk/configs/syyx_sdk_enum"), a = t("../syyx_sdk/controller/syyx_manager"), _ = t("../syyx_sdk/syyx_sdk_api"), d = t("../syyx_sdk/utils/syyx_sdk_utils"), r = t("./FlyLabelHelpMgr"), s = t("./GameScript/role/AI_htdjd_Player"), c = t("./Script/Config/Game_htdjd_Config"), h = t("./Script/User/User_htdjd"), l = t("./Script/zqHelp/GSkinHelp"), p = t("./Script/zqHelp/Tools"), u = cc._decorator, f = u.ccclass, y = (u.property, 
cc.audioEngine.play);
cc.audioEngine.play = function(t, e, n) {
if (!g.instance.m_isNotMusic) return y(t, e, n);
};
var g = function() {
function t() {
var t = this;
this.m_isNotMusic = !1;
this.m_hallCount = 0;
this.m_gameIsWin = -1;
this.m_overCount = 0;
this.m_jsonData = null;
this.m_nBossBattle = -1;
this.m_adTime = 0;
this.m_gameCount = 0;
this.m_gameFHCount = 0;
if (e._instance) throw new Error("please use HelpMgr.instance");
e._instance = this;
setInterval(function() {
t.update(1e3);
}, 1e3);
}
e = t;
Object.defineProperty(t, "instance", {
get: function() {
e._instance || new e();
return e._instance;
},
enumerable: !1,
configurable: !0
});
t.prototype.init = function(t) {
void 0 === t && (t = null);
l.default.instance;
this.show_privacy_view(this.initFinish.bind(this));
};
t.prototype.initFinish = function(t) {
var n = this;
console.log("隐私协议 确认回调", t);
if (!e.instance.m_adFinish) {
_.syyx_sdk_api.init("syyx_configs/syyx_game_init.json", function() {
e.instance.m_adFinish = !0;
n.loginQD();
});
setTimeout(function() {
n.init();
}, 1e3);
}
};
t.prototype.update = function(t) {
if (!(this.m_adTime >= 5e3)) {
this.m_adTime += t;
if (this.m_adTime >= 5e3) {
this.m_adTime = 5e3;
console.log("显示bannerupdate-------");
this.show_banner_native();
}
}
};
t.prototype.isBossType = function() {
return this.m_nBossBattle >= 0;
};
t.prototype.setStoreConfig = function(t) {
e.instance.m_jsonData || (e.instance.m_jsonData = p.default.copyArray(t));
return e.instance.m_jsonData;
};
t.prototype.getStoreConfig = function() {
return e.instance.m_jsonData;
};
t.prototype.getPwIdx = function() {
var t = h.default.LeveNum, e = {
lvIdx: 1,
starNum: 0
};
if (t) {
var n = t % 3;
0 == n && (n = 3);
console.log("排位信息", n, t);
var i = t, o = c.default.max;
if (i > o) {
i = o;
n = t - 3 * o;
}
e.lvIdx = i;
e.starNum = n;
}
return e;
};
t.prototype.loginQD = function() {
_.syyx_sdk_api.login_channel(function(t) {
console.log("登录打点----------", t);
});
};
t.prototype.show_banner_native = function() {
this.m_adTime < 5e3 || jsb.reflection.callStaticMethod("org/cocos2dx/javascript/AppActivity", "showBanner", "()V");
};
t.prototype.close_native_banner = function() {
jsb.reflection.callStaticMethod("org/cocos2dx/javascript/AppActivity", "hideBanner", "()V");
};
t.prototype.show_leftmoregame = function() {};
t.prototype.load_inner_interstitial_native = function() {
var t = this;
_.syyx_sdk_api.preload_native_inner_interstitial(o.e_ad_id.native_inner_interstitial_success, function(t, e) {
console.log("igc-----show show_native on_load:" + JSON.stringify(e));
}, function() {
console.log("igc-----show show_native onShow");
}, function() {}, function(e, n) {
console.log("igc-----show show_native onError:" + JSON.stringify(n));
setTimeout(function() {
t.load_inner_interstitial_native();
}, 1e3);
});
};
t.prototype.isGotoNative = function() {
var t = a.syyx_manager.get_business_config();
if (t) {
var e = t.only_interstitial;
console.log("远程字段 only_interstitial", JSON.stringify(e));
if (e) return e.value[0];
}
};
t.prototype.isSHowXP = function() {
var t = a.syyx_manager.get_business_config();
if (t) {
var e = t.push_interstitial;
console.log("远程字段 push_interstitial", JSON.stringify(e));
if (e) {
var n = e.value[0], i = e.value[1];
this.m_gameCount++;
if (this.m_gameCount >= n) {
if (this.m_gameCount == n) return !0;
if ((this.m_gameCount - n) % (i + 1) == 0) return !0;
}
}
}
return !1;
};
t.prototype.isSHowFHXP = function() {
var t = a.syyx_manager.get_business_config();
if (t) {
var e = t.auto_revive;
console.log("远程字段 auto_revive", JSON.stringify(e));
if (e) {
this.m_gameFHCount++;
var n = e.value[0], i = e.value[1];
if (this.m_gameFHCount >= n) {
if (this.m_gameFHCount - n <= i) return !0;
this.m_gameFHCount = 0;
}
}
}
return !1;
};
t.prototype.showYSGG = function(t) {
void 0 === t && (t = 1e3);
this.isSHowXP() && this.showXPGG(t);
};
t.prototype.showXPGG = function(t) {
var e = this;
setTimeout(function() {
e.isGotoNative() ? e.show_normal_inter() : e.show_native_interstitial();
}, t);
};
t.prototype.show_inner_interstitial_native = function(t, e, n) {
n.active = !1;
var i = _.syyx_sdk_api.get_local_native_data();
console.log("igc----- show_inner_interstitial_native can_show_inner" + i);
if (i) {
var a = new o.apk_ad_attr();
a.set_click_btn(d.syyx_sdk_utils.getScreenLeftNTop(n));
a.set_container(d.syyx_sdk_utils.getScreenLeftNTop(t));
var r = {};
r.btn1 = d.syyx_sdk_utils.getScreenLeftNTop(e);
n.active = !0;
a.set_special_btn_group(r);
_.syyx_sdk_api.show_native_inner_interstitial(o.e_ad_id.native_inner_interstitial_success, null, function(t, e) {
console.log("igc-----show_inner_interstitial_native on_load:" + JSON.stringify(e));
n.active = !1;
}, function() {
console.log("igc-----show_inner_interstitial_native  onShow");
n.active = !0;
}, function() {
console.log("igc-----show_inner_interstitial_native onHide");
n.active = !1;
}, !0, a);
return !0;
}
console.log("igc-----未加载到原生数据 不展示原生插屏");
return !1;
};
t.prototype.hide_native_inner_interstitial = function() {
_.syyx_sdk_api.hide_native_inner_interstitial();
};
t.prototype.show_native_interstitial = function() {
_.syyx_sdk_api.show_native_interstitial(o.e_ad_id.native_interstitial_hall, function(t, e) {
console.log("igc-----show show_native on_load:" + JSON.stringify(e));
}, function() {
console.log("igc-----show show_native onShow");
}, function() {}, function(t, e) {
console.log("igc-----show show_native onError:" + JSON.stringify(e));
});
};
t.prototype.hide_native_interstitial = function() {
_.syyx_sdk_api.hide_native_interstitial();
};
t.prototype.show_normal_inter = function() {
_.syyx_sdk_api.show_interstitial(o.e_ad_id.native_interstitial_hall, function(t, e) {
console.log("igc-----show show_native on_load:" + JSON.stringify(e));
}, function() {
console.log("igc-----show show_native onShow");
}, function() {}, function(t, e) {
console.log("igc-----show show_native onError:" + JSON.stringify(e));
});
};
t.prototype.show_bannerbox = function() {
_.syyx_sdk_api.show_game_banner_box(o.e_ad_id.game_banner_box, function(t, e) {
console.log("igc-----show show_game_banner_box on_load:" + JSON.stringify(e));
}, function() {
console.log("igc-----show show_game_banner_box onShow");
}, function() {
console.log("igc-----show show_game_banner_box onClose");
}, function(t, e) {
console.log("igc-----show show_game_banner_box onError:" + JSON.stringify(e));
});
};
t.prototype.hide_game_banner_box = function() {
_.syyx_sdk_api.hide_game_banner_box(o.e_ad_id.game_banner_box);
};
t.prototype.show_portalbox = function() {
_.syyx_sdk_api.jump_leisure_subject();
};
t.prototype.show_video = function(t) {
t(1);
};
t.prototype.show_unit_icon = function() {};
t.prototype.show_unit = function() {};
t.prototype.show_gamebox = function() {};
t.prototype.hideGameBox = function() {};
t.prototype.random000 = function(t, e) {
return t == e ? t : Math.floor(Math.random() * (e - t + 1) + t);
};
t.prototype.getPlatformVersionCode = function() {
var t = window.qg && window.qg.getSystemInfoSync().platformVersionCode;
console.error("当前oppo版本", t);
return t;
};
t.prototype.loadPlayer = function(t, n, i) {
void 0 === i && (i = null);
t > 4 ? e.instance.changeDragonbones(t, parseInt(t), function(t, e) {
n(t, e);
}, i) : this.loadPlayerBase(t, n, i);
};
t.prototype.loadPlayerBase = function(t, n, i) {
void 0 === i && (i = null);
var o = parseInt(t) + 1;
o > 5 && (o -= 5);
e.instance.loadDragonbones("lg" + o, function(e) {
n && n(e, t);
}, i);
};
t.prototype.loadSkinPlayer = function(t, n, i) {
void 0 === i && (i = null);
var o = parseInt(t) + 1;
o > 9 && (o = 8);
console.log("皮肤---------------", o);
var a = "FrameWork/anim_HTDJD/yf_skin/item/lg" + o;
e.instance.loadDragonbonesByPath(a, function(e) {
n && n(e, t);
}, i);
};
t.prototype.loadDragonbones = function(t, e, n) {
var i = "FrameWork/anim_HTDJD/new/" + t;
console.log("加载龙骨动画  资源路径", i);
this.loadDragonbonesByPath(i, e, n);
};
t.prototype.loadDragonbonesByPath = function(t, e, n, i) {
void 0 === i && (i = "Armature");
cc.resources.loadDir(t, cc.Asset, null, function(t, o) {
var a = new cc.Node(), _ = a.addComponent(dragonBones.ArmatureDisplay);
_.dragonAsset = null;
_.dragonAtlasAsset = null;
_.armatureName = null;
for (var d = 0; d < o.length; d++) {
var r = o[d];
r.dragonBonesJson ? _.dragonAsset = r : r.atlasJson && (_.dragonAtlasAsset = r);
}
console.log("--资源：---", i);
_.armatureName = i;
n && n.addChild(a);
e && e(a);
});
};
t.prototype.changePyNow = function(t, e, n, i) {
if (t && e) {
var o = t.getComponent(dragonBones.ArmatureDisplay), a = e.getComponent(dragonBones.ArmatureDisplay);
a.armatureName = "Armature" + (parseInt(n) - 4);
console.log("----------", t, e, a.armatureName, n);
dragonBones.CCFactory.getInstance().replaceSkin(o.armature(), a.armature().armatureData.defaultSkin, !1, [ "wuqi1" ]);
i && i(t, n);
}
};
t.prototype.changePf = function(t, e, n, i) {
var o = this;
this.loadSkinPlayer(n, function(n) {
o.changePyNow(t, n, e, i);
});
};
t.prototype.changeDragonbones = function(t, e, n, i) {
var o = this, a = null, _ = null;
this.loadPlayerBase(t, function(e) {
a = e;
o.changePyNow(a, _, t, n);
}, i);
this.loadSkinPlayer(e, function(e) {
_ = e;
o.changePyNow(a, _, t, n);
});
};
t.prototype.switchSkin = function() {};
t.prototype.loadSpriteFrame = function(t, e, n) {
void 0 === n && (n = null);
cc.resources.load(t, cc.SpriteFrame, function(t, i) {
t && console.log("加载图片资源失败", t);
cc.isValid(e) && (e.spriteFrame = i);
n && n(i);
});
};
t.prototype.getSdkValue = function(t) {
var e = a.syyx_manager.get_business_config();
if (e) {
var n = e[t];
console.error("看这里---------------  远程字段  " + t, JSON.stringify(n));
if (n) return n.value[0] || 0;
}
return 0;
};
t.prototype.set_on_click_inner_interstitial_btn = function(t) {
e.instance.m_adFinish || t && t();
_.syyx_sdk_api.set_on_click_inner_interstitial_btn(t);
};
t.prototype.show_new_products = function() {
var t = e.instance.getSdkValue("ctr_test_show_need");
console.log("新品尝鲜次数", t);
e.instance.m_hallCount % t == 0 && _.syyx_sdk_api.show_new_products(function(t) {
console.log("新品尝鲜发放奖励", t);
h.default.addMoney_htdjd(t);
});
};
t.prototype.gamePause = function() {
s.default.isMove = !1;
};
t.prototype.gameResum = function() {
s.default.isMove = !0;
};
t.prototype.show_privacy_view = function(t) {
console.log("开始请求 隐私协议");
_.syyx_sdk_api.show_privacy_view(t);
};
t.prototype.show_proxy_webview = function() {
_.syyx_sdk_api.show_proxy_webview();
};
var e;
return e = i([ f ], t);
}();
n.default = g;
cc._RF.pop();
}, {
"../syyx_sdk/configs/syyx_sdk_enum": "syyx_sdk_enum",
"../syyx_sdk/controller/syyx_manager": "syyx_manager",
"../syyx_sdk/syyx_sdk_api": "syyx_sdk_api",
"../syyx_sdk/utils/syyx_sdk_utils": "syyx_sdk_utils",
"./FlyLabelHelpMgr": "FlyLabelHelpMgr",
"./GameScript/role/AI_htdjd_Player": "AI_htdjd_Player",
"./Script/Config/Game_htdjd_Config": "Game_htdjd_Config",
"./Script/User/User_htdjd": "User_htdjd",
"./Script/zqHelp/GSkinHelp": "GSkinHelp",
"./Script/zqHelp/Tools": "Tools"
} ],
JSONWuQi: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "a4282Ov2w5Hzp4h5eyEwZ4G", "JSONWuQi");
Object.defineProperty(n, "__esModule", {
value: !0
});
cc._RF.pop();
}, {} ],
KD_htdjd_BannerView: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "5c160q6hoNCr7vfAxiTv6/8", "KD_htdjd_BannerView");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../../Util/Wudian"), d = t("../../Util/Common_htdjd"), r = t("./KD_htdjd_rewardView"), s = t("../../Mgr/View_htdjd_Mgr"), c = t("../../Platform/QQ/QqMgr"), h = t("../../Util/Game_htdjd_Util"), l = t("../../Util/App_htdjd_Platform"), p = t("../../Platform/WX/WxMgr"), u = t("../../Config/App_htdjd_Config"), f = t("../../Platform/OPPO/OppoMgr"), y = t("../../Platform/VIVO/VivoMgr"), g = cc._decorator, m = g.ccclass, v = g.property, j = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.kdBtn = null;
e.boxDr = null;
e.bar = null;
e.KdReward_htdjd_Prefab = null;
e.isShowBanner = !1;
e.curClickTime = 0;
e.currRoleIndex = 0;
return e;
}
e.prototype.start = function() {
this.kdBtn.node.on(cc.Node.EventType.TOUCH_END, this.onKd_htdjd_Btn, this);
this.boxDr.playAnimation("dianji", 0);
};
e.prototype.onEnable = function() {
this.onHideBanner();
cc.game.on("kdSuccess", this.open_htdjd_Box, this);
};
e.prototype.setData = function(t) {
this.sceneData = t;
this.currRoleIndex = t.currRoleIndex;
this.curClickTime = 0;
};
e.prototype.onKd_htdjd_Btn = function() {
console.log("diandianjisd点击 onKd_htdjd_Btn");
this.bar.fillRange += .1;
this.curClickTime += 1;
this.boxDr.playAnimation("dianji", 0);
var t = h.Game_htdjd_Util.limit(.2, .5);
if (this.bar.fillRange > t && !this.isShowBanner) {
this.isShowBanner = !0;
this.onShowBanner();
}
this.curClickTime > 30 && this.open_htdjd_Box();
};
e.prototype.open_htdjd_Box = function() {
var t = this;
console.log("openBox");
this.scheduleOnce(function() {
t.boxDr.playAnimation("dakai", 0);
t.open_htdjd_reward();
}, 1);
};
e.prototype.onShowBanner = function() {
if (l.default.is_WECHAT_GAME_htdjd()) {
p.WxMgr.instance.showBannerAd(_.WuDianType.RIGHT);
u.default.isBannerWD = !0;
} else l.default.is_QQ_PLAY_htdjd() ? c.default.instance.showBannerAd(_.WuDianType.RIGHT, null, 25) : l.default.is_OPPO_GAME_htdjd() ? f.OppoMgr.instance.showBannerAd(_.WuDianType.RIGHT) : l.default.is_VIVO_GAME_htdjd() && y.default.instance.showBannerAd(_.WuDianType.RIGHT);
console.log("w为 true");
};
e.prototype.onHideBanner = function() {
l.default.is_WECHAT_GAME_htdjd() ? p.WxMgr.instance.hindBannerAd() : l.default.is_QQ_PLAY_htdjd() ? c.default.instance.hindBannerAd() : l.default.is_OPPO_GAME_htdjd() ? f.OppoMgr.instance.hindBannerAd(_.WuDianType.RIGHT) : l.default.is_VIVO_GAME_htdjd() && y.default.instance.hindBannerAd(_.WuDianType.RIGHT);
};
e.prototype.open_htdjd_reward = function() {
d.default.createPrefab_htdjd(this.KdReward_htdjd_Prefab, r.default, this.node.parent).setData(s.viewDefs.Mate, {
gold: 100,
data: this.sceneData
});
this.node.destroy();
};
e.prototype.onDisable = function() {
cc.game.off("kdSuccess", this.open_htdjd_Box, this);
this.unscheduleAllCallbacks();
};
e.prototype.update = function() {
if (this.bar.fillRange > 0) this.bar.fillRange -= .005; else if (this.bar.fillRange < 0) {
this.bar.fillRange = 0;
this.isShowBanner = !1;
this.onHideBanner();
}
};
a([ v(cc.Button) ], e.prototype, "kdBtn", void 0);
a([ v(dragonBones.ArmatureDisplay) ], e.prototype, "boxDr", void 0);
a([ v(cc.Sprite) ], e.prototype, "bar", void 0);
a([ v({
type: cc.Prefab,
displayName: "狂点结算预制体"
}) ], e.prototype, "KdReward_htdjd_Prefab", void 0);
return a([ m ], e);
}(cc.Component);
n.default = j;
cc._RF.pop();
}, {
"../../Config/App_htdjd_Config": "App_htdjd_Config",
"../../Mgr/View_htdjd_Mgr": "View_htdjd_Mgr",
"../../Platform/OPPO/OppoMgr": "OppoMgr",
"../../Platform/QQ/QqMgr": "QqMgr",
"../../Platform/VIVO/VivoMgr": "VivoMgr",
"../../Platform/WX/WxMgr": "WxMgr",
"../../Util/App_htdjd_Platform": "App_htdjd_Platform",
"../../Util/Common_htdjd": "Common_htdjd",
"../../Util/Game_htdjd_Util": "Game_htdjd_Util",
"../../Util/Wudian": "Wudian",
"./KD_htdjd_rewardView": "KD_htdjd_rewardView"
} ],
KD_htdjd_boxView: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "29135lEhI9La5I3EvNeIVfl", "KD_htdjd_boxView");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../../Util/Common_htdjd"), d = t("./KD_htdjd_rewardView"), r = t("../../Config/App_htdjd_Config"), s = t("../../Mgr/View_htdjd_Mgr"), c = t("../../Util/App_htdjd_Platform"), h = t("../../Platform/QQ/QQMiniGameAPI"), l = t("../../Platform/QQ/QqMgr"), p = t("../../Util/Game_htdjd_Util"), u = cc._decorator, f = u.ccclass, y = u.property, g = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.boxDr = null;
e.kdBtn = null;
e.bar = null;
e.KdReward_htdjd_Prefab = null;
e.curClickTime = 0;
return e;
}
e.prototype.start = function() {
this.kdBtn.node.on(cc.Node.EventType.TOUCH_END, this.on_htdjd_KdBtn, this);
this.boxDr.playAnimation("dianji", 0);
};
e.prototype.onEnable = function() {
this.curClickTime = 0;
this.onHideBanner();
cc.game.on("kdSuccess", this.open_htdjd_reward, this);
};
e.prototype.setData = function(t) {
this.sceneData = t;
};
e.prototype.on_htdjd_KdBtn = function() {
this.bar.fillRange += .1;
this.curClickTime += 1;
this.boxDr.playAnimation("dianji", 0);
var t = p.Game_htdjd_Util.limit(.2, .5);
this.bar.fillRange > t && !r.default.isTouch && this.open_htdjd_Box();
this.curClickTime > 30 && this.open_htdjd_reward();
};
e.prototype.open_htdjd_reward = function() {
this.boxDr.playAnimation("dakai", 0);
_.default.createPrefab_htdjd(this.KdReward_htdjd_Prefab, d.default, this.node.parent).setData(s.viewDefs.GameOver, {
gold: 100,
data: this.sceneData
});
this.node.destroy();
};
e.prototype.close_htdjd_box = function() {};
e.prototype.open_htdjd_Box = function() {
console.log("openBox");
if (c.default.is_QQ_PLAY_htdjd()) {
r.default.isTouch = !0;
h.default.showAppBoxAd_htdjd(function() {}, function() {
r.default.isTouch = !1;
});
}
};
e.prototype.onHideBanner = function() {
l.default.instance.hindBannerAd();
};
e.prototype.update = function() {
if (this.bar.fillRange > 0) this.bar.fillRange -= .005; else if (this.bar.fillRange < 0) {
this.bar.fillRange = 0;
this.close_htdjd_box();
}
};
e.prototype.onDisable = function() {
cc.game.off("kdSuccess", this.open_htdjd_reward, this);
this.unscheduleAllCallbacks();
};
a([ y(dragonBones.ArmatureDisplay) ], e.prototype, "boxDr", void 0);
a([ y(cc.Button) ], e.prototype, "kdBtn", void 0);
a([ y(cc.Sprite) ], e.prototype, "bar", void 0);
a([ y({
type: cc.Prefab,
displayName: "狂点结算预制体"
}) ], e.prototype, "KdReward_htdjd_Prefab", void 0);
return a([ f ], e);
}(cc.Component);
n.default = g;
cc._RF.pop();
}, {
"../../Config/App_htdjd_Config": "App_htdjd_Config",
"../../Mgr/View_htdjd_Mgr": "View_htdjd_Mgr",
"../../Platform/QQ/QQMiniGameAPI": "QQMiniGameAPI",
"../../Platform/QQ/QqMgr": "QqMgr",
"../../Util/App_htdjd_Platform": "App_htdjd_Platform",
"../../Util/Common_htdjd": "Common_htdjd",
"../../Util/Game_htdjd_Util": "Game_htdjd_Util",
"./KD_htdjd_rewardView": "KD_htdjd_rewardView"
} ],
KD_htdjd_rewardView: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "dc7672/SOFClZbHIv5yUbo2", "KD_htdjd_rewardView");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../../Util/Wudian"), d = t("../../User/User_htdjd"), r = t("../../Mgr/View_htdjd_Mgr"), s = t("../../Util/Game_htdjd_Util"), c = t("../../Util/Common_htdjd"), h = t("./KD_htdjd_BannerView"), l = t("./KD_htdjd_boxView"), p = t("../../Platform/QQ/QqMgr"), u = t("../../Platform/QQ/QQMiniGameAPI"), f = t("../../Mgr/Game_htdjd_Mgr"), y = t("../../Util/App_htdjd_Platform"), g = t("../../Platform/WX/WxMgr"), m = t("../../Platform/OPPO/OppoMgr"), v = t("../../Platform/VIVO/VivoMgr"), j = cc._decorator, b = j.ccclass, w = j.property, x = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.kdBtn = null;
e.KdBanner_htdjd_Prefab = null;
e.okBtn = null;
e.gold = null;
e.kd_box_htdjd_Prefab = null;
e.cur_htdjd_Golde = 0;
return e;
}
e.prototype.setData = function(t, e) {
this.node.getComponent(cc.Widget).updateAlignment();
console.info(e);
this.curType = t;
this.sceneData = e.data;
if (t == r.viewDefs.Mate) {
this.cur_htdjd_Golde = e.gold * Math.ceil(s.Game_htdjd_Util.limit(.5, 1.5));
this.gold.string = this.cur_htdjd_Golde.toString();
} else if (t == r.viewDefs.GameOver) {
this.cur_htdjd_Golde = e.gold * Math.ceil(s.Game_htdjd_Util.limit(.5, 1.5));
this.gold.string = this.cur_htdjd_Golde.toString();
}
};
e.prototype.start = function() {
this.kdBtn.node.on(cc.Node.EventType.TOUCH_START, this.on_htdjd_Kd, this);
this.okBtn.node.on(cc.Node.EventType.TOUCH_START, this.on_htdjd_Ok, this);
};
e.prototype.onEnable = function() {
this.onHideBanner();
y.default.is_QQ_PLAY_htdjd() && u.default.hideAppBoxAd_htdjd();
};
e.prototype.set_htdjd_reward = function() {
d.default.addMoney_htdjd(this.cur_htdjd_Golde);
f.default.getInstance_htdjd().saveGameData_htdjd();
};
e.prototype.onHideBanner = function() {
y.default.is_WECHAT_GAME_htdjd() ? g.WxMgr.instance.hindBannerAd() : y.default.is_QQ_PLAY_htdjd() ? p.default.instance.hindBannerAd() : y.default.is_OPPO_GAME_htdjd() ? m.OppoMgr.instance.hindBannerAd(_.WuDianType.RIGHT) : y.default.is_VIVO_GAME_htdjd() && v.default.instance.hindBannerAd(_.WuDianType.RIGHT);
};
e.prototype.on_htdjd_Kd = function() {
this.curType == r.viewDefs.Mate ? c.default.createPrefab_htdjd(this.KdBanner_htdjd_Prefab, h.default, this.node.parent).setData(this.sceneData) : this.curType == r.viewDefs.GameOver && c.default.createPrefab_htdjd(this.kd_box_htdjd_Prefab, l.default, this.node.parent).setData(this.sceneData);
this.node.destroy();
};
e.prototype.onDisable = function() {
this.unscheduleAllCallbacks();
y.default.is_WECHAT_GAME_htdjd() && this.onHideBanner();
};
e.prototype.go_htdjd_Over = function() {
r.default.instance().openScene(r.viewDefs.GameOver, this.sceneData);
};
e.prototype.on_htdjd_Ok = function() {
this.curType == r.viewDefs.Mate ? this.go_htdjd_Mate() : this.curType == r.viewDefs.GameOver && this.go_htdjd_Over();
};
e.prototype.go_htdjd_Mate = function() {
r.default.instance().openScene(r.viewDefs.Mate, this.sceneData);
};
a([ w(cc.Button) ], e.prototype, "kdBtn", void 0);
a([ w(cc.Prefab) ], e.prototype, "KdBanner_htdjd_Prefab", void 0);
a([ w(cc.Button) ], e.prototype, "okBtn", void 0);
a([ w(cc.Label) ], e.prototype, "gold", void 0);
a([ w(cc.Prefab) ], e.prototype, "kd_box_htdjd_Prefab", void 0);
return a([ b ], e);
}(cc.Component);
n.default = x;
cc._RF.pop();
}, {
"../../Mgr/Game_htdjd_Mgr": "Game_htdjd_Mgr",
"../../Mgr/View_htdjd_Mgr": "View_htdjd_Mgr",
"../../Platform/OPPO/OppoMgr": "OppoMgr",
"../../Platform/QQ/QQMiniGameAPI": "QQMiniGameAPI",
"../../Platform/QQ/QqMgr": "QqMgr",
"../../Platform/VIVO/VivoMgr": "VivoMgr",
"../../Platform/WX/WxMgr": "WxMgr",
"../../User/User_htdjd": "User_htdjd",
"../../Util/App_htdjd_Platform": "App_htdjd_Platform",
"../../Util/Common_htdjd": "Common_htdjd",
"../../Util/Game_htdjd_Util": "Game_htdjd_Util",
"../../Util/Wudian": "Wudian",
"./KD_htdjd_BannerView": "KD_htdjd_BannerView",
"./KD_htdjd_boxView": "KD_htdjd_boxView"
} ],
KF_View: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "35854AbgglKkbwVnS+w/xvW", "KF_View");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("./Script/Net/Net_Mgr"), d = cc._decorator, r = d.ccclass, s = d.property, c = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.label = null;
e.label1 = null;
return e;
}
e.prototype.open = function() {
this.node.active = !0;
var t = _.default.getCustomData("zq_kf_number");
if (t) {
this.label.node.active = !0;
this.label.string = "客服联系电话 : " + t;
} else this.label.node.active = !1;
var e = _.default.getCustomData("zq_kf_QQ") || "";
if (e) {
this.label1.node.active = !0;
this.label1.string = "客服联系QQ群 : " + e;
} else this.label1.node.active = !1;
};
e.prototype.close = function() {
this.node.active = !1;
};
a([ s(cc.Label) ], e.prototype, "label", void 0);
a([ s(cc.Label) ], e.prototype, "label1", void 0);
return a([ r ], e);
}(cc.Component);
n.default = c;
cc._RF.pop();
}, {
"./Script/Net/Net_Mgr": "Net_Mgr"
} ],
KRQ_htdjd_Base: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "03847xnVG5H14gGvsS1nRSU", "KRQ_htdjd_Base");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../../Util/Log_htdjd_Utils"), d = t("../../Interface/FM_htdjd_Interface"), r = t("../../Mgr/Remote_htdjd_Mgr"), s = t("../../Base/FM_htdjd_ViewBase"), c = t("../../Net/GameMatrixControl"), h = t("../../Net/Net_Mgr"), l = cc._decorator, p = l.ccclass, u = l.property, f = l.menu, y = l.disallowMultiple, g = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.labelTitle = null;
e.ad_tag_htdjd = null;
e.ad_data_htdjd = null;
e.sprIcon = null;
e.AdsStyle = c.ComponentStyle.big_export_ui;
e.AdLocationType = c.ComponentStyle.h_slider;
return e;
}
e.prototype.initView_htdjd = function() {
this.closeShow();
this.node.on("click", this.htdjd_onClickAd_htdjd, this);
};
e.prototype.addEvent_htdjd = function() {};
e.prototype.removeEvent_htdjd = function() {};
e.prototype.getData_htdjd = function() {
return this.ad_data_htdjd;
};
e.prototype.setAdTag_htdjd = function(t) {
this.ad_tag_htdjd = t;
};
e.prototype.refreshData_htdjd = function(t) {
if (this.ad_data_htdjd) {
this._initView_htdjd();
var e = this;
e.labelTitle && (e.labelTitle.string = e.ad_data_htdjd.gameName);
e.sprIcon.node.active = !1;
var n = this.ad_data_htdjd.screenList;
n = this.AdLocationType == c.ComponentStyle.big_export_ui ? this.ad_data_htdjd.screenList : this.ad_data_htdjd.iconFilletList;
if (this.ad_data_htdjd && n) {
var i = n[Math.floor(Math.random() * n.length)];
r.default.loadRemote_htdjd(i, d.handleFM_htdjd(function(n, i) {
if (!n && e.isValid && e.sprIcon) {
var o = new cc.SpriteFrame(i);
e.sprIcon.spriteFrame = o;
e.sprIcon.node.active = !0;
t && t();
}
}, this));
} else _.Log_htdjd_Utils.error_htdjd("刷新图片异常" + this.ad_data_htdjd);
}
};
e.prototype.setData_htdjd = function(t, e) {
this.ad_data_htdjd = t;
this.refreshData_htdjd(e);
};
e.prototype.setCallClickListener_htdjd = function(t) {
this._listenerClickFunction_htdjd = t;
};
e.prototype.htdjd_onClickAd_htdjd = function() {
var t = this;
console.log("点击了图片 做跳转");
c.default.navigateTo(this.AdLocationType, this.ad_data_htdjd, function() {
h.default.sendAloConttrol(t.AdsStyle);
});
this._listenerClickFunction_htdjd && d.callFM_htdjd(this._listenerClickFunction_htdjd);
};
a([ u({
tooltip: "文本Label",
type: cc.Label
}) ], e.prototype, "labelTitle", void 0);
a([ u({
tooltip: "图片icon",
type: cc.Sprite
}) ], e.prototype, "sprIcon", void 0);
a([ u({
tooltip: "广告位置",
type: cc.Enum(c.ComponentStyle)
}) ], e.prototype, "AdsStyle", void 0);
a([ u({
type: cc.Enum(c.ComponentStyle),
tooltip: "当前广告的类型\n ID_LoopAd 普通导出广告\nID_BannerAd Banner广告\nID_InsertAd 插屏广告\nID_AniAd 序列帧广告\n ID_HistoryAd 历史广告\nID_MoreGameAd 更多游戏广告"
}) ], e.prototype, "AdLocationType", void 0);
return a([ p, y(), f("FrameWork组件/KRQ_htdjd_Base") ], e);
}(s.default);
n.default = g;
cc._RF.pop();
}, {
"../../Base/FM_htdjd_ViewBase": "FM_htdjd_ViewBase",
"../../Interface/FM_htdjd_Interface": "FM_htdjd_Interface",
"../../Mgr/Remote_htdjd_Mgr": "Remote_htdjd_Mgr",
"../../Net/GameMatrixControl": "GameMatrixControl",
"../../Net/Net_Mgr": "Net_Mgr",
"../../Util/Log_htdjd_Utils": "Log_htdjd_Utils"
} ],
LoadingView: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "32636jgJA1B7owJ/wfQJZrC", "LoadingView");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../Config/App_htdjd_Config"), d = cc._decorator, r = d.ccclass, s = d.property, c = d.menu, h = d.disallowMultiple, l = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.progressBar = null;
e.aniSpriteOriginPos_htdjd = [];
e.aniSprites_htdjd = [];
return e;
}
e.prototype.onLoad = function() {
this.setProcess_htdjd(0);
};
e.prototype.setProcess_htdjd = function(t) {
t < 0 ? t = 0 : t > 1 && (t = 1);
this.progressBar.progress = t;
};
e.prototype.htdjd_playAni_htdjd = function() {
var t = this;
if (_.default.showLoadingLogo_htdjd) {
var e = function(e) {
var i = e == n.aniSprites_htdjd.length - 1, o = n.aniSprites_htdjd[e], a = n.aniSpriteOriginPos_htdjd[e];
o.opacity = 0;
o.y += a.y + 50;
cc.tween(o).delay(.08 * e).to(.45, {
y: a.y,
opacity: 255
}, {
easing: "elasticOut"
}).delay(.3).call(function() {
i && t.htdjd_playAni_htdjd();
}).start();
}, n = this;
for (i = 0; i < this.aniSprites_htdjd.length; ++i) e(i);
} else for (var i = 0; i < this.aniSprites_htdjd.length; ++i) this.aniSprites_htdjd[i].active = !1;
};
e.prototype.start = function() {};
e.prototype.getProcess_htdjd = function() {
return this.progressBar.progress;
};
a([ s({
tooltip: "进度条",
type: cc.ProgressBar
}) ], e.prototype, "progressBar", void 0);
return a([ r, h(), c("FrameWork组件/LoadingView") ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {
"../Config/App_htdjd_Config": "App_htdjd_Config"
} ],
Loading_htdjd_View: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "280c6yp8JpK9ZcRBOOviij+", "Loading_htdjd_View");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../Config/App_htdjd_Config"), d = cc._decorator, r = d.ccclass, s = d.property, c = d.menu, h = d.disallowMultiple, l = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.progressBar = null;
e.aniSpriteOriginPos_htdjd = [];
e.aniSprites_htdjd = [];
return e;
}
e.prototype.onLoad = function() {
this.setProcess_htdjd(0);
};
e.prototype.setProcess_htdjd = function(t) {
t < 0 ? t = 0 : t > 1 && (t = 1);
this.progressBar.progress = t;
};
e.prototype.start = function() {
var t = this;
this.scheduleOnce(function() {
t.htdjd_playAni_htdjd();
}, .25);
};
e.prototype.getProcess_htdjd = function() {
return this.progressBar.progress;
};
e.prototype.htdjd_playAni_htdjd = function() {
var t = this;
if (_.default.showLoadingLogo_htdjd) {
var e = function(e) {
var i = e == n.aniSprites_htdjd.length - 1, o = n.aniSprites_htdjd[e], a = n.aniSpriteOriginPos_htdjd[e];
o.opacity = 0;
o.y += a.y + 50;
cc.tween(o).delay(.08 * e).to(.45, {
y: a.y,
opacity: 255
}, {
easing: "elasticOut"
}).delay(.3).call(function() {
i && t.htdjd_playAni_htdjd();
}).start();
}, n = this;
for (i = 0; i < this.aniSprites_htdjd.length; ++i) e(i);
} else for (var i = 0; i < this.aniSprites_htdjd.length; ++i) this.aniSprites_htdjd[i].active = !1;
};
a([ s({
tooltip: "进度条",
type: cc.ProgressBar
}) ], e.prototype, "progressBar", void 0);
return a([ r, h(), c("FrameWork组件/LoadingView") ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {
"../Config/App_htdjd_Config": "App_htdjd_Config"
} ],
Log_htdjd_Utils: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "030ecwzd3BB0oWLzUfn/dol", "Log_htdjd_Utils");
var i = this && this.__spreadArrays || function() {
for (var t = 0, e = 0, n = arguments.length; e < n; e++) t += arguments[e].length;
var i = Array(t), o = 0;
for (e = 0; e < n; e++) for (var a = arguments[e], _ = 0, d = a.length; _ < d; _++, 
o++) i[o] = a[_];
return i;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Log_htdjd_Utils = n.LogLevel = void 0;
(function(t) {
t[t.CLOSE_htdjd = -1] = "CLOSE_htdjd";
t[t.ERROR_htdjd = 0] = "ERROR_htdjd";
t[t.WARN_htdjd = 1] = "WARN_htdjd";
t[t.NET_htdjd = 2] = "NET_htdjd";
t[t.INFO_htdjd = 3] = "INFO_htdjd";
t[t.DEBUG_htdjd = 4] = "DEBUG_htdjd";
})(n.LogLevel || (n.LogLevel = {}));
var o = function() {
function t() {}
t.log_htdjd = function(t) {
for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
this._level_htdjd >= 3 && console.log.apply(console, i([ t ], e));
};
t.warn_htdjd = function(t) {
for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
this._level_htdjd >= 1 && console.warn.apply(console, i([ t ], e));
};
t.setLevel_htdjd = function(t) {
this._level_htdjd = t;
};
t.info_htdjd = function(t) {
for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
this._level_htdjd >= 2 && console.info.apply(console, i([ t ], e));
};
t.error_htdjd = function(t) {
for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
this._level_htdjd >= 0 && console.error.apply(console, i([ t ], e));
};
t._level_htdjd = 4;
return t;
}();
n.Log_htdjd_Utils = o;
cc._RF.pop();
}, {} ],
Main: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "1cbf7NzsSZAopnEpDM060/i", "Main");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("./Config/App_htdjd_Config"), d = t("./Mgr/Game_htdjd_Mgr"), r = t("./View/Loading_htdjd_View"), s = t("./Util/Log_htdjd_Utils"), c = t("./User/User_htdjd"), h = t("./Net/Net_Mgr"), l = t("./Net/GameMatrixControl"), p = t("../FlyLabelHelpMgr"), u = t("../HelpMgr"), f = t("./Mgr/Bundle_htdjd_Mgr"), y = cc._decorator, g = y.ccclass, m = y.property, v = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.loadingPrefab = null;
e.version = null;
e.wxBg = null;
e.subpackageIndex_htdjd = 0;
e.loadSubpackageTotal_htdjd = .8;
e.loadHttpNetworkTotal_htdjd = 1;
e.subpackageSum_htdjd = 0;
e.needProcessNum_htdjd = 0;
e.loadingSpeed_htdjd = 0;
e.loadingState_htdjd = 0;
e.m_labelPre = null;
return e;
}
e.prototype.onLoad = function() {
u.default.instance.init();
p.default.setParentNode(!0, this.m_labelPre);
this.wxBg.active = !0;
h.default.InitCustomKey();
console.log(_.default.WX_APP_ID_htdjd, "appid wei为q前 ", _.default.AppID_htdjd);
this.version.string = "v:" + _.default.Versions_htdjd;
this.loadView_htdjd = this.loadingPrefab.getComponent(r.default);
this.subpackageSum_htdjd = _.default.subResArray_htdjd.length;
this.loadView_htdjd.setProcess_htdjd(0);
this.loginSever();
};
e.prototype.start = function() {};
e.prototype.loadSubpackage_htdjd = function() {
if (cc.sys.os != cc.sys.OS_WINDOWS) {
var t = this;
console.log("加载分包---------", this.subpackageIndex_htdjd, this.subpackageSum_htdjd);
if (this.subpackageIndex_htdjd < this.subpackageSum_htdjd) {
var e = _.default.subResArray_htdjd[this.subpackageIndex_htdjd], n = (this.subpackageIndex_htdjd + 1) / this.subpackageSum_htdjd * t.loadSubpackageTotal_htdjd;
this.setStartLoadingPerNum_htdjd(n);
f.default.loadBundleByName_htdjd(e, function(e) {
if (e) console.error(e); else {
t.subpackageIndex_htdjd = t.subpackageIndex_htdjd + 1;
t.loadSubpackage_htdjd();
}
});
} else this.finishLogin();
} else this.finishLogin();
};
e.prototype.finishLogin = function() {
this.subpackageIndex_htdjd = this.subpackageSum_htdjd;
this.initGame_htdjd();
this.setLoadingState_htdjd(3, 1);
};
e.prototype.loginSever = function() {
this.loadSubpackage_htdjd();
console.log(_.default.WX_APP_ID_htdjd, "appid wei为 ", _.default.AppID_htdjd);
l.default.getInstance().initMatix(_.default.AppID_htdjd, "https://", function() {
console.log("loginSever");
s.Log_htdjd_Utils.log_htdjd("加载 App_htdjd_Config 完成");
c.default.initiUser_htdjd(null);
});
};
e.prototype.initGame_htdjd = function() {};
e.prototype.setStartLoadingPerNum_htdjd = function(t) {
this.setLoadingState_htdjd(1, t);
};
e.prototype.update = function() {
if (this.loadView_htdjd) {
var t = this.loadView_htdjd.getProcess_htdjd(), e = t + this.loadingSpeed_htdjd;
switch (this.loadingState_htdjd) {
case 0:
break;

case 1:
if (e >= .7 * this.needProcessNum_htdjd) {
e >= this.needProcessNum_htdjd && (e = this.needProcessNum_htdjd);
this.setLoadingState_htdjd(2, this.needProcessNum_htdjd);
}
break;

case 2:
e >= this.needProcessNum_htdjd && (e = this.needProcessNum_htdjd);
break;

case 3:
if (e >= 1 && this.subpackageIndex_htdjd >= this.subpackageSum_htdjd) {
e = 1;
this.loadingState_htdjd = 4;
h.default.sendAloConttrol(1);
d.default.getInstance_htdjd().onLoadToWorldScene_htdjd();
}
}
e < 1 && (e = 1);
t != e && this.loadView_htdjd.setProcess_htdjd(e);
}
};
e.prototype.setLoadingState_htdjd = function(t, e) {
this.loadingState_htdjd = t;
this.needProcessNum_htdjd = e;
switch (t) {
case 0:
break;

case 1:
this.loadingSpeed_htdjd = 1 / 80;
break;

case 2:
this.loadingSpeed_htdjd = .005;
break;

case 3:
var n = 1 - this.loadView_htdjd.getProcess_htdjd();
this.loadingSpeed_htdjd = n > 0 ? n / 20 : .5;
}
};
a([ m({
tooltip: "加载页面",
type: cc.Node
}) ], e.prototype, "loadingPrefab", void 0);
a([ m({
tooltip: "版本号",
type: cc.Label
}) ], e.prototype, "version", void 0);
a([ m({
tooltip: "微信背景",
type: cc.Node
}) ], e.prototype, "wxBg", void 0);
a([ m(cc.Prefab) ], e.prototype, "m_labelPre", void 0);
return a([ g ], e);
}(cc.Component);
n.default = v;
cc._RF.pop();
}, {
"../FlyLabelHelpMgr": "FlyLabelHelpMgr",
"../HelpMgr": "HelpMgr",
"./Config/App_htdjd_Config": "App_htdjd_Config",
"./Mgr/Bundle_htdjd_Mgr": "Bundle_htdjd_Mgr",
"./Mgr/Game_htdjd_Mgr": "Game_htdjd_Mgr",
"./Net/GameMatrixControl": "GameMatrixControl",
"./Net/Net_Mgr": "Net_Mgr",
"./User/User_htdjd": "User_htdjd",
"./Util/Log_htdjd_Utils": "Log_htdjd_Utils",
"./View/Loading_htdjd_View": "Loading_htdjd_View"
} ],
MiniGameItem_htdjd_Prefab: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "e363aQNFfhCWYfnjbIvYDT/", "MiniGameItem_htdjd_Prefab");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../KRQ/KRQ_htdjd_Base"), d = t("../../Util/Utilit_htdjd"), r = cc._decorator, s = r.ccclass, c = r.property, h = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.sprMark = null;
return e;
}
e.prototype.setSprMarkRand_htdjd = function(t) {
t < 0 && (t = 0);
0 == d.default.random_htdjd(t) ? this.sprMark.active = !0 : this.sprMark.active = !1;
};
e.prototype.onLoad = function() {
t.prototype.onLoad.call(this);
this.sprMark.active = !1;
};
a([ c({
tooltip: "推荐星星",
type: cc.Node
}) ], e.prototype, "sprMark", void 0);
return a([ s ], e);
}(_.default);
n.default = h;
cc._RF.pop();
}, {
"../../Util/Utilit_htdjd": "Utilit_htdjd",
"../KRQ/KRQ_htdjd_Base": "KRQ_htdjd_Base"
} ],
MiniGame_htdjd_View: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "d8b6dEyiA9PvpGKhHVQfKv1", "MiniGame_htdjd_View");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("./MiniGameItem_htdjd_Prefab"), d = t("../KRQ/AD_htdjd_ListView"), r = t("../../Interface/FM_htdjd_Interface"), s = t("../../Base/FM_htdjd_ViewBase"), c = cc._decorator, h = c.ccclass, l = c.property, p = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.backBut = null;
return e;
}
e.prototype.removeEvent_htdjd = function() {};
e.prototype.initView_htdjd = function() {
var t = this;
this.scriptADListView_htdjd = this.node.getComponent(d.default);
this.scriptADListView_htdjd.setListenerRefresh_htdjd(r.handleFM_htdjd(function(t) {
for (var e = t.children, n = 0; n < e.length; n++) e[n].getComponent(_.default).setSprMarkRand_htdjd(2);
}, this));
this.backBut.on("click", function() {
t.node.active = !1;
t.emitListenerEvent_htdjd(t.EventEnumView_htdjd.CloseView_htdjd);
}, this);
};
e.prototype.addEvent_htdjd = function() {};
a([ l({
tooltip: "返回按钮",
type: cc.Node
}) ], e.prototype, "backBut", void 0);
return a([ h ], e);
}(s.default);
n.default = p;
cc._RF.pop();
}, {
"../../Base/FM_htdjd_ViewBase": "FM_htdjd_ViewBase",
"../../Interface/FM_htdjd_Interface": "FM_htdjd_Interface",
"../KRQ/AD_htdjd_ListView": "AD_htdjd_ListView",
"./MiniGameItem_htdjd_Prefab": "MiniGameItem_htdjd_Prefab"
} ],
Net_Mgr: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "35f2ezTSjtLZ7GzhoXyjsNM", "Net_Mgr");
Object.defineProperty(n, "__esModule", {
value: !0
});
var i = t("./GameMatrixControl"), o = t("../Data/Global_htdjd_Data"), a = t("../Util/Game_htdjd_Util"), _ = t("../Util/App_htdjd_Platform"), d = t("../../hidePath"), r = function() {
this.btnMoveTime = 0;
this.moveBanner = !1;
this.bannerMoveTime = 0;
this.bannerFreshTime = 1;
this.btnDelayShow = 0;
this.gameTime = 50;
this.sceneList = [];
this.adScene = [];
this.isScene = !1;
this.endBanner = !1;
this.exportBanner = !1;
this.appId = !1;
this.bannerRefTime = 1;
this.wxVersion = !0;
this.kuangdianBanner = 0;
this.indexBanner = !1;
this.startBanner = !1;
this.halfgameBanner = !1;
this.bossCount = 1;
}, s = function() {
this.sceneList = [];
this.appId = !1;
this.btnMoveTime = 0;
this.moveBanner = !1;
this.bannerMoveTime = 0;
this.gameEndBanner = !1;
this.moveBox = !1;
this.rewardVideo = !1;
this.startVideoLevel = 0;
this.btnDelayShow = 0;
this.kuangdianBanner = !1;
this.kuangdianBox = 0;
this.box = 0;
this.boxMoveTime = 0;
this.bannerRefTime = 1;
this.qqVersion = !1;
}, c = function() {
this.sceneList = [];
this.appId = !1;
this.oppoVersion = !1;
this.startVideoLevel = 0;
this.kuangdianBanner = 0;
this.gameBanner = !1;
this.nativeProReward = 0;
this.btnMoveTime = 0;
this.moveBanner = !1;
this.bannerMoveTime = 0;
this.nativeProOnline = 0;
}, h = function() {
this.sceneList = [];
this.appId = !1;
this.vivoVersion = !1;
this.startVideoLevel = 0;
this.kuangdianBanner = 0;
this.gameBanner = !1;
this.nativeProReward = 0;
this.btnMoveTime = 0;
this.moveBanner = !1;
this.bannerMoveTime = 0;
this.nativeProOnline = 0;
}, l = function() {
function t() {}
Object.defineProperty(t, "WX_SdkCustomKey", {
get: function() {
null == t.wx_customkey && (t.wx_customkey = new r());
return t.wx_customkey;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t, "QQ_SdkCustomKey", {
get: function() {
null == t.qq_customkey && (t.qq_customkey = new s());
return t.qq_customkey;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t, "OPPO_SdkCustomKey", {
get: function() {
null == t.oppo_customkey && (t.oppo_customkey = new c());
return t.oppo_customkey;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t, "VIVO_SdkCustomKey", {
get: function() {
null == t.vivo_customkey && (t.vivo_customkey = new h());
return t.vivo_customkey;
},
enumerable: !1,
configurable: !0
});
t.getData = function() {
return this.m_data;
};
t.InitCustomKey = function() {
this.getMyLocal();
};
t.countTimeStr = function(t) {
if ("0" == t) return !0;
var e = (t += "").split("-");
if (e.length <= 1) return !0;
var n = e[0].split(":"), i = e[1].split(":"), o = [], a = [], _ = function(t, e) {
for (var n = 0; n < t.length; n++) {
var i = t[n];
e[n] = "00" == i ? 0 : Number(i);
}
return e;
};
o = _(n, o);
a = _(i, a);
var d = this.toFwqDate(), r = d.getHours(), s = d.getMinutes();
return r > o[0] && r < a[0] || r > a[0] && r < o[0] || s > o[1] && s < a[1] || s > a[1] && s < o[1];
};
t.toFwqDate = function() {
return new Date();
};
t.getCustomData = function(t) {
return this.m_data ? this.m_data[t] : null;
};
t.getCustomKey = function() {
var t = this;
if (this.m_data) {
if (!this.m_switch) {
console.error("非正确时间11111");
this.initMyKey(!1);
return;
}
if (this.m_vision == this.m_data.zs_version) {
console.error("非正确时间2222222");
this.initMyKey(!1);
return;
}
d.default.getIp(this.cityList, function(e) {
if (e) if (t.countTimeStr(t.zs_wd_time)) {
console.error("非正确时间33333");
t.initMyKey(!1);
} else {
t.initMyKey(!0);
console.error("正确时间11111");
} else {
console.error("正确时间22222");
t.initMyKey(!0);
}
});
} else i.default.getInstance().mMultiPlatform.httpRequest("https://xixigame.top/6_htdld/config/op_config.json", "appid=", "application/x-www-form-urlencoded", function(e) {
console.log("自定义key列表", typeof e, e);
var n = JSON.parse(e);
console.error("自定义key列表", n);
var i = n.msg;
t.cityList = i.zs_cityList;
t.zs_wd_time = i.zs_wd_time;
t.m_switch = i.zq_switch;
t.m_data = i;
t.getCustomKey();
});
};
t.initMyKey = function(e) {
var n = this.m_data;
this.isLoad = !0;
this.m_isOpenError = e;
if (_.default.is_WECHAT_GAME_htdjd()) {
t.wx_customkey.adScene = n.adSceneList;
t.wx_customkey.isScene = t.wx_customkey.adScene.includes("" + t.wx_customkey.scene);
t.wx_customkey.isScene && i.default.getInstance().clearData();
console.error("Net_Mgr.wx_customkey.isScene ==", t.wx_customkey.isScene);
t.wx_customkey.sceneList = n.sceneList ? n.sceneList.split(",") : [];
t.wx_customkey.appId = !t.wx_customkey.sceneList.includes("" + t.wx_customkey.scene);
e || (t.wx_customkey.appId = !1);
t.wx_customkey.btnMoveTime = n.btnMoveTime - 0;
t.wx_customkey.bannerRefTime = (n.bannerRefTime || 1) - 0;
t.wx_customkey.moveBanner = 1 == parseInt(n.moveBanner) && t.wx_customkey.appId;
t.wx_customkey.bannerMoveTime = Number(n.bannerMoveTime) || 0;
t.wx_customkey.bannerFreshTime = Number(n.bannerFreshTime) || 0;
t.wx_customkey.btnDelayShow = Number(n.btnDelayShow || 0);
t.wx_customkey.gameTime = Number(n.gameTime || 50);
t.wx_customkey.endBanner = 1 == parseInt(n.endBanner) && t.wx_customkey.appId;
t.wx_customkey.exportBanner = 1 == parseInt(n.exportBanner) && t.wx_customkey.appId;
t.wx_customkey.kuangdianBanner = parseInt(n.kuangdianBanner) > 0 && t.wx_customkey.appId ? parseInt(n.kuangdianBanner) : 0;
t.wx_customkey.indexBanner = 1 == parseInt(n.indexBanner) && t.wx_customkey.appId;
t.wx_customkey.startBanner = 1 == parseInt(n.startBanner) && t.wx_customkey.appId;
t.wx_customkey.halfgameBanner = 1 == parseInt(n.halfgameBanner) && t.wx_customkey.appId;
console.info(t.wx_customkey);
} else if (_.default.is_QQ_PLAY_htdjd()) {
t.qq_customkey.qqVersion = !1;
t.qq_customkey.sceneList = n.sceneList ? n.sceneList.split(",") : [];
t.qq_customkey.appId = !t.qq_customkey.sceneList.includes("" + t.qq_customkey.scene) && t.qq_customkey.qqVersion;
t.qq_customkey.btnMoveTime = n.btnMoveTime - 0;
t.qq_customkey.bannerRefTime = (n.bannerRefTime || 1) - 0;
t.qq_customkey.moveBanner = 1 == parseInt(n.moveBanner) && t.qq_customkey.appId;
t.qq_customkey.bannerMoveTime = Number(n.bannerMoveTime) || 0;
t.qq_customkey.gameEndBanner = 1 == parseInt(n.gameEndBanner) && t.qq_customkey.appId;
t.qq_customkey.moveBox = 1 == parseInt(n.moveBox) && t.qq_customkey.appId;
t.qq_customkey.rewardVideo = 1 == parseInt(n.rewardVideo) && t.qq_customkey.appId;
t.qq_customkey.startVideoLevel = Number(n.startVideoLevel) || 0;
t.qq_customkey.btnDelayShow = Number(n.btnDelayShow || 0);
t.qq_customkey.kuangdianBox = Number(n.kuangdianBox || 0);
t.qq_customkey.kuangdianBanner = 1 == parseInt(n.kuangdianBanner) && t.qq_customkey.appId;
t.qq_customkey.box = Number(n.box || 0);
t.qq_customkey.boxMoveTime = Number(n.boxMoveTime || 0);
console.info(t.qq_customkey);
} else if (_.default.is_OPPO_GAME_htdjd()) {
t.oppo_customkey.oppoVersion = !1;
t.oppo_customkey.appId = t.oppo_customkey.oppoVersion && !t.GetIpBlocked;
t.oppo_customkey.btnMoveTime = n.btnMoveTime - 0;
t.oppo_customkey.moveBanner = 1 == parseInt(n.moveBanner) && t.oppo_customkey.appId;
t.oppo_customkey.bannerMoveTime = Number(n.bannerMoveTime) || 0;
t.oppo_customkey.gameBanner = 1 == parseInt(n.gameBanner) && t.oppo_customkey.appId;
t.oppo_customkey.startVideoLevel = Number(n.startVideoLevel) || 0;
t.oppo_customkey.kuangdianBanner = parseInt(n.kuangdianBanner) > 0 && t.oppo_customkey.appId ? parseInt(n.kuangdianBanner) : 0;
t.oppo_customkey.nativeProReward = parseInt(n.nativeProReward) || 0;
t.oppo_customkey.nativeProOnline = parseInt(n.nativeProOnline) || 0;
console.info("参数", t.oppo_customkey);
} else if (_.default.is_VIVO_GAME_htdjd()) {
t.vivo_customkey.vivoVersion = !1;
t.vivo_customkey.appId = t.vivo_customkey.vivoVersion && !t.GetIpBlocked;
t.vivo_customkey.btnMoveTime = n.btnMoveTime - 0;
t.vivo_customkey.moveBanner = 1 == parseInt(n.moveBanner) && t.vivo_customkey.appId;
t.vivo_customkey.bannerMoveTime = Number(n.bannerMoveTime) || 0;
t.vivo_customkey.gameBanner = 1 == parseInt(n.gameBanner) && t.vivo_customkey.appId;
t.vivo_customkey.startVideoLevel = Number(n.startVideoLevel) || 0;
t.vivo_customkey.kuangdianBanner = parseInt(n.kuangdianBanner) > 0 && t.vivo_customkey.appId ? parseInt(n.kuangdianBanner) : 0;
t.vivo_customkey.nativeProReward = parseInt(n.nativeProReward) || 0;
t.vivo_customkey.nativeProOnline = parseInt(n.nativeProOnline) || 0;
console.info("参数", t.vivo_customkey);
}
t.wx_customkey.gameTime = Number(n.gameTime || 50);
t.wx_customkey.bossCount = Number(n.bossCount || 1);
};
t.sendAloConttrol = function(t, e) {
void 0 === e && (e = "");
if (o.Global_htdjd_Data.platform >= 0 && o.Global_htdjd_Data.productId >= 0 && o.Global_htdjd_Data.openId) {
t -= 1;
var n = {
openId: o.Global_htdjd_Data.openId,
productId: o.Global_htdjd_Data.productId,
eventCode: "" + t,
eventName: e + "-" + this.AloName[t]
};
i.default.getInstance().mMultiPlatform.httpRequest(this.region + "reportGame/eventReport", JSON.stringify(n), "application/json", function(t) {
console.log("上报数据", t, n);
});
}
};
t.matrixPoint = function(t) {
if (o.Global_htdjd_Data.platform >= 0 && o.Global_htdjd_Data.productId >= 0 && o.Global_htdjd_Data.openId) {
var e = 0;
0 == t ? this.passTime = a.Game_htdjd_Util.getServerTime().getTime() : e = Math.round((a.Game_htdjd_Util.getServerTime().getTime() - this.passTime) / 1e3);
var n = {
pointNumber: o.Global_htdjd_Data.nowpass,
pointName: "第" + o.Global_htdjd_Data.nowpass + "关",
pointType: t,
consumeTime: e,
openId: o.Global_htdjd_Data.openId,
productId: o.Global_htdjd_Data.productId
};
console.log(n);
i.default.getInstance().mMultiPlatform.httpRequest(this.region + "business/point/game/matrixPoint", JSON.stringify(n), "application/json", function() {
console.log("关卡上报成功");
});
}
};
t.getMyLocal = function() {
var t = this;
this.m_runId || (this.m_runId = setInterval(function() {
t.isLoad || t.getCustomKey();
}, 3e3));
this.getCustomKey();
console.error("当前位置", this.nowlocal);
};
Object.defineProperty(t, "GetIpBlocked", {
get: function() {
return this.cityList.includes("" + this.nowlocal);
},
enumerable: !1,
configurable: !0
});
t.gameName = "火腿_";
t.wx_customkey = new r();
t.qq_customkey = new s();
t.oppo_customkey = new c();
t.vivo_customkey = new h();
t.m_runId = 0;
t.region = "https://";
t.m_isOpenError = !1;
t.passTime = 0;
t.nowlocal = "";
t.cityList = "";
t.m_data = null;
t.isLoad = !1;
t.m_vision = "1.0.9";
t.AloName = [ "成功加载进入游戏", "点击开始游戏", "成功完成一次游戏", "成功解锁皮肤", "点击五倍领取金币", "提升等阶", "点击两侧导出栏", "点击底部导出栏（包含匹配界面)", "点击等级结算导出", "点击金币结算导出", "点击返回主界面导出", "降低等阶" ];
return t;
}();
n.default = l;
cc._RF.pop();
}, {
"../../hidePath": "hidePath",
"../Data/Global_htdjd_Data": "Global_htdjd_Data",
"../Util/App_htdjd_Platform": "App_htdjd_Platform",
"../Util/Game_htdjd_Util": "Game_htdjd_Util",
"./GameMatrixControl": "GameMatrixControl"
} ],
NodeShowDelay: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "25743zwbflEQKez/BR7YOeT", "NodeShowDelay");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = cc._decorator, d = _.ccclass, r = _.property, s = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.delayNode = null;
e.delayTime = 3;
return e;
}
e.prototype.onEnable = function() {
this.delayNode.active = !1;
this.scheduleOnce(this.showDelay, this.delayTime);
};
e.prototype.onLoad = function() {
null == this.delayNode && console.error("请拖入延迟节点到", this.name);
};
e.prototype.onDisable = function() {};
e.prototype.showDelay = function() {
this.delayNode.active = !0;
};
a([ r(cc.Node) ], e.prototype, "delayNode", void 0);
a([ r({
type: cc.Float
}) ], e.prototype, "delayTime", void 0);
return a([ d ], e);
}(cc.Component);
n.default = s;
cc._RF.pop();
}, {} ],
OppoMgr: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "5683a2Zfj1AXIOVMP2N2okN", "OppoMgr");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.OppoMgr = void 0;
var i = t("../../Data/Global_htdjd_Data"), o = t("../../Util/Game_htdjd_Util"), a = t("../../../HelpMgr"), _ = function() {
function t() {
this.oppoName = "";
this.bannerId = "";
this.playId = "";
this.ys_banner = "";
this.ys_chapin = "";
this.chapin = "";
this.appId = "";
this.type = 0;
this.isIds = [ "1", "3", "5" ];
this.playad = null;
this.isshow = 1;
this.success = null;
this.bannerAd = null;
this.bansuccess = null;
this.isError = !1;
this.width = 0;
this.height = 0;
this.left = 0;
this.yuanshenAd = null;
this.bottomAd = null;
this.failCount = 0;
this.showType = 0;
this.timer = null;
this.isOk = !1;
this.isShowBanners = [];
this.interstitialAd = null;
this.isok = !1;
}
Object.defineProperty(t, "instance", {
get: function() {
return this.OppoMgr;
},
enumerable: !1,
configurable: !0
});
t.prototype.initData = function() {};
t.prototype.goOtherGame = function() {};
t.prototype.goOnError = function() {};
t.prototype.setLogin = function() {};
t.prototype.isShowAd = function(t) {
var e = !1;
if (i.Global_htdjd_Data.getIsOpen) {
for (var n = 0; n < this.isIds.length; n++) if (this.isIds[n] + "" == t) {
e = !0;
break;
}
return e;
}
return e;
};
t.prototype.playAd = function(t) {
console.log("准备进入播放", this.playId);
a.default.instance.show_video(t);
};
t.prototype.initBannerAd = function() {};
t.prototype.initNativeAd = function(t, e) {
void 0 === t && (t = function() {});
void 0 === e && (e = this.ys_banner);
};
t.prototype.showBannerAd = function() {};
t.prototype.hindBannerAd = function() {
if ("Windows" != cc.sys.os && this.bannerId && this.bannerAd) {
this.bannerAd.hide();
this.failCount = 0;
this.timer && clearInterval(this.timer);
this.hindYsBottom();
}
};
t.prototype.showYuanSheng = function(e) {
var n = this;
this.hindBannerAd();
console.info("showYuanSheng");
var i = function(t) {
t.cb = function(t) {
n.bottomAd = t;
};
cc.game.emit("ys_banner", t);
};
if (this.isShowBanners.length <= 0) t.instance.initNativeAd(function(t) {
cc.log("原生广告拉取", t);
t ? i(t) : e && e();
}, t.instance.ys_banner); else {
var a = this.isShowBanners[o.Game_htdjd_Util.limitInteger(0, this.isShowBanners.length - 1)];
i(a);
}
};
t.prototype.hindYsBottom = function() {
if ("Windows" != cc.sys.os && this.bottomAd) {
this.bottomAd.destroy();
this.bottomAd = null;
}
};
t.prototype.showYuanShengAd = function() {
this.showYuanSheng(function() {});
};
t.prototype.reportAdShow = function(t) {
this.yuanshenAd && this.yuanshenAd.reportAdShow({
adId: t
});
};
t.prototype.reportAdClick = function(t) {
this.yuanshenAd && this.yuanshenAd.reportAdClick({
adId: t
});
};
t.prototype.saveIsShowBanner = function(t) {
for (var e = !1, n = 0; n < this.isShowBanners.length; n++) if (this.isShowBanners[n].adId == t.adId) {
e = !0;
break;
}
console.log("保存状态", e);
e || this.isShowBanners.push(t);
console.log("广告数据", this.isShowBanners);
};
t.prototype.removeIsShowBanner = function(t) {
for (var e = 0; e < this.isShowBanners.length; e++) if (this.isShowBanners[e].adId == t) {
this.isShowBanners.splice(e);
break;
}
};
t.prototype.initInterstitialAd = function() {};
t.prototype.showInterstitialAd = function() {
if (this.isShowAd("4")) {
this.interstitialAd || this.initInterstitialAd();
this.interstitialAd.load();
}
};
t.prototype.showYuanShengCp = function() {
var e = this;
this.isShowAd("2") ? this.isShowBanners.length <= 0 ? t.instance.initNativeAd(function(t) {
console.log("原生广告拉取", t);
t || e.showInterstitialAd();
}, t.instance.ys_chapin) : this.isShowBanners[o.Game_htdjd_Util.limitInteger(0, this.isShowBanners.length - 1)] : this.showInterstitialAd();
};
t.prototype.coordinate = function() {};
t.prototype.showLoading = function() {};
t.prototype.hindLoading = function() {};
t.prototype.vibrateShort = function() {
this.vibrateLong();
};
t.prototype.vibrateLong = function() {};
t.prototype.showTip = function() {};
t.OppoMgr = new t();
return t;
}();
n.OppoMgr = _;
cc._RF.pop();
}, {
"../../../HelpMgr": "HelpMgr",
"../../Data/Global_htdjd_Data": "Global_htdjd_Data",
"../../Util/Game_htdjd_Util": "Game_htdjd_Util"
} ],
Player_htdjd: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "07565SeXFxOQbha40fjWAnF", "Player_htdjd");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.User_htdjd_Data = void 0;
var _ = t("../..//Script/Event/Event_htdjd_Defs"), d = t("../..//Script/Event/Event_htdjd_Mgr"), r = t("../..//Script/User/User_htdjd"), s = t("../..//Script/Event/EventEnum"), c = t("../..//Script/Mgr/Vibrate_htdjd_Mgr"), h = t("../floor/hp_htdjd_BuffSprite"), l = t("./arms_htdjd"), p = t("./bullet_htdjd"), u = t("./role_htdjd"), f = t("../Scene_htdjd_Play"), y = t("../../Script/Config/App_htdjd_Config"), g = t("../../Script/Net/GameMatrixControl"), m = t("../../Script/zqHelp/GSkinHelp"), v = t("../../Script/zqHelp/Tools"), j = t("../../HelpMgr"), b = function() {
this.skill_htdjd_Damage = 0;
this.name_htdjd = "";
this.currMp_htdjd = 0;
this.energy_htdjd_Grow = 0;
this.att_htdjd = 0;
this.max_htdjd_Mp = 100;
this.rank_htdjd_Level = 0;
this.curr_htdjd_Hp = 0;
this.att_htdjd_CD = 0;
this.max_htdjd_Hp = 0;
this.curr_htdjd_Index = 0;
this.index_htdjd_Pos = 0;
this.kill_htdjd_Num = 0;
this.m_wqId = 0;
this.is_htdjd_Self = !1;
this.isBoss = !1;
};
n.User_htdjd_Data = b;
var w, x = cc._decorator, k = x.ccclass, S = x.property;
(function(t) {
t[t.floor = 1] = "floor";
t[t.wall = 0] = "wall";
})(w || (w = {}));
var A = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.roleArmature = null;
e.deathAudio = [];
e.bodyNode = null;
e.hpAudio = null;
e.jumpAudio = null;
e.roleNode = null;
e.hpBarNode = null;
e.hitAudio = null;
e.hpBUffPrefab = null;
e.userName = null;
e.dead_htdjd = !1;
e.body_htdjd_Id = 0;
e.has_htdjd_Jump = !1;
e.jump_htdjd_Type = 0;
e.anim_htdjd_Dead = !1;
e.currOperate_htdjd_Type = _.TouchOperate_htdjd_Type.not;
e.startNode_htdjd_Y = 0;
e.jump_htdjd_height = 330;
e.currNodeMin_htdjd_Y = 0;
e.is_htdjd_Self = !1;
e.curr_htdjd_Index = 0;
e.test_htdjd_Index = 0;
e.acc_htdjd_Spd = 0;
e.hasJump_htdjd_State = !1;
e.game_htdjd_Type = _.Game_htdjd_Type.default;
e.isAtt_htdjd_State = !1;
e.recordCurr_htdjd_PlayName = _.playRole_htdjd_Name.standby;
e.is_htdjd_Jump = !1;
e.canFloor_htdjd_Type = 0;
e.role_htdjd_Script = null;
e.jump_htdjd_MaxY = 0;
e.X_htdjd_speed = 35;
e.can_htdjd_Wall = !1;
e.canWall_htdjd_Type = 0;
e.Y_htdjd_speed = 80;
e.can_htdjd_Floor = !1;
e.isMove = !0;
e.m_lockTime = 0;
e.m_time = 0;
return e;
}
Object.defineProperty(e.prototype, "Spd", {
get: function() {
return this.acc_htdjd_Spd;
},
set: function(t) {
this.acc_htdjd_Spd = t;
},
enumerable: !1,
configurable: !0
});
e.prototype.onDestroy = function() {
d.default.offTargetEvent_htdjd(this);
};
e.prototype.onLoad = function() {
d.default.onEvent_htdjd(s.htdjd_Event.htdjd_Game_OnLevelStart_htdjd, this.on_htdjd_GameStart, this);
d.default.onEvent_htdjd(s.htdjd_Event.htdjd_Game_OnLevelComplate_htdjd, this.on_htdjd_GameOver, this);
};
e.prototype.onLoad_htdjd_Role = function() {
var t = this.node.parent.parent.getComponent(f.default), e = t.bodyArray, n = this.curr_htdjd_Index, i = !1;
if (this.user_htdjd_Info.isBoss) e = t.bossBodyArray; else if (n >= 5) {
i = !0;
n = this.curr_htdjd_Index - 5;
}
var o = cc.instantiate(e[n]);
o.x = 0;
o.y = 0;
o.group = this.node.group;
this.roleNode.addChild(o);
var a = o.getComponent(u.default);
if (a.armsNode) {
a.armsNode.group = o.group;
a.att = this.user_htdjd_Data.att_htdjd + r.default.getPlayerLv_htdjd(this.curr_htdjd_Index);
a.name_htdjd = this.user_htdjd_Data.name_htdjd;
a.userData = this.user_htdjd_Data;
}
this.bodyNode = o;
this.role_htdjd_Script = this.bodyNode.getComponent(u.default);
this.roleArmature = o.getComponent(dragonBones.ArmatureDisplay);
i && j.default.instance.changePf(o, this.curr_htdjd_Index, this.curr_htdjd_Index, null);
"duiyou" == this.node.group ? this.bodyNode.scaleX = 1 : "diren" == this.node.group && (this.bodyNode.scaleX = -1);
this.is_htdjd_Self ? this.user_htdjd_Data.m_wqId = r.default._gameData_htdjd.userWq : this.user_htdjd_Data.m_wqId = v.default.random000(-6, 38);
if (!this.user_htdjd_Info.isBoss) {
var _ = m.default.instance.getWqSKin(this.user_htdjd_Data.m_wqId);
_ && (this.roleArmature.armature().getSlot("wuqi1").childArmature = _);
}
};
e.prototype.setUser_htdjd_Info = function(t) {
this.user_htdjd_Info = t;
};
e.prototype.initUser_htdjd_Data = function() {
var t, e = r.default.LeveNum;
t = e > 1 ? this.user_htdjd_Info.rankLevel - e == 1 ? .2 : this.user_htdjd_Info.rankLevel - e == 2 ? .3 : this.user_htdjd_Info.rankLevel - e == -1 ? -.2 : this.user_htdjd_Info.rankLevel - e == -2 ? -.3 : 0 : -.3;
this.curr_htdjd_Index = this.user_htdjd_Info.currIndex;
if (this.is_htdjd_Self) {
o = g.default.copyArray(this.roleInfo_htdjd_Json[this.curr_htdjd_Index]);
this.user_htdjd_Data.name_htdjd = "我";
var n, i = y.default.upPercent + this.curr_htdjd_Index / 10;
n = y.default.isWuShuang > 0 ? 1 + r.default.getPlayerLv_htdjd(this.curr_htdjd_Index) * i : 1.5 + r.default.getPlayerLv_htdjd(this.curr_htdjd_Index) * i;
this.user_htdjd_Data.att_htdjd = o.att * n;
this.user_htdjd_Data.max_htdjd_Hp = o.hp * n;
this.user_htdjd_Data.curr_htdjd_Hp = o.hp * n;
this.user_htdjd_Data.energy_htdjd_Grow = o.energyGrow || 20;
this.user_htdjd_Data.skill_htdjd_Damage = o.skillDamage || 300;
this.user_htdjd_Data.max_htdjd_Mp = 100;
this.user_htdjd_Data.currMp_htdjd = 0;
this.user_htdjd_Data.rank_htdjd_Level = this.user_htdjd_Info.rankLevel;
this.user_htdjd_Data.att_htdjd_CD = o.attcd;
this.user_htdjd_Data.curr_htdjd_Index = this.curr_htdjd_Index;
} else {
var o = g.default.copyArray(this.roleInfo_htdjd_Json[this.curr_htdjd_Index]), a = 1.1, _ = 1.1;
if (y.default.isWuShuang > 0) if (2 == y.default.isWuShuang) {
a = 3;
_ = 4;
} else if (4 == y.default.isWuShuang) {
a = 2.6;
_ = 3.5;
} else if (6 == y.default.isWuShuang) {
a = 2.2;
_ = 3.2;
}
a += e / 10;
_ += e / 10;
o.att *= a;
o.hp *= _;
if (this.user_htdjd_Info.isBoss) {
var d = j.default.instance.m_nBossBattle + 1;
o.att *= v.default.random000(8, 15) / 10 * d;
o.hp *= v.default.random000(40, 60) / 10 * d;
o.hp += 18e3 * d;
o.att += 10 * d;
}
this.user_htdjd_Data.name_htdjd = this.user_htdjd_Info.name;
this.user_htdjd_Data.att_htdjd = o.att + o.att * t;
this.user_htdjd_Data.max_htdjd_Hp = o.hp + o.hp * t;
this.user_htdjd_Data.curr_htdjd_Hp = o.hp + o.hp * t;
this.user_htdjd_Data.energy_htdjd_Grow = o.energyGrow || 20;
this.user_htdjd_Data.skill_htdjd_Damage = o.skillDamage || 300;
this.user_htdjd_Data.max_htdjd_Mp = 100;
this.user_htdjd_Data.currMp_htdjd = 0;
this.user_htdjd_Data.rank_htdjd_Level = this.user_htdjd_Info.rankLevel;
this.user_htdjd_Data.att_htdjd_CD = o.attcd;
this.user_htdjd_Data.curr_htdjd_Index = this.curr_htdjd_Index;
}
this.user_htdjd_Data.isBoss = this.user_htdjd_Info.isBoss;
this.user_htdjd_Data.index_htdjd_Pos = this.user_htdjd_Info.indexPos;
this.user_htdjd_Data.is_htdjd_Self = this.is_htdjd_Self;
};
e.prototype.randomRange_htdjd_Integer = function(t, e) {
var n = Math.random();
return Math.floor(n * (e - t + 1) + t);
};
e.prototype.start = function() {
this.start_htdjd_Pos = new cc.Vec2(this.node.x, this.node.y);
this.roleInfo_htdjd_Json = this.node.parent.parent.getComponent(f.default).roleInfo_htdjd_Json;
this.user_htdjd_Data = new b();
this.initUser_htdjd_Data();
this.onLoad_htdjd_Role();
this.hpBar_htdjd_Progress = this.hpBarNode.getComponent(cc.ProgressBar);
this.userName.string = this.user_htdjd_Data.name_htdjd;
this.startNode_htdjd_Y = this.node.getPosition().y;
this.currNodeMin_htdjd_Y = this.node.getPosition().y;
this.jump_htdjd_MaxY = this.node.getPosition().y + this.jump_htdjd_height;
this.roleArmature.addEventListener(dragonBones.EventObject.COMPLETE, this.animation_htdjd_EventHandler, this);
this.roleArmature.addEventListener(dragonBones.EventObject.LOOP_COMPLETE, this.animationLoop_htdjd_EventHandler, this);
this.roleArmature.addEventListener(dragonBones.EventObject.FRAME_EVENT, this.onPlayer_htdjd_Frame, this);
this.hpBarNode.y = this.bodyNode.height + this.roleNode.y - 30;
this.play_htdjd_RoleAnim(_.playRole_htdjd_Name.standby, 0);
this.update_htdjd_SceneBar();
};
e.prototype.setEnergy_htdjd_Grow = function(t) {
this.user_htdjd_Data.currMp_htdjd = t;
};
e.prototype.isEnergy_htdjd_Grow = function() {
return this.user_htdjd_Data.currMp_htdjd >= this.user_htdjd_Data.max_htdjd_Mp;
};
e.prototype.BeHitJZ_htdjd = function(t, e) {
if (this.game_htdjd_Type != _.Game_htdjd_Type.over) {
(this.is_htdjd_Self || "我" == t.user_htdjd_Data.name_htdjd) && c.default.vibrateShort_htdjd();
var n = -t.att_htdjd;
console.log("大招-----------", t.user_htdjd_Data.currMp_htdjd, e.isDZ, e);
if (e.isDZ) {
n = -(t.user_htdjd_Data.skill_htdjd_Damage + .8 * t.att_htdjd);
console.log("是大招", n, t.user_htdjd_Data.skill_htdjd_Damage, .8 * t.att_htdjd);
}
this.Hp_htdjd_Change(n, e.bulletInfo);
t.user_htdjd_Data.currMp_htdjd + t.user_htdjd_Data.energy_htdjd_Grow > t.user_htdjd_Data.max_htdjd_Mp ? t.user_htdjd_Data.currMp_htdjd = t.user_htdjd_Data.max_htdjd_Mp : t.user_htdjd_Data.currMp_htdjd += t.user_htdjd_Data.energy_htdjd_Grow;
d.default.dispatch(s.htdjd_Event.Game_UserInfoBar, t.user_htdjd_Data);
if (this.user_htdjd_Data.curr_htdjd_Hp <= 0 && !this.dead_htdjd) {
this.be_htdjd_Dead(t.user_htdjd_Data, e);
this.update_htdjd_SceneBar();
}
}
};
e.prototype.BeHitYC_htdjd = function(t, e) {
if (this.game_htdjd_Type != _.Game_htdjd_Type.over) {
(this.is_htdjd_Self || "我" == t.user_htdjd_Data.name_htdjd) && c.default.vibrateShort_htdjd();
var n = -t.att_htdjd;
console.log("大招-----------", t.user_htdjd_Data.currMp_htdjd, e.isDZ, e);
e.isDZ && (n = -(t.user_htdjd_Data.skill_htdjd_Damage + .3 * t.att_htdjd));
this.Hp_htdjd_Change(n, e.bulletInfo);
t.user_htdjd_Data.currMp_htdjd + t.user_htdjd_Data.energy_htdjd_Grow > t.user_htdjd_Data.max_htdjd_Mp ? t.user_htdjd_Data.currMp_htdjd = t.user_htdjd_Data.max_htdjd_Mp : t.user_htdjd_Data.currMp_htdjd += t.user_htdjd_Data.energy_htdjd_Grow;
d.default.dispatch(s.htdjd_Event.Game_UserInfoBar, t.user_htdjd_Data);
if (this.user_htdjd_Data.curr_htdjd_Hp <= 0 && !this.dead_htdjd) {
this.be_htdjd_Dead(t.user_htdjd_Data, e);
this.update_htdjd_SceneBar();
}
}
};
e.prototype.playBoss = function() {
var t = new Date().getTime(), e = t - this.m_lockTime;
console.log("技能等待时间", e);
if (!(e < 300)) {
this.m_lockTime = t;
if (this.user_htdjd_Info.isBoss) {
var n = new cc.Vec2(this.node.x + this.role_htdjd_Script.posX, this.node.y + this.role_htdjd_Script.posY);
this.bodyNode.scaleX < 0 && (n.x = this.node.x - this.role_htdjd_Script.posX);
var i = v.default.random000(2, 6), o = 40 * (i - 1), a = -this.bodyNode.scaleX, _ = new cc.Vec2(this.node.x + this.role_htdjd_Script.posX, this.node.y + this.role_htdjd_Script.posY);
a < 0 && (_.x = this.node.x - this.role_htdjd_Script.posX);
var r = !1;
v.default.random000(0, 100) > 10 * this.curr_htdjd_Index && (r = !0);
switch (this.curr_htdjd_Index) {
case 0:
case 3:
case 2:
for (var c = 0; c < i; c++) {
var h = .5 * Math.abs(o - 80 * c);
d.default.dispatch(s.htdjd_Event.Game_UserLaunchBullet, {
user_htdjd_Data: this.user_htdjd_Data,
bulletIndex: this.curr_htdjd_Index,
worldPos: cc.v2(n.x + (a < 0 ? -h : h), n.y + o - 80 * c),
direction: this.bodyNode.scaleX,
group: this.node.group,
isDZ: !1,
isBoss: !0
});
r && d.default.dispatch(s.htdjd_Event.Game_UserLaunchBullet, {
user_htdjd_Data: this.user_htdjd_Data,
bulletIndex: this.curr_htdjd_Index,
worldPos: cc.v2(_.x + (a < 0 ? -h : h), n.y + o - 80 * c),
direction: a,
group: this.node.group,
isDZ: !1,
isBoss: !0
});
}
break;

case 1:
for (c = 0; c < i; c++) {
d.default.dispatch(s.htdjd_Event.Game_UserLaunchBullet, {
user_htdjd_Data: this.user_htdjd_Data,
bulletIndex: this.curr_htdjd_Index,
worldPos: cc.v2(n.x, n.y + o - 80 * c),
direction: this.bodyNode.scaleX,
group: this.node.group,
isDZ: !1,
isBoss: !0
});
d.default.dispatch(s.htdjd_Event.Game_UserLaunchBullet, {
user_htdjd_Data: this.user_htdjd_Data,
bulletIndex: this.curr_htdjd_Index,
worldPos: cc.v2(_.x, n.y + o - 80 * c),
direction: a,
group: this.node.group,
isDZ: !1,
isBoss: !0
});
}
}
return !0;
}
return !1;
}
};
e.prototype.playJZBoss = function() {};
e.prototype.onPlayer_htdjd_Frame = function(t) {
if (this.game_htdjd_Type != _.Game_htdjd_Type.over) {
console.log("收到事件", t.name);
if ("YG" == t.name) {
console.error("看这里------------");
var e = 0;
1 == this.curr_htdjd_Index ? e = 0 : 3 == this.curr_htdjd_Index ? e = 1 : 6 == this.curr_htdjd_Index ? e = 2 : 8 == this.curr_htdjd_Index && (e = 3);
var n = new cc.Vec2(this.node.x + this.role_htdjd_Script.posX, this.node.y + this.role_htdjd_Script.posY);
this.bodyNode.scaleX < 0 && (n.x = this.node.x - this.role_htdjd_Script.posX);
this.is_htdjd_Self;
this.role_htdjd_Script.playAttAudio();
this.playBoss() || d.default.dispatch(s.htdjd_Event.Game_UserLaunchBullet, {
user_htdjd_Data: this.user_htdjd_Data,
bulletIndex: e,
worldPos: n,
direction: this.bodyNode.scaleX,
group: this.node.group,
isDZ: !1
});
} else if ("att2" == t.name) {
this.is_htdjd_Self;
this.role_htdjd_Script.setIsDZ(!1);
this.role_htdjd_Script.playAttAudio();
this.role_htdjd_Script.openArmsCollision();
this.playBoss();
} else if ("DZ" == t.name) {
n = new cc.Vec2(this.node.x + this.role_htdjd_Script.posX, this.node.y + this.role_htdjd_Script.posY);
this.bodyNode.scaleX < 0 && (n.x = this.node.x - this.role_htdjd_Script.posX);
this.is_htdjd_Self && console.log("自己 释放大招", this.curr_htdjd_Index);
console.log(" 释放大招 -------------", this.curr_htdjd_Index);
this.role_htdjd_Script.playAttAudio();
e = 0;
if (0 == this.curr_htdjd_Index || 2 == this.curr_htdjd_Index || 4 == this.curr_htdjd_Index || 5 == this.curr_htdjd_Index || 7 == this.curr_htdjd_Index || 9 == this.curr_htdjd_Index) this.role_htdjd_Script.setIsDZ(!0); else if (1 == this.curr_htdjd_Index || 6 == this.curr_htdjd_Index) {
e = 0;
6 == this.curr_htdjd_Index && (e = 2);
d.default.dispatch(s.htdjd_Event.Game_UserLaunchBullet, {
user_htdjd_Data: this.user_htdjd_Data,
bulletIndex: e,
worldPos: n,
direction: this.bodyNode.scaleX,
group: this.node.group,
isDZ: !0
});
} else if (3 == this.curr_htdjd_Index || 8 == this.curr_htdjd_Index) {
e = 1;
8 == this.curr_htdjd_Index && (e = 3);
d.default.dispatch(s.htdjd_Event.Game_UserLaunchBullet, {
user_htdjd_Data: this.user_htdjd_Data,
bulletIndex: e,
worldPos: cc.v2(n.x, n.y + 20),
direction: this.bodyNode.scaleX,
group: this.node.group,
isDZ: !0
});
d.default.dispatch(s.htdjd_Event.Game_UserLaunchBullet, {
user_htdjd_Data: this.user_htdjd_Data,
bulletIndex: e,
worldPos: cc.v2(n.x + 30, n.y),
direction: this.bodyNode.scaleX,
group: this.node.group,
isDZ: !0
});
d.default.dispatch(s.htdjd_Event.Game_UserLaunchBullet, {
user_htdjd_Data: this.user_htdjd_Data,
bulletIndex: e,
worldPos: cc.v2(n.x, n.y - 20),
direction: this.bodyNode.scaleX,
group: this.node.group,
isDZ: !0
});
}
}
}
};
e.prototype.Hp_htdjd_Change = function(t, e) {
if (e) this.is_htdjd_Self ? t = r.default.getMyHurt(t, e.m_wqId) : e.is_htdjd_Self && (t = r.default.getAtkTo(t)); else {
t > 0 && (t = .3 * this.user_htdjd_Data.max_htdjd_Hp + t);
console.error("吃血包回血", t);
}
console.log("伤害", t, this.curr_htdjd_Index);
if (this.game_htdjd_Type != _.Game_htdjd_Type.over && !this.dead_htdjd) {
this.user_htdjd_Data.curr_htdjd_Hp += t;
this.user_htdjd_Data.curr_htdjd_Hp < 0 && (this.user_htdjd_Data.curr_htdjd_Hp = 0);
this.user_htdjd_Data.curr_htdjd_Hp > this.user_htdjd_Data.max_htdjd_Hp && (this.user_htdjd_Data.curr_htdjd_Hp = this.user_htdjd_Data.max_htdjd_Hp);
var n = this.hpBarNode.getChildByName("bar");
if (this.hpBar_htdjd_Progress.progress <= 0 && this.user_htdjd_Data.curr_htdjd_Hp <= 0) n.width = 0; else {
cc.tween(this.hpBar_htdjd_Progress).to(.3, {
progress: this.user_htdjd_Data.curr_htdjd_Hp / this.user_htdjd_Data.max_htdjd_Hp
}).start();
n.width = this.user_htdjd_Data.curr_htdjd_Hp / this.user_htdjd_Data.max_htdjd_Hp * 100;
this.update_htdjd_SceneBar();
}
}
};
e.prototype.onCollisionEnter = function(t, e) {
if (-1 != t.node.name.indexOf("floor") || -1 != t.node.name.indexOf("wall")) if (t.tag == w.floor) {
this.can_htdjd_Floor = !0;
this.jump_htdjd_MaxY = this.node.y + this.jump_htdjd_height;
} else if (t.tag == w.wall) {
this.can_htdjd_Wall = !0;
t.node.x - e.node.x > 0 ? this.canWall_htdjd_Type = 1 : t.node.x - e.node.x < 0 ? this.canWall_htdjd_Type = 0 : this.canWall_htdjd_Type = 2;
}
if (!this.dead_htdjd && this.game_htdjd_Type != _.Game_htdjd_Type.over) if (-1 != t.node.name.indexOf("bullet")) {
cc.log("被子弹打中 ", this.bodyNode.name);
this.currOperate_htdjd_Type, _.TouchOperate_htdjd_Type.not;
this.play_htdjd_RoleAnim(_.playRole_htdjd_Name.attacked, 1);
var n = t.node.getComponent(p.default), i = {
group: t.node.group,
name: n.user_htdjd_Data.name_htdjd,
isSelf: this.is_htdjd_Self,
index: n.user_htdjd_Data.curr_htdjd_Index,
deadName: this.user_htdjd_Data.name_htdjd,
isDZ: n.isDZ_htdjd,
bulletInfo: n.user_htdjd_Data
};
this.BeHitYC_htdjd(n, i);
cc.audioEngine.play(this.hitAudio, !1, 1);
} else if (-1 != t.node.name.indexOf("wuqi")) {
cc.log("被玩家砍中 ", this.bodyNode.name);
this.play_htdjd_RoleAnim(_.playRole_htdjd_Name.attacked, 1);
this.currOperate_htdjd_Type, _.TouchOperate_htdjd_Type.not;
var o = t.node.getComponent(l.default);
i = {
group: t.node.group,
isSelf: this.is_htdjd_Self,
deadName: this.user_htdjd_Data.name_htdjd,
index: o.user_htdjd_Data.curr_htdjd_Index,
name: o.user_htdjd_Data.name_htdjd,
isDZ: o.is_htdjd_DZ,
bulletInfo: o.user_htdjd_Data
};
this.BeHitJZ_htdjd(o, i);
cc.audioEngine.play(this.hitAudio, !1, 1);
} else if (-1 != t.node.name.indexOf("hpBuff")) {
if (this.user_htdjd_Data.curr_htdjd_Hp == this.user_htdjd_Data.max_htdjd_Hp) return;
var a = t.node.getComponent(h.default);
if (0 == t.node.active) return;
t.node.active = !1;
this.Hp_htdjd_Change(a.add_htdjd_Hp, null);
cc.audioEngine.play(this.hpAudio, !1, 1);
this.roleNode.addChild(cc.instantiate(this.hpBUffPrefab));
}
};
e.prototype.onCollisionExit = function(t) {
if (-1 != t.node.name.indexOf("floor") || -1 != t.node.name.indexOf("wall")) if (t.tag == w.floor) {
this.can_htdjd_Floor = !1;
this.jump_htdjd_MaxY = this.startNode_htdjd_Y + this.jump_htdjd_height;
} else t.tag == w.wall && (this.can_htdjd_Wall = !1);
};
e.prototype.onCollisionStay = function(t, e) {
if ((-1 != t.node.name.indexOf("floor") || -1 != t.node.name.indexOf("wall")) && t.tag == w.wall) {
this.can_htdjd_Wall = !0;
t.node.x - e.node.x > 0 ? this.canWall_htdjd_Type = 1 : t.node.x - e.node.x < 0 ? this.canWall_htdjd_Type = 0 : this.canWall_htdjd_Type = 2;
}
};
e.prototype.onUser_htdjd_Revive = function() {
if (this.game_htdjd_Type != _.Game_htdjd_Type.over && null != this.user_htdjd_Data && null != this.user_htdjd_Data.max_htdjd_Hp) {
this.user_htdjd_Data.curr_htdjd_Hp = this.user_htdjd_Data.max_htdjd_Hp;
this.hpBar_htdjd_Progress.progress = 1;
this.hpBarNode.getChildByName("bar").width = 100;
this.hpBarNode.active = !0;
this.dead_htdjd = !1;
this.node.x = this.start_htdjd_Pos.x;
this.node.y = this.start_htdjd_Pos.y;
this.play_htdjd_RoleAnim(_.playRole_htdjd_Name.standby, 0);
this.node.active = !0;
this.update_htdjd_SceneBar();
}
};
e.prototype.onUpdate = function(t) {
if (this.has_htdjd_Jump) {
if (0 == this.jump_htdjd_Type) {
this.node.y = this.node.y + 10 * t * this.Y_htdjd_speed;
if (this.node.y >= this.jump_htdjd_MaxY) {
this.node.y = this.jump_htdjd_MaxY;
this.jump_htdjd_Type = 1;
}
} else if (1 == this.jump_htdjd_Type) if (this.can_htdjd_Floor) {
this.has_htdjd_Jump = !1;
this.jump_htdjd_Type = 0;
this.onJump_htdjd_End();
} else {
this.node.y = this.node.y - 10 * t * this.Y_htdjd_speed;
if (this.node.y < this.startNode_htdjd_Y) {
this.node.y = this.startNode_htdjd_Y;
this.has_htdjd_Jump = !1;
this.jump_htdjd_Type = 0;
this.onJump_htdjd_End();
}
}
} else this.can_htdjd_Floor || (this.node.y = this.node.y - 10 * t * this.Y_htdjd_speed);
this.node.y < this.startNode_htdjd_Y && (this.node.y = this.startNode_htdjd_Y);
this.isAtt_htdjd_State && !this.has_htdjd_Jump || this.dead_htdjd || this.game_htdjd_Type != _.Game_htdjd_Type.over && this.isMove && (this.currOperate_htdjd_Type == _.TouchOperate_htdjd_Type.left ? (!this.can_htdjd_Wall || 0 != this.canWall_htdjd_Type && 2 != this.canWall_htdjd_Type) && (this.node.x = this.node.x - 10 * t * this.X_htdjd_speed) : this.currOperate_htdjd_Type == _.TouchOperate_htdjd_Type.right && (!this.can_htdjd_Wall || 1 != this.canWall_htdjd_Type && 2 != this.canWall_htdjd_Type) && (this.node.x = this.node.x + 10 * t * this.X_htdjd_speed));
};
e.prototype.onJump_htdjd_End = function() {
this.game_htdjd_Type != _.Game_htdjd_Type.over && (this.currOperate_htdjd_Type == _.TouchOperate_htdjd_Type.left || this.currOperate_htdjd_Type == _.TouchOperate_htdjd_Type.right ? this.play_htdjd_RoleAnim(_.playRole_htdjd_Name.walk, 0) : (this.currOperate_htdjd_Type, 
_.TouchOperate_htdjd_Type.not, this.play_htdjd_RoleAnim(_.playRole_htdjd_Name.standby, 0)));
};
e.prototype.onPlayer_htdjd_Operate = function(t) {
if (this.game_htdjd_Type != _.Game_htdjd_Type.over && this.game_htdjd_Type == _.Game_htdjd_Type.game) if (this.isAtt_htdjd_State) t == _.TouchOperate_htdjd_Type.not && this.scheduleOnce(function() {
this.currOperateType = _.TouchOperate_htdjd_Type.not;
this.play_htdjd_RoleAnim(_.playRole_htdjd_Name.standby, 0);
}, .5); else if (!this.dead_htdjd) {
var e = this.currOperate_htdjd_Type;
this.currOperate_htdjd_Type = t;
if (this.currOperate_htdjd_Type == _.TouchOperate_htdjd_Type.not) this.has_htdjd_Jump || e == t || this.play_htdjd_RoleAnim(_.playRole_htdjd_Name.standby, 0); else if (this.currOperate_htdjd_Type == _.TouchOperate_htdjd_Type.left) {
this.bodyNode.scaleX = -1;
this.has_htdjd_Jump || e == t || this.play_htdjd_RoleAnim(_.playRole_htdjd_Name.walk, 0);
} else if (this.currOperate_htdjd_Type == _.TouchOperate_htdjd_Type.right) {
this.bodyNode.scaleX = 1;
this.has_htdjd_Jump || e == t || this.play_htdjd_RoleAnim(_.playRole_htdjd_Name.walk, 0);
} else if (this.currOperate_htdjd_Type == _.TouchOperate_htdjd_Type.up && !this.has_htdjd_Jump) {
this.has_htdjd_Jump = !0;
this.play_htdjd_RoleAnim(_.playRole_htdjd_Name.jump, 1);
cc.audioEngine.play(this.jumpAudio, !1, 1);
}
}
};
e.prototype.animationLoop_htdjd_EventHandler = function() {
this.is_htdjd_Self;
};
e.prototype.animation_htdjd_EventHandler = function(t) {
if (t.type === dragonBones.EventObject.COMPLETE) if (t.animationState.name === _.playRole_htdjd_Name.attack || t.animationState.name === _.playRole_htdjd_Name.jumpattack || t.animationState.name === _.playRole_htdjd_Name.daZhao) {
this.isAtt_htdjd_State = !1;
this.play_htdjd_RoleAnim(this.recordCurr_htdjd_PlayName, 0);
this.role_htdjd_Script.hiedArmsCollision();
} else t.animationState.name === _.playRole_htdjd_Name.attacked && this.play_htdjd_RoleAnim(_.playRole_htdjd_Name.attacked, 0);
};
e.prototype.RoketTarget_htdjd_Me = function() {};
e.prototype.play_htdjd_RoleAnim = function(t, e) {
var n = this;
if (_.playRole_htdjd_Name.attacked == t) {
this.bodyNode.color = cc.color(183, 11, 28);
var i = cc.delayTime(.2), o = cc.callFunc(function() {
n.bodyNode.color = cc.color(255, 255, 255);
});
this.bodyNode.runAction(cc.sequence(i, o));
return !1;
}
t != _.playRole_htdjd_Name.attack && t != _.playRole_htdjd_Name.daZhao && t != _.playRole_htdjd_Name.lose && (this.recordCurr_htdjd_PlayName = t);
if (this.isAtt_htdjd_State) {
console.log("this.isAttState");
return !1;
}
this.is_htdjd_Self && t == _.playRole_htdjd_Name.attack && this.has_htdjd_Jump ? this.roleArmature.playAnimation(_.playRole_htdjd_Name.jumpattack, e) : this.roleArmature.playAnimation(t, e);
this.roleArmature.timeScale = 1;
t != _.playRole_htdjd_Name.attack && t != _.playRole_htdjd_Name.daZhao || (this.isAtt_htdjd_State = !0);
t == _.playRole_htdjd_Name.daZhao && this.update_htdjd_SceneBar();
this.role_htdjd_Script.hiedArmsCollision();
return !0;
};
e.prototype.stop_htdjd_RoleAnim = function() {
this.roleArmature.timeScale = 0;
};
e.prototype.on_htdjd_GameOver = function() {
this.game_htdjd_Type = _.Game_htdjd_Type.over;
};
e.prototype.speed_htdjd_Normal = function() {
this.acc_htdjd_Spd = 0;
};
e.prototype.on_htdjd_GameStart = function() {
this.game_htdjd_Type = _.Game_htdjd_Type.game;
};
e.prototype.be_htdjd_Dead = function(t, e) {
if (!this.dead_htdjd) {
this.dead_htdjd = !0;
t.kill_htdjd_Num += 1;
d.default.dispatch(s.htdjd_Event.Game_UserInfoBar, t);
d.default.dispatch(s.htdjd_Event.Game_UserKillInfo, e);
this.playDeadAnim_htdjd_New();
}
};
e.prototype.play_htdjd_DeadAnim = function() {
this.node.active = !1;
cc.audioEngine.play(this.deathAudio[this.randomRange_htdjd_Integer(0, this.deathAudio.length - 1)], !1, 1);
var t = {
x: this.node.x,
y: this.node.y,
type: this.curr_htdjd_Index
};
d.default.dispatch(s.htdjd_Event.Role_Dead_Ani, t);
};
e.prototype.playDeadAnim_htdjd_New = function() {
this.hpBarNode.active = !1;
this.play_htdjd_RoleAnim(_.playRole_htdjd_Name.lose, 1);
cc.audioEngine.play(this.deathAudio[this.randomRange_htdjd_Integer(0, this.deathAudio.length - 1)], !1, 1);
console.log("播放死亡", this.curr_htdjd_Index);
};
e.prototype.Speed_htdjd_Change = function(t, e) {
this.acc_htdjd_Spd = t;
this.scheduleOnce(this.speed_htdjd_Normal, e);
};
e.prototype.dead_htdjd_AnimOver = function() {
this.anim_htdjd_Dead = !0;
};
e.prototype.update_htdjd_SceneBar = function() {
d.default.dispatch(s.htdjd_Event.Game_UserInfoBar, this.user_htdjd_Data);
};
e.prototype.update = function(t) {
this.m_time += t;
if (this.m_time >= .3) {
this.m_time = 0;
this.update_htdjd_SceneBar();
}
};
a([ S({
type: dragonBones.ArmatureDisplay,
displayName: "龙骨动画"
}) ], e.prototype, "roleArmature", void 0);
a([ S({
type: [ cc.AudioClip ],
displayName: "死亡音效"
}) ], e.prototype, "deathAudio", void 0);
a([ S(cc.Node) ], e.prototype, "bodyNode", void 0);
a([ S({
type: cc.AudioClip,
displayName: "吃血包音效"
}) ], e.prototype, "hpAudio", void 0);
a([ S({
type: cc.AudioClip,
displayName: "跳跃音效"
}) ], e.prototype, "jumpAudio", void 0);
a([ S({
type: cc.Node,
displayName: "角色生成点"
}) ], e.prototype, "roleNode", void 0);
a([ S(cc.Node) ], e.prototype, "hpBarNode", void 0);
a([ S({
type: cc.AudioClip,
displayName: "受伤音效"
}) ], e.prototype, "hitAudio", void 0);
a([ S({
type: cc.Prefab,
displayName: "加血效果"
}) ], e.prototype, "hpBUffPrefab", void 0);
a([ S({
type: cc.Label,
displayName: "玩家名字"
}) ], e.prototype, "userName", void 0);
return a([ k ], e);
}(cc.Component);
n.default = A;
cc._RF.pop();
}, {
"../..//Script/Event/EventEnum": "EventEnum",
"../..//Script/Event/Event_htdjd_Defs": "Event_htdjd_Defs",
"../..//Script/Event/Event_htdjd_Mgr": "Event_htdjd_Mgr",
"../..//Script/Mgr/Vibrate_htdjd_Mgr": "Vibrate_htdjd_Mgr",
"../..//Script/User/User_htdjd": "User_htdjd",
"../../HelpMgr": "HelpMgr",
"../../Script/Config/App_htdjd_Config": "App_htdjd_Config",
"../../Script/Net/GameMatrixControl": "GameMatrixControl",
"../../Script/zqHelp/GSkinHelp": "GSkinHelp",
"../../Script/zqHelp/Tools": "Tools",
"../Scene_htdjd_Play": "Scene_htdjd_Play",
"../floor/hp_htdjd_BuffSprite": "hp_htdjd_BuffSprite",
"./arms_htdjd": "arms_htdjd",
"./bullet_htdjd": "bullet_htdjd",
"./role_htdjd": "role_htdjd"
} ],
QQMiniGameAPI: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "64594ZhjFRNHL0w6pBh+Gid", "QQMiniGameAPI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var i = t("../../Util/App_htdjd_Platform"), o = t("../../Config/App_htdjd_Config"), a = t("../../Config/AppSwitchConfig"), _ = t("../../Mgr/wudian_htdjd_Mgr"), d = function() {
function t() {}
t.Login_htdjd = function(t) {
i.default.is_QQ_PLAY_htdjd() && window.qq.login({
success: function(e) {
if (e.code) {
var n = e.code;
t(n);
console.log("登陆成功,获取到code : " + n);
}
}
});
};
t.onRewardedVideoAdLoad_htdjd = function() {
console.log("激励视频 广告加载完成");
};
t.onRewardedVideoAdError_htdjd = function(e) {
console.log("激励视频 广告加载失败" + e);
t._onRewardedVideoAdFailed_htdjd && t._onRewardedVideoAdFailed_htdjd();
};
t.onRewardedVideoAdClose_htdjd = function(e) {
if (e && e.isEnded || null == e) {
console.log("激励视频 已完整观看");
t._onRewardedVideoAdClose_htdjd && t._onRewardedVideoAdClose_htdjd(!0);
} else {
console.log("激励视频 未完整观看");
t._onRewardedVideoAdClose_htdjd && t._onRewardedVideoAdClose_htdjd(!1);
}
};
t.regRewardedVideoAdEvent_htdjd = function(e) {
e.onLoad(t.onRewardedVideoAdLoad_htdjd);
e.onError(t.onRewardedVideoAdError_htdjd);
e.onClose(t.onRewardedVideoAdClose_htdjd);
t._isRegRewardedVideoAdEvent_htdjd = !0;
};
t.showRewardedVideoAd_htdjd = function() {};
t.navigateToMiniProgram_htdjd = function(t, e, n, o, a) {
if (i.default.is_QQ_PLAY_htdjd()) {
console.log("跳转游戏： " + t);
window.qq.navigateToMiniProgram({
appId: t,
path: e,
extraData: {
foo: "bar"
},
envVersion: "release",
success: function(t) {
n && n(t);
},
fail: function(t) {
o && o(t);
},
complete: function(t) {
a && a(t);
}
});
}
};
t.share_htdjd = function(e, n, o) {
var a = this;
if (i.default.is_QQ_PLAY_htdjd()) {
t._onShow_htdjd = function() {
window.qq.offShow(t._onShow_htdjd);
t._onShow_htdjd = null;
Date.now(), a._lastShareTime_htdjd;
e && (Date.now() - a._lastShareTime_htdjd > 2e3 ? e(!0) : e(!1));
};
window.qq.onShow(t._onShow_htdjd);
t._lastShareTime_htdjd = Date.now();
window.qq.shareAppMessage({
title: n,
imageUrl: o
});
}
};
t.showInterstitialAd_htdjd = function(t, e) {
if (i.default.is_QQ_PLAY_htdjd()) {
var n = window.qq.createInterstitialAd({
adUnitId: o.default.qq_InsAdUnitId_htdjd
}), a = function() {
console.log("插屏广告 加载完成");
n.show().catch(function(t) {
console.log("插屏广告 显示失败 ：" + t);
n.offLoad(a);
n.offError(_);
n.offClose(d);
n.destroy();
e && e();
});
};
n.onLoad(a);
var _ = function(t) {
console.log("插屏广告 加载失败" + t);
n.offLoad(a);
n.offError(_);
n.offClose(d);
n.destroy();
e && e();
};
n.onError(_);
var d = function() {
console.log("插屏广告 关闭");
n.offLoad(a);
n.offError(_);
n.offClose(d);
n.destroy();
t && t();
};
n.onClose(d);
} else t();
};
t.LoadAppBoxAd_htdjd = function(t, e) {
if (i.default.is_QQ_PLAY_htdjd()) {
this.mAppboxAd_htdjd = window.qq.createAppBox({
adUnitId: o.default.qq_AppBoxId_htdjd
});
this.mAppboxAd_htdjd.load().then(function() {
console.log("盒子广告 加载完成");
});
this.mAppboxAd_htdjd.onError(function(t) {
console.log("盒子广告 加载失败" + t);
if (e) {
e();
e = null;
}
});
this.onBoxAdClose_htdjd = function() {
console.log("盒子广告 关闭");
if (t) {
t();
t = null;
}
};
this.mAppboxAd_htdjd.onClose(this.onBoxAdClose_htdjd);
} else if (t) {
t();
t = null;
}
};
t.showAppBoxAd_htdjd = function(e, n) {
if (i.default.is_QQ_PLAY_htdjd()) if (t.mAppboxAd_htdjd) {
console.log("显示盒子广告");
t.mAppboxAd_htdjd.offClose(t.onBoxAdClose_htdjd);
t.onBoxAdClose_htdjd = function() {
console.log("盒子广告 关闭");
if (n) {
n();
n = null;
}
};
t.mAppboxAd_htdjd.onClose(t.onBoxAdClose_htdjd);
t.mAppboxAd_htdjd.show().catch(function(t) {
console.log("盒子广告 显示失败 ：" + t);
if (e) {
e();
e = null;
}
});
} else t.LoadAppBoxAd_htdjd(n, e);
};
t.hideAppBoxAd_htdjd = function() {
if (i.default.is_QQ_PLAY_htdjd()) {
o.default.isBannerWD = !1;
t.mAppboxAd_htdjd && t.mAppboxAd_htdjd.destroy();
t.mAppboxAd_htdjd = null;
setTimeout(function() {
t.showAppBoxAd_htdjd(function() {}, function() {});
}, 200);
}
};
t.getLaunchOptionsSync_htdjd = function() {
if (i.default.is_QQ_PLAY_htdjd()) {
var t = window.qq.getLaunchOptionsSync();
console.log("场景值 " + t.scene);
var e = JSON.stringify(t.query);
console.log("Query参数 " + e);
var n = t.query.key;
console.log("Query参数：key " + n);
console.log("ShareTicket " + t.shareTicket);
console.log("ReferrerInfo.appId " + t.referrerInfo.appId);
console.log("ReferrerInfo.extraData " + t.referrerInfo.extraData);
return t;
}
return {
scene: 1001,
query: "",
shareTicket: "",
appId: "",
extraData: ""
};
};
t.SetShareMenu_htdjd = function(t, e, n, o, a) {
if (i.default.is_QQ_PLAY_htdjd()) {
console.log("小游戏设置转发按钮");
window.qq.showShareMenu({
withShareTicket: !1,
success: n,
fail: o,
complete: a
});
window.qq.onShareAppMessage(function() {
return {
title: t,
imageUrl: e
};
});
}
};
t.tryShowWXCrazyClick_htdjd = function() {
t.getLaunchOptionsSync_htdjd().scene;
for (var e = a.default.getInstance_htdjd().getAppSwitchData_htdjd().wudianSceneList_htdjd, n = 0; n < e.length; ++n) e[n];
_.default.htdjd_GetIpBlocked_htdjd(), a.default.getInstance_htdjd().getAppSwitchData_htdjd().wudian_htdjd;
return !1;
};
t.tryShowWXCrazyClick2_htdjd = function() {
t.getLaunchOptionsSync_htdjd().scene;
for (var e = a.default.getInstance_htdjd().getAppSwitchData_htdjd().wudianSceneList_htdjd, n = 0; n < e.length; ++n) e[n];
_.default.htdjd_GetIpBlocked_htdjd(), a.default.getInstance_htdjd().getAppSwitchData_htdjd().wudian_htdjd;
return !1;
};
t.showAppBlockAd_htdjd = function(e, n, a) {
void 0 === n && (n = 150);
void 0 === a && (a = "landscape");
if (i.default.is_QQ_PLAY_htdjd() && window.qq.createBlockAd && !t.isAppBlockAdLoading_htdjd) {
t.isAppBlockAdLoading_htdjd = !0;
if (isNaN(t.screenWidth_htdjd)) try {
var _ = window.qq.getSystemInfoSync();
t.screenWidth_htdjd = _.windowWidth;
t.screenHeight_htdjd = _.windowHeight;
t.pixelRatio_htdjd = _.pixelRatio;
t.isIos_htdjd = "ios" == _.platform;
t.skdVersion_htdjd = _.SDKVersion;
t.screenWidth_htdjd *= t.isIos_htdjd ? 1 : t.pixelRatio_htdjd;
t.screenHeight_htdjd *= t.isIos_htdjd ? 1 : t.pixelRatio_htdjd;
console.log("getSystemInfoSync ==> ", _.SDKVersion);
} catch (t) {
e && e();
return;
}
for (var d = t.skdVersion_htdjd.split(".").map(function(t) {
return parseInt(t);
}), r = t.supportSDKVersion_htdjd.split(".").map(function(t) {
return parseInt(t);
}), s = !0, c = 0; c < d.length; c++) if (d[c] < r[c]) {
s = !1;
break;
}
if (s) {
console.log("QQMiniGameAPI.showAppBlockAd ", n);
t.destroyAppBlockAd_htdjd();
t.onFail = e;
var h = t.isIos_htdjd ? 32 / t.pixelRatio_htdjd : 32, l = Math.max(h, n / (t.isIos_htdjd ? t.pixelRatio_htdjd : 1)), p = t.screenWidth_htdjd;
p = h;
t.mAppBlockAd_htdjd = window.qq.createBlockAd({
adUnitId: o.default.qq_blockAdArray_htdjd[Math.floor(Math.random() * o.default.qq_blockAdArray_htdjd.length)],
style: {
left: p,
top: l
},
size: t.AppBlockSize_htdjd,
orientation: a
});
t.mAppBlockAd_htdjd.onError(t.appBlockADError_htdjd);
t.mAppBlockAd_htdjd.show().catch(function(t) {
console.log("积木广告 显示失败 ：" + JSON.stringify(t));
e && e();
});
t.isAppBlockAdLoading_htdjd = !1;
}
}
};
t.appBlockADResize_htdjd = function(e) {
if (t.mAppBlockAd_htdjd.style) {
var n = e.width, i = (e.height, (t.screenWidth_htdjd - n) / 2);
t.mAppBlockAd_htdjd.style.left = i;
}
};
t.appBlockADError_htdjd = function(e) {
console.log("积木广告  加载失败 ", JSON.stringify(e));
t.onFail && t.onFail();
};
t.destroyAppBlockAd_htdjd = function() {
if (i.default.is_QQ_PLAY_htdjd() && t.mAppBlockAd_htdjd) {
console.log("QQMiniGameAPI.destroyAppBlockAd");
t.mAppBlockAd_htdjd.offResize(t.appBlockADResize_htdjd);
t.mAppBlockAd_htdjd.offError(t.appBlockADError_htdjd);
t.mAppBlockAd_htdjd.hide();
t.mAppBlockAd_htdjd.destroy();
t.mAppBlockAd_htdjd = null;
}
};
t.AppBlockStyle_htdjd = {
left: 120,
top: 200
};
t.AppBlockSize_htdjd = 5;
t.AppBlockOrientation_htdjd = "landscape";
t._isRegRewardedVideoAdEvent_htdjd = !1;
t._onRewardedVideoAdFailed_htdjd = null;
t._onRewardedVideoAdClose_htdjd = null;
t._onShow_htdjd = null;
t._lastShareTime_htdjd = 0;
t.mAppboxAd_htdjd = null;
t.onBoxAdClose_htdjd = null;
t.mAppBlockAd_htdjd = null;
t.screenWidth_htdjd = NaN;
t.isAppBlockAdLoading_htdjd = !1;
t.supportSDKVersion_htdjd = "1.15.0";
return t;
}();
n.default = d;
cc._RF.pop();
}, {
"../../Config/AppSwitchConfig": "AppSwitchConfig",
"../../Config/App_htdjd_Config": "App_htdjd_Config",
"../../Mgr/wudian_htdjd_Mgr": "wudian_htdjd_Mgr",
"../../Util/App_htdjd_Platform": "App_htdjd_Platform"
} ],
QqMgr: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "735e8foGVdMHbl9Kvz5pcE4", "QqMgr");
Object.defineProperty(n, "__esModule", {
value: !0
});
var i = t("../../Util/App_htdjd_Platform"), o = t("../../Config/App_htdjd_Config"), a = t("../../Net/Net_Mgr"), _ = function() {
function t() {
this.boxad = "";
this.appbox = null;
this.blockid = "";
this.blockad = null;
this.clickNum = 0;
this.bannerAd = null;
this.startpoint = null;
this.bannerSize = {};
this.isShow = !1;
this.isError = !1;
this.styleTop = 0;
this.topOffset = 0;
this.loadOk = !1;
this.fail = null;
this.playad30 = null;
this.playad15 = null;
this.playid30 = "";
this.success = null;
this.showTime = 0;
this.totalTime = 0;
this.showType = 0;
if (i.default.is_QQ_PLAY_htdjd()) {
this.qq = window.qq;
this.adid = o.default.qq_bannerAdUnitId_htdjd;
this.playid30 = o.default.qq_adUnitId_htdjd;
this.boxad = o.default.qq_AppBoxId_htdjd;
}
}
Object.defineProperty(t, "instance", {
get: function() {
return this.qqmgr;
},
enumerable: !1,
configurable: !0
});
t.prototype.createBoxAd = function() {
console.error("createBoxAd");
this.appbox = this.qq.createAppBox({
adUnitId: this.boxad
});
console.log(!!this.appbox);
this.appbox.load().then(function() {
console.log("qq createBoxAd load suc");
});
};
t.prototype.showBoxAd = function() {
console.log("qq createBoxAd load");
this.appbox.show();
};
t.prototype.hideBoxAd = function() {
var t = this;
o.default.isBannerWD = !1;
this.appbox && this.appbox.destroy();
this.appbox = null;
setTimeout(function() {
t.createBoxAd();
}, 200);
};
t.prototype.showBlockAd = function(t) {
var e = this, n = new cc.Vec2(0, 0);
if (t) {
t.y = cc.winSize.height - t.y;
n = this.coordinate(t, 1);
}
if (this.blockad) {
t && (this.blockad.style = {
left: n.x,
top: n.y
});
this.blockad.show();
} else {
var i = {
left: n.x,
top: n.y
}, o = {
adUnitId: this.blockid,
size: 3,
orientation: "vertical",
style: i
};
this.blockad = this.qq.createBlockAd(o);
console.error("积木广告", this.blockad);
this.blockad.onLoad(function() {
e.blockad.show();
});
this.blockad.onResize(function(t) {
console.log("积木广告缩放的宽高", t, e.blockad);
});
}
};
t.prototype.hideBlockAd = function() {
this.blockad && this.blockad.hide();
};
t.prototype.initTouch = function() {
console.error("qq initTouch ===>>", o.default.isTouch);
this.qq.onShow(this.onShow.bind(this));
this.qq.onHide(this.onHide.bind(this));
this.onTouch();
};
t.prototype.onClickStart = function() {
console.log("onClickStart");
};
t.prototype.onClickCancel = function() {
console.log("onClickCancel");
};
t.prototype.onTouch = function() {
console.log("注册onTouch");
this.qq.onTouchEnd(this.onClickBanner.bind(this));
};
t.prototype.offTouch = function() {
console.log("取消offTouch");
this.qq.offTouchEnd(this.onClickBanner.bind(this));
};
t.prototype.onShow = function() {
console.error("qq onShow ===>>", o.default.isTouch);
if (o.default.isTouch) {
console.error("qq onShow成功 ===>>");
cc.game.emit("kdSuccess");
o.default.isTouch = !1;
}
};
t.prototype.onHide = function() {
console.log(" 离开隐藏 界面");
};
t.prototype.onClickBanner = function(t) {
console.info("onClickBannerTouchEvent", o.default.isBannerWD);
if (o.default.isBannerWD) {
var e = t.changedTouches[0].clientX, n = t.changedTouches[0].clientY, i = this.qq.getSystemInfoSync().screenWidth - this.bannerSize.width, a = this.qq.getSystemInfoSync().screenHeight - this.bannerSize.height - 30;
console.log("clickX = " + e + ", minX = " + i);
console.log("clickY = " + n + ", minY = " + a);
if (!(n < a || e < i)) {
console.log("onClickBanner");
cc.game.emit("kdSuccess");
o.default.isBannerWD = !1;
}
}
};
t.prototype.initBannerAd = function() {};
t.prototype.showBannerAd = function(t, e, n) {
void 0 === t && (t = 1);
void 0 === e && (e = null);
void 0 === n && (n = 0);
if (!cc.sys.isBrowser) {
if (this.isError) return;
this.fail = e;
console.info("showBannerAd ", this.loadOk, !!this.bannerAd);
this.topOffset = n;
this.showType = t;
if (!this.bannerAd || !this.loadOk && cc.sys.os != cc.sys.OS_IOS) return this.isShow = !0;
this.isShow = !1;
this.onShowResize(t);
this.bannerAd.show(function(t) {
console.log("bannerAd.show((res");
console.info(t);
});
o.default.isBannerWD = !0;
}
};
t.prototype.hindBannerAd = function() {
if (!cc.sys.isBrowser) {
if (this.isError || 0 == this.showType) return;
this.bannerAd.hide();
console.info("hindBannerAd");
o.default.isBannerWD = !1;
this.onShowResize(0);
}
};
t.prototype.initplayAd = function() {};
t.prototype.playAd = function(t, e) {
void 0 === e && (e = 1);
this.success = t;
this.playad30.show();
};
t.prototype.onShowResize = function(t) {
console.log("showType ==", t);
this.showType = t;
var e = this.coordinate(new cc.Vec2(this.bannerSize.width, this.bannerSize.height), 2), n = this.coordinate(new cc.Vec2(cc.winSize.width / 2 - e.x / 2, e.y), 1), i = this.coordinate(new cc.Vec2(cc.winSize.width - e.x - (672 - e.x) / 2, e.y), 1), o = this.coordinate(new cc.Vec2(cc.winSize.width - e.x, e.y), 1), a = 0;
1 == t && (a = n.x);
2 == t && (a = i.x);
3 == t && (a = i.x);
4 == t && (a = o.x);
var _ = 3 == t ? this.styleTop - 30 : this.styleTop - this.topOffset;
if (this.bannerAd) {
this.bannerAd.style.top = _;
this.bannerAd.style.left = a;
}
console.error("onShowResize =showType=", t, "left = ", Math.round(a), "top = ", Math.round(_));
if (t > 0) return this.showTime = Date.now();
this.checkShowTime();
};
t.prototype.checkShowTime = function() {
var t = this;
this.totalTime += Date.now() - this.showTime;
console.log("tTime : ", this.totalTime);
if (!(this.totalTime < 1e3 * a.default.QQ_SdkCustomKey.bannerRefTime)) {
this.totalTime = 0;
this.bannerAd && this.bannerAd.destroy();
this.loadOk = !1;
this.bannerAd = null;
setTimeout(function() {
t.initBannerAd();
}, 200);
}
};
t.prototype.coordinate = function(t, e) {
var n = this.qq.getSystemInfoSync(), i = cc.winSize.width / n.screenWidth, o = cc.winSize.height / n.screenHeight, a = 0, _ = 0;
if (1 == e) {
a = t.x / i;
_ = t.y / o;
} else {
a = t.x * i;
_ = t.y * o;
}
return new cc.Vec2(a, _);
};
t.qqmgr = new t();
return t;
}();
n.default = _;
cc._RF.pop();
}, {
"../../Config/App_htdjd_Config": "App_htdjd_Config",
"../../Net/Net_Mgr": "Net_Mgr",
"../../Util/App_htdjd_Platform": "App_htdjd_Platform"
} ],
Remote_htdjd_Mgr: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "fb8ednCAwpACpPZDcMTgAI6", "Remote_htdjd_Mgr");
Object.defineProperty(n, "__esModule", {
value: !0
});
var i = t("../Interface/FM_htdjd_Interface"), o = function() {
function t() {}
t.loadRemote_htdjd = function(t, e) {
var n = this;
this.remoteArrayTexture_htdjd[t] ? i.callFM_htdjd(e, null, this.remoteArrayTexture_htdjd[t]) : cc.assetManager.loadRemote(t, function(o, a) {
if (o) i.callFM_htdjd(e, o, null); else {
if (!n.remoteArrayTexture_htdjd[t]) {
n.remoteArrayTexture_htdjd[t] = a;
n.remoteArrayTexture_htdjd[t].addRef();
}
i.callFM_htdjd(e, null, n.remoteArrayTexture_htdjd[t]);
}
});
};
t.removeAllRemote_htdjd = function() {
for (var t in this.remoteArrayTexture_htdjd) this.remoteArrayTexture_htdjd[t].decRef();
this.remoteArrayTexture_htdjd = {};
};
t.remoteArrayTexture_htdjd = {};
return t;
}();
n.default = o;
cc._RF.pop();
}, {
"../Interface/FM_htdjd_Interface": "FM_htdjd_Interface"
} ],
Revive_htdjd_Layer: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "2d8b3giUzNIrJHPYC1sbavk", "Revive_htdjd_Layer");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../HelpMgr"), d = t("../Script/Config/App_htdjd_Config"), r = cc._decorator, s = r.ccclass, c = r.property, h = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.timeNode = null;
e.time_htdjd_Sprite = null;
e.time_htdjd_SpriteFrame = [];
e.m_sdFh = null;
e.currIndex_htdjd = 3;
e.COUNTDOWN_TIME_htdjd = 3;
return e;
}
e.prototype.start = function() {};
e.prototype.onLoad = function() {
this.schedule(this.update_htdjd_Tiem, 1, cc.macro.REPEAT_FOREVER, 0);
};
e.prototype.onStart = function(t) {
this.currIndex_htdjd = this.COUNTDOWN_TIME_htdjd;
this.complete_htdjd = t;
this.timeNode.getComponent(cc.Sprite).spriteFrame = this.time_htdjd_SpriteFrame[this.currIndex_htdjd];
this.time_htdjd_Sprite.fillRange = (this.COUNTDOWN_TIME_htdjd - this.currIndex_htdjd) / this.COUNTDOWN_TIME_htdjd;
this.node.active = !0;
this.m_sdFh.active = !1;
cc.log(" 当前分组为  ", this.node.group, this.currIndex_htdjd);
};
e.prototype.downSDFH = function() {
_.default.instance.gameResum();
this.node.active = !1;
this.complete_htdjd && this.complete_htdjd();
};
e.prototype.update_htdjd_Tiem = function() {
if (-10 != this.currIndex_htdjd) {
this.currIndex_htdjd--;
console.log("刷新复活时间--------", this.currIndex_htdjd);
if (this.currIndex_htdjd < 0) {
this.currIndex_htdjd = -10;
console.log("是否显示复活插屏广告  000000000", this.m_sdFh.active);
0 === d.default.isWuShuang && (this.m_sdFh.active = _.default.instance.isSHowFHXP());
console.log("是否显示复活插屏广告  11111111111", this.m_sdFh.active);
if (this.m_sdFh.active) {
_.default.instance.showYSGG(500);
_.default.instance.gamePause();
return;
}
this.downSDFH();
} else {
this.timeNode.getComponent(cc.Sprite).spriteFrame = this.time_htdjd_SpriteFrame[this.currIndex_htdjd];
this.time_htdjd_Sprite.fillRange = (this.COUNTDOWN_TIME_htdjd - this.currIndex_htdjd) / this.COUNTDOWN_TIME_htdjd;
}
}
};
e.prototype.onDestroy = function() {
this.unschedule(this.update_htdjd_Tiem);
};
a([ c({
type: cc.Node,
displayName: "时间节点"
}) ], e.prototype, "timeNode", void 0);
a([ c({
type: cc.Sprite,
displayName: "倒计时环形"
}) ], e.prototype, "time_htdjd_Sprite", void 0);
a([ c({
type: [ cc.SpriteFrame ],
displayName: "倒计时"
}) ], e.prototype, "time_htdjd_SpriteFrame", void 0);
a([ c({
type: cc.Node,
displayName: "手动复活"
}) ], e.prototype, "m_sdFh", void 0);
return a([ s ], e);
}(cc.Component);
n.default = h;
cc._RF.pop();
}, {
"../HelpMgr": "HelpMgr",
"../Script/Config/App_htdjd_Config": "App_htdjd_Config"
} ],
Scene_htdjd_Hall: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "266aaGgJKlHepD3lplYpgTD", "Scene_htdjd_Hall");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../Script/Net/Net_Mgr"), d = t("../Script/Event/Event_htdjd_Defs"), r = t("./UI_htdjd_Level"), s = t("../Script/Util/App_htdjd_Platform"), c = t("../Script/Platform/QQ/QQMiniGameAPI"), h = t("../Script/Config/App_htdjd_Config"), l = t("../Script/Util/Common_htdjd"), p = t("../Script/View/kuangdian/KD_htdjd_BannerView"), u = t("../Script/Util/Wudian"), f = t("../Script/Platform/QQ/QqMgr"), y = t("../Script/Platform/OPPO/OppoMgr"), g = t("../Script/Platform/WX/WxMgr"), m = t("../Script/View/oppo/oppoRewardView"), v = t("../Script/Event/EventEnum"), j = t("../Script/Event/Event_htdjd_Mgr"), b = t("../Script/Mgr/Game_htdjd_Mgr"), w = t("../Script/Mgr/View_htdjd_Mgr"), x = t("../Script/User/User_htdjd"), k = t("../Script/View/Base_htdjd_View"), S = t("../../syyx_sdk/configs/syyx_sdk_enum"), A = t("../../syyx_sdk/syyx_sdk_api"), I = t("../HelpMgr"), O = t("../Script/zqHelp/GSkinHelp"), P = t("../Script/zqui/ADmgr"), M = t("../FlyLabelHelpMgr"), C = t("../KF_View"), N = cc._decorator, T = N.ccclass, E = N.property, D = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.buttonAudio = null;
e.nodeOneGame = null;
e.missionRole = null;
e.startAudio = null;
e.gameAudio = null;
e.moreGameBtn = null;
e.hpLabel = null;
e.attLabel = null;
e.rankNode = null;
e.m_addzm = null;
e.hpbar = null;
e.oppoRewardPrefab = null;
e.skeNode = null;
e.KdBannerPrefab = null;
e.attbar = null;
e.kdNode = null;
e.btnBuy = null;
e.btnGameStart = null;
e.btnVoide = null;
e.lbGold = null;
e.ws_htdjd_Node = null;
e.up_htdjd_Node = null;
e.jiesuo_htdjd_Node = null;
e.up_htdjd_btn = null;
e.m_ui_unit_icon = null;
e.roleArray = [];
e.m_kfNode = null;
e._isTouch_htdjd_StartBtn = !1;
e._isLook_htdjd_Voide = !1;
e.m_time = 1;
e.isvideo = !1;
return e;
}
n = e;
e.prototype.onLoad = function() {
n.m_self = this;
this.moreGameBtn.active = !1;
this.ws_htdjd_Node.active = !1;
this.up_htdjd_Node.active = !1;
this.jiesuo_htdjd_Node.active = !1;
j.default.onEvent_htdjd(v.htdjd_Event.htdjd_Game_OnUserMoneyChange_htdjd, this.gold_htdjd_Change, this);
A.syyx_sdk_api.hide_native_inner_interstitial();
A.syyx_sdk_api.hide_game_banner_box(S.e_ad_id.game_banner_box);
A.syyx_sdk_api.send_hall_event(S.e_hall_stat_type.enter_hall);
this.m_addzm.active = !1;
this.scheduleOnce(function() {
x.default.isSignIn() || this.onOpenSignIn();
}, .8);
if (I.default.instance.m_hallCount >= 1) {
I.default.instance.show_new_products();
if ("undefined" != typeof qg) {
var t = qg, e = this;
this.schedule(function() {
t.hasShortcutInstalled({
success: function(t) {
e.m_addzm.active = 1 != t;
}
});
}, 2);
}
}
I.default.instance.m_hallCount++;
var i = x.default._gameData_htdjd.m_boxData.getOpenBoxData();
if (-1 != I.default.instance.m_nBossBattle) {
x.default._gameData_htdjd.m_boss.battleWin();
I.default.instance.m_nBossBattle = -1;
}
i && i.length > 0 && P.default.instance.openBox(i);
M.default.reStart();
};
e.prototype.on_htdjd_wushuang = function() {
this.ws_htdjd_Node.active = !0;
};
e.prototype.on_htdjdWuQi = function() {
P.default.instance.openUIWuQi(this.curr_htdjd_RoleIndex);
};
e.prototype.open_kf = function() {
this.m_kfNode.open();
};
e.prototype.onOpenSignIn = function() {
P.default.instance.openSignIn();
};
e.prototype.onOpenBoss = function() {
P.default.instance.openBoss();
};
e.prototype.on_htdjd_up = function() {
this.up_htdjd_Node.active = !0;
j.default.emitEvent_htdjd(v.htdjd_Event.curClickHallPlayer, this.curr_htdjd_RoleIndex);
};
e.prototype.on_htdjd_jiesuo = function() {
this.jiesuo_htdjd_Node.active = !0;
j.default.emitEvent_htdjd(v.htdjd_Event.jiesuo_htdjd_Node, this.curr_htdjd_RoleIndex);
};
e.prototype.onEnable = function() {
j.default.onEvent_htdjd(v.htdjd_Event.WuShuang_Index, this.open_htdjd_WXBT, this);
j.default.onEvent_htdjd(v.htdjd_Event.UPDATA_ROLE, this.updateSelectRole, this);
j.default.onEvent_htdjd(v.htdjd_Event.UPDATE_WQ_SKIN, this.switchWqSkin, this);
j.default.onEvent_htdjd(v.htdjd_Event.on_htdjd_GameStart, this.onJSGame, this);
};
e.prototype.onDisable = function() {
j.default.offEvent_htdjd(v.htdjd_Event.WuShuang_Index, this.open_htdjd_WXBT, this);
j.default.offEvent_htdjd(v.htdjd_Event.UPDATA_ROLE, this.updateSelectRole, this);
j.default.offEvent_htdjd(v.htdjd_Event.UPDATE_WQ_SKIN, this.switchWqSkin, this);
j.default.onEvent_htdjd(v.htdjd_Event.on_htdjd_GameStart, this.onJSGame, this);
};
e.prototype.updateSelectRole = function() {
this.show_htdjd_SelectRole(this.curr_htdjd_RoleIndex);
};
e.prototype.open_htdjd_WXBT = function(t) {
void 0 === t && (t = 4);
n.m_play_dzfcz_Num = t;
console.log("无双模式开始游戏", n.m_play_dzfcz_Num);
w.default.instance().openScene(w.viewDefs.Mate, {
mission: this.missionRole,
currRoleIndex: this.curr_htdjd_RoleIndex,
play_dzfcz_Num: t
});
};
e.prototype.updateAds = function() {
if (I.default.instance.m_adFinish) {
I.default.instance.show_banner_native();
this.moreGameBtn.active = !0;
I.default.instance.show_leftmoregame();
console.log("加载op广告 --------");
I.default.instance.show_unit(this.nodeOneGame);
I.default.instance.load_inner_interstitial_native();
} else this.m_time = 1;
};
e.prototype.update = function(t) {
if (-1 != this.m_time) {
this.m_time -= t;
if (this.m_time <= 0) {
this.m_time = -1;
this.updateAds();
}
}
};
e.prototype.openOppoMoreGame = function() {
console.error("创建九宫格 box ---------");
I.default.instance.show_portalbox();
};
e.prototype.addShowDes = function() {
A.syyx_sdk_api.send_other_event(2, 10020);
this.updateShowDesBtn();
};
e.prototype.start = function() {
this.initUI();
this.curr_htdjd_RoleIndex = x.default.getUsedItem();
this.lbGold.string = x.default.monery + "";
this.show_htdjd_SelectRole(x.default.getUsedItem());
this.set_htdjd_RankInfo();
this.isvideo = !1;
};
e.prototype.set_htdjd_RankInfo = function() {
this.rankNode.set_htdjd_RankInfo(x.default.LeveNum);
};
e.prototype.updateShowDesBtn = function() {
this.m_addzm.active = !1;
if (!(I.default.instance.m_hallCount <= 0) && "undefined" != typeof qg) {
var t = qg;
this.m_addzm.active = !0;
var e = this;
t.hasShortcutInstalled({
success: function(n) {
0 == n ? t.installShortcut({
success: function(e) {
console.log("installShortcut  success", e);
setTimeout(function() {
t.hasShortcutInstalled({
success: function(t) {
1 == t ? A.syyx_sdk_api.send_other_event(3, 10020) : A.syyx_sdk_api.send_other_event(4, 10020);
}
});
}, 5e3);
},
fail: function() {
console.log("installShortcut  fail");
A.syyx_sdk_api.send_other_event(4, 10020);
},
complete: function() {
console.log("installShortcut  complete");
}
}) : e.m_addzm.active = !1;
console.log("看这---------  hasShortcutInstalled  success ", n);
},
fail: function() {
console.log("hasShortcutInstalled  fail");
},
complete: function() {
console.log("hasShortcutInstalled  complete");
}
});
}
};
e.prototype.initUI = function() {
s.default.is_WECHAT_GAME_htdjd() || (s.default.is_QQ_PLAY_htdjd() ? f.default.instance.showBannerAd(u.WuDianType.CENTER) : s.default.is_OPPO_GAME_htdjd() || s.default.is_VIVO_GAME_htdjd() && console.log("initUI"));
};
e.prototype.open_htdjd_OppoReward = function() {
l.default.createPrefab_htdjd(this.oppoRewardPrefab, m.default, this.kdNode);
};
e.prototype.init_htdjd_RoleArrayInfo = function() {
for (var t = 0; t < this.roleArray.length; t++) {
var e = this.missionRole.json.roleinfo[t], n = this.roleArray[t], i = n.getChildByName("byNode"), o = i.getChildByName("byCount"), a = n.getChildByName("dui"), _ = n.getChildByName("lock");
o.getComponent(cc.Label).string = e.buygold;
var d = x.default.ItemIsUnlocked(t) || this._isLook_htdjd_Voide;
this._isLook_htdjd_Voide ? a.active = t == this.curr_htdjd_RoleIndex : a.active = x.default.getUsedItem() == t;
_.active = !d;
i.active = !d;
}
};
e.prototype.openScene = function() {
cc.audioEngine.stopAll();
cc.audioEngine.playMusic(this.gameAudio, !0);
this._isTouch_htdjd_StartBtn = !1;
};
e.prototype.show_htdjd_SelectRole = function(t) {
var e = this;
x.default.ItemIsUnlocked(t) && x.default.setUsedItem(t);
this.updateShow(t);
this.skeNode.removeAllChildren();
I.default.instance.loadPlayer(t, function(t, n) {
e.updateLgAnim(t, n);
}, this.skeNode);
};
e.prototype.switchWqSkin = function(t) {
var e = O.default.instance.getWqSKin(t);
e && (this._armatureDisplay.armature().getSlot("wuqi1").childArmature = e);
};
e.prototype.switchSkin = function() {
var t = dragonBones.CCFactory.getInstance(), e = t.getArmatureData("Armature").defaultSkin;
t.replaceSkin(this._armatureDisplay.armature(), e, !0);
};
e.prototype.updateLgAnim = function(t, e) {
console.log("创建 龙骨动画 成功", t, e);
t.x = 0;
t.y = 50;
t.scaleX = 1.8;
t.scaleY = 1.8;
var n = t.getComponent(dragonBones.ArmatureDisplay);
this._armatureDisplay = n;
if (n) {
n.playAnimation(d.playRole_htdjd_Name.attack, 1);
cc.tween(n.node).to(1, {}).call(function() {
n.playAnimation(d.playRole_htdjd_Name.walk, 0);
}).start();
console.log("改变武器皮肤", x.default._gameData_htdjd.userWq);
this.switchWqSkin(x.default._gameData_htdjd.userWq);
}
};
e.prototype.updateShow = function(t) {
var e = this.missionRole.json.roleinfo[t];
this.attLabel.string = e.att;
this.hpLabel.string = e.hp;
var n = h.default.upPercent + t / 10;
this.hpbar.progress = e.hp * (1 + x.default.getPlayerLv_htdjd(t) * n) / h.default.maxHP;
this.attbar.progress = e.att * (1 + x.default.getPlayerLv_htdjd(t) * n) / h.default.maxAtt;
this.updata_htdjd_Btn(t);
this.init_htdjd_RoleArrayInfo();
};
e.prototype.updata_htdjd_Btn = function(t) {
this.btnGameStart.active = !1;
this.btnBuy.node.active = !1;
this.btnBuy.interactable = !1;
this.btnVoide.active = !1;
this.up_htdjd_btn.active = !1;
var e = x.default.ItemIsUnlocked(t) || this._isLook_htdjd_Voide, n = this.missionRole.json.roleinfo[t];
if (e) {
this.btnGameStart.active = !0;
this.up_htdjd_btn.active = !0;
} else {
this.btnBuy.node.active = !0;
if (n.buygold <= x.default.monery) {
this.btnBuy.interactable = !0;
this.btnVoide.active = !0;
} else this.btnVoide.active = !0;
}
};
e.prototype.on_htdjd_SelectRole = function(t, e) {
cc.audioEngine.play(this.buttonAudio, !1, 1);
cc.log("on  ", e);
this.updata_htdjd_Btn(e);
this.curr_htdjd_RoleIndex = e;
x.default.ItemIsUnlocked(e);
this.show_htdjd_SelectRole(e);
};
e.prototype.onBuyBtn = function() {
cc.audioEngine.play(this.buttonAudio, !1, 1);
cc.log("onBuyBtn");
var t = this.missionRole.json.roleinfo[this.curr_htdjd_RoleIndex];
x.default.subMoney_htdjd(t.buygold);
x.default.unlockItem_htdjd(this.curr_htdjd_RoleIndex);
this.show_htdjd_SelectRole(this.curr_htdjd_RoleIndex);
this.init_htdjd_RoleArrayInfo();
b.default.getInstance_htdjd().saveGameData_htdjd();
};
e.prototype.onJSGame = function(t) {
t && (this.curr_htdjd_RoleIndex = t);
this.on_htdjd_GameStart();
};
e.prototype.on_htdjd_GameStart = function() {
if (_.default.getData()) {
cc.audioEngine.play(this.startAudio, !1, 1);
console.log("onGameStart", h.default.curRound, this._isTouch_htdjd_StartBtn);
if (!this._isTouch_htdjd_StartBtn) {
this._isTouch_htdjd_StartBtn = !0;
A.syyx_sdk_api.send_hall_event("2");
this.open_htdjd_KuangDian_OPPO();
}
}
};
e.prototype.onViewBtn = function(t, e) {
switch (e) {
case "start":
w.default.instance().openScene(w.viewDefs.Game, {
mission: x.default.LeveNum
});
break;

case "match":
w.default.instance().openScene(w.viewDefs.GameOver, {
win: !1
});
}
};
e.prototype.onVoideBtn = function() {
var t = this;
cc.audioEngine.play(this.buttonAudio, !1, 1);
cc.log("onVoideBtn");
var e = function() {
t._isLook_htdjd_Voide = !0;
t.show_htdjd_SelectRole(t.curr_htdjd_RoleIndex);
t.init_htdjd_RoleArrayInfo();
b.default.getInstance_htdjd().saveGameData_htdjd();
t.isvideo = !0;
t.on_htdjd_GameStart();
};
this.isvideo = !1;
cc.audioEngine.pauseAll();
y.OppoMgr.instance.playAd(function(n) {
cc.audioEngine.playMusic(t.gameAudio, !0);
n && e();
});
};
e.prototype.gold_htdjd_Change = function() {
this.lbGold.string = x.default.monery.toString();
};
e.prototype.onMoreGame = function() {
s.default.is_QQ_PLAY_htdjd() && c.default.showAppBoxAd_htdjd(function() {}, function() {
h.default.isTouch = !1;
});
};
e.prototype.onWxMoreGame = function() {};
e.prototype.openYSZC = function() {
console.log("打开隐私");
I.default.instance.show_proxy_webview();
};
e.prototype.downBtnOpenGame = function() {
I.default.instance.m_hallCount >= 2 ? this.on_htdjd_jiesuo() : this.on_htdjd_GameStart();
};
e.prototype.open_htdjd_MateScene = function() {
w.default.instance().openScene(w.viewDefs.Mate, {
mission: this.missionRole,
currRoleIndex: this.curr_htdjd_RoleIndex
});
};
e.prototype.open_htdjd_KuangDian_QQ = function() {
f.default.instance.isError ? this.open_htdjd_MateScene() : _.default.QQ_SdkCustomKey.kuangdianBanner ? l.default.createPrefab_htdjd(this.KdBannerPrefab, p.default, this.kdNode).setData({
mission: this.missionRole,
currRoleIndex: this.curr_htdjd_RoleIndex
}) : this.open_htdjd_MateScene();
};
e.prototype.open_htdjd_KuangDian_WX = function() {
g.WxMgr.instance.isError ? this.open_htdjd_MateScene() : 0 == _.default.WX_SdkCustomKey.kuangdianBanner ? this.open_htdjd_MateScene() : _.default.WX_SdkCustomKey.kuangdianBanner <= h.default.curRound ? l.default.createPrefab_htdjd(this.KdBannerPrefab, p.default, this.kdNode).setData({
mission: this.missionRole,
currRoleIndex: this.curr_htdjd_RoleIndex
}) : this.open_htdjd_MateScene();
};
e.prototype.open_htdjd_KuangDian_OPPO = function() {
cc.audioEngine.stopAll();
cc.audioEngine.playMusic(this.gameAudio, !0);
0 == _.default.OPPO_SdkCustomKey.kuangdianBanner ? this.open_htdjd_MateScene() : _.default.OPPO_SdkCustomKey.kuangdianBanner <= h.default.curRound ? l.default.createPrefab_htdjd(this.KdBannerPrefab, p.default, this.kdNode).setData({
mission: this.missionRole,
currRoleIndex: this.curr_htdjd_RoleIndex
}) : this.open_htdjd_MateScene();
};
e.prototype.open_htdjd_KuangDian_VIVO = function() {
cc.audioEngine.stopAll();
cc.audioEngine.playMusic(this.gameAudio, !0);
0 == _.default.VIVO_SdkCustomKey.kuangdianBanner ? this.open_htdjd_MateScene() : _.default.VIVO_SdkCustomKey.kuangdianBanner <= h.default.curRound ? l.default.createPrefab_htdjd(this.KdBannerPrefab, p.default, this.kdNode).setData({
mission: this.missionRole,
currRoleIndex: this.curr_htdjd_RoleIndex
}) : this.open_htdjd_MateScene();
};
e.prototype.onDestroy = function() {
cc.audioEngine.stopAll();
j.default.offTargetEvent_htdjd(this);
};
var n;
e.m_self = null;
a([ E({
type: cc.AudioClip,
displayName: "按钮音效"
}) ], e.prototype, "buttonAudio", void 0);
a([ E({
type: cc.Node,
displayName: "单个游戏位置"
}) ], e.prototype, "nodeOneGame", void 0);
a([ E({
type: cc.JsonAsset,
displayName: "角色配置"
}) ], e.prototype, "missionRole", void 0);
a([ E({
type: cc.AudioClip,
displayName: "开始游戏音效"
}) ], e.prototype, "startAudio", void 0);
a([ E({
type: cc.AudioClip
}) ], e.prototype, "gameAudio", void 0);
a([ E({
type: cc.Node,
displayName: "更多好玩"
}) ], e.prototype, "moreGameBtn", void 0);
a([ E({
type: cc.Label,
displayName: "血量"
}) ], e.prototype, "hpLabel", void 0);
a([ E({
type: cc.Label,
displayName: "攻击"
}) ], e.prototype, "attLabel", void 0);
a([ E({
type: r.default,
displayName: "排位"
}) ], e.prototype, "rankNode", void 0);
a([ E({
type: cc.Node,
displayName: "添加桌面"
}) ], e.prototype, "m_addzm", void 0);
a([ E({
type: cc.ProgressBar,
displayName: "血量条"
}) ], e.prototype, "hpbar", void 0);
a([ E({
type: cc.Prefab,
displayName: "oppo奖励"
}) ], e.prototype, "oppoRewardPrefab", void 0);
a([ E({
type: cc.Node,
displayName: "玩家节点"
}) ], e.prototype, "skeNode", void 0);
a([ E({
type: cc.Prefab,
displayName: "狂点Banner预制体"
}) ], e.prototype, "KdBannerPrefab", void 0);
a([ E({
type: cc.ProgressBar,
displayName: "攻击条"
}) ], e.prototype, "attbar", void 0);
a([ E({
type: cc.Node,
displayName: "kd节点"
}) ], e.prototype, "kdNode", void 0);
a([ E({
type: cc.Button,
displayName: "购买"
}) ], e.prototype, "btnBuy", void 0);
a([ E({
type: cc.Node,
displayName: "開始游戲"
}) ], e.prototype, "btnGameStart", void 0);
a([ E({
type: cc.Node,
displayName: "试用"
}) ], e.prototype, "btnVoide", void 0);
a([ E({
type: cc.Label,
displayName: "金币框"
}) ], e.prototype, "lbGold", void 0);
a([ E({
type: cc.Node,
displayName: "无双界面"
}) ], e.prototype, "ws_htdjd_Node", void 0);
a([ E({
type: cc.Node,
displayName: "升级界面"
}) ], e.prototype, "up_htdjd_Node", void 0);
a([ E({
type: cc.Node,
displayName: "解锁英雄界面"
}) ], e.prototype, "jiesuo_htdjd_Node", void 0);
a([ E({
type: cc.Node,
displayName: "角色升级按钮"
}) ], e.prototype, "up_htdjd_btn", void 0);
a([ E({
type: cc.Node,
displayName: "icon"
}) ], e.prototype, "m_ui_unit_icon", void 0);
a([ E({
type: [ cc.Node ]
}) ], e.prototype, "roleArray", void 0);
a([ E({
type: C.default,
displayName: "客服"
}) ], e.prototype, "m_kfNode", void 0);
return n = a([ T ], e);
}(k.default);
n.default = D;
cc._RF.pop();
}, {
"../../syyx_sdk/configs/syyx_sdk_enum": "syyx_sdk_enum",
"../../syyx_sdk/syyx_sdk_api": "syyx_sdk_api",
"../FlyLabelHelpMgr": "FlyLabelHelpMgr",
"../HelpMgr": "HelpMgr",
"../KF_View": "KF_View",
"../Script/Config/App_htdjd_Config": "App_htdjd_Config",
"../Script/Event/EventEnum": "EventEnum",
"../Script/Event/Event_htdjd_Defs": "Event_htdjd_Defs",
"../Script/Event/Event_htdjd_Mgr": "Event_htdjd_Mgr",
"../Script/Mgr/Game_htdjd_Mgr": "Game_htdjd_Mgr",
"../Script/Mgr/View_htdjd_Mgr": "View_htdjd_Mgr",
"../Script/Net/Net_Mgr": "Net_Mgr",
"../Script/Platform/OPPO/OppoMgr": "OppoMgr",
"../Script/Platform/QQ/QQMiniGameAPI": "QQMiniGameAPI",
"../Script/Platform/QQ/QqMgr": "QqMgr",
"../Script/Platform/WX/WxMgr": "WxMgr",
"../Script/User/User_htdjd": "User_htdjd",
"../Script/Util/App_htdjd_Platform": "App_htdjd_Platform",
"../Script/Util/Common_htdjd": "Common_htdjd",
"../Script/Util/Wudian": "Wudian",
"../Script/View/Base_htdjd_View": "Base_htdjd_View",
"../Script/View/kuangdian/KD_htdjd_BannerView": "KD_htdjd_BannerView",
"../Script/View/oppo/oppoRewardView": "oppoRewardView",
"../Script/zqHelp/GSkinHelp": "GSkinHelp",
"../Script/zqui/ADmgr": "ADmgr",
"./UI_htdjd_Level": "UI_htdjd_Level"
} ],
Scene_htdjd_Mate: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "e5166Cpb8pFvLxja9WeOnId", "Scene_htdjd_Mate");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.user_htdjd_MateInfo = void 0;
var _ = t("../Script/Platform/WX/WXAPI"), d = t("./UI_htdjd_Level"), r = t("../Script/Util/App_htdjd_Platform"), s = t("../Script/Util/Wudian"), c = t("../Script/Platform/QQ/QqMgr"), h = t("../Script/Platform/OPPO/OppoMgr"), l = t("../Script/Platform/VIVO/VivoMgr"), p = t("../Script/Mgr/View_htdjd_Mgr"), u = t("../Script/User/User_htdjd"), f = t("../Script/View/Base_htdjd_View"), y = t("./Scene_htdjd_Hall"), g = t("../HelpMgr"), m = cc._decorator, v = m.ccclass, j = m.property, b = function() {};
n.user_htdjd_MateInfo = b;
var w = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.mate_htdjd_Time = 3;
e.mate_htdjd_Index = 0;
e.curr_htdjd_Time = 0;
e.currSkin_htdjd_Index = 0;
e.play_dzfcz_Num = 4;
e.missionRole = null;
e.pipei_loading = null;
e.roleArray = [];
e.wenhao_Img = [];
e.kuangdianNode = null;
e.iocnArray = [];
e.m_bossIocnArray = [];
e.name_htdjd_List = [ "冷血", "小工", "依风", "楚天霸", "陈皮皮", "白玉", "麒麟", "大龙", "雷兽", "猎手", "帅", "空白", "么不中", "高飞", "凹凸曼", "久", "AK", "蓝天", "指尖", "岁月无声", "小菠萝", "绯红", "鲸落", "呆", "别打我", "满月", "鱼粉", "crazy", "南北", "123456", "杨丹", "汤霆", "小鹿", "全金属冰淇淋", "王老师", "彭光秀", "杜小亮", "减速机张雄", "小寒同学", "没了你没了她", "鸿运", "少弟", "别闹了", "小王子", "富贵儿", "ANY", "老大", "飞哥", "暖心", "王智强", "东英", "高雄", "老二", "老三", "老四", "老五", "老六", "老七", "老八", "高雄", "何飞兰", "龙", "胭脂色", "杨开林", "陈荇荇", "小铃铛", "我爱宝宝", "蕙羽", "秀秀", "平常燕", "黄慧", "静静", "徐静", "大小姐", "梵米尼", "悟空", "依恋", "阿伟", "小许", "过于迷人" ];
return e;
}
e.prototype.isBossIdx = function(t) {
return t == this.play_dzfcz_Num - 1 && g.default.instance.m_nBossBattle >= 0;
};
e.prototype.set_htdjd_PlayerInfo = function(t, e) {
console.info("set_htdjd_PlayerInfo", t, e);
var n = 0 == t, i = this.roleArray[t], o = i.getChildByName("iocn"), a = i.getChildByName("name"), _ = u.default.LeveNum, r = u.default.getRankStar(), s = this.currSkin_htdjd_Index;
if (!n) {
(_ = this.randomRange_htdjd_Integer(_ - 2, _ + 2)) <= 1 ? _ = 1 : _ >= 19 && (_ = 19);
r = this.randomRange_htdjd_Integer(1, 3);
s = this.randomRange_htdjd_Integer(0, this.iocnArray.length - 1);
console.log("匹配", t, s, this.currSkin_htdjd_Index);
if (1 == t && s == this.currSkin_htdjd_Index) {
s = this.getDuiyou_htdjd_Id(this.currSkin_htdjd_Index);
console.log("随机", s);
}
}
var c = "我";
if (t > 0) {
var h = this.randomRange_htdjd_Integer(0, this.name_htdjd_List.length - 1);
c = this.name_htdjd_List[h];
this.name_htdjd_List.splice(h, 1);
}
a.getComponent(cc.Label).string = c;
if (e == t) {
if (t <= 1) {
this.wenhao_Img[0].active = !0;
this.wenhao_Img[1].active = !1;
} else {
this.wenhao_Img[0].active = !1;
this.wenhao_Img[1].active = !0;
}
this.pipei_loading.active = !0;
this.pipei_loading.x = i.x;
this.pipei_loading.y = i.y + 200;
a.getComponent(cc.Label).string = "???";
i.getComponentInChildren(d.default).set_htdjd_RankInfo(0);
} else {
i.getComponentInChildren(d.default).set_htdjd_RankInfo(_);
if (this.isBossIdx(t)) {
o.getComponent(cc.Sprite).spriteFrame = this.m_bossIocnArray[g.default.instance.m_nBossBattle];
a.getComponent(cc.Label).string = "Boss";
} else o.getComponent(cc.Sprite).spriteFrame = this.iocnArray[s];
}
var l = new b();
l.name = c, l.starCount = r, l.rankLevel = _, l.currIndex = s, this.user_htdjd_InfoArray.push(l);
console.info("user_htdjd_InfoArray");
i.active = !0;
};
e.prototype.start = function() {
this.user_htdjd_InfoArray = new Array();
this.mate_htdjd_Index = this.randomRange_htdjd_Integer(1, this.play_dzfcz_Num - 1);
this.roleArray.forEach(function(t) {
t.active = !1;
});
for (var t = 0; t < this.play_dzfcz_Num; t++) this.set_htdjd_PlayerInfo(t, this.mate_htdjd_Index);
this.mate_htdjd_Time = this.randomRange_htdjd_Integer(10, 20) / 10;
};
e.prototype.getDuiyou_htdjd_Id = function(t) {
for (var e = this.randomRange_htdjd_Integer(0, this.play_dzfcz_Num); e == t; ) e = this.randomRange_htdjd_Integer(0, this.play_dzfcz_Num);
return e;
};
e.prototype.randomRange_htdjd_Integer = function(t, e) {
var n = Math.random();
return Math.floor(n * (e - t + 1) + t);
};
e.prototype.update = function(t) {
if (this.pipei_loading.active) {
this.curr_htdjd_Time += t;
if (this.curr_htdjd_Time >= this.mate_htdjd_Time) {
this.pipei_loading.active = !1;
var e = this.roleArray[this.mate_htdjd_Index].getChildByName("name").getComponent(cc.Label), n = this.roleArray[this.mate_htdjd_Index].getChildByName("iocn").getComponent(cc.Sprite);
if (this.isBossIdx(this.mate_htdjd_Index)) {
n.spriteFrame = this.m_bossIocnArray[g.default.instance.m_nBossBattle];
e.string = "Boss";
} else {
e.string = this.user_htdjd_InfoArray[this.mate_htdjd_Index].name;
n.spriteFrame = this.iocnArray[this.user_htdjd_InfoArray[this.mate_htdjd_Index].currIndex];
}
this.roleArray[this.mate_htdjd_Index].getComponentInChildren(d.default).set_htdjd_RankInfo(this.user_htdjd_InfoArray[this.mate_htdjd_Index].rankLevel);
this.roleArray[this.mate_htdjd_Index].active = !0;
var i = this;
this.scheduleOnce(function() {
i.on_htdjd_GameStart();
}, 1);
}
}
};
e.prototype.on_htdjd_GameStart = function() {
console.info("onGameStart");
_.default.tryShowWXCrazyClick_htdjd() || p.default.instance().openScene(p.viewDefs.Game, {
mission: this.missionRole,
userInfoArray: this.user_htdjd_InfoArray,
currRoleIndex: this.currSkin_htdjd_Index,
play_dzfcz_Num: this.play_dzfcz_Num
});
};
e.prototype.openScene = function(t) {
this.currSkin_htdjd_Index = t.currRoleIndex;
this.play_dzfcz_Num = y.default.m_play_dzfcz_Num || t.play_dzfcz_Num || 4;
console.info("meat  ", t);
r.default.is_QQ_PLAY_htdjd() ? c.default.instance.showBannerAd(s.WuDianType.CENTER) : r.default.is_OPPO_GAME_htdjd() ? h.OppoMgr.instance.showBannerAd(s.WuDianType.CENTER) : r.default.is_VIVO_GAME_htdjd() && l.default.instance.showBannerAd(s.WuDianType.CENTER);
};
a([ j({
type: cc.JsonAsset,
displayName: "角色配置"
}) ], e.prototype, "missionRole", void 0);
a([ j({
type: cc.Node,
displayName: "匹配Load"
}) ], e.prototype, "pipei_loading", void 0);
a([ j({
type: [ cc.Node ],
displayName: "角色"
}) ], e.prototype, "roleArray", void 0);
a([ j({
type: [ cc.Node ],
displayName: "问号图片"
}) ], e.prototype, "wenhao_Img", void 0);
a([ j({
type: cc.Node,
displayName: "添加狂点页节点"
}) ], e.prototype, "kuangdianNode", void 0);
a([ j({
type: [ cc.SpriteFrame ],
displayName: "图标"
}) ], e.prototype, "iocnArray", void 0);
a([ j({
type: [ cc.SpriteFrame ],
displayName: "boss图标"
}) ], e.prototype, "m_bossIocnArray", void 0);
return a([ v ], e);
}(f.default);
n.default = w;
cc._RF.pop();
}, {
"../HelpMgr": "HelpMgr",
"../Script/Mgr/View_htdjd_Mgr": "View_htdjd_Mgr",
"../Script/Platform/OPPO/OppoMgr": "OppoMgr",
"../Script/Platform/QQ/QqMgr": "QqMgr",
"../Script/Platform/VIVO/VivoMgr": "VivoMgr",
"../Script/Platform/WX/WXAPI": "WXAPI",
"../Script/User/User_htdjd": "User_htdjd",
"../Script/Util/App_htdjd_Platform": "App_htdjd_Platform",
"../Script/Util/Wudian": "Wudian",
"../Script/View/Base_htdjd_View": "Base_htdjd_View",
"./Scene_htdjd_Hall": "Scene_htdjd_Hall",
"./UI_htdjd_Level": "UI_htdjd_Level"
} ],
Scene_htdjd_Play: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "19530Pzn2NHQbblB2krahg8", "Scene_htdjd_Play");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../Script/Net/Net_Mgr"), d = t("./floor/hp_htdjd_BuffSprite"), r = t("./role/bullet_htdjd"), s = t("./role/Player_htdjd"), c = t("./role/playerInfo_htdjd_Bar"), h = t("./Game_htdjd_Camera"), l = t("./Revive_htdjd_Layer"), p = t("./Video_htdjd_ReviveLayer"), u = t("../Script/Config/App_htdjd_Config"), f = t("../Script/Util/Common_htdjd"), y = t("../Script/View/kuangdian/KD_htdjd_boxView"), g = t("../Script/Util/App_htdjd_Platform"), m = t("../Script/Util/Wudian"), v = t("../Script/Platform/QQ/QqMgr"), j = t("../Script/Platform/TT/TtMgr"), b = t("../Script/Platform/OPPO/OppoMgr"), w = t("../Script/Platform/VIVO/VivoMgr"), x = t("../Script/Event/EventEnum"), k = t("../Script/Event/Event_htdjd_Mgr"), S = t("../Script/Mgr/View_htdjd_Mgr"), A = t("../Script/View/Base_htdjd_View"), I = t("../Script/Event/Event_htdjd_Defs"), O = t("../../syyx_sdk/syyx_sdk_api"), P = t("../Script/User/User_htdjd"), M = t("../HelpMgr"), C = t("../FlyLabelHelpMgr"), N = t("./role/AI_htdjd_Player"), T = cc._decorator, E = T.ccclass, D = T.property, B = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.gameAudio = null;
e.buttonAudio = null;
e.timeAudio = null;
e.fzAudio = null;
e.gjAudio = null;
e.DEBUG = !1;
e.mainCamera1 = null;
e.reviveLayer = null;
e.videoReviveLayer = null;
e.killTipsNode = null;
e.killNumNode = null;
e.killNumImg = null;
e.killNumImgArr = [];
e.cgGameSp = null;
e.sbGameSp = null;
e.uiCamera = null;
e.startGameSp = null;
e.bodyArray = [];
e.bossBodyArray = [];
e.iconArray = [];
e.m_bossIconArray = [];
e.wuqiNode = null;
e.bulletBlast = [];
e.gameslider = null;
e.hpBuffPrefab = null;
e.bulletList = [];
e.m_bossBulletList = [];
e.mainRole1 = null;
e.gameTimeLabel = null;
e.speedCD = null;
e.dazhaoCD = null;
e.timeNode = null;
e.rocker = null;
e.kd_box_htdjd_Prefab = null;
e.wuqiSpriteFrameArray = [];
e.kd_box_htdjd_Node = null;
e.hpBuffNode = null;
e.maps = [];
e.players = [];
e.operateLayer = null;
e.playerInfoBarArr = [];
e.startAnim = null;
e.my_htdjd_Progress = 0;
e.max_htdjd_Progress = 0;
e.roleMove_htdjd_Spd = 100;
e.is_htdjd_GameStart = !1;
e.is_htdjd_GameOver = !1;
e.is_htdjd_StartTouch = !1;
e.canAtt_htdjd_DaZhao = !1;
e.can_htdjd_Att = !0;
e.touch_htdjd_Tag = -1;
e.att_htdjd_CD = 3;
e.gameTime_htdjd_Count = 60;
e.leftKill_htdjd_Count = 0;
e.currSkin_htdjd_Index = 0;
e.rightKill_htdjd_Count = 0;
e.KILL_MAX_COUNT_htdjd = 200;
e.isGameTime_htdjd_Action = !1;
e.killNum_htdjd_Arr = [];
e.isAlreadyAuto_htdjd_Rvieve = !1;
e.overBannerX = 0;
e.play_dzfcz_Num = 0;
e.m_time = 0;
return e;
}
n = e;
e.prototype.start = function() {
n.m_self = this;
O.syyx_sdk_api.send_chapter_event(P.default._gameData_htdjd.levelNum);
u.default.curRound += 1;
this.killTipsNode.active = !1;
this.isAlreadyAuto_htdjd_Rvieve = !1;
this.killNumNode.active = !1;
this.load_htdjd_Map();
this.main_htdjd_Camera = this.mainCamera1.getComponent(h.default);
this.main_htdjd_Role = this.mainRole1.getComponent(s.default);
cc.log("ScenePlay  start");
cc.director.getCollisionManager().enabled = !0;
var t = new Date().getTime();
cc.log("获取当前时间 ", t);
this.origin_htdjd_Piont = new cc.Vec2(this.rocker.getPosition().x, this.rocker.getPosition().y);
this.main_htdjd_Role.is_htdjd_Self = !0;
this.main_htdjd_Role.curr_htdjd_Index = this.currSkin_htdjd_Index;
for (var e = 0; e < this.play_dzfcz_Num; e++) {
var i = this.userInfo_htdjd_Array[e];
i.indexPos = e;
var o = this.players[e].getComponent(s.default);
if (M.default.instance.m_nBossBattle >= 0 && e == this.play_dzfcz_Num - 1) {
o.node.x = 1800;
o.node.y += 100;
o.node.scale = 1.5;
i.currIndex = M.default.instance.m_nBossBattle;
i.isBoss = !0;
}
o.setUser_htdjd_Info(i);
this.players[e].active = !0;
C.default.reStart();
}
this.wuqiNode.getComponent(cc.Sprite).spriteFrame = this.wuqiSpriteFrameArray[this.currSkin_htdjd_Index];
this.node.on(cc.Node.EventType.TOUCH_MOVE, this.onTouchMove, this);
this.node.on(cc.Node.EventType.TOUCH_START, this.onTouchStart, this);
this.node.on(cc.Node.EventType.TOUCH_END, this.onTouchEnd, this);
var a = this;
this.scheduleOnce(function() {
a.game_htdjd_Start();
}, 3);
this.set_htdjd_GameTime();
this.operateLayer.active = !1;
this.load_htdjd_HpBuff();
};
e.prototype.onLoad = function() {
cc.audioEngine.playMusic(this.gameAudio, !0);
k.default.onEvent_htdjd(x.htdjd_Event.Game_UserKillInfo, this.onUserKill_htdjd_Push, this);
k.default.onEvent_htdjd(x.htdjd_Event.Game_UserLaunchBullet, this.onUser_htdjd_LaunchBallet, this);
k.default.onEvent_htdjd(x.htdjd_Event.Game_BulletBlast, this.onBullet_htdjd_Blast, this);
k.default.onEvent_htdjd(x.htdjd_Event.Game_UserInfoBar, this.update_htdjd_PlayersBar, this);
k.default.onEvent_htdjd(x.htdjd_Event.GAME_FINISH, this.gameFinish, this);
};
e.prototype.openScene = function(t) {
g.default.is_QQ_PLAY_htdjd() ? v.default.instance.hindBannerAd() : g.default.is_TT_GAME_htdjd() ? j.TtMgr.hindBannerAd() : g.default.is_OPPO_GAME_htdjd() ? b.OppoMgr.instance.hindBannerAd() : g.default.is_VIVO_GAME_htdjd() && w.default.instance.hindBannerAd();
this.currSkin_htdjd_Index = t.currRoleIndex;
this.play_dzfcz_Num = t.play_dzfcz_Num;
this.userInfo_htdjd_Array = new Array();
for (var e = 0; e < t.userInfoArray.length; e++) this.userInfo_htdjd_Array.push(t.userInfoArray[e]);
this.roleInfo_htdjd_Json = t.mission.json.roleinfo;
this.att_htdjd_CD = this.roleInfo_htdjd_Json[this.currSkin_htdjd_Index].attcd;
this.gameTime_htdjd_Count = _.default.WX_SdkCustomKey.gameTime;
u.default.isWuShuang > 0 && (this.gameTime_htdjd_Count = 20 + 10 * u.default.isWuShuang);
M.default.instance.m_nBossBattle >= 0 && (this.gameTime_htdjd_Count = 150 + 50 * M.default.instance.m_nBossBattle);
};
e.prototype.load_htdjd_HpBuff = function() {
if (!this.huBuff_htdjd_Sprite) {
this.huBuff_htdjd_Sprite = cc.instantiate(this.hpBuffPrefab);
this.hpBuffNode.addChild(this.huBuff_htdjd_Sprite);
this.hp_htdjd_BuffScript = this.huBuff_htdjd_Sprite.getComponent(d.default);
this.huBuff_htdjd_Sprite.x = 0;
this.huBuff_htdjd_Sprite.y = 0;
}
};
e.prototype.load_htdjd_Map = function() {
this.maps.forEach(function(t) {
t.active = !1;
});
this.maps[Math.floor(2 * Math.random())].active = !0;
};
e.prototype.update_htdjd_Time = function() {
if (N.default.isMove && 1 != this.is_htdjd_GameOver) {
this.gameTime_htdjd_Count--;
if (g.default.is_WECHAT_GAME_htdjd()) {
this.gameTime_htdjd_Count < 3 && this.gameTime_htdjd_Count > .8 && _.default.WX_SdkCustomKey.endBanner;
this.gameTime_htdjd_Count < 32 && this.gameTime_htdjd_Count > 29 && _.default.WX_SdkCustomKey.halfgameBanner && this.show_htdjd_centerBanner();
} else g.default.is_QQ_PLAY_htdjd() && (this.gameTime_htdjd_Count < 3 && this.gameTime_htdjd_Count > .8 && _.default.QQ_SdkCustomKey.gameEndBanner ? v.default.instance.showBannerAd(m.WuDianType.RIGHT, null, 25) : g.default.is_OPPO_GAME_htdjd() && console.info(this.gameTime_htdjd_Count, _.default.OPPO_SdkCustomKey.gameBanner));
if (this.gameTime_htdjd_Count < 3 && this.gameTime_htdjd_Count > .8 && _.default.OPPO_SdkCustomKey.gameBanner) {
console.info("Net_Mgr.OPPO_SdkCustomKey.gameBanner");
b.OppoMgr.instance.showBannerAd(m.WuDianType.RIGHT);
} else g.default.is_VIVO_GAME_htdjd() && console.info(this.gameTime_htdjd_Count, _.default.VIVO_SdkCustomKey.gameBanner);
if (this.gameTime_htdjd_Count < 3 && this.gameTime_htdjd_Count > .8 && _.default.VIVO_SdkCustomKey.gameBanner) {
console.info("Net_Mgr.OPPO_SdkCustomKey.gameBanner");
w.default.instance.showBannerAd(m.WuDianType.RIGHT);
}
if (this.gameTime_htdjd_Count < 0) {
var t = void 0;
this.leftKill_htdjd_Count == this.rightKill_htdjd_Count ? t = I.GameOver_htdjd_Type.win : this.leftKill_htdjd_Count > this.rightKill_htdjd_Count ? t = I.GameOver_htdjd_Type.win : this.leftKill_htdjd_Count < this.rightKill_htdjd_Count && (t = I.GameOver_htdjd_Type.lose);
this.gameFinish(t);
} else this.set_htdjd_GameTime();
}
};
e.prototype.gameFinish = function(t) {
this.timeNode.stopAllActions();
this.is_htdjd_GameOver = !0;
this.is_htdjd_GameStart = !1;
this.game_htdjd_Over(t);
};
e.prototype.onTouchEnd = function(t) {
if (this.is_htdjd_StartTouch && this.touch_htdjd_Tag == t.touch._id) {
var e = t.getLocation();
this.startTouch_htdjd_Pos.sub(e).mag();
this.is_htdjd_StartTouch = !1;
this.rocker.setPosition(this.origin_htdjd_Piont.x, this.origin_htdjd_Piont.y);
this.main_htdjd_Role.isMove = !1;
this.main_htdjd_Role.onPlayer_htdjd_Operate(I.TouchOperate_htdjd_Type.not);
}
};
e.prototype.onTouchStart = function(t) {
if (!this.is_htdjd_GameStart) return !1;
if (!this.is_htdjd_StartTouch) {
this.main_htdjd_Role.isMove = !0;
this.touch_htdjd_Tag = t.touch._id;
this.startTouch_htdjd_Pos = t.getLocation();
this.is_htdjd_StartTouch = cc.view.getVisibleSize().width / 2 >= this.startTouch_htdjd_Pos.x;
}
};
e.prototype.set_htdjd_GameTime = function() {
var t = Math.floor(this.gameTime_htdjd_Count / 60);
t.toString();
var e = Math.floor(this.gameTime_htdjd_Count % 60);
e.toString();
if (this.gameTime_htdjd_Count <= 10) {
cc.audioEngine.play(this.timeAudio, !1, 1);
this.timeNode.color = cc.color(255, 0, 0);
if (!this.isGameTime_htdjd_Action) {
var n = cc.scaleTo(1, 1.2), i = cc.scaleTo(.1, 1), o = cc.repeatForever(cc.sequence(n, i));
this.timeNode.runAction(o);
this.isGameTime_htdjd_Action = !0;
}
}
this.gameTimeLabel.string = Math.floor(this.gameTime_htdjd_Count).toString();
};
e.prototype.onTouchMove = function(t) {
if (this.is_htdjd_StartTouch && this.touch_htdjd_Tag == t.touch._id) {
var e = t.getLocation(), n = cc.v2();
this.uiCamera.getScreenToWorldPoint(e, n);
var i = this.rocker.parent.convertToNodeSpaceAR(n);
this.rocker.setPosition(i);
var o = i.x - this.origin_htdjd_Piont.x, a = i.y - this.origin_htdjd_Piont.y, _ = 180 * Math.atan2(o, a) / Math.PI, d = o * o, r = a * a;
_ < 0 && (_ += 360);
_ = Math.round(_);
var s = Math.PI / 180 * _;
if (d + r >= 6400) {
var c = Math.floor(80 * Math.sin(s) + this.origin_htdjd_Piont.x), h = Math.floor(80 * Math.cos(s) + this.origin_htdjd_Piont.y);
this.rocker.setPosition(c, h);
} else this.rocker.setPosition(i);
this.touchOperate(e);
}
};
e.prototype.touchOperate = function(t) {
var e = I.TouchOperate_htdjd_Type.not;
if (t.x - this.startTouch_htdjd_Pos.x > 0) {
this.startTouch_htdjd_Pos.sub(t).mag();
if (t.y >= this.startTouch_htdjd_Pos.y) if (Math.abs(t.y - this.startTouch_htdjd_Pos.y) >= Math.abs(t.x - this.startTouch_htdjd_Pos.x)) {
e = I.TouchOperate_htdjd_Type.up;
e = I.TouchOperate_htdjd_Type.right;
} else e = I.TouchOperate_htdjd_Type.right; else e = I.TouchOperate_htdjd_Type.right;
} else if (t.x - this.startTouch_htdjd_Pos.x < 0) {
this.startTouch_htdjd_Pos.sub(t).mag();
if (t.y >= this.startTouch_htdjd_Pos.y) if (Math.abs(t.y - this.startTouch_htdjd_Pos.y) >= Math.abs(t.x - this.startTouch_htdjd_Pos.x)) {
e = I.TouchOperate_htdjd_Type.up;
e = I.TouchOperate_htdjd_Type.left;
} else e = I.TouchOperate_htdjd_Type.left; else e = I.TouchOperate_htdjd_Type.left;
}
this.main_htdjd_Role.onPlayer_htdjd_Operate(e);
};
e.prototype.on_htdjd_Jump = function() {
this.main_htdjd_Role.onPlayer_htdjd_Operate(I.TouchOperate_htdjd_Type.up);
};
e.prototype.onDestroy = function() {
cc.director.getCollisionManager().enabled = !1;
};
e.prototype.play_htdjd_StartAnim = function() {
this.startAnim.node.active = !0;
this.startAnim.play();
this.startAnim.on("stop", this.game_htdjd_Start, this);
};
e.prototype.show_htdjd_centerBanner = function() {};
e.prototype.onAKUseSkill = function() {
this.is_htdjd_GameOver;
};
e.prototype.game_htdjd_Start = function() {
this.is_htdjd_GameStart = !0;
this.is_htdjd_GameOver = !1;
k.default.emitEvent_htdjd(x.htdjd_Event.htdjd_Game_OnLevelStart_htdjd, I.Game_htdjd_Type.game);
this.startGameSp.active = !0;
g.default.is_WECHAT_GAME_htdjd() && _.default.WX_SdkCustomKey.startBanner && this.show_htdjd_centerBanner();
this.schedule(this.update_htdjd_Time, 1);
this.operateLayer.active = !0;
};
e.prototype.onUserAtt = function() {
console.log("攻击", this.currSkin_htdjd_Index);
if (this.can_htdjd_Att) {
if (2 == this.currSkin_htdjd_Index) cc.audioEngine.play(this.fzAudio, !1, 1); else if (3 == this.currSkin_htdjd_Index) {
console.log("播放攻击", this.currSkin_htdjd_Index);
cc.audioEngine.play(this.gjAudio, !1, 1);
} else cc.audioEngine.play(this.buttonAudio, !1, 1);
if (this.main_htdjd_Role.play_htdjd_RoleAnim(I.playRole_htdjd_Name.attack, 1)) {
this.can_htdjd_Att = !1;
this.speedCD.fillRange = 1;
}
}
};
e.prototype.onUser_htdjd_Dazhao = function() {
cc.audioEngine.play(this.buttonAudio, !1, 1);
if (this.canAtt_htdjd_DaZhao && this.main_htdjd_Role.play_htdjd_RoleAnim(I.playRole_htdjd_Name.daZhao, 1)) {
this.canAtt_htdjd_DaZhao = !1;
this.main_htdjd_Role.setEnergy_htdjd_Grow(0);
this.dazhaoCD.fillRange = 1;
}
};
e.prototype.game_htdjd_Over = function(t) {
var e = this;
g.default.is_QQ_PLAY_htdjd() && _.default.QQ_SdkCustomKey.gameEndBanner && v.default.instance.showBannerAd(m.WuDianType.RIGHT, null, 25);
var n = {
type: t,
userInfoArray: this.userInfo_htdjd_Array
};
_.default.sendAloConttrol(3);
k.default.dispatch(x.htdjd_Event.htdjd_Game_OnLevelComplate_htdjd, t);
t == I.GameOver_htdjd_Type.lose ? this.sbGameSp.active = !0 : this.cgGameSp.active = !0;
this.scheduleOnce(function() {
g.default.is_QQ_PLAY_htdjd() && _.default.QQ_SdkCustomKey.gameEndBanner ? e.open_htdjd_KuangDian(n) : e.open_htdjd_OverScene(n);
}, 2);
};
e.prototype.onUser_htdjd_LaunchBallet = function(t) {
var e = t.user_htdjd_Data, n = t.bulletIndex, i = t.worldPos, o = t.direction, a = null;
(a = t.isBoss ? cc.instantiate(this.m_bossBulletList[n]) : cc.instantiate(this.bulletList[n])).x = i.x;
a.y = i.y;
a.scaleX = o * a.scaleX;
a.group = t.group;
this.node.getChildByName("gamescene").addChild(a);
var _ = a.getComponent(r.default);
_.main_htdjd_Camera = this.main_htdjd_Camera;
_.Xspeed_htdjd = o * _.Xspeed_htdjd;
_.att_htdjd = e.att_htdjd;
_.user_htdjd_Data = e;
_.isDZ_htdjd = t.isDZ;
_.onStart();
t.isNotHit && (_.node.getComponent(cc.BoxCollider).enabled = !1);
};
e.prototype.revive_htdjd_Self = function() {
this.operateLayer.active = !0;
this.videoReviveLayer.active = !1;
this.reviveLayer.active = !1;
this.is_htdjd_GameOver || this.main_htdjd_Role.onUser_htdjd_Revive();
};
e.prototype.onUserKill_htdjd_Push = function(t) {
if (!this.is_htdjd_GameOver) {
console.log("杀人者", t.name);
console.log("被杀人者", t.deadName);
var e = t.isSelf, n = t.group;
"duiyou" == n ? this.leftKill_htdjd_Count++ : "diren" == n && this.rightKill_htdjd_Count++;
var i = !1, o = I.GameOver_htdjd_Type.lose;
if (this.leftKill_htdjd_Count >= this.KILL_MAX_COUNT_htdjd) {
this.leftKill_htdjd_Count = this.KILL_MAX_COUNT_htdjd;
i = !0;
o = I.GameOver_htdjd_Type.win;
} else if (this.rightKill_htdjd_Count >= this.KILL_MAX_COUNT_htdjd) {
this.rightKill_htdjd_Count = this.KILL_MAX_COUNT_htdjd;
i = !0;
o = I.GameOver_htdjd_Type.lose;
}
if (i) {
this.is_htdjd_GameOver = !0;
this.unschedule(this.update_htdjd_Time);
this.game_htdjd_Over(o);
} else if (e) {
this.operateLayer.active = !1;
this.showFH();
}
}
};
e.prototype.showFH = function() {
var t = this;
if (this.isAlreadyAuto_htdjd_Rvieve) {
this.reviveLayer.active = !1;
this.videoReviveLayer.active = !0;
this.videoReviveLayer.getComponent(p.default).onStart(function() {
t.revive_htdjd_Self();
}, function() {
t.is_htdjd_GameOver = !0;
t.unschedule(t.update_htdjd_Time);
t.game_htdjd_Over(I.GameOver_htdjd_Type.lose);
});
} else {
this.isAlreadyAuto_htdjd_Rvieve = !0;
this.videoReviveLayer.active = !1;
this.reviveLayer.active = !0;
this.reviveLayer.getComponent(l.default).onStart(function() {
t.revive_htdjd_Self();
});
}
};
e.prototype.update_htdjd_PlayersBar = function(t) {
var e = this;
if (t.kill_htdjd_Num > 0 && t.kill_htdjd_Num > this.killNum_htdjd_Arr[t.index_htdjd_Pos]) {
var n = t.kill_htdjd_Num > this.killNumImgArr.length ? this.killNumImgArr.length : t.kill_htdjd_Num;
if (this.killNumImgArr[t.kill_htdjd_Num - 1]) {
this.killNumImg.spriteFrame = this.killNumImgArr[n - 1];
this.killNumNode.active = !0;
this.scheduleOnce(function() {
e.killNumNode.active = !1;
}, 2);
}
}
this.killNum_htdjd_Arr[t.index_htdjd_Pos] = t.kill_htdjd_Num;
this.playerInfoBarArr[t.index_htdjd_Pos].update_htdjd_Info(t);
this.playerInfoBarArr[t.index_htdjd_Pos].node.active || (this.playerInfoBarArr[t.index_htdjd_Pos].node.active = !0);
};
e.prototype.onBullet_htdjd_Blast = function(t) {
var e = this.node.getChildByName("gamescene"), n = cc.instantiate(this.bulletBlast[0]);
e.addChild(n);
n.scale = 1.5;
n.x = t.pos.x;
n.y = t.pos.y;
};
e.prototype.showKill_htdjd_Tips = function(t) {
var e = this;
this.clearKill_htdjd_Tips();
var n = t.deadName, i = t.name, o = t.index, a = this.killTipsNode.getChildByName("name1");
a.getComponent(cc.Label).string = i;
this.killTipsNode.getChildByName("name2").getComponent(cc.Label).string = n;
this.killTipsNode.getChildByName("attImg").getComponent(cc.Sprite).spriteFrame = this.wuqiSpriteFrameArray[o];
"duiyou" == t.group ? a.color = cc.color(15, 226, 248) : "diren" == t.group && (a.color = cc.color(235, 17, 1));
this.killTipsNode.active = !0;
this.killTipsNode.x = -this.node.width / 2 - this.killTipsNode.width;
var _ = cc.moveTo(.5, cc.v2(-this.node.width / 2, this.killTipsNode.y));
this.killTipsNode.runAction(_);
setTimeout(function() {
e.clearKill_htdjd_Tips();
}, 3e3);
};
e.prototype.open_htdjd_KuangDian = function(t) {
_.default.QQ_SdkCustomKey.kuangdianBox ? f.default.createPrefab_htdjd(this.kd_box_htdjd_Prefab, y.default, this.kd_box_htdjd_Node).setData(t) : this.open_htdjd_OverScene(t);
};
e.prototype.clearKill_htdjd_Tips = function() {
if (this.killTipsNode && this.killTipsNode.isValid) {
this.killTipsNode.active = !1;
this.killTipsNode.stopAllActions();
}
};
e.prototype.open_htdjd_OverScene = function(t) {
S.default.instance().openScene(S.viewDefs.GameOver, t);
};
e.prototype.update = function(t) {
if (N.default.isMove && this.is_htdjd_GameStart && !this.is_htdjd_GameOver) {
if (0 == this.can_htdjd_Att) {
this.speedCD.fillRange -= t / this.att_htdjd_CD;
if (this.speedCD.fillRange < 0) {
this.speedCD.fillRange = 0;
this.can_htdjd_Att = !0;
}
}
if (0 == this.canAtt_htdjd_DaZhao && this.main_htdjd_Role.isEnergy_htdjd_Grow()) {
this.dazhaoCD.fillRange = 0;
this.canAtt_htdjd_DaZhao = !0;
}
this.main_htdjd_Role.onUpdate(t);
this.huBuff_htdjd_Sprite && 0 == this.huBuff_htdjd_Sprite.active && this.hp_htdjd_BuffScript.update(t);
this.main_htdjd_Camera.update_htdjd_GameCamera();
}
};
e.prototype.onDisable = function() {
cc.audioEngine.stopAll();
k.default.offTargetEvent_htdjd(this);
};
e.prototype.onMainRoleDeadUpdate = function() {
this.main_htdjd_Camera.Look_htdjd_Role();
};
var n;
e.m_self = null;
a([ D({
type: cc.AudioClip
}) ], e.prototype, "gameAudio", void 0);
a([ D({
type: cc.AudioClip,
displayName: "按钮音效"
}) ], e.prototype, "buttonAudio", void 0);
a([ D({
type: cc.AudioClip,
displayName: "倒计时音效"
}) ], e.prototype, "timeAudio", void 0);
a([ D({
type: cc.AudioClip,
displayName: "斧子音效"
}) ], e.prototype, "fzAudio", void 0);
a([ D({
type: cc.AudioClip,
displayName: "弓箭音效"
}) ], e.prototype, "gjAudio", void 0);
a([ D({
displayName: "调试模式"
}) ], e.prototype, "DEBUG", void 0);
a([ D({
type: cc.Camera,
displayName: "游戏摄像头"
}) ], e.prototype, "mainCamera1", void 0);
a([ D({
type: cc.Node,
displayName: "自动复活界面"
}) ], e.prototype, "reviveLayer", void 0);
a([ D({
type: cc.Node,
displayName: "视频复活界面"
}) ], e.prototype, "videoReviveLayer", void 0);
a([ D({
type: cc.Node,
displayName: "击杀提示"
}) ], e.prototype, "killTipsNode", void 0);
a([ D({
type: cc.Node,
displayName: "超神提示背景"
}) ], e.prototype, "killNumNode", void 0);
a([ D({
type: cc.Sprite,
displayName: "超神提示图片"
}) ], e.prototype, "killNumImg", void 0);
a([ D({
type: [ cc.SpriteFrame ],
displayName: "超神提示图片组"
}) ], e.prototype, "killNumImgArr", void 0);
a([ D({
type: cc.Node,
displayName: "游戏成功提示"
}) ], e.prototype, "cgGameSp", void 0);
a([ D({
type: cc.Node,
displayName: "游戏失败提示"
}) ], e.prototype, "sbGameSp", void 0);
a([ D({
type: cc.Camera,
displayName: "UI摄像机"
}) ], e.prototype, "uiCamera", void 0);
a([ D({
type: cc.Node,
displayName: "游戏开始提示"
}) ], e.prototype, "startGameSp", void 0);
a([ D({
type: [ cc.Prefab ],
displayName: "角色动画"
}) ], e.prototype, "bodyArray", void 0);
a([ D({
type: [ cc.Prefab ],
displayName: "boss角色动画"
}) ], e.prototype, "bossBodyArray", void 0);
a([ D({
type: [ cc.SpriteFrame ],
displayName: "角色icon"
}) ], e.prototype, "iconArray", void 0);
a([ D({
type: [ cc.SpriteFrame ],
displayName: "boss角色icon"
}) ], e.prototype, "m_bossIconArray", void 0);
a([ D({
type: cc.Node,
displayName: "武器精灵层"
}) ], e.prototype, "wuqiNode", void 0);
a([ D({
type: [ cc.Prefab ],
displayName: "子弹爆炸效果"
}) ], e.prototype, "bulletBlast", void 0);
a([ D(cc.Slider) ], e.prototype, "gameslider", void 0);
a([ D({
type: cc.Prefab,
displayName: "加血包预制体"
}) ], e.prototype, "hpBuffPrefab", void 0);
a([ D({
type: [ cc.Prefab ],
displayName: "子弹列表"
}) ], e.prototype, "bulletList", void 0);
a([ D({
type: [ cc.Prefab ],
displayName: "boss子弹列表"
}) ], e.prototype, "m_bossBulletList", void 0);
a([ D({
type: cc.Node,
displayName: "主角"
}) ], e.prototype, "mainRole1", void 0);
a([ D({
type: cc.Label,
displayName: "游戏持续时间"
}) ], e.prototype, "gameTimeLabel", void 0);
a([ D({
type: cc.Sprite,
displayName: "技能CD"
}) ], e.prototype, "speedCD", void 0);
a([ D({
type: cc.Sprite,
displayName: "大招技能CD"
}) ], e.prototype, "dazhaoCD", void 0);
a([ D({
type: cc.Node,
displayName: "剩余时间节点"
}) ], e.prototype, "timeNode", void 0);
a([ D({
type: cc.Node,
displayName: "操作杆"
}) ], e.prototype, "rocker", void 0);
a([ D({
type: cc.Prefab,
displayName: "kd盒子预制体"
}) ], e.prototype, "kd_box_htdjd_Prefab", void 0);
a([ D({
type: [ cc.SpriteFrame ],
displayName: "武器图标"
}) ], e.prototype, "wuqiSpriteFrameArray", void 0);
a([ D({
type: cc.Node,
displayName: "kd盒子添加点"
}) ], e.prototype, "kd_box_htdjd_Node", void 0);
a([ D({
type: cc.Node,
displayName: "加血包节点"
}) ], e.prototype, "hpBuffNode", void 0);
a([ D({
type: [ cc.Node ],
displayName: "地图组"
}) ], e.prototype, "maps", void 0);
a([ D({
type: [ cc.Node ],
displayName: ""
}) ], e.prototype, "players", void 0);
a([ D({
type: cc.Node,
displayName: "操作层"
}) ], e.prototype, "operateLayer", void 0);
a([ D({
type: [ c.default ],
displayName: "玩家信息显示条"
}) ], e.prototype, "playerInfoBarArr", void 0);
a([ D({
type: cc.Animation
}) ], e.prototype, "startAnim", void 0);
return n = a([ E ], e);
}(A.default);
n.default = B;
cc._RF.pop();
}, {
"../../syyx_sdk/syyx_sdk_api": "syyx_sdk_api",
"../FlyLabelHelpMgr": "FlyLabelHelpMgr",
"../HelpMgr": "HelpMgr",
"../Script/Config/App_htdjd_Config": "App_htdjd_Config",
"../Script/Event/EventEnum": "EventEnum",
"../Script/Event/Event_htdjd_Defs": "Event_htdjd_Defs",
"../Script/Event/Event_htdjd_Mgr": "Event_htdjd_Mgr",
"../Script/Mgr/View_htdjd_Mgr": "View_htdjd_Mgr",
"../Script/Net/Net_Mgr": "Net_Mgr",
"../Script/Platform/OPPO/OppoMgr": "OppoMgr",
"../Script/Platform/QQ/QqMgr": "QqMgr",
"../Script/Platform/TT/TtMgr": "TtMgr",
"../Script/Platform/VIVO/VivoMgr": "VivoMgr",
"../Script/User/User_htdjd": "User_htdjd",
"../Script/Util/App_htdjd_Platform": "App_htdjd_Platform",
"../Script/Util/Common_htdjd": "Common_htdjd",
"../Script/Util/Wudian": "Wudian",
"../Script/View/Base_htdjd_View": "Base_htdjd_View",
"../Script/View/kuangdian/KD_htdjd_boxView": "KD_htdjd_boxView",
"./Game_htdjd_Camera": "Game_htdjd_Camera",
"./Revive_htdjd_Layer": "Revive_htdjd_Layer",
"./Video_htdjd_ReviveLayer": "Video_htdjd_ReviveLayer",
"./floor/hp_htdjd_BuffSprite": "hp_htdjd_BuffSprite",
"./role/AI_htdjd_Player": "AI_htdjd_Player",
"./role/Player_htdjd": "Player_htdjd",
"./role/bullet_htdjd": "bullet_htdjd",
"./role/playerInfo_htdjd_Bar": "playerInfo_htdjd_Bar"
} ],
SettleLayout_htdjd_Base: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "bf00eL43wlH/YEmPTwJVi0D", "SettleLayout_htdjd_Base");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../../Mgr/wudian_htdjd_Mgr"), d = t("../../Config/AppSwitchConfig"), r = t("../Prefab/ButWudian_htdjd_Prefab"), s = t("../../Interface/FM_htdjd_Interface"), c = t("../../Util/Common_htdjd"), h = t("../../Base/FM_htdjd_ViewBase"), l = t("../ExportAd/Export1_htdjd_View"), p = t("../ExportAd/Export2_htdjd_View"), u = t("../ExportAd/Export3_htdjd_View"), f = t("../../Util/Log_htdjd_Utils"), y = t("../../Util/App_htdjd_Platform"), g = t("../../Platform/WX/WXAPI"), m = cc._decorator, v = m.ccclass, j = m.property, b = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.advertis = null;
e.clickBut = null;
e.backWudianBut = null;
e.export2Prefab = null;
e.export1Prefab = null;
e.settleView = null;
e.kuangdianPrefab = null;
e.export3Prefab = null;
e.failTitle = null;
e.winTitle = null;
e.failIcon = null;
e.winIcon = null;
e._clickTimingTag_htdjd = !1;
e._clickTag_htdjd = !1;
e.isWin_htdjd = !1;
return e;
}
e.prototype.addEvent_htdjd = function() {};
e.prototype.removeEvent_htdjd = function() {};
e.prototype.updateOpenViewData_htdjd = function(t, e) {
this._initView_htdjd();
this.isWin_htdjd = t;
this.winData_htdjd = e;
if (t) {
this.winTitle.active = !0;
this.winIcon.active = !0;
this.failTitle.active = !1;
this.failIcon.active = !1;
} else {
this.winTitle.active = !1;
this.winIcon.active = !1;
this.failTitle.active = !0;
this.failIcon.active = !0;
}
};
e.prototype.excuteAction_htdjd = function() {
var t = this;
this._clickTimingTag_htdjd = !0;
var e = d.default.getInstance_htdjd().getAppSwitchData_htdjd().btnMoveTimer_htdjd, n = d.default.getInstance_htdjd().getAppSwitchData_htdjd().bannerMoveTimer_htdjd;
this.scheduleOnce(function() {
t.onActionBannerUp_htdjd();
}, n);
this.scheduleOnce(function() {
t.onActionMoveBtnUp_htdjd();
}, e);
};
e.prototype.initView_htdjd = function() {
if (this.backWudianBut) {
var t = this, e = c.default.createPrefab_htdjd(this.backWudianBut, r.default, this.node);
e.onListenerEventView_htdjd(s.handleFM_htdjd(function(n) {
n == e.EventEnumView_htdjd.OpenHistoryView_htdjd ? null != t._banner_htdjd && t._banner_htdjd.hide_htdjd() : n == e.EventEnumView_htdjd.CloseHistoryView_htdjd && null != t._banner_htdjd && t._banner_htdjd.show_htdjd();
}, this));
}
this.settleView && this.advertis.addChild(cc.instantiate(this.settleView));
this.clickBut.on("click", this._onListenerClickButtom_htdjd, this);
this.advertis.getComponent(cc.Widget).updateAlignment();
this.clickButY_htdjd = this.clickBut.y;
this.updateWudianPoint_htdjd();
this.excuteAction_htdjd();
};
e.prototype.updateWudianPoint_htdjd = function() {
if (_.default.wudianFlag_htdjd) {
var t = -(this.advertis.height - 100);
this.clickBut.y = t;
}
};
e.prototype.onActionMoveBtnUp_htdjd = function() {
this._clickTag_htdjd = !0;
this.clickBut.y = this.clickButY_htdjd;
};
e.prototype._onListenerClickButtom_htdjd = function() {
if (this._clickTag_htdjd || !_.default.wudianFlag_htdjd) {
this.unscheduleAllCallbacks();
this.onLisnterClickCall_htdjd();
} else this._clickTimingTag_htdjd || this.excuteAction_htdjd();
};
e.prototype.openExport2Node_htdjd = function() {
var t = this;
f.Log_htdjd_Utils.log_htdjd("打开 export2");
if (this.export2Prefab) {
if (null == this.export2View_htdjd) {
this.export2View_htdjd = c.default.createPrefab_htdjd(this.export2Prefab, p.default, this.node);
this.export2View_htdjd.onListenerEventView_htdjd(s.handleFM_htdjd(function(e) {
e == t.export2View_htdjd.EventEnumView_htdjd.ContinueGame_htdjd && t.onEvent_htdjd_Export2NextClick_htdjd();
}, this));
}
this.export2View_htdjd.showView_htdjd();
} else f.Log_htdjd_Utils.error_htdjd("this.export2Prefab is null");
};
e.prototype.openExport3Node_htdjd = function() {
var t = this;
f.Log_htdjd_Utils.log_htdjd("打开 export3");
if (this.export3Prefab) {
if (null == this.export3View_htdjd) {
this.export3View_htdjd = c.default.createPrefab_htdjd(this.export3Prefab, u.default, this.node);
this.export3View_htdjd.onListenerEventView_htdjd(s.handleFM_htdjd(function(e) {
e == t.export3View_htdjd.EventEnumView_htdjd.ContinueGame_htdjd && t.onEvent_htdjd_Export3NextClick_htdjd();
}, this));
}
this.export3View_htdjd.showView_htdjd();
} else f.Log_htdjd_Utils.error_htdjd("this.export3Prefab is null");
};
e.prototype.onActionBannerUp_htdjd = function() {
this.showBanner_htdjd();
};
e.prototype.openExport1Node_htdjd = function() {
var t = this;
f.Log_htdjd_Utils.log_htdjd("打开 export1");
if (this.export1Prefab) {
if (null == this.export1View_htdjd) {
this.export1View_htdjd = c.default.createPrefab_htdjd(this.export1Prefab, l.default, this.node);
this.export1View_htdjd.onListenerEventView_htdjd(s.handleFM_htdjd(function(e) {
e == t.export1View_htdjd.EventEnumView_htdjd.ContinueGame_htdjd && t.onEvent_htdjd_Export1NextClick_htdjd();
}, this));
}
this.export1View_htdjd.showView_htdjd();
} else f.Log_htdjd_Utils.error_htdjd("this.export1Prefab is null");
};
e.prototype.openKuangdianNode_htdjd = function() {
f.Log_htdjd_Utils.log_htdjd("打开 kuangdian");
this.kuangdianPrefab || f.Log_htdjd_Utils.error_htdjd("this.kuangdianPrefab is null");
};
e.prototype.onEvent_htdjd_Export1NextClick_htdjd = function() {
this.emitListenerEvent_htdjd(this.EventEnumView_htdjd.GameFromSettle);
};
e.prototype.isCanOpenExport3_htdjd = function() {
return !(1 != d.default.getInstance_htdjd().getAppSwitchData_htdjd().popAd_htdjd || !_.default.wudianFlag_htdjd);
};
e.prototype.onEvent_htdjd_Export2NextClick_htdjd = function() {
if (this.isCanOpenExport3_htdjd()) this.openExport3Node_htdjd(); else {
var t = !1;
y.default.is_WECHAT_GAME_htdjd() && g.default.tryShowWXCrazyClick_htdjd() && (t = !0);
t ? this.openKuangdianNode_htdjd() : this.emitListenerEvent_htdjd(this.EventEnumView_htdjd.GameFromSettle);
}
};
e.prototype.onEvent_htdjd_KuangdianNextClick_htdjd = function() {
this.emitListenerEvent_htdjd(this.EventEnumView_htdjd.GameFromSettle);
};
e.prototype.onEvent_htdjd_Export3NextClick_htdjd = function() {
this.emitListenerEvent_htdjd(this.EventEnumView_htdjd.GameFromSettle);
};
a([ j({
tooltip: "区域节点",
type: cc.Node
}) ], e.prototype, "advertis", void 0);
a([ j({
tooltip: "下一步按钮",
type: cc.Node
}) ], e.prototype, "clickBut", void 0);
a([ j({
tooltip: "误点返回按钮 不需要可以不给",
type: cc.Prefab
}) ], e.prototype, "backWudianBut", void 0);
a([ j({
tooltip: "导出2页面",
type: cc.Prefab
}) ], e.prototype, "export2Prefab", void 0);
a([ j({
tooltip: "导出1页面",
type: cc.Prefab
}) ], e.prototype, "export1Prefab", void 0);
a([ j({
tooltip: "结算广告预制体",
type: cc.Prefab
}) ], e.prototype, "settleView", void 0);
a([ j({
tooltip: "狂点页面",
type: cc.Prefab
}) ], e.prototype, "kuangdianPrefab", void 0);
a([ j({
tooltip: "导出3页面",
type: cc.Prefab
}) ], e.prototype, "export3Prefab", void 0);
a([ j({
tooltip: "失败标题",
type: cc.Node
}) ], e.prototype, "failTitle", void 0);
a([ j({
tooltip: "胜利标题",
type: cc.Node
}) ], e.prototype, "winTitle", void 0);
a([ j({
tooltip: "失败Icon",
type: cc.Node
}) ], e.prototype, "failIcon", void 0);
a([ j({
tooltip: "胜利Icon",
type: cc.Node
}) ], e.prototype, "winIcon", void 0);
return a([ v ], e);
}(h.default);
n.default = b;
cc._RF.pop();
}, {
"../../Base/FM_htdjd_ViewBase": "FM_htdjd_ViewBase",
"../../Config/AppSwitchConfig": "AppSwitchConfig",
"../../Interface/FM_htdjd_Interface": "FM_htdjd_Interface",
"../../Mgr/wudian_htdjd_Mgr": "wudian_htdjd_Mgr",
"../../Platform/WX/WXAPI": "WXAPI",
"../../Util/App_htdjd_Platform": "App_htdjd_Platform",
"../../Util/Common_htdjd": "Common_htdjd",
"../../Util/Log_htdjd_Utils": "Log_htdjd_Utils",
"../ExportAd/Export1_htdjd_View": "Export1_htdjd_View",
"../ExportAd/Export2_htdjd_View": "Export2_htdjd_View",
"../ExportAd/Export3_htdjd_View": "Export3_htdjd_View",
"../Prefab/ButWudian_htdjd_Prefab": "ButWudian_htdjd_Prefab"
} ],
ShareAd: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "9b633KiqnxKTrcGcRo7mwzY", "ShareAd");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.AdLocationTypeEnum = void 0;
(function(t) {
t[t.ID_LoopAd = 0] = "ID_LoopAd";
t[t.ID_BannerAd = 1] = "ID_BannerAd";
t[t.ID_InsertAd = 2] = "ID_InsertAd";
t[t.ID_AniAd = 3] = "ID_AniAd";
t[t.ID_HistoryAd = 4] = "ID_HistoryAd";
t[t.ID_MoreGameAd = 5] = "ID_MoreGameAd";
})(n.AdLocationTypeEnum || (n.AdLocationTypeEnum = {}));
cc._RF.pop();
}, {} ],
Sound_htdjd_Mgr: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "f4408q1KolDabTXfdwaMWMQ", "Sound_htdjd_Mgr");
Object.defineProperty(n, "__esModule", {
value: !0
});
var i = function() {
function t() {}
t.isSoundEnabled_htdjd = function() {
return this.enabled_htdjd;
};
t.setSoundEnabled_htdjd = function(t) {
this.enabled_htdjd = t;
this.enabled_htdjd || this.stopMusic_htdjd();
};
t.playMusic_htdjd = function(t) {
if (this.enabled_htdjd) {
var e = this.getSoundUrl_htdjd(t);
cc.resources.load(e, cc.AudioClip, function(t, e) {
t ? cc.error(t) : cc.audioEngine.playMusic(e, !0);
});
}
};
t.playSound_htdjd = function(t) {
if (this.enabled_htdjd) {
var e = this.getSoundUrl_htdjd(t);
cc.resources.load(e, cc.AudioClip, function(t, e) {
t ? cc.error(t) : cc.audioEngine.play(e, !1, 1);
});
}
};
t.getSoundUrl_htdjd = function(t) {
return this.soundResPath_htdjd + t;
};
t.stopMusic_htdjd = function() {
cc.audioEngine.stopMusic();
};
t.enabled_htdjd = !0;
t.soundResPath_htdjd = "Sound/";
return t;
}();
n.default = i;
cc._RF.pop();
}, {} ],
Storage_htdjd_Mgr: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "6c4abL0fqVBiqizVnucKAmq", "Storage_htdjd_Mgr");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.StorageReq = void 0;
var i = t("../Util/App_htdjd_Platform");
n.StorageReq = function() {
this.key_htdjd = null;
this.data_htdjd = {};
this.success_htdjd = null;
this.fail_htdjd = null;
this.complete_htdjd = null;
};
var o = function() {
function t() {}
t.getStorage_htdjd = function(t) {
var e = null;
if (i.default.is_WECHAT_GAME_htdjd()) try {
e = window.wx.getStorageSync(t);
} catch (t) {} else e = cc.sys.localStorage.getItem(t);
console.info(e);
return e;
};
t.setStorage_htdjd = function(t) {
var e = JSON.stringify(t.data_htdjd);
i.default.is_WECHAT_GAME_htdjd() ? window.wx.setStorage({
key: t.key_htdjd,
data: e,
success: t.success_htdjd,
fail: t.fail_htdjd,
complete: t.complete_htdjd
}) : cc.sys.localStorage.setItem(t.key_htdjd, e);
};
return t;
}();
n.default = o;
cc._RF.pop();
}, {
"../Util/App_htdjd_Platform": "App_htdjd_Platform"
} ],
Tools: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "fde6aLni4xBOos8IN5ULUmL", "Tools");
Object.defineProperty(n, "__esModule", {
value: !0
});
var i = function() {
function t() {}
t.delayTimeRun = function(t, e, n, i) {
void 0 === i && (i = 1001);
var o = cc.delayTime(e), a = cc.callFunc(n), _ = cc.sequence(o, a);
t.runAction(_);
};
t.random000 = function(t, e) {
return t == e ? t : Math.floor(Math.random() * (e - t + 1) + t);
};
t.copyArray = function(t) {
return JSON.parse(JSON.stringify(t));
};
return t;
}();
n.default = i;
cc._RF.pop();
}, {} ],
TtMgr: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "e766dwE0HRCdZ7PPuN9JsHk", "TtMgr");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.TtMgr = void 0;
var i = t("../../Config/App_htdjd_Config"), o = function() {
function t() {
this.gameRecorDer = null;
this.recorSucces = null;
this.isok = !1;
}
t.createMoreGamesButton = function() {
"ios" !== t.tt.getSystemInfoSync().platform && t.tt.showMoreGamesModal({
appLaunchOptions: [ {
appId: "TtMgr.ttXXXXXX",
query: "foo=bar&baz=qux",
extraData: {}
} ],
success: function(t) {
console.log("success", t.errMsg);
},
fail: function(t) {
console.log("fail", t.errMsg);
}
});
};
t.initBannerAd = function() {};
t.hindBannerAd = function() {
this.bannerAd && this.bannerAd.hide();
};
t.showBannerAd = function() {
this.bannerAd && this.bannerAd.show();
};
t.initplayAd = function() {};
t.playAd = function(t) {
var e = this;
if (this.playad) {
console.log("广告显示方法调用");
null == t && (t = this.success);
this.success = t;
this.playad.show().then(function() {
console.log("广告显示成功");
}).catch(function(t) {
console.log("广告组件出现问题", t);
e.playad.load().then(function() {
console.log("手动加载成功");
return e.playad.show();
});
});
} else t(!1);
};
t.coordinate = function(e, n) {
var i = t.tt.getSystemInfoSync(), o = cc.winSize.width / i.screenWidth, a = cc.winSize.height / i.screenHeight, _ = 0, d = 0;
if (1 == n) {
_ = e.x / o;
d = e.y / a;
} else {
_ = e.x * o;
d = e.y * a;
}
return cc.v2(_, d);
};
t.prototype.setGameRecorderManager = function() {
var e = this;
this.gameRecorDer = t.tt.getGameRecorderManager();
this.gameRecorDer.onStart(function() {
console.log("录屏开始");
});
this.gameRecorDer.onStop(function() {
e.recorSucces && e.recorSucces();
});
};
t.prototype.onStart = function() {
this.gameRecorDer.start({
duration: 15
});
};
t.prototype.onStop = function(t) {
this.recorSucces = t;
this.gameRecorDer.stop();
};
t.prototype.isPause = function() {
this.gameRecorDer.pause();
};
t.prototype.isResume = function() {
this.gameRecorDer.resume();
};
t.prototype.vibrateShort = function() {};
t.prototype.onVibraLong = function() {};
t.tt = window.tt;
t.playid = i.default.tt_adUnitId_htdjd;
t.adid = i.default.tt_bannerAdUnitId_htdjd;
t.bannerAd = null;
t.playad = null;
t.success = null;
return t;
}();
n.TtMgr = o;
cc._RF.pop();
}, {
"../../Config/App_htdjd_Config": "App_htdjd_Config"
} ],
UIBoss: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "048dcU+IiZFMLeammXbj9ji", "UIBoss");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../../FlyLabelHelpMgr"), d = t("../../HelpMgr"), r = t("../Event/EventEnum"), s = t("../Event/Event_htdjd_Defs"), c = t("../Event/Event_htdjd_Mgr"), h = t("../User/User_htdjd"), l = t("./UIComponent"), p = cc._decorator, u = p.ccclass, f = p.property, y = !1, g = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.bodyArray = [];
e.m_roleNode = null;
e.m_battleLabel = null;
e.m_roleList = [];
e.m_idx = 0;
return e;
}
e.prototype.autoInitUI = function() {
this.updateUI();
};
e.prototype.updateUI = function() {
console.log("打开boss-----------", h.default._gameData_htdjd.m_boss.jdCount);
var t = this.bodyArray.length;
this.m_idx < 0 ? this.m_idx = t - 1 : this.m_idx >= t && (this.m_idx = 0);
if (this.m_idx > h.default._gameData_htdjd.m_boss.jdCount) {
this.m_idx = h.default._gameData_htdjd.m_boss.jdCount;
_.default.flyFailTips("挑战成功前一个BOSS,即可解锁");
}
var e = h.default._gameData_htdjd.m_boss.getBattleCount();
this.m_battleLabel.string = "挑战次数：" + e;
this.m_battleLabel.node.color = e > 0 ? cc.Color.GREEN : cc.Color.RED;
for (var n = this.m_roleList[this.m_idx], i = 0, o = this.m_roleList; i < o.length; i++) {
var a = o[i];
a && (a.active = !1);
}
if (!n) {
(n = cc.instantiate(this.bodyArray[this.m_idx])).x = 0;
n.y = 0;
n.scale = 1.4;
this.m_roleList[this.m_idx] = n;
this.m_roleNode.addChild(n);
}
var d = n.getComponent(dragonBones.ArmatureDisplay);
d.playAnimation(s.playRole_htdjd_Name.attack, 1);
this.scheduleOnce(function() {
d.playAnimation(s.playRole_htdjd_Name.standby, 0);
}, 1);
n.active = !0;
};
e.prototype.changeLeft = function() {
this.m_idx--;
this.updateUI();
};
e.prototype.changeRight = function() {
this.m_idx++;
this.updateUI();
};
e.prototype.battleBoss = function() {
if (!y) {
y = !0;
setTimeout(function() {
y = !1;
}, 100);
if (h.default._gameData_htdjd.m_boss.isCanBattle()) {
h.default._gameData_htdjd.m_boss.battleNow();
d.default.instance.m_nBossBattle = this.m_idx;
console.log("boss下标", d.default.instance.m_nBossBattle);
c.default.emitEvent_htdjd(r.htdjd_Event.WuShuang_Index, 6);
this.close();
} else _.default.flyFailTips("今天挑战次数已经到上限");
}
};
a([ f({
type: [ cc.Prefab ],
displayName: "角色动画"
}) ], e.prototype, "bodyArray", void 0);
a([ f(cc.Node) ], e.prototype, "m_roleNode", void 0);
a([ f(cc.Label) ], e.prototype, "m_battleLabel", void 0);
return a([ u ], e);
}(l.default);
n.default = g;
cc._RF.pop();
}, {
"../../FlyLabelHelpMgr": "FlyLabelHelpMgr",
"../../HelpMgr": "HelpMgr",
"../Event/EventEnum": "EventEnum",
"../Event/Event_htdjd_Defs": "Event_htdjd_Defs",
"../Event/Event_htdjd_Mgr": "Event_htdjd_Mgr",
"../User/User_htdjd": "User_htdjd",
"./UIComponent": "UIComponent"
} ],
UIComponent: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "8f626Toe2FOe5j0m33D48tT", "UIComponent");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.GameEventTarget = void 0;
var _ = t("../../HelpMgr"), d = t("../zqHelp/Tools"), r = function(t) {
o(e, t);
function e() {
var n = t.call(this) || this;
if (e._instance) throw new Error("please use PlayerData.instance");
e._instance = n;
return n;
}
Object.defineProperty(e, "instance", {
get: function() {
e._instance || new e();
return e._instance;
},
enumerable: !1,
configurable: !0
});
return e;
}(cc.EventTarget);
n.GameEventTarget = r;
var s = cc._decorator, c = s.ccclass, h = s.property, l = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.m_openAnimNode = null;
e.m_animType = 0;
e.m_showNode = null;
e.mm_eventNameList = [];
e.m_time = 0;
e.m_waitTime1 = 1;
e.m_waitTime2 = 2;
e.m_waitTime3 = 3;
e._showBannerType = -1;
e.m_isCountOpenTime = -1;
e.ad_data_htdjd = null;
e._isLoad = !1;
return e;
}
n = e;
e.setScreenBtn = function(t) {
this.m_screenBtn = t;
t.zIndex = cc.macro.MAX_ZINDEX;
};
e.prototype.onLoad = function() {
if (!this._isLoad) {
this._isLoad = !0;
this.playOpenAnim();
}
};
e.openScreenLock = function() {
n.m_screenBtn && (n.m_screenBtn.node.active = !0);
};
e.closeScreenLock = function() {
n.m_screenBtn && (n.m_screenBtn.node.active = !1);
};
e.runScreenLockDT = function(t, e) {
if (n.m_screenBtn) if (t > 0) {
n.m_screenBtn.node.active = !0;
d.default.delayTimeRun(n.m_screenBtn.node, t, function() {
e && e();
n.m_screenBtn.node.active = !1;
});
} else e && e(); else e && e();
};
e.prototype.registData = function() {};
e.prototype.waitDataLoad = function() {};
e.prototype.unWaitDataLoad = function() {};
e.prototype.setActiveNode = function(t) {
this.m_showNode = t;
};
e.prototype.getActiveNode = function() {
return this.m_showNode || this.node;
};
e.prototype.open = function(t, e, n, i, o) {
this.getActiveNode().active = !0;
this.autoInitUI(t, e, n, i, o);
this.registEvent();
this.playOpenAnim();
this.updateOpenShowBannerAd();
console.log("open UIComponent   " + this.name);
};
e.prototype.updateOpenShowBannerAd = function() {};
e.prototype.updateCloseShowBannerAd = function() {};
e.prototype.playOpenAnim = function() {
if (this._isLoad) {
this.upInit();
console.error("看这里----------", this.m_animType);
switch (this.m_animType) {
case 0:
this.openAnim();
break;

case 1:
this.runShowAnim();
}
}
};
e.prototype.upInit = function() {
this.m_openAnimNode && (this._initPos || (this._initPos = this.m_openAnimNode.getPosition()));
};
e.prototype.openAnim = function() {
if (this.m_openAnimNode) {
n.openScreenLock();
this.m_openAnimNode.stopAllActions();
console.log("runShowAnim", 0);
var t = this.m_openAnimNode.getComponent(cc.Widget), e = null;
if (t) {
t.enabled = !1;
t.updateAlignment();
e = function() {
t.enabled = !0;
t.updateAlignment();
};
}
var i = this._initPos;
this.m_openAnimNode.scale = .8;
cc.tween(this.m_openAnimNode).set({
x: i.x,
y: i.y
}).to(.3, {
scale: 1
}).call(e).call(this.openFinish.bind(this)).start();
}
};
e.prototype.closeAnim = function() {
if (this.m_openAnimNode) {
n.openScreenLock();
this.m_openAnimNode.stopAllActions();
var t = d.default.random000(0, 2), e = this._initPos;
console.log("runShowAnim", t);
var i = this.m_openAnimNode.getComponent(cc.Widget), o = null;
if (i) {
i.enabled = !1;
i.updateAlignment();
o = function() {
i.enabled = !0;
i.updateAlignment();
};
}
switch (t) {
case 0:
this.m_openAnimNode.scale = 1;
cc.tween(this.m_openAnimNode).set({
x: e.x,
y: e.y
}).to(.3, {
scale: .02
}).call(o).call(this.closeFinish.bind(this)).start();
break;

case 1:
this.m_openAnimNode.scale = 1;
cc.tween(this.m_openAnimNode).set({
x: e.x,
y: e.y
}).to(.24, {
scale: .03
}).call(o).call(this.closeFinish.bind(this)).start();
break;

case 2:
this.m_openAnimNode.scale = 1;
cc.tween(this.m_openAnimNode).set({
x: e.x,
y: e.y
}).to(.2, {
scale: 1.2
}).to(.2, {
scale: .1
}).call(o).call(this.closeFinish.bind(this)).start();
}
}
};
e.prototype.runShowAnim = function() {
if (this.m_openAnimNode) {
n.openScreenLock();
this.m_openAnimNode.stopAllActions();
var t = this._initPos, e = cc.winSize;
console.log("runShowAnim", this.m_openAnimNode.getContentSize());
var i = this.m_openAnimNode.getComponent(cc.Widget), o = null;
if (i) {
i.enabled = !1;
i.updateAlignment();
o = function() {
i.enabled = !0;
i.updateAlignment();
};
}
cc.tween(this.m_openAnimNode).set({
x: t.x + e.width,
y: t.y,
scale: 1
}).to(.3, {
x: t.x,
y: t.y
}).call(o).call(this.openFinish.bind(this)).start();
}
};
e.prototype.runCloseAnim = function() {
var t = this.m_openAnimNode;
n.openScreenLock();
t.stopAllActions();
var e = this._initPos, i = cc.winSize, o = this.m_openAnimNode.getComponent(cc.Widget), a = null;
if (o) {
o.enabled = !1;
o.updateAlignment();
a = function() {
o.enabled = !0;
o.updateAlignment();
};
}
console.log("runCloseAnim", this.m_openAnimNode.getContentSize());
cc.tween(t).set({
x: e.x,
y: e.y,
scale: 1
}).to(.2, {
x: e.x + i.width
}).call(a).call(this.closeFinish.bind(this)).start();
};
e.prototype.execloseAnim = function() {
if (this.m_openAnimNode) switch (this.m_animType) {
case 0:
this.closeAnim();
break;

case 1:
this.runCloseAnim();
break;

default:
this.closeFinish();
} else this.closeFinish();
};
e.prototype.close = function() {
this.execloseAnim();
};
e.prototype.openFinish = function() {
n.closeScreenLock();
this.m_isCountOpenTime >= 0 && (this.m_isCountOpenTime = new Date().getTime());
};
e.prototype.closeFinish = function() {
console.log("关闭界面", this.constructor.name);
n.closeScreenLock();
this.updateCloseShowBannerAd();
if (this.getActiveNode().active) {
this.getActiveNode().active = !1;
this.autoCloseUI();
console.log("closeFinish UIComponent   " + this.name);
this.node.active || n.unEventList(this.mm_eventNameList, this);
}
};
e.prototype.autoInitUI = function() {};
e.prototype.autoCloseUI = function() {};
e.prototype.registEvent = function() {};
e.prototype.removeSelf = function() {
console.log("UIComponent removeSelf  " + this.name);
this.node.destroy();
};
e.prototype.onEvent = function(t, e) {
if (!this.mm_eventNameList[t]) {
this.mm_eventNameList[t] = e;
r.instance.on(t, e, this);
}
};
e.emitEvent = function(t, e, n, i, o, a) {
r.instance.emit(t, e, n, i, o, a);
};
e.prototype.offEvent = function(t) {
r.instance.off(t, this.mm_eventNameList[t], this);
this.mm_eventNameList[t] = null;
};
e.prototype.onDestroy = function() {
n.unEventList(this.mm_eventNameList, this);
this.mm_eventNameList = null;
};
e.unEventList = function(t, e) {
if (t) for (var n in t) {
var i = t[n];
if (i) {
r.instance.off(n, i, e);
t[n] = null;
}
}
};
e.prototype.watchInterstitialVideo = function(t) {
_.default.instance.show_video(t);
};
e.prototype.registerDownLong = function(t, e, n) {
var i = t, o = 0, a = !1, _ = this, d = null;
d = function(t) {
if (a) {
o += t;
_.scheduleOnce(function(t) {
d(t);
}, .3);
}
console.log("update", a, o);
n && n(o);
};
var r = function() {
a = !1;
console.log("取消时间 --------------");
e && e(o);
o = 0;
};
i.on(cc.Node.EventType.TOUCH_START, function() {
a = !0;
d(.01);
}, this);
i.on(cc.Node.EventType.TOUCH_END, r, this);
i.on(cc.Node.EventType.TOUCH_CANCEL, r, this);
};
e.prototype.getUIZIdx = function() {
return this.node.zIndex;
};
var n;
e.m_screenBtn = null;
a([ h(cc.Node) ], e.prototype, "m_openAnimNode", void 0);
a([ h(cc.Integer) ], e.prototype, "m_animType", void 0);
return n = a([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {
"../../HelpMgr": "HelpMgr",
"../zqHelp/Tools": "Tools"
} ],
UIOpenBox: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "f3ccfCplO5JHLBttPmXPhlc", "UIOpenBox");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = cc._decorator, d = _.ccclass, r = _.property, s = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.label = null;
e.text = "hello";
return e;
}
e.prototype.start = function() {};
a([ r(cc.Label) ], e.prototype, "label", void 0);
a([ r ], e.prototype, "text", void 0);
return a([ d ], e);
}(cc.Component);
n.default = s;
cc._RF.pop();
}, {} ],
UIPageItemItem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "784ceib23JAfZCgd1H+tmQB", "UIPageItemItem");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../../FlyLabelHelpMgr"), d = t("../../HelpMgr"), r = t("../User/User_htdjd"), s = t("./UIComponent"), c = cc._decorator, h = c.ccclass, l = c.property, p = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.m_icon = null;
e.m_bg = null;
e.m_user = null;
e.m_has = null;
e.m_goldLabel = null;
e.m_shLabel = null;
e.m_data = null;
return e;
}
e.prototype.setData = function(t) {
this.m_data = t;
this.updateUI();
this.m_user.active && this.selectSelf();
};
e.prototype.updateUI = function() {
this.updateShow();
this.updateVisible();
};
e.prototype.updateShow = function() {
d.default.instance.loadSpriteFrame("wuqi/" + this.m_data.icon, this.m_icon);
d.default.instance.loadSpriteFrame("wuqi/zjm_bgwq0" + (this.m_data.grade + 1), this.m_bg);
this.m_goldLabel.string = "" + this.m_data.gold;
this.m_shLabel.string = "伤害" + Math.floor(10 * (this.m_data.atk + .1)) / 10 + "倍";
};
e.prototype.updateVisible = function() {
var t = r.default.isHasWq(this.m_data.id);
this.m_user.active = r.default.isUserWq(this.m_data.id);
this.m_user.active ? this.m_has.active = !1 : this.m_has.active = t;
this.m_goldLabel.node.active = !t;
};
e.prototype.selectSelf = function() {
s.default.emitEvent("选中武器下标", this, this.m_data);
this.updateVisible();
};
e.prototype.unSelectSelf = function() {
this.updateVisible();
};
e.prototype.downBuy = function() {
if (r.default.subMoney_htdjd2(this.m_data.gold)) {
r.default.addStoreList_htdjd(this.m_data.id);
r.default.saveUserData();
this.downUserWq();
this.updateVisible();
} else _.default.flyFailTips("金币不足快去挑战吧");
};
e.prototype.downUserWq = function() {
if (r.default.isHasWq(this.m_data.id)) {
r.default.setUserWq(this.m_data.id);
r.default.saveUserData();
}
this.updateVisible();
};
a([ l({
type: cc.Sprite,
displayName: "武器icon"
}) ], e.prototype, "m_icon", void 0);
a([ l({
type: cc.Sprite,
displayName: "底板"
}) ], e.prototype, "m_bg", void 0);
a([ l({
type: cc.Node,
displayName: "使用"
}) ], e.prototype, "m_user", void 0);
a([ l({
type: cc.Node,
displayName: "拥有"
}) ], e.prototype, "m_has", void 0);
a([ l({
type: cc.Label,
displayName: "购买金币"
}) ], e.prototype, "m_goldLabel", void 0);
a([ l({
type: cc.Label,
displayName: "伤害比列"
}) ], e.prototype, "m_shLabel", void 0);
return a([ h ], e);
}(cc.Component);
n.default = p;
cc._RF.pop();
}, {
"../../FlyLabelHelpMgr": "FlyLabelHelpMgr",
"../../HelpMgr": "HelpMgr",
"../User/User_htdjd": "User_htdjd",
"./UIComponent": "UIComponent"
} ],
UIPageItem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "24e5digXsxD2KmBXdIvOp8c", "UIPageItem");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../../HelpMgr"), d = t("../zqHelp/ZQJson"), r = t("./UIPageItemItem"), s = cc._decorator, c = s.ccclass, h = (s.property, 
function(t) {
o(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
e.prototype.setData = function(t, e, n) {
for (var i = _.default.instance.getStoreConfig(), o = 0; o < d.default.wq_item_max; o++) {
var a = t + o, s = i[a];
if (!s) return !1;
var c = e[a];
if (!c) {
c = cc.instantiate(n).getComponent(r.default);
this.node.addChild(c.node);
e[a] = c;
c.node.active = !0;
}
c.setData(s);
0 == a && c.selectSelf();
}
return !0;
};
e.prototype.updateShow = function() {};
return a([ c ], e);
}(cc.Component));
n.default = h;
cc._RF.pop();
}, {
"../../HelpMgr": "HelpMgr",
"../zqHelp/ZQJson": "ZQJson",
"./UIPageItemItem": "UIPageItemItem"
} ],
UIRankBox: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "79345NsbVBBPoyYCzoTZQtI", "UIRankBox");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../../../HelpMgr"), d = t("../../Config/Game_htdjd_Config"), r = t("../../User/User_htdjd"), s = t("../UIComponent"), c = cc._decorator, h = c.ccclass, l = c.property, p = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.m_items = [];
e.m_box = null;
e.m_btn = null;
e.m_pwLabel = null;
e.m_spNode = null;
e.m_lkNode = null;
e.m_count = 0;
e.m_openData = null;
return e;
}
e.prototype.autoInitUI = function(t) {
this.m_openData = t;
this.m_count = 0;
this.m_box.opacity = 255;
this.m_btn.active = !1;
t[2] ? this.m_pwLabel.string = "BOSS宝箱" : this.m_pwLabel.string = d.default.rankName[_.default.instance.getPwIdx().lvIdx] + "宝箱";
for (var e = 0, n = this.m_items; e < n.length; e++) {
var i = n[e];
i && (i.active = !1);
}
this.updateUI();
};
e.prototype.openBox = function() {
var t = this;
if (1 != this.m_count) this.m_count > 2 || this.openFinish(); else {
cc.audioEngine.isMusicPlaying() && cc.audioEngine.pauseMusic();
_.default.instance.show_video(function(e) {
e && t.openFinish();
cc.audioEngine.resumeMusic();
});
}
};
e.prototype.openFinish = function() {
var t = this, e = this.m_items[this.m_count];
if (e) {
var n = 840 * this.m_count - 420;
cc.tween(e).set({
x: 0,
scale: .1
}).to(.2, {
x: n,
scale: 1
}).start();
e.active = !0;
this.openBoxNow(e, this.m_openData[this.m_count]);
}
this.m_count++;
this.m_count >= 2 && cc.tween(this.m_box).to(.3, {
opacity: 0
}).call(function() {
t.m_btn.active = !0;
}).start();
this.updateUI();
};
e.prototype.updateUI = function() {
this.m_spNode.active = 1 == this.m_count;
this.m_lkNode.active = 1 == this.m_count;
};
e.prototype.openBoxNow = function(t, e) {
r.default._gameData_htdjd.m_boxData.openNow(e);
var n = e.type, i = cc.find("wqNode", t), o = cc.find("node", t);
switch (n) {
case 0:
cc.find("node/reward/num", t).getComponent(cc.Label).string = "" + e.num;
i.active = !1;
o.active = !0;
r.default.addMoney_htdjd(e.num);
break;

case 1:
var a = i.getChildByName("sp").getComponent(cc.Sprite), d = i.getChildByName("name").getComponent(cc.Label);
i.active = !0;
o.active = !1;
d.string = e.data.name;
_.default.instance.loadSpriteFrame("wuqi/" + e.data.icon, a);
r.default.addStoreList_htdjd(e.data.id);
r.default.saveUserData();
}
};
a([ l(cc.Node) ], e.prototype, "m_items", void 0);
a([ l(cc.Node) ], e.prototype, "m_box", void 0);
a([ l(cc.Node) ], e.prototype, "m_btn", void 0);
a([ l(cc.Label) ], e.prototype, "m_pwLabel", void 0);
a([ l(cc.Node) ], e.prototype, "m_spNode", void 0);
a([ l(cc.Node) ], e.prototype, "m_lkNode", void 0);
return a([ h ], e);
}(s.default);
n.default = p;
cc._RF.pop();
}, {
"../../../HelpMgr": "HelpMgr",
"../../Config/Game_htdjd_Config": "Game_htdjd_Config",
"../../User/User_htdjd": "User_htdjd",
"../UIComponent": "UIComponent"
} ],
UISignInItem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "d4dbd57GdpDVaZjji2wtPWh", "UISignInItem");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../../../FlyLabelHelpMgr"), d = t("../../User/User_htdjd"), r = t("../UIComponent"), s = cc._decorator, c = s.ccclass, h = s.property, l = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.m_glodLabel = null;
e.m_qdNode = null;
e.m_yjQdNode = null;
e.m_doubleNode = null;
e.m_idx = 0;
e.m_notSignInNode = null;
e.m_isNotTime = !1;
return e;
}
e.prototype.onLoad = function() {
this.m_notSignInNode = cc.find("zjm_bgqd03", this.node);
this.onEvent("签到", this.updateUI.bind(this));
this.updateUI();
};
e.prototype.updateNotSignIn = function() {
var t = d.default.getSignCount() >= this.m_idx;
this.m_qdNode.active = !t;
this.m_doubleNode.active = !1;
this.m_yjQdNode.active = t;
this.m_notSignInNode.active = t;
this.m_isNotTime = !t;
t ? this.m_glodLabel.string = "" : this.m_glodLabel.node.color = cc.Color.RED;
};
e.prototype.updateUI = function() {
this.m_isNotTime = !1;
this.m_glodLabel.node.color = cc.Color.BLACK;
this.m_glodLabel.string = d.default.getSignGold(this.m_idx) + "金币";
if (d.default.isSignIn()) if (d.default.getSignCount() == this.m_idx) {
this.m_qdNode.active = !1;
this.m_doubleNode.active = !d.default.isDoubleSignIn();
this.m_yjQdNode.active = !(this.m_qdNode.active || this.m_doubleNode.active);
this.m_notSignInNode.active = !1;
} else this.updateNotSignIn(); else if (d.default.getSignCount() == this.m_idx - 1) {
this.m_qdNode.active = !0;
this.m_doubleNode.active = !1;
this.m_yjQdNode.active = !1;
this.m_notSignInNode.active = !1;
} else this.updateNotSignIn();
};
e.prototype.signInNow = function() {
if (this.m_isNotTime) return _.default.flyFailTips("未到领取时间");
if (this.m_yjQdNode.active) return _.default.flyFailTips("已经签到");
if (this.m_doubleNode.active) {
cc.audioEngine.isMusicPlaying() && cc.audioEngine.pauseMusic();
this.watchInterstitialVideo(this.doubleSign.bind(this));
} else {
d.default.signIn();
r.default.emitEvent("签到");
}
};
e.prototype.doubleSign = function(t) {
cc.audioEngine.resumeMusic();
if (t) {
d.default.doubleSignIn();
r.default.emitEvent("签到");
}
};
a([ h(cc.Label) ], e.prototype, "m_glodLabel", void 0);
a([ h(cc.Node) ], e.prototype, "m_qdNode", void 0);
a([ h(cc.Node) ], e.prototype, "m_yjQdNode", void 0);
a([ h(cc.Node) ], e.prototype, "m_doubleNode", void 0);
a([ h(cc.Integer) ], e.prototype, "m_idx", void 0);
return a([ c ], e);
}(r.default);
n.default = l;
cc._RF.pop();
}, {
"../../../FlyLabelHelpMgr": "FlyLabelHelpMgr",
"../../User/User_htdjd": "User_htdjd",
"../UIComponent": "UIComponent"
} ],
UISignIn: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "12396i5kDpNZ4sadbrMPJcs", "UISignIn");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../UIComponent"), d = cc._decorator, r = d.ccclass, s = (d.property, 
function(t) {
o(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
return a([ r ], e);
}(_.default));
n.default = s;
cc._RF.pop();
}, {
"../UIComponent": "UIComponent"
} ],
UIWuQi: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "cfc8ducsjVKy5zLxtlH/uma", "UIWuQi");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../../GameScript/Scene_htdjd_Hall"), d = t("../../HelpMgr"), r = t("../Event/EventEnum"), s = t("../Event/Event_htdjd_Defs"), c = t("../Event/Event_htdjd_Mgr"), h = t("../User/User_htdjd"), l = t("../zqHelp/GSkinHelp"), p = t("../zqHelp/ZQJson"), u = t("./UIComponent"), f = t("./UIPageItem"), y = t("./UIPageItemItem"), g = cc._decorator, m = g.ccclass, v = g.property, j = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.skeNode = null;
e.pageView = null;
e.pageItem = [];
e.pageItemItem = [];
e.baseItem = null;
e.buyBtnNode = null;
e.useBtnNode = null;
e.selectNode = null;
e.m_selectNode = null;
e.curIndex = 0;
e.m_gjLabel = null;
e.m_hpLabel = null;
e.m_leftNode = null;
e.m_rightNode = null;
e.m_maxCount = 0;
e.m_time = 0;
return e;
}
e.prototype.updatePageItem = function() {
var t = d.default.instance.getStoreConfig();
console.log("--------data-----", t);
var e = t.length, n = Math.ceil(e / p.default.wq_item_max);
this.m_maxCount = n;
for (var i = 0; i < n; i++) if (!this.pageItem[i]) {
var o = cc.instantiate(this.pageItem[0].node), a = o.getComponent(f.default);
this.pageItem[i] = a;
this.pageView.addPage(o);
}
for (i = 0; i < this.pageItem.length; i++) {
var _ = i * p.default.wq_item_max;
(a = this.pageItem[i]).setData(_, this.pageItemItem, this.baseItem);
}
};
e.prototype.onEnable = function() {
c.default.onEvent_htdjd(r.htdjd_Event.curClickHallPlayer, this.show_htdjd_SelectRole, this);
c.default.onEvent_htdjd(r.htdjd_Event.UPDATE_WQ_SKIN, this.switchWqSkin, this);
};
e.prototype.onDisable = function() {
c.default.offEvent_htdjd(r.htdjd_Event.curClickHallPlayer, this.show_htdjd_SelectRole, this);
c.default.onEvent_htdjd(r.htdjd_Event.UPDATE_WQ_SKIN, this.switchWqSkin, this);
};
e.prototype.show_htdjd_SelectRole = function(t) {
this.curIndex = t;
this.skeNode.removeAllChildren();
this.updateLgAnim(_.default.m_self._armatureDisplay.node, 0);
};
e.prototype.updateLgAnim = function(t) {
t.x = 0;
t.y = 50;
t.scaleX = 1.8;
t.scaleY = 1.8;
t.setParent(this.skeNode);
var e = t.getComponent(dragonBones.ArmatureDisplay);
this._armatureDisplay = e;
e.playAnimation(s.playRole_htdjd_Name.attack, 1);
this.scheduleOnce(function() {
e.playAnimation(s.playRole_htdjd_Name.walk, 0);
}, 1);
this.updateShow();
this.switchWqSkin(h.default._gameData_htdjd.userWq);
};
e.prototype.updateShow = function() {};
e.prototype.switchWqSkin = function(t) {
var e = l.default.instance.getWqSKin(t);
if (e) {
this._armatureDisplay.armature().getSlot("wuqi1").childArmature = e;
for (var n = 0; n < this.pageItemItem.length; n++) this.pageItemItem[n].updateVisible();
}
};
e.prototype.updateSelectIdx = function(t, e) {
this.m_selectNode = t;
this.selectNode.parent = t.node;
this.selectNode.x = 0;
this.selectNode.y = 0;
this.buyBtnNode.active = !h.default.isHasWq(e.id);
this.useBtnNode.active = !this.buyBtnNode.active;
this.switchWqSkin(e.id);
this.updateLabel();
};
e.prototype.updateLabel = function() {
var t = h.default.getWQAtt();
this.m_gjLabel.string = "伤害:+" + t[0];
this.m_hpLabel.string = "防御:+" + t[1];
};
e.prototype.update = function(t) {
this.m_time += t;
if (this.m_time >= .2) {
this.m_time = 0;
this.updateLabel();
}
};
e.prototype.autoInitUI = function(t) {
this.show_htdjd_SelectRole(t);
this.onEvent("选中武器下标", this.updateSelectIdx.bind(this));
d.default.instance.close_native_banner();
};
e.prototype.autoCloseUI = function() {
_.default.m_self._armatureDisplay.node.setParent(_.default.m_self.skeNode);
d.default.instance.show_banner_native();
};
e.prototype.onLoad = function() {
var e = this;
t.prototype.onLoad.call(this);
setTimeout(function() {
e.updatePageItem();
}, 100);
};
e.prototype.downUserWq = function() {
this.m_selectNode.downUserWq();
};
e.prototype.downBuyWq = function() {
this.m_selectNode.downBuy();
};
a([ v({
type: cc.Node,
displayName: "模型"
}) ], e.prototype, "skeNode", void 0);
a([ v({
type: cc.PageView,
displayName: "pageView"
}) ], e.prototype, "pageView", void 0);
a([ v({
type: f.default,
displayName: "一页"
}) ], e.prototype, "pageItem", void 0);
a([ v({
type: y.default,
displayName: "武器item"
}) ], e.prototype, "pageItemItem", void 0);
a([ v({
type: cc.Node,
displayName: "武器baseitem"
}) ], e.prototype, "baseItem", void 0);
a([ v({
type: cc.Node,
displayName: "购买按钮"
}) ], e.prototype, "buyBtnNode", void 0);
a([ v({
type: cc.Node,
displayName: "使用按钮"
}) ], e.prototype, "useBtnNode", void 0);
a([ v({
type: cc.Node,
displayName: "选中框"
}) ], e.prototype, "selectNode", void 0);
a([ v({
type: cc.Label,
displayName: "额外伤害"
}) ], e.prototype, "m_gjLabel", void 0);
a([ v({
type: cc.Label,
displayName: "额外生命"
}) ], e.prototype, "m_hpLabel", void 0);
a([ v({
type: cc.Node,
displayName: "左边按钮"
}) ], e.prototype, "m_leftNode", void 0);
a([ v({
type: cc.Node,
displayName: "右边按钮"
}) ], e.prototype, "m_rightNode", void 0);
return a([ m ], e);
}(u.default);
n.default = j;
cc._RF.pop();
}, {
"../../GameScript/Scene_htdjd_Hall": "Scene_htdjd_Hall",
"../../HelpMgr": "HelpMgr",
"../Event/EventEnum": "EventEnum",
"../Event/Event_htdjd_Defs": "Event_htdjd_Defs",
"../Event/Event_htdjd_Mgr": "Event_htdjd_Mgr",
"../User/User_htdjd": "User_htdjd",
"../zqHelp/GSkinHelp": "GSkinHelp",
"../zqHelp/ZQJson": "ZQJson",
"./UIComponent": "UIComponent",
"./UIPageItem": "UIPageItem",
"./UIPageItemItem": "UIPageItemItem"
} ],
UI_htdjd_Level: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "b8280PpiphKhaUhxxV7qaaQ", "UI_htdjd_Level");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../Script/Config/Game_htdjd_Config"), d = cc._decorator, r = d.ccclass, s = d.property, c = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.starImgArr = [];
e.lvImgArr = [];
e.lvText = null;
e.lvImg = null;
return e;
}
e.prototype.set_htdjd_RankInfo = function(t) {
if (0 != t) if (t) {
var e = t % 3;
0 == e && (e = 3);
for (var n = 0; n < 3; n++) this.starImgArr[n].node.active = n + 1 <= e;
console.log("排位信息", e, t);
var i = t, o = _.default.max;
if (i > o) {
i = o;
e = t - o;
}
this.lvText.string = _.default.rankName[i] + e + "星";
var a = this.lvImgArr.length - 1, d = Math.floor((t - 1) / 3);
d > a && (d = a);
this.lvImg.spriteFrame = this.lvImgArr[d];
this.node.active = !0;
} else this.node.active = !1; else this.node.active = !1;
};
a([ s([ cc.Sprite ]) ], e.prototype, "starImgArr", void 0);
a([ s([ cc.SpriteFrame ]) ], e.prototype, "lvImgArr", void 0);
a([ s(cc.Label) ], e.prototype, "lvText", void 0);
a([ s(cc.Sprite) ], e.prototype, "lvImg", void 0);
return a([ r ], e);
}(cc.Component);
n.default = c;
cc._RF.pop();
}, {
"../Script/Config/Game_htdjd_Config": "Game_htdjd_Config"
} ],
User_htdjd: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "a1a5ei05EVBtYVLpdIe0BNl", "User_htdjd");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.UserGame_htdjd_Data = n.OpenBox = n.BossData = n.SignInData = void 0;
var i = t("../Event/Event_htdjd_Mgr"), o = t("../Event/EventEnum"), a = t("../Mgr/Storage_htdjd_Mgr"), _ = t("../Net/Net_Mgr"), d = t("../../FlyLabelHelpMgr"), r = t("../../HelpMgr"), s = t("../zqHelp/Tools"), c = t("../Event/Event_htdjd_Defs"), h = function() {
this.signIn = 0;
this.signInDay = 0;
this.isDouble = 0;
this.signIn = 0;
this.signInDay = 0;
this.isDouble = 0;
};
n.SignInData = h;
var l = function() {
function t(t) {
this.battleCount = 0;
this.dayCount = 0;
this.jdCount = 0;
if (t) {
this.battleCount = t.battleCount || 0;
this.dayCount = t.dayCount || 0;
this.jdCount = t.jdCount || 0;
} else {
this.battleCount = 0;
this.dayCount = 0;
this.jdCount = 0;
}
}
t.prototype.battleNow = function() {
this.battleCount++;
this.dayCount++;
f.saveUserData();
};
t.prototype.battleWin = function() {
this.jdCount = Math.max(this.jdCount, r.default.instance.m_nBossBattle + 1);
};
t.prototype.cleanDay = function() {
this.dayCount = 0;
};
t.prototype.getBattleCount = function() {
return (_.default.WX_SdkCustomKey.bossCount || 1) - this.dayCount;
};
t.prototype.isCanBattle = function() {
return this.getBattleCount() > 0;
};
return t;
}();
n.BossData = l;
var p = function() {
function t(t) {
this.m_allList = [];
this.m_dayList = [];
if (t) {
this.m_allList = t.m_allList || [];
this.m_dayList = t.m_dayList || [];
} else {
this.m_allList = [];
this.m_dayList = [];
}
}
t.prototype.clearOnDay = function() {
this.m_dayList = [];
};
t.prototype.getGold = function() {
var t = f.LeveNum, e = {
type: 0,
num: 0,
data: null
};
e.type = 0;
e.num = s.default.random000(40, 120) + t;
if (r.default.instance.isBossType()) {
var n = r.default.instance.m_nBossBattle + 1;
e.num *= 1 + (n + 2) / 10;
e.num += 100 + 50 * n;
e.num = Math.floor(e.num);
}
return e;
};
t.prototype.getWuqi = function() {
var t = {
type: 0,
num: 0,
data: null
};
t.type = 1;
var e = [], n = r.default.instance.getStoreConfig();
if (n) for (var i = 0, o = n; i < o.length; i++) {
var a = o[i];
f.isHasWq(a.id) || e.push(a);
}
if (e.length <= 0) return null;
var _ = e[s.default.random000(0, e.length - 1)], d = _.id;
t.num = d;
t.data = _;
return t;
};
t.prototype.getWuqiPifu = function(t) {
for (var e = Math.floor(this.m_allList.length / 10), n = t, i = 0, o = this.m_allList; i < o.length; i++) o[i].type > 0 && n++;
if (0 == n) return this.getWuqi();
if (r.default.instance.isBossType()) {
var a = s.default.random000(0, 100);
console.log("22222222222获得武器皮肤几率", a);
return a <= 50 ? this.getWuqi() : void 0;
}
console.log("获得武器皮肤几率", e, n);
if (n < e) {
a = s.default.random000(0, 100);
console.log("000000000000获得武器皮肤几率", a);
if (a <= 60) return this.getWuqi();
} else {
a = s.default.random000(0, 100);
console.log("1111111111获得武器皮肤几率", a);
if (a <= 10) return this.getWuqi();
}
return null;
};
t.prototype.getOpenBoxData = function() {
var t = !1;
if (-1 == r.default.instance.m_gameIsWin) {
if (0 != this.m_allList.length) {
t = !0;
return;
}
t = !0;
}
var e = this.m_dayList.length / 2 + 1, n = s.default.random000(0, 100), i = 100 / e, o = [];
if (r.default.instance.isBossType()) {
t = !0;
o[2] = r.default.instance.m_nBossBattle + 1;
} else r.default.instance.m_gameIsWin == c.GameOver_htdjd_Type.lose ? i *= .5 : r.default.instance.m_gameIsWin == c.GameOver_htdjd_Type.draw && (i *= .7);
if (t || i > n) for (var a = 0, _ = 0; _ < 2; _++) {
var d = this.getWuqiPifu(a);
d ? a++ : d = this.getGold();
o[_] = d;
}
if (o.length > 0 && s.default.random000(0, 100) <= 50) {
var h = o[0], l = o[1];
if (h.type > 0) {
o[0] = l;
o[1] = h;
}
0 == o[1].type && (l.num += 100);
}
console.error("是否打开宝箱", i, o);
return o;
};
t.prototype.openNow = function(t) {
this.m_dayList.push(t);
this.m_allList.push(t);
};
return t;
}();
n.OpenBox = p;
var u = function() {
this.moneyNum = 0;
this.levelNum = 1;
this.crystalNum = 0;
this.unlockedItem = [ 0 ];
this.playerLv = [];
this.usedItem = 0;
this.rankStar = 1;
this.storeList = [];
this.userWq = 0;
this.signInData = null;
this.m_downWxOpenIds = {};
this.m_boxData = null;
this.m_boss = null;
};
n.UserGame_htdjd_Data = u;
var f = function() {
function t() {}
Object.defineProperty(t, "isLogin_htdjd", {
get: function() {
return "" != t.code_htdjd || "" != t.token_htdjd;
},
enumerable: !1,
configurable: !0
});
t.getSaveData_htdjd = function() {
return JSON.stringify(t._gameData_htdjd);
};
t.initiUser_htdjd = function(e) {
if (!this.isInit) {
this.isInit = !0;
null == e && (e = a.default.getStorage_htdjd("userData"));
console.log("*****************************  User initUser  **************************************  ");
console.log(e);
if (e && 0 != e) {
e = JSON.parse(e);
t._gameData_htdjd.levelNum = e.levelNum;
t._gameData_htdjd.moneyNum = e.moneyNum;
t._gameData_htdjd.crystalNum = e.crystalNum;
t._gameData_htdjd.usedItem = 0 | e.usedItem;
t._gameData_htdjd.rankStar = 1 | e.rankStar;
t._gameData_htdjd.storeList = e.storeList || [];
t._gameData_htdjd.userWq = e.userWq || -100;
t._gameData_htdjd.signInData = e.signInData || new h();
t._gameData_htdjd.m_downWxOpenIds = e.m_downWxOpenIds || {};
t._gameData_htdjd.m_boxData = new p(e.m_boxData);
t._gameData_htdjd.m_boss = new l(e.m_boss);
console.log("--------------", t._gameData_htdjd.userWq, e.userWq);
if (null != e.unlockedItem) for (var n = e.unlockedItem, i = 0; i < n.length; ++i) t._gameData_htdjd.unlockedItem.push(n[i]); else t._gameData_htdjd.unlockedItem.push(0);
console.log("data.playerLv", e.playerLv);
if (null != e.playerLv) {
var o = e.playerLv;
for (i = 0; i < o.length; ++i) t._gameData_htdjd.playerLv[i] = o[i];
} else t._gameData_htdjd.playerLv.push(0);
null != e.usedItem && (t._gameData_htdjd.usedItem = e.usedItem);
t.saveUserData();
} else {
t._gameData_htdjd.m_boxData = new p(null);
t._gameData_htdjd.m_boss = new l(null);
t._gameData_htdjd.unlockedItem.push(0);
t._gameData_htdjd.playerLv.push(0);
t._gameData_htdjd.levelNum = 1;
t._gameData_htdjd.moneyNum = 0;
t._gameData_htdjd.crystalNum = 0;
t._gameData_htdjd.usedItem = 0;
t._gameData_htdjd.rankStar = 1;
t._gameData_htdjd.signInData = new h();
t.saveUserData();
}
this.resetSign();
this.updateOpenIds();
}
};
t.updateOpenIds = function() {
var e = new Date().getDate();
console.log("日期", e);
if (t._gameData_htdjd.m_downWxOpenIds.day != e) {
console.error("日期不一样------------清除数据");
t._gameData_htdjd.m_downWxOpenIds = {};
t._gameData_htdjd.m_downWxOpenIds.day = e;
t._gameData_htdjd.m_boxData.clearOnDay();
t._gameData_htdjd.m_boss.cleanDay();
}
};
t.saveDownWxOpenIds = function(e, n) {
if (!t._gameData_htdjd.m_downWxOpenIds[e]) {
t._gameData_htdjd.m_downWxOpenIds[e] = n;
console.log("跳转游戏成功----------------------", e);
t.saveUserData();
}
};
t.resetSign = function() {
if (!this.isSignIn()) {
t._gameData_htdjd.signInData.isDouble = 0;
t._gameData_htdjd.signInData.signIn >= 7 && (t._gameData_htdjd.signInData.signIn = 0);
}
};
t.getDay = function() {
return new Date().getDate();
};
t.isSignIn = function() {
var e = this.getDay();
return t._gameData_htdjd.signInData.signInDay == e;
};
t.getSignCount = function() {
return t._gameData_htdjd.signInData.signIn;
};
t.signIn = function() {
if (!this.isSignIn()) {
t._gameData_htdjd.signInData.signInDay = this.getDay();
t._gameData_htdjd.signInData.signIn += 1;
this.addSignIn();
}
};
t.isDoubleSignIn = function() {
return t._gameData_htdjd.signInData.isDouble > 0;
};
t.doubleSignIn = function() {
if (!this.isDoubleSignIn()) {
t._gameData_htdjd.signInData.isDouble = 1;
this.addSignIn();
}
};
t.addSignIn = function() {
if (t._gameData_htdjd.signInData.signIn >= 7) return this.getPifu();
var e = this.getSignGold(t._gameData_htdjd.signInData.signIn);
this.addMoney_htdjd(e);
d.default.flyFinishTips("签到成功,获得" + e + "金币");
};
t.getSignGold = function(t) {
return 100 * t + 300;
};
t.getPifu = function() {
if (t.unlockItem_htdjd(3)) {
t.saveUserData();
d.default.flyFinishTips("签到成功,获得稀有皮肤");
} else {
var e = this.getSignGold(7);
this.addMoney_htdjd(e);
d.default.flyWarnTips("签到成功,您已获得该皮肤,转换为" + e + "金币");
}
};
t.setLeveNum_htdjd = function(e) {
t._gameData_htdjd.levelNum = e;
};
t.saveUserData = function() {
var e = new a.StorageReq();
e.key_htdjd = "userData";
e.data_htdjd = t._gameData_htdjd;
a.default.setStorage_htdjd(e);
};
t.subMoney_htdjd = function(e) {
e = Math.ceil(e);
var n = t._gameData_htdjd.moneyNum;
t._gameData_htdjd.moneyNum -= e;
t._gameData_htdjd.moneyNum < 0 && (t._gameData_htdjd.moneyNum = 0);
t.saveUserData();
i.default.emitEvent_htdjd(o.htdjd_Event.htdjd_Game_OnUserMoneyChange_htdjd, {
curr: t._gameData_htdjd.moneyNum,
last: n
});
};
t.isSubMoney = function(e) {
e = Math.ceil(e);
return !(t._gameData_htdjd.moneyNum - e < 0);
};
t.subMoney_htdjd2 = function(e) {
e = Math.ceil(e);
if (!(t._gameData_htdjd.moneyNum - e < 0)) {
t._gameData_htdjd.moneyNum -= e;
var n = t._gameData_htdjd.moneyNum;
t._gameData_htdjd.moneyNum < 0 && (t._gameData_htdjd.moneyNum = 0);
t.saveUserData();
i.default.emitEvent_htdjd(o.htdjd_Event.htdjd_Game_OnUserMoneyChange_htdjd, {
curr: t._gameData_htdjd.moneyNum,
last: n
});
return !0;
}
};
t.getLeveNum_htdjd = function() {
return t._gameData_htdjd.levelNum;
};
t.addMoney_htdjd = function(e) {
e = Math.ceil(e);
var n = t._gameData_htdjd.moneyNum;
console.log("添加金币", e);
t._gameData_htdjd.moneyNum += e;
t.saveUserData();
i.default.emitEvent_htdjd(o.htdjd_Event.htdjd_Game_OnUserMoneyChange_htdjd, {
curr: t._gameData_htdjd.moneyNum,
last: n
});
};
t.getMoney_htdjd = function() {
return t._gameData_htdjd.moneyNum;
};
t.addRankStar = function() {
t._gameData_htdjd.rankStar++;
t._gameData_htdjd.levelNum++;
19 == t._gameData_htdjd.levelNum && t._gameData_htdjd.rankStar > 3 && (t._gameData_htdjd.rankStar = 3);
if (t._gameData_htdjd.levelNum < 19 && t._gameData_htdjd.rankStar > 3) {
t._gameData_htdjd.rankStar = 1;
return !0;
}
return !1;
};
t.getRankStar = function() {
return t._gameData_htdjd.rankStar;
};
Object.defineProperty(t, "LeveNum", {
get: function() {
return t._gameData_htdjd.levelNum;
},
enumerable: !1,
configurable: !0
});
t.getUsedItem = function() {
return t._gameData_htdjd.usedItem;
};
Object.defineProperty(t, "monery", {
get: function() {
return t._gameData_htdjd.moneyNum;
},
enumerable: !1,
configurable: !0
});
t.getPlayerLv_htdjd = function(e) {
if (t._gameData_htdjd.playerLv[e] >= 0) return t._gameData_htdjd.playerLv[e];
t._gameData_htdjd.playerLv[e] = 0;
return 0;
};
t.addPlayerLv_htdjd = function(e) {
return t._gameData_htdjd.playerLv[e] >= 0 ? t._gameData_htdjd.playerLv[e] += 1 : t._gameData_htdjd.playerLv[e] = 0;
};
t.isHasWq = function(e) {
return t.getStoreList_htdjd(e) >= 1;
};
t.isUserWq = function(e) {
return t._gameData_htdjd.userWq == e;
};
t.getStoreList_htdjd = function(e) {
e -= 1;
return t._gameData_htdjd.storeList[e] || 0;
};
t.addStoreList_htdjd = function(e) {
e -= 1;
return t._gameData_htdjd.storeList[e] >= 0 ? t._gameData_htdjd.storeList[e] += 1 : t._gameData_htdjd.storeList[e] = 1;
};
t.getWQAtt = function() {
var t = r.default.instance.getStoreConfig(), e = 0, n = 0;
if (t) for (var i = 0, o = t; i < o.length; i++) {
var a = o[i];
if (this.isHasWq(a.id)) {
e += 10 * a.atk;
n += 5 * a.atk;
}
}
return [ e, n = Math.floor(n) ];
};
t.atkByWuId = function(t) {
var e = 1, n = r.default.instance.getStoreConfig()[t - 1];
n && n.atk && (e = n.atk + .1);
return e;
};
t.getAtkTo = function(e) {
var n = this.getWQAtt()[0] || 0, i = this.atkByWuId(t._gameData_htdjd.userWq), o = 0;
o = e * i;
o -= n;
console.error("我最终伤害", o, e, n, i);
return o;
};
t.getMyHurt = function(t, e) {
var n = this.atkByWuId(e), i = 0;
i = t * n;
var o = s.default.random000(0, 40) * n;
i -= o;
var a = this.getWQAtt()[1] || 0;
i += a;
console.error("我最终掉血", i, t, n, e, a, o);
return i;
};
t.setUserWq = function(e) {
t._gameData_htdjd.userWq = e;
i.default.emitEvent_htdjd(o.htdjd_Event.UPDATE_WQ_SKIN, t._gameData_htdjd.userWq);
};
t.subRankStar = function() {
t._gameData_htdjd.rankStar--;
t._gameData_htdjd.rankStar <= 1 && (t._gameData_htdjd.rankStar = 1);
};
t.addCrystal_htdjd = function(e) {
e = Math.ceil(e);
var n = t._gameData_htdjd.crystalNum;
t._gameData_htdjd.crystalNum += e;
i.default.emitEvent_htdjd(o.htdjd_Event.htdjd_Game_OnUserCrystalChange_htdjd, {
curr: t._gameData_htdjd.crystalNum,
last: n
});
};
t.setUsedItem = function(e) {
t._gameData_htdjd.usedItem = e;
};
t.subCrystal_htdjd = function(e) {
e = Math.ceil(e);
var n = t._gameData_htdjd.crystalNum;
t._gameData_htdjd.crystalNum -= e;
t._gameData_htdjd.crystalNum < 0 && (t._gameData_htdjd.crystalNum = 0);
i.default.emitEvent_htdjd(o.htdjd_Event.htdjd_Game_OnUserCrystalChange_htdjd, {
curr: t._gameData_htdjd.crystalNum,
last: n
});
};
t.getWJSPF = function() {
for (var t = [], e = 0; e < 10; e++) this.itemIsUnlocked_htdjd(e) || t.push(e);
if (t.length <= 0) return s.default.random000(0, 9);
console.log("随机的皮肤", t);
return t[s.default.random000(0, t.length - 1)];
};
t.getItemUnlocked_htdjd = function() {
for (var e = new Array(), n = 0; n < t._gameData_htdjd.unlockedItem.length; ++n) e.push(t._gameData_htdjd.unlockedItem[n]);
return e;
};
t.itemIsUnlocked_htdjd = function(e) {
for (var n = 0; n < t._gameData_htdjd.unlockedItem.length; ++n) if (t._gameData_htdjd.unlockedItem[n] == e) return !0;
return !1;
};
t.getCrystal_htdjd = function() {
return t._gameData_htdjd.crystalNum;
};
t.ItemIsUnlocked = function(e) {
for (var n = 0; n < t._gameData_htdjd.unlockedItem.length; ++n) if (t._gameData_htdjd.unlockedItem[n] == e) return !0;
return !1;
};
t.unlockItem_htdjd = function(e) {
if (t.itemIsUnlocked_htdjd(e)) {
console.log("商店重复解锁 id : ", e);
return !1;
}
_.default.sendAloConttrol(4);
t._gameData_htdjd.unlockedItem.push(e);
i.default.emitEvent_htdjd(o.htdjd_Event.htdjd_Game_OnUserUnlockedStore_htdjd, {
unlocked: e
});
return !0;
};
Object.defineProperty(t, "curUsedItem_htdjd", {
get: function() {
return t._gameData_htdjd.usedItem;
},
set: function(e) {
t._gameData_htdjd.usedItem = e;
},
enumerable: !1,
configurable: !0
});
t.openId_htdjd = "";
t.code_htdjd = "";
t.token_htdjd = null;
t.gender_htdjd = 0;
t.nickName_htdjd = "";
t._gameData_htdjd = new u();
t.isInit = !1;
return t;
}();
n.default = f;
cc._RF.pop();
}, {
"../../FlyLabelHelpMgr": "FlyLabelHelpMgr",
"../../HelpMgr": "HelpMgr",
"../Event/EventEnum": "EventEnum",
"../Event/Event_htdjd_Defs": "Event_htdjd_Defs",
"../Event/Event_htdjd_Mgr": "Event_htdjd_Mgr",
"../Mgr/Storage_htdjd_Mgr": "Storage_htdjd_Mgr",
"../Net/Net_Mgr": "Net_Mgr",
"../zqHelp/Tools": "Tools"
} ],
Utilit_htdjd: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "61c44zlHUFAS7qfo4uDNl9l", "Utilit_htdjd");
Object.defineProperty(n, "__esModule", {
value: !0
});
var i = t("../Config/App_htdjd_Config"), o = t("./App_htdjd_Platform"), a = t("../Config/AppSwitchConfig"), _ = function() {
function t() {}
t.convertDesignToFrameSize_htdjd = function(t) {
var e = t.convertToWorldSpace(cc.v2(0, t.height)), n = t.width, i = cc.view.getFrameSize(), o = (cc.view.getDesignResolutionSize(), 
cc.view.getVisibleSize()), a = i.width / o.height, _ = cc.director.getScene().getChildByName("Canvas");
if (_) {
var d = _.getComponent(cc.Canvas);
d.fitWidth && d.fitHeight || (d.fitWidth ? a = i.width / o.width : d.fitHeight && (a = i.height / o.height));
}
var r = o.height - e.y, s = e.x * a, c = r * a, h = n * a, l = {};
l.left = s;
l.top = c;
l.width = h;
return l;
};
t.checkVersions_htdjd = function() {
var t = i.default.Versions_htdjd;
return null === t || "" === t || !o.default.is_WECHAT_GAME_htdjd() || t === a.default.getInstance_htdjd().getAppSwitchData_htdjd().version_htdjd;
};
t.colorHex2Rgb_htdjd = function(t) {
var e = cc.color(75, 154, 228);
if (6 == t.length) {
var n = parseInt("0x" + t.slice(0, 2)), i = parseInt("0x" + t.slice(2, 4)), o = parseInt("0x" + t.slice(4, 6));
e.r = n;
e.g = i;
e.b = o;
}
return e;
};
t.random_htdjd = function(t) {
return Math.floor(Math.random() * t);
};
t.htdjd_OriginStageWidth_htdjd = 1334;
t.htdjd_OriginStageHeight_htdjd = 750;
t.htdjd_grayscaleMat_htdjd = [ .3086, .6094, .082, 0, 0, .3086, .6094, .082, 0, 0, .3086, .6094, .082, 0, 0, 0, 0, 0, 1, 0 ];
return t;
}();
n.default = _;
cc._RF.pop();
}, {
"../Config/AppSwitchConfig": "AppSwitchConfig",
"../Config/App_htdjd_Config": "App_htdjd_Config",
"./App_htdjd_Platform": "App_htdjd_Platform"
} ],
Vibrate_htdjd_Mgr: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "d1fd08XFy1K54GbFPz7QBml", "Vibrate_htdjd_Mgr");
Object.defineProperty(n, "__esModule", {
value: !0
});
var i = t("../Util/App_htdjd_Platform"), o = function() {
function t() {}
t.vibrateLong_htdjd = function() {
t.isEnable_htdjd && i.default.is_WECHAT_GAME_htdjd() && window.wx.vibrateLong();
};
t.vibrate_htdjd = function(e) {
if (t.isEnable_htdjd) {
var n = 0, o = e / 15, a = null;
a = function(e) {
setTimeout(function() {
t.vibrateShort_htdjd();
++n <= o && a(e);
}, e);
};
if (i.default.is_WECHAT_GAME_htdjd()) {
o = e / 15;
a(16);
}
}
};
t.vibrateShort_htdjd = function() {
t.isEnable_htdjd && i.default.is_WECHAT_GAME_htdjd() && window.wx.vibrateShort();
};
t.isEnable_htdjd = !0;
return t;
}();
n.default = o;
cc._RF.pop();
}, {
"../Util/App_htdjd_Platform": "App_htdjd_Platform"
} ],
Video_htdjd_ReviveLayer: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "e4b0eDUTwZAcbXX+DIh49p1", "Video_htdjd_ReviveLayer");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../HelpMgr"), d = cc._decorator, r = d.ccclass, s = d.property, c = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.quitBtn = null;
e.reviveBtn = null;
return e;
}
e.prototype.start = function() {
var t = this;
this.reviveBtn.on(cc.Node.EventType.TOUCH_START, function() {
t.onVideoClick();
}, this);
this.quitBtn.on(cc.Node.EventType.TOUCH_END, function() {
t.onQuitClick();
}, this);
};
e.prototype.onStart = function(t, e) {
this.onAgain = t;
this.onEnd = e;
this.node.active = !0;
_.default.instance.showYSGG(500);
_.default.instance.gamePause();
};
e.prototype.onVideoClick = function() {
_.default.instance.gameResum();
console.log("复活视频播放");
var t = this;
_.default.instance.m_isNotMusic = !0;
cc.audioEngine.isMusicPlaying() && cc.audioEngine.pauseMusic();
_.default.instance.show_video(function(e) {
e && t.onAgain();
cc.audioEngine.resumeMusic();
_.default.instance.m_isNotMusic = !1;
});
};
e.prototype.onQuitClick = function() {
_.default.instance.gameResum();
console.log("退出复活");
this.node.active = !1;
this.onEnd();
};
a([ s({
type: cc.Node,
displayName: "退出按钮"
}) ], e.prototype, "quitBtn", void 0);
a([ s({
type: cc.Node,
displayName: "复活按钮"
}) ], e.prototype, "reviveBtn", void 0);
return a([ r ], e);
}(cc.Component);
n.default = c;
cc._RF.pop();
}, {
"../HelpMgr": "HelpMgr"
} ],
View_htdjd_Mgr: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "91b772HhLtLVZa86LCXvmYY", "View_htdjd_Mgr");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.viewDefs = void 0;
var i = t("../../../syyx_sdk/configs/syyx_sdk_enum"), o = t("../../../syyx_sdk/syyx_sdk_api"), a = t("../View/Base_htdjd_View");
(function(t) {
t.Hall = "htdjdHall";
t.Loading = "loading";
t.GameOver = "htdjdOver";
t.Mate = "htdjdMate";
t.Game = "htdjdPlay";
})(n.viewDefs || (n.viewDefs = {}));
var _ = function() {
function t() {}
t.instance = function() {
null == this._instance && (this._instance = new t());
return this._instance;
};
t.prototype.openScene = function(t, e, n) {
var a = this;
o.syyx_sdk_api.hide_native_inner_interstitial();
o.syyx_sdk_api.hide_game_banner_box(i.e_ad_id.game_banner_box);
return cc.director.loadScene(t, function() {
if (a._curScene) {
a._curScene.closeView();
a._curScene = null;
}
a._curScene = a.findScene();
a._curScene && a._curScene.openView(e);
n && n(a._curScene);
});
};
t.prototype.init = function() {
this._curScene = this.findScene();
};
t.prototype.findScene = function() {
var t = cc.director.getScene();
if (null == t) return null;
for (var e = 0; e < t.childrenCount; e++) {
var n = t.children[e].getComponent(a.default);
if (n) return n;
}
return n;
};
t._instance = null;
return t;
}();
n.default = _;
cc._RF.pop();
}, {
"../../../syyx_sdk/configs/syyx_sdk_enum": "syyx_sdk_enum",
"../../../syyx_sdk/syyx_sdk_api": "syyx_sdk_api",
"../View/Base_htdjd_View": "Base_htdjd_View"
} ],
VivoMgr: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "051e8e9e1pEtIqf0xj6BKli", "VivoMgr");
Object.defineProperty(n, "__esModule", {
value: !0
});
var i = t("../../Data/Global_htdjd_Data"), o = t("../../Util/Game_htdjd_Util"), a = function() {
function t() {
this.vivoName = "com";
this.bannerId = "";
this.playId = "";
this.ys_banner = "";
this.ys_chapin = "";
this.chapin = "";
this.appId = "";
this.yuanShengTime = null;
this.type = 0;
this.isIds = [ "1", "3", "5" ];
this.playad = null;
this.isshow = 1;
this.videoTime = 0;
this.success = null;
this.bannerAd = null;
this.bansuccess = null;
this.isError = !1;
this.width = 0;
this.height = 0;
this.left = 0;
this.yuanshenAd = null;
this.bottomAd = null;
this.failCount = 0;
this.showType = 0;
this.timer = null;
this.isOk = !1;
this.isShowBanners = [];
this.interstitialAd = null;
this.isok = !1;
}
Object.defineProperty(t, "instance", {
get: function() {
return this.VivoMgr;
},
enumerable: !1,
configurable: !0
});
t.prototype.initData = function() {};
t.prototype.goOtherGame = function() {};
t.prototype.goOnError = function() {};
t.prototype.setLogin = function() {};
t.prototype.isShowAd = function(t) {
var e = !1;
if (i.Global_htdjd_Data.getIsOpen) {
for (var n = 0; n < this.isIds.length; n++) if (this.isIds[n] + "" == t) {
e = !0;
break;
}
return e;
}
return e;
};
t.prototype.initplayAd = function() {};
t.prototype.playAd = function(t) {
var e = this;
console.log("准备进入播放", this.playId);
if (this.playId) {
this.success = t;
if (this.playad) {
console.log("进入播放", this.playad);
this.playad.load();
this.playad.show().then(function() {
console.log("激励视频广告展示完成1");
}).catch(function(t) {
e.initplayAd();
console.log("激励视频广告展示失败1", JSON.stringify(t));
});
} else {
console.log("重新加载播放playAd", this.playId);
this.initplayAd(function() {
console.log("播放sp 视频playAd", e.playad);
e.playad && e.playad.show().then(function() {
console.log("激励视频广告展示完成");
}).catch(function(t) {
e.initplayAd();
console.log("激励视频广告展示失败", JSON.stringify(t));
});
});
}
}
};
t.prototype.initBannerAd = function() {};
t.prototype.updateTime = function() {
t.bannerAfterTime += 1;
};
t.prototype.initNativeAd = function(t, e) {
void 0 === t && (t = function() {});
void 0 === e && (e = this.ys_banner);
};
t.prototype.showBannerAd = function() {};
t.prototype.hindBannerAd = function() {
if ("Windows" != cc.sys.os && this.bannerId && this.bannerAd) {
console.info("vivoHindBannerAd");
this.bansuccess = null;
this.bannerAd.hide();
this.failCount = 0;
this.timer && clearInterval(this.timer);
}
};
t.prototype.showYuanSheng = function(e) {
var n = this;
console.info("showYuanSheng");
this.hindBannerAd();
var i = function(t) {
t.cb = function(t) {
n.bottomAd = t;
};
cc.game.emit("ys_banner", t);
};
if (this.isShowBanners.length <= 0) t.instance.initNativeAd(function(t) {
cc.log("原生广告拉取", t);
t ? i(t) : e && e();
}, t.instance.ys_banner); else {
var a = this.isShowBanners[o.Game_htdjd_Util.limitInteger(0, this.isShowBanners.length - 1)];
i(a);
}
};
t.prototype.hindYsBottom = function() {
if ("Windows" != cc.sys.os && this.bottomAd) {
this.bottomAd.destroy();
this.bottomAd = null;
}
};
t.prototype.showYuanShengAd = function() {
this.showYuanSheng(function() {});
};
t.prototype.reportAdShow = function(t) {
this.yuanshenAd && this.yuanshenAd.reportAdShow({
adId: t
});
};
t.prototype.reportAdClick = function(t) {
if (this.yuanshenAd) {
this.yuanshenAd.reportAdClick({
adId: t
});
this.removeIsShowBanner(t);
}
};
t.prototype.saveIsShowBanner = function(t) {
for (var e = !1, n = 0; n < this.isShowBanners.length; n++) if (this.isShowBanners[n].adId == t.adId) {
e = !0;
break;
}
console.log("保存状态", e);
e || this.isShowBanners.push(t);
console.info("广告数据", this.isShowBanners);
};
t.prototype.removeIsShowBanner = function(t) {
for (var e = 0; e < this.isShowBanners.length; e++) if (this.isShowBanners[e].adId == t) {
this.isShowBanners.splice(e);
break;
}
};
t.prototype.initInterstitialAd = function() {};
t.prototype.showInterstitialAd = function() {
if (this.isShowAd("4")) {
this.interstitialAd || this.initInterstitialAd();
this.interstitialAd.load();
}
};
t.prototype.showYuanShengCp = function() {
var e = this;
this.isShowAd("2") ? this.isShowBanners.length <= 0 ? t.instance.initNativeAd(function(t) {
console.log("原生广告拉取", t);
t || e.showInterstitialAd();
}, t.instance.ys_chapin) : this.isShowBanners[o.Game_htdjd_Util.limitInteger(0, this.isShowBanners.length - 1)] : this.showInterstitialAd();
};
t.prototype.coordinate = function() {};
t.prototype.showLoading = function() {};
t.prototype.hindLoading = function() {};
t.prototype.vibrateShort = function() {
this.vibrateLong();
};
t.prototype.vibrateLong = function() {};
t.prototype.showTip = function() {};
t.VivoMgr = new t();
t.bannerAfterTime = 0;
t.nativeAfterTime = 0;
t.INTERVAL_TIME = 10;
return t;
}();
n.default = a;
cc._RF.pop();
}, {
"../../Data/Global_htdjd_Data": "Global_htdjd_Data",
"../../Util/Game_htdjd_Util": "Game_htdjd_Util"
} ],
WCGameSettleView_htdjd_Template: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "ee0bdhM+MVPzZrMCFWSAJv3", "WCGameSettleView_htdjd_Template");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("./SettleLayout_htdjd_Base"), d = cc._decorator, r = d.ccclass, s = (d.property, 
d.disallowMultiple), c = d.menu, h = function(t) {
o(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
e.prototype.onLisnterClickCall_htdjd = function() {
this.hideBanner_htdjd();
this.openExport2Node_htdjd();
};
return a([ r, s(), c("FrameWork组件/WC/WCGameSettleViewTemplate") ], e);
}(_.default);
n.default = h;
cc._RF.pop();
}, {
"./SettleLayout_htdjd_Base": "SettleLayout_htdjd_Base"
} ],
WCGameView_htdjd_Template: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "e3ff1WYiY9NiZjWXWUiZf+0", "WCGameView_htdjd_Template");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../../Base/FM_htdjd_ViewBase"), d = cc._decorator, r = d.ccclass, s = d.property, c = d.disallowMultiple, h = d.menu, l = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.bannerViewNode = null;
e.exportRowViewNode = null;
return e;
}
e.prototype.initView_htdjd = function() {};
e.prototype.hideBanner_htdjd = function() {};
e.prototype.removeEvent_htdjd = function() {};
e.prototype.showBanner_htdjd = function() {};
e.prototype.addEvent_htdjd = function() {};
a([ s({
tooltip: "banner",
type: cc.Node
}) ], e.prototype, "bannerViewNode", void 0);
a([ s({
tooltip: "横向轮播",
type: cc.Node
}) ], e.prototype, "exportRowViewNode", void 0);
return a([ r, c(), h("FrameWork组件/WC/WCGameViewTemplate") ], e);
}(_.default);
n.default = l;
cc._RF.pop();
}, {
"../../Base/FM_htdjd_ViewBase": "FM_htdjd_ViewBase"
} ],
WCMainView_htdjd_Template: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "05894UNcQ5Bn7ChsbyTCp7+", "WCMainView_htdjd_Template");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../../User/User_htdjd"), d = t("../../Event/Event_htdjd_Mgr"), r = t("../../Event/EventEnum"), s = t("../../Base/FM_htdjd_ViewBase"), c = cc._decorator, h = c.ccclass, l = c.property, p = c.disallowMultiple, u = c.menu, f = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.bannerViewNode = null;
e.labelLevel = null;
e.exportRowViewNode = null;
e.butStart = null;
e.labelMoney = null;
return e;
}
e.prototype.addEvent_htdjd = function() {
d.default.onEvent_htdjd(r.htdjd_Event.htdjd_Game_OnUserMoneyChange_htdjd, this.onUserMoneyChange_htdjd, this);
};
e.prototype.listenerStartGame_htdjd = function() {
this.emitListenerEvent_htdjd(this.EventEnumView_htdjd.StartGame_htdjd);
};
e.prototype.removeEvent_htdjd = function() {
d.default.offTargetEvent_htdjd(this);
};
e.prototype.initView_htdjd = function() {
this.butStart.on("click", this.listenerStartGame_htdjd, this);
this.labelMoney.string = _.default.getMoney_htdjd() + "";
this.labelLevel.string = _.default.getLeveNum_htdjd() + "";
};
e.prototype.onUserMoneyChange_htdjd = function(t) {
var e = t.curr;
t.last;
this.labelMoney.string = e + "";
};
a([ l({
tooltip: "banner",
type: cc.Node
}) ], e.prototype, "bannerViewNode", void 0);
a([ l({
tooltip: "关卡Label",
type: cc.Label
}) ], e.prototype, "labelLevel", void 0);
a([ l({
tooltip: "横向轮播",
type: cc.Node
}) ], e.prototype, "exportRowViewNode", void 0);
a([ l({
tooltip: "游戏开始按钮",
type: cc.Node
}) ], e.prototype, "butStart", void 0);
a([ l({
tooltip: "金币Label",
type: cc.Label
}) ], e.prototype, "labelMoney", void 0);
return a([ h, p(), u("FrameWork组件/WC/WCMainView_htdjd_Template") ], e);
}(s.default);
n.default = f;
cc._RF.pop();
}, {
"../../Base/FM_htdjd_ViewBase": "FM_htdjd_ViewBase",
"../../Event/EventEnum": "EventEnum",
"../../Event/Event_htdjd_Mgr": "Event_htdjd_Mgr",
"../../User/User_htdjd": "User_htdjd"
} ],
WDTips: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "6d2d1iPsZFCLbrHbh+ll0rV", "WDTips");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../Net/Net_Mgr"), d = cc._decorator, r = d.ccclass, s = (d.property, 
function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.m_time = 0;
return e;
}
e.prototype.onLoad = function() {
this.node.opacity = 0;
};
e.prototype.update = function(t) {
if (255 != this.node.opacity) {
this.m_time += t;
if (this.m_time > .3) {
this.m_time = 0;
this.node.opacity = _.default.wx_customkey.bossCount > 1 ? 255 : 0;
}
}
};
return a([ r ], e);
}(cc.Component));
n.default = s;
cc._RF.pop();
}, {
"../Net/Net_Mgr": "Net_Mgr"
} ],
WXADMgr: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "b2a5f3Hfg5DoZ0uXCSDeK5m", "WXADMgr");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.WXGridAd = n.WXBannderAd = void 0;
var i = t("../Config/AppSwitchConfig"), o = t("../Util/App_htdjd_Platform"), a = t("../Util/Date_htdjd_Utils"), _ = function() {
function t(t) {
this._id_htdjd = null;
this._banner_htdjd = null;
this._lastShowTime_htdjd = 0;
this._bannerTotalShowTime_htdjd = 0;
this._createTime_htdjd = 0;
this._destroyed_htdjd = !1;
this._error_htdjd = null;
this._loading_htdjd = !1;
this._retryCount_htdjd = 0;
this._id_htdjd = t;
}
Object.defineProperty(t.prototype, "Id_htdjd", {
get: function() {
return this._id_htdjd;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "Destroyed_htdjd", {
get: function() {
return this._destroyed_htdjd;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "CreateTime_htdjd", {
get: function() {
return this._createTime_htdjd;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "isReady_htdjd", {
get: function() {
return null != this._banner_htdjd;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "isError_htdjd", {
get: function() {
return null != this._error_htdjd;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "Loading_htdjd", {
get: function() {
return this._loading_htdjd;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "Error_htdjd", {
get: function() {
return this._error_htdjd;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "RetryCount_htdjd", {
get: function() {
return this._retryCount_htdjd;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "BannerTotalShowTime_htdjd", {
get: function() {
return this._bannerTotalShowTime_htdjd;
},
enumerable: !1,
configurable: !0
});
t.prototype.destroy_htdjd = function() {
if (this._destroyed_htdjd) console.log("BannerAd 已经被销毁"); else if (this._loading_htdjd) console.log("BannerAd 正在加载中，无法进行销毁"); else {
null != this._banner_htdjd && this._banner_htdjd.destroy();
this._banner_htdjd = null;
this._destroyed_htdjd = !0;
}
};
t.prototype.hide_htdjd = function() {
if (this.isReady_htdjd) {
this._banner_htdjd.hide();
this._bannerTotalShowTime_htdjd += a.Date_htdjd_Utils.getNowTime_htdjd() - this._lastShowTime_htdjd;
}
};
t.prototype.retry_htdjd = function(e) {
if (this._destroyed_htdjd) console.log("BannerAd 已被销毁，无法重试"); else if (this.isReady_htdjd) console.log("BannerAd 已创建成功，无需重试"); else if (this._loading_htdjd) console.log("BannerAd 正在创建中"); else if (this._retryCount_htdjd >= t.MAX_RETRY_COUNT_htdjd) console.log("此 BannerAd 重试次数已达最大"); else {
var n = this;
this._create_htdjd(function(t) {
null != e && e(t);
++n._retryCount_htdjd;
});
}
};
t.prototype.show_htdjd = function(t) {
if (this.isReady_htdjd) {
this._banner_htdjd.hide();
var e = window.wx.getSystemInfoSync(), n = e.screenWidth, i = e.screenHeight, o = this._banner_htdjd.style, _ = o.realHeight, d = o.realWidth;
_ < 130 && (_ = 130);
var r = n / 2 - d / 2, s = i - _;
console.log("=======移动Banner========>>>", t);
t && (0 == t ? r = 0 : 2 == t && (r = n - d));
this._banner_htdjd.style.left = r;
this._banner_htdjd.style.top = s;
this._lastShowTime_htdjd = a.Date_htdjd_Utils.getNowTime_htdjd();
this._banner_htdjd.show();
}
};
t.prototype._create_htdjd = function() {};
t.MAX_RETRY_COUNT_htdjd = 3;
return t;
}();
n.WXBannderAd = _;
var d = function() {
function t(t) {
this._gridAd_htdjd = null;
this._id_htdjd = null;
this._createTime_htdjd = 0;
this._destroyed_htdjd = !1;
this._error_htdjd = null;
this._loading_htdjd = !1;
this._id_htdjd = t;
}
Object.defineProperty(t.prototype, "Loading_htdjd", {
get: function() {
return this._loading_htdjd;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "Destroyed_htdjd", {
get: function() {
return this._destroyed_htdjd;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "isError_htdjd", {
get: function() {
return null != this._error_htdjd;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "CreateTime_htdjd", {
get: function() {
return this._createTime_htdjd;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "isReady_htdjd", {
get: function() {
return null != this._gridAd_htdjd;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "Error_htdjd", {
get: function() {
return this._error_htdjd;
},
enumerable: !1,
configurable: !0
});
t.prototype.hide_htdjd = function() {
this.isReady_htdjd && this._gridAd_htdjd.hide();
};
t.prototype.destroy_htdjd = function() {
if (this._destroyed_htdjd) console.log("GridAD 已经被销毁"); else if (this._loading_htdjd) console.log("GridAD 正在加载中，无法进行销毁"); else {
null != this._gridAd_htdjd && this._gridAd_htdjd.destroy();
this._gridAd_htdjd = null;
this._destroyed_htdjd = !0;
}
};
t.prototype.show_htdjd = function() {
this.isReady_htdjd && this._gridAd_htdjd.show();
};
t.prototype._create_htdjd = function(t) {
if (o.default.is_WECHAT_GAME_htdjd()) {
var e = window.wx.createGridAd({
adUnitId: this._id_htdjd,
adIntervals: 8,
style: {
left: 0,
top: 0,
width: 300,
height: 150
}
});
if (null != e) {
var n = this;
this._loading_htdjd = !0;
e.onLoad(function(i) {
console.log("GridAD 加载完成", n._id_htdjd, i);
n._gridAd_htdjd = e;
n._createTime_htdjd = a.Date_htdjd_Utils.getNowTime_htdjd();
n._loading_htdjd = !1;
null != t && t(!0);
});
e.onError(function(i) {
console.log("GridAD 加载失败", n._id_htdjd, i);
n._error_htdjd = i;
n._loading_htdjd = !1;
e.destroy();
null != t && t(!1);
});
}
} else null != t && t(!1);
};
t.prototype.retry_htdjd = function(t) {
this._destroyed_htdjd ? console.log("GridAD 已被销毁，无法重试") : this.isReady_htdjd ? console.log("GridAD 已创建成功，无需重试") : this._loading_htdjd ? console.log("GridAD 正在创建中") : this._create_htdjd(function(e) {
null != t && t(e);
});
};
return t;
}();
n.WXGridAd = d;
var r = function() {
function t() {}
t.init_htdjd = function() {
t._inited_htdjd = !0;
};
t.getBanner_htdjd = function() {};
t._createBannerAd_htdjd = function() {
if (t._curBannerCreateIndex_htdjd >= t._bannerIds_htdjd.length) return null;
var e = new _(t._bannerIds_htdjd[t._curBannerCreateIndex_htdjd]);
t._banners_htdjd.push(e);
e.retry_htdjd();
++t._curBannerCreateIndex_htdjd;
return e;
};
t._checkBannerAd_htdjd = function() {
for (var e = [], n = [], o = 0; o < t._banners_htdjd.length; ++o) (a = t._banners_htdjd[o]).Destroyed_htdjd || (a.isReady_htdjd ? e.push(a) : n.push(a));
for (o = 0; o < t._banners_htdjd.length; ++o) {
var a = t._banners_htdjd[o], d = i.default.getInstance_htdjd().getAppSwitchData_htdjd().bannerShowTime_htdjd;
if (a.isReady_htdjd) {
if (e.length >= 2 && a.BannerTotalShowTime_htdjd >= 1e3 * d) {
console.log("BannerAd 展示时间超过限制，销毁 : ", a.Id_htdjd);
a.destroy_htdjd();
}
} else if (a.RetryCount_htdjd >= _.MAX_RETRY_COUNT_htdjd) {
console.log("BannerAd 超过重试次数，销毁 : ", a.Id_htdjd);
a.destroy_htdjd();
} else a.retry_htdjd();
}
};
t.getBoxAd_htdjd = function(t) {
if (this._wxGridAd_htdjd.isReady_htdjd) t(this._wxGridAd_htdjd); else {
var e = this._wxGridAd_htdjd;
e.retry_htdjd(function(n) {
t(n ? e : null);
});
}
};
t._createGirdAd_htdjd = function() {
if (null == this._wxGridAd_htdjd) {
var t = new d("");
t.retry_htdjd();
this._wxGridAd_htdjd = t;
}
};
t._inited_htdjd = !1;
t._banners_htdjd = new Array();
t._bannerIds_htdjd = new Array();
t._curBannerGetIndex_htdjd = 0;
t._curBannerCreateIndex_htdjd = 0;
t._wxGridAd_htdjd = null;
return t;
}();
n.default = r;
cc._RF.pop();
}, {
"../Config/AppSwitchConfig": "AppSwitchConfig",
"../Util/App_htdjd_Platform": "App_htdjd_Platform",
"../Util/Date_htdjd_Utils": "Date_htdjd_Utils"
} ],
WXAPI: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "bc8023CDWpHe7xTzNvqfFhi", "WXAPI");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.GameRecorder = void 0;
var i = t("../../Util/App_htdjd_Platform"), o = (t("../../Mgr/wudian_htdjd_Mgr"), 
t("../../Config/AppSwitchConfig"), t("../../Config/App_htdjd_Config")), a = function() {
function t() {
this._recorder_htdjd = null;
}
Object.defineProperty(t.prototype, "recorder_htdjd", {
get: function() {
return this._recorder_htdjd;
},
enumerable: !1,
configurable: !0
});
t.prototype.stop_htdjd = function() {
null != this.recorder_htdjd && this.recorder_htdjd.stop();
};
t.prototype.start_htdjd = function() {
null != this.recorder_htdjd && this.recorder_htdjd.start();
};
t.prototype.pause_htdjd = function() {
null != this.recorder_htdjd && this.recorder_htdjd.pause();
};
t.prototype.abort_htdjd = function() {
null != this.recorder_htdjd && this.recorder_htdjd.abort();
};
t.prototype.resume_htdjd = function() {
null != this.recorder_htdjd && this.recorder_htdjd.resume();
};
t.prototype.showShareBtn_htdjd = function() {
null != this.recorder_htdjd && window.wx.createGameRecorderShareButton({
style: {
left: 10,
top: 150,
height: 50,
color: "#ffffff",
textAlign: "center",
fontSize: 16,
borderRadius: 4,
iconMarginRight: 16,
paddingLeft: 1,
paddingRight: 30
},
image: "button.jpg",
text: "自定义文案",
icon: "icon.jpg",
share: {
query: "a=1&b=2",
bgm: "walkin.mp3",
timeRange: [ [ 0, 1e3 ], [ 2e3, 3e3 ] ],
title: {
template: "default.score",
data: {
score: 6500
}
},
button: {
template: "default.enter"
}
}
});
};
return t;
}();
n.GameRecorder = a;
var _ = function() {
function t() {}
t.wxLogin_htdjd = function(t) {
i.default.is_WECHAT_GAME_htdjd() && window.wx.login({
success: function(e) {
if (e.code) {
var n = e.code;
console.log("登陆成功,获取到code : " + n);
t(n);
}
}
});
};
t.onRewardedVideoAdError_htdjd = function(e) {
console.log("激励视频 广告加载失败", e);
window.wx.showToast({
title: "广告加载失败",
icon: "none",
duration: 2e3
});
t._onRewardedVideoAdFailed_htdjd && t._onRewardedVideoAdFailed_htdjd();
};
t.onRewardedVideoAdLoad_htdjd = function() {
console.log("激励视频 广告加载完成");
};
t.onRewardedVideoAdClose_htdjd = function(e) {
if (e && e.isEnded || null == e) {
console.log("激励视频 已完整观看");
t._onRewardedVideoAdClose_htdjd && t._onRewardedVideoAdClose_htdjd(!0);
} else {
console.log("激励视频 未完整观看");
t._onRewardedVideoAdClose_htdjd && t._onRewardedVideoAdClose_htdjd(!1);
}
};
t.showRewardedVideoAd_htdjd = function() {};
t.regRewardedVideoAdEvent_htdjd = function(e) {
e.onLoad(t.onRewardedVideoAdLoad_htdjd);
e.onError(t.onRewardedVideoAdError_htdjd);
e.onClose(t.onRewardedVideoAdClose_htdjd);
t._isRegRewardedVideoAdEvent_htdjd = !0;
};
t.navigateToMiniProgram_htdjd = function(t, e, n, o, a) {
if (i.default.is_WECHAT_GAME_htdjd()) {
console.log("跳转游戏： " + t);
window.wx.navigateToMiniProgram({
appId: t,
path: e,
extraData: {
foo: "bar"
},
envVersion: "release",
success: function(t) {
n && n(t);
},
fail: function(t) {
o && o(t);
},
complete: function(t) {
a && a(t);
}
});
}
};
t.share_htdjd = function(e, n, o) {
var a = this;
if (i.default.is_WECHAT_GAME_htdjd()) {
t._onShow_htdjd = function() {
window.wx.offShow(t._onShow_htdjd);
t._onShow_htdjd = null;
Date.now(), a._lastShareTime_htdjd;
e && (Date.now() - a._lastShareTime_htdjd > 2e3 ? e(!0) : e(!1));
};
window.wx.onShow(t._onShow_htdjd);
this._lastShareTime_htdjd = Date.now();
window.wx.shareAppMessage({
title: n,
imageUrl: o
});
}
};
t.showInterstitialAd_htdjd = function(t, e) {
if (i.default.is_WECHAT_GAME_htdjd()) {
var n = window.wx.createInterstitialAd({
adUnitId: o.default.wx_InsAdUnitId_htdjd
});
n.onLoad(function() {
console.log("插屏广告 加载完成");
n.show().catch(function(t) {
console.log("插屏广告 显示失败 ：" + t);
e && e();
});
});
n.onError(function(t) {
console.log("插屏广告 加载失败" + t);
e && e();
});
n.onClose(function() {
console.log("插屏广告 关闭");
t && t();
});
} else t();
};
t.getLaunchOptionsSync_htdjd = function() {
return i.default.is_WECHAT_GAME_htdjd() ? window.wx.getLaunchOptionsSync() : {
scene: 1001,
query: "",
shareTicket: "",
appId: "",
extraData: ""
};
};
t.checkUpdate_htdjd = function() {
if (i.default.is_WECHAT_GAME_htdjd()) {
var t = window.wx.getUpdateManager();
t.onCheckForUpdate(function(t) {
console.log("是否需要更新 : ", t.hasUpdate);
});
t.onUpdateReady(function() {
window.wx.showModal({
title: "更新提示",
content: "新版本已经准备好，是否重启小游戏？",
success: function(e) {
e.confirm && t.applyUpdate();
}
});
});
t.onUpdateFailed(function() {
console.log("新版本下载失败!!!");
});
}
};
t.SetShareMenu_htdjd = function(t, e, n, o, a) {
if (i.default.is_WECHAT_GAME_htdjd()) {
console.log("小游戏设置转发按钮");
window.wx.showShareMenu({
withShareTicket: !1,
success: n,
fail: o,
complete: a
});
window.wx.onShareAppMessage(function() {
return {
title: t,
imageUrl: e
};
});
}
};
t.tryShowWXCrazyClick_htdjd = function() {
return !1;
};
t.GameRecorder_htdjd = new a();
t._isRegRewardedVideoAdEvent_htdjd = !1;
t._onRewardedVideoAdClose_htdjd = null;
t._onRewardedVideoAdFailed_htdjd = null;
t._onShow_htdjd = null;
t._lastShareTime_htdjd = 0;
t._crazyClickShowCounter_htdjd = 0;
return t;
}();
n.default = _;
cc._RF.pop();
}, {
"../../Config/AppSwitchConfig": "AppSwitchConfig",
"../../Config/App_htdjd_Config": "App_htdjd_Config",
"../../Mgr/wudian_htdjd_Mgr": "wudian_htdjd_Mgr",
"../../Util/App_htdjd_Platform": "App_htdjd_Platform"
} ],
WXBanner_htdjd_View: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "830f0GNb0tFk7ThYY/kVxJt", "WXBanner_htdjd_View");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../KRQ/AD_htdjd_WXBanner"), d = cc._decorator, r = d.ccclass, s = d.property, c = d.menu, h = d.disallowMultiple, l = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.bannerPrefab = null;
return e;
}
e.prototype.onLoad = function() {
var t = cc.instantiate(this.bannerPrefab);
this.node.addChild(t);
this.scriptBanner_htdjd = t.getComponent(_.default);
};
a([ s({
tooltip: "Banner预制体",
type: cc.Prefab
}) ], e.prototype, "bannerPrefab", void 0);
return a([ r, h(), c("FrameWork组件/WXBanner_htdjd_View") ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {
"../KRQ/AD_htdjd_WXBanner": "AD_htdjd_WXBanner"
} ],
Wudian: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "5659egNehhPmoiSHhZAISd/", "Wudian");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.WuDianType = void 0;
var _, d = t("../Net/Net_Mgr"), r = t("./App_htdjd_Platform"), s = t("../Platform/WX/WxMgr"), c = t("../Platform/QQ/QqMgr"), h = t("../View/KRQ/AD_htdjd_GameBanner"), l = t("../Platform/OPPO/OppoMgr"), p = t("../Platform/VIVO/VivoMgr");
(function(t) {
t[t.LEFT = 0] = "LEFT";
t[t.CENTER = 1] = "CENTER";
t[t.RIGHT = 2] = "RIGHT";
})(_ = n.WuDianType || (n.WuDianType = {}));
var u = cc._decorator, f = u.ccclass, y = u.property, g = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.clickBtn = null;
e.startY = 0;
e.isClick = !1;
e.showType = _.RIGHT;
e.changbannerY = 150;
e.move_htdjd_Banner = !1;
e.btn_htdjd_MoveTime = 1;
e.banner_htdjd_MoveTime = 1;
return e;
}
e.prototype.start = function() {};
e.prototype.Init_htdjd_Data = function() {
if (r.default.is_WECHAT_GAME_htdjd()) {
this.move_htdjd_Banner = d.default.WX_SdkCustomKey.moveBanner;
this.banner_htdjd_MoveTime = d.default.WX_SdkCustomKey.bannerMoveTime;
this.btn_htdjd_MoveTime = d.default.WX_SdkCustomKey.btnMoveTime;
} else if (r.default.is_QQ_PLAY_htdjd()) {
this.move_htdjd_Banner = d.default.QQ_SdkCustomKey.moveBanner;
this.banner_htdjd_MoveTime = d.default.QQ_SdkCustomKey.bannerMoveTime;
this.btn_htdjd_MoveTime = d.default.QQ_SdkCustomKey.btnMoveTime;
} else if (r.default.is_OPPO_GAME_htdjd()) {
this.move_htdjd_Banner = d.default.OPPO_SdkCustomKey.moveBanner;
this.banner_htdjd_MoveTime = d.default.OPPO_SdkCustomKey.bannerMoveTime;
this.btn_htdjd_MoveTime = d.default.OPPO_SdkCustomKey.btnMoveTime;
} else if (r.default.is_VIVO_GAME_htdjd()) {
this.move_htdjd_Banner = d.default.VIVO_SdkCustomKey.moveBanner;
this.banner_htdjd_MoveTime = d.default.VIVO_SdkCustomKey.bannerMoveTime;
this.btn_htdjd_MoveTime = d.default.VIVO_SdkCustomKey.btnMoveTime;
}
};
e.prototype.onEnable = function() {
this.Init_htdjd_Data();
this.onWudian();
};
e.prototype.onWudian = function() {
var t = this;
if (!this.move_htdjd_Banner) {
console.error("onWudian");
return this.onShowBanner();
}
this.onHideBanner();
this.isClick = !0;
this.startY = this.clickBtn.y;
this.onWDBtn(!0, this.startY - this.changbannerY);
this.scheduleOnce(function() {
t && t.onWDBtn(!1, t.startY);
}, this.banner_htdjd_MoveTime);
};
e.prototype.onShowBanner = function() {
if (r.default.is_WECHAT_GAME_htdjd()) {
s.WxMgr.instance.showBannerAd(this.showType);
if (s.WxMgr.instance.isError) {
console.log("WxMgr.instance.isError");
if (null != this.node.getComponent(h.default)) {
console.log("getComponent(AD_htdjd_GameBanner");
this.node.getComponent(h.default).enabled = !0;
}
}
} else r.default.is_QQ_PLAY_htdjd() ? c.default.instance.showBannerAd(this.showType) : r.default.is_OPPO_GAME_htdjd() ? l.OppoMgr.instance.showBannerAd(this.showType) : r.default.is_VIVO_GAME_htdjd() && p.default.instance.showBannerAd(this.showType);
};
e.prototype.onWDBtn = function(t, e) {
var n = this;
if (t) return this.clickBtn.y = e;
this.onShowBanner();
var i = this.btn_htdjd_MoveTime - this.banner_htdjd_MoveTime;
"iOS" != cc.sys.os && (i -= .5);
console.log("手机型号: ", cc.sys.os, i);
this.scheduleOnce(function() {
n.onMoveY();
n.isClick = !1;
}, i < 0 ? 0 : i);
};
e.prototype.onHideBanner = function() {
r.default.is_WECHAT_GAME_htdjd() ? s.WxMgr.instance.hindBannerAd() : r.default.is_QQ_PLAY_htdjd() ? c.default.instance.hindBannerAd() : r.default.is_OPPO_GAME_htdjd() ? l.OppoMgr.instance.hindBannerAd() : r.default.is_VIVO_GAME_htdjd() && p.default.instance.hindBannerAd();
};
e.prototype.onMoveY = function() {
this.clickBtn.y = this.startY;
};
e.prototype.onDisable = function() {
this.unscheduleAllCallbacks();
this.onHideBanner();
};
a([ y({
type: cc.Node,
tooltip: "误点按钮"
}) ], e.prototype, "clickBtn", void 0);
a([ y({
type: cc.Enum(_),
tooltip: "banner类型"
}) ], e.prototype, "showType", void 0);
a([ y({
type: cc.Float,
tooltip: "误点按钮位移值"
}) ], e.prototype, "changbannerY", void 0);
return a([ f ], e);
}(cc.Component);
n.default = g;
cc._RF.pop();
}, {
"../Net/Net_Mgr": "Net_Mgr",
"../Platform/OPPO/OppoMgr": "OppoMgr",
"../Platform/QQ/QqMgr": "QqMgr",
"../Platform/VIVO/VivoMgr": "VivoMgr",
"../Platform/WX/WxMgr": "WxMgr",
"../View/KRQ/AD_htdjd_GameBanner": "AD_htdjd_GameBanner",
"./App_htdjd_Platform": "App_htdjd_Platform"
} ],
WxMgr: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "43d9ctiQWlIALaCJe/jduGg", "WxMgr");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.WxMgr = void 0;
var i = t("../../Util/App_htdjd_Platform"), o = t("../../Config/App_htdjd_Config"), a = t("../../Net/Net_Mgr"), _ = function() {
function t() {
this.lastUpdateTime = 0;
this.SPEED_SHRESHOLD = 120;
this.UPTATE_INTERVAL_TIME = 70;
this.lastX = 0;
this.lastY = 0;
this.lastZ = 0;
this.type = 0;
this.playad30 = null;
this.playad15 = null;
this.playid30 = "";
this.playid15 = "";
this.isshow = 1;
this.isLoad = !1;
this.success = null;
this.bannerAd = null;
this.startpoint = null;
this.adid = "";
this.bannerRes = {};
this.isShow = !1;
this.isError = !1;
this.styleTop = 0;
this.showTime = 0;
this.totalTime = 0;
this.showType = 0;
this.wxfile = null;
if (i.default.is_WECHAT_GAME_htdjd()) {
this.wx = window.wx;
this.adid = o.default.wx_bannerAdUnitId_htdjd;
this.playid30 = o.default.wx_adUnitId_htdjd;
} else if (i.default.is_QQ_PLAY_htdjd()) {
this.wx = window.qq;
this.adid = o.default.qq_bannerAdUnitId_htdjd;
this.playid30 = o.default.qq_adUnitId_htdjd;
}
}
Object.defineProperty(t, "instance", {
get: function() {
return this.WxMgr;
},
enumerable: !1,
configurable: !0
});
t.prototype.goOtherGame = function(t, e) {
this.wx.navigateToMiniProgram({
appId: t,
success: e
});
};
t.prototype.goOnError = function() {
this.wx.onError(function() {});
};
t.prototype.setMenuButton = function(t) {
if (!cc.sys.isBrowser) {
var e = this.wx.getMenuButtonBoundingClientRect(), n = e.left, i = e.top, o = (e.bottom, 
e.height / 2 + i), a = n, _ = this.coordinate(new cc.Vec2(a, o), 2);
return new cc.Vec2(_.x - t, _.y);
}
};
t.prototype.coordinate = function(t, e) {
var n = this.wx.getSystemInfoSync(), i = cc.winSize.width / n.screenWidth, o = cc.winSize.height / n.screenHeight, a = 0, _ = 0;
if (1 == e) {
a = t.x / i;
_ = t.y / o;
} else {
a = t.x * i;
_ = t.y * o;
}
return new cc.Vec2(a, _);
};
t.prototype.initplayAd = function() {};
t.prototype.playAdLoad = function() {
this.isLoad = !0;
};
t.prototype.playAd = function(t, e) {
void 0 === e && (e = 1);
this.success = t;
if (!this.isLoad) return t();
switch (e) {
case 1:
this.playad30.show();
break;

case 2:
this.playad15.show();
}
};
t.prototype.initBannerAd = function() {};
t.prototype.createBannerAd = function() {};
t.prototype.onShowResize = function(t) {
console.log("showType ==", this.showType, t);
if (0 != this.showType || 0 != t) {
this.showType = t;
if (!this.bannerAd) return this.isShow = !0;
this.isShow = !1;
var e = this.coordinate(new cc.Vec2(this.bannerRes.width, this.bannerRes.height), 2), n = this.coordinate(new cc.Vec2(cc.winSize.width / 2 - e.x / 2, e.y), 1), i = this.coordinate(new cc.Vec2(cc.winSize.width - e.x - (672 - e.x) / 2, e.y), 1), o = this.coordinate(new cc.Vec2(cc.winSize.width - e.x, e.y), 1), a = -3e3;
1 == t && (a = n.x);
2 == t && (a = i.x);
3 == t && (a = i.x);
4 == t && (a = o.x);
var _ = 3 == t ? this.styleTop - 30 : this.styleTop;
if (this.bannerAd) {
this.bannerAd.style.top = _;
this.bannerAd.style.left = a;
}
console.error("onShowResize =showType=", t, e.x, a);
if (t > 0) return this.showTime = Date.now();
this.checkShowTime();
}
};
t.prototype.checkShowTime = function() {
this.totalTime += Date.now() - this.showTime;
console.log("tTime : ", this.totalTime);
if (!(this.totalTime < 1e3 * a.default.WX_SdkCustomKey.bannerRefTime)) {
this.totalTime = 0;
this.bannerAd = null;
this.initBannerAd();
}
};
t.prototype.hindBannerAd = function() {
if (!cc.sys.isBrowser) if (i.default.is_WECHAT_GAME_htdjd()) {
o.default.showType = 0;
console.info("hindBannerAd", this.bannerAd);
if (this.bannerAd) {
if (this.isError) return;
this.onShowResize(0);
}
} else if (i.default.is_QQ_PLAY_htdjd() && this.bannerAd) {
if (this.isError) return;
this.bannerAd.hide();
}
};
t.prototype.showBannerAd = function(t) {
void 0 === t && (t = 0);
console.log("showBannerAd ========>");
if (!cc.sys.isBrowser) {
o.default.showType = t;
if (this.isError) return;
this.onShowResize(t);
i.default.is_QQ_PLAY_htdjd() && this.bannerAd.show();
}
};
t.prototype.initTouch = function() {
this.wx.onShow(this.onEvent);
};
t.prototype.onEvent = function() {
console.error("banneronEvent ===>>");
if (o.default.isBannerWD) {
console.error("banneronEvent成功 ===>>");
cc.game.emit("kdSuccess");
o.default.isBannerWD = !1;
}
};
t.prototype.postMesage = function(t) {
if (!cc.sys.isBrowser) {
console.log("发送消息到子域", t);
this.wx.getOpenDataContext().postMessage(t);
}
};
t.prototype.createButtn = function(t, e, n, i, o) {
void 0 === o && (o = 1);
if (!cc.sys.isBrowser) {
console.log("转换前坐标", t, e);
var a = this.coordinate(new cc.Vec2(t, e), 1), _ = this.coordinate(new cc.Vec2(n, i), 1);
a.x = a.x - _.x / 2;
a.y = a.y - _.y / 2;
console.log("转换后坐标", a);
var d = {
type: "image",
image: "https://lrqqn.hfwhwe8.cn/game/common/blank.png",
style: {
left: a.x,
top: a.y,
width: _.x,
height: _.y
}
}, r = null;
switch (o) {
case 1:
r = this.wx.createUserInfoButton(d);
break;

case 2:
r = this.wx.createFeedbackButton(d);
}
return r;
}
};
t.prototype.showLoading = function(t) {
if (!cc.sys.isBrowser) {
var e = {
title: t
};
this.wx.showLoading(e);
}
};
t.prototype.hindLoading = function() {
cc.sys.isBrowser || this.wx.hideLoading();
};
t.prototype.initFileSystemManager = function() {
cc.sys.isBrowser || (this.wxfile = this.wx.getFileSystemManager());
};
t.prototype.createDir = function(t, e) {
this.wxfile.mkdir({
dirPath: t,
complete: function(t) {
e(t);
},
recursive: !0
});
};
t.prototype.downLoadFile = function(t, e, n) {
this.wx.downloadFile({
url: t,
filePath: e,
complete: function(t) {
n(t);
}
});
};
t.prototype.lookDirFiles = function(t, e) {
this.wxfile.readdir({
dirPath: t,
complete: function(t) {
e(t);
}
});
};
t.prototype.isFileOrDirExits = function(t, e) {
this.wxfile.access({
path: e,
complete: function(e) {
var n = e.errMsg;
t("access:ok" == n);
}
});
};
t.prototype.unLinkDelFile = function(t, e) {
this.wxfile.unlink({
filePath: e,
complete: t
});
};
t.WxMgr = new t();
return t;
}();
n.WxMgr = _;
cc._RF.pop();
}, {
"../../Config/App_htdjd_Config": "App_htdjd_Config",
"../../Net/Net_Mgr": "Net_Mgr",
"../../Util/App_htdjd_Platform": "App_htdjd_Platform"
} ],
ZQJson: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "fb674DHbXtF9K+JtV+gLFCr", "ZQJson");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../../HelpMgr"), d = cc._decorator, r = d.ccclass, s = d.property, c = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.m_storeConfig = null;
return e;
}
e.prototype.start = function() {
_.default.instance.setStoreConfig(this.m_storeConfig.json);
};
e.wq_item_max = 12;
a([ s({
type: cc.JsonAsset,
displayName: "商店配置"
}) ], e.prototype, "m_storeConfig", void 0);
return a([ r ], e);
}(cc.Component);
n.default = c;
cc._RF.pop();
}, {
"../../HelpMgr": "HelpMgr"
} ],
ad_banner_oppo_apk: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "48d62LfTFBBaZi4LlPP743Q", "ad_banner_oppo_apk");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ad_banner_oppo_apk = void 0;
var i = t("../syyx_manager"), o = t("../../syyx_sdk_api"), a = t("../../configs/syyx_sdk_enum"), _ = t("../ad/syyx_adv_manager"), d = function() {
function t() {
this._business_config_data = {};
this.update_cd = 5;
this.is_run_timer = !1;
this.need_show = !0;
this.banner_showing = !1;
this.banner_show_time = 0;
}
t.prototype.run_timer = function() {
var t = this;
console.log("mijia ---- is run timer is " + this.is_run_timer);
if (this.is_run_timer) {
console.log("mijia ---- 第二次展示banner");
t.banner_show_time = 0;
t.load_native_banner();
} else {
this.is_run_timer = !0;
this._business_config_data = i.syyx_manager.get_business_config();
this.update_cd = _.syyx_adv_manager.get_oppo_banner_show_update_time();
this.load_native_banner();
setInterval(function() {
t.banner_showing && t.banner_show_time++;
console.log("mijia ---- banner_show_time is " + t.banner_show_time);
if (t.banner_show_time > 0 && t.banner_show_time % t.update_cd == 0) {
console.log("igc----- update_native_banner");
t.update_cd = _.syyx_adv_manager.get_oppo_banner_show_update_time();
t.banner_show_time = 0;
t.load_native_banner();
}
}, 1e3);
}
};
t.prototype.show_banner = function(t, e, n, i, o, a, _) {
this.need_show = !0;
this._ad_param = {
ad_type: t,
ad_pos_id: e,
onLoad: n,
onShow: i,
onClose: o,
onError: a,
attrSet: _
};
console.log("mijia ---- in show banner ");
this.run_timer();
};
t.prototype.load_native_banner = function(t) {
void 0 === t && (t = a.e_ad_id.native_banner_1);
var e = this;
this.banner_showing = !1;
this.hide_native_banner();
this.hide_normal_banner();
var n = _.syyx_adv_manager.get_channel_ad_id(t);
if (n && "1" != n && "0" != n) {
var i = {
ad_type: igc.e_ad_type.native,
ad_id: n,
ad_pos_id: t,
sub_ad_type: 0,
ad_event: n,
ad_scene: n,
auto_show: !0,
attrSet: this._ad_param.attrSet,
onLoad: function() {
console.log("igc-----ad_banner_oppo_apk load_native_banner onLoad", t);
e._ad_param && e._ad_param.onLoad && e._ad_param.onLoad();
},
onShow: function() {
if (e.need_show) {
console.log("igc-----ad_banner_oppo_apk load_native_banner onShow", t);
e._ad_param && e._ad_param.onShow && e._ad_param.onShow();
e.banner_showing = !0;
} else e.hide_banner();
},
onClose: function() {
console.log("igc-----ad_banner_oppo_apk load_native_banner onClose", t);
e._ad_param && e._ad_param.onClose && e._ad_param.onClose();
},
onError: function(n, i) {
console.log("igc-----ad_banner_oppo_apk load_native_banner onError:" + t + JSON.stringify(i));
e.load_native_banner_error(t);
e._ad_param && e._ad_param.onError && e._ad_param.onError();
},
onClick: function() {
console.log("igc-----ad_banner_oppo_apk load_native_banner onClick:" + t);
e.click_auto_update();
},
apk_sub_ad_type: igc.e_native_advance_sub_type.banner,
extra: ""
};
igc.igc_main.instance.create_ad(i);
} else {
console.log("igc----- ad_banner_oppo_apk native_banner_id no configure in adv.csv" + t);
this.load_native_banner_error(t);
}
};
t.prototype.load_native_banner_error = function(t) {
switch (t) {
case a.e_ad_id.native_banner_1:
this.load_native_banner(a.e_ad_id.native_banner_2);
break;

case a.e_ad_id.native_banner_2:
this.load_native_banner(a.e_ad_id.native_banner_3);
break;

case a.e_ad_id.native_banner_3:
this.show_old_native_data_banner(!0);
}
};
t.prototype.show_old_native_data_banner = function(t) {
void 0 === t && (t = !0);
var e = this, n = _.syyx_adv_manager.get_channel_ad_id(a.e_ad_id.native_banner_1), i = {
use_cache: !0,
ignore_last: t
}, o = {
ad_type: igc.e_ad_type.native,
ad_id: n,
ad_pos_id: a.e_ad_id.native_banner_1,
sub_ad_type: 0,
ad_event: n,
ad_scene: n,
auto_show: !0,
parameter: i,
attrSet: this._ad_param.attrSet,
onLoad: function() {
console.log("igc-----ad_banner_oppo_apk show_old_native_data_banner onLoad");
e._ad_param && e._ad_param.onLoad && e._ad_param.onLoad();
},
onShow: function() {
if (e.need_show) {
console.log("igc-----ad_banner_oppo_apk show_old_native_data_banner onShow");
e._ad_param && e._ad_param.onShow && e._ad_param.onShow();
e.banner_showing = !0;
} else e.hide_banner();
},
onClose: function() {
console.log("igc-----ad_banner_oppo_apk show_old_native_data_banner onClose");
e._ad_param && e._ad_param.onClose && e._ad_param.onClose();
},
onError: function(n, i) {
console.log("igc-----ad_banner_oppo_apk show_old_native_data_banner onError:" + JSON.stringify(i));
e._ad_param && e._ad_param.onError && e._ad_param.onError();
t && e.load_normal_banner();
},
onClick: function() {
console.log("igc-----ad_banner_oppo_apk show_old_native_data_banner onClick:");
e.click_auto_update();
},
apk_sub_ad_type: igc.e_native_advance_sub_type.banner,
extra: ""
};
igc.igc_main.instance.show_ad(o);
};
t.prototype.click_auto_update = function() {
console.log("igc-----ad_inner_interstitial_oppo_apk click_auto_update");
this.banner_show_time = 0;
this.load_native_banner();
};
t.prototype.load_normal_banner = function() {
var t = this;
console.log("igc show_normal_banner-----------------------------------------------------------------");
var e = _.syyx_adv_manager.get_channel_ad_id(a.e_ad_id.banner_hall);
if (e && "1" != e && "0" != e) {
var n = {
ad_type: igc.e_ad_type.banner,
ad_id: e,
ad_pos_id: a.e_ad_id.banner_hall,
sub_ad_type: 0,
ad_event: e,
ad_scene: e,
auto_show: !0,
onLoad: function() {
console.log("igc-----load_normal_banner show_normal_banner onLoad");
t._ad_param && t._ad_param.onLoad && t._ad_param.onLoad();
},
onShow: function() {
if (t.need_show) {
t.banner_showing = !0;
console.log("igc-----load_normal_banner show_normal_banner onShow");
t._ad_param && t._ad_param.onShow && t._ad_param.onShow();
} else t.hide_banner();
},
onClose: function() {
console.log("igc-----load_normal_banner show_normal_banner onClose");
t._ad_param && t._ad_param.onClose && t._ad_param.onClose();
},
onError: function(e, n) {
console.log("igc-----load_normal_banner show_normal_banner onError:" + JSON.stringify(n));
t._ad_param && t._ad_param.onError && t._ad_param.onError();
t.load_normal_banner_error();
},
onClick: function() {
console.log("igc-----load_normal_banner show_normal_banner onClick:");
},
extra: ""
};
igc.igc_main.instance.create_ad(n);
} else {
console.log("igc----- ad_banner_oppo_apk normal_banner_id no configure in adv.csv");
this.load_normal_banner_error();
}
};
t.prototype.load_normal_banner_error = function() {
this.show_old_native_data_banner(!1);
};
t.prototype.hide_banner = function() {
this.need_show = !1;
this.banner_showing = !1;
this.hide_native_banner();
this.hide_normal_banner();
};
t.prototype.hide_native_banner = function() {
var t = [ a.e_ad_id.native_banner_1, a.e_ad_id.native_banner_2, a.e_ad_id.native_banner_3 ];
for (var e in t) {
var n = _.syyx_adv_manager.get_channel_ad_id(t[e]), i = {
ad_type: igc.e_ad_type.native,
ad_id: n,
ad_pos_id: t[e],
sub_ad_type: 0,
ad_event: n,
ad_scene: n,
apk_sub_ad_type: igc.e_native_advance_sub_type.banner
};
igc.igc_main.instance.hide_ad(i);
}
};
t.prototype.hide_normal_banner = function() {
o.syyx_sdk_api.destroy_ad(igc.e_ad_type.banner, a.e_ad_id.banner_hall);
};
return t;
}();
n.ad_banner_oppo_apk = d;
cc._RF.pop();
}, {
"../../configs/syyx_sdk_enum": "syyx_sdk_enum",
"../../syyx_sdk_api": "syyx_sdk_api",
"../ad/syyx_adv_manager": "syyx_adv_manager",
"../syyx_manager": "syyx_manager"
} ],
ad_banner: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "b97e0ZjqchKMJ52/081T9XS", "ad_banner");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ad_banner = void 0;
var i = t("./../../configs/syyx_sdk_enum"), o = t("../../utils/syyx_sdk_utils"), a = t("../syyx_manager"), _ = t("../../configs/syyx_sdk_config"), d = t("./syyx_adv_manager"), r = t("./ad_oppo_banner"), s = t("./ad_wx_banner"), c = function() {
function t() {}
t.run_timer = function() {
if (!this.is_run_timer) {
this.is_run_timer = !0;
this.timer_func();
}
};
t.timer_func = function() {
var t = this;
this._business_config_data = a.syyx_manager.get_business_config();
this._business_config_data && this._business_config_data.banner_cool_time && (this.auto_update_cd = this._business_config_data.banner_cool_time.value);
this.load_normal_banner();
var e = o.syyx_sdk_utils.get_random_number(this.auto_update_cd);
console.log("igc------ next time to refresh banner is", e);
this.timer_id && clearTimeout(this.timer_id);
this.timer_id = setTimeout(function() {
t.timer_func();
}, 1e3 * e);
};
t.show_banner = function(t, e, n, i, o, a) {
this.need_show = !0;
this._normal_banner_id = e;
this._native_banner_id = d.syyx_adv_manager._adv_config_data[e].backup_id;
this._ad_param = {
ad_type: t,
ad_pos_id: e,
onLoad: n,
onShow: i,
onClose: o,
onError: a
};
if (d.syyx_adv_manager.can_show_first_native && !d.syyx_adv_manager.limit_show_banner) if (d.syyx_adv_manager.check_is_open_oppo_rule()) r.ad_oppo_banner.show_banner(t, e, n, i, o, a); else if (_.syyx_const.syyx_sdk_channel != igc.e_channel_type.wx) {
var c = d.syyx_adv_manager.get_channel_ad_id(e);
c && "1" != c && "0" != c ? this.run_timer() : console.log("igc----- ad_banner normal_banner_id no configure in adv.csv");
} else s.ad_wx_banner.show_banner(t, e, n, i, o, a); else console.log("igc----- banner is in cooling time ");
};
t.auto_show_banner = function() {
this._ad_param && this._ad_param.ad_type && this._ad_param.ad_pos_id ? this.show_banner(this._ad_param.ad_type, this._ad_param.ad_pos_id, this._ad_param.onLoad, this._ad_param.onShow, this._ad_param.onClose, this._ad_param.onError) : this.show_banner(igc.e_ad_type.banner, i.e_ad_id.banner_hall, void 0, void 0, void 0, void 0);
};
t.hide_banner = function() {
this.need_show = !1;
if (d.syyx_adv_manager.check_is_open_oppo_rule()) r.ad_oppo_banner.hide_banner(); else if (_.syyx_const.syyx_sdk_channel != igc.e_channel_type.wx) if (d.syyx_adv_manager.can_show_first_native && !d.syyx_adv_manager.limit_show_banner) {
this.is_run_timer = !1;
this.hide_normal_banner();
this.timer_id && clearTimeout(this.timer_id);
this.timer_id = void 0;
} else console.log("igc----- banner is in cooling time "); else s.ad_wx_banner.hide_banner();
};
t.load_normal_banner = function() {
this.need_show ? this._native_banner_id && d.syyx_adv_manager.is_oppo_vivo() || this.show_normal_banner() : this.hide_banner();
};
t.report_ad_click = function(t, e) {
d.syyx_adv_manager.check_is_open_oppo_rule() && r.ad_oppo_banner.report_ad_click(t, e);
};
t.report_ad_show = function(t, e) {
d.syyx_adv_manager.check_is_open_oppo_rule() && r.ad_oppo_banner.report_ad_show(t, e);
};
t.get_easy_click_protect_count = function() {
var t = 0;
this._business_config_data = a.syyx_manager.get_business_config();
this._business_config_data && this._business_config_data.native_banner_click_protect && (t = this._business_config_data.native_banner_click_protect.value[0]);
return t;
};
t.set_banenr_protect_model = function() {
this.cur_protect_count = 0;
};
t.get_is_easy_click_model = function() {
var t = this.get_easy_click_protect_count();
if (t > 0 && this.cur_protect_count >= 0) {
this.cur_protect_count++;
if (this.cur_protect_count <= t) return !1;
}
this._business_config_data = a.syyx_manager.get_business_config();
if (this._business_config_data && this._business_config_data.native_banner_click_switch && 1 == this._business_config_data.native_banner_click_switch.value[0]) {
var e = this._business_config_data.native_banner_click_pro.value[0];
return Math.random() <= e;
}
return !1;
};
t.set_normal_banner_switch = function(t) {
d.syyx_adv_manager.check_is_open_oppo_rule() && r.ad_oppo_banner.set_normal_banner_switch(t);
};
t.show_normal_banner = function() {
if (this._business_config_data && this._business_config_data.show_normal_banner_switch && 0 == this._business_config_data.show_normal_banner_switch.value[0]) console.log("igc ----- normal banner switch is close"); else if (this.can_show_vivo_banner || _.syyx_const.syyx_sdk_channel !== igc.e_channel_type.vivo_qg) {
var t = this;
a.syyx_manager.create_ad(igc.e_ad_type.banner, t._normal_banner_id, function() {
t._ad_param.onLoad && t._ad_param.onLoad();
}, function() {
t.normal_banner_showing = !0;
t.need_show ? t._ad_param.onShow && t._ad_param.onShow() : t.hide_normal_banner();
}, function() {
t._ad_param.onClose && t._ad_param.onClose();
}, function(e, n) {
console.log("igc------syyx_adv_manager show_normal_banner onError", n);
t._ad_param.onError && t._ad_param.onError(e, n);
});
} else console.log("igc----- vivo ad_banner show_normal_banner create too often!!!");
};
t.hide_normal_banner = function() {
var t = this;
if (t._normal_banner_id) {
if (t.normal_banner_showing && _.syyx_const.syyx_sdk_channel === igc.e_channel_type.vivo_qg) {
t.can_show_vivo_banner = !1;
this.banner_timer_id && clearTimeout(this.banner_timer_id);
this.banner_timer_id = setTimeout(function() {
t.can_show_vivo_banner = !0;
}, 11e3);
}
t.normal_banner_showing = !1;
a.syyx_manager.destroy_ad(igc.e_ad_type.banner, t._normal_banner_id);
}
};
t._business_config_data = {};
t._native_banner_id = void 0;
t._normal_banner_id = void 0;
t.auto_update_cd = [ 20, 20 ];
t.is_run_timer = !1;
t.need_show = !0;
t.normal_banner_showing = !1;
t.can_show_vivo_banner = !0;
t.cur_protect_count = -1;
return t;
}();
n.ad_banner = c;
cc._RF.pop();
}, {
"../../configs/syyx_sdk_config": "syyx_sdk_config",
"../../utils/syyx_sdk_utils": "syyx_sdk_utils",
"../syyx_manager": "syyx_manager",
"./../../configs/syyx_sdk_enum": "syyx_sdk_enum",
"./ad_oppo_banner": "ad_oppo_banner",
"./ad_wx_banner": "ad_wx_banner",
"./syyx_adv_manager": "syyx_adv_manager"
} ],
ad_block: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "5c619pCq/9P2LwGNx2Vh9gI", "ad_block");
Object.defineProperty(n, "__esModule", {
value: !0
});
var i = t("../syyx_manager"), o = t("../../configs/syyx_sdk_config"), a = t("../../utils/syyx_sdk_utils"), _ = t("./syyx_adv_manager"), d = function() {
function t() {
this._business_config_data = {};
this.auto_update_cd = [ 20, 20 ];
this.is_run_timer = !1;
this.need_show = !0;
}
t.prototype.run_timer = function() {
var t = o.syyx_const.syyx_sdk_channel === igc.e_channel_type.qq || o.syyx_const.syyx_sdk_channel === igc.e_channel_type.web;
if (!this.is_run_timer && t) {
this.is_run_timer = !0;
this.timer_func();
}
};
t.prototype.timer_func = function() {
var t = this;
this._business_config_data = i.syyx_manager.get_business_config();
this._business_config_data && this._business_config_data.banner_cool_time && (this.auto_update_cd = this._business_config_data.banner_cool_time.value);
this.hide_block();
this.need_show = !0;
this.load_block();
if (this._ad_param && this._ad_param.style && this._ad_param.style.auto_update) {
var e = a.syyx_sdk_utils.get_random_number(this.auto_update_cd);
console.log("igc------syyx_ui_block next time to refresh right side block's  cd", e);
this.timer_id && clearTimeout(this.timer_id);
this.timer_id = setTimeout(function() {
t.timer_func();
}, 1e3 * e);
}
};
t.prototype.show_block = function(t, e, n, i, o, a, d) {
this._ad_pos_id = n;
this._ad_param = {
style: t,
ad_type: e,
ad_pos_id: n,
onLoad: i,
onShow: o,
onClose: a,
onError: d
};
var r = _.syyx_adv_manager.get_channel_ad_id(n);
r && "1" != r && "0" != r ? this.run_timer() : console.log("igc----- ad_block native_interstitial_id no configure in adv.csv");
};
t.prototype.hide_block = function() {
this.need_show = !1;
this.destroy_timer();
i.syyx_manager.hide_ad(igc.e_ad_type.block, this._ad_pos_id);
};
t.prototype.destroy_timer = function() {
this.is_run_timer = !1;
this.timer_id && clearTimeout(this.timer_id);
this.timer_id = void 0;
};
t.prototype.load_block = function() {
var t = this;
if (this.need_show) {
var e = 5;
this._business_config_data && this._business_config_data.block_bottom_offset && this._business_config_data.block_bottom_offset.value[0] > 0 && (e = this._business_config_data.block_bottom_offset);
var n = void 0;
this._ad_param.style.vertical_center_y >= -888888 && (n = this._ad_param.style.vertical_center_y);
var i = void 0;
this._ad_param.style.vertical_right >= 0 && (i = this._ad_param.style.vertical_right);
var o = {
ad_type: igc.e_ad_type.block,
ad_id: _.syyx_adv_manager.get_channel_ad_id(this._ad_pos_id),
ad_pos_id: this._ad_pos_id,
ad_event: this._ad_pos_id,
ad_scene: this._ad_pos_id,
style: {
left: this._ad_param.style.left >= 20 ? this._ad_param.style.left : 20,
top: this._ad_param.style.top >= 50 ? this._ad_param.style.top : 50
},
vertical_center_y: n,
vertical_right: i,
bottom_offset: e,
size: this._ad_param.style.size || 5,
orientation: this._ad_param.style.orientation || "landscape",
onShow: function() {
console.error("igc-----syyx_adv_manager-------load_block onShow");
t.need_show || t.hide_block();
},
onError: function(e, n) {
console.error("igc-----syyx_adv_manager-------load_block onError", n);
t._ad_param.onError && t._ad_param.onError(e, n);
}
};
igc.igc_main.instance.create_ad(o);
} else this.hide_block();
};
return t;
}();
n.default = d;
cc._RF.pop();
}, {
"../../configs/syyx_sdk_config": "syyx_sdk_config",
"../../utils/syyx_sdk_utils": "syyx_sdk_utils",
"../syyx_manager": "syyx_manager",
"./syyx_adv_manager": "syyx_adv_manager"
} ],
ad_inner_interstitial_oppo_apk: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "b7038XbJhhAjp0toPiXQFfR", "ad_inner_interstitial_oppo_apk");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ad_inner_interstitial_oppo_apk = void 0;
var i = t("../../configs/syyx_sdk_enum"), o = t("../ad/syyx_adv_manager"), a = function() {
function t() {
this._business_config_data = {};
}
t.prototype.preload_native_inner_interstitial = function(t, e, n, o, a, _) {
this._ad_param = {
ad_type: t,
ad_pos_id: e,
onLoad: n,
onShow: o,
onClose: a,
onError: _
};
this.load_native_inner_interstitial(i.e_ad_id.native_inner_interstitial_1);
};
t.prototype.load_native_inner_interstitial = function(t, e, n) {
void 0 === t && (t = i.e_ad_id.native_inner_interstitial_1);
void 0 === e && (e = !1);
void 0 === n && (n = !1);
var a = this, _ = o.syyx_adv_manager.get_channel_ad_id(t);
if (_ && "1" != _ && "0" != _) {
console.log("igc ---- load inner interstitial ad pos id is" + t);
var d = {
ad_type: igc.e_ad_type.native,
ad_id: _,
ad_pos_id: t,
sub_ad_type: 0,
ad_event: _,
ad_scene: _,
auto_show: e,
parameter: {
use_cache: !0,
ignore_last: !1
},
attrSet: this._ad_param.attrSet,
onLoad: function() {
console.log("igc-----ad_inner_interstitial_oppo_apk load_native_inner_interstitial onLoad" + t);
a._ad_param && a._ad_param.onLoad && a._ad_param.onLoad();
},
onShow: function() {
console.log("igc-----ad_inner_interstitial_oppo_apk load_native_inner_interstitial onShow" + t);
a._ad_param && a._ad_param.onShow && a._ad_param.onShow();
},
onClose: function() {
console.log("igc-----ad_inner_interstitial_oppo_apk load_native_inner_interstitial onClose" + t);
a._ad_param && a._ad_param.onClose && a._ad_param.onClose();
},
onError: function(i, o) {
console.log("igc-----ad_inner_interstitial_oppo_apk load_native_inner_interstitial onError:" + t + JSON.stringify(o));
a.load_native_inner_interstitial_error(t, e, n);
a._ad_param && a._ad_param.onError && a._ad_param.onError();
a._ad_param && a._ad_param.onClose && a._ad_param.onClose();
},
onClick: function() {
console.log("igc-----ad_inner_interstitial_oppo_apk load_native_inner_interstitial onClick:" + t);
a._ad_param && a._ad_param.onClick && a._ad_param.onClick();
a.click_auto_update();
},
apk_sub_ad_type: igc.e_native_advance_sub_type.inner_interstitial,
extra: ""
};
igc.igc_main.instance.create_ad(d);
} else {
console.log("igc----- ad_inner_interstitial_oppo_apk native_inner_interstitial_id no configure in adv.csv" + t);
this.load_native_inner_interstitial_error(t);
}
};
t.prototype.load_native_inner_interstitial_error = function(t, e, n) {
void 0 === e && (e = !1);
void 0 === n && (n = !1);
switch (t) {
case i.e_ad_id.native_inner_interstitial_1:
console.log("igc----- native inner now has loaded e_ad_id.native_inner_interstitial_1 " + i.e_ad_id.native_inner_interstitial_1);
this.load_native_inner_interstitial(i.e_ad_id.native_inner_interstitial_2, e, n);
break;

case i.e_ad_id.native_inner_interstitial_2:
console.log("igc----- native inner now has loaded e_ad_id.native_inner_interstitial_2 " + i.e_ad_id.native_inner_interstitial_2);
this.load_native_inner_interstitial(i.e_ad_id.native_inner_interstitial_3, e, n);
break;

case i.e_ad_id.native_inner_interstitial_3:
console.log("igc----- native inner now has load e_ad_id.native_inner_interstitial_3 " + i.e_ad_id.native_inner_interstitial_3);
this.show_old_native_data_inner_interstitial(!1);
}
};
t.prototype.show_native_inner_interstitial = function(t, e, n, i, o, a, _, d) {
this._ad_param = {
ad_type: t,
ad_pos_id: e,
onLoad: n,
onShow: i,
onClose: o,
onError: a,
onClick: _,
attrSet: d
};
this.show_old_native_data_inner_interstitial(!1);
};
t.prototype.show_old_native_data_inner_interstitial = function(t) {
void 0 === t && (t = !1);
t ? console.log("mijia --- show old data in inner interstitial with ignore_last") : console.log("mijia --- show old data in inner interstitial without ignore_last");
var e = this, n = o.syyx_adv_manager.get_channel_ad_id(i.e_ad_id.native_inner_interstitial_1), a = {
use_cache: !0,
ignore_last: t
}, _ = {
ad_type: igc.e_ad_type.native,
ad_id: n,
ad_pos_id: i.e_ad_id.native_inner_interstitial_1,
sub_ad_type: 0,
ad_event: n,
ad_scene: n,
auto_show: !0,
parameter: a,
attrSet: this._ad_param.attrSet,
onLoad: function() {
console.log("igc-----ad_inner_interstitial_oppo_apk show_old_native_data_inner_interstitial onLoad");
e._ad_param && e._ad_param.onLoad && e._ad_param.onLoad();
},
onShow: function() {
console.log("igc-----ad_inner_interstitial_oppo_apk show_old_native_data_inner_interstitial onShow");
e._ad_param && e._ad_param.onShow && e._ad_param.onShow();
},
onClose: function() {
console.log("igc-----ad_inner_interstitial_oppo_apk show_old_native_data_inner_interstitial onClose");
e._ad_param && e._ad_param.onClose && e._ad_param.onClose();
},
onError: function(t, n) {
console.log("igc-----ad_inner_interstitial_oppo_apk show_old_native_data_inner_interstitial onError:" + JSON.stringify(n));
e._ad_param && e._ad_param.onError && e._ad_param.onError();
e._ad_param && e._ad_param.onClose && e._ad_param.onClose();
},
onClick: function() {
console.log("igc-----ad_inner_interstitial_oppo_apk show_old_native_data_inner_interstitial onClick:");
e.click_auto_update();
e._ad_param && e._ad_param.onClick && e._ad_param.onClick();
},
apk_sub_ad_type: igc.e_native_advance_sub_type.inner_interstitial,
extra: ""
};
igc.igc_main.instance.show_ad(_);
};
t.prototype.click_auto_update = function() {
this.hide_native_inner_interstitial();
console.log("igc-----ad_inner_interstitial_oppo_apk click_auto_update");
this.load_native_inner_interstitial(i.e_ad_id.native_inner_interstitial_1, !0, !0);
};
t.prototype.hide_native_inner_interstitial = function() {
var t = [ i.e_ad_id.native_inner_interstitial_1, i.e_ad_id.native_inner_interstitial_2, i.e_ad_id.native_inner_interstitial_3 ];
for (var e in t) {
var n = o.syyx_adv_manager.get_channel_ad_id(t[e]), a = {
ad_type: igc.e_ad_type.native,
ad_id: n,
ad_pos_id: t[e],
sub_ad_type: 0,
ad_event: n,
ad_scene: n,
apk_sub_ad_type: igc.e_native_advance_sub_type.inner_interstitial
};
igc.igc_main.instance.hide_ad(a);
}
};
return t;
}();
n.ad_inner_interstitial_oppo_apk = a;
cc._RF.pop();
}, {
"../../configs/syyx_sdk_enum": "syyx_sdk_enum",
"../ad/syyx_adv_manager": "syyx_adv_manager"
} ],
ad_interstitial_oppo_apk: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "60851+E+KtKgIH1jjDLZLPX", "ad_interstitial_oppo_apk");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ad_interstitial_oppo_apk = void 0;
var i = t("./../syyx_manager"), o = t("../../configs/syyx_sdk_enum"), a = t("../../syyx_sdk_api"), _ = t("../ad/syyx_adv_manager"), d = function() {
function t() {
this._business_config_data = {};
}
t.prototype.show_native_interstitial = function(t, e, n, i, o, a) {
this._ad_param = {
ad_type: t,
ad_pos_id: e,
onLoad: n,
onShow: i,
onClose: o,
onError: a
};
console.log("mijia ------ now is show native interstitital");
this.load_native_interstitial();
};
t.prototype.load_native_interstitial = function(t) {
void 0 === t && (t = o.e_ad_id.native_interstitial_1);
var e = this, n = _.syyx_adv_manager.get_channel_ad_id(t);
if (n && "1" != n && "0" != n) {
var a = {
ad_type: igc.e_ad_type.native,
ad_id: n,
ad_pos_id: t,
sub_ad_type: 0,
ad_event: n,
ad_scene: n,
auto_show: !0,
onLoad: function() {
console.log("igc-----ad_interstitial_oppo_apk load_native_interstitial onLoad", t);
e._ad_param && e._ad_param.onLoad && e._ad_param.onLoad();
},
onShow: function() {
console.log("igc-----ad_interstitial_oppo_apk load_native_interstitial onShow", t);
e._ad_param && e._ad_param.onShow && e._ad_param.onShow();
},
onClose: function() {
console.log("igc-----ad_interstitial_oppo_apk load_native_interstitial onClose", t);
e._ad_param && e._ad_param.onClose && e._ad_param.onClose();
},
onError: function(n, i) {
console.log("igc-----ad_interstitial_oppo_apk load_native_interstitial onError:" + t + JSON.stringify(i));
e.load_native_interstitial_error(t);
e._ad_param && e._ad_param.onError && e._ad_param.onError();
},
onClick: function() {
console.log("igc-----ad_interstitial_oppo_apk load_native_interstitial onClick:" + t);
var n = i.syyx_manager.get_business_data_by_key("native_interstitial_report_click_update_switch");
console.log("kuluo1111 native_interstitial_report_click_update_switch-----\x3e" + n);
n && 1 == n[0] && e.click_auto_update();
},
apk_sub_ad_type: igc.e_native_advance_sub_type.interstitial,
extra: ""
};
igc.igc_main.instance.create_ad(a);
} else {
console.log("igc----- ad_interstitial_oppo_apk native_interstitial_id no configure in adv.csv" + t);
this.load_native_interstitial_error(t);
}
};
t.prototype.load_native_interstitial_error = function(t) {
switch (t) {
case o.e_ad_id.native_interstitial_1:
this.load_native_interstitial(o.e_ad_id.native_interstitial_2);
break;

case o.e_ad_id.native_interstitial_2:
this.load_native_interstitial(o.e_ad_id.native_interstitial_3);
break;

case o.e_ad_id.native_interstitial_3:
this.show_old_native_data_interstitial(!0);
}
};
t.prototype.show_old_native_data_interstitial = function(t) {
void 0 === t && (t = !0);
var e = this, n = _.syyx_adv_manager.get_channel_ad_id(o.e_ad_id.native_interstitial_1), a = {
use_cache: !0,
ignore_last: t
}, d = {
ad_type: igc.e_ad_type.native,
ad_id: n,
ad_pos_id: o.e_ad_id.native_interstitial_1,
sub_ad_type: 0,
ad_event: n,
ad_scene: n,
auto_show: !0,
parameter: a,
onLoad: function() {
console.log("igc-----ad_interstitial_oppo_apk show_old_native_data_interstitial onLoad");
e._ad_param && e._ad_param.onLoad && e._ad_param.onLoad();
},
onShow: function() {
console.log("igc-----ad_interstitial_oppo_apk show_old_native_data_interstitial onShow");
e._ad_param && e._ad_param.onShow && e._ad_param.onShow();
},
onClose: function() {
console.log("igc-----ad_interstitial_oppo_apk show_old_native_data_interstitial onClose");
e._ad_param && e._ad_param.onClose && e._ad_param.onClose();
},
onError: function(n, i) {
console.log("igc-----ad_interstitial_oppo_apk show_old_native_data_interstitial onError:" + JSON.stringify(i));
e._ad_param && e._ad_param.onError && e._ad_param.onError();
t && e.load_video_interstitial();
},
onClick: function() {
console.log("igc-----ad_interstitial_oppo_apk show_old_native_data_interstitial onClick:");
var t = i.syyx_manager.get_business_data_by_key("native_interstitial_report_click_update_switch");
console.log("kuluo222 native_interstitial_report_click_update_switch-----\x3e" + t);
t && 1 == t[0] && e.click_auto_update();
},
apk_sub_ad_type: igc.e_native_advance_sub_type.interstitial,
extra: ""
};
igc.igc_main.instance.show_ad(d);
};
t.prototype.click_auto_update = function() {
this.hide_native_interstitial();
console.log("igc-----ad_interstitial_oppo_apk click_auto_update");
this.load_native_interstitial();
};
t.prototype.load_video_interstitial = function(t, e, n, i) {
var a = this, d = _.syyx_adv_manager.get_channel_ad_id(o.e_ad_id.interstitial_video);
if (d && "1" != d && "0" != d) {
var r = {
ad_type: igc.e_ad_type.interstitial_video,
ad_id: d,
ad_pos_id: o.e_ad_id.interstitial_video,
sub_ad_type: 0,
ad_event: d,
ad_scene: d,
auto_show: !0,
onLoad: function() {
console.log("igc-----ad_interstitial_oppo_apk load_video_interstitial onLoad");
t && t();
},
onShow: function() {
console.log("igc-----ad_interstitial_oppo_apk load_video_interstitial onShow");
e && e();
},
onClose: function() {
console.log("igc-----ad_interstitial_oppo_apk load_video_interstitial onClose");
n && n();
},
onError: function(t, e) {
console.log("igc-----ad_interstitial_oppo_apk load_video_interstitial onError:" + JSON.stringify(e));
i && i();
a.load_normal_interstitial();
},
extra: ""
};
igc.igc_main.instance.create_ad(r);
} else {
console.log("igc----- ad_interstitial_oppo_apk native_interstitial_id no configure in adv.csv" + o.e_ad_id.interstitial_video);
this.load_normal_interstitial();
}
};
t.prototype.load_normal_interstitial = function(t, e, n, i) {
var a = this;
console.log("igc show_normal_interstitial-----------------------------------------------------------------");
var d = _.syyx_adv_manager.get_channel_ad_id(o.e_ad_id.interstitial_hall);
if (d && "1" != d && "0" != d) {
var r = {
ad_type: igc.e_ad_type.interstitial,
ad_id: d,
ad_pos_id: o.e_ad_id.interstitial_hall,
sub_ad_type: 0,
ad_event: d,
ad_scene: d,
auto_show: !0,
onLoad: function() {
console.log("igc-----load_normal_interstitial show_normal_interstitial onLoad");
t && t();
},
onShow: function() {
console.log("igc-----load_normal_interstitial show_normal_interstitial onShow");
e && e();
},
onClose: function() {
console.log("igc-----load_normal_interstitial show_normal_interstitial onClose");
n && n();
},
onError: function(t, e) {
console.log("igc-----load_normal_interstitial show_normal_interstitial onError:" + JSON.stringify(e));
i && i();
a.load_normal_interstitial_error();
},
onClick: function(t) {
console.log("igc-----load_normal_interstitial show_normal_interstitial onClick:" + t.ad_pos_id);
},
extra: ""
};
igc.igc_main.instance.create_ad(r);
} else console.log("igc----- ad_interstitial_oppo_apk normal_interstitial_id no configure in adv.csv");
};
t.prototype.load_normal_interstitial_error = function() {
this.show_old_native_data_interstitial(!1);
};
t.prototype.hide_interstitial = function() {
this.hide_native_interstitial();
this.hide_normal_interstitial();
};
t.prototype.hide_native_interstitial = function() {
var t = [ o.e_ad_id.native_interstitial_1, o.e_ad_id.native_interstitial_2, o.e_ad_id.native_interstitial_3 ];
for (var e in t) {
var n = _.syyx_adv_manager.get_channel_ad_id(t[e]), i = {
ad_type: igc.e_ad_type.native,
ad_id: n,
ad_pos_id: t[e],
sub_ad_type: 0,
ad_event: n,
ad_scene: n,
apk_sub_ad_type: igc.e_native_advance_sub_type.interstitial
};
igc.igc_main.instance.hide_ad(i);
}
};
t.prototype.hide_normal_interstitial = function() {
a.syyx_sdk_api.destroy_ad(igc.e_ad_type.interstitial, o.e_ad_id.interstitial_hall);
};
return t;
}();
n.ad_interstitial_oppo_apk = d;
cc._RF.pop();
}, {
"../../configs/syyx_sdk_enum": "syyx_sdk_enum",
"../../syyx_sdk_api": "syyx_sdk_api",
"../ad/syyx_adv_manager": "syyx_adv_manager",
"./../syyx_manager": "syyx_manager"
} ],
ad_native_icon: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "f723a+cF1VHgKqwDDNUF9YK", "ad_native_icon");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ad_native_icon = void 0;
var i = t("../../model/model"), o = t("../../configs/syyx_sdk_enum"), a = t("../syyx_manager"), _ = t("../../configs/syyx_sdk_config"), d = t("./syyx_adv_manager"), r = t("../../utils/syyx_sdk_utils"), s = function() {
function t() {}
t.run_timer = function() {
if (!this.is_run_timer && d.syyx_adv_manager.is_oppo_vivo()) {
this.is_run_timer = !0;
this.timer_func();
}
};
t.timer_func = function() {
var t = this;
this._business_config_data = a.syyx_manager.get_business_config();
this._business_config_data && this._business_config_data.native_icon_cool_time && (this.auto_update_cd = this._business_config_data.native_icon_cool_time.value);
this.load_native_icon();
var e = r.syyx_sdk_utils.get_random_number(this.auto_update_cd);
console.log("igc-----syyx_ui_native_icon next time to refresh native icon is ", e);
this.timer_id && clearTimeout(this.timer_id);
this.timer_id = setTimeout(function() {
t.timer_func();
}, 1e3 * e);
};
t.report_ad_click = function(t) {
if (this._ad_pos_id == t) {
console.log("igc ----- has in native icon 's report click ");
this._business_config_data = a.syyx_manager.get_business_config();
if (this._business_config_data && this._business_config_data.native_icon_report_click_update_switch && 1 == this._business_config_data.native_icon_report_click_update_switch.value[0]) {
this.destroy_timer();
this.icon_parent && this.show_native_icon(this.icon_parent, this._ad_param.ad_type, this._ad_param.ad_pos_id, this._ad_param.onLoad, this._ad_param.onShow, this._ad_param.onClose, this._ad_param.onError);
}
}
};
t.report_ad_show = function() {
this._ad_pos_id;
};
t.show_native_icon = function(t, e, n, i, o, _, r) {
this._ad_pos_id = n;
this._ad_param = {
ad_type: e,
ad_pos_id: n,
onLoad: i,
onShow: o,
onClose: _,
onError: r
};
this.need_show = !0;
this.icon_parent = t;
var s = d.syyx_adv_manager.get_channel_ad_id(n);
if (s && "1" != s && "0" != s) {
this._business_config_data = a.syyx_manager.get_business_config();
this._business_config_data && this._business_config_data.native_icon_switch && (1 == this._business_config_data.native_icon_switch.value[0] ? this.run_timer() : console.log("igc----- the remote switch of native icon is close"));
} else console.log("igc----- ad_block ad_native_icon no configure in adv.csv");
};
t.hide_native_icon = function() {
this.need_show = !1;
this.icon_parent = void 0;
this.hide_native_icon_ui();
this.destroy_timer();
};
t.destroy_timer = function() {
this.is_run_timer = !1;
this.timer_id && clearTimeout(this.timer_id);
this.timer_id = void 0;
};
t.load_native_icon = function(t) {
var e = this;
if (d.syyx_adv_manager.can_show_first_native) if (this.need_show) {
var n = this.get_native_data();
if (n && n.state == o.e_ad_native_state.need_show) this.show_native_icon_ui(); else if (_.syyx_const.syyx_sdk_channel !== igc.e_channel_type.web) a.syyx_manager.create_ad(igc.e_ad_type.native, this._ad_pos_id, function(t, n) {
console.log("igc-----syyx_adv_manager-------load_native_icon on_load", n);
if (null != n && n[0]) {
var a = 0;
_.syyx_const.syyx_sdk_channel === igc.e_channel_type.vivo_qg && (a = n.length - 1);
var s;
s = _.syyx_const.syyx_sdk_channel === igc.e_channel_type.oppo_qg ? r.syyx_sdk_utils.format_remote_texture_url(n[a].iconUrlList[0]) : r.syyx_sdk_utils.format_remote_texture_url(n[a].imgUrlList[0]);
var c = new i.native_ad_data();
c.id = igc.utils_manager.get_random_name();
c.adPosId = e._ad_pos_id;
c.adId = d.syyx_adv_manager.get_channel_ad_id(e._ad_pos_id);
c.adUnitId = n[a].adUnitId;
c.imgUrlList = s;
c.title = n[a].title;
c.desc = n[a].desc;
c.state = o.e_ad_native_state.need_show;
c.native_type = o.e_ad_native_type.native_icon;
e.add_native_data(c);
e._ad_param.onLoad && e._ad_param.onLoad({}, c);
e.show_native_icon_ui();
}
}, function() {}, function() {}, function(t, n) {
console.error("igc-----syyx_adv_manager-------load_native_icon onError", n);
e.get_native_data() && e.show_native_icon_ui();
e._ad_param.onError && e._ad_param.onError();
}); else {
var s = new i.native_ad_data();
s.id = igc.utils_manager.get_random_name();
s.adPosId = this._ad_pos_id;
s.adId = r.syyx_sdk_utils.get_random_number([ 100, 200 ]);
s.adUnitId = r.syyx_sdk_utils.get_random_number([ 0, 1e5 ]);
s.imgUrlList = "https://h5-lg.syyx.com/coolbattle/share/share_img.jpg";
s.title = "原生icon标题" + r.syyx_sdk_utils.get_random_number([ 100, 200 ]);
s.desc = "原生icon描述" + r.syyx_sdk_utils.get_random_number([ 100, 200 ]);
s.state = o.e_ad_native_state.need_show;
s.native_type = o.e_ad_native_type.native_icon;
this.add_native_data(s);
this._ad_param.onLoad && this._ad_param.onLoad({}, s);
this.show_native_icon_ui();
t && t();
}
} else this.hide_native_icon_ui(); else console.log("igc----- is in oppo first ad cd");
};
t.show_native_icon_ui = function() {
var t = this;
t.hide_native_icon_ui();
if (this.need_show) if (this.icon_parent) {
if (d.syyx_adv_manager.is_oppo_vivo()) {
var e = this.get_native_data();
this.need_show && e && a.syyx_manager.create_native_icon(function(n) {
n.show && n.show(t.icon_parent, e);
});
}
} else console.log("igc----- the native icon's parent node is not exist"); else console.log("igc----- the current interface doesn't need to show native icon so that do not refresh native data");
};
t.hide_native_icon_ui = function() {
d.syyx_adv_manager.is_oppo_vivo() && a.syyx_manager.create_native_icon(function(t) {
t.hide && t.hide();
});
};
t.get_native_data = function() {
if (d.syyx_adv_manager.check_is_open_oppo_rule()) {
if (d.syyx_adv_manager.check_native_data_list_is_reprot(this._native_data_list)) {
console.log("igc----- ad_native_icon use old load native data");
return d.syyx_adv_manager.get_min_order_native_data(this._native_data_list);
}
return d.syyx_adv_manager.get_latest_native_data(this._native_data_list);
}
return this._native_data_list[0];
};
t.add_native_data = function(t) {
if (d.syyx_adv_manager.check_is_open_oppo_rule()) {
for (var e in this._native_data_list) if (this._native_data_list[e].adUnitId == t.adUnitId) return;
var n = d.syyx_adv_manager.get_oppo_native_cache_max_length();
this._native_data_list.length >= n && this._native_data_list.splice(0, 1);
this._native_data_list.push(t);
} else this._native_data_list[0] = t;
};
t._native_data_list = [];
t._business_config_data = {};
t.auto_update_cd = [ 20, 20 ];
t.is_run_timer = !1;
t.need_show = !0;
return t;
}();
n.ad_native_icon = s;
cc._RF.pop();
}, {
"../../configs/syyx_sdk_config": "syyx_sdk_config",
"../../configs/syyx_sdk_enum": "syyx_sdk_enum",
"../../model/model": "model",
"../../utils/syyx_sdk_utils": "syyx_sdk_utils",
"../syyx_manager": "syyx_manager",
"./syyx_adv_manager": "syyx_adv_manager"
} ],
ad_native_inner_interstitial: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "e99f1odQZ1M3Z/ZTQyYK1KD", "ad_native_inner_interstitial");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ad_native_inner_interstitial = void 0;
var i = t("../../model/model"), o = t("../../configs/syyx_sdk_enum"), a = t("../syyx_manager"), _ = t("../../configs/syyx_sdk_config"), d = t("./syyx_adv_manager"), r = t("../../utils/syyx_sdk_utils"), s = function() {
function t() {}
t.auto_preload_native_inner_interstitial = function() {
var t = this;
this._business_config_data = a.syyx_manager.get_business_config();
if (this._business_config_data && this._business_config_data.native_inner_interstitial_auto_preload_rule) {
this._can_auto_preload = this._business_config_data.native_inner_interstitial_auto_preload_rule.value[0];
var e = this._business_config_data.native_inner_interstitial_auto_preload_rule.value[1];
if (this._can_auto_preload) {
var n = function() {
console.log("igc----- ad_native_inner_interstitial auto preload");
t.preload_native_inner_interstitial(igc.e_ad_type.native, o.e_ad_id.native_inner_interstitial_success, void 0, void 0, void 0, void 0);
};
this._auto_preload_timer_id || n && n();
this._auto_preload_timer_id = setTimeout(function() {
t._is_showing || n && n();
t.auto_preload_native_inner_interstitial();
}, 1e3 * e);
} else this._auto_preload_timer_id && clearTimeout(this._auto_preload_timer_id);
}
};
t.report_ad_click = function(t) {
var e = this;
if (!this._ad_pos_id) {
console.log("igc----- ad_native_inner_interstitial  report_ad_click this.ad_pos_id is null!!");
this._ad_pos_id = o.e_ad_id.native_inner_interstitial_success;
}
if (this._ad_pos_id == t) if (_.syyx_const.syyx_sdk_channel !== igc.e_channel_type.hw_qg) {
console.log("igc ----- has in inner interstitial's report click ");
this._business_config_data = a.syyx_manager.get_business_config();
this._business_config_data && this._business_config_data.native_inner_report_click_update_switch && (1 == this._business_config_data.native_inner_report_click_update_switch.value[0] ? this.preload_native_inner_interstitial(igc.e_ad_type.native, t, function(t, n) {
console.log("igc----- ad_native_inner_interstitial click update success");
e.update_native_inner_interstitial_ui(n);
}, function() {}, function() {}, function() {
var t = e.get_native_data();
t ? e.update_native_inner_interstitial_ui(t) : a.syyx_manager.hide_native_inner_interstitial();
}) : a.syyx_manager.hide_native_inner_interstitial());
} else {
console.log("igc ------ hw hide inner interstitial");
a.syyx_manager.hide_native_inner_interstitial();
}
};
t.report_ad_show = function(t, e) {
if (!this._ad_pos_id) {
console.log("igc----- ad_native_inner_interstitial  report_ad_click this.ad_pos_id is null!!");
this._ad_pos_id = o.e_ad_id.native_inner_interstitial_success;
}
this._ad_pos_id == t && (this._last_ad_id = e.id);
};
t.preload_native_inner_interstitial = function(t, e, n, s, c, h) {
var l = this;
this._ad_pos_id = e;
this._ad_param = {
ad_type: t,
ad_pos_id: e,
onLoad: n,
onShow: s,
onClose: c,
onError: h
};
var p = this.get_native_data();
if (d.syyx_adv_manager.check_is_click_limit(o.e_ad_native_type.native_inner_interstitial)) p ? n && n({}, p) : h && h(); else if (p && p.state == o.e_ad_native_state.need_show) {
console.log("igc----- ad_native_inner interstitial has native data not report_show");
n && n({}, p);
} else {
this._business_config_data = a.syyx_manager.get_business_config();
if (this._business_config_data && this._business_config_data.native_inner_interstitial_switch && 0 == this._business_config_data.native_inner_interstitial_switch.value[0]) console.log("igc----- ad_native_inner_interstitial native_inner_interstitial_switch is close!!!"); else {
var u = d.syyx_adv_manager.get_channel_ad_id(e);
if (u && "1" != u && "0" != u) {
var f = d.syyx_adv_manager.get_latest_native_data(this._native_data_list);
if (f && f.state == o.e_ad_native_state.need_show) n && n({}, f); else if (d.syyx_adv_manager.check_is_show_count_limit()) {
console.log("igc----- ad_native_inner_interstitial preload_native_inner_interstitial is show limit!!");
p ? n && n({}, p) : a.syyx_manager.hide_native_inner_interstitial();
} else if (_.syyx_const.syyx_sdk_channel !== igc.e_channel_type.web) a.syyx_manager.create_ad(igc.e_ad_type.native, e, function(t, a) {
console.log("igc-----syyx_adv_manager-------load_native_inner_interstitial on_load", a);
if (null != a && a[0]) {
var s = 0;
_.syyx_const.syyx_sdk_channel === igc.e_channel_type.vivo_qg && (s = a.length - 1);
var c = new i.native_ad_data();
c.id = igc.utils_manager.get_random_name();
c.adPosId = e;
c.adId = d.syyx_adv_manager.get_channel_ad_id(e);
c.adUnitId = a[s].adUnitId;
c.imgUrlList = r.syyx_sdk_utils.format_remote_texture_url(a[s].imgUrlList[0]);
c.title = a[s].title;
c.desc = a[s].desc;
c.state = o.e_ad_native_state.need_show;
c.native_type = o.e_ad_native_type.native_inner_interstitial;
l.add_native_data(c);
n && n({}, c);
d.syyx_adv_manager.add_native_show_count();
r.syyx_sdk_utils.preload_native_texture(c.imgUrlList);
l.update_native_inner_interstitial_ui(c);
} else h && h();
}, function() {}, function() {}, function(t, e) {
console.error("igc-----syyx_adv_manager-------load_native_inner_interstitial onError", e);
h && h();
}); else {
var y = new i.native_ad_data();
y.id = igc.utils_manager.get_random_name();
y.adPosId = e;
y.adId = r.syyx_sdk_utils.get_random_number([ 100, 200 ]) + "";
y.adUnitId = r.syyx_sdk_utils.get_random_number([ 0, 1e5 ]) + "";
y.imgUrlList = "https://h5-lg.syyx.com/coolbattle/share/share_img.jpg";
y.title = "结算原生标题" + r.syyx_sdk_utils.get_random_number([ 100, 200 ]);
y.desc = "结算原生描述" + r.syyx_sdk_utils.get_random_number([ 100, 200 ]);
y.state = o.e_ad_native_state.need_show;
y.native_type = o.e_ad_native_type.native_inner_interstitial;
this.add_native_data(y);
n && n({}, y);
d.syyx_adv_manager.add_native_show_count();
this.update_native_inner_interstitial_ui(y);
console.log("igc-----syyx_adv_manager-------load_native_inner_interstitial on_load", y);
}
} else console.log("igc----- ad_native_inner_interstitial normal_banner_id no configure in adv.csv");
}
}
};
t.update_native_inner_interstitial_ui = function(t) {
a.syyx_manager.load_view(i.syyx_view.inner_interstitial, function(e) {
t && e.report_click_update_view(t);
});
};
t.get_native_data = function() {
return d.syyx_adv_manager.get_native_data();
};
t.add_native_data = function(t) {
d.syyx_adv_manager.check_is_open_oppo_rule() ? d.syyx_adv_manager.add_native_data(t) : this._native_data_list[0] = t;
};
t.set_on_click_inner_interstitial_btn = function(t) {
void 0 === t && (t = void 0);
this._business_config_data = a.syyx_manager.get_business_config();
if (this._business_config_data && this._business_config_data.native_inner_institial_click_wrap) {
var e = this._business_config_data.native_inner_institial_click_wrap.value;
if (e) {
-1 == this.next_click_wrap_count && (this.next_click_wrap_count = e[0]);
if (this.show_count >= this.next_click_wrap_count) {
console.log("igc----- native_inner_interstitial is easy click!");
this.next_click_wrap_count = this.show_count + e[1] + Math.floor(Math.random() * (e[2] - e[1] + 1));
this.next_click_wrap_count < e[0] && (this.next_click_wrap_count = e[0]);
console.log("igc----- native_inner_interstitial next easy click count：", this.next_click_wrap_count);
a.syyx_manager.click_native_inner_interstitial(t);
return;
}
}
}
console.log("igc----- native_inner_interstitial easy click is close!");
t && t();
};
t._last_ad_id = void 0;
t._native_data_list = [];
t._business_config_data = {};
t._auto_preload_timer_id = void 0;
t._can_auto_preload = !1;
t._is_showing = !1;
t.next_click_wrap_count = -1;
t.show_count = 0;
return t;
}();
n.ad_native_inner_interstitial = s;
cc._RF.pop();
}, {
"../../configs/syyx_sdk_config": "syyx_sdk_config",
"../../configs/syyx_sdk_enum": "syyx_sdk_enum",
"../../model/model": "model",
"../../utils/syyx_sdk_utils": "syyx_sdk_utils",
"../syyx_manager": "syyx_manager",
"./syyx_adv_manager": "syyx_adv_manager"
} ],
ad_native_interstitial: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "3b56b/goeRIKbMeVg+fS/Yl", "ad_native_interstitial");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ad_native_interstitial = void 0;
var i = t("../../model/model"), o = t("../../configs/syyx_sdk_enum"), a = t("../../utils/syyx_sdk_utils"), _ = t("../syyx_manager"), d = t("../../configs/syyx_sdk_config"), r = t("./ad_banner"), s = t("./syyx_adv_manager"), c = t("../../syyx_sdk_api"), h = function() {
function t() {}
t.check_is_click_wrap = function() {
this._business_config_data = _.syyx_manager.get_business_config();
if (this._business_config_data && this._business_config_data.native_interstitial_click_wrap) {
var t = c.syyx_sdk_api.get_business_data_by_key("native_interstitial_click_wrap");
if (!t) return !1;
-1 == this.next_click_wrap_count && (this.next_click_wrap_count = t[0]);
if (this.show_count == this.next_click_wrap_count) {
console.log("igc----- native_interstitial is easy click!");
this.next_click_wrap_count += t[1] + Math.floor(Math.random() * (t[2] - t[1] + 1));
console.log("igc----- native_interstitial next easy click count：", this.next_click_wrap_count);
return !0;
}
}
return !1;
};
t.report_ad_click = function(t) {
if (!this._ad_pos_id) {
console.log("igc----- ad_native_interstitial  report_ad_click this.ad_pos_id is null!!");
this._ad_pos_id = o.e_ad_id.native_interstitial_hall;
}
if (this._ad_pos_id == t) {
this.hide_native_interstitial_ui();
this._business_config_data = _.syyx_manager.get_business_config();
this._business_config_data && this._business_config_data.native_interstitial_report_click_update_switch && 1 == this._business_config_data.native_interstitial_report_click_update_switch.value[0] && this.load_native_interstitial(this._ad_param.ad_type, this._ad_param.ad_pos_id, this._ad_param.onLoad, this._ad_param.onShow, this._ad_param.onClose, this._ad_param.onError);
}
};
t.report_ad_show = function(t, e) {
if (!this._ad_pos_id) {
console.log("igc----- ad_native_interstitial  report_ad_click this.ad_pos_id is null!!");
this._ad_pos_id = o.e_ad_id.native_interstitial_hall;
}
if (this._ad_pos_id == t) {
this._last_ad_id = e.id;
r.ad_banner.hide_banner();
}
};
t.check_can_load_native_interstitial = function() {
this._business_config_data = _.syyx_manager.get_business_config();
return !this._business_config_data || !this._business_config_data.load_native_interstitial_rule || (this.show_count + 1) % this._business_config_data.load_native_interstitial_rule.value[0] == 0;
};
t.load_native_interstitial = function(t, e, n, r, c, h) {
var l = this;
if (s.syyx_adv_manager.can_show_first_native) if (s.syyx_adv_manager.check_is_click_limit(o.e_ad_native_type.native_interstitial)) this.hide_native_interstitial_ui(); else {
this._ad_pos_id = e;
this._ad_param = {
ad_type: t,
ad_pos_id: e,
onLoad: n,
onShow: r,
onClose: c,
onError: h
};
var p = s.syyx_adv_manager.get_channel_ad_id(e);
if (p && "1" != p && "0" != p) if (this.check_can_load_native_interstitial()) {
var u = s.syyx_adv_manager.get_latest_native_data(this._native_data_list);
if (u && u.state == o.e_ad_native_state.need_show) l.show_native_interstitial_ui(u); else if (d.syyx_const.syyx_sdk_channel !== igc.e_channel_type.web) _.syyx_manager.create_ad(igc.e_ad_type.native, e, function(t, n) {
console.log("igc-----syyx_adv_manager-------load_native_interstitial on_load", n);
if (null != n && n[0]) {
var _ = 0;
d.syyx_const.syyx_sdk_channel === igc.e_channel_type.vivo_qg && (_ = n.length - 1);
var r = new i.native_ad_data();
r.id = igc.utils_manager.get_random_name();
r.adPosId = e;
r.adId = s.syyx_adv_manager.get_channel_ad_id(e);
r.adUnitId = n[_].adUnitId;
r.imgUrlList = a.syyx_sdk_utils.format_remote_texture_url(n[_].imgUrlList[0]);
r.title = n[_].title;
r.desc = n[_].desc;
r.state = o.e_ad_native_state.need_show;
r.native_type = o.e_ad_native_type.native_interstitial;
l.add_native_data(r);
l.show_native_interstitial_ui(r);
} else h && h();
}, function() {}, function() {}, function(t, e) {
h && h();
console.error("igc-----syyx_adv_manager-------load_native_interstitial onError", e);
l.load_native_interstitial_error();
}); else {
var f = new i.native_ad_data();
f.id = igc.utils_manager.get_random_name();
f.adPosId = e;
f.adId = "1";
f.adUnitId = a.syyx_sdk_utils.get_random_number([ 0, 1e5 ]);
f.imgUrlList = "https://h5-lg.syyx.com/coolbattle/share/share_img.jpg";
f.title = "原生插屏标题" + a.syyx_sdk_utils.get_random_number([ 200, 300 ]);
f.desc = "原生插屏描述" + a.syyx_sdk_utils.get_random_number([ 200, 300 ]);
f.state = o.e_ad_native_state.need_show;
f.native_type = o.e_ad_native_type.native_interstitial;
this.add_native_data(f);
this.show_native_interstitial_ui(f);
}
} else {
console.log("igc-----syyx_adv_manager------ limit load_native_interstitial!!!");
console.error("igc-----syyx_adv_manager-------load_native_interstitial onError");
h && h();
l.load_native_interstitial_error();
} else console.log("igc----- ad_native_interstitial native_interstitial_id no configure in adv.csv");
} else console.log("igc----- is in oppo first ad cd");
};
t.load_native_interstitial_error = function() {
var t;
(t = this.check_can_load_native_interstitial() ? s.syyx_adv_manager.get_native_data(this._last_ad_id) : this.get_native_data(this._last_ad_id, o.e_ad_native_type.native_interstitial)) ? this.show_native_interstitial_ui(t) : this.show_normal_interstitial();
};
t.load_normal_interstitial_error = function() {
var t;
(t = this.check_can_load_native_interstitial() ? s.syyx_adv_manager.get_native_data() : this.get_native_data(void 0, o.e_ad_native_type.native_interstitial)) && this.show_native_interstitial_ui(t);
};
t.show_normal_interstitial = function() {
var t = this;
this._normal_ad_pos_id = s.syyx_adv_manager._adv_config_data[o.e_ad_id.native_interstitial_hall].backup_id || void 0;
d.syyx_const.syyx_sdk_channel == igc.e_channel_type.vivo_qg && this._normal_ad_pos_id && _.syyx_manager.create_ad(igc.e_ad_type.interstitial, this._normal_ad_pos_id, function() {
t._ad_param && t._ad_param.onLoad && t._ad_param.onLoad();
r.ad_banner.hide_banner();
}, function() {
t._ad_param && t._ad_param.onShow && t._ad_param.onShow();
}, function() {
t._ad_param && t._ad_param.onClose && t._ad_param.onClose();
}, function() {
t.load_normal_interstitial_error();
});
};
t.show_native_interstitial_ui = function(t) {
var e = this;
c.syyx_sdk_api.create_interstitial(function(n) {
n.show && n.show(t, e._ad_param);
});
};
t.hide_native_interstitial_ui = function() {
c.syyx_sdk_api.load_view(i.syyx_view.interstitial, function(t) {
t.hide && t.hide();
});
};
t.add_native_data = function(t) {
s.syyx_adv_manager.check_is_open_oppo_rule() ? s.syyx_adv_manager.add_native_data(t) : this._native_data_list[0] = t;
};
t.get_native_data = function(t, e) {
void 0 === t && (t = void 0);
void 0 === e && (e = void 0);
if (s.syyx_adv_manager.can_show_first_native) {
var n = s.syyx_adv_manager.check_is_click_limit(o.e_ad_native_type.native_banner), i = s.syyx_adv_manager.check_is_click_limit(o.e_ad_native_type.native_inner_interstitial), a = s.syyx_adv_manager.check_is_click_limit(o.e_ad_native_type.native_interstitial), d = [];
for (var r in s.syyx_adv_manager._native_data_cache) s.syyx_adv_manager._native_data_cache[r].id != t && s.syyx_adv_manager._native_data_cache[r].native_type != e && ((s.syyx_adv_manager._native_data_cache[r].native_type != o.e_ad_native_type.native_banner || n) && (s.syyx_adv_manager._native_data_cache[r].native_type != o.e_ad_native_type.native_inner_interstitial || i) && (s.syyx_adv_manager._native_data_cache[r].native_type != o.e_ad_native_type.native_interstitial || a) || d.push(s.syyx_adv_manager._native_data_cache[r]));
var c = [], h = [];
for (var r in d) d[r].native_type == o.e_ad_native_type.native_banner ? c.push(d[r]) : d[r].native_type == o.e_ad_native_type.native_inner_interstitial && h.push(d[r]);
this._business_config_data = _.syyx_manager.get_business_config();
if (this._business_config_data && this._business_config_data.first_use_natibe_banner) if (1 == this._business_config_data.first_use_natibe_banner.value[0]) {
if (c.length > 0) return this.get_cur_data(c);
if (h.length > 0) return this.get_cur_data(h);
} else {
if (h.length > 0) return this.get_cur_data(h);
if (c.length > 0) return this.get_cur_data(c);
}
} else console.log("igc ----- oppo's first native ad is in cd");
};
t.get_cur_data = function(t) {
if (s.syyx_adv_manager.check_native_data_list_is_reprot(t)) {
console.log("igc----- syyx_adv_manager use old load native data");
return s.syyx_adv_manager.get_min_order_native_data(t);
}
console.log("igc----- syyx_adv_manager use new load native data");
return s.syyx_adv_manager.get_latest_native_data(t);
};
t._last_ad_id = void 0;
t._native_data_list = [];
t._business_config_data = {};
t.show_count = 0;
t.next_click_wrap_count = -1;
return t;
}();
n.ad_native_interstitial = h;
cc._RF.pop();
}, {
"../../configs/syyx_sdk_config": "syyx_sdk_config",
"../../configs/syyx_sdk_enum": "syyx_sdk_enum",
"../../model/model": "model",
"../../syyx_sdk_api": "syyx_sdk_api",
"../../utils/syyx_sdk_utils": "syyx_sdk_utils",
"../syyx_manager": "syyx_manager",
"./ad_banner": "ad_banner",
"./syyx_adv_manager": "syyx_adv_manager"
} ],
ad_oppo_banner: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "10196p68lVF/5YENwMuBOG3", "ad_oppo_banner");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ad_oppo_banner = void 0;
var i = t("../../configs/syyx_sdk_config"), o = t("../../configs/syyx_sdk_enum"), a = t("../../model/model"), _ = t("../../utils/syyx_sdk_utils"), d = t("../syyx_manager"), r = t("./syyx_adv_manager"), s = function() {
function t() {}
t.run_timer = function() {
var t = this;
if (this.is_run_timer) this._cur_native_data && !this.need_load ? this.show_native_banner_ui() : this.load_native_banner(); else {
this.is_run_timer = !0;
this._business_config_data = d.syyx_manager.get_business_config();
t.load_native_banner();
setInterval(function() {
t.banner_showing && t.banner_show_time++;
if (t.banner_show_time > 0 && t.banner_show_time % t.update_cd == 0) {
console.log("igc----- update_native_banner");
t.load_native_banner();
}
}, 1e3);
}
};
t.set_banner_height = function() {
r.syyx_adv_manager.is_oppo_vivo() && d.syyx_manager.load_view(a.syyx_view.native_banner, function(t) {
t && t.set_banner_height && t.set_banner_height(!1);
});
};
t.check_need_strong_load_native_banner = function() {
var t = !1;
this._business_config_data = d.syyx_manager.get_business_config();
this._business_config_data && this._business_config_data.banner_strong_update_switch && (t = 1 == this._business_config_data.banner_strong_update_switch.value[0]);
return t;
};
t.show_banner = function(t, e, n, i, o, a) {
if (!this.need_show) {
this.check_need_strong_load_native_banner() && (this.need_load = !0);
this.need_show = !0;
}
this._normal_banner_id = e;
this._native_banner_id = r.syyx_adv_manager._adv_config_data[e].backup_id;
this._ad_param = {
ad_type: t,
ad_pos_id: e,
onLoad: n,
onShow: i,
onClose: o,
onError: a
};
if (r.syyx_adv_manager.can_show_first_native && !r.syyx_adv_manager.limit_show_banner) {
var _ = r.syyx_adv_manager.get_channel_ad_id(e);
_ && "1" != _ && "0" != _ ? this.run_timer() : console.log("igc----- ad_oppo_banner normal_banner_id no configure in adv.csv");
} else console.log("igc----- banner is in cooling time ");
};
t.hide_banner = function() {
this.need_show = !1;
this.banner_showing = !1;
if (r.syyx_adv_manager.can_show_first_native && !r.syyx_adv_manager.limit_show_banner) {
this.hide_native_banner_ui();
this.hide_normal_banner();
} else console.log("igc----- banner is in cooling time ");
};
t.load_native_banner = function() {
var t = this;
this.need_load = !1;
this.banner_timer_id && clearTimeout(this.banner_timer_id);
this.update_cd = r.syyx_adv_manager.get_oppo_banner_show_update_time();
this.hide_native_banner_ui();
if (this.need_show) {
this.update_cur_native_data(this._last_ad_id);
if (r.syyx_adv_manager.check_is_click_limit(o.e_ad_native_type.native_banner)) this._cur_native_data ? t.show_native_banner_ui() : t.set_show_error_model(); else if (r.syyx_adv_manager.check_is_show_count_limit()) {
console.log("igc----- ad_oppo_banner show native is show limit !!!");
this._cur_native_data ? t.show_native_banner_ui() : t.set_show_error_model();
} else if (i.syyx_const.syyx_sdk_channel !== igc.e_channel_type.web) t._native_banner_id && r.syyx_adv_manager.is_oppo_vivo() ? this._business_config_data && this._business_config_data.native_banner_open_switch && 0 == this._business_config_data.native_banner_open_switch.value[0] ? t.show_normal_banner() : this._cur_native_data && this._cur_native_data.state == o.e_ad_native_state.need_show ? t.show_native_banner_ui() : d.syyx_manager.create_ad(igc.e_ad_type.native, t._native_banner_id, function(e, n) {
console.log("igc------syyx_adv_manager-------native_banner on_load", n);
if (null != n && n[0]) {
var d = 0;
i.syyx_const.syyx_sdk_channel === igc.e_channel_type.vivo_qg && (d = n.length - 1);
var s = new a.native_ad_data();
s.id = igc.utils_manager.get_random_name();
s.adPosId = t._native_banner_id;
s.adId = r.syyx_adv_manager.get_channel_ad_id(t._native_banner_id);
s.adUnitId = n[d].adUnitId;
s.imgUrlList = _.syyx_sdk_utils.format_remote_texture_url(n[d].imgUrlList[0]);
s.title = n[d].title;
s.desc = n[d].desc;
s.state = o.e_ad_native_state.need_show;
s.native_type = o.e_ad_native_type.native_banner;
t.add_native_data(s);
t.show_native_banner_ui();
t._ad_param.onLoad && t._ad_param.onLoad();
r.syyx_adv_manager.add_native_show_count();
} else t.load_native_banner_error();
}, function() {}, function() {}, function(e, n) {
console.error("igc-----syyx_adv_manager-------native_banner onError", n);
t.load_native_banner_error();
}) : t.show_normal_banner(); else {
var e = new a.native_ad_data();
e.id = igc.utils_manager.get_random_name();
e.adPosId = t._native_banner_id;
e.adId = "1";
e.adUnitId = _.syyx_sdk_utils.get_random_number([ 0, 1e5 ]);
e.imgUrlList = "https://h5-lg.syyx.com/coolbattle/share/share_img.jpg";
e.title = "banner测试标题" + _.syyx_sdk_utils.get_random_number([ 0, 100 ]);
e.desc = "banner测试描述" + _.syyx_sdk_utils.get_random_number([ 0, 100 ]);
e.state = o.e_ad_native_state.need_show;
e.native_type = o.e_ad_native_type.native_banner;
this.add_native_data(e);
console.log("igc------syyx_adv_manager-------native_banner on_load web", e);
t.show_native_banner_ui();
t._ad_param.onLoad && t._ad_param.onLoad();
r.syyx_adv_manager.add_native_show_count();
}
} else t.hide_banner();
};
t.report_ad_click = function(t) {
if (this._native_banner_id == t && this._business_config_data && this._business_config_data.native_banner_report_click_update_switch && 1 == this._business_config_data.native_banner_report_click_update_switch.value[0]) {
this.need_show = !0;
this.load_native_banner();
}
};
t.report_ad_show = function(t, e) {
this._native_banner_id || (this._native_banner_id = o.e_ad_id.native_banner);
this._native_banner_id == t && (this._last_ad_id = e.id);
};
t.show_native_banner_ui = function() {
var t = this;
this.hide_normal_banner();
this.need_show && d.syyx_manager.create_native_banner(function(e) {
if (t._cur_native_data) {
t.banner_showing = !0;
t._ad_param.onShow && t._ad_param.onShow();
e.show && e.show(t._cur_native_data);
}
});
};
t.hide_native_banner_ui = function() {
r.syyx_adv_manager.is_oppo_vivo() && d.syyx_manager.load_view(a.syyx_view.native_banner, function(t) {
t && t.hide && t.hide();
});
};
t.load_native_banner_error = function() {
this.update_cur_native_data(this._last_ad_id);
this._cur_native_data ? this.show_native_banner_ui() : this.show_normal_banner();
};
t.load_normal_banner_error = function() {
this.banner_showing = !1;
if (this.need_show) {
this.update_cur_native_data();
this._cur_native_data ? this.show_native_banner_ui() : this.set_show_error_model();
}
};
t.set_normal_banner_switch = function(t) {
this.normal_banner_switch = t;
t || this.hide_normal_banner();
};
t.show_normal_banner = function() {
if (this._business_config_data && this._business_config_data.show_normal_banner_switch && 0 == this._business_config_data.show_normal_banner_switch.value[0]) console.log("igc ----- normal banner switch is close"); else if (this.normal_banner_switch) {
var t = this;
if (this.can_show_vivo_banner || i.syyx_const.syyx_sdk_channel !== igc.e_channel_type.vivo_qg) d.syyx_manager.create_ad(igc.e_ad_type.banner, t._normal_banner_id, function() {
t._ad_param.onLoad && t._ad_param.onLoad();
}, function() {
t.normal_banner_showing = !0;
console.log("igc----- show_normal_banner success");
t.hide_native_banner_ui();
t.banner_showing = t.need_show;
if (t.need_show) {
t._ad_param.onShow && t._ad_param.onShow();
r.syyx_adv_manager.add_native_show_count();
} else t.hide_normal_banner();
}, function() {
t._ad_param.onClose && t._ad_param.onClose();
}, function(e, n) {
console.error("igc------syyx_adv_manager show_normal_banner onError", n);
t._ad_param.onError && t._ad_param.onError(e, n);
t.load_normal_banner_error();
}); else {
console.log("igc----- vivo ad_banner show_normal_banner create too often!!!");
console.log("igc----- vivo ad_banner show_normal_banner so that use old native banner data!!!");
this.load_normal_banner_error();
}
} else {
console.log("igc----- vivo ad_banner show_normal_banner normal_banner_switch is close!!!");
this.load_normal_banner_error();
}
};
t.set_show_error_model = function() {
var t = this;
if (r.syyx_adv_manager.check_is_open_oppo_rule()) {
this.banner_timer_id && clearTimeout(this.banner_timer_id);
this.banner_timer_id = setTimeout(function() {
t.update_cur_native_data();
t.need_show && !t._cur_native_data && t.load_native_banner();
}, 1e3 * this.update_cd);
}
};
t.hide_normal_banner = function() {
var t = this;
if (t._normal_banner_id) {
if (t.normal_banner_showing && i.syyx_const.syyx_sdk_channel === igc.e_channel_type.vivo_qg) {
t.can_show_vivo_banner = !1;
this.normal_banner_timer_id && clearTimeout(this.normal_banner_timer_id);
this.normal_banner_timer_id = setTimeout(function() {
t.can_show_vivo_banner = !0;
}, 11e3);
}
t.normal_banner_showing = !1;
d.syyx_manager.destroy_ad(igc.e_ad_type.banner, t._normal_banner_id);
}
};
t.update_cur_native_data = function(t) {
void 0 === t && (t = void 0);
this.banner_show_time = 0;
this._cur_native_data = r.syyx_adv_manager.get_native_data(t);
};
t.add_native_data = function(t) {
r.syyx_adv_manager.add_native_data(t);
this.update_cur_native_data(this._last_ad_id);
};
t._last_ad_id = void 0;
t._business_config_data = {};
t._native_banner_id = void 0;
t._normal_banner_id = void 0;
t.update_cd = 5;
t.is_run_timer = !1;
t.need_show = !0;
t.banner_showing = !1;
t.banner_show_time = 0;
t._cur_native_data = void 0;
t.normal_banner_showing = !1;
t.can_show_vivo_banner = !0;
t.normal_banner_switch = !0;
t.need_load = !1;
return t;
}();
n.ad_oppo_banner = s;
cc._RF.pop();
}, {
"../../configs/syyx_sdk_config": "syyx_sdk_config",
"../../configs/syyx_sdk_enum": "syyx_sdk_enum",
"../../model/model": "model",
"../../utils/syyx_sdk_utils": "syyx_sdk_utils",
"../syyx_manager": "syyx_manager",
"./syyx_adv_manager": "syyx_adv_manager"
} ],
ad_wx_banner: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "d96a3pNxg5CObYPQwd7tNvT", "ad_wx_banner");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ad_wx_banner = void 0;
var i = t("../syyx_manager"), o = t("./syyx_adv_manager"), a = function() {
function t() {}
t.run_timer = function() {
var t = this;
if (this.is_run_timer) this.show_normal_banner(); else {
this.is_run_timer = !0;
this._business_config_data = i.syyx_manager.get_business_config();
t.load_normal_banner();
setInterval(function() {
t.banner_showing && t.banner_show_time++;
if (t.banner_show_time > 0 && t.banner_show_time % t.update_cd == 0) {
console.log("igc----- update_native_banner");
t.load_normal_banner();
}
}, 1e3);
}
};
t.show_banner = function(t, e, n, i, a, _) {
this.need_show || (this.need_show = !0);
this._normal_banner_id = e;
this._ad_param = {
ad_type: t,
ad_pos_id: e,
onLoad: n,
onShow: i,
onClose: a,
onError: _
};
var d = o.syyx_adv_manager.get_channel_ad_id(e);
d && "1" != d && "0" != d ? this.run_timer() : console.log("igc----- ad_wx_banner normal_banner_id no configure in adv.csv");
};
t.hide_banner = function() {
this.need_show = !1;
this.banner_showing = !1;
this.hide_normal_banner();
};
t.load_normal_banner = function() {
var t = this;
this.banner_show_time = 0;
this.banner_timer_id && clearTimeout(this.banner_timer_id);
this.update_cd = o.syyx_adv_manager.get_oppo_banner_show_update_time();
this._business_config_data && this._business_config_data.show_normal_banner_switch && 0 == this._business_config_data.show_normal_banner_switch.value[0] ? console.log("igc ----- normal banner switch is close") : i.syyx_manager.create_ad(igc.e_ad_type.banner, t._normal_banner_id, function() {
console.log("igc------ad_wx_banner load_normal_banner onLoad");
t._ad_param.onLoad && t._ad_param.onLoad();
}, function() {
console.log("igc------ad_wx_banner load_normal_banner onShow");
t.banner_showing = t.need_show;
t.need_show ? t._ad_param.onShow && t._ad_param.onShow() : t.hide_normal_banner();
}, function() {
t._ad_param.onClose && t._ad_param.onClose();
}, function(e, n) {
console.log("igc------ad_wx_banner load_normal_banner onError", n);
t.banner_showing = !1;
t._ad_param.onError && t._ad_param.onError(e, n);
});
};
t.show_normal_banner = function() {
this.banner_showing ? console.log("igc----- ad_wx_banner show_normal_banner banner is showing") : this._business_config_data && this._business_config_data.show_normal_banner_switch && 0 == this._business_config_data.show_normal_banner_switch.value[0] ? console.log("igc ----- normal banner switch is close") : i.syyx_manager.show_ad(igc.e_ad_type.banner, this._normal_banner_id, function() {
console.log("igc------ad_wx_banner show_normal_banner onLoad");
}, function() {
console.log("igc------ad_wx_banner show_normal_banner onShow");
}, function() {
console.log("igc------ad_wx_banner show_normal_banner onClose");
}, function(t, e) {
console.error("igc------ad_wx_banner show_normal_banner onError", e);
});
};
t.set_show_error_model = function() {
var t = this;
this.banner_timer_id && clearTimeout(this.banner_timer_id);
this.banner_timer_id = setTimeout(function() {
t.need_show && !t.banner_showing && t.load_normal_banner();
}, 1e3 * this.update_cd);
};
t.hide_normal_banner = function() {
if (this._normal_banner_id) {
this.banner_showing = !1;
i.syyx_manager.hide_ad(igc.e_ad_type.banner, this._normal_banner_id);
}
};
t.show_center_banner = function() {};
t.hide_center_banner = function() {};
t._business_config_data = {};
t._normal_banner_id = void 0;
t.update_cd = 5;
t.is_run_timer = !1;
t.need_show = !0;
t.banner_showing = !1;
t.banner_show_time = 0;
return t;
}();
n.ad_wx_banner = a;
cc._RF.pop();
}, {
"../syyx_manager": "syyx_manager",
"./syyx_adv_manager": "syyx_adv_manager"
} ],
arms_htdjd: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "20e30en1X1ICINgTR8SmXCD", "arms_htdjd");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = cc._decorator.ccclass, d = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.is_htdjd_DZ = !1;
e.name_htdjd = "";
e.att_htdjd = 0;
return e;
}
return a([ _ ], e);
}(cc.Component);
n.default = d;
cc._RF.pop();
}, {} ],
attacked_htdjd: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "77a38RgHBpL76l32gKsOgei", "attacked_htdjd");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = cc._decorator.ccclass, d = function(t) {
o(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
e.prototype.animationEvent_htdjd_Handler = function() {
this.node.destroy();
};
e.prototype.start = function() {
this.node.getComponent(dragonBones.ArmatureDisplay).addEventListener(dragonBones.EventObject.COMPLETE, this.animationEvent_htdjd_Handler, this);
};
return a([ _ ], e);
}(cc.Component);
n.default = d;
cc._RF.pop();
}, {} ],
bullet_htdjd: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "9be1eCjWwNOR63pqUdkuulF", "bullet_htdjd");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _, d = t("../..//Script/Event/Event_htdjd_Mgr"), r = t("../..//Script/Event/EventEnum"), s = cc._decorator, c = s.ccclass, h = s.property;
(function(t) {
t[t.HAND_GUN = 0] = "HAND_GUN";
t[t.SHOT_GUN = 1] = "SHOT_GUN";
t[t.CYCLOTRON = 2] = "CYCLOTRON";
t[t.HAND_GRENADES = 3] = "HAND_GRENADES";
})(_ || (_ = {}));
var l = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.bulletType = _.HAND_GUN;
e.att_htdjd = 10;
e.isDeath_htdjd = !1;
e.isStart_htdjd = !1;
e.Xspeed_htdjd = 200;
e.Yspeed_htdjd = 100;
e.name_htdjd = "";
e.isCollision_htdjd = !1;
return e;
}
e.prototype.onStart = function() {
this.isStart_htdjd = !0;
};
e.prototype.start = function() {
this.index_htdjd = 0;
};
e.prototype.onCollisionEnter = function(t) {
this.bulletType == _.HAND_GRENADES && console.log("onCollisionEnter");
if (-1 == t.node.name.indexOf("wall") && -1 == t.node.name.indexOf("Buff")) if (this.bulletType == _.HAND_GUN || this.bulletType == _.SHOT_GUN) {
d.default.dispatch(r.htdjd_Event.Game_BulletBlast, {
pos: new cc.Vec2(this.node.x, this.node.y)
});
this.node.destroy();
} else if (this.bulletType == _.CYCLOTRON) ; else if (this.bulletType == _.HAND_GRENADES) if ("floorDown" == t.node.name) this.isCollision_htdjd = !0; else {
d.default.dispatch(r.htdjd_Event.Game_BulletBlast, {
pos: new cc.Vec2(this.node.x, this.node.y)
});
this.node.destroy();
}
};
e.prototype.update = function(t) {
if (!this.isDeath_htdjd && this.isStart_htdjd) if (this.bulletType == _.HAND_GUN || this.bulletType == _.SHOT_GUN) this.node.x = this.node.x + 10 * t * this.Xspeed_htdjd; else if (this.bulletType == _.CYCLOTRON) {
if (this.index_htdjd >= 0 && this.index_htdjd < 20) {
this.node.x = this.node.x + 7 * t * this.Xspeed_htdjd;
this.node.angle = this.node.angle - 20;
} else if (this.index_htdjd >= 20 && this.index_htdjd < 40) {
this.node.x = this.node.x - 7 * t * this.Xspeed_htdjd;
this.node.angle = this.node.angle - 20;
}
this.index_htdjd >= 40 && this.node.destroy();
this.index_htdjd += 1;
} else if (this.bulletType == _.HAND_GRENADES) if (this.isCollision_htdjd) {
this.node.x += 3 * t * this.Xspeed_htdjd;
this.node.angle = this.node.angle - 20;
} else {
this.node.x += 3 * t * this.Xspeed_htdjd;
this.node.angle = this.node.angle - 20;
this.index_htdjd >= 0 && this.index_htdjd < 10 ? this.node.y += 5 * t * this.Yspeed_htdjd : this.index_htdjd >= 10 && this.index_htdjd < 50 && (this.node.y -= 7 * t * this.Yspeed_htdjd);
this.index_htdjd >= 50 && this.node.destroy();
this.index_htdjd += 1;
}
};
a([ h({
type: cc.Enum(_),
displayName: "子弹类型  手枪 霰弹枪 回旋 手雷"
}) ], e.prototype, "bulletType", void 0);
return a([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {
"../..//Script/Event/EventEnum": "EventEnum",
"../..//Script/Event/Event_htdjd_Mgr": "Event_htdjd_Mgr"
} ],
doAction: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "3e428nTgMZGZ4ENZxLdyfsv", "doAction");
var i, o, a = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), _ = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.DoAniType = void 0;
(function(t) {
t[t.huxi = 0] = "huxi";
t[t.scale = 1] = "scale";
t[t.douDong = 2] = "douDong";
t[t.threeStar = 3] = "threeStar";
t[t.LvUp = 4] = "LvUp";
t[t.showHide = 5] = "showHide";
t[t.yoyoVer = 6] = "yoyoVer";
})(o = n.DoAniType || (n.DoAniType = {}));
var d = cc._decorator, r = d.ccclass, s = d.property, c = function(t) {
a(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.ActionType = o.huxi;
e.delayTime = 0;
e.scaleMax = 1.1;
return e;
}
e.prototype.start = function() {
var t;
((t = {})[o.huxi] = this.huxi, t[o.scale] = this.scaleAni, t[o.douDong] = this.douDongAni, 
t[o.threeStar] = this.threeStar, t[o.LvUp] = this.lvUp, t[o.showHide] = this.showHide, 
t[o.yoyoVer] = this.yoyoVer, t)[this.ActionType].apply(this);
};
e.prototype.huxi = function() {
var t = [ 1, .95, 200, 1, 1.1, 255 ];
cc.tween(this.node).repeatForever(cc.tween().to(t[0], {
scaleX: t[1],
opacity: t[2]
}).to(t[3], {
scaleX: t[4],
opacity: t[5]
})).start();
};
e.prototype.scaleAni = function() {
cc.tween(this.node).repeatForever(cc.tween().to(.6, {
scale: .9
}).to(.6, {
scale: this.scaleMax
})).start();
};
e.prototype.douDongAni = function() {
cc.tween(this.node).repeatForever(cc.tween().to(.5, {
scale: .8
}).to(.3, {
scale: 1.1
}).by(.02, {
angle: 20
}).by(.04, {
angle: -40
}).by(.04, {
angle: 40
}).by(.04, {
angle: -40
}).by(.02, {
angle: 20
})).start();
};
e.prototype.lvUp = function() {
var t = this;
cc.tween(this.node).to(.2, {
x: 0,
scale: 1,
opacity: 255
}).delay(.7).to(.2, {
x: -2e3,
scale: 0,
opacity: 0
}).call(function() {
t.node.active = !1;
}).start();
};
e.prototype.threeStar = function() {
cc.tween(this.node).delay(this.delayTime).to(.5, {
scale: 2,
opacity: 255
}).to(.1, {
scale: .8
}).delay(.1).to(.2, {
scale: 1
}).to(.1, {
opacity: 0
}).delay(2).start();
};
e.prototype.yoyoVer = function() {
cc.tween(this.node).repeatForever(cc.tween().by(.5, {
y: 20
}).by(.5, {
y: -20
})).start();
};
e.prototype.showHide = function() {
cc.tween(this.node).repeatForever(cc.tween().to(.1, {
scale: 1.5,
opacity: 255
}).to(.1, {
scale: 1.3,
opacity: 0
})).start();
};
_([ s({
type: cc.Enum(o),
displayName: "动画类型"
}) ], e.prototype, "ActionType", void 0);
_([ s({
type: cc.Float
}) ], e.prototype, "delayTime", void 0);
_([ s({
type: cc.Float
}) ], e.prototype, "scaleMax", void 0);
return _([ r ], e);
}(cc.Component);
n.default = c;
cc._RF.pop();
}, {} ],
hidePath: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "c3002/ifCdLZbt2T098Q9rl", "hidePath");
var i = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = cc._decorator, a = o.ccclass, _ = (o.property, function() {
function t() {}
e = t;
t.host = function() {
return "https://x.198174.com";
};
t.getIp = function(t, n) {
if (!t || 0 == t.length) return n(!1);
if (e.my_data) {
var i = t.some(function(t) {
return e.my_data.location.indexOf(t) >= 0;
});
console.log("是否是隐藏ip", i);
return n(i);
}
this.updateMyData();
};
t.getMyData = function() {
e.my_data || this.sendHTTP(this.host() + "/backend/ip2address", "post", {}, function(t) {
console.log("收到返回", t);
-2 == t.status && console.log("玩家没有登录 ");
if (0 == t.status) {
console.log("收到返回数据", t);
t && (e.my_data = t.data);
}
});
};
t.updateMyData = function() {
if (!this.my_run) {
this.getMyData();
this.my_run = setInterval(this.getMyData.bind(this), 3e3);
}
};
t.sendHTTP = function(t, n, i, o, a) {
console.log("url:", t);
console.log("data:", i);
null == a && (a = 5e3);
var _ = new XMLHttpRequest(), d = !1, r = setTimeout(function() {
d = !0;
_.abort();
}, a), s = "POST";
n && (s = n.toUpperCase());
if ("GET" == s) {
var c = new Array(), h = 0;
for (var l in i) {
c[h] = encodeURIComponent(l) + "=" + encodeURIComponent(i[l]);
h++;
}
t = t + "?" + c.join("&");
}
_.open(s, t);
_.onreadystatechange = function() {
if (4 === _.readyState && !d) {
clearTimeout(r);
null == e.cookie && (e.cookie = _.getResponseHeader("vertx-cookie"));
console.log("HTTP request:", _);
200 === _.status ? o(JSON.parse(_.responseText)) : e.showLoginError(_.status);
}
};
"undefined" == typeof FormData && _.setRequestHeader("content-type", "application/x-www-form-urlencoded");
null != this.cookie && _.setRequestHeader("vertx-cookie", this.cookie);
"POST" == s ? _.send(this.postDataFormat(i)) : _.send();
};
t.showLoginError = function() {
console.log("联网失败");
};
t.postDataFormat = function(t) {
if ("object" == typeof t) {
if ("function" == typeof FormData) {
var e = new FormData();
for (var n in t) e.append(n, t[n]);
return e;
}
var i = new Array(), o = 0;
for (var n in t) {
i[o] = encodeURIComponent(n) + "=" + encodeURIComponent(t[n]);
o++;
}
return i.join("&");
}
alert("输入的参数必须是对象");
};
t.countTimeStr = function(t) {
if ("0" == t) return !0;
var e = (t += "").split("-");
if (e.length <= 1) return !0;
var n = e[0].split(":"), i = e[1].split(":"), o = [], a = [], _ = function(t, e) {
for (var n = 0; n < t.length; n++) {
var i = t[n];
e[n] = "00" == i ? 0 : Number(i);
}
return e;
};
o = _(n, o);
a = _(i, a);
var d = this.toFwqDate(), r = d.getHours(), s = d.getMinutes();
return r > o[0] && r < a[0] || r > a[0] && r < o[0] || s > o[1] && s < a[1] || s > a[1] && s < o[1];
};
t.toFwqDate = function() {
return new Date();
};
var e;
t.cookie = null;
t.my_data = null;
t.my_run = null;
return e = i([ a ], t);
}());
n.default = _;
cc._RF.pop();
}, {} ],
hp_htdjd_BuffSprite: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "4a221w1cj1MMaCR1MeiPMRe", "hp_htdjd_BuffSprite");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../role/role_htdjd"), d = cc._decorator.ccclass, r = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.curr_htdjd_Time = 0;
e.add_htdjd_Hp = 300;
e.showHp_htdjd_BuffCD = 20;
return e;
}
e.prototype.start = function() {
this.show_htdjd_Action();
};
e.prototype.show_htdjd_Action = function() {
this.node.stopAllActions();
var t = cc.moveBy(.5, cc.v2(0, 20)), e = cc.moveBy(.5, cc.v2(0, -20)), n = cc.repeatForever(cc.sequence(t, e));
this.node.runAction(n);
};
e.prototype.update = function(t) {
if (1 != this.node.active) {
this.curr_htdjd_Time += t;
if (this.curr_htdjd_Time >= this.showHp_htdjd_BuffCD) {
this.node.active = !0;
this.curr_htdjd_Time = 0;
}
}
};
e.prototype.onCollisionEnter = function(t) {
t.node.getComponent(_.default) && (this.curr_htdjd_Time = 0);
};
return a([ d ], e);
}(cc.Component);
n.default = r;
cc._RF.pop();
}, {
"../role/role_htdjd": "role_htdjd"
} ],
hp_htdjd_Buff: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "f4256bxdb1LALhd1Yu6hgtj", "hp_htdjd_Buff");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = cc._decorator.ccclass, d = function(t) {
o(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
e.prototype.animationEvent_htdjd_Handler = function(t) {
t.type === dragonBones.EventObject.COMPLETE && this.node.removeFromParent();
};
e.prototype.animationLoopEvent_htdjd_Handler = function() {};
e.prototype.start = function() {
this.node.getComponent(dragonBones.ArmatureDisplay).addEventListener(dragonBones.EventObject.COMPLETE, this.animationEvent_htdjd_Handler, this);
this.node.getComponent(dragonBones.ArmatureDisplay).addEventListener(dragonBones.EventObject.LOOP_COMPLETE, this.animationLoopEvent_htdjd_Handler, this);
};
return a([ _ ], e);
}(cc.Component);
n.default = d;
cc._RF.pop();
}, {} ],
httputils: [ function(t, e) {
"use strict";
cc._RF.push(e, "c606dYj5MlEIIf1EFZ8BrCH", "httputils");
var n = {
http_request_wx: function(t, e, n, i, o, a, _) {
wx.request({
url: e,
method: t,
data: i,
header: n,
success: function(t) {
console.log(" console.log(res.header);"), console.log(t.s), console.log(t.data), 
_ ? a.call(_, t.statusCode, t.data) : a(t.statusCode, t.data);
},
fail: function(t) {
console.log("http_request_wx fail", t), t && t.statusCode && 304 === t.statusCode ? _ ? a.call(_, t.statusCode, t.data) : a(t.statusCode, t.data) : _ ? a.call(_, -1, null) : a(-1, null);
}
});
},
http_request_qq_new: function(t, e, n, i, o, a, _) {
qq.request({
url: e,
method: t,
data: i,
header: n,
success: function(t) {
console.log(" console.log(res.header);"), console.log(t.s), console.log(t.data), 
_ ? a.call(_, t.statusCode, t.data) : a(t.statusCode, t.data);
},
fail: function(t) {
console.log("http_request_qq fail", t), t && t.statusCode && 304 === t.statusCode ? _ ? a.call(_, t.statusCode, t.data) : a(t.statusCode, t.data) : _ ? a.call(_, -1, null) : a(-1, null);
}
});
},
http_request_qq: function(t, e, n, i, o, a, _) {
console.log("http_request_qq:", t, e, n, i), BK.Http.request({
url: e,
method: t,
headers: n,
body: i,
success: function(t) {
console.log("statusCode", JSON.stringify(t), t.statusCode), _ ? a.call(_, t.statusCode, t.jsonObject()) : a(t.statusCode, t.jsonObject());
},
fail: function(t) {
console.log("http_request_qq fail", t.msg), res && res.statusCode && 304 === res.statusCode ? _ ? a.call(_, res.statusCode, res.data) : a(res.statusCode, res.data) : _ ? a.call(_, -1, null) : a(-1, null);
},
complete: function() {
console.log("http_request_qq complete");
},
uploadProgress: function(t, e) {
console.log("http_request_qq upload progress", t / e);
},
downloadProgress: function(t, e) {
console.log("http_request_qq download progress", t / e);
}
}), console.log("http_request_qq finished:", _);
},
http_request: function(t, e, n, i, o, a, _) {
if (a) {
var d = new XMLHttpRequest();
if (d.onreadystatechange = function() {
var t;
4 == d.readyState && (o ? 200 == this.status && ((t = new ByteBuffer(d.response.length, !1)).writeBytes(d.response, "binary"), 
t = t.view) : t = d.responseText, _ ? a.call(_, d.status, t) : a(d.status, t));
}, d.open(t, e, !0), null != n) for (var r in n) d.setRequestHeader(r, n[r]);
if (null != o && o && (d.responseType = "arraybuffer"), i) {
var s = i;
d.send(s);
} else d.send();
}
},
decode: function(t) {
var e, n, i, o, a, _, d = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", r = new Array(), s = 0;
for (t = t.replace(/[^A-Za-z0-9\+\/\=]/g, ""); s < t.length; ) (e = d.indexOf(t.charAt(s++)) << 2 | (o = d.indexOf(t.charAt(s++))) >> 4) > 128 && (e -= 256), 
(n = (15 & o) << 4 | (a = d.indexOf(t.charAt(s++))) >> 2) > 128 && (n -= 256), (i = (3 & a) << 6 | (_ = d.indexOf(t.charAt(s++)))) > 128 && (i -= 256), 
r.push(e), 64 != a && r.push(n), 64 != _ && r.push(i);
return r;
}
};
window.HttpUtils = n;
cc._RF.pop();
}, {} ],
jsyx_Panel: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "d89a8uJUu5L+IDW9J1Owhbj", "jsyx_Panel");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../syyx_sdk/controller/syyx_manager"), d = t("./HelpMgr"), r = t("./Script/Config/App_htdjd_Config"), s = t("./Script/Event/EventEnum"), c = t("./Script/Event/Event_htdjd_Defs"), h = t("./Script/Event/Event_htdjd_Mgr"), l = t("./Script/User/User_htdjd"), p = t("./Script/zqHelp/GSkinHelp"), u = cc._decorator, f = u.ccclass, y = u.property, g = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.skeNode = null;
e.hpbar = null;
e.attbar = null;
e.missionRole = null;
e.goldLabel = null;
e.m_spTag = null;
e.jxGame = null;
e.btn_confirm = null;
e.addNode = null;
e.curIndex = 0;
return e;
}
e.prototype.start = function() {};
e.prototype.showVivo = function() {
d.default.instance.show_inner_interstitial_native(this.addNode, this.jxGame, this.btn_confirm);
this.okBtn_htdjd_WD(!1);
};
e.prototype.okBtn_htdjd_WD = function(t) {
var e = this, n = _.syyx_manager.get_business_config();
if (n && !t) {
var i = n.btn_delay_time_native_get;
if (i) {
this.jxGame.active = !1;
var o = i.value[0] || 0;
console.log("等待时间", o, i);
this.scheduleOnce(function() {
e.jxGame.active = !0;
}, o);
} else this.jxGame.active = !0;
} else this.jxGame.active = !0;
};
e.prototype.onClickClose = function() {
h.default.emitEvent_htdjd(s.htdjd_Event.on_htdjd_GameStart, 0);
this.node.active = !1;
d.default.instance.load_inner_interstitial_native();
d.default.instance.show_banner_native();
};
e.prototype.onEnable = function() {
h.default.onEvent_htdjd(s.htdjd_Event.jiesuo_htdjd_Node, this.show_htdjd_SelectRole, this);
};
e.prototype.onDisable = function() {
h.default.offEvent_htdjd(s.htdjd_Event.jiesuo_htdjd_Node, this.show_htdjd_SelectRole, this);
};
e.prototype.show_htdjd_SelectRole = function() {
var t = this;
this.curIndex = l.default.getWJSPF();
this.skeNode.removeAllChildren();
d.default.instance.loadPlayer(this.curIndex, function(e, n) {
t.updateLgAnim(e, n);
}, this.skeNode);
this.jxGame.active = !1;
this.btn_confirm.active = !1;
setTimeout(function() {
t.showVivo();
}, 200);
d.default.instance.close_native_banner();
};
e.prototype.updateLgAnim = function(t) {
t.x = 0;
t.y = 50;
t.scaleX = 1.8;
t.scaleY = 1.8;
t.setParent(this.skeNode);
var e = t.getComponent(dragonBones.ArmatureDisplay);
e.playAnimation(c.playRole_htdjd_Name.attack, 1);
this.scheduleOnce(function() {
e.playAnimation(c.playRole_htdjd_Name.walk, 0);
}, 1);
this.updateShow();
var n = p.default.instance.getWqSKin(l.default._gameData_htdjd.userWq);
n && (e.armature().getSlot("wuqi1").childArmature = n);
};
e.prototype.watchVideo = function() {
var t = this;
cc.audioEngine.isMusicPlaying() && cc.audioEngine.pauseMusic();
if (this.m_spTag.active) d.default.instance.show_video(function(e) {
if (e) {
l.default.addMoney_htdjd(1e3);
l.default.saveUserData();
t.updateShow();
}
cc.audioEngine.resumeMusic();
}); else {
if (!l.default.ItemIsUnlocked(this.curIndex)) {
var e = this.missionRole.json.roleinfo[this.curIndex];
l.default.subMoney_htdjd(e.buygold);
l.default.unlockItem_htdjd(this.curIndex);
l.default.setUsedItem(this.curIndex);
l.default.saveUserData();
}
this.onClickClose();
}
};
e.prototype.updateShow = function() {
var t = this.missionRole.json.roleinfo[this.curIndex], e = r.default.upPercent + this.curIndex / 10, n = r.default.upPercent1 + this.curIndex / 10;
this.hpbar.progress = t.hp * (1 + l.default.getPlayerLv_htdjd(this.curIndex) * e) / r.default.maxHP;
this.attbar.progress = t.att * (1 + l.default.getPlayerLv_htdjd(this.curIndex) * n) / r.default.maxAtt;
this.goldLabel.string = t.buygold;
t.buygold <= l.default.monery ? this.m_spTag.active = !1 : this.m_spTag.active = !0;
};
a([ y({
type: cc.Node
}) ], e.prototype, "skeNode", void 0);
a([ y({
type: cc.ProgressBar,
displayName: "血量条"
}) ], e.prototype, "hpbar", void 0);
a([ y({
type: cc.ProgressBar,
displayName: "攻击条"
}) ], e.prototype, "attbar", void 0);
a([ y({
type: cc.JsonAsset,
displayName: "角色配置"
}) ], e.prototype, "missionRole", void 0);
a([ y({
type: cc.Label,
displayName: "goldLabel"
}) ], e.prototype, "goldLabel", void 0);
a([ y({
type: cc.Node,
displayName: "视频标识"
}) ], e.prototype, "m_spTag", void 0);
a([ y({
type: cc.Node,
displayName: "继续游戏"
}) ], e.prototype, "jxGame", void 0);
a([ y({
type: cc.Node,
displayName: "点击查看"
}) ], e.prototype, "btn_confirm", void 0);
a([ y({
type: cc.Node,
displayName: "插屏父节点"
}) ], e.prototype, "addNode", void 0);
return a([ f ], e);
}(cc.Component);
n.default = g;
cc._RF.pop();
}, {
"../syyx_sdk/controller/syyx_manager": "syyx_manager",
"./HelpMgr": "HelpMgr",
"./Script/Config/App_htdjd_Config": "App_htdjd_Config",
"./Script/Event/EventEnum": "EventEnum",
"./Script/Event/Event_htdjd_Defs": "Event_htdjd_Defs",
"./Script/Event/Event_htdjd_Mgr": "Event_htdjd_Mgr",
"./Script/User/User_htdjd": "User_htdjd",
"./Script/zqHelp/GSkinHelp": "GSkinHelp"
} ],
md5: [ function(t, e) {
"use strict";
cc._RF.push(e, "f24edcNJ/RFR63miKZCkVWa", "md5");
window.md5 = function(t) {
function e(t, e, n) {
return t & e | ~t & n;
}
function n(t, e, n) {
return n & t | ~n & e;
}
function i(t, e, n) {
return t ^ e ^ n;
}
function o(t, e, n) {
return e ^ (t | ~n);
}
function a(t, e) {
return t[e + 3] << 24 | t[e + 2] << 16 | t[e + 1] << 8 | t[e];
}
function _(t) {
for (var e = [], n = 0; n < t.length; n++) if (t.charCodeAt(n) <= 127) e.push(t.charCodeAt(n)); else for (var i = encodeURIComponent(t.charAt(n)).substr(1).split("%"), o = 0; o < i.length; o++) e.push(parseInt(i[o], 16));
return e;
}
function d(t) {
for (var e = new Array(t.length), n = 0; n < t.length; n++) e[n] = t[n];
return e;
}
var r = null, s = null;
function c(t, e) {
return 4294967295 & t + e;
}
return "string" == typeof t ? r = _(t) : t.constructor == Array ? 0 === t.length ? r = t : "string" == typeof t[0] ? r = function(t) {
for (var e = [], n = 0; n < t.length; n++) e = e.concat(_(t[n]));
return e;
}(t) : "number" == typeof t[0] ? r = t : s = typeof t[0] : "undefined" != typeof ArrayBuffer ? t instanceof ArrayBuffer ? r = d(new Uint8Array(t)) : t instanceof Uint8Array || t instanceof Int8Array ? r = d(t) : t instanceof Uint32Array || t instanceof Int32Array || t instanceof Uint16Array || t instanceof Int16Array || t instanceof Float32Array || t instanceof Float64Array ? r = d(new Uint8Array(t.buffer)) : s = typeof t : s = typeof t, 
s && alert("MD5 type mismatch, cannot process " + s), function() {
function t(t, e, n, i) {
var o = m;
m = g, y = c(g = y, function(t) {
return t << i & 4294967295 | t >>> 32 - i;
}(c(f, c(t, c(e, n))))), f = o;
}
var _ = r.length;
r.push(128);
var d = r.length % 64;
if (56 < d) {
for (var s = 0; s < 64 - d; s++) r.push(0);
d = r.length % 64;
}
for (s = 0; s < 56 - d; s++) r.push(0);
r = r.concat(function(t) {
for (var e = [], n = 0; n < 8; n++) e.push(255 & t), t >>>= 8;
return e;
}(8 * _));
var h = 1732584193, l = 4023233417, p = 2562383102, u = 271733878, f = 0, y = 0, g = 0, m = 0;
for (s = 0; s < r.length / 64; s++) {
f = h;
var v = 64 * s;
t(e(y = l, g = p, m = u), 3614090360, a(r, v), 7), t(e(y, g, m), 3905402710, a(r, 4 + v), 12), 
t(e(y, g, m), 606105819, a(r, 8 + v), 17), t(e(y, g, m), 3250441966, a(r, 12 + v), 22), 
t(e(y, g, m), 4118548399, a(r, 16 + v), 7), t(e(y, g, m), 1200080426, a(r, 20 + v), 12), 
t(e(y, g, m), 2821735955, a(r, 24 + v), 17), t(e(y, g, m), 4249261313, a(r, 28 + v), 22), 
t(e(y, g, m), 1770035416, a(r, 32 + v), 7), t(e(y, g, m), 2336552879, a(r, 36 + v), 12), 
t(e(y, g, m), 4294925233, a(r, 40 + v), 17), t(e(y, g, m), 2304563134, a(r, 44 + v), 22), 
t(e(y, g, m), 1804603682, a(r, 48 + v), 7), t(e(y, g, m), 4254626195, a(r, 52 + v), 12), 
t(e(y, g, m), 2792965006, a(r, 56 + v), 17), t(e(y, g, m), 1236535329, a(r, 60 + v), 22), 
t(n(y, g, m), 4129170786, a(r, 4 + v), 5), t(n(y, g, m), 3225465664, a(r, 24 + v), 9), 
t(n(y, g, m), 643717713, a(r, 44 + v), 14), t(n(y, g, m), 3921069994, a(r, v), 20), 
t(n(y, g, m), 3593408605, a(r, 20 + v), 5), t(n(y, g, m), 38016083, a(r, 40 + v), 9), 
t(n(y, g, m), 3634488961, a(r, 60 + v), 14), t(n(y, g, m), 3889429448, a(r, 16 + v), 20), 
t(n(y, g, m), 568446438, a(r, 36 + v), 5), t(n(y, g, m), 3275163606, a(r, 56 + v), 9), 
t(n(y, g, m), 4107603335, a(r, 12 + v), 14), t(n(y, g, m), 1163531501, a(r, 32 + v), 20), 
t(n(y, g, m), 2850285829, a(r, 52 + v), 5), t(n(y, g, m), 4243563512, a(r, 8 + v), 9), 
t(n(y, g, m), 1735328473, a(r, 28 + v), 14), t(n(y, g, m), 2368359562, a(r, 48 + v), 20), 
t(i(y, g, m), 4294588738, a(r, 20 + v), 4), t(i(y, g, m), 2272392833, a(r, 32 + v), 11), 
t(i(y, g, m), 1839030562, a(r, 44 + v), 16), t(i(y, g, m), 4259657740, a(r, 56 + v), 23), 
t(i(y, g, m), 2763975236, a(r, 4 + v), 4), t(i(y, g, m), 1272893353, a(r, 16 + v), 11), 
t(i(y, g, m), 4139469664, a(r, 28 + v), 16), t(i(y, g, m), 3200236656, a(r, 40 + v), 23), 
t(i(y, g, m), 681279174, a(r, 52 + v), 4), t(i(y, g, m), 3936430074, a(r, v), 11), 
t(i(y, g, m), 3572445317, a(r, 12 + v), 16), t(i(y, g, m), 76029189, a(r, 24 + v), 23), 
t(i(y, g, m), 3654602809, a(r, 36 + v), 4), t(i(y, g, m), 3873151461, a(r, 48 + v), 11), 
t(i(y, g, m), 530742520, a(r, 60 + v), 16), t(i(y, g, m), 3299628645, a(r, 8 + v), 23), 
t(o(y, g, m), 4096336452, a(r, v), 6), t(o(y, g, m), 1126891415, a(r, 28 + v), 10), 
t(o(y, g, m), 2878612391, a(r, 56 + v), 15), t(o(y, g, m), 4237533241, a(r, 20 + v), 21), 
t(o(y, g, m), 1700485571, a(r, 48 + v), 6), t(o(y, g, m), 2399980690, a(r, 12 + v), 10), 
t(o(y, g, m), 4293915773, a(r, 40 + v), 15), t(o(y, g, m), 2240044497, a(r, 4 + v), 21), 
t(o(y, g, m), 1873313359, a(r, 32 + v), 6), t(o(y, g, m), 4264355552, a(r, 60 + v), 10), 
t(o(y, g, m), 2734768916, a(r, 24 + v), 15), t(o(y, g, m), 1309151649, a(r, 52 + v), 21), 
t(o(y, g, m), 4149444226, a(r, 16 + v), 6), t(o(y, g, m), 3174756917, a(r, 44 + v), 10), 
t(o(y, g, m), 718787259, a(r, 8 + v), 15), t(o(y, g, m), 3951481745, a(r, 36 + v), 21), 
h = c(h, f), l = c(l, y), p = c(p, g), u = c(u, m);
}
return function(t, e, n, i) {
for (var o, a = "", _ = 0, d = 0, r = 3; 0 <= r; r--) _ = 255 & (d = arguments[r]), 
_ <<= 8, _ |= 255 & (d >>>= 8), _ <<= 8, _ |= 255 & (d >>>= 8), _ <<= 8, a += (o = ((_ |= d >>>= 8) >>> 0).toString(16), 
"00000000".substr(0, 8 - o.length) + o);
return a;
}(u, p, l, h).toUpperCase();
}();
};
cc._RF.pop();
}, {} ],
model: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "22f98UduLZP4ogQj7etrn5S", "model");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.launch_options = n.push_param = n.native_ad_data = n.syyx_view = void 0;
(function(t) {
t[t.native_banner = 0] = "native_banner";
t[t.inner_interstitial = 1] = "inner_interstitial";
t[t.interstitial = 2] = "interstitial";
t[t.native_icon = 3] = "native_icon";
t[t.toast = 4] = "toast";
t[t.ctr_check = 5] = "ctr_check";
})(n.syyx_view || (n.syyx_view = {}));
n.native_ad_data = function() {
this.order = 0;
};
n.push_param = function() {};
n.launch_options = function() {};
cc._RF.pop();
}, {} ],
oppoNativeBanner: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "4b728yWjd9D8L8TCCu7HeIj", "oppoNativeBanner");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../../Data/Global_htdjd_Data"), d = t("../../Platform/OPPO/OppoMgr"), r = t("../../Mgr/Remote_htdjd_Mgr"), s = t("../../Interface/FM_htdjd_Interface"), c = t("../../Net/Net_Mgr"), h = t("../../Util/App_htdjd_Platform"), l = t("../../Platform/VIVO/VivoMgr"), p = cc._decorator, u = p.ccclass, f = p.property, y = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.nativeProType = 0;
e.img_icon = null;
e.exe_icon = null;
e.img_title = null;
e.exe_title = null;
e.exe_name = null;
e.bt_text = null;
e.img_ad = null;
e.exe_ad = null;
e.button = null;
e.nativePro = 0;
e.isClick = !1;
e.opid = "";
e.data = null;
return e;
}
e.prototype.start = function() {
this.exe_ad.on(cc.Node.EventType.TOUCH_START, this.openYuanSheng, this);
};
e.prototype.onEnable = function() {
this.isClick = !1;
1 == this.nativeProType ? h.default.is_OPPO_GAME_htdjd() ? this.nativePro = c.default.OPPO_SdkCustomKey.nativeProReward : h.default.is_VIVO_GAME_htdjd() && (this.nativePro = c.default.VIVO_SdkCustomKey.nativeProReward) : 2 == this.nativeProType && (h.default.is_OPPO_GAME_htdjd() ? this.nativePro = c.default.OPPO_SdkCustomKey.nativeProOnline : h.default.is_VIVO_GAME_htdjd() && (this.nativePro = c.default.VIVO_SdkCustomKey.nativeProOnline));
cc.game.on("OppoNatBanner", this.openYuanSheng, this);
h.default.is_OPPO_GAME_htdjd() && ((Date.now() - _.Global_htdjd_Data.adTime) / 1e3 < 60 && !c.default.OPPO_SdkCustomKey.appId ? this.node.active = !1 : h.default.is_VIVO_GAME_htdjd() && (Date.now() - _.Global_htdjd_Data.adTime) / 1e3 < 60 && !c.default.VIVO_SdkCustomKey.appId && (this.node.active = !1));
};
e.prototype.onDisable = function() {
this.isClick;
cc.game.removeAll(this);
};
e.prototype.openYuanSheng = function() {
var t = this;
console.error("openYuanSheng");
this.isClick = !0;
if (h.default.is_OPPO_GAME_htdjd()) {
d.OppoMgr.instance.reportAdClick(this.opid);
d.OppoMgr.instance.removeIsShowBanner(this.opid);
} else if (h.default.is_VIVO_GAME_htdjd()) {
l.default.instance.reportAdClick(this.opid);
l.default.instance.showYuanSheng(function() {
t.node.active = !1;
});
}
};
e.prototype.setData = function(t) {
cc.error("保留的广告数据", t);
this.data = t;
var e = t.imgUrlList, n = t.icon;
"" == n && e.length > 0 && (n = e[0]);
this.exe_title.string = t.desc;
var i = t.clickBtnTxt;
this.bt_text.string = "" == i ? "点击安装" : t.clickBtnTxt;
this.exe_name.string = t.title;
this.img_ad.active = !1;
this.exe_ad.active = !0;
console.log("oppoNa1");
var o = this;
r.default.loadRemote_htdjd(n, s.handleFM_htdjd(function(t, e) {
if (!t && o.isValid && o.exe_icon) {
var n = new cc.SpriteFrame(e);
o.exe_icon.spriteFrame = n;
o.exe_icon.node.active = !0;
console.info("oppoNa5", o.exe_icon);
}
}, this));
console.log("oppoNa2");
this.opid = t.adId;
h.default.is_OPPO_GAME_htdjd() ? d.OppoMgr.instance.reportAdShow(this.opid) : h.default.is_VIVO_GAME_htdjd() && l.default.instance.reportAdShow(this.opid);
};
e.prototype.onClose = function() {
console.info("onClose");
if (h.default.is_OPPO_GAME_htdjd()) {
if (!c.default.OPPO_SdkCustomKey.appId) {
this.node.active = !1;
return;
}
} else if (h.default.is_VIVO_GAME_htdjd() && !c.default.VIVO_SdkCustomKey.appId) {
this.node.active = !1;
return;
}
if (100 * Math.random() <= this.nativePro) this.openYuanSheng(); else if (h.default.is_OPPO_GAME_htdjd()) {
d.OppoMgr.instance.hindYsBottom();
this.node.active = !1;
} else if (h.default.is_VIVO_GAME_htdjd()) {
l.default.instance.hindYsBottom();
this.node.active = !1;
}
};
a([ f() ], e.prototype, "nativeProType", void 0);
a([ f(cc.Sprite) ], e.prototype, "img_icon", void 0);
a([ f(cc.Sprite) ], e.prototype, "exe_icon", void 0);
a([ f(cc.Label) ], e.prototype, "img_title", void 0);
a([ f(cc.Label) ], e.prototype, "exe_title", void 0);
a([ f(cc.Label) ], e.prototype, "exe_name", void 0);
a([ f(cc.Label) ], e.prototype, "bt_text", void 0);
a([ f(cc.Node) ], e.prototype, "img_ad", void 0);
a([ f(cc.Node) ], e.prototype, "exe_ad", void 0);
a([ f(cc.Node) ], e.prototype, "button", void 0);
return a([ u ], e);
}(cc.Component);
n.default = y;
cc._RF.pop();
}, {
"../../Data/Global_htdjd_Data": "Global_htdjd_Data",
"../../Interface/FM_htdjd_Interface": "FM_htdjd_Interface",
"../../Mgr/Remote_htdjd_Mgr": "Remote_htdjd_Mgr",
"../../Net/Net_Mgr": "Net_Mgr",
"../../Platform/OPPO/OppoMgr": "OppoMgr",
"../../Platform/VIVO/VivoMgr": "VivoMgr",
"../../Util/App_htdjd_Platform": "App_htdjd_Platform"
} ],
oppoRewardView: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "53116uXHiJARYk8+guZrabt", "oppoRewardView");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../../Util/Wudian"), d = t("../../Util/App_htdjd_Platform"), r = t("../../Mgr/Game_htdjd_Mgr"), s = t("../../Platform/OPPO/OppoMgr"), c = t("../../Net/Net_Mgr"), h = t("../../User/User_htdjd"), l = t("../../Util/Game_htdjd_Util"), p = t("./oppoNativeBanner"), u = t("../../Platform/VIVO/VivoMgr"), f = t("../../Data/Global_htdjd_Data"), y = cc._decorator, g = y.ccclass, m = y.property, v = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.goldlab = null;
e.resultBanner = null;
e.nativeBanner = null;
e.resultWuDian = null;
e.goldNum = 0;
e.isclick = !1;
return e;
}
e.prototype.start = function() {
this.isclick = !1;
this.nativeBanner.node.active = !1;
if (d.default.is_OPPO_GAME_htdjd()) {
this.goldNum = 2 * Math.floor((Date.now() - f.Global_htdjd_Data.rewardcurTime) / 1e3);
this.goldlab.string = this.goldNum.toString();
cc.game.on("ys_banner", this.openNative, this);
s.OppoMgr.instance.showYuanSheng();
} else if (d.default.is_VIVO_GAME_htdjd()) {
this.goldNum = 2 * Math.floor((Date.now() - f.Global_htdjd_Data.rewardcurTime) / 1e3);
this.goldlab.string = this.goldNum.toString();
cc.game.on("ys_banner", this.openNative, this);
u.default.instance.showYuanSheng();
}
};
e.prototype.openNative = function(t) {
this.nativeBanner.setData(t);
this.nativeBanner.node.active = !0;
};
e.prototype.updateGold = function() {
this.goldNum += 2;
this.goldlab.string = this.goldNum.toString();
};
e.prototype.onBtnEnter = function() {
this.jiangli(this.goldNum);
this.go_htdjd_Next();
};
e.prototype.go_htdjd_Next = function() {
var t = l.Game_htdjd_Util.limit(0, 100);
console.info("go_htdjd_Next", t, this.isclick);
if (d.default.is_OPPO_GAME_htdjd()) {
console.info(t, c.default.OPPO_SdkCustomKey.nativeProOnline);
if (t <= c.default.OPPO_SdkCustomKey.nativeProOnline && c.default.OPPO_SdkCustomKey.appId && !this.isclick) {
console.info("nativeProOnline");
cc.game.emit("OppoNatBanner");
this.isclick = !0;
} else if (d.default.is_VIVO_GAME_htdjd()) {
console.info(t, c.default.VIVO_SdkCustomKey.nativeProOnline);
if (t <= c.default.VIVO_SdkCustomKey.nativeProOnline && c.default.VIVO_SdkCustomKey.appId && !this.isclick) {
console.info("nativeProOnline");
cc.game.emit("OppoNatBanner");
this.isclick = !0;
}
}
}
d.default.is_OPPO_GAME_htdjd() ? s.OppoMgr.instance.showBannerAd(_.WuDianType.CENTER) : d.default.is_VIVO_GAME_htdjd() && u.default.instance.showBannerAd(_.WuDianType.CENTER);
this.node.destroy();
};
e.prototype.onVideo_htdjd_Btn = function() {
var t = this, e = this;
d.default.is_OPPO_GAME_htdjd() ? s.OppoMgr.instance.playAd(function(n) {
n ? e.jiangli(t.goldNum *= 5) : e.jiangli(t.goldNum);
t.go_htdjd_Next();
}) : d.default.is_VIVO_GAME_htdjd() && u.default.instance.playAd(function(n) {
n ? e.jiangli(t.goldNum *= 5) : e.jiangli(t.goldNum);
t.go_htdjd_Next();
});
};
e.prototype.jiangli = function(t) {
c.default.sendAloConttrol(5);
h.default.addMoney_htdjd(t);
this.goldNum = 0;
f.Global_htdjd_Data.rewardcurTime = Date.now();
this.goldlab.string = this.goldNum.toString();
r.default.getInstance_htdjd().saveGameData_htdjd();
};
a([ m(cc.Label) ], e.prototype, "goldlab", void 0);
a([ m({
type: cc.Node,
displayName: "结算Banner"
}) ], e.prototype, "resultBanner", void 0);
a([ m({
type: p.default,
displayName: "原生Banner"
}) ], e.prototype, "nativeBanner", void 0);
return a([ g ], e);
}(cc.Component);
n.default = v;
cc._RF.pop();
}, {
"../../Data/Global_htdjd_Data": "Global_htdjd_Data",
"../../Mgr/Game_htdjd_Mgr": "Game_htdjd_Mgr",
"../../Net/Net_Mgr": "Net_Mgr",
"../../Platform/OPPO/OppoMgr": "OppoMgr",
"../../Platform/VIVO/VivoMgr": "VivoMgr",
"../../User/User_htdjd": "User_htdjd",
"../../Util/App_htdjd_Platform": "App_htdjd_Platform",
"../../Util/Game_htdjd_Util": "Game_htdjd_Util",
"../../Util/Wudian": "Wudian",
"./oppoNativeBanner": "oppoNativeBanner"
} ],
playerInfo_htdjd_Bar: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "62955X1Vz5Iqqr5t0a0cCIN", "playerInfo_htdjd_Bar");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../../HelpMgr"), d = t("../Scene_htdjd_Play"), r = cc._decorator, s = r.ccclass, c = r.property, h = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.mpBar = null;
e.headImg = null;
e.hpBar = null;
e.hpLabel = null;
e.nameLabel = null;
e.killLabel = null;
return e;
}
e.prototype.update_htdjd_Info = function(t) {
this.hpBar.progress = t.curr_htdjd_Hp / t.max_htdjd_Hp;
this.mpBar.progress = Math.floor(t.currMp_htdjd) / t.max_htdjd_Mp;
this.hpLabel.string = Math.floor(t.curr_htdjd_Hp).toString();
this.killLabel.string = t.kill_htdjd_Num.toString();
if (t.isBoss) {
this.nameLabel.string = "Boss";
this.headImg.spriteFrame = d.default.m_self.m_bossIconArray[_.default.instance.m_nBossBattle];
} else {
this.nameLabel.string = t.name_htdjd;
this.headImg.spriteFrame = d.default.m_self.iconArray[t.curr_htdjd_Index];
}
};
a([ c(cc.ProgressBar) ], e.prototype, "mpBar", void 0);
a([ c(cc.Sprite) ], e.prototype, "headImg", void 0);
a([ c(cc.ProgressBar) ], e.prototype, "hpBar", void 0);
a([ c(cc.Label) ], e.prototype, "hpLabel", void 0);
a([ c(cc.Label) ], e.prototype, "nameLabel", void 0);
a([ c(cc.Label) ], e.prototype, "killLabel", void 0);
return a([ s ], e);
}(cc.Component);
n.default = h;
cc._RF.pop();
}, {
"../../HelpMgr": "HelpMgr",
"../Scene_htdjd_Play": "Scene_htdjd_Play"
} ],
role_htdjd: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "3bc3adwgipOP58S++puEkqV", "role_htdjd");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("./arms_htdjd"), d = t("./Player_htdjd"), r = cc._decorator, s = r.ccclass, c = r.property, h = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.attNode = null;
e.posX = 100;
e.attAudio = null;
e.posY = 144;
e.armsNode = null;
e.att = 0;
e.attcd = 1;
e.name_htdjd = "";
return e;
}
e.prototype.start = function() {
if (this.armsNode) {
this.armsNode.active = !1;
this.armsNode.getComponent(_.default).att_htdjd = this.att;
this.armsNode.getComponent(_.default).name_htdjd = this.name_htdjd;
this.armsNode.getComponent(_.default).user_htdjd_Data = this.userData;
}
};
e.prototype.setUserData = function(t) {
this.userData = t;
this.armsNode && (this.armsNode.getComponent(_.default).user_htdjd_Data = this.userData);
};
e.prototype.playAttAudio = function() {
this.attAudio && cc.audioEngine.play(this.attAudio, !1, 1);
};
e.prototype.openArmsCollision = function() {
this.armsNode && (this.armsNode.active = !0);
};
e.prototype.hiedArmsCollision = function() {
this.armsNode && (this.armsNode.active = !1);
};
e.prototype.setIsDZ = function(t) {
this.armsNode.getComponent(_.default).is_htdjd_DZ = t;
};
e.prototype.onPlayerFrame = function(t) {
this.node.parent.parent.getComponent(d.default).onPlayer_htdjd_Frame(t);
};
e.prototype.onCollisionEnter = function(t) {
var e = this.node.parent.parent.getComponent(d.default);
e.onCollisionEnter(t, e);
};
e.prototype.onCollisionStay = function(t) {
var e = this.node.parent.parent.getComponent(d.default);
e.onCollisionStay(t, e);
};
e.prototype.onCollisionExit = function(t) {
var e = this.node.parent.parent.getComponent(d.default);
e.onCollisionExit(t, e);
};
a([ c(cc.Node) ], e.prototype, "attNode", void 0);
a([ c({
type: cc.Integer
}) ], e.prototype, "posX", void 0);
a([ c({
type: cc.AudioClip,
displayName: "攻击音效"
}) ], e.prototype, "attAudio", void 0);
a([ c({
displayName: "子彈发射点Y"
}) ], e.prototype, "posY", void 0);
a([ c({
type: cc.Node,
displayName: "武器触发点"
}) ], e.prototype, "armsNode", void 0);
return a([ s ], e);
}(cc.Component);
n.default = h;
cc._RF.pop();
}, {
"./Player_htdjd": "Player_htdjd",
"./arms_htdjd": "arms_htdjd"
} ],
syyx_adv_manager: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "cf70bP4he5AFZtAv4kF/8FO", "syyx_adv_manager");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.syyx_adv_manager = void 0;
var i = t("./ad_oppo_banner"), o = t("../../configs/syyx_sdk_enum"), a = t("../../utils/syyx_sdk_utils"), _ = t("../syyx_manager"), d = t("./ad_banner"), r = t("./ad_native_interstitial"), s = t("./ad_native_inner_interstitial"), c = t("./ad_native_icon"), h = t("./ad_block"), l = t("../syyx_apk_adv_manager"), p = t("../../configs/syyx_sdk_config"), u = function() {
function t() {}
t.load_adv_config = function(e) {
void 0 === e && (e = !1);
var n = this;
if (!this.__inited) {
this.__inited = !0;
this.login_timestamp = new Date().getTime();
a.syyx_sdk_utils.load_resource(_.syyx_manager.__adv_config_file_path, function(t) {
p.syyx_const.syyx_sdk_publish === p.e_syyx_sdk_publish_type.in ? n._adv_config_data = t : n._adv_config_data = a.syyx_sdk_utils.parse_csv(t, "id");
n.__adv_config_inited = !0;
console.log("igc----- adv config has loaded", n._adv_config_data);
_.syyx_manager.pre_load_game_portal_box(o.e_ad_id.game_portal_box, null, null, null, null);
_.syyx_manager.preload_video();
}, this);
this.init_native_report_record();
}
this.init_first_banner_cd();
e && t.is_oppo_vivo() && s.ad_native_inner_interstitial.auto_preload_native_inner_interstitial();
};
t.set_banner_height = function() {
p.syyx_const.syyx_sdk_channel != igc.e_channel_type.apk ? i.ad_oppo_banner.set_banner_height() : l.syyx_apk_adv_manager.set_banner_height();
};
t.init_native_report_record = function() {
this.native_report_record[o.e_ad_native_type.native_inner_interstitial] = {
start_count: 0,
show_count: 0,
click_count: 0
};
this.native_report_record[o.e_ad_native_type.native_banner] = {
start_count: 0,
show_count: 0,
click_count: 0
};
this.native_report_record[o.e_ad_native_type.native_interstitial] = {
start_count: 0,
show_count: 0,
click_count: 0
};
this.native_report_record[o.e_ad_native_type.native_icon] = {
start_count: 0,
show_count: 0,
click_count: 0
};
};
t.init_first_banner_cd = function() {
var t = this;
if (p.syyx_const.syyx_sdk_channel === igc.e_channel_type.oppo_qg) {
var e = 0, n = _.syyx_manager.get_business_config();
if (n && n.adv_banner_cd) {
e = n.adv_banner_cd.value[0];
this.can_show_first_native = e <= 0;
console.log("igc----- the banner's cd in oppo is", e);
}
this.first_banner_timer_id && clearTimeout(this.first_banner_timer_id);
this.first_banner_timer_id = setTimeout(function() {
t.can_show_first_native = !0;
d.ad_banner.auto_show_banner();
}, 1e3 * e);
}
};
t.add_native_data = function(t) {
for (var e in this._native_data_cache) if (this._native_data_cache[e].id == t.id) return;
var n = this.get_oppo_native_cache_max_length();
this._native_data_cache.length >= n && this._native_data_cache.splice(0, 1);
this._native_data_cache.push(t);
};
t.show_normal_banner = function(t, e, n, i, o) {
p.syyx_const.syyx_sdk_channel != igc.e_channel_type.apk || l.syyx_apk_adv_manager.show_normal_banner(igc.e_ad_type.banner, t, e, n, i, o);
};
t.show_banner = function(t, e, n, i, o, a, _) {
if (this.__adv_config_inited) if (p.syyx_const.syyx_sdk_channel != igc.e_channel_type.apk) d.ad_banner.show_banner(t, e, n, i, o, a); else {
console.log("进入apk的banner展示");
l.syyx_apk_adv_manager.show_banner(t, e, n, i, o, a, _);
}
};
t.hide_banner = function() {
this.__adv_config_inited && (p.syyx_const.syyx_sdk_channel != igc.e_channel_type.apk ? d.ad_banner.hide_banner() : l.syyx_apk_adv_manager.hide_banner());
};
t.show_native_icon = function(t, e, n, i, o, a, _) {
this.__adv_config_inited && c.ad_native_icon.show_native_icon(t, e, n, i, o, a, _);
};
t.hide_native_icon = function() {
this.__adv_config_inited && c.ad_native_icon.hide_native_icon();
};
t.show_native_interstitial = function(t, e, n, i, o, a, _) {
this.__adv_config_inited && (p.syyx_const.syyx_sdk_channel != igc.e_channel_type.apk ? r.ad_native_interstitial.load_native_interstitial(t, e, n, i, o, a) : l.syyx_apk_adv_manager.show_native_interstitial(t, e, n, i, o, a, _));
};
t.show_video_interstitial = function(t, e, n, i) {
p.syyx_const.syyx_sdk_channel == igc.e_channel_type.apk && l.syyx_apk_adv_manager.show_video_interstitial(t, e, n, i);
};
t.preload_native_inner_interstitial = function(t, e, n, i, o, a) {
this.__adv_config_inited && (p.syyx_const.syyx_sdk_channel != igc.e_channel_type.apk ? s.ad_native_inner_interstitial._can_auto_preload ? console.log("igc----- auto preload native_inner_interstitial is open!!") : s.ad_native_inner_interstitial.preload_native_inner_interstitial(t, e, n, i, o, a) : l.syyx_apk_adv_manager.preload_native_inner_interstitial(t, e, n, i, o, a));
};
t.set_on_click_inner_interstitial_btn = function(t) {
p.syyx_const.syyx_sdk_channel !== igc.e_channel_type.ipa ? this.__adv_config_inited && s.ad_native_inner_interstitial.set_on_click_inner_interstitial_btn(t) : t && t();
};
t.get_native_data = function(t) {
void 0 === t && (t = void 0);
if (this.can_show_first_native) {
var e = this.check_is_click_limit(o.e_ad_native_type.native_banner), n = this.check_is_click_limit(o.e_ad_native_type.native_inner_interstitial), i = this.check_is_click_limit(o.e_ad_native_type.native_interstitial), a = [];
for (var _ in this._native_data_cache) this._native_data_cache[_].id != t && ((this._native_data_cache[_].native_type != o.e_ad_native_type.native_banner || e) && (this._native_data_cache[_].native_type != o.e_ad_native_type.native_inner_interstitial || n) && (this._native_data_cache[_].native_type != o.e_ad_native_type.native_interstitial || i) || a.push(this._native_data_cache[_]));
return this.check_native_data_list_is_reprot(a) ? this.get_min_order_native_data(a) : this.get_latest_native_data(a);
}
console.log("igc ----- oppo's first native ad is in cd");
};
t.remove_native_data = function(t) {
for (var e in this._native_data_cache) if (this._native_data_cache[e].id == t.id) {
console.log("igc----- syyx_adv_manager remove native_data:", t);
this._native_data_cache.splice(parseInt(e), 1);
return;
}
};
t.get_local_native_data = function() {
return p.syyx_const.syyx_sdk_channel === igc.e_channel_type.apk ? l.syyx_apk_adv_manager.get_local_native_data() : this.get_native_data();
};
t.report_ad_click = function(t, e) {
if (this.__adv_config_inited) {
var n = this.get_channel_ad_id(e.adPosId);
if (n && "1" != n && "0" != n) if (e) {
console.log("igc ----- has been in report ad click");
if (e.state == o.e_ad_native_state.show) {
var i = this.native_report_record[e.native_type];
i.click_count = Math.min(++i.click_count, i.show_count);
var a = {
ad_id: n,
ad_unit_id: e.adUnitId,
ad_type: igc.e_ad_type.native,
ad_pos_id: e.adPosId,
ad_event: n,
ad_scene: n,
sub_ad_type: igc.e_ad_native_type.native_banner_dialog
};
igc.igc_main.instance.report_ad_click(a);
this.remove_native_data(e);
d.ad_banner.report_ad_click(t, e);
c.ad_native_icon.report_ad_click(t, e);
r.ad_native_interstitial.report_ad_click(t, e);
s.ad_native_inner_interstitial.report_ad_click(t, e);
} else console.log("igc----- syyx_adv_mamager report_ad_click native_data state is not e_ad_native_state.show");
} else console.log("igc----- syyx_adv_mamager report_ad_click native_data is null"); else console.log("igc----- syyx_manager report_ad_click ad_id no configure in adv.csv");
}
};
t.report_ad_show = function(e, n) {
if (this.__adv_config_inited) {
var i = t.get_channel_ad_id(n.adPosId);
if (i && "1" != i && "0" != i) if (n) {
var a = t.get_native_data_list_max_order();
n.order = a + 1;
if (n.state == o.e_ad_native_state.need_show || p.syyx_const.syyx_sdk_channel === igc.e_channel_type.hw_qg) {
if (n.state == o.e_ad_native_state.need_show) {
var _ = this.native_report_record[n.native_type];
_.show_count++;
_.start_count++;
}
var h = {
ad_id: i,
ad_unit_id: n.adUnitId,
ad_type: igc.e_ad_type.native,
ad_pos_id: n.adPosId,
ad_event: i,
ad_scene: i,
sub_ad_type: igc.e_ad_native_type.native_banner_dialog
};
igc.igc_main.instance.report_ad_show(h);
n.state = o.e_ad_native_state.show;
}
d.ad_banner.report_ad_show(e, n);
c.ad_native_icon.report_ad_show(e, n);
r.ad_native_interstitial.report_ad_show(e, n);
s.ad_native_inner_interstitial.report_ad_show(e, n);
} else console.log("igc----- syyx_adv_mamager report_ad_show native_data is null"); else console.log("igc----- syyx_manager report_ad_show ad_id no configure in adv.csv");
}
};
t.set_normal_banner_switch = function(t) {
d.ad_banner.set_normal_banner_switch(t);
};
t.get_qq_banner_top_offset = function() {
var t = _.syyx_manager.get_business_config();
if (t && t.banner_top_offset && t.banner_top_offset.value) {
var e = t.banner_top_offset.value;
return e[0] + Math.floor(Math.random() * (e[1] - e[0]));
}
return 0;
};
t.show_block = function(t, e, n, i, o, a, _) {
this._block_instance[n] || (this._block_instance[n] = new h.default());
this.__adv_config_inited && this._block_instance[n].show_block(t, e, n, i, o, a, _);
};
t.hide_block = function(t) {
this.__adv_config_inited && this._block_instance[t] && this._block_instance[t].hide_block();
};
t.hide_all_block = function() {
if (this.__adv_config_inited) for (var t in this._adv_config_data) if (this._adv_config_data[t].adv_type == igc.e_ad_type.block) {
var e = this._adv_config_data[t].id;
this._block_instance[e] && this._block_instance[e].hide_block();
}
};
t.check_is_open_oppo_rule = function() {
_.syyx_manager.get_business_config();
return p.syyx_const.syyx_sdk_channel === igc.e_channel_type.oppo_qg || p.syyx_const.syyx_sdk_channel === igc.e_channel_type.vivo_qg || p.syyx_const.syyx_sdk_channel === igc.e_channel_type.web;
};
t.add_native_show_count = function() {
this.check_is_open_oppo_rule() && this.cur_native_show_count++;
};
t.get_play_game_time = function() {
return (new Date().getTime() - this.login_timestamp) / 1e3;
};
t.check_is_show_count_limit = function() {
if (!this.check_is_open_oppo_rule()) return !1;
var e = [ 60, 2 ], n = _.syyx_manager.get_business_config();
n && n.oppo_native_show_limit && n.oppo_native_show_limit.value && (e = n.oppo_native_show_limit.value);
var i = this.get_play_game_time(), o = 2;
i >= 0 && (o = (Math.floor(i / e[0]) + 1) * e[1]);
return t.cur_native_show_count >= o;
};
t.get_oppo_native_cache_max_length = function() {
var t = 20, e = _.syyx_manager.get_business_config();
e && e.oppo_native_cache_length && e.oppo_native_cache_length.value && (t = e.oppo_native_cache_length.value[0]);
return t || 20;
};
t.check_native_data_list_is_reprot = function(t) {
if (t.length > 0) for (var e in t) if (t[e].state != o.e_ad_native_state.show) return !1;
return !0;
};
t.get_latest_native_data = function(t) {
for (var e in t) if (t[e].state == o.e_ad_native_state.need_show) return t[e];
if (t.length > 0) return t[t.length - 1];
};
t.get_native_data_list_max_order = function(t) {
void 0 === t && (t = void 0);
var e, n = 0;
if ((e = t && t.length > 0 ? t : this._native_data_cache).length > 0) for (var i in e) e[i].order > n && (n = e[i].order);
return n || 0;
};
t.get_min_order_native_data = function(t) {
var e = void 0;
if (t.length > 0) for (var n in t) (!e || t[n].order <= e.order) && (e = t[n]);
return e;
};
t.check_is_click_limit = function(t) {
if (!this.__adv_config_inited) return !1;
var e = this, n = !1, i = this.native_report_record[t];
if (this.native_click_state[t] == o.e_ad_native_click_pro_type.cooling) return !0;
var a = i.click_count / i.show_count, d = 10, r = 1, s = 60, c = _.syyx_manager.get_business_config();
if (!c || !c.native_interstitial_click_pro_limit) return !1;
if (t == o.e_ad_native_type.native_banner) {
d = c.native_banner_click_pro_limit.value[0];
r = c.native_banner_click_pro_limit.value[1];
s = c.native_banner_click_pro_limit.value[2];
} else if (t == o.e_ad_native_type.native_inner_interstitial) {
d = c.native_inner_click_pro_limit.value[0];
r = c.native_inner_click_pro_limit.value[1];
s = c.native_inner_click_pro_limit.value[2];
} else if (t == o.e_ad_native_type.native_interstitial) {
d = c.native_interstitial_click_pro_limit.value[0];
r = c.native_interstitial_click_pro_limit.value[1];
s = c.native_interstitial_click_pro_limit.value[2];
}
i.start_count > 0 && i.start_count % d == 0 && (n = a >= r);
this.native_click_state[t] || (this.native_click_state[t] = o.e_ad_native_click_pro_type.active);
if (n && this.native_click_state[t] == o.e_ad_native_click_pro_type.active) {
this.native_click_state[t] = o.e_ad_native_click_pro_type.cooling;
console.log("igc----- syyx_adv_manager run native click limit cool timer!!!", s);
setTimeout(function() {
e.native_click_state[t] = o.e_ad_native_click_pro_type.active;
i.start_count = 0;
}, 1e3 * s);
}
return n;
};
t.run_finger_close_banner_rule = function() {
var t = this, e = _.syyx_manager.get_business_config();
if (1 == e.finger_close_banner_switch.value[0]) {
var n = e.finger_close_banner_switch.value[1] || 60;
this.hide_banner();
this.limit_show_banner = !1;
setTimeout(function() {
t.limit_show_banner = !0;
d.ad_banner.auto_show_banner();
}, 1e3 * n);
}
};
t.get_oppo_banner_show_update_time = function() {
var e = t.get_play_game_time(), n = void 0, i = _.syyx_manager.get_business_config();
i && i.oppo_banner_cool_time && (n = i.oppo_banner_cool_time.value);
if (!n || n.length <= 0) return 10;
var o = 0, a = [];
for (var d in n) {
a = n[d];
if (n[d][0] <= e && n[d][1] >= e) {
o = n[d][2];
break;
}
}
return o || a[2];
};
t.get_channel_ad_id = function(t) {
if (!this.__adv_config_inited) return "";
try {
if (p.syyx_const.syyx_sdk_channel === igc.e_channel_type.oppo_qg) return this._adv_config_data[t].oppo_adv_id;
if (p.syyx_const.syyx_sdk_channel === igc.e_channel_type.vivo_qg) return this._adv_config_data[t].vivo_adv_id;
if (p.syyx_const.syyx_sdk_channel === igc.e_channel_type.tt) return this._adv_config_data[t].tt_adv_id;
if (p.syyx_const.syyx_sdk_channel === igc.e_channel_type.qq) return this._adv_config_data[t].qq_adv_id;
if (p.syyx_const.syyx_sdk_channel === igc.e_channel_type.wx) return this._adv_config_data[t].wx_adv_id;
if (p.syyx_const.syyx_sdk_channel === igc.e_channel_type.apk) return l.syyx_apk_adv_manager.is_oppo_apk() ? this._adv_config_data[t].oppo_apk_adv_id : l.syyx_apk_adv_manager.is_vivo_apk() ? this._adv_config_data[t].vivo_apk_adv_id : this._adv_config_data[t].oppo_apk_adv_id;
if (p.syyx_const.syyx_sdk_channel === igc.e_channel_type.web) return "web_ad_id";
} catch (e) {
console.error("adv.csv do not have the ad_id of the ad_pos_id: " + t);
}
};
t.is_inited = function() {
return this.__inited;
};
t.is_oppo_vivo = function() {
return p.syyx_const.syyx_sdk_channel === igc.e_channel_type.oppo_qg || p.syyx_const.syyx_sdk_channel === igc.e_channel_type.vivo_qg || p.syyx_const.syyx_sdk_channel === igc.e_channel_type.hw_qg || p.syyx_const.syyx_sdk_channel === igc.e_channel_type.web;
};
t._native_data_cache = [];
t.__adv_config_inited = !1;
t._block_instance = {};
t.cur_native_show_count = 0;
t.login_timestamp = 0;
t.__inited = !1;
t.can_show_first_native = !0;
t.limit_show_banner = !1;
t.first_banner_timer_id = void 0;
t.native_click_state = {};
t.native_report_record = {};
return t;
}();
n.syyx_adv_manager = u;
cc._RF.pop();
}, {
"../../configs/syyx_sdk_config": "syyx_sdk_config",
"../../configs/syyx_sdk_enum": "syyx_sdk_enum",
"../../utils/syyx_sdk_utils": "syyx_sdk_utils",
"../syyx_apk_adv_manager": "syyx_apk_adv_manager",
"../syyx_manager": "syyx_manager",
"./ad_banner": "ad_banner",
"./ad_block": "ad_block",
"./ad_native_icon": "ad_native_icon",
"./ad_native_inner_interstitial": "ad_native_inner_interstitial",
"./ad_native_interstitial": "ad_native_interstitial",
"./ad_oppo_banner": "ad_oppo_banner"
} ],
syyx_apk_adv_manager: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "7b7f9XbKVFC5Yd/DHi4w+iH", "syyx_apk_adv_manager");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.syyx_apk_adv_manager = void 0;
var i = t("../configs/syyx_sdk_config"), o = t("../configs/syyx_sdk_enum"), a = t("./ad/syyx_adv_manager"), _ = t("./ad_oppo_apk/ad_banner_oppo_apk"), d = t("./ad_oppo_apk/ad_inner_interstitial_oppo_apk"), r = t("./ad_oppo_apk/ad_interstitial_oppo_apk"), s = t("./syyx_manager"), c = function() {
function t() {}
t.init_instance = function() {
if (i.syyx_const.syyx_sdk_channel == igc.e_channel_type.apk) if (this.is_oppo_apk()) {
this._banner_instance = new _.ad_banner_oppo_apk();
this._inner_instance = new d.ad_inner_interstitial_oppo_apk();
this._interstitial_instance = new r.ad_interstitial_oppo_apk();
} else if (this.is_test_apk()) {
this._banner_instance = new _.ad_banner_oppo_apk();
this._inner_instance = new d.ad_inner_interstitial_oppo_apk();
this._interstitial_instance = new r.ad_interstitial_oppo_apk();
}
};
t.preload_video = function() {
console.log("igc-----preload_video begin");
var t = a.syyx_adv_manager.get_channel_ad_id(o.e_ad_id.video_add_gold);
if (t && "1" != t && "0" != t) {
var e = {
ad_type: igc.e_ad_type.video,
ad_id: t,
ad_pos_id: o.e_ad_id.video_add_gold,
ad_event: t,
ad_scene: t,
sub_ad_type: igc.e_ad_native_type.native_banner_normal,
auto_show: !1,
onLoad: function() {
console.log("igc-----show preload_video on_load");
},
onShow: void 0,
onClose: void 0,
onError: void 0,
extra: ""
};
return igc.igc_main.instance.create_ad(e);
}
console.log("igc----- syyx_manager create_ad ad_id no configure in adv.csv");
};
t.show_video = function(t, e, n, i, a) {
0 == this._show_video_count && (t = o.e_ad_id.video_add_gold);
this._show_video_count++;
s.syyx_manager.create_ad(igc.e_ad_type.video, t, e, n, i, a, -1, "1");
};
t.show_normal_banner = function() {
this._banner_instance ? this._banner_instance && this._banner_instance.load_normal_banner() : console.log("banner instance 为空");
};
t.show_banner = function(t, e, n, i, o, a) {
this._banner_instance ? this._banner_instance && this._banner_instance.show_banner(t, e, n, i, o, a) : console.log("banner instance 为空");
};
t.hide_banner = function() {
this._banner_instance ? this._banner_instance && this._banner_instance.hide_banner() : console.log("banner instance 为空");
};
t.show_native_interstitial = function(t, e, n, i, o, a, _) {
var d = s.syyx_manager.get_business_data_by_key("only_interstitial");
console.log("mijia+++ only_interstitial is" + d);
d && 1 == d[0] ? this._interstitial_instance && this._interstitial_instance.load_normal_interstitial() : this._interstitial_instance && this._interstitial_instance.show_native_interstitial(t, e, n, i, o, a, _);
};
t.show_video_interstitial = function(t, e, n, i) {
this._interstitial_instance && this._interstitial_instance.load_video_interstitial(t, e, n, i);
};
t.show_interstitial = function(t, e, n, i) {
this._interstitial_instance && this._interstitial_instance.load_normal_interstitial(t, e, n, i);
};
t.preload_native_inner_interstitial = function(t, e, n, i, o, a) {
this._inner_instance && this._inner_instance.preload_native_inner_interstitial(t, e, n, i, o, a);
};
t.show_native_inner_interstitial = function(t) {
this._inner_instance && this._inner_instance.show_native_inner_interstitial(t.ad_type, t.ad_pos_id, t.onLoad, t.onShow, t.onClose, t.onError, t.onClick, t.attrSet);
};
t.hide_native_inner_interstitial = function() {
this._inner_instance && this._inner_instance.hide_native_inner_interstitial();
};
t.is_oppo_apk = function() {
if (i.syyx_const.syyx_sdk_channel == igc.e_channel_type.apk) {
var t = this.get_apk_channel_id();
if (607010 == t || "607010" == t) return !0;
}
return !1;
};
t.is_test_apk = function() {
return i.syyx_const.syyx_sdk_channel == igc.e_channel_type.apk && !this.get_apk_channel_id();
};
t.is_vivo_apk = function() {
if (i.syyx_const.syyx_sdk_channel == igc.e_channel_type.apk) {
var t = this.get_apk_channel_id();
if (607020 == t || "607020" == t) return !0;
}
return !1;
};
t.get_apk_channel_id = function() {
if (i.syyx_const.syyx_sdk_channel == igc.e_channel_type.apk) return igc.utils_manager.callJava("org/cocos2dx/javascript/CoCosJSBridge", "getChannelExId", "()Ljava/lang/String;");
};
t.get_apk_device_id = function() {
if (i.syyx_const.syyx_sdk_channel == igc.e_channel_type.apk) return igc.utils_manager.callJava("org/cocos2dx/javascript/CoCosJSBridge", "getDeviceId", "()Ljava/lang/String;");
};
t.get_apk_ad_channel_id = function() {
if (i.syyx_const.syyx_sdk_channel == igc.e_channel_type.apk) return igc.utils_manager.callJava("org/cocos2dx/javascript/CoCosJSBridge", "getAdChannelId", "()Ljava/lang/String;");
};
t.get_stat_version = function() {
return i.syyx_const.syyx_sdk_channel == igc.e_channel_type.apk ? igc.utils_manager.callJava("org/cocos2dx/javascript/CoCosJSBridge", "getStatVersion", "()Ljava/lang/String;") : "0";
};
t.set_banner_height = function() {
if (i.syyx_const.syyx_sdk_channel == igc.e_channel_type.apk) {
console.log("igc set_banner_height");
var t = {};
t.methodEnum = o.e_methoh_enum.set_banner_height;
igc.utils_manager.callJava("org/cocos2dx/javascript/CoCosJSBridge", "runCustomMethod", "(Ljava/lang/String;)Ljava/lang/String;", JSON.stringify(t));
}
};
t.get_local_native_data = function() {
if (i.syyx_const.syyx_sdk_channel == igc.e_channel_type.apk) {
console.log("igc get_local_native_data");
var t = {};
t.methodEnum = o.e_methoh_enum.has_native_data;
return "1" == igc.utils_manager.callJava("org/cocos2dx/javascript/CoCosJSBridge", "runCustomMethod", "(Ljava/lang/String;)Ljava/lang/String;", JSON.stringify(t));
}
return null;
};
t.set_apk_remote_config = function() {
if (i.syyx_const.syyx_sdk_channel == igc.e_channel_type.apk) {
console.log("igc set_apk_remote_config");
var t = {};
t.methodEnum = o.e_methoh_enum.set_apk_remote_config;
t.param = JSON.stringify(s.syyx_manager.get_business_config());
return igc.utils_manager.callJava("org/cocos2dx/javascript/CoCosJSBridge", "runCustomMethod", "(Ljava/lang/String;)Ljava/lang/String;", JSON.stringify(t));
}
};
t.jump_leisure_subject = function() {
i.syyx_const.syyx_sdk_channel == igc.e_channel_type.apk && igc.igc_main.instance.jump_leisure_subject();
};
t.set_on_exit_finish = function(t) {
igc.igc_main.instance.set_on_exit_finish(t);
};
t.show_privacy_view = function(t) {
igc.igc_main.instance.set_privacy_callback(t);
igc.utils_manager.callJava("org/cocos2dx/javascript/CoCosJSBridge", "showPrivacy", "()V");
};
t.hide_loading_view = function() {
window.loadingView && window.loadingView.hideLoadingView();
};
t.set_loading_view_value = function(t) {
i.syyx_const.syyx_sdk_channel == igc.e_channel_type.apk && window.loadingView && (window.loadingView.loading = t);
};
t.show_proxy_webview = function() {
console.log("igc show_proxy_webview");
igc.utils_manager.callJava("org/cocos2dx/javascript/CoCosJSBridge", "showProxyWebview", "()V");
};
t._banner_instance = null;
t._inner_instance = null;
t._interstitial_instance = null;
t._show_video_count = 0;
return t;
}();
n.syyx_apk_adv_manager = c;
cc._RF.pop();
}, {
"../configs/syyx_sdk_config": "syyx_sdk_config",
"../configs/syyx_sdk_enum": "syyx_sdk_enum",
"./ad/syyx_adv_manager": "syyx_adv_manager",
"./ad_oppo_apk/ad_banner_oppo_apk": "ad_banner_oppo_apk",
"./ad_oppo_apk/ad_inner_interstitial_oppo_apk": "ad_inner_interstitial_oppo_apk",
"./ad_oppo_apk/ad_interstitial_oppo_apk": "ad_interstitial_oppo_apk",
"./syyx_manager": "syyx_manager"
} ],
syyx_cc_ui_manager: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "bb705sFh0pOW7QLeqXqVo9W", "syyx_cc_ui_manager");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.syyx_cc_ui_manager = void 0;
var i = t("../model/model"), o = t("../configs/syyx_sdk_enum"), a = t("./syyx_manager"), _ = t("../utils/syyx_sdk_utils"), d = t("../syyx_ui/ad/syyx_ui_banner"), r = t("../syyx_ui/ad/syyx_ui_interstitial"), s = t("../syyx_ui/ad/syyx_ui_inner_interstitial"), c = t("../syyx_ui/ad/syyx_ui_native_icon"), h = t("../syyx_ui/ad/syyx_ui_toast"), l = t("../syyx_ui/ctr_check/syyx_ui_ctr"), p = function() {
function t() {}
t.load_ui_prefabs = function(t, e) {
var n = this, i = this._prefab_view[t];
if (i && i.node) e && e(this._prefab_view[t]); else {
var o = a.syyx_manager._ui_prefab_config, d = this.get_prefab_path(t);
if (d) {
this._load_call_back_list[t] || (this._load_call_back_list[t] = []);
this._load_call_back_list[t].push(e);
if (this._prefab_loading_state[t]) {
console.log("igc----- syyx_cc_ui_manager prefab is loading , please wait", d);
return;
}
this._prefab_loading_state[t] = !0;
_.syyx_sdk_utils.load_resource(d, function(e) {
n._prefab_loading_state[t] = !1;
var i = cc.instantiate(e).getComponent(n.get_prefab_class(t));
n._prefab_view[t] = i;
o && o[t].cocos_auto_scale && i && i.set_default_scale && i.set_default_scale();
if (n._load_call_back_list[t].length > 0) for (var a = 0; a < n._load_call_back_list[t].length; a++) n._load_call_back_list[t][a] && n._load_call_back_list[t][a](i);
n._load_call_back_list[t] = [];
console.log("igc----- syyx_cc_ui_manmager load prefab", d);
}, n, function() {
n._prefab_loading_state[t] = !1;
console.log("igc----- syyx_cc_ui_manmager load prefab failed!!", d);
n._load_call_back_list[t] = [];
});
}
}
};
t.get_prefab_path = function(t) {
switch (t) {
case i.syyx_view.native_banner:
return o.syyx_prefab_path.native_banner;

case i.syyx_view.interstitial:
return cc.view.getVisibleSize().height > cc.view.getVisibleSize().width ? o.syyx_prefab_path.interstitial : o.syyx_prefab_path.interstitial_h;

case i.syyx_view.inner_interstitial:
return o.syyx_prefab_path.inner_interstitial;

case i.syyx_view.native_icon:
return o.syyx_prefab_path.native_icon;

case i.syyx_view.toast:
return o.syyx_prefab_path.toast;

case i.syyx_view.ctr_check:
return cc.view.getVisibleSize().height > cc.view.getVisibleSize().width ? o.syyx_prefab_path.ctr_check : o.syyx_prefab_path.ctr_check_h;

default:
console.log("igc-----get_prefab_path fail", t);
return;
}
};
t.get_prefab_class = function(t) {
switch (t) {
case i.syyx_view.native_banner:
return d.default;

case i.syyx_view.interstitial:
return r.default;

case i.syyx_view.inner_interstitial:
return s.default;

case i.syyx_view.native_icon:
return c.default;

case i.syyx_view.toast:
return h.default;

case i.syyx_view.ctr_check:
return l.default;

default:
console.log("igc-----get_prefab_path fail", t);
return;
}
};
t._prefab_view = {};
t._prefab_loading_state = {};
t._load_call_back_list = {};
return t;
}();
n.syyx_cc_ui_manager = p;
cc._RF.pop();
}, {
"../configs/syyx_sdk_enum": "syyx_sdk_enum",
"../model/model": "model",
"../syyx_ui/ad/syyx_ui_banner": "syyx_ui_banner",
"../syyx_ui/ad/syyx_ui_inner_interstitial": "syyx_ui_inner_interstitial",
"../syyx_ui/ad/syyx_ui_interstitial": "syyx_ui_interstitial",
"../syyx_ui/ad/syyx_ui_native_icon": "syyx_ui_native_icon",
"../syyx_ui/ad/syyx_ui_toast": "syyx_ui_toast",
"../syyx_ui/ctr_check/syyx_ui_ctr": "syyx_ui_ctr",
"../utils/syyx_sdk_utils": "syyx_sdk_utils",
"./syyx_manager": "syyx_manager"
} ],
syyx_ctr_manager: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "0635aJi+aNFGYzSUNL32/hy", "syyx_ctr_manager");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.syyx_ctr_manager = void 0;
var i = t("../../configs/syyx_sdk_config"), o = t("../syyx_manager"), a = t("../../model/model"), _ = function() {
function t() {}
t.load_ctr_config = function() {
var t, e = o.syyx_manager.get_app_version(), n = o.syyx_manager.get_syyx_app_id() + this.__ctr_version, a = localStorage.getItem(n);
if (e != a) {
localStorage.removeItem(i.syyx_const.local_ctr_config_data);
localStorage.setItem(i.syyx_const.local_ctr_config_version, null);
localStorage.setItem(n, e);
}
e == a && (t = localStorage.getItem(i.syyx_const.local_ctr_config_data)) && (this.ctr_data = JSON.parse(t));
var _ = localStorage.getItem(i.syyx_const.local_ctr_config_version);
igc.igc_main.instance.tpf_sdk.getTpfConfig().httpGetconfig(i.syyx_const.remote_ctr_config_key, _, Date.now(), this.on_load_ctr.bind(this));
};
t.on_load_ctr = function(t, e, n, o) {
if (!0 === t) {
console.log("igc----- syyx_ctr_manager remote config load compelete");
this.ctr_data = JSON.parse(o);
localStorage.setItem(i.syyx_const.local_ctr_config_version, n);
localStorage.setItem(i.syyx_const.local_ctr_config_data, o);
this.__remote_ctr_inited = !0;
} else localStorage.getItem(i.syyx_const.local_ctr_config_data) && (this.__remote_ctr_inited = !0);
console.log("igc----- syyx_ctr_manager multual_push_v5", this.ctr_data);
};
t.set_ctr_test_compelete = function() {
this.ctr_test_compelete = !0;
};
t.check_is_ctr_test_compelete = function() {
return this.ctr_test_compelete;
};
t.show_new_products = function(t) {
this.ctr_test_compelete ? console.log("igc----- syyx_ctr_manager test compelete!") : this.check_is_open() && o.syyx_manager.load_view(a.syyx_view.ctr_check, function(e) {
e && e.show && e.show(t);
});
};
t.get_new_products_reward = function() {
var t = o.syyx_manager.get_business_config();
return t && t.ctr_test_reward_count ? t.ctr_test_reward_count.value[0] : 100;
};
t.check_is_open = function() {
if (this.ctr_data && "1" == this.ctr_data.open_switch) return !0;
console.log("igc----- syyx_ctr_manager is close");
return !1;
};
t.get_ctr_data = function() {
if (this.check_is_open()) return this.ctr_data;
};
t.__ctr_version = "__ctr_version";
t.__remote_ctr_inited = !1;
t.ctr_data = null;
t.ctr_test_compelete = !1;
return t;
}();
n.syyx_ctr_manager = _;
cc._RF.pop();
}, {
"../../configs/syyx_sdk_config": "syyx_sdk_config",
"../../model/model": "model",
"../syyx_manager": "syyx_manager"
} ],
syyx_manager: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "f45d9w9PTpJYqKH+oHpCxSM", "syyx_manager");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.syyx_manager = void 0;
var i = t("./../utils/syyx_sdk_utils"), o = t("./ctr_check/syyx_ctr_manager"), a = t("./../syyx_sdk_api"), _ = t("../model/model"), d = t("../configs/syyx_sdk_config"), r = t("./ad/syyx_adv_manager"), s = t("../configs/syyx_sdk_enum"), c = t("./syyx_apk_adv_manager"), h = t("./syyx_cc_ui_manager"), l = function() {
function t() {}
t.init = function(t, e) {
var n = this;
void 0 === t && (t = null);
var o = this, a = t;
t || (a = this.__game_init_file_path);
var _ = this.get_channel_type();
console.log("igc-----channel type 1.web 2.oppo 4.vivo 5.qq 7.apk  8.tt  -------\x3echannel ：" + _, a);
i.syyx_sdk_utils.set_cocos_key_down_listener();
i.syyx_sdk_utils.load_resource(a, function(t) {
console.log("igc-----syyx_game_init.json", t);
if (d.syyx_const.syyx_sdk_publish === d.e_syyx_sdk_publish_type.out) {
if (d.syyx_const.syyx_sdk_channel === igc.e_channel_type.oppo_qg) {
d.init_config.oppo_qg.app_id = t.syyx_app_id;
d.init_config.oppo_qg.app_version = t.channel[_].app_version;
d.init_config.oppo_qg.pkg_name = t.channel[_].pkg_name;
d.init_config.oppo_qg.stat_key = t.stat_key;
d.init_config.oppo_qg.configAppSecKey = t.config_key;
} else if (d.syyx_const.syyx_sdk_channel === igc.e_channel_type.vivo_qg) {
d.init_config.vivo_qg.app_id = t.syyx_app_id;
d.init_config.vivo_qg.app_version = t.channel[_].app_version;
d.init_config.vivo_qg.pkg_name = t.channel[_].pkg_name;
d.init_config.vivo_qg.stat_key = t.stat_key;
d.init_config.vivo_qg.configAppSecKey = t.config_key;
} else if (d.syyx_const.syyx_sdk_channel === igc.e_channel_type.tt) {
d.init_config.tt.app_id = t.syyx_app_id;
d.init_config.tt.app_version = t.channel[_].app_version;
d.init_config.tt.pkg_name = t.channel[_].pkg_name;
d.init_config.tt.stat_key = t.stat_key;
d.init_config.tt.configAppSecKey = t.config_key;
} else if (d.syyx_const.syyx_sdk_channel === igc.e_channel_type.qq) {
d.init_config.qq.app_id = t.syyx_app_id;
d.init_config.qq.app_version = t.channel[_].app_version;
d.init_config.qq.pkg_name = t.channel[_].pkg_name;
d.init_config.qq.stat_key = t.stat_key;
d.init_config.qq.configAppSecKey = t.config_key;
} else if (d.syyx_const.syyx_sdk_channel === igc.e_channel_type.wx) {
d.init_config.wx.app_id = t.syyx_app_id;
d.init_config.wx.app_version = t.channel[_].app_version;
d.init_config.wx.pkg_name = t.channel[_].pkg_name;
d.init_config.wx.stat_key = t.stat_key;
d.init_config.wx.configAppSecKey = t.config_key;
} else if (d.syyx_const.syyx_sdk_channel === igc.e_channel_type.hw_qg) {
console.log("进入hw");
d.init_config.hw_qg.app_id = t.syyx_app_id;
d.init_config.hw_qg.channel_app_id = t.channel[_].channel_app_id;
d.init_config.hw_qg.app_version = t.channel[_].app_version;
d.init_config.hw_qg.pkg_name = t.channel[_].pkg_name;
d.init_config.hw_qg.stat_key = t.stat_key;
d.init_config.hw_qg.configAppSecKey = t.config_key;
} else if (d.syyx_const.syyx_sdk_channel === igc.e_channel_type.apk) {
d.init_config.apk.app_id = t.syyx_app_id;
d.init_config.apk.pkg_name = t.channel[_].pkg_name;
d.init_config.apk.stat_key = t.stat_key;
d.init_config.apk.configAppSecKey = t.config_key;
d.init_config.apk.channel_id = c.syyx_apk_adv_manager.get_apk_channel_id();
d.init_config.apk.app_version = n.get_app_version();
console.log("igc----- apk stat version  " + d.init_config.apk.app_version);
} else if (d.syyx_const.syyx_sdk_channel === igc.e_channel_type.ipa) {
d.init_config.ipa.app_id = t.syyx_app_id;
d.init_config.ipa.app_version = t.channel[_].app_version;
d.init_config.ipa.pkg_name = t.channel[_].pkg_name;
d.init_config.ipa.stat_key = t.stat_key;
d.init_config.ipa.configAppSecKey = t.config_key;
d.init_config.ipa.channel_id = n.get_channel_id();
} else {
d.init_config.web.app_id = t.syyx_app_id;
d.init_config.web.app_version = "123";
d.init_config.web.pkg_name = "123";
d.init_config.web.stat_key = t.stat_key;
d.init_config.web.configAppSecKey = t.config_key;
}
igc.igc_main.instance.init_wrap(d.syyx_const.syyx_sdk_channel, d.init_config);
}
o.__syyx_app_id = t.syyx_app_id;
o.__game_init_data = t;
o.__business_config_file_path = t.business_config_file_path;
o.__adv_config_file_path = t.adv_config_file_path;
o.__ui_prefab_config_path = t.ui_prefab_config_path;
o.__init_callback = e;
if (o.__init_callback) {
console.log("igc ----- game_init.json has loaded");
o.__init_callback(!0, {
business_config: null,
load_init_complete: !0,
load_local_complete: !1,
load_remote_complete: !1
});
}
o.load_config();
}, this);
};
t.get_app_version = function() {
var t = d.syyx_const.syyx_sdk_channel + "", e = "0.0.0.0";
if (d.syyx_const.syyx_sdk_channel == igc.e_channel_type.apk) {
var n = c.syyx_apk_adv_manager.get_stat_version();
if (n && "0" != n) return n;
}
try {
if (this.__game_init_data && this.__game_init_data.channel[t]) e = this.__game_init_data.channel[t].app_version; else {
console.error("igc----- can not find app_version in syyx_game_init.json");
console.error("igc----- channel_type  ", t);
}
} catch (t) {
console.error("igc----- get_app_version error");
}
return e;
};
t.get_syyx_app_id = function() {
return this.__syyx_app_id || "";
};
t.get_is_new_player = function() {
return this.__is_new_player || 0;
};
t.get_user_id = function() {
return this.__user_id || "";
};
t.init_remote_config_compelete = function() {
if (1 != this.__local_business_config_inited || this.init_completed_tag) {
if (this.__remote_business_config_inited && !this.refresh_completed_tag) {
r.syyx_adv_manager.load_adv_config(!0);
this.__inited = !0;
if (this.__init_callback) {
this.refresh_completed_tag = !0;
console.log("igc ----- remote data has been back");
this.__init_callback(!0, {
business_config: this.__business_config_data,
load_init_complete: !1,
load_local_complete: !1,
load_remote_complete: !0
});
this.set_remote_config();
}
}
} else {
r.syyx_adv_manager.load_adv_config();
c.syyx_apk_adv_manager.init_instance();
this.__inited = !0;
if (this.__init_callback) {
this.init_completed_tag = !0;
console.log("igc ----- local data has been back");
this.__init_callback(!0, {
business_config: this.__business_config_data,
load_init_complete: !1,
load_local_complete: !0,
load_remote_complete: !1
});
}
}
};
t.check_user_start_game_type = function() {
var t = localStorage.getItem("is_old_player");
this.__is_new_player = "1" != t;
if ("1" == t) console.log("igc----- old bird--------------"); else {
console.log("igc----- new fish--------------");
localStorage.setItem("is_old_player", "1");
}
if (d.syyx_const.syyx_sdk_channel !== igc.e_channel_type.web) {
var e = this.get_launch_options_sync();
if (e && e.query && (e.query.type == igc.e_share_type.card || e.query.type == igc.e_share_type.record)) {
var n = "1" == t ? igc.e_share_event_id.old_player : igc.e_share_event_id.new_player;
this.send_user_event(n, igc.e_share_event_type.share, 0, 0, e.query.type + "");
}
}
};
t.init_param = function(t, e) {
if ("" != t && null != t && "" != e && null != e) {
if (!this.has_init_param) {
this.has_init_param = !0;
this.__user_id = e + "";
igc.stat_manager.instance.set_uid(t, e, "1");
var n = localStorage.getItem("syyx_igc_uid" + igc.igc_main.instance.app_config.game_param.app_id);
if (n && "" != n) this.send_user_login(); else {
this.send_user_register();
setTimeout(this.send_user_login, 1e3);
localStorage.setItem("syyx_igc_uid" + igc.igc_main.instance.app_config.game_param.app_id, e);
}
this.check_user_start_game_type();
this.set_stat_inited();
}
} else console.error("igc----- init_param user_id is undefined!");
};
t.is_inited = function() {
return this.__inited;
};
t.send_user_register = function() {
igc.stat_manager.instance.send_user_register();
};
t.send_user_event = function(t, e, n, i, o, a, _, d, r) {
if (this.__stat_inited) {
console.log("igc----- 上报打点", "event_type", e, "event_id", t, "extra", o, "str1", a, "str2", _, "extra2", d, "str3", r);
igc.stat_manager.instance.send_user_event(t, e, n, i, o, a, _, d, r);
} else this.__stat_data_cache.unshift({
event_id: t,
event_type: e,
place_id: n,
place_type: i,
extra: o,
str1: a,
str2: _,
extra2: d,
str3: r
});
};
t.set_stat_inited = function() {
if (!this.__is_stat_delay) {
var t = this;
this.__is_stat_delay = !0;
setTimeout(function() {
t.__stat_inited = !0;
t.send_stat_event_cache();
}, 1e3);
}
};
t.send_stat_event_cache = function() {
if (this.__stat_data_cache && this.__stat_data_cache.length > 0) {
var t = this, e = this.__stat_data_cache.pop();
igc.stat_manager.instance.send_user_event(e.event_id, e.event_type, e.place_id, e.place_type, e.extra, e.str1, e.str2, e.extra2, e.str3);
setTimeout(function() {
t.send_stat_event_cache();
}, 100);
}
};
t.hide = function(t) {
this.load_view(t, function(t) {
t.hide && t.hide();
});
};
t.show = function(t, e, n, i) {
void 0 === e && (e = -1);
void 0 === i && (i = 0);
this.load_view(t, function(t) {
t.show(e, n, i);
});
};
t.send_user_login = function() {
igc.stat_manager.instance.send_user_login();
};
t.on_load_game_configs = function(t, e, n, o) {
if (1 == t) {
this.remote_business_config_data = igc.utils_manager.parse_csv(o, "id");
console.log("remote config data is " + this.remote_business_config_data);
localStorage.setItem(d.syyx_const.local_business_config_version, n);
i.syyx_sdk_utils.replace_data(this.__business_config_data, this.remote_business_config_data);
var a = JSON.stringify(this.__business_config_data);
localStorage.setItem(d.syyx_const.local_business_config_data, a);
this.__remote_business_config_inited = !0;
} else localStorage.getItem(d.syyx_const.local_business_config_data) && (this.__remote_business_config_inited = !0);
this.init_remote_config_compelete();
};
t.load_config = function() {
var e = this;
i.syyx_sdk_utils.load_resource(t.__ui_prefab_config_path, function(t) {
e._ui_prefab_config = igc.utils_manager.parse_csv(t, "id");
console.log("igc-----ui prefabs have loaded", e._ui_prefab_config);
e.load_business_config();
o.syyx_ctr_manager.load_ctr_config();
}, this, function() {
console.log("igc-----ui prefabs loading failed");
e.load_business_config();
o.syyx_ctr_manager.load_ctr_config();
});
};
t.load_business_config = function() {
var t, e = this.get_app_version(), n = this.get_syyx_app_id() + this.__business_version, i = localStorage.getItem(n), o = d.syyx_const.syyx_sdk_version, a = localStorage.getItem(d.syyx_const.syyx_sdk_version_key);
if (e != i || o != a) {
localStorage.removeItem(d.syyx_const.local_business_config_data);
localStorage.setItem(d.syyx_const.local_business_config_version, null);
localStorage.setItem(n, e);
localStorage.setItem(d.syyx_const.syyx_sdk_version_key, o);
console.log("igc----- app_version change clear business_config localStorage");
}
if (e == i && (t = localStorage.getItem(d.syyx_const.local_business_config_data))) {
console.log("igc----- on_load_game_configs -----use the config  in localstorage");
this.__business_config_data = JSON.parse(t);
this.__local_business_config_inited = !0;
this.init_remote_config_compelete();
} else this.on_load_local_business_config();
var _ = localStorage.getItem(d.syyx_const.local_business_config_version);
if (d.syyx_const.syyx_sdk_channel === igc.e_channel_type.tt || d.syyx_const.syyx_sdk_channel === igc.e_channel_type.wx || d.syyx_const.syyx_sdk_channel === igc.e_channel_type.qq) {
d.syyx_const.syyx_sdk_channel === igc.e_channel_type.qq && (_ = null);
igc.igc_main.instance.tpf_sdk.getTpfConfig().httpGetconfigWx(d.syyx_const.remote_business_config_key, _, Date.now(), this.on_load_game_configs.bind(this));
} else igc.igc_main.instance.tpf_sdk.getTpfConfig().httpGetconfig(d.syyx_const.remote_business_config_key, _, Date.now(), this.on_load_game_configs.bind(this));
};
t.create_native_banner = function(t) {
if (!r.syyx_adv_manager.__adv_config_inited) {
console.log("igc----- ad initialization is not achieve---\x3edo not call interface too early  :create_native_banner");
return null;
}
return this.create_view(_.syyx_view.native_banner, t);
};
t.create_inner_interstitial = function(t) {
if (!r.syyx_adv_manager.__adv_config_inited) {
console.log("igc----- ad initialization is not achieve---\x3edo not call interface too early  :create_inner_interstitial");
return null;
}
return this.create_view(_.syyx_view.inner_interstitial, t);
};
t.create_interstitial = function(t) {
if (!r.syyx_adv_manager.__adv_config_inited) {
console.log("igc----- ad initialization is not achieve---\x3edo not call interface too early  :create_interstitial");
return null;
}
return this.create_view(_.syyx_view.interstitial, t);
};
t.create_native_icon = function(t) {
if (!r.syyx_adv_manager.__adv_config_inited) {
console.log("igc----- ad initialization is not achieve---\x3edo not call interface too early  :create_native_icon");
return null;
}
return this.create_view(_.syyx_view.native_icon, t);
};
t.create_toast = function(t) {
this.create_view(_.syyx_view.toast, function(e) {
e && e.show && e.show(t);
});
};
t.create_view = function(t, e) {
this.load_view(t, e);
};
t.load_view = function(t, e) {
window.Laya || h.syyx_cc_ui_manager.load_ui_prefabs(t, e);
};
t.get_business_config = function() {
if (this.__local_business_config_inited || this.__remote_business_config_inited) return this.__business_config_data;
};
t.login_channel = function(t) {
var e = this;
if (!this.has_login_channel) {
this.has_login_channel = !0;
igc.igc_main.instance.only_login_channel(function(n) {
if (n && n.channel_user_info && n.channel_user_info.uid) {
var i = localStorage.getItem("syyx_igc_uid" + igc.igc_main.instance.app_config.game_param.app_id);
if (i && "" != i) e.send_user_login(); else {
e.send_user_register();
setTimeout(e.send_user_login, 1e3);
e.__user_id = n.channel_user_info.uid;
localStorage.setItem("syyx_igc_uid" + igc.igc_main.instance.app_config.game_param.app_id, n.channel_user_info.uid);
}
}
e.check_user_start_game_type();
e.set_stat_inited();
t && t(n);
});
}
};
t.get_business_data_by_key = function(e) {
var n = t.get_business_config();
if (n && n[e]) return n[e].value;
};
t.create_ad = function(t, e, n, i, o, a, _, s, c) {
void 0 === s && (s = "");
var h = 0;
d.syyx_const.syyx_sdk_channel === igc.e_channel_type.qq && (h = r.syyx_adv_manager.get_qq_banner_top_offset());
var l = r.syyx_adv_manager.get_channel_ad_id(e);
if (l && "1" != l && "0" != l) {
var p = {
ad_type: t,
ad_id: l,
ad_pos_id: e,
ad_event: l,
ad_scene: l,
top_offset: h,
sub_ad_type: 1,
onLoad: n,
onShow: i,
onClose: o,
onError: a,
extra: s,
apk_sub_ad_type: c
};
return igc.igc_main.instance.create_ad(p);
}
console.log("igc----- syyx_manager create_ad ad_id no configure in adv.csv");
};
t.show_ad = function(t, e, n, i, o, a, _) {
var d = r.syyx_adv_manager.get_channel_ad_id(e);
if (d && "1" != d && "0" != d) {
console.log("mijia ---- show_ad " + t);
var s = {
ad_type: t,
ad_id: d,
ad_pos_id: e,
ad_event: d,
ad_scene: d,
sub_ad_type: _ || igc.e_ad_native_type.native_banner_normal,
onLoad: n,
onShow: i,
onClose: o,
onError: a
};
return igc.igc_main.instance.show_ad(s);
}
console.log("igc----- syyx_manager show_ad ad_id no configure in adv.csv");
};
t.destroy_ad = function(t, e, n) {
var i = r.syyx_adv_manager.get_channel_ad_id(e);
if (i && "1" != i && "0" != i) {
var o = {
ad_type: t,
ad_id: i,
ad_pos_id: e,
sub_ad_type: n || igc.e_ad_native_type.native_banner_normal,
ad_event: i,
ad_scene: i
};
return igc.igc_main.instance.destroy_ad(o);
}
console.log("igc----- syyx_manager destroy_ad ad_id no configure in adv.csv");
};
t.hide_ad = function(t, e) {
var n = r.syyx_adv_manager.get_channel_ad_id(e);
if (n && "1" != n && "0" != n) {
var i = {
ad_type: t,
ad_id: n,
ad_pos_id: e,
ad_event: n,
ad_scene: n
};
return igc.igc_main.instance.hide_ad(i);
}
console.log("igc----- syyx_manager hide_ad ad_id no configure in adv.csv");
};
t.report_native_inner_interstitial_click = function(t) {
if (r.syyx_adv_manager.can_show_first_native) {
var e = this.get_local_native_data(t);
this.create_inner_interstitial(function(t) {
e && t.report_click();
});
} else console.log("igc----- is in oppo first ad cd ");
};
t.hide_native_inner_interstitial = function() {
d.syyx_const.syyx_sdk_channel != igc.e_channel_type.apk ? this.load_view(_.syyx_view.inner_interstitial, function(t) {
t && t.node && t.node.parent && t.hide && t.hide();
}) : c.syyx_apk_adv_manager.hide_native_inner_interstitial();
};
t.support_game_box = function() {
if (d.syyx_const.syyx_sdk_channel === igc.e_channel_type.oppo_qg) {
var e = t.get_system_info_sync();
if (e && e.platformVersion) return e.platformVersion >= 1076;
}
return !1;
};
t.check_can_add_desktop = function() {
return igc.igc_main.instance.check_can_add_desktop({});
};
t.check_is_add_desktop = function(t, e) {
var n = {
can_add: t,
has_add: e
};
return igc.igc_main.instance.check_is_add_desktop(n);
};
t.add_desktop = function(t, e, n, i) {
var o = {
on_success: t,
on_failed: e,
on_failed_back: n,
has_create: i
};
return igc.igc_main.instance.add_desktop(o);
};
t.on_show = function(t) {
return igc.igc_main.instance.on_show({
on_show: t
});
};
t.on_hide = function(t) {
return igc.igc_main.instance.on_hide({
on_hide: t
});
};
t.get_system_info_sync = function() {
return igc.igc_main.instance.get_system_info_sync();
};
t.get_launch_options_sync = function() {
return igc.igc_main.instance.get_launch_options_sync();
};
t.exit_mini_program = function() {
return igc.igc_main.instance.exit_mini_program();
};
t.navigate_to_mini_program = function(t, e) {
var n = {
app_id: t,
success: e
};
return igc.igc_main.instance.navigate_to_mini_program(n);
};
t.share = function(t, e, n, i, o, a) {
var _ = {
title: t,
imageUrl: e,
query: n,
desc: i,
success: o,
fail: a
};
return igc.igc_main.instance.share(_);
};
t.on_share_app_message = function(t, e) {
var n = {
title: t,
imageUrl: e
};
return igc.igc_main.instance.on_share_app_message(n);
};
t.start_record_screen = function(t, e, n) {
var i = {
time: t,
is_clip_end: e,
clip_time: n
};
return igc.igc_main.instance.start_record_screen(i);
};
t.stop_record_screen = function() {
return igc.igc_main.instance.stop_record_screen();
};
t.pause_record_screen = function() {
return igc.igc_main.instance.pause_record_screen();
};
t.resume_record_screen = function() {
return igc.igc_main.instance.resume_record_screen();
};
t.share_record_screen = function(t, e, n, i, o, a, _) {
var d = {
videoTopics: t,
title: e,
desc: n,
imageUrl: i,
query: o,
fail: a,
success: _
};
return igc.igc_main.instance.share_record_screen(d);
};
t.get_record_video = function() {
return igc.igc_main.instance.get_record_video();
};
t.on_load_local_business_config = function() {
var t = this;
i.syyx_sdk_utils.load_resource(this.__business_config_file_path, function(e) {
var n = igc.utils_manager.parse_csv(e, "id");
n.native_icon_switch = {
desc: "原生icon开关",
id: "native_icon_switch",
value: [ 0 ]
};
n.native_icon_trap_pro = {
desc: "原生icon易点击概率",
id: "native_icon_trap_pro",
value: [ 0 ]
};
n.banner_cool_time = {
desc: "banner自动刷新时间",
id: "banner_cool_time",
value: [ 20, 20 ]
};
n.native_icon_cool_time = {
desc: "原生icon自动刷新时间",
id: "native_icon_cool_time",
value: [ 20, 20 ]
};
n.adv_banner_cd = {
desc: "原生及banner广告冷却（秒）",
id: "adv_banner_cd",
value: [ 60 ]
};
n.banner_top_offset = {
desc: "手Q渠道普通banner上移距离",
id: "banner_top_offset",
value: [ 0, 0 ]
};
n.native_banner_open_switch = {
desc: "是否启用原生banner广告",
id: "native_banner_open_switch",
value: [ 1 ]
};
n.native_banner_click_switch = {
desc: "是否启用原生banner易点击处理",
id: "native_banner_click_switch",
value: [ 0 ]
};
n.native_banner_click_pro = {
desc: "原生banner易点击触发概率",
id: "native_banner_click_pro",
value: [ 0 ]
};
n.native_banner_click_protect = {
desc: "原生banner易点击保护",
id: "native_banner_click_protect",
value: [ 3 ]
};
n.native_institial_white_easy_click = {
desc: "原生插屏点击空白跳转",
id: "native_institial_white_easy_click",
value: [ 0 ]
};
n.native_banner_report_click_update_switch = {
desc: "原生Banner点击上报后立即刷新",
id: "native_banner_report_click_update_switch",
value: [ 0 ]
};
n.native_icon_report_click_update_switch = {
desc: "原生icon点击上报后立即刷新",
id: "native_icon_report_click_update_switch",
value: [ 0 ]
};
n.native_inner_report_click_update_switch = {
desc: "结算原生点击上报后立即刷新",
id: "native_inner_report_click_update_switch",
value: [ 0 ]
};
n.native_interstitial_report_click_update_switch = {
desc: "原生插屏点击上报后立即刷新",
id: "native_interstitial_report_click_update_switch",
value: [ 0 ]
};
n.show_normal_banner_switch = {
desc: "是否开启展示普通banner",
id: "show_normal_banner_switch",
value: [ 1 ]
};
n.native_icon_trap_pro = {
desc: "原生icon易点击概率",
id: "native_icon_trap_pro",
value: [ 0 ]
};
n.finger_close_banner_switch = {
desc: "关闭Banner后不再展示",
id: "finger_close_banner_switch",
value: [ 1, 30 ]
};
n.native_inner_institial_click_close_pro = {
desc: "关闭结算原生易跳转概率",
id: "native_inner_institial_click_close_pro",
value: [ 0 ]
};
n.native_institial_click_close_pro = {
desc: "关闭原生插屏易跳转概率",
id: "native_institial_click_close_pro",
value: [ 0 ]
};
n.open_oppo_new_rule = {
desc: "是否开启oppo新规",
id: "open_oppo_new_rule",
value: [ 1 ]
};
n.oppo_banner_cool_time = {
desc: "oppoBanner累计展示刷新时间",
id: "oppo_banner_cool_time",
value: [ [ 0, 120, 10 ], [ 121, 180, 11 ], [ 181, 240, 12 ] ]
};
n.oppo_native_show_limit = {
desc: "oppo原生展示限制",
id: "oppo_native_show_limit",
value: [ 60, 60 ]
};
n.oppo_native_cache_length = {
desc: "oppo原生数据缓存数组长度",
id: "oppo_native_cache_length",
value: [ 5 ]
};
n.native_inner_interstitial_switch = {
desc: "结算原生开关",
id: "native_inner_interstitial_switch",
value: [ 1 ]
};
n.native_banner_click_pro_limit = {
desc: "原生banner点击率限制",
id: "native_banner_click_pro_limit",
value: [ 1e3, .4, 60 ]
};
n.native_inner_click_pro_limit = {
desc: "结算原生点击率限制",
id: "native_inner_click_pro_limit",
value: [ 1e3, .4, 60 ]
};
n.native_interstitial_click_pro_limit = {
desc: "原生插屏点击率限制",
id: "native_interstitial_click_pro_limit",
value: [ 1e3, .4, 60 ]
};
n.native_interstitial_click_wrap = {
desc: "原生插屏展示策略",
id: "native_interstitial_click_wrap",
value: [ 1e3, 2, 5 ]
};
n.native_inner_institial_click_wrap = {
desc: "结算原生展示策略",
id: "native_inner_institial_click_wrap",
value: [ 1e3, 2, 5 ]
};
n.banner_strong_update_switch = {
desc: "banner强制刷新开关",
id: "banner_strong_update_switch",
value: [ 0 ]
};
n.native_banner_height_open_rule = {
desc: "原生banner高度启动规则",
id: "native_banner_height_open_rule",
value: [ 1e3, 3, 5 ]
};
n.native_banner_height_rule = {
desc: "原生banner高度规则",
id: "native_banner_height_rule",
value: [ 200, 200, 1 ]
};
n.load_native_interstitial_rule = {
desc: "原生插屏加载规则（第X次去加载）",
id: "load_native_interstitial_rule",
value: [ 3 ]
};
n.first_use_natibe_banner = {
desc: "原生插屏优先使用原生Banner",
id: "first_use_natibe_banner",
value: [ 1 ]
};
n.only_interstitial = {
desc: "调用原生插屏改为普通插屏",
id: "only_interstitial",
value: [ 0 ]
};
n.ctr_test_close_button_delay = {
desc: "ctr测试关闭按钮延迟",
id: "ctr_test_close_button_delay",
value: [ 1 ]
};
n.ctr_test_reward_count = {
desc: "ctr测试奖励数量",
id: "ctr_test_reward_count",
value: [ 100 ]
};
n.banner_click_mask_open_rule = {
desc: "banner点击区域缩放规则",
id: "banner_click_mask_open_rule",
value: [ 2e3, 100, 200 ]
};
n.banner_click_mask_scale = {
desc: "banner点击区域缩放倍数",
id: "banner_click_mask_scale",
value: [ 1 ]
};
n.banner_click_mask_preview = {
desc: "banner点击区域缩放倍数虚影显示",
id: "banner_click_mask_preview",
value: [ 0 ]
};
n.native_inner_interstitial_auto_preload_rule = {
desc: "结算原生预加载规则",
id: "native_inner_interstitial_auto_preload_rule",
value: [ 0, 15 ]
};
if (t.__remote_business_config_inited) {
i.syyx_sdk_utils.replace_data(n, t.__business_config_data);
console.log("igc----- bussiness config is ", n);
t.__business_config_data = n;
var o = JSON.stringify(t.__business_config_data);
localStorage.setItem(d.syyx_const.local_business_config_data, o);
} else {
t.__business_config_data = n;
console.log("igc-----local bussiness config is ", n);
}
t.__local_business_config_inited = !0;
t.init_remote_config_compelete();
}, this);
};
t.show_video = function(e, n, i, o, _, r) {
void 0 === r && (r = !1);
d.syyx_const.syyx_sdk_channel === igc.e_channel_type.web || d.syyx_const.syyx_sdk_channel === igc.e_channel_type.apk && !a.syyx_sdk_api.get_apk_channel_id() ? o && o(null, {
isEnded: !0
}) : d.syyx_const.syyx_sdk_channel !== igc.e_channel_type.apk ? d.syyx_const.syyx_sdk_channel === igc.e_channel_type.hw_qg ? t.show_ad(igc.e_ad_type.video, e, n, i, function(t, n) {
n.isEnded ? a.syyx_sdk_api.send_other_event(e, igc.igc_stat_ids.video_compelete) : a.syyx_sdk_api.send_other_event(e, igc.igc_stat_ids.video_uncompelete);
o && o(t, n);
}, function() {
r && t.create_toast("目前暂时无广告，请稍后再试");
_ && _();
}) : t.create_ad(igc.e_ad_type.video, e, n, i, function(t, n) {
n.isEnded ? a.syyx_sdk_api.send_other_event(e, igc.igc_stat_ids.video_compelete) : a.syyx_sdk_api.send_other_event(e, igc.igc_stat_ids.video_uncompelete);
o && o(t, n);
}, function() {
r && t.create_toast("目前暂时无广告，请稍后再试");
_ && _();
}) : c.syyx_apk_adv_manager.show_video(e, n, i, o, _);
};
t.show_interstitial = function(e, n, i, o, a) {
d.syyx_const.syyx_sdk_channel !== igc.e_channel_type.apk ? t.create_ad(igc.e_ad_type.interstitial, e, n, i, o, a) : c.syyx_apk_adv_manager.show_interstitial(n, i, o, a);
};
t.preload_video = function() {
d.syyx_const.syyx_sdk_channel === igc.e_channel_type.hw_qg && t.create_ad(igc.e_ad_type.video, s.e_ad_id.video_add_gold, function() {}, function() {}, function() {}, function() {});
};
t.pre_load_game_portal_box = function(t, e, n, i) {
var o = this;
this.support_game_box() && o.create_ad(igc.e_ad_type.app_box, t, null, null, function() {
i && i();
setTimeout(function() {
o.pre_load_game_portal_box(t, null, null, null, null);
}, 500);
}, null, igc.e_ad_app_box_type.portal_box);
};
t.show_game_portal_box = function(e, n, i, o, a, _) {
void 0 === _ && (_ = !1);
var d = this;
this.show_ad(igc.e_ad_type.app_box, e, n, i, function() {
o && o();
setTimeout(function() {
d.pre_load_game_portal_box(e, null, null, null, null);
}, 500);
}, function() {
_ && t.create_toast("努力加载中，请稍后再试");
a && a();
}, igc.e_ad_app_box_type.portal_box);
};
t.show_native_inner_interstitial = function(t, e, n, i, o, a, _) {
void 0 === a && (a = !0);
if (r.syyx_adv_manager.can_show_first_native) if (this.get_channel_type() == igc.e_channel_type.apk) c.syyx_apk_adv_manager.show_native_inner_interstitial({
ad_pos_id: t,
onClick: n,
onShow: i,
onClose: o,
attrSet: _
}); else {
var d = this.get_local_native_data(t);
this.create_inner_interstitial(function(t) {
d && t.show(e, d, n, i, o, a);
});
} else console.log("igc----- is in oppo first ad cd ");
};
t.click_native_inner_interstitial = function(t) {
this.create_inner_interstitial(function(e) {
e && e.node && e.node.parent ? e.report_click() : t && t();
});
};
t.get_local_native_data = function(t) {
return r.syyx_adv_manager.get_local_native_data(t);
};
t.get_channel_ad_id = function(t) {
return r.syyx_adv_manager.get_channel_ad_id(t);
};
t.show_banner = function(t, e, n, i, o) {
r.syyx_adv_manager.show_banner(igc.e_ad_type.banner, t, e, n, i, o);
};
t.hide_banner = function() {
r.syyx_adv_manager.hide_banner();
};
t.report_ad_show = function(t, e) {
return r.syyx_adv_manager.report_ad_show(t, e);
};
t.report_ad_click = function(t, e) {
return r.syyx_adv_manager.report_ad_click(t, e);
};
t.show_new_products = function(t) {
o.syyx_ctr_manager.show_new_products(t);
};
t.get_channel_type = function() {
if (null == d.syyx_const.syyx_sdk_channel) {
var t = igc.e_channel_type.web;
if (window.qq) t = igc.e_channel_type.qq; else if (window.hbs) t = igc.e_channel_type.hw_qg; else if (window.tt) t = igc.e_channel_type.tt; else if (window.qg && !window.hbs) {
var e = window.qg.getProvider();
"OPPO" == e ? t = igc.e_channel_type.oppo_qg : "vivo" == e ? t = igc.e_channel_type.vivo_qg : window.hbs && (t = igc.e_channel_type.hw_qg);
} else window.wx ? t = igc.e_channel_type.wx : window.loadingView ? t = igc.e_channel_type.apk : window.cc && window.jsb && window.jsb.reflection && window.jsb.reflection.callStaticMethod && (t = igc.e_channel_type.apk);
d.syyx_const.syyx_sdk_channel = t;
}
console.log("看这里------------区分渠道", d.syyx_const.syyx_sdk_channel);
return d.syyx_const.syyx_sdk_channel;
};
t.get_channel_id = function() {
if (d.syyx_const.syyx_sdk_channel == igc.e_channel_type.ipa) return igc.e_channel_id.ipa;
if (d.syyx_const.syyx_sdk_channel == igc.e_channel_type.apk) return c.syyx_apk_adv_manager.get_apk_channel_id();
try {
var t = this.get_channel_type();
t == igc.e_channel_type.qq ? igc.e_channel_id.qq : t = t == igc.e_channel_type.hw_qg ? igc.e_channel_type.hw_qg : t == igc.e_channel_type.tt ? igc.e_channel_type.tt : t == igc.e_channel_type.oppo_qg ? igc.e_channel_type.oppo_qg : t == igc.e_channel_type.vivo_qg ? igc.e_channel_type.vivo_qg : t == igc.e_channel_type.wx ? igc.e_channel_type.wx : igc.e_channel_type.web;
} catch (t) {}
return "0";
};
t.get_ad_channel_id = function() {
return d.syyx_const.syyx_sdk_channel == igc.e_channel_type.apk ? c.syyx_apk_adv_manager.get_apk_ad_channel_id() : "0";
};
t.get_device_id = function() {
return d.syyx_const.syyx_sdk_channel == igc.e_channel_type.apk ? c.syyx_apk_adv_manager.get_apk_device_id() : "0";
};
t.set_remote_config = function() {
d.syyx_const.syyx_sdk_channel == igc.e_channel_type.apk && c.syyx_apk_adv_manager.set_apk_remote_config();
};
t.__syyx_app_id = 0;
t.viewMap = {};
t.func_open = {};
t.__game_init_file_path = "";
t.__business_config_file_path = "";
t.__adv_config_file_path = "";
t.__business_version = "__business_version";
t.__init_callback = void 0;
t.has_init_param = !1;
t.has_login_channel = !1;
t.__game_init_data = void 0;
t.__business_config_data = {};
t.__local_business_config_inited = !1;
t.__remote_business_config_inited = !1;
t.remote_business_config_data = null;
t.__is_new_player = !1;
t.init_completed_tag = !1;
t.refresh_completed_tag = !1;
t.__stat_inited = !1;
t.__is_stat_delay = !1;
t.__stat_data_cache = [];
t.__user_id = "";
return t;
}();
n.syyx_manager = l;
cc._RF.pop();
}, {
"../configs/syyx_sdk_config": "syyx_sdk_config",
"../configs/syyx_sdk_enum": "syyx_sdk_enum",
"../model/model": "model",
"./../syyx_sdk_api": "syyx_sdk_api",
"./../utils/syyx_sdk_utils": "syyx_sdk_utils",
"./ad/syyx_adv_manager": "syyx_adv_manager",
"./ctr_check/syyx_ctr_manager": "syyx_ctr_manager",
"./syyx_apk_adv_manager": "syyx_apk_adv_manager",
"./syyx_cc_ui_manager": "syyx_cc_ui_manager"
} ],
syyx_sdk_api: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "43f24/rXFNOy5rvA7uQxzfv", "syyx_sdk_api");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.syyx_sdk_api = void 0;
var i = t("./configs/syyx_sdk_config"), o = t("./configs/syyx_sdk_enum"), a = t("./controller/ad/ad_native_interstitial"), _ = t("./controller/ad/syyx_adv_manager"), d = t("./controller/syyx_apk_adv_manager"), r = t("./controller/syyx_manager"), s = t("./model/model"), c = function() {
function t() {}
t.init = function(t, e) {
void 0 === t && (t = null);
console.log("igc--------------------syyx_apk version" + i.syyx_const.syyx_sdk_version);
r.syyx_manager.init(t, e);
};
t.login_channel = function(t) {
r.syyx_manager.login_channel(t);
};
t.init_param = function(t, e) {
r.syyx_manager.init_param(t, e);
};
t.get_business_data_by_key = function(t) {
return r.syyx_manager.get_business_data_by_key(t);
};
t.send_user_register = function() {
r.syyx_manager.send_user_register();
};
t.send_user_login = function() {
r.syyx_manager.send_user_login();
};
t.send_hall_event = function(t, e, n) {
void 0 === e && (e = 0);
void 0 === n && (n = "");
r.syyx_manager.send_user_event(t, o.e_stat_event_type.hall, "", "", "", n, "", e, "");
};
t.send_chapter_event = function(t, e, n) {
void 0 === e && (e = void 0);
void 0 === n && (n = "");
var i = e ? o.e_chapter_result_type.win : o.e_chapter_result_type.lose;
i = 1 == e ? o.e_chapter_result_type.win : 0 == e ? o.e_chapter_result_type.lose : o.e_chapter_result_type.enter_chapter;
r.syyx_manager.send_user_event(t, o.e_stat_event_type.chapter, "", "", i, n, "", "", "");
};
t.send_settlement_event = function(t, e, n) {
void 0 === e && (e = "");
void 0 === n && (n = "");
r.syyx_manager.send_user_event(t, o.e_stat_event_type.result, "", "", e, n, "", "", "");
};
t.send_other_event = function(t, e, n, i, o, a, _) {
void 0 === n && (n = "");
void 0 === i && (i = "");
void 0 === o && (o = "");
void 0 === a && (a = "");
void 0 === _ && (_ = "");
r.syyx_manager.send_user_event(t, e, "", "", n, o, a, i, _);
};
t.is_inited = function() {
return r.syyx_manager.is_inited();
};
t.create_native_banner = function(t) {
return r.syyx_manager.create_native_banner(t);
};
t.create_interstitial = function(t) {
return r.syyx_manager.create_interstitial(t);
};
t.create_inner_interstitial = function(t) {
return r.syyx_manager.create_inner_interstitial(t);
};
t.create_native_icon = function(t) {
return r.syyx_manager.create_native_icon(t);
};
t.create_toast = function(t) {
return r.syyx_manager.create_toast(t);
};
t.hide = function(t) {
r.syyx_manager.hide(t);
};
t.show = function(t, e, n, i) {
void 0 === e && (e = -1);
void 0 === i && (i = 0);
r.syyx_manager.show(t, e, n, i);
};
t.load_view = function(t, e) {
return r.syyx_manager.load_view(t, e);
};
t.create_ad = function() {
return !1;
};
t.destroy_ad = function(t, e) {
return r.syyx_manager.destroy_ad(t, e);
};
t.hide_ad = function(t, e) {
return r.syyx_manager.hide_ad(t, e);
};
t.report_ad_show = function(t, e) {
return r.syyx_manager.report_ad_show(t, e);
};
t.report_ad_click = function(t, e) {
return r.syyx_manager.report_ad_click(t, e);
};
t.get_local_native_data = function(t) {
return _.syyx_adv_manager.get_local_native_data(t);
};
t.get_channel_ad_id = function(t) {
return _.syyx_adv_manager.get_channel_ad_id(t);
};
t.show_normal_banner = function(t, e, n, i, o) {
_.syyx_adv_manager.show_normal_banner(t, e, n, i, o);
};
t.show_banner = function(t, e, n, i, o, a) {
_.syyx_adv_manager.show_banner(igc.e_ad_type.banner, t, e, n, i, o, a);
};
t.set_banner_height = function() {
_.syyx_adv_manager.set_banner_height();
};
t.hide_banner = function() {
_.syyx_adv_manager.hide_banner();
};
t.set_normal_banner_switch = function(t) {
void 0 === t && (t = !0);
_.syyx_adv_manager.set_normal_banner_switch(t);
};
t.show_video = function(t, e, n, o, a, _) {
i.syyx_const.syyx_sdk_channel !== igc.e_channel_type.web ? r.syyx_manager.show_video(t, e, n, o, a, _) : o && o(null, {
isEnded: !0
});
};
t.show_interstitial = function(t, e, n, i, o) {
r.syyx_manager.show_interstitial(t, e, n, i, o);
};
t.show_video_interstitial = function(t, e, n, i) {
_.syyx_adv_manager.show_video_interstitial(t, e, n, i);
};
t.show_native_interstitial = function(t, e, n, i, o) {
_.syyx_adv_manager.show_native_interstitial(igc.e_ad_type.native, t, e, n, i, o);
};
t.hide_native_interstitial = function() {
a.ad_native_interstitial.hide_native_interstitial_ui();
};
t.preload_native_inner_interstitial = function(t, e, n, i, o) {
_.syyx_adv_manager.preload_native_inner_interstitial(igc.e_ad_type.native, t, e, n, i, o);
};
t.show_native_inner_interstitial = function(t, e, n, i, o, a, _) {
void 0 === a && (a = !0);
r.syyx_manager.show_native_inner_interstitial(t, e, n, i, o, a, _);
};
t.click_native_inner_interstitial = function() {
r.syyx_manager.click_native_inner_interstitial();
};
t.set_on_click_inner_interstitial_btn = function(t) {
_.syyx_adv_manager.set_on_click_inner_interstitial_btn(t);
};
t.hide_native_inner_interstitial = function() {
r.syyx_manager.hide_native_inner_interstitial();
};
t.show_native_icon = function(t, e, n, i, o, a) {
_.syyx_adv_manager.show_native_icon(t, igc.e_ad_type.native, e, n, i, o, a);
};
t.hide_native_icon = function() {
_.syyx_adv_manager.hide_native_icon();
};
t.support_game_box = function() {
return r.syyx_manager.support_game_box();
};
t.show_game_banner_box = function(t, e, n, i, o) {
r.syyx_manager.create_ad(igc.e_ad_type.app_box, t, e, n, i, o, igc.e_ad_app_box_type.banner_box);
};
t.hide_game_banner_box = function(t) {
r.syyx_manager.destroy_ad(igc.e_ad_type.app_box, t, igc.e_ad_app_box_type.banner_box);
};
t.show_game_portal_box = function(t, e, n, i, o, a) {
r.syyx_manager.show_game_portal_box(t, e, n, i, o, a);
};
t.show_app_box = function(t, e, n, i, o) {
r.syyx_manager.create_ad(igc.e_ad_type.app_box, t, e, n, i, o);
};
t.show_block = function(t, e, n, i, o, a) {
_.syyx_adv_manager.show_block(t, igc.e_ad_type.block, e, n, i, o, a);
};
t.hide_block = function(t) {
_.syyx_adv_manager.hide_block(t);
};
t.hide_all_block = function() {
_.syyx_adv_manager.hide_all_block();
};
t.show_new_products = function(t) {
r.syyx_manager.show_new_products(t);
};
t.check_can_add_desktop = function() {
return r.syyx_manager.check_can_add_desktop();
};
t.check_is_add_desktop = function(t, e) {
return r.syyx_manager.check_is_add_desktop(t, e);
};
t.add_desktop = function(t, e, n, i) {
return r.syyx_manager.add_desktop(t, e, n, i);
};
t.on_show = function(t) {
return r.syyx_manager.on_show(t);
};
t.on_hide = function(t) {
return r.syyx_manager.on_hide(t);
};
t.get_system_info_sync = function() {
return r.syyx_manager.get_system_info_sync();
};
t.get_launch_options_sync = function() {
var t = r.syyx_manager.get_launch_options_sync(), e = new s.launch_options();
e.scene = t.scene || "";
e.query = t.query || {};
e.referrerInfo = t.referrerInfo || {};
e.entryDataHash = t.entryDataHash || {};
e.extra = t.extra || {};
return e;
};
t.exit_mini_program = function() {
return r.syyx_manager.exit_mini_program();
};
t.navigate_to_mini_program = function(t, e) {
return r.syyx_manager.navigate_to_mini_program(t, e);
};
t.share = function(t, e, n, i, o, a) {
return r.syyx_manager.share(t, e, n, i, o, a);
};
t.on_share_app_message = function(t, e) {
return r.syyx_manager.on_share_app_message(t, e);
};
t.start_record_screen = function(t, e, n) {
return r.syyx_manager.start_record_screen(t, e, n);
};
t.stop_record_screen = function() {
return r.syyx_manager.stop_record_screen();
};
t.pause_record_screen = function() {
return r.syyx_manager.pause_record_screen();
};
t.resume_record_screen = function() {
return r.syyx_manager.resume_record_screen();
};
t.share_record_screen = function(t, e, n, i, o, a, _) {
return r.syyx_manager.share_record_screen(t, e, n, i, o, a, _);
};
t.get_record_video = function() {
return r.syyx_manager.get_record_video();
};
t.get_is_new_player = function() {
return r.syyx_manager.get_is_new_player();
};
t.get_syyx_app_id = function() {
return r.syyx_manager.get_syyx_app_id();
};
t.get_screen_ratio = function() {
if (window.cc) {
if (cc.view.getVisibleSize().width > cc.view.getVisibleSize().height) return cc.view.getVisibleSize().height / 1080;
if (cc.view.getVisibleSize().width <= cc.view.getVisibleSize().height) return cc.view.getVisibleSize().width / 1080;
}
return 1;
};
t.get_channel_type = function() {
return r.syyx_manager.get_channel_type();
};
t.is_oppo_apk = function() {
return d.syyx_apk_adv_manager.is_oppo_apk();
};
t.is_vivo_apk = function() {
return d.syyx_apk_adv_manager.is_vivo_apk();
};
t.jump_leisure_subject = function() {
return d.syyx_apk_adv_manager.jump_leisure_subject();
};
t.set_on_exit_finish = function(t) {
d.syyx_apk_adv_manager.set_on_exit_finish(t);
};
t.hide_loading_view = function() {
d.syyx_apk_adv_manager.hide_loading_view();
};
t.set_loading_view_value = function(t) {
d.syyx_apk_adv_manager.set_loading_view_value(t);
};
t.get_apk_channel_id = function() {
return d.syyx_apk_adv_manager.get_apk_channel_id();
};
t.get_channel_id = function() {
return r.syyx_manager.get_channel_id();
};
t.get_apk_device_id = function() {
return d.syyx_apk_adv_manager.get_apk_device_id();
};
t.get_device_id = function() {
return r.syyx_manager.get_device_id();
};
t.get_apk_ad_channel_id = function() {
return d.syyx_apk_adv_manager.get_apk_ad_channel_id();
};
t.get_ad_channel_id = function() {
return r.syyx_manager.get_ad_channel_id();
};
t.show_privacy_view = function(t) {
d.syyx_apk_adv_manager.show_privacy_view(t);
};
t.show_proxy_webview = function() {
d.syyx_apk_adv_manager.show_proxy_webview();
};
return t;
}();
n.syyx_sdk_api = c;
cc._RF.pop();
}, {
"./configs/syyx_sdk_config": "syyx_sdk_config",
"./configs/syyx_sdk_enum": "syyx_sdk_enum",
"./controller/ad/ad_native_interstitial": "ad_native_interstitial",
"./controller/ad/syyx_adv_manager": "syyx_adv_manager",
"./controller/syyx_apk_adv_manager": "syyx_apk_adv_manager",
"./controller/syyx_manager": "syyx_manager",
"./model/model": "model"
} ],
syyx_sdk_config: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "6a660kouH9LHJs5I4q8x25q", "syyx_sdk_config");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.syyx_const = n.e_syyx_sdk_publish_type = n.init_config = void 0;
n.init_config = {
web: {
app_id: 6e5,
app_version: "1.0.0.0",
pkg_name: "",
channel_type: 1,
channel_id: 0,
engin_type: 2,
engin_version: "2.0.10",
log_level: 0,
pay_key: "",
login_key: "",
plat_key: "123",
stat_key: "",
pay_url: "",
pay_query_url: "",
pay_last_query_url: "",
login_url: "",
ws_url: "",
ws_cert_url: "",
stat_event_url: "https://tpfdata.syyx.com:35002/bigdata/record/gameEvent",
batch_stat_event_url: "https://tpfdata.syyx.com:35002/bigdata/record/batchGameEvent",
configUrl: "https://tpf-common-config-api.syyx.com:37110/api/config",
configAppSecKey: "",
retry_connect: !1,
basic_config_version: "",
is_login_soon: !1,
is_auto_relogin_full: !1,
has_red_envelop: !1,
has_multual_push: !1
},
oppo_qg: {
app_id: 6e5,
ad_app_id: 0,
app_version: "1.0.0.0",
pkg_name: "",
channel_type: 2,
channel_id: 1,
engin_type: 2,
engin_version: "2.0.10",
log_level: 0,
pay_key: "",
login_key: "",
plat_key: "123",
stat_key: "",
pay_url: "",
pay_query_url: "",
pay_last_query_url: "",
login_url: "",
ws_url: "",
ws_cert_url: "",
stat_event_url: "https://tpfdata.syyx.com:35002/bigdata/record/gameEvent",
batch_stat_event_url: "https://tpfdata.syyx.com:35002/bigdata/record/batchGameEvent",
configUrl: "https://tpf-common-config-api.syyx.com:37110/api/config",
configAppSecKey: "",
retry_connect: !1,
basic_config_version: "",
is_login_soon: !1,
is_auto_relogin_full: !1,
has_red_envelop: !1,
has_multual_push: !1
},
vivo_qg: {
app_id: 6e5,
ad_app_id: 0,
app_version: "1.0.0.0",
pkg_name: "",
channel_type: 4,
channel_id: 2,
engin_type: 1,
engin_version: "2.0.10",
log_level: 0,
pay_key: "",
login_key: "",
plat_key: "123",
stat_key: "",
pay_url: "",
pay_query_url: "",
pay_last_query_url: "",
login_url: "",
ws_url: "",
ws_cert_url: "",
stat_event_url: "https://tpfdata.syyx.com:35002/bigdata/record/gameEvent",
batch_stat_event_url: "https://tpfdata.syyx.com:35002/bigdata/record/batchGameEvent",
configUrl: "https://tpf-common-config-api.syyx.com:37110/api/config",
configAppSecKey: "",
retry_connect: !1,
basic_config_version: "",
is_login_soon: !1,
is_auto_relogin_full: !1,
has_red_envelop: !1,
has_multual_push: !1,
needAuth: !1
},
tt: {
app_id: 6e5,
ad_app_id: 0,
app_version: "1.0.0.0",
pkg_name: "",
channel_type: 8,
channel_id: 10,
engin_type: 2,
engin_version: "2.0.10",
log_level: 0,
pay_key: "",
login_key: "",
plat_key: "123",
stat_key: "",
pay_url: "",
pay_query_url: "",
pay_last_query_url: "",
login_url: "",
ws_url: "",
ws_cert_url: "",
stat_event_url: "https://tpfdata.syyx.com:35002/bigdata/record/gameEvent",
batch_stat_event_url: "https://tpfdata.syyx.com:35002/bigdata/record/batchGameEvent",
configUrl: "https://tpf-common-config-api.syyx.com:37110/api/config",
configAppSecKey: "",
retry_connect: !1,
basic_config_version: "",
is_login_soon: !1,
is_auto_relogin_full: !1,
has_red_envelop: !1,
has_multual_push: !1,
needAuth: !1
},
qq: {
app_id: 6e5,
ad_app_id: 0,
app_version: "1.0.0.0",
pkg_name: "",
channel_type: 5,
channel_id: 8,
engin_type: 2,
engin_version: "2.0.10",
log_level: 0,
pay_key: "",
login_key: "",
plat_key: "123",
stat_key: "",
pay_url: "",
pay_query_url: "",
pay_last_query_url: "",
login_url: "",
ws_url: "",
ws_cert_url: "",
stat_event_url: "https://tpfdata.syyx.com:35002/bigdata/record/gameEvent",
batch_stat_event_url: "https://tpfdata.syyx.com:35002/bigdata/record/batchGameEvent",
configUrl: "https://tpf-common-config-api.syyx.com:37110/api/config",
configAppSecKey: "",
retry_connect: !1,
basic_config_version: "",
is_login_soon: !1,
is_auto_relogin_full: !1,
has_red_envelop: !1,
has_multual_push: !1,
needAuth: !1
},
apk: {
app_id: 6e5,
ad_app_id: 0,
app_version: "1.0.0.0",
pkg_name: "",
channel_type: 7,
channel_id: 11,
engin_type: 2,
engin_version: "2.0.10",
log_level: 0,
pay_key: "",
login_key: "",
plat_key: "123",
stat_key: "",
pay_url: "",
pay_query_url: "",
pay_last_query_url: "",
login_url: "",
ws_url: "",
ws_cert_url: "",
stat_event_url: "https://tpfdata.syyx.com:35002/bigdata/record/gameEvent",
batch_stat_event_url: "https://tpfdata.syyx.com:35002/bigdata/record/batchGameEvent",
configUrl: "https://tpf-common-config-api.syyx.com:37110/api/config",
configAppSecKey: "",
retry_connect: !1,
basic_config_version: "",
is_login_soon: !1,
is_auto_relogin_full: !1,
has_red_envelop: !1,
has_multual_push: !1
},
wx: {
app_id: 6e5,
ad_app_id: 0,
app_version: "1.0.0.0",
pkg_name: "",
channel_type: 5,
channel_id: 8,
engin_type: 2,
engin_version: "2.0.10",
log_level: 0,
pay_key: "",
login_key: "",
plat_key: "123",
stat_key: "",
pay_url: "",
pay_query_url: "",
pay_last_query_url: "",
login_url: "",
ws_url: "",
ws_cert_url: "",
stat_event_url: "https://tpfdata.syyx.com:35002/bigdata/record/gameEvent",
batch_stat_event_url: "https://tpfdata.syyx.com:35002/bigdata/record/batchGameEvent",
configUrl: "https://tpf-common-config-api.syyx.com:37110/api/config",
configAppSecKey: "",
retry_connect: !1,
basic_config_version: "",
is_login_soon: !1,
is_auto_relogin_full: !1,
has_red_envelop: !1,
has_multual_push: !1,
needAuth: !1
},
hw_qg: {
app_id: 103490213,
ad_app_id: 0,
channel_app_id: 0,
app_version: "1.0.0.0",
pkg_name: "",
channel_type: 10,
channel_id: 14,
engin_type: 2,
engin_version: "2.0.10",
log_level: 0,
pay_key: "",
login_key: "",
plat_key: "123",
stat_key: "",
pay_url: "",
pay_query_url: "",
pay_last_query_url: "",
login_url: "",
ws_url: "",
ws_cert_url: "",
stat_event_url: "https://tpfdata.syyx.com:35002/bigdata/record/gameEvent",
batch_stat_event_url: "https://tpfdata.syyx.com:35002/bigdata/record/batchGameEvent",
configUrl: "https://tpf-common-config-api.syyx.com:37110/api/config",
configAppSecKey: "",
retry_connect: !1,
basic_config_version: "",
is_login_soon: !1,
is_auto_relogin_full: !1,
has_red_envelop: !1,
has_multual_push: !1,
needAuth: !1
},
ipa: {
app_id: 6e5,
ad_app_id: 0,
app_version: "1.0.0.17",
pkg_name: "com.lewan.wyykd",
channel_type: 7,
channel_id: 11,
engin_type: 2,
engin_version: "2.0.10",
log_level: 0,
pay_key: "",
login_key: "",
plat_key: "123",
stat_key: "",
pay_url: "",
pay_query_url: "",
pay_last_query_url: "",
login_url: "",
ws_url: "",
ws_cert_url: "",
stat_event_url: "https://tpfdata.syyx.com:35002/bigdata/record/gameEvent",
batch_stat_event_url: "https://tpfdata.syyx.com:35002/bigdata/record/batchGameEvent",
configUrl: "https://tpf-common-config-api.syyx.com:37110/api/config",
configAppSecKey: "",
retry_connect: !1,
basic_config_version: "",
is_login_soon: !1,
is_auto_relogin_full: !1,
has_red_envelop: !1,
has_multual_push: !1
},
_debug: !0
};
var i;
(function(t) {
t[t.in = 1] = "in";
t[t.out = 2] = "out";
})(i = n.e_syyx_sdk_publish_type || (n.e_syyx_sdk_publish_type = {}));
n.syyx_const = {
syyx_sdk_version: "2.0.0.19",
syyx_sdk_publish: i.out,
syyx_sdk_channel: null,
syyx_sdk_tag: "2021_07_21_20_52",
syyx_sdk_version_key: "syyx_sdk_version_key",
remote_business_config_key: "business_config",
local_business_config_version: "syyx_business_config_version",
local_business_config_data: "syyx_business_config_data",
remote_ctr_config_key: "multual_push_v5",
local_ctr_config_version: "syyx_ctr_config_version",
local_ctr_config_data: "syyx_ctr_config_data"
};
cc._RF.pop();
}, {} ],
syyx_sdk_enum: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "fc2a6XHmnJK65cXBf0IwQF/", "syyx_sdk_enum");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.apk_ad_attr = n.apk_ad_attr_enum = n.e_ad_id = n.syyx_prefab_path = n.e_methoh_enum = n.e_settlement_stat_type = n.e_hall_stat_type = n.e_chapter_result_type = n.e_stat_event_id = n.e_stat_event_type = n.e_ad_native_click_pro_type = n.e_ad_native_state = n.e_ad_native_type = n.e_syyx_ctr_event_type = void 0;
(function(t) {
t[t.show = 30002] = "show";
t[t.click = 30001] = "click";
})(n.e_syyx_ctr_event_type || (n.e_syyx_ctr_event_type = {}));
(function(t) {
t[t.native_banner = 1] = "native_banner";
t[t.native_inner_interstitial = 2] = "native_inner_interstitial";
t[t.native_interstitial = 3] = "native_interstitial";
t[t.native_icon = 4] = "native_icon";
})(n.e_ad_native_type || (n.e_ad_native_type = {}));
(function(t) {
t[t.none = 0] = "none";
t[t.need_show = 1] = "need_show";
t[t.show = 2] = "show";
t[t.click = 3] = "click";
})(n.e_ad_native_state || (n.e_ad_native_state = {}));
(function(t) {
t[t.none = 1] = "none";
t[t.cooling = 2] = "cooling";
t[t.active = 3] = "active";
})(n.e_ad_native_click_pro_type || (n.e_ad_native_click_pro_type = {}));
(function(t) {
t.hall = "10001";
t.chapter = "10002";
t.result = "10003";
})(n.e_stat_event_type || (n.e_stat_event_type = {}));
(function(t) {
t.none = "0";
t.win_click_native_adv = "10001";
t.lose_click_native_adv = "10002";
})(n.e_stat_event_id || (n.e_stat_event_id = {}));
(function(t) {
t.enter_chapter = "1000000";
t.win = "1000001";
t.lose = "1000002";
})(n.e_chapter_result_type || (n.e_chapter_result_type = {}));
(n.e_hall_stat_type || (n.e_hall_stat_type = {})).enter_hall = "1";
(n.e_settlement_stat_type || (n.e_settlement_stat_type = {})).enter_settlement = "1";
(function(t) {
t.set_banner_height = "1";
t.has_native_data = "2";
t.set_apk_remote_config = "3";
})(n.e_methoh_enum || (n.e_methoh_enum = {}));
(function(t) {
t.native_banner = "syyx_prefab/ad/ui_banner";
t.inner_interstitial = "syyx_prefab/ad/ui_inner_interstitial";
t.interstitial = "syyx_prefab/ad/ui_interstitial";
t.interstitial_h = "syyx_prefab/ad/ui_interstitial_h";
t.native_icon = "syyx_prefab/ad/ui_native_icon";
t.toast = "syyx_prefab/ad/ui_toast";
t.ctr_check = "syyx_prefab/ctr/ui_ctr";
t.ctr_check_h = "syyx_prefab/ctr/ui_ctr_h";
})(n.syyx_prefab_path || (n.syyx_prefab_path = {}));
(function(t) {
t.interstitial_hall = "10100001";
t.interstitial_video = "10100002";
t.video_add_gold = "10200001";
t.video_add_diamond = "10200002";
t.video_add_bomb = "10200003";
t.video_forging = "10200004";
t.video_luck_draw = "10200005";
t.native_interstitial_hall = "10301001";
t.native_inner_interstitial_success = "10302001";
t.native_banner = "10304001";
t.native_icon = "10304002";
t.native_banner_1 = "10304003";
t.native_banner_2 = "10304004";
t.native_banner_3 = "10304005";
t.banner_hall = "10400001";
t.appbox_hall = "10600001";
t.game_banner_box = "10600002";
t.game_portal_box = "10600003";
t.bottom_block = "10900001";
t.left_block = "10900002";
t.right_block = "10900003";
t.native_interstitial_1 = "10301002";
t.native_interstitial_2 = "10301003";
t.native_interstitial_3 = "10301004";
t.native_inner_interstitial_1 = "10302002";
t.native_inner_interstitial_2 = "10302003";
t.native_inner_interstitial_3 = "10302004";
})(n.e_ad_id || (n.e_ad_id = {}));
n.apk_ad_attr_enum = function() {};
var i = function() {
function t(t, e, n, i, o) {
this.specialBtnGroup = {};
this.styleModel = 0;
this.container = t || null;
this.adImg = e || null;
this.adDesc = n || null;
this.clickBtn = i || null;
this.specialBtnGroup = o || {};
}
t.prototype.set_click_btn = function(t) {
this.clickBtn = t || null;
};
t.prototype.set_special_btn_group = function(t) {
this.specialBtnGroup = t || {};
};
t.prototype.set_container = function(t) {
this.container = t || null;
};
t.prototype.set_style_model = function(t) {
this.styleModel = t || null;
};
return t;
}();
n.apk_ad_attr = i;
cc._RF.pop();
}, {} ],
syyx_sdk_utils: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "abeaaOecZpIHIRvM5TgixKt", "syyx_sdk_utils");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.syyx_sdk_utils = void 0;
var i = t("../configs/syyx_sdk_config"), o = function() {
function t() {}
t.log = function() {
for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
console.log("syyx_sdk: ", JSON.stringify(t));
};
t.error = function() {
for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
i.init_config._debug && console.error("syyx_sdk: ", JSON.stringify(t));
};
t.get_random_number = function(t) {
return t[0] + Math.floor(Math.random() * (t[1] - t[0]));
};
t.get_screen_ratio = function() {
if (window.cc) {
if (cc.view.getVisibleSize().width > cc.view.getVisibleSize().height) return cc.view.getVisibleSize().height / 1080;
if (cc.view.getVisibleSize().width <= cc.view.getVisibleSize().height) return cc.view.getVisibleSize().width / 1080;
}
return 1;
};
t.get_largest_zorder = function() {
return 32767;
};
t.get_size = function(t) {
return window.Laya ? {
width: t.width * t.scaleX,
height: t.height * t.scaleY
} : {};
};
t.get_stage = function() {
if (!window.Laya) return window.cc.director.getScene();
window.Laya.stage;
};
t.parse_csv = function(t, e) {
return i.syyx_const.syyx_sdk_publish === i.e_syyx_sdk_publish_type.in ? t : igc.utils_manager.parse_csv(t, e);
};
t.load_resource = function(t, e, n, i) {
void 0 === n && (n = void 0);
if (window.Laya) window.Laya.loader.load(t, window.Laya.Handler.create(n, function(n) {
n ? e && e(n) : console.error("igc-----load_resource fail", t);
})); else {
var o = t;
if (o) {
var a = o.indexOf(".");
-1 != a && (t = o.substr(0, a));
}
console.log("load_resource", o, t);
window.cc.resources.load(t, function(t, n) {
var a = n;
console.log("load_resource  ", n);
-1 != o.indexOf("json") && (a = n.json);
if (t) i && i(); else if (n) e && e(a); else {
console.error("igc-----load_resource fail", o);
i && i();
}
});
}
};
t.load_resource_texture = function(t, e) {
window.cc && cc.loader.loadRes(t, cc.SpriteFrame, function(n, i) {
null == n && cc.isValid(e) && cc.isValid(e.node) ? e.spriteFrame = i : console.error(t + " is not find", n);
});
};
t.set_texture_url = function(t, e, n) {
if (i.syyx_const.syyx_sdk_channel !== igc.e_channel_type.web && window.cc) {
var o = e, a = "jpg";
-1 != e.indexOf(".png") && (a = "png");
try {
window.cc.assetManager && window.cc.assetManager.loadRemote ? window.cc.assetManager.loadRemote(o, function(e, i) {
if (e) {
console.error("igc-----load texture fail1111", e);
n && n();
} else if (window.cc.isValid(t) && i) {
var o = new window.cc.SpriteFrame(i);
t.spriteFrame = o;
}
}) : window.cc.loader.load({
url: o,
type: a
}, function(e, i) {
if (e) {
console.error("igc-----load texture fail", e);
n && n();
} else if (window.cc.isValid(t) && i) {
var o = new window.cc.SpriteFrame(i);
t.spriteFrame = o;
}
});
} catch (t) {
n && n();
}
}
};
t.format_remote_texture_url = function(t) {
if (t) {
var e = t.indexOf(".jpg"), n = t.indexOf(".png");
return -1 != e ? t.substring(0, e + 4) : -1 != n ? t.substring(0, n + 4) : t;
}
return t;
};
t.is_texture_url = function(t) {
return -1 != t.indexOf(".bmp") || -1 != t.indexOf(".jpg") || -1 != t.indexOf(".jpeg") || -1 != t.indexOf(".flic") || -1 != t.indexOf(".emf") || -1 != t.indexOf(".ico") || -1 != t.indexOf(".png") || -1 != t.indexOf(".tif") || -1 != t.indexOf(".gif") || -1 != t.indexOf(".pcx") || -1 != t.indexOf(".tga") || -1 != t.indexOf(".exif") || -1 != t.indexOf(".fpx") || -1 != t.indexOf(".svg") || -1 != t.indexOf(".psd") || -1 != t.indexOf(".cdr") || -1 != t.indexOf(".pcd") || -1 != t.indexOf(".dxf") || -1 != t.indexOf(".ufo") || -1 != t.indexOf(".eps") || -1 != t.indexOf(".ai") || -1 != t.indexOf(".raw") || -1 != t.indexOf(".WMF") || -1 != t.indexOf(".webp") || -1 != t.indexOf(".avif");
};
t.replace_data = function(t, e) {
if (t || e) {
for (var n in e) e[n] && (t[n] = e[n]);
console.log("-------");
console.log(e);
} else console.log("the object is wrong");
};
t.set_item = function(t, e) {
var n = JSON.stringify(e);
localStorage.setItem(t, n);
};
t.get_item = function(t) {
var e = localStorage.getItem(t);
return "" != e ? JSON.parse(e) : null;
};
t.random_get = function(t, e) {
void 0 === e && (e = !1);
var n = t.length;
if (0 == n) {
console.error("try to get a member from an empty array");
throw new Error();
}
var i = Math.floor(Math.random() * n), o = t[i];
e && t.splice(i, 1);
return o;
};
t.check_is_same_day = function(t, e) {
var n = new Date(t), i = new Date(e);
return n.getDay() == i.getDay() && n.getMonth() == i.getMonth() && n.getFullYear() == i.getFullYear();
};
t.get_date_timestamp = function() {
return new Date().getTime();
};
t.changeToMb = function(t, e) {
void 0 === e && (e = 1);
if (t < 1e4) return t + "";
var n = parseInt(t);
return n < 1e3 ? Math.floor(n) + "" : n < 1e6 ? (n / 1e3).toFixed(e) + "k" : n < 1e9 ? (n / 1e6).toFixed(e) + "m" : n < 1e12 ? (n / 1e9).toFixed(e) + "b" : (n / 1e12).toFixed(e) + "t";
};
t.formatTime = function(t) {
if (t <= 0) return "00:00:00";
var e = Math.floor(t / 3600), n = Math.floor(t / 60 % 60), i = Math.floor(t % 60), o = e + "", a = n + "", _ = i + "";
e < 10 && (o = "0" + e);
n < 10 && (a = "0" + n);
i < 10 && (_ = "0" + i);
return o + ":" + a + ":" + _;
};
t.formatTime_mmss = function(t) {
if (t <= 0) return "00:00";
var e = Math.floor(t / 60 % 60), n = Math.floor(t % 60), i = e + "", o = n + "";
e < 10 && (i = "0" + e);
n < 10 && (o = "0" + n);
return i + ":" + o;
};
t.set_grey = function(t, e) {
for (var n = t.getComponentsInChildren(cc.Sprite), i = 0; i < n.length; i++) n[i].setState(e);
};
t.get_random_int = function(t, e) {
return Math.floor(Math.random() * (e - t + 1) + t);
};
t.shuffle = function(t) {
for (var e = t.slice(), n = 0; n < e.length; n++) {
var i = this.get_random_int(0, n), o = e[n];
e[n] = e[i];
e[i] = o;
}
return e;
};
t.preload_native_texture = function(t) {
if (window.Laya) window.Laya.loader.load(t, window.Laya.Handler.create(this, function(e) {
e && console.log("igc----- preload native_texture success----\x3e", t);
})); else {
var e = "jpg";
-1 != t.indexOf(".png") && (e = "png");
window.cc.assetManager && window.cc.assetManager.loadRemote ? window.cc.assetManager.loadRemote(t, function(e, n) {
n && console.log("igc----- preload native_texture success----\x3e", t);
}) : window.cc.loader.load({
url: t,
type: e
}, function(e, n) {
n && console.log("igc----- preload native_texture success----\x3e", t);
});
}
};
t.getScreenLeftNTop = function(t) {
if (cc.isValid(t) && t.parent) {
var e = t.width, n = t.height, i = t.convertToWorldSpaceAR(cc.v2(-e / 2, n / 2));
console.log("igc----- 按钮左上角的舞台坐标" + i.x + "," + i.y);
var o = i.x * this.getScreenWidth() / cc.view.getVisibleSize().width, a = i.y * this.getScreenHeight() / cc.view.getVisibleSize().height;
console.log("igc----- 按钮左上角的屏幕坐标（像素）" + o + "," + a);
var _ = t.convertToWorldSpaceAR(cc.v2(e / 2, -n / 2));
console.log("igc----- 按钮右下角的舞台坐标" + _.x + "," + _.y);
var d = _.x * this.getScreenWidth() / cc.view.getVisibleSize().width, r = _.y * this.getScreenHeight() / cc.view.getVisibleSize().height;
console.log("igc----- 按钮右下角的屏幕坐标（像素）" + d + "," + r);
var s = Math.abs(d - o), c = Math.abs(r - a);
console.log("igc----- 按钮在屏幕下的宽高（像素）" + s + "," + c);
return {
left: Math.ceil(o),
top: this.getScreenHeight() - Math.ceil(a),
width: Math.ceil(s),
height: Math.ceil(c)
};
}
};
t.getScreenWidth = function() {
if (0 == this._screen_width) if (window.Laya) this._screen_width = window.Laya.Browser.clientWidth; else {
this._screen_width = cc.view.getFrameSize().width;
console.log("cc屏幕宽度" + this._screen_height);
}
return this._screen_width;
};
t.getScreenHeight = function() {
if (0 == this._screen_height) if (window.Laya) this._screen_height = window.Laya.Browser.clientHeight; else {
this._screen_height = cc.view.getFrameSize().height;
console.log("cc屏幕高度" + this._screen_height);
}
return this._screen_height;
};
t.set_cocos_key_down_listener = function() {
i.syyx_const.syyx_sdk_channel == igc.e_channel_type.apk && window.cc && cc.systemEvent.on(cc.SystemEvent.EventType.KEY_DOWN, this._onKeyDown, this);
};
t._onKeyDown = function(t) {
switch (t.keyCode) {
case cc.macro.KEY.back:
igc.utils_manager.callJava("org/cocos2dx/javascript/CoCosJSBridge", "exit", "()V");
}
};
t._screen_width = 0;
t._screen_height = 0;
return t;
}();
n.syyx_sdk_utils = o;
cc._RF.pop();
}, {
"../configs/syyx_sdk_config": "syyx_sdk_config"
} ],
syyx_ui_banner: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "43be3ENcplHsJ3dgWKcnSxe", "syyx_ui_banner");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../../configs/syyx_sdk_config"), d = t("../../configs/syyx_sdk_enum"), r = t("../../controller/ad/ad_banner"), s = t("../../controller/ad/syyx_adv_manager"), c = t("../../controller/syyx_manager"), h = t("../../syyx_sdk_api"), l = t("../../utils/syyx_sdk_utils"), p = cc._decorator, u = p.ccclass, f = p.property, y = function(t) {
o(e, t);
function e() {
var e = t.call(this) || this;
e.game_node = null;
e.icon_close = null;
e.native_bg = null;
e.lb_title = null;
e.lb_desc = null;
e.img_icon = null;
e.click_mask = null;
e.is_reprot_click = !1;
e.easy_click_model = !1;
e.is_set_style = !1;
e.show_count = 0;
e.next_change_height_count = -1;
e.next_change_scale_count = -1;
e.timer_id = void 0;
e.is_heighting = !1;
e.set_background_on_show();
return e;
}
e.prototype.onEnable = function() {
this.easy_click_model = r.ad_banner.get_is_easy_click_model();
if (this.easy_click_model) {
this.stage = window.cc.director.getScene().getChildByName("Canvas");
cc.isValid(this.stage) && this.stage.on(cc.Node.EventType.TOUCH_MOVE, this.touch_move, this);
}
};
e.prototype.onDisable = function() {
this.easy_click_model && cc.isValid(this.stage) && this.stage.off(cc.Node.EventType.TOUCH_MOVE, this.touch_move, this);
};
e.prototype.show = function(t) {
if (this.node && !this.node.parent) {
this.node.parent = l.syyx_sdk_utils.get_stage();
cc.game.addPersistRootNode(this.node);
this.node.zIndex = 1000001;
this.node.active = !1;
}
if (cc.isValid(this.node) && !this.node.active) {
this.node.width = cc.view.getVisibleSize().width;
this.node.height = cc.view.getVisibleSize().height;
this.node.x = cc.view.getVisibleSize().width / 2;
this.node.y = cc.view.getVisibleSize().height / 2;
this.set_default_pos();
this.on_show(t);
}
};
e.prototype.on_show = function(t) {
this.node.active = !0;
this.show_count++;
this.icon_close.on(cc.Node.EventType.TOUCH_END, this.on_click_close, this);
this.is_reprot_click = !1;
this.click_mask.active = !1;
this.native_bg.on(cc.Node.EventType.TOUCH_END, this.on_click_adv, this);
this.click_mask.on(cc.Node.EventType.TOUCH_END, this.on_click_adv, this);
this.native_data = t || h.syyx_sdk_api.get_local_native_data(r.ad_banner._native_banner_id);
this.refresh();
};
e.prototype.show_click_mask = function() {
var t = c.syyx_manager.get_business_config();
if (t && t.banner_click_mask_open_rule) {
var e = t.banner_click_mask_open_rule.value;
if (e) {
-1 == this.next_change_scale_count && (this.next_change_scale_count = e[0]);
if (this.show_count == this.next_change_scale_count) {
this.next_change_scale_count += e[1] + Math.floor(Math.random() * (e[2] - e[1] + 1));
this.click_mask.active = !0;
this.adjust_mask_node();
}
}
}
};
e.prototype.get_change_scale = function() {
var t = c.syyx_manager.get_business_config();
return t && t.banner_click_mask_scale ? t.banner_click_mask_scale.value[0] : 1;
};
e.prototype.adjust_mask_node = function() {
this.click_mask.height = this.game_node.height / this.game_node.scaleX;
this.click_mask.width = this.game_node.width / this.game_node.scaleX;
this.click_mask.scaleX = this.game_node.scaleX * this.get_change_scale();
this.click_mask.scaleY = this.game_node.scaleY * this.get_change_scale();
this.click_mask.opacity = 0;
var t = c.syyx_manager.get_business_config();
t && t.banner_click_mask_preview && 1 == t.banner_click_mask_preview.value[0] && (this.click_mask.opacity = 80);
};
e.prototype.refresh = function() {
this.lb_desc.string = this.native_data.desc + "";
this.lb_title.string = this.native_data.title + "";
l.syyx_sdk_utils.set_texture_url(this.img_icon, this.native_data.imgUrlList);
if (!this.is_heighting) {
this.game_node.height = this.get_banner_default_height();
this.set_default_pos();
}
this.report_show();
this.set_banner_height();
this.show_click_mask();
};
e.prototype.touch_move = function(t) {
if (this.node && this.node.active) {
if (this.easy_click_model && t.touch.getLocationY() <= this.game_node.height * this.game_node.scaleY && t.touch.getLocationX() >= this.game_node.x + (cc.view.getVisibleSize().width - this.game_node.width * this.game_node.scaleX) / 2 && t.touch.getLocationX() < this.game_node.x + (cc.view.getVisibleSize().width + this.game_node.width * this.game_node.scaleX) / 2) {
this.on_click_adv2();
return;
}
if (this.click_mask.active && t.touch.getLocationY() <= this.click_mask.height * this.click_mask.scaleY * this.game_node.scaleY && t.touch.getLocationX() >= this.game_node.x + (cc.view.getVisibleSize().width - this.click_mask.width * this.click_mask.scaleX * this.game_node.scaleX) / 2 && t.touch.getLocationX() < this.game_node.x + (cc.view.getVisibleSize().width + this.click_mask.width * this.click_mask.scaleX * this.game_node.scaleX) / 2) {
this.on_click_adv2();
return;
}
}
};
e.prototype.on_click_adv2 = function() {
r.ad_banner.set_banenr_protect_model();
this.on_click_adv();
};
e.prototype.on_click_adv = function() {
if (!this.is_reprot_click) {
this.easy_click_model && cc.isValid(this.stage) && this.stage.off(cc.Node.EventType.TOUCH_MOVE, this.touch_move, this);
this.native_bg.off(cc.Node.EventType.TOUCH_END, this.on_click_adv, this);
this.click_mask.off(cc.Node.EventType.TOUCH_END, this.on_click_adv, this);
this.is_reprot_click = !0;
this.report_click();
}
};
e.prototype.on_click_close = function() {
s.syyx_adv_manager.run_finger_close_banner_rule();
this.hide();
};
e.prototype.report_click = function() {
if (this.native_data) {
h.syyx_sdk_api.send_other_event(d.e_ad_id.native_banner, igc.igc_stat_ids.native_banner_click, this.native_data.native_type);
s.syyx_adv_manager.report_ad_click(d.e_ad_id.native_banner, this.native_data);
}
};
e.prototype.report_show = function() {
this.native_data && s.syyx_adv_manager.report_ad_show(d.e_ad_id.native_banner, this.native_data);
};
e.prototype.hide = function() {
if (this.node && this.node.active) {
this.node.active = !1;
this.on_hide();
}
};
e.prototype.on_hide = function() {
this.icon_close.off(cc.Node.EventType.TOUCH_END, this.on_click_close, this);
this.native_bg.off(cc.Node.EventType.TOUCH_END, this.on_click_adv, this);
this.click_mask.active = !1;
};
e.prototype.set_default_scale = function() {
var t = l.syyx_sdk_utils.get_screen_ratio();
this.game_node.setScale(t, t);
};
e.prototype.set_default_pos = function() {
if (!this.is_set_style) {
this.game_node.x = 0;
this.game_node.y = -this.node.height / 2;
}
this.adjust_mask_node();
};
e.prototype.set_banner_height = function(t) {
void 0 === t && (t = !0);
if (this.node && this.node.parent) {
var e = this, n = c.syyx_manager.get_business_config();
if (n && n.native_banner_height_open_rule) {
var i = n.native_banner_height_open_rule.value;
if (i) {
-1 == this.next_change_height_count && (this.next_change_height_count = i[0]);
if (this.show_count == this.next_change_height_count || !t) {
if (!t) {
console.log("igc----- 强制banner变高");
this.next_change_height_count = this.show_count;
}
this.next_change_height_count += i[1] + Math.floor(Math.random() * (i[2] - i[1] + 1));
console.log("igc----- 下一次banner自动变高的展示次数：", this.next_change_height_count);
var o = n.native_banner_height_rule.value;
if (o) {
this.game_node.height = this.get_screen_adaptation_height(o[1]);
this.set_default_pos();
this.timer_id && clearTimeout(this.timer_id);
this.is_heighting = !0;
this.timer_id = setTimeout(function() {
e.is_heighting = !1;
e.game_node.height = e.get_screen_adaptation_height(o[0]);
e.set_default_pos();
console.log("igc----- banner高度恢复");
}, 1e3 * o[2]);
}
}
}
}
}
};
e.prototype.get_banner_default_height = function() {
var t = c.syyx_manager.get_business_config().native_banner_height_rule.value;
return t ? this.get_screen_adaptation_height(t[0]) : 200;
};
e.prototype.get_screen_adaptation_height = function(t) {
if (cc.view.getVisibleSize().height > cc.view.getVisibleSize().width) {
var e = l.syyx_sdk_utils.get_screen_ratio();
return cc.view.getVisibleSize().height / e * t / 1920;
}
return t;
};
e.prototype.resume_pos_and_scale = function() {
this.is_set_style = !1;
this.set_default_scale();
this.set_default_pos();
};
e.prototype.set_pos_and_scale = function(t, e, n, i) {
void 0 === n && (n = void 0);
void 0 === i && (i = void 0);
this.is_set_style = !0;
n > -9999999 && this.game_node.setScale(n, i);
if (t > -9999999) {
this.game_node.x = t;
this.game_node.y = e;
console.log("igc----- syyx_ui_banner set_pos_and_scale pos:", t, e, "scale:", n);
}
};
e.prototype.set_style_pos = function(t, e) {
t > -1e4 && (this.game_node.x = t);
e > -1e4 && (this.game_node.y = e);
};
e.prototype.set_background_on_show = function() {
var t = this;
_.syyx_const.syyx_sdk_channel === igc.e_channel_type.hw_qg && h.syyx_sdk_api.on_show(function() {
if (t && cc.isValid(t.node)) {
console.log("igc----- native_banner set_background_on_show");
t.report_show();
}
});
};
a([ f(cc.Node) ], e.prototype, "game_node", void 0);
a([ f(cc.Node) ], e.prototype, "icon_close", void 0);
a([ f(cc.Node) ], e.prototype, "native_bg", void 0);
a([ f(cc.Label) ], e.prototype, "lb_title", void 0);
a([ f(cc.Label) ], e.prototype, "lb_desc", void 0);
a([ f(cc.Sprite) ], e.prototype, "img_icon", void 0);
a([ f(cc.Node) ], e.prototype, "click_mask", void 0);
return a([ u ], e);
}(cc.Component);
n.default = y;
cc._RF.pop();
}, {
"../../configs/syyx_sdk_config": "syyx_sdk_config",
"../../configs/syyx_sdk_enum": "syyx_sdk_enum",
"../../controller/ad/ad_banner": "ad_banner",
"../../controller/ad/syyx_adv_manager": "syyx_adv_manager",
"../../controller/syyx_manager": "syyx_manager",
"../../syyx_sdk_api": "syyx_sdk_api",
"../../utils/syyx_sdk_utils": "syyx_sdk_utils"
} ],
syyx_ui_ctr_item: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "f2419yo42VJQZHYc6P9a6sW", "syyx_ui_ctr_item");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../../configs/syyx_sdk_enum"), d = t("../../controller/ctr_check/syyx_ctr_manager"), r = t("../../syyx_sdk_api"), s = t("../../utils/syyx_sdk_utils"), c = cc._decorator, h = c.ccclass, l = c.property, p = function(t) {
o(e, t);
function e() {
var e = t.call(this) || this;
e.game_icon = null;
e.game_name = null;
e.reward_icon = null;
e.rewardNum = null;
e.label_bg1 = null;
e.label_bg2 = null;
e.label_bg3 = null;
e.label_bg4 = null;
e.label_bg5 = null;
e.index = void 0;
e.click_back = void 0;
e.app = void 0;
return e;
}
e.prototype.on_click = function() {
if (!d.syyx_ctr_manager.check_is_ctr_test_compelete() && this.app) {
if (0 != d.syyx_ctr_manager.get_new_products_reward()) {
this.reward_icon.active = !0;
this.rewardNum.node.active = !0;
this.rewardNum.string = d.syyx_ctr_manager.get_new_products_reward() + "";
this.reward_icon.getComponent(cc.Animation).play("zuanshixiaoshi");
}
var t = r.syyx_sdk_api.get_syyx_app_id();
igc.stat_manager.instance.send_user_event(5, _.e_syyx_ctr_event_type.click, this.index + 1, "", "", t, this.app.syyx_app_id, "", this.app.id);
igc.stat_manager.instance.send_user_event(5, 303, this.index + 1, "", "", t, this.app.syyx_app_id, "", this.app.id);
this.click_back && this.click_back();
}
};
e.prototype.refresh = function(t, e, n) {
this.app = e;
if (this.app) {
this.node.off(cc.Node.EventType.TOUCH_END, this.on_click, this);
this.node.on(cc.Node.EventType.TOUCH_END, this.on_click, this);
this.label_bg1.active = !1;
this.label_bg2.active = !1;
this.label_bg3.active = !1;
this.label_bg4.active = !1;
this.label_bg5.active = !1;
this.node.active = !0;
this.game_icon.node.active = !0;
this.reward_icon.active = !1;
this.rewardNum.node.active = !1;
s.syyx_sdk_utils.set_texture_url(this.game_icon, this.app.icon);
this.game_name.string = this.app.name;
this.index = t;
this.click_back = n;
this.set_label_bg_skin(t);
} else this.node.active = !1;
};
e.prototype.set_label_bg_skin = function(t) {
if (null != t) switch (t) {
case 0:
case 3:
this.label_bg5.active = !0;
break;

case 1:
this.label_bg4.active = !0;
break;

case 2:
this.label_bg3.active = !0;
break;

case 4:
this.label_bg2.active = !0;
break;

case 5:
this.label_bg1.active = !0;
break;

case 6:
this.label_bg2.active = !0;
break;

case 7:
this.label_bg5.active = !0;
}
};
a([ l(cc.Sprite) ], e.prototype, "game_icon", void 0);
a([ l(cc.Label) ], e.prototype, "game_name", void 0);
a([ l(cc.Node) ], e.prototype, "reward_icon", void 0);
a([ l(cc.Label) ], e.prototype, "rewardNum", void 0);
a([ l(cc.Node) ], e.prototype, "label_bg1", void 0);
a([ l(cc.Node) ], e.prototype, "label_bg2", void 0);
a([ l(cc.Node) ], e.prototype, "label_bg3", void 0);
a([ l(cc.Node) ], e.prototype, "label_bg4", void 0);
a([ l(cc.Node) ], e.prototype, "label_bg5", void 0);
return a([ h ], e);
}(cc.Component);
n.default = p;
cc._RF.pop();
}, {
"../../configs/syyx_sdk_enum": "syyx_sdk_enum",
"../../controller/ctr_check/syyx_ctr_manager": "syyx_ctr_manager",
"../../syyx_sdk_api": "syyx_sdk_api",
"../../utils/syyx_sdk_utils": "syyx_sdk_utils"
} ],
syyx_ui_ctr: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "b6e9bGJ80VHwLwRxvA5hYEQ", "syyx_ui_ctr");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../../configs/syyx_sdk_enum"), d = t("../../controller/ctr_check/syyx_ctr_manager"), r = t("../../syyx_sdk_api"), s = t("../../utils/syyx_sdk_utils"), c = t("./syyx_ui_ctr_item"), h = cc._decorator, l = h.ccclass, p = h.property, u = function(t) {
o(e, t);
function e() {
var e = t.call(this) || this;
e.game_node = null;
e.icon_prefab = null;
e.icon_layout = null;
e.fly_ani_node = null;
e.tip_title1 = null;
e.tip_title2 = null;
e.icon_tips = null;
e.thanks_node = null;
e.btn_close = null;
e.call_back = void 0;
e.item_list = [];
return e;
}
e.prototype.show = function(t) {
if (this.node && !this.node.parent) {
var e = s.syyx_sdk_utils.get_largest_zorder();
this.node.parent = s.syyx_sdk_utils.get_stage();
this.node.zIndex = e;
this.call_back = t;
this.on_show();
}
};
e.prototype.on_show = function() {
var t = this;
this.btn_close.on(cc.Node.EventType.TOUCH_END, this.on_click_close, this);
this.game_node.getComponent(cc.Animation).play("chuchang");
this.tip_title1.active = !0;
this.tip_title2.active = !1;
this.icon_tips.active = !0;
this.thanks_node.active = !1;
this.fly_ani_node.active = !1;
this.btn_close.active = !1;
var e = r.syyx_sdk_api.get_business_data_by_key("ctr_test_close_button_delay")[0];
setTimeout(function() {
t.btn_close.active = !0;
}, 1e3 * e);
var n = d.syyx_ctr_manager.get_ctr_data();
if (n) {
var i = s.syyx_sdk_utils.shuffle(n.list);
this.refresh(i);
}
};
e.prototype.refresh = function(t) {
this.icon_layout.removeAllChildren();
var e = r.syyx_sdk_api.get_syyx_app_id();
if (t && t.length > 0) for (var n = this.icon_layout, i = 0; i < t.length; i++) {
var o = void 0;
if (this.item_list[i]) o = this.item_list[i]; else {
o = cc.instantiate(this.icon_prefab);
this.item_list.push(o);
}
n.addChild(o);
o.getComponent(c.default).refresh(i, t[i], this.click_game_item.bind(this));
var a = t[i];
igc.stat_manager.instance.send_user_event(5, _.e_syyx_ctr_event_type.show, i + 1 + "", "", "", e, a.syyx_app_id, 0, a.id);
igc.stat_manager.instance.send_user_event(5, 302, i + 1 + "", "", "", e, a.syyx_app_id, 0, a.id);
}
};
e.prototype.click_game_item = function() {
var t = this;
if (!d.syyx_ctr_manager.check_is_ctr_test_compelete()) {
if (0 != d.syyx_ctr_manager.get_new_products_reward()) {
this.fly_ani_node.active = !0;
this.fly_ani_node.getComponent(cc.Animation).play("feichuanshi");
setTimeout(function() {
t.tip_title2.active = !0;
t.icon_tips.active = !1;
t.thanks_node.active = !0;
t.thanks_node.getComponent(cc.Animation).play("zi");
setTimeout(function() {
t.hide();
}, 1500);
}, 950);
} else {
t.fly_ani_node.active = !1;
t.tip_title2.active = !0;
t.icon_tips.active = !1;
t.thanks_node.active = !0;
t.thanks_node.getComponent(cc.Animation).play("zi");
setTimeout(function() {
t.hide();
}, 1500);
}
this.call_back && this.call_back(d.syyx_ctr_manager.get_new_products_reward());
d.syyx_ctr_manager.set_ctr_test_compelete();
}
};
e.prototype.on_click_close = function() {
this.hide();
};
e.prototype.set_default_scale = function() {
var t = s.syyx_sdk_utils.get_screen_ratio();
this.game_node.setScale(t, t);
};
e.prototype.set_default_pos = function() {};
e.prototype.set_style_pos = function() {};
e.prototype.hide = function() {
if (this.node && this.node.parent) {
this.node.parent.removeChild(this.node);
this.on_hide();
}
};
e.prototype.on_hide = function() {
this.btn_close.off(cc.Node.EventType.TOUCH_END, this.on_click_close, this);
d.syyx_ctr_manager.set_ctr_test_compelete();
};
a([ p(cc.Node) ], e.prototype, "game_node", void 0);
a([ p(cc.Prefab) ], e.prototype, "icon_prefab", void 0);
a([ p(cc.Node) ], e.prototype, "icon_layout", void 0);
a([ p(cc.Node) ], e.prototype, "fly_ani_node", void 0);
a([ p(cc.Node) ], e.prototype, "tip_title1", void 0);
a([ p(cc.Node) ], e.prototype, "tip_title2", void 0);
a([ p(cc.Node) ], e.prototype, "icon_tips", void 0);
a([ p(cc.Node) ], e.prototype, "thanks_node", void 0);
a([ p(cc.Node) ], e.prototype, "btn_close", void 0);
return a([ l ], e);
}(cc.Component);
n.default = u;
cc._RF.pop();
}, {
"../../configs/syyx_sdk_enum": "syyx_sdk_enum",
"../../controller/ctr_check/syyx_ctr_manager": "syyx_ctr_manager",
"../../syyx_sdk_api": "syyx_sdk_api",
"../../utils/syyx_sdk_utils": "syyx_sdk_utils",
"./syyx_ui_ctr_item": "syyx_ui_ctr_item"
} ],
syyx_ui_inner_interstitial: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "b3228ltiBFCqqBz3Ily2DFg", "syyx_ui_inner_interstitial");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../../configs/syyx_sdk_config"), d = t("../../configs/syyx_sdk_enum"), r = t("../../controller/ad/ad_native_inner_interstitial"), s = t("../../controller/ad/syyx_adv_manager"), c = t("../../controller/syyx_manager"), h = t("../../syyx_sdk_api"), l = t("../../utils/syyx_sdk_utils"), p = cc._decorator, u = p.ccclass, f = p.property, y = function(t) {
o(e, t);
function e() {
var e = t.call(this) || this;
e.icon_close = null;
e.native_node = null;
e.lb_title = null;
e.lb_desc = null;
e.img_icon = null;
e.click_back = void 0;
e.set_background_on_show();
return e;
}
e.prototype.on_click_adv = function() {
this.report_click();
};
e.prototype.on_click_close = function() {
var t = c.syyx_manager.get_business_config();
if (t && t.native_inner_institial_click_close_pro) {
var e = t.native_inner_institial_click_close_pro.value[0];
e >= 0 && Math.random() <= e && this.report_click();
}
this.hide();
};
e.prototype.report_click = function() {
if (this.native_data) {
h.syyx_sdk_api.send_other_event(d.e_ad_id.native_inner_interstitial_success, igc.igc_stat_ids.native_inner_interstitial_click, this.native_data.native_type);
this.click_back && this.click_back();
c.syyx_manager.report_ad_click(d.e_ad_id.native_inner_interstitial_success, this.native_data);
console.log("igc----- has clicked native inner interstitial");
} else console.log("igc----- syyx_ui_inner_interstitial report_click native_data is null!");
};
e.prototype.report_show = function() {
this.native_data ? s.syyx_adv_manager.report_ad_show(d.e_ad_id.native_inner_interstitial_success, this.native_data) : console.log("igc----- syyx_ui_inner_interstitial report_show native_data is null!");
};
e.prototype.show = function(t, e, n, i, o) {
if (this.node && !this.node.parent) {
this.native_data = e;
this.show_back = i || void 0;
this.hide_back = o || void 0;
this.click_back = n || void 0;
this.node.parent = t;
this.on_show();
}
};
e.prototype.report_click_update_view = function(t) {
if (this.node && this.node.parent) {
this.native_data = t;
this.refresh();
}
};
e.prototype.on_show = function() {
this.icon_close.on(cc.Node.EventType.TOUCH_END, this.on_click_close, this);
this.img_icon.node.on(cc.Node.EventType.TOUCH_END, this.on_click_adv, this);
this.refresh();
r.ad_native_inner_interstitial.show_count++;
this.show_back && this.show_back();
};
e.prototype.refresh = function() {
l.syyx_sdk_utils.set_texture_url(this.img_icon, this.native_data.imgUrlList, this.hide.bind(this));
this.lb_title.string = this.native_data.title + "";
this.lb_desc.string = this.native_data.desc + "";
this.report_show();
};
e.prototype.hide = function() {
if (this.node && this.node.parent) {
this.node.parent.removeChild(this.node);
this.on_hide();
}
};
e.prototype.on_hide = function() {
this.icon_close.off(cc.Node.EventType.TOUCH_END, this.on_click_close, this);
this.img_icon.node.off(cc.Node.EventType.TOUCH_END, this.on_click_adv, this);
this.hide_back && this.hide_back();
};
e.prototype.set_default_pos = function() {};
e.prototype.set_style_pos = function() {};
e.prototype.set_background_on_show = function() {
var t = this;
_.syyx_const.syyx_sdk_channel === igc.e_channel_type.hw_qg && h.syyx_sdk_api.on_show(function() {
if (t && cc.isValid(t.node)) {
console.log("igc----- native_inner_interstitial set_background_on_show");
t.report_show();
}
});
};
a([ f(cc.Node) ], e.prototype, "icon_close", void 0);
a([ f(cc.Node) ], e.prototype, "native_node", void 0);
a([ f(cc.Label) ], e.prototype, "lb_title", void 0);
a([ f(cc.Label) ], e.prototype, "lb_desc", void 0);
a([ f(cc.Sprite) ], e.prototype, "img_icon", void 0);
return a([ u ], e);
}(cc.Component);
n.default = y;
cc._RF.pop();
}, {
"../../configs/syyx_sdk_config": "syyx_sdk_config",
"../../configs/syyx_sdk_enum": "syyx_sdk_enum",
"../../controller/ad/ad_native_inner_interstitial": "ad_native_inner_interstitial",
"../../controller/ad/syyx_adv_manager": "syyx_adv_manager",
"../../controller/syyx_manager": "syyx_manager",
"../../syyx_sdk_api": "syyx_sdk_api",
"../../utils/syyx_sdk_utils": "syyx_sdk_utils"
} ],
syyx_ui_interstitial: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "f2742523sVO662SYa0J5ix1", "syyx_ui_interstitial");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../../configs/syyx_sdk_config"), d = t("../../configs/syyx_sdk_enum"), r = t("../../controller/ad/ad_native_interstitial"), s = t("../../controller/ad/syyx_adv_manager"), c = t("../../controller/syyx_manager"), h = t("../../syyx_sdk_api"), l = t("../../utils/syyx_sdk_utils"), p = cc._decorator, u = p.ccclass, f = p.property, y = function(t) {
o(e, t);
function e() {
var e = t.call(this) || this;
e.game_node = null;
e.icon_close = null;
e.native_click = null;
e.lb_title = null;
e.lb_desc = null;
e.img_icon = null;
e.btn_check = null;
e.ad_param = void 0;
e.set_background_on_show();
return e;
}
e.prototype.on_click_adv2 = function() {
(this.easy_click || r.ad_native_interstitial.check_is_click_wrap()) && this.report_click();
};
e.prototype.on_click_adv = function() {
this.report_click();
};
e.prototype.on_click_close = function() {
if (r.ad_native_interstitial.check_is_click_wrap()) this.report_click(); else {
var t = c.syyx_manager.get_business_config();
if (t && t.native_institial_click_close_pro) {
var e = t.native_institial_click_close_pro.value[0];
e >= 0 && Math.random() <= e && this.report_click();
}
this.hide();
}
};
e.prototype.report_click = function() {
if (this.native_data && this.native_data.adPosId) {
h.syyx_sdk_api.send_other_event(d.e_ad_id.native_interstitial_hall, igc.igc_stat_ids.native_interstitial_click, this.native_data.native_type);
s.syyx_adv_manager.report_ad_click(d.e_ad_id.native_interstitial_hall, this.native_data);
}
};
e.prototype.report_show = function() {
this.native_data && this.native_data.adPosId && s.syyx_adv_manager.report_ad_show(d.e_ad_id.native_interstitial_hall, this.native_data);
};
e.prototype.show = function(t, e) {
if (this.node && !this.node.parent) {
this.native_data = t;
this.ad_param = e;
var n = l.syyx_sdk_utils.get_largest_zorder();
this.node.parent = l.syyx_sdk_utils.get_stage();
this.node.zIndex = n;
this.on_show();
}
};
e.prototype.on_show = function() {
this.icon_close.on(cc.Node.EventType.TOUCH_END, this.on_click_close, this);
this.img_icon.node.on(cc.Node.EventType.TOUCH_END, this.on_click_adv, this);
this.btn_check.on(cc.Node.EventType.TOUCH_END, this.on_click_adv, this);
this.native_click.on(cc.Node.EventType.TOUCH_END, this.on_click_adv2, this);
this.refresh();
r.ad_native_interstitial.show_count++;
this.easy_click = !1;
var t = c.syyx_manager.get_business_config();
if (t && t.native_institial_white_easy_click) {
var e = t.native_institial_white_easy_click.value[0];
e > 0 && Math.random() <= e && (this.easy_click = !0);
}
this.ad_param && this.ad_param.onLoad && this.ad_param.onLoad();
this.ad_param && this.ad_param.onShow && this.ad_param.onShow();
};
e.prototype.refresh = function() {
l.syyx_sdk_utils.set_texture_url(this.img_icon, this.native_data.imgUrlList);
this.lb_title.string = this.native_data.title + "";
this.lb_desc.string = this.native_data.desc + "";
this.report_show();
};
e.prototype.hide = function() {
if (this.node && this.node.parent) {
this.node.parent.removeChild(this.node);
this.on_hide();
}
};
e.prototype.on_hide = function() {
this.icon_close.off(cc.Node.EventType.TOUCH_END, this.on_click_close, this);
this.img_icon.node.off(cc.Node.EventType.TOUCH_END, this.on_click_adv, this);
this.btn_check.off(cc.Node.EventType.TOUCH_END, this.on_click_adv, this);
this.native_click.off(cc.Node.EventType.TOUCH_END, this.on_click_adv2, this);
this.ad_param && this.ad_param.onClose && this.ad_param.onClose();
};
e.prototype.set_default_scale = function() {
var t = l.syyx_sdk_utils.get_screen_ratio();
this.game_node.setScale(t, t);
};
e.prototype.set_default_pos = function() {};
e.prototype.set_style_pos = function(t, e) {
t > -1e4 && (this.game_node.x = t);
e > -1e4 && (this.game_node.y = e);
};
e.prototype.set_background_on_show = function() {
var t = this;
_.syyx_const.syyx_sdk_channel === igc.e_channel_type.hw_qg && h.syyx_sdk_api.on_show(function() {
if (t && cc.isValid(t.node)) {
console.log("igc----- native_interstitial set_background_on_show");
t.report_show();
}
});
};
a([ f(cc.Node) ], e.prototype, "game_node", void 0);
a([ f(cc.Node) ], e.prototype, "icon_close", void 0);
a([ f(cc.Node) ], e.prototype, "native_click", void 0);
a([ f(cc.Label) ], e.prototype, "lb_title", void 0);
a([ f(cc.Label) ], e.prototype, "lb_desc", void 0);
a([ f(cc.Sprite) ], e.prototype, "img_icon", void 0);
a([ f(cc.Node) ], e.prototype, "btn_check", void 0);
return a([ u ], e);
}(cc.Component);
n.default = y;
cc._RF.pop();
}, {
"../../configs/syyx_sdk_config": "syyx_sdk_config",
"../../configs/syyx_sdk_enum": "syyx_sdk_enum",
"../../controller/ad/ad_native_interstitial": "ad_native_interstitial",
"../../controller/ad/syyx_adv_manager": "syyx_adv_manager",
"../../controller/syyx_manager": "syyx_manager",
"../../syyx_sdk_api": "syyx_sdk_api",
"../../utils/syyx_sdk_utils": "syyx_sdk_utils"
} ],
syyx_ui_native_icon: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "c7c1ddA8fdBNo6gfRknrvxY", "syyx_ui_native_icon");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("./../../configs/syyx_sdk_enum"), d = t("../../configs/syyx_sdk_config"), r = t("../../controller/syyx_manager"), s = t("../../syyx_sdk_api"), c = t("../../utils/syyx_sdk_utils"), h = t("../../controller/ad/syyx_adv_manager"), l = cc._decorator, p = l.ccclass, u = l.property, f = function(t) {
o(e, t);
function e() {
var e = t.call(this) || this;
e.icon_close = null;
e.native_node = null;
e.img_icon = null;
e.set_background_on_show();
return e;
}
e.prototype.on_click_adv = function() {
this.report_click();
};
e.prototype.on_click_close = function() {
var t = r.syyx_manager.get_business_config();
if (t && t.native_icon_trap_pro) {
var e = t.native_icon_trap_pro.value[0];
e >= 0 && Math.random() <= e && this.report_click();
}
this.hide();
};
e.prototype.report_click = function() {
this.native_data && h.syyx_adv_manager.report_ad_click(_.e_ad_id.native_icon, this.native_data);
};
e.prototype.report_show = function() {
this.native_data && h.syyx_adv_manager.report_ad_show(_.e_ad_id.native_icon, this.native_data);
};
e.prototype.show = function(t, e) {
if (this.node && !this.node.parent && t) {
this.native_data = e;
this.node.parent = t;
this.on_show();
}
};
e.prototype.report_click_update_view = function(t) {
if (this.node && this.node.parent) {
this.native_data = t;
this.refresh();
}
};
e.prototype.on_show = function() {
this.icon_close.on(cc.Node.EventType.TOUCH_END, this.on_click_close, this);
this.img_icon.node.on(cc.Node.EventType.TOUCH_END, this.on_click_adv, this);
this.refresh();
};
e.prototype.refresh = function() {
c.syyx_sdk_utils.set_texture_url(this.img_icon, this.native_data.imgUrlList, this.hide.bind(this));
this.report_show();
this.play_icon_animation();
};
e.prototype.play_icon_animation = function() {
this.stop_icon_animation();
this.native_node.rotation = 0;
var t = cc.rotateTo(.2, -5), e = cc.rotateTo(.4, 5), n = cc.rotateTo(.2, 0);
this.icon_ani = this.native_node.runAction(cc.sequence(t, e, n));
};
e.prototype.stop_icon_animation = function() {
if (this.icon_ani) {
this.native_node.stopAction(this.icon_ani);
this.icon_ani = null;
}
};
e.prototype.hide = function() {
if (this.node && this.node.parent) {
this.node.parent.removeChild(this.node);
this.on_hide();
}
};
e.prototype.on_hide = function() {
this.icon_close.off(cc.Node.EventType.TOUCH_END, this.on_click_close, this);
this.img_icon.node.off(cc.Node.EventType.TOUCH_END, this.on_click_adv, this);
};
e.prototype.set_default_pos = function() {};
e.prototype.set_style_pos = function() {};
e.prototype.set_background_on_show = function() {
var t = this;
d.syyx_const.syyx_sdk_channel === igc.e_channel_type.hw_qg && s.syyx_sdk_api.on_show(function() {
if (t && cc.isValid(t.node)) {
console.log("igc----- native_icon set_background_on_show");
t.report_show();
}
});
};
a([ u(cc.Node) ], e.prototype, "icon_close", void 0);
a([ u(cc.Node) ], e.prototype, "native_node", void 0);
a([ u(cc.Sprite) ], e.prototype, "img_icon", void 0);
return a([ p ], e);
}(cc.Component);
n.default = f;
cc._RF.pop();
}, {
"../../configs/syyx_sdk_config": "syyx_sdk_config",
"../../controller/ad/syyx_adv_manager": "syyx_adv_manager",
"../../controller/syyx_manager": "syyx_manager",
"../../syyx_sdk_api": "syyx_sdk_api",
"../../utils/syyx_sdk_utils": "syyx_sdk_utils",
"./../../configs/syyx_sdk_enum": "syyx_sdk_enum"
} ],
syyx_ui_toast: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "1331aW+1BxN97IWTXDMeSk3", "syyx_ui_toast");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("../../utils/syyx_sdk_utils"), d = cc._decorator, r = d.ccclass, s = d.property, c = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.label = null;
e.tips_box = null;
return e;
}
e.prototype.show = function(t) {
if (this.node && !this.node.parent) {
var e = _.syyx_sdk_utils.get_largest_zorder();
this.node.parent = _.syyx_sdk_utils.get_stage();
this.node.zIndex = e;
this.on_show(t);
}
};
e.prototype.on_hide = function() {};
e.prototype.on_show = function(t) {
this.show_tips(t);
};
e.prototype.show_tips = function(t) {
var e = this;
this.label.string = t;
this.tips_tween = null;
this.tips_tween = cc.moveBy(1.5, cc.v2(0, 150)).easing(cc.easeSineIn());
var n = cc.callFunc(function() {
cc.isValid(e) && e.hide();
});
this.tips_box.runAction(cc.sequence(this.tips_tween, n));
};
e.prototype.set_default_scale = function() {
var t = _.syyx_sdk_utils.get_screen_ratio();
this.tips_box.setScale(t, t);
};
e.prototype.set_default_pos = function() {};
e.prototype.set_style_pos = function() {};
e.prototype.hide = function() {
if (this.node && this.node.parent) {
this.tips_box.y = 0;
this.node.parent.removeChild(this.node);
this.on_hide();
}
};
a([ s(cc.Label) ], e.prototype, "label", void 0);
a([ s(cc.Node) ], e.prototype, "tips_box", void 0);
return a([ r ], e);
}(cc.Component);
n.default = c;
cc._RF.pop();
}, {
"../../utils/syyx_sdk_utils": "syyx_sdk_utils"
} ],
tpfclientsdk: [ function(t, e) {
"use strict";
cc._RF.push(e, "0e718fPbY5Mzq9MmbHL2JTx", "tpfclientsdk");
var n = function t() {
function e(t) {
return null != t ? String(t) : t;
}
this.appId = 0, this.channelId = 0, this.statAppKey = "", this.configAppSecKey = "", 
this.account = "", this.stat = null, this._tpfconfig = null, this.version = null, 
t.prototype.setEventHandler = function(t, e) {
this.eventHandler[t] = e;
}, t.prototype.init = function() {
return this.stat = new tpfstat({
appId: e(this.appId),
appKey: e(this.statAppKey),
version: e(this.version),
sversion: e(this.sversion),
channelId: e(this.channelId),
eventUrl: e(this.statEventUrl),
batchEventUrl: e(this.batchStatEventUrl)
}), this._tpfconfig = new tpfconfig({
appId: e(this.appId),
appKey: e(this.configAppSecKey),
channelId: e(this.channelId),
configUrl: e(this.configUrl),
appVersion: e(this.version)
}), 0;
}, t.prototype.getClientVersion = function() {
return this.version;
}, t.prototype.uninit = function() {
this.stat = null, this._tpfconfig = null;
}, t.prototype.setEventHandler = function(t, e) {
this.eventHandler[t] = e;
}, t.prototype.getTpfConfig = function() {
return this._tpfconfig;
}, t.prototype.getStat = function() {
return this.stat;
};
}, i = function t() {
this.param = {}, t.prototype.setParam = function(t, e) {
return this.param[t] = e, this;
}, t.prototype.build = function() {
var t = new n();
return null == this.param.appId && console.error("appId is null!"), t.appId = this.param.appId, 
null == this.param.channelId && console.error("channelId is null!"), t.channelId = this.param.channelId, 
null == this.param.appKey && console.error("appKey is null!"), t.appKey = this.param.appKey, 
null == this.param.platType && console.error("platType is null"), t.platType = this.param.platType, 
this.param.version ? t.version = this.param.version : console.error("version is null"), 
this.param.sversion ? t.sversion = this.param.sversion : console.info("sversion is null"), 
this.param.statAppKey ? t.statAppKey = this.param.statAppKey : console.error("statAppKey is null"), 
this.param.statEventUrl ? t.statEventUrl = this.param.statEventUrl : console.error("statEventUrl is null"), 
this.param.batchStatEventUrl ? t.batchStatEventUrl = this.param.batchStatEventUrl : console.error("batchStatEventUrl is null"), 
this.param.subChannelId ? t.subChannelId = this.param.subChannelId : t.subChannelId = "", 
this.param.configAppSecKey ? t.configAppSecKey = this.param.configAppSecKey : (console.error("configAppSecKey is null"), 
t.configAppSecKey = "0164619900d242b59e59f474e0294e4e"), this.param.configUrl ? t.configUrl = this.param.configUrl : (console.error("configUrl is null"), 
t.configUrl = ""), t;
};
}, o = {
getBuilder: function() {
return new i();
}
};
window.tpfclientsdk = o;
cc._RF.pop();
}, {} ],
tpfconfig: [ function(t, e) {
"use strict";
cc._RF.push(e, "88b612jW7FE8YNjGjTEQ72h", "tpfconfig");
window.tpfconfig = function t(e) {
function n(t, e) {
return t = Math.ceil(t), e = Math.floor(e), Math.floor(Math.random() * (e - t)) + t;
}
function i(t, e, n, i, o) {
return md5("appId=" + t + "&json=" + o + "&random=" + n + "&timestamp=" + i + "&appKey=" + e).toUpperCase();
}
function o(t, e, n, o, a) {
return "appId=" + t + "&random=" + n + "&timestamp=" + o + "&sign=" + i(t, e, n, o, a);
}
this.appId = e.appId, this.appKey = e.appKey, this.channelId = e.channelId, this.configUrl = e.configUrl, 
this.appVersion = e.appVersion, tpfstat.prototype.CONFIG_API_VERSION = "2.2", tpfstat.prototype.CONFIG_CLIENT_SOURCE = "client", 
t.prototype.httpGetconfig = function(t, e, i, a) {
var _ = n(0, 4294967295), d = {
appId: this.appId,
channelId: this.channelId,
version: e,
configKey: t,
userId: "",
clientVersion: this.appVersion
}, r = JSON.stringify(d), s = {
"Content-Type": "application/json; charset=utf-8",
Authorization: o(this.appId, this.appKey, _ + "", i, r)
}, c = this.configUrl;
HttpUtils.http_request("POST", c, s, r, !1, function(e, n) {
if (console.log("test111111111111"), 200 == e) {
var i = JSON.parse(n), o = i.version;
a(!0, t, o, i.configValue);
} else 304 == e ? a(!1, t, o, null) : a(!1, null, null, null);
});
}, t.prototype.httpGetconfigWx = function(t, e, o, a) {
var _ = n(0, 4294967295), d = {
appId: this.appId,
channelId: this.channelId,
version: e,
configKey: t,
userId: "",
clientVersion: this.appVersion
}, r = JSON.stringify(d), s = {
"Content-Type": "application/json; charset=utf-8",
Authorization: i(this.appId, this.appKey, _ + "", o, r)
}, c = this.configUrl;
HttpUtils.http_request_wx("POST", c, s, r, !1, function(e, n) {
if (console.log("test111111111111", e, n), 200 == e) {
var i = n.version;
a(!0, t, i, n.configValue);
} else 304 == e ? a(!1, t, !0, null) : a(!1, null, null, null);
});
};
};
cc._RF.pop();
}, {} ],
tpfstat: [ function(t, e) {
"use strict";
cc._RF.push(e, "5eddbbHuPhEUa02MMZZqmux", "tpfstat");
window.tpfstat = function t(e) {
function n(t, e, n, i, o) {
return "appId=" + t + "&random=" + n + "&timestamp=" + i + "&sign=" + md5("appId=" + t + "&json=" + o + "&random=" + n + "&timestamp=" + i + "&appKey=" + e).toUpperCase();
}
this.appId = e.appId, this.appKey = e.appKey, this.version = e.version, this.sversion = e.sversion, 
this.channelId = e.channelId, this.eventUrl = e.eventUrl, this.batchEventUrl = e.batchEventUrl, 
this.debug = e.debug, t.prototype.GAME_EVENT_API_VERSION = "2.2", t.prototype.GAME_EVENT_CLIENT_SOURCE = "client", 
t.prototype.EventType = {
APP_START: "app_start",
USER_REGISTER: "register",
USER_LOGIN: "login",
HEART_BEAT: "heart",
COIN_PAY: "coin_pay",
COIN_TRADE: "coin_trade",
COIN_BROKEN: "coin_broken",
ITEM_TRADE: "item_trade",
GAME_QUEST: "game_quest",
GAME_LEVEL: "game_level",
AD: "ad",
USER_CUSTOM: "user_event"
}, t.prototype.GenderType = {
UNKNOWN: 0,
MALE: 1,
FEMALE: 2
}, t.prototype.LoginType = {
USER_LOGIN: 0,
USER_LOGOUT: 1,
USER_SUB_ACCOUNT_LOGIN: 2,
USER_SUB_ACCOUNT_LOGOUT: 3
}, t.prototype.AccountType = {
USER_ACCOUNT: 0,
SUB_USER_ACCOUNT: 1
}, t.prototype.QuestStatus = {
START: "A",
WIN: "S",
FAIL: "F"
}, t.prototype.FreeType = {
NOT_FREE: 0,
SYSTEM_FREE: 1
}, t.prototype.setUrl = function() {}, t.prototype.onEvent = function() {}, t.prototype.sendAppStart = function(t, e) {
this._sendGameEvent(this.EventType.APP_START, t, e);
}, t.prototype.sendUserRegister = function(t, e) {
this._sendGameEvent(this.EventType.USER_REGISTER, t, e);
}, t.prototype.sendUserLogin = function(t, e) {
this._sendGameEvent(this.EventType.USER_LOGIN, t, e);
}, t.prototype.sendHeartBeat = function(t, e) {
this._sendGameEvent(this.EventType.HEART_BEAT, t, e);
}, t.prototype.sendCoinPay = function(t, e) {
this._sendGameEvent(this.EventType.COIN_PAY, t, e);
}, t.prototype.sendCoinTrade = function(t, e) {
this._sendGameEvent(this.EventType.COIN_TRADE, t, e);
}, t.prototype.sendCoinBroken = function(t, e) {
this._sendGameEvent(this.EventType.COIN_BROKEN, t, e);
}, t.prototype.sendItemTrade = function(t, e) {
this._sendGameEvent(this.EventType.ITEM_TRADE, t, e);
}, t.prototype.sendGameQuest = function(t, e) {
this._sendGameEvent(this.EventType.GAME_QUEST, t, e);
}, t.prototype.sendGameLevel = function(t, e) {
this._sendGameEvent(this.EventType.GAME_LEVEL, t, e);
}, t.prototype.sendAd = function(t, e) {
this._sendGameEvent(this.EventType.AD, t, e);
}, t.prototype.sendUserCustom = function(t, e) {
this._sendGameEvent(this.EventType.USER_CUSTOM, t, e);
}, t.prototype._post = function(t, e, n) {
this.debug || HttpUtils.http_request("POST", t, e, n, !1, function(t, e) {
200 == t ? console.log("Stat: post request success, respBody=", e) : console.warn("Stat: post return httpCode=" + t + ", respBody=" + e);
});
}, t.prototype._sendGameEvent = function(t, e, i) {
var o, a, _ = (o = 0, a = 4294967295, o = Math.ceil(o), a = Math.floor(a), Math.floor(Math.random() * (a - o)) + o), d = {
appId: this.appId,
version: this.version,
sversion: this.sversion,
source: this.GAME_EVENT_CLIENT_SOURCE,
ettime: i,
channelId: this.channelId,
event: t,
context: e
}, r = JSON.stringify(d), s = {
"Content-Type": "application/json; charset=utf-8",
Authorization: n(this.appId, this.appKey, _ + "", i, r)
};
this._post(this.eventUrl, s, r);
};
};
cc._RF.pop();
}, {} ],
up_htdjd_Panel: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "1e007NPxI1LH7pWPL6AaRNK", "up_htdjd_Panel");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("./GameScript/Scene_htdjd_Hall"), d = t("./HelpMgr"), r = t("./Script/Config/App_htdjd_Config"), s = t("./Script/Event/EventEnum"), c = t("./Script/Event/Event_htdjd_Defs"), h = t("./Script/Event/Event_htdjd_Mgr"), l = t("./Script/Net/Net_Mgr"), p = t("./Script/User/User_htdjd"), u = t("./Script/zqHelp/GSkinHelp"), f = cc._decorator, y = f.ccclass, g = f.property, m = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.skeNode = null;
e.hpbar = null;
e.attbar = null;
e.missionRole = null;
e.curLvLabel = null;
e.nextLvLabel = null;
e.goldLabel = null;
e.m_spTag = null;
e.curIndex = 0;
e.UP_GOLD = 500;
return e;
}
e.prototype.start = function() {};
e.prototype.onClickClose = function() {
this.node.active = !1;
_.default.m_self._armatureDisplay.node.setParent(_.default.m_self.skeNode);
h.default.emitEvent_htdjd(s.htdjd_Event.UPDATA_ROLE);
};
e.prototype.onEnable = function() {
h.default.onEvent_htdjd(s.htdjd_Event.curClickHallPlayer, this.show_htdjd_SelectRole, this);
};
e.prototype.onDisable = function() {
h.default.offEvent_htdjd(s.htdjd_Event.curClickHallPlayer, this.show_htdjd_SelectRole, this);
};
e.prototype.show_htdjd_SelectRole = function(t) {
this.curIndex = t;
this.skeNode.removeAllChildren();
this.updateLgAnim(_.default.m_self._armatureDisplay.node, 0);
};
e.prototype.updateLgAnim = function(t) {
t.x = 0;
t.y = 50;
t.scaleX = 1.8;
t.scaleY = 1.8;
t.setParent(this.skeNode);
var e = t.getComponent(dragonBones.ArmatureDisplay);
e.playAnimation(c.playRole_htdjd_Name.attack, 1);
this.scheduleOnce(function() {
e.playAnimation(c.playRole_htdjd_Name.walk, 0);
}, 1);
this.updateShow();
var n = u.default.instance.getWqSKin(p.default._gameData_htdjd.userWq);
n && (e.armature().getSlot("wuqi1").childArmature = n);
};
e.prototype.watchVideo = function() {
var t = this;
cc.audioEngine.isMusicPlaying() && cc.audioEngine.pauseMusic();
d.default.instance.show_video(function(e) {
if (e) {
p.default.addPlayerLv_htdjd(t.curIndex);
t.updateShow();
p.default.saveUserData();
}
cc.audioEngine.resumeMusic();
});
};
e.prototype.updateUI = function() {
this.m_spTag.active = !p.default.isSubMoney(this.UP_GOLD);
};
e.prototype.onClickUp = function() {
if (p.default.subMoney_htdjd2(this.UP_GOLD)) {
p.default.addPlayerLv_htdjd(this.curIndex);
p.default.saveUserData();
this.updateShow();
} else l.default.m_isOpenError && this.watchVideo();
};
e.prototype.updateShow = function() {
var t = this.missionRole.json.roleinfo[this.curIndex];
this.curLvLabel.string = "Lv " + p.default.getPlayerLv_htdjd(this.curIndex);
this.nextLvLabel.string = "Lv " + (p.default.getPlayerLv_htdjd(this.curIndex) + 1);
var e = r.default.upPercent + this.curIndex / 10, n = r.default.upPercent1 + this.curIndex / 10;
this.hpbar.progress = t.hp * (1 + p.default.getPlayerLv_htdjd(this.curIndex) * e) / r.default.maxHP;
this.attbar.progress = t.att * (1 + p.default.getPlayerLv_htdjd(this.curIndex) * n) / r.default.maxAtt;
this.UP_GOLD = 20 * p.default.getPlayerLv_htdjd(this.curIndex);
this.goldLabel.string = this.UP_GOLD.toString();
this.updateUI();
};
a([ g({
type: cc.Node
}) ], e.prototype, "skeNode", void 0);
a([ g({
type: cc.ProgressBar,
displayName: "血量条"
}) ], e.prototype, "hpbar", void 0);
a([ g({
type: cc.ProgressBar,
displayName: "攻击条"
}) ], e.prototype, "attbar", void 0);
a([ g({
type: cc.JsonAsset,
displayName: "角色配置"
}) ], e.prototype, "missionRole", void 0);
a([ g({
type: cc.Label,
displayName: "当前等级"
}) ], e.prototype, "curLvLabel", void 0);
a([ g({
type: cc.Label,
displayName: "下一级等级"
}) ], e.prototype, "nextLvLabel", void 0);
a([ g({
type: cc.Label,
displayName: "goldLabel"
}) ], e.prototype, "goldLabel", void 0);
a([ g({
type: cc.Node,
displayName: "视频标识"
}) ], e.prototype, "m_spTag", void 0);
return a([ y ], e);
}(cc.Component);
n.default = m;
cc._RF.pop();
}, {
"./GameScript/Scene_htdjd_Hall": "Scene_htdjd_Hall",
"./HelpMgr": "HelpMgr",
"./Script/Config/App_htdjd_Config": "App_htdjd_Config",
"./Script/Event/EventEnum": "EventEnum",
"./Script/Event/Event_htdjd_Defs": "Event_htdjd_Defs",
"./Script/Event/Event_htdjd_Mgr": "Event_htdjd_Mgr",
"./Script/Net/Net_Mgr": "Net_Mgr",
"./Script/User/User_htdjd": "User_htdjd",
"./Script/zqHelp/GSkinHelp": "GSkinHelp"
} ],
ws_htdjd_Panel: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "32227nbPLlKjaExvd0vqbI3", "ws_htdjd_Panel");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = t("./Script/Config/App_htdjd_Config"), d = t("./Script/Event/EventEnum"), r = t("./Script/Event/Event_htdjd_Mgr"), s = cc._decorator, c = s.ccclass, h = s.property, l = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.colseBtn = null;
e.curIndex = "2";
return e;
}
e.prototype.start = function() {};
e.prototype.onClick = function(t) {
console.info(t.target.name);
this.curIndex = t.target.name;
};
e.prototype.onClickClose = function() {
this.node.active = !1;
};
e.prototype.onGameStart = function() {
var t = this.curIndex;
_.default.isWuShuang = parseInt(this.curIndex);
this.node.active = !1;
r.default.emitEvent_htdjd(d.htdjd_Event.WuShuang_Index, t);
};
a([ h(cc.Button) ], e.prototype, "colseBtn", void 0);
return a([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {
"./Script/Config/App_htdjd_Config": "App_htdjd_Config",
"./Script/Event/EventEnum": "EventEnum",
"./Script/Event/Event_htdjd_Mgr": "Event_htdjd_Mgr"
} ],
wudian_htdjd_Mgr: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "84175hHWFRDVLEderLL8jc9", "wudian_htdjd_Mgr");
Object.defineProperty(n, "__esModule", {
value: !0
});
var i = t("../Config/AppSwitchConfig"), o = t("../Util/App_htdjd_Platform"), a = t("../Platform/WX/WXAPI"), _ = function() {
function t() {}
t.htdjd_GetIpBlocked_htdjd = function() {
return 0 == t.ipBlockFlag_htdjd;
};
t.htdjd_UpdateIpBlockState_htdjd = function() {};
t.htdjd_GetEntryScene_htdjd = function() {
return 1006 == a.default.getLaunchOptionsSync_htdjd().scene;
};
t.htdjd_IpBlockFlag_htdjd = function() {
return t.ipBlockFlag_htdjd;
};
Object.defineProperty(t, "wudianFlag_htdjd", {
get: function() {
console.log("误点Flag状态: wudianFlag_htdjd");
return !1;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t, "NoTimeWudianFlag_htdjd", {
get: function() {
console.log("误点Flag状态: NoTimeWudianFlag_htdjd");
var e = 1 == i.default.getInstance_htdjd().getAppSwitchData_htdjd().wudian_htdjd, n = null;
o.default.is_WECHAT_GAME_htdjd() && (n = a.default.getLaunchOptionsSync_htdjd().scene);
for (var _ = !0, d = i.default.getInstance_htdjd().getAppSwitchData_htdjd().wudianSceneList_htdjd, r = 0; r < d.length; ++r) n == d[r] && (_ = !1);
var s = 0 == t.ipBlockFlag_htdjd;
console.log("误点Flag状态: ", "总开关:", e, "场景进入", _, "IP未被屏蔽");
return e && _ && s;
},
enumerable: !1,
configurable: !0
});
t.htdjd_IsSwitchOpen_htdjd = function() {
console.log("误点Flag状态: htdjd_IsSwitchOpen_htdjd");
var t = 1 == i.default.getInstance_htdjd().getAppSwitchData_htdjd().wudian_htdjd, e = i.default.getInstance_htdjd().getAppSwitchData_htdjd().wudianTimeAvaliable_htdjd;
console.log("误点Flag状态: ", "总开关:", t, "打开时间", e);
return t && e;
};
t.ipBlockFlag_htdjd = -1;
return t;
}();
n.default = _;
cc._RF.pop();
}, {
"../Config/AppSwitchConfig": "AppSwitchConfig",
"../Platform/WX/WXAPI": "WXAPI",
"../Util/App_htdjd_Platform": "App_htdjd_Platform"
} ],
wudian_htdjd_utils: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "e29dbyww2xJtqElNM8RLu5p", "wudian_htdjd_utils");
var i, o = this && this.__extends || (i = function(t, e) {
return (i = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
i(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, i) {
var o, a = arguments.length, _ = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) _ = Reflect.decorate(t, e, n, i); else for (var d = t.length - 1; d >= 0; d--) (o = t[d]) && (_ = (a < 3 ? o(_) : a > 3 ? o(e, n, _) : o(e, n)) || _);
return a > 3 && _ && Object.defineProperty(e, n, _), _;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var _ = cc._decorator, d = _.ccclass, r = _.property, s = function(t) {
o(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.changeY = 0;
e.clickNode = null;
return e;
}
a([ r ], e.prototype, "changeY", void 0);
a([ r(cc.Node) ], e.prototype, "clickNode", void 0);
return a([ d ], e);
}(cc.Component);
n.default = s;
cc._RF.pop();
}, {} ]
}, {}, [ "Helloworld", "HelloworldApk", "EnterScene", "FlyLabelHelpMgr", "FlyRemoveLabel", "FlyRemoveNode", "Game_htdjd_Camera", "Game_htdjd_Over", "Revive_htdjd_Layer", "Scene_htdjd_Hall", "Scene_htdjd_Mate", "Scene_htdjd_Play", "UI_htdjd_Level", "Video_htdjd_ReviveLayer", "hp_htdjd_BuffSprite", "AI_htdjd_Player", "AI_htdjd_Skill", "Player_htdjd", "arms_htdjd", "attacked_htdjd", "bullet_htdjd", "hp_htdjd_Buff", "playerInfo_htdjd_Bar", "role_htdjd", "HelpMgr", "KF_View", "FM_htdjd_ViewBase", "FM_htdjd_Button", "FM_htdjd_ItemLayout", "FM_htdjd_ScrollViewLoop", "FM_htdjd_TouchMaskView", "AppSwitchConfig", "App_htdjd_Config", "Game_htdjd_Config", "Global_htdjd_Data", "EventEnum", "Event_htdjd_Defs", "Event_htdjd_Mgr", "FM_htdjd_Interface", "Main", "Bundle_htdjd_Mgr", "Game_htdjd_Mgr", "Remote_htdjd_Mgr", "Sound_htdjd_Mgr", "Storage_htdjd_Mgr", "Vibrate_htdjd_Mgr", "View_htdjd_Mgr", "WXADMgr", "wudian_htdjd_Mgr", "GameMatrixControl", "Net_Mgr", "OppoMgr", "QQMiniGameAPI", "QqMgr", "ShareAd", "TtMgr", "VivoMgr", "CachedWXBannerAd", "WXAPI", "WxMgr", "User_htdjd", "App_htdjd_Platform", "Common_htdjd", "Date_htdjd_Utils", "Game_htdjd_Util", "Log_htdjd_Utils", "NodeShowDelay", "Utilit_htdjd", "Wudian", "doAction", "wudian_htdjd_utils", "WXBanner_htdjd_View", "Base_htdjd_View", "Export1_htdjd_View", "Export2_htdjd_View", "Export3_htdjd_View", "FixedSingle_htdjd_Ad", "AD_htdjd_GameBanner", "AD_htdjd_GameBanner2", "AD_htdjd_ListView", "AD_htdjd_Single", "AD_htdjd_WXBanner", "KRQ_htdjd_Base", "LoadingView", "Loading_htdjd_View", "MiniGameItem_htdjd_Prefab", "MiniGame_htdjd_View", "ButWudian_htdjd_Prefab", "SettleLayout_htdjd_Base", "WCGameSettleView_htdjd_Template", "WCGameView_htdjd_Template", "WCMainView_htdjd_Template", "KD_htdjd_BannerView", "KD_htdjd_boxView", "KD_htdjd_rewardView", "oppoNativeBanner", "oppoRewardView", "GSkinHelp", "Tools", "ZQJson", "JSONWuQi", "ADmgr", "UISignIn", "UISignInItem", "UIBoss", "UIComponent", "UIPageItem", "UIPageItemItem", "UIWuQi", "WDTips", "UIOpenBox", "UIRankBox", "hidePath", "jsyx_Panel", "up_htdjd_Panel", "ws_htdjd_Panel", "md5", "httputils", "tpfclientsdk", "tpfconfig", "tpfstat", "syyx_sdk_config", "syyx_sdk_enum", "ad_banner", "ad_block", "ad_native_icon", "ad_native_inner_interstitial", "ad_native_interstitial", "ad_oppo_banner", "ad_wx_banner", "syyx_adv_manager", "ad_banner_oppo_apk", "ad_inner_interstitial_oppo_apk", "ad_interstitial_oppo_apk", "syyx_ctr_manager", "syyx_apk_adv_manager", "syyx_cc_ui_manager", "syyx_manager", "model", "syyx_sdk_api", "syyx_ui_banner", "syyx_ui_inner_interstitial", "syyx_ui_interstitial", "syyx_ui_native_icon", "syyx_ui_toast", "syyx_ui_ctr", "syyx_ui_ctr_item", "syyx_sdk_utils" ]);