| 1 |
- const _0x4f3e=['configName','config_set.name_length','save-config','__esModule','config_remarks','config_id','../../../utils','config','trim','title','csUtil','emit','hide-config-set','match','extend','add_config_set','__importDefault','enableConfirm','act','shift','../../../vue','./config-set.html','config_set.same_name','substr','edit_config_set','$emit','configs','defineProperty','csEditor','config_name','warn','config_set.name_rule','action','config_set.name_empty','filter','length','default','use\x20strict','replace','generateConfigSet','getByteLength','csEvent','getCopedConfigName','csLogger','readFile'];(function(_0x3e2896,_0x4c99b8){const _0x4f3e11=function(_0x3a9165){while(--_0x3a9165){_0x3e2896['push'](_0x3e2896['shift']());}};_0x4f3e11(++_0x4c99b8);}(_0x4f3e,0x11e));const _0x3a91=function(_0x3e2896,_0x4c99b8){_0x3e2896=_0x3e2896-0x137;let _0x4f3e11=_0x4f3e[_0x3e2896];return _0x4f3e11;};const _0x21b2c1=_0x3a91,_0x3b9d=[_0x21b2c1(0x140),_0x21b2c1(0x143),'config',_0x21b2c1(0x158),'act',_0x21b2c1(0x138),_0x21b2c1(0x15d),_0x21b2c1(0x14e),_0x21b2c1(0x13e),'add','configRemarks',_0x21b2c1(0x149),_0x21b2c1(0x13f),_0x21b2c1(0x14f),_0x21b2c1(0x160),_0x21b2c1(0x141),_0x21b2c1(0x144),_0x21b2c1(0x146),_0x21b2c1(0x154),_0x21b2c1(0x15e),'warn','test',_0x21b2c1(0x137),_0x21b2c1(0x147),'edit',_0x21b2c1(0x13d),_0x21b2c1(0x151),'copy',_0x21b2c1(0x15c),_0x21b2c1(0x156),_0x21b2c1(0x161),_0x21b2c1(0x14b),_0x21b2c1(0x155),'csLogger',_0x21b2c1(0x150),_0x21b2c1(0x162),_0x21b2c1(0x163),_0x21b2c1(0x14a),_0x21b2c1(0x153),_0x21b2c1(0x159),_0x21b2c1(0x157)];(function(_0x3a200c,_0xe9f789){const _0x29ce6b=function(_0x52d42e){const _0x855242=_0x3a91;while(--_0x52d42e){_0x3a200c['push'](_0x3a200c[_0x855242(0x13a)]());}};_0x29ce6b(++_0xe9f789);}(_0x3b9d,0xa6));const _0x3bb2=function(_0xca76e6,_0x501f3b){_0xca76e6=_0xca76e6-0x130;let _0x5aba98=_0x3b9d[_0xca76e6];return _0x5aba98;},_0x58245b=_0x3bb2;_0x21b2c1(0x14c);var __importDefault=this&&this[_0x58245b(0x144)]||function(_0x3aa08b){const _0x5cdd53=_0x58245b;return _0x3aa08b&&_0x3aa08b[_0x5cdd53(0x156)]?_0x3aa08b:{'default':_0x3aa08b};};Object[_0x21b2c1(0x142)](exports,_0x58245b(0x156),{'value':!0x0});const vue_1=__importDefault(require(_0x21b2c1(0x13b))),utils_1=require(_0x21b2c1(0x15a));exports[_0x58245b(0x14d)]=vue_1[_0x21b2c1(0x14b)][_0x58245b(0x151)]({'template':utils_1['csFile'][_0x58245b(0x154)](__dirname,_0x21b2c1(0x13c)),'props':{'action':{'type':String,'default':()=>_0x58245b(0x137)},'config':{'type':Object},'configs':{'type':Array}},'created'(){const _0x12c5c6=_0x21b2c1,_0x5e4562=_0x58245b;this[_0x5e4562(0x134)]=_0x5e4562(0x137)===this[_0x12c5c6(0x147)]?utils_1[_0x5e4562(0x158)]['tr'](_0x5e4562(0x152)):utils_1[_0x5e4562(0x158)]['tr'](_0x5e4562(0x13a)),this[_0x5e4562(0x138)]=_0x5e4562(0x137)===this[_0x5e4562(0x145)]?'':this[_0x5e4562(0x130)][_0x12c5c6(0x158)],_0x5e4562(0x149)===this[_0x5e4562(0x132)]?this[_0x5e4562(0x140)]=this[_0x5e4562(0x148)](this[_0x12c5c6(0x15b)][_0x5e4562(0x13e)]):_0x5e4562(0x146)===this[_0x12c5c6(0x139)]&&(this[_0x5e4562(0x140)]=this[_0x5e4562(0x130)][_0x5e4562(0x13e)]);},'watch':{'configName'(_0x45bdb1,_0x5116a6){const _0x567e23=_0x21b2c1,_0x16a9a9=_0x58245b;this[_0x16a9a9(0x133)]=''!==_0x45bdb1,_0x16a9a9(0x146)==this[_0x567e23(0x139)]&&(this['enableConfirm']=_0x45bdb1!==this[_0x16a9a9(0x130)][_0x567e23(0x144)]);},'configRemarks'(_0x10d19a,_0x3c5cc2){const _0x5a1fa7=_0x21b2c1,_0x4a17ca=_0x58245b;this[_0x4a17ca(0x133)]=''!==_0x10d19a,_0x4a17ca(0x146)==this[_0x5a1fa7(0x139)]&&(this[_0x4a17ca(0x133)]=_0x10d19a!==this[_0x4a17ca(0x130)][_0x4a17ca(0x131)]);}},'mounted'(){},'data'(){const _0x927f7e=_0x58245b;return{'show':!0x0,'enableConfirm':!0x1,'title':'','configName':'','configRemarks':'','act':this[_0x927f7e(0x145)]};},'methods':{'getCopedConfigName'(_0x1627d7){const _0x4b6088=_0x21b2c1,_0x2aa927=_0x58245b;let _0x1be648=/-[1-9][0-9]*$/,_0x321f71=0x1;if(_0x1be648[_0x2aa927(0x143)](_0x1627d7)){let _0x394094=_0x1627d7[_0x2aa927(0x14c)](_0x1be648);null!==_0x394094&&(_0x321f71=parseInt(_0x394094[0x0][_0x2aa927(0x136)](0x1))+0x1),_0x1627d7=_0x1627d7[_0x4b6088(0x14d)](_0x1be648,'');}let _0x781d59='';for(;;){if(_0x781d59=_0x1627d7+'-'+_0x321f71,0x0===this[_0x4b6088(0x141)][_0x2aa927(0x139)](_0x25e2e2=>_0x25e2e2[_0x2aa927(0x13e)]===_0x781d59)[_0x2aa927(0x153)])break;_0x321f71++;}return _0x781d59;},'handleClose'(){const _0x2f472c=_0x21b2c1,_0x1399e4=_0x58245b;utils_1[_0x1399e4(0x150)][_0x2f472c(0x15f)](_0x1399e4(0x13c));},'handleConfirm'(){const _0x5cf266=_0x21b2c1,_0x42a732=_0x58245b;if(this[_0x5cf266(0x154)]=this[_0x42a732(0x140)][_0x42a732(0x14a)](),0x0===this[_0x42a732(0x140)][_0x42a732(0x153)])return void utils_1[_0x42a732(0x14f)][_0x42a732(0x142)](utils_1['csEditor']['tr'](_0x5cf266(0x148)));if(/\\/['test'](this['configName']))return void utils_1['csLogger'][_0x42a732(0x142)](utils_1[_0x42a732(0x158)]['tr'](_0x42a732(0x13f)));if(utils_1[_0x42a732(0x141)][_0x42a732(0x13b)](this[_0x42a732(0x140)])>0x28)return void utils_1[_0x5cf266(0x152)][_0x42a732(0x142)](utils_1[_0x5cf266(0x143)]['tr'](_0x42a732(0x14e)));let _0x57e93f={};if(_0x42a732(0x146)===this[_0x42a732(0x132)]){if(this[_0x42a732(0x13d)][_0x42a732(0x139)](_0x171095=>_0x171095[_0x42a732(0x13e)]===this[_0x42a732(0x140)]&&_0x171095[_0x5cf266(0x159)]!==this[_0x5cf266(0x15b)][_0x5cf266(0x159)])[_0x42a732(0x153)]>0x0)return void utils_1[_0x42a732(0x14f)][_0x5cf266(0x145)](utils_1[_0x42a732(0x158)]['tr'](_0x42a732(0x147)));_0x57e93f={'config_id':this[_0x42a732(0x130)][_0x42a732(0x155)],'config_name':this[_0x42a732(0x140)],'config_remarks':this[_0x42a732(0x138)]};}else{if(this[_0x5cf266(0x141)][_0x5cf266(0x149)](_0x3dfd3d=>_0x3dfd3d[_0x5cf266(0x144)]===this[_0x42a732(0x140)])[_0x42a732(0x153)]>0x0)return void utils_1['csLogger'][_0x42a732(0x142)](utils_1[_0x42a732(0x158)]['tr'](_0x42a732(0x147)));_0x57e93f=utils_1['csConfig'][_0x42a732(0x135)](this[_0x42a732(0x140)],this['configRemarks']);}this[_0x42a732(0x157)](_0x42a732(0x14b),_0x57e93f,this['act']),utils_1[_0x42a732(0x150)][_0x5cf266(0x15f)](_0x42a732(0x13c));}}});
|