@sava-info-systems/api-maker-with-extensions 1.20.3 → 1.21.0
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/dist/1097.ea0e6db47339f73f.js +1 -0
- package/dist/2579.6558b67b2d98f116.js +1 -0
- package/dist/{3139.b15465b9cea3b772.js → 3139.0921102d181c220d.js} +1 -1
- package/dist/443.7e3946651373e09a.js +1 -0
- package/dist/5334.72c1c6d89fdf136e.js +1 -0
- package/dist/6650.1d18ee25901d68be.js +1 -0
- package/dist/assets/images/icons/rsa_encryption.svg +6 -0
- package/dist/assets/schema-types/types.ts +3309 -597
- package/dist/index.html +1 -1
- package/dist/main.38591a8dafb94708.js +1 -0
- package/dist/runtime.3ae0fcbd4f474bdc.js +1 -0
- package/main.js +1 -1
- package/package.json +4 -4
- package/sandbox/Dockerfile +1 -1
- package/sandbox/assets/schema-types/types.js +341 -190
- package/sandbox/sandbox.js +1 -1
- package/src/assets/schema-types/types.ts +3309 -597
- package/src/public/dist-db-masters/browser/index.html +1 -2
- package/src/public/dist-db-masters/browser/main-SJKWFBLX.js +139 -0
- package/src/tools/local-client.js +1 -1
- package/dist/1097.f259891962623e63.js +0 -1
- package/dist/3081.cd465078d391b50b.js +0 -1
- package/dist/5334.b4ed1b45db24d12f.js +0 -1
- package/dist/main.71d23d87fc0a83a2.js +0 -1
- package/dist/runtime.3e2c700389e48f46.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a0_0x4ef4(){const _0x4dbab6=['UIMakerStyles','ui-maker-pages','padStart','copySystemApiHooksToAnotherDir','apply','Schemas','LC_DATA_MODIFIED_IN_DATABASE','base64','AmEvents','CONNECTED','THIRD_PARTY_APIS','ws-events','SYSTEM_API_HOOKS','.css','beforeExit','\x20Please\x20provide\x20settings\x20in\x20:\x20','existsSync','system-apis','mkdir','start','CUSTOM_APIS','shuttingDown','copyDBMasterUtilsToAnotherDir','parse','copyTestCasesToAnotherDir','SystemApiSettings','DatabaseHooksWriteF','dir','removeEmptyDirsSync','bind','am_tp_installed_apis','.yaml','getSeconds','mkdirSync','sep','ProcessInitializersReadF','orangeStart','split','SCHEDULERS','getCurrentTime','custom-apis','endsWith','stringify','✅\x20Full\x20Sync\x20:\x20[','replace','Database\x20migrations','eventType','database-hooks','am-types','\x1b[0m','ProcessInitializers','addProcessHooks','sendToServer','relative','Watcher\x20error:','./src','Error\x20during\x20shutdown','WebSocketEvents','skipWatchInputs','response','✅\x20Connected\x20to\x20server\x20via\x20WS','Error\x20closing\x20watcher\x20before\x20full\x20sync','instanceName','error','SIGTERM','appRoot','web-socket-events','copyInstanceHooksToAnotherDir','.ts','pre-hooks','--no-save','SchedulersReadF','SystemApiHooksReadF','DATABASE_HOOKS','fsReadFile','debounce','resolve','InstanceApiSettings','DBMasterStylesReadF','processReceivedEvent','toLowerCase','rmdirSync','schedulers','readFile','system-api-hooks','exports','copyFilesToProjectDir','warn','System\x20API\x20hooks','writeFile','length','package.json','chokidar','InstanceApiHooksWriteF','am_test_cases','DELETE_ALL','\x27\x20exited\x20with\x20code\x20','369POERqx','sendDeletedEventToServerDebounce','DatabasesMigrations','version','--force','copyDBMastersToAnotherDir','ThirdPartyApiWriteF','writeMemfsJsonToDisk','nodeModulesInstalled','DB_MIGRATIONS','ProcessI18NWriteF','&user-path=','I18NS','TestCasesWriteF','LC_SEND_ALL_DATA','tests','sendDeletedEventToServerInternal','SIGTERM\x20received\x20—\x20shutting\x20down','copyDBMigrationsToAnotherDir','✓\x20Receive\x20:\x20[','ui-maker-utils','src','serializeFolderWithBinary','instance-hooks','readdir','collectionName','js-yaml@4.1.0','repo','REGISTER','paths','UtilityClassesReadF','join','DB\x20masters','⏳\x20node_modules\x20installation\x20process\x20started','Custom\x20APIs','\x1b[38;2;255;165;0m','UI_MAKER_STYLES','CustomApisWriteF','POST','CollectionHooksReadF',']\x20:\x20[','watcher','adminUserPath','chokidar@4.0.3','onclose','TestCasesReadF','versions','292310cXxeSn','SYSTEM_APIS','copySchedulersToAnotherDir','apiId','1041475vZbzKh','fullSyncCounter',']\x20:\x20','INSTANCES','Third\x20party\x20APIs','log','WebSocketEventsWriteF','exit','getChangedFolder','errors','InstanceHooksReadF','ui-maker-styles','am_database_migrations','databaseName','4354264VzEmAX','listeners','SystemApiHooksWriteF','1864886yoCtXU','Instance\x20hooks','WebSocket\x20events','invalidOnEvents','tsconfig.json','am_tp_api_versions','onmessage','copyWebSocketEventsToAnotherDir','npm','LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM','am_tp_api_settings','process-initializers','Test\x20cases','7GeeeHe','UNKNOWN','types','dbInterfacesFile','eventListeners','SchemaWriteF','installRequiredPackages','colorEnd','EVENTS','Process\x20initializers','Schedulers','normalizePath','symlinkSync','InstanceApiHooksReadF','fsMkDir','rmSync','data','Instance\x20API\x20settings','parseYaml','System\x20API\x20settings','onopen','I18Ns','INSTANCE_API_HOOKS','instance-api-hooks','⏳\x20Connecting\x20to\x20server...','DBMastersReadF','instances','slice','SYSTEM_API_SETTINGS','am_system_api_hooks','Failed\x20to\x20start\x20the\x20npm\x20process:\x20','connectToServerViaWS','dirname','\x20Current\x20Dir\x20:\x20','DBMastersWriteF','getChangedFolderForDeleted','collection-hooks','js-yaml','skipFileWritingForLocal','message','unlinkDir','——————————————————————————————————————————————————————————————————————————————————','onerror','db-interfaces.d.ts','?authTokenInfo=ws-local-client-sync&authorization=','apiCategory','Connection\x20closed.','TOKEN_VALIDATION','all','2105535luvcIR','statSync','preHooks','amTypes','EventsReadF','am_system_api_settings','copyUtilityClassesToAnotherDir','cpSync','WEB_SOCKET_EVENT','DBMasterUtilsWriteF','config','NOTIFICATION','EventsWriteF','Third\x20party\x20API\x20settings','third-party-apis','node_modules','Database\x20hooks','utf8','Events','isDirectory','copyEventsToAnotherDir','PROCESS_INITIALIZERS','eventData','path','fsWriteFile','type','readDirCustom','copyCustomApisToAnotherDir','Instance\x20API\x20hooks','copySchemasToAnotherDir','syncToken','tpInstalledApiBundleName','change','ProcessInitializersWriteF','toString','INSTANCE_API_SETTINGS','instanceApiName','load','am_process_initializers','DB_MASTERS','.gitignore','ProcessI18NReadF','startsWith','am_instance_api_settings','CollectionHooks','syncAllDataWithServer','am_ui_maker_styles','-lc','930569svfbtq','✅\x20node_modules\x20installed','validOnEvents','SchedulersWriteF','am_schemas','link','customApiName','LC_DATA_REQ_RES','am_database_hooks','UI\x20maker\x20styles','30YuNybg','——————————————————————————————————————\x20Note\x20——————————————————————————————————————','copyCollectionHooksToAnotherDir','COLLECTION_HOOKS','copyI18NToAnotherDir','cyanStart','Failed\x20to\x20restart\x20watcher\x20after\x20full\x20sync','copyProcessInitializersToAnotherDir','341276ABpowR','WebSocketEventsReadF','uncaughtException','.js','localClientPath','then','unhandledRejection','copyThirdPartyApisToAnotherDir','startWatch','unlink','CustomApiReadF','TEST_CASES','THIRD_PARTY_API_SETTINGS','isActive','promises','name','checkForNodeVersion','child_process','am_i18ns','fsExistsSync','add','shutdownAndExit','CollectionHooksWriteF','copyDatabaseHooksToAnotherDir','content','am_ui_maker_utils','UNREGISTER','DELETE','Error\x20while\x20connecting\x20to\x20WS\x20server.','i18ns','normalize','DB\x20master\x20utils','fsMkDirSync','baseUrl','tpInstalledApiName','install','close','watch\x20handler\x20error','fsLink','postHooks','copyDBMasterStylesToAnotherDir','readFileSync','push','Collection\x20hooks','getCategoryOfPath','PUT','compilerOptions','printNotes','✳️Open\x20folder\x20in\x20IDE\x20:\x20','DatabaseHooksReadF','readdirSync','executeNpmRun','⏳\x20Dependencies\x20installation\x20process\x20started','createLCProjectDirectory','InstanceHooks','projectDirectory','printNotesToProvideLocalClient','fsReadDir','PUT_REPLACE','send','Utility\x20classes','.config.ts','DBMasterUtilsReadF','✓\x20Send\x20:\x20[','spawn'];a0_0x4ef4=function(){return _0x4dbab6;};return a0_0x4ef4();}function a0_0x517b(_0x4bd793,_0x2bb91d){_0x4bd793=_0x4bd793-0x1e7;const _0x4ef45c=a0_0x4ef4();let _0x517b53=_0x4ef45c[_0x4bd793];return _0x517b53;}(function(_0x37f2e1,_0x44ee50){const _0x45a4cb=a0_0x517b,_0x1fa6a3=_0x37f2e1();while(!![]){try{const _0x3c8830=parseInt(_0x45a4cb(0x271))/0x1+parseInt(_0x45a4cb(0x203))/0x2+-parseInt(_0x45a4cb(0x241))/0x3+parseInt(_0x45a4cb(0x283))/0x4+parseInt(_0x45a4cb(0x1f2))/0x5*(parseInt(_0x45a4cb(0x27b))/0x6)+-parseInt(_0x45a4cb(0x210))/0x7*(parseInt(_0x45a4cb(0x200))/0x8)+-parseInt(_0x45a4cb(0x325))/0x9*(parseInt(_0x45a4cb(0x1ee))/0xa);if(_0x3c8830===_0x44ee50)break;else _0x1fa6a3['push'](_0x1fa6a3['shift']());}catch(_0x30ae52){_0x1fa6a3['push'](_0x1fa6a3['shift']());}}}(a0_0x4ef4,0x851b7),((()=>{'use strict';var _0x45c505={0x3(_0x864063){const _0x2c8882=a0_0x517b;_0x864063['exports']=require(_0x2c8882(0x258));},0x59(_0x1b20d6){const _0x497a61=a0_0x517b;_0x1b20d6['exports']=require(_0x497a61(0x235));},0xe7(_0x24fc8b){const _0x51e87d=a0_0x517b;_0x24fc8b['exports']=require(_0x51e87d(0x320));},0x13d(_0x3a9106){const _0x5bfa84=a0_0x517b;_0x3a9106['exports']=require(_0x5bfa84(0x294));},0x1dc(_0x516d06,_0x1161d4,_0x220365){const _0x1ff439=a0_0x517b;_0x1161d4['vg']=_0x1161d4['xu']=_0x1161d4['kR']=_0x1161d4['OW']=void 0x0;const _0x530c01=_0x220365(0x380),_0x211223=_0x220365(0x3),_0x5dfc65=_0x220365(0x13d);var _0xa2cd42,_0x22dd49,_0x35ef1d,_0x1c059d,_0x47f2fc,_0x1e3566;new class{constructor(){const _0x5b3c89=a0_0x517b;this['EL']=!0x1,this['appRoot']=_0x211223[_0x5b3c89(0x310)](''),this[_0x5b3c89(0x2ba)]='',this['C']={'localClientPath':'./local-client.config','src':_0x5b3c89(0x33a),'repo':'repo','types':_0x5b3c89(0x212),'amTypes':_0x5b3c89(0x2f4),'versions':_0x5b3c89(0x1ed),'apis':'apis','listeners':_0x5b3c89(0x201),'postHooks':'post-hooks','preHooks':_0x5b3c89(0x309),'dbInterfacesFile':_0x5b3c89(0x23b),'UtilityClassesReadF':_0x5b3c89(0x2bf),'CustomApiReadF':_0x5b3c89(0x347),'SchedulersReadF':_0x5b3c89(0x21a),'WebSocketEventsReadF':_0x5b3c89(0x205),'SchemaReadF':_0x5b3c89(0x2c9),'DBMigrationsReadF':_0x5b3c89(0x2f1),'ProcessInitializersReadF':_0x5b3c89(0x219),'ProcessI18NReadF':'i18ns','DBMastersReadF':'DB\x20masters','DBMasterStylesReadF':_0x5b3c89(0x27a),'DBMasterUtilsReadF':_0x5b3c89(0x2a2),'TestCasesReadF':_0x5b3c89(0x20f),'ThirdPartyApiReadF':_0x5b3c89(0x1f6),'EventsReadF':_0x5b3c89(0x253),'InstanceApiHooksReadF':_0x5b3c89(0x25d),'SystemApiHooksReadF':'System\x20API\x20hooks','CollectionHooksReadF':_0x5b3c89(0x2ae),'DatabaseHooksReadF':_0x5b3c89(0x251),'InstanceHooksReadF':_0x5b3c89(0x204),'CustomApisWriteF':_0x5b3c89(0x2ec),'SchedulersWriteF':_0x5b3c89(0x316),'WebSocketEventsWriteF':_0x5b3c89(0x306),'SchemaWriteF':'schemas','DBMigrationsWriteF':'db-migrations','ProcessInitializersWriteF':_0x5b3c89(0x20e),'ProcessI18NWriteF':_0x5b3c89(0x2a0),'DBMastersWriteF':_0x5b3c89(0x2c5),'DBMasterStylesWriteF':_0x5b3c89(0x1fd),'DBMasterUtilsWriteF':_0x5b3c89(0x339),'TestCasesWriteF':_0x5b3c89(0x334),'ThirdPartyApiWriteF':_0x5b3c89(0x24f),'EventsWriteF':'events','InstanceApiHooksWriteF':_0x5b3c89(0x227),'SystemApiHooksWriteF':_0x5b3c89(0x318),'CollectionHooksWriteF':_0x5b3c89(0x234),'DatabaseHooksWriteF':_0x5b3c89(0x2f3),'InstanceHooksWriteF':_0x5b3c89(0x33c)},this[_0x5b3c89(0x2fe)]=!0x1,this[_0x5b3c89(0x236)]={},this['nodeModulesInstalled']=!0x1,this[_0x5b3c89(0x2e8)]='\x1b[38;2;255;165;0m',this['cyanStart']='\x1b[36m',this['colorEnd']='\x1b[0m',this[_0x5b3c89(0x1f3)]=0x0,this[_0x5b3c89(0x326)]=this[_0x5b3c89(0x30f)](this[_0x5b3c89(0x335)],0x1f4);}async[_0x1ff439(0x2d7)](){const _0x5d92db=_0x1ff439;this[_0x5d92db(0x2f7)](),this[_0x5d92db(0x293)](),this['fsExistsSync'](this['C'][_0x5d92db(0x287)]+_0x5d92db(0x286))||(this[_0x5d92db(0x2bb)](),this[_0x5d92db(0x298)](0x1)[_0x5d92db(0x288)]()),this['config']=require(this['C'][_0x5d92db(0x287)])(),await this[_0x5d92db(0x2b2)](),this[_0x5d92db(0x2e0)](_0x211223[_0x5d92db(0x344)](this['appRoot'],this['C'][_0x5d92db(0x33a)])),await this[_0x5d92db(0x2b8)](),await this[_0x5d92db(0x22f)]();}['checkForNodeVersion'](){const _0x481a6c=_0x1ff439,_0x23d0a3=process[_0x481a6c(0x328)];parseInt(_0x23d0a3[_0x481a6c(0x2e9)]('.')[0x0][_0x481a6c(0x2f0)]('v',''),0xa)<0x16&&(console[_0x481a6c(0x303)](this[_0x481a6c(0x2e8)]+'Node.js\x2022+\x20is\x20required.\x20Current\x20version:\x20'+_0x23d0a3+this[_0x481a6c(0x217)]),this[_0x481a6c(0x298)](0x1)[_0x481a6c(0x288)]());}async[_0x1ff439(0x2b2)](){const _0x49dd42=_0x1ff439;console[_0x49dd42(0x1f7)](this['orangeStart']),console[_0x49dd42(0x1f7)](_0x49dd42(0x27c)),console[_0x49dd42(0x1f7)]('\x20The\x20local\x20client\x20will\x20pull\x20the\x20latest\x20changes\x20from\x20the\x20server\x20and\x20keep\x20them\x20synchronized\x20between\x20the\x20IDE\x20and\x20the\x20server.'),console[_0x49dd42(0x1f7)](_0x49dd42(0x231)+this[_0x49dd42(0x305)]),console['log'](_0x49dd42(0x239)),console[_0x49dd42(0x1f7)](this[_0x49dd42(0x217)]),console[_0x49dd42(0x1f7)]('');}[_0x1ff439(0x2bb)](){const _0x2b87cc=_0x1ff439;console[_0x2b87cc(0x1f7)](_0x2b87cc(0x348)),console[_0x2b87cc(0x1f7)](_0x2b87cc(0x2d3)+this['C'][_0x2b87cc(0x287)]+'.js'),console[_0x2b87cc(0x1f7)](_0x2b87cc(0x2f5)),console[_0x2b87cc(0x1f7)]('');}async[_0x1ff439(0x2b8)](){const _0x111165=_0x1ff439,_0x4eca25=_0x211223['basename'](this[_0x111165(0x305)]),_0x51469e=_0x211223['join'](this[_0x111165(0x305)],'..',_0x4eca25+_0x111165(0x270));this[_0x111165(0x2ba)]=_0x51469e,_0x530c01[_0x111165(0x21f)](_0x51469e,{'recursive':!0x0,'force':!0x0}),await this['fsMkDir'](_0x51469e,{'recursive':!0x0});}async[_0x1ff439(0x31a)](_0x4fe7ba){const _0x5e5d27=_0x1ff439;await this['createLCProjectDirectory'](),this[_0x5e5d27(0x2a3)](_0x211223['join'](this[_0x5e5d27(0x2ba)],this['C']['src']),{'recursive':!0x0}),_0x530c01['cpSync'](_0x211223[_0x5e5d27(0x344)](this[_0x5e5d27(0x305)],'package.json'),_0x211223[_0x5e5d27(0x344)](this[_0x5e5d27(0x2ba)],_0x5e5d27(0x31f))),_0x530c01[_0x5e5d27(0x248)](_0x211223[_0x5e5d27(0x344)](this[_0x5e5d27(0x305)],_0x5e5d27(0x269)),_0x211223[_0x5e5d27(0x344)](this[_0x5e5d27(0x2ba)],_0x5e5d27(0x269)));const _0x26517d=_0x211223[_0x5e5d27(0x344)](this['appRoot'],'tsconfig.json'),_0x3e989f=JSON[_0x5e5d27(0x2db)](await this[_0x5e5d27(0x30e)](_0x26517d,{'encoding':_0x5e5d27(0x252)}));_0x3e989f[_0x5e5d27(0x2b1)][_0x5e5d27(0x2a4)]=_0x5e5d27(0x2fb),_0x3e989f[_0x5e5d27(0x2b1)][_0x5e5d27(0x342)]['*']['push']('*'),await this[_0x5e5d27(0x259)](_0x211223['join'](this[_0x5e5d27(0x2ba)],_0x5e5d27(0x207)),JSON[_0x5e5d27(0x2ee)](_0x3e989f,null,0x4),{'encoding':'utf8'}),await _0x530c01[_0x5e5d27(0x291)]['cp'](_0x211223['join'](this['appRoot'],this['C']['amTypes']),_0x211223[_0x5e5d27(0x344)](this['projectDirectory'],this['C']['src'],this['C'][_0x5e5d27(0x244)]),{'recursive':!0x0}),await _0x530c01['promises']['cp'](_0x211223[_0x5e5d27(0x344)](this['appRoot'],this['C']['src'],this['config'][_0x5e5d27(0x1e9)],this['C']['types'],this['C'][_0x5e5d27(0x213)]),_0x211223[_0x5e5d27(0x344)](this[_0x5e5d27(0x2ba)],this['C'][_0x5e5d27(0x33a)],this['C']['amTypes'],this['C'][_0x5e5d27(0x213)]),{'recursive':!0x0}),await this['copyUtilityClassesToAnotherDir'](),await this[_0x5e5d27(0x25c)](),await this[_0x5e5d27(0x1f0)](),await this[_0x5e5d27(0x25e)](),await this[_0x5e5d27(0x337)](),await this['copyProcessInitializersToAnotherDir'](),await this[_0x5e5d27(0x27f)](),await this[_0x5e5d27(0x2dc)](),await this[_0x5e5d27(0x28a)](),await this[_0x5e5d27(0x255)](),await this['copyInstanceApiHooksToAnotherDir'](),await this[_0x5e5d27(0x2c7)](),await this['copyWebSocketEventsToAnotherDir'](),await this[_0x5e5d27(0x27d)](),await this[_0x5e5d27(0x29a)](),await this[_0x5e5d27(0x307)](),await this[_0x5e5d27(0x32a)](),await this[_0x5e5d27(0x2ab)](),await this[_0x5e5d27(0x2da)](),_0x4fe7ba&&(console['log'](_0x5e5d27(0x346)),await this[_0x5e5d27(0x2b6)]('npm',['install',_0x5e5d27(0x329)]),console['log'](_0x5e5d27(0x272)),this[_0x5e5d27(0x32d)]=!0x0);try{_0x530c01[_0x5e5d27(0x21c)](_0x211223[_0x5e5d27(0x344)](this[_0x5e5d27(0x305)],_0x5e5d27(0x250)),_0x211223[_0x5e5d27(0x344)](this['projectDirectory'],_0x5e5d27(0x250)),_0x5e5d27(0x2df));}catch(_0x1d0725){console[_0x5e5d27(0x1f7)]('Please\x20run\x20using\x20administrator\x20privileges.'),console[_0x5e5d27(0x1f7)](_0x1d0725),await this[_0x5e5d27(0x298)](0x1);}}async[_0x1ff439(0x216)](){const _0x1731bd=_0x1ff439;console[_0x1731bd(0x1f7)](_0x1731bd(0x2b7));try{_0x530c01['unlinkSync'](_0x211223[_0x1731bd(0x344)](this[_0x1731bd(0x305)],'package-lock.json'));}catch(_0x2cfa74){}await this[_0x1731bd(0x2b6)](_0x1731bd(0x20b),[_0x1731bd(0x2a6),_0x1731bd(0x30a),_0x1731bd(0x1ea),_0x1731bd(0x33f)]),this[_0x1731bd(0x32d)]=!0x0,console['log']('✅\x20Dependencies\x20installed');}async[_0x1ff439(0x247)](){const _0x3a4a37=_0x1ff439,_0x1f60b8=this['C'][_0x3a4a37(0x343)],_0x238e1d=_0x211223[_0x3a4a37(0x344)](this[_0x3a4a37(0x305)],this['C'][_0x3a4a37(0x33a)],this[_0x3a4a37(0x24b)][_0x3a4a37(0x1e9)],_0x1f60b8),_0x59221a=await this['readDirCustom'](_0x238e1d,null);for(const _0x48db38 of _0x59221a){const _0x1a853e=_0x211223[_0x3a4a37(0x344)](_0x238e1d,_0x48db38,_0x48db38+_0x3a4a37(0x2e3));if(!this[_0x3a4a37(0x296)](_0x1a853e))continue;const _0x148633=await this['fsReadFile'](_0x1a853e,{'encoding':'utf8'}),_0x5797f1=await this[_0x3a4a37(0x222)](_0x148633);for(const _0x59ac66 of _0x5797f1['versions']||[])if(!0x0===_0x59ac66[_0x3a4a37(0x290)]){const _0x14008=_0x211223[_0x3a4a37(0x344)](_0x238e1d,_0x48db38,this['C'][_0x3a4a37(0x1ed)],_0x59ac66[_0x3a4a37(0x328)],_0x59ac66[_0x3a4a37(0x292)]+_0x3a4a37(0x308)),_0x29ae95=_0x211223[_0x3a4a37(0x344)](this['projectDirectory'],this['C'][_0x3a4a37(0x33a)],_0x5797f1['folderPath'],_0x5797f1[_0x3a4a37(0x292)]+'.ts');await this['fsMkDir'](_0x211223[_0x3a4a37(0x230)](_0x29ae95),{'recursive':!0x0}),await this[_0x3a4a37(0x2a9)](_0x14008,_0x29ae95);}}}async[_0x1ff439(0x25c)](){const _0x40c2ab=_0x1ff439,_0x55ccba=this['C'][_0x40c2ab(0x28d)],_0x1c30ed=this['C'][_0x40c2ab(0x34a)],_0x2f72ab=_0x211223[_0x40c2ab(0x344)](this[_0x40c2ab(0x305)],this['C'][_0x40c2ab(0x33a)],this[_0x40c2ab(0x24b)][_0x40c2ab(0x1e9)],_0x55ccba),_0x235041=await this[_0x40c2ab(0x25b)](_0x2f72ab,null);for(const _0x23c925 of _0x235041){const _0x996150=_0x211223[_0x40c2ab(0x344)](_0x2f72ab,_0x23c925,_0x23c925+_0x40c2ab(0x2e3));if(!this[_0x40c2ab(0x296)](_0x996150))continue;const _0x1d3245=await this[_0x40c2ab(0x30e)](_0x996150,{'encoding':_0x40c2ab(0x252)}),_0xc2146d=await this[_0x40c2ab(0x222)](_0x1d3245);for(const _0x42086d of _0xc2146d[_0x40c2ab(0x1ed)]||[])if(!0x0===_0x42086d[_0x40c2ab(0x290)]){const _0x638148=_0x211223[_0x40c2ab(0x344)](_0x2f72ab,_0x23c925,this['C']['versions'],_0x42086d[_0x40c2ab(0x328)]),_0x1da3c6=_0x211223['join'](_0x638148,_0x42086d[_0x40c2ab(0x292)]+_0x40c2ab(0x308)),_0x559eef=_0x211223['join'](this[_0x40c2ab(0x2ba)],this['C'][_0x40c2ab(0x33a)],_0x1c30ed,_0xc2146d[_0x40c2ab(0x258)],_0xc2146d['name']+_0x40c2ab(0x308));await this[_0x40c2ab(0x21e)](_0x211223['dirname'](_0x559eef),{'recursive':!0x0}),await this[_0x40c2ab(0x2a9)](_0x1da3c6,_0x559eef);const _0x138561=_0x211223['join'](_0x2f72ab,_0x23c925,_0x23c925+'.config.ts'),_0x5a580f=_0x211223[_0x40c2ab(0x344)](this[_0x40c2ab(0x2ba)],this['C'][_0x40c2ab(0x33a)],_0x1c30ed,_0xc2146d[_0x40c2ab(0x258)],_0xc2146d['name']+_0x40c2ab(0x2c0));await this[_0x40c2ab(0x2a9)](_0x138561,_0x5a580f);for(const _0x11712b of _0x42086d[_0x40c2ab(0x243)]){const _0x11e294=_0x211223[_0x40c2ab(0x344)](_0x638148,this['C'][_0x40c2ab(0x243)],_0x11712b['name']+'.ts'),_0x1768a2=_0x211223[_0x40c2ab(0x344)](this[_0x40c2ab(0x2ba)],this['C'][_0x40c2ab(0x33a)],_0x1c30ed,_0xc2146d['path'],this['C']['preHooks'],_0x11712b[_0x40c2ab(0x292)]+_0x40c2ab(0x308));await this['fsMkDir'](_0x211223[_0x40c2ab(0x230)](_0x1768a2),{'recursive':!0x0}),await this['fsLink'](_0x11e294,_0x1768a2);}for(const _0x2e1654 of _0x42086d[_0x40c2ab(0x2aa)]){const _0x3f57be=_0x211223[_0x40c2ab(0x344)](_0x638148,this['C'][_0x40c2ab(0x2aa)],_0x2e1654[_0x40c2ab(0x292)]+'.ts'),_0x2f8b2a=_0x211223['join'](this[_0x40c2ab(0x2ba)],this['C']['src'],_0x1c30ed,_0xc2146d['path'],this['C'][_0x40c2ab(0x2aa)],_0x2e1654['name']+_0x40c2ab(0x308));await this['fsMkDir'](_0x211223[_0x40c2ab(0x230)](_0x2f8b2a),{'recursive':!0x0}),await this[_0x40c2ab(0x2a9)](_0x3f57be,_0x2f8b2a);}}}}async[_0x1ff439(0x1f0)](){const _0x185664=_0x1ff439,_0x39abd2=this['C'][_0x185664(0x30b)],_0x162e2e=this['C'][_0x185664(0x274)],_0x2488e9=_0x211223[_0x185664(0x344)](this['appRoot'],this['C'][_0x185664(0x33a)],this[_0x185664(0x24b)]['adminUserPath'],_0x39abd2),_0xc89689=await this[_0x185664(0x25b)](_0x2488e9,null);for(const _0x4601c9 of _0xc89689){const _0x56e76e=_0x211223[_0x185664(0x344)](_0x2488e9,_0x4601c9,_0x4601c9+_0x185664(0x2e3));if(!this[_0x185664(0x296)](_0x56e76e))continue;const _0x581ab5=await this[_0x185664(0x30e)](_0x56e76e,{'encoding':_0x185664(0x252)}),_0x212c26=await this['parseYaml'](_0x581ab5);for(const _0x3a2ea7 of _0x212c26[_0x185664(0x1ed)]||[])if(!0x0===_0x3a2ea7[_0x185664(0x290)]){const _0x1f070a=_0x211223['join'](_0x2488e9,_0x4601c9,this['C'][_0x185664(0x1ed)],_0x3a2ea7[_0x185664(0x328)],_0x3a2ea7[_0x185664(0x292)]+_0x185664(0x308)),_0x284e08=_0x211223[_0x185664(0x344)](this[_0x185664(0x2ba)],this['C']['src'],_0x162e2e,_0x212c26[_0x185664(0x292)]+_0x185664(0x308));await this[_0x185664(0x21e)](_0x211223[_0x185664(0x230)](_0x284e08),{'recursive':!0x0}),await this['fsLink'](_0x1f070a,_0x284e08);}}}async['copySchemasToAnotherDir'](){const _0x4f11ea=_0x1ff439,_0x5dfdae=this['C']['SchemaReadF'],_0x14d2dc=this['C'][_0x4f11ea(0x215)],_0x3b0555=_0x211223[_0x4f11ea(0x344)](this['appRoot'],this['C'][_0x4f11ea(0x33a)],this['config'][_0x4f11ea(0x1e9)],_0x5dfdae),_0x529c29=await this[_0x4f11ea(0x25b)](_0x3b0555,null);for(const _0x549403 of _0x529c29){const _0x9c50db=_0x211223[_0x4f11ea(0x344)](_0x3b0555,_0x549403,_0x549403+_0x4f11ea(0x2e3));if(!this['fsExistsSync'](_0x9c50db))continue;const _0xd2680d=await this[_0x4f11ea(0x30e)](_0x9c50db,{'encoding':'utf8'}),_0x4e6909=await this[_0x4f11ea(0x222)](_0xd2680d),_0x1b6202=_0x211223[_0x4f11ea(0x344)](this[_0x4f11ea(0x2ba)],this['C'][_0x4f11ea(0x33a)],_0x14d2dc,_0x4e6909[_0x4f11ea(0x302)],_0x4e6909[_0x4f11ea(0x1ff)]);await this[_0x4f11ea(0x21e)](_0x1b6202,{'recursive':!0x0});const _0x16cd84=_0x211223[_0x4f11ea(0x344)](_0x3b0555,_0x549403,_0x4e6909[_0x4f11ea(0x33e)]+'.config.ts'),_0x4dadbc=_0x211223['join'](_0x1b6202,_0x4e6909[_0x4f11ea(0x33e)]+_0x4f11ea(0x2c0));await this[_0x4f11ea(0x2a9)](_0x16cd84,_0x4dadbc);}}async[_0x1ff439(0x337)](){const _0x12309f=_0x1ff439,_0xbebf9b=this['C']['DBMigrationsReadF'],_0x2ec65d=this['C']['DBMigrationsWriteF'],_0x5315b9=_0x211223[_0x12309f(0x344)](this[_0x12309f(0x305)],this['C'][_0x12309f(0x33a)],this[_0x12309f(0x24b)]['adminUserPath'],_0xbebf9b),_0x2139de=await this[_0x12309f(0x25b)](_0x5315b9,null);for(const _0x1f83a9 of _0x2139de){const _0x1b21d9=_0x211223['join'](_0x5315b9,_0x1f83a9,_0x1f83a9+_0x12309f(0x2e3));if(!this[_0x12309f(0x296)](_0x1b21d9))continue;const _0x4aab59=await this['fsReadFile'](_0x1b21d9,{'encoding':_0x12309f(0x252)}),_0x2fe767=await this[_0x12309f(0x222)](_0x4aab59),_0x518d90=_0x211223[_0x12309f(0x344)](this[_0x12309f(0x2ba)],this['C'][_0x12309f(0x33a)],_0x2ec65d);await this[_0x12309f(0x21e)](_0x518d90,{'recursive':!0x0});const _0x54f73e=_0x211223[_0x12309f(0x344)](_0x5315b9,_0x1f83a9,_0x2fe767[_0x12309f(0x292)]+_0x12309f(0x308)),_0x2376e4=_0x211223['join'](_0x518d90,_0x2fe767[_0x12309f(0x292)]+'.ts');await this[_0x12309f(0x2a9)](_0x54f73e,_0x2376e4);}}async[_0x1ff439(0x282)](){const _0x3caadf=_0x1ff439,_0x5365dd=this['C'][_0x3caadf(0x2e7)],_0x3e4513=this['C'][_0x3caadf(0x262)],_0x5f1654=_0x211223['join'](this['appRoot'],this['C']['src'],this['config'][_0x3caadf(0x1e9)],_0x5365dd),_0x58e690=await this[_0x3caadf(0x25b)](_0x5f1654,null);for(const _0x2cc56f of _0x58e690){const _0x21323c=_0x211223['join'](_0x5f1654,_0x2cc56f,_0x2cc56f+_0x3caadf(0x2e3));if(!this[_0x3caadf(0x296)](_0x21323c))continue;const _0x3b6636=await this[_0x3caadf(0x30e)](_0x21323c,{'encoding':_0x3caadf(0x252)}),_0x3ba45a=await this['parseYaml'](_0x3b6636),_0xaccaa5=_0x211223[_0x3caadf(0x344)](this['projectDirectory'],this['C'][_0x3caadf(0x33a)],_0x3e4513);await this['fsMkDir'](_0xaccaa5,{'recursive':!0x0});const _0x48284d=_0x211223[_0x3caadf(0x344)](_0x5f1654,_0x2cc56f,_0x3ba45a['name']+_0x3caadf(0x308)),_0x508655=_0x211223['join'](_0xaccaa5,_0x3ba45a[_0x3caadf(0x292)]+_0x3caadf(0x308));await this[_0x3caadf(0x2a9)](_0x48284d,_0x508655);}}async['copyI18NToAnotherDir'](){const _0x8584c2=_0x1ff439,_0x4f1ae5=this['C'][_0x8584c2(0x26a)],_0x2be7e9=this['C'][_0x8584c2(0x32f)],_0x501179=_0x211223[_0x8584c2(0x344)](this['appRoot'],this['C'][_0x8584c2(0x33a)],this[_0x8584c2(0x24b)]['adminUserPath'],_0x4f1ae5),_0x2119a9=await this['readDirCustom'](_0x501179,null);for(const _0x41809e of _0x2119a9){const _0x123e0f=_0x211223[_0x8584c2(0x344)](_0x501179,_0x41809e,_0x41809e+_0x8584c2(0x2e3));if(!this[_0x8584c2(0x296)](_0x123e0f))continue;const _0x3f49d1=await this[_0x8584c2(0x30e)](_0x123e0f,{'encoding':_0x8584c2(0x252)}),_0x52c276=await this['parseYaml'](_0x3f49d1),_0x5870e8=_0x211223['join'](this[_0x8584c2(0x2ba)],this['C'][_0x8584c2(0x33a)],_0x2be7e9);await this[_0x8584c2(0x21e)](_0x5870e8,{'recursive':!0x0});const _0x4391ed=_0x211223['join'](_0x501179,_0x41809e,_0x52c276['name']+_0x8584c2(0x308)),_0x355927=_0x211223[_0x8584c2(0x344)](_0x5870e8,_0x52c276[_0x8584c2(0x292)]+_0x8584c2(0x308));await this['fsLink'](_0x4391ed,_0x355927);}}async[_0x1ff439(0x32a)](){const _0x18ca41=_0x1ff439,_0x247769=this['C'][_0x18ca41(0x229)],_0x455f90=this['C'][_0x18ca41(0x232)],_0x98bfef=_0x211223[_0x18ca41(0x344)](this['appRoot'],this['C'][_0x18ca41(0x33a)],this[_0x18ca41(0x24b)][_0x18ca41(0x1e9)],_0x247769),_0xf38ad6=await this[_0x18ca41(0x25b)](_0x98bfef,null);for(const _0x358cdf of _0xf38ad6){const _0x56f5cd=_0x211223[_0x18ca41(0x344)](_0x98bfef,_0x358cdf,_0x358cdf+_0x18ca41(0x2e3));if(!this[_0x18ca41(0x296)](_0x56f5cd))continue;const _0x4fe4d9=await this[_0x18ca41(0x30e)](_0x56f5cd,{'encoding':_0x18ca41(0x252)}),_0x3119c9=await this['parseYaml'](_0x4fe4d9),_0x2cb016=_0x211223[_0x18ca41(0x344)](this[_0x18ca41(0x2ba)],this['C'][_0x18ca41(0x33a)],_0x455f90,_0x3119c9[_0x18ca41(0x292)]);await this[_0x18ca41(0x21e)](_0x2cb016,{'recursive':!0x0});const _0x52cece=_0x211223[_0x18ca41(0x344)](_0x98bfef,_0x358cdf,_0x3119c9[_0x18ca41(0x292)]+_0x18ca41(0x308)),_0x1c55ef=_0x211223[_0x18ca41(0x344)](_0x2cb016,_0x3119c9[_0x18ca41(0x292)]+_0x18ca41(0x308));await this[_0x18ca41(0x2a9)](_0x52cece,_0x1c55ef);const _0x38ea1d=_0x211223['join'](_0x98bfef,_0x358cdf,_0x3119c9[_0x18ca41(0x292)]+'.config.ts'),_0x510fce=_0x211223[_0x18ca41(0x344)](_0x2cb016,_0x3119c9['name']+_0x18ca41(0x2c0));await this[_0x18ca41(0x2a9)](_0x38ea1d,_0x510fce);}}async[_0x1ff439(0x2ab)](){const _0x4f2ca3=_0x1ff439,_0x116899=this['C'][_0x4f2ca3(0x312)],_0x4bc0c9=this['C']['DBMasterStylesWriteF'],_0x46e92e=_0x211223[_0x4f2ca3(0x344)](this[_0x4f2ca3(0x305)],this['C'][_0x4f2ca3(0x33a)],this[_0x4f2ca3(0x24b)][_0x4f2ca3(0x1e9)],_0x116899),_0x5a12a7=await this[_0x4f2ca3(0x25b)](_0x46e92e,null);for(const _0x480773 of _0x5a12a7){const _0x24a3ce=_0x211223[_0x4f2ca3(0x344)](_0x46e92e,_0x480773,_0x480773+_0x4f2ca3(0x2e3));if(!this['fsExistsSync'](_0x24a3ce))continue;const _0x551ccc=await this[_0x4f2ca3(0x30e)](_0x24a3ce,{'encoding':_0x4f2ca3(0x252)}),_0x1c3d74=await this[_0x4f2ca3(0x222)](_0x551ccc),_0x33ebfb=_0x211223[_0x4f2ca3(0x344)](this[_0x4f2ca3(0x2ba)],this['C']['src'],_0x4bc0c9);await this['fsMkDir'](_0x33ebfb,{'recursive':!0x0});const _0x5f397e=_0x211223[_0x4f2ca3(0x344)](_0x46e92e,_0x480773,_0x1c3d74[_0x4f2ca3(0x292)]+_0x4f2ca3(0x2d1)),_0x299bbe=_0x211223[_0x4f2ca3(0x344)](_0x33ebfb,_0x1c3d74['name']+_0x4f2ca3(0x2d1));await this[_0x4f2ca3(0x2a9)](_0x5f397e,_0x299bbe);}}async[_0x1ff439(0x2da)](){const _0x1a6d28=_0x1ff439,_0x57a2ab=this['C'][_0x1a6d28(0x2c1)],_0xdf5ff0=this['C'][_0x1a6d28(0x24a)],_0x2c4a26=_0x211223[_0x1a6d28(0x344)](this[_0x1a6d28(0x305)],this['C']['src'],this[_0x1a6d28(0x24b)]['adminUserPath'],_0x57a2ab),_0x3e29ec=await this[_0x1a6d28(0x25b)](_0x2c4a26,null);for(const _0x5da91e of _0x3e29ec){const _0x5cdebd=_0x211223[_0x1a6d28(0x344)](_0x2c4a26,_0x5da91e,_0x5da91e+'.yaml');if(!this[_0x1a6d28(0x296)](_0x5cdebd))continue;const _0x1cf7b8=await this[_0x1a6d28(0x30e)](_0x5cdebd,{'encoding':_0x1a6d28(0x252)}),_0xd4bb8f=await this['parseYaml'](_0x1cf7b8),_0x1f00d5=_0x211223[_0x1a6d28(0x344)](this[_0x1a6d28(0x2ba)],this['C'][_0x1a6d28(0x33a)],_0xdf5ff0);await this[_0x1a6d28(0x21e)](_0x1f00d5,{'recursive':!0x0});const _0x4072ff=_0x211223[_0x1a6d28(0x344)](_0x2c4a26,_0x5da91e,_0xd4bb8f['name']+_0x1a6d28(0x308)),_0x28a345=_0x211223['join'](_0x1f00d5,_0xd4bb8f['name']+_0x1a6d28(0x308));await this[_0x1a6d28(0x2a9)](_0x4072ff,_0x28a345);}}async[_0x1ff439(0x2dc)](){const _0x27f085=_0x1ff439,_0x22a24b=this['C'][_0x27f085(0x1ec)],_0x421842=this['C'][_0x27f085(0x332)],_0x87d671=_0x211223['join'](this['appRoot'],this['C'][_0x27f085(0x33a)],this[_0x27f085(0x24b)][_0x27f085(0x1e9)],_0x22a24b),_0x14d236=await this[_0x27f085(0x25b)](_0x87d671,null);for(const _0xe0ff15 of _0x14d236){const _0x26db54=_0x211223[_0x27f085(0x344)](_0x87d671,_0xe0ff15,_0xe0ff15+_0x27f085(0x2e3));if(!this[_0x27f085(0x296)](_0x26db54))continue;const _0x443889=await this[_0x27f085(0x30e)](_0x26db54,{'encoding':_0x27f085(0x252)}),_0x13bbfb=await this[_0x27f085(0x222)](_0x443889),_0x431bd4=_0x211223[_0x27f085(0x344)](this[_0x27f085(0x2ba)],this['C']['src'],_0x421842);await this[_0x27f085(0x21e)](_0x431bd4,{'recursive':!0x0});const _0x1783cc=_0x211223[_0x27f085(0x344)](_0x87d671,_0xe0ff15,_0x13bbfb[_0x27f085(0x292)]+_0x27f085(0x308)),_0x5b1752=_0x211223[_0x27f085(0x344)](_0x431bd4,_0x13bbfb[_0x27f085(0x292)]+_0x27f085(0x308));await this['fsLink'](_0x1783cc,_0x5b1752);}}async[_0x1ff439(0x28a)](){const _0x474f61=_0x1ff439,_0x32da0a=this['C']['ThirdPartyApiReadF'],_0x1bd774=this['C'][_0x474f61(0x32b)],_0x5964f2=_0x211223[_0x474f61(0x344)](this[_0x474f61(0x305)],this['C'][_0x474f61(0x33a)],this[_0x474f61(0x24b)]['adminUserPath'],_0x32da0a);if(!this[_0x474f61(0x296)](_0x5964f2))return;const _0xb3f8=await this['readDirCustom'](_0x5964f2,null);for(const _0x253c80 of _0xb3f8){const _0x1b6bb9=_0x211223['join'](_0x5964f2,_0x253c80,this['C']['apis']),_0x4e0fec=await this[_0x474f61(0x25b)](_0x1b6bb9,null);for(const _0x572e3b of _0x4e0fec){const _0xb6bdc1=_0x211223[_0x474f61(0x344)](_0x1b6bb9,_0x572e3b,_0x572e3b+_0x474f61(0x2e3));if(!this[_0x474f61(0x296)](_0xb6bdc1))continue;const _0x5de66e=await this['fsReadFile'](_0xb6bdc1,{'encoding':_0x474f61(0x252)}),_0x494e55=await this[_0x474f61(0x222)](_0x5de66e);for(const _0x1efbec of _0x494e55[_0x474f61(0x1ed)]||[])if(!0x0===_0x1efbec[_0x474f61(0x290)]){const _0x2cf017=_0x211223['join'](_0x1b6bb9,_0x572e3b,this['C']['versions'],_0x1efbec[_0x474f61(0x328)]),_0x39fbdb=_0x211223[_0x474f61(0x344)](_0x2cf017,_0x1efbec[_0x474f61(0x292)]+'.ts'),_0x4083c9=_0x211223['join'](this[_0x474f61(0x2ba)],this['C']['src'],_0x1bd774,_0x253c80,_0x494e55[_0x474f61(0x258)],_0x494e55[_0x474f61(0x292)]+'.ts');await this['fsMkDir'](_0x211223[_0x474f61(0x230)](_0x4083c9),{'recursive':!0x0}),await this['fsLink'](_0x39fbdb,_0x4083c9);const _0x2d3884=_0x211223['join'](_0x1b6bb9,_0x572e3b,_0x572e3b+_0x474f61(0x2c0)),_0x3918da=_0x211223['join'](this[_0x474f61(0x2ba)],this['C'][_0x474f61(0x33a)],_0x1bd774,_0x253c80,_0x494e55['path'],_0x494e55[_0x474f61(0x292)]+_0x474f61(0x2c0));await this[_0x474f61(0x2a9)](_0x2d3884,_0x3918da);for(const _0xb13c3f of _0x1efbec[_0x474f61(0x243)]){const _0x5759e7=_0x211223[_0x474f61(0x344)](_0x2cf017,this['C'][_0x474f61(0x243)],_0xb13c3f[_0x474f61(0x292)]+'.ts'),_0x15d9b4=_0x211223[_0x474f61(0x344)](this['projectDirectory'],this['C'][_0x474f61(0x33a)],_0x1bd774,_0x253c80,_0x494e55['path'],this['C'][_0x474f61(0x243)],_0xb13c3f[_0x474f61(0x292)]+'.ts');await this[_0x474f61(0x21e)](_0x211223[_0x474f61(0x230)](_0x15d9b4),{'recursive':!0x0}),await this[_0x474f61(0x2a9)](_0x5759e7,_0x15d9b4);}for(const _0x229f0b of _0x1efbec[_0x474f61(0x2aa)]){const _0x11ee2f=_0x211223[_0x474f61(0x344)](_0x2cf017,this['C'][_0x474f61(0x2aa)],_0x229f0b[_0x474f61(0x292)]+_0x474f61(0x308)),_0x4e2546=_0x211223[_0x474f61(0x344)](this[_0x474f61(0x2ba)],this['C'][_0x474f61(0x33a)],_0x1bd774,_0x253c80,_0x494e55[_0x474f61(0x258)],this['C'][_0x474f61(0x2aa)],_0x229f0b['name']+_0x474f61(0x308));await this[_0x474f61(0x21e)](_0x211223[_0x474f61(0x230)](_0x4e2546),{'recursive':!0x0}),await this['fsLink'](_0x11ee2f,_0x4e2546);}}}}}async[_0x1ff439(0x255)](){const _0x1fe367=_0x1ff439,_0x59def0=this['C'][_0x1fe367(0x245)],_0x2606bd=this['C'][_0x1fe367(0x24d)],_0x182abd=_0x211223[_0x1fe367(0x344)](this[_0x1fe367(0x305)],this['C'][_0x1fe367(0x33a)],this['config'][_0x1fe367(0x1e9)],_0x59def0),_0x5c790d=await this['readDirCustom'](_0x182abd,null);for(const _0x373f58 of _0x5c790d){const _0xfc1c3c=_0x211223[_0x1fe367(0x344)](_0x182abd,_0x373f58,_0x373f58+_0x1fe367(0x2e3));if(!this[_0x1fe367(0x296)](_0xfc1c3c))continue;const _0x2a5f24=await this[_0x1fe367(0x30e)](_0xfc1c3c,{'encoding':_0x1fe367(0x252)}),_0x20aba9=await this[_0x1fe367(0x222)](_0x2a5f24),_0x539a3d=_0x211223['join'](_0x182abd,_0x373f58,this['C'][_0x1fe367(0x201)]);for(const _0x3ebeec of _0x20aba9[_0x1fe367(0x214)])for(const _0x205ca2 of _0x3ebeec[_0x1fe367(0x1ed)]||[])if(!0x0===_0x205ca2['isActive']){const _0x32491c=_0x211223[_0x1fe367(0x344)](_0x539a3d,_0x3ebeec['name'],this['C'][_0x1fe367(0x1ed)],_0x205ca2[_0x1fe367(0x328)],_0x205ca2[_0x1fe367(0x292)]+_0x1fe367(0x308)),_0x43bfb6=_0x211223['join'](this[_0x1fe367(0x2ba)],this['C']['src'],_0x2606bd,_0x20aba9[_0x1fe367(0x292)],_0x3ebeec[_0x1fe367(0x292)]+_0x1fe367(0x308));await this['fsMkDir'](_0x211223[_0x1fe367(0x230)](_0x43bfb6),{'recursive':!0x0}),await this[_0x1fe367(0x2a9)](_0x32491c,_0x43bfb6);}}}async['copyInstanceApiHooksToAnotherDir'](){const _0x2f8eca=_0x1ff439,_0x5371f2=this['C'][_0x2f8eca(0x21d)],_0x5e6471=this['C'][_0x2f8eca(0x321)],_0x48168a=_0x211223[_0x2f8eca(0x344)](this[_0x2f8eca(0x305)],this['C'][_0x2f8eca(0x33a)],this[_0x2f8eca(0x24b)][_0x2f8eca(0x1e9)],_0x5371f2),_0x390e52=await this['readDirCustom'](_0x48168a,null);for(const _0x1b1649 of _0x390e52){const _0x4c198c=_0x211223[_0x2f8eca(0x344)](_0x48168a,_0x1b1649,_0x1b1649+_0x2f8eca(0x2e3));if(!this[_0x2f8eca(0x296)](_0x4c198c))continue;const _0x43836d=await this[_0x2f8eca(0x30e)](_0x4c198c,{'encoding':'utf8'}),_0x572054=await this['parseYaml'](_0x43836d),_0x5906dc=_0x211223[_0x2f8eca(0x344)](_0x48168a,_0x1b1649),_0x41b2c6=_0x572054[_0x2f8eca(0x302)]+'/'+_0x572054[_0x2f8eca(0x1ff)]+'/'+_0x572054[_0x2f8eca(0x33e)]+'/'+_0x572054[_0x2f8eca(0x1f1)][_0x2f8eca(0x314)]();for(const _0x370791 of _0x572054[_0x2f8eca(0x243)]){const _0x37ae19=_0x211223[_0x2f8eca(0x344)](_0x5906dc,this['C']['preHooks'],_0x370791[_0x2f8eca(0x292)]+_0x2f8eca(0x308)),_0x3c6bef=_0x211223[_0x2f8eca(0x344)](this[_0x2f8eca(0x2ba)],this['C'][_0x2f8eca(0x33a)],_0x5e6471,_0x41b2c6,this['C'][_0x2f8eca(0x243)],_0x370791[_0x2f8eca(0x292)]+_0x2f8eca(0x308));await this['fsMkDir'](_0x211223[_0x2f8eca(0x230)](_0x3c6bef),{'recursive':!0x0}),await this[_0x2f8eca(0x2a9)](_0x37ae19,_0x3c6bef);}for(const _0x26b034 of _0x572054[_0x2f8eca(0x2aa)]){const _0x1649de=_0x211223['join'](_0x5906dc,this['C']['postHooks'],_0x26b034['name']+_0x2f8eca(0x308)),_0x1ce538=_0x211223[_0x2f8eca(0x344)](this['projectDirectory'],this['C'][_0x2f8eca(0x33a)],_0x5e6471,_0x41b2c6,this['C'][_0x2f8eca(0x2aa)],_0x26b034[_0x2f8eca(0x292)]+_0x2f8eca(0x308));await this[_0x2f8eca(0x21e)](_0x211223[_0x2f8eca(0x230)](_0x1ce538),{'recursive':!0x0}),await this[_0x2f8eca(0x2a9)](_0x1649de,_0x1ce538);}}}async['copySystemApiHooksToAnotherDir'](){const _0x32e596=_0x1ff439,_0x527bd2=this['C'][_0x32e596(0x30c)],_0x175d7b=this['C'][_0x32e596(0x202)],_0x4bfc6b=_0x211223['join'](this[_0x32e596(0x305)],this['C']['src'],this['config'][_0x32e596(0x1e9)],_0x527bd2),_0x2bcd7=await this[_0x32e596(0x25b)](_0x4bfc6b,null);for(const _0x242c1d of _0x2bcd7){const _0x5c8008=_0x211223[_0x32e596(0x344)](_0x4bfc6b,_0x242c1d,_0x242c1d+_0x32e596(0x2e3));if(!this['fsExistsSync'](_0x5c8008))continue;const _0x139c61=await this['fsReadFile'](_0x5c8008,{'encoding':_0x32e596(0x252)}),_0x1e7b4e=await this[_0x32e596(0x222)](_0x139c61),_0xe2d956=_0x211223['join'](_0x4bfc6b,_0x242c1d),_0x2bbe24=_0x1e7b4e[_0x32e596(0x1f1)]['toLowerCase']();for(const _0x54527e of _0x1e7b4e[_0x32e596(0x243)]){const _0x4ead8e=_0x211223[_0x32e596(0x344)](_0xe2d956,this['C'][_0x32e596(0x243)],_0x54527e['name']+_0x32e596(0x308)),_0x291d1c=_0x211223['join'](this['projectDirectory'],this['C'][_0x32e596(0x33a)],_0x175d7b,_0x2bbe24,this['C'][_0x32e596(0x243)],_0x54527e['name']+_0x32e596(0x308));await this['fsMkDir'](_0x211223[_0x32e596(0x230)](_0x291d1c),{'recursive':!0x0}),await this[_0x32e596(0x2a9)](_0x4ead8e,_0x291d1c);}for(const _0x3b5877 of _0x1e7b4e[_0x32e596(0x2aa)]){const _0x16aa47=_0x211223[_0x32e596(0x344)](_0xe2d956,this['C'][_0x32e596(0x2aa)],_0x3b5877['name']+_0x32e596(0x308)),_0x153571=_0x211223[_0x32e596(0x344)](this['projectDirectory'],this['C'][_0x32e596(0x33a)],_0x175d7b,_0x2bbe24,this['C'][_0x32e596(0x2aa)],_0x3b5877[_0x32e596(0x292)]+_0x32e596(0x308));await this[_0x32e596(0x21e)](_0x211223[_0x32e596(0x230)](_0x153571),{'recursive':!0x0}),await this['fsLink'](_0x16aa47,_0x153571);}}}async[_0x1ff439(0x20a)](){const _0xc28b32=_0x1ff439,_0x354998=this['C'][_0xc28b32(0x284)],_0x1c118f=this['C'][_0xc28b32(0x1f8)],_0x3ab874=_0x211223['join'](this[_0xc28b32(0x305)],this['C'][_0xc28b32(0x33a)],this[_0xc28b32(0x24b)][_0xc28b32(0x1e9)],_0x354998),_0x518a2c=await this[_0xc28b32(0x25b)](_0x3ab874,null);for(const _0xc7001d of _0x518a2c){const _0xc3ae8e=_0x211223[_0xc28b32(0x344)](_0x3ab874,_0xc7001d,_0xc7001d+_0xc28b32(0x2e3));if(!this[_0xc28b32(0x296)](_0xc3ae8e))continue;const _0x315d20=await this[_0xc28b32(0x30e)](_0xc3ae8e,{'encoding':_0xc28b32(0x252)}),_0x51d230=await this[_0xc28b32(0x222)](_0x315d20);for(const _0x4ccac0 of _0x51d230[_0xc28b32(0x1ed)]||[])if(!0x0===_0x4ccac0[_0xc28b32(0x290)]){const _0xa30abb=_0x211223['join'](_0x3ab874,_0xc7001d,this['C'][_0xc28b32(0x1ed)],_0x4ccac0[_0xc28b32(0x328)],_0x4ccac0[_0xc28b32(0x292)]+_0xc28b32(0x308));let _0x34877c='',_0x37eba4='';_0x51d230[_0xc28b32(0x23d)]===_0xa2cd42[_0xc28b32(0x1f5)]?(_0x37eba4=_0xc28b32(0x22a),_0x34877c=_0x51d230[_0xc28b32(0x302)]+'/'+_0x51d230[_0xc28b32(0x1ff)]+'/'+_0x51d230[_0xc28b32(0x33e)]+'/'+_0x51d230[_0xc28b32(0x265)][_0xc28b32(0x314)]()):_0x51d230['apiCategory']===_0xa2cd42['THIRD_PARTY_APIS']?(_0x37eba4=_0xc28b32(0x24f),_0x34877c=_0x51d230[_0xc28b32(0x260)]+'/'+_0x51d230[_0xc28b32(0x2a5)]):_0x51d230[_0xc28b32(0x23d)]===_0xa2cd42['CUSTOM_APIS']?(_0x37eba4=_0xc28b32(0x2ec),_0x34877c=_0x51d230[_0xc28b32(0x277)]):_0x51d230[_0xc28b32(0x23d)]===_0xa2cd42[_0xc28b32(0x1ef)]?(_0x37eba4=_0xc28b32(0x2d5),_0x34877c=_0x51d230['systemApiName'][_0xc28b32(0x314)]()):_0x51d230['apiCategory']===_0xa2cd42[_0xc28b32(0x249)]&&(_0x37eba4=_0xc28b32(0x2cf),_0x34877c=_0x51d230['name']);const _0x50bab2=_0x211223[_0xc28b32(0x344)](this[_0xc28b32(0x2ba)],this['C'][_0xc28b32(0x33a)],_0x1c118f,_0x37eba4,_0x34877c+_0xc28b32(0x308));await this[_0xc28b32(0x21e)](_0x211223[_0xc28b32(0x230)](_0x50bab2),{'recursive':!0x0}),await this[_0xc28b32(0x2a9)](_0xa30abb,_0x50bab2);}}}async[_0x1ff439(0x27d)](){const _0x32c902=_0x1ff439,_0x8e3cc6=this['C'][_0x32c902(0x34c)],_0x1cdee2=this['C'][_0x32c902(0x299)],_0x5ca716=_0x211223[_0x32c902(0x344)](this['appRoot'],this['C'][_0x32c902(0x33a)],this[_0x32c902(0x24b)]['adminUserPath'],_0x8e3cc6),_0x431ee0=await this[_0x32c902(0x25b)](_0x5ca716,null);for(const _0x1d1bb2 of _0x431ee0){const _0x2c9275=_0x211223[_0x32c902(0x344)](_0x5ca716,_0x1d1bb2,_0x1d1bb2+'.yaml');if(!this[_0x32c902(0x296)](_0x2c9275))continue;const _0x2478eb=await this['fsReadFile'](_0x2c9275,{'encoding':_0x32c902(0x252)}),_0x45cd16=await this[_0x32c902(0x222)](_0x2478eb),_0x27385d=_0x211223['join'](_0x5ca716,_0x1d1bb2),_0x5ccc00=_0x45cd16[_0x32c902(0x302)]+'/'+_0x45cd16['databaseName']+'/'+_0x45cd16['collectionName'];for(const _0x4d2483 of _0x45cd16['preHooks']){const _0x4b1c95=_0x211223[_0x32c902(0x344)](_0x27385d,this['C'][_0x32c902(0x243)],_0x4d2483['name']+_0x32c902(0x308)),_0x48ee99=_0x211223[_0x32c902(0x344)](this[_0x32c902(0x2ba)],this['C'][_0x32c902(0x33a)],_0x1cdee2,_0x5ccc00,this['C'][_0x32c902(0x243)],_0x4d2483['name']+_0x32c902(0x308));await this[_0x32c902(0x21e)](_0x211223[_0x32c902(0x230)](_0x48ee99),{'recursive':!0x0}),await this['fsLink'](_0x4b1c95,_0x48ee99);}for(const _0x3f4e51 of _0x45cd16[_0x32c902(0x2aa)]){const _0x1d1f11=_0x211223['join'](_0x27385d,this['C'][_0x32c902(0x2aa)],_0x3f4e51['name']+_0x32c902(0x308)),_0x588d2f=_0x211223[_0x32c902(0x344)](this[_0x32c902(0x2ba)],this['C']['src'],_0x1cdee2,_0x5ccc00,this['C'][_0x32c902(0x2aa)],_0x3f4e51[_0x32c902(0x292)]+_0x32c902(0x308));await this[_0x32c902(0x21e)](_0x211223[_0x32c902(0x230)](_0x588d2f),{'recursive':!0x0}),await this[_0x32c902(0x2a9)](_0x1d1f11,_0x588d2f);}}}async['copyDatabaseHooksToAnotherDir'](){const _0x1ea706=_0x1ff439,_0x510299=this['C'][_0x1ea706(0x2b4)],_0x549b3b=this['C'][_0x1ea706(0x2de)],_0x5b9592=_0x211223[_0x1ea706(0x344)](this[_0x1ea706(0x305)],this['C']['src'],this[_0x1ea706(0x24b)]['adminUserPath'],_0x510299),_0x5653dc=await this[_0x1ea706(0x25b)](_0x5b9592,null);for(const _0x4fab02 of _0x5653dc){const _0x5154ee=_0x211223[_0x1ea706(0x344)](_0x5b9592,_0x4fab02,_0x4fab02+_0x1ea706(0x2e3));if(!this[_0x1ea706(0x296)](_0x5154ee))continue;const _0x205d66=await this[_0x1ea706(0x30e)](_0x5154ee,{'encoding':'utf8'}),_0x1eefd3=await this[_0x1ea706(0x222)](_0x205d66),_0x374fcf=_0x211223[_0x1ea706(0x344)](_0x5b9592,_0x4fab02),_0x4ed4cb=_0x1eefd3[_0x1ea706(0x302)]+'/'+_0x1eefd3[_0x1ea706(0x1ff)];for(const _0x3cb3c6 of _0x1eefd3[_0x1ea706(0x243)]){const _0x433d96=_0x211223[_0x1ea706(0x344)](_0x374fcf,this['C'][_0x1ea706(0x243)],_0x3cb3c6[_0x1ea706(0x292)]+'.ts'),_0x483873=_0x211223[_0x1ea706(0x344)](this[_0x1ea706(0x2ba)],this['C'][_0x1ea706(0x33a)],_0x549b3b,_0x4ed4cb,this['C'][_0x1ea706(0x243)],_0x3cb3c6[_0x1ea706(0x292)]+'.ts');await this[_0x1ea706(0x21e)](_0x211223['dirname'](_0x483873),{'recursive':!0x0}),await this[_0x1ea706(0x2a9)](_0x433d96,_0x483873);}for(const _0x2eaaec of _0x1eefd3[_0x1ea706(0x2aa)]){const _0xc63fd7=_0x211223[_0x1ea706(0x344)](_0x374fcf,this['C'][_0x1ea706(0x2aa)],_0x2eaaec[_0x1ea706(0x292)]+_0x1ea706(0x308)),_0x14296a=_0x211223['join'](this['projectDirectory'],this['C'][_0x1ea706(0x33a)],_0x549b3b,_0x4ed4cb,this['C']['postHooks'],_0x2eaaec['name']+_0x1ea706(0x308));await this['fsMkDir'](_0x211223[_0x1ea706(0x230)](_0x14296a),{'recursive':!0x0}),await this[_0x1ea706(0x2a9)](_0xc63fd7,_0x14296a);}}}async[_0x1ff439(0x307)](){const _0x447328=_0x1ff439,_0x5e89eb=this['C'][_0x447328(0x1fc)],_0x3dc3ad=this['C']['InstanceHooksWriteF'],_0x1d1394=_0x211223[_0x447328(0x344)](this['appRoot'],this['C'][_0x447328(0x33a)],this[_0x447328(0x24b)][_0x447328(0x1e9)],_0x5e89eb),_0x44bb40=await this[_0x447328(0x25b)](_0x1d1394,null);for(const _0x2fe5fc of _0x44bb40){const _0x1a45d6=_0x211223[_0x447328(0x344)](_0x1d1394,_0x2fe5fc,_0x2fe5fc+_0x447328(0x2e3));if(!this['fsExistsSync'](_0x1a45d6))continue;const _0x15c3ca=await this[_0x447328(0x30e)](_0x1a45d6,{'encoding':_0x447328(0x252)}),_0x4aa04e=await this[_0x447328(0x222)](_0x15c3ca),_0x558c71=_0x211223['join'](_0x1d1394,_0x2fe5fc),_0x59953e=''+_0x4aa04e[_0x447328(0x302)];for(const _0x4baac1 of _0x4aa04e['preHooks']){const _0x2bfdbc=_0x211223[_0x447328(0x344)](_0x558c71,this['C'][_0x447328(0x243)],_0x4baac1[_0x447328(0x292)]+'.ts'),_0x10d8ac=_0x211223[_0x447328(0x344)](this[_0x447328(0x2ba)],this['C'][_0x447328(0x33a)],_0x3dc3ad,_0x59953e,this['C'][_0x447328(0x243)],_0x4baac1[_0x447328(0x292)]+_0x447328(0x308));await this['fsMkDir'](_0x211223[_0x447328(0x230)](_0x10d8ac),{'recursive':!0x0}),await this['fsLink'](_0x2bfdbc,_0x10d8ac);}for(const _0x3e977f of _0x4aa04e[_0x447328(0x2aa)]){const _0x3318e1=_0x211223['join'](_0x558c71,this['C']['postHooks'],_0x3e977f[_0x447328(0x292)]+_0x447328(0x308)),_0x9c6a88=_0x211223['join'](this[_0x447328(0x2ba)],this['C']['src'],_0x3dc3ad,_0x59953e,this['C'][_0x447328(0x2aa)],_0x3e977f[_0x447328(0x292)]+'.ts');await this['fsMkDir'](_0x211223[_0x447328(0x230)](_0x9c6a88),{'recursive':!0x0}),await this[_0x447328(0x2a9)](_0x3318e1,_0x9c6a88);}}}async[_0x1ff439(0x2b6)](_0x1b8d82,_0x5585cb){return new Promise((_0x3e75ce,_0x5029bd)=>{const _0x2933b1=a0_0x517b,_0x24bedb=(0x0,_0x5dfc65[_0x2933b1(0x2c3)])(_0x1b8d82,_0x5585cb,{'shell':!0x0,'cwd':this[_0x2933b1(0x305)]});_0x24bedb['on'](_0x2933b1(0x2a7),_0x3069a0=>{const _0x502eb9=_0x2933b1;if(0x0===_0x3069a0)setTimeout(_0x3e75ce,0x3e8);else{const _0x336378='\x27'+_0x1b8d82+'\x20'+_0x5585cb['join']('\x20')+_0x502eb9(0x324)+_0x3069a0+'.';_0x5029bd(new Error(_0x336378));}}),_0x24bedb['on'](_0x2933b1(0x303),_0x6c5f0a=>{const _0xce70af=_0x2933b1;console[_0xce70af(0x303)](_0xce70af(0x22e)+_0x6c5f0a['message']),_0x5029bd(_0x6c5f0a);});});}async[_0x1ff439(0x222)](_0x352f50){const _0x50a6bd=_0x1ff439;return(await Promise[_0x50a6bd(0x310)]()['then'](()=>_0x220365(0x59)))[_0x50a6bd(0x266)](_0x352f50);}async[_0x1ff439(0x28b)](){const _0x3da977=_0x1ff439;this[_0x3da977(0x32d)]||await this[_0x3da977(0x216)]();const _0x2933f7=await Promise[_0x3da977(0x310)]()[_0x3da977(0x288)](()=>_0x220365(0xe7)),_0x1c09c6=_0x211223[_0x3da977(0x344)](this[_0x3da977(0x305)]),_0x585fcb=_0x211223[_0x3da977(0x344)](this[_0x3da977(0x305)],this['C'][_0x3da977(0x33a)]),_0x23f360=_0x3debda=>{const _0x66dfbf=_0x3da977,_0x4ea03a=_0x211223[_0x66dfbf(0x2f9)](_0x1c09c6,_0x3debda);return!(_0x4ea03a&&!_0x4ea03a[_0x66dfbf(0x26b)]('.')&&!_0x4ea03a[_0x66dfbf(0x2ed)]('~')&&_0x4ea03a[_0x66dfbf(0x26b)](this['C'][_0x66dfbf(0x33a)]));},_0x1b00ec=_0x2933f7['watch'](_0x585fcb,{'persistent':!0x0,'ignoreInitial':!0x0,'depth':0x1/0x0,'awaitWriteFinish':{'stabilityThreshold':0xc8,'pollInterval':0x64}}),_0x1eea6c=async(_0x109494,_0x5e2429)=>{const _0xc96790=_0x3da977;try{if(this[_0xc96790(0x2fe)])return;const _0x13b4e9=_0x211223[_0xc96790(0x2f9)](_0x1c09c6,_0x5e2429);if(!_0x5e2429||_0x23f360(_0x5e2429))return;console[_0xc96790(0x1f7)](_0xc96790(0x2c2)+this['getCurrentTime']()+_0xc96790(0x1e7)+_0x109494+_0xc96790(0x1f4)+_0x13b4e9);const _0x929f06=this[_0xc96790(0x2af)](_0x13b4e9),_0x43fdce=this[_0xc96790(0x1fa)](_0x929f06,_0x13b4e9);if(!_0x43fdce)return;let _0x109805,_0x4fed75=!0x1;if(this[_0xc96790(0x296)](_0x43fdce)){if(this['fsExistsSync'](_0x211223['join'](_0x1c09c6,_0x13b4e9))){const _0x3effec=_0x211223[_0xc96790(0x344)](_0x211223[_0xc96790(0x2e6)]+this['C'][_0xc96790(0x340)],_0x43fdce);_0x109805=await this['serializeFolderWithBinary'](_0x43fdce,_0x3effec),this[_0xc96790(0x2f8)]({'objType':_0x22dd49[_0xc96790(0x278)],'localClientWSReqRes':{'eventType':_0x35ef1d[_0xc96790(0x20c)],'folderChangedOnLocalSystem':_0x109805,'category':_0x929f06,'shouldReplaceAllItemsOfCategory':_0x4fed75}});}else this[_0xc96790(0x26e)]();}else{const _0x4d92e1=this[_0xc96790(0x233)](_0x929f06,_0x13b4e9),_0x28b0f9=_0x211223[_0xc96790(0x344)](_0x211223[_0xc96790(0x2e6)]+this['C'][_0xc96790(0x340)],_0x4d92e1);_0x109805=await this[_0xc96790(0x33b)](_0x4d92e1,_0x28b0f9),_0x4fed75=!0x0,this[_0xc96790(0x326)](_0x109805,_0x929f06,_0x4fed75);}}catch(_0x27150c){console['error'](_0xc96790(0x2a8),_0x27150c);}};_0x1b00ec['on']('add',_0x35956e=>_0x1eea6c(_0x3da977(0x297),_0x35956e))['on']('change',_0x5bcf3a=>_0x1eea6c(_0x3da977(0x261),_0x5bcf3a))['on']('unlink',_0x4c7fc5=>_0x1eea6c(_0x3da977(0x28c),_0x4c7fc5))['on']('addDir',_0x629b15=>_0x1eea6c('addDir',_0x629b15))['on'](_0x3da977(0x238),_0x3e487f=>_0x1eea6c('unlinkDir',_0x3e487f))['on'](_0x3da977(0x303),_0x49d117=>console[_0x3da977(0x303)](_0x3da977(0x2fa),_0x49d117)),this[_0x3da977(0x1e8)]=_0x1b00ec,0x1===this[_0x3da977(0x1f3)]&&(console[_0x3da977(0x1f7)]('✅\x20Local\x20client\x20started...'),console[_0x3da977(0x1f7)](this[_0x3da977(0x280)]+_0x3da977(0x2b3)+this[_0x3da977(0x2ba)]+this[_0x3da977(0x217)]));}['getCurrentTime'](){const _0x5a7167=_0x1ff439,_0x5b13ff=new Date();return String(_0x5b13ff['getHours']())[_0x5a7167(0x2c6)](0x2,'0')+':'+String(_0x5b13ff['getMinutes']())[_0x5a7167(0x2c6)](0x2,'0')+':'+String(_0x5b13ff[_0x5a7167(0x2e4)]())[_0x5a7167(0x2c6)](0x2,'0');}[_0x1ff439(0x335)](_0xf0328b,_0x42aa66,_0x30b3e0){const _0x666ee0=_0x1ff439;this[_0x666ee0(0x2f8)]({'objType':_0x22dd49[_0x666ee0(0x278)],'localClientWSReqRes':{'eventType':_0x35ef1d['LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM'],'folderChangedOnLocalSystem':_0xf0328b,'category':_0x42aa66,'shouldReplaceAllItemsOfCategory':_0x30b3e0}});}[_0x1ff439(0x30f)](_0x8efb90,_0x5c2e5d){let _0x2ad2bd=null;return function(..._0x4bcac4){clearTimeout(_0x2ad2bd),_0x2ad2bd=setTimeout(()=>{const _0x4a9bd9=a0_0x517b;_0x8efb90[_0x4a9bd9(0x2c8)](this,_0x4bcac4);},_0x5c2e5d);};}[_0x1ff439(0x2af)](_0x278e5f){const _0x3cb1a1=_0x1ff439,_0x211b8e=_0x211223[_0x3cb1a1(0x344)](this['C'][_0x3cb1a1(0x33a)],this[_0x3cb1a1(0x24b)][_0x3cb1a1(0x1e9)]);if(!_0x278e5f[_0x3cb1a1(0x26b)](_0x211b8e))return;const _0x4e8054=_0x278e5f[_0x3cb1a1(0x2e9)](_0x211223[_0x3cb1a1(0x2e6)])['filter'](_0x4b65f2=>!!_0x4b65f2)[0x2];for(const _0x38b21d in _0x1c059d)if(_0x1c059d[_0x38b21d]===_0x4e8054)return _0x4e8054;}['getChangedFolder'](_0x24acfe,_0x2226a5){const _0x2c3f6c=_0x1ff439,_0x5cdecf=_0x2226a5[_0x2c3f6c(0x2e9)](_0x211223[_0x2c3f6c(0x2e6)]);let _0x693895='';return _0x693895=_0x24acfe===_0x1c059d[_0x2c3f6c(0x2ce)]?_0x5cdecf[_0x2c3f6c(0x22b)](0x0,0x6)['join'](_0x211223[_0x2c3f6c(0x2e6)]):_0x5cdecf[_0x2c3f6c(0x22b)](0x0,0x4)['join'](_0x211223['sep']),_0x693895;}['getChangedFolderForDeleted'](_0x1a4e10,_0x130c17){const _0x554bbf=_0x1ff439;return _0x130c17[_0x554bbf(0x2e9)](_0x211223[_0x554bbf(0x2e6)])[_0x554bbf(0x22b)](0x0,0x3)[_0x554bbf(0x344)](_0x211223[_0x554bbf(0x2e6)]);}async[_0x1ff439(0x33b)](_0x37b256,_0x3f2e5c){const _0x47efda={},_0x252c08=this;return await async function _0x179692(_0x39158e){const _0xe0698a=a0_0x517b,_0x4cf93b=await _0x252c08['readDirCustom'](_0x39158e,{'withFileTypes':!0x0});for(const _0x8e75ae of _0x4cf93b){const _0x3ed344=_0x211223[_0xe0698a(0x344)](_0x39158e,_0x8e75ae[_0xe0698a(0x292)]),_0x16f864=_0x211223['normalize'](_0x3ed344);if(_0x8e75ae[_0xe0698a(0x254)]())await _0x179692(_0x16f864);else{const _0x145974=_0x530c01[_0xe0698a(0x2ac)](_0x16f864),_0x2fc3b0=_0x211223['relative'](_0x37b256,_0x16f864),_0x33fd2b=_0x211223[_0xe0698a(0x344)](_0x3f2e5c,_0x2fc3b0)[_0xe0698a(0x2e9)](_0x211223[_0xe0698a(0x2e6)])[_0xe0698a(0x344)](_0x211223['posix'][_0xe0698a(0x2e6)]);_0x47efda[_0x33fd2b]={'encoding':_0xe0698a(0x2cb),'content':_0x145974[_0xe0698a(0x263)]('base64')};}}}(_0x37b256),_0x47efda;}[_0x1ff439(0x2f8)](_0x476e51){const _0x248a74=_0x1ff439;try{this['ws'][_0x248a74(0x2be)](JSON[_0x248a74(0x2ee)](_0x476e51));}catch(_0x191b77){console[_0x248a74(0x1f7)](_0x191b77);}}async['connectToServerViaWS'](){const _0x4a1f6c=_0x1ff439;console['log'](_0x4a1f6c(0x228));const _0xfdc922=this['config'][_0x4a1f6c(0x25f)],_0x467916=this[_0x4a1f6c(0x24b)]['adminUserPath'],_0x30976b=this['config']['webSocketURL'];this['ws']=new WebSocket(_0x30976b+_0x4a1f6c(0x23c)+_0xfdc922+_0x4a1f6c(0x330)+_0x467916);const _0x3f8996=[],_0x41cb67=()=>{const _0xa2cbdd=_0x4a1f6c;this[_0xa2cbdd(0x2f8)]({'objType':_0x22dd49[_0xa2cbdd(0x341)],'onEvents':[{'eventType':'LOCAL_CLIENT_SYNC_EVENTS'}]});};function _0x49114b(_0xa694c1){const _0xee4223=_0x4a1f6c;_0xa694c1[_0xee4223(0x224)]=null,_0xa694c1[_0xee4223(0x209)]=null,_0xa694c1['onerror']=null,_0xa694c1[_0xee4223(0x1eb)]=null,_0xa694c1['close']();}this['ws'][_0x4a1f6c(0x209)]=async _0x1698ea=>{const _0x432168=_0x4a1f6c,_0x4dd66c=JSON[_0x432168(0x2db)](_0x1698ea[_0x432168(0x220)]);if(_0x4dd66c[_0x432168(0x25a)]===_0x22dd49[_0x432168(0x2cd)]&&_0x4dd66c[_0x432168(0x2ff)]['connected'])_0x41cb67();else{if(_0x4dd66c[_0x432168(0x25a)]===_0x22dd49['REGISTER']){if(_0x4dd66c?.['response']?.[_0x432168(0x273)]?.['length']){for(const _0x3a3bb3 of _0x4dd66c[_0x432168(0x2ff)]['validOnEvents'])_0x3f8996['push'](_0x3a3bb3);console[_0x432168(0x1f7)](_0x432168(0x300)),this['watcher']||await this[_0x432168(0x28b)](),this['syncAllDataWithServer']();}else{const _0x251f46=_0x4dd66c[_0x432168(0x2ff)]?.[_0x432168(0x206)]?.[0x0]?.[_0x432168(0x1fb)]?.[0x0]?.[_0x432168(0x237)]||_0x432168(0x29f);console[_0x432168(0x1f7)]('❌\x20'+_0x251f46),await this['shutdownAndExit'](0x1);}}else await this[_0x432168(0x313)](_0x4dd66c);}},this['ws'][_0x4a1f6c(0x1eb)]=_0x522efc=>{const _0x1a615d=_0x4a1f6c;console[_0x1a615d(0x1f7)](_0x1a615d(0x23e)),_0x49114b(this['ws']),setTimeout(this[_0x1a615d(0x22f)][_0x1a615d(0x2e1)](this),0xbb8);},this['ws'][_0x4a1f6c(0x23a)]=()=>{const _0x1a7596=_0x4a1f6c;_0x49114b(this['ws']),setTimeout(this[_0x1a7596(0x22f)]['bind'](this),0xbb8);};}['syncAllDataWithServer'](){const _0x5cde14=_0x1ff439;this[_0x5cde14(0x2f8)]({'objType':_0x22dd49[_0x5cde14(0x278)],'localClientWSReqRes':{'eventType':_0x35ef1d[_0x5cde14(0x333)]}});}async[_0x1ff439(0x313)](_0x413d98){const _0x3e2dd8=_0x1ff439;if(this['EL']&&_0x413d98[_0x3e2dd8(0x2ff)][_0x3e2dd8(0x2f2)]!==_0x35ef1d[_0x3e2dd8(0x333)]&&console[_0x3e2dd8(0x1f7)](_0x413d98),_0x413d98[_0x3e2dd8(0x25a)]===_0x22dd49[_0x3e2dd8(0x278)]){if(_0x413d98[_0x3e2dd8(0x1fb)]?.['length'])return void console[_0x3e2dd8(0x303)](_0x413d98[_0x3e2dd8(0x1fb)]);if(_0x413d98[_0x3e2dd8(0x2ff)]['eventType']===_0x35ef1d['LC_SEND_ALL_DATA']){console['log'](_0x3e2dd8(0x2ef)+this[_0x3e2dd8(0x2eb)]()+']'),this[_0x3e2dd8(0x1f3)]++;try{this[_0x3e2dd8(0x1e8)]&&(await this[_0x3e2dd8(0x1e8)][_0x3e2dd8(0x2a7)](),this[_0x3e2dd8(0x1e8)]=null);}catch(_0x4618ee){console[_0x3e2dd8(0x31b)](_0x3e2dd8(0x301),_0x4618ee);}_0x530c01['rmSync'](_0x211223[_0x3e2dd8(0x344)](this[_0x3e2dd8(0x305)],this['C'][_0x3e2dd8(0x33a)]),{'recursive':!0x0,'force':!0x0}),this[_0x3e2dd8(0x2a3)](_0x211223[_0x3e2dd8(0x344)](this['appRoot'],this['C'][_0x3e2dd8(0x33a)]),{'recursive':!0x0});const _0xfa1d0b=_0x413d98[_0x3e2dd8(0x2ff)]['eventData'];await this[_0x3e2dd8(0x32c)](_0xfa1d0b,this['appRoot']);try{await this[_0x3e2dd8(0x28b)]();}catch(_0x33c00c){console[_0x3e2dd8(0x303)](_0x3e2dd8(0x281),_0x33c00c);}}else{if(_0x413d98[_0x3e2dd8(0x2ff)][_0x3e2dd8(0x2f2)]===_0x35ef1d[_0x3e2dd8(0x2ca)]){const _0x47e21e=_0x413d98[_0x3e2dd8(0x2ff)][_0x3e2dd8(0x257)];await this[_0x3e2dd8(0x32c)](_0x47e21e[_0x3e2dd8(0x220)],this[_0x3e2dd8(0x305)]);}}!0x0===this['nodeModulesInstalled']?await this['copyFilesToProjectDir'](!0x1):await this[_0x3e2dd8(0x31a)](!0x0);}}async[_0x1ff439(0x32c)](_0x34a75e,_0x18ef80){const _0x4bb6e7=_0x1ff439;this['skipWatchInputs']=!0x0;let _0x3ac77b=[];const _0x340b8c=async()=>{const _0x23f741=a0_0x517b;_0x3ac77b[_0x23f741(0x31e)]>0x0&&(await Promise[_0x23f741(0x240)](_0x3ac77b),_0x3ac77b=[]);};for(const [_0x2fdf5d,_0x584673]of Object['entries'](_0x34a75e)){if(!_0x2fdf5d[_0x4bb6e7(0x26b)]('/'+this['C'][_0x4bb6e7(0x340)]+'/'+this['C'][_0x4bb6e7(0x33a)]))continue;const _0x4f37cb=_0x584673,_0x35c563=_0x2fdf5d[_0x4bb6e7(0x2f0)]('/'+this['C'][_0x4bb6e7(0x340)],'');if(this['skipFileWritingForLocal'][_0x35c563])continue;const _0x18425f=_0x211223[_0x4bb6e7(0x344)](_0x18ef80,_0x35c563[_0x4bb6e7(0x2f0)](/^\//,'')),_0x1bb937=_0x211223[_0x4bb6e7(0x230)](_0x18425f),_0x16c6df=async()=>{const _0x51f314=_0x4bb6e7;await this[_0x51f314(0x21e)](_0x1bb937,{'recursive':!0x0}),await this[_0x51f314(0x259)](_0x18425f,_0x4f37cb[_0x51f314(0x29b)],{'encoding':_0x51f314(0x2cb)}),this['EL']&&console[_0x51f314(0x1f7)](_0x51f314(0x338)+this[_0x51f314(0x2eb)]()+_0x51f314(0x1f4)+_0x18425f[_0x51f314(0x2f0)](_0x18ef80,''));};_0x3ac77b[_0x4bb6e7(0x2ad)](_0x16c6df()),_0x3ac77b['length']>=0x3e8&&await _0x340b8c();}await _0x340b8c(),setTimeout(()=>{this['skipWatchInputs']=!0x1;},0x3e8);}[_0x1ff439(0x2e0)](_0x7cc02f){const _0x5026b2=_0x1ff439,_0x765de1=this[_0x5026b2(0x21b)](_0x7cc02f);if(!this[_0x5026b2(0x296)](_0x765de1))return!0x1;const _0x4b0d5e=_0x530c01[_0x5026b2(0x2b5)](_0x765de1);let _0x563841=!0x0;for(const _0x12eb4a of _0x4b0d5e){const _0x5db809=_0x211223['join'](_0x765de1,_0x12eb4a);_0x530c01[_0x5026b2(0x242)](_0x5db809)[_0x5026b2(0x254)]()&&this[_0x5026b2(0x2e0)](_0x5db809)||(_0x563841=!0x1);}return!!_0x563841&&(_0x530c01[_0x5026b2(0x315)](_0x765de1),!0x0);}async[_0x1ff439(0x25b)](_0x28314a,_0x2fbeaa){const _0x534c51=_0x1ff439;return this[_0x534c51(0x296)](_0x28314a)?await this['fsReadDir'](_0x28314a,_0x2fbeaa):[];}[_0x1ff439(0x21b)](_0x53c529){const _0x3d1bb2=_0x1ff439;return _0x211223[_0x3d1bb2(0x2a1)](_0x53c529);}[_0x1ff439(0x296)](_0x298bff){const _0x338897=_0x1ff439,_0x346253=_0x211223[_0x338897(0x2a1)](_0x298bff);return _0x530c01[_0x338897(0x2d4)](_0x346253);}async[_0x1ff439(0x2bc)](_0x1f54fe,_0x2e5223){const _0x219e2c=_0x1ff439,_0x353335=_0x211223[_0x219e2c(0x2a1)](_0x1f54fe);return await _0x530c01[_0x219e2c(0x291)][_0x219e2c(0x33d)](_0x353335,_0x2e5223);}async[_0x1ff439(0x21e)](_0x578407,_0x4bfa32){const _0x1766c8=_0x1ff439,_0x1a20c5=_0x211223[_0x1766c8(0x2a1)](_0x578407);return await _0x530c01['promises'][_0x1766c8(0x2d6)](_0x1a20c5,_0x4bfa32);}[_0x1ff439(0x2a3)](_0x5e33ac,_0x48e291){const _0x5d28fc=_0x1ff439,_0x1b9e6b=_0x211223[_0x5d28fc(0x2a1)](_0x5e33ac);return _0x530c01[_0x5d28fc(0x2e5)](_0x1b9e6b,_0x48e291);}async[_0x1ff439(0x30e)](_0x497a8e,_0x5180ba){const _0x41751c=_0x1ff439,_0x5e9cd1=_0x211223[_0x41751c(0x2a1)](_0x497a8e);return await _0x530c01['promises'][_0x41751c(0x317)](_0x5e9cd1,_0x5180ba);}async[_0x1ff439(0x259)](_0x24a728,_0x3b8193,_0x383d46){const _0x5d56b8=_0x1ff439,_0x3d31f7=_0x211223[_0x5d56b8(0x2a1)](_0x24a728);return await _0x530c01[_0x5d56b8(0x291)][_0x5d56b8(0x31d)](_0x3d31f7,_0x3b8193,_0x383d46);}async[_0x1ff439(0x2a9)](_0x365ef2,_0x4a5fbd){const _0x593ea7=_0x1ff439,_0x5b3fad=_0x211223[_0x593ea7(0x2a1)](_0x365ef2),_0x219260=_0x211223['normalize'](_0x4a5fbd);try{return await _0x530c01[_0x593ea7(0x291)][_0x593ea7(0x276)](_0x5b3fad,_0x219260);}catch(_0x2806b9){console[_0x593ea7(0x31b)](_0x2806b9);}}async[_0x1ff439(0x298)](_0x1273b2=0x0){const _0x58189c=_0x1ff439;if(!this['shuttingDown']){this[_0x58189c(0x2d9)]=!0x0;try{this[_0x58189c(0x1e8)]&&await this['watcher'][_0x58189c(0x2a7)]();}catch(_0x251f5e){console['error'](_0x58189c(0x2fc),_0x251f5e);}finally{setTimeout(()=>process[_0x58189c(0x1f9)](_0x1273b2),0xc8);}}}['addProcessHooks'](){const _0x2df094=_0x1ff439;process['on']('SIGINT',()=>{const _0x4a6943=a0_0x517b;console[_0x4a6943(0x1f7)]('SIGINT\x20received\x20—\x20shutting\x20down'),this[_0x4a6943(0x298)](0x0);}),process['on'](_0x2df094(0x304),()=>{const _0x11866d=_0x2df094;console[_0x11866d(0x1f7)](_0x11866d(0x336)),this[_0x11866d(0x298)](0x0);}),process['on']('beforeExit',_0xf5ab54=>{const _0x127bb3=_0x2df094;console[_0x127bb3(0x1f7)](_0x127bb3(0x2d2),_0xf5ab54);}),process['on']('exit',_0x377231=>{const _0x3e1732=_0x2df094;console[_0x3e1732(0x1f7)](_0x3e1732(0x1f9),_0x377231);}),process['on'](_0x2df094(0x285),_0x25f2b2=>{const _0x8ebc6b=_0x2df094;console[_0x8ebc6b(0x303)](_0x8ebc6b(0x285),_0x25f2b2),this[_0x8ebc6b(0x298)](0x1);}),process['on'](_0x2df094(0x289),_0x16d16b=>{const _0x504d0d=_0x2df094;console['error']('unhandledRejection',_0x16d16b),this[_0x504d0d(0x298)](0x1);});}}()[_0x1ff439(0x2d7)]()[_0x1ff439(0x288)](),function(_0x30f55a){const _0x13409a=_0x1ff439;_0x30f55a[_0x13409a(0x1f5)]='INSTANCES',_0x30f55a[_0x13409a(0x2ce)]=_0x13409a(0x2ce),_0x30f55a[_0x13409a(0x2d8)]=_0x13409a(0x2d8),_0x30f55a[_0x13409a(0x1ef)]=_0x13409a(0x1ef),_0x30f55a['WEB_SOCKET_EVENT']='WEB_SOCKET_EVENT';}(_0xa2cd42=_0x1161d4['OW']||(_0x1161d4['OW']={})),function(_0x3c51c3){const _0x5b0397=_0x1ff439;_0x3c51c3[_0x5b0397(0x341)]=_0x5b0397(0x341),_0x3c51c3[_0x5b0397(0x29d)]='UNREGISTER',_0x3c51c3[_0x5b0397(0x2cd)]=_0x5b0397(0x2cd),_0x3c51c3[_0x5b0397(0x211)]=_0x5b0397(0x211),_0x3c51c3[_0x5b0397(0x23f)]='TOKEN_VALIDATION',_0x3c51c3[_0x5b0397(0x24c)]=_0x5b0397(0x24c),_0x3c51c3['LC_DATA_REQ_RES']=_0x5b0397(0x278);}(_0x22dd49||(_0x22dd49={})),function(_0x125d7d){const _0x1508d5=_0x1ff439;_0x125d7d['LC_SEND_ALL_DATA']=_0x1508d5(0x333),_0x125d7d[_0x1508d5(0x2ca)]='LC_DATA_MODIFIED_IN_DATABASE',_0x125d7d[_0x1508d5(0x20c)]=_0x1508d5(0x20c);}(_0x35ef1d||(_0x35ef1d={})),(_0x1e3566=_0x1161d4['kR']||(_0x1161d4['kR']={}))[_0x1ff439(0x34b)]='POST',_0x1e3566[_0x1ff439(0x2b0)]=_0x1ff439(0x2b0),_0x1e3566[_0x1ff439(0x2bd)]=_0x1ff439(0x2bd),_0x1e3566[_0x1ff439(0x29e)]=_0x1ff439(0x29e),_0x1e3566[_0x1ff439(0x323)]=_0x1ff439(0x323),(_0x47f2fc=_0x1161d4['xu']||(_0x1161d4['xu']={}))[_0x1ff439(0x2cc)]='am_events',_0x47f2fc[_0x1ff439(0x2fd)]='am_web_socket_events',_0x47f2fc['DBMasters']='am_db_masters',_0x47f2fc['CustomApis']='am_custom_apis',_0x47f2fc[_0x1ff439(0x311)]=_0x1ff439(0x26c),_0x47f2fc['InstanceApiHooks']='am_instance_api_hooks',_0x47f2fc[_0x1ff439(0x2b9)]='am_instance_hooks',_0x47f2fc['DatabaseHooks']=_0x1ff439(0x279),_0x47f2fc[_0x1ff439(0x26d)]='am_collection_hooks',_0x47f2fc[_0x1ff439(0x21a)]='am_schedulers',_0x47f2fc[_0x1ff439(0x2c9)]=_0x1ff439(0x275),_0x47f2fc[_0x1ff439(0x225)]=_0x1ff439(0x295),_0x47f2fc[_0x1ff439(0x2dd)]=_0x1ff439(0x246),_0x47f2fc['SystemApiHooks']=_0x1ff439(0x22d),_0x47f2fc[_0x1ff439(0x20d)]=_0x1ff439(0x20d),_0x47f2fc[_0x1ff439(0x2e2)]=_0x1ff439(0x2e2),_0x47f2fc[_0x1ff439(0x208)]='am_tp_api_versions',_0x47f2fc['UtilityClasses']='am_utility_classes',_0x47f2fc[_0x1ff439(0x327)]=_0x1ff439(0x1fe),_0x47f2fc[_0x1ff439(0x2f6)]=_0x1ff439(0x267),_0x47f2fc['UIMakerUtils']=_0x1ff439(0x29c),_0x47f2fc[_0x1ff439(0x2c4)]=_0x1ff439(0x26f),_0x47f2fc['AmTestCases']=_0x1ff439(0x322),function(_0x467d7a){const _0x52e348=_0x1ff439;_0x467d7a[_0x52e348(0x2d8)]=_0x52e348(0x347),_0x467d7a[_0x52e348(0x32e)]=_0x52e348(0x2f1),_0x467d7a[_0x52e348(0x256)]=_0x52e348(0x219),_0x467d7a[_0x52e348(0x218)]='Events',_0x467d7a[_0x52e348(0x331)]=_0x52e348(0x2a0),_0x467d7a[_0x52e348(0x226)]=_0x52e348(0x25d),_0x467d7a['INSTANCE_HOOKS']=_0x52e348(0x204),_0x467d7a[_0x52e348(0x30d)]=_0x52e348(0x251),_0x467d7a[_0x52e348(0x27e)]='Collection\x20hooks',_0x467d7a[_0x52e348(0x264)]=_0x52e348(0x221),_0x467d7a[_0x52e348(0x2ea)]=_0x52e348(0x21a),_0x467d7a['SCHEMAS']='Schemas',_0x467d7a[_0x52e348(0x2d0)]=_0x52e348(0x31c),_0x467d7a[_0x52e348(0x22c)]=_0x52e348(0x223),_0x467d7a[_0x52e348(0x28e)]=_0x52e348(0x20f),_0x467d7a['THIRD_PARTY_APIS']='Third\x20party\x20APIs',_0x467d7a[_0x52e348(0x28f)]=_0x52e348(0x24e),_0x467d7a['UTILITY_CLASSES']=_0x52e348(0x2bf),_0x467d7a['EVENTS_WS']=_0x52e348(0x205),_0x467d7a[_0x52e348(0x268)]=_0x52e348(0x345),_0x467d7a['UI_MAKER_UTILITY_CLASS']=_0x52e348(0x2a2),_0x467d7a[_0x52e348(0x349)]='UI\x20maker\x20styles';}(_0x1c059d=_0x1161d4['vg']||(_0x1161d4['vg']={}));},0x380(_0x3df393){const _0x431593=a0_0x517b;_0x3df393[_0x431593(0x319)]=require('fs');}},_0x28ad3c={};!function _0x46cc14(_0x30c0ec){const _0x1be726=a0_0x517b;var _0x49b3c8=_0x28ad3c[_0x30c0ec];if(void 0x0!==_0x49b3c8)return _0x49b3c8['exports'];var _0x4fd8db=_0x28ad3c[_0x30c0ec]={'exports':{}};return _0x45c505[_0x30c0ec](_0x4fd8db,_0x4fd8db['exports'],_0x46cc14),_0x4fd8db[_0x1be726(0x319)];}(0x1dc);})()));
|
|
1
|
+
function a0_0x111b(){const _0x16cbb9=['third-party-apis','rmSync','am_web_socket_events','NOTIFICATION','base64','eventData','printNotesToProvideLocalClient','UtilityClasses','readFileSync','types','fsMkDir','am_database_hooks','UI_MAKER_STYLES','normalize','error','CUSTOM_APIS','type','spawn','./src','chokidar','src','✅\x20Local\x20client\x20started...','response','syncToken','checkForNodeVersion','custom-apis','resolve','web-socket-events','mkdir','getCategoryOfPath','getSeconds','readFile','DELETE_ALL','DatabasesMigrations','serializeFolderWithBinary','webSocketURL','\x27\x20exited\x20with\x20code\x20','AmEvents','name','system-api-hooks','fsReadDir',']\x20:\x20','process-initializers','WEB_SOCKET_EVENT','./local-client.config','ui-maker-styles','ws-events','CollectionHooksReadF','add','am_utility_classes','ThirdPartyApiReadF','SCHEDULERS','database-hooks','CustomApis','schedulers','System\x20API\x20settings','listeners','INSTANCE_HOOKS','LC_SEND_ALL_DATA','UI\x20maker\x20styles','SYSTEM_API_SETTINGS','WebSocketEventsWriteF','localClientPath','.gitignore','LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM','preHooks','entries','CustomApiReadF','length','am_schedulers','UIMakerUtils','unlink','UTILITY_CLASSES','join','copyThirdPartyApisToAnotherDir','148JNFEcX','✓\x20Receive\x20:\x20[','am_events','createLCProjectDirectory','fsExistsSync','getChangedFolderForDeleted','start','skipFileWritingForLocal','apis','Schemas','EventsWriteF','replace','DB\x20masters','readDirCustom','--force','copyDBMastersToAnotherDir','postHooks','DatabaseHooksWriteF','ProcessInitializersWriteF','stringify','Process\x20initializers','copyFilesToProjectDir','slice','filter','message','CollectionHooks','eventListeners','send','isActive','TOKEN_VALIDATION','\x20Current\x20Dir\x20:\x20','posix','child_process','connectToServerViaWS','mkdirSync','SYSTEM_APIS','dbInterfacesFile','SystemApiSettings','SIGTERM\x20received\x20—\x20shutting\x20down','ProcessInitializersReadF','readdir','Third\x20party\x20APIs','appRoot','watcher','SIGINT','DBMasters','am_ui_maker_styles','EventsReadF','Third\x20party\x20API\x20settings','\x1b[0m','unlinkDir','DBMasterStylesWriteF','Error\x20during\x20shutdown','THIRD_PARTY_APIS','close','link','install','713605wJgOcP','then','CollectionHooksWriteF','schemas','shutdownAndExit','promises','fullSyncCounter','readdirSync','push','6996006EdFShI','repo','versions','node_modules','warn','beforeExit','tpInstalledApiBundleName','config','ProcessI18NWriteF','fsReadFile','INSTANCE_API_HOOKS','startWatch','TEST_CASES','?authTokenInfo=ws-local-client-sync&authorization=','Connection\x20closed.','startsWith','sendDeletedEventToServerDebounce','unlinkSync','projectDirectory','UNREGISTER','copyUtilityClassesToAnotherDir','toString','✅\x20Connected\x20to\x20server\x20via\x20WS','copyDBMasterStylesToAnotherDir','⏳\x20Connecting\x20to\x20server...','basename','cyanStart','watch','copyEventsToAnotherDir','DATABASE_HOOKS','Schedulers','path','LC_DATA_MODIFIED_IN_DATABASE','PUT','copyInstanceHooksToAnotherDir','POST','Error\x20closing\x20watcher\x20before\x20full\x20sync','copyCustomApisToAnotherDir','copyProcessInitializersToAnotherDir','utf8','InstanceHooksWriteF','TestCasesWriteF','tsconfig.json','addProcessHooks','parse','onmessage','Instance\x20hooks','.ts','——————————————————————————————————————————————————————————————————————————————————','DBMigrationsWriteF','folderPath','log','ThirdPartyApiWriteF','am_process_initializers','copyCollectionHooksToAnotherDir','bind','am_system_api_settings','compilerOptions','removeEmptyDirsSync','729134lvGTFT','apply','installRequiredPackages','ProcessInitializers','onclose','getHours','processReceivedEvent','copyDBMigrationsToAnotherDir','.config.ts','Node.js\x2022+\x20is\x20required.\x20Current\x20version:\x20','split','debounce','DB\x20master\x20utils','syncAllDataWithServer','watch\x20handler\x20error','copyI18NToAnotherDir','padStart','DatabaseHooks','34055SeeOVr','DBMasterUtilsWriteF','DBMasterStylesReadF','sendDeletedEventToServerInternal','addDir','\x1b[38;2;255;165;0m','validOnEvents','adminUserPath','colorEnd','parseYaml','copyInstanceApiHooksToAnotherDir','toLowerCase','all','apiId','sep','exports','\x1b[36m','sendToServer','REGISTER','489942CLBuRq','load','change','Failed\x20to\x20restart\x20watcher\x20after\x20full\x20sync','getCurrentTime','npm','DBMastersReadF','normalizePath','apiCategory','Test\x20cases','endsWith','17805snSYjF','i18ns','invalidOnEvents','rmdirSync','CONNECTED','SchedulersWriteF','Utility\x20classes','eventType','am_ui_maker_utils','Database\x20hooks','ui-maker-pages','Instance\x20API\x20hooks','system-apis','writeMemfsJsonToDisk','fsWriteFile','am_tp_api_versions','connected','version','UNKNOWN','LOCAL_CLIENT_SYNC_EVENTS','DBMigrationsReadF','\x20The\x20local\x20client\x20will\x20pull\x20the\x20latest\x20changes\x20from\x20the\x20server\x20and\x20keep\x20them\x20synchronized\x20between\x20the\x20IDE\x20and\x20the\x20server.','am_test_cases','exit','THIRD_PARTY_API_SETTINGS','chokidar@4.0.3','databaseName','Please\x20run\x20using\x20administrator\x20privileges.','customApiName','WebSocketEventsReadF','shuttingDown','✅\x20Dependencies\x20installed','InstanceHooks','baseUrl','WebSocketEvents','.yaml','am_instance_api_settings','errors','Events','unhandledRejection','js-yaml','SIGTERM','✅\x20Full\x20Sync\x20:\x20[','TestCasesReadF','nodeModulesInstalled','DELETE','SchedulersReadF','onerror','--no-save','uncaughtException','InstanceApiSettings','pre-hooks','INSTANCE_API_SETTINGS','getChangedFolder','paths','AmTestCases','am_schemas','collection-hooks','I18NS','&user-path=','Database\x20migrations','am_system_api_hooks','amTypes','symlinkSync','instanceName','relative','SystemApiHooksWriteF','package.json',']\x20:\x20[','package-lock.json','am_instance_api_hooks','376zgYaSf','am_custom_apis','dirname','INSTANCES','copyTestCasesToAnotherDir','executeNpmRun','cpSync','orangeStart','Collection\x20hooks','copySchemasToAnotherDir','fsMkDirSync','✅\x20node_modules\x20installed','EVENTS','PUT_REPLACE','COLLECTION_HOOKS','fsLink','am_tp_installed_apis','SchemaReadF','dir','.js','printNotes','content','copyDBMasterUtilsToAnotherDir','skipWatchInputs','SYSTEM_API_HOOKS','copyWebSocketEventsToAnotherDir','.css','⏳\x20node_modules\x20installation\x20process\x20started','System\x20API\x20hooks','1725804qWeeIB','copySchedulersToAnotherDir','InstanceHooksReadF','SIGINT\x20received\x20—\x20shutting\x20down','systemApiName','SCHEMAS','collectionName','Custom\x20APIs','instance-api-hooks','data','EVENTS_WS','LC_DATA_REQ_RES','Watcher\x20error:'];a0_0x111b=function(){return _0x16cbb9;};return a0_0x111b();}function a0_0x2b32(_0xbbe498,_0x310997){_0xbbe498=_0xbbe498-0x1b4;const _0x111b7e=a0_0x111b();let _0x2b32a3=_0x111b7e[_0xbbe498];return _0x2b32a3;}(function(_0x45f3fe,_0x56859e){const _0x1a542e=a0_0x2b32,_0x306987=_0x45f3fe();while(!![]){try{const _0x19887e=parseInt(_0x1a542e(0x286))/0x1+-parseInt(_0x1a542e(0x31a))/0x2+parseInt(_0x1a542e(0x2b6))/0x3*(-parseInt(_0x1a542e(0x209))/0x4)+-parseInt(_0x1a542e(0x242))/0x5+parseInt(_0x1a542e(0x24b))/0x6+-parseInt(_0x1a542e(0x298))/0x7*(-parseInt(_0x1a542e(0x2fd))/0x8)+-parseInt(_0x1a542e(0x2ab))/0x9;if(_0x19887e===_0x56859e)break;else _0x306987['push'](_0x306987['shift']());}catch(_0x104951){_0x306987['push'](_0x306987['shift']());}}}(a0_0x111b,0xce166),((()=>{'use strict';var _0x57561f={0x3(_0x35c39b){const _0x2c707f=a0_0x2b32;_0x35c39b[_0x2c707f(0x2a7)]=require(_0x2c707f(0x26a));},0x59(_0x5b35ff){const _0x3fa4dc=a0_0x2b32;_0x5b35ff[_0x3fa4dc(0x2a7)]=require(_0x3fa4dc(0x2de));},0xe7(_0x30c9f6){const _0x40478f=a0_0x2b32;_0x30c9f6[_0x40478f(0x2a7)]=require(_0x40478f(0x1d1));},0x13d(_0x5b5410){const _0x556cb8=a0_0x2b32;_0x5b5410[_0x556cb8(0x2a7)]=require(_0x556cb8(0x229));},0x1dc(_0x2b40ca,_0x2b6068,_0x192c04){const _0x13681c=a0_0x2b32;_0x2b6068['vg']=_0x2b6068['xu']=_0x2b6068['kR']=_0x2b6068['OW']=void 0x0;const _0x517ed9=_0x192c04(0x380),_0x590dce=_0x192c04(0x3),_0x210213=_0x192c04(0x13d);var _0x49aa49,_0x73f543,_0x218385,_0x56dab4,_0x3b06dd,_0x234e0e;new class{constructor(){const _0x2a88e7=a0_0x2b32;this['EL']=!0x1,this[_0x2a88e7(0x233)]=_0x590dce[_0x2a88e7(0x1d8)](''),this[_0x2a88e7(0x25d)]='',this['C']={'localClientPath':_0x2a88e7(0x1ea),'src':_0x2a88e7(0x1d2),'repo':_0x2a88e7(0x24c),'types':_0x2a88e7(0x1c7),'amTypes':'am-types','versions':_0x2a88e7(0x24d),'apis':_0x2a88e7(0x211),'listeners':_0x2a88e7(0x1f6),'postHooks':'post-hooks','preHooks':_0x2a88e7(0x2e9),'dbInterfacesFile':'db-interfaces.d.ts','UtilityClassesReadF':_0x2a88e7(0x2bc),'CustomApiReadF':'Custom\x20APIs','SchedulersReadF':_0x2a88e7(0x269),'WebSocketEventsReadF':'WebSocket\x20events','SchemaReadF':'Schemas','DBMigrationsReadF':_0x2a88e7(0x2f2),'ProcessInitializersReadF':_0x2a88e7(0x21d),'ProcessI18NReadF':_0x2a88e7(0x2b7),'DBMastersReadF':_0x2a88e7(0x215),'DBMasterStylesReadF':'UI\x20maker\x20styles','DBMasterUtilsReadF':'DB\x20master\x20utils','TestCasesReadF':'Test\x20cases','ThirdPartyApiReadF':_0x2a88e7(0x232),'EventsReadF':_0x2a88e7(0x2dc),'InstanceApiHooksReadF':'Instance\x20API\x20hooks','SystemApiHooksReadF':_0x2a88e7(0x319),'CollectionHooksReadF':_0x2a88e7(0x305),'DatabaseHooksReadF':_0x2a88e7(0x2bf),'InstanceHooksReadF':_0x2a88e7(0x279),'CustomApisWriteF':_0x2a88e7(0x1d7),'SchedulersWriteF':_0x2a88e7(0x1f4),'WebSocketEventsWriteF':_0x2a88e7(0x1d9),'SchemaWriteF':_0x2a88e7(0x245),'DBMigrationsWriteF':'db-migrations','ProcessInitializersWriteF':_0x2a88e7(0x1e8),'ProcessI18NWriteF':_0x2a88e7(0x2b7),'DBMastersWriteF':_0x2a88e7(0x2c0),'DBMasterStylesWriteF':_0x2a88e7(0x1eb),'DBMasterUtilsWriteF':'ui-maker-utils','TestCasesWriteF':'tests','ThirdPartyApiWriteF':_0x2a88e7(0x1be),'EventsWriteF':'events','InstanceApiHooksWriteF':_0x2a88e7(0x1b9),'SystemApiHooksWriteF':_0x2a88e7(0x1e5),'CollectionHooksWriteF':_0x2a88e7(0x2ef),'DatabaseHooksWriteF':_0x2a88e7(0x1f2),'InstanceHooksWriteF':'instance-hooks'},this['skipWatchInputs']=!0x1,this[_0x2a88e7(0x210)]={},this[_0x2a88e7(0x2e2)]=!0x1,this[_0x2a88e7(0x304)]=_0x2a88e7(0x29d),this[_0x2a88e7(0x265)]=_0x2a88e7(0x2a8),this[_0x2a88e7(0x2a0)]=_0x2a88e7(0x23a),this['fullSyncCounter']=0x0,this['sendDeletedEventToServerDebounce']=this[_0x2a88e7(0x291)](this['sendDeletedEventToServerInternal'],0x1f4);}async[_0x13681c(0x20f)](){const _0x467b91=_0x13681c;this[_0x467b91(0x276)](),this[_0x467b91(0x1d6)](),this[_0x467b91(0x20d)](this['C'][_0x467b91(0x1fc)]+_0x467b91(0x310))||(this[_0x467b91(0x1c4)](),this[_0x467b91(0x246)](0x1)[_0x467b91(0x243)]()),this[_0x467b91(0x252)]=require(this['C'][_0x467b91(0x1fc)])(),await this[_0x467b91(0x311)](),this[_0x467b91(0x285)](_0x590dce[_0x467b91(0x207)](this[_0x467b91(0x233)],this['C'][_0x467b91(0x1d2)])),await this[_0x467b91(0x20c)](),await this[_0x467b91(0x22a)]();}[_0x13681c(0x1d6)](){const _0x8e3077=_0x13681c,_0x22e383=process[_0x8e3077(0x2c7)];parseInt(_0x22e383[_0x8e3077(0x290)]('.')[0x0][_0x8e3077(0x214)]('v',''),0xa)<0x16&&(console[_0x8e3077(0x1cc)](this['orangeStart']+_0x8e3077(0x28f)+_0x22e383+this[_0x8e3077(0x2a0)]),this['shutdownAndExit'](0x1)['then']());}async[_0x13681c(0x311)](){const _0x3ca57e=_0x13681c;console[_0x3ca57e(0x27e)](this['orangeStart']),console[_0x3ca57e(0x27e)]('——————————————————————————————————————\x20Note\x20——————————————————————————————————————'),console[_0x3ca57e(0x27e)](_0x3ca57e(0x2cb)),console['log'](_0x3ca57e(0x227)+this[_0x3ca57e(0x233)]),console['log'](_0x3ca57e(0x27b)),console[_0x3ca57e(0x27e)](this[_0x3ca57e(0x2a0)]),console['log']('');}[_0x13681c(0x1c4)](){const _0x832034=_0x13681c;console[_0x832034(0x27e)](_0x832034(0x29d)),console[_0x832034(0x27e)]('\x20Please\x20provide\x20settings\x20in\x20:\x20'+this['C']['localClientPath']+_0x832034(0x310)),console['log'](_0x832034(0x23a)),console['log']('');}async['createLCProjectDirectory'](){const _0xb54877=_0x13681c,_0x85d421=_0x590dce[_0xb54877(0x264)](this['appRoot']),_0x121cf3=_0x590dce[_0xb54877(0x207)](this['appRoot'],'..',_0x85d421+'-lc');this['projectDirectory']=_0x121cf3,_0x517ed9[_0xb54877(0x1bf)](_0x121cf3,{'recursive':!0x0,'force':!0x0}),await this[_0xb54877(0x1c8)](_0x121cf3,{'recursive':!0x0});}async[_0x13681c(0x21e)](_0x1fac83){const _0x48619f=_0x13681c;await this[_0x48619f(0x20c)](),this[_0x48619f(0x307)](_0x590dce[_0x48619f(0x207)](this[_0x48619f(0x25d)],this['C'][_0x48619f(0x1d2)]),{'recursive':!0x0}),_0x517ed9['cpSync'](_0x590dce[_0x48619f(0x207)](this[_0x48619f(0x233)],_0x48619f(0x2f9)),_0x590dce[_0x48619f(0x207)](this[_0x48619f(0x25d)],_0x48619f(0x2f9))),_0x517ed9[_0x48619f(0x303)](_0x590dce[_0x48619f(0x207)](this[_0x48619f(0x233)],_0x48619f(0x1fd)),_0x590dce[_0x48619f(0x207)](this['projectDirectory'],_0x48619f(0x1fd)));const _0x42e846=_0x590dce[_0x48619f(0x207)](this[_0x48619f(0x233)],'tsconfig.json'),_0x473c1e=JSON['parse'](await this[_0x48619f(0x254)](_0x42e846,{'encoding':_0x48619f(0x272)}));_0x473c1e['compilerOptions'][_0x48619f(0x2d7)]=_0x48619f(0x1d0),_0x473c1e[_0x48619f(0x284)][_0x48619f(0x2ec)]['*'][_0x48619f(0x24a)]('*'),await this[_0x48619f(0x2c4)](_0x590dce[_0x48619f(0x207)](this[_0x48619f(0x25d)],_0x48619f(0x275)),JSON[_0x48619f(0x21c)](_0x473c1e,null,0x4),{'encoding':_0x48619f(0x272)}),await _0x517ed9[_0x48619f(0x247)]['cp'](_0x590dce['join'](this['appRoot'],this['C'][_0x48619f(0x2f4)]),_0x590dce[_0x48619f(0x207)](this['projectDirectory'],this['C'][_0x48619f(0x1d2)],this['C'][_0x48619f(0x2f4)]),{'recursive':!0x0}),await _0x517ed9[_0x48619f(0x247)]['cp'](_0x590dce[_0x48619f(0x207)](this[_0x48619f(0x233)],this['C']['src'],this[_0x48619f(0x252)][_0x48619f(0x29f)],this['C'][_0x48619f(0x1c7)],this['C'][_0x48619f(0x22d)]),_0x590dce[_0x48619f(0x207)](this[_0x48619f(0x25d)],this['C'][_0x48619f(0x1d2)],this['C'][_0x48619f(0x2f4)],this['C'][_0x48619f(0x22d)]),{'recursive':!0x0}),await this[_0x48619f(0x25f)](),await this['copyCustomApisToAnotherDir'](),await this[_0x48619f(0x31b)](),await this[_0x48619f(0x306)](),await this[_0x48619f(0x28d)](),await this[_0x48619f(0x271)](),await this[_0x48619f(0x295)](),await this[_0x48619f(0x301)](),await this[_0x48619f(0x208)](),await this[_0x48619f(0x267)](),await this[_0x48619f(0x2a2)](),await this['copySystemApiHooksToAnotherDir'](),await this[_0x48619f(0x316)](),await this[_0x48619f(0x281)](),await this['copyDatabaseHooksToAnotherDir'](),await this['copyInstanceHooksToAnotherDir'](),await this[_0x48619f(0x218)](),await this['copyDBMasterStylesToAnotherDir'](),await this[_0x48619f(0x313)](),_0x1fac83&&(console[_0x48619f(0x27e)](_0x48619f(0x318)),await this['executeNpmRun'](_0x48619f(0x2b0),[_0x48619f(0x241),_0x48619f(0x217)]),console[_0x48619f(0x27e)](_0x48619f(0x308)),this[_0x48619f(0x2e2)]=!0x0);try{_0x517ed9[_0x48619f(0x2f5)](_0x590dce[_0x48619f(0x207)](this[_0x48619f(0x233)],_0x48619f(0x24e)),_0x590dce['join'](this[_0x48619f(0x25d)],_0x48619f(0x24e)),_0x48619f(0x30f));}catch(_0x2cb4a7){console['log'](_0x48619f(0x2d1)),console[_0x48619f(0x27e)](_0x2cb4a7),await this[_0x48619f(0x246)](0x1);}}async[_0x13681c(0x288)](){const _0x4e91d1=_0x13681c;console['log']('⏳\x20Dependencies\x20installation\x20process\x20started');try{_0x517ed9[_0x4e91d1(0x25c)](_0x590dce[_0x4e91d1(0x207)](this[_0x4e91d1(0x233)],_0x4e91d1(0x2fb)));}catch(_0x1c6c67){}await this[_0x4e91d1(0x302)](_0x4e91d1(0x2b0),[_0x4e91d1(0x241),_0x4e91d1(0x2e6),_0x4e91d1(0x2cf),'js-yaml@4.1.0']),this[_0x4e91d1(0x2e2)]=!0x0,console[_0x4e91d1(0x27e)](_0x4e91d1(0x2d5));}async[_0x13681c(0x25f)](){const _0x48636c=_0x13681c,_0xe550d0=this['C']['UtilityClassesReadF'],_0x6ae820=_0x590dce[_0x48636c(0x207)](this[_0x48636c(0x233)],this['C'][_0x48636c(0x1d2)],this[_0x48636c(0x252)][_0x48636c(0x29f)],_0xe550d0),_0x6295d1=await this[_0x48636c(0x216)](_0x6ae820,null);for(const _0x2ac0ad of _0x6295d1){const _0x2c8f69=_0x590dce['join'](_0x6ae820,_0x2ac0ad,_0x2ac0ad+_0x48636c(0x2d9));if(!this['fsExistsSync'](_0x2c8f69))continue;const _0x1bcc0f=await this['fsReadFile'](_0x2c8f69,{'encoding':_0x48636c(0x272)}),_0x1370bc=await this[_0x48636c(0x2a1)](_0x1bcc0f);for(const _0x24a0e2 of _0x1370bc[_0x48636c(0x24d)]||[])if(!0x0===_0x24a0e2['isActive']){const _0x204c59=_0x590dce['join'](_0x6ae820,_0x2ac0ad,this['C']['versions'],_0x24a0e2['version'],_0x24a0e2[_0x48636c(0x1e4)]+_0x48636c(0x27a)),_0xa91909=_0x590dce[_0x48636c(0x207)](this[_0x48636c(0x25d)],this['C'][_0x48636c(0x1d2)],_0x1370bc[_0x48636c(0x27d)],_0x1370bc[_0x48636c(0x1e4)]+'.ts');await this['fsMkDir'](_0x590dce[_0x48636c(0x2ff)](_0xa91909),{'recursive':!0x0}),await this['fsLink'](_0x204c59,_0xa91909);}}}async[_0x13681c(0x270)](){const _0x32c9c2=_0x13681c,_0x372c21=this['C'][_0x32c9c2(0x201)],_0xe6f2c=this['C']['CustomApisWriteF'],_0x5b306d=_0x590dce['join'](this[_0x32c9c2(0x233)],this['C']['src'],this['config']['adminUserPath'],_0x372c21),_0x1f4038=await this[_0x32c9c2(0x216)](_0x5b306d,null);for(const _0x331cce of _0x1f4038){const _0x4f23ae=_0x590dce[_0x32c9c2(0x207)](_0x5b306d,_0x331cce,_0x331cce+'.yaml');if(!this[_0x32c9c2(0x20d)](_0x4f23ae))continue;const _0xcffdfe=await this[_0x32c9c2(0x254)](_0x4f23ae,{'encoding':_0x32c9c2(0x272)}),_0x16fc6c=await this[_0x32c9c2(0x2a1)](_0xcffdfe);for(const _0x54c0b7 of _0x16fc6c[_0x32c9c2(0x24d)]||[])if(!0x0===_0x54c0b7[_0x32c9c2(0x225)]){const _0x2b7fa5=_0x590dce[_0x32c9c2(0x207)](_0x5b306d,_0x331cce,this['C'][_0x32c9c2(0x24d)],_0x54c0b7['version']),_0xdca666=_0x590dce[_0x32c9c2(0x207)](_0x2b7fa5,_0x54c0b7[_0x32c9c2(0x1e4)]+_0x32c9c2(0x27a)),_0x41f2a5=_0x590dce[_0x32c9c2(0x207)](this['projectDirectory'],this['C']['src'],_0xe6f2c,_0x16fc6c['path'],_0x16fc6c[_0x32c9c2(0x1e4)]+_0x32c9c2(0x27a));await this[_0x32c9c2(0x1c8)](_0x590dce[_0x32c9c2(0x2ff)](_0x41f2a5),{'recursive':!0x0}),await this['fsLink'](_0xdca666,_0x41f2a5);const _0x171b69=_0x590dce[_0x32c9c2(0x207)](_0x5b306d,_0x331cce,_0x331cce+_0x32c9c2(0x28e)),_0x50d8ff=_0x590dce[_0x32c9c2(0x207)](this[_0x32c9c2(0x25d)],this['C'][_0x32c9c2(0x1d2)],_0xe6f2c,_0x16fc6c[_0x32c9c2(0x26a)],_0x16fc6c['name']+_0x32c9c2(0x28e));await this['fsLink'](_0x171b69,_0x50d8ff);for(const _0xb80c3d of _0x54c0b7[_0x32c9c2(0x1ff)]){const _0x4b899d=_0x590dce[_0x32c9c2(0x207)](_0x2b7fa5,this['C'][_0x32c9c2(0x1ff)],_0xb80c3d[_0x32c9c2(0x1e4)]+'.ts'),_0x14217f=_0x590dce[_0x32c9c2(0x207)](this['projectDirectory'],this['C'][_0x32c9c2(0x1d2)],_0xe6f2c,_0x16fc6c['path'],this['C'][_0x32c9c2(0x1ff)],_0xb80c3d[_0x32c9c2(0x1e4)]+_0x32c9c2(0x27a));await this[_0x32c9c2(0x1c8)](_0x590dce[_0x32c9c2(0x2ff)](_0x14217f),{'recursive':!0x0}),await this['fsLink'](_0x4b899d,_0x14217f);}for(const _0x13dece of _0x54c0b7[_0x32c9c2(0x219)]){const _0x18f827=_0x590dce[_0x32c9c2(0x207)](_0x2b7fa5,this['C'][_0x32c9c2(0x219)],_0x13dece['name']+'.ts'),_0x2dc699=_0x590dce[_0x32c9c2(0x207)](this[_0x32c9c2(0x25d)],this['C'][_0x32c9c2(0x1d2)],_0xe6f2c,_0x16fc6c[_0x32c9c2(0x26a)],this['C'][_0x32c9c2(0x219)],_0x13dece[_0x32c9c2(0x1e4)]+_0x32c9c2(0x27a));await this[_0x32c9c2(0x1c8)](_0x590dce[_0x32c9c2(0x2ff)](_0x2dc699),{'recursive':!0x0}),await this[_0x32c9c2(0x30c)](_0x18f827,_0x2dc699);}}}}async[_0x13681c(0x31b)](){const _0x29d187=_0x13681c,_0x168cac=this['C'][_0x29d187(0x2e4)],_0xfb977b=this['C'][_0x29d187(0x2bb)],_0x57d8de=_0x590dce[_0x29d187(0x207)](this[_0x29d187(0x233)],this['C']['src'],this['config'][_0x29d187(0x29f)],_0x168cac),_0x3036e9=await this['readDirCustom'](_0x57d8de,null);for(const _0x55781e of _0x3036e9){const _0x271e1b=_0x590dce[_0x29d187(0x207)](_0x57d8de,_0x55781e,_0x55781e+_0x29d187(0x2d9));if(!this[_0x29d187(0x20d)](_0x271e1b))continue;const _0x4d6445=await this[_0x29d187(0x254)](_0x271e1b,{'encoding':_0x29d187(0x272)}),_0xa7e88b=await this[_0x29d187(0x2a1)](_0x4d6445);for(const _0x4bf52c of _0xa7e88b[_0x29d187(0x24d)]||[])if(!0x0===_0x4bf52c[_0x29d187(0x225)]){const _0x472b47=_0x590dce[_0x29d187(0x207)](_0x57d8de,_0x55781e,this['C'][_0x29d187(0x24d)],_0x4bf52c[_0x29d187(0x2c7)],_0x4bf52c[_0x29d187(0x1e4)]+_0x29d187(0x27a)),_0x376b89=_0x590dce[_0x29d187(0x207)](this[_0x29d187(0x25d)],this['C'][_0x29d187(0x1d2)],_0xfb977b,_0xa7e88b[_0x29d187(0x1e4)]+_0x29d187(0x27a));await this['fsMkDir'](_0x590dce[_0x29d187(0x2ff)](_0x376b89),{'recursive':!0x0}),await this[_0x29d187(0x30c)](_0x472b47,_0x376b89);}}}async['copySchemasToAnotherDir'](){const _0x4fc404=_0x13681c,_0x104d9b=this['C'][_0x4fc404(0x30e)],_0x3a8afe=this['C']['SchemaWriteF'],_0x463245=_0x590dce[_0x4fc404(0x207)](this['appRoot'],this['C'][_0x4fc404(0x1d2)],this[_0x4fc404(0x252)][_0x4fc404(0x29f)],_0x104d9b),_0x948ebb=await this[_0x4fc404(0x216)](_0x463245,null);for(const _0x8cc449 of _0x948ebb){const _0x55f6e3=_0x590dce[_0x4fc404(0x207)](_0x463245,_0x8cc449,_0x8cc449+_0x4fc404(0x2d9));if(!this[_0x4fc404(0x20d)](_0x55f6e3))continue;const _0x4596ef=await this[_0x4fc404(0x254)](_0x55f6e3,{'encoding':'utf8'}),_0xc6d22a=await this[_0x4fc404(0x2a1)](_0x4596ef),_0x555edf=_0x590dce[_0x4fc404(0x207)](this[_0x4fc404(0x25d)],this['C']['src'],_0x3a8afe,_0xc6d22a['instanceName'],_0xc6d22a[_0x4fc404(0x2d0)]);await this[_0x4fc404(0x1c8)](_0x555edf,{'recursive':!0x0});const _0x3ae4c1=_0x590dce['join'](_0x463245,_0x8cc449,_0xc6d22a[_0x4fc404(0x1b7)]+_0x4fc404(0x28e)),_0x3e2602=_0x590dce['join'](_0x555edf,_0xc6d22a[_0x4fc404(0x1b7)]+_0x4fc404(0x28e));await this[_0x4fc404(0x30c)](_0x3ae4c1,_0x3e2602);}}async[_0x13681c(0x28d)](){const _0x2010ba=_0x13681c,_0xed47c8=this['C'][_0x2010ba(0x2ca)],_0x346954=this['C'][_0x2010ba(0x27c)],_0x59d729=_0x590dce[_0x2010ba(0x207)](this[_0x2010ba(0x233)],this['C'][_0x2010ba(0x1d2)],this[_0x2010ba(0x252)][_0x2010ba(0x29f)],_0xed47c8),_0x2d5bd1=await this[_0x2010ba(0x216)](_0x59d729,null);for(const _0x18c796 of _0x2d5bd1){const _0x40d68b=_0x590dce[_0x2010ba(0x207)](_0x59d729,_0x18c796,_0x18c796+_0x2010ba(0x2d9));if(!this[_0x2010ba(0x20d)](_0x40d68b))continue;const _0x39ea5a=await this[_0x2010ba(0x254)](_0x40d68b,{'encoding':'utf8'}),_0x2f4dc5=await this[_0x2010ba(0x2a1)](_0x39ea5a),_0x17eb57=_0x590dce['join'](this[_0x2010ba(0x25d)],this['C'][_0x2010ba(0x1d2)],_0x346954);await this[_0x2010ba(0x1c8)](_0x17eb57,{'recursive':!0x0});const _0xea5992=_0x590dce['join'](_0x59d729,_0x18c796,_0x2f4dc5[_0x2010ba(0x1e4)]+_0x2010ba(0x27a)),_0xe320a4=_0x590dce[_0x2010ba(0x207)](_0x17eb57,_0x2f4dc5[_0x2010ba(0x1e4)]+_0x2010ba(0x27a));await this[_0x2010ba(0x30c)](_0xea5992,_0xe320a4);}}async[_0x13681c(0x271)](){const _0x3207eb=_0x13681c,_0x17765b=this['C'][_0x3207eb(0x230)],_0x575417=this['C'][_0x3207eb(0x21b)],_0x295c81=_0x590dce[_0x3207eb(0x207)](this[_0x3207eb(0x233)],this['C'][_0x3207eb(0x1d2)],this['config']['adminUserPath'],_0x17765b),_0x3d78b1=await this[_0x3207eb(0x216)](_0x295c81,null);for(const _0x149952 of _0x3d78b1){const _0x364208=_0x590dce[_0x3207eb(0x207)](_0x295c81,_0x149952,_0x149952+_0x3207eb(0x2d9));if(!this['fsExistsSync'](_0x364208))continue;const _0x3b220e=await this[_0x3207eb(0x254)](_0x364208,{'encoding':_0x3207eb(0x272)}),_0x2743e2=await this[_0x3207eb(0x2a1)](_0x3b220e),_0x2974ad=_0x590dce['join'](this[_0x3207eb(0x25d)],this['C']['src'],_0x575417);await this[_0x3207eb(0x1c8)](_0x2974ad,{'recursive':!0x0});const _0x3f6424=_0x590dce[_0x3207eb(0x207)](_0x295c81,_0x149952,_0x2743e2[_0x3207eb(0x1e4)]+'.ts'),_0x5e4455=_0x590dce[_0x3207eb(0x207)](_0x2974ad,_0x2743e2['name']+_0x3207eb(0x27a));await this[_0x3207eb(0x30c)](_0x3f6424,_0x5e4455);}}async[_0x13681c(0x295)](){const _0x1de09b=_0x13681c,_0x5099dd=this['C']['ProcessI18NReadF'],_0x200d39=this['C'][_0x1de09b(0x253)],_0x2118fb=_0x590dce[_0x1de09b(0x207)](this['appRoot'],this['C'][_0x1de09b(0x1d2)],this[_0x1de09b(0x252)][_0x1de09b(0x29f)],_0x5099dd),_0x1d6dfc=await this['readDirCustom'](_0x2118fb,null);for(const _0x6d3c9b of _0x1d6dfc){const _0x3b48dd=_0x590dce[_0x1de09b(0x207)](_0x2118fb,_0x6d3c9b,_0x6d3c9b+_0x1de09b(0x2d9));if(!this[_0x1de09b(0x20d)](_0x3b48dd))continue;const _0x584d53=await this[_0x1de09b(0x254)](_0x3b48dd,{'encoding':_0x1de09b(0x272)}),_0x3aae68=await this[_0x1de09b(0x2a1)](_0x584d53),_0x4f397e=_0x590dce['join'](this['projectDirectory'],this['C'][_0x1de09b(0x1d2)],_0x200d39);await this['fsMkDir'](_0x4f397e,{'recursive':!0x0});const _0x1272a7=_0x590dce[_0x1de09b(0x207)](_0x2118fb,_0x6d3c9b,_0x3aae68['name']+'.ts'),_0x44472f=_0x590dce[_0x1de09b(0x207)](_0x4f397e,_0x3aae68[_0x1de09b(0x1e4)]+_0x1de09b(0x27a));await this[_0x1de09b(0x30c)](_0x1272a7,_0x44472f);}}async[_0x13681c(0x218)](){const _0x34e917=_0x13681c,_0x332773=this['C'][_0x34e917(0x2b1)],_0x2d62e8=this['C']['DBMastersWriteF'],_0x329d5e=_0x590dce[_0x34e917(0x207)](this[_0x34e917(0x233)],this['C'][_0x34e917(0x1d2)],this[_0x34e917(0x252)][_0x34e917(0x29f)],_0x332773),_0xe72eac=await this[_0x34e917(0x216)](_0x329d5e,null);for(const _0x175591 of _0xe72eac){const _0x22ab41=_0x590dce[_0x34e917(0x207)](_0x329d5e,_0x175591,_0x175591+_0x34e917(0x2d9));if(!this[_0x34e917(0x20d)](_0x22ab41))continue;const _0x4576cd=await this['fsReadFile'](_0x22ab41,{'encoding':_0x34e917(0x272)}),_0x3a2480=await this[_0x34e917(0x2a1)](_0x4576cd),_0x5426f8=_0x590dce[_0x34e917(0x207)](this[_0x34e917(0x25d)],this['C'][_0x34e917(0x1d2)],_0x2d62e8,_0x3a2480[_0x34e917(0x1e4)]);await this[_0x34e917(0x1c8)](_0x5426f8,{'recursive':!0x0});const _0x3b8fdc=_0x590dce[_0x34e917(0x207)](_0x329d5e,_0x175591,_0x3a2480[_0x34e917(0x1e4)]+_0x34e917(0x27a)),_0x25cc3a=_0x590dce[_0x34e917(0x207)](_0x5426f8,_0x3a2480[_0x34e917(0x1e4)]+'.ts');await this['fsLink'](_0x3b8fdc,_0x25cc3a);const _0x223866=_0x590dce['join'](_0x329d5e,_0x175591,_0x3a2480['name']+_0x34e917(0x28e)),_0x45db35=_0x590dce[_0x34e917(0x207)](_0x5426f8,_0x3a2480[_0x34e917(0x1e4)]+_0x34e917(0x28e));await this[_0x34e917(0x30c)](_0x223866,_0x45db35);}}async[_0x13681c(0x262)](){const _0xa4de9d=_0x13681c,_0x2b66e6=this['C'][_0xa4de9d(0x29a)],_0x2b4865=this['C'][_0xa4de9d(0x23c)],_0x42c984=_0x590dce['join'](this[_0xa4de9d(0x233)],this['C']['src'],this[_0xa4de9d(0x252)][_0xa4de9d(0x29f)],_0x2b66e6),_0x1dcc15=await this['readDirCustom'](_0x42c984,null);for(const _0x43007a of _0x1dcc15){const _0x5871fd=_0x590dce[_0xa4de9d(0x207)](_0x42c984,_0x43007a,_0x43007a+'.yaml');if(!this['fsExistsSync'](_0x5871fd))continue;const _0x3c7d5a=await this['fsReadFile'](_0x5871fd,{'encoding':'utf8'}),_0x37571b=await this['parseYaml'](_0x3c7d5a),_0x88f2d5=_0x590dce[_0xa4de9d(0x207)](this['projectDirectory'],this['C'][_0xa4de9d(0x1d2)],_0x2b4865);await this[_0xa4de9d(0x1c8)](_0x88f2d5,{'recursive':!0x0});const _0x100709=_0x590dce['join'](_0x42c984,_0x43007a,_0x37571b['name']+_0xa4de9d(0x317)),_0x5ab09b=_0x590dce['join'](_0x88f2d5,_0x37571b[_0xa4de9d(0x1e4)]+'.css');await this[_0xa4de9d(0x30c)](_0x100709,_0x5ab09b);}}async[_0x13681c(0x313)](){const _0x1cb82c=_0x13681c,_0x1c4ce8=this['C']['DBMasterUtilsReadF'],_0x4535d2=this['C'][_0x1cb82c(0x299)],_0x5690ee=_0x590dce[_0x1cb82c(0x207)](this[_0x1cb82c(0x233)],this['C'][_0x1cb82c(0x1d2)],this[_0x1cb82c(0x252)][_0x1cb82c(0x29f)],_0x1c4ce8),_0x199954=await this['readDirCustom'](_0x5690ee,null);for(const _0x34c407 of _0x199954){const _0x502bff=_0x590dce[_0x1cb82c(0x207)](_0x5690ee,_0x34c407,_0x34c407+_0x1cb82c(0x2d9));if(!this['fsExistsSync'](_0x502bff))continue;const _0x3b22ca=await this['fsReadFile'](_0x502bff,{'encoding':'utf8'}),_0x4a6f55=await this[_0x1cb82c(0x2a1)](_0x3b22ca),_0x2fc141=_0x590dce[_0x1cb82c(0x207)](this['projectDirectory'],this['C'][_0x1cb82c(0x1d2)],_0x4535d2);await this[_0x1cb82c(0x1c8)](_0x2fc141,{'recursive':!0x0});const _0x7ddd02=_0x590dce[_0x1cb82c(0x207)](_0x5690ee,_0x34c407,_0x4a6f55[_0x1cb82c(0x1e4)]+_0x1cb82c(0x27a)),_0x4e6b73=_0x590dce[_0x1cb82c(0x207)](_0x2fc141,_0x4a6f55[_0x1cb82c(0x1e4)]+'.ts');await this[_0x1cb82c(0x30c)](_0x7ddd02,_0x4e6b73);}}async[_0x13681c(0x301)](){const _0x1335ff=_0x13681c,_0x323693=this['C'][_0x1335ff(0x2e1)],_0x854682=this['C'][_0x1335ff(0x274)],_0x6aaa67=_0x590dce[_0x1335ff(0x207)](this[_0x1335ff(0x233)],this['C'][_0x1335ff(0x1d2)],this[_0x1335ff(0x252)][_0x1335ff(0x29f)],_0x323693),_0x5c7e05=await this['readDirCustom'](_0x6aaa67,null);for(const _0x199fd9 of _0x5c7e05){const _0x506dcd=_0x590dce[_0x1335ff(0x207)](_0x6aaa67,_0x199fd9,_0x199fd9+_0x1335ff(0x2d9));if(!this[_0x1335ff(0x20d)](_0x506dcd))continue;const _0x21c02b=await this[_0x1335ff(0x254)](_0x506dcd,{'encoding':_0x1335ff(0x272)}),_0xa245d1=await this[_0x1335ff(0x2a1)](_0x21c02b),_0x55aefe=_0x590dce[_0x1335ff(0x207)](this['projectDirectory'],this['C'][_0x1335ff(0x1d2)],_0x854682);await this[_0x1335ff(0x1c8)](_0x55aefe,{'recursive':!0x0});const _0x40c982=_0x590dce[_0x1335ff(0x207)](_0x6aaa67,_0x199fd9,_0xa245d1['name']+_0x1335ff(0x27a)),_0x484770=_0x590dce[_0x1335ff(0x207)](_0x55aefe,_0xa245d1[_0x1335ff(0x1e4)]+'.ts');await this[_0x1335ff(0x30c)](_0x40c982,_0x484770);}}async[_0x13681c(0x208)](){const _0x2652be=_0x13681c,_0x283faf=this['C'][_0x2652be(0x1f0)],_0x2c8155=this['C'][_0x2652be(0x27f)],_0x396c48=_0x590dce[_0x2652be(0x207)](this['appRoot'],this['C'][_0x2652be(0x1d2)],this[_0x2652be(0x252)][_0x2652be(0x29f)],_0x283faf);if(!this[_0x2652be(0x20d)](_0x396c48))return;const _0x39ab12=await this[_0x2652be(0x216)](_0x396c48,null);for(const _0x3a62fa of _0x39ab12){const _0x333d5c=_0x590dce[_0x2652be(0x207)](_0x396c48,_0x3a62fa,this['C'][_0x2652be(0x211)]),_0x3fb227=await this[_0x2652be(0x216)](_0x333d5c,null);for(const _0x448bc5 of _0x3fb227){const _0x278899=_0x590dce[_0x2652be(0x207)](_0x333d5c,_0x448bc5,_0x448bc5+_0x2652be(0x2d9));if(!this['fsExistsSync'](_0x278899))continue;const _0x39654f=await this[_0x2652be(0x254)](_0x278899,{'encoding':_0x2652be(0x272)}),_0x4a4e1c=await this[_0x2652be(0x2a1)](_0x39654f);for(const _0x24a603 of _0x4a4e1c[_0x2652be(0x24d)]||[])if(!0x0===_0x24a603['isActive']){const _0x500109=_0x590dce[_0x2652be(0x207)](_0x333d5c,_0x448bc5,this['C']['versions'],_0x24a603[_0x2652be(0x2c7)]),_0x124051=_0x590dce[_0x2652be(0x207)](_0x500109,_0x24a603[_0x2652be(0x1e4)]+_0x2652be(0x27a)),_0x2960e3=_0x590dce['join'](this[_0x2652be(0x25d)],this['C'][_0x2652be(0x1d2)],_0x2c8155,_0x3a62fa,_0x4a4e1c[_0x2652be(0x26a)],_0x4a4e1c[_0x2652be(0x1e4)]+'.ts');await this[_0x2652be(0x1c8)](_0x590dce[_0x2652be(0x2ff)](_0x2960e3),{'recursive':!0x0}),await this[_0x2652be(0x30c)](_0x124051,_0x2960e3);const _0x20ca8b=_0x590dce['join'](_0x333d5c,_0x448bc5,_0x448bc5+'.config.ts'),_0x37fcf0=_0x590dce['join'](this['projectDirectory'],this['C'][_0x2652be(0x1d2)],_0x2c8155,_0x3a62fa,_0x4a4e1c['path'],_0x4a4e1c[_0x2652be(0x1e4)]+_0x2652be(0x28e));await this[_0x2652be(0x30c)](_0x20ca8b,_0x37fcf0);for(const _0x48830c of _0x24a603['preHooks']){const _0x5358b5=_0x590dce[_0x2652be(0x207)](_0x500109,this['C'][_0x2652be(0x1ff)],_0x48830c[_0x2652be(0x1e4)]+_0x2652be(0x27a)),_0x45e465=_0x590dce[_0x2652be(0x207)](this['projectDirectory'],this['C']['src'],_0x2c8155,_0x3a62fa,_0x4a4e1c['path'],this['C']['preHooks'],_0x48830c['name']+_0x2652be(0x27a));await this['fsMkDir'](_0x590dce[_0x2652be(0x2ff)](_0x45e465),{'recursive':!0x0}),await this[_0x2652be(0x30c)](_0x5358b5,_0x45e465);}for(const _0x2cf43c of _0x24a603[_0x2652be(0x219)]){const _0xd518a9=_0x590dce[_0x2652be(0x207)](_0x500109,this['C'][_0x2652be(0x219)],_0x2cf43c[_0x2652be(0x1e4)]+_0x2652be(0x27a)),_0x40c629=_0x590dce['join'](this[_0x2652be(0x25d)],this['C'][_0x2652be(0x1d2)],_0x2c8155,_0x3a62fa,_0x4a4e1c[_0x2652be(0x26a)],this['C'][_0x2652be(0x219)],_0x2cf43c[_0x2652be(0x1e4)]+_0x2652be(0x27a));await this[_0x2652be(0x1c8)](_0x590dce[_0x2652be(0x2ff)](_0x40c629),{'recursive':!0x0}),await this[_0x2652be(0x30c)](_0xd518a9,_0x40c629);}}}}}async[_0x13681c(0x267)](){const _0x2d7430=_0x13681c,_0x2f4cca=this['C'][_0x2d7430(0x238)],_0x43d151=this['C'][_0x2d7430(0x213)],_0x2884b5=_0x590dce[_0x2d7430(0x207)](this[_0x2d7430(0x233)],this['C'][_0x2d7430(0x1d2)],this['config'][_0x2d7430(0x29f)],_0x2f4cca),_0x3c2134=await this[_0x2d7430(0x216)](_0x2884b5,null);for(const _0xad2181 of _0x3c2134){const _0x49c37b=_0x590dce[_0x2d7430(0x207)](_0x2884b5,_0xad2181,_0xad2181+_0x2d7430(0x2d9));if(!this[_0x2d7430(0x20d)](_0x49c37b))continue;const _0x193ed2=await this[_0x2d7430(0x254)](_0x49c37b,{'encoding':_0x2d7430(0x272)}),_0x53a970=await this[_0x2d7430(0x2a1)](_0x193ed2),_0x348d49=_0x590dce[_0x2d7430(0x207)](_0x2884b5,_0xad2181,this['C'][_0x2d7430(0x1f6)]);for(const _0x9f631f of _0x53a970[_0x2d7430(0x223)])for(const _0x429cb7 of _0x9f631f[_0x2d7430(0x24d)]||[])if(!0x0===_0x429cb7[_0x2d7430(0x225)]){const _0x5539a6=_0x590dce[_0x2d7430(0x207)](_0x348d49,_0x9f631f['name'],this['C'][_0x2d7430(0x24d)],_0x429cb7[_0x2d7430(0x2c7)],_0x429cb7[_0x2d7430(0x1e4)]+_0x2d7430(0x27a)),_0x1137d2=_0x590dce[_0x2d7430(0x207)](this[_0x2d7430(0x25d)],this['C'][_0x2d7430(0x1d2)],_0x43d151,_0x53a970[_0x2d7430(0x1e4)],_0x9f631f[_0x2d7430(0x1e4)]+_0x2d7430(0x27a));await this['fsMkDir'](_0x590dce[_0x2d7430(0x2ff)](_0x1137d2),{'recursive':!0x0}),await this[_0x2d7430(0x30c)](_0x5539a6,_0x1137d2);}}}async[_0x13681c(0x2a2)](){const _0x4a5964=_0x13681c,_0x5529e5=this['C']['InstanceApiHooksReadF'],_0x248952=this['C']['InstanceApiHooksWriteF'],_0x5bdf47=_0x590dce[_0x4a5964(0x207)](this[_0x4a5964(0x233)],this['C'][_0x4a5964(0x1d2)],this[_0x4a5964(0x252)]['adminUserPath'],_0x5529e5),_0x5f2cfe=await this[_0x4a5964(0x216)](_0x5bdf47,null);for(const _0x5a4070 of _0x5f2cfe){const _0x59cfd4=_0x590dce[_0x4a5964(0x207)](_0x5bdf47,_0x5a4070,_0x5a4070+_0x4a5964(0x2d9));if(!this['fsExistsSync'](_0x59cfd4))continue;const _0x4ca54c=await this['fsReadFile'](_0x59cfd4,{'encoding':_0x4a5964(0x272)}),_0xaadb7=await this[_0x4a5964(0x2a1)](_0x4ca54c),_0x30c8d7=_0x590dce[_0x4a5964(0x207)](_0x5bdf47,_0x5a4070),_0x5799d3=_0xaadb7[_0x4a5964(0x2f6)]+'/'+_0xaadb7[_0x4a5964(0x2d0)]+'/'+_0xaadb7['collectionName']+'/'+_0xaadb7['apiId'][_0x4a5964(0x2a3)]();for(const _0x14e1b0 of _0xaadb7['preHooks']){const _0x32b4f0=_0x590dce[_0x4a5964(0x207)](_0x30c8d7,this['C'][_0x4a5964(0x1ff)],_0x14e1b0[_0x4a5964(0x1e4)]+_0x4a5964(0x27a)),_0x5d21df=_0x590dce['join'](this[_0x4a5964(0x25d)],this['C'][_0x4a5964(0x1d2)],_0x248952,_0x5799d3,this['C']['preHooks'],_0x14e1b0[_0x4a5964(0x1e4)]+'.ts');await this[_0x4a5964(0x1c8)](_0x590dce[_0x4a5964(0x2ff)](_0x5d21df),{'recursive':!0x0}),await this[_0x4a5964(0x30c)](_0x32b4f0,_0x5d21df);}for(const _0x472fe2 of _0xaadb7[_0x4a5964(0x219)]){const _0x27920b=_0x590dce['join'](_0x30c8d7,this['C'][_0x4a5964(0x219)],_0x472fe2[_0x4a5964(0x1e4)]+_0x4a5964(0x27a)),_0x40aa38=_0x590dce[_0x4a5964(0x207)](this[_0x4a5964(0x25d)],this['C']['src'],_0x248952,_0x5799d3,this['C'][_0x4a5964(0x219)],_0x472fe2['name']+_0x4a5964(0x27a));await this['fsMkDir'](_0x590dce[_0x4a5964(0x2ff)](_0x40aa38),{'recursive':!0x0}),await this[_0x4a5964(0x30c)](_0x27920b,_0x40aa38);}}}async['copySystemApiHooksToAnotherDir'](){const _0x1c38db=_0x13681c,_0x135979=this['C']['SystemApiHooksReadF'],_0x5ce7d3=this['C'][_0x1c38db(0x2f8)],_0x5aa4fd=_0x590dce[_0x1c38db(0x207)](this[_0x1c38db(0x233)],this['C'][_0x1c38db(0x1d2)],this['config'][_0x1c38db(0x29f)],_0x135979),_0x49575d=await this[_0x1c38db(0x216)](_0x5aa4fd,null);for(const _0x1cc718 of _0x49575d){const _0x4b10e0=_0x590dce[_0x1c38db(0x207)](_0x5aa4fd,_0x1cc718,_0x1cc718+_0x1c38db(0x2d9));if(!this['fsExistsSync'](_0x4b10e0))continue;const _0x324eb6=await this['fsReadFile'](_0x4b10e0,{'encoding':_0x1c38db(0x272)}),_0x14eec4=await this[_0x1c38db(0x2a1)](_0x324eb6),_0x3dbde3=_0x590dce['join'](_0x5aa4fd,_0x1cc718),_0x553272=_0x14eec4[_0x1c38db(0x2a5)][_0x1c38db(0x2a3)]();for(const _0x15cf8b of _0x14eec4[_0x1c38db(0x1ff)]){const _0x14eb4d=_0x590dce[_0x1c38db(0x207)](_0x3dbde3,this['C']['preHooks'],_0x15cf8b[_0x1c38db(0x1e4)]+_0x1c38db(0x27a)),_0x8962d2=_0x590dce[_0x1c38db(0x207)](this[_0x1c38db(0x25d)],this['C'][_0x1c38db(0x1d2)],_0x5ce7d3,_0x553272,this['C'][_0x1c38db(0x1ff)],_0x15cf8b[_0x1c38db(0x1e4)]+_0x1c38db(0x27a));await this[_0x1c38db(0x1c8)](_0x590dce[_0x1c38db(0x2ff)](_0x8962d2),{'recursive':!0x0}),await this[_0x1c38db(0x30c)](_0x14eb4d,_0x8962d2);}for(const _0x30676c of _0x14eec4['postHooks']){const _0xa25ad9=_0x590dce[_0x1c38db(0x207)](_0x3dbde3,this['C']['postHooks'],_0x30676c[_0x1c38db(0x1e4)]+_0x1c38db(0x27a)),_0x374462=_0x590dce[_0x1c38db(0x207)](this[_0x1c38db(0x25d)],this['C'][_0x1c38db(0x1d2)],_0x5ce7d3,_0x553272,this['C']['postHooks'],_0x30676c['name']+_0x1c38db(0x27a));await this[_0x1c38db(0x1c8)](_0x590dce['dirname'](_0x374462),{'recursive':!0x0}),await this[_0x1c38db(0x30c)](_0xa25ad9,_0x374462);}}}async[_0x13681c(0x316)](){const _0x4ac8e0=_0x13681c,_0x3b9baf=this['C'][_0x4ac8e0(0x2d3)],_0x58023d=this['C'][_0x4ac8e0(0x1fb)],_0x29f5a4=_0x590dce[_0x4ac8e0(0x207)](this[_0x4ac8e0(0x233)],this['C'][_0x4ac8e0(0x1d2)],this['config'][_0x4ac8e0(0x29f)],_0x3b9baf),_0x353913=await this[_0x4ac8e0(0x216)](_0x29f5a4,null);for(const _0x221d53 of _0x353913){const _0x4e77c2=_0x590dce['join'](_0x29f5a4,_0x221d53,_0x221d53+_0x4ac8e0(0x2d9));if(!this[_0x4ac8e0(0x20d)](_0x4e77c2))continue;const _0x36f2af=await this['fsReadFile'](_0x4e77c2,{'encoding':_0x4ac8e0(0x272)}),_0x2cc6ad=await this[_0x4ac8e0(0x2a1)](_0x36f2af);for(const _0x393b9d of _0x2cc6ad['versions']||[])if(!0x0===_0x393b9d[_0x4ac8e0(0x225)]){const _0x50180a=_0x590dce[_0x4ac8e0(0x207)](_0x29f5a4,_0x221d53,this['C'][_0x4ac8e0(0x24d)],_0x393b9d[_0x4ac8e0(0x2c7)],_0x393b9d[_0x4ac8e0(0x1e4)]+_0x4ac8e0(0x27a));let _0x2d7d76='',_0x377735='';_0x2cc6ad['apiCategory']===_0x49aa49[_0x4ac8e0(0x300)]?(_0x377735='instances',_0x2d7d76=_0x2cc6ad['instanceName']+'/'+_0x2cc6ad[_0x4ac8e0(0x2d0)]+'/'+_0x2cc6ad['collectionName']+'/'+_0x2cc6ad['instanceApiName'][_0x4ac8e0(0x2a3)]()):_0x2cc6ad['apiCategory']===_0x49aa49['THIRD_PARTY_APIS']?(_0x377735=_0x4ac8e0(0x1be),_0x2d7d76=_0x2cc6ad[_0x4ac8e0(0x251)]+'/'+_0x2cc6ad['tpInstalledApiName']):_0x2cc6ad[_0x4ac8e0(0x2b3)]===_0x49aa49['CUSTOM_APIS']?(_0x377735=_0x4ac8e0(0x1d7),_0x2d7d76=_0x2cc6ad[_0x4ac8e0(0x2d2)]):_0x2cc6ad[_0x4ac8e0(0x2b3)]===_0x49aa49[_0x4ac8e0(0x22c)]?(_0x377735=_0x4ac8e0(0x2c2),_0x2d7d76=_0x2cc6ad[_0x4ac8e0(0x1b5)][_0x4ac8e0(0x2a3)]()):_0x2cc6ad[_0x4ac8e0(0x2b3)]===_0x49aa49[_0x4ac8e0(0x1e9)]&&(_0x377735=_0x4ac8e0(0x1ec),_0x2d7d76=_0x2cc6ad[_0x4ac8e0(0x1e4)]);const _0x50a3e8=_0x590dce['join'](this[_0x4ac8e0(0x25d)],this['C'][_0x4ac8e0(0x1d2)],_0x58023d,_0x377735,_0x2d7d76+'.ts');await this['fsMkDir'](_0x590dce[_0x4ac8e0(0x2ff)](_0x50a3e8),{'recursive':!0x0}),await this[_0x4ac8e0(0x30c)](_0x50180a,_0x50a3e8);}}}async[_0x13681c(0x281)](){const _0x503390=_0x13681c,_0x157fd4=this['C'][_0x503390(0x1ed)],_0x2a0dea=this['C'][_0x503390(0x244)],_0x427a17=_0x590dce[_0x503390(0x207)](this[_0x503390(0x233)],this['C'][_0x503390(0x1d2)],this[_0x503390(0x252)][_0x503390(0x29f)],_0x157fd4),_0x22cc16=await this[_0x503390(0x216)](_0x427a17,null);for(const _0x17219d of _0x22cc16){const _0x1403d8=_0x590dce[_0x503390(0x207)](_0x427a17,_0x17219d,_0x17219d+'.yaml');if(!this[_0x503390(0x20d)](_0x1403d8))continue;const _0x56f4c9=await this['fsReadFile'](_0x1403d8,{'encoding':'utf8'}),_0x3b05fa=await this[_0x503390(0x2a1)](_0x56f4c9),_0x594848=_0x590dce[_0x503390(0x207)](_0x427a17,_0x17219d),_0x3b84d4=_0x3b05fa[_0x503390(0x2f6)]+'/'+_0x3b05fa[_0x503390(0x2d0)]+'/'+_0x3b05fa['collectionName'];for(const _0x5cd0b1 of _0x3b05fa[_0x503390(0x1ff)]){const _0x1c3c40=_0x590dce['join'](_0x594848,this['C'][_0x503390(0x1ff)],_0x5cd0b1[_0x503390(0x1e4)]+_0x503390(0x27a)),_0x24e939=_0x590dce['join'](this['projectDirectory'],this['C'][_0x503390(0x1d2)],_0x2a0dea,_0x3b84d4,this['C'][_0x503390(0x1ff)],_0x5cd0b1[_0x503390(0x1e4)]+'.ts');await this[_0x503390(0x1c8)](_0x590dce[_0x503390(0x2ff)](_0x24e939),{'recursive':!0x0}),await this[_0x503390(0x30c)](_0x1c3c40,_0x24e939);}for(const _0x331a51 of _0x3b05fa['postHooks']){const _0x2e9dde=_0x590dce[_0x503390(0x207)](_0x594848,this['C'][_0x503390(0x219)],_0x331a51[_0x503390(0x1e4)]+_0x503390(0x27a)),_0x42362e=_0x590dce['join'](this[_0x503390(0x25d)],this['C'][_0x503390(0x1d2)],_0x2a0dea,_0x3b84d4,this['C'][_0x503390(0x219)],_0x331a51[_0x503390(0x1e4)]+_0x503390(0x27a));await this[_0x503390(0x1c8)](_0x590dce['dirname'](_0x42362e),{'recursive':!0x0}),await this[_0x503390(0x30c)](_0x2e9dde,_0x42362e);}}}async['copyDatabaseHooksToAnotherDir'](){const _0x10910a=_0x13681c,_0x33eca8=this['C']['DatabaseHooksReadF'],_0x1bb4fb=this['C'][_0x10910a(0x21a)],_0x4a4034=_0x590dce[_0x10910a(0x207)](this['appRoot'],this['C'][_0x10910a(0x1d2)],this['config'][_0x10910a(0x29f)],_0x33eca8),_0x18c420=await this[_0x10910a(0x216)](_0x4a4034,null);for(const _0x14b420 of _0x18c420){const _0x14af01=_0x590dce['join'](_0x4a4034,_0x14b420,_0x14b420+_0x10910a(0x2d9));if(!this[_0x10910a(0x20d)](_0x14af01))continue;const _0x4b042b=await this[_0x10910a(0x254)](_0x14af01,{'encoding':_0x10910a(0x272)}),_0x2917c8=await this[_0x10910a(0x2a1)](_0x4b042b),_0x4b0a18=_0x590dce[_0x10910a(0x207)](_0x4a4034,_0x14b420),_0x4a2ca1=_0x2917c8[_0x10910a(0x2f6)]+'/'+_0x2917c8[_0x10910a(0x2d0)];for(const _0x47ce6 of _0x2917c8[_0x10910a(0x1ff)]){const _0xba21c0=_0x590dce[_0x10910a(0x207)](_0x4b0a18,this['C'][_0x10910a(0x1ff)],_0x47ce6[_0x10910a(0x1e4)]+_0x10910a(0x27a)),_0x34663d=_0x590dce[_0x10910a(0x207)](this[_0x10910a(0x25d)],this['C'][_0x10910a(0x1d2)],_0x1bb4fb,_0x4a2ca1,this['C'][_0x10910a(0x1ff)],_0x47ce6[_0x10910a(0x1e4)]+_0x10910a(0x27a));await this[_0x10910a(0x1c8)](_0x590dce['dirname'](_0x34663d),{'recursive':!0x0}),await this[_0x10910a(0x30c)](_0xba21c0,_0x34663d);}for(const _0x1e73b6 of _0x2917c8[_0x10910a(0x219)]){const _0x32ab24=_0x590dce[_0x10910a(0x207)](_0x4b0a18,this['C']['postHooks'],_0x1e73b6[_0x10910a(0x1e4)]+'.ts'),_0x17cf1b=_0x590dce[_0x10910a(0x207)](this[_0x10910a(0x25d)],this['C']['src'],_0x1bb4fb,_0x4a2ca1,this['C'][_0x10910a(0x219)],_0x1e73b6['name']+_0x10910a(0x27a));await this['fsMkDir'](_0x590dce[_0x10910a(0x2ff)](_0x17cf1b),{'recursive':!0x0}),await this['fsLink'](_0x32ab24,_0x17cf1b);}}}async[_0x13681c(0x26d)](){const _0x27a47c=_0x13681c,_0x1397fd=this['C'][_0x27a47c(0x31c)],_0x4eee4e=this['C'][_0x27a47c(0x273)],_0x517855=_0x590dce[_0x27a47c(0x207)](this[_0x27a47c(0x233)],this['C']['src'],this[_0x27a47c(0x252)][_0x27a47c(0x29f)],_0x1397fd),_0x16d1c6=await this[_0x27a47c(0x216)](_0x517855,null);for(const _0x21f7ae of _0x16d1c6){const _0x170ab9=_0x590dce['join'](_0x517855,_0x21f7ae,_0x21f7ae+_0x27a47c(0x2d9));if(!this['fsExistsSync'](_0x170ab9))continue;const _0x23f08a=await this[_0x27a47c(0x254)](_0x170ab9,{'encoding':'utf8'}),_0x4436e2=await this[_0x27a47c(0x2a1)](_0x23f08a),_0x2074e2=_0x590dce[_0x27a47c(0x207)](_0x517855,_0x21f7ae),_0x49efce=''+_0x4436e2[_0x27a47c(0x2f6)];for(const _0x2eda3e of _0x4436e2[_0x27a47c(0x1ff)]){const _0x5555b2=_0x590dce[_0x27a47c(0x207)](_0x2074e2,this['C'][_0x27a47c(0x1ff)],_0x2eda3e[_0x27a47c(0x1e4)]+_0x27a47c(0x27a)),_0x337c7a=_0x590dce[_0x27a47c(0x207)](this[_0x27a47c(0x25d)],this['C'][_0x27a47c(0x1d2)],_0x4eee4e,_0x49efce,this['C'][_0x27a47c(0x1ff)],_0x2eda3e[_0x27a47c(0x1e4)]+_0x27a47c(0x27a));await this[_0x27a47c(0x1c8)](_0x590dce[_0x27a47c(0x2ff)](_0x337c7a),{'recursive':!0x0}),await this[_0x27a47c(0x30c)](_0x5555b2,_0x337c7a);}for(const _0xb65038 of _0x4436e2[_0x27a47c(0x219)]){const _0x229bb7=_0x590dce[_0x27a47c(0x207)](_0x2074e2,this['C']['postHooks'],_0xb65038[_0x27a47c(0x1e4)]+_0x27a47c(0x27a)),_0x57f067=_0x590dce['join'](this['projectDirectory'],this['C'][_0x27a47c(0x1d2)],_0x4eee4e,_0x49efce,this['C'][_0x27a47c(0x219)],_0xb65038[_0x27a47c(0x1e4)]+_0x27a47c(0x27a));await this[_0x27a47c(0x1c8)](_0x590dce[_0x27a47c(0x2ff)](_0x57f067),{'recursive':!0x0}),await this[_0x27a47c(0x30c)](_0x229bb7,_0x57f067);}}}async[_0x13681c(0x302)](_0x153dc1,_0x52f720){return new Promise((_0x3a15c1,_0xd4ab3a)=>{const _0x3bc374=a0_0x2b32,_0x5e8cb6=(0x0,_0x210213[_0x3bc374(0x1cf)])(_0x153dc1,_0x52f720,{'shell':!0x0,'cwd':this[_0x3bc374(0x233)]});_0x5e8cb6['on'](_0x3bc374(0x23f),_0x281477=>{const _0xb68a53=_0x3bc374;if(0x0===_0x281477)setTimeout(_0x3a15c1,0x3e8);else{const _0x144687='\x27'+_0x153dc1+'\x20'+_0x52f720[_0xb68a53(0x207)]('\x20')+_0xb68a53(0x1e2)+_0x281477+'.';_0xd4ab3a(new Error(_0x144687));}}),_0x5e8cb6['on']('error',_0x2ec18e=>{const _0x403e35=_0x3bc374;console[_0x403e35(0x1cc)]('Failed\x20to\x20start\x20the\x20npm\x20process:\x20'+_0x2ec18e[_0x403e35(0x221)]),_0xd4ab3a(_0x2ec18e);});});}async[_0x13681c(0x2a1)](_0x2f9411){const _0x5707c1=_0x13681c;return(await Promise[_0x5707c1(0x1d8)]()[_0x5707c1(0x243)](()=>_0x192c04(0x59)))[_0x5707c1(0x2ac)](_0x2f9411);}async[_0x13681c(0x256)](){const _0x31e2e9=_0x13681c;this[_0x31e2e9(0x2e2)]||await this[_0x31e2e9(0x288)]();const _0x44fee7=await Promise[_0x31e2e9(0x1d8)]()[_0x31e2e9(0x243)](()=>_0x192c04(0xe7)),_0x1e5824=_0x590dce[_0x31e2e9(0x207)](this[_0x31e2e9(0x233)]),_0x3db0e7=_0x590dce[_0x31e2e9(0x207)](this[_0x31e2e9(0x233)],this['C'][_0x31e2e9(0x1d2)]),_0x3ed664=_0x429f1d=>{const _0x2c5928=_0x31e2e9,_0xbd60a8=_0x590dce[_0x2c5928(0x2f7)](_0x1e5824,_0x429f1d);return!(_0xbd60a8&&!_0xbd60a8[_0x2c5928(0x25a)]('.')&&!_0xbd60a8[_0x2c5928(0x2b5)]('~')&&_0xbd60a8['startsWith'](this['C'][_0x2c5928(0x1d2)]));},_0x5b4393=_0x44fee7[_0x31e2e9(0x266)](_0x3db0e7,{'persistent':!0x0,'ignoreInitial':!0x0,'depth':0x1/0x0,'awaitWriteFinish':{'stabilityThreshold':0xc8,'pollInterval':0x64}}),_0x4dbcd6=async(_0x116c2e,_0x2f4941)=>{const _0x2d0011=_0x31e2e9;try{if(this[_0x2d0011(0x314)])return;const _0x2e5ee7=_0x590dce[_0x2d0011(0x2f7)](_0x1e5824,_0x2f4941);if(!_0x2f4941||_0x3ed664(_0x2f4941))return;console[_0x2d0011(0x27e)]('✓\x20Send\x20:\x20['+this['getCurrentTime']()+_0x2d0011(0x2fa)+_0x116c2e+_0x2d0011(0x1e7)+_0x2e5ee7);const _0x26c1eb=this[_0x2d0011(0x1db)](_0x2e5ee7),_0xd3c27e=this[_0x2d0011(0x2eb)](_0x26c1eb,_0x2e5ee7);if(!_0xd3c27e)return;let _0x41b33e,_0x57713c=!0x1;if(this[_0x2d0011(0x20d)](_0xd3c27e)){if(this[_0x2d0011(0x20d)](_0x590dce[_0x2d0011(0x207)](_0x1e5824,_0x2e5ee7))){const _0x20af55=_0x590dce[_0x2d0011(0x207)](_0x590dce[_0x2d0011(0x2a6)]+this['C'][_0x2d0011(0x24c)],_0xd3c27e);_0x41b33e=await this[_0x2d0011(0x1e0)](_0xd3c27e,_0x20af55),this['sendToServer']({'objType':_0x73f543[_0x2d0011(0x1bc)],'localClientWSReqRes':{'eventType':_0x218385[_0x2d0011(0x1fe)],'folderChangedOnLocalSystem':_0x41b33e,'category':_0x26c1eb,'shouldReplaceAllItemsOfCategory':_0x57713c}});}else this[_0x2d0011(0x293)]();}else{const _0x1945d4=this[_0x2d0011(0x20e)](_0x26c1eb,_0x2e5ee7),_0x19b31d=_0x590dce[_0x2d0011(0x207)](_0x590dce[_0x2d0011(0x2a6)]+this['C'][_0x2d0011(0x24c)],_0x1945d4);_0x41b33e=await this[_0x2d0011(0x1e0)](_0x1945d4,_0x19b31d),_0x57713c=!0x0,this[_0x2d0011(0x25b)](_0x41b33e,_0x26c1eb,_0x57713c);}}catch(_0x1d2fbc){console[_0x2d0011(0x1cc)](_0x2d0011(0x294),_0x1d2fbc);}};_0x5b4393['on']('add',_0x5581b2=>_0x4dbcd6(_0x31e2e9(0x1ee),_0x5581b2))['on']('change',_0x2db03e=>_0x4dbcd6(_0x31e2e9(0x2ad),_0x2db03e))['on'](_0x31e2e9(0x205),_0x8d390f=>_0x4dbcd6(_0x31e2e9(0x205),_0x8d390f))['on'](_0x31e2e9(0x29c),_0x530aa3=>_0x4dbcd6('addDir',_0x530aa3))['on'](_0x31e2e9(0x23b),_0x4e503a=>_0x4dbcd6(_0x31e2e9(0x23b),_0x4e503a))['on'](_0x31e2e9(0x1cc),_0x28e51e=>console[_0x31e2e9(0x1cc)](_0x31e2e9(0x1bd),_0x28e51e)),this[_0x31e2e9(0x234)]=_0x5b4393,0x1===this[_0x31e2e9(0x248)]&&(console[_0x31e2e9(0x27e)](_0x31e2e9(0x1d3)),console[_0x31e2e9(0x27e)](this[_0x31e2e9(0x265)]+'✳️Open\x20folder\x20in\x20IDE\x20:\x20'+this[_0x31e2e9(0x25d)]+this[_0x31e2e9(0x2a0)]));}[_0x13681c(0x2af)](){const _0x13d509=_0x13681c,_0x10fc4b=new Date();return String(_0x10fc4b[_0x13d509(0x28b)]())[_0x13d509(0x296)](0x2,'0')+':'+String(_0x10fc4b['getMinutes']())['padStart'](0x2,'0')+':'+String(_0x10fc4b[_0x13d509(0x1dc)]())[_0x13d509(0x296)](0x2,'0');}[_0x13681c(0x29b)](_0x56c681,_0x1303ff,_0x17b00b){const _0x5c7a10=_0x13681c;this[_0x5c7a10(0x2a9)]({'objType':_0x73f543['LC_DATA_REQ_RES'],'localClientWSReqRes':{'eventType':_0x218385[_0x5c7a10(0x1fe)],'folderChangedOnLocalSystem':_0x56c681,'category':_0x1303ff,'shouldReplaceAllItemsOfCategory':_0x17b00b}});}[_0x13681c(0x291)](_0x3b0664,_0x3ab2e8){let _0x44ada1=null;return function(..._0x3e2dd9){clearTimeout(_0x44ada1),_0x44ada1=setTimeout(()=>{const _0x7acbe1=a0_0x2b32;_0x3b0664[_0x7acbe1(0x287)](this,_0x3e2dd9);},_0x3ab2e8);};}['getCategoryOfPath'](_0x14440c){const _0xb6fb91=_0x13681c,_0x2a6016=_0x590dce[_0xb6fb91(0x207)](this['C']['src'],this[_0xb6fb91(0x252)][_0xb6fb91(0x29f)]);if(!_0x14440c['startsWith'](_0x2a6016))return;const _0x2133ff=_0x14440c[_0xb6fb91(0x290)](_0x590dce['sep'])[_0xb6fb91(0x220)](_0x3b7917=>!!_0x3b7917)[0x2];for(const _0x35dc51 in _0x56dab4)if(_0x56dab4[_0x35dc51]===_0x2133ff)return _0x2133ff;}[_0x13681c(0x2eb)](_0x1e6f85,_0x3694f8){const _0x260cbc=_0x13681c,_0x37d7f7=_0x3694f8[_0x260cbc(0x290)](_0x590dce[_0x260cbc(0x2a6)]);let _0x4fb93f='';return _0x4fb93f=_0x1e6f85===_0x56dab4['THIRD_PARTY_APIS']?_0x37d7f7[_0x260cbc(0x21f)](0x0,0x6)[_0x260cbc(0x207)](_0x590dce[_0x260cbc(0x2a6)]):_0x37d7f7['slice'](0x0,0x4)['join'](_0x590dce[_0x260cbc(0x2a6)]),_0x4fb93f;}[_0x13681c(0x20e)](_0xec22e8,_0xe341e0){const _0xd6ea0e=_0x13681c;return _0xe341e0[_0xd6ea0e(0x290)](_0x590dce[_0xd6ea0e(0x2a6)])['slice'](0x0,0x3)['join'](_0x590dce[_0xd6ea0e(0x2a6)]);}async[_0x13681c(0x1e0)](_0x18f5cd,_0x31bd0b){const _0x2e4ada={},_0x18a5be=this;return await async function _0x5bcb65(_0x4d0fee){const _0x50e8ac=a0_0x2b32,_0x28bfdc=await _0x18a5be['readDirCustom'](_0x4d0fee,{'withFileTypes':!0x0});for(const _0x23346f of _0x28bfdc){const _0x5e1c7c=_0x590dce['join'](_0x4d0fee,_0x23346f[_0x50e8ac(0x1e4)]),_0x39c4a3=_0x590dce[_0x50e8ac(0x1cb)](_0x5e1c7c);if(_0x23346f['isDirectory']())await _0x5bcb65(_0x39c4a3);else{const _0x3f6783=_0x517ed9[_0x50e8ac(0x1c6)](_0x39c4a3),_0x2778f2=_0x590dce['relative'](_0x18f5cd,_0x39c4a3),_0xaa56c6=_0x590dce['join'](_0x31bd0b,_0x2778f2)[_0x50e8ac(0x290)](_0x590dce[_0x50e8ac(0x2a6)])[_0x50e8ac(0x207)](_0x590dce[_0x50e8ac(0x228)][_0x50e8ac(0x2a6)]);_0x2e4ada[_0xaa56c6]={'encoding':_0x50e8ac(0x1c2),'content':_0x3f6783[_0x50e8ac(0x260)](_0x50e8ac(0x1c2))};}}}(_0x18f5cd),_0x2e4ada;}[_0x13681c(0x2a9)](_0x3f2729){const _0x4d7b9d=_0x13681c;try{this['ws'][_0x4d7b9d(0x224)](JSON[_0x4d7b9d(0x21c)](_0x3f2729));}catch(_0x5112ae){console[_0x4d7b9d(0x27e)](_0x5112ae);}}async[_0x13681c(0x22a)](){const _0x412c02=_0x13681c;console[_0x412c02(0x27e)](_0x412c02(0x263));const _0x9cbb73=this[_0x412c02(0x252)][_0x412c02(0x1d5)],_0xe16287=this[_0x412c02(0x252)][_0x412c02(0x29f)],_0x3c8f45=this[_0x412c02(0x252)][_0x412c02(0x1e1)];this['ws']=new WebSocket(_0x3c8f45+_0x412c02(0x258)+_0x9cbb73+_0x412c02(0x2f1)+_0xe16287);const _0x1afca1=[],_0x63518e=()=>{const _0x222f8e=_0x412c02;this[_0x222f8e(0x2a9)]({'objType':_0x73f543[_0x222f8e(0x2aa)],'onEvents':[{'eventType':_0x222f8e(0x2c9)}]});};function _0x50a419(_0x397ed1){const _0x1677d6=_0x412c02;_0x397ed1['onopen']=null,_0x397ed1[_0x1677d6(0x278)]=null,_0x397ed1[_0x1677d6(0x2e5)]=null,_0x397ed1['onclose']=null,_0x397ed1[_0x1677d6(0x23f)]();}this['ws'][_0x412c02(0x278)]=async _0xdb1879=>{const _0x4b58f0=_0x412c02,_0x4198d6=JSON[_0x4b58f0(0x277)](_0xdb1879[_0x4b58f0(0x1ba)]);if(_0x4198d6[_0x4b58f0(0x1ce)]===_0x73f543['CONNECTED']&&_0x4198d6[_0x4b58f0(0x1d4)][_0x4b58f0(0x2c6)])_0x63518e();else{if(_0x4198d6[_0x4b58f0(0x1ce)]===_0x73f543[_0x4b58f0(0x2aa)]){if(_0x4198d6?.['response']?.[_0x4b58f0(0x29e)]?.[_0x4b58f0(0x202)]){for(const _0x2c1d1d of _0x4198d6['response']['validOnEvents'])_0x1afca1[_0x4b58f0(0x24a)](_0x2c1d1d);console[_0x4b58f0(0x27e)](_0x4b58f0(0x261)),this[_0x4b58f0(0x234)]||await this[_0x4b58f0(0x256)](),this['syncAllDataWithServer']();}else{const _0x4bb87c=_0x4198d6[_0x4b58f0(0x1d4)]?.[_0x4b58f0(0x2b8)]?.[0x0]?.['errors']?.[0x0]?.[_0x4b58f0(0x221)]||'Error\x20while\x20connecting\x20to\x20WS\x20server.';console[_0x4b58f0(0x27e)]('❌\x20'+_0x4bb87c),await this['shutdownAndExit'](0x1);}}else await this[_0x4b58f0(0x28c)](_0x4198d6);}},this['ws'][_0x412c02(0x28a)]=_0x291b03=>{const _0x4e0ddb=_0x412c02;console[_0x4e0ddb(0x27e)](_0x4e0ddb(0x259)),_0x50a419(this['ws']),setTimeout(this[_0x4e0ddb(0x22a)][_0x4e0ddb(0x282)](this),0xbb8);},this['ws'][_0x412c02(0x2e5)]=()=>{const _0x1afeea=_0x412c02;_0x50a419(this['ws']),setTimeout(this['connectToServerViaWS'][_0x1afeea(0x282)](this),0xbb8);};}[_0x13681c(0x293)](){const _0x363c66=_0x13681c;this[_0x363c66(0x2a9)]({'objType':_0x73f543['LC_DATA_REQ_RES'],'localClientWSReqRes':{'eventType':_0x218385['LC_SEND_ALL_DATA']}});}async[_0x13681c(0x28c)](_0x35afd6){const _0x2e4d46=_0x13681c;if(this['EL']&&_0x35afd6[_0x2e4d46(0x1d4)]['eventType']!==_0x218385[_0x2e4d46(0x1f8)]&&console[_0x2e4d46(0x27e)](_0x35afd6),_0x35afd6[_0x2e4d46(0x1ce)]===_0x73f543[_0x2e4d46(0x1bc)]){if(_0x35afd6[_0x2e4d46(0x2db)]?.['length'])return void console[_0x2e4d46(0x1cc)](_0x35afd6[_0x2e4d46(0x2db)]);if(_0x35afd6['response'][_0x2e4d46(0x2bd)]===_0x218385[_0x2e4d46(0x1f8)]){console['log'](_0x2e4d46(0x2e0)+this['getCurrentTime']()+']'),this[_0x2e4d46(0x248)]++;try{this[_0x2e4d46(0x234)]&&(await this[_0x2e4d46(0x234)][_0x2e4d46(0x23f)](),this[_0x2e4d46(0x234)]=null);}catch(_0x181674){console[_0x2e4d46(0x24f)](_0x2e4d46(0x26f),_0x181674);}_0x517ed9['rmSync'](_0x590dce[_0x2e4d46(0x207)](this['appRoot'],this['C'][_0x2e4d46(0x1d2)]),{'recursive':!0x0,'force':!0x0}),this[_0x2e4d46(0x307)](_0x590dce[_0x2e4d46(0x207)](this[_0x2e4d46(0x233)],this['C'][_0x2e4d46(0x1d2)]),{'recursive':!0x0});const _0xd334fd=_0x35afd6[_0x2e4d46(0x1d4)][_0x2e4d46(0x1c3)];await this[_0x2e4d46(0x2c3)](_0xd334fd,this[_0x2e4d46(0x233)]);try{await this[_0x2e4d46(0x256)]();}catch(_0x2c5844){console[_0x2e4d46(0x1cc)](_0x2e4d46(0x2ae),_0x2c5844);}}else{if(_0x35afd6[_0x2e4d46(0x1d4)][_0x2e4d46(0x2bd)]===_0x218385['LC_DATA_MODIFIED_IN_DATABASE']){const _0xea16af=_0x35afd6[_0x2e4d46(0x1d4)][_0x2e4d46(0x1c3)];await this[_0x2e4d46(0x2c3)](_0xea16af[_0x2e4d46(0x1ba)],this[_0x2e4d46(0x233)]);}}!0x0===this[_0x2e4d46(0x2e2)]?await this['copyFilesToProjectDir'](!0x1):await this[_0x2e4d46(0x21e)](!0x0);}}async[_0x13681c(0x2c3)](_0x14a52c,_0x368256){const _0x46e741=_0x13681c;this[_0x46e741(0x314)]=!0x0;let _0x570597=[];const _0x18e8b1=async()=>{const _0x29a60b=_0x46e741;_0x570597[_0x29a60b(0x202)]>0x0&&(await Promise[_0x29a60b(0x2a4)](_0x570597),_0x570597=[]);};for(const [_0x1d1693,_0x37a989]of Object[_0x46e741(0x200)](_0x14a52c)){if(!_0x1d1693[_0x46e741(0x25a)]('/'+this['C'][_0x46e741(0x24c)]+'/'+this['C'][_0x46e741(0x1d2)]))continue;const _0x3f8bda=_0x37a989,_0x2cd06c=_0x1d1693[_0x46e741(0x214)]('/'+this['C'][_0x46e741(0x24c)],'');if(this[_0x46e741(0x210)][_0x2cd06c])continue;const _0x2acc07=_0x590dce['join'](_0x368256,_0x2cd06c['replace'](/^\//,'')),_0x3d4d1d=_0x590dce[_0x46e741(0x2ff)](_0x2acc07),_0x3af6c6=async()=>{const _0x7f57fd=_0x46e741;await this[_0x7f57fd(0x1c8)](_0x3d4d1d,{'recursive':!0x0}),await this[_0x7f57fd(0x2c4)](_0x2acc07,_0x3f8bda[_0x7f57fd(0x312)],{'encoding':'base64'}),this['EL']&&console[_0x7f57fd(0x27e)](_0x7f57fd(0x20a)+this['getCurrentTime']()+_0x7f57fd(0x1e7)+_0x2acc07[_0x7f57fd(0x214)](_0x368256,''));};_0x570597[_0x46e741(0x24a)](_0x3af6c6()),_0x570597['length']>=0x3e8&&await _0x18e8b1();}await _0x18e8b1(),setTimeout(()=>{const _0x58f5c3=_0x46e741;this[_0x58f5c3(0x314)]=!0x1;},0x3e8);}[_0x13681c(0x285)](_0x2accf){const _0x1ff194=_0x13681c,_0x23b90b=this['normalizePath'](_0x2accf);if(!this['fsExistsSync'](_0x23b90b))return!0x1;const _0x4354f6=_0x517ed9[_0x1ff194(0x249)](_0x23b90b);let _0x2764ad=!0x0;for(const _0x43bcef of _0x4354f6){const _0x2fcd5a=_0x590dce[_0x1ff194(0x207)](_0x23b90b,_0x43bcef);_0x517ed9['statSync'](_0x2fcd5a)['isDirectory']()&&this[_0x1ff194(0x285)](_0x2fcd5a)||(_0x2764ad=!0x1);}return!!_0x2764ad&&(_0x517ed9[_0x1ff194(0x2b9)](_0x23b90b),!0x0);}async['readDirCustom'](_0x2c0ef6,_0x22e16f){const _0x5d226d=_0x13681c;return this[_0x5d226d(0x20d)](_0x2c0ef6)?await this[_0x5d226d(0x1e6)](_0x2c0ef6,_0x22e16f):[];}[_0x13681c(0x2b2)](_0x21c1f8){const _0x2acf5f=_0x13681c;return _0x590dce[_0x2acf5f(0x1cb)](_0x21c1f8);}[_0x13681c(0x20d)](_0x237cbd){const _0xe9c2ee=_0x13681c,_0x2151f4=_0x590dce[_0xe9c2ee(0x1cb)](_0x237cbd);return _0x517ed9['existsSync'](_0x2151f4);}async[_0x13681c(0x1e6)](_0x58b4ab,_0x20ee14){const _0x44bfeb=_0x13681c,_0x12f73d=_0x590dce[_0x44bfeb(0x1cb)](_0x58b4ab);return await _0x517ed9[_0x44bfeb(0x247)][_0x44bfeb(0x231)](_0x12f73d,_0x20ee14);}async[_0x13681c(0x1c8)](_0x3b2938,_0x294b2e){const _0xf003ed=_0x13681c,_0x31771d=_0x590dce['normalize'](_0x3b2938);return await _0x517ed9['promises'][_0xf003ed(0x1da)](_0x31771d,_0x294b2e);}[_0x13681c(0x307)](_0x2c0ed9,_0x565176){const _0x3aaddc=_0x13681c,_0x1847b0=_0x590dce['normalize'](_0x2c0ed9);return _0x517ed9[_0x3aaddc(0x22b)](_0x1847b0,_0x565176);}async[_0x13681c(0x254)](_0x5abb10,_0x15df65){const _0x1432a7=_0x13681c,_0x5d6e42=_0x590dce[_0x1432a7(0x1cb)](_0x5abb10);return await _0x517ed9[_0x1432a7(0x247)][_0x1432a7(0x1dd)](_0x5d6e42,_0x15df65);}async['fsWriteFile'](_0x5e2b2a,_0x25efaa,_0x5a4d48){const _0x32ff0c=_0x13681c,_0x181648=_0x590dce['normalize'](_0x5e2b2a);return await _0x517ed9[_0x32ff0c(0x247)]['writeFile'](_0x181648,_0x25efaa,_0x5a4d48);}async[_0x13681c(0x30c)](_0x489a98,_0x26a903){const _0x1bafa8=_0x13681c,_0x2e9f2a=_0x590dce['normalize'](_0x489a98),_0x49254b=_0x590dce[_0x1bafa8(0x1cb)](_0x26a903);try{return await _0x517ed9[_0x1bafa8(0x247)][_0x1bafa8(0x240)](_0x2e9f2a,_0x49254b);}catch(_0x35e666){console[_0x1bafa8(0x24f)](_0x35e666);}}async['shutdownAndExit'](_0x24cf56=0x0){const _0x44cf26=_0x13681c;if(!this[_0x44cf26(0x2d4)]){this[_0x44cf26(0x2d4)]=!0x0;try{this[_0x44cf26(0x234)]&&await this[_0x44cf26(0x234)][_0x44cf26(0x23f)]();}catch(_0x583464){console[_0x44cf26(0x1cc)](_0x44cf26(0x23d),_0x583464);}finally{setTimeout(()=>process[_0x44cf26(0x2cd)](_0x24cf56),0xc8);}}}[_0x13681c(0x276)](){const _0xfb8024=_0x13681c;process['on'](_0xfb8024(0x235),()=>{const _0x181a9f=_0xfb8024;console[_0x181a9f(0x27e)](_0x181a9f(0x1b4)),this[_0x181a9f(0x246)](0x0);}),process['on'](_0xfb8024(0x2df),()=>{const _0x488efa=_0xfb8024;console[_0x488efa(0x27e)](_0x488efa(0x22f)),this[_0x488efa(0x246)](0x0);}),process['on']('beforeExit',_0x676452=>{const _0x45fcc2=_0xfb8024;console[_0x45fcc2(0x27e)](_0x45fcc2(0x250),_0x676452);}),process['on'](_0xfb8024(0x2cd),_0x46ba72=>{const _0x16edf3=_0xfb8024;console[_0x16edf3(0x27e)](_0x16edf3(0x2cd),_0x46ba72);}),process['on'](_0xfb8024(0x2e7),_0x8691c7=>{const _0x3e92d2=_0xfb8024;console[_0x3e92d2(0x1cc)](_0x3e92d2(0x2e7),_0x8691c7),this[_0x3e92d2(0x246)](0x1);}),process['on'](_0xfb8024(0x2dd),_0x5d2b85=>{const _0x42fb14=_0xfb8024;console[_0x42fb14(0x1cc)](_0x42fb14(0x2dd),_0x5d2b85),this[_0x42fb14(0x246)](0x1);});}}()[_0x13681c(0x20f)]()['then'](),function(_0x420e44){const _0x492c8f=_0x13681c;_0x420e44[_0x492c8f(0x300)]=_0x492c8f(0x300),_0x420e44[_0x492c8f(0x23e)]=_0x492c8f(0x23e),_0x420e44['CUSTOM_APIS']='CUSTOM_APIS',_0x420e44[_0x492c8f(0x22c)]=_0x492c8f(0x22c),_0x420e44[_0x492c8f(0x1e9)]=_0x492c8f(0x1e9);}(_0x49aa49=_0x2b6068['OW']||(_0x2b6068['OW']={})),function(_0x148fa6){const _0x2620d8=_0x13681c;_0x148fa6[_0x2620d8(0x2aa)]=_0x2620d8(0x2aa),_0x148fa6[_0x2620d8(0x25e)]=_0x2620d8(0x25e),_0x148fa6[_0x2620d8(0x2ba)]=_0x2620d8(0x2ba),_0x148fa6[_0x2620d8(0x2c8)]='UNKNOWN',_0x148fa6['TOKEN_VALIDATION']=_0x2620d8(0x226),_0x148fa6[_0x2620d8(0x1c1)]='NOTIFICATION',_0x148fa6[_0x2620d8(0x1bc)]=_0x2620d8(0x1bc);}(_0x73f543||(_0x73f543={})),function(_0x4466fe){const _0x34aa7b=_0x13681c;_0x4466fe[_0x34aa7b(0x1f8)]=_0x34aa7b(0x1f8),_0x4466fe[_0x34aa7b(0x26b)]=_0x34aa7b(0x26b),_0x4466fe[_0x34aa7b(0x1fe)]=_0x34aa7b(0x1fe);}(_0x218385||(_0x218385={})),(_0x234e0e=_0x2b6068['kR']||(_0x2b6068['kR']={}))[_0x13681c(0x26e)]=_0x13681c(0x26e),_0x234e0e[_0x13681c(0x26c)]='PUT',_0x234e0e[_0x13681c(0x30a)]=_0x13681c(0x30a),_0x234e0e[_0x13681c(0x2e3)]=_0x13681c(0x2e3),_0x234e0e[_0x13681c(0x1de)]='DELETE_ALL',(_0x3b06dd=_0x2b6068['xu']||(_0x2b6068['xu']={}))[_0x13681c(0x1e3)]=_0x13681c(0x20b),_0x3b06dd[_0x13681c(0x2d8)]=_0x13681c(0x1c0),_0x3b06dd[_0x13681c(0x236)]='am_db_masters',_0x3b06dd[_0x13681c(0x1f3)]=_0x13681c(0x2fe),_0x3b06dd[_0x13681c(0x2e8)]=_0x13681c(0x2da),_0x3b06dd['InstanceApiHooks']=_0x13681c(0x2fc),_0x3b06dd[_0x13681c(0x2d6)]='am_instance_hooks',_0x3b06dd[_0x13681c(0x297)]=_0x13681c(0x1c9),_0x3b06dd[_0x13681c(0x222)]='am_collection_hooks',_0x3b06dd[_0x13681c(0x269)]=_0x13681c(0x203),_0x3b06dd[_0x13681c(0x212)]=_0x13681c(0x2ee),_0x3b06dd['I18Ns']='am_i18ns',_0x3b06dd[_0x13681c(0x22e)]=_0x13681c(0x283),_0x3b06dd['SystemApiHooks']=_0x13681c(0x2f3),_0x3b06dd['am_tp_api_settings']='am_tp_api_settings',_0x3b06dd[_0x13681c(0x30d)]=_0x13681c(0x30d),_0x3b06dd[_0x13681c(0x2c5)]='am_tp_api_versions',_0x3b06dd[_0x13681c(0x1c5)]=_0x13681c(0x1ef),_0x3b06dd[_0x13681c(0x1df)]='am_database_migrations',_0x3b06dd[_0x13681c(0x289)]=_0x13681c(0x280),_0x3b06dd[_0x13681c(0x204)]=_0x13681c(0x2be),_0x3b06dd['UIMakerStyles']=_0x13681c(0x237),_0x3b06dd[_0x13681c(0x2ed)]=_0x13681c(0x2cc),function(_0x25579d){const _0x56cd3e=_0x13681c;_0x25579d[_0x56cd3e(0x1cd)]=_0x56cd3e(0x1b8),_0x25579d['DB_MIGRATIONS']='Database\x20migrations',_0x25579d['PROCESS_INITIALIZERS']=_0x56cd3e(0x21d),_0x25579d[_0x56cd3e(0x309)]=_0x56cd3e(0x2dc),_0x25579d[_0x56cd3e(0x2f0)]=_0x56cd3e(0x2b7),_0x25579d[_0x56cd3e(0x255)]=_0x56cd3e(0x2c1),_0x25579d[_0x56cd3e(0x1f7)]=_0x56cd3e(0x279),_0x25579d[_0x56cd3e(0x268)]=_0x56cd3e(0x2bf),_0x25579d[_0x56cd3e(0x30b)]=_0x56cd3e(0x305),_0x25579d[_0x56cd3e(0x2ea)]='Instance\x20API\x20settings',_0x25579d[_0x56cd3e(0x1f1)]=_0x56cd3e(0x269),_0x25579d[_0x56cd3e(0x1b6)]=_0x56cd3e(0x212),_0x25579d[_0x56cd3e(0x315)]=_0x56cd3e(0x319),_0x25579d[_0x56cd3e(0x1fa)]=_0x56cd3e(0x1f5),_0x25579d[_0x56cd3e(0x257)]=_0x56cd3e(0x2b4),_0x25579d[_0x56cd3e(0x23e)]='Third\x20party\x20APIs',_0x25579d[_0x56cd3e(0x2ce)]=_0x56cd3e(0x239),_0x25579d[_0x56cd3e(0x206)]=_0x56cd3e(0x2bc),_0x25579d[_0x56cd3e(0x1bb)]='WebSocket\x20events',_0x25579d['DB_MASTERS']=_0x56cd3e(0x215),_0x25579d['UI_MAKER_UTILITY_CLASS']=_0x56cd3e(0x292),_0x25579d[_0x56cd3e(0x1ca)]=_0x56cd3e(0x1f9);}(_0x56dab4=_0x2b6068['vg']||(_0x2b6068['vg']={}));},0x380(_0x17fd22){const _0x3b47ef=a0_0x2b32;_0x17fd22[_0x3b47ef(0x2a7)]=require('fs');}},_0x306779={};!function _0x5d3fb6(_0x242967){const _0x4b9fff=a0_0x2b32;var _0x5a9646=_0x306779[_0x242967];if(void 0x0!==_0x5a9646)return _0x5a9646[_0x4b9fff(0x2a7)];var _0x5a3d12=_0x306779[_0x242967]={'exports':{}};return _0x57561f[_0x242967](_0x5a3d12,_0x5a3d12[_0x4b9fff(0x2a7)],_0x5d3fb6),_0x5a3d12['exports'];}(0x1dc);})()));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[1097],{51097:(na,de,l)=>{l.r(de),l.d(de,{DbMastersM:()=>ia});var L=l(77664),B=l(17017),H=l(63726),d=l(15861),u=l(60095),h=l(6990),ce=l(78645),ue=l(83620),m=l(33157),f=l(90328),E=l(59361),C=l(51162),I=l(20553),x=l(45085),q=l(91601),b=l(3531),Q=l(39989),G=l(31495),e=l(94946),k=l(99961),Z=l(77240),w=l(27414),me=l(99729),A=l(95852),V=l(62304),fe=l(84795),N=l(53429),O=l(32915),K=l(56097),j=l(32094),W=l(25405),P=l(96814),z=l(32660),X=l(5860),ee=l(756),F=l(85219),Ue=l(91396),J=l(97680),R=l(14844),Y=l(33259),ke=l(53965),te=l(25025),Ze=l(54323);const we=["insertCodeModalC"],Ie=["monacoEditorModalC"];function Ee(i,s){1&i&&(e.TgZ(0,"span"),e._UZ(1,"i",45),e._uU(2," Add UI Page"),e.qZA())}function xe(i,s){1&i&&(e.TgZ(0,"span"),e._UZ(1,"i",46),e._uU(2," View UI Page"),e.qZA())}function Fe(i,s){if(1&i&&(e.TgZ(0,"span"),e._UZ(1,"i",47),e._uU(2," Edit UI Page "),e.TgZ(3,"span",48),e._uU(4),e.qZA(),e.TgZ(5,"span",48),e._uU(6),e.qZA(),e.TgZ(7,"span",48),e._uU(8),e.qZA(),e.TgZ(9,"span",48),e._uU(10),e.qZA()()),2&i){const t=e.oxw();e.xp6(4),e.Oqu(null==t.form.get("instanceName").value?null:t.form.get("instanceName").value.name),e.xp6(2),e.hij("| \xa0",null==t.form.get("databaseName").value?null:t.form.get("databaseName").value.db,""),e.xp6(2),e.hij("| \xa0",null==t.form.get("collectionName").value?null:t.form.get("collectionName").value.name,""),e.xp6(2),e.hij("| \xa0",t.form.get("name").value,"")}}function Ae(i,s){if(1&i&&(e._UZ(0,"span",49),e.ALo(1,"safeHtml")),2&i){const t=s.$implicit;e.Q6J("innerHTML",e.lcZ(1,1,t.labelHTML||t.label),e.oJD)}}function Ne(i,s){if(1&i&&(e._UZ(0,"span",49),e.ALo(1,"safeHtml")),2&i){const t=s.$implicit;e.Q6J("innerHTML",e.lcZ(1,1,t.labelHTML||t.label),e.oJD)}}function Oe(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",50)(1,"app-monaco-editor",51),e.NdJ("onDidChangeModelContent",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.editorConfigValueChanged())})("editorGenerated",function(o){e.CHM(t);const n=e.oxw();return e.KtG(n.editorGenerated(o))}),e.qZA()()}if(2&i){const t=e.oxw();e.xp6(1),e.Q6J("isSchemaEditor",!0)("isUIMakerEditor",!1)("editorOptions",t.editorOptionsDBMasters)}}function Pe(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",50)(1,"app-monaco-editor",51),e.NdJ("onDidChangeModelContent",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.editorConfigJSValueChanged())})("editorGenerated",function(o){e.CHM(t);const n=e.oxw();return e.KtG(n.editorGeneratedJSUtil(o))}),e.qZA()()}if(2&i){const t=e.oxw();e.xp6(1),e.Q6J("isSchemaEditor",!0)("isUIMakerEditor",!0)("editorOptions",t.editorOptionsDBMastersJS)}}function Je(i,s){if(1&i&&(e.TgZ(0,"span",52),e._uU(1),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.AsE(" You are allowed to use ",null==t.authS.backendSettings?null:t.authS.backendSettings.dbMastersCountForUI," UI pages, and you are using ",t.totalCreatedMasters," UI Pages. ")}}function Re(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"a",53),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.viewError())}),e._uU(1,"View error"),e.qZA()}}function Ye(i,s){1&i&&(e.TgZ(0,"span"),e._uU(1,"Update"),e.qZA())}function Le(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"button",54),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.save(!1))}),e._UZ(1,"i",55),e.YNc(2,Ye,2,0,"span",4),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("disabled",t.form.invalid),e.xp6(2),e.Q6J("ngIf",t.data.mode===t.EFormMode.EDIT)}}function Be(i,s){1&i&&(e.TgZ(0,"span"),e._uU(1,"Save"),e.qZA())}function Qe(i,s){1&i&&(e.TgZ(0,"span"),e._uU(1,"Update & Close"),e.qZA())}function He(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"button",54),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.save(!0))}),e._UZ(1,"i",55),e.YNc(2,Be,2,0,"span",4),e.YNc(3,Qe,2,0,"span",4),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("disabled",t.form.invalid||t.totalCreatedMasters>(null==t.authS.backendSettings?null:t.authS.backendSettings.dbMastersCountForUI)),e.xp6(2),e.Q6J("ngIf",t.data.mode===t.EFormMode.ADD),e.xp6(1),e.Q6J("ngIf",t.data.mode===t.EFormMode.EDIT)}}function qe(i,s){1&i&&e._UZ(0,"p-progressSpinner",56)}let pe=(()=>{class i{fb;ns;generalS;constantsS;dbMastersS;authCS;monacoS;authS;instanceS;eventCenterS;localClientSyncUtilsS;webSocketClientCS;eventCenterCS;generalCS;zone;cd;data;totalCreatedMasters;loading={form:!1};EFormMode=f.D;form;subscriptions=[];formData;IEventData=m.F;id;activeIndex=0;BE_HOST_PORT=I.N.BE_HOST_PORT;DOCS_HOST_PORT=I.N.DOCS_HOST_PORT;instances=[];editorDBMaster;editorDBMasterJS;editorOptionsDBMasters={readOnly:!1,language:"typescript",contextmenu:!0};editorOptionsDBMastersJS={readOnly:!1,language:"typescript",contextmenu:!0};lastError;editorOptionsMonacoEditorModal={readOnly:!0,language:"json",contextmenu:!0};insertCodeModalC;viewDockerfileModelC;shouldLoadMonacoEditor=!1;monacoDecorations=[];tab={};dbIdMap={};colIdMap={};formDataTemp=null;selectedConfigOutlineNode;outlineData=[];selectedConfigOutlineNodeFunctions;outlineDataFunctions=[];constructor(t,a,o,n,r,c,p,g,_,y,v,T,D,U,re,le){this.fb=t,this.ns=a,this.generalS=o,this.constantsS=n,this.dbMastersS=r,this.authCS=c,this.monacoS=p,this.authS=g,this.instanceS=_,this.eventCenterS=y,this.localClientSyncUtilsS=v,this.webSocketClientCS=T,this.eventCenterCS=D,this.generalCS=U,this.zone=re,this.cd=le}ngOnInit(){var t=this;return(0,d.Z)(function*(){t.createForm(),t.subscriptions.push(t.data.eventChannel.subscribe(function(){var a=(0,d.Z)(function*(o){if(o)if(t.form.enable(),o.action===m.F.OPEN_FORM_IN_EDIT_MODE)yield t.editViewLoadData(),t.cd.detectChanges();else if(o.action===m.F.OPEN_FORM_IN_VIEW_MODE)yield t.editViewLoadData(),t.form.disable(),t.cd.detectChanges();else if(o.action===m.F.OPEN_FORM_IN_ADD_MODE){t.form.reset(),t.resetDependentObjects("INSTANCE"),yield t.loadInstances();const n=yield t.instanceS.getDefaultContent(t.BE_HOST_PORT,x.R.DB_MASTERS_JSON).toPromise();t.editorOptionsDBMasters={readOnly:!1},t.generalCS.setValueInEditor(t,"editorDBMaster",n.data);const r=yield t.instanceS.getDefaultContent(t.BE_HOST_PORT,x.R.DB_MASTERS_JS_UTILS).toPromise();t.editorOptionsDBMastersJS={readOnly:!1},t.generalCS.setValueInEditor(t,"editorDBMasterJS",r.data),t.cd.detectChanges()}});return function(o){return a.apply(this,arguments)}}())),t.subscriptions.push(t.editorConfigValueChangedSubject.pipe((0,ue.b)(500)).subscribe((0,d.Z)(function*(){const a=t.editorDBMaster.getValue();a&&(yield t.getOutlineDBMaster({tsCode:a,mode:"config"}))}))),t.subscriptions.push(t.editorConfigJSValueChangedSubject.pipe((0,ue.b)(500)).subscribe((0,d.Z)(function*(){const a=t.editorDBMasterJS.getValue();a&&(yield t.getOutlineDBMasterJS({tsCode:a,mode:"utility_functions"}))}))),t.subscriptions.push(t.eventCenterCS.dataChangedInDatabase.subscribe(function(){var a=(0,d.Z)(function*(o){if(o){if(!t.data.formData)return;for(const n in o){const r=t.webSocketClientCS.getCategoryOfPath(n),p=t.generalCS.getUtf8FromBase64String(o[n].content);r===G.c.DB_MASTERS&&t.localClientSyncUtilsS.dataChangedInUIMakerPages(n,p,t.data.formData,t.editorDBMaster,t.editorDBMasterJS)}}});return function(o){return a.apply(this,arguments)}}()))})()}editViewLoadData(){var t=this;return(0,d.Z)(function*(){const a=yield t.dbMastersS.getById(t.data.formData._id).toPromise();t.form.reset(),t.resetDependentObjects("INSTANCE"),t.form.patchValue(a.data),t.formDataTemp=a.data,t.generalCS.setValueInEditor(t,"editorDBMaster",a.data?.dbMasterConfigCode||""),t.generalCS.setValueInEditor(t,"editorDBMasterJS",a.data?.pageUtilsCode||""),yield t.loadInstances(),t.editorConfigValueChanged(),t.editorConfigJSValueChanged(),t.formDataTemp=null})()}createForm(){this.form=this.fb.group({name:[null,[u.kI.required,u.kI.minLength(3),u.kI.maxLength(50),u.kI.pattern("[a-zA-Z0-9_-]*$")]],instanceName:[null,[u.kI.required]],databaseName:[null,[u.kI.required]],collectionName:[null,[u.kI.required]]})}showModal(){this.lastError=void 0,this.shouldLoadMonacoEditor=!0,this.activeIndex=0,setTimeout(()=>{$("#idDBMastersForm").modal("show")},100)}hideModal(){$("#idDBMastersForm").modal("hide")}save(t){var a=this;return(0,d.Z)(function*(){const o=a.form.getRawValue();let p;o.instanceName=o.instanceName.name,o.databaseName=o.databaseName.db,o.collectionName=o.collectionName.name,p=a.data.formData&&a.data.formData._id?(yield a.dbMastersS.getById(a.data.formData._id).toPromise()).data:{};const g=Object.assign({},p,o);g.user=a.authCS.getUserId(),g.dbMasterConfigCode=a.editorDBMaster.getValue(),g.pageUtilsCode=a.editorDBMasterJS.getValue();try{let _;a.loading.form=!0,a.lastError=void 0,a.monacoS.clearEditorDecorations(a.editorDBMaster,a.monacoDecorations),a.monacoS.clearEditorDecorations(a.editorDBMasterJS,a.monacoDecorations),a.data.mode===f.D.ADD?_=yield a.dbMastersS.post(g).toPromise():a.data.mode===f.D.EDIT&&(_=yield a.dbMastersS.put(g._id,g,{select:C.iH._id}).toPromise()),a.ns.showSuccess(a.data.mode===f.D.ADD?a.constantsS.dbMaster.addSuccess:a.constantsS.dbMaster.editSuccess),t&&a.data.eventChannel.emit({action:a.data.mode===f.D.ADD?m.F.SAVED:m.F.UPDATED,data:_}),a.loading.form=!1}catch(_){a.loading.form=!1,a.ns.showErrorFromResponse(_.error||_,"Unable to save database master."),a.lastError=_.error,a.tab=a.tab||{},a.tab.axiosResponse={data:_.error},a.monacoS.highlightErrorInMonacoEditor(a.editorDBMaster,a.tab,"MainSandbox.ts",a.monacoDecorations)}a.cd.detectChanges()})()}showInsertCodeModel(){this.generalCS.messageReceivedFor=E.H.All,this.insertCodeModalC.showModal(b.b.CodeFinderResultC)}editorGenerated(t){var a=this;return(0,d.Z)(function*(){a.editorDBMaster=t,yield a.monacoS.loadSchemaEditorSettings(a.BE_HOST_PORT,a.authCS.getUserId(),null),a.monacoS.addSaveCodeKeyBinding(t,o=>{a.form.valid&&a.save(!1)}),a.monacoS.addInsertCodeKeyBinding(t,o=>{a.generalCS.messageReceivedFor=E.H.All,a.data.mode!==f.D.VIEW&&a.insertCodeModalC.showModal(b.b.DBMastersFormC)}),a.subscriptions.push(a.generalS.messageReceived.subscribe(o=>{o.type&&o.type===Q.g.TEXT_COPIED&&o.componentName===b.b.DBMastersFormC&&(a.monacoS.insertAtCursor(t,o.selectedText),a.insertCodeModalC.hideModal())}))})()}editorGeneratedJSUtil(t){var a=this;return(0,d.Z)(function*(){a.editorDBMasterJS=t,yield a.monacoS.loadSchemaEditorSettings(a.BE_HOST_PORT,a.authCS.getUserId(),null),a.monacoS.addSaveCodeKeyBinding(t,o=>{a.form.valid&&a.save(!1)}),a.monacoS.addInsertCodeKeyBinding(t,o=>{a.generalCS.messageReceivedFor=E.H.All,a.data.mode!==f.D.VIEW&&a.insertCodeModalC.showModal(b.b.DBMastersFormC)}),a.subscriptions.push(a.generalS.messageReceived.subscribe(o=>{o.type&&o.type===Q.g.TEXT_COPIED&&o.componentName===b.b.DBMastersFormC&&(a.monacoS.insertAtCursor(t,o.selectedText),a.insertCodeModalC.hideModal())}))})()}editorConfigValueChangedSubject=new ce.x;editorConfigValueChanged(){this.editorConfigValueChangedSubject.next()}editorConfigJSValueChangedSubject=new ce.x;editorConfigJSValueChanged(){this.editorConfigJSValueChangedSubject.next()}viewError(){this.viewDockerfileModelC.showModal(this.generalS.stringify(this.lastError),q.d.json)}loadInstances(){var t=this;return(0,d.Z)(function*(){t.resetDependentObjects("INSTANCE"),t.loading.form=!0;try{const a={find:{user:t.authCS.getUserId(),active:!0},select:{name:1,active:1,user:1},sort:{name:1}};t.tab.allInstances=(yield t.instanceS.query(a).toPromise()).data||[]}catch(a){t.ns.showErrorMessageFromErrorObject(a),t.tab.allInstances=[]}if(t.formDataTemp){const a=t.form.controls.instanceName;t.tab.instance=h.find(t.tab.allInstances,{name:t.formDataTemp.instanceName}),t.tab.instance&&a.setValue(t.tab.instance)}else t.tab.instance=t.tab.allInstances[0];yield t.loadDatabases(),t.loading.form=!1,t.cd.detectChanges()})()}getOutlineDBMaster(t){var a=this;return(0,d.Z)(function*(){try{const o=new Map;a.processNodesForBackupAndRestore(a.outlineData,o,"backup"),a.outlineData=[];const n=a.selectedConfigOutlineNode,r=yield a.instanceS.getOutlineDBMasterConfig(t);a.outlineData=r.data,a.processNodesForBackupAndRestore(a.outlineData,o,"restore"),a.selectedConfigOutlineNode=a.findNodeOfKey(a.outlineData,n?.key),setTimeout(()=>{a.zone.run(()=>{a.outlineData=[...a.outlineData],a.cd.markForCheck()})},10)}catch(o){a.ns.showErrorFromResponse(o.error||o,"Unable to get outline data.")}})()}getOutlineDBMasterJS(t){var a=this;return(0,d.Z)(function*(){try{const o=new Map;a.processNodesForBackupAndRestore(a.outlineDataFunctions,o,"backup"),a.outlineDataFunctions=[];const n=a.selectedConfigOutlineNodeFunctions,r=yield a.instanceS.getOutlineDBMasterConfig(t);a.outlineDataFunctions=r.data,a.processNodesForBackupAndRestore(a.outlineDataFunctions,o,"restore"),a.selectedConfigOutlineNodeFunctions=a.findNodeOfKey(a.outlineDataFunctions,n?.key),setTimeout(()=>{a.zone.run(()=>{a.outlineDataFunctions=[...a.outlineDataFunctions],a.cd.markForCheck()})},10)}catch(o){a.ns.showErrorFromResponse(o.error||o,"Unable to get outline data.")}})()}processNodesForBackupAndRestore(t,a,o){if(Array.isArray(t))for(const n of t)this.processNodesForBackupAndRestore(n,a,o);else"backup"===o?a.set(t.key,t.expanded):"restore"===o&&(t.expanded=a.get(t.key)),t?.children?.length&&this.processNodesForBackupAndRestore(t.children,a,o)}findNodeOfKey(t,a){if(a)if(Array.isArray(t))for(const o of t){const n=this.findNodeOfKey(o,a);if(n)return n}else{if(t.key===a)return t;if(t?.children?.length)return this.findNodeOfKey(t.children,a)}}loadDatabases(){var t=this;return(0,d.Z)(function*(){if(t.loading.form=!0,t.resetDependentObjects("DATABASE"),!t.tab.instance)return t.tab.allDatabases=[],void(t.tab.allCollections=[]);try{t.tab.allDatabases=((yield t.instanceS.getDatabases([t.tab.instance],null).toPromise()).data||[])[0]||[],t.dbIdMap=h.keyBy(t.tab.allDatabases,C.N7.db)}catch(a){t.ns.showErrorMessageFromErrorObject(a),t.tab.allDatabases=[]}if(t.formDataTemp){const a=t.form.get("databaseName");t.tab.database=h.find(t.tab.allDatabases,{db:t.formDataTemp.databaseName}),t.tab.database&&a.patchValue(t.tab.database)}else t.tab.database=t.tab.allDatabases[0];yield t.loadCollections(),t.loading.form=!1})()}loadCollections(){var t=this;return(0,d.Z)(function*(){if(t.loading.form=!0,t.resetDependentObjects("COLLECTION"),t.tab.instance&&t.tab.database){try{t.tab.allCollections=((yield t.instanceS.getCollections([t.tab.database],null).toPromise()).data||[])[0]||[],t.colIdMap=h.keyBy(t.tab.allCollections,C.GR.name)}catch(a){t.ns.showErrorMessageFromErrorObject(a),t.tab.allCollections=[]}if(t.formDataTemp){const a=t.form.get("collectionName");t.tab.collection=h.find(t.tab.allCollections,{name:t.formDataTemp.collectionName}),t.tab.collection&&a.patchValue(t.tab.collection)}else t.tab.collection=t.tab.allCollections[0];t.loading.form=!1,t.cd.detectChanges()}else t.tab.allCollections=[]})()}resetDependentObjects(t){"INSTANCE"===t?(this.tab.allInstances=this.tab.allDatabases=this.tab.allCollections=[],this.tab.instance=this.tab.database=this.tab.collection=this.tab.api=void 0):"DATABASE"===t?(this.tab.allDatabases=this.tab.allCollections=[],this.tab.database=this.tab.collection=this.tab.api=void 0):"COLLECTION"===t&&(this.tab.allCollections=[],this.tab.collection=this.tab.api=void 0)}outlineNodeSelected(t,a){const o=t.data,n=a.getValue(),r=this.generalCS.getLineNumberFromIndex(n,o.end);a.setPosition(r),a.revealPositionInCenter(r),a.focus()}generateUIMakerCodeForCollection(){var t=this;return(0,d.Z)(function*(){const o=(yield t.instanceS.getSampleUIMCodeForSchema({instanceName:t.tab.instance.name,databaseName:t.tab.database.db,collectionName:t.tab.collection.name})).data;t.editorDBMaster.setValue(o.configCode),t.editorDBMasterJS.setValue(o.functionsCode)})()}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}static \u0275fac=function(a){return new(a||i)(e.Y36(u.qu),e.Y36(k.W),e.Y36(Z.b),e.Y36(w.L),e.Y36(me.z),e.Y36(A.D),e.Y36(V.b),e.Y36(fe.e),e.Y36(N.E),e.Y36(O.u),e.Y36(K._),e.Y36(j.P),e.Y36(W.M),e.Y36(Z.b),e.Y36(e.R0b),e.Y36(e.sBO))};static \u0275cmp=e.Xpm({type:i,selectors:[["app-db-masters-form"]],viewQuery:function(a,o){if(1&a&&(e.Gf(we,5),e.Gf(Ie,5)),2&a){let n;e.iGM(n=e.CRH())&&(o.insertCodeModalC=n.first),e.iGM(n=e.CRH())&&(o.viewDockerfileModelC=n.first)}},inputs:{data:"data",totalCreatedMasters:"totalCreatedMasters"},decls:66,vars:32,consts:[["aria-hidden","true","aria-labelledby","exampleModalLabel","id","idDBMastersForm","role","dialog","data-backdrop","static","data-keyboard","false",1,"modal"],["role","document",1,"modal-dialog","modal-full"],[1,"modal-content"],[1,"modal-header"],[4,"ngIf"],[1,"float-right"],["aria-label","Close","data-dismiss","modal","type","button",1,"close",3,"click"],["aria-hidden","true"],[1,"fas","fa-window-close"],["tooltipPosition","left","pTooltip","Generate code for this schema",1,"fas","fa-seedling","fa-fw","text-warning","mr-3","cursor-pointer",2,"font-size","21px",3,"click"],["pTooltip","Insert Code","sava-no-dbl-click","",1,"cursor-pointer","mr-1",2,"font-size","1.4em",3,"click"],[1,"fas","fa-info-circle","text-info","fa-fw"],["href","https://docs.apimaker.dev/v1/extensions/ui_maker/introduction.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"fa-fw","ml-3","mr-1","mt-n2",2,"font-size","25px"],[1,"modal-body","overflow-auto"],["header","Basic Info"],[1,"container","pt-3",3,"formGroup"],[1,"form-group","row"],[1,"col-3","col-form-label","col-form-label-sm","text-right"],[1,"col-7"],["formControlName","name","name","name","spellcheck","false","type","text","placeholder","Please provide name",1,"form-control","form-control-sm"],["optionLabel","name","filterBy","name","appendTo","body","formControlName","instanceName","styleClass","w-100 p-input-filled",3,"options","filter","onChange"],["formControlName","databaseName","optionLabel","db","filterBy","db","appendTo","body","styleClass","w-100 p-input-filled",3,"options","filter","onChange"],["formControlName","collectionName","optionLabel","name","filterBy","name","appendTo","body","styleClass","w-100 p-input-filled",3,"options","filter","onChange"],["header","Code"],[1,"row","m-0"],[1,"col-3","pl-0","pr-2","pt-2","overflow-auto",2,"height","calc(100vh - 186px)"],["selectionMode","single","styleClass","tree-width","scrollHeight","flex",1,"id_ptree_db_master_config_outline",3,"value","hidden","selection","filter","selectionChange"],["pTemplate","default"],[1,"col-9","pl-0","pr-0"],[3,"activeIndex","activeIndexChange"],["header","Config"],["class","overflow-hidden","style","height: calc(100vh - 212px);",4,"ngIf"],["header","userUtils.Main"],[1,"modal-footer"],["class","mr-3 small text-danger",4,"ngIf"],["href","javascript:;","class","text-danger",3,"click",4,"ngIf"],["data-dismiss","modal","type","button",1,"btn","btn-sm","btn-secondary",3,"click"],[1,"fas","fa-times","text-danger","fa-fw"],["class","btn btn-primary btn-sm","sava-no-dbl-click","","type","button",3,"disabled","click",4,"ngIf"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"frameId","modalId","docsHostPort"],["insertCodeModalC",""],[3,"modalId","editorOptionsMonacoEditorModal","modalTitle"],["monacoEditorModalC",""],[1,"fas","fa-plus","text-success","fa-fw","mr-1"],[1,"far","fa-eye","text-info","fa-fw","mr-1"],[1,"fas","fa-pencil-alt","text-light","fa-fw","mr-1"],[1,"ml-2","font-weight-normal","small","text-muted"],[2,"white-space","nowrap","padding-right","10px",3,"innerHTML"],[1,"overflow-hidden",2,"height","calc(100vh - 212px)"],[3,"isSchemaEditor","isUIMakerEditor","editorOptions","onDidChangeModelContent","editorGenerated"],[1,"mr-3","small","text-danger"],["href","javascript:;",1,"text-danger",3,"click"],["sava-no-dbl-click","","type","button",1,"btn","btn-primary","btn-sm",3,"disabled","click"],[1,"fas","fa-save","text-success","fa-fw","mr-1"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(a,o){1&a&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.YNc(4,Ee,3,0,"span",4),e.YNc(5,xe,3,0,"span",4),e.YNc(6,Fe,11,4,"span",4),e.TgZ(7,"div",5)(8,"button",6),e.NdJ("click",function(){return o.hideModal()}),e.TgZ(9,"span",7),e._UZ(10,"i",8),e.qZA()(),e.TgZ(11,"i",9),e.NdJ("click",function(){return o.generateUIMakerCodeForCollection()}),e.qZA(),e.TgZ(12,"span",10),e.NdJ("click",function(){return o.showInsertCodeModel()}),e._UZ(13,"i",11),e.qZA(),e.TgZ(14,"a",12),e._UZ(15,"img",13),e.qZA()()(),e.TgZ(16,"div",14)(17,"p-tabView")(18,"p-tabPanel",15)(19,"form",16)(20,"div",17)(21,"label",18),e._uU(22,"Name"),e.qZA(),e.TgZ(23,"div",19),e._UZ(24,"input",20),e.qZA()(),e.TgZ(25,"div",17)(26,"label",18),e._uU(27,"Instance"),e.qZA(),e.TgZ(28,"div",19)(29,"p-dropdown",21),e.NdJ("onChange",function(r){return o.tab.instance=r.value,o.loadDatabases()}),e.qZA()()(),e.TgZ(30,"div",17)(31,"label",18),e._uU(32,"Database"),e.qZA(),e.TgZ(33,"div",19)(34,"p-dropdown",22),e.NdJ("onChange",function(r){return o.tab.database=r.value,o.loadCollections()}),e.qZA()()(),e.TgZ(35,"div",17)(36,"label",18),e._uU(37,"Collection"),e.qZA(),e.TgZ(38,"div",19)(39,"p-dropdown",23),e.NdJ("onChange",function(r){return o.tab.collection=r.value}),e.qZA()()()()(),e.TgZ(40,"p-tabPanel",24)(41,"div",25)(42,"div",26)(43,"p-tree",27),e.NdJ("selectionChange",function(r){return o.selectedConfigOutlineNode=r})("selectionChange",function(r){return o.outlineNodeSelected(r,o.editorDBMaster)}),e.YNc(44,Ae,2,3,"ng-template",28),e.qZA(),e.TgZ(45,"p-tree",27),e.NdJ("selectionChange",function(r){return o.selectedConfigOutlineNodeFunctions=r})("selectionChange",function(r){return o.outlineNodeSelected(r,o.editorDBMasterJS)}),e.YNc(46,Ne,2,3,"ng-template",28),e.qZA()(),e.TgZ(47,"div",29)(48,"p-tabView",30),e.NdJ("activeIndexChange",function(r){return o.activeIndex=r}),e.TgZ(49,"p-tabPanel",31),e.YNc(50,Oe,2,3,"div",32),e.qZA(),e.TgZ(51,"p-tabPanel",33),e.YNc(52,Pe,2,3,"div",32),e.qZA()()()()()()(),e.TgZ(53,"div",34),e.YNc(54,Je,2,2,"span",35),e.YNc(55,Re,2,0,"a",36),e.TgZ(56,"button",37),e.NdJ("click",function(){return o.hideModal()}),e._UZ(57,"i",38),e._uU(58," Close"),e.qZA(),e.YNc(59,Le,3,2,"button",39),e.YNc(60,He,4,3,"button",39),e.qZA(),e.YNc(61,qe,1,0,"p-progressSpinner",40),e.qZA()()(),e._UZ(62,"app-insert-code-modal",41,42)(64,"app-monaco-editor-modal",43,44)),2&a&&(e.xp6(4),e.Q6J("ngIf",o.data.mode===o.EFormMode.ADD),e.xp6(1),e.Q6J("ngIf",o.data.mode===o.EFormMode.VIEW),e.xp6(1),e.Q6J("ngIf",o.data.mode===o.EFormMode.EDIT),e.xp6(13),e.Q6J("formGroup",o.form),e.xp6(10),e.Q6J("options",o.tab.allInstances)("filter",!0),e.xp6(5),e.Q6J("options",o.tab.allDatabases)("filter",!0),e.xp6(5),e.Q6J("options",o.tab.allCollections)("filter",!0),e.xp6(4),e.Q6J("value",o.outlineData)("hidden",0!==o.activeIndex)("selection",o.selectedConfigOutlineNode)("filter",!0),e.xp6(2),e.Q6J("value",o.outlineDataFunctions)("hidden",1!==o.activeIndex)("selection",o.selectedConfigOutlineNodeFunctions)("filter",!0),e.xp6(3),e.Q6J("activeIndex",o.activeIndex),e.xp6(2),e.Q6J("ngIf",o.shouldLoadMonacoEditor),e.xp6(2),e.Q6J("ngIf",o.shouldLoadMonacoEditor),e.xp6(2),e.Q6J("ngIf",o.totalCreatedMasters>(null==o.authS.backendSettings?null:o.authS.backendSettings.dbMastersCountForUI)),e.xp6(1),e.Q6J("ngIf",o.lastError),e.xp6(4),e.Q6J("ngIf",o.data.mode===o.EFormMode.EDIT),e.xp6(1),e.Q6J("ngIf",o.data.mode!==o.EFormMode.VIEW),e.xp6(1),e.Q6J("ngIf",o.loading.form),e.xp6(1),e.Q6J("frameId","idInsertCodeDbMig")("modalId","idInsertCodeDbMigForm")("docsHostPort",o.DOCS_HOST_PORT),e.xp6(2),e.Q6J("modalId","idMonacoEditorModalDBMaster")("editorOptionsMonacoEditorModal",o.editorOptionsMonacoEditorModal)("modalTitle","Error info"))},dependencies:[u._Y,u.Fj,u.JJ,u.JL,u.sg,u.u,P.O5,z.y,X.P,ee.O,F.jx,Ue.mp,J.G,R.xf,R.x4,Y.u,ke.Lt,te.A,Ze.z],encapsulation:2,changeDetection:0})}return i})();var ae=l(44950);let Ge=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=e.oAB({type:i});static \u0275inj=e.cJS({imports:[B.u,ae.A]})}return i})();var M=l(56212),_e=l(96925),Ve=l(19394),oe=l(92466),ie=l(60921),ne=l(92189),Ke=l(15561),se=l(33835),je=l(87797),S=l(95431);const We=["DBMastersFormC"],$e=["cloneApiModalC"];function ze(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"span",24),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.edit())}),e._UZ(1,"i",25),e.qZA()}}function Xe(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"span",26),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.clone())}),e._UZ(1,"i",27),e.qZA()}}function et(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"span",28),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.removePermanent())}),e._UZ(1,"i",29),e.qZA()}}function tt(i,s){1&i&&(e.TgZ(0,"th",31),e._UZ(1,"p-tableHeaderCheckbox"),e.qZA())}function at(i,s){if(1&i&&(e.TgZ(0,"tr"),e.YNc(1,tt,2,0,"th",30),e.TgZ(2,"th",31),e._uU(3,"*"),e.qZA(),e.TgZ(4,"th",32),e._uU(5,"Name"),e.qZA(),e.TgZ(6,"th"),e._uU(7,"Instance \u2192 Database \u2192 Collection"),e.qZA(),e.TgZ(8,"th"),e._uU(9,"Required Auth Headers"),e.qZA(),e._UZ(10,"th",33),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.showCheckbox)}}function ot(i,s){if(1&i&&(e.TgZ(0,"td"),e._UZ(1,"p-tableCheckbox",39),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("value",t)("pSelectableRow",t)}}function it(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"tr",34),e.YNc(1,ot,2,2,"td",35),e.TgZ(2,"td"),e._uU(3),e.qZA(),e.TgZ(4,"td"),e._uU(5),e.qZA(),e.TgZ(6,"td"),e._uU(7),e.qZA(),e.TgZ(8,"td"),e._uU(9),e.qZA(),e.TgZ(10,"td")(11,"div",36)(12,"button",37),e.NdJ("click",function(){const n=e.CHM(t).$implicit,r=e.oxw();return e.KtG(r.openMasterPageInNewTab(n))}),e._UZ(13,"i",38),e.qZA()()()()}if(2&i){const t=s.$implicit,a=s.rowIndex,o=e.oxw();e.Q6J("pSelectableRow",t),e.xp6(1),e.Q6J("ngIf",o.showCheckbox),e.xp6(2),e.Oqu(a+1),e.xp6(2),e.Oqu(t.name),e.xp6(2),e.lnq("",t.instanceName," \u2192 ",t.databaseName," \u2192 ",t.collectionName,""),e.xp6(2),e.Oqu(t.authHeadersGrid)}}function nt(i,s){1&i&&e._UZ(0,"p-progressSpinner",40)}let he=(()=>{class i{dbMastersS;generalS;notificationS;navigationCS;navigationS;authCS;authS;constantsS;eventCenterS;router;userS;instanceS;ns;cs;confirmationService;cd;showCheckbox=!0;loading={grid:!1};subscriptions=[];data={mode:f.D.ADD,eventChannel:new e.vpe,formData:void 0};rows=[];rowsMap={};EUserType=ie.d;gridKey=C.iH._id;EAPICategory=x.R;ENavigationMenu=oe.E;BE_HOST_PORT=I.N.BE_HOST_PORT;selectedRows=[];dbMastersFormC;cloneApiModalC;constructor(t,a,o,n,r,c,p,g,_,y,v,T,D,U,re,le){this.dbMastersS=t,this.generalS=a,this.notificationS=o,this.navigationCS=n,this.navigationS=r,this.authCS=c,this.authS=p,this.constantsS=g,this.eventCenterS=_,this.router=y,this.userS=v,this.instanceS=T,this.ns=D,this.cs=U,this.confirmationService=re,this.cd=le}ngOnInit(){var t=this;return(0,d.Z)(function*(){if(!t.authS.backendSettings.extensions)return t.navigationS.gotoDashboard();t.eventCenterS.dbMasters.selectedDBMaster.next(void 0),yield t.loadGridData(),t.subscriptions.push(t.data.eventChannel.subscribe(function(){var a=(0,d.Z)(function*(o){(o.action===m.F.SAVED||o.action===m.F.UPDATED)&&(t.dbMastersFormC.hideModal(),yield t.loadGridData())});return function(o){return a.apply(this,arguments)}}())),t.generalS.setNewTitle("UI Maker")})()}loadGridData(){var t=this;return(0,d.Z)(function*(){t.loading.grid=!0;const a=yield t.dbMastersS.getDBMastersGrid({}).toPromise();if(a){t.selectedRows=[],t.rows=a.data,t.rowsMap=h.keyBy(t.rows,C.iH._id);for(const n of t.rows){const r=[];for(const c of n.authHeaders||[])r.push(c.name);n.authHeadersGrid=r.join(", ")}}let o=t.navigationCS.getQueryParam(M.p.am_db_master);o&&!t.rowsMap[o]&&t.rows.length&&(o=t.rows[0]._id),t.rowsMap[o]?yield t.fillData():t.eventCenterS.dbMasters.selectedDBMaster.next(void 0),t.loading.grid=!1,t.cd.detectChanges()})()}add(){this.data.formData={order:(h.max(h.map(this.rows,"order"))||0)+1},this.data.mode=f.D.ADD,this.data.eventChannel.emit({action:m.F.OPEN_FORM_IN_ADD_MODE,data:this.data.formData}),this.dbMastersFormC.showModal()}edit(){this.data.formData=this.rowsMap[h.map(this.selectedRows,"_id")[0]],this.data.mode=f.D.EDIT,this.data.eventChannel.emit({action:m.F.OPEN_FORM_IN_EDIT_MODE}),this.dbMastersFormC.showModal()}clone(){var t=this;return(0,d.Z)(function*(){yield t.cloneApiModalC.showModal(t.getSelectedRowId(),[u.kI.pattern("[a-zA-Z0-9_-]*$")],function(){var a=(0,d.Z)(function*(o){o&&(yield t.loadGridData()),t.cd.detectChanges()});return function(o){return a.apply(this,arguments)}}())})()}getSelectedRowId(){return this.selectedRows[0]?._id}removePermanent(){var t=this;return(0,d.Z)(function*(){var a;t.confirmationService.confirm({message:t.cs.dbMaster.removePermanentConfirm,header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(a=(0,d.Z)(function*(){for(const o of t.selectedRows)yield t.hardDelete(o._id);t.ns.showSuccess(t.cs.dbMaster.removePermanent),yield t.loadGridData()}),function(){return a.apply(this,arguments)})})})()}hardDelete(t){var a=this;return(0,d.Z)(function*(){yield a.dbMastersS.permanentDelete(t).toPromise()})()}resetSelectedRows(){this.selectedRows.length=0,this.eventCenterS.dbMasters.selectedDBMaster.next(void 0)}resetThisUrl(){var t=this;return(0,d.Z)(function*(){t.eventCenterS.dbMasters.selectedDBMaster.next(void 0),yield t.navigationCS.setQueryParam(M.p.am_db_master,null)})()}itemSelected(){var t=this;return(0,d.Z)(function*(){yield t.resetThisUrl(),setTimeout(t.fillData.bind(t))})()}fillData(){var t=this;return(0,d.Z)(function*(){if(!t.selectedRows.length)return yield t.navigationCS.setQueryParam(M.p.am_db_master,""),void t.eventCenterS.dbMasters.selectedDBMaster.next(null);const a=t.selectedRows[0];a?(yield t.navigationCS.setQueryParam(M.p.am_db_master,a._id),t.eventCenterS.dbMasters.selectedDBMaster.next(a)):yield t.resetThisUrl()})()}dblClick(){this.selectedRows.length&&this.edit()}openMasterPageInNewTab(t){const a=this.authCS.getUserPath();let o=[I.N.BE_HOST_PORT,"/dist-db-masters/browser/",`?${_e.ZF.ADMIN_PATH}=${a}&`].join("");const n=[`${_e.ZF.DB_MASTER_NAME}=${t.name}`];for(const r of t.authHeaders)n.push(`${r.name}=____actual_header_value____`);o+=n.join("&"),window.open(o,"_blank")}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}EModelApiPaths=Ve.k4;static \u0275fac=function(a){return new(a||i)(e.Y36(me.z),e.Y36(Z.b),e.Y36(k.W),e.Y36(ne.S),e.Y36(Ke.X),e.Y36(A.D),e.Y36(fe.e),e.Y36(w.L),e.Y36(O.u),e.Y36(L.F0),e.Y36(se.K),e.Y36(N.E),e.Y36(k.W),e.Y36(w.L),e.Y36(F.YP),e.Y36(e.sBO))};static \u0275cmp=e.Xpm({type:i,selectors:[["app-db-masters-list"]],viewQuery:function(a,o){if(1&a&&(e.Gf(We,5),e.Gf($e,5)),2&a){let n;e.iGM(n=e.CRH())&&(o.dbMastersFormC=n.first),e.iGM(n=e.CRH())&&(o.cloneApiModalC=n.first)}},inputs:{showCheckbox:"showCheckbox"},decls:31,vars:20,consts:[[1,"card","shadow-sm","h-100"],["pTooltip","",1,"card-header"],["src","/assets/images/icons/ui-maker.svg","alt","Database master image",1,"fa-fw","mr-1"],[1,"small","ml-3"],["href","https://docs.apimaker.dev/v1/extensions/ui_maker/introduction.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"float-right","fa-fw","ml-3","mr-1",2,"font-size","25px"],["tooltipPosition","left","pTooltip","Styles For UI Pages",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fab","fa-css3","text-info","fa-fw"],["tooltipPosition","left","pTooltip","Common Utilities For UI Pages",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fab","fa-uniregistry","text-info","fa-fw"],["tooltipPosition","left","pTooltip","Add New",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-plus","text-success","fa-fw"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Edit",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Clone",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Permanent Delete",3,"click",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],["styleClass","p-datatable-striped","scrollHeight","calc(100vh - 82px)",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange","dblclick"],["pTemplate","header"],["pTemplate","body"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"totalCreatedMasters","data"],["DBMastersFormC",""],[3,"modalId","hostAndPort","modelApiPaths"],["cloneApiModalC",""],["tooltipPosition","left","pTooltip","Edit",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-pencil-alt","text-light","fa-fw"],["tooltipPosition","left","pTooltip","Clone",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-copy","text-light","fa-fw"],["tooltipPosition","left","pTooltip","Permanent Delete",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"far","fa-trash-alt","fa-fw","text-danger"],["style","width: 45px;",4,"ngIf"],[2,"width","45px"],[2,"width","25%"],[2,"width","70px"],[3,"pSelectableRow"],[4,"ngIf"],[1,"text-center"],["tooltipPosition","left","pTooltip","Open master page",1,"btn","btn-xsm-custom",3,"click"],[1,"fas","fa-external-link-alt","text-info","fa-fw"],[3,"value","pSelectableRow"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(a,o){1&a&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span")(3,"span"),e._UZ(4,"img",2),e._uU(5," UI Pages"),e.qZA(),e.TgZ(6,"span",3),e._uU(7,"Using "),e.TgZ(8,"span"),e._uU(9),e.qZA(),e._uU(10),e.qZA()(),e.TgZ(11,"a",4),e._UZ(12,"img",5),e.qZA(),e.TgZ(13,"span",6),e.NdJ("click",function(){return o.router.navigate([o.ENavigationMenu.DBMasters,"styles"])}),e._UZ(14,"i",7),e.qZA(),e.TgZ(15,"span",8),e.NdJ("click",function(){return o.router.navigate([o.ENavigationMenu.DBMasters,"utils"])}),e._UZ(16,"i",9),e.qZA(),e.TgZ(17,"span",10),e.NdJ("click",function(){return o.add()}),e._UZ(18,"i",11),e.qZA(),e.YNc(19,ze,2,0,"span",12),e.YNc(20,Xe,2,0,"span",13),e.YNc(21,et,2,0,"span",14),e.qZA(),e.TgZ(22,"div",15)(23,"p-table",16),e.NdJ("selectionChange",function(r){return o.selectedRows=r})("selectionChange",function(){return o.itemSelected()})("dblclick",function(){return o.dblClick()}),e.YNc(24,at,11,1,"ng-template",17),e.YNc(25,it,14,8,"ng-template",18),e.qZA(),e.YNc(26,nt,1,0,"p-progressSpinner",19),e.qZA()(),e._UZ(27,"app-db-masters-form",20,21)(29,"app-clone-api-modal",22,23)),2&a&&(e.xp6(8),e.Tol((null==o.rows?null:o.rows.length)>(null==o.authS.backendSettings?null:o.authS.backendSettings.dbMastersCountForUI)?"text-danger":""),e.xp6(1),e.hij(" ",o.rows.length,""),e.xp6(1),e.hij("/",o.authS.backendSettings.dbMastersCountForUI," "),e.xp6(9),e.Q6J("ngIf",o.selectedRows.length&&o.selectedRows.length<2),e.xp6(1),e.Q6J("ngIf",1===o.selectedRows.length),e.xp6(1),e.Q6J("ngIf",o.selectedRows.length),e.xp6(2),e.Q6J("selectionMode","multiple")("metaKeySelection",!0)("selection",o.selectedRows)("dataKey",o.gridKey)("scrollable",!0)("value",o.rows),e.xp6(3),e.Q6J("ngIf",o.loading.grid),e.xp6(1),e.Q6J("totalCreatedMasters",null==o.rows?null:o.rows.length)("data",o.data),e.xp6(2),e.Q6J("modalId","idCloneDBMasters")("hostAndPort",o.BE_HOST_PORT)("modelApiPaths",o.EModelApiPaths.DB_MASTERS))},dependencies:[P.O5,je.s,S.iA,F.jx,S.Ei,S.UA,S.Mo,J.G,Y.u,pe],encapsulation:2,changeDetection:0})}return i})(),ge=(()=>{class i{constructor(){}ngOnInit(){}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=e.Xpm({type:i,selectors:[["app-db-masters-layout"]],decls:2,vars:0,consts:[[1,"pt-1","pl-1","pr-1","overflow-auto"]],template:function(a,o){1&a&&(e.TgZ(0,"div",0),e._UZ(1,"app-db-masters-list"),e.qZA())},dependencies:[he],encapsulation:2})}return i})();var Ce=l(29836),st=l(38057);const rt=["insertCodeModalC"],lt=["monacoEditorModalC"];function dt(i,s){1&i&&(e.TgZ(0,"span"),e._UZ(1,"i",25),e._uU(2," Add Styles"),e.qZA())}function ct(i,s){1&i&&(e.TgZ(0,"span"),e._UZ(1,"i",26),e._uU(2," View Styles"),e.qZA())}function ut(i,s){if(1&i&&(e.TgZ(0,"span"),e._UZ(1,"i",27),e._uU(2," Edit Styles "),e.TgZ(3,"span",28),e._uU(4),e.qZA()()),2&i){const t=e.oxw();e.xp6(4),e.Oqu(t.form.get("name").value)}}function mt(i,s){1&i&&(e.TgZ(0,"div",30)(1,"label",31),e._uU(2,"Order No"),e.qZA(),e.TgZ(3,"div",32),e._UZ(4,"input",37),e.qZA()())}function ft(i,s){if(1&i&&(e.TgZ(0,"div")(1,"form",29)(2,"div",30)(3,"label",31),e._uU(4,"Name"),e.qZA(),e.TgZ(5,"div",32),e._UZ(6,"input",33),e.qZA()(),e.TgZ(7,"div",30),e._UZ(8,"label",31),e.TgZ(9,"div",32)(10,"label",34),e._UZ(11,"p-checkbox",35),e.qZA()()(),e.YNc(12,mt,5,0,"div",36),e.qZA()()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("formGroup",t.form),e.xp6(10),e.Q6J("binary",!0),e.xp6(1),e.Q6J("ngIf",t.form.getRawValue().loadInAllPages)}}function pt(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",38)(1,"app-monaco-editor",39),e.NdJ("editorGenerated",function(o){e.CHM(t);const n=e.oxw();return e.KtG(n.editorGenerated(o))}),e.qZA()()}if(2&i){const t=e.oxw();e.xp6(1),e.Q6J("isSchemaEditor",!1)("isUIMakerEditor",!0)("editorOptions",t.editorOptions)}}function _t(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"a",40),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.viewError())}),e._uU(1,"View error"),e.qZA()}}function ht(i,s){1&i&&(e.TgZ(0,"span"),e._uU(1,"Update"),e.qZA())}function gt(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"button",41),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.save(!1))}),e._UZ(1,"i",42),e.YNc(2,ht,2,0,"span",4),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("disabled",t.form.invalid),e.xp6(2),e.Q6J("ngIf",t.data.mode===t.EFormMode.EDIT)}}function Ct(i,s){1&i&&(e.TgZ(0,"span"),e._uU(1,"Save"),e.qZA())}function Mt(i,s){1&i&&(e.TgZ(0,"span"),e._uU(1,"Update & Close"),e.qZA())}function St(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"button",41),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.save(!0))}),e._UZ(1,"i",42),e.YNc(2,Ct,2,0,"span",4),e.YNc(3,Mt,2,0,"span",4),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("disabled",t.form.invalid),e.xp6(2),e.Q6J("ngIf",t.data.mode===t.EFormMode.ADD),e.xp6(1),e.Q6J("ngIf",t.data.mode===t.EFormMode.EDIT)}}function bt(i,s){1&i&&e._UZ(0,"p-progressSpinner",43)}let Me=(()=>{class i{fb;ns;generalS;constantsS;uiMakerStylesS;authCS;monacoS;instanceS;eventCenterS;localClientSyncUtilsS;webSocketClientCS;eventCenterCS;generalCS;cd;data;loading={form:!1};EFormMode=f.D;form;subscriptions=[];formData;IEventData=m.F;id;BE_HOST_PORT=I.N.BE_HOST_PORT;DOCS_HOST_PORT=I.N.DOCS_HOST_PORT;instances=[];editorPI;editorOptions={readOnly:!1,language:"css",contextmenu:!0};lastError;editorOptionsMonacoEditorModal={readOnly:!0,language:"typescript",contextmenu:!0};insertCodeModalC;viewDockerfileModelC;shouldLoadMonacoEditor=!1;monacoDecorations=[];tab;constructor(t,a,o,n,r,c,p,g,_,y,v,T,D,U){this.fb=t,this.ns=a,this.generalS=o,this.constantsS=n,this.uiMakerStylesS=r,this.authCS=c,this.monacoS=p,this.instanceS=g,this.eventCenterS=_,this.localClientSyncUtilsS=y,this.webSocketClientCS=v,this.eventCenterCS=T,this.generalCS=D,this.cd=U}ngOnInit(){var t=this;return(0,d.Z)(function*(){t.createForm(),t.subscriptions.push(t.data.eventChannel.subscribe(function(){var a=(0,d.Z)(function*(o){if(o)if(t.form.enable(),o.action===m.F.OPEN_FORM_IN_EDIT_MODE)yield t.editViewLoadData(),t.cd.detectChanges();else if(o.action===m.F.OPEN_FORM_IN_VIEW_MODE)yield t.editViewLoadData(),t.cd.detectChanges();else if(o.action===m.F.OPEN_FORM_IN_ADD_MODE){t.form.reset(),t.form.patchValue(o.data||{});const n=yield t.instanceS.getDefaultContent(t.BE_HOST_PORT,x.R.UI_MAKER_STYLES).toPromise();t.editorOptions={readOnly:!1},t.generalCS.setValueInEditor(t,"editorPI",n.data),t.cd.detectChanges()}});return function(o){return a.apply(this,arguments)}}())),t.subscriptions.push(t.eventCenterCS.dataChangedInDatabase.subscribe(function(){var a=(0,d.Z)(function*(o){if(o){if(!t.data.formData)return;for(const n in o){const r=t.webSocketClientCS.getCategoryOfPath(n),p=t.generalCS.getUtf8FromBase64String(o[n].content);r===G.c.UI_MAKER_STYLES&&t.localClientSyncUtilsS.dataChangedInUIMakerStyles(n,p,t.data.formData,t.editorPI)}}});return function(o){return a.apply(this,arguments)}}()))})()}editViewLoadData(){var t=this;return(0,d.Z)(function*(){const a=yield t.uiMakerStylesS.getById(t.data.formData._id).toPromise();t.form.reset(),t.form.patchValue(a.data),t.generalCS.setValueInEditor(t,"editorPI",a.data?.styleCode||"")})()}createForm(){this.form=this.fb.group({name:[null,[u.kI.required]],loadInAllPages:[!1,[]],orderNumber:[!1,[u.kI.min(1)]]})}showModal(){this.lastError=void 0,this.shouldLoadMonacoEditor=!0,setTimeout(()=>{$("#idUIMakerStylesForm").modal("show")},100)}hideModal(){$("#idUIMakerStylesForm").modal("hide")}save(t){var a=this;return(0,d.Z)(function*(){const o=a.form.getRawValue();let n;n=a.data.formData&&a.data.formData._id?(yield a.uiMakerStylesS.getById(a.data.formData._id).toPromise()).data:{};const r=Object.assign({},n,o);r.user=a.authCS.getUserId(),r.styleCode=a.editorPI.getValue();try{let c;a.loading.form=!0,a.lastError=void 0,a.monacoS.clearEditorDecorations(a.editorPI,a.monacoDecorations),a.data.mode===f.D.ADD?c=yield a.uiMakerStylesS.post(r).toPromise():a.data.mode===f.D.EDIT&&(c=yield a.uiMakerStylesS.put(r._id,r,{select:C.iH._id}).toPromise()),a.ns.showSuccess(a.data.mode===f.D.ADD?a.constantsS.uiMakerStyle.addSuccess:a.constantsS.uiMakerStyle.editSuccess),t&&a.data.eventChannel.emit({action:a.data.mode===f.D.ADD?m.F.SAVED:m.F.UPDATED,data:c}),a.eventCenterS.uiMakerStylesSavedAndUpdate.next(!0),a.loading.form=!1}catch(c){a.loading.form=!1,a.ns.showErrorFromResponse(c.error||c,"Unable to save styles."),a.lastError=c.error,a.tab=a.tab||{},a.tab.axiosResponse={data:c.error},a.monacoS.highlightErrorInMonacoEditor(a.editorPI,a.tab,"MainSandbox.ts",a.monacoDecorations)}a.cd.detectChanges()})()}showInsertCodeModel(){this.generalCS.messageReceivedFor=E.H.All,this.insertCodeModalC.showModal(b.b.UiMakerStylesFormC).then()}editorGenerated(t){var a=this;return(0,d.Z)(function*(){a.editorPI=t,yield a.monacoS.loadSchemaEditorSettings(a.BE_HOST_PORT,a.authCS.getUserId(),null),a.monacoS.addSaveCodeKeyBinding(t,o=>{a.form.valid&&a.save(!1)}),a.monacoS.addInsertCodeKeyBinding(t,o=>{a.generalCS.messageReceivedFor=E.H.All,a.data.mode!==f.D.VIEW&&a.insertCodeModalC.showModal(b.b.UiMakerStylesFormC)}),a.subscriptions.push(a.generalS.messageReceived.subscribe(o=>{o.type&&o.type===Q.g.TEXT_COPIED&&o.componentName===b.b.UiMakerStylesFormC&&(a.monacoS.insertAtCursor(t,o.selectedText),a.insertCodeModalC.hideModal())}))})()}viewError(){this.viewDockerfileModelC.showModal(this.generalS.stringify(this.lastError),q.d.json)}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions),this.eventCenterS.uiMakerStylesSavedAndUpdate.next(!1)}ISchedulerProps=C.qH;static \u0275fac=function(a){return new(a||i)(e.Y36(u.qu),e.Y36(k.W),e.Y36(Z.b),e.Y36(w.L),e.Y36(Ce.q),e.Y36(A.D),e.Y36(V.b),e.Y36(N.E),e.Y36(O.u),e.Y36(K._),e.Y36(j.P),e.Y36(W.M),e.Y36(Z.b),e.Y36(e.sBO))};static \u0275cmp=e.Xpm({type:i,selectors:[["app-ui-maker-styles-form"]],viewQuery:function(a,o){if(1&a&&(e.Gf(rt,5),e.Gf(lt,5)),2&a){let n;e.iGM(n=e.CRH())&&(o.insertCodeModalC=n.first),e.iGM(n=e.CRH())&&(o.viewDockerfileModelC=n.first)}},inputs:{data:"data"},decls:31,vars:15,consts:[["aria-hidden","true","aria-labelledby","exampleModalLabel","id","idUIMakerStylesForm","role","dialog","data-backdrop","static","data-keyboard","false",1,"modal"],["role","document",1,"modal-dialog","modal-full"],[1,"modal-content"],[1,"modal-header"],[4,"ngIf"],[1,"float-right"],["aria-label","Close","data-dismiss","modal","type","button",1,"close",3,"click"],["aria-hidden","true"],[1,"fas","fa-window-close"],["pTooltip","Insert Code","sava-no-dbl-click","",1,"cursor-pointer","mr-1",2,"font-size","1.4em",3,"click"],[1,"fas","fa-info-circle","text-info","fa-fw"],[1,"modal-body","overflow-auto"],["header","Basic Info"],["header","Code"],["class","overflow-hidden","style","height: calc(100vh - 206px);",4,"ngIf"],[1,"modal-footer"],["href","javascript:;","class","text-danger",3,"click",4,"ngIf"],["data-dismiss","modal","type","button",1,"btn","btn-sm","btn-secondary",3,"click"],[1,"fas","fa-times","text-danger","fa-fw"],["class","btn btn-primary btn-sm","sava-no-dbl-click","","type","button",3,"disabled","click",4,"ngIf"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"frameId","modalId","docsHostPort"],["insertCodeModalC",""],[3,"modalId","editorOptionsMonacoEditorModal","modalTitle"],["monacoEditorModalC",""],[1,"fas","fa-plus","text-success","fa-fw","mr-1"],[1,"far","fa-eye","text-info","fa-fw","mr-1"],[1,"fas","fa-pencil-alt","text-light","fa-fw","mr-1"],[1,"ml-2","font-weight-normal","small","text-muted"],[1,"container","pt-3",3,"formGroup"],[1,"form-group","row"],[1,"col-3","col-form-label","col-form-label-sm","text-right"],[1,"col-7"],["formControlName","name","name","name","spellcheck","false","type","text","placeholder","Please provide name",1,"form-control","form-control-sm"],[1,"align-middle","mb-0","pt-1"],["formControlName","loadInAllPages","pTooltip","If true, these styles will be applied to all UI Pages.","label","Load Styles In All Pages",3,"binary"],["class","form-group row",4,"ngIf"],["formControlName","orderNumber","name","orderNumber","spellcheck","false","type","number","placeholder","Order number in which these styles will be loaded in page",1,"form-control","form-control-sm"],[1,"overflow-hidden",2,"height","calc(100vh - 206px)"],[3,"isSchemaEditor","isUIMakerEditor","editorOptions","editorGenerated"],["href","javascript:;",1,"text-danger",3,"click"],["sava-no-dbl-click","","type","button",1,"btn","btn-primary","btn-sm",3,"disabled","click"],[1,"fas","fa-save","text-success","fa-fw","mr-1"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(a,o){1&a&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.YNc(4,dt,3,0,"span",4),e.YNc(5,ct,3,0,"span",4),e.YNc(6,ut,5,1,"span",4),e.TgZ(7,"div",5)(8,"button",6),e.NdJ("click",function(){return o.hideModal()}),e.TgZ(9,"span",7),e._UZ(10,"i",8),e.qZA()(),e.TgZ(11,"span",9),e.NdJ("click",function(){return o.showInsertCodeModel()}),e._UZ(12,"i",10),e.qZA()()(),e.TgZ(13,"div",11)(14,"p-tabView")(15,"p-tabPanel",12),e.YNc(16,ft,13,3,"div",4),e.qZA(),e.TgZ(17,"p-tabPanel",13),e.YNc(18,pt,2,3,"div",14),e.qZA()()(),e.TgZ(19,"div",15),e.YNc(20,_t,2,0,"a",16),e.TgZ(21,"button",17),e.NdJ("click",function(){return o.hideModal()}),e._UZ(22,"i",18),e._uU(23," Close"),e.qZA(),e.YNc(24,gt,3,2,"button",19),e.YNc(25,St,4,3,"button",19),e.qZA(),e.YNc(26,bt,1,0,"p-progressSpinner",20),e.qZA()()(),e._UZ(27,"app-insert-code-modal",21,22)(29,"app-monaco-editor-modal",23,24)),2&a&&(e.xp6(4),e.Q6J("ngIf",o.data.mode===o.EFormMode.ADD),e.xp6(1),e.Q6J("ngIf",o.data.mode===o.EFormMode.VIEW),e.xp6(1),e.Q6J("ngIf",o.data.mode===o.EFormMode.EDIT),e.xp6(10),e.Q6J("ngIf",o.shouldLoadMonacoEditor),e.xp6(2),e.Q6J("ngIf",o.shouldLoadMonacoEditor),e.xp6(2),e.Q6J("ngIf",o.lastError),e.xp6(4),e.Q6J("ngIf",o.data.mode===o.EFormMode.EDIT),e.xp6(1),e.Q6J("ngIf",o.data.mode!==o.EFormMode.VIEW),e.xp6(1),e.Q6J("ngIf",o.loading.form),e.xp6(1),e.Q6J("frameId","idInsertCodeDbMig")("modalId","idInsertCodeDbMigForm")("docsHostPort",o.DOCS_HOST_PORT),e.xp6(2),e.Q6J("modalId","idMonacoEditorModalInSysUIMakerStyles")("editorOptionsMonacoEditorModal",o.editorOptionsMonacoEditorModal)("modalTitle","Error info"))},dependencies:[u._Y,u.Fj,u.wV,u.JJ,u.JL,u.sg,u.u,P.O5,z.y,X.P,ee.O,J.G,R.xf,R.x4,Y.u,st.XZ,te.A],encapsulation:2,changeDetection:0})}return i})(),yt=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=e.oAB({type:i});static \u0275inj=e.cJS({imports:[B.u,ae.A]})}return i})();const vt=["uiMakerStylesFormC"];function Tt(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"span",17),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.edit())}),e._UZ(1,"i",18),e.qZA()}}function Dt(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"span",19),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.clone())}),e._UZ(1,"i",20),e.qZA()}}function Ut(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"span",21),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.removePermanent())}),e._UZ(1,"i",22),e.qZA()}}function kt(i,s){1&i&&(e.TgZ(0,"th",26),e._UZ(1,"p-tableHeaderCheckbox"),e.qZA())}function Zt(i,s){if(1&i&&(e.TgZ(0,"tr"),e.YNc(1,kt,2,0,"th",23),e.TgZ(2,"th",24),e._uU(3,"Order"),e.qZA(),e.TgZ(4,"th",25),e._uU(5,"Load in all pages"),e.qZA(),e.TgZ(6,"th"),e._uU(7,"Name"),e.qZA()()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.showCheckbox)}}function wt(i,s){if(1&i&&(e.TgZ(0,"td"),e._UZ(1,"p-tableCheckbox",30),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("value",t)("pSelectableRow",t)}}function It(i,s){1&i&&(e.TgZ(0,"span"),e._uU(1,"Yes"),e.qZA())}function Et(i,s){if(1&i&&(e.TgZ(0,"tr",27),e.YNc(1,wt,2,2,"td",28),e.TgZ(2,"td",29),e._uU(3),e.qZA(),e.TgZ(4,"td",29),e.YNc(5,It,2,0,"span",28),e.qZA(),e.TgZ(6,"td"),e._uU(7),e.qZA()()),2&i){const t=s.$implicit,a=e.oxw();e.Q6J("pSelectableRow",t),e.xp6(1),e.Q6J("ngIf",a.showCheckbox),e.xp6(2),e.Oqu(t.orderNumber||""),e.xp6(2),e.Q6J("ngIf",t.loadInAllPages),e.xp6(2),e.Oqu(t.name)}}function xt(i,s){1&i&&e._UZ(0,"p-progressSpinner",31)}let Se=(()=>{class i{uiMakerStylesS;generalS;notificationS;navigationCS;authCS;constantsS;eventCenterS;router;userS;instanceS;ns;cs;confirmationService;cd;showCheckbox=!0;loading={grid:!1};subscriptions=[];data={mode:f.D.ADD,eventChannel:new e.vpe,formData:void 0};rows=[];rowsMap={};showAll=!1;EUserType=ie.d;gridKey=C.iH._id;EAPICategory=x.R;selectedRows=[];uiMakerStylesFormC;constructor(t,a,o,n,r,c,p,g,_,y,v,T,D,U){this.uiMakerStylesS=t,this.generalS=a,this.notificationS=o,this.navigationCS=n,this.authCS=r,this.constantsS=c,this.eventCenterS=p,this.router=g,this.userS=_,this.instanceS=y,this.ns=v,this.cs=T,this.confirmationService=D,this.cd=U}ngOnInit(){var t=this;return(0,d.Z)(function*(){t.eventCenterS.uiMakerStyles.selectedStyle.next(void 0),yield t.loadGridData(),t.subscriptions.push(t.data.eventChannel.subscribe(function(){var a=(0,d.Z)(function*(o){(o.action===m.F.SAVED||o.action===m.F.UPDATED)&&(t.uiMakerStylesFormC.hideModal(),yield t.loadGridData())});return function(o){return a.apply(this,arguments)}}())),t.generalS.setNewTitle("API Maker - UI Maker Styles")})()}loadGridData(){var t=this;return(0,d.Z)(function*(){t.loading.grid=!0;const a={find:{user:t.authCS.getUserId(),active:!0},select:{name:1,active:1,loadInAllPages:1,orderNumber:1,user:1},sort:{orderNumber:1,name:1}};t.showAll&&delete a.find.active;const o=yield t.uiMakerStylesS.query(a).toPromise();o&&(t.selectedRows=[],t.rows=o.data,t.rowsMap=h.keyBy(t.rows,C.iH._id));let n=t.navigationCS.getQueryParam(M.p.am_ui_maker_style);n&&!t.rowsMap[n]&&t.rows.length&&(n=t.rows[0]._id),t.rowsMap[n]?(t.selectedRows=[t.rowsMap[n]],yield t.fillData()):t.eventCenterS.uiMakerStyles.selectedStyle.next(void 0),t.loading.grid=!1,t.cd.detectChanges()})()}add(){this.data.formData={},this.data.mode=f.D.ADD,this.data.eventChannel.emit({action:m.F.OPEN_FORM_IN_ADD_MODE,data:this.data.formData}),this.uiMakerStylesFormC.showModal()}edit(){this.data.formData=this.rowsMap[h.map(this.selectedRows,"_id")[0]],this.data.mode=f.D.EDIT,this.data.eventChannel.emit({action:m.F.OPEN_FORM_IN_EDIT_MODE}),this.uiMakerStylesFormC.showModal()}clone(){var t=this;return(0,d.Z)(function*(){try{if(!t.selectedRows[0]||!t.rowsMap[h.map(t.selectedRows,"_id")[0]])return;const a=t.rowsMap[h.map(t.selectedRows,"_id")[0]]._id,o=(yield t.uiMakerStylesS.getById(a).toPromise()).data;delete o._id,delete o.guid,o.name=`${o.name}-clone`,(yield t.uiMakerStylesS.post(o).toPromise()).success?(t.notificationS.showSuccess(t.constantsS.uiMakerStyle.cloneSuccess),t.loadGridData()):t.notificationS.showSuccess(t.constantsS.uiMakerStyle.cloneSuccess)}catch{t.notificationS.showError(t.constantsS.uiMakerStyle.cloneError)}})()}removePermanent(){var t=this;return(0,d.Z)(function*(){var a;t.confirmationService.confirm({message:t.cs.uiMakerStyle.removePermanentConfirm,header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(a=(0,d.Z)(function*(){for(const o of t.selectedRows)yield t.hardDelete(o._id);t.ns.showSuccess(t.cs.uiMakerStyle.removePermanent),yield t.loadGridData()}),function(){return a.apply(this,arguments)})})})()}hardDelete(t){var a=this;return(0,d.Z)(function*(){yield a.uiMakerStylesS.permanentDelete(t).toPromise()})()}resetSelectedRows(){this.selectedRows.length=0,this.eventCenterS.uiMakerStyles.selectedStyle.next(void 0)}resetThisUrl(){var t=this;return(0,d.Z)(function*(){t.eventCenterS.uiMakerStyles.selectedStyle.next(void 0),yield t.navigationCS.setQueryParam(M.p.am_ui_maker_style,null)})()}itemSelected(){var t=this;return(0,d.Z)(function*(){yield t.resetThisUrl(),setTimeout(t.fillData.bind(t))})()}fillData(){var t=this;return(0,d.Z)(function*(){if(!t.selectedRows.length)return yield t.navigationCS.setQueryParam(M.p.am_ui_maker_style,""),void t.eventCenterS.uiMakerStyles.selectedStyle.next(null);const a=t.selectedRows[0];a?(yield t.navigationCS.setQueryParam(M.p.am_ui_maker_style,a._id),t.eventCenterS.uiMakerStyles.selectedStyle.next(a)):yield t.resetThisUrl()})()}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}dblClickHandler(){this.selectedRows.length&&this.edit()}ENavigationMenu=oe.E;static \u0275fac=function(a){return new(a||i)(e.Y36(Ce.q),e.Y36(Z.b),e.Y36(k.W),e.Y36(ne.S),e.Y36(A.D),e.Y36(w.L),e.Y36(O.u),e.Y36(L.F0),e.Y36(se.K),e.Y36(N.E),e.Y36(k.W),e.Y36(w.L),e.Y36(F.YP),e.Y36(e.sBO))};static \u0275cmp=e.Xpm({type:i,selectors:[["app-ui-maker-styles-list"]],viewQuery:function(a,o){if(1&a&&e.Gf(vt,5),2&a){let n;e.iGM(n=e.CRH())&&(o.uiMakerStylesFormC=n.first)}},inputs:{showCheckbox:"showCheckbox"},decls:19,vars:11,consts:[[1,"card","shadow-sm","h-100"],["pTooltip","",1,"card-header"],[1,"fab","fa-css3","fa-fw","text-white"],["href","javascript:",3,"click"],["tooltipPosition","left","pTooltip","Go back to UI Pages","src","/assets/images/icons/ui-maker.svg",1,"float-right","ml-3","mr-1",2,"height","20px"],["tooltipPosition","left","pTooltip","Add New",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-plus","text-success","fa-fw"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Edit",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Clone",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Permanent Delete",3,"click",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],["styleClass","p-datatable-striped","scrollHeight","calc(100vh - 82px)",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange","dblclick"],["pTemplate","header"],["pTemplate","body"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"data"],["uiMakerStylesFormC",""],["tooltipPosition","left","pTooltip","Edit",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-pencil-alt","text-light","fa-fw"],["tooltipPosition","left","pTooltip","Clone",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-copy","text-warning","fa-fw"],["tooltipPosition","left","pTooltip","Permanent Delete",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"far","fa-trash-alt","fa-fw","text-danger"],["style","width: 45px;",4,"ngIf"],[1,"text-center",2,"width","40px"],[1,"text-center",2,"width","150px"],[2,"width","45px"],[3,"pSelectableRow"],[4,"ngIf"],[1,"text-center"],[3,"value","pSelectableRow"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(a,o){1&a&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span"),e._UZ(3,"i",2),e._uU(4," Styles For UI Pages"),e.qZA(),e.TgZ(5,"a",3),e.NdJ("click",function(){return o.router.navigate([o.ENavigationMenu.DBMasters,"main"])}),e._UZ(6,"img",4),e.qZA(),e.TgZ(7,"span",5),e.NdJ("click",function(){return o.add()}),e._UZ(8,"i",6),e.qZA(),e.YNc(9,Tt,2,0,"span",7),e.YNc(10,Dt,2,0,"span",8),e.YNc(11,Ut,2,0,"span",9),e.qZA(),e.TgZ(12,"div",10)(13,"p-table",11),e.NdJ("selectionChange",function(r){return o.selectedRows=r})("selectionChange",function(){return o.itemSelected()})("dblclick",function(){return o.dblClickHandler()}),e.YNc(14,Zt,8,1,"ng-template",12),e.YNc(15,Et,8,5,"ng-template",13),e.qZA(),e.YNc(16,xt,1,0,"p-progressSpinner",14),e.qZA()(),e._UZ(17,"app-ui-maker-styles-form",15,16)),2&a&&(e.xp6(9),e.Q6J("ngIf",o.selectedRows.length&&o.selectedRows.length<2),e.xp6(1),e.Q6J("ngIf",o.selectedRows.length&&o.selectedRows.length<2),e.xp6(1),e.Q6J("ngIf",o.selectedRows.length),e.xp6(2),e.Q6J("selectionMode","multiple")("metaKeySelection",!0)("selection",o.selectedRows)("dataKey",o.gridKey)("scrollable",!0)("value",o.rows),e.xp6(3),e.Q6J("ngIf",o.loading.grid),e.xp6(1),e.Q6J("data",o.data))},dependencies:[P.O5,S.iA,F.jx,S.Ei,S.UA,S.Mo,J.G,Y.u,Me],encapsulation:2,changeDetection:0})}return i})(),be=(()=>{class i{constructor(){}ngOnInit(){}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=e.Xpm({type:i,selectors:[["app-ui-maker-styles-layout"]],decls:2,vars:0,consts:[[1,"pt-1","pl-1","pr-1","overflow-auto"]],template:function(a,o){1&a&&(e.TgZ(0,"div",0),e._UZ(1,"app-ui-maker-styles-list"),e.qZA())},dependencies:[Se],encapsulation:2})}return i})();var ye=l(26125);const Ft=["insertCodeModalC"],At=["monacoEditorModalC"];function Nt(i,s){1&i&&(e.TgZ(0,"span"),e._UZ(1,"i",25),e._uU(2," Add Utility"),e.qZA())}function Ot(i,s){1&i&&(e.TgZ(0,"span"),e._UZ(1,"i",26),e._uU(2," View Utility"),e.qZA())}function Pt(i,s){if(1&i&&(e.TgZ(0,"span"),e._UZ(1,"i",27),e._uU(2," Edit Utility "),e.TgZ(3,"span",28),e._uU(4),e.qZA()()),2&i){const t=e.oxw();e.xp6(4),e.Oqu(t.form.get("name").value)}}function Jt(i,s){if(1&i&&(e.TgZ(0,"div")(1,"form",29)(2,"div",30)(3,"label",31),e._uU(4,"Name"),e.qZA(),e.TgZ(5,"div",32),e._UZ(6,"input",33),e.qZA()()()()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("formGroup",t.form)}}function Rt(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",34)(1,"app-monaco-editor",35),e.NdJ("editorGenerated",function(o){e.CHM(t);const n=e.oxw();return e.KtG(n.editorGenerated(o))}),e.qZA()()}if(2&i){const t=e.oxw();e.xp6(1),e.Q6J("isSchemaEditor",!0)("isUIMakerEditor",!0)("editorOptions",t.editorOptions)}}function Yt(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"a",36),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.viewError())}),e._uU(1,"View error"),e.qZA()}}function Lt(i,s){1&i&&(e.TgZ(0,"span"),e._uU(1,"Update"),e.qZA())}function Bt(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"button",37),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.save(!1))}),e._UZ(1,"i",38),e.YNc(2,Lt,2,0,"span",4),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("disabled",t.form.invalid),e.xp6(2),e.Q6J("ngIf",t.data.mode===t.EFormMode.EDIT)}}function Qt(i,s){1&i&&(e.TgZ(0,"span"),e._uU(1,"Save"),e.qZA())}function Ht(i,s){1&i&&(e.TgZ(0,"span"),e._uU(1,"Update & Close"),e.qZA())}function qt(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"button",37),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.save(!0))}),e._UZ(1,"i",38),e.YNc(2,Qt,2,0,"span",4),e.YNc(3,Ht,2,0,"span",4),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("disabled",t.form.invalid),e.xp6(2),e.Q6J("ngIf",t.data.mode===t.EFormMode.ADD),e.xp6(1),e.Q6J("ngIf",t.data.mode===t.EFormMode.EDIT)}}function Gt(i,s){1&i&&e._UZ(0,"p-progressSpinner",39)}let ve=(()=>{class i{fb;ns;generalS;constantsS;uiMakerUtilsS;authCS;monacoS;instanceS;eventCenterS;localClientSyncUtilsS;webSocketClientCS;eventCenterCS;generalCS;cd;data;loading={form:!1};EFormMode=f.D;form;subscriptions=[];formData;IEventData=m.F;id;BE_HOST_PORT=I.N.BE_HOST_PORT;DOCS_HOST_PORT=I.N.DOCS_HOST_PORT;instances=[];editorPI;editorOptions={readOnly:!1,language:"typescript",contextmenu:!0};lastError;editorOptionsMonacoEditorModal={readOnly:!0,language:"json",contextmenu:!0};insertCodeModalC;viewDockerfileModelC;shouldLoadMonacoEditor=!1;monacoDecorations=[];tab;constructor(t,a,o,n,r,c,p,g,_,y,v,T,D,U){this.fb=t,this.ns=a,this.generalS=o,this.constantsS=n,this.uiMakerUtilsS=r,this.authCS=c,this.monacoS=p,this.instanceS=g,this.eventCenterS=_,this.localClientSyncUtilsS=y,this.webSocketClientCS=v,this.eventCenterCS=T,this.generalCS=D,this.cd=U}ngOnInit(){var t=this;return(0,d.Z)(function*(){t.createForm(),t.subscriptions.push(t.data.eventChannel.subscribe(function(){var a=(0,d.Z)(function*(o){if(o)if(t.form.enable(),o.action===m.F.OPEN_FORM_IN_EDIT_MODE)yield t.editViewLoadData(),t.cd.detectChanges();else if(o.action===m.F.OPEN_FORM_IN_VIEW_MODE)yield t.editViewLoadData(),t.cd.detectChanges();else if(o.action===m.F.OPEN_FORM_IN_ADD_MODE){t.form.reset(),t.form.patchValue(o.data||{});const n=yield t.instanceS.getDefaultContent(t.BE_HOST_PORT,x.R.UI_MAKER_UTILITY_CLASS).toPromise();t.editorOptions={readOnly:!1},t.generalCS.setValueInEditor(t,"editorPI",n.data),t.cd.detectChanges()}});return function(o){return a.apply(this,arguments)}}())),t.subscriptions.push(t.eventCenterCS.dataChangedInDatabase.subscribe(function(){var a=(0,d.Z)(function*(o){if(o){if(!t.data.formData)return;for(const n in o){const r=t.webSocketClientCS.getCategoryOfPath(n),p=t.generalCS.getUtf8FromBase64String(o[n].content);r===G.c.UI_MAKER_UTILITY_CLASS&&t.localClientSyncUtilsS.dataChangedInUIMakerUtils(n,p,t.data.formData,t.editorPI)}}});return function(o){return a.apply(this,arguments)}}()))})()}editViewLoadData(){var t=this;return(0,d.Z)(function*(){const a=yield t.uiMakerUtilsS.getById(t.data.formData._id).toPromise();t.form.reset(),t.form.patchValue(a.data),t.generalCS.setValueInEditor(t,"editorPI",a.data?.utilsCode||"")})()}createForm(){this.form=this.fb.group({name:[null,[u.kI.required]]})}showModal(){this.lastError=void 0,this.shouldLoadMonacoEditor=!0,setTimeout(()=>{$("#idUIMakerUtilForm").modal("show")},100)}hideModal(){$("#idUIMakerUtilForm").modal("hide")}save(t){var a=this;return(0,d.Z)(function*(){const o=a.form.getRawValue();let n;n=a.data.formData&&a.data.formData._id?(yield a.uiMakerUtilsS.getById(a.data.formData._id).toPromise()).data:{};const r=Object.assign({},n,o);r.user=a.authCS.getUserId(),r.utilsCode=a.editorPI.getValue();try{let c;a.loading.form=!0,a.lastError=void 0,a.monacoS.clearEditorDecorations(a.editorPI,a.monacoDecorations),a.data.mode===f.D.ADD?c=yield a.uiMakerUtilsS.post(r).toPromise():a.data.mode===f.D.EDIT&&(c=yield a.uiMakerUtilsS.put(r._id,r,{select:C.iH._id}).toPromise()),a.ns.showSuccess(a.data.mode===f.D.ADD?a.constantsS.uiMakerUtil.addSuccess:a.constantsS.uiMakerUtil.editSuccess),t&&a.data.eventChannel.emit({action:a.data.mode===f.D.ADD?m.F.SAVED:m.F.UPDATED,data:c}),a.eventCenterS.uiMakerUtilsSavedAndUpdate.next(!0),a.loading.form=!1}catch(c){a.loading.form=!1,a.ns.showErrorFromResponse(c.error||c,"Unable to save utility."),a.lastError=c.error,a.tab=a.tab||{},a.tab.axiosResponse={data:c.error},a.monacoS.highlightErrorInMonacoEditor(a.editorPI,a.tab,"MainSandbox.ts",a.monacoDecorations)}a.cd.detectChanges()})()}showInsertCodeModel(){this.generalCS.messageReceivedFor=E.H.All,this.insertCodeModalC.showModal(b.b.UiMakerUtilsFormC).then()}editorGenerated(t){var a=this;return(0,d.Z)(function*(){a.editorPI=t,yield a.monacoS.loadSchemaEditorSettings(a.BE_HOST_PORT,a.authCS.getUserId(),null),a.monacoS.addSaveCodeKeyBinding(t,o=>{a.form.valid&&a.save(!1)}),a.monacoS.addInsertCodeKeyBinding(t,o=>{a.generalCS.messageReceivedFor=E.H.All,a.data.mode!==f.D.VIEW&&a.insertCodeModalC.showModal(b.b.UiMakerUtilsFormC)}),a.subscriptions.push(a.generalS.messageReceived.subscribe(o=>{o.type&&o.type===Q.g.TEXT_COPIED&&o.componentName===b.b.UiMakerUtilsFormC&&(a.monacoS.insertAtCursor(t,o.selectedText),a.insertCodeModalC.hideModal())}))})()}viewError(){this.viewDockerfileModelC.showModal(this.generalS.stringify(this.lastError),q.d.json)}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions),this.eventCenterS.uiMakerUtilsSavedAndUpdate.next(!1)}trim=h.trim;static \u0275fac=function(a){return new(a||i)(e.Y36(u.qu),e.Y36(k.W),e.Y36(Z.b),e.Y36(w.L),e.Y36(ye.L),e.Y36(A.D),e.Y36(V.b),e.Y36(N.E),e.Y36(O.u),e.Y36(K._),e.Y36(j.P),e.Y36(W.M),e.Y36(Z.b),e.Y36(e.sBO))};static \u0275cmp=e.Xpm({type:i,selectors:[["app-ui-maker-utils-form"]],viewQuery:function(a,o){if(1&a&&(e.Gf(Ft,5),e.Gf(At,5)),2&a){let n;e.iGM(n=e.CRH())&&(o.insertCodeModalC=n.first),e.iGM(n=e.CRH())&&(o.viewDockerfileModelC=n.first)}},inputs:{data:"data"},decls:31,vars:16,consts:[["aria-hidden","true","aria-labelledby","exampleModalLabel","id","idUIMakerUtilForm","role","dialog","data-backdrop","static","data-keyboard","false",1,"modal"],["role","document",1,"modal-dialog","modal-full"],[1,"modal-content"],[1,"modal-header"],[4,"ngIf"],[1,"float-right"],["aria-label","Close","data-dismiss","modal","type","button",1,"close",3,"click"],["aria-hidden","true"],[1,"fas","fa-window-close"],["pTooltip","Insert Code","sava-no-dbl-click","",1,"cursor-pointer","mr-1",2,"font-size","1.4em",3,"click"],[1,"fas","fa-info-circle","text-info","fa-fw"],[1,"modal-body","overflow-auto"],["header","Basic Info"],[3,"header"],["class","overflow-hidden","style","height: calc(100vh - 206px);",4,"ngIf"],[1,"modal-footer"],["href","javascript:;","class","text-danger",3,"click",4,"ngIf"],["data-dismiss","modal","type","button",1,"btn","btn-sm","btn-secondary",3,"click"],[1,"fas","fa-times","text-danger","fa-fw"],["class","btn btn-primary btn-sm","sava-no-dbl-click","","type","button",3,"disabled","click",4,"ngIf"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"frameId","modalId","docsHostPort"],["insertCodeModalC",""],[3,"modalId","editorOptionsMonacoEditorModal","modalTitle"],["monacoEditorModalC",""],[1,"fas","fa-plus","text-success","fa-fw","mr-1"],[1,"far","fa-eye","text-info","fa-fw","mr-1"],[1,"fas","fa-pencil-alt","text-light","fa-fw","mr-1"],[1,"ml-2","font-weight-normal","small","text-muted"],[1,"container","pt-3",3,"formGroup"],[1,"form-group","row"],[1,"col-3","col-form-label","col-form-label-sm","text-right"],[1,"col-7"],["formControlName","name","name","name","spellcheck","false","type","text","placeholder","Please provide name",1,"form-control","form-control-sm"],[1,"overflow-hidden",2,"height","calc(100vh - 206px)"],[3,"isSchemaEditor","isUIMakerEditor","editorOptions","editorGenerated"],["href","javascript:;",1,"text-danger",3,"click"],["sava-no-dbl-click","","type","button",1,"btn","btn-primary","btn-sm",3,"disabled","click"],[1,"fas","fa-save","text-success","fa-fw","mr-1"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(a,o){1&a&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.YNc(4,Nt,3,0,"span",4),e.YNc(5,Ot,3,0,"span",4),e.YNc(6,Pt,5,1,"span",4),e.TgZ(7,"div",5)(8,"button",6),e.NdJ("click",function(){return o.hideModal()}),e.TgZ(9,"span",7),e._UZ(10,"i",8),e.qZA()(),e.TgZ(11,"span",9),e.NdJ("click",function(){return o.showInsertCodeModel()}),e._UZ(12,"i",10),e.qZA()()(),e.TgZ(13,"div",11)(14,"p-tabView")(15,"p-tabPanel",12),e.YNc(16,Jt,7,1,"div",4),e.qZA(),e.TgZ(17,"p-tabPanel",13),e.YNc(18,Rt,2,3,"div",14),e.qZA()()(),e.TgZ(19,"div",15),e.YNc(20,Yt,2,0,"a",16),e.TgZ(21,"button",17),e.NdJ("click",function(){return o.hideModal()}),e._UZ(22,"i",18),e._uU(23," Close"),e.qZA(),e.YNc(24,Bt,3,2,"button",19),e.YNc(25,qt,4,3,"button",19),e.qZA(),e.YNc(26,Gt,1,0,"p-progressSpinner",20),e.qZA()()(),e._UZ(27,"app-insert-code-modal",21,22)(29,"app-monaco-editor-modal",23,24)),2&a&&(e.xp6(4),e.Q6J("ngIf",o.data.mode===o.EFormMode.ADD),e.xp6(1),e.Q6J("ngIf",o.data.mode===o.EFormMode.VIEW),e.xp6(1),e.Q6J("ngIf",o.data.mode===o.EFormMode.EDIT),e.xp6(10),e.Q6J("ngIf",o.shouldLoadMonacoEditor),e.xp6(1),e.Q6J("header",(o.form.get("name").getRawValue()||"").trim()?"userUtils."+o.form.get("name").getRawValue().trim():"Code"),e.xp6(1),e.Q6J("ngIf",o.shouldLoadMonacoEditor),e.xp6(2),e.Q6J("ngIf",o.lastError),e.xp6(4),e.Q6J("ngIf",o.data.mode===o.EFormMode.EDIT),e.xp6(1),e.Q6J("ngIf",o.data.mode!==o.EFormMode.VIEW),e.xp6(1),e.Q6J("ngIf",o.loading.form),e.xp6(1),e.Q6J("frameId","idInsertCodeDbMig")("modalId","idInsertCodeDbMigForm")("docsHostPort",o.DOCS_HOST_PORT),e.xp6(2),e.Q6J("modalId","idMonacoEditorModalInSysUIMakerUtility")("editorOptionsMonacoEditorModal",o.editorOptionsMonacoEditorModal)("modalTitle","Error info"))},dependencies:[u._Y,u.Fj,u.JJ,u.JL,u.sg,u.u,P.O5,z.y,X.P,ee.O,J.G,R.xf,R.x4,Y.u,te.A],encapsulation:2,changeDetection:0})}return i})(),Vt=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=e.oAB({type:i});static \u0275inj=e.cJS({imports:[B.u,ae.A]})}return i})();const Kt=["uiMakerUtilsFormC"];function jt(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"span",17),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.edit())}),e._UZ(1,"i",18),e.qZA()}}function Wt(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"span",19),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.clone())}),e._UZ(1,"i",20),e.qZA()}}function $t(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"span",21),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.removePermanent())}),e._UZ(1,"i",22),e.qZA()}}function zt(i,s){1&i&&(e.TgZ(0,"th",24),e._UZ(1,"p-tableHeaderCheckbox"),e.qZA())}function Xt(i,s){if(1&i&&(e.TgZ(0,"tr"),e.YNc(1,zt,2,0,"th",23),e.TgZ(2,"th"),e._uU(3,"Name"),e.qZA()()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.showCheckbox)}}function ea(i,s){if(1&i&&(e.TgZ(0,"td"),e._UZ(1,"p-tableCheckbox",27),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("value",t)("pSelectableRow",t)}}function ta(i,s){if(1&i&&(e.TgZ(0,"tr",25),e.YNc(1,ea,2,2,"td",26),e.TgZ(2,"td"),e._uU(3),e.qZA()()),2&i){const t=s.$implicit,a=e.oxw();e.Q6J("pSelectableRow",t),e.xp6(1),e.Q6J("ngIf",a.showCheckbox),e.xp6(2),e.Oqu(t.name)}}function aa(i,s){1&i&&e._UZ(0,"p-progressSpinner",28)}let Te=(()=>{class i{uiMakerUtilsS;generalS;notificationS;navigationCS;authCS;constantsS;eventCenterS;router;userS;instanceS;ns;cs;confirmationService;cd;showCheckbox=!0;loading={grid:!1};subscriptions=[];data={mode:f.D.ADD,eventChannel:new e.vpe,formData:void 0};rows=[];rowsMap={};showAll=!1;EUserType=ie.d;gridKey=C.iH._id;EAPICategory=x.R;selectedRows=[];uiMakerUtilsFormC;constructor(t,a,o,n,r,c,p,g,_,y,v,T,D,U){this.uiMakerUtilsS=t,this.generalS=a,this.notificationS=o,this.navigationCS=n,this.authCS=r,this.constantsS=c,this.eventCenterS=p,this.router=g,this.userS=_,this.instanceS=y,this.ns=v,this.cs=T,this.confirmationService=D,this.cd=U}ngOnInit(){var t=this;return(0,d.Z)(function*(){t.eventCenterS.uiMakerUtils.selectedUtil.next(void 0),yield t.loadGridData(),t.subscriptions.push(t.data.eventChannel.subscribe(function(){var a=(0,d.Z)(function*(o){(o.action===m.F.SAVED||o.action===m.F.UPDATED)&&(t.uiMakerUtilsFormC.hideModal(),yield t.loadGridData())});return function(o){return a.apply(this,arguments)}}())),t.generalS.setNewTitle("API Maker - UI Maker Utility")})()}loadGridData(){var t=this;return(0,d.Z)(function*(){t.loading.grid=!0;const a={find:{user:t.authCS.getUserId(),active:!0},select:{name:1,active:1,user:1},sort:{order:1}};t.showAll&&delete a.find.active;const o=yield t.uiMakerUtilsS.query(a).toPromise();o&&(t.selectedRows=[],t.rows=o.data,t.rowsMap=h.keyBy(t.rows,C.iH._id));let n=t.navigationCS.getQueryParam(M.p.am_ui_maker_util);n&&!t.rowsMap[n]&&t.rows.length&&(n=t.rows[0]._id),t.rowsMap[n]?(t.selectedRows=[t.rowsMap[n]],yield t.fillData()):t.eventCenterS.uiMakerUtils.selectedUtil.next(void 0),t.loading.grid=!1,t.cd.detectChanges()})()}add(){this.data.formData={},this.data.mode=f.D.ADD,this.data.eventChannel.emit({action:m.F.OPEN_FORM_IN_ADD_MODE,data:this.data.formData}),this.uiMakerUtilsFormC.showModal()}edit(){this.data.formData=this.rowsMap[h.map(this.selectedRows,"_id")[0]],this.data.mode=f.D.EDIT,this.data.eventChannel.emit({action:m.F.OPEN_FORM_IN_EDIT_MODE}),this.uiMakerUtilsFormC.showModal()}clone(){var t=this;return(0,d.Z)(function*(){try{if(!t.selectedRows[0]||!t.rowsMap[h.map(t.selectedRows,"_id")[0]])return;const a=t.rowsMap[h.map(t.selectedRows,"_id")[0]]._id,o=(yield t.uiMakerUtilsS.getById(a).toPromise()).data;delete o._id,delete o.guid,o.name=`${o.name}-clone`,(yield t.uiMakerUtilsS.post(o).toPromise()).success?(t.notificationS.showSuccess(t.constantsS.uiMakerUtil.cloneSuccess),t.loadGridData()):t.notificationS.showSuccess(t.constantsS.uiMakerUtil.cloneSuccess)}catch{t.notificationS.showError(t.constantsS.uiMakerUtil.cloneError)}})()}removePermanent(){var t=this;return(0,d.Z)(function*(){var a;t.confirmationService.confirm({message:t.cs.uiMakerUtil.removePermanentConfirm,header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(a=(0,d.Z)(function*(){for(const o of t.selectedRows)yield t.hardDelete(o._id);t.ns.showSuccess(t.cs.uiMakerUtil.removePermanent),yield t.loadGridData()}),function(){return a.apply(this,arguments)})})})()}hardDelete(t){var a=this;return(0,d.Z)(function*(){yield a.uiMakerUtilsS.permanentDelete(t).toPromise()})()}resetSelectedRows(){this.selectedRows.length=0,this.eventCenterS.uiMakerUtils.selectedUtil.next(void 0)}resetThisUrl(){var t=this;return(0,d.Z)(function*(){t.eventCenterS.uiMakerUtils.selectedUtil.next(void 0),yield t.navigationCS.setQueryParam(M.p.am_ui_maker_util,null)})()}itemSelected(){var t=this;return(0,d.Z)(function*(){yield t.resetThisUrl(),setTimeout(t.fillData.bind(t))})()}fillData(){var t=this;return(0,d.Z)(function*(){if(!t.selectedRows.length)return yield t.navigationCS.setQueryParam(M.p.am_ui_maker_util,""),void t.eventCenterS.uiMakerUtils.selectedUtil.next(null);const a=t.selectedRows[0];a?(yield t.navigationCS.setQueryParam(M.p.am_ui_maker_util,a._id),t.eventCenterS.uiMakerUtils.selectedUtil.next(a)):yield t.resetThisUrl()})()}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}dblClickHandler(){this.selectedRows.length&&this.edit()}ENavigationMenu=oe.E;static \u0275fac=function(a){return new(a||i)(e.Y36(ye.L),e.Y36(Z.b),e.Y36(k.W),e.Y36(ne.S),e.Y36(A.D),e.Y36(w.L),e.Y36(O.u),e.Y36(L.F0),e.Y36(se.K),e.Y36(N.E),e.Y36(k.W),e.Y36(w.L),e.Y36(F.YP),e.Y36(e.sBO))};static \u0275cmp=e.Xpm({type:i,selectors:[["app-ui-maker-utils-list"]],viewQuery:function(a,o){if(1&a&&e.Gf(Kt,5),2&a){let n;e.iGM(n=e.CRH())&&(o.uiMakerUtilsFormC=n.first)}},inputs:{showCheckbox:"showCheckbox"},decls:19,vars:11,consts:[[1,"card","shadow-sm","h-100"],["pTooltip","",1,"card-header"],[1,"fab","fa-uniregistry","fa-fw","text-white"],["href","javascript:",3,"click"],["tooltipPosition","left","pTooltip","Go back to UI Pages","src","/assets/images/icons/ui-maker.svg",1,"float-right","ml-3","mr-1",2,"height","20px"],["tooltipPosition","left","pTooltip","Add New",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-plus","text-success","fa-fw"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Edit",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Clone",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Permanent Delete",3,"click",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],["styleClass","p-datatable-striped","scrollHeight","calc(100vh - 82px)",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange","dblclick"],["pTemplate","header"],["pTemplate","body"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"data"],["uiMakerUtilsFormC",""],["tooltipPosition","left","pTooltip","Edit",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-pencil-alt","text-light","fa-fw"],["tooltipPosition","left","pTooltip","Clone",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-copy","text-warning","fa-fw"],["tooltipPosition","left","pTooltip","Permanent Delete",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"far","fa-trash-alt","fa-fw","text-danger"],["style","width: 45px;",4,"ngIf"],[2,"width","45px"],[3,"pSelectableRow"],[4,"ngIf"],[3,"value","pSelectableRow"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(a,o){1&a&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span"),e._UZ(3,"i",2),e._uU(4," Common Utils For UI Pages"),e.qZA(),e.TgZ(5,"a",3),e.NdJ("click",function(){return o.router.navigate([o.ENavigationMenu.DBMasters,"main"])}),e._UZ(6,"img",4),e.qZA(),e.TgZ(7,"span",5),e.NdJ("click",function(){return o.add()}),e._UZ(8,"i",6),e.qZA(),e.YNc(9,jt,2,0,"span",7),e.YNc(10,Wt,2,0,"span",8),e.YNc(11,$t,2,0,"span",9),e.qZA(),e.TgZ(12,"div",10)(13,"p-table",11),e.NdJ("selectionChange",function(r){return o.selectedRows=r})("selectionChange",function(){return o.itemSelected()})("dblclick",function(){return o.dblClickHandler()}),e.YNc(14,Xt,4,1,"ng-template",12),e.YNc(15,ta,4,3,"ng-template",13),e.qZA(),e.YNc(16,aa,1,0,"p-progressSpinner",14),e.qZA()(),e._UZ(17,"app-ui-maker-utils-form",15,16)),2&a&&(e.xp6(9),e.Q6J("ngIf",o.selectedRows.length&&o.selectedRows.length<2),e.xp6(1),e.Q6J("ngIf",o.selectedRows.length&&o.selectedRows.length<2),e.xp6(1),e.Q6J("ngIf",o.selectedRows.length),e.xp6(2),e.Q6J("selectionMode","multiple")("metaKeySelection",!0)("selection",o.selectedRows)("dataKey",o.gridKey)("scrollable",!0)("value",o.rows),e.xp6(3),e.Q6J("ngIf",o.loading.grid),e.xp6(1),e.Q6J("data",o.data))},dependencies:[P.O5,S.iA,F.jx,S.Ei,S.UA,S.Mo,J.G,Y.u,ve],encapsulation:2,changeDetection:0})}return i})();const oa=[{path:"main",component:ge,canActivate:[H.P]},{path:"utils",component:(()=>{class i{constructor(){}ngOnInit(){}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=e.Xpm({type:i,selectors:[["app-ui-maker-styles-layout"]],decls:2,vars:0,consts:[[1,"pt-1","pl-1","pr-1","overflow-auto"]],template:function(a,o){1&a&&(e.TgZ(0,"div",0),e._UZ(1,"app-ui-maker-utils-list"),e.qZA())},dependencies:[Te],encapsulation:2})}return i})(),canActivate:[H.P]},{path:"styles",component:be,canActivate:[H.P]}];let ia=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=e.oAB({type:i});static \u0275inj=e.cJS({imports:[L.Bz.forChild(oa),B.u,Ge,Vt,yt]})}return i})()}}]);
|