| 1 |
- const _0x2c73=['app_id','plugin-msg','161248','160690','__setModuleDefault','__importStar','close','has','service_id','https://download.cocos.com/CocosUdc/agreement/Cocos_User_Service_Agreement_cn_20200904.html','create','store_id','sdkHubConfigID','success','compareVersion','__importDefault','configs','generateServiceConfigInfo','readEnableServices','getConfig','readBindGame','findIndex','filter','readFile','csLogger','./index.css','sdkhub_config_id','__esModule','../common','readConfigSet','#cocos-service-builder','warn','getCreatorVersion','service-analytics','161252','readConfigSets','161221','removeAllListeners','sendMsg','prototype','stringify','defineProperty','csEvent','readServiceList','config_id','builder-options','sdkHubConfig','removeBroadcastListener','validateString','update','plugin','cocos-service','service-sdkhub','csConfig','shift','-3px','addBroadcastListener','length','writeServiceParam','builder.config_set.want_edit','160691','service','checked','getLang','showSDKHub','hasOwnProperty','target','call','160675','use\x20strict','huawei-agc','packages.cocos-service.','__createBinding','csFile','openCocosUrl','Message','parse','default','https://download.cocos.com/CocosUdc/agreement/Cocos_Privacy_Policy_cn_20200904.html','service_component_name','Profile','160694','./index.html','debug','enable-service','enableServices','platform','template','requestMsg','refresh','service:refresh-panel','fetchData','../../../vue','devtools','sdkHubConfigs','packages','refreshPanel','csBuilder','style','pkgOptions','dispatch','csUtil','services','builder.config_set.no_use_service','service-data-change','serviceTips','configID','0px','supportSDKHub','changeSDKHubStatus','$refs','builder.config_set.used_service','emitChange','csEditor','cocos-service:service-data-change','showAnalytics','readSDKHubConfigSet','config','showSDKHubPlugins','includes'];(function(_0x5ed271,_0x1c07c6){const _0x2c73fa=function(_0x36153d){while(--_0x36153d){_0x5ed271['push'](_0x5ed271['shift']());}};_0x2c73fa(++_0x1c07c6);}(_0x2c73,0xc6));const _0x3615=function(_0x5ed271,_0x1c07c6){_0x5ed271=_0x5ed271-0x194;let _0x2c73fa=_0x2c73[_0x5ed271];return _0x2c73fa;};const _0x228284=_0x3615,_0xc1f4=[_0x228284(0x1dc),_0x228284(0x1b9),'getComplexType',_0x228284(0x1f2),_0x228284(0x1df),_0x228284(0x1f6),_0x228284(0x1ad),_0x228284(0x1e8),_0x228284(0x1e7),_0x228284(0x1c3),_0x228284(0x1fa),'3.1.0','has',_0x228284(0x1f3),'default',_0x228284(0x1d5),_0x228284(0x1ec),_0x228284(0x1be),_0x228284(0x1a2),'android',_0x228284(0x1ae),_0x228284(0x1c9),_0x228284(0x1ca),_0x228284(0x1a3),_0x228284(0x1bb),_0x228284(0x1f0),_0x228284(0x1d7),_0x228284(0x209),_0x228284(0x1d3),'setConfig',_0x228284(0x204),_0x228284(0x19a),_0x228284(0x1a7),'ready',_0x228284(0x1cb),'161251',_0x228284(0x194),'productionTip',_0x228284(0x1cf),_0x228284(0x1b1),_0x228284(0x1c7),'changeAnalyticsStatus',_0x228284(0x200),_0x228284(0x201),_0x228284(0x1d2),_0x228284(0x1af),_0x228284(0x1b8),_0x228284(0x1d4),_0x228284(0x19d),_0x228284(0x19e),_0x228284(0x207),_0x228284(0x19c),_0x228284(0x1eb),_0x228284(0x1f5),_0x228284(0x1c4),_0x228284(0x1bd),_0x228284(0x1e9),_0x228284(0x1a4),_0x228284(0x1fe),_0x228284(0x1db),'showAnalyticsProtocol',_0x228284(0x1ce),'open-service-panel',_0x228284(0x19f),_0x228284(0x1a6),_0x228284(0x1e6),'readServiceParam',_0x228284(0x1b3),_0x228284(0x1e3),_0x228284(0x202),'service_id',_0x228284(0x1f1),_0x228284(0x1fd),'../sdkhub-helper',_0x228284(0x1d0),_0x228284(0x1c0),_0x228284(0x1d8),'services','Android',_0x228284(0x1d9),_0x228284(0x1d6),_0x228284(0x196),_0x228284(0x1aa),_0x228284(0x1fc),_0x228284(0x19b),_0x228284(0x1c1),_0x228284(0x1b4),'161249',_0x228284(0x1c8),_0x228284(0x1b0),_0x228284(0x198),_0x228284(0x1ee),_0x228284(0x1ab),_0x228284(0x1ef),_0x228284(0x195),_0x228284(0x1a1),_0x228284(0x1a0),_0x228284(0x208),_0x228284(0x1b5),_0x228284(0x1dd),_0x228284(0x1e5),_0x228284(0x1b6),_0x228284(0x1ea),'changeEnableServiceTips',_0x228284(0x197),'pkgOptions',_0x228284(0x1a5),'find',_0x228284(0x1ba),_0x228284(0x1e4),_0x228284(0x1f8),_0x228284(0x1de),_0x228284(0x199),_0x228284(0x1c2),_0x228284(0x206),_0x228284(0x1cd),_0x228284(0x1f7),_0x228284(0x1da),_0x228284(0x1b7)];(function(_0x3bd696,_0x1325bf){const _0x144084=function(_0x24f156){const _0x4d21d9=_0x3615;while(--_0x24f156){_0x3bd696['push'](_0x3bd696[_0x4d21d9(0x1f4)]());}};_0x144084(++_0x1325bf);}(_0xc1f4,0x1de));const _0x2f7a=function(_0x2e7ef2,_0x366917){_0x2e7ef2=_0x2e7ef2-0x11b;let _0x5341a3=_0xc1f4[_0x2e7ef2];return _0x5341a3;},_0x3723c4=_0x2f7a;_0x228284(0x203);var __createBinding=this&&this[_0x3723c4(0x18b)]||(Object[_0x3723c4(0x171)]?function(_0x1ff95f,_0x34f7ed,_0x42c19b,_0x1be5ee){const _0xd1496f=_0x3723c4;void 0x0===_0x1be5ee&&(_0x1be5ee=_0x42c19b),Object[_0xd1496f(0x121)](_0x1ff95f,_0x1be5ee,{'enumerable':!0x0,'get':function(){return _0x34f7ed[_0x42c19b];}});}:function(_0x48944b,_0x39d69c,_0x56e304,_0xd3ee26){void 0x0===_0xd3ee26&&(_0xd3ee26=_0x56e304),_0x48944b[_0xd3ee26]=_0x39d69c[_0x56e304];}),__setModuleDefault=this&&this[_0x3723c4(0x18a)]||(Object[_0x3723c4(0x171)]?function(_0x1e5358,_0x269399){const _0x3bc8d0=_0x3723c4;Object[_0x3bc8d0(0x121)](_0x1e5358,_0x3bc8d0(0x127),{'enumerable':!0x0,'value':_0x269399});}:function(_0x154b5e,_0x2ae22e){const _0xf49828=_0x3723c4;_0x154b5e[_0xf49828(0x127)]=_0x2ae22e;}),__importStar=this&&this[_0x3723c4(0x122)]||function(_0x4e4210){const _0x18a6e2=_0x228284,_0x52ffd3=_0x3723c4;if(_0x4e4210&&_0x4e4210[_0x52ffd3(0x168)])return _0x4e4210;var _0x386f8a={};if(null!=_0x4e4210)for(var _0x37874e in _0x4e4210)_0x52ffd3(0x127)!==_0x37874e&&Object[_0x52ffd3(0x17d)][_0x18a6e2(0x1ff)][_0x52ffd3(0x144)](_0x4e4210,_0x37874e)&&__createBinding(_0x386f8a,_0x4e4210,_0x37874e);return __setModuleDefault(_0x386f8a,_0x4e4210),_0x386f8a;},__importDefault=this&&this[_0x3723c4(0x18c)]||function(_0x18094b){return _0x18094b&&_0x18094b['__esModule']?_0x18094b:{'default':_0x18094b};};Object[_0x3723c4(0x121)](exports,_0x3723c4(0x168),{'value':!0x0}),exports[_0x3723c4(0x14f)]=exports[_0x3723c4(0x13a)]=exports['$']=exports[_0x228284(0x1a8)]=exports[_0x228284(0x19d)]=void 0x0;const utils_1=__importStar(require('../../../utils')),common_1=require(_0x3723c4(0x18e)),vue_1=__importDefault(require(_0x3723c4(0x12b))),sdkhub_helper_1=require(_0x3723c4(0x162));function serviceDataChange(){const _0x582676=_0x228284,_0x382664=_0x3723c4;utils_1[_0x382664(0x120)]['emit'](_0x582676(0x1ae));}const isNewUpdate=-0x1!==utils_1[_0x3723c4(0x175)][_0x228284(0x1cc)](utils_1[_0x3723c4(0x18f)][_0x3723c4(0x188)](),_0x3723c4(0x124));function ready(_0x714dcb,_0x4392f7,_0x57a43e){const _0x26b598=_0x3723c4;this['vm']=this['vm']||createVue(this,_0x714dcb),Editor[_0x26b598(0x134)][_0x26b598(0x11e)](_0x26b598(0x147),serviceDataChange);}function close(){const _0x3576e2=_0x228284,_0x268f37=_0x3723c4;Editor[_0x268f37(0x134)][_0x3576e2(0x1ed)](_0x268f37(0x147),serviceDataChange),utils_1[_0x268f37(0x120)][_0x268f37(0x15d)](_0x268f37(0x12d));}exports[_0x3723c4(0x149)]=utils_1[_0x3723c4(0x14b)][_0x3723c4(0x128)](__dirname,_0x3723c4(0x173)),exports[_0x228284(0x1a8)]=utils_1[_0x3723c4(0x14b)][_0x228284(0x1d5)](__dirname,_0x3723c4(0x133)),exports['$']={'csBuilder':_0x3723c4(0x190)},exports[_0x3723c4(0x13a)]=ready,exports[_0x3723c4(0x14f)]=close;let protocolLinkMap={'user_protocol':_0x3723c4(0x141),'privacy_policy':_0x3723c4(0x13d)},platformToStoreIdMap={'android':_0x3723c4(0x167),'ios':'iOS','huawei-agc':_0x228284(0x1e2),'alipay-mini-game':_0x3723c4(0x164),'bytedance-mini-game':_0x3723c4(0x13c),'oppo-mini-game':_0x3723c4(0x181),'huawei-quick-game':_0x3723c4(0x16e),'cocos-play':_0x3723c4(0x170),'vivo-mini-game':_0x3723c4(0x123),'xiaomi-quick-game':'160697','baidu-mini-game':_0x3723c4(0x15e),'wechatgame':'160564','qtt':_0x228284(0x1e0),'web-desktop':'H5','web-mobile':'H5'};function createVue(_0x466291,_0x1f7893){const _0x468fca=_0x228284,_0x55db43=_0x3723c4;return new vue_1[(_0x468fca(0x20b))]({'el':_0x466291['$'][_0x55db43(0x139)],'data':{'refresh':!0x0,'pkgOptions':{},'configs':[],'services':[],'config_id':'','serviceTips':'','showAnalytics':!0x1,'showAnalyticsProtocol':!0x1,'enableServices':[],'showSDKHub':!0x1,'supportSDKHub':!0x1,'showSDKHubPlugins':!0x1,'sdkhub_config_id':'','sdkHubConfigs':[],'sdkHubConfig':{},'goToStyle':{'margin-left':'en'===utils_1[_0x468fca(0x1b7)][_0x55db43(0x161)]()?_0x55db43(0x140):_0x55db43(0x14e)}},'created'(){const _0x507e8c=_0x468fca,_0x541f56=_0x55db43;utils_1[_0x541f56(0x120)][_0x507e8c(0x1e3)](_0x541f56(0x12d)),utils_1[_0x541f56(0x120)]['on'](_0x541f56(0x12d),async()=>{const _0x176a01=_0x541f56;await this[_0x176a01(0x178)](),this[_0x176a01(0x159)]();});},async 'mounted'(){const _0x31b87a=_0x468fca,_0x36a05e=_0x55db43;this[_0x31b87a(0x1b2)]=[_0x36a05e(0x12c),_0x36a05e(0x137)][_0x36a05e(0x150)](_0x1f7893[_0x36a05e(0x14c)]),_0x1f7893[_0x36a05e(0x183)]||(_0x1f7893[_0x31b87a(0x1a5)]={'cocos-service':{}}),this[_0x36a05e(0x182)]=JSON[_0x31b87a(0x20a)](JSON[_0x31b87a(0x1e6)](_0x1f7893[_0x31b87a(0x1a5)][_0x36a05e(0x160)]||{})),'{}'===JSON[_0x36a05e(0x15a)](_0x1f7893['packages']['cocos-service']||{})&&(this[_0x36a05e(0x182)]=await Editor[_0x36a05e(0x16a)][_0x31b87a(0x1d1)](utils_1[_0x31b87a(0x1b7)][_0x36a05e(0x132)],'builder-options')||{}),await this[_0x36a05e(0x178)]();},'watch':{async 'config_id'(_0x205e0e,_0x3263d6){const _0xfbae18=_0x55db43;_0x205e0e!==_0x3263d6&&await this[_0xfbae18(0x180)](_0x205e0e);},async 'sdkhub_config_id'(_0x306fd1,_0x43b37b){const _0x28edca=_0x468fca,_0x1350d3=_0x55db43;_0x306fd1!==_0x43b37b&&(this[_0x28edca(0x1bc)]=''!==this[_0x1350d3(0x165)],this[_0x28edca(0x1ec)]=this[_0x1350d3(0x152)][_0x1350d3(0x184)](_0x5228e2=>_0x5228e2['id']===this[_0x1350d3(0x165)])||this[_0x1350d3(0x152)][0x0],await this[_0x1350d3(0x17e)](_0x1350d3(0x12f),this[_0x1350d3(0x165)]),await this[_0x1350d3(0x17e)](_0x1350d3(0x129),this['sdkHubConfig']));}},'methods':{'tr':(_0x5ef64f,_0x2ff720)=>utils_1[_0x55db43(0x18f)]['tr'](_0x5ef64f,_0x2ff720),'refreshPanel'(){const _0x42ea69=_0x468fca,_0x37a79f=_0x55db43;this[_0x42ea69(0x19f)]=!0x1,this['$nextTick'](()=>this[_0x37a79f(0x158)]=!0x0);},async 'fetchData'(){const _0x5dc174=_0x468fca,_0x205dc8=_0x55db43;this[_0x5dc174(0x1ce)]=await utils_1[_0x205dc8(0x126)][_0x5dc174(0x1e1)](),this[_0x205dc8(0x166)]=await utils_1[_0x205dc8(0x126)][_0x205dc8(0x151)](),this[_0x5dc174(0x1a4)]=await sdkhub_helper_1[_0x205dc8(0x185)](),this[_0x5dc174(0x1ea)]=this[_0x205dc8(0x182)][_0x205dc8(0x172)],0x0!==this[_0x205dc8(0x156)][_0x205dc8(0x18d)]&&(utils_1[_0x205dc8(0x175)][_0x205dc8(0x174)](this[_0x205dc8(0x182)][_0x205dc8(0x172)])?this[_0x205dc8(0x156)][_0x205dc8(0x135)](_0x2d1a1e=>_0x2d1a1e[_0x205dc8(0x17f)]===this[_0x205dc8(0x182)][_0x205dc8(0x172)])<0x0&&(this[_0x205dc8(0x17f)]=this[_0x205dc8(0x156)][0x0][_0x205dc8(0x17f)]):this[_0x205dc8(0x17f)]=this[_0x205dc8(0x156)][0x0][_0x5dc174(0x1ea)],''===this[_0x205dc8(0x165)]?this[_0x5dc174(0x1d8)]=this[_0x205dc8(0x182)][_0x5dc174(0x1ca)]||(this[_0x205dc8(0x152)][0x0]?this[_0x5dc174(0x1a4)][0x0]['id']:''):this['sdkHubConfigs'][_0x205dc8(0x184)](_0x1cafd4=>_0x1cafd4['id']===this[_0x205dc8(0x165)])||(this[_0x205dc8(0x165)]=this[_0x5dc174(0x1a4)][0x0]?this[_0x205dc8(0x152)][0x0]['id']:''),await this[_0x205dc8(0x180)](this[_0x205dc8(0x17f)]));},async 'emitChange'(_0x43e6e7,_0x529aef){const _0x286f10=_0x468fca,_0x14222d=_0x55db43;_0x466291[_0x14222d(0x16b)](_0x14222d(0x176),isNewUpdate?_0x286f10(0x205)+_0x43e6e7:_0x43e6e7,_0x529aef),this[_0x286f10(0x1a9)][_0x43e6e7]=_0x529aef,await Editor[_0x14222d(0x16a)][_0x14222d(0x136)](utils_1[_0x14222d(0x18f)][_0x14222d(0x132)],_0x14222d(0x14d),this[_0x14222d(0x182)]);},'changeAnalyticsStatus'(_0x2b17e4){const _0x5857ae=_0x468fca,_0x2fd28c=_0x55db43;let _0x149a10=this[_0x2fd28c(0x166)][_0x2fd28c(0x184)](_0x267ad2=>_0x2fd28c(0x11d)===_0x267ad2[_0x2fd28c(0x177)]);void 0x0!==_0x149a10&&(this[_0x2fd28c(0x155)]=_0x2b17e4[_0x2fd28c(0x125)](_0x149a10[_0x2fd28c(0x15f)])||!0x1,this[_0x2fd28c(0x191)]=!_0x2b17e4[_0x5857ae(0x1c5)](_0x149a10[_0x2fd28c(0x15f)]));},'changeSDKHubStatus'(_0x502e29){const _0x4aecc2=_0x468fca,_0x5ebcef=_0x55db43;let _0x2b017=this[_0x5ebcef(0x166)][_0x5ebcef(0x184)](_0x52b2e7=>_0x5ebcef(0x11c)===_0x52b2e7[_0x5ebcef(0x177)]);void 0x0!==_0x2b017&&(this[_0x5ebcef(0x153)]=_0x502e29[_0x5ebcef(0x125)](_0x2b017[_0x5ebcef(0x15f)]),0x0!==this[_0x4aecc2(0x1a4)][_0x4aecc2(0x1f7)]&&(this[_0x4aecc2(0x1bc)]=!0x0,this[_0x5ebcef(0x129)]=this[_0x5ebcef(0x152)][_0x5ebcef(0x184)](_0x408406=>_0x408406['id']===this[_0x5ebcef(0x165)])||this[_0x4aecc2(0x1a4)][0x0]));},'getTypeStr':_0x4b4844=>sdkhub_helper_1[_0x55db43(0x11b)](_0x4b4844),async 'changeEnableServiceTips'(_0x26bcbe){const _0x3243c4=_0x468fca,_0x50ca7f=_0x55db43;try{this[_0x50ca7f(0x17f)]=_0x26bcbe;let _0x3b302b=new Set(await utils_1[_0x50ca7f(0x126)][_0x50ca7f(0x163)](_0x26bcbe));this[_0x50ca7f(0x16d)]=this[_0x50ca7f(0x166)][_0x50ca7f(0x148)](_0x45f466=>_0x3b302b[_0x50ca7f(0x125)](_0x45f466[_0x50ca7f(0x15f)])),this[_0x50ca7f(0x146)]='',0x0===this[_0x50ca7f(0x16d)][_0x3243c4(0x1f7)]?this[_0x3243c4(0x1af)]=utils_1[_0x50ca7f(0x18f)]['tr'](_0x50ca7f(0x11f)):this[_0x50ca7f(0x146)]=utils_1[_0x50ca7f(0x18f)]['tr'](_0x50ca7f(0x17b),{'count':''+this[_0x50ca7f(0x16d)][_0x50ca7f(0x18d)]}),this[_0x50ca7f(0x146)]+=utils_1[_0x50ca7f(0x18f)]['tr'](_0x3243c4(0x1f9)),await this['emitChange'](_0x50ca7f(0x172),_0x26bcbe),await this[_0x50ca7f(0x17e)](_0x50ca7f(0x166),await common_1[_0x50ca7f(0x13f)](this[_0x3243c4(0x1ac)],_0x3b302b,_0x26bcbe)),this[_0x50ca7f(0x142)](_0x3b302b),this[_0x50ca7f(0x15c)](_0x3b302b);}catch(_0x1bfda0){utils_1[_0x3243c4(0x1d6)][_0x50ca7f(0x189)](_0x1bfda0);}},async 'handleEnableAnalytics'(_0x480bf1){const _0x5442d9=_0x468fca,_0x5ef613=_0x55db43;let _0x266a21=_0x480bf1[_0x5ef613(0x143)][_0x5ef613(0x16c)],_0x3d382f=await utils_1[_0x5ef613(0x18f)][_0x5ef613(0x14a)](utils_1[_0x5ef613(0x18f)][_0x5ef613(0x132)],_0x5ef613(0x138),_0x5ef613(0x11d),_0x266a21,this[_0x5ef613(0x17f)]);if(_0x5ef613(0x13b)===_0x3d382f){this[_0x5ef613(0x155)]=!0x0;do{if(!_0x266a21)break;let _0x325b34=this[_0x5442d9(0x1ac)][_0x5ef613(0x184)](_0x27c5e8=>_0x5ef613(0x11d)===_0x27c5e8[_0x5ef613(0x177)]);if(void 0x0===_0x325b34)break;let _0x23500b=await utils_1[_0x5ef613(0x126)][_0x5ef613(0x154)]();if(void 0x0===_0x23500b)break;let _0x34aff2=await utils_1[_0x5ef613(0x126)][_0x5ef613(0x15b)](_0x325b34[_0x5442d9(0x1c6)],_0x23500b[_0x5ef613(0x17f)]);_0x34aff2||(_0x34aff2={}),_0x34aff2[_0x5ef613(0x12a)]||(_0x34aff2[_0x5ef613(0x12a)]=(await utils_1[_0x5ef613(0x126)][_0x5ef613(0x145)]())[_0x5ef613(0x12a)]),_0x34aff2[_0x5442d9(0x1c9)]||(_0x34aff2[_0x5ef613(0x12e)]=platformToStoreIdMap[_0x1f7893[_0x5ef613(0x14c)]]),await utils_1[_0x5ef613(0x126)][_0x5ef613(0x187)](_0x325b34['service_id'],_0x34aff2,_0x23500b[_0x5ef613(0x17f)]);}while(0x0);}else setTimeout(()=>this[_0x5ef613(0x16f)]['enableAnalytics'][_0x5ef613(0x16c)]=this[_0x5ef613(0x155)],0xa),utils_1[_0x5ef613(0x169)][_0x5ef613(0x17c)](_0x3d382f);await this[_0x5ef613(0x178)](),await this[_0x5ef613(0x180)](this[_0x5ef613(0x17f)]),utils_1[_0x5ef613(0x18f)][_0x5ef613(0x186)](utils_1[_0x5ef613(0x18f)][_0x5442d9(0x1f0)],_0x5442d9(0x1bf),_0x5442d9(0x1fb),_0x5ef613(0x179),{'config_id':this['config_id']});},'handleGotoService'(){const _0x39c1e6=_0x55db43;utils_1[_0x39c1e6(0x18f)][_0x39c1e6(0x186)](utils_1[_0x39c1e6(0x18f)][_0x39c1e6(0x132)],_0x39c1e6(0x157),{'config_id':this[_0x39c1e6(0x17f)]});},'handleTplEvent'(_0x4b2520){const _0x21b0a3=_0x55db43;let _0x1f8fb0=protocolLinkMap[_0x4b2520[_0x21b0a3(0x143)]['id']];_0x1f8fb0&&''!==_0x1f8fb0&&utils_1[_0x21b0a3(0x127)][_0x21b0a3(0x17a)](_0x1f8fb0);}}});}vue_1[_0x3723c4(0x127)][_0x3723c4(0x131)][_0x3723c4(0x13e)]=!0x1,vue_1[_0x3723c4(0x127)][_0x3723c4(0x131)][_0x3723c4(0x130)]=!0x1;
|