31f21e9610b2e754c9705fb8b4947b7629eba3ec.js 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673
  1. System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__unresolved_3"], function (_export, _context) {
  2. "use strict";
  3. var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, Component, director, Enum, Node, ch, loadType, ch_sdk_comp, _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _crd, ccclass, property, pack, ch_start_pack;
  4. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
  5. function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
  6. function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
  7. function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
  8. function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
  9. function _reportPossibleCrUseOfch(extras) {
  10. _reporterNs.report("ch", "../ch", _context.meta, extras);
  11. }
  12. function _reportPossibleCrUseOfloadType(extras) {
  13. _reporterNs.report("loadType", "../audio/audio", _context.meta, extras);
  14. }
  15. function _reportPossibleCrUseOfch_sdk_comp(extras) {
  16. _reporterNs.report("ch_sdk_comp", "./ch_sdk_comp", _context.meta, extras);
  17. }
  18. return {
  19. setters: [function (_unresolved_) {
  20. _reporterNs = _unresolved_;
  21. }, function (_cc) {
  22. _cclegacy = _cc.cclegacy;
  23. __checkObsolete__ = _cc.__checkObsolete__;
  24. __checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
  25. _decorator = _cc._decorator;
  26. Component = _cc.Component;
  27. director = _cc.director;
  28. Enum = _cc.Enum;
  29. Node = _cc.Node;
  30. }, function (_unresolved_2) {
  31. ch = _unresolved_2.ch;
  32. }, function (_unresolved_3) {
  33. loadType = _unresolved_3.loadType;
  34. }, function (_unresolved_4) {
  35. ch_sdk_comp = _unresolved_4.ch_sdk_comp;
  36. }],
  37. execute: function () {
  38. _crd = true;
  39. _cclegacy._RF.push({}, "4aa63NubuJJqLakcBFHXiHV", "ch_start_pack", undefined);
  40. __checkObsolete__(['_decorator', 'Component', 'director', 'Enum', 'Node']);
  41. ({
  42. ccclass,
  43. property
  44. } = _decorator);
  45. /**包id*/
  46. _export("pack", pack = /*#__PURE__*/function (pack) {
  47. pack[pack["id0"] = 0] = "id0";
  48. pack[pack["id1"] = 1] = "id1";
  49. pack[pack["id2"] = 2] = "id2";
  50. pack[pack["id3"] = 3] = "id3";
  51. pack[pack["id4"] = 4] = "id4";
  52. pack[pack["id5"] = 5] = "id5";
  53. pack[pack["id6"] = 6] = "id6";
  54. pack[pack["id7"] = 7] = "id7";
  55. pack[pack["id8"] = 8] = "id8";
  56. pack[pack["id9"] = 9] = "id9";
  57. return pack;
  58. }({}));
  59. _export("ch_start_pack", ch_start_pack = (_dec = ccclass('ch_start_pack'), _dec2 = property({
  60. visible: false
  61. }), _dec3 = property({
  62. visible: false
  63. }), _dec4 = property({
  64. visible: false
  65. }), _dec5 = property({
  66. visible: false
  67. }), _dec6 = property({
  68. visible: false
  69. }), _dec7 = property({
  70. visible: false
  71. }), _dec8 = property({
  72. visible: false
  73. }), _dec9 = property({
  74. visible: false
  75. }), _dec10 = property({
  76. visible: false
  77. }), _dec11 = property({
  78. visible: false
  79. }), _dec12 = property({
  80. visible: false
  81. }), _dec13 = property({
  82. visible: false
  83. }), _dec14 = property({
  84. visible: false
  85. }), _dec15 = property({
  86. visible: false
  87. }), _dec16 = property({
  88. type: Enum(pack),
  89. displayName: '包id',
  90. group: {
  91. name: '选包',
  92. id: 'pack',
  93. displayOrder: 0
  94. }
  95. }), _dec17 = property({
  96. displayName: '游戏名',
  97. group: {
  98. name: '选包',
  99. id: 'pack',
  100. displayOrder: 0
  101. }
  102. }), _dec18 = property({
  103. displayName: '游戏id',
  104. group: {
  105. name: '选包',
  106. id: 'pack',
  107. displayOrder: 0
  108. }
  109. }), _dec19 = property({
  110. displayName: '是否单机',
  111. group: {
  112. name: 'ch.sdk模块',
  113. id: 'sdk',
  114. displayOrder: 0
  115. }
  116. }), _dec20 = property({
  117. type: Enum(chsdk.serverType),
  118. displayName: '服务器地址',
  119. visible: function visible() {
  120. return !this.is_local;
  121. },
  122. group: {
  123. name: 'ch.sdk模块',
  124. id: 'sdk',
  125. displayOrder: 0
  126. },
  127. tooltip: "local 局域网 \n dev 测试服 \n online 正式服"
  128. }), _dec21 = property({
  129. displayName: '本地服测试ip',
  130. visible: function visible() {
  131. return this.server == chsdk.serverType.test;
  132. },
  133. group: {
  134. name: 'ch.sdk模块',
  135. id: 'sdk',
  136. displayOrder: 0
  137. }
  138. }), _dec22 = property({
  139. type: Enum(chsdk.reportType),
  140. displayName: '上报类型',
  141. group: {
  142. name: '基本参数',
  143. id: 'sdk',
  144. displayOrder: 0
  145. },
  146. tooltip: "off 不上报 \n ch 使用ch服务器(需要在ch后台配置事件) \n platform 使用微信/抖音平台(需要在平台后台设置事件)\nch__platflorm所有平台自定义事件都上报"
  147. }), _dec23 = property({
  148. type: Enum(chsdk.loglevel),
  149. displayName: '日志等级',
  150. group: {
  151. name: '基本参数',
  152. id: 'sdk',
  153. displayOrder: 0
  154. }
  155. }), _dec24 = property({
  156. displayName: '抖音奖励广告id',
  157. group: {
  158. name: '基本参数',
  159. id: 'sdk',
  160. displayOrder: 0
  161. }
  162. }), _dec25 = property({
  163. displayName: '抖音插屏广告id',
  164. group: {
  165. name: '基本参数',
  166. id: 'sdk',
  167. displayOrder: 0
  168. }
  169. }), _dec26 = property({
  170. displayName: '抖音订阅id(,隔开)',
  171. group: {
  172. name: '基本参数',
  173. id: 'sdk',
  174. displayOrder: 0
  175. }
  176. }), _dec27 = property({
  177. displayName: '微信奖励广告id',
  178. group: {
  179. name: '基本参数',
  180. id: 'sdk',
  181. displayOrder: 0
  182. }
  183. }), _dec28 = property({
  184. displayName: '微信插屏广告id',
  185. group: {
  186. name: '基本参数',
  187. id: 'sdk',
  188. displayOrder: 0
  189. }
  190. }), _dec29 = property({
  191. displayName: '微信订阅id(,隔开)',
  192. group: {
  193. name: '基本参数',
  194. id: 'sdk',
  195. displayOrder: 0
  196. }
  197. }), _dec30 = property({
  198. visible: false
  199. }), _dec31 = property({
  200. type: Enum(_crd && loadType === void 0 ? (_reportPossibleCrUseOfloadType({
  201. error: Error()
  202. }), loadType) : loadType),
  203. visible: false
  204. }), _dec32 = property({
  205. displayName: '是否使用ch.audio模块',
  206. group: {
  207. name: 'ch.audio模块',
  208. id: 'audio',
  209. displayOrder: 1
  210. }
  211. }), _dec33 = property({
  212. type: Enum(_crd && loadType === void 0 ? (_reportPossibleCrUseOfloadType({
  213. error: Error()
  214. }), loadType) : loadType),
  215. displayName: '音频资源加载模式',
  216. group: {
  217. name: 'ch.audio模块',
  218. id: 'audio',
  219. displayOrder: 1
  220. },
  221. visible: function visible() {
  222. return this._use_ch_audio;
  223. }
  224. }), _dec34 = property({
  225. displayName: '音频资源默认bundle名',
  226. group: {
  227. name: 'ch.audio模块',
  228. id: 'audio',
  229. displayOrder: 1
  230. },
  231. visible: function visible() {
  232. return this._use_ch_audio && this._ch_audio_type == (_crd && loadType === void 0 ? (_reportPossibleCrUseOfloadType({
  233. error: Error()
  234. }), loadType) : loadType).bundle;
  235. }
  236. }), _dec35 = property({
  237. displayName: '音频资源远程地址',
  238. group: {
  239. name: 'ch.audio模块',
  240. id: 'audio',
  241. displayOrder: 1
  242. },
  243. visible: function visible() {
  244. return this._use_ch_audio && this._ch_audio_type == (_crd && loadType === void 0 ? (_reportPossibleCrUseOfloadType({
  245. error: Error()
  246. }), loadType) : loadType).remote;
  247. }
  248. }), _dec(_class = (_class2 = class ch_start_pack extends Component {
  249. constructor() {
  250. super(...arguments);
  251. _initializerDefineProperty(this, "_gname", _descriptor, this);
  252. _initializerDefineProperty(this, "_gid", _descriptor2, this);
  253. _initializerDefineProperty(this, "_is_local", _descriptor3, this);
  254. _initializerDefineProperty(this, "_server", _descriptor4, this);
  255. _initializerDefineProperty(this, "_report", _descriptor5, this);
  256. _initializerDefineProperty(this, "_log", _descriptor6, this);
  257. _initializerDefineProperty(this, "_ttad", _descriptor7, this);
  258. _initializerDefineProperty(this, "_ttiad", _descriptor8, this);
  259. _initializerDefineProperty(this, "_tttmpid", _descriptor9, this);
  260. _initializerDefineProperty(this, "_wxad", _descriptor10, this);
  261. _initializerDefineProperty(this, "_wxiad", _descriptor11, this);
  262. _initializerDefineProperty(this, "_wxtmpid", _descriptor12, this);
  263. _initializerDefineProperty(this, "_serverIP", _descriptor13, this);
  264. _initializerDefineProperty(this, "_pid", _descriptor14, this);
  265. //
  266. _initializerDefineProperty(this, "_use_ch_audio", _descriptor15, this);
  267. _initializerDefineProperty(this, "_ch_audio_type", _descriptor16, this);
  268. _initializerDefineProperty(this, "sound_bundle", _descriptor17, this);
  269. _initializerDefineProperty(this, "sound_url", _descriptor18, this);
  270. }
  271. get pid() {
  272. return this._pid;
  273. }
  274. set pid(val) {
  275. this._pid = val;
  276. for (var i = 0; i <= this._pid; i++) {
  277. var _this$_gname, _i, _this$_gname$_i, _this$_is_local, _i2, _this$_is_local$_i, _this$_is_local2, _this$_gid, _i3, _this$_gid$_i, _this$_gid2, _this$_server, _i4, _this$_server$_i, _this$_server2, _this$_report, _i5, _this$_report$_i, _this$_report2, _this$_log, _i6, _this$_log$_i, _this$_log2, _this$_ttad, _i7, _this$_ttad$_i, _this$_ttiad, _i8, _this$_ttiad$_i, _this$_tttmpid, _i9, _this$_tttmpid$_i, _this$_wxad, _i10, _this$_wxad$_i, _this$_wxiad, _i11, _this$_wxiad$_i, _this$_wxtmpid, _i12, _this$_wxtmpid$_i, _this$_serverIP, _i13, _this$_serverIP$_i;
  278. (_this$_gname$_i = (_this$_gname = this._gname)[_i = i]) != null ? _this$_gname$_i : _this$_gname[_i] = '';
  279. (_this$_is_local$_i = (_this$_is_local = this._is_local)[_i2 = i]) != null ? _this$_is_local$_i : _this$_is_local[_i2] = (_this$_is_local2 = this._is_local[i - 1]) != null ? _this$_is_local2 : true;
  280. (_this$_gid$_i = (_this$_gid = this._gid)[_i3 = i]) != null ? _this$_gid$_i : _this$_gid[_i3] = (_this$_gid2 = this._gid[i - 1]) != null ? _this$_gid2 : '0';
  281. (_this$_server$_i = (_this$_server = this._server)[_i4 = i]) != null ? _this$_server$_i : _this$_server[_i4] = (_this$_server2 = this._server[i - 1]) != null ? _this$_server2 : chsdk.serverType.online;
  282. (_this$_report$_i = (_this$_report = this._report)[_i5 = i]) != null ? _this$_report$_i : _this$_report[_i5] = (_this$_report2 = this._report[i - 1]) != null ? _this$_report2 : chsdk.reportType.off;
  283. (_this$_log$_i = (_this$_log = this._log)[_i6 = i]) != null ? _this$_log$_i : _this$_log[_i6] = (_this$_log2 = this._log[i - 1]) != null ? _this$_log2 : chsdk.loglevel.DEBUG;
  284. (_this$_ttad$_i = (_this$_ttad = this._ttad)[_i7 = i]) != null ? _this$_ttad$_i : _this$_ttad[_i7] = '';
  285. (_this$_ttiad$_i = (_this$_ttiad = this._ttiad)[_i8 = i]) != null ? _this$_ttiad$_i : _this$_ttiad[_i8] = '';
  286. (_this$_tttmpid$_i = (_this$_tttmpid = this._tttmpid)[_i9 = i]) != null ? _this$_tttmpid$_i : _this$_tttmpid[_i9] = '';
  287. (_this$_wxad$_i = (_this$_wxad = this._wxad)[_i10 = i]) != null ? _this$_wxad$_i : _this$_wxad[_i10] = '';
  288. (_this$_wxiad$_i = (_this$_wxiad = this._wxiad)[_i11 = i]) != null ? _this$_wxiad$_i : _this$_wxiad[_i11] = '';
  289. (_this$_wxtmpid$_i = (_this$_wxtmpid = this._wxtmpid)[_i12 = i]) != null ? _this$_wxtmpid$_i : _this$_wxtmpid[_i12] = '';
  290. (_this$_serverIP$_i = (_this$_serverIP = this._serverIP)[_i13 = i]) != null ? _this$_serverIP$_i : _this$_serverIP[_i13] = 'http://192.168.1.120:8787/v1';
  291. }
  292. }
  293. get gname() {
  294. var _this$_gname$this$_pi;
  295. return (_this$_gname$this$_pi = this._gname[this._pid]) != null ? _this$_gname$this$_pi : '';
  296. }
  297. set gname(val) {
  298. this._gname[this._pid] = val;
  299. }
  300. get gid() {
  301. return this._gid[this._pid];
  302. }
  303. set gid(val) {
  304. this._gid[this._pid] = val;
  305. } //
  306. get is_local() {
  307. return this._is_local[this._pid];
  308. }
  309. set is_local(val) {
  310. this._is_local[this._pid] = val;
  311. } //
  312. get server() {
  313. return this._server[this._pid];
  314. }
  315. set server(val) {
  316. this._server[this._pid] = val;
  317. }
  318. get serverIP() {
  319. return this._serverIP[this._pid];
  320. }
  321. set serverIP(val) {
  322. this._serverIP[this._pid] = val;
  323. }
  324. get report() {
  325. return this._report[this._pid];
  326. }
  327. set report(val) {
  328. this._report[this._pid] = val;
  329. }
  330. get log() {
  331. return this._log[this._pid];
  332. }
  333. set log(val) {
  334. this._log[this._pid] = val;
  335. } //
  336. get ttad() {
  337. return this._ttad[this._pid];
  338. }
  339. set ttad(val) {
  340. this._ttad[this._pid] = val;
  341. }
  342. get ttiad() {
  343. return this._ttiad[this._pid];
  344. }
  345. set ttiad(val) {
  346. this._ttiad[this._pid] = val;
  347. }
  348. get tttmpid() {
  349. return this._tttmpid[this._pid];
  350. }
  351. set tttmpid(val) {
  352. this._tttmpid[this._pid] = val;
  353. }
  354. get wxad() {
  355. return this._wxad[this._pid];
  356. }
  357. set wxad(val) {
  358. this._wxad[this._pid] = val;
  359. }
  360. get wxiad() {
  361. return this._wxiad[this._pid];
  362. }
  363. set wxiad(val) {
  364. this._wxiad[this._pid] = val;
  365. }
  366. get wxtmpid() {
  367. return this._wxtmpid[this._pid];
  368. }
  369. set wxtmpid(val) {
  370. this._wxtmpid[this._pid] = val;
  371. }
  372. get use_ch_audio() {
  373. return this._use_ch_audio;
  374. }
  375. set use_ch_audio(val) {
  376. this._use_ch_audio = val;
  377. }
  378. get sount_load_type() {
  379. return this._ch_audio_type;
  380. }
  381. set sount_load_type(val) {
  382. this._ch_audio_type = val;
  383. }
  384. onLoad() {
  385. console.log('包Id:' + this.pid, '游戏名:' + this.gname, '游戏Id:' + this.gid, '单机:' + this.is_local, '服务器:' + chsdk.serverType[this.server]);
  386. }
  387. /**初始化*/
  388. init() {
  389. var _this = this;
  390. return _asyncToGenerator(function* () {
  391. chsdk.setConf(chsdk.pf.tt, {
  392. adUnitId: _this.ttad,
  393. multiton: false,
  394. inster_unitId: _this.ttiad,
  395. tmplIds: _this.tttmpid ? _this.tttmpid.split(',') : null
  396. });
  397. chsdk.setConf(chsdk.pf.wx, {
  398. adUnitId: _this.wxad,
  399. multiton: false,
  400. inster_unitId: _this.wxiad,
  401. tmplIds: _this.wxtmpid ? _this.wxtmpid.split(',') : null
  402. });
  403. var ret = yield chsdk.init_inside(_this.gid, _this.log, _this.server == chsdk.serverType.test ? _this.serverIP : _this.server, _this.is_local, _this.report);
  404. if (ret.code == chsdk.code.success) {
  405. if (_this.use_ch_audio) {
  406. (_crd && ch === void 0 ? (_reportPossibleCrUseOfch({
  407. error: Error()
  408. }), ch) : ch).audio.init(_this.sount_load_type, _this.sound_bundle, _this.sound_url);
  409. }
  410. if (chsdk.get_pf() === chsdk.pf.web) {
  411. var sdk = new Node();
  412. sdk.name = '__ch_sdk__';
  413. sdk.addComponent(_crd && ch_sdk_comp === void 0 ? (_reportPossibleCrUseOfch_sdk_comp({
  414. error: Error()
  415. }), ch_sdk_comp) : ch_sdk_comp);
  416. director.getScene().addChild(sdk);
  417. director.addPersistRootNode(sdk);
  418. }
  419. return true;
  420. } else {
  421. chsdk.log.error(ret.err);
  422. return false;
  423. }
  424. })();
  425. }
  426. /**初化始并在遇到问题时以单机模式进入
  427. * @param try_count 重试次数
  428. * @param try_interval 重试间隔时间(MS)
  429. */
  430. try_init(try_count, try_interval) {
  431. var _this2 = this;
  432. return _asyncToGenerator(function* () {
  433. if (try_count === void 0) {
  434. try_count = 5;
  435. }
  436. if (try_interval === void 0) {
  437. try_interval = 2000;
  438. }
  439. var ret = yield _this2.init();
  440. if (ret) return;
  441. try_count--;
  442. if (try_count < 0) {
  443. _this2.is_local = true;
  444. yield _this2.init();
  445. return;
  446. } else {
  447. yield new Promise(resolve => setTimeout(resolve, try_interval));
  448. return _this2.try_init(try_count, try_interval);
  449. }
  450. })();
  451. }
  452. }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "_gname", [_dec2], {
  453. configurable: true,
  454. enumerable: true,
  455. writable: true,
  456. initializer: function initializer() {
  457. return [];
  458. }
  459. }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "_gid", [_dec3], {
  460. configurable: true,
  461. enumerable: true,
  462. writable: true,
  463. initializer: function initializer() {
  464. return [];
  465. }
  466. }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "_is_local", [_dec4], {
  467. configurable: true,
  468. enumerable: true,
  469. writable: true,
  470. initializer: function initializer() {
  471. return [];
  472. }
  473. }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "_server", [_dec5], {
  474. configurable: true,
  475. enumerable: true,
  476. writable: true,
  477. initializer: function initializer() {
  478. return [chsdk.serverType.dev];
  479. }
  480. }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "_report", [_dec6], {
  481. configurable: true,
  482. enumerable: true,
  483. writable: true,
  484. initializer: function initializer() {
  485. return [chsdk.reportType.off];
  486. }
  487. }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "_log", [_dec7], {
  488. configurable: true,
  489. enumerable: true,
  490. writable: true,
  491. initializer: function initializer() {
  492. return [];
  493. }
  494. }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "_ttad", [_dec8], {
  495. configurable: true,
  496. enumerable: true,
  497. writable: true,
  498. initializer: function initializer() {
  499. return [];
  500. }
  501. }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "_ttiad", [_dec9], {
  502. configurable: true,
  503. enumerable: true,
  504. writable: true,
  505. initializer: function initializer() {
  506. return [];
  507. }
  508. }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "_tttmpid", [_dec10], {
  509. configurable: true,
  510. enumerable: true,
  511. writable: true,
  512. initializer: function initializer() {
  513. return [];
  514. }
  515. }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "_wxad", [_dec11], {
  516. configurable: true,
  517. enumerable: true,
  518. writable: true,
  519. initializer: function initializer() {
  520. return [];
  521. }
  522. }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "_wxiad", [_dec12], {
  523. configurable: true,
  524. enumerable: true,
  525. writable: true,
  526. initializer: function initializer() {
  527. return [];
  528. }
  529. }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "_wxtmpid", [_dec13], {
  530. configurable: true,
  531. enumerable: true,
  532. writable: true,
  533. initializer: function initializer() {
  534. return [];
  535. }
  536. }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "_serverIP", [_dec14], {
  537. configurable: true,
  538. enumerable: true,
  539. writable: true,
  540. initializer: function initializer() {
  541. return [];
  542. }
  543. }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "_pid", [_dec15], {
  544. configurable: true,
  545. enumerable: true,
  546. writable: true,
  547. initializer: function initializer() {
  548. return pack.id0;
  549. }
  550. }), _applyDecoratedDescriptor(_class2.prototype, "pid", [_dec16], Object.getOwnPropertyDescriptor(_class2.prototype, "pid"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "gname", [_dec17], Object.getOwnPropertyDescriptor(_class2.prototype, "gname"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "gid", [_dec18], Object.getOwnPropertyDescriptor(_class2.prototype, "gid"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "is_local", [_dec19], Object.getOwnPropertyDescriptor(_class2.prototype, "is_local"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "server", [_dec20], Object.getOwnPropertyDescriptor(_class2.prototype, "server"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "serverIP", [_dec21], Object.getOwnPropertyDescriptor(_class2.prototype, "serverIP"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "report", [_dec22], Object.getOwnPropertyDescriptor(_class2.prototype, "report"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "log", [_dec23], Object.getOwnPropertyDescriptor(_class2.prototype, "log"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "ttad", [_dec24], Object.getOwnPropertyDescriptor(_class2.prototype, "ttad"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "ttiad", [_dec25], Object.getOwnPropertyDescriptor(_class2.prototype, "ttiad"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "tttmpid", [_dec26], Object.getOwnPropertyDescriptor(_class2.prototype, "tttmpid"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "wxad", [_dec27], Object.getOwnPropertyDescriptor(_class2.prototype, "wxad"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "wxiad", [_dec28], Object.getOwnPropertyDescriptor(_class2.prototype, "wxiad"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "wxtmpid", [_dec29], Object.getOwnPropertyDescriptor(_class2.prototype, "wxtmpid"), _class2.prototype), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "_use_ch_audio", [_dec30], {
  551. configurable: true,
  552. enumerable: true,
  553. writable: true,
  554. initializer: function initializer() {
  555. return false;
  556. }
  557. }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "_ch_audio_type", [_dec31], {
  558. configurable: true,
  559. enumerable: true,
  560. writable: true,
  561. initializer: function initializer() {
  562. return (_crd && loadType === void 0 ? (_reportPossibleCrUseOfloadType({
  563. error: Error()
  564. }), loadType) : loadType).bundle;
  565. }
  566. }), _applyDecoratedDescriptor(_class2.prototype, "use_ch_audio", [_dec32], Object.getOwnPropertyDescriptor(_class2.prototype, "use_ch_audio"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "sount_load_type", [_dec33], Object.getOwnPropertyDescriptor(_class2.prototype, "sount_load_type"), _class2.prototype), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, "sound_bundle", [_dec34], {
  567. configurable: true,
  568. enumerable: true,
  569. writable: true,
  570. initializer: function initializer() {
  571. return 'res';
  572. }
  573. }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, "sound_url", [_dec35], {
  574. configurable: true,
  575. enumerable: true,
  576. writable: true,
  577. initializer: function initializer() {
  578. return '';
  579. }
  580. })), _class2)) || _class));
  581. _cclegacy._RF.pop();
  582. _crd = false;
  583. }
  584. };
  585. });
  586. //# sourceMappingURL=31f21e9610b2e754c9705fb8b4947b7629eba3ec.js.map