@sava-info-systems/api-maker-with-extensions 1.20.2 → 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.
@@ -1 +1 @@
1
- function a0_0x5f36(){const _0x2790de=['unhandledRejection','.js','npm','copyEventsToAnotherDir','eventListeners','js-yaml','UNREGISTER','DBMasterUtilsWriteF','nodeModulesInstalled','✅\x20Connected\x20to\x20server\x20via\x20WS','copyDatabaseHooksToAnotherDir','CollectionHooksWriteF','padStart','DatabaseHooksWriteF','then','INSTANCE_HOOKS','SCHEDULERS','cpSync','SYSTEM_API_HOOKS','LC_DATA_MODIFIED_IN_DATABASE','collection-hooks','ProcessI18NReadF','DatabaseHooks','3BqhjxL','printNotes','tsconfig.json','Error\x20during\x20shutdown','warn','PUT_REPLACE','-lc','CollectionHooks','ws-events','databaseName','✓\x20Receive\x20:\x20[','config','InstanceApiHooks','SIGTERM','isActive','copyInstanceHooksToAnotherDir','COLLECTION_HOOKS','copySystemApiHooksToAnotherDir','InstanceHooksWriteF','post-hooks','SYSTEM_API_SETTINGS','length','system-apis','parse','normalize','webSocketURL','exports','instanceName','✓\x20Send\x20:\x20[','copyFilesToProjectDir','Connection\x20closed.','customApiName','shutdownAndExit','push','parseYaml','\x20The\x20local\x20client\x20will\x20pull\x20the\x20latest\x20changes\x20from\x20the\x20server\x20and\x20keep\x20them\x20synchronized\x20between\x20the\x20IDE\x20and\x20the\x20server.','SchemaReadF','path','INSTANCES','am_test_cases','LC_DATA_REQ_RES','?authTokenInfo=ws-local-client-sync&authorization=','writeMemfsJsonToDisk','name','SIGINT\x20received\x20—\x20shutting\x20down','&user-path=','getChangedFolder','am_tp_api_versions','\x1b[36m','onopen','Process\x20initializers','createLCProjectDirectory','amTypes','beforeExit','localClientPath','copyCustomApisToAnotherDir','\x1b[0m','SystemApiHooks','data',']\x20:\x20','PUT','web-socket-events','SchedulersWriteF','✳️Open\x20folder\x20in\x20IDE\x20:\x20','all','appRoot','getCategoryOfPath','utf8','UtilityClasses','EventsWriteF','.config.ts','DATABASE_HOOKS','isDirectory','am_tp_api_settings','.yaml','\x20Current\x20Dir\x20:\x20','getSeconds','tpInstalledApiBundleName','copyProcessInitializersToAnotherDir','.css','content','SYSTEM_APIS','skipWatchInputs','⏳\x20Dependencies\x20installation\x20process\x20started','toString','statSync','237730IozWrP','⏳\x20node_modules\x20installation\x20process\x20started','syncToken','WebSocket\x20events','UtilityClassesReadF','repo','syncAllDataWithServer','--force','UI_MAKER_STYLES','bind','InstanceHooks','2WvUpKR','Watcher\x20error:','55oXCeWQ','✅\x20Local\x20client\x20started...','copyDBMigrationsToAnotherDir','ProcessInitializers','startsWith','toLowerCase','fsMkDir','unlinkDir','ProcessI18NWriteF','sendDeletedEventToServerDebounce','copyInstanceApiHooksToAnotherDir','Instance\x20API\x20settings','Database\x20hooks','response','am_i18ns','watcher','load','pre-hooks','PROCESS_INITIALIZERS','schedulers','dirname','resolve','systemApiName','THIRD_PARTY_API_SETTINGS','1230302qhwWeo','versions','WebSocketEvents','tests','chokidar@4.0.3','paths','am_process_initializers','I18Ns','copyDBMasterStylesToAnotherDir','copyUtilityClassesToAnotherDir','sep','apply','serializeFolderWithBinary','stringify','TOKEN_VALIDATION','endsWith','i18ns','fullSyncCounter','apis','normalizePath','Third\x20party\x20APIs','LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM','symlinkSync','db-migrations','Node.js\x2022+\x20is\x20required.\x20Current\x20version:\x20','DBMastersWriteF','connectToServerViaWS','ui-maker-utils','am_schedulers','POST','./local-client.config','start','am_instance_api_hooks','dbInterfacesFile','fsReadFile','THIRD_PARTY_APIS','UI_MAKER_UTILITY_CLASS','.gitignore','getChangedFolderForDeleted','rmdirSync','fsExistsSync','connected','ThirdPartyApiReadF','am_system_api_settings','add','am_db_masters','SchedulersReadF','SystemApiHooksWriteF','validOnEvents','am_instance_api_settings','⏳\x20Connecting\x20to\x20server...','process-initializers','copyI18NToAnotherDir','instance-api-hooks','readdir','Instance\x20API\x20hooks','ui-maker-styles','instances','INSTANCE_API_SETTINGS','--no-save','DELETE','spawn','AmEvents','✅\x20Dependencies\x20installed','sendToServer','join','DBMasterStylesReadF','ui-maker-pages',']\x20:\x20[','./src','version','replace','copySchedulersToAnotherDir','2400097lMOCSN','WebSocketEventsWriteF','AmTestCases','am_custom_apis','getCurrentTime','TestCasesReadF','CONNECTED','DBMasterStylesWriteF','slice','am_ui_maker_styles','Collection\x20hooks','checkForNodeVersion','error','close','link','log','change','DELETE_ALL','EVENTS_WS','NOTIFICATION','adminUserPath','fsWriteFile','I18NS','types','debounce','fsMkDirSync','EventsReadF','dir','package-lock.json','removeEmptyDirsSync','skipFileWritingForLocal','preHooks','apiCategory','compilerOptions','InstanceHooksReadF','instance-hooks','printNotesToProvideLocalClient','.ts','SIGTERM\x20received\x20—\x20shutting\x20down','am_system_api_hooks','Instance\x20hooks','1551PzBMuY','Failed\x20to\x20restart\x20watcher\x20after\x20full\x20sync','Custom\x20APIs','orangeStart','LOCAL_CLIENT_SYNC_EVENTS','chokidar','Events','getHours','776406oNbSxO','install','writeFile','filter','copyDBMastersToAnotherDir','src','readFileSync','shuttingDown','DB\x20masters','copyTestCasesToAnotherDir','UNKNOWN','invalidOnEvents','Please\x20run\x20using\x20administrator\x20privileges.','existsSync','basename','DB\x20master\x20utils','cyanStart','REGISTER','am_instance_hooks','copyCollectionHooksToAnotherDir','split','Schedulers','send','TestCasesWriteF','apiId','eventType','errors','relative','onerror','mkdir','✅\x20Full\x20Sync\x20:\x20[','\x1b[38;2;255;165;0m','copyDBMasterUtilsToAnotherDir','4183668MXtaMF','third-party-apis','CUSTOM_APIS','UTILITY_CLASSES','promises','copySchemasToAnotherDir','390396jTZFKq','addDir','SystemApiHooksReadF','Failed\x20to\x20start\x20the\x20npm\x20process:\x20','custom-apis','folderPath','postHooks','copyWebSocketEventsToAnotherDir','processReceivedEvent','unlink','SchemaWriteF','Third\x20party\x20API\x20settings','unlinkSync','projectDirectory','executeNpmRun','InstanceApiSettings','fsReadDir','Utility\x20classes','LC_SEND_ALL_DATA','eventData','node_modules','listeners','WebSocketEventsReadF','colorEnd','am_database_hooks','type','message','am-types','DBMigrationsWriteF','rmSync','base64','addProcessHooks','collectionName','InstanceApiHooksReadF','1141464sVdkZV','WEB_SOCKET_EVENT','sendDeletedEventToServerInternal','InstanceApiHooksWriteF','copyThirdPartyApisToAnotherDir','✅\x20node_modules\x20installed','ProcessInitializersReadF','CustomApis','onclose','posix','system-api-hooks','child_process','am_utility_classes','Error\x20while\x20connecting\x20to\x20WS\x20server.','Test\x20cases','db-interfaces.d.ts','——————————————————————————————————————————————————————————————————————————————————','package.json','fsLink','readDirCustom','exit','Schemas','SCHEMAS','DB_MIGRATIONS'];a0_0x5f36=function(){return _0x2790de;};return a0_0x5f36();}function a0_0x3987(_0xedbccd,_0x2b2044){_0xedbccd=_0xedbccd-0x1e2;const _0x5f36c8=a0_0x5f36();let _0x398730=_0x5f36c8[_0xedbccd];return _0x398730;}(function(_0x3c9c9f,_0x36827a){const _0x2ef972=a0_0x3987,_0x59f208=_0x3c9c9f();while(!![]){try{const _0x2bf0c1=-parseInt(_0x2ef972(0x300))/0x1*(parseInt(_0x2ef972(0x31a))/0x2)+parseInt(_0x2ef972(0x29f))/0x3*(parseInt(_0x2ef972(0x24e))/0x4)+-parseInt(_0x2ef972(0x302))/0x5*(parseInt(_0x2ef972(0x227))/0x6)+parseInt(_0x2ef972(0x1f6))/0x7+parseInt(_0x2ef972(0x270))/0x8+-parseInt(_0x2ef972(0x248))/0x9+parseInt(_0x2ef972(0x2f5))/0xa*(parseInt(_0x2ef972(0x21f))/0xb);if(_0x2bf0c1===_0x36827a)break;else _0x59f208['push'](_0x59f208['shift']());}catch(_0x49b249){_0x59f208['push'](_0x59f208['shift']());}}}(a0_0x5f36,0xc75c5),((()=>{'use strict';var _0x4ef900={0x3(_0x13d678){const _0x208725=a0_0x3987;_0x13d678['exports']=require(_0x208725(0x2c4));},0x59(_0x2fd296){const _0x1bf502=a0_0x3987;_0x2fd296[_0x1bf502(0x2b9)]=require(_0x1bf502(0x28d));},0xe7(_0x2d7e48){const _0x15fa2b=a0_0x3987;_0x2d7e48[_0x15fa2b(0x2b9)]=require(_0x15fa2b(0x224));},0x13d(_0x155974){const _0x2c92e8=a0_0x3987;_0x155974[_0x2c92e8(0x2b9)]=require(_0x2c92e8(0x27b));},0x1dc(_0x53e3aa,_0xbab3cf,_0x37aa79){const _0x4edce0=a0_0x3987;_0xbab3cf['vg']=_0xbab3cf['xu']=_0xbab3cf['kR']=_0xbab3cf['OW']=void 0x0;const _0x4150e8=_0x37aa79(0x380),_0x1d41e5=_0x37aa79(0x3),_0x4b830f=_0x37aa79(0x13d);var _0xc42bd9,_0x948973,_0x417c99,_0x210f1f,_0x4b7011,_0x2acfff;new class{constructor(){const _0x48517d=a0_0x3987;this['EL']=!0x1,this[_0x48517d(0x2e0)]=_0x1d41e5['resolve'](''),this['projectDirectory']='',this['C']={'localClientPath':_0x48517d(0x338),'src':_0x48517d(0x22c),'repo':'repo','types':_0x48517d(0x20d),'amTypes':_0x48517d(0x269),'versions':_0x48517d(0x31b),'apis':_0x48517d(0x32c),'listeners':'listeners','postHooks':_0x48517d(0x2b2),'preHooks':_0x48517d(0x313),'dbInterfacesFile':_0x48517d(0x27f),'UtilityClassesReadF':'Utility\x20classes','CustomApiReadF':_0x48517d(0x221),'SchedulersReadF':_0x48517d(0x23c),'WebSocketEventsReadF':_0x48517d(0x2f8),'SchemaReadF':_0x48517d(0x285),'DBMigrationsReadF':'Database\x20migrations','ProcessInitializersReadF':_0x48517d(0x2d1),'ProcessI18NReadF':_0x48517d(0x32a),'DBMastersReadF':_0x48517d(0x22f),'DBMasterStylesReadF':'UI\x20maker\x20styles','DBMasterUtilsReadF':'DB\x20master\x20utils','TestCasesReadF':_0x48517d(0x27e),'ThirdPartyApiReadF':_0x48517d(0x32e),'EventsReadF':_0x48517d(0x225),'InstanceApiHooksReadF':'Instance\x20API\x20hooks','SystemApiHooksReadF':'System\x20API\x20hooks','CollectionHooksReadF':_0x48517d(0x200),'DatabaseHooksReadF':'Database\x20hooks','InstanceHooksReadF':_0x48517d(0x21e),'CustomApisWriteF':_0x48517d(0x252),'SchedulersWriteF':_0x48517d(0x315),'WebSocketEventsWriteF':_0x48517d(0x2dc),'SchemaWriteF':'schemas','DBMigrationsWriteF':_0x48517d(0x331),'ProcessInitializersWriteF':_0x48517d(0x34d),'ProcessI18NWriteF':_0x48517d(0x32a),'DBMastersWriteF':_0x48517d(0x1f0),'DBMasterStylesWriteF':_0x48517d(0x1e5),'DBMasterUtilsWriteF':_0x48517d(0x335),'TestCasesWriteF':_0x48517d(0x31d),'ThirdPartyApiWriteF':_0x48517d(0x249),'EventsWriteF':'events','InstanceApiHooksWriteF':_0x48517d(0x1e2),'SystemApiHooksWriteF':_0x48517d(0x27a),'CollectionHooksWriteF':_0x48517d(0x29c),'DatabaseHooksWriteF':'database-hooks','InstanceHooksWriteF':_0x48517d(0x219)},this[_0x48517d(0x2f1)]=!0x1,this[_0x48517d(0x214)]={},this[_0x48517d(0x290)]=!0x1,this['orangeStart']=_0x48517d(0x246),this['cyanStart']=_0x48517d(0x2cf),this[_0x48517d(0x265)]='\x1b[0m',this[_0x48517d(0x32b)]=0x0,this[_0x48517d(0x30b)]=this[_0x48517d(0x20e)](this[_0x48517d(0x272)],0x1f4);}async[_0x4edce0(0x339)](){const _0x5bae91=_0x4edce0;this[_0x5bae91(0x26d)](),this['checkForNodeVersion'](),this['fsExistsSync'](this['C']['localClientPath']+_0x5bae91(0x289))||(this[_0x5bae91(0x21a)](),this[_0x5bae91(0x2bf)](0x1)[_0x5bae91(0x296)]()),this[_0x5bae91(0x2aa)]=require(this['C'][_0x5bae91(0x2d5)])(),await this['printNotes'](),this[_0x5bae91(0x213)](_0x1d41e5[_0x5bae91(0x1ee)](this['appRoot'],this['C'][_0x5bae91(0x22c)])),await this[_0x5bae91(0x2d2)](),await this[_0x5bae91(0x334)]();}[_0x4edce0(0x201)](){const _0x27dfbf=_0x4edce0,_0x323833=process['version'];parseInt(_0x323833[_0x27dfbf(0x23b)]('.')[0x0]['replace']('v',''),0xa)<0x16&&(console[_0x27dfbf(0x202)](this[_0x27dfbf(0x222)]+_0x27dfbf(0x332)+_0x323833+this[_0x27dfbf(0x265)]),this[_0x27dfbf(0x2bf)](0x1)[_0x27dfbf(0x296)]());}async[_0x4edce0(0x2a0)](){const _0x97673b=_0x4edce0;console[_0x97673b(0x205)](this[_0x97673b(0x222)]),console[_0x97673b(0x205)]('——————————————————————————————————————\x20Note\x20——————————————————————————————————————'),console['log'](_0x97673b(0x2c2)),console[_0x97673b(0x205)](_0x97673b(0x2ea)+this[_0x97673b(0x2e0)]),console['log'](_0x97673b(0x280)),console[_0x97673b(0x205)](this[_0x97673b(0x265)]),console[_0x97673b(0x205)]('');}[_0x4edce0(0x21a)](){const _0x3290cc=_0x4edce0;console['log'](_0x3290cc(0x246)),console[_0x3290cc(0x205)]('\x20Please\x20provide\x20settings\x20in\x20:\x20'+this['C']['localClientPath']+_0x3290cc(0x289)),console[_0x3290cc(0x205)](_0x3290cc(0x2d7)),console[_0x3290cc(0x205)]('');}async[_0x4edce0(0x2d2)](){const _0x49b712=_0x4edce0,_0x52c7f7=_0x1d41e5[_0x49b712(0x235)](this[_0x49b712(0x2e0)]),_0xfeb818=_0x1d41e5[_0x49b712(0x1ee)](this['appRoot'],'..',_0x52c7f7+_0x49b712(0x2a5));this['projectDirectory']=_0xfeb818,_0x4150e8[_0x49b712(0x26b)](_0xfeb818,{'recursive':!0x0,'force':!0x0}),await this[_0x49b712(0x308)](_0xfeb818,{'recursive':!0x0});}async[_0x4edce0(0x2bc)](_0x23c2a9){const _0x404f77=_0x4edce0;await this[_0x404f77(0x2d2)](),this[_0x404f77(0x20f)](_0x1d41e5[_0x404f77(0x1ee)](this['projectDirectory'],this['C'][_0x404f77(0x22c)]),{'recursive':!0x0}),_0x4150e8[_0x404f77(0x299)](_0x1d41e5[_0x404f77(0x1ee)](this['appRoot'],_0x404f77(0x281)),_0x1d41e5[_0x404f77(0x1ee)](this[_0x404f77(0x25b)],'package.json')),_0x4150e8[_0x404f77(0x299)](_0x1d41e5[_0x404f77(0x1ee)](this[_0x404f77(0x2e0)],_0x404f77(0x33f)),_0x1d41e5[_0x404f77(0x1ee)](this[_0x404f77(0x25b)],'.gitignore'));const _0x1061f5=_0x1d41e5['join'](this[_0x404f77(0x2e0)],_0x404f77(0x2a1)),_0x4784d4=JSON[_0x404f77(0x2b6)](await this[_0x404f77(0x33c)](_0x1061f5,{'encoding':_0x404f77(0x2e2)}));_0x4784d4[_0x404f77(0x217)]['baseUrl']=_0x404f77(0x1f2),_0x4784d4[_0x404f77(0x217)][_0x404f77(0x31f)]['*'][_0x404f77(0x2c0)]('*'),await this[_0x404f77(0x20b)](_0x1d41e5[_0x404f77(0x1ee)](this['projectDirectory'],_0x404f77(0x2a1)),JSON[_0x404f77(0x327)](_0x4784d4,null,0x4),{'encoding':_0x404f77(0x2e2)}),await _0x4150e8[_0x404f77(0x24c)]['cp'](_0x1d41e5[_0x404f77(0x1ee)](this[_0x404f77(0x2e0)],this['C']['amTypes']),_0x1d41e5[_0x404f77(0x1ee)](this[_0x404f77(0x25b)],this['C'][_0x404f77(0x22c)],this['C'][_0x404f77(0x2d3)]),{'recursive':!0x0}),await _0x4150e8[_0x404f77(0x24c)]['cp'](_0x1d41e5['join'](this[_0x404f77(0x2e0)],this['C'][_0x404f77(0x22c)],this[_0x404f77(0x2aa)][_0x404f77(0x20a)],this['C'][_0x404f77(0x20d)],this['C'][_0x404f77(0x33b)]),_0x1d41e5[_0x404f77(0x1ee)](this['projectDirectory'],this['C'][_0x404f77(0x22c)],this['C']['amTypes'],this['C']['dbInterfacesFile']),{'recursive':!0x0}),await this[_0x404f77(0x323)](),await this[_0x404f77(0x2d6)](),await this[_0x404f77(0x1f5)](),await this['copySchemasToAnotherDir'](),await this[_0x404f77(0x304)](),await this[_0x404f77(0x2ed)](),await this['copyI18NToAnotherDir'](),await this['copyTestCasesToAnotherDir'](),await this['copyThirdPartyApisToAnotherDir'](),await this[_0x404f77(0x28b)](),await this[_0x404f77(0x30c)](),await this[_0x404f77(0x2b0)](),await this[_0x404f77(0x255)](),await this[_0x404f77(0x23a)](),await this[_0x404f77(0x292)](),await this[_0x404f77(0x2ae)](),await this[_0x404f77(0x22b)](),await this[_0x404f77(0x322)](),await this[_0x404f77(0x247)](),_0x23c2a9&&(console['log'](_0x404f77(0x2f6)),await this[_0x404f77(0x25c)](_0x404f77(0x28a),[_0x404f77(0x228),_0x404f77(0x2fc)]),console[_0x404f77(0x205)](_0x404f77(0x275)),this[_0x404f77(0x290)]=!0x0);try{_0x4150e8[_0x404f77(0x330)](_0x1d41e5[_0x404f77(0x1ee)](this['appRoot'],_0x404f77(0x262)),_0x1d41e5[_0x404f77(0x1ee)](this[_0x404f77(0x25b)],_0x404f77(0x262)),_0x404f77(0x211));}catch(_0x5adbb3){console[_0x404f77(0x205)](_0x404f77(0x233)),console[_0x404f77(0x205)](_0x5adbb3),await this['shutdownAndExit'](0x1);}}async['installRequiredPackages'](){const _0x39a567=_0x4edce0;console[_0x39a567(0x205)](_0x39a567(0x2f2));try{_0x4150e8[_0x39a567(0x25a)](_0x1d41e5['join'](this[_0x39a567(0x2e0)],_0x39a567(0x212)));}catch(_0x3c321d){}await this[_0x39a567(0x25c)](_0x39a567(0x28a),[_0x39a567(0x228),_0x39a567(0x1e8),_0x39a567(0x31e),'js-yaml@4.1.0']),this[_0x39a567(0x290)]=!0x0,console[_0x39a567(0x205)](_0x39a567(0x1ec));}async['copyUtilityClassesToAnotherDir'](){const _0x463957=_0x4edce0,_0x4b8580=this['C'][_0x463957(0x2f9)],_0xc53e85=_0x1d41e5[_0x463957(0x1ee)](this[_0x463957(0x2e0)],this['C'][_0x463957(0x22c)],this[_0x463957(0x2aa)][_0x463957(0x20a)],_0x4b8580),_0x29abf4=await this[_0x463957(0x283)](_0xc53e85,null);for(const _0x4dd6df of _0x29abf4){const _0x4cb2ab=_0x1d41e5[_0x463957(0x1ee)](_0xc53e85,_0x4dd6df,_0x4dd6df+_0x463957(0x2e9));if(!this[_0x463957(0x342)](_0x4cb2ab))continue;const _0x47edc8=await this[_0x463957(0x33c)](_0x4cb2ab,{'encoding':_0x463957(0x2e2)}),_0x328bfd=await this[_0x463957(0x2c1)](_0x47edc8);for(const _0x438077 of _0x328bfd[_0x463957(0x31b)]||[])if(!0x0===_0x438077['isActive']){const _0x416098=_0x1d41e5['join'](_0xc53e85,_0x4dd6df,this['C'][_0x463957(0x31b)],_0x438077[_0x463957(0x1f3)],_0x438077[_0x463957(0x2ca)]+_0x463957(0x21b)),_0x974b9=_0x1d41e5[_0x463957(0x1ee)](this[_0x463957(0x25b)],this['C'][_0x463957(0x22c)],_0x328bfd[_0x463957(0x253)],_0x328bfd[_0x463957(0x2ca)]+_0x463957(0x21b));await this[_0x463957(0x308)](_0x1d41e5[_0x463957(0x316)](_0x974b9),{'recursive':!0x0}),await this[_0x463957(0x282)](_0x416098,_0x974b9);}}}async[_0x4edce0(0x2d6)](){const _0x43c43d=_0x4edce0,_0x59351d=this['C']['CustomApiReadF'],_0x506013=this['C']['CustomApisWriteF'],_0x4184b6=_0x1d41e5[_0x43c43d(0x1ee)](this['appRoot'],this['C'][_0x43c43d(0x22c)],this[_0x43c43d(0x2aa)][_0x43c43d(0x20a)],_0x59351d),_0x4a8eac=await this[_0x43c43d(0x283)](_0x4184b6,null);for(const _0x30db22 of _0x4a8eac){const _0x1cfe17=_0x1d41e5[_0x43c43d(0x1ee)](_0x4184b6,_0x30db22,_0x30db22+_0x43c43d(0x2e9));if(!this[_0x43c43d(0x342)](_0x1cfe17))continue;const _0x111d16=await this[_0x43c43d(0x33c)](_0x1cfe17,{'encoding':_0x43c43d(0x2e2)}),_0x2bdbd4=await this[_0x43c43d(0x2c1)](_0x111d16);for(const _0x17a9b5 of _0x2bdbd4[_0x43c43d(0x31b)]||[])if(!0x0===_0x17a9b5[_0x43c43d(0x2ad)]){const _0x51ca5c=_0x1d41e5['join'](_0x4184b6,_0x30db22,this['C'][_0x43c43d(0x31b)],_0x17a9b5[_0x43c43d(0x1f3)]),_0x39442f=_0x1d41e5[_0x43c43d(0x1ee)](_0x51ca5c,_0x17a9b5[_0x43c43d(0x2ca)]+'.ts'),_0x235176=_0x1d41e5[_0x43c43d(0x1ee)](this[_0x43c43d(0x25b)],this['C'][_0x43c43d(0x22c)],_0x506013,_0x2bdbd4['path'],_0x2bdbd4[_0x43c43d(0x2ca)]+_0x43c43d(0x21b));await this[_0x43c43d(0x308)](_0x1d41e5['dirname'](_0x235176),{'recursive':!0x0}),await this[_0x43c43d(0x282)](_0x39442f,_0x235176);const _0x7ea58d=_0x1d41e5[_0x43c43d(0x1ee)](_0x4184b6,_0x30db22,_0x30db22+'.config.ts'),_0x3d7dc1=_0x1d41e5[_0x43c43d(0x1ee)](this['projectDirectory'],this['C']['src'],_0x506013,_0x2bdbd4[_0x43c43d(0x2c4)],_0x2bdbd4[_0x43c43d(0x2ca)]+_0x43c43d(0x2e5));await this[_0x43c43d(0x282)](_0x7ea58d,_0x3d7dc1);for(const _0x4c992f of _0x17a9b5[_0x43c43d(0x215)]){const _0x5b53e9=_0x1d41e5[_0x43c43d(0x1ee)](_0x51ca5c,this['C']['preHooks'],_0x4c992f[_0x43c43d(0x2ca)]+'.ts'),_0x1a60c5=_0x1d41e5[_0x43c43d(0x1ee)](this[_0x43c43d(0x25b)],this['C']['src'],_0x506013,_0x2bdbd4[_0x43c43d(0x2c4)],this['C'][_0x43c43d(0x215)],_0x4c992f[_0x43c43d(0x2ca)]+'.ts');await this['fsMkDir'](_0x1d41e5[_0x43c43d(0x316)](_0x1a60c5),{'recursive':!0x0}),await this[_0x43c43d(0x282)](_0x5b53e9,_0x1a60c5);}for(const _0x5f484b of _0x17a9b5[_0x43c43d(0x254)]){const _0x535f06=_0x1d41e5['join'](_0x51ca5c,this['C'][_0x43c43d(0x254)],_0x5f484b[_0x43c43d(0x2ca)]+_0x43c43d(0x21b)),_0x520d38=_0x1d41e5[_0x43c43d(0x1ee)](this[_0x43c43d(0x25b)],this['C']['src'],_0x506013,_0x2bdbd4[_0x43c43d(0x2c4)],this['C']['postHooks'],_0x5f484b[_0x43c43d(0x2ca)]+_0x43c43d(0x21b));await this[_0x43c43d(0x308)](_0x1d41e5['dirname'](_0x520d38),{'recursive':!0x0}),await this['fsLink'](_0x535f06,_0x520d38);}}}}async[_0x4edce0(0x1f5)](){const _0x53ef09=_0x4edce0,_0x1bef9d=this['C'][_0x53ef09(0x348)],_0x596714=this['C'][_0x53ef09(0x2dd)],_0x5b72c0=_0x1d41e5[_0x53ef09(0x1ee)](this[_0x53ef09(0x2e0)],this['C'][_0x53ef09(0x22c)],this['config'][_0x53ef09(0x20a)],_0x1bef9d),_0x30ef4b=await this[_0x53ef09(0x283)](_0x5b72c0,null);for(const _0xc1ca61 of _0x30ef4b){const _0x564881=_0x1d41e5['join'](_0x5b72c0,_0xc1ca61,_0xc1ca61+_0x53ef09(0x2e9));if(!this[_0x53ef09(0x342)](_0x564881))continue;const _0x4503d2=await this[_0x53ef09(0x33c)](_0x564881,{'encoding':'utf8'}),_0x58c43e=await this[_0x53ef09(0x2c1)](_0x4503d2);for(const _0xe661e1 of _0x58c43e[_0x53ef09(0x31b)]||[])if(!0x0===_0xe661e1[_0x53ef09(0x2ad)]){const _0x52711d=_0x1d41e5[_0x53ef09(0x1ee)](_0x5b72c0,_0xc1ca61,this['C'][_0x53ef09(0x31b)],_0xe661e1[_0x53ef09(0x1f3)],_0xe661e1[_0x53ef09(0x2ca)]+_0x53ef09(0x21b)),_0x4c6e5e=_0x1d41e5[_0x53ef09(0x1ee)](this['projectDirectory'],this['C']['src'],_0x596714,_0x58c43e[_0x53ef09(0x2ca)]+_0x53ef09(0x21b));await this[_0x53ef09(0x308)](_0x1d41e5['dirname'](_0x4c6e5e),{'recursive':!0x0}),await this[_0x53ef09(0x282)](_0x52711d,_0x4c6e5e);}}}async[_0x4edce0(0x24d)](){const _0x59e5db=_0x4edce0,_0x3f26db=this['C'][_0x59e5db(0x2c3)],_0x2bf659=this['C'][_0x59e5db(0x258)],_0xfb8e2d=_0x1d41e5[_0x59e5db(0x1ee)](this[_0x59e5db(0x2e0)],this['C']['src'],this[_0x59e5db(0x2aa)][_0x59e5db(0x20a)],_0x3f26db),_0xefd057=await this['readDirCustom'](_0xfb8e2d,null);for(const _0x5e4ece of _0xefd057){const _0x3bb606=_0x1d41e5[_0x59e5db(0x1ee)](_0xfb8e2d,_0x5e4ece,_0x5e4ece+_0x59e5db(0x2e9));if(!this[_0x59e5db(0x342)](_0x3bb606))continue;const _0x109bb9=await this[_0x59e5db(0x33c)](_0x3bb606,{'encoding':_0x59e5db(0x2e2)}),_0x217d1c=await this[_0x59e5db(0x2c1)](_0x109bb9),_0x4d733b=_0x1d41e5[_0x59e5db(0x1ee)](this[_0x59e5db(0x25b)],this['C'][_0x59e5db(0x22c)],_0x2bf659,_0x217d1c[_0x59e5db(0x2ba)],_0x217d1c[_0x59e5db(0x2a8)]);await this[_0x59e5db(0x308)](_0x4d733b,{'recursive':!0x0});const _0x4072cf=_0x1d41e5[_0x59e5db(0x1ee)](_0xfb8e2d,_0x5e4ece,_0x217d1c[_0x59e5db(0x26e)]+_0x59e5db(0x2e5)),_0x517a6c=_0x1d41e5[_0x59e5db(0x1ee)](_0x4d733b,_0x217d1c[_0x59e5db(0x26e)]+_0x59e5db(0x2e5));await this[_0x59e5db(0x282)](_0x4072cf,_0x517a6c);}}async[_0x4edce0(0x304)](){const _0x2f7983=_0x4edce0,_0x420deb=this['C']['DBMigrationsReadF'],_0x1ae9ad=this['C'][_0x2f7983(0x26a)],_0x557701=_0x1d41e5['join'](this[_0x2f7983(0x2e0)],this['C'][_0x2f7983(0x22c)],this[_0x2f7983(0x2aa)][_0x2f7983(0x20a)],_0x420deb),_0x47c87c=await this[_0x2f7983(0x283)](_0x557701,null);for(const _0x263995 of _0x47c87c){const _0x425c9b=_0x1d41e5['join'](_0x557701,_0x263995,_0x263995+_0x2f7983(0x2e9));if(!this['fsExistsSync'](_0x425c9b))continue;const _0x4efa25=await this[_0x2f7983(0x33c)](_0x425c9b,{'encoding':_0x2f7983(0x2e2)}),_0x5bad11=await this['parseYaml'](_0x4efa25),_0x366208=_0x1d41e5[_0x2f7983(0x1ee)](this[_0x2f7983(0x25b)],this['C']['src'],_0x1ae9ad);await this[_0x2f7983(0x308)](_0x366208,{'recursive':!0x0});const _0x402957=_0x1d41e5['join'](_0x557701,_0x263995,_0x5bad11['name']+'.ts'),_0x3b9fbb=_0x1d41e5['join'](_0x366208,_0x5bad11['name']+'.ts');await this['fsLink'](_0x402957,_0x3b9fbb);}}async[_0x4edce0(0x2ed)](){const _0x1fe5ff=_0x4edce0,_0x478289=this['C'][_0x1fe5ff(0x276)],_0x1fe074=this['C']['ProcessInitializersWriteF'],_0x48048f=_0x1d41e5['join'](this[_0x1fe5ff(0x2e0)],this['C'][_0x1fe5ff(0x22c)],this[_0x1fe5ff(0x2aa)][_0x1fe5ff(0x20a)],_0x478289),_0x22f221=await this[_0x1fe5ff(0x283)](_0x48048f,null);for(const _0x5b6087 of _0x22f221){const _0x2a6dd7=_0x1d41e5[_0x1fe5ff(0x1ee)](_0x48048f,_0x5b6087,_0x5b6087+_0x1fe5ff(0x2e9));if(!this[_0x1fe5ff(0x342)](_0x2a6dd7))continue;const _0x23f8f3=await this[_0x1fe5ff(0x33c)](_0x2a6dd7,{'encoding':_0x1fe5ff(0x2e2)}),_0x1a9140=await this[_0x1fe5ff(0x2c1)](_0x23f8f3),_0x2a908d=_0x1d41e5['join'](this['projectDirectory'],this['C'][_0x1fe5ff(0x22c)],_0x1fe074);await this[_0x1fe5ff(0x308)](_0x2a908d,{'recursive':!0x0});const _0x357fad=_0x1d41e5[_0x1fe5ff(0x1ee)](_0x48048f,_0x5b6087,_0x1a9140[_0x1fe5ff(0x2ca)]+_0x1fe5ff(0x21b)),_0x365fbf=_0x1d41e5[_0x1fe5ff(0x1ee)](_0x2a908d,_0x1a9140[_0x1fe5ff(0x2ca)]+_0x1fe5ff(0x21b));await this[_0x1fe5ff(0x282)](_0x357fad,_0x365fbf);}}async[_0x4edce0(0x34e)](){const _0x593a30=_0x4edce0,_0x42a367=this['C'][_0x593a30(0x29d)],_0x4e7855=this['C'][_0x593a30(0x30a)],_0x57d210=_0x1d41e5[_0x593a30(0x1ee)](this[_0x593a30(0x2e0)],this['C'][_0x593a30(0x22c)],this[_0x593a30(0x2aa)]['adminUserPath'],_0x42a367),_0x37d594=await this[_0x593a30(0x283)](_0x57d210,null);for(const _0x17ce3f of _0x37d594){const _0x12eff7=_0x1d41e5[_0x593a30(0x1ee)](_0x57d210,_0x17ce3f,_0x17ce3f+_0x593a30(0x2e9));if(!this[_0x593a30(0x342)](_0x12eff7))continue;const _0x3238b7=await this['fsReadFile'](_0x12eff7,{'encoding':'utf8'}),_0x114412=await this[_0x593a30(0x2c1)](_0x3238b7),_0x4122c9=_0x1d41e5['join'](this[_0x593a30(0x25b)],this['C'][_0x593a30(0x22c)],_0x4e7855);await this[_0x593a30(0x308)](_0x4122c9,{'recursive':!0x0});const _0x448574=_0x1d41e5[_0x593a30(0x1ee)](_0x57d210,_0x17ce3f,_0x114412[_0x593a30(0x2ca)]+_0x593a30(0x21b)),_0x3d5136=_0x1d41e5[_0x593a30(0x1ee)](_0x4122c9,_0x114412[_0x593a30(0x2ca)]+_0x593a30(0x21b));await this[_0x593a30(0x282)](_0x448574,_0x3d5136);}}async[_0x4edce0(0x22b)](){const _0x1dad26=_0x4edce0,_0x2d16e5=this['C']['DBMastersReadF'],_0x53782f=this['C'][_0x1dad26(0x333)],_0x3fee73=_0x1d41e5[_0x1dad26(0x1ee)](this[_0x1dad26(0x2e0)],this['C'][_0x1dad26(0x22c)],this[_0x1dad26(0x2aa)]['adminUserPath'],_0x2d16e5),_0x10d06d=await this[_0x1dad26(0x283)](_0x3fee73,null);for(const _0x394be6 of _0x10d06d){const _0x1e787c=_0x1d41e5[_0x1dad26(0x1ee)](_0x3fee73,_0x394be6,_0x394be6+_0x1dad26(0x2e9));if(!this[_0x1dad26(0x342)](_0x1e787c))continue;const _0x3046bb=await this[_0x1dad26(0x33c)](_0x1e787c,{'encoding':_0x1dad26(0x2e2)}),_0x253ecf=await this['parseYaml'](_0x3046bb),_0x261092=_0x1d41e5[_0x1dad26(0x1ee)](this[_0x1dad26(0x25b)],this['C'][_0x1dad26(0x22c)],_0x53782f,_0x253ecf[_0x1dad26(0x2ca)]);await this[_0x1dad26(0x308)](_0x261092,{'recursive':!0x0});const _0x2af283=_0x1d41e5[_0x1dad26(0x1ee)](_0x3fee73,_0x394be6,_0x253ecf['name']+'.ts'),_0x57341b=_0x1d41e5['join'](_0x261092,_0x253ecf[_0x1dad26(0x2ca)]+_0x1dad26(0x21b));await this[_0x1dad26(0x282)](_0x2af283,_0x57341b);const _0x44e0ec=_0x1d41e5[_0x1dad26(0x1ee)](_0x3fee73,_0x394be6,_0x253ecf[_0x1dad26(0x2ca)]+_0x1dad26(0x2e5)),_0x3bf483=_0x1d41e5['join'](_0x261092,_0x253ecf[_0x1dad26(0x2ca)]+'.config.ts');await this[_0x1dad26(0x282)](_0x44e0ec,_0x3bf483);}}async[_0x4edce0(0x322)](){const _0x634b7f=_0x4edce0,_0x569c54=this['C'][_0x634b7f(0x1ef)],_0x47a512=this['C'][_0x634b7f(0x1fd)],_0x5bba2d=_0x1d41e5[_0x634b7f(0x1ee)](this[_0x634b7f(0x2e0)],this['C']['src'],this[_0x634b7f(0x2aa)][_0x634b7f(0x20a)],_0x569c54),_0x585fc1=await this[_0x634b7f(0x283)](_0x5bba2d,null);for(const _0x351f6f of _0x585fc1){const _0x22de71=_0x1d41e5[_0x634b7f(0x1ee)](_0x5bba2d,_0x351f6f,_0x351f6f+_0x634b7f(0x2e9));if(!this[_0x634b7f(0x342)](_0x22de71))continue;const _0x299110=await this[_0x634b7f(0x33c)](_0x22de71,{'encoding':_0x634b7f(0x2e2)}),_0x536735=await this[_0x634b7f(0x2c1)](_0x299110),_0x1dbe7b=_0x1d41e5[_0x634b7f(0x1ee)](this[_0x634b7f(0x25b)],this['C']['src'],_0x47a512);await this[_0x634b7f(0x308)](_0x1dbe7b,{'recursive':!0x0});const _0x31e537=_0x1d41e5[_0x634b7f(0x1ee)](_0x5bba2d,_0x351f6f,_0x536735[_0x634b7f(0x2ca)]+_0x634b7f(0x2ee)),_0x315d7a=_0x1d41e5[_0x634b7f(0x1ee)](_0x1dbe7b,_0x536735[_0x634b7f(0x2ca)]+'.css');await this[_0x634b7f(0x282)](_0x31e537,_0x315d7a);}}async['copyDBMasterUtilsToAnotherDir'](){const _0x4d74d6=_0x4edce0,_0x42a5cb=this['C']['DBMasterUtilsReadF'],_0x181221=this['C'][_0x4d74d6(0x28f)],_0x5470b8=_0x1d41e5['join'](this['appRoot'],this['C'][_0x4d74d6(0x22c)],this[_0x4d74d6(0x2aa)]['adminUserPath'],_0x42a5cb),_0x4d7316=await this[_0x4d74d6(0x283)](_0x5470b8,null);for(const _0x3cfec4 of _0x4d7316){const _0x341a7e=_0x1d41e5[_0x4d74d6(0x1ee)](_0x5470b8,_0x3cfec4,_0x3cfec4+_0x4d74d6(0x2e9));if(!this['fsExistsSync'](_0x341a7e))continue;const _0x49bc2d=await this[_0x4d74d6(0x33c)](_0x341a7e,{'encoding':_0x4d74d6(0x2e2)}),_0x14b267=await this[_0x4d74d6(0x2c1)](_0x49bc2d),_0x498378=_0x1d41e5[_0x4d74d6(0x1ee)](this[_0x4d74d6(0x25b)],this['C'][_0x4d74d6(0x22c)],_0x181221);await this[_0x4d74d6(0x308)](_0x498378,{'recursive':!0x0});const _0x21b321=_0x1d41e5[_0x4d74d6(0x1ee)](_0x5470b8,_0x3cfec4,_0x14b267['name']+_0x4d74d6(0x21b)),_0xdd5ead=_0x1d41e5['join'](_0x498378,_0x14b267[_0x4d74d6(0x2ca)]+'.ts');await this[_0x4d74d6(0x282)](_0x21b321,_0xdd5ead);}}async[_0x4edce0(0x230)](){const _0x2590d4=_0x4edce0,_0x4b6c0e=this['C'][_0x2590d4(0x1fb)],_0x50bb0f=this['C'][_0x2590d4(0x23e)],_0x27e04c=_0x1d41e5[_0x2590d4(0x1ee)](this[_0x2590d4(0x2e0)],this['C'][_0x2590d4(0x22c)],this['config']['adminUserPath'],_0x4b6c0e),_0x44dd1c=await this['readDirCustom'](_0x27e04c,null);for(const _0x1e1603 of _0x44dd1c){const _0x18398a=_0x1d41e5[_0x2590d4(0x1ee)](_0x27e04c,_0x1e1603,_0x1e1603+'.yaml');if(!this[_0x2590d4(0x342)](_0x18398a))continue;const _0x4617cf=await this[_0x2590d4(0x33c)](_0x18398a,{'encoding':'utf8'}),_0x190e07=await this[_0x2590d4(0x2c1)](_0x4617cf),_0x1420e8=_0x1d41e5['join'](this[_0x2590d4(0x25b)],this['C'][_0x2590d4(0x22c)],_0x50bb0f);await this[_0x2590d4(0x308)](_0x1420e8,{'recursive':!0x0});const _0x390abd=_0x1d41e5[_0x2590d4(0x1ee)](_0x27e04c,_0x1e1603,_0x190e07[_0x2590d4(0x2ca)]+_0x2590d4(0x21b)),_0x2a403f=_0x1d41e5[_0x2590d4(0x1ee)](_0x1420e8,_0x190e07[_0x2590d4(0x2ca)]+_0x2590d4(0x21b));await this[_0x2590d4(0x282)](_0x390abd,_0x2a403f);}}async[_0x4edce0(0x274)](){const _0x344710=_0x4edce0,_0x3241dd=this['C'][_0x344710(0x344)],_0x3ee00e=this['C']['ThirdPartyApiWriteF'],_0x13291c=_0x1d41e5[_0x344710(0x1ee)](this[_0x344710(0x2e0)],this['C'][_0x344710(0x22c)],this['config']['adminUserPath'],_0x3241dd);if(!this[_0x344710(0x342)](_0x13291c))return;const _0x5a1ca2=await this[_0x344710(0x283)](_0x13291c,null);for(const _0xcc5b3 of _0x5a1ca2){const _0x1c7d10=_0x1d41e5[_0x344710(0x1ee)](_0x13291c,_0xcc5b3,this['C'][_0x344710(0x32c)]),_0x2052b6=await this[_0x344710(0x283)](_0x1c7d10,null);for(const _0x2871ad of _0x2052b6){const _0x4365f9=_0x1d41e5[_0x344710(0x1ee)](_0x1c7d10,_0x2871ad,_0x2871ad+_0x344710(0x2e9));if(!this[_0x344710(0x342)](_0x4365f9))continue;const _0x167ed5=await this[_0x344710(0x33c)](_0x4365f9,{'encoding':_0x344710(0x2e2)}),_0x729e98=await this[_0x344710(0x2c1)](_0x167ed5);for(const _0x247294 of _0x729e98['versions']||[])if(!0x0===_0x247294['isActive']){const _0x3348eb=_0x1d41e5['join'](_0x1c7d10,_0x2871ad,this['C'][_0x344710(0x31b)],_0x247294['version']),_0x534da2=_0x1d41e5[_0x344710(0x1ee)](_0x3348eb,_0x247294[_0x344710(0x2ca)]+_0x344710(0x21b)),_0xeb1478=_0x1d41e5[_0x344710(0x1ee)](this[_0x344710(0x25b)],this['C']['src'],_0x3ee00e,_0xcc5b3,_0x729e98[_0x344710(0x2c4)],_0x729e98[_0x344710(0x2ca)]+_0x344710(0x21b));await this['fsMkDir'](_0x1d41e5[_0x344710(0x316)](_0xeb1478),{'recursive':!0x0}),await this[_0x344710(0x282)](_0x534da2,_0xeb1478);const _0x1852ee=_0x1d41e5[_0x344710(0x1ee)](_0x1c7d10,_0x2871ad,_0x2871ad+_0x344710(0x2e5)),_0x22830e=_0x1d41e5[_0x344710(0x1ee)](this[_0x344710(0x25b)],this['C'][_0x344710(0x22c)],_0x3ee00e,_0xcc5b3,_0x729e98['path'],_0x729e98[_0x344710(0x2ca)]+'.config.ts');await this[_0x344710(0x282)](_0x1852ee,_0x22830e);for(const _0x22eea0 of _0x247294['preHooks']){const _0x3e10e7=_0x1d41e5[_0x344710(0x1ee)](_0x3348eb,this['C'][_0x344710(0x215)],_0x22eea0[_0x344710(0x2ca)]+_0x344710(0x21b)),_0x4cd5c5=_0x1d41e5[_0x344710(0x1ee)](this[_0x344710(0x25b)],this['C'][_0x344710(0x22c)],_0x3ee00e,_0xcc5b3,_0x729e98[_0x344710(0x2c4)],this['C'][_0x344710(0x215)],_0x22eea0[_0x344710(0x2ca)]+_0x344710(0x21b));await this[_0x344710(0x308)](_0x1d41e5[_0x344710(0x316)](_0x4cd5c5),{'recursive':!0x0}),await this[_0x344710(0x282)](_0x3e10e7,_0x4cd5c5);}for(const _0x528b8e of _0x247294[_0x344710(0x254)]){const _0x27b1cb=_0x1d41e5['join'](_0x3348eb,this['C'][_0x344710(0x254)],_0x528b8e[_0x344710(0x2ca)]+_0x344710(0x21b)),_0x516ff4=_0x1d41e5[_0x344710(0x1ee)](this[_0x344710(0x25b)],this['C'][_0x344710(0x22c)],_0x3ee00e,_0xcc5b3,_0x729e98[_0x344710(0x2c4)],this['C']['postHooks'],_0x528b8e['name']+_0x344710(0x21b));await this['fsMkDir'](_0x1d41e5['dirname'](_0x516ff4),{'recursive':!0x0}),await this[_0x344710(0x282)](_0x27b1cb,_0x516ff4);}}}}}async['copyEventsToAnotherDir'](){const _0x5308a5=_0x4edce0,_0x5d6305=this['C'][_0x5308a5(0x210)],_0x47a27d=this['C'][_0x5308a5(0x2e4)],_0x40ae7e=_0x1d41e5[_0x5308a5(0x1ee)](this[_0x5308a5(0x2e0)],this['C'][_0x5308a5(0x22c)],this[_0x5308a5(0x2aa)]['adminUserPath'],_0x5d6305),_0x3d4c9d=await this[_0x5308a5(0x283)](_0x40ae7e,null);for(const _0x4c5a3d of _0x3d4c9d){const _0x45437d=_0x1d41e5[_0x5308a5(0x1ee)](_0x40ae7e,_0x4c5a3d,_0x4c5a3d+_0x5308a5(0x2e9));if(!this[_0x5308a5(0x342)](_0x45437d))continue;const _0x5b4817=await this[_0x5308a5(0x33c)](_0x45437d,{'encoding':_0x5308a5(0x2e2)}),_0x2d6fff=await this['parseYaml'](_0x5b4817),_0x49b8cc=_0x1d41e5['join'](_0x40ae7e,_0x4c5a3d,this['C'][_0x5308a5(0x263)]);for(const _0x4f528e of _0x2d6fff[_0x5308a5(0x28c)])for(const _0x45c790 of _0x4f528e[_0x5308a5(0x31b)]||[])if(!0x0===_0x45c790[_0x5308a5(0x2ad)]){const _0x260e8f=_0x1d41e5[_0x5308a5(0x1ee)](_0x49b8cc,_0x4f528e['name'],this['C']['versions'],_0x45c790[_0x5308a5(0x1f3)],_0x45c790['name']+'.ts'),_0x22a5fb=_0x1d41e5[_0x5308a5(0x1ee)](this[_0x5308a5(0x25b)],this['C'][_0x5308a5(0x22c)],_0x47a27d,_0x2d6fff[_0x5308a5(0x2ca)],_0x4f528e['name']+_0x5308a5(0x21b));await this[_0x5308a5(0x308)](_0x1d41e5[_0x5308a5(0x316)](_0x22a5fb),{'recursive':!0x0}),await this[_0x5308a5(0x282)](_0x260e8f,_0x22a5fb);}}}async['copyInstanceApiHooksToAnotherDir'](){const _0x1074b8=_0x4edce0,_0x1a99b4=this['C'][_0x1074b8(0x26f)],_0xf670b1=this['C'][_0x1074b8(0x273)],_0x3bfae4=_0x1d41e5[_0x1074b8(0x1ee)](this[_0x1074b8(0x2e0)],this['C'][_0x1074b8(0x22c)],this[_0x1074b8(0x2aa)]['adminUserPath'],_0x1a99b4),_0x1b4fa3=await this['readDirCustom'](_0x3bfae4,null);for(const _0x325372 of _0x1b4fa3){const _0x2b5712=_0x1d41e5[_0x1074b8(0x1ee)](_0x3bfae4,_0x325372,_0x325372+_0x1074b8(0x2e9));if(!this['fsExistsSync'](_0x2b5712))continue;const _0x190380=await this['fsReadFile'](_0x2b5712,{'encoding':_0x1074b8(0x2e2)}),_0x57660f=await this['parseYaml'](_0x190380),_0x5acb06=_0x1d41e5[_0x1074b8(0x1ee)](_0x3bfae4,_0x325372),_0x515b1c=_0x57660f[_0x1074b8(0x2ba)]+'/'+_0x57660f[_0x1074b8(0x2a8)]+'/'+_0x57660f['collectionName']+'/'+_0x57660f[_0x1074b8(0x23f)]['toLowerCase']();for(const _0x440d3d of _0x57660f[_0x1074b8(0x215)]){const _0x2b6300=_0x1d41e5['join'](_0x5acb06,this['C'][_0x1074b8(0x215)],_0x440d3d[_0x1074b8(0x2ca)]+_0x1074b8(0x21b)),_0x51c664=_0x1d41e5[_0x1074b8(0x1ee)](this[_0x1074b8(0x25b)],this['C'][_0x1074b8(0x22c)],_0xf670b1,_0x515b1c,this['C']['preHooks'],_0x440d3d['name']+_0x1074b8(0x21b));await this[_0x1074b8(0x308)](_0x1d41e5[_0x1074b8(0x316)](_0x51c664),{'recursive':!0x0}),await this[_0x1074b8(0x282)](_0x2b6300,_0x51c664);}for(const _0x2b7f7e of _0x57660f[_0x1074b8(0x254)]){const _0x2922f1=_0x1d41e5[_0x1074b8(0x1ee)](_0x5acb06,this['C'][_0x1074b8(0x254)],_0x2b7f7e['name']+_0x1074b8(0x21b)),_0x444cc4=_0x1d41e5[_0x1074b8(0x1ee)](this['projectDirectory'],this['C']['src'],_0xf670b1,_0x515b1c,this['C']['postHooks'],_0x2b7f7e[_0x1074b8(0x2ca)]+_0x1074b8(0x21b));await this['fsMkDir'](_0x1d41e5[_0x1074b8(0x316)](_0x444cc4),{'recursive':!0x0}),await this[_0x1074b8(0x282)](_0x2922f1,_0x444cc4);}}}async[_0x4edce0(0x2b0)](){const _0x540869=_0x4edce0,_0x168e1d=this['C'][_0x540869(0x250)],_0x44bbf3=this['C'][_0x540869(0x349)],_0x5076f6=_0x1d41e5['join'](this[_0x540869(0x2e0)],this['C'][_0x540869(0x22c)],this[_0x540869(0x2aa)][_0x540869(0x20a)],_0x168e1d),_0x2ea75d=await this[_0x540869(0x283)](_0x5076f6,null);for(const _0x5f425b of _0x2ea75d){const _0xf7983c=_0x1d41e5[_0x540869(0x1ee)](_0x5076f6,_0x5f425b,_0x5f425b+_0x540869(0x2e9));if(!this[_0x540869(0x342)](_0xf7983c))continue;const _0x5045b4=await this[_0x540869(0x33c)](_0xf7983c,{'encoding':_0x540869(0x2e2)}),_0x1e0d22=await this[_0x540869(0x2c1)](_0x5045b4),_0xe91aa1=_0x1d41e5[_0x540869(0x1ee)](_0x5076f6,_0x5f425b),_0x18b4f8=_0x1e0d22['apiId'][_0x540869(0x307)]();for(const _0x15d2f0 of _0x1e0d22[_0x540869(0x215)]){const _0x58d9f1=_0x1d41e5[_0x540869(0x1ee)](_0xe91aa1,this['C'][_0x540869(0x215)],_0x15d2f0[_0x540869(0x2ca)]+_0x540869(0x21b)),_0x324117=_0x1d41e5['join'](this[_0x540869(0x25b)],this['C'][_0x540869(0x22c)],_0x44bbf3,_0x18b4f8,this['C'][_0x540869(0x215)],_0x15d2f0[_0x540869(0x2ca)]+'.ts');await this[_0x540869(0x308)](_0x1d41e5['dirname'](_0x324117),{'recursive':!0x0}),await this[_0x540869(0x282)](_0x58d9f1,_0x324117);}for(const _0x45a770 of _0x1e0d22['postHooks']){const _0xa99295=_0x1d41e5[_0x540869(0x1ee)](_0xe91aa1,this['C'][_0x540869(0x254)],_0x45a770['name']+_0x540869(0x21b)),_0x390086=_0x1d41e5[_0x540869(0x1ee)](this[_0x540869(0x25b)],this['C'][_0x540869(0x22c)],_0x44bbf3,_0x18b4f8,this['C'][_0x540869(0x254)],_0x45a770[_0x540869(0x2ca)]+'.ts');await this['fsMkDir'](_0x1d41e5[_0x540869(0x316)](_0x390086),{'recursive':!0x0}),await this['fsLink'](_0xa99295,_0x390086);}}}async[_0x4edce0(0x255)](){const _0x185697=_0x4edce0,_0x3c8765=this['C'][_0x185697(0x264)],_0x5c7778=this['C'][_0x185697(0x1f7)],_0x13ba36=_0x1d41e5[_0x185697(0x1ee)](this['appRoot'],this['C']['src'],this[_0x185697(0x2aa)][_0x185697(0x20a)],_0x3c8765),_0x160fa1=await this[_0x185697(0x283)](_0x13ba36,null);for(const _0x1f7f54 of _0x160fa1){const _0x310291=_0x1d41e5[_0x185697(0x1ee)](_0x13ba36,_0x1f7f54,_0x1f7f54+_0x185697(0x2e9));if(!this[_0x185697(0x342)](_0x310291))continue;const _0xc68314=await this['fsReadFile'](_0x310291,{'encoding':_0x185697(0x2e2)}),_0x2b5a57=await this[_0x185697(0x2c1)](_0xc68314);for(const _0x33ff5a of _0x2b5a57[_0x185697(0x31b)]||[])if(!0x0===_0x33ff5a[_0x185697(0x2ad)]){const _0x142bd4=_0x1d41e5['join'](_0x13ba36,_0x1f7f54,this['C'][_0x185697(0x31b)],_0x33ff5a[_0x185697(0x1f3)],_0x33ff5a['name']+_0x185697(0x21b));let _0x399221='',_0x49687e='';_0x2b5a57[_0x185697(0x216)]===_0xc42bd9[_0x185697(0x2c5)]?(_0x49687e=_0x185697(0x1e6),_0x399221=_0x2b5a57[_0x185697(0x2ba)]+'/'+_0x2b5a57['databaseName']+'/'+_0x2b5a57['collectionName']+'/'+_0x2b5a57['instanceApiName'][_0x185697(0x307)]()):_0x2b5a57[_0x185697(0x216)]===_0xc42bd9[_0x185697(0x33d)]?(_0x49687e=_0x185697(0x249),_0x399221=_0x2b5a57[_0x185697(0x2ec)]+'/'+_0x2b5a57['tpInstalledApiName']):_0x2b5a57[_0x185697(0x216)]===_0xc42bd9[_0x185697(0x24a)]?(_0x49687e=_0x185697(0x252),_0x399221=_0x2b5a57[_0x185697(0x2be)]):_0x2b5a57[_0x185697(0x216)]===_0xc42bd9[_0x185697(0x2f0)]?(_0x49687e=_0x185697(0x2b5),_0x399221=_0x2b5a57[_0x185697(0x318)]['toLowerCase']()):_0x2b5a57[_0x185697(0x216)]===_0xc42bd9[_0x185697(0x271)]&&(_0x49687e=_0x185697(0x2a7),_0x399221=_0x2b5a57[_0x185697(0x2ca)]);const _0x59e25a=_0x1d41e5[_0x185697(0x1ee)](this[_0x185697(0x25b)],this['C'][_0x185697(0x22c)],_0x5c7778,_0x49687e,_0x399221+_0x185697(0x21b));await this[_0x185697(0x308)](_0x1d41e5['dirname'](_0x59e25a),{'recursive':!0x0}),await this[_0x185697(0x282)](_0x142bd4,_0x59e25a);}}}async[_0x4edce0(0x23a)](){const _0x5f3ed1=_0x4edce0,_0x1a7b3b=this['C']['CollectionHooksReadF'],_0x1ce4a4=this['C'][_0x5f3ed1(0x293)],_0xbaabad=_0x1d41e5['join'](this['appRoot'],this['C'][_0x5f3ed1(0x22c)],this[_0x5f3ed1(0x2aa)][_0x5f3ed1(0x20a)],_0x1a7b3b),_0x4ef08e=await this[_0x5f3ed1(0x283)](_0xbaabad,null);for(const _0x51e3a6 of _0x4ef08e){const _0x4628e8=_0x1d41e5['join'](_0xbaabad,_0x51e3a6,_0x51e3a6+_0x5f3ed1(0x2e9));if(!this['fsExistsSync'](_0x4628e8))continue;const _0x476342=await this[_0x5f3ed1(0x33c)](_0x4628e8,{'encoding':_0x5f3ed1(0x2e2)}),_0x830710=await this[_0x5f3ed1(0x2c1)](_0x476342),_0x509e6c=_0x1d41e5[_0x5f3ed1(0x1ee)](_0xbaabad,_0x51e3a6),_0x5936e6=_0x830710[_0x5f3ed1(0x2ba)]+'/'+_0x830710['databaseName']+'/'+_0x830710[_0x5f3ed1(0x26e)];for(const _0x2ee800 of _0x830710[_0x5f3ed1(0x215)]){const _0x538e8f=_0x1d41e5[_0x5f3ed1(0x1ee)](_0x509e6c,this['C'][_0x5f3ed1(0x215)],_0x2ee800[_0x5f3ed1(0x2ca)]+_0x5f3ed1(0x21b)),_0x5975af=_0x1d41e5['join'](this[_0x5f3ed1(0x25b)],this['C'][_0x5f3ed1(0x22c)],_0x1ce4a4,_0x5936e6,this['C'][_0x5f3ed1(0x215)],_0x2ee800[_0x5f3ed1(0x2ca)]+_0x5f3ed1(0x21b));await this[_0x5f3ed1(0x308)](_0x1d41e5['dirname'](_0x5975af),{'recursive':!0x0}),await this[_0x5f3ed1(0x282)](_0x538e8f,_0x5975af);}for(const _0x30d49b of _0x830710[_0x5f3ed1(0x254)]){const _0x505a1e=_0x1d41e5[_0x5f3ed1(0x1ee)](_0x509e6c,this['C']['postHooks'],_0x30d49b[_0x5f3ed1(0x2ca)]+'.ts'),_0x472e86=_0x1d41e5[_0x5f3ed1(0x1ee)](this['projectDirectory'],this['C']['src'],_0x1ce4a4,_0x5936e6,this['C']['postHooks'],_0x30d49b[_0x5f3ed1(0x2ca)]+'.ts');await this[_0x5f3ed1(0x308)](_0x1d41e5[_0x5f3ed1(0x316)](_0x472e86),{'recursive':!0x0}),await this[_0x5f3ed1(0x282)](_0x505a1e,_0x472e86);}}}async[_0x4edce0(0x292)](){const _0x6424d4=_0x4edce0,_0x123331=this['C']['DatabaseHooksReadF'],_0x333c52=this['C'][_0x6424d4(0x295)],_0x3b033e=_0x1d41e5[_0x6424d4(0x1ee)](this[_0x6424d4(0x2e0)],this['C'][_0x6424d4(0x22c)],this[_0x6424d4(0x2aa)][_0x6424d4(0x20a)],_0x123331),_0x32285b=await this['readDirCustom'](_0x3b033e,null);for(const _0x3012d2 of _0x32285b){const _0x27b3d9=_0x1d41e5[_0x6424d4(0x1ee)](_0x3b033e,_0x3012d2,_0x3012d2+_0x6424d4(0x2e9));if(!this[_0x6424d4(0x342)](_0x27b3d9))continue;const _0x1a3359=await this[_0x6424d4(0x33c)](_0x27b3d9,{'encoding':_0x6424d4(0x2e2)}),_0x454c2a=await this[_0x6424d4(0x2c1)](_0x1a3359),_0x41b7a2=_0x1d41e5[_0x6424d4(0x1ee)](_0x3b033e,_0x3012d2),_0x4099a9=_0x454c2a[_0x6424d4(0x2ba)]+'/'+_0x454c2a['databaseName'];for(const _0x19bfb8 of _0x454c2a['preHooks']){const _0x31172b=_0x1d41e5[_0x6424d4(0x1ee)](_0x41b7a2,this['C'][_0x6424d4(0x215)],_0x19bfb8[_0x6424d4(0x2ca)]+'.ts'),_0x3ea11e=_0x1d41e5['join'](this[_0x6424d4(0x25b)],this['C'][_0x6424d4(0x22c)],_0x333c52,_0x4099a9,this['C'][_0x6424d4(0x215)],_0x19bfb8['name']+'.ts');await this[_0x6424d4(0x308)](_0x1d41e5[_0x6424d4(0x316)](_0x3ea11e),{'recursive':!0x0}),await this[_0x6424d4(0x282)](_0x31172b,_0x3ea11e);}for(const _0x46de1c of _0x454c2a['postHooks']){const _0x2aebdc=_0x1d41e5[_0x6424d4(0x1ee)](_0x41b7a2,this['C']['postHooks'],_0x46de1c[_0x6424d4(0x2ca)]+'.ts'),_0x5f0adc=_0x1d41e5[_0x6424d4(0x1ee)](this[_0x6424d4(0x25b)],this['C'][_0x6424d4(0x22c)],_0x333c52,_0x4099a9,this['C'][_0x6424d4(0x254)],_0x46de1c['name']+'.ts');await this[_0x6424d4(0x308)](_0x1d41e5[_0x6424d4(0x316)](_0x5f0adc),{'recursive':!0x0}),await this[_0x6424d4(0x282)](_0x2aebdc,_0x5f0adc);}}}async[_0x4edce0(0x2ae)](){const _0x222eb4=_0x4edce0,_0x39f354=this['C'][_0x222eb4(0x218)],_0x5242ed=this['C'][_0x222eb4(0x2b1)],_0xeca645=_0x1d41e5['join'](this['appRoot'],this['C'][_0x222eb4(0x22c)],this[_0x222eb4(0x2aa)][_0x222eb4(0x20a)],_0x39f354),_0x55d7dd=await this[_0x222eb4(0x283)](_0xeca645,null);for(const _0x1af20e of _0x55d7dd){const _0x36c344=_0x1d41e5['join'](_0xeca645,_0x1af20e,_0x1af20e+_0x222eb4(0x2e9));if(!this[_0x222eb4(0x342)](_0x36c344))continue;const _0x813b36=await this[_0x222eb4(0x33c)](_0x36c344,{'encoding':_0x222eb4(0x2e2)}),_0x17d7b2=await this['parseYaml'](_0x813b36),_0x336659=_0x1d41e5[_0x222eb4(0x1ee)](_0xeca645,_0x1af20e),_0xb1b5dd=''+_0x17d7b2['instanceName'];for(const _0x290aa7 of _0x17d7b2[_0x222eb4(0x215)]){const _0x255506=_0x1d41e5[_0x222eb4(0x1ee)](_0x336659,this['C'][_0x222eb4(0x215)],_0x290aa7[_0x222eb4(0x2ca)]+_0x222eb4(0x21b)),_0x507e9e=_0x1d41e5['join'](this['projectDirectory'],this['C']['src'],_0x5242ed,_0xb1b5dd,this['C']['preHooks'],_0x290aa7[_0x222eb4(0x2ca)]+'.ts');await this[_0x222eb4(0x308)](_0x1d41e5[_0x222eb4(0x316)](_0x507e9e),{'recursive':!0x0}),await this[_0x222eb4(0x282)](_0x255506,_0x507e9e);}for(const _0x3b356d of _0x17d7b2[_0x222eb4(0x254)]){const _0x18797f=_0x1d41e5[_0x222eb4(0x1ee)](_0x336659,this['C'][_0x222eb4(0x254)],_0x3b356d[_0x222eb4(0x2ca)]+_0x222eb4(0x21b)),_0x100346=_0x1d41e5[_0x222eb4(0x1ee)](this[_0x222eb4(0x25b)],this['C'][_0x222eb4(0x22c)],_0x5242ed,_0xb1b5dd,this['C'][_0x222eb4(0x254)],_0x3b356d[_0x222eb4(0x2ca)]+_0x222eb4(0x21b));await this[_0x222eb4(0x308)](_0x1d41e5[_0x222eb4(0x316)](_0x100346),{'recursive':!0x0}),await this[_0x222eb4(0x282)](_0x18797f,_0x100346);}}}async['executeNpmRun'](_0x3b0c33,_0x44b36d){return new Promise((_0x1a7860,_0x5781b2)=>{const _0x10a56c=a0_0x3987,_0x148a77=(0x0,_0x4b830f[_0x10a56c(0x1ea)])(_0x3b0c33,_0x44b36d,{'shell':!0x0,'cwd':this[_0x10a56c(0x2e0)]});_0x148a77['on'](_0x10a56c(0x203),_0x5767c1=>{const _0x32823c=_0x10a56c;if(0x0===_0x5767c1)setTimeout(_0x1a7860,0x3e8);else{const _0x260519='\x27'+_0x3b0c33+'\x20'+_0x44b36d[_0x32823c(0x1ee)]('\x20')+'\x27\x20exited\x20with\x20code\x20'+_0x5767c1+'.';_0x5781b2(new Error(_0x260519));}}),_0x148a77['on'](_0x10a56c(0x202),_0x2491bc=>{const _0x5199d9=_0x10a56c;console['error'](_0x5199d9(0x251)+_0x2491bc[_0x5199d9(0x268)]),_0x5781b2(_0x2491bc);});});}async['parseYaml'](_0x13b0b7){const _0x422e25=_0x4edce0;return(await Promise[_0x422e25(0x317)]()['then'](()=>_0x37aa79(0x59)))[_0x422e25(0x312)](_0x13b0b7);}async['startWatch'](){const _0x3c109c=_0x4edce0;this[_0x3c109c(0x290)]||await this['installRequiredPackages']();const _0x390e0b=await Promise[_0x3c109c(0x317)]()[_0x3c109c(0x296)](()=>_0x37aa79(0xe7)),_0x1f0cc8=_0x1d41e5[_0x3c109c(0x1ee)](this[_0x3c109c(0x2e0)]),_0x176c74=_0x1d41e5[_0x3c109c(0x1ee)](this[_0x3c109c(0x2e0)],this['C'][_0x3c109c(0x22c)]),_0x11e011=_0x5da686=>{const _0x3ea36=_0x3c109c,_0x200543=_0x1d41e5['relative'](_0x1f0cc8,_0x5da686);return!(_0x200543&&!_0x200543['startsWith']('.')&&!_0x200543[_0x3ea36(0x329)]('~')&&_0x200543[_0x3ea36(0x306)](this['C'][_0x3ea36(0x22c)]));},_0x3bc4dc=_0x390e0b['watch'](_0x176c74,{'persistent':!0x0,'ignoreInitial':!0x0,'depth':0x1/0x0,'awaitWriteFinish':{'stabilityThreshold':0xc8,'pollInterval':0x64}}),_0x28f9b6=async(_0x10cbdb,_0x4ddaf2)=>{const _0x416879=_0x3c109c;try{if(this['skipWatchInputs'])return;const _0x26f20b=_0x1d41e5[_0x416879(0x242)](_0x1f0cc8,_0x4ddaf2);if(!_0x4ddaf2||_0x11e011(_0x4ddaf2))return;console['log'](_0x416879(0x2bb)+this['getCurrentTime']()+_0x416879(0x1f1)+_0x10cbdb+_0x416879(0x2da)+_0x26f20b);const _0x5ea4d2=this[_0x416879(0x2e1)](_0x26f20b),_0x363348=this[_0x416879(0x2cd)](_0x5ea4d2,_0x26f20b);if(!_0x363348)return;let _0x2045be,_0x546eae=!0x1;if(this['fsExistsSync'](_0x363348)){if(this[_0x416879(0x342)](_0x1d41e5[_0x416879(0x1ee)](_0x1f0cc8,_0x26f20b))){const _0x1ed30a=_0x1d41e5[_0x416879(0x1ee)](_0x1d41e5[_0x416879(0x324)]+this['C'][_0x416879(0x2fa)],_0x363348);_0x2045be=await this[_0x416879(0x326)](_0x363348,_0x1ed30a),this[_0x416879(0x1ed)]({'objType':_0x948973[_0x416879(0x2c7)],'localClientWSReqRes':{'eventType':_0x417c99[_0x416879(0x32f)],'folderChangedOnLocalSystem':_0x2045be,'category':_0x5ea4d2,'shouldReplaceAllItemsOfCategory':_0x546eae}});}else this[_0x416879(0x2fb)]();}else{const _0x1428e8=this[_0x416879(0x340)](_0x5ea4d2,_0x26f20b),_0x48b95c=_0x1d41e5['join'](_0x1d41e5['sep']+this['C'][_0x416879(0x2fa)],_0x1428e8);_0x2045be=await this['serializeFolderWithBinary'](_0x1428e8,_0x48b95c),_0x546eae=!0x0,this[_0x416879(0x30b)](_0x2045be,_0x5ea4d2,_0x546eae);}}catch(_0x54ccb9){console['error']('watch\x20handler\x20error',_0x54ccb9);}};_0x3bc4dc['on'](_0x3c109c(0x346),_0x572a12=>_0x28f9b6(_0x3c109c(0x346),_0x572a12))['on'](_0x3c109c(0x206),_0x27c2c6=>_0x28f9b6(_0x3c109c(0x206),_0x27c2c6))['on'](_0x3c109c(0x257),_0x336da3=>_0x28f9b6(_0x3c109c(0x257),_0x336da3))['on'](_0x3c109c(0x24f),_0x11a09a=>_0x28f9b6(_0x3c109c(0x24f),_0x11a09a))['on'](_0x3c109c(0x309),_0x55bd61=>_0x28f9b6('unlinkDir',_0x55bd61))['on'](_0x3c109c(0x202),_0x23a70e=>console[_0x3c109c(0x202)](_0x3c109c(0x301),_0x23a70e)),this[_0x3c109c(0x311)]=_0x3bc4dc,0x1===this[_0x3c109c(0x32b)]&&(console[_0x3c109c(0x205)](_0x3c109c(0x303)),console[_0x3c109c(0x205)](this[_0x3c109c(0x237)]+_0x3c109c(0x2de)+this['projectDirectory']+this[_0x3c109c(0x265)]));}['getCurrentTime'](){const _0x4883bf=_0x4edce0,_0xdc2181=new Date();return String(_0xdc2181[_0x4883bf(0x226)]())['padStart'](0x2,'0')+':'+String(_0xdc2181['getMinutes']())[_0x4883bf(0x294)](0x2,'0')+':'+String(_0xdc2181[_0x4883bf(0x2eb)]())[_0x4883bf(0x294)](0x2,'0');}['sendDeletedEventToServerInternal'](_0x5a9062,_0x15bafb,_0x4794f0){const _0x5785c7=_0x4edce0;this[_0x5785c7(0x1ed)]({'objType':_0x948973[_0x5785c7(0x2c7)],'localClientWSReqRes':{'eventType':_0x417c99[_0x5785c7(0x32f)],'folderChangedOnLocalSystem':_0x5a9062,'category':_0x15bafb,'shouldReplaceAllItemsOfCategory':_0x4794f0}});}[_0x4edce0(0x20e)](_0x4529ae,_0xab2a64){let _0x471382=null;return function(..._0x1d8ae9){clearTimeout(_0x471382),_0x471382=setTimeout(()=>{const _0x293cec=a0_0x3987;_0x4529ae[_0x293cec(0x325)](this,_0x1d8ae9);},_0xab2a64);};}[_0x4edce0(0x2e1)](_0x1b3fc6){const _0x443b0f=_0x4edce0,_0x5428c4=_0x1d41e5[_0x443b0f(0x1ee)](this['C'][_0x443b0f(0x22c)],this[_0x443b0f(0x2aa)][_0x443b0f(0x20a)]);if(!_0x1b3fc6[_0x443b0f(0x306)](_0x5428c4))return;const _0x5296ba=_0x1b3fc6[_0x443b0f(0x23b)](_0x1d41e5[_0x443b0f(0x324)])[_0x443b0f(0x22a)](_0x19fc98=>!!_0x19fc98)[0x2];for(const _0x183a39 in _0x210f1f)if(_0x210f1f[_0x183a39]===_0x5296ba)return _0x5296ba;}[_0x4edce0(0x2cd)](_0x321657,_0x9db296){const _0x2937b7=_0x4edce0,_0x2a701f=_0x9db296[_0x2937b7(0x23b)](_0x1d41e5['sep']);let _0x45fd18='';return _0x45fd18=_0x321657===_0x210f1f[_0x2937b7(0x33d)]?_0x2a701f[_0x2937b7(0x1fe)](0x0,0x6)[_0x2937b7(0x1ee)](_0x1d41e5['sep']):_0x2a701f[_0x2937b7(0x1fe)](0x0,0x4)[_0x2937b7(0x1ee)](_0x1d41e5[_0x2937b7(0x324)]),_0x45fd18;}[_0x4edce0(0x340)](_0x248427,_0x3251a8){const _0x401618=_0x4edce0;return _0x3251a8[_0x401618(0x23b)](_0x1d41e5[_0x401618(0x324)])[_0x401618(0x1fe)](0x0,0x3)[_0x401618(0x1ee)](_0x1d41e5[_0x401618(0x324)]);}async[_0x4edce0(0x326)](_0x5c1400,_0x4f14da){const _0xc94e48={},_0x5c8447=this;return await async function _0x2a5c5b(_0x22e149){const _0x4495ca=a0_0x3987,_0x21b66b=await _0x5c8447[_0x4495ca(0x283)](_0x22e149,{'withFileTypes':!0x0});for(const _0x1b7e56 of _0x21b66b){const _0x34adfb=_0x1d41e5[_0x4495ca(0x1ee)](_0x22e149,_0x1b7e56[_0x4495ca(0x2ca)]),_0x524bff=_0x1d41e5['normalize'](_0x34adfb);if(_0x1b7e56[_0x4495ca(0x2e7)]())await _0x2a5c5b(_0x524bff);else{const _0x4d7f73=_0x4150e8[_0x4495ca(0x22d)](_0x524bff),_0x4ed8aa=_0x1d41e5[_0x4495ca(0x242)](_0x5c1400,_0x524bff),_0x2f95a2=_0x1d41e5['join'](_0x4f14da,_0x4ed8aa)[_0x4495ca(0x23b)](_0x1d41e5['sep'])[_0x4495ca(0x1ee)](_0x1d41e5[_0x4495ca(0x279)]['sep']);_0xc94e48[_0x2f95a2]={'encoding':_0x4495ca(0x26c),'content':_0x4d7f73[_0x4495ca(0x2f3)](_0x4495ca(0x26c))};}}}(_0x5c1400),_0xc94e48;}['sendToServer'](_0x1a67d5){const _0x444286=_0x4edce0;try{this['ws'][_0x444286(0x23d)](JSON[_0x444286(0x327)](_0x1a67d5));}catch(_0x1d5dbe){console['log'](_0x1d5dbe);}}async[_0x4edce0(0x334)](){const _0x194a8f=_0x4edce0;console[_0x194a8f(0x205)](_0x194a8f(0x34c));const _0x16782d=this[_0x194a8f(0x2aa)][_0x194a8f(0x2f7)],_0x576399=this[_0x194a8f(0x2aa)][_0x194a8f(0x20a)],_0x4df0f8=this[_0x194a8f(0x2aa)][_0x194a8f(0x2b8)];this['ws']=new WebSocket(_0x4df0f8+_0x194a8f(0x2c8)+_0x16782d+_0x194a8f(0x2cc)+_0x576399);const _0x3a3aae=[],_0x19bcb7=()=>{const _0x2a9fd3=_0x194a8f;this[_0x2a9fd3(0x1ed)]({'objType':_0x948973['REGISTER'],'onEvents':[{'eventType':_0x2a9fd3(0x223)}]});};function _0x3a08bc(_0x43a456){const _0x1d3775=_0x194a8f;_0x43a456[_0x1d3775(0x2d0)]=null,_0x43a456['onmessage']=null,_0x43a456[_0x1d3775(0x243)]=null,_0x43a456[_0x1d3775(0x278)]=null,_0x43a456[_0x1d3775(0x203)]();}this['ws']['onmessage']=async _0x24b8c1=>{const _0x25160e=_0x194a8f,_0x5b1f22=JSON[_0x25160e(0x2b6)](_0x24b8c1[_0x25160e(0x2d9)]);if(_0x5b1f22['type']===_0x948973['CONNECTED']&&_0x5b1f22[_0x25160e(0x30f)][_0x25160e(0x343)])_0x19bcb7();else{if(_0x5b1f22[_0x25160e(0x267)]===_0x948973[_0x25160e(0x238)]){if(_0x5b1f22?.[_0x25160e(0x30f)]?.['validOnEvents']?.[_0x25160e(0x2b4)]){for(const _0xea67bb of _0x5b1f22['response'][_0x25160e(0x34a)])_0x3a3aae[_0x25160e(0x2c0)](_0xea67bb);console[_0x25160e(0x205)](_0x25160e(0x291)),this['watcher']||await this['startWatch'](),this[_0x25160e(0x2fb)]();}else{const _0x443337=_0x5b1f22[_0x25160e(0x30f)]?.[_0x25160e(0x232)]?.[0x0]?.['errors']?.[0x0]?.['message']||_0x25160e(0x27d);console[_0x25160e(0x205)]('❌\x20'+_0x443337),await this[_0x25160e(0x2bf)](0x1);}}else await this[_0x25160e(0x256)](_0x5b1f22);}},this['ws']['onclose']=_0x494b8f=>{const _0x59843c=_0x194a8f;console['log'](_0x59843c(0x2bd)),_0x3a08bc(this['ws']),setTimeout(this['connectToServerViaWS'][_0x59843c(0x2fe)](this),0xbb8);},this['ws'][_0x194a8f(0x243)]=()=>{const _0xdb254a=_0x194a8f;_0x3a08bc(this['ws']),setTimeout(this[_0xdb254a(0x334)]['bind'](this),0xbb8);};}['syncAllDataWithServer'](){const _0x39dc8f=_0x4edce0;this[_0x39dc8f(0x1ed)]({'objType':_0x948973[_0x39dc8f(0x2c7)],'localClientWSReqRes':{'eventType':_0x417c99[_0x39dc8f(0x260)]}});}async[_0x4edce0(0x256)](_0x4a46ae){const _0x4f19b9=_0x4edce0;if(this['EL']&&_0x4a46ae[_0x4f19b9(0x30f)][_0x4f19b9(0x240)]!==_0x417c99[_0x4f19b9(0x260)]&&console['log'](_0x4a46ae),_0x4a46ae['type']===_0x948973[_0x4f19b9(0x2c7)]){if(_0x4a46ae[_0x4f19b9(0x241)]?.[_0x4f19b9(0x2b4)])return void console[_0x4f19b9(0x202)](_0x4a46ae['errors']);if(_0x4a46ae[_0x4f19b9(0x30f)]['eventType']===_0x417c99[_0x4f19b9(0x260)]){console[_0x4f19b9(0x205)](_0x4f19b9(0x245)+this['getCurrentTime']()+']'),this[_0x4f19b9(0x32b)]++;try{this[_0x4f19b9(0x311)]&&(await this[_0x4f19b9(0x311)][_0x4f19b9(0x203)](),this[_0x4f19b9(0x311)]=null);}catch(_0x24199f){console['warn']('Error\x20closing\x20watcher\x20before\x20full\x20sync',_0x24199f);}_0x4150e8[_0x4f19b9(0x26b)](_0x1d41e5[_0x4f19b9(0x1ee)](this[_0x4f19b9(0x2e0)],this['C']['src']),{'recursive':!0x0,'force':!0x0}),this[_0x4f19b9(0x20f)](_0x1d41e5[_0x4f19b9(0x1ee)](this['appRoot'],this['C'][_0x4f19b9(0x22c)]),{'recursive':!0x0});const _0x520dcf=_0x4a46ae[_0x4f19b9(0x30f)][_0x4f19b9(0x261)];await this['writeMemfsJsonToDisk'](_0x520dcf,this[_0x4f19b9(0x2e0)]);try{await this['startWatch']();}catch(_0x5b32da){console[_0x4f19b9(0x202)](_0x4f19b9(0x220),_0x5b32da);}}else{if(_0x4a46ae[_0x4f19b9(0x30f)]['eventType']===_0x417c99[_0x4f19b9(0x29b)]){const _0x23f2d8=_0x4a46ae[_0x4f19b9(0x30f)][_0x4f19b9(0x261)];await this[_0x4f19b9(0x2c9)](_0x23f2d8['data'],this[_0x4f19b9(0x2e0)]);}}!0x0===this['nodeModulesInstalled']?await this[_0x4f19b9(0x2bc)](!0x1):await this['copyFilesToProjectDir'](!0x0);}}async[_0x4edce0(0x2c9)](_0x26fdf9,_0x478ebd){const _0x136867=_0x4edce0;this[_0x136867(0x2f1)]=!0x0;let _0x838892=[];const _0x42258b=async()=>{const _0x30311f=_0x136867;_0x838892[_0x30311f(0x2b4)]>0x0&&(await Promise[_0x30311f(0x2df)](_0x838892),_0x838892=[]);};for(const [_0x401cb9,_0x241a48]of Object['entries'](_0x26fdf9)){if(!_0x401cb9[_0x136867(0x306)]('/'+this['C'][_0x136867(0x2fa)]+'/'+this['C'][_0x136867(0x22c)]))continue;const _0x56d7e9=_0x241a48,_0x1e8e76=_0x401cb9['replace']('/'+this['C'][_0x136867(0x2fa)],'');if(this[_0x136867(0x214)][_0x1e8e76])continue;const _0xcddc24=_0x1d41e5['join'](_0x478ebd,_0x1e8e76['replace'](/^\//,'')),_0x575708=_0x1d41e5['dirname'](_0xcddc24),_0x428c1f=async()=>{const _0x447d53=_0x136867;await this['fsMkDir'](_0x575708,{'recursive':!0x0}),await this['fsWriteFile'](_0xcddc24,_0x56d7e9[_0x447d53(0x2ef)],{'encoding':_0x447d53(0x26c)}),this['EL']&&console['log'](_0x447d53(0x2a9)+this[_0x447d53(0x1fa)]()+']\x20:\x20'+_0xcddc24[_0x447d53(0x1f4)](_0x478ebd,''));};_0x838892[_0x136867(0x2c0)](_0x428c1f()),_0x838892[_0x136867(0x2b4)]>=0x3e8&&await _0x42258b();}await _0x42258b(),setTimeout(()=>{const _0x333a3b=_0x136867;this[_0x333a3b(0x2f1)]=!0x1;},0x3e8);}[_0x4edce0(0x213)](_0x1f05a1){const _0x43879b=_0x4edce0,_0x34d112=this[_0x43879b(0x32d)](_0x1f05a1);if(!this['fsExistsSync'](_0x34d112))return!0x1;const _0x2f9e8f=_0x4150e8['readdirSync'](_0x34d112);let _0x1f2708=!0x0;for(const _0x5963e4 of _0x2f9e8f){const _0x23ef84=_0x1d41e5[_0x43879b(0x1ee)](_0x34d112,_0x5963e4);_0x4150e8[_0x43879b(0x2f4)](_0x23ef84)[_0x43879b(0x2e7)]()&&this[_0x43879b(0x213)](_0x23ef84)||(_0x1f2708=!0x1);}return!!_0x1f2708&&(_0x4150e8[_0x43879b(0x341)](_0x34d112),!0x0);}async['readDirCustom'](_0x4926ec,_0x5ef822){const _0x4d3e99=_0x4edce0;return this['fsExistsSync'](_0x4926ec)?await this[_0x4d3e99(0x25e)](_0x4926ec,_0x5ef822):[];}[_0x4edce0(0x32d)](_0x53f134){const _0x5949f5=_0x4edce0;return _0x1d41e5[_0x5949f5(0x2b7)](_0x53f134);}[_0x4edce0(0x342)](_0x4ec517){const _0x2c7956=_0x4edce0,_0x4b818e=_0x1d41e5[_0x2c7956(0x2b7)](_0x4ec517);return _0x4150e8[_0x2c7956(0x234)](_0x4b818e);}async['fsReadDir'](_0x181572,_0x4c39f7){const _0x2ecf55=_0x4edce0,_0x2f1ccc=_0x1d41e5[_0x2ecf55(0x2b7)](_0x181572);return await _0x4150e8['promises'][_0x2ecf55(0x1e3)](_0x2f1ccc,_0x4c39f7);}async['fsMkDir'](_0x157f4e,_0x3fe4fa){const _0x22c8b1=_0x4edce0,_0x240bb0=_0x1d41e5[_0x22c8b1(0x2b7)](_0x157f4e);return await _0x4150e8[_0x22c8b1(0x24c)][_0x22c8b1(0x244)](_0x240bb0,_0x3fe4fa);}['fsMkDirSync'](_0x29c8a4,_0x37fea9){const _0x269166=_0x4edce0,_0x256ac0=_0x1d41e5[_0x269166(0x2b7)](_0x29c8a4);return _0x4150e8['mkdirSync'](_0x256ac0,_0x37fea9);}async['fsReadFile'](_0x16cdfa,_0x5aafb1){const _0x4abbb0=_0x4edce0,_0x57c4c7=_0x1d41e5['normalize'](_0x16cdfa);return await _0x4150e8[_0x4abbb0(0x24c)]['readFile'](_0x57c4c7,_0x5aafb1);}async[_0x4edce0(0x20b)](_0x353ee1,_0x3c0a32,_0xcd2839){const _0x2d778b=_0x4edce0,_0x3772de=_0x1d41e5['normalize'](_0x353ee1);return await _0x4150e8[_0x2d778b(0x24c)][_0x2d778b(0x229)](_0x3772de,_0x3c0a32,_0xcd2839);}async['fsLink'](_0x4191dd,_0x5db729){const _0x508fae=_0x4edce0,_0x7ae1a5=_0x1d41e5[_0x508fae(0x2b7)](_0x4191dd),_0x43f88b=_0x1d41e5[_0x508fae(0x2b7)](_0x5db729);try{return await _0x4150e8[_0x508fae(0x24c)][_0x508fae(0x204)](_0x7ae1a5,_0x43f88b);}catch(_0x220822){console[_0x508fae(0x2a3)](_0x220822);}}async[_0x4edce0(0x2bf)](_0x1d0c91=0x0){const _0x30ee74=_0x4edce0;if(!this[_0x30ee74(0x22e)]){this[_0x30ee74(0x22e)]=!0x0;try{this[_0x30ee74(0x311)]&&await this[_0x30ee74(0x311)][_0x30ee74(0x203)]();}catch(_0x58e032){console[_0x30ee74(0x202)](_0x30ee74(0x2a2),_0x58e032);}finally{setTimeout(()=>process[_0x30ee74(0x284)](_0x1d0c91),0xc8);}}}[_0x4edce0(0x26d)](){const _0x5d7c50=_0x4edce0;process['on']('SIGINT',()=>{const _0x59a924=a0_0x3987;console[_0x59a924(0x205)](_0x59a924(0x2cb)),this[_0x59a924(0x2bf)](0x0);}),process['on'](_0x5d7c50(0x2ac),()=>{const _0x31a052=_0x5d7c50;console[_0x31a052(0x205)](_0x31a052(0x21c)),this[_0x31a052(0x2bf)](0x0);}),process['on'](_0x5d7c50(0x2d4),_0xefc595=>{const _0x16257a=_0x5d7c50;console[_0x16257a(0x205)](_0x16257a(0x2d4),_0xefc595);}),process['on'](_0x5d7c50(0x284),_0x34195b=>{const _0x720947=_0x5d7c50;console['log'](_0x720947(0x284),_0x34195b);}),process['on']('uncaughtException',_0x44fee9=>{const _0x223bb9=_0x5d7c50;console[_0x223bb9(0x202)]('uncaughtException',_0x44fee9),this['shutdownAndExit'](0x1);}),process['on'](_0x5d7c50(0x288),_0x487700=>{const _0x2f6c4a=_0x5d7c50;console[_0x2f6c4a(0x202)]('unhandledRejection',_0x487700),this[_0x2f6c4a(0x2bf)](0x1);});}}()['start']()[_0x4edce0(0x296)](),function(_0x4f6086){const _0x500d8d=_0x4edce0;_0x4f6086['INSTANCES']=_0x500d8d(0x2c5),_0x4f6086[_0x500d8d(0x33d)]=_0x500d8d(0x33d),_0x4f6086[_0x500d8d(0x24a)]='CUSTOM_APIS',_0x4f6086['SYSTEM_APIS']=_0x500d8d(0x2f0),_0x4f6086[_0x500d8d(0x271)]=_0x500d8d(0x271);}(_0xc42bd9=_0xbab3cf['OW']||(_0xbab3cf['OW']={})),function(_0x38ec5d){const _0x52bceb=_0x4edce0;_0x38ec5d[_0x52bceb(0x238)]=_0x52bceb(0x238),_0x38ec5d[_0x52bceb(0x28e)]=_0x52bceb(0x28e),_0x38ec5d[_0x52bceb(0x1fc)]=_0x52bceb(0x1fc),_0x38ec5d[_0x52bceb(0x231)]=_0x52bceb(0x231),_0x38ec5d[_0x52bceb(0x328)]=_0x52bceb(0x328),_0x38ec5d[_0x52bceb(0x209)]=_0x52bceb(0x209),_0x38ec5d['LC_DATA_REQ_RES']=_0x52bceb(0x2c7);}(_0x948973||(_0x948973={})),function(_0x3502bf){const _0x10f8b0=_0x4edce0;_0x3502bf[_0x10f8b0(0x260)]=_0x10f8b0(0x260),_0x3502bf[_0x10f8b0(0x29b)]=_0x10f8b0(0x29b),_0x3502bf[_0x10f8b0(0x32f)]=_0x10f8b0(0x32f);}(_0x417c99||(_0x417c99={})),(_0x2acfff=_0xbab3cf['kR']||(_0xbab3cf['kR']={}))[_0x4edce0(0x337)]=_0x4edce0(0x337),_0x2acfff['PUT']=_0x4edce0(0x2db),_0x2acfff[_0x4edce0(0x2a4)]='PUT_REPLACE',_0x2acfff['DELETE']=_0x4edce0(0x1e9),_0x2acfff[_0x4edce0(0x207)]=_0x4edce0(0x207),(_0x4b7011=_0xbab3cf['xu']||(_0xbab3cf['xu']={}))[_0x4edce0(0x1eb)]='am_events',_0x4b7011[_0x4edce0(0x31c)]='am_web_socket_events',_0x4b7011['DBMasters']=_0x4edce0(0x347),_0x4b7011[_0x4edce0(0x277)]=_0x4edce0(0x1f9),_0x4b7011[_0x4edce0(0x25d)]=_0x4edce0(0x34b),_0x4b7011[_0x4edce0(0x2ab)]=_0x4edce0(0x33a),_0x4b7011[_0x4edce0(0x2ff)]=_0x4edce0(0x239),_0x4b7011[_0x4edce0(0x29e)]=_0x4edce0(0x266),_0x4b7011[_0x4edce0(0x2a6)]='am_collection_hooks',_0x4b7011[_0x4edce0(0x23c)]=_0x4edce0(0x336),_0x4b7011['Schemas']='am_schemas',_0x4b7011[_0x4edce0(0x321)]=_0x4edce0(0x310),_0x4b7011['SystemApiSettings']=_0x4edce0(0x345),_0x4b7011[_0x4edce0(0x2d8)]=_0x4edce0(0x21d),_0x4b7011[_0x4edce0(0x2e8)]=_0x4edce0(0x2e8),_0x4b7011['am_tp_installed_apis']='am_tp_installed_apis',_0x4b7011[_0x4edce0(0x2ce)]=_0x4edce0(0x2ce),_0x4b7011[_0x4edce0(0x2e3)]=_0x4edce0(0x27c),_0x4b7011['DatabasesMigrations']='am_database_migrations',_0x4b7011[_0x4edce0(0x305)]=_0x4edce0(0x320),_0x4b7011['UIMakerUtils']='am_ui_maker_utils',_0x4b7011['UIMakerStyles']=_0x4edce0(0x1ff),_0x4b7011[_0x4edce0(0x1f8)]=_0x4edce0(0x2c6),function(_0x10042a){const _0x26581a=_0x4edce0;_0x10042a[_0x26581a(0x24a)]=_0x26581a(0x221),_0x10042a[_0x26581a(0x287)]='Database\x20migrations',_0x10042a[_0x26581a(0x314)]='Process\x20initializers',_0x10042a['EVENTS']='Events',_0x10042a[_0x26581a(0x20c)]='i18ns',_0x10042a['INSTANCE_API_HOOKS']=_0x26581a(0x1e4),_0x10042a[_0x26581a(0x297)]=_0x26581a(0x21e),_0x10042a[_0x26581a(0x2e6)]=_0x26581a(0x30e),_0x10042a[_0x26581a(0x2af)]=_0x26581a(0x200),_0x10042a[_0x26581a(0x1e7)]=_0x26581a(0x30d),_0x10042a[_0x26581a(0x298)]=_0x26581a(0x23c),_0x10042a[_0x26581a(0x286)]=_0x26581a(0x285),_0x10042a[_0x26581a(0x29a)]='System\x20API\x20hooks',_0x10042a[_0x26581a(0x2b3)]='System\x20API\x20settings',_0x10042a['TEST_CASES']=_0x26581a(0x27e),_0x10042a[_0x26581a(0x33d)]=_0x26581a(0x32e),_0x10042a[_0x26581a(0x319)]=_0x26581a(0x259),_0x10042a[_0x26581a(0x24b)]=_0x26581a(0x25f),_0x10042a[_0x26581a(0x208)]=_0x26581a(0x2f8),_0x10042a['DB_MASTERS']=_0x26581a(0x22f),_0x10042a[_0x26581a(0x33e)]=_0x26581a(0x236),_0x10042a[_0x26581a(0x2fd)]='UI\x20maker\x20styles';}(_0x210f1f=_0xbab3cf['vg']||(_0xbab3cf['vg']={}));},0x380(_0xf05c7d){_0xf05c7d['exports']=require('fs');}},_0x5483a9={};!function _0x151084(_0x2fc282){const _0x47b0f8=a0_0x3987;var _0x5cb508=_0x5483a9[_0x2fc282];if(void 0x0!==_0x5cb508)return _0x5cb508[_0x47b0f8(0x2b9)];var _0x325744=_0x5483a9[_0x2fc282]={'exports':{}};return _0x4ef900[_0x2fc282](_0x325744,_0x325744['exports'],_0x151084),_0x325744['exports'];}(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})()}}]);