{"version":3,"sources":["https://lively-kernel.org/lively4/lively4-stable/src/components/widgets/lively-mle-ide.js"],"names":["Morph","SocketSingleton","LivelyMleIde","initialize","registerButtons","socket","get","livelyPrepareSave","livelyPreMigrate","livelyMigrate","other","livelyInspect","contentNode","inspector","livelyExample"],"mappings":"AAAA;;;;;;;;;;;;;;;;;AAEOA,W;;AACCC,qB,6BAAAA,e;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEO,YAAMC,YAAN,SAA2BF,KAA3B,CAAiC;AAC9C,cAAMG,UAAN,GAAmB;AAAA;;AACjB,0CAAmB,SAAnB;AADiB;AAEjB,eAAKC,eAAL;AACA,gBAAMC,SAAS,wFAAM,oHAAgBC,GAAhB,EAAN,CAAf;AACA,0FAA+B,MAA/B,gGAAgDD,MAAhD;AACA,0FAA+B,OAA/B,gGAAiDA,MAAjD;AACA,0FAA+B,MAA/B,gGAAgDA,MAAhD;AACA,0FAA+B,KAA/B,gGAA+CA,MAA/C;AACD;;AAED;;AAEA;AACAE,4BAAoB,CACnB;;AAEDC,2BAAmB;AACjB;AACD;;AAEDC,sBAAcC,KAAd,EAAqB;AACnB;AACA;AACD;;AAEDC,sBAAcC,WAAd,EAA2BC,SAA3B,EAAsC;AACpC;AACD;;AAED,cAAMC,aAAN,GAAsB,CACrB;;AA/B6C;;yBAA3BZ,Y","file":"lively-mle-ide.js","sourcesContent":["\"enable aexpr\";\n\nimport Morph from 'src/components/widgets/lively-morph.js';\nimport {SocketSingleton} from 'src/components/mle/socket.js';\n\nexport default class LivelyMleIde extends Morph {\n  async initialize() {\n    this.windowTitle = \"MLE IDE\";\n    this.registerButtons();\n    const socket = await SocketSingleton.get();\n    this.shadowRoot.getElementById(\"code\").socket = socket;\n    this.shadowRoot.getElementById(\"table\").socket = socket;\n    this.shadowRoot.getElementById(\"test\").socket = socket;\n    this.shadowRoot.getElementById(\"sql\").socket = socket;\n  }\n  \n  /* Lively-specific API */\n\n  // store something that would be lost\n  livelyPrepareSave() {\n  }\n  \n  livelyPreMigrate() {\n    // is called on the old object before the migration\n  }\n  \n  livelyMigrate(other) {\n    // whenever a component is replaced with a newer version during development\n    // this method is called on the new object during migration, but before initialization\n  }\n  \n  livelyInspect(contentNode, inspector) {\n    // do nothing\n  }\n  \n  async livelyExample() {\n  }\n  \n  \n}"]}