@wp1001/ui 3.6.0 → 3.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@vant-D4fmGxs6.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/packages/assets/devtools-detector.js +1 -1
- package/packages/components/xarray/index.js +1 -1
- package/packages/components/xautorows/index.js +1 -1
- package/packages/components/xbutton/mobile.js +1 -1
- package/packages/components/xbutton/pc.js +1 -1
- package/packages/components/xbuttons/mobile.js +1 -1
- package/packages/components/xbuttons/pc.js +1 -1
- package/packages/components/xchart/constants.js +1 -1
- package/packages/components/xchart/index.js +1 -1
- package/packages/components/xchart/utils.js +1 -1
- package/packages/components/xcheckboxs/mobile.js +1 -1
- package/packages/components/xcheckboxs/pc.js +1 -1
- package/packages/components/xcol/mobile.js +1 -1
- package/packages/components/xcol/pc.js +1 -1
- package/packages/components/xdatepicker/mobile.js +1 -1
- package/packages/components/xdatepicker/pc.js +1 -1
- package/packages/components/xdialog/mobile.js +1 -1
- package/packages/components/xdialog/pc.js +1 -1
- package/packages/components/xdict/index.js +1 -1
- package/packages/components/xdistrictselect/mobile.js +1 -1
- package/packages/components/xdistrictselect/pc.js +1 -1
- package/packages/components/xform/mobile.js +1 -1
- package/packages/components/xform/pc.js +1 -1
- package/packages/components/xform/utils.js +1 -1
- package/packages/components/xformitem/mobile.js +1 -1
- package/packages/components/xformitem/pc.js +1 -1
- package/packages/components/xicon/mobile.js +1 -1
- package/packages/components/xicon/mobile.vue +15 -3
- package/packages/components/xicon/pc.js +1 -1
- package/packages/components/xicon/pc.vue +15 -3
- package/packages/components/xinfo/index.js +1 -1
- package/packages/components/xlooper/index.js +1 -1
- package/packages/components/xpagination/mobile.js +1 -1
- package/packages/components/xpagination/pc.js +1 -1
- package/packages/components/xpicker/index.js +1 -1
- package/packages/components/xradios/mobile.js +1 -1
- package/packages/components/xradios/pc.js +1 -1
- package/packages/components/xrow/mobile.js +1 -1
- package/packages/components/xrow/pc.js +1 -1
- package/packages/components/xscan/mobile.js +1 -1
- package/packages/components/xscan/pc.js +1 -1
- package/packages/components/xsearcher/index.js +1 -1
- package/packages/components/xselect/mobile.js +1 -1
- package/packages/components/xselect/pc.js +1 -1
- package/packages/components/xselect/util.js +1 -1
- package/packages/components/xselectv2/index.js +1 -1
- package/packages/components/xtable/mobile.js +1 -1
- package/packages/components/xtable/pc.js +1 -1
- package/packages/components/xtable/searcher.js +1 -1
- package/packages/components/xtable/settings.js +1 -1
- package/packages/components/xtable/utils.js +1 -1
- package/packages/components/xtabletools/mobile.js +1 -1
- package/packages/components/xtabletools/pc.js +1 -1
- package/packages/components/xtablev2/pc.js +1 -1
- package/packages/components/xtags/mobile.js +1 -1
- package/packages/components/xtags/pc.js +1 -1
- package/packages/components/xtinymce/index.js +1 -1
- package/packages/components/xuploader/xfileuploader.js +1 -1
- package/packages/components/xuploader/ximageuploader.js +1 -1
- package/packages/comps.js +1 -1
- package/packages/controllers/BaseController.js +1 -1
- package/packages/controllers/CrudController.js +1 -1
- package/packages/controllers/TempCrudController.js +1 -1
- package/packages/controllers/index.js +1 -1
- package/packages/directives/el-table-infinite-scroll.js +1 -1
- package/packages/directives/index.js +1 -1
- package/packages/index.js +1 -1
- package/packages/layout/breadcrumb/index.js +1 -1
- package/packages/layout/header/inner.js +1 -1
- package/packages/layout/screenlock/index.js +1 -1
- package/packages/layout/sidebar/item.js +1 -1
- package/packages/layout/sidebar/menu.js +1 -1
- package/packages/layout/tagsview/ScrollPane.js +1 -1
- package/packages/layout/tagsview/index.js +1 -1
- package/packages/plop/actions/make-fill-admin-partials-action.js +1 -1
- package/packages/plop/generators/make-admin-page.js +1 -1
- package/packages/plop/generators/make-database-admin-pages.js +1 -1
- package/packages/plop/generators/make-page-generator.js +1 -1
- package/packages/plop/generators/make-simple-page.js +1 -1
- package/packages/plop/plopfile.js +1 -1
- package/packages/plop/utils/index.js +1 -1
- package/packages/plop/utils/plop-utils.js +1 -1
- package/packages/utils/crypt.js +1 -1
- package/packages/utils/decorators.js +1 -1
- package/packages/utils/disallowDevtools.js +1 -1
- package/packages/utils/effects.js +1 -1
- package/packages/utils/funcs.js +1 -1
- package/packages/utils/index.js +1 -1
- package/packages/utils/message.js +1 -1
- package/packages/utils/middlewares.js +1 -1
- package/packages/utils/model.js +1 -1
- package/packages/utils/modelUtils.js +1 -1
- package/packages/utils/request.js +1 -1
- package/packages/utils/site.js +1 -1
- package/packages/vite-plugins.js +1 -1
- package/src/main.js +1 -1
- package/src/request.js +1 -1
- package/vite.config.js +1 -1
- package/vite.lib.config.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x32973b,_0x3d0643){const _0x225c5e=a74_0x562c,_0x3589f4=_0x32973b();while(!![]){try{const _0x5836da=-parseInt(_0x225c5e(0xd6))/0x1*(parseInt(_0x225c5e(0xd4))/0x2)+-parseInt(_0x225c5e(0xca))/0x3*(-parseInt(_0x225c5e(0xcd))/0x4)+-parseInt(_0x225c5e(0xcf))/0x5+parseInt(_0x225c5e(0xda))/0x6*(parseInt(_0x225c5e(0xee))/0x7)+-parseInt(_0x225c5e(0xd9))/0x8+parseInt(_0x225c5e(0xf1))/0x9+-parseInt(_0x225c5e(0xe9))/0xa;if(_0x5836da===_0x3d0643)break;else _0x3589f4['push'](_0x3589f4['shift']());}catch(_0x1c9430){_0x3589f4['push'](_0x3589f4['shift']());}}}(a74_0x5e0d,0x2b02e));import a74_0x5391a3 from'./ScrollPane.vue';import a74_0x39816c from'@/router';function a74_0x5e0d(){const _0x290fd9=['addTags','delView','$nextTick','affixTags','routes','3IEKLRa','body','closeMenu','900708CocgsM','$store','1686970CUYbWb','selectedTag','addView','length','some','18KtIABZ','$refs','4227WXtOkd','visible','offsetWidth','823080NGQqRf','1017096yFiEGA','delCachedView','visitedViews','left','removeEventListener','push','toLastView','click','addVisitedView','then','children','replace','$el','clientX','path','481020RSuRSA','scrollPane','updateVisitedView','addEventListener','delAllViews','7StBCnv','filterAffixTags','name','2771145DZDhSv','meta','slice','affix','resolvePath','$route','isActive','$router','top','tag','getBoundingClientRect','tagsview','fullPath','clientY'];a74_0x5e0d=function(){return _0x290fd9;};return a74_0x5e0d();}function a74_0x562c(_0x501fbc,_0x11d4e1){const _0x5e0d7b=a74_0x5e0d();return a74_0x562c=function(_0x562c02,_0x5118c6){_0x562c02=_0x562c02-0xca;let _0x29e6fa=_0x5e0d7b[_0x562c02];return _0x29e6fa;},a74_0x562c(_0x501fbc,_0x11d4e1);}export default{'components':{'ScrollPane':a74_0x5391a3},'data'(){return{'visible':![],'top':0x0,'left':0x0,'selectedTag':{},'affixTags':[]};},'computed':{'visitedViews'(){const _0x2fbcb7=a74_0x562c;return this[_0x2fbcb7(0xce)][_0x2fbcb7(0xfc)][_0x2fbcb7(0xdc)];},'routes'(){return a74_0x39816c['getRoutes']();}},'watch':{'$route'(){const _0x2003de=a74_0x562c;this[_0x2003de(0xff)](),this['moveToCurrentTag']();},'visible'(_0x1efeaf){const _0x52971d=a74_0x562c;_0x1efeaf?document['body'][_0x52971d(0xec)](_0x52971d(0xe1),this[_0x52971d(0xcc)]):document[_0x52971d(0xcb)][_0x52971d(0xde)](_0x52971d(0xe1),this[_0x52971d(0xcc)]);}},'mounted'(){const _0x3ae377=a74_0x562c;this['initTags'](),this[_0x3ae377(0xff)]();},'methods':{'isActive'(_0x5c9532){const _0x5b5a84=a74_0x562c;return _0x5c9532[_0x5b5a84(0xe8)]===this['$route'][_0x5b5a84(0xe8)];},'isAffix'(_0x728169){const _0x5da333=a74_0x562c;return _0x728169[_0x5da333(0xf2)]?.[_0x5da333(0xf4)];},'filterAffixTags'(_0x505aa3,_0x10147d='/'){let _0x4bb1ac=[];return _0x505aa3['forEach'](_0x49ab7b=>{const _0x51451e=a74_0x562c;if(_0x49ab7b['meta']?.[_0x51451e(0xf4)]){const _0x1c6770=this[_0x51451e(0xf5)](_0x10147d,_0x49ab7b[_0x51451e(0xe8)]);_0x4bb1ac['push']({'fullPath':_0x1c6770,'path':_0x1c6770,'name':_0x49ab7b['name'],'meta':{..._0x49ab7b['meta']}});}if(_0x49ab7b['children']){const _0x33d46e=this[_0x51451e(0xef)](_0x49ab7b[_0x51451e(0xe4)],this[_0x51451e(0xf5)](_0x10147d,_0x49ab7b[_0x51451e(0xe8)]));_0x33d46e[_0x51451e(0xd2)]>=0x1&&(_0x4bb1ac=[..._0x4bb1ac,..._0x33d46e]);}}),_0x4bb1ac;},'initTags'(){const _0x42f1be=a74_0x562c,_0x1eeace=this[_0x42f1be(0x102)]=this[_0x42f1be(0xef)](this[_0x42f1be(0x103)]);for(const _0x3a8ee4 of _0x1eeace){_0x3a8ee4[_0x42f1be(0xf0)]&&this['$store']['tagsview'][_0x42f1be(0xe2)](_0x3a8ee4);}},'addTags'(){const _0x591964=a74_0x562c,{name:_0x3e3f0d}=this[_0x591964(0xf6)];return _0x3e3f0d&&this['$store'][_0x591964(0xfc)][_0x591964(0xd1)](this['$route']),![];},'moveToCurrentTag'(){const _0x1aa11e=a74_0x562c,_0x4575ee=this[_0x1aa11e(0xd5)][_0x1aa11e(0xfa)];this['$nextTick'](()=>{const _0x1c54c3=_0x1aa11e;for(const _0x4f3a7b of _0x4575ee){if(_0x4f3a7b['to'][_0x1c54c3(0xe8)]===this[_0x1c54c3(0xf6)][_0x1c54c3(0xe8)]){this[_0x1c54c3(0xd5)][_0x1c54c3(0xea)]['moveToTarget'](_0x4f3a7b);_0x4f3a7b['to'][_0x1c54c3(0xfd)]!==this[_0x1c54c3(0xf6)][_0x1c54c3(0xfd)]&&this[_0x1c54c3(0xce)][_0x1c54c3(0xfc)][_0x1c54c3(0xeb)](this['$route']);break;}}});},'refreshSelectedTag'(_0x854114){const _0x3dc0ae=a74_0x562c;this[_0x3dc0ae(0xce)][_0x3dc0ae(0xfc)][_0x3dc0ae(0xdb)](_0x854114)[_0x3dc0ae(0xe3)](()=>{const _0xbb7997=_0x3dc0ae,{fullPath:_0x1a7493}=_0x854114;this[_0xbb7997(0x101)](()=>{const _0x4a5581=_0xbb7997;this[_0x4a5581(0xf8)][_0x4a5581(0xe5)]({'path':_0x1a7493});});});},'closeSelectedTag'(_0x1cd8cd){const _0x29fb33=a74_0x562c;this[_0x29fb33(0xce)][_0x29fb33(0xfc)][_0x29fb33(0x100)](_0x1cd8cd)[_0x29fb33(0xe3)](({visitedViews:_0x1cf0fb})=>{const _0x21cc35=_0x29fb33;this[_0x21cc35(0xf7)](_0x1cd8cd)&&this[_0x21cc35(0xe0)](_0x1cf0fb,_0x1cd8cd);});},'closeOthersTags'(){const _0x497637=a74_0x562c;this['$router']['push'](this[_0x497637(0xd0)]),this[_0x497637(0xce)][_0x497637(0xfc)]['delOthersViews'](this[_0x497637(0xd0)])[_0x497637(0xe3)](()=>{this['moveToCurrentTag']();});},'closeAllTags'(_0x4e6f6f){const _0x38bbcc=a74_0x562c;this[_0x38bbcc(0xce)][_0x38bbcc(0xfc)][_0x38bbcc(0xed)]()[_0x38bbcc(0xe3)](({visitedViews:_0x35992c})=>{const _0x5c3987=_0x38bbcc;if(this[_0x5c3987(0x102)][_0x5c3987(0xd3)](_0x1c4dce=>_0x1c4dce[_0x5c3987(0xe8)]===_0x4e6f6f[_0x5c3987(0xe8)]))return;this['toLastView'](_0x35992c,_0x4e6f6f);});},'toLastView'(_0x5645cb,_0x318a8c){const _0x176c4a=a74_0x562c,_0x16043b=_0x5645cb[_0x176c4a(0xf3)](-0x1)[0x0];_0x16043b?this[_0x176c4a(0xf8)][_0x176c4a(0xdf)](_0x16043b[_0x176c4a(0xfd)]):_0x318a8c['name']==='Dashboard'?this[_0x176c4a(0xf8)][_0x176c4a(0xe5)]({'path':_0x318a8c['fullPath']}):this[_0x176c4a(0xf8)]['push']('/');},'openMenu'(_0x264829,_0x5b0ff5){const _0xa99d46=a74_0x562c,_0x31d927=0x69,_0x4010ce=this['$el'][_0xa99d46(0xfb)]()[_0xa99d46(0xdd)],_0xa38395=this[_0xa99d46(0xe6)][_0xa99d46(0xd8)],_0x300a4c=_0xa38395-_0x31d927,_0x3bd648=_0x5b0ff5[_0xa99d46(0xe7)]-_0x4010ce+0xf;_0x3bd648>_0x300a4c?this[_0xa99d46(0xdd)]=_0x300a4c:this[_0xa99d46(0xdd)]=_0x3bd648,this[_0xa99d46(0xf9)]=_0x5b0ff5[_0xa99d46(0xfe)],this['visible']=!![],this[_0xa99d46(0xd0)]=_0x264829;},'closeMenu'(){const _0x3fa1c3=a74_0x562c;this[_0x3fa1c3(0xd7)]=![];},'handleScroll'(){const _0x2ccbe6=a74_0x562c;this[_0x2ccbe6(0xcc)]();},'resolvePath'(_0xe4ce11,_0x2beb5b){const _0x45f12a=a74_0x562c;if(_0xe4ce11[0x0]!=='/')_0xe4ce11='/'+_0xe4ce11;if(_0xe4ce11[_0x45f12a(0xd2)]>0x1&&_0xe4ce11['endsWith']('/'))_0xe4ce11=_0xe4ce11[_0x45f12a(0xf3)](0x0,-0x1);if(_0xe4ce11==='/')_0xe4ce11='';if(_0x2beb5b[0x0]!=='/')_0x2beb5b='/'+_0x2beb5b;return _0xe4ce11+_0x2beb5b;}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a75_0x14a6d2=a75_0x17ae;(function(_0x19041d,_0x2a4f76){const _0x59988d=a75_0x17ae,_0x5ae99a=_0x19041d();while(!![]){try{const _0x4b88a1=parseInt(_0x59988d(0x17c))/0x1*(parseInt(_0x59988d(0x174))/0x2)+-parseInt(_0x59988d(0x16d))/0x3+parseInt(_0x59988d(0x168))/0x4*(parseInt(_0x59988d(0x179))/0x5)+parseInt(_0x59988d(0x169))/0x6*(parseInt(_0x59988d(0x172))/0x7)+parseInt(_0x59988d(0x16f))/0x8+-parseInt(_0x59988d(0x15b))/0x9+-parseInt(_0x59988d(0x164))/0xa*(parseInt(_0x59988d(0x17e))/0xb);if(_0x4b88a1===_0x2a4f76)break;else _0x5ae99a['push'](_0x5ae99a['shift']());}catch(_0x38db3b){_0x5ae99a['push'](_0x5ae99a['shift']());}}}(a75_0x56c7,0x18835));import a75_0x8908ec from'../utils/plop-utils.js';import{getModel,makeFields}from'../utils/index.js';function a75_0x56c7(){const _0x3d7cb2=['322437zJFujm','删除时间','642992iWcRUB','updated','match','14cwuQQU','prop:','3866kjsxgq','comp:','deleted_at','tableAttrs:','创建时间','694795SzSjCr','{\x0a\x20\x20label:\x20\x27','keys','97eBofVj','setPartial','539sibUFa','_autoGenerated','forEach','slice','label','tableAttrs','updater_id','updated_at','\x0a\x20\x20','replace','primaryKeyField','includes','[{}]','941913cOKwdr','formAttrs:','endsWith','formAttrs','\x27,\x20prop:\x20\x27','length','map','更新时间','options:','31190lhhyyY','trim','idFieldPartial','split','4tOBOgo','175614McGdVB','tableAttributes','fieldsPartial','startsWith'];a75_0x56c7=function(){return _0x3d7cb2;};return a75_0x56c7();}const {makePartial}=a75_0x8908ec,viewonlyFields=['creator_id',a75_0x14a6d2(0x154),'created_at',a75_0x14a6d2(0x155),a75_0x14a6d2(0x176)],makeFillAdminPartialsAction=_0x3a316d=>{return async function(_0x388c61){const _0x3edec4=a75_0x17ae,_0x236394=await getModel(_0x3a316d,_0x388c61),_0x1b5542=_0x236394[_0x3edec4(0x16a)];Object[_0x3edec4(0x17b)](_0x1b5542)[_0x3edec4(0x180)](_0xb03f40=>{const _0x16ffb6=_0x3edec4;if(_0x1b5542[_0xb03f40][_0x16ffb6(0x17f)]){if(_0xb03f40[_0x16ffb6(0x16c)]('created'))_0x1b5542[_0xb03f40][_0x16ffb6(0x182)]=_0x16ffb6(0x178);else{if(_0xb03f40['startsWith'](_0x16ffb6(0x170)))_0x1b5542[_0xb03f40]['label']=_0x16ffb6(0x162);else _0xb03f40[_0x16ffb6(0x16c)]('deleted')&&(_0x1b5542[_0xb03f40][_0x16ffb6(0x182)]=_0x16ffb6(0x16e));}}}),fillIdFieldPartial(_0x3a316d,_0x236394,_0x388c61),fillFieldsPartial(_0x3a316d,_0x236394,_0x388c61),Object[_0x3edec4(0x17b)](_0x1b5542)[_0x3edec4(0x180)](_0x1b18ee=>{const {autoIncrement:_0x35a818,_autoGenerated:_0xcc0a0}=_0x1b5542[_0x1b18ee];(_0x35a818||_0xcc0a0)&&delete _0x1b5542[_0x1b18ee];}),viewonlyFields[_0x3edec4(0x180)](_0x542366=>delete _0x1b5542[_0x542366]);};},fillIdFieldPartial=(_0x52db6a,_0x221db6,_0x51c329)=>{const _0x4bd6cd=a75_0x14a6d2;_0x52db6a[_0x4bd6cd(0x17d)](_0x4bd6cd(0x166),_0x221db6[_0x4bd6cd(0x158)]);},fillFieldsPartial=(_0x5c6140,_0x209007,_0x47db51)=>{const _0x366533=a75_0x14a6d2,_0x3f2b23=makeFields(_0x209007,_0x47db51);_0x5c6140[_0x366533(0x17d)](_0x366533(0x16b),makeFieldsPartial(_0x3f2b23));},makeFieldsPartial=_0x57486e=>{const _0x3e1497=a75_0x14a6d2,_0x5818f4=[_0x3e1497(0x153),_0x3e1497(0x15e)];_0x57486e[_0x3e1497(0x161)](_0x13cbe2=>{_0x5818f4['forEach'](_0x3db945=>{const _0x330899=a75_0x17ae,_0x3b8415=_0x13cbe2[_0x3db945],_0x13334a=Object[_0x330899(0x17b)](_0x3b8415);_0x13334a[_0x330899(0x160)]<=0x1&&delete _0x13cbe2[_0x3db945];if(_0x13334a[_0x330899(0x160)]!==0x1)return;const _0x4c9ba5=_0x3db945[0x0]+_0x3db945[_0x330899(0x171)](/[A-Z]/)[0x0]['toLowerCase']()+'_';for(let _0x179144 of _0x13334a){_0x13cbe2[_0x4c9ba5+_0x179144]=_0x3b8415[_0x179144];}});});const _0x4ad5d8=makePartial(_0x57486e);let _0x28934b='';const _0x1bcdb4=_0x4ad5d8[_0x3e1497(0x167)]('\x0a');let _0x451543='',_0x2440d8='',_0x54967e=![];for(let _0x24da2c=0x0;_0x24da2c<_0x1bcdb4[_0x3e1497(0x160)];_0x24da2c++){const _0x124400=_0x1bcdb4[_0x24da2c],_0x12554a=_0x124400[_0x3e1497(0x165)]();_0x124400[_0x3e1497(0x159)]('label:')&&(_0x451543=_0x124400[_0x3e1497(0x171)](/label: '([^']+)'/)[0x1],_0x54967e=![]),_0x124400[_0x3e1497(0x159)](_0x3e1497(0x173))&&(_0x2440d8=_0x124400['match'](/prop: '([^']+)'/)[0x1]),_0x3e1497(0x15a)[_0x3e1497(0x159)](_0x12554a[0x0])?(_0x54967e&&'}'[_0x3e1497(0x159)](_0x12554a[0x0])&&(_0x28934b+='\x0a'),_0x28934b+=_0x124400,'{'['includes'](_0x12554a[0x0])&&(_0x28934b+='\x20'),'}'[_0x3e1497(0x159)](_0x12554a[0x0])&&(_0x28934b+='\x0a')):(_0x124400[_0x3e1497(0x159)](_0x3e1497(0x175))&&(_0x54967e=!![],_0x28934b[_0x3e1497(0x15d)]('\x0a')?_0x28934b+='\x20\x20':_0x28934b+='\x0a\x20\x20'),_0x124400[_0x3e1497(0x159)](_0x3e1497(0x177))||_0x124400[_0x3e1497(0x159)](_0x3e1497(0x15c))?(_0x54967e=!![],_0x28934b[_0x3e1497(0x15d)]('\x0a')?_0x28934b+='\x20\x20':_0x28934b+=_0x3e1497(0x156),_0x28934b+=_0x12554a['replace'](/Attrs: {/,'Attrs:\x20{\x0a\x20\x20\x20')):_0x28934b+=_0x12554a,_0x54967e&&(_0x28934b=_0x28934b[_0x3e1497(0x157)]('{\x20label:\x20\x27'+_0x451543+_0x3e1497(0x15f)+_0x2440d8+'\x27',_0x3e1497(0x17a)+_0x451543+_0x3e1497(0x15f)+_0x2440d8+'\x27')),_0x124400[_0x3e1497(0x159)](_0x3e1497(0x163))&&(_0x54967e=!![],_0x28934b+='\x0a\x20'),_0x28934b+='\x20');}return _0x28934b=_0x28934b[_0x3e1497(0x181)](0x0,-0x1),_0x28934b=_0x28934b[_0x3e1497(0x157)](/ \n/g,'\x0a'),_0x28934b;};function a75_0x17ae(_0x9ad0ec,_0x3b24b4){const _0x56c707=a75_0x56c7();return a75_0x17ae=function(_0x17ae7b,_0x41ec06){_0x17ae7b=_0x17ae7b-0x153;let _0x92e85e=_0x56c707[_0x17ae7b];return _0x92e85e;},a75_0x17ae(_0x9ad0ec,_0x3b24b4);}export default makeFillAdminPartialsAction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2fcad2,_0x51bd93){const _0x42a803=a76_0x4f49,_0xcea638=_0x2fcad2();while(!![]){try{const _0x2b1f45=-parseInt(_0x42a803(0x155))/0x1*(-parseInt(_0x42a803(0x15b))/0x2)+parseInt(_0x42a803(0x151))/0x3*(parseInt(_0x42a803(0x14f))/0x4)+-parseInt(_0x42a803(0x15e))/0x5*(-parseInt(_0x42a803(0x14d))/0x6)+parseInt(_0x42a803(0x15a))/0x7*(parseInt(_0x42a803(0x158))/0x8)+-parseInt(_0x42a803(0x15d))/0x9+parseInt(_0x42a803(0x15c))/0xa*(-parseInt(_0x42a803(0x150))/0xb)+parseInt(_0x42a803(0x153))/0xc*(-parseInt(_0x42a803(0x156))/0xd);if(_0x2b1f45===_0x51bd93)break;else _0xcea638['push'](_0xcea638['shift']());}catch(_0x31a446){_0xcea638['push'](_0xcea638['shift']());}}}(a76_0x4c13,0xb357e));function a76_0x4f49(_0x27abc7,_0x48797c){const _0x4c1341=a76_0x4c13();return a76_0x4f49=function(_0x4f49f3,_0x20dac9){_0x4f49f3=_0x4f49f3-0x14d;let _0x4bb92c=_0x4c1341[_0x4f49f3];return _0x4bb92c;},a76_0x4f49(_0x27abc7,_0x48797c);}import a76_0x228eee from'../utils/plop-utils.js';import a76_0x36ee52 from'./make-page-generator.js';import a76_0xef638c from'../actions/make-fill-admin-partials-action.js';const {makeInputPrompt,makeConfirmPrompt}=a76_0x228eee,makeGenerator=_0xcdc516=>{const _0x4bcf96=a76_0x4f49,_0x498830='admin_page',_0x5512db=a76_0x36ee52(_0xcdc516,_0x498830);return _0xcdc516['setPartial']('fieldsPartial',_0x4bcf96(0x154)),{'name':'make-admin-page','description':_0x4bcf96(0x14e),'prompts':[makeInputPrompt('database','数据库名称'),makeInputPrompt('table',_0x4bcf96(0x157)),makeConfirmPrompt(_0x4bcf96(0x152),_0x4bcf96(0x159)),..._0x5512db[_0x4bcf96(0x15f)]],'actions':[a76_0xef638c(_0xcdc516),..._0x5512db['actions']]};};function a76_0x4c13(){const _0x54ad01=['4530vpyQWJ','6700869nHEAot','48935GYidVM','prompts','282QchIWW','创建新的后台管理页面','2662412kaIqRC','913NiAvpv','6VrRaLQ','no-meta','12HscUWU','[\x0a]','81436cawnxw','20623252qlwSYV','数据表名称','195832emTNTM','是否排除元字段(ID、创建、更新、删除相关标记)?','119QaKTFQ','22Jqjkbg'];a76_0x4c13=function(){return _0x54ad01;};return a76_0x4c13();}export default makeGenerator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x22fe9c,_0x10e201){const _0x1f2853=a77_0x5e7a,_0x368157=_0x22fe9c();while(!![]){try{const _0x231dd1=-parseInt(_0x1f2853(0xe4))/0x1+-parseInt(_0x1f2853(0x107))/0x2+parseInt(_0x1f2853(0xe2))/0x3+parseInt(_0x1f2853(0xfb))/0x4*(parseInt(_0x1f2853(0xe9))/0x5)+parseInt(_0x1f2853(0x105))/0x6*(-parseInt(_0x1f2853(0x106))/0x7)+parseInt(_0x1f2853(0xd8))/0x8+-parseInt(_0x1f2853(0x100))/0x9;if(_0x231dd1===_0x10e201)break;else _0x368157['push'](_0x368157['shift']());}catch(_0x38e9e2){_0x368157['push'](_0x368157['shift']());}}}(a77_0x3cf4,0x1d063));import a77_0x38aec9 from'node:path';import a77_0xd8fbea from'chalk';import a77_0x12277a from'clipboardy';import{fsUtils}from'@wp1001/node';function a77_0x3cf4(){const _0x195813=['数据表\x20','clear','split','trim','database','path','trimStart','bgGreen','slice','906676etkNAp','getHelper','是否排除元字段(ID、创建、更新、删除相关标记)?','join','\x27,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name:\x20\x27','1224216YxpHur','\x27,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20icon:\x20\x27menu\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20},\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20children:\x20[\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#code#\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20},\x0a\x20\x20\x20\x20\x20\x20\x20\x20','map','route\x20代码已复制到剪贴板','make-admin-page','124842bFyPJG','49cVvkJt','232946KJjgRJ','floor','是否删除页面旧文件?','runActions','green','1866128HaBXDE','rm-old','make-database-admin-pages','max','changes','backenderPath','pop','pascalCase','no-meta','replace','193659lvVJGD','includes','7459LoTeHF','black','.js','filter','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path:\x20\x27/','5TiOaPE','\x27,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20component:\x20Layout,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20meta:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20title:\x20\x27','trimEnd','/models/','log','length','red','repeat','#code#'];a77_0x3cf4=function(){return _0x195813;};return a77_0x3cf4();}function a77_0x5e7a(_0x3f07f8,_0xf7e2b1){const _0x3cf4c2=a77_0x3cf4();return a77_0x5e7a=function(_0x5e7ae8,_0x493e0d){_0x5e7ae8=_0x5e7ae8-0xd7;let _0x4c7db2=_0x3cf4c2[_0x5e7ae8];return _0x4c7db2;},a77_0x5e7a(_0x3f07f8,_0xf7e2b1);}import a77_0x324cd0 from'../utils/plop-utils.js';const {makeInputPrompt,makeConfirmPrompt,getGenerator}=a77_0x324cd0,makeGenerator=_0x23e414=>{const _0x3304c6=a77_0x5e7a,_0x10343e=getGenerator(_0x23e414,_0x3304c6(0x104),{'force':![]}),_0x4303d1=_0x23e414[_0x3304c6(0xfc)](_0x3304c6(0xdf)),_0x5cbcd4=_0x23e414[_0x3304c6(0xfc)]('snakeCase'),_0x1461bd={'name':_0x3304c6(0xda),'description':'根据\x20backender\x20中已存在的数据库模型目录为其中所有模型创建后台管理页面','prompts':[makeInputPrompt(_0x3304c6(0xf6),'数据库名称'),makeConfirmPrompt(_0x3304c6(0xd9),_0x3304c6(0x109)),makeConfirmPrompt(_0x3304c6(0xe0),_0x3304c6(0xfd))],'actions':[async _0xc0a882=>{const _0x1196e0=_0x3304c6,{database:_0x5c1ec0}=_0xc0a882,_0x523baa=a77_0x38aec9['join'](_0x23e414[_0x1196e0(0xdd)],_0x1196e0(0xec)+_0x5c1ec0);let _0x213c83=await fsUtils['listDir'](_0x523baa);_0x213c83=_0x213c83[_0x1196e0(0xe7)](_0x4f8a2b=>_0x4f8a2b[_0x1196e0(0xe3)](_0x1196e0(0xe6))&&!_0x4f8a2b[_0x1196e0(0xe3)]('init-models.js')&&_0x4f8a2b[_0x1196e0(0xf4)]('/')[_0x1196e0(0xde)]()!=='index.js');const _0x49f33e=_0x213c83[_0x1196e0(0x102)](_0x10c71b=>_0x10c71b[_0x1196e0(0xfa)](0x0,-0x3)),_0x5c3c98=[];for(let _0x4fe772=0x0,_0x128b60=_0x49f33e['length'];_0x4fe772<_0x128b60;_0x4fe772++){const _0x13148d=_0x49f33e[_0x4fe772],_0x4dd063=await _0x10343e[_0x1196e0(0x10a)]({'rm-old':_0xc0a882[_0x1196e0(0xd9)],'no-meta':_0xc0a882['no-meta'],'database':_0x5c1ec0,'table':_0x5cbcd4(_0x13148d),'no-log':!![]});!_0x4dd063[_0x1196e0(0xdc)][0x2]?console['log'](a77_0xd8fbea[_0x1196e0(0xef)](_0x1196e0(0xf2)+_0x5c1ec0+'.'+_0x13148d+'\x20构建页面失败'),_0x4dd063[_0x1196e0(0xdc)]):_0x5c3c98['push'](_0x4dd063);const _0x58ab94=(_0x4fe772+0x1)/_0x128b60,_0x25fb20=Math[_0x1196e0(0x108)](_0x58ab94*0x32),_0x137c69=Math[_0x1196e0(0xdb)](0x32-_0x25fb20,0x0);console[_0x1196e0(0xf3)](),console[_0x1196e0(0xed)](a77_0xd8fbea[_0x1196e0(0xf9)]('\x20'[_0x1196e0(0xf0)](_0x25fb20))+a77_0xd8fbea['bgWhite']('\x20'[_0x1196e0(0xf0)](_0x137c69))+a77_0xd8fbea[_0x1196e0(0xd7)]('\x20已完成\x20'+(_0x4fe772+0x1)+'/'+_0x128b60));}const _0x5b1c70=_0x5c3c98[_0x1196e0(0x102)](_0x3d0935=>_0x3d0935[_0x1196e0(0xdc)][0x3][_0x1196e0(0xf7)]),_0x429ba3=_0x5b1c70[_0x1196e0(0x102)](_0x49b658=>{const _0x3e9685=_0x1196e0;return _0x49b658[_0x3e9685(0xf4)]('\x0a')[_0x3e9685(0x102)](_0x10437f=>'\x20\x20'+_0x10437f)[_0x3e9685(0xfe)]('\x0a')[_0x3e9685(0xeb)]();})['join']('')[_0x1196e0(0xf8)](),_0x32a76c=(_0x1196e0(0xe8)+_0x5c1ec0+_0x1196e0(0xff)+_0x4303d1(_0x5c1ec0)+'\x27,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20redirect:\x20\x27/'+_0x5c1ec0+'/'+_0x5cbcd4(_0x49f33e[0x0])+_0x1196e0(0xea)+_0x4303d1(_0x5c1ec0)+_0x1196e0(0x101))[_0x1196e0(0xf4)]('\x0a')[_0x1196e0(0x102)](_0x231900=>_0x231900[_0x1196e0(0xfa)](0xa))[_0x1196e0(0xfe)]('\x0a'),_0x3ed343=_0x5c1ec0[_0x1196e0(0xf4)]('/')[_0x1196e0(0xee)],_0x32444b=_0x32a76c[_0x1196e0(0xe1)](_0x1196e0(0xf1),_0x429ba3)[_0x1196e0(0xf4)]('\x0a')[_0x1196e0(0x102)](_0x436b20=>{const _0x1d11ba=_0x1196e0;return'\x20\x20'[_0x1d11ba(0xf0)](_0x3ed343)+_0x436b20;})[_0x1196e0(0xfe)]('\x0a')[_0x1196e0(0xf5)]();a77_0x12277a['writeSync'](_0x32444b),console[_0x1196e0(0xed)](a77_0xd8fbea[_0x1196e0(0xe5)]['bgYellow'](_0x1196e0(0x103)));}]};return _0x1461bd;};export default makeGenerator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a78_0x512529=a78_0x1f96;function a78_0x1f96(_0x266d4c,_0x21b1b0){const _0x1d1083=a78_0x1d10();return a78_0x1f96=function(_0x1f9665,_0x1c4dd1){_0x1f9665=_0x1f9665-0x1ef;let _0x3728a2=_0x1d1083[_0x1f9665];return _0x3728a2;},a78_0x1f96(_0x266d4c,_0x21b1b0);}(function(_0x54a8a2,_0x4bd556){const _0x47fb57=a78_0x1f96,_0x489542=_0x54a8a2();while(!![]){try{const _0x46660e=-parseInt(_0x47fb57(0x1f3))/0x1*(-parseInt(_0x47fb57(0x210))/0x2)+-parseInt(_0x47fb57(0x1fd))/0x3*(parseInt(_0x47fb57(0x1ef))/0x4)+-parseInt(_0x47fb57(0x1fb))/0x5+-parseInt(_0x47fb57(0x200))/0x6*(parseInt(_0x47fb57(0x202))/0x7)+-parseInt(_0x47fb57(0x20f))/0x8+-parseInt(_0x47fb57(0x20c))/0x9+parseInt(_0x47fb57(0x206))/0xa;if(_0x46660e===_0x4bd556)break;else _0x489542['push'](_0x489542['shift']());}catch(_0x1fa890){_0x489542['push'](_0x489542['shift']());}}}(a78_0x1d10,0x7fcc6));import a78_0x3120bb from'node:path';function a78_0x1d10(){const _0x3ecd66=['252104TyiaeR','/*.*','map','node_modules/@wp1001/ui/packages/plop/templates/','741VLUuwP','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path:\x20\x27','src/views/','.vue\x27),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20meta:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20title:\x20\x27','split','src/views/{{database}}/{{snakeCase\x20table}}','\x27,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name:\x20\x27','log','3485375EmmAPa','writeSync','15JxsSwy','bgYellow','join','6nzKLSD','这里有一个参考的\x20route\x20代码,\x20(已复制到剪贴板)','4498522CJRKyl','snakeCase','\x27,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20component:\x20()\x20=>\x20import(\x27@/views/','red','31688390djFeMo','addMany','table','node_modules','rm-old','getHelper','6895026OegirX','是否删除页面旧文件?','dirname','8120472KlspCs','2134PMxGdu','black','database','properCase','文件已存在,请删除后再操作'];a78_0x1d10=function(){return _0x3ecd66;};return a78_0x1d10();}import a78_0x2a4368 from'node:fs';import a78_0x51ac80 from'chalk';import a78_0x8bd413 from'clipboardy';import a78_0x168bdc from'../utils/plop-utils.js';const dirname=import.meta[a78_0x512529(0x20e)][a78_0x512529(0x1f7)](a78_0x512529(0x209))[0x0],{makeInputPrompt,makeConfirmPrompt}=a78_0x168bdc,makePageGenerator=(_0x1d2d30,_0x34fa86)=>{const _0x170119=a78_0x512529,_0x24d955=_0x1d2d30[_0x170119(0x20b)](_0x170119(0x213)),_0x210195=_0x1d2d30[_0x170119(0x20b)](_0x170119(0x203));return{'prompts':[makeConfirmPrompt(_0x170119(0x20a),_0x170119(0x20d))],'actions':[function(_0x1d18f0){const _0x4dd3bf=_0x170119,_0xddd27f=a78_0x3120bb[_0x4dd3bf(0x1ff)](dirname,_0x4dd3bf(0x1f5)+_0x1d18f0[_0x4dd3bf(0x212)]+'/'+_0x210195(_0x1d18f0[_0x4dd3bf(0x208)]));a78_0x2a4368['existsSync'](_0xddd27f)&&(_0x1d18f0[_0x4dd3bf(0x20a)]?a78_0x2a4368['rmSync'](_0xddd27f,{'force':!![],'recursive':!![]}):console[_0x4dd3bf(0x1fa)](a78_0x51ac80[_0x4dd3bf(0x205)](_0x4dd3bf(0x214))));},{'type':_0x170119(0x207),'destination':a78_0x3120bb['join'](dirname,_0x170119(0x1f8)),'base':a78_0x3120bb[_0x170119(0x1ff)](dirname,_0x170119(0x1f2)+_0x34fa86),'templateFiles':a78_0x3120bb[_0x170119(0x1ff)](dirname,_0x170119(0x1f2)+_0x34fa86+_0x170119(0x1f0))},function(_0x4948c5){const _0x4c6acb=_0x170119;let {database:_0x4b4b47,table:_0x27ce6d}=_0x4948c5;const _0x4a1bc0=_0x24d955(_0x27ce6d),_0x18442e=(_0x4b4b47?_0x24d955(_0x4b4b47):'')+_0x4a1bc0;_0x27ce6d=_0x210195(_0x27ce6d);const _0x63281d=(_0x4c6acb(0x1f4)+_0x27ce6d+_0x4c6acb(0x1f9)+_0x18442e+_0x4c6acb(0x204)+(_0x4b4b47?_0x4b4b47+'/':'')+_0x27ce6d+'/'+_0x27ce6d+_0x4c6acb(0x1f6)+_0x4a1bc0+'\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20},\x0a\x20\x20\x20\x20\x20\x20\x20\x20')[_0x4c6acb(0x1f7)]('\x0a')[_0x4c6acb(0x1f1)](_0x384cff=>_0x384cff['slice'](0x8))[_0x4c6acb(0x1ff)]('\x0a');return a78_0x8bd413[_0x4c6acb(0x1fc)](_0x63281d),_0x4948c5['no-log']!==!![]&&console[_0x4c6acb(0x1fa)](a78_0x51ac80[_0x4c6acb(0x211)][_0x4c6acb(0x1fe)](_0x4c6acb(0x201))),_0x63281d;}]};};export default makePageGenerator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x36eca5,_0x2e4bf9){const _0x2ac084=a79_0x5d9a,_0x54bbdb=_0x36eca5();while(!![]){try{const _0x42cc6c=-parseInt(_0x2ac084(0x188))/0x1+-parseInt(_0x2ac084(0x186))/0x2*(-parseInt(_0x2ac084(0x185))/0x3)+parseInt(_0x2ac084(0x180))/0x4+parseInt(_0x2ac084(0x17d))/0x5*(parseInt(_0x2ac084(0x184))/0x6)+parseInt(_0x2ac084(0x187))/0x7+-parseInt(_0x2ac084(0x17c))/0x8*(-parseInt(_0x2ac084(0x189))/0x9)+-parseInt(_0x2ac084(0x17e))/0xa;if(_0x42cc6c===_0x2e4bf9)break;else _0x54bbdb['push'](_0x54bbdb['shift']());}catch(_0x28a4c3){_0x54bbdb['push'](_0x54bbdb['shift']());}}}(a79_0x4dae,0x6922e));import a79_0x158cc7 from'./make-page-generator.js';const makeGenerator=_0x407fd1=>{const _0x3e14a4=a79_0x5d9a,_0x37642c=_0x3e14a4(0x17f),_0x296ffe=a79_0x158cc7(_0x407fd1,_0x37642c);return{'name':_0x3e14a4(0x181),'description':'创建新的页面','prompts':[..._0x296ffe[_0x3e14a4(0x182)]],'actions':[..._0x296ffe[_0x3e14a4(0x183)]]};};function a79_0x5d9a(_0x53d9d5,_0x53cb48){const _0x4dae39=a79_0x4dae();return a79_0x5d9a=function(_0x5d9adf,_0x2c39c5){_0x5d9adf=_0x5d9adf-0x17c;let _0x4711f8=_0x4dae39[_0x5d9adf];return _0x4711f8;},a79_0x5d9a(_0x53d9d5,_0x53cb48);}export default makeGenerator;function a79_0x4dae(){const _0x58d687=['1312318gQMEsQ','77085xZDEgZ','63bUNbna','701992KUMcza','704095ykklgQ','15190050dbYgtV','simple_page','3390968vOniGg','make-simple-page','prompts','actions','6WYpMZO','354675tSEcuT','4AzhzHU'];a79_0x4dae=function(){return _0x58d687;};return a79_0x4dae();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a80_0x479b(_0x34c0ec,_0x1e253a){const _0xeb006e=a80_0xeb00();return a80_0x479b=function(_0x479b87,_0x45cd4c){_0x479b87=_0x479b87-0xdb;let _0x15689f=_0xeb006e[_0x479b87];return _0x15689f;},a80_0x479b(_0x34c0ec,_0x1e253a);}(function(_0x5b0a59,_0x23cda){const _0x420008=a80_0x479b,_0x5053c1=_0x5b0a59();while(!![]){try{const _0x468cda=parseInt(_0x420008(0xe1))/0x1*(-parseInt(_0x420008(0xea))/0x2)+-parseInt(_0x420008(0xef))/0x3*(parseInt(_0x420008(0xdb))/0x4)+-parseInt(_0x420008(0xee))/0x5*(parseInt(_0x420008(0xe8))/0x6)+parseInt(_0x420008(0xe6))/0x7*(-parseInt(_0x420008(0xe3))/0x8)+-parseInt(_0x420008(0xe0))/0x9+parseInt(_0x420008(0xec))/0xa*(parseInt(_0x420008(0xe7))/0xb)+parseInt(_0x420008(0xdf))/0xc*(parseInt(_0x420008(0xe4))/0xd);if(_0x468cda===_0x23cda)break;else _0x5053c1['push'](_0x5053c1['shift']());}catch(_0x1eb781){_0x5053c1['push'](_0x5053c1['shift']());}}}(a80_0xeb00,0x8b30e));import a80_0x4abb1d from'node:path';function a80_0xeb00(){const _0x5e69f9=['1145905rlJjNl','3GfSWXz','956924ygfGoy','white','keys','name','104244IXaLix','5280678eeQlAv','151995KjZFZF','bgGreen','5959488sVORqq','4329qllIUF','backenderPath','7omDjck','22fBLaoy','18byVHRA','setWelcomeMessage','2JIIqgO','setGenerator','439010vQrNaz','absPath'];a80_0xeb00=function(){return _0x5e69f9;};return a80_0xeb00();}import a80_0x232dc1 from'chalk';import a80_0x278b4b from'./utils/plop-utils.js';import a80_0x12c086 from'./generators/make-admin-page.js';import a80_0x54e7da from'./generators/make-database-admin-pages.js';import a80_0x1d76ee from'./generators/make-simple-page.js';const generators={'makeAdminPage':a80_0x12c086,'makeDatabaseAdminPages':a80_0x54e7da,'makeSimplePage':a80_0x1d76ee};export default function (plop){const _0x205733=a80_0x479b,hello='欢迎使用\x20stardust-frontender\x20代码生成工具,请从以下生成器中选择一个\x20:\x20';plop[_0x205733(0xe9)](a80_0x232dc1[_0x205733(0xe2)][_0x205733(0xdc)](hello)),plop[_0x205733(0xe5)]=a80_0x278b4b[_0x205733(0xed)](plop,'../backender'),Object[_0x205733(0xdd)](generators)['forEach'](name=>{const _0x28373d=_0x205733,generator=generators[name](plop);plop[_0x28373d(0xeb)](generator[_0x28373d(0xde)],generator);});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a81_0xd532(){const _0x54b08e=['\x20not\x20found',']\x20$$','tableName','datetime','models','.stardust/db.js','textarea','target','x-date-picker','precision','5469vkUxyL','type','DECIMAL','更新日期','prefixIcon','2123688napjYW','creator_id','replaceAll','BOOLEAN','default','_length','join','创建人','includes','maxlength','x-select','options','foreignKey','replace','tableAttributes','span','更新时间','name','\x27\x20$$','sequelize','删除标记','$$\x20store.dictionaries.yesNo\x20$$','修改日期','prop','$$\x20DbName\x20+\x20\x27.','calendar','associations','test','key','canView','table','更新人','deleted_at','length','TEXT','backenderPath','comp','x-radios','FLOAT','STRING','ElInputNumber','191376lITEPc','map','comment','190kmKpgJ','date','$$\x20[','entries','删除日期','primaryKeyField','then','399048WaKcAW','创建日期','518515OuziOe','formAttrs','values','endsWith','删除人','删除标志','datasources','updater_id','match','创建时间','35157cenSqg','find','修改时间','label','visible','所有人','red','INTEGER','split','database','270342VJnshg','DATE'];a81_0xd532=function(){return _0x54b08e;};return a81_0xd532();}const a81_0x27e0ef=a81_0x375f;(function(_0x1ed817,_0x2f9276){const _0x1887ce=a81_0x375f,_0x364422=_0x1ed817();while(!![]){try{const _0x3decc4=-parseInt(_0x1887ce(0x109))/0x1+-parseInt(_0x1887ce(0xf6))/0x2*(-parseInt(_0x1887ce(0x11f))/0x3)+-parseInt(_0x1887ce(0xfd))/0x4+-parseInt(_0x1887ce(0xff))/0x5+-parseInt(_0x1887ce(0x113))/0x6+parseInt(_0x1887ce(0x124))/0x7+parseInt(_0x1887ce(0xf3))/0x8;if(_0x3decc4===_0x2f9276)break;else _0x364422['push'](_0x364422['shift']());}catch(_0x534f96){_0x364422['push'](_0x364422['shift']());}}}(a81_0xd532,0x34eec));import a81_0x3e12a8 from'node:path';function a81_0x375f(_0x1398ef,_0x3d23c7){const _0xd532e1=a81_0xd532();return a81_0x375f=function(_0x375fd4,_0x3a20eb){_0x375fd4=_0x375fd4-0xe8;let _0x398d9d=_0xd532e1[_0x375fd4];return _0x398d9d;},a81_0x375f(_0x1398ef,_0x3d23c7);}import a81_0x28d0fa from'chalk';import{fsUtils}from'@wp1001/node';const importFile=async _0x11a9d2=>{return new Promise(_0x3c4228=>{const _0x1f060e=a81_0x375f;import(_0x11a9d2)[_0x1f060e(0xfc)](_0x3c4228);});},viewOnlyFields=['creator_id',a81_0x27e0ef(0x106),'created_at','updated_at',a81_0x27e0ef(0xea)],operatorFields=[a81_0x27e0ef(0x125),a81_0x27e0ef(0x106)],metaFieldLabels=[a81_0x27e0ef(0x12b),a81_0x27e0ef(0xfe),a81_0x27e0ef(0x108),'修改人',a81_0x27e0ef(0x13a),a81_0x27e0ef(0x10b),a81_0x27e0ef(0xe9),a81_0x27e0ef(0x122),a81_0x27e0ef(0x134),a81_0x27e0ef(0x103),a81_0x27e0ef(0xfa),'删除时间',a81_0x27e0ef(0x138),a81_0x27e0ef(0x104),a81_0x27e0ef(0x10e)],getModel=async(_0x148a02,_0x1b8925)=>{const _0x286221=a81_0x27e0ef,_0x1441eb=a81_0x3e12a8['join'](_0x148a02[_0x286221(0xed)],_0x286221(0x119),_0x1b8925[_0x286221(0x112)],'init-models.js');if(!await fsUtils['exists'](_0x1441eb)){const _0x5be08d=a81_0x28d0fa[_0x286221(0x10f)](_0x1441eb+_0x286221(0x115));throw _0x5be08d;}const _0x550432=a81_0x3e12a8[_0x286221(0x12a)](_0x148a02[_0x286221(0xed)],'config.js'),_0x44dd8f=a81_0x3e12a8[_0x286221(0x12a)](_0x148a02[_0x286221(0xed)],_0x286221(0x11a)),_0x15a271=(await importFile(_0x550432))['default'],_0x40232d=(await importFile(_0x1441eb))[_0x286221(0x128)],_0x6a6459=_0x15a271[_0x286221(0x105)][_0x286221(0x10a)](_0x40a6ea=>_0x40a6ea['database']===_0x1b8925['database']),{connect:_0x5b1a21}=await importFile(_0x44dd8f),_0xfdaaef=_0x5b1a21(_0x15a271,_0x6a6459),_0x41b895=Object[_0x286221(0x101)](_0x40232d(_0xfdaaef,![])),_0x11a7bc=_0x41b895['find'](_0x1443fa=>_0x1443fa[_0x286221(0x117)]['toLowerCase']()===_0x1b8925[_0x286221(0xe8)]);return _0x11a7bc;},getSequeliezeDataType=_0x572cd2=>{const _0x103ad9=a81_0x27e0ef,_0x45c6a4=_0x572cd2[_0x103ad9(0x120)]||_0x572cd2,_0x3881de={'name':_0x45c6a4[_0x103ad9(0x140)]||_0x45c6a4[_0x103ad9(0x135)]};return _0x45c6a4['_length']&&(_0x3881de[_0x103ad9(0x129)]=_0x45c6a4['_length']),_0x3881de;},makeFields=(_0x2c6e29,_0x4ad91c)=>{const _0x25c69f=a81_0x27e0ef;let _0xfeb62a=Object[_0x25c69f(0xf9)](_0x2c6e29[_0x25c69f(0x132)])[_0x25c69f(0xf4)](_0x37b33a=>{const _0x4edf60=_0x25c69f,[_0x40837d,_0x3d6c73]=_0x37b33a,_0x27cef5=getSequeliezeDataType(_0x3d6c73);let _0x4e63a3=_0x3d6c73[_0x4edf60(0x10c)]||_0x3d6c73[_0x4edf60(0xf5)]||_0x40837d;_0x4e63a3=_0x4e63a3[_0x4edf60(0x126)]('\x27','\x22');const _0x12cf2b={'label':_0x4e63a3,'prop':_0x40837d,'tableAttrs':{...calcColumnWidth(_0x27cef5)},'formAttrs':{}};fillFieldType(_0x12cf2b,_0x27cef5),fillFieldForeign(_0x12cf2b,_0x2c6e29,_0x40837d),_0x12cf2b[_0x4edf60(0x10c)]=_0x12cf2b[_0x4edf60(0x10c)][_0x4edf60(0x131)](/\s/g,'')[_0x4edf60(0x131)](/[(()][^,,))]*[))]/g,'');/[\u4e00-\u9fff]/[_0x4edf60(0x13f)](_0x12cf2b[_0x4edf60(0x10c)])&&(_0x12cf2b['label']=_0x12cf2b['label'][_0x4edf60(0x131)](/[0-9A-Za-z-_]/g,''));const {autoIncrement:_0x3c83e2,_autoGenerated:_0x1f923f}=_0x3d6c73;return(_0x3c83e2||_0x1f923f||viewOnlyFields['includes'](_0x40837d))&&(_0x12cf2b[_0x4edf60(0x10d)]=![],_0x12cf2b[_0x4edf60(0x141)]=!![],delete _0x12cf2b['comp'],delete _0x12cf2b[_0x4edf60(0x100)]),postProcessField(_0x12cf2b),_0x12cf2b;});return _0x4ad91c['no-meta']&&(_0xfeb62a=_0xfeb62a['filter'](_0x7da134=>_0x7da134[_0x25c69f(0x13b)]!==_0x2c6e29['primaryKeyField']&&!metaFieldLabels[_0x25c69f(0x12c)](_0x7da134[_0x25c69f(0x10c)]))),_0xfeb62a;},calcColumnWidth=_0x4f4dd7=>{const _0x596f09=a81_0x27e0ef;switch(_0x4f4dd7[_0x596f09(0x135)]){case _0x596f09(0xf1):{return _0x4f4dd7[_0x596f09(0x129)]>0x14?{'minWidth':0x96}:{'width':0x19+_0x4f4dd7[_0x596f09(0x129)]*0xc};};case _0x596f09(0xec):{return{'minWidth':0xc8};}case _0x596f09(0x114):{return{'width':0xaf};};default:{return{'width':0x64};}}},fillFieldType=(_0x1b1821,_0x151a6b)=>{const _0x338218=a81_0x27e0ef,{label:_0x4158a0,formAttrs:_0x2645bd}=_0x1b1821;switch(_0x151a6b[_0x338218(0x135)]){case _0x338218(0x110):{_0x1b1821[_0x338218(0xee)]=_0x338218(0xf2),_0x2645bd['precision']=0x0;break;}case _0x338218(0xf0):case _0x338218(0x121):{_0x1b1821['comp']=_0x338218(0xf2);break;}case _0x338218(0x127):{_0x1b1821['comp']=_0x338218(0x12e),_0x1b1821[_0x338218(0x12f)]=_0x338218(0x139);break;}case _0x338218(0xf1):{_0x2645bd[_0x338218(0x12d)]=_0x151a6b['_length'];break;}case _0x338218(0xec):{_0x1b1821['type']=_0x338218(0x11b);break;}case'DATE':{_0x1b1821['comp']='x-date-picker',_0x2645bd[_0x338218(0x123)]=_0x338218(0x13d);break;}}if(!_0x1b1821[_0x338218(0xee)]){if(_0x4158a0[_0x338218(0x12c)]('多选'))_0x1b1821[_0x338218(0xee)]='x-checkboxs';else _0x4158a0[_0x338218(0x12c)]('单选')&&(_0x1b1821[_0x338218(0xee)]=_0x338218(0xef));let _0x395622;if(_0x4158a0[_0x338218(0x12c)]('多选')||_0x4158a0['includes']('单选'))_0x395622=_0x1b1821[_0x338218(0x10c)][_0x338218(0x107)](/[((]([^))]+)[))]/)?.[0x1]['split'](/[,\s,]/g)||[],_0x1b1821['label']=_0x4158a0[_0x338218(0x131)](/[单多]选/g,'');else{const _0x2babcb=_0x4158a0['match'](/[((]([^))]+)[))]/);_0x395622=_0x2babcb?.[0x1][_0x338218(0x131)](/[(())]/g,'')[_0x338218(0x111)](/[,,]/g),_0x395622?.[_0x338218(0xeb)]>0x1?(_0x1b1821[_0x338218(0xee)]=_0x338218(0x12e),_0x1b1821[_0x338218(0x10c)]=_0x4158a0['replace'](_0x2babcb[0x0],'')):_0x395622=null;}_0x395622&&(_0x1b1821['options']=_0x338218(0xf8)+_0x395622[_0x338218(0xf4)](_0x108ed2=>'\x27'+_0x108ed2+'\x27')['join'](',\x20')+_0x338218(0x116));}},postProcessField=_0x2c872b=>{const _0x34edf4=a81_0x27e0ef,{label:_0x2ff188,formAttrs:_0x5b3335}=_0x2c872b;if(!_0x2c872b[_0x34edf4(0xee)]){(_0x2ff188[_0x34edf4(0x102)]('类型')||_0x2ff188[_0x34edf4(0x102)]('状态'))&&(_0x2c872b[_0x34edf4(0xee)]=_0x34edf4(0x12e),_0x2c872b[_0x34edf4(0x12f)]=[]);if(_0x2ff188[_0x34edf4(0x102)]('日期'))_0x2c872b['comp']=_0x34edf4(0x11d),_0x2c872b['type']=_0x34edf4(0xf7);else _0x2ff188['endsWith']('时间')&&(_0x2c872b['comp']='x-date-picker',_0x2c872b['type']=_0x34edf4(0x118));}_0x2c872b['comp']&&delete _0x5b3335[_0x34edf4(0x12d)],_0x2ff188[_0x34edf4(0x102)]('备注')&&!_0x2c872b[_0x34edf4(0x120)]&&(_0x2c872b[_0x34edf4(0x120)]=_0x34edf4(0x11b),_0x2c872b[_0x34edf4(0x133)]=0x18);},fillFieldForeign=(_0xc0481f,_0x3ea989,_0x45ac37)=>{const _0x320ed6=a81_0x27e0ef,_0x1680ac=Object[_0x320ed6(0x101)](_0x3ea989[_0x320ed6(0x13e)]),_0x50f1f7=_0x1680ac['map'](_0x35e4d2=>_0x35e4d2[_0x320ed6(0x130)]),_0x346f4a=_0x3ea989[_0x320ed6(0x137)]['config']['database'];if(_0x50f1f7[_0x320ed6(0x12c)](_0x45ac37)){const _0x2b1814=_0x1680ac[_0x320ed6(0x10a)](_0x12d4a8=>_0x12d4a8['foreignKey']===_0x45ac37);delete _0xc0481f['formAttrs'][_0x320ed6(0x11e)],delete _0xc0481f[_0x320ed6(0x120)],_0xc0481f[_0x320ed6(0xee)]=_0x320ed6(0x12e),_0xc0481f[_0x320ed6(0x12f)]=[];const _0xef11bf=_0x2b1814[_0x320ed6(0x11c)][_0x320ed6(0xfb)]||'';Object['assign'](_0xc0481f[_0x320ed6(0x100)],{'modelName':_0x320ed6(0x13c)+_0x2b1814[_0x320ed6(0x11c)]['options'][_0x320ed6(0x117)]+_0x320ed6(0x136),'text':_0xef11bf,'value':_0xef11bf});}else viewOnlyFields[_0x320ed6(0x12c)](_0x45ac37)&&(delete _0xc0481f[_0x320ed6(0x100)]['precision'],delete _0xc0481f[_0x320ed6(0x120)],operatorFields[_0x320ed6(0x12c)](_0x45ac37)&&(_0xc0481f[_0x320ed6(0x10d)]=![]));};export{importFile,getModel,getSequeliezeDataType,makeFields,calcColumnWidth};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1d6694,_0x53535a){const _0x49d439=a82_0x2d18,_0x83cd91=_0x1d6694();while(!![]){try{const _0x537ed2=parseInt(_0x49d439(0x13d))/0x1*(parseInt(_0x49d439(0x13c))/0x2)+-parseInt(_0x49d439(0x144))/0x3*(-parseInt(_0x49d439(0x14e))/0x4)+-parseInt(_0x49d439(0x154))/0x5*(-parseInt(_0x49d439(0x142))/0x6)+parseInt(_0x49d439(0x149))/0x7*(parseInt(_0x49d439(0x153))/0x8)+-parseInt(_0x49d439(0x14a))/0x9+-parseInt(_0x49d439(0x13e))/0xa*(-parseInt(_0x49d439(0x140))/0xb)+-parseInt(_0x49d439(0x141))/0xc*(parseInt(_0x49d439(0x13f))/0xd);if(_0x537ed2===_0x53535a)break;else _0x83cd91['push'](_0x83cd91['shift']());}catch(_0x1b2970){_0x83cd91['push'](_0x83cd91['shift']());}}}(a82_0x1003,0xd31e9));import a82_0x298c6f from'node:path';import a82_0x375e2a from'node-plop/src/generator-runner.js';function a82_0x2d18(_0x2b8160,_0x696612){const _0x100382=a82_0x1003();return a82_0x2d18=function(_0x2d18bf,_0xdcbd9a){_0x2d18bf=_0x2d18bf-0x139;let _0x9960d9=_0x100382[_0x2d18bf];return _0x9960d9;},a82_0x2d18(_0x2b8160,_0x696612);}const getGenerator=(_0x983012,_0x216a03,_0xd5472)=>{const _0x460a02=a82_0x2d18,_0x149163=a82_0x375e2a(_0x983012,_0xd5472),_0x32a2c1=_0x983012[_0x460a02(0x14f)](_0x216a03);return Object['assign'](_0x32a2c1,{'runActions':(_0x3bdf8b,_0x13d724)=>_0x149163['runGeneratorActions'](_0x32a2c1,_0x3bdf8b,_0x13d724),'runPrompts':(_0x118097=[])=>_0x149163['runGeneratorPrompts'](_0x32a2c1,_0x118097)}),_0x32a2c1;},absPath=(_0x41f866,_0x1ad56a)=>{const _0x21be13=a82_0x2d18;return a82_0x298c6f[_0x21be13(0x13b)](_0x41f866[_0x21be13(0x152)](),_0x1ad56a);},addValidator=(_0x10c8ee,_0x1f1d24)=>{const _0x2d2bef=a82_0x2d18;_0x10c8ee[_0x2d2bef(0x155)]=_0x584921=>{const _0x1636d8=_0x2d2bef;return/.+/[_0x1636d8(0x14d)](_0x584921)?!![]:_0x1636d8(0x13a)+_0x1f1d24;};},makeInputPrompt=(_0x574d2f,_0x43659b,_0x4d45a9=!![])=>{const _0x5d2afd={'type':'input','name':_0x574d2f,'message':'请输入\x20'+_0x43659b+'('+(_0x4d45a9?'必填':'选填')+')'};return _0x4d45a9&&addValidator(_0x5d2afd,_0x574d2f),_0x5d2afd;},makeConfirmPrompt=(_0x40913f,_0x47c982,_0x3ee9cb)=>{const _0x2858dd=a82_0x2d18,_0x37ee9a={'type':_0x2858dd(0x148),'name':_0x40913f,'message':_0x47c982,'default':_0x3ee9cb};return _0x37ee9a;},makeSelectPrompt=(_0x238a86,_0x41ffba,_0x283cae,_0x208862)=>{const _0x25de95=a82_0x2d18,_0x34b530={'type':_0x25de95(0x147),'name':_0x238a86,'choices':_0x41ffba,'message':_0x283cae,'default':_0x208862};return _0x34b530;},makePartial=_0x39e712=>{const _0x393d8a=a82_0x2d18,_0x40de1f=JSON[_0x393d8a(0x14b)](_0x39e712,null,0x2)['split']('\x0a')['slice'](0x1,-0x1)[_0x393d8a(0x151)]((_0x37c743,_0x11d7f3)=>{const _0x27b56c=_0x393d8a;_0x37c743=_0x37c743[_0x27b56c(0x143)](0x2);let _0x90d83b=_0x37c743[_0x27b56c(0x139)](':');return _0x90d83b[0x0][_0x27b56c(0x150)]('-')>=0x0?_0x90d83b[0x0]=_0x90d83b[0x0][_0x27b56c(0x145)]('\x22','\x27'):_0x90d83b[0x0]=_0x90d83b[0x0]['replaceAll']('\x22',''),_0x90d83b=_0x90d83b[_0x27b56c(0x151)]((_0x34a717,_0x46f226)=>{return _0x46f226===0x0?_0x34a717:_0x34a717['replaceAll']('\x22','\x27');}),_0x90d83b[_0x27b56c(0x146)](':');});let _0x5030aa=_0x40de1f[_0x393d8a(0x146)]('\x0a')+'\x0a';return _0x5030aa=_0x5030aa[_0x393d8a(0x145)]('\x27$$\x20','')[_0x393d8a(0x145)](_0x393d8a(0x14c),''),_0x5030aa;},plopUtils={'getGenerator':getGenerator,'absPath':absPath,'addValidator':addValidator,'makeInputPrompt':makeInputPrompt,'makeConfirmPrompt':makeConfirmPrompt,'makeSelectPrompt':makeSelectPrompt,'makePartial':makePartial};function a82_0x1003(){const _0xb9daee=['21OpTnYw','replaceAll','join','list','confirm','209153HpVOyp','193473vnVExQ','stringify','\x20$$\x27','test','838088kkiQkC','getGenerator','indexOf','map','getPlopfilePath','8gKiLCf','1887995WDxcdw','validate','split','请输入','resolve','1421214SBvqvV','1lihoZo','2557090mSBVOP','40131039IaRCXm','11NNxYBU','12FSTuCT','24eQnFej','slice'];a82_0x1003=function(){return _0xb9daee;};return a82_0x1003();}export default plopUtils;
|
package/packages/utils/crypt.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x406395,_0x3bedaa){const _0x476456=a83_0x426a,_0x5db0b6=_0x406395();while(!![]){try{const _0x2c167a=-parseInt(_0x476456(0x1b2))/0x1*(parseInt(_0x476456(0x1b0))/0x2)+-parseInt(_0x476456(0x1b6))/0x3*(parseInt(_0x476456(0x1ae))/0x4)+-parseInt(_0x476456(0x1bb))/0x5+-parseInt(_0x476456(0x1ab))/0x6+-parseInt(_0x476456(0x1ba))/0x7*(-parseInt(_0x476456(0x1b8))/0x8)+-parseInt(_0x476456(0x1b7))/0x9*(parseInt(_0x476456(0x1ac))/0xa)+parseInt(_0x476456(0x1af))/0xb*(parseInt(_0x476456(0x1ad))/0xc);if(_0x2c167a===_0x3bedaa)break;else _0x5db0b6['push'](_0x5db0b6['shift']());}catch(_0x283d69){_0x5db0b6['push'](_0x5db0b6['shift']());}}}(a83_0x2bac,0xdb14a));function a83_0x2bac(){const _0x5bc727=['10265936mCTgkz','join','7MnokVT','6343500dOZLtN','928188MWQvCE','159230DmfopF','12LSvAYx','314044qhurOG','36501157olVsqy','74VygbTc','map','34309QUQHWZ','reverse','fromCharCode','charCodeAt','21KQxyJp','261iBrCtz'];a83_0x2bac=function(){return _0x5bc727;};return a83_0x2bac();}const simple={'encrypt'(_0x363055){const _0x54eeef=a83_0x426a;return _0x363055=encodeURIComponent(_0x363055),_0x363055=btoa(_0x363055),_0x363055=_0x363055['split'](''),_0x363055=_0x363055[_0x54eeef(0x1b1)](_0x46effa=>String[_0x54eeef(0x1b4)](_0x46effa[_0x54eeef(0x1b5)](0x0)+0x6)),_0x363055[_0x54eeef(0x1b3)](),_0x363055=_0x363055[_0x54eeef(0x1b9)](''),_0x363055;},'decrypt'(_0x4392a7){const _0x57ae53=a83_0x426a;return _0x4392a7=_0x4392a7['split'](''),_0x4392a7[_0x57ae53(0x1b3)](),_0x4392a7=_0x4392a7[_0x57ae53(0x1b1)](_0x1decaa=>String[_0x57ae53(0x1b4)](_0x1decaa[_0x57ae53(0x1b5)](0x0)-0x6)),_0x4392a7=_0x4392a7[_0x57ae53(0x1b9)](''),_0x4392a7=atob(_0x4392a7),_0x4392a7=decodeURIComponent(_0x4392a7),_0x4392a7;}};function a83_0x426a(_0x4a120b,_0x5d85de){const _0x2bac0d=a83_0x2bac();return a83_0x426a=function(_0x426a5e,_0xe868b5){_0x426a5e=_0x426a5e-0x1ab;let _0x519e9e=_0x2bac0d[_0x426a5e];return _0x519e9e;},a83_0x426a(_0x4a120b,_0x5d85de);}export{simple};export default{'simple':simple};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x116235,_0x33c766){const _0x4799b0=a84_0x34e8,_0x522443=_0x116235();while(!![]){try{const _0x17ee9d=parseInt(_0x4799b0(0x151))/0x1+-parseInt(_0x4799b0(0x152))/0x2+-parseInt(_0x4799b0(0x145))/0x3+-parseInt(_0x4799b0(0x142))/0x4+parseInt(_0x4799b0(0x144))/0x5*(parseInt(_0x4799b0(0x14d))/0x6)+parseInt(_0x4799b0(0x148))/0x7+parseInt(_0x4799b0(0x149))/0x8;if(_0x17ee9d===_0x33c766)break;else _0x522443['push'](_0x522443['shift']());}catch(_0x2f910a){_0x522443['push'](_0x522443['shift']());}}}(a84_0x42ff,0x6e4de));const {highdict}=StardustJs,_checkOk=(_0xbaa2ff,_0x2e2cc9)=>{const _0x2f4763=a84_0x34e8;let _0x5d1150=_0x2e2cc9;if(typeof _0x2e2cc9==='string')_0x5d1150=highdict[_0x2f4763(0x150)](_0xbaa2ff,_0x2e2cc9);else typeof _0x2e2cc9===_0x2f4763(0x143)&&(_0x5d1150=_0x2e2cc9(_0xbaa2ff));return!!_0x5d1150;};export const when=_0x2f6fb0=>{return(_0x3cb42a,{name:_0x4e0306,addInitializer:_0x4065ea,..._0x34e1f2})=>{_0x4065ea(function(){const _0xf6bac3=this,_0x418e46=_0xf6bac3[_0x4e0306];_0xf6bac3[_0x4e0306]=function(..._0x1b0a3e){const _0x328fbb=a84_0x34e8;if(!_checkOk(_0xf6bac3,_0x2f6fb0))return;return _0x418e46[_0x328fbb(0x140)](_0xf6bac3,_0x1b0a3e);};});};};export const not=_0x5613d4=>{return(_0x145b89,{name:_0x38cd94,addInitializer:_0x69c2d,..._0x4f2b0e})=>{_0x69c2d(function(){const _0x2ae33f=this,_0x2337cb=_0x2ae33f[_0x38cd94];_0x2ae33f[_0x38cd94]=function(..._0x2c8836){const _0x5279df=a84_0x34e8;if(_checkOk(_0x2ae33f,_0x5613d4))return;return _0x2337cb[_0x5279df(0x140)](_0x2ae33f,_0x2c8836);};});};};function a84_0x34e8(_0x4a9496,_0x4a5479){const _0x42ff44=a84_0x42ff();return a84_0x34e8=function(_0x34e847,_0x3e9dae){_0x34e847=_0x34e847-0x140;let _0x4ac514=_0x42ff44[_0x34e847];return _0x4ac514;},a84_0x34e8(_0x4a9496,_0x4a5479);}export const loading=_0x4dc1ea=>{return(_0x299224,{name:_0x2620fc,addInitializer:_0x3e6d46,..._0x26e354})=>{_0x3e6d46(function(){const _0x3e809b=a84_0x34e8,_0xa5b76c=this,_0x3da20a=_0xa5b76c[_0x2620fc];_0x4dc1ea??=_0xa5b76c[_0x3e809b(0x141)]&&'table.loading'||_0xa5b76c[_0x3e809b(0x14e)]&&_0x3e809b(0x146)||_0xa5b76c[_0x3e809b(0x14a)]&&_0x3e809b(0x147)||_0x3e809b(0x14f),_0xa5b76c[_0x2620fc]=function(..._0x475e6d){const _0x491d14=_0x3e809b;if(!_0x4dc1ea)throw'invalid\x20params\x20for\x20@loading';if(highdict[_0x491d14(0x150)](_0xa5b76c,_0x4dc1ea))return;highdict[_0x491d14(0x14b)](_0xa5b76c,_0x4dc1ea,!![]);const _0x51758f=_0x3da20a[_0x491d14(0x140)](_0xa5b76c,_0x475e6d);if(_0x51758f instanceof Promise)return _0x51758f[_0x491d14(0x14c)]((..._0x20b2a9)=>{const _0x255712=_0x491d14;return highdict[_0x255712(0x14b)](_0xa5b76c,_0x4dc1ea,![]),_0x20b2a9;});return highdict[_0x491d14(0x14b)](_0xa5b76c,_0x4dc1ea,![]),_0x51758f;};});};};function a84_0x42ff(){const _0xb2a8a0=['table','2497896XoDAGu','function','473450wHkTXO','162588rBwNin','model.loading','dialog.loading','2633855SLlMkY','1635128wxeXKe','dialog','set','then','24OrZaRU','model','loading','get','222584PbhizO','103048HUEfxK','apply'];a84_0x42ff=function(){return _0xb2a8a0;};return a84_0x42ff();}export default{'when':when,'not':not,'loading':loading};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a85_0x4bef(_0x566c94,_0x4ef9e9){const _0x14c3d8=a85_0x14c3();return a85_0x4bef=function(_0x4bef72,_0x4c3a22){_0x4bef72=_0x4bef72-0x1e4;let _0xfeca4d=_0x14c3d8[_0x4bef72];return _0xfeca4d;},a85_0x4bef(_0x566c94,_0x4ef9e9);}(function(_0x437c9e,_0x1c4e1c){const _0x564b9e=a85_0x4bef,_0x2f58c8=_0x437c9e();while(!![]){try{const _0x1cd4c8=-parseInt(_0x564b9e(0x1e5))/0x1*(-parseInt(_0x564b9e(0x1f7))/0x2)+parseInt(_0x564b9e(0x1f0))/0x3+-parseInt(_0x564b9e(0x1e9))/0x4+parseInt(_0x564b9e(0x1eb))/0x5+-parseInt(_0x564b9e(0x1e6))/0x6+parseInt(_0x564b9e(0x1fc))/0x7+-parseInt(_0x564b9e(0x1e7))/0x8;if(_0x1cd4c8===_0x1c4e1c)break;else _0x2f58c8['push'](_0x2f58c8['shift']());}catch(_0x2c1f8d){_0x2f58c8['push'](_0x2f58c8['shift']());}}}(a85_0x14c3,0x19b61));function a85_0x14c3(){const _0x3b012f=['metaKey','429110lnWIOK','KeyC','href','target','nodeName','189186hOCMwv','KeyJ','hostname','PROD','ctrlKey','INPUT','code','1138mvjtYJ','VIDEO','PICTURE','CANVAS','JUU0JUI4JUJBJUU0JUJBJTg2JUU3JUJEJTkxJUU3JUFCJTk5JUU3JTlBJTg0JUU1JUFFJTg5JUU1JTg1JUE4JUVGJUJDJThDJUU3JUE2JTgxJUU2JUFEJUEyJUU4JUIwJTgzJUU4JUFGJTk1','467495WOfxJt','location','KeyU','KeyI','includes','contextmenu','VITE_PROD_DEBUGGERABLE_DOMAINS','altKey','pushState','toString','indexOf','parse','clear','YWJvdXQlM0FibGFuaw==','preventDefault','VITE_DEV_DEBUGGERABLE_DOMAINS','eval','222QLotYz','554982tNyGyY','862600KZnVts','name','145408cTIxqR'];a85_0x14c3=function(){return _0x3b012f;};return a85_0x14c3();}import a85_0x4f6751 from'../assets/devtools-detector.js';const {addListener,launch}=a85_0x4f6751,disallowDevtools=(_0x52dffe={},_0x4c040e)=>{const _0x29d2f3=a85_0x4bef,_0x8993b8=_0x5c368e=>{const _0x255f23=a85_0x4bef;_0x5c368e&&(document['documentElement']['innerHTML']=decodeURIComponent(atob(_0x255f23(0x1fb))),window[_0x255f23(0x1fd)][_0x255f23(0x1ed)]=decodeURIComponent(atob(_0x255f23(0x209))));};addListener(_0x8993b8),(!window[_0x29d2f3(0x1e4)][_0x29d2f3(0x1e8)]||!console[_0x29d2f3(0x208)][_0x29d2f3(0x1e8)]||!RegExp[_0x29d2f3(0x205)][_0x29d2f3(0x205)]()[_0x29d2f3(0x200)](_0x29d2f3(0x205))||!history[_0x29d2f3(0x204)][_0x29d2f3(0x205)][_0x29d2f3(0x205)]()['includes'](_0x29d2f3(0x205)))&&_0x8993b8(!![]),!(_0x4c040e||JSON[_0x29d2f3(0x207)](_0x52dffe[_0x29d2f3(0x1f3)]?_0x52dffe[_0x29d2f3(0x202)]:_0x52dffe[_0x29d2f3(0x20b)]))[_0x29d2f3(0x200)](window[_0x29d2f3(0x1fd)][_0x29d2f3(0x1f2)])&&(launch(),window['addEventListener'](_0x29d2f3(0x201),_0x470b05=>{const _0x1c4e72=_0x29d2f3;!(_0x470b05[_0x1c4e72(0x1ee)]instanceof SVGElement)&&!['IMG',_0x1c4e72(0x1fa),'AUDIO',_0x1c4e72(0x1f8),_0x1c4e72(0x1f9),_0x1c4e72(0x1f5),'TEXTAREA'][_0x1c4e72(0x200)](_0x470b05['target'][_0x1c4e72(0x1ef)])&&_0x470b05[_0x1c4e72(0x20a)]();},!![]),window['addEventListener']('keydown',_0x39e2dd=>{const _0x5e2e6c=_0x29d2f3;(_0x39e2dd[_0x5e2e6c(0x1f6)]==='F12'||(_0x39e2dd[_0x5e2e6c(0x1ea)]||_0x39e2dd[_0x5e2e6c(0x1f4)])&&(_0x39e2dd[_0x5e2e6c(0x203)]||_0x39e2dd['shiftKey'])&&[_0x5e2e6c(0x1fe),_0x5e2e6c(0x1ff),_0x5e2e6c(0x1f1),_0x5e2e6c(0x1ec)][_0x5e2e6c(0x206)](_0x39e2dd[_0x5e2e6c(0x1f6)])>=0x0)&&_0x39e2dd[_0x5e2e6c(0x20a)]();},!![]));};export default disallowDevtools;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a86_0xf325dc=a86_0x4d52;function a86_0x474f(){const _0x53dc11=['fillStyle','fillRect','Style','innerHeight','max','addColorStop','22365510PrUOlW','pageY','detectWall','arc','clearRect','width','color','Text','height','innerWidth','update','11560725dnbhst','mousemove','getBoundingClientRect','getContext','pageX','radius','fill','6IkBViZ','6461AbOOof','1316319rVDFSM','7192LtpSkJ','canvas','floor','random','createLinearGradient','2048382VWsLNh','4QtWKVG','rgba(','5183440joFsfg','measureText','beginPath','ctx','now','1355917rmENVR','addEventListener'];a86_0x474f=function(){return _0x53dc11;};return a86_0x474f();}(function(_0x11c195,_0x5e4c75){const _0x49fad2=a86_0x4d52,_0x53a1e4=_0x11c195();while(!![]){try{const _0x48deae=-parseInt(_0x49fad2(0x199))/0x1+parseInt(_0x49fad2(0x191))/0x2+-parseInt(_0x49fad2(0x18b))/0x3*(parseInt(_0x49fad2(0x192))/0x4)+parseInt(_0x49fad2(0x194))/0x5*(-parseInt(_0x49fad2(0x189))/0x6)+parseInt(_0x49fad2(0x18a))/0x7*(-parseInt(_0x49fad2(0x18c))/0x8)+parseInt(_0x49fad2(0x1ac))/0x9+parseInt(_0x49fad2(0x1a1))/0xa;if(_0x48deae===_0x5e4c75)break;else _0x53a1e4['push'](_0x53a1e4['shift']());}catch(_0x2ff2bd){_0x53a1e4['push'](_0x53a1e4['shift']());}}}(a86_0x474f,0xd7d90));function a86_0x4d52(_0x2b2422,_0x386639){const _0x474f7d=a86_0x474f();return a86_0x4d52=function(_0x4d5293,_0x1a35b6){_0x4d5293=_0x4d5293-0x189;let _0x300362=_0x474f7d[_0x4d5293];return _0x300362;},a86_0x4d52(_0x2b2422,_0x386639);}export const pop=_0x411d56=>{const _0x3b4693=a86_0x4d52,{width:_0x2b7631,height:_0x276e87}=_0x411d56[_0x3b4693(0x1ae)]();_0x411d56[_0x3b4693(0x1a6)]=_0x2b7631,_0x411d56[_0x3b4693(0x1a9)]=_0x276e87;const _0xcd396f=_0x411d56[_0x3b4693(0x1af)]('2d');class _0x2544c9{constructor(_0x93e223,_0xb72bba,_0x52d308,_0x201386,_0x594584,_0x11bbe7,_0x10b12a){const _0x38013d=_0x3b4693;this['x']=_0x93e223,this['y']=_0xb72bba,this[_0x38013d(0x1b1)]=_0x52d308,this[_0x38013d(0x1a7)]=_0x201386,this['vx']=_0x594584,this['vy']=_0x11bbe7,this[_0x38013d(0x197)]=_0x10b12a;}[_0x3b4693(0x1ab)](){const _0x4873e4=_0x3b4693;this['x']+=this['vx'],this['y']+=this['vy'],this[_0x4873e4(0x197)][_0x4873e4(0x196)](),this[_0x4873e4(0x197)][_0x4873e4(0x19b)]=this[_0x4873e4(0x1a7)],this['ctx'][_0x4873e4(0x1a4)](this['x'],this['y'],this['radius'],0x0,Math['PI']*0x2),this[_0x4873e4(0x197)][_0x4873e4(0x1b2)](),this['detectWall']();}[_0x3b4693(0x1a3)](){const _0x4e3176=_0x3b4693;if(this['x']<this[_0x4e3176(0x1b1)])this['x']=this[_0x4e3176(0x1b1)],this['vx']=-this['vx'];else this['x']+this[_0x4e3176(0x1b1)]>_0x2b7631&&(this['x']=_0x2b7631-this[_0x4e3176(0x1b1)],this['vx']=-this['vx']);if(this['y']<this['radius'])this['y']=this[_0x4e3176(0x1b1)],this['vy']=-this['vy'];else this['y']+this['radius']>_0x276e87&&(this['y']=_0x276e87-this[_0x4e3176(0x1b1)],this['vy']=-this['vy']);}}const _0x365013=()=>_0xcd396f[_0x3b4693(0x1a5)](0x0,0x0,_0x2b7631,_0x276e87),_0x23c19d=_0xecdf03=>Math['floor'](Math[_0x3b4693(0x18f)]()*_0xecdf03);let _0x42033c=0x0,_0x23948a=0.01,_0x457def=0x0;const _0x46fbf2=()=>{const _0xf4eafd=_0x3b4693,_0x5a9301=_0xcd396f[_0xf4eafd(0x190)](0x0,0x0,_0x2b7631*1.5,_0x276e87*1.5);!_0x457def?(_0x42033c+=_0x23948a,_0x42033c<=0x0&&(_0x42033c=0x0,_0x23948a=-_0x23948a,_0x457def=_0x2b3549*0x1e),_0x42033c>=0x1&&(_0x42033c=0x1,_0x23948a=-_0x23948a,_0x457def=_0x2b3549*0x1e)):_0x457def--,_0x5a9301['addColorStop'](0x0,'rgba(250,\x20220,\x2020,\x200.5)'),_0x5a9301[_0xf4eafd(0x1a0)](_0x42033c,'rgba(20,\x2020,\x2020,\x200.5)'),_0xcd396f[_0xf4eafd(0x19b)]=_0x5a9301,_0xcd396f[_0xf4eafd(0x19c)](0x0,0x0,_0x2b7631,_0x276e87);},_0x14ba71=Math['floor'](_0x2b7631/0x64),_0x55e44e=Math[_0x3b4693(0x18e)](_0x276e87/0x64),_0x2b3549=0x14,_0x1877c9=Math['round'](0x3e8/_0x2b3549),_0xc5a5ad=Array['from']({'length':0x34})['map'](()=>{const _0x74f646=_0x3b4693,_0x497c37=Math[_0x74f646(0x18e)](_0x23c19d(_0x14ba71+_0x55e44e)*1.5+_0x23c19d(0x5));let _0x4bcabc=_0x23c19d(_0x2b7631),_0x167ac6=_0x23c19d(_0x276e87);_0x4bcabc=Math['min'](Math[_0x74f646(0x19f)](_0x497c37,_0x4bcabc),_0x2b7631-_0x497c37),_0x167ac6=Math['min'](Math['max'](_0x497c37,_0x167ac6),_0x276e87-_0x497c37);let _0x545cc1=_0x23c19d(0x2)?(_0x23c19d(0x2)+0x2)*_0x14ba71:(_0x23c19d(-0x1)-0x2)*_0x14ba71,_0x39f852=_0x23c19d(0x2)?(_0x23c19d(0x2)+0x2)*_0x55e44e:(_0x23c19d(-0x1)-0x2)*_0x55e44e;return _0x545cc1=Math[_0x74f646(0x18e)](_0x545cc1/_0x2b3549),_0x39f852=Math[_0x74f646(0x18e)](_0x39f852/_0x2b3549),new _0x2544c9(_0x4bcabc,_0x167ac6,_0x497c37,_0x74f646(0x193)+_0x23c19d(0x100)+',\x20'+_0x23c19d(0x100)+',\x20'+_0x23c19d(0x100)+',\x20'+(_0x23c19d(0x5)+0x5)/0xa+')',_0x545cc1,_0x39f852,_0xcd396f);});let _0x355c76,_0xcf4a20;_0x411d56[_0x3b4693(0x19a)]('mouseover',_0x3f7dbc=>{const _0x5a4b52=_0x3b4693;_0x355c76=_0x3f7dbc[_0x5a4b52(0x1b0)],_0xcf4a20=_0x3f7dbc['pageY'];}),_0x411d56[_0x3b4693(0x19a)](_0x3b4693(0x1ad),_0x51555b=>{const _0x545493=_0x3b4693;if(_0x355c76===undefined){_0x355c76=_0x51555b[_0x545493(0x1b0)],_0xcf4a20=_0x51555b[_0x545493(0x1a2)];return;}const _0x6184d3=_0x51555b['pageX']-_0x355c76,_0x59c045=_0x51555b[_0x545493(0x1a2)]-_0xcf4a20;_0xc5a5ad['forEach'](_0x4f0114=>{_0x4f0114['x']+=_0x6184d3/_0x2b3549,_0x4f0114['y']+=_0x59c045/_0x2b3549;}),_0x355c76=_0x51555b['pageX'],_0xcf4a20=_0x51555b[_0x545493(0x1a2)];});let _0x3e51ee=Date[_0x3b4693(0x198)](),_0x597f11=null;const _0x340613=()=>{const _0x424fb5=_0x3b4693;Date[_0x424fb5(0x198)]()-_0x3e51ee>=_0x1877c9&&(_0x365013(),_0x46fbf2(),_0xc5a5ad['forEach'](_0x139e6b=>_0x139e6b[_0x424fb5(0x1ab)]()),_0x3e51ee=Date[_0x424fb5(0x198)]()),_0x597f11=requestAnimationFrame(_0x340613);};return _0x597f11=requestAnimationFrame(_0x340613),()=>cancelAnimationFrame(_0x597f11);};export const createWatermark=({text:_0x2a6726,gap:_0x1a763d,fontSize:_0x94b139,color:_0x303477,width:width=window[a86_0xf325dc(0x1aa)],height:height=window[a86_0xf325dc(0x19e)],drawMode:drawMode=a86_0xf325dc(0x1b2)})=>{const _0x1f1bfd=a86_0xf325dc,_0x43e891=document['createElement'](_0x1f1bfd(0x18d));_0x43e891[_0x1f1bfd(0x1a6)]=width,_0x43e891[_0x1f1bfd(0x1a9)]=height;const _0x187ed0=_0x43e891['getContext']('2d');_0x187ed0['font']=_0x94b139+'px\x20Arial',_0x187ed0[drawMode+_0x1f1bfd(0x19d)]=_0x303477;const _0xa7a676=_0x187ed0[_0x1f1bfd(0x195)](_0x2a6726)[_0x1f1bfd(0x1a6)],_0x41ecc9=_0xa7a676+_0x1a763d,_0x114b61=_0x94b139+_0x1a763d;for(let _0x6c910f=_0x1a763d/0x2;_0x6c910f<height;_0x6c910f+=_0x114b61){for(let _0x49f5b9=_0x1a763d/0x2;_0x49f5b9<width;_0x49f5b9+=_0x41ecc9){_0x187ed0[drawMode+_0x1f1bfd(0x1a8)](_0x2a6726,_0x49f5b9,_0x6c910f);}}return _0x43e891;};export default{'pop':pop,'createWatermark':createWatermark};
|
package/packages/utils/funcs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x23515c,_0x285232){const _0x37487b=a87_0xde9c,_0x1a5219=_0x23515c();while(!![]){try{const _0x52db0f=-parseInt(_0x37487b(0x155))/0x1*(-parseInt(_0x37487b(0x173))/0x2)+parseInt(_0x37487b(0x16f))/0x3*(-parseInt(_0x37487b(0x143))/0x4)+parseInt(_0x37487b(0x139))/0x5+parseInt(_0x37487b(0x150))/0x6*(parseInt(_0x37487b(0x145))/0x7)+-parseInt(_0x37487b(0x15c))/0x8*(-parseInt(_0x37487b(0x154))/0x9)+parseInt(_0x37487b(0x149))/0xa*(parseInt(_0x37487b(0x164))/0xb)+-parseInt(_0x37487b(0x151))/0xc;if(_0x52db0f===_0x285232)break;else _0x1a5219['push'](_0x1a5219['shift']());}catch(_0xa6040c){_0x1a5219['push'](_0x1a5219['shift']());}}}(a87_0x5370,0x9be50));import{toRaw}from'vue';export const validateForm=async _0x567e05=>{const _0x1d351b=a87_0xde9c,_0x465815=await _0x567e05[_0x1d351b(0x161)]?.[_0x1d351b(0x144)]()[_0x1d351b(0x13b)](()=>!![])[_0x1d351b(0x13f)](()=>![]),_0x4b8264=await Promise[_0x1d351b(0x14f)](_0x567e05[_0x1d351b(0x163)]?.[_0x1d351b(0x15b)](_0x3536cf=>{const _0x2f100e=_0x1d351b;return _0x3536cf[_0x2f100e(0x141)]?.[_0x2f100e(0x15f)](_0x2f100e(0x14e))||_0x3536cf[_0x2f100e(0x141)]?.[_0x2f100e(0x15f)]('x-form');})[_0x1d351b(0x16d)](_0x15d265=>validateForm(_0x15d265['form'])));return _0x465815&&_0x4b8264['every'](_0x2b4139=>_0x2b4139);};export const formatPrecision=(_0x3e872f,_0x279f03)=>{const _0x15813a=a87_0xde9c;if(typeof _0x3e872f!==_0x15813a(0x13a)){const _0x1d260f=parseFloat(_0x3e872f)||null;if(typeof _0x1d260f!==_0x15813a(0x13a))return _0x3e872f;_0x3e872f=_0x1d260f;}return _0x3e872f[_0x15813a(0x147)](_0x279f03)*0x1;};export const formatOptions=(_0x21e0d2,_0x12d6e5)=>{const _0x5575ae=a87_0xde9c,_0x529ac1=_0x21e0d2[_0x5575ae(0x166)]?_0x21e0d2['value']:toRaw(_0x21e0d2),{text:text=_0x5575ae(0x169),value:value=_0x5575ae(0x160)}=_0x12d6e5,_0xe31484=_0x529ac1[_0x5575ae(0x16d)](_0x51f123=>{const _0x5276f6=_0x5575ae;return typeof _0x51f123===_0x5276f6(0x157)?{'text':_0x51f123[text],'value':_0x51f123[value],'disabled':_0x51f123['disabled'],'raw':_0x51f123}:{'text':_0x51f123,'value':_0x51f123};});if(!_0x12d6e5[_0x5575ae(0x171)])return _0xe31484;const _0x5cc8ca=typeof _0x12d6e5[_0x5575ae(0x171)]===_0x5575ae(0x162)?_0x12d6e5[_0x5575ae(0x171)]:_0x12d6e5[_0x5575ae(0x169)]||_0x5575ae(0x169);return _0xe31484[_0x5575ae(0x171)]((_0x5187c9,_0x299c12)=>{const _0x26f792=_0x5575ae;return _0x5187c9[_0x5cc8ca][_0x26f792(0x175)](_0x299c12[_0x5cc8ca]);});};function a87_0xde9c(_0x329bd8,_0x45bd1b){const _0x5370b1=a87_0x5370();return a87_0xde9c=function(_0xde9c5,_0x1f4a14){_0xde9c5=_0xde9c5-0x139;let _0x168c75=_0x5370b1[_0xde9c5];return _0x168c75;},a87_0xde9c(_0x329bd8,_0x45bd1b);}export const injectVanFieldProvide=_0xc6a6a3=>{const _0x5ebe2b=a87_0xde9c,_0xf408b=_0xc6a6a3['_'][_0x5ebe2b(0x152)],_0x4abef9=Object['getOwnPropertySymbols'](_0xf408b);if(!_0x4abef9['length'])return;_0xc6a6a3[_0x5ebe2b(0x15a)]=_0xf408b[_0x4abef9[0x0]];if(!_0xc6a6a3[_0x5ebe2b(0x15a)]?.[_0x5ebe2b(0x13d)])return _0xc6a6a3[_0x5ebe2b(0x15a)]=null;_0xc6a6a3[_0x5ebe2b(0x15a)]['customValue']['value']=()=>_0xc6a6a3[_0x5ebe2b(0x14d)];};export const getUrlType=_0x3f65d9=>{const _0x2439af=a87_0xde9c,_0x86939a=_0x3f65d9?.[_0x2439af(0x14c)]('.')[_0x2439af(0x16c)]()[_0x2439af(0x13c)]();if([_0x2439af(0x148),_0x2439af(0x172),_0x2439af(0x14a),'gif',_0x2439af(0x146)][_0x2439af(0x14b)](_0x86939a))return _0x2439af(0x167);else{if([_0x2439af(0x142),'webm','ogg',_0x2439af(0x16a),_0x2439af(0x15d),_0x2439af(0x158)][_0x2439af(0x14b)](_0x86939a))return _0x2439af(0x156);else{if(_0x86939a===_0x2439af(0x165))return _0x2439af(0x165);else{if(_0x86939a==='doc'||_0x86939a===_0x2439af(0x16e))return _0x2439af(0x16e);else{if(_0x86939a==='xls'||_0x86939a===_0x2439af(0x16b))return _0x2439af(0x16b);else{if(_0x86939a===_0x2439af(0x170)||_0x86939a===_0x2439af(0x159))return _0x2439af(0x159);else{if([_0x2439af(0x153),'rar','7z',_0x2439af(0x140),_0x2439af(0x174)][_0x2439af(0x14b)](_0x86939a))return'zip';}}}}}}return _0x2439af(0x15e);};export const getFiletypeIcon=_0x2e4ed0=>{const _0x57366a=a87_0xde9c;if(_0x2e4ed0===_0x57366a(0x165))return'iwwa:file-pdf';if(_0x2e4ed0===_0x57366a(0x16e))return _0x57366a(0x13e);if(_0x2e4ed0==='xlsx')return'file-icons:microsoft-excel';if(_0x2e4ed0===_0x57366a(0x159))return'file-icons:microsoft-powerpoint';if(_0x2e4ed0===_0x57366a(0x153))return _0x57366a(0x168);return'bi:file-pdf-fill';};export default{'validateForm':validateForm,'formatPrecision':formatPrecision,'formatOptions':formatOptions,'injectVanFieldProvide':injectVanFieldProvide,'getUrlType':getUrlType,'getFiletypeIcon':getFiletypeIcon};function a87_0x5370(){const _0x134e98=['object','mov','pptx','provide','filter','264GKDQYS','avi','others','endsWith','value','formRef','string','formItems','11rXqgBo','pdf','__v_isRef','image','formkit:zip','text','3gpp','xlsx','pop','map','docx','453867VmfSKL','ppt','sort','jpg','2242676tMbRvS','gzip','localeCompare','3683520QTuMjg','number','then','toLowerCase','customValue','file-icons:microsoft-word','catch','tar','comp','mp4','20uHHiBT','validate','7kGgIeL','webp','toFixed','png','2769700ZHvvHx','jpeg','includes','split','modelValue','XForm','all','5588334kjsaaL','29322156uYnpCs','provides','zip','210573myuZjE','1qmtGgV','video'];a87_0x5370=function(){return _0x134e98;};return a87_0x5370();}
|