{"version":3,"sources":["https://lively-kernel.org/lively4/lively4-stephelm/src/components/draft/bp2019-workspace.js"],"names":["Morph","Bp2019Workspace","initialize","get","value","getAttribute","windowTitle","boundEval","s","fetch","method","headers","body","then","r","json","livelyPrepareSave","setAttribute"],"mappings":";;;;;;AAAOA,W;;;;;;;;;;;;;;;;;;AAEQ,YAAMC,eAAN,SAA8BD,KAA9B,CAAoC;AACjD,cAAME,UAAN,GAAmB;AACjB,eAAKC,GAAL,CAAS,SAAT,EAAoBC,KAApB,GAA4B,KAAKC,YAAL,CAAkB,SAAlB,CAA5B;AACA,eAAKC,WAAL,GAAmB,iBAAnB;;AAEA;;AAEA,eAAKH,GAAL,CAAS,SAAT,EAAoBI,SAApB,GAAgC,MAAOC,CAAP,IAAa;AAC3C,mBAAOC,MAAM,wCAAN,EAAgD;AACnDC,sBAAQ,MAD2C;AAEnDC,uBAAS,EAF0C;AAInDC,oBAAMJ;AAJ6C,aAAhD,EAMLK,IANK,CAMAC,KAAKA,EAAEC,IAAF,EANL,CAAP;AAOD,WARD;AASD;AACDC,4BAAoB;AAClB,eAAKC,YAAL,CAAkB,SAAlB,EAA6B,KAAKd,GAAL,CAAS,SAAT,EAAoBC,KAAjD;AACD;AAnBgD;;yBAA9BH,e","file":"bp2019-workspace.js","sourcesContent":["import Morph from 'src/components/widgets/lively-morph.js';\n\nexport default class Bp2019Workspace extends Morph {\n  async initialize() {\n    this.get(\"#editor\").value = this.getAttribute(\"content\")\n    this.windowTitle = \"Bp2019Workspace\";\n    \n    // delete this.get(\"#editor\").boundEval\n    \n    this.get(\"#editor\").boundEval = async (s) => {\n      return fetch(\"https://lively-kernel.org/voices2/_vq/\", {\n          method: \"POST\", \n          headers: {\n          },\n          body: s\n       }\n      ).then(r => r.json())\n    }\n  }\n  livelyPrepareSave() {\n    this.setAttribute(\"content\", this.get(\"#editor\").value)\n  }\n}\n"]}