UNPKG

generator-begcode

Version:

Spring Boot + Angular/React/Vue in one handy generator

1 lines 14.6 kB
const _0x28617d=_0x5ba3;(function(_0x2a34ee,_0x554185){const _0x1ea998=_0x5ba3;const _0x4c8b1f=_0x2a34ee();do{try{const _0x5c68b4=parseInt(_0x1ea998(0x14))/0x1*(parseInt(_0x1ea998(0x2b))/0x2)+-parseInt(_0x1ea998(0x2a))/0x3*(parseInt(_0x1ea998(0x4e))/0x4)+parseInt(_0x1ea998(0x25))/0x5+-parseInt(_0x1ea998(0x15))/0x6*(-parseInt(_0x1ea998(0x43))/0x7)+-parseInt(_0x1ea998(0x9))/0x8*(parseInt(_0x1ea998(0x51))/0x9)+parseInt(_0x1ea998(0x46))/0xa*(parseInt(_0x1ea998(0x27))/0xb)+-parseInt(_0x1ea998(0x32))/0xc;if(_0x5c68b4===_0x554185){break;}else{_0x4c8b1f['push'](_0x4c8b1f["\u0073\u0068\u0069\u0066\u0074"]());}}catch(_0x5473ef){_0x4c8b1f['push'](_0x4c8b1f['shift']());}}while(!![]);})(_0x26eb,0x50405);import{passthrough}from"\u0040\u0079\u0065\u006f\u006d\u0061\u006e\u002f\u0074\u0072\u0061\u006e\u0073\u0066\u006f\u0072\u006d";import{Minimatch}from"\u006d\u0069\u006e\u0069\u006d\u0061\u0074\u0063\u0068";function replaceTranslationAttributes({content:_0xb4b9b7,getWebappTranslation:_0x257dd1}){const _0x21f8ae=_0x5ba3;const _0x1136e9={"\u0064\u0066\u0050\u0050\u0058":_0x21f8ae(0x44),'Wxico':_0x21f8ae(0x6)};return _0xb4b9b7["\u0072\u0065\u0070\u006c\u0061\u0063\u0065\u0041\u006c\u006c"](new RegExp(_0x1136e9["\u0057\u0078\u0069\u0063\u006f"],"\u0067"),(_0x3bab29,..._0x515235)=>{const _0x34910a=_0x515235["\u0070\u006f\u0070"]();if(_0x34910a["\u0074\u0072\u0061\u006e\u0073\u006c\u0061\u0074\u0065"]['includes']("\u002b")){return'';}const _0x3a3cd0=replaceTranslations({"\u0063\u006f\u006e\u0074\u0065\u006e\u0074":_0x34910a['translate'],"\u0074\u0079\u0070\u0065":_0x1136e9["\u0064\u0066\u0050\u0050\u0058"],"\u0067\u0065\u0074\u0057\u0065\u0062\u0061\u0070\u0070\u0054\u0072\u0061\u006e\u0073\u006c\u0061\u0074\u0069\u006f\u006e":_0x257dd1});return''+_0x3a3cd0;});}export function removeDeclarations({content:_0x407894}){const _0x3fa209=_0x5ba3;const _0x2d0265={"\u004a\u0072\u004e\u0059\u006c":_0x3fa209(0x1d),"\u0075\u004a\u0049\u0062\u0057":_0x3fa209(0x2c)};return _0x407894['replaceAll'](new RegExp(_0x2d0265["\u004a\u0072\u004e\u0059\u006c"],"\u0067"),'')["\u0072\u0065\u0070\u006c\u0061\u0063\u0065\u0041\u006c\u006c"](new RegExp(_0x2d0265["\u0075\u004a\u0049\u0062\u0057"],"\u0067"),'')["\u0072\u0065\u0070\u006c\u0061\u0063\u0065\u0041\u006c\u006c"](new RegExp(_0x3fa209(0x16),"\u0067"),'');}export function replaceTranslationTags({body:_0xdf732b,enableTranslation:_0x39d57d,getWebappTranslation:_0x4d4c71}){const _0x389583=_0x5ba3;const _0x57c014={"\u0049\u0063\u0047\u004c\u0053":function(_0xa744e9,_0x548640){return _0xa744e9(_0x548640);},"\u0046\u0079\u0041\u0064\u0051":_0x389583(0x44),'CWtxz':function(_0x441bec,_0x4ea1de){return _0x441bec!==_0x4ea1de;},"\u0056\u0042\u005a\u0041\u004d":_0x389583(0x6)};_0xdf732b=_0xdf732b["\u0072\u0065\u0070\u006c\u0061\u0063\u0065\u0041\u006c\u006c"](new RegExp(_0x57c014["\u0056\u0042\u005a\u0041\u004d"],"\u0067"),(_0x298c57,..._0x18a654)=>{const _0x179815=_0x5ba3;const _0x18945a=_0x18a654["\u0070\u006f\u0070"]();if(new RegExp("\u003c"+_0x18945a['tagName']+_0x179815(0x10),"\u0067")['test'](_0x18945a["\u0074\u0061\u0067\u0043\u006f\u006e\u0074\u0065\u006e\u0074"])){throw new Error(_0x179815(0x1e)+_0x18945a["\u0074\u0061\u0067\u0057\u0069\u0074\u0068\u0041\u0074\u0074\u0072\u0069\u0062\u0075\u0074\u0065\u0073"]+_0x18945a["\u0074\u0061\u0067\u0043\u006f\u006e\u0074\u0065\u006e\u0074"]);}if(_0x39d57d){return _0x18945a["\u0074\u0061\u0067\u0057\u0069\u0074\u0068\u0041\u0074\u0074\u0072\u0069\u0062\u0075\u0074\u0065\u0073"];}if(_0x18945a['translate']){if(_0x18945a['translate']["\u0069\u006e\u0063\u006c\u0075\u0064\u0065\u0073"]("\u002b")){this?.["gol".split("").reverse().join("")]["\u0069\u006e\u0066\u006f"](_0x179815(0x38)+_0x18945a["\u0074\u0072\u0061\u006e\u0073\u006c\u0061\u0074\u0065"]);}else{const _0x256cf4=_0x57c014["\u0049\u0063\u0047\u004c\u0053"](replaceTranslations,{"\u0074\u0079\u0070\u0065":_0x57c014['FyAdQ'],'content':_0x18945a["\u0074\u0072\u0061\u006e\u0073\u006c\u0061\u0074\u0065"],"\u0067\u0065\u0074\u0057\u0065\u0062\u0061\u0070\u0070\u0054\u0072\u0061\u006e\u0073\u006c\u0061\u0074\u0069\u006f\u006e":_0x4d4c71});if(_0x57c014["\u0043\u0057\u0074\u0078\u007a"](_0x256cf4,_0x18945a["\u0074\u0072\u0061\u006e\u0073\u006c\u0061\u0074\u0065"])){return _0x256cf4;}throw new Error(_0x256cf4+',\x20'+_0x18945a["\u0074\u0072\u0061\u006e\u0073\u006c\u0061\u0074\u0065"]);}}return''+_0x18945a["\u0062\u0065\u0066\u006f\u0072\u0065\u0054\u0072\u0061\u006e\u0073\u006c\u0061\u0074\u0065\u0054\u0061\u0067"]+_0x18945a["\u0061\u0066\u0074\u0065\u0072\u0054\u0072\u0061\u006e\u0073\u006c\u0061\u0074\u0065\u0054\u0061\u0067"]+_0x18945a['tagContent'];});if(_0x39d57d){return _0xdf732b;}return _0x57c014["\u0049\u0063\u0047\u004c\u0053"](replaceTranslationAttributes,{'content':_0xdf732b,"\u0067\u0065\u0074\u0057\u0065\u0062\u0061\u0070\u0070\u0054\u0072\u0061\u006e\u0073\u006c\u0061\u0074\u0069\u006f\u006e":_0x4d4c71});}export function replaceTranslations({content:_0x1afc1f,type:_0x1b818a,getWebappTranslation:_0x189d53}){const _0x38ac7e=_0x5ba3;const _0x37d0e3={'kEoPp':function(_0x390dd5,_0x52218b){return _0x390dd5^_0x52218b;},'TLPcd':function(_0x2e4493,_0x574f54){return _0x2e4493-_0x574f54;},"\u007a\u006c\u0050\u0055\u0053":function(_0x568d9b,_0x170ba8){return _0x568d9b^_0x170ba8;},"\u0058\u0068\u006e\u006b\u0078":_0x38ac7e(0x3e),"\u006b\u0052\u0043\u006d\u0050":_0x38ac7e(0x53),"\u0078\u0061\u0074\u0073\u006a":function(_0x20d6f6,_0x34dc6a){return _0x20d6f6-_0x34dc6a;},"\u004f\u004e\u005a\u0066\u0065":function(_0x7d3312,_0x5990e5){return _0x7d3312===_0x5990e5;},"\u0042\u0068\u006f\u004e\u005a":_0x38ac7e(0x50),"\u0043\u004d\u004a\u0050\u0045":_0x38ac7e(0x44),'hRBZj':function(_0x51ee81,_0x54d9ec){return _0x51ee81===_0x54d9ec;},"\u006f\u0065\u0062\u0052\u0052":function(_0x257a18,_0x19c85c,_0x3a691c){return _0x257a18(_0x19c85c,_0x3a691c);},"\u0063\u006d\u0066\u0074\u0066":function(_0x56252b,_0x1952da){return _0x56252b===_0x1952da;},"\u0054\u0079\u0065\u004d\u0073":_0x38ac7e(0x33)};const _0x1aa1bd=_0x37d0e3["\u0063\u006d\u0066\u0074\u0066"](_0x1b818a,"st".split("").reverse().join(""))?new RegExp(_0x37d0e3['TyeMs'],"\u0067"):new RegExp(_0x37d0e3['TyeMs'],"\u0067");return _0x1afc1f["\u0072\u0065\u0070\u006c\u0061\u0063\u0065\u0041\u006c\u006c"](_0x1aa1bd,(_0x35a81b,..._0x20badd)=>{const _0x1b23bf=_0x5ba3;const _0x47a0af=_0x20badd["\u0070\u006f\u0070"]();const _0x2ee6ec=_0x47a0af['key']["\u0073\u0075\u0062\u0073\u0074\u0072\u0069\u006e\u0067"](_0x37d0e3["\u006b\u0045\u006f\u0050\u0070"](0xc97de,0xc97df),_0x37d0e3['TLPcd'](_0x47a0af["\u006b\u0065\u0079"]["\u006c\u0065\u006e\u0067\u0074\u0068"],_0x37d0e3['zlPUS'](0x3c5bf,0x3c5be)))["\u0072\u0065\u0070\u006c\u0061\u0063\u0065\u0041\u006c\u006c"]('\x5c\x27','\x27');let _0xcb0ed6;if(_0x47a0af["\u0064\u0061\u0074\u0061"]){const _0x1c1086=_0x47a0af['data']['matchAll'](new RegExp(_0x37d0e3["\u0058\u0068\u006e\u006b\u0078"],"\u0067"));_0xcb0ed6={};let _0x3e89cd=![];for(const _0x4a7d23 of _0x1c1086){let{field:_0x31eec0,value:_0x45f009}=_0x4a7d23["\u0067\u0072\u006f\u0075\u0070\u0073"]||{};if(new RegExp(_0x1b23bf(0x52),'')["\u0074\u0065\u0073\u0074"](_0x31eec0)||new RegExp(_0x37d0e3["\u006b\u0052\u0043\u006d\u0050"],'')['test'](_0x31eec0)){_0x31eec0=_0x31eec0['substring'](_0x37d0e3["\u006b\u0045\u006f\u0050\u0070"](0x999a0,0x999a1),_0x37d0e3['xatsj'](_0x31eec0["\u006c\u0065\u006e\u0067\u0074\u0068"],_0x37d0e3["\u007a\u006c\u0050\u0055\u0053"](0x37022,0x37023)));}if(_0x37d0e3["\u004f\u004e\u005a\u0066\u0065"](_0x45f009,undefined)){_0x45f009=_0x31eec0;}_0x45f009=_0x45f009['trim']();if(new RegExp(_0x37d0e3["\u0042\u0068\u006f\u004e\u005a"],'')['test'](_0x45f009)){_0x45f009=parseInt(_0x45f009,0xaf70c^0xaf706);}else if(new RegExp(_0x1b23bf(0x52),'')["\u0074\u0065\u0073\u0074"](_0x45f009)||new RegExp(_0x1b23bf(0x53),'')['test'](_0x45f009)){_0x45f009=_0x45f009["\u0073\u0075\u0062\u0073\u0074\u0072\u0069\u006e\u0067"](_0x37d0e3["\u007a\u006c\u0050\u0055\u0053"](0x68df3,0x68df2),_0x45f009["\u006c\u0065\u006e\u0067\u0074\u0068"]-_0x37d0e3["\u006b\u0045\u006f\u0050\u0070"](0x4677f,0x4677e));}else{if(_0x1b818a===_0x37d0e3['CMJPE']){_0x45f009=_0x1b23bf(0x1b)+_0x45f009+_0x1b23bf(0x42);}else{_0x45f009="\u0024\u007b"+_0x45f009+"\u007d";}_0x3e89cd=!![];}_0xcb0ed6[_0x31eec0]=_0x45f009;}if(_0x3e89cd&&_0x37d0e3["\u0068\u0052\u0042\u005a\u006a"](_0x1b818a,"\u0074\u0073")){return"\u0060"+_0x37d0e3["\u006f\u0065\u0062\u0052\u0052"](_0x189d53,_0x2ee6ec,_0xcb0ed6)+"\u0060";}}if(_0x37d0e3["\u004f\u004e\u005a\u0066\u0065"](_0x1b818a,_0x1b23bf(0x44))){return _0x189d53(_0x2ee6ec,_0xcb0ed6);}return''+_0x189d53(_0x2ee6ec,_0xcb0ed6);});}function _0x5ba3(_0x446c4e,_0x26ebb1){const _0x5ba39e=_0x26eb();_0x5ba3=function(_0x2d32ec,_0x5ca652){_0x2d32ec=_0x2d32ec-0x0;let _0x3c81ca=_0x5ba39e[_0x2d32ec];return _0x3c81ca;};return _0x5ba3(_0x446c4e,_0x26ebb1);}function yYGVYX(_0x574460,_0x5c62be){if(!![]!=![])return;yYGVYX=function(_0x5b4b60,_0x30feef){_0x5b4b60=_0x5b4b60-(0x973c9^0x973c9);var _0x1b954e=_0x5e50e6[_0x5b4b60];return _0x1b954e;};return yYGVYX(_0x574460,_0x5c62be);}yYGVYX();function _0x26eb(){const _0x56d3c3=["SUPlz".split("").reverse().join(""),"\u004f\u004e\u005a\u0066\u0065","\u0054\u004c\u0050\u0063\u0064","\u004a\u0072\u004e\u0059\u006c","\u0061\u0066\u0074\u0065\u0072\u0054\u0072\u0061\u006e\u0073\u006c\u0061\u0074\u0065\u0054\u0061\u0067","\u0032\u0035\u0036\u0035\u0037\u0035\u0036\u0073\u0068\u0050\u006e\u0079\u0078",'t\x5c$t\x5c((?<key>[^),]*)(?:,\x5cs*{(?<data>[^)]*)})?\x5c)\x5c$t\x5c$',"\u0042\u0068\u006f\u004e\u005a","\u0054\u0079\u0065\u004d\u0073","\u0042\u0077\u004d\u0044\u006c","setubirttAhtiWgat".split("").reverse().join(""),'Ignoring\x20dynamic\x20translation\x20',"QdAyF".split("").reverse().join(""),"llac".split("").reverse().join(""),"\u0070\u0077\u0077\u0050\u0045","\u002e\u0074\u0073\u0078","}xst,st,euv{.*/**".split("").reverse().join(""),'(?<field>[^{\x5cs:,}]+)(?:\x5cs*:\x5cs*(?<value>[^,}]+))?',"\u0066\u0072\u006f\u006d","\u0063\u006f\u006e\u0074\u0065\u006e\u0074\u0073","atad".split("").reverse().join(""),'\x20}}',"WbZvGe559511".split("").reverse().join(""),"\u0076\u0075\u0065","\u006d\u0061\u0074\u0063\u0068","\u0031\u0036\u0035\u0033\u0031\u0035\u0030\u0073\u004f\u0061\u0050\u0048\u0048","\u0069\u006e\u0066\u006f","\u006b\u0065\u0079","SLGcI".split("").reverse().join(""),"htgnel".split("").reverse().join(""),"\u0070\u006f\u0070","\u006b\u0052\u0043\u006d\u0050","zxtWC".split("").reverse().join(""),"\u0031\u0033\u0036\u0057\u0078\u0054\u004f\u0061\u0044","ftfmc".split("").reverse().join(""),'^\x5cd+$',"bnKSsu657".split("").reverse().join(""),'^\x27.*\x27$','^\x22.*\x22$',"\u0068\u0052\u0042\u005a\u006a","llAecalper".split("").reverse().join(""),"\u0070\u0061\u0074\u0068","\u0074\u0061\u0067\u0043\u006f\u006e\u0074\u0065\u006e\u0074","xknhX".split("").reverse().join(""),"\u0074\u0065\u0073\u0074",'(?<translate>t\x5c$t\x5c([^)]*\x5c)\x5c$t\x5c$)',"WbIJu".split("").reverse().join(""),"st.".split("").reverse().join(""),"\u0035\u0031\u0037\u0036\u0052\u007a\u006b\u0067\u0075\u0074",'Could\x20not\x20translate\x20',"\u0074\u006f\u0053\u0074\u0072\u0069\u006e\u0067","\u0046\u0065\u0062\u0056\u006a","\u006c\u006f\u0067","\u0057\u0078\u0069\u0063\u006f","\u0056\u0042\u005a\u0041\u004d",'[\x5cs>]',"\u0069\u006e\u0063\u006c\u0075\u0064\u0065\u0073","\u006b\u0045\u006f\u0050\u0070","\u006d\u0061\u0074\u0063\u0068\u0041\u006c\u006c","\u0031\u0034\u0064\u004f\u0047\u006f\u0054\u0050","\u0036\u0036\u0064\u0073\u0068\u0053\u0046\u0078",'\x5cn\x5cs*t\x5c$:\x5cs*useI18n\x5c(\x5c).t,',"\u0074\u0072\u0061\u006e\u0073\u006c\u0061\u0074\u0065","XPPfd".split("").reverse().join(""),"\u006f\u0065\u0062\u0052\u0052","\u0043\u004d\u004a\u0050\u0045",'{{\x20',"XTXig".split("").reverse().join(""),'\x5cnimport\x20{\x5cs*useI18n\x5cs*}\x20from\x20\x27vue-i18n\x27;','Nested\x20tags\x20identical\x20to\x20the\x20translated\x20tag\x20are\x20not\x20supported:\x20',"(t$t".split("").reverse().join(""),"\u0073\u0075\u0062\u0073\u0074\u0072\u0069\u006e\u0067","\u0065\u006e\u0064\u0073\u0057\u0069\u0074\u0068","gaTetalsnarTerofeb".split("").reverse().join(""),"\u0074\u0072\u0069\u006d","jstax".split("").reverse().join(""),"\u0031\u0035\u0033\u0039\u0037\u0033\u0030\u0047\u0054\u006e\u0052\u006b\u0066","\u0074\u0061\u0067\u004e\u0061\u006d\u0065","\u0033\u0033\u0042\u0042\u006f\u0043\u0076\u0052","\u0067\u0072\u006f\u0075\u0070\u0073","\u002e\u0076\u0075\u0065","\u0035\u0037\u0030\u0037\u0035\u0076\u0076\u0077\u0046\u0057\u0067","jpuZpC20863".split("").reverse().join(""),'\x5cn\x5cs*t\x5c$,'];_0x26eb=function(){return _0x56d3c3;};return _0x26eb();}const minimatch=new Minimatch(_0x28617d(0x3d));export const isTranslatedVueFile=_0x22cdb0=>minimatch['match'](_0x22cdb0['path']);function translateVueFilesTransform({enableTranslation:_0x170c26,getWebappTranslation:_0x5a967b}){const _0x5a26f6=_0x5ba3;const _0x28dbe5={"\u0046\u0065\u0062\u0056\u006a":_0x5a26f6(0x29),'giXTX':_0x5a26f6(0x3c),'pwwPE':_0x5a26f6(0x8),"\u0042\u0077\u004d\u0044\u006c":function(_0x4ac1e2,_0x524809){return _0x4ac1e2(_0x524809);}};return _0x28dbe5['BwMDl'](passthrough,_0x54da46=>{const _0x447946=_0x5ba3;let _0x433ffc;if(_0x54da46['path']["\u0065\u006e\u0064\u0073\u0057\u0069\u0074\u0068"](_0x28dbe5["\u0046\u0065\u0062\u0056\u006a"])||_0x54da46["\u0070\u0061\u0074\u0068"]["\u0065\u006e\u0064\u0073\u0057\u0069\u0074\u0068"](_0x28dbe5["\u0067\u0069\u0058\u0054\u0058"])){_0x433ffc=replaceTranslationTags["\u0063\u0061\u006c\u006c"](this,{"\u0062\u006f\u0064\u0079":_0x54da46['contents']['toString'](),"\u0065\u006e\u0061\u0062\u006c\u0065\u0054\u0072\u0061\u006e\u0073\u006c\u0061\u0074\u0069\u006f\u006e":_0x170c26,"\u0067\u0065\u0074\u0057\u0065\u0062\u0061\u0070\u0070\u0054\u0072\u0061\u006e\u0073\u006c\u0061\u0074\u0069\u006f\u006e":_0x5a967b});}else if(!_0x170c26&&_0x54da46["\u0070\u0061\u0074\u0068"]["\u0065\u006e\u0064\u0073\u0057\u0069\u0074\u0068"](_0x28dbe5['pwwPE'])){_0x433ffc=_0x28dbe5["\u0042\u0077\u004d\u0044\u006c"](replaceTranslations,{'type':"\u0074\u0073","\u0063\u006f\u006e\u0074\u0065\u006e\u0074":_0x54da46["\u0063\u006f\u006e\u0074\u0065\u006e\u0074\u0073"]["\u0074\u006f\u0053\u0074\u0072\u0069\u006e\u0067"](),'getWebappTranslation':_0x5a967b});_0x433ffc=_0x28dbe5['BwMDl'](removeDeclarations,{"\u0063\u006f\u006e\u0074\u0065\u006e\u0074":_0x433ffc});}if(_0x433ffc){if(!_0x170c26&&_0x433ffc['includes'](_0x447946(0x1f))){throw new Error(_0x447946(0xa)+_0x54da46["\u0070\u0061\u0074\u0068"]+':\x0a'+_0x433ffc);}_0x54da46['contents']=Buffer["\u0066\u0072\u006f\u006d"](_0x433ffc);}});}export default translateVueFilesTransform;