b0VIM 9.0      ï³j[! H  git                                     localhost                               ~git/storage/VDMDI/Comms/src/ViewModel/Global/coreViewModel.ts                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               utf-8 3210    #"! U                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 tp           i                            R       j                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ad  .   ê     i       å  ¿  v  8  ü  ¾  x  6  ú  ù  Ô  «  ª  Š  ‰  z  C  B  "  ò  ì  Ã  Ÿ  ™  u  7  ü  Â  ¼  »  ¦  ‹  `  O  B  '  ò
  Í
  Ã
  ¯
  ®
  ƒ
  =
  
  Ó	  “	  U	  K	  D	  C	  	  æ  ±  q  U  9    à  ˜  o  %  û  ñ  ê  é  Ü  ¦  s  T  %      ÿ  Â  »  º  š  v  (    é  â  á  Î  ‡  †  z  i  5  ÿ  Å  �  Q  I  -  â  á  š  ™  u  N        ê  é                                                    this.startChron();          };             this.closeContext(this.context.contextId, true);             if (!this.context) return;         window.onpopstate = () => {          document.body.addEventListener("keydown", this.handleKeyDown);              allTranslations[settingsModel.language] || allTranslations.en;         this.translations =     ) {         public readonly fileTransferModel: FileTransferModel,         public readonly chatListModel: ChatListModel,         public readonly connectionModel: ConnectionModel,         public readonly settingsModel: SettingsModel,         public readonly storageModel: StorageModel,     constructor(     // init      draggedObject: React.State<any> = new React.State<any>(undefined);     // DRAG & DROP      };         this.todayDate.value = new Date();             return;         if (this.unwrappedTodayDate.toDateString() == newDate.toDateString())         const newDate = new Date();     handleChron = (): void => {      };         setInterval(this.chronHandlerManager.trigger, 2000);     startChron = (): void => {      }         return new Date(this.todayDate.value);     get unwrappedTodayDate() {     todayDate = new React.State<Date>(new Date());     chronHandlerManager = new HandlerManager<void>();     // CHRON      };         }             if (isHandled == true) break;             const isHandled: boolean = currentContext.handleKeystroke(e);             if (!currentContext) return;             const currentContext: Context | undefined = contexts.pop();         while (contexts.length > 0) {         const contexts: Context[] = this.contexts;         e.preventDefault();         console.log(e.key);         if (CoreViewModel.checkIsKeystroke(e) == false) return;             return console.trace("NOT A KEY EVENT");         if (!(e instanceof KeyboardEvent))     handleKeyDown = (e: KeyboardEvent): void => {      };         }             if (currentContext.contextId == contextId) break;             this.contextStack.delete(currentContext.contextId);             currentContext.handleContextClose(fromHistoryEvent);             if (!currentContext) return;             const currentContext: Context | undefined = this.context;         while (this.contexts.length > 0) {              return;         )                 .includes(contextId)                 .map((context) => context.contextId)             !this.contexts         if (     ): void => {         fromHistoryEvent: boolean = false,         contextId: string,     closeContext = (      }         history.pushState({ id: context.contextId }, "");         this.contextStack.set(context.contextId, context);         if (this.contextStack.has(context.contextId)) return;     set context(context: Context) {     }         return this.contexts.pop();     get context(): Context | undefined {     }         return [...this.contextStack.values()];     get contexts(): Context[] {      private contextStack = new Map<string, Context>();     // CONTEXT      translations: Translations;      readonly BUILD = "Build 26.09.22.E"; export default class CoreViewModel {  import ChatListModel from "../../Model/Chat/chatListModel"; import ConnectionModel from "../../Model/Global/connectionModel"; import FileTransferModel from "../../Model/Global/fileTransferModel"; import SettingsModel from "../../Model/Global/settingsModel"; import StorageModel from "../../Model/Global/storageModel"; import { HandlerManager } from "../../Model/Utility/utility"; import { allTranslations, Translations } from "../../View/translations"; import * as React from "../../react"; import { v4 } from "uuid"; ad  ë  K     R       Ó  ´  –  ‹  …  „  x  ?  
        ê  Ô  ¤  £  l  *  	  þ  ß  Ñ  ¼  µ  ´  ˜  .  -  ì  Æ  ¿  ¾  ƒ  �  €  R  ,  æ  å  É  ³  ­  �  g  a  `  $  û
  ô
  ó
  Ë
  ¢
  u
  @
  1
  '
  ø	  ñ	  ð	  Í	  £	  ¢	  q	  Q	  	  ò  Ì  �  h  ^  ]  '  ò  ë  ê  Ù  °  ƒ  {  S  M  K  r                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         }     }         super(contextDebugDescription);     ) {         public coreViewModel: CoreViewModel,         contextDebugDescription: string,     constructor(      };         this.currentContext.value = selectedContext;         this.coreViewModel.context = selectedContext;          }             this.closeCurrentContext();         if (selectedContext != this.currentContext.value) {         if (!selectedContext) return;             this.contexts.get(selection);         const selectedContext: Context | undefined =         if (!selection) return;         const selection = this.contextSelection;          if (this.isOpen == false) return;     updateContexts = (): void => {      };         this.currentContext.value = undefined;         }             );                 this.currentContext.value.contextId,             this.coreViewModel.closeContext(         if (this.currentContext.value) {     closeCurrentContext = (): void => {      };         this.contexts.set(key, context);     registerContext = (key: T, context: Context): void => {      }         return undefined;     get contextSelection(): T | undefined {     }         return false;     get isOpen(): boolean {      currentContext = new React.State<Context | undefined>(undefined);     contexts = new Map<T, Context>(); export class ContextHost<T> extends Context {  }     constructor(public contextDebugDescription: string) {}      };         this.keystrokes.set(key, fn);     registerKeyStroke = (key: string, fn: () => void): void => {      handleContextClose = (fromHistoryEvent: boolean): void => {};       ö               õ             close = (): void => {};      };         return true;         fn();         if (!fn) return false;         );             e.key.toLowerCase(),         const fn: (() => void) | undefined = this.keystrokes.get(     handleKeystroke = (e: KeyboardEvent): boolean => {      keystrokes = new Map<string, () => void>();     contextId = v4(); export class Context {  }     }         return (e.metaKey || e.altKey) && e.ctrlKey;     static checkIsKeystroke(e: KeyboardEvent): boolean {     // util      }         );             this.handleChron,             "core-view-model",         this.chronHandlerManager.setHandler( 