xcube
Version:
Alipay Cube Tools
3 lines (2 loc) • 3.16 kB
JavaScript
;function _0x7a87(){const _0x44d674=['init','107pUZbUG','2157996VNvTMo','ACT_CONFIG_FILE','manifest.json','@xcube/shared','11575MDJWlk','42VWBTPp','templateName','EProjectSubtype','RES_ROOT','5598VFZQXS','projectPath','55SAAUsQ','init/template-list','path','__esModule','6587035wAFSSx','defineProperty','render','13190SnRCLN','288129TXmECw','95344njMwex','4feqhYY','copy','stringify','join','1842NwAVVE','Initializing\x20template\x20card\x20application\x0a','TplSingle','init/template','projectSubType','projectName','9358jhLzPR'];_0x7a87=function(){return _0x44d674;};return _0x7a87();}function _0xc0ca(_0x561508,_0x4a1d64){const _0x7a878f=_0x7a87();return _0xc0ca=function(_0xc0cae1,_0x11c50f){_0xc0cae1=_0xc0cae1-0x7d;let _0x363602=_0x7a878f[_0xc0cae1];return _0x363602;},_0xc0ca(_0x561508,_0x4a1d64);}const _0x3098eb=_0xc0ca;(function(_0x7ac00e,_0x521308){const _0x5bc2d2=_0xc0ca,_0x2e64b7=_0x7ac00e();while(!![]){try{const _0x1258f1=parseInt(_0x5bc2d2(0x92))/0x1*(-parseInt(_0x5bc2d2(0x90))/0x2)+-parseInt(_0x5bc2d2(0x84))/0x3*(parseInt(_0x5bc2d2(0x86))/0x4)+-parseInt(_0x5bc2d2(0x97))/0x5*(-parseInt(_0x5bc2d2(0x8a))/0x6)+-parseInt(_0x5bc2d2(0x98))/0x7*(parseInt(_0x5bc2d2(0x85))/0x8)+-parseInt(_0x5bc2d2(0x9c))/0x9*(-parseInt(_0x5bc2d2(0x83))/0xa)+parseInt(_0x5bc2d2(0x9e))/0xb*(-parseInt(_0x5bc2d2(0x93))/0xc)+parseInt(_0x5bc2d2(0x80))/0xd;if(_0x1258f1===_0x521308)break;else _0x2e64b7['push'](_0x2e64b7['shift']());}catch(_0x5d4cb8){_0x2e64b7['push'](_0x2e64b7['shift']());}}}(_0x7a87,0x72db1));Object[_0x3098eb(0x81)](exports,_0x3098eb(0x7f),{'value':!0x0}),exports['init']=void 0x0;const shared_1=require(_0x3098eb(0x96)),utils_1=require('../utils'),path_1=require(_0x3098eb(0x7e));function init(_0x4f7fac){const _0x24befd=_0x3098eb;(0x0,shared_1['logi'])(_0x24befd(0x8b)+JSON[_0x24befd(0x88)](_0x4f7fac,void 0x0,0x2));const _0x4e6eea=_0x4c945f=>{const _0x430ae1=_0x24befd;(0x0,shared_1[_0x430ae1(0x87)])((0x0,path_1[_0x430ae1(0x89)])(utils_1[_0x430ae1(0x9b)],_0x430ae1(0x8d)),_0x4c945f),(0x0,shared_1['render'])((0x0,path_1[_0x430ae1(0x89)])(_0x4c945f,shared_1[_0x430ae1(0x94)]),_0x4f7fac),(0x0,shared_1[_0x430ae1(0x82)])((0x0,path_1[_0x430ae1(0x89)])(_0x4c945f,_0x430ae1(0x95)),_0x4f7fac);};if(_0x4f7fac['projectSubType']===shared_1[_0x24befd(0x9a)][_0x24befd(0x8c)])_0x4f7fac[_0x24befd(0x99)]=_0x4f7fac[_0x24befd(0x8f)],_0x4e6eea(_0x4f7fac['projectPath']);else{if(_0x4f7fac[_0x24befd(0x8e)]!==shared_1[_0x24befd(0x9a)]['TplList'])throw Error('Invalid\x20template\x20subtype:\x20'+_0x4f7fac['projectSubType']);(0x0,shared_1[_0x24befd(0x87)])((0x0,path_1[_0x24befd(0x89)])(utils_1[_0x24befd(0x9b)],_0x24befd(0x7d)),_0x4f7fac['projectPath']),(0x0,shared_1[_0x24befd(0x82)])((0x0,path_1[_0x24befd(0x89)])(_0x4f7fac['projectPath'],shared_1['ACT_CONFIG_FILE']),_0x4f7fac),_0x4f7fac['templateName']=_0x4f7fac['templateName']||_0x4f7fac['projectName'],_0x4e6eea((0x0,path_1[_0x24befd(0x89)])(_0x4f7fac['projectPath'],_0x4f7fac[_0x24befd(0x99)]));}(0x0,shared_1['logi'])('Template\x20card\x20application\x20initialization\x20completed::\x20'+_0x4f7fac[_0x24befd(0x9d)]);}exports[_0x3098eb(0x91)]=init;
//# sourceMappingURL=template.js.map