1
|
{"version":3,"sources":["webpack:///./src/marks/index.js","webpack:///src/nodes/ImageView.vue","webpack:///./src/nodes/ImageView.vue?ad54","webpack:///./src/nodes/ImageView.vue","webpack:///./src/nodes/ImageView.vue?6d9f","webpack:///./src/nodes/Image.js","webpack:///./src/nodes/PlainTextDocument.js","webpack:///./src/EditorFactory.js","webpack:///./src/nodes/ImageView.vue?e84a","webpack:///./src/nodes/ImageView.vue?9c59","webpack:///./src/helpers/index.js","webpack:///./node_modules/highlight.js/lib/languages lazy ^\\.\\/.*$ namespace object","webpack:///./src/components/EditorWrapper.vue?1d53","webpack:///./src/components/EditorWrapper.vue?ad90","webpack:///./src/components/EditorWrapper.vue?660a","webpack:///./src/components/EditorWrapper.vue?8dcb","webpack:///./src/components/EditorWrapper.vue?eaae","webpack:///./src/services/PollingBackend.js","webpack:///./src/services/SyncService.js","webpack:///./src/helpers/mappings.js","webpack:///./src/extensions/Keymap.js","webpack:///./src/mixins/isMobile.js","webpack:///./src/components/EditorWrapper.vue?3f88","webpack:///src/components/EditorWrapper.vue","webpack:///./src/components/EditorWrapper.vue","webpack:///./src/components/ReadOnlyEditor.vue?c94e","webpack:///./src/components/ReadOnlyEditor.vue?cd9e","webpack:///./src/components/CollisionResolveDialog.vue?8053","webpack:///./src/components/CollisionResolveDialog.vue?3cd6","webpack:///./src/components/ReadOnlyEditor.vue?5a8f","webpack:///./src/components/ReadOnlyEditor.vue?21e0","webpack:///src/components/ReadOnlyEditor.vue","webpack:///./src/components/ReadOnlyEditor.vue","webpack:///./src/components/CollisionResolveDialog.vue?5a2c","webpack:///./src/components/CollisionResolveDialog.vue?1aa4","webpack:///src/components/CollisionResolveDialog.vue","webpack:///./src/components/CollisionResolveDialog.vue","webpack:///./src/nodes/ImageView.vue?4abb","webpack:///./src/components/EditorWrapper.vue?b284","webpack:///./src/components/EditorWrapper.vue?5352","webpack:///./src/components/ReadOnlyEditor.vue?1561","webpack:///./src/components/CollisionResolveDialog.vue?d291"],"names":["Strong","Bold","Italic","TipTapItalic","Strike","TipTapStrike","parseDOM","tag","style","getAttrs","value","toDOM","toMarkdown","open","close","mixable","expelEnclosingWhitespace","imageMimes","getQueryVariable","src","variable","query","split","vars","i","length","pair","decodeURIComponent","nodes_ImageViewvue_type_script_lang_js_","name","props","data","imageLoaded","loaded","failed","computed","mimeIcon","mime","this","backgroundImage","window","OC","MimeType","getIconUrl","isSupportedImage","indexOf","internalLinkOrImage","fileId","generateUrl","get","node","attrs","set","updateAttrs","alt","t","a","s","beforeMount","_this","img","Image","onload","onerror","methods","updateAlt","$refs","altInput","onLoaded","ImageView","Object","componentNormalizer","_vm","_h","$createElement","_c","_self","staticClass","class","icon-loading","data-src","directives","rawName","expression","on","load","_v","ref","type","domProps","keyup","$event","_k","keyCode","key","href","target","_s","TiptapImage","_objectSpread","_get","Image_getPrototypeOf","prototype","selectable","PlainTextDocument","Node","Tab","state","insertText","editor","view","dispatch","content","loadSyntaxHighlight","_ref","regeneratorRuntime","mark","_callee","language","languages","modules","lang","wrap","_context","prev","next","__webpack_require__","sent","default","t0","abrupt","undefined","keys","constructor","stop","_x","apply","arguments","createEditor","_ref2","onUpdate","extensions","enableRichEditing","richEditingExtensions","Heading","Code","HardBreak","HorizontalRule","BulletList","OrderedList","Blockquote","CodeBlock","ListItem","Link","Text","CodeBlockHighlight","EditorFactory_objectSpread","Editor","concat","_toConsumableArray","History","useBuiltInExtensions","markdownit","MarkdownIt","html","breaks","enable","SerializeException","message","createMarkdownSerializer","_nodes","_marks","nodes","entries","filter","_ref3","_slicedToArray","reduce","items","_ref5","_ref6","EditorFactory_defineProperty","marks","_ref7","_ref9","_ref10","serializer","MarkdownSerializer","defaultMarkdownSerializer","serialize","options","join","serializePlainText","tiptap","doc","getJSON","codeBlock","text","_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_lib_loader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_ImageView_vue_vue_type_style_index_0_id_3153cb96_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__","n","module","exports","push","d","__webpack_exports__","documentReady","endpointUrl","getRandomGuestName","nextcloud_server_dist_router__WEBPACK_IMPORTED_MODULE_0__","callback","document","attachEvent","readyState","setTimeout","addEventListener","_baseUrl","endpoint","isPublic","randomGuestNames","Math","floor","random","map","./1c","./1c.js","./abnf","./abnf.js","./accesslog","./accesslog.js","./actionscript","./actionscript.js","./ada","./ada.js","./angelscript","./angelscript.js","./apache","./apache.js","./applescript","./applescript.js","./arcade","./arcade.js","./arduino","./arduino.js","./armasm","./armasm.js","./asciidoc","./asciidoc.js","./aspectj","./aspectj.js","./autohotkey","./autohotkey.js","./autoit","./autoit.js","./avrasm","./avrasm.js","./awk","./awk.js","./axapta","./axapta.js","./bash","./bash.js","./basic","./basic.js","./bnf","./bnf.js","./brainfuck","./brainfuck.js","./cal","./cal.js","./capnproto","./capnproto.js","./ceylon","./ceylon.js","./clean","./clean.js","./clojure","./clojure-repl","./clojure-repl.js","./clojure.js","./cmake","./cmake.js","./coffeescript","./coffeescript.js","./coq","./coq.js","./cos","./cos.js","./cpp","./cpp.js","./crmsh","./crmsh.js","./crystal","./crystal.js","./cs","./cs.js","./csp","./csp.js","./css","./css.js","./d","./d.js","./dart","./dart.js","./delphi","./delphi.js","./diff","./diff.js","./django","./django.js","./dns","./dns.js","./dockerfile","./dockerfile.js","./dos","./dos.js","./dsconfig","./dsconfig.js","./dts","./dts.js","./dust","./dust.js","./ebnf","./ebnf.js","./elixir","./elixir.js","./elm","./elm.js","./erb","./erb.js","./erlang","./erlang-repl","./erlang-repl.js","./erlang.js","./excel","./excel.js","./fix","./fix.js","./flix","./flix.js","./fortran","./fortran.js","./fsharp","./fsharp.js","./gams","./gams.js","./gauss","./gauss.js","./gcode","./gcode.js","./gherkin","./gherkin.js","./glsl","./glsl.js","./gml","./gml.js","./go","./go.js","./golo","./golo.js","./gradle","./gradle.js","./groovy","./groovy.js","./haml","./haml.js","./handlebars","./handlebars.js","./haskell","./haskell.js","./haxe","./haxe.js","./hsp","./hsp.js","./htmlbars","./htmlbars.js","./http","./http.js","./hy","./hy.js","./inform7","./inform7.js","./ini","./ini.js","./irpf90","./irpf90.js","./isbl","./isbl.js","./java","./java.js","./javascript","./javascript.js","./jboss-cli","./jboss-cli.js","./json","./json.js","./julia","./julia-repl","./julia-repl.js","./julia.js","./kotlin","./kotlin.js","./lasso","./lasso.js","./ldif","./ldif.js","./leaf","./leaf.js","./less","./less.js","./lisp","./lisp.js","./livecodeserver","./livecodeserver.js","./livescript","./livescript.js","./llvm","./llvm.js","./lsl","./lsl.js","./lua","./lua.js","./makefile","./makefile.js","./markdown","./markdown.js","./mathematica","./mathematica.js","./matlab","./matlab.js","./maxima","./maxima.js","./mel","./mel.js","./mercury","./mercury.js","./mipsasm","./mipsasm.js","./mizar","./mizar.js","./mojolicious","./mojolicious.js","./monkey","./monkey.js","./moonscript","./moonscript.js","./n1ql","./n1ql.js","./nginx","./nginx.js","./nimrod","./nimrod.js","./nix","./nix.js","./nsis","./nsis.js","./objectivec","./objectivec.js","./ocaml","./ocaml.js","./openscad","./openscad.js","./oxygene","./oxygene.js","./parser3","./parser3.js","./perl","./perl.js","./pf","./pf.js","./pgsql","./pgsql.js","./php","./php.js","./plaintext","./plaintext.js","./pony","./pony.js","./powershell","./powershell.js","./processing","./processing.js","./profile","./profile.js","./prolog","./prolog.js","./properties","./properties.js","./protobuf","./protobuf.js","./puppet","./puppet.js","./purebasic","./purebasic.js","./python","./python.js","./q","./q.js","./qml","./qml.js","./r","./r.js","./reasonml","./reasonml.js","./rib","./rib.js","./roboconf","./roboconf.js","./routeros","./routeros.js","./rsl","./rsl.js","./ruby","./ruby.js","./ruleslanguage","./ruleslanguage.js","./rust","./rust.js","./sas","./sas.js","./scala","./scala.js","./scheme","./scheme.js","./scilab","./scilab.js","./scss","./scss.js","./shell","./shell.js","./smali","./smali.js","./smalltalk","./smalltalk.js","./sml","./sml.js","./sqf","./sqf.js","./sql","./sql.js","./stan","./stan.js","./stata","./stata.js","./step21","./step21.js","./stylus","./stylus.js","./subunit","./subunit.js","./swift","./swift.js","./taggerscript","./taggerscript.js","./tap","./tap.js","./tcl","./tcl.js","./tex","./tex.js","./thrift","./thrift.js","./tp","./tp.js","./twig","./twig.js","./typescript","./typescript.js","./vala","./vala.js","./vbnet","./vbnet.js","./vbscript","./vbscript-html","./vbscript-html.js","./vbscript.js","./verilog","./verilog.js","./vhdl","./vhdl.js","./vim","./vim.js","./x86asm","./x86asm.js","./xl","./xl.js","./xml","./xml.js","./xquery","./xquery.js","./yaml","./yaml.js","./zephir","./zephir.js","webpackAsyncContext","req","o","Promise","resolve","then","e","Error","code","ids","id","_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_lib_loader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_EditorWrapper_vue_vue_type_style_index_0_id_8aaec4a6_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__","_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_lib_loader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_EditorWrapper_vue_vue_type_style_index_1_lang_scss___WEBPACK_IMPORTED_MODULE_0__","FETCH_INTERVAL","MIN_PUSH_RETRY","PollingBackend","authority","_classCallCheck","_authority","fetchInterval","retryTime","lock","fetcher","setInterval","_fetchSteps","bind","shareToken","_forcedSave","fetchSteps","_manualSave","autosaveContent","sendableSteps","_getVersion","lastSavedVersion","_getContent","axios","post","_isPublic","documentId","sessionId","session","sessionToken","token","version","steps","force","manualSave","filePath","response","console","debug","emit","sessions","lastContact","Date","now","maximumRefetchTimer","increaseRefetchTimer","dirty","initialLoading","_receiveSteps","resetRefetchTimer","catch","status","currentVersion","error","ERROR_TYPE","SAVE_COLLISSION","outsideChange","CONNECTION_FAILED","_sendable","_this2","sendSteps","sendable","toJSON","carefulRetryReset","PUSH_FAILURE","Notification","showTemporary","carefulRetry","clearInterval","fetchInverval","min","newRetry","defaultOptions","forceRecreate","LOAD_ERROR","SOURCE_NOT_FOUND","SyncService","SyncService_classCallCheck","eventHandlers","opened","fetched","sync","stateChange","change","backend","connect","assign","stepClientIDs","_this3","_openDocument","_fetchDocument","documentSource","reject","_this4","params","guestName","readOnly","_this5","_ref4","slice","clientIDs","_this6","newSteps","_loop","singleSteps","Array","isArray","forEach","step","clientID","getVersion","_getDocument","save","forceSave","disconnect","event","additionalData","extensionHighlight","py","gyp","wsgi","htm","xhtml","erl","jsp","pl","rss","atom","xsl","plist","rb","builder","gemspec","podspec","thor","diff","hs","icl","php3","php4","php5","php6","sh","zsh","st","as","apacheconf","osacript","b","bf","clj","cmake.in","coffee","cson","iced","c","c++","h++","hh","jinja","bat","cmd","fs","hbs","html.hbs","html.handlebars","sublime_metrics","sublime_session","sublime-keymap","sublime-mousemap","sublime-project","sublime-settings","sublime-workspace","mk","mak","md","mkdown","mkd","nginxconf","m","mm","ml","rs","sci","vb","vbs","Keymap","Extension","schema","isMobile","_isMobile","_onResize","beforeDestroy","removeEventListener","documentElement","clientWidth","components_EditorWrappervue_type_script_lang_js_","components","EditorContent","tiptap_esm","MenuBar","all","MenuBubble","ReadOnlyEditor","CollisionResolveDialog","GuestNameDialog","SessionList","Tooltip","Tooltip_default","mixins","relativePath","String","Number","active","Boolean","syncService","currentSession","filteredSessions","lastSavedString","syncError","saveStatusPolling","lastSavedStatus","dirtyStateIndicator","lastSavedStatusClass","hasUnpushedChanges","hasUnsavedChanges","lastSavedStatusTooltip","lastSave","hasSyncCollission","placement","backendUrl","helpers","hasDocumentParameters","getElementById","isRichEditor","fileExtension","pop","watch","menubar","redrawMenuBar","mounted","initSession","$parent","$emit","created","updateLastSavedStatus","_keyUpHandler","moment","lastSavedVersionTime","fromNow","localStorage","getItem","SyncService_SyncService","markdown","EditorFactory","file","setItem","baseVersionEtag","updateSessions","setOptions","editable","resolveUseServerVersion","render","escapeHTML","extensions_esm","initialVersion","debounce","onSendable","Ctrl-s","collaboration","update","reconnect","focus","hasOwnProperty","resolveUseThisVersion","destroy","sort","currentSessionIds","userId","currentGuestIds","guestId","removedSessions","includes","index","vue_esm","delete","_index","sessionKey","displayName","ctrlKey","metaKey","shiftKey","stopPropagation","component","_e","has-conflicts","richEditor","is-rich-editor","sync-service","_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_lib_loader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_ReadOnlyEditor_vue_vue_type_style_index_0_id_7a012ea5_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__","_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_lib_loader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_CollisionResolveDialog_vue_vue_type_style_index_0_id_1c2d184a_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__","components_ReadOnlyEditorvue_type_script_lang_js_","required","components_CollisionResolveDialogvue_type_script_lang_js_","click","locals","add"],"mappings":";;;;;;;;;;;;;;;;;;;;;OA6BMA,0FAAeC,wCAGnB,MAAO,kBAKHC,0FAAeC,wCAGnB,MAAO,cAKHC,0FAAeC,0CAGnB,MAAO,CACNC,SAAU,CACT,CACCC,IAAK,KAEN,CACCA,IAAK,OAEN,CACCA,IAAK,UAEN,CACCC,MAAO,kBACPC,SAAU,SAAAC,GAAK,MAAc,iBAAVA,KAGrBC,MAAO,iBAAM,CAAC,IAAK,IACnBC,WAAY,CACXC,KAAM,KACNC,MAAO,KACPC,SAAS,EACTC,0BAA0B,aCb9BC,EAAA,CACA,YACA,aACA,YACA,kBACA,YACA,iBAGAC,EAAA,SAAAC,EAAAC,GACA,IAAAC,EAAAF,EAAAG,MAAA,QACA,YA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IAEAC,eAAA,CACA,GACA,IAEAC,kBAAA,CACA,GACA,IAEAC,WAAA,CACA,IACA,IAEAC,cAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,cAAA,CACA,IACA,IAEAC,QAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,cAAA,CACA,IACA,IAEAC,SAAA,CACA,IACA,IAEAC,YAAA,CACA,IACA,IAEAC,UAAA,CACA,IACA,IAEAC,aAAA,CACA,IACA,IAEAC,QAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,cAAA,CACA,IACA,IAEAC,iBAAA,CACA,IACA,IAEAC,QAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,cAAA,CACA,IACA,IAEAC,iBAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,cAAA,CACA,IACA,IAEAC,UAAA,CACA,IACA,IAEAC,aAAA,CACA,IACA,IAEAC,YAAA,CACA,IACA,IAEAC,iBAAA,CACA,IACA,IAEAC,oBAAA,CACA,IACA,IAEAC,eAAA,CACA,IACA,IAEAC,UAAA,CACA,IACA,IAEAC,aAAA,CACA,IACA,IAEAC,iBAAA,CACA,IACA,IAEAC,oBAAA,CACA,IACA,IAEAC,QAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,QAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,QAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,UAAA,CACA,IACA,IAEAC,aAAA,CACA,IACA,IAEAC,YAAA,CACA,IACA,IAEAC,eAAA,CACA,IACA,IAEAC,OAAA,CACA,IACA,IAEAC,UAAA,CACA,IACA,IAEAC,QAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,QAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,MAAA,CACA,IACA,IAEAC,SAAA,CACA,IACA,IAEAC,SAAA,CACA,IACA,IAEAC,YAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,cAAA,CACA,IACA,IAEAC,SAAA,CACA,IACA,IAEAC,YAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,cAAA,CACA,IACA,IAEAC,QAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,eAAA,CACA,IACA,IAEAC,kBAAA,CACA,IACA,IAEAC,QAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,aAAA,CACA,IACA,IAEAC,gBAAA,CACA,IACA,IAEAC,QAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,SAAA,CACA,IACA,IAEAC,YAAA,CACA,IACA,IAEAC,SAAA,CACA,IACA,IAEAC,YAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,cAAA,CACA,IACA,IAEAC,QAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,QAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,gBAAA,CACA,IACA,IAEAC,mBAAA,CACA,IACA,IAEAC,cAAA,CACA,IACA,IAEAC,UAAA,CACA,IACA,IAEAC,aAAA,CACA,IACA,IAEAC,QAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,SAAA,CACA,IACA,IAEAC,YAAA,CACA,IACA,IAEAC,YAAA,CACA,IACA,IAEAC,eAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,cAAA,CACA,IACA,IAEAC,SAAA,CACA,IACA,IAEAC,YAAA,CACA,IACA,IAEAC,UAAA,CACA,IACA,IAEAC,aAAA,CACA,IACA,IAEAC,UAAA,CACA,IACA,IAEAC,aAAA,CACA,IACA,IAEAC,YAAA,CACA,IACA,IAEAC,eAAA,CACA,IACA,IAEAC,SAAA,CACA,IACA,IAEAC,YAAA,CACA,IACA,IAEAC,QAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,OAAA,CACA,IACA,IAEAC,UAAA,CACA,IACA,IAEAC,SAAA,CACA,IACA,IAEAC,YAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,cAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,cAAA,CACA,IACA,IAEAC,SAAA,CACA,IACA,IAEAC,YAAA,CACA,IACA,IAEAC,eAAA,CACA,IACA,IAEAC,kBAAA,CACA,IACA,IAEAC,YAAA,CACA,IACA,IAEAC,eAAA,CACA,IACA,IAEAC,SAAA,CACA,IACA,IAEAC,YAAA,CACA,IACA,IAEAC,QAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,aAAA,CACA,IACA,IAEAC,gBAAA,CACA,IACA,IAEAC,SAAA,CACA,IACA,IAEAC,YAAA,CACA,IACA,IAEAC,OAAA,CACA,IACA,IAEAC,UAAA,CACA,IACA,IAEAC,YAAA,CACA,IACA,IAEAC,eAAA,CACA,IACA,IAEAC,QAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,cAAA,CACA,IACA,IAEAC,SAAA,CACA,IACA,IAEAC,YAAA,CACA,IACA,IAEAC,SAAA,CACA,IACA,IAEAC,YAAA,CACA,IACA,IAEAC,eAAA,CACA,IACA,IAEAC,kBAAA,CACA,IACA,IAEAC,cAAA,CACA,IACA,IAEAC,iBAAA,CACA,IACA,IAEAC,SAAA,CACA,IACA,IAEAC,YAAA,CACA,IACA,IAEAC,UAAA,CACA,IACA,IAEAC,eAAA,CACA,IACA,IAEAC,kBAAA,CACA,IACA,IAEAC,aAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,cAAA,CACA,IACA,IAEAC,UAAA,CACA,IACA,IAEAC,aAAA,CACA,IACA,IAEAC,SAAA,CACA,IACA,IAEAC,YAAA,CACA,IACA,IAEAC,SAAA,CACA,IACA,IAEAC,YAAA,CACA,IACA,IAEAC,SAAA,CACA,IACA,IAEAC,YAAA,CACA,IACA,IAEAC,SAAA,CACA,IACA,IAEAC,YAAA,CACA,IACA,IAEAC,mBAAA,CACA,IACA,IAEAC,sBAAA,CACA,IACA,IAEAC,eAAA,CACA,IACA,IAEAC,kBAAA,CACA,IACA,IAEAC,SAAA,CACA,IACA,IAEAC,YAAA,CACA,IACA,IAEAC,QAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,QAAA,CACA,IACA,IAEAC,WAAA,CACA,IACA,IAEAC,aAAA,CACA,IACA,KAEAC,gBAAA,CACA,IACA,KAEAC,aAAA,CACA,IACA,KAEAC,gBAAA,CACA,IACA,KAEAC,gBAAA,CACA,IACA,KAEAC,mBAAA,CACA,IACA,KAEAC,WAAA,CACA,IACA,KAEAC,cAAA,CACA,IACA,KAEAC,WAAA,CACA,IACA,KAEAC,cAAA,CACA,IACA,KAEAC,QAAA,CACA,IACA,KAEAC,WAAA,CACA,IACA,KAEAC,YAAA,CACA,IACA,KAEAC,eAAA,CACA,IACA,KAEAC,YAAA,CACA,IACA,KAEAC,eAAA,CACA,IACA,KAEAC,UAAA,CACA,IACA,KAEAC,aAAA,CACA,IACA,KAEAC,gBAAA,CACA,IACA,KAEAC,mBAAA,CACA,IACA,KAEAC,WAAA,CACA,IACA,KAEAC,cAAA,CACA,IACA,KAEAC,eAAA,CACA,IACA,KAEAC,kBAAA,CACA,IACA,KAEAC,SAAA,CACA,IACA,KAEAC,YAAA,CACA,IACA,KAEAC,UAAA,CACA,IACA,KAEAC,aAAA,CACA,IACA,KAEAC,WAAA,CACA,IACA,KAEAC,cAAA,CACA,IACA,KAEAC,QAAA,CACA,IACA,KAEAC,WAAA,CACA,IACA,KAEAC,SAAA,CACA,IACA,KAEAC,YAAA,CACA,IACA,KAEAC,eAAA,CACA,IACA,KAEAC,kBAAA,CACA,IACA,KAEAC,UAAA,CACA,IACA,KAEAC,aAAA,CACA,IACA,KAEAC,aAAA,CACA,IACA,KAEAC,gBAAA,CACA,IACA,KAEAC,YAAA,CACA,IACA,KAEAC,eAAA,CACA,IACA,KAEAC,YAAA,CACA,IACA,KAEAC,eAAA,CACA,IACA,KAEAC,SAAA,CACA,IACA,KAEAC,YAAA,CACA,IACA,KAEAC,OAAA,CACA,IACA,KAEAC,UAAA,CACA,IACA,KAEAC,UAAA,CACA,IACA,KAEAC,aAAA,CACA,IACA,KAEAC,QAAA,CACA,IACA,KAEAC,WAAA,CACA,IACA,KAEAC,cAAA,CACA,IACA,KAEAC,iBAAA,CACA,IACA,KAEAC,SAAA,CACA,IACA,KAEAC,YAAA,CACA,IACA,KAEAC,eAAA,CACA,IACA,KAEAC,kBAAA,CACA,IACA,KAEAC,eAAA,CACA,IACA,KAEAC,kBAAA,CACA,IACA,KAEAC,YAAA,CACA,IACA,KAEAC,eAAA,CACA,IACA,KAEAC,WAAA,CACA,IACA,KAEAC,cAAA,CACA,IACA,KAEAC,eAAA,CACA,IACA,KAEAC,kBAAA,CACA,IACA,KAEAC,aAAA,CACA,IACA,KAEAC,gBAAA,CACA,IACA,KAEAC,WAAA,CACA,IACA,KAEAC,cAAA,CACA,IACA,KAEAC,cAAA,CACA,IACA,KAEAC,iBAAA,CACA,IACA,KAEAC,WAAA,CACA,IACA,KAEAC,cAAA,CACA,IACA,KAEAC,MAAA,CACA,IACA,KAEAC,SAAA,CACA,IACA,KAEAC,QAAA,CACA,IACA,KAEAC,WAAA,CACA,IACA,KAEAC,MAAA,CACA,IACA,KAEAC,SAAA,CACA,IACA,KAEAC,aAAA,CACA,IACA,KAEAC,gBAAA,CACA,IACA,KAEAC,QAAA,CACA,IACA,KAEAC,WAAA,CACA,IACA,KAEAC,aAAA,CACA,IACA,KAEAC,gBAAA,CACA,IACA,KAEAC,aAAA,CACA,IACA,KAEAC,gBAAA,CACA,IACA,KAEAC,QAAA,CACA,IACA,KAEAC,WAAA,CACA,IACA,KAEAC,SAAA,CACA,IACA,KAEAC,YAAA,CACA,IACA,KAEAC,kBAAA,CACA,IACA,KAEAC,qBAAA,CACA,IACA,KAEAC,SAAA,CACA,IACA,KAEAC,YAAA,CACA,IACA,KAEAC,QAAA,CACA,IACA,KAEAC,WAAA,CACA,IACA,KAEAC,UAAA,CACA,IACA,KAEAC,aAAA,CACA,IACA,KAEAC,WAAA,CACA,IACA,KAEAC,cAAA,CACA,IACA,KAEAC,WAAA,CACA,IACA,KAEAC,cAAA,CACA,IACA,KAEAC,SAAA,CACA,IACA,KAEAC,YAAA,CACA,IACA,KAEAC,UAAA,CACA,IACA,KAEAC,aAAA,CACA,IACA,KAEAC,UAAA,CACA,IACA,KAEAC,aAAA,CACA,IACA,KAEAC,cAAA,CACA,IACA,KAEAC,iBAAA,CACA,IACA,KAEAC,QAAA,CACA,IACA,KAEAC,WAAA,CACA,IACA,KAEAC,QAAA,CACA,IACA,KAEAC,WAAA,CACA,IACA,KAEAC,QAAA,CACA,IACA,KAEAC,WAAA,CACA,IACA,KAEAC,SAAA,CACA,IACA,KAEAC,YAAA,CACA,IACA,KAEAC,UAAA,CACA,IACA,KAEAC,aAAA,CACA,IACA,KAEAC,WAAA,CACA,IACA,KAEAC,cAAA,CACA,IACA,KAEAC,WAAA,CACA,IACA,KAEAC,cAAA,CACA,IACA,KAEAC,YAAA,CACA,IACA,KAEAC,eAAA,CACA,IACA,KAEAC,UAAA,CACA,IACA,KAEAC,aAAA,CACA,IACA,KAEAC,iBAAA,CACA,IACA,KAEAC,oBAAA,CACA,IACA,KAEAC,QAAA,CACA,IACA,KAEAC,WAAA,CACA,IACA,KAEAC,QAAA,CACA,IACA,KAEAC,WAAA,CACA,IACA,KAEAC,QAAA,CACA,IACA,KAEAC,WAAA,CACA,IACA,KAEAC,WAAA,CACA,IACA,KAEAC,cAAA,CACA,IACA,KAEAC,OAAA,CACA,IACA,KAEAC,UAAA,CACA,IACA,KAEAC,SAAA,CACA,IACA,KAEAC,YAAA,CACA,IACA,KAEAC,eAAA,CACA,IACA,KAEAC,kBAAA,CACA,IACA,KAEAC,SAAA,CACA,IACA,KAEAC,YAAA,CACA,IACA,KAEAC,UAAA,CACA,IACA,KA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AQ,KACtB,iBAAAd,MAAA,EAA4CwF,EAAAhL,EAASwF,EAAA,MACrDA,EAAA8xB,SAAAtsB,EAAAC,QAAAzF,EAAA8xB,SAGAC,EADUjxB,EAAQ,IAA6DE,SAC/E,WAAAhB,GAAA,0BCLA,IAAAA,EAAcc,EAAQ,KACtB,iBAAAd,MAAA,EAA4CwF,EAAAhL,EAASwF,EAAA,MACrDA,EAAA8xB,SAAAtsB,EAAAC,QAAAzF,EAAA8xB,SAGAC,EADUjxB,EAAQ,IAA6DE,SAC/E,WAAAhB,GAAA,0BCLA,IAAAA,EAAcc,EAAQ,KACtB,iBAAAd,MAAA,EAA4CwF,EAAAhL,EAASwF,EAAA,MACrDA,EAAA8xB,SAAAtsB,EAAAC,QAAAzF,EAAA8xB,SAGAC,EADUjxB,EAAQ,IAA6DE,SAC/E,WAAAhB,GAAA,0BCLA,IAAAA,EAAcc,EAAQ,KACtB,iBAAAd,MAAA,EAA4CwF,EAAAhL,EAASwF,EAAA,MACrDA,EAAA8xB,SAAAtsB,EAAAC,QAAAzF,EAAA8xB,SAGAC,EADUjxB,EAAQ,IAA6DE,SAC/E,WAAAhB,GAAA,0BCLA,IAAAA,EAAcc,EAAQ,KACtB,iBAAAd,MAAA,EAA4CwF,EAAAhL,EAASwF,EAAA,MACrDA,EAAA8xB,SAAAtsB,EAAAC,QAAAzF,EAAA8xB,SAGAC,EADUjxB,EAAQ,IAA6DE,SAC/E,WAAAhB,GAAA","file":"editor.js?v=5ed8469d5925bced3d9f","sourcesContent":["/*\n * @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>\n *\n * @author Julius Härtl <jus@bitgrid.net>\n *\n * @license GNU AGPL version 3 or any later version\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\nimport { Bold, Italic as TipTapItalic, Strike as TipTapStrike } from 'tiptap-extensions'\n\n/**\n * This file maps prosemirror mark names to tiptap classes,\n * so we can reuse the prosemirror-markdown default parser for now\n */\n\nclass Strong extends Bold {\n\n\tget name() {\n\t\treturn 'strong'\n\t}\n\n}\n\nclass Italic extends TipTapItalic {\n\n\tget name() {\n\t\treturn 'em'\n\t}\n\n}\n\nclass Strike extends TipTapStrike {\n\n\tget schema() {\n\t\treturn {\n\t\t\tparseDOM: [\n\t\t\t\t{\n\t\t\t\t\ttag: 's'\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttag: 'del'\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttag: 'strike'\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tstyle: 'text-decoration',\n\t\t\t\t\tgetAttrs: value => value === 'line-through'\n\t\t\t\t}\n\t\t\t],\n\t\t\ttoDOM: () => ['s', 0],\n\t\t\ttoMarkdown: {\n\t\t\t\topen: '~~',\n\t\t\t\tclose: '~~',\n\t\t\t\tmixable: true,\n\t\t\t\texpelEnclosingWhitespace: true\n\t\t\t}\n\t\t}\n\t}\n\n}\n\n/** Strike is currently unsupported by prosemirror-markdown */\n\nexport {\n\tStrong,\n\tItalic,\n\tStrike\n}\n","<!--\n - @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>\n -\n - @author Julius Härtl <jus@bitgrid.net>\n -\n - @license GNU AGPL version 3 or any later version\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n -->\n\n<template>\n\t<div class=\"image\" :class=\"{'icon-loading': !loaded}\" :data-src=\"src\">\n\t\t<div v-if=\"imageLoaded && isSupportedImage\">\n\t\t\t<transition name=\"fade\">\n\t\t\t\t<img v-show=\"loaded\" :src=\"src\"\n\t\t\t\t\tclass=\"image__main\" @load=\"onLoaded\">\n\t\t\t</transition>\n\t\t\t<transition name=\"fade\">\n\t\t\t\t<div v-show=\"loaded\" class=\"image__caption\">\n\t\t\t\t\t<input ref=\"altInput\" type=\"text\" :value=\"alt\"\n\t\t\t\t\t\t@keyup.enter=\"updateAlt()\">\n\t\t\t\t</div>\n\t\t\t</transition>\n\t\t</div>\n\t\t<div v-else class=\"image__placeholder\">\n\t\t\t<transition name=\"fade\">\n\t\t\t\t<div v-show=\"loaded\" class=\"image__main\">\n\t\t\t\t\t<div class=\"icon-image\" :style=\"mimeIcon\" />\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<a :href=\"internalLinkOrImage\" target=\"_blank\">{{ isSupportedImage ? t('text', 'Show image') : t('text', 'Show file') }}</a>\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t</transition><transition name=\"fade\">\n\t\t\t\t<div v-show=\"loaded\" class=\"image__caption\">\n\t\t\t\t\t<input ref=\"altInput\" type=\"text\" :value=\"alt\"\n\t\t\t\t\t\t@keyup.enter=\"updateAlt()\">\n\t\t\t\t</div>\n\t\t\t</transition>\n\t\t</div>\n\t</div>\n</template>\n\n<script>\n\nconst imageMimes = [\n\t'image/png',\n\t'image/jpeg',\n\t'image/gif',\n\t'image/x-xbitmap',\n\t'image/bmp',\n\t'image/svg+xml'\n]\n\nconst getQueryVariable = (src, variable) => {\n\tvar query = src.split('#')[1]\n\tif (typeof query === 'undefined') {\n\t\treturn\n\t}\n\tvar vars = query.split('&')\n\tif (typeof vars === 'undefined') {\n\t\treturn\n\t}\n\tfor (var i = 0; i < vars.length; i++) {\n\t\tvar pair = vars[i].split('=')\n\t\tif (decodeURIComponent(pair[0]) === variable) {\n\t\t\treturn decodeURIComponent(pair[1])\n\t\t}\n\t}\n}\n\nexport default {\n\tname: 'ImageView',\n\tprops: ['node', 'updateAttrs', 'view'], // eslint-disable-line\n\tdata() {\n\t\treturn {\n\t\t\timageLoaded: false,\n\t\t\tloaded: false,\n\t\t\tfailed: false\n\t\t}\n\t},\n\tcomputed: {\n\t\tmimeIcon() {\n\t\t\tconst mime = getQueryVariable(this.src, 'mimetype')\n\t\t\tif (mime) {\n\t\t\t\treturn {\n\t\t\t\t\tbackgroundImage: 'url(' + window.OC.MimeType.getIconUrl(mime) + ')'\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn {}\n\t\t},\n\t\tisSupportedImage() {\n\t\t\tconst mime = getQueryVariable(this.src, 'mimetype')\n\t\t\treturn typeof mime === 'undefined' || imageMimes.indexOf(mime) !== -1\n\t\t},\n\t\tinternalLinkOrImage() {\n\t\t\tconst fileId = getQueryVariable(this.src, 'fileId')\n\t\t\tif (fileId) {\n\t\t\t\treturn OC.generateUrl('/f/' + fileId)\n\t\t\t}\n\t\t\treturn this.src\n\t\t},\n\t\tsrc: {\n\t\t\tget() {\n\t\t\t\treturn this.node.attrs.src\n\t\t\t},\n\t\t\tset(src) {\n\t\t\t\tthis.updateAttrs({\n\t\t\t\t\tsrc\n\t\t\t\t})\n\t\t\t}\n\t\t},\n\t\talt: {\n\t\t\tget() {\n\t\t\t\treturn this.node.attrs.alt ? this.node.attrs.alt : ''\n\t\t\t},\n\t\t\tset(alt) {\n\t\t\t\tthis.updateAttrs({\n\t\t\t\t\talt\n\t\t\t\t})\n\t\t\t}\n\t\t},\n\t\tt() {\n\t\t\treturn (a, s) => window.t(a, s)\n\t\t}\n\t},\n\tbeforeMount() {\n\t\tif (!this.isSupportedImage) {\n\t\t\t// TODO check if hasPreview and render a file preview if available\n\t\t\tthis.failed = true\n\t\t\tthis.imageLoaded = false\n\t\t\tthis.loaded = true\n\t\t\treturn\n\t\t}\n\t\tvar img = new Image()\n\t\timg.src = this.node.attrs.src\n\t\timg.onload = () => {\n\t\t\tthis.imageLoaded = true\n\t\t}\n\t\timg.onerror = () => {\n\t\t\tthis.failed = true\n\t\t\tthis.imageLoaded = false\n\t\t\tthis.loaded = true\n\t\t}\n\t},\n\tmethods: {\n\t\tupdateAlt() {\n\t\t\tthis.alt = this.$refs.altInput.value\n\t\t},\n\t\tonLoaded() {\n\t\t\tthis.loaded = true\n\t\t}\n\t}\n}\n</script>\n\n<style scoped lang=\"scss\">\n\t.image {\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n\n\t.image__caption {\n\t\ttext-align: center;\n\t\tcolor: var(--color-text-lighter);\n\t\tinput[type='text'] {\n\t\t\twidth: 100%;\n\t\t\tborder: none;\n\t\t\ttext-align: center;\n\t\t}\n\t}\n\n\t.icon-image {\n\t\tmargin-top: 10px;\n\t\theight: 32px;\n\t\tpadding: 20px;\n\t\tbackground-size: contain;\n\t}\n\n\t.image__loading {\n\t\theight: 100px;\n\t}\n\n\t.image__placeholder .image__main {\n\t\tbackground-color: var(--color-background-dark);\n\t\ttext-align: center;\n\t\tpadding: 20px;\n\t\tborder-radius: var(--border-radius);\n\t\t.icon-image {\n\t\t\topacity: 0.7;\n\t\t}\n\t}\n\n\t.fade-enter-active {\n\t\ttransition: opacity .3s ease-in-out;\n\t}\n\n\t.fade-enter-to {\n\t\topacity: 1;\n\t}\n\n\t.fade-enter {\n\t\topacity: 0;\n\t}\n</style>\n","import mod from \"-!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ImageView.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ImageView.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ImageView.vue?vue&type=template&id=3153cb96&scoped=true&\"\nimport script from \"./ImageView.vue?vue&type=script&lang=js&\"\nexport * from \"./ImageView.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ImageView.vue?vue&type=style&index=0&id=3153cb96&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3153cb96\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"image\",class:{'icon-loading': !_vm.loaded},attrs:{\"data-src\":_vm.src}},[(_vm.imageLoaded && _vm.isSupportedImage)?_c('div',[_c('transition',{attrs:{\"name\":\"fade\"}},[_c('img',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.loaded),expression:\"loaded\"}],staticClass:\"image__main\",attrs:{\"src\":_vm.src},on:{\"load\":_vm.onLoaded}})]),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"fade\"}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.loaded),expression:\"loaded\"}],staticClass:\"image__caption\"},[_c('input',{ref:\"altInput\",attrs:{\"type\":\"text\"},domProps:{\"value\":_vm.alt},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.updateAlt()}}})])])],1):_c('div',{staticClass:\"image__placeholder\"},[_c('transition',{attrs:{\"name\":\"fade\"}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.loaded),expression:\"loaded\"}],staticClass:\"image__main\"},[_c('div',{staticClass:\"icon-image\",style:(_vm.mimeIcon)}),_vm._v(\" \"),_c('p',[_c('a',{attrs:{\"href\":_vm.internalLinkOrImage,\"target\":\"_blank\"}},[_vm._v(_vm._s(_vm.isSupportedImage ? _vm.t('text', 'Show image') : _vm.t('text', 'Show file')))])])])]),_c('transition',{attrs:{\"name\":\"fade\"}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.loaded),expression:\"loaded\"}],staticClass:\"image__caption\"},[_c('input',{ref:\"altInput\",attrs:{\"type\":\"text\"},domProps:{\"value\":_vm.alt},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.updateAlt()}}})])])],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/*\n * @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>\n *\n * @author Julius Härtl <jus@bitgrid.net>\n *\n * @license GNU AGPL version 3 or any later version\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\nimport { Image as TiptapImage } from 'tiptap-extensions'\nimport ImageView from './ImageView'\n\nexport default class Image extends TiptapImage {\n\n\tget view() {\n\t\treturn ImageView\n\t}\n\n\tget schema() {\n\t\treturn {\n\t\t\t...super.schema,\n\t\t\tselectable: false\n\t\t}\n\t}\n\n}\n","/*\n * @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>\n *\n * @author Julius Härtl <jus@bitgrid.net>\n *\n * @license GNU AGPL version 3 or any later version\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\nimport { Node } from 'tiptap'\nimport { insertText } from 'tiptap-commands'\n\nexport default class PlainTextDocument extends Node {\n\n\tget name() {\n\t\treturn 'doc'\n\t}\n\n\tget schema() {\n\t\treturn {\n\t\t\tcontent: 'block'\n\t\t}\n\t}\n\n\tkeys() {\n\t\treturn {\n\t\t\tTab: (state) => {\n\t\t\t\tinsertText('\\t')(state, this.editor.view.dispatch, this.editor.view)\n\t\t\t\treturn true\n\t\t\t}\n\t\t}\n\t}\n\n}\n","/*\n * @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>\n *\n * @author Julius Härtl <jus@bitgrid.net>\n *\n * @license GNU AGPL version 3 or any later version\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nimport { Editor, Text } from 'tiptap'\nimport {\n\tHardBreak,\n\tHeading,\n\tCode,\n\tLink,\n\tBulletList,\n\tOrderedList,\n\tListItem,\n\tBlockquote,\n\tCodeBlock,\n\tCodeBlockHighlight,\n\tHorizontalRule,\n\tHistory\n} from 'tiptap-extensions'\nimport { Strong, Italic, Strike } from './marks'\nimport { Image, PlainTextDocument } from './nodes'\nimport MarkdownIt from 'markdown-it'\n\nimport { MarkdownSerializer, defaultMarkdownSerializer } from 'prosemirror-markdown'\n\nconst loadSyntaxHighlight = async(language) => {\n\tconst languages = [language]\n\tlet modules = {}\n\tfor (let i = 0; i < languages.length; i++) {\n\t\ttry {\n\t\t\tconst lang = await import(/* webpackChunkName: \"highlight/[request]\" */'highlight.js/lib/languages/' + languages[i])\n\t\t\tmodules[languages[i]] = lang.default\n\t\t} catch (e) {\n\t\t\t// No matching highlighing found, fallback to none\n\t\t\treturn undefined\n\t\t}\n\t}\n\tif (Object.keys(modules).length === 0 && modules.constructor === Object) {\n\t\treturn undefined\n\t}\n\treturn { languages: modules }\n}\n\nconst createEditor = ({ content, onUpdate, extensions, enableRichEditing, languages }) => {\n\tlet richEditingExtensions = []\n\tif (enableRichEditing) {\n\t\trichEditingExtensions = [\n\t\t\tnew Heading(),\n\t\t\tnew Code(),\n\t\t\tnew Strong(),\n\t\t\tnew Italic(),\n\t\t\tnew Strike(),\n\t\t\tnew HardBreak(),\n\t\t\tnew HorizontalRule(),\n\t\t\tnew BulletList(),\n\t\t\tnew OrderedList(),\n\t\t\tnew Blockquote(),\n\t\t\tnew CodeBlock(),\n\t\t\tnew ListItem(),\n\t\t\tnew Link(),\n\t\t\tnew Image()\n\t\t]\n\t} else {\n\t\trichEditingExtensions = [\n\t\t\tnew PlainTextDocument(),\n\t\t\tnew Text(),\n\t\t\tnew CodeBlockHighlight({\n\t\t\t\t...languages\n\t\t\t})\n\t\t]\n\t}\n\textensions = extensions || []\n\treturn new Editor({\n\t\tcontent: content,\n\t\tonUpdate: onUpdate,\n\t\textensions: [\n\t\t\t...richEditingExtensions,\n\t\t\tnew History()\n\t\t].concat(extensions),\n\t\tuseBuiltInExtensions: enableRichEditing\n\t})\n}\n\nconst markdownit = MarkdownIt('commonmark', { html: false, breaks: false })\n\t.enable('strikethrough')\n\nconst SerializeException = function(message) {\n\tthis.message = message\n}\nconst createMarkdownSerializer = (_nodes, _marks) => {\n\tconst nodes = Object\n\t\t.entries(_nodes)\n\t\t.filter(([, node]) => node.toMarkdown)\n\t\t.reduce((items, [name, { toMarkdown }]) => ({\n\t\t\t...items,\n\t\t\t[name]: toMarkdown\n\t\t}), {})\n\n\tconst marks = Object\n\t\t.entries(_marks)\n\t\t.filter(([, node]) => node.toMarkdown)\n\t\t.reduce((items, [name, { toMarkdown }]) => ({\n\t\t\t...items,\n\t\t\t[name]: toMarkdown\n\t\t}), {})\n\treturn {\n\t\tserializer: new MarkdownSerializer(\n\t\t\t{ ...defaultMarkdownSerializer.nodes, ...nodes },\n\t\t\t{ ...defaultMarkdownSerializer.marks, ...marks }\n\t\t),\n\t\tserialize: function(content, options) {\n\t\t\treturn this.serializer.serialize(content, options).split('\\\\[ \\\\]').join('[ ]')\n\t\t\t\t.split('\\\\[x\\\\]').join('[x]')\n\t\t}\n\t}\n}\n\nconst serializePlainText = (tiptap) => {\n\tconst doc = tiptap.getJSON()\n\n\tif (doc.content.length !== 1 || typeof doc.content[0].content === 'undefined' || doc.content[0].content.length !== 1) {\n\t\tif (doc.content[0].type === 'code_block' && typeof doc.content[0].content === 'undefined') {\n\t\t\treturn ''\n\t\t}\n\t\tthrow new SerializeException('Failed to serialize document to plain text')\n\t}\n\tconst codeBlock = doc.content[0].content[0]\n\tif (codeBlock.type !== 'text') {\n\t\tthrow new SerializeException('Failed to serialize document to plain text')\n\t}\n\treturn codeBlock.text\n}\n\nexport default createEditor\nexport { markdownit, createEditor, createMarkdownSerializer, serializePlainText, loadSyntaxHighlight }\n","import mod from \"-!../../node_modules/vue-style-loader/index.js!../../node_modules/css-loader/dist/cjs.js!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/sass-loader/lib/loader.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ImageView.vue?vue&type=style&index=0&id=3153cb96&scoped=true&lang=scss&\"; export default mod; export * from \"-!../../node_modules/vue-style-loader/index.js!../../node_modules/css-loader/dist/cjs.js!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/sass-loader/lib/loader.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ImageView.vue?vue&type=style&index=0&id=3153cb96&scoped=true&lang=scss&\"","exports = module.exports = require(\"../../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \".image[data-v-3153cb96] {\\n margin: 0;\\n padding: 0;\\n}\\n.image__caption[data-v-3153cb96] {\\n text-align: center;\\n color: var(--color-text-lighter);\\n}\\n.image__caption input[type='text'][data-v-3153cb96] {\\n width: 100%;\\n border: none;\\n text-align: center;\\n}\\n.icon-image[data-v-3153cb96] {\\n margin-top: 10px;\\n height: 32px;\\n padding: 20px;\\n background-size: contain;\\n}\\n.image__loading[data-v-3153cb96] {\\n height: 100px;\\n}\\n.image__placeholder .image__main[data-v-3153cb96] {\\n background-color: var(--color-background-dark);\\n text-align: center;\\n padding: 20px;\\n border-radius: var(--border-radius);\\n}\\n.image__placeholder .image__main .icon-image[data-v-3153cb96] {\\n opacity: 0.7;\\n}\\n.fade-enter-active[data-v-3153cb96] {\\n transition: opacity .3s ease-in-out;\\n}\\n.fade-enter-to[data-v-3153cb96] {\\n opacity: 1;\\n}\\n.fade-enter[data-v-3153cb96] {\\n opacity: 0;\\n}\\n\", \"\"]);\n","/*\n * @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>\n *\n * @author Julius Härtl <jus@bitgrid.net>\n *\n * @license GNU AGPL version 3 or any later version\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\n/**\n * Callback that should be executed after the document is ready\n * @param callback\n */\nimport { generateUrl } from 'nextcloud-server/dist/router'\n\nconst documentReady = function(callback) {\n\tconst fn = () => setTimeout(callback, 0)\n\tif (document.attachEvent ? document.readyState === 'complete' : document.readyState !== 'loading') {\n\t\tfn()\n\t} else {\n\t\tdocument.addEventListener('DOMContentLoaded', callback)\n\t}\n}\n\nconst _baseUrl = generateUrl('/apps/text')\nconst endpointUrl = (endpoint, isPublic = false) => {\n\tif (isPublic) {\n\t\treturn `${_baseUrl}/public/${endpoint}`\n\t}\n\treturn `${_baseUrl}/${endpoint}`\n}\n\nconst randomGuestNames = ['Artichoke', 'Arugula', 'Asparagus', 'Avocado', 'Bamboo Shoot', 'Bean Sprout', 'Bean', 'Beet', 'Belgian Endive', 'Bell Pepper', 'Bitter Melon', 'Bitter Gourd', 'Bok Choy', 'Broccoli', 'Brussels Sprout', 'Burdock Root', 'Cabbage', 'Calabash', 'Caper', 'Carrot', 'Cassava', 'Cauliflower', 'Celery', 'Celery Root', 'Celtuce', 'Chayote', 'Chinese Broccoli', 'Corn', 'Baby Corn', 'Cucumber', 'English Cucumber', 'Gherkin', 'Pickling Cucumber', 'Daikon Radish', 'Edamame', 'Eggplant', 'Elephant Garlic', 'Endive', 'Curly', 'Escarole', 'Fennel', 'Fiddlehead', 'Galangal', 'Garlic', 'Ginger', 'Grape Leave', 'Green Bean', 'Wax Bean', 'Green', 'Amaranth Leave', 'Beet Green', 'Collard Green', 'Dandelion Green', 'Kale', 'Kohlrabi Green', 'Mustard Green', 'Rapini', 'Spinach', 'Swiss Chard', 'Turnip Green', 'Hearts of Palm', 'Horseradish', 'Jerusalem Artichoke', 'Jícama', 'Kale', 'Curly', 'Lacinato', 'Ornamental', 'Kohlrabi', 'Leeks', 'Lemongrass', 'Lettuce', 'Butterhead', 'Iceberg', 'Leaf', 'Romaine', 'Lotus Root', 'Lotus Seed', 'Mushroom', 'Napa Cabbage', 'Nopales', 'Okra', 'Olive', 'Onion', 'Green Onion', 'Parsley', 'Parsley Root', 'Parsnip', 'Pepper', 'Plantain', 'Potato', 'Pumpkin', 'Purslane', 'Radicchio', 'Radish', 'Rutabaga', 'Shallots', 'Spinach', 'Squash', 'Sweet Potato', 'Swiss Chard', 'Taro', 'Tomatillo', 'Tomato', 'Turnip', 'Water Chestnut', 'Water Spinach', 'Watercress', 'Winter Melon', 'Yams', 'Zucchini']\nconst getRandomGuestName = () => {\n\treturn randomGuestNames[Math.floor(Math.random() * randomGuestNames.length)]\n}\n\nexport {\n\tdocumentReady,\n\tendpointUrl,\n\tgetRandomGuestName\n}\n","var map = {\n\t\"./1c\": [\n\t\t86,\n\t\t1\n\t],\n\t\"./1c.js\": [\n\t\t86,\n\t\t1\n\t],\n\t\"./abnf\": [\n\t\t87,\n\t\t2\n\t],\n\t\"./abnf.js\": [\n\t\t87,\n\t\t2\n\t],\n\t\"./accesslog\": [\n\t\t88,\n\t\t3\n\t],\n\t\"./accesslog.js\": [\n\t\t88,\n\t\t3\n\t],\n\t\"./actionscript\": [\n\t\t89,\n\t\t4\n\t],\n\t\"./actionscript.js\": [\n\t\t89,\n\t\t4\n\t],\n\t\"./ada\": [\n\t\t90,\n\t\t5\n\t],\n\t\"./ada.js\": [\n\t\t90,\n\t\t5\n\t],\n\t\"./angelscript\": [\n\t\t91,\n\t\t6\n\t],\n\t\"./angelscript.js\": [\n\t\t91,\n\t\t6\n\t],\n\t\"./apache\": [\n\t\t92,\n\t\t7\n\t],\n\t\"./apache.js\": [\n\t\t92,\n\t\t7\n\t],\n\t\"./applescript\": [\n\t\t93,\n\t\t8\n\t],\n\t\"./applescript.js\": [\n\t\t93,\n\t\t8\n\t],\n\t\"./arcade\": [\n\t\t94,\n\t\t9\n\t],\n\t\"./arcade.js\": [\n\t\t94,\n\t\t9\n\t],\n\t\"./arduino\": [\n\t\t95,\n\t\t10\n\t],\n\t\"./arduino.js\": [\n\t\t95,\n\t\t10\n\t],\n\t\"./armasm\": [\n\t\t96,\n\t\t11\n\t],\n\t\"./armasm.js\": [\n\t\t96,\n\t\t11\n\t],\n\t\"./asciidoc\": [\n\t\t97,\n\t\t12\n\t],\n\t\"./asciidoc.js\": [\n\t\t97,\n\t\t12\n\t],\n\t\"./aspectj\": [\n\t\t98,\n\t\t13\n\t],\n\t\"./aspectj.js\": [\n\t\t98,\n\t\t13\n\t],\n\t\"./autohotkey\": [\n\t\t99,\n\t\t14\n\t],\n\t\"./autohotkey.js\": [\n\t\t99,\n\t\t14\n\t],\n\t\"./autoit\": [\n\t\t100,\n\t\t15\n\t],\n\t\"./autoit.js\": [\n\t\t100,\n\t\t15\n\t],\n\t\"./avrasm\": [\n\t\t101,\n\t\t16\n\t],\n\t\"./avrasm.js\": [\n\t\t101,\n\t\t16\n\t],\n\t\"./awk\": [\n\t\t102,\n\t\t17\n\t],\n\t\"./awk.js\": [\n\t\t102,\n\t\t17\n\t],\n\t\"./axapta\": [\n\t\t103,\n\t\t18\n\t],\n\t\"./axapta.js\": [\n\t\t103,\n\t\t18\n\t],\n\t\"./bash\": [\n\t\t104,\n\t\t19\n\t],\n\t\"./bash.js\": [\n\t\t104,\n\t\t19\n\t],\n\t\"./basic\": [\n\t\t105,\n\t\t20\n\t],\n\t\"./basic.js\": [\n\t\t105,\n\t\t20\n\t],\n\t\"./bnf\": [\n\t\t106,\n\t\t21\n\t],\n\t\"./bnf.js\": [\n\t\t106,\n\t\t21\n\t],\n\t\"./brainfuck\": [\n\t\t107,\n\t\t22\n\t],\n\t\"./brainfuck.js\": [\n\t\t107,\n\t\t22\n\t],\n\t\"./cal\": [\n\t\t108,\n\t\t23\n\t],\n\t\"./cal.js\": [\n\t\t108,\n\t\t23\n\t],\n\t\"./capnproto\": [\n\t\t109,\n\t\t24\n\t],\n\t\"./capnproto.js\": [\n\t\t109,\n\t\t24\n\t],\n\t\"./ceylon\": [\n\t\t110,\n\t\t25\n\t],\n\t\"./ceylon.js\": [\n\t\t110,\n\t\t25\n\t],\n\t\"./clean\": [\n\t\t111,\n\t\t26\n\t],\n\t\"./clean.js\": [\n\t\t111,\n\t\t26\n\t],\n\t\"./clojure\": [\n\t\t113,\n\t\t27\n\t],\n\t\"./clojure-repl\": [\n\t\t112,\n\t\t28\n\t],\n\t\"./clojure-repl.js\": [\n\t\t112,\n\t\t28\n\t],\n\t\"./clojure.js\": [\n\t\t113,\n\t\t27\n\t],\n\t\"./cmake\": [\n\t\t114,\n\t\t29\n\t],\n\t\"./cmake.js\": [\n\t\t114,\n\t\t29\n\t],\n\t\"./coffeescript\": [\n\t\t115,\n\t\t30\n\t],\n\t\"./coffeescript.js\": [\n\t\t115,\n\t\t30\n\t],\n\t\"./coq\": [\n\t\t116,\n\t\t31\n\t],\n\t\"./coq.js\": [\n\t\t116,\n\t\t31\n\t],\n\t\"./cos\": [\n\t\t117,\n\t\t32\n\t],\n\t\"./cos.js\": [\n\t\t117,\n\t\t32\n\t],\n\t\"./cpp\": [\n\t\t118,\n\t\t33\n\t],\n\t\"./cpp.js\": [\n\t\t118,\n\t\t33\n\t],\n\t\"./crmsh\": [\n\t\t119,\n\t\t34\n\t],\n\t\"./crmsh.js\": [\n\t\t119,\n\t\t34\n\t],\n\t\"./crystal\": [\n\t\t120,\n\t\t35\n\t],\n\t\"./crystal.js\": [\n\t\t120,\n\t\t35\n\t],\n\t\"./cs\": [\n\t\t121,\n\t\t36\n\t],\n\t\"./cs.js\": [\n\t\t121,\n\t\t36\n\t],\n\t\"./csp\": [\n\t\t122,\n\t\t37\n\t],\n\t\"./csp.js\": [\n\t\t122,\n\t\t37\n\t],\n\t\"./css\": [\n\t\t123,\n\t\t38\n\t],\n\t\"./css.js\": [\n\t\t123,\n\t\t38\n\t],\n\t\"./d\": [\n\t\t124,\n\t\t39\n\t],\n\t\"./d.js\": [\n\t\t124,\n\t\t39\n\t],\n\t\"./dart\": [\n\t\t125,\n\t\t40\n\t],\n\t\"./dart.js\": [\n\t\t125,\n\t\t40\n\t],\n\t\"./delphi\": [\n\t\t126,\n\t\t41\n\t],\n\t\"./delphi.js\": [\n\t\t126,\n\t\t41\n\t],\n\t\"./diff\": [\n\t\t127,\n\t\t42\n\t],\n\t\"./diff.js\": [\n\t\t127,\n\t\t42\n\t],\n\t\"./django\": [\n\t\t128,\n\t\t43\n\t],\n\t\"./django.js\": [\n\t\t128,\n\t\t43\n\t],\n\t\"./dns\": [\n\t\t129,\n\t\t44\n\t],\n\t\"./dns.js\": [\n\t\t129,\n\t\t44\n\t],\n\t\"./dockerfile\": [\n\t\t130,\n\t\t45\n\t],\n\t\"./dockerfile.js\": [\n\t\t130,\n\t\t45\n\t],\n\t\"./dos\": [\n\t\t131,\n\t\t46\n\t],\n\t\"./dos.js\": [\n\t\t131,\n\t\t46\n\t],\n\t\"./dsconfig\": [\n\t\t132,\n\t\t47\n\t],\n\t\"./dsconfig.js\": [\n\t\t132,\n\t\t47\n\t],\n\t\"./dts\": [\n\t\t133,\n\t\t48\n\t],\n\t\"./dts.js\": [\n\t\t133,\n\t\t48\n\t],\n\t\"./dust\": [\n\t\t134,\n\t\t49\n\t],\n\t\"./dust.js\": [\n\t\t134,\n\t\t49\n\t],\n\t\"./ebnf\": [\n\t\t135,\n\t\t50\n\t],\n\t\"./ebnf.js\": [\n\t\t135,\n\t\t50\n\t],\n\t\"./elixir\": [\n\t\t136,\n\t\t51\n\t],\n\t\"./elixir.js\": [\n\t\t136,\n\t\t51\n\t],\n\t\"./elm\": [\n\t\t137,\n\t\t52\n\t],\n\t\"./elm.js\": [\n\t\t137,\n\t\t52\n\t],\n\t\"./erb\": [\n\t\t138,\n\t\t53\n\t],\n\t\"./erb.js\": [\n\t\t138,\n\t\t53\n\t],\n\t\"./erlang\": [\n\t\t140,\n\t\t54\n\t],\n\t\"./erlang-repl\": [\n\t\t139,\n\t\t55\n\t],\n\t\"./erlang-repl.js\": [\n\t\t139,\n\t\t55\n\t],\n\t\"./erlang.js\": [\n\t\t140,\n\t\t54\n\t],\n\t\"./excel\": [\n\t\t141,\n\t\t56\n\t],\n\t\"./excel.js\": [\n\t\t141,\n\t\t56\n\t],\n\t\"./fix\": [\n\t\t142,\n\t\t57\n\t],\n\t\"./fix.js\": [\n\t\t142,\n\t\t57\n\t],\n\t\"./flix\": [\n\t\t143,\n\t\t58\n\t],\n\t\"./flix.js\": [\n\t\t143,\n\t\t58\n\t],\n\t\"./fortran\": [\n\t\t144,\n\t\t59\n\t],\n\t\"./fortran.js\": [\n\t\t144,\n\t\t59\n\t],\n\t\"./fsharp\": [\n\t\t145,\n\t\t60\n\t],\n\t\"./fsharp.js\": [\n\t\t145,\n\t\t60\n\t],\n\t\"./gams\": [\n\t\t146,\n\t\t61\n\t],\n\t\"./gams.js\": [\n\t\t146,\n\t\t61\n\t],\n\t\"./gauss\": [\n\t\t147,\n\t\t62\n\t],\n\t\"./gauss.js\": [\n\t\t147,\n\t\t62\n\t],\n\t\"./gcode\": [\n\t\t148,\n\t\t63\n\t],\n\t\"./gcode.js\": [\n\t\t148,\n\t\t63\n\t],\n\t\"./gherkin\": [\n\t\t149,\n\t\t64\n\t],\n\t\"./gherkin.js\": [\n\t\t149,\n\t\t64\n\t],\n\t\"./glsl\": [\n\t\t150,\n\t\t65\n\t],\n\t\"./glsl.js\": [\n\t\t150,\n\t\t65\n\t],\n\t\"./gml\": [\n\t\t151,\n\t\t66\n\t],\n\t\"./gml.js\": [\n\t\t151,\n\t\t66\n\t],\n\t\"./go\": [\n\t\t152,\n\t\t67\n\t],\n\t\"./go.js\": [\n\t\t152,\n\t\t67\n\t],\n\t\"./golo\": [\n\t\t153,\n\t\t68\n\t],\n\t\"./golo.js\": [\n\t\t153,\n\t\t68\n\t],\n\t\"./gradle\": [\n\t\t154,\n\t\t69\n\t],\n\t\"./gradle.js\": [\n\t\t154,\n\t\t69\n\t],\n\t\"./groovy\": [\n\t\t155,\n\t\t70\n\t],\n\t\"./groovy.js\": [\n\t\t155,\n\t\t70\n\t],\n\t\"./haml\": [\n\t\t156,\n\t\t71\n\t],\n\t\"./haml.js\": [\n\t\t156,\n\t\t71\n\t],\n\t\"./handlebars\": [\n\t\t157,\n\t\t72\n\t],\n\t\"./handlebars.js\": [\n\t\t157,\n\t\t72\n\t],\n\t\"./haskell\": [\n\t\t158,\n\t\t73\n\t],\n\t\"./haskell.js\": [\n\t\t158,\n\t\t73\n\t],\n\t\"./haxe\": [\n\t\t159,\n\t\t74\n\t],\n\t\"./haxe.js\": [\n\t\t159,\n\t\t74\n\t],\n\t\"./hsp\": [\n\t\t160,\n\t\t75\n\t],\n\t\"./hsp.js\": [\n\t\t160,\n\t\t75\n\t],\n\t\"./htmlbars\": [\n\t\t161,\n\t\t76\n\t],\n\t\"./htmlbars.js\": [\n\t\t161,\n\t\t76\n\t],\n\t\"./http\": [\n\t\t162,\n\t\t77\n\t],\n\t\"./http.js\": [\n\t\t162,\n\t\t77\n\t],\n\t\"./hy\": [\n\t\t163,\n\t\t78\n\t],\n\t\"./hy.js\": [\n\t\t163,\n\t\t78\n\t],\n\t\"./inform7\": [\n\t\t164,\n\t\t79\n\t],\n\t\"./inform7.js\": [\n\t\t164,\n\t\t79\n\t],\n\t\"./ini\": [\n\t\t165,\n\t\t80\n\t],\n\t\"./ini.js\": [\n\t\t165,\n\t\t80\n\t],\n\t\"./irpf90\": [\n\t\t166,\n\t\t81\n\t],\n\t\"./irpf90.js\": [\n\t\t166,\n\t\t81\n\t],\n\t\"./isbl\": [\n\t\t167,\n\t\t82\n\t],\n\t\"./isbl.js\": [\n\t\t167,\n\t\t82\n\t],\n\t\"./java\": [\n\t\t168,\n\t\t83\n\t],\n\t\"./java.js\": [\n\t\t168,\n\t\t83\n\t],\n\t\"./javascript\": [\n\t\t169,\n\t\t84\n\t],\n\t\"./javascript.js\": [\n\t\t169,\n\t\t84\n\t],\n\t\"./jboss-cli\": [\n\t\t170,\n\t\t85\n\t],\n\t\"./jboss-cli.js\": [\n\t\t170,\n\t\t85\n\t],\n\t\"./json\": [\n\t\t171,\n\t\t86\n\t],\n\t\"./json.js\": [\n\t\t171,\n\t\t86\n\t],\n\t\"./julia\": [\n\t\t173,\n\t\t87\n\t],\n\t\"./julia-repl\": [\n\t\t172,\n\t\t88\n\t],\n\t\"./julia-repl.js\": [\n\t\t172,\n\t\t88\n\t],\n\t\"./julia.js\": [\n\t\t173,\n\t\t87\n\t],\n\t\"./kotlin\": [\n\t\t174,\n\t\t89\n\t],\n\t\"./kotlin.js\": [\n\t\t174,\n\t\t89\n\t],\n\t\"./lasso\": [\n\t\t175,\n\t\t90\n\t],\n\t\"./lasso.js\": [\n\t\t175,\n\t\t90\n\t],\n\t\"./ldif\": [\n\t\t176,\n\t\t91\n\t],\n\t\"./ldif.js\": [\n\t\t176,\n\t\t91\n\t],\n\t\"./leaf\": [\n\t\t177,\n\t\t92\n\t],\n\t\"./leaf.js\": [\n\t\t177,\n\t\t92\n\t],\n\t\"./less\": [\n\t\t178,\n\t\t93\n\t],\n\t\"./less.js\": [\n\t\t178,\n\t\t93\n\t],\n\t\"./lisp\": [\n\t\t179,\n\t\t94\n\t],\n\t\"./lisp.js\": [\n\t\t179,\n\t\t94\n\t],\n\t\"./livecodeserver\": [\n\t\t180,\n\t\t95\n\t],\n\t\"./livecodeserver.js\": [\n\t\t180,\n\t\t95\n\t],\n\t\"./livescript\": [\n\t\t181,\n\t\t96\n\t],\n\t\"./livescript.js\": [\n\t\t181,\n\t\t96\n\t],\n\t\"./llvm\": [\n\t\t182,\n\t\t97\n\t],\n\t\"./llvm.js\": [\n\t\t182,\n\t\t97\n\t],\n\t\"./lsl\": [\n\t\t183,\n\t\t98\n\t],\n\t\"./lsl.js\": [\n\t\t183,\n\t\t98\n\t],\n\t\"./lua\": [\n\t\t184,\n\t\t99\n\t],\n\t\"./lua.js\": [\n\t\t184,\n\t\t99\n\t],\n\t\"./makefile\": [\n\t\t185,\n\t\t100\n\t],\n\t\"./makefile.js\": [\n\t\t185,\n\t\t100\n\t],\n\t\"./markdown\": [\n\t\t186,\n\t\t101\n\t],\n\t\"./markdown.js\": [\n\t\t186,\n\t\t101\n\t],\n\t\"./mathematica\": [\n\t\t187,\n\t\t102\n\t],\n\t\"./mathematica.js\": [\n\t\t187,\n\t\t102\n\t],\n\t\"./matlab\": [\n\t\t188,\n\t\t103\n\t],\n\t\"./matlab.js\": [\n\t\t188,\n\t\t103\n\t],\n\t\"./maxima\": [\n\t\t189,\n\t\t104\n\t],\n\t\"./maxima.js\": [\n\t\t189,\n\t\t104\n\t],\n\t\"./mel\": [\n\t\t190,\n\t\t105\n\t],\n\t\"./mel.js\": [\n\t\t190,\n\t\t105\n\t],\n\t\"./mercury\": [\n\t\t191,\n\t\t106\n\t],\n\t\"./mercury.js\": [\n\t\t191,\n\t\t106\n\t],\n\t\"./mipsasm\": [\n\t\t192,\n\t\t107\n\t],\n\t\"./mipsasm.js\": [\n\t\t192,\n\t\t107\n\t],\n\t\"./mizar\": [\n\t\t193,\n\t\t108\n\t],\n\t\"./mizar.js\": [\n\t\t193,\n\t\t108\n\t],\n\t\"./mojolicious\": [\n\t\t194,\n\t\t109\n\t],\n\t\"./mojolicious.js\": [\n\t\t194,\n\t\t109\n\t],\n\t\"./monkey\": [\n\t\t195,\n\t\t110\n\t],\n\t\"./monkey.js\": [\n\t\t195,\n\t\t110\n\t],\n\t\"./moonscript\": [\n\t\t196,\n\t\t111\n\t],\n\t\"./moonscript.js\": [\n\t\t196,\n\t\t111\n\t],\n\t\"./n1ql\": [\n\t\t197,\n\t\t112\n\t],\n\t\"./n1ql.js\": [\n\t\t197,\n\t\t112\n\t],\n\t\"./nginx\": [\n\t\t198,\n\t\t113\n\t],\n\t\"./nginx.js\": [\n\t\t198,\n\t\t113\n\t],\n\t\"./nimrod\": [\n\t\t199,\n\t\t114\n\t],\n\t\"./nimrod.js\": [\n\t\t199,\n\t\t114\n\t],\n\t\"./nix\": [\n\t\t200,\n\t\t115\n\t],\n\t\"./nix.js\": [\n\t\t200,\n\t\t115\n\t],\n\t\"./nsis\": [\n\t\t201,\n\t\t116\n\t],\n\t\"./nsis.js\": [\n\t\t201,\n\t\t116\n\t],\n\t\"./objectivec\": [\n\t\t202,\n\t\t117\n\t],\n\t\"./objectivec.js\": [\n\t\t202,\n\t\t117\n\t],\n\t\"./ocaml\": [\n\t\t203,\n\t\t118\n\t],\n\t\"./ocaml.js\": [\n\t\t203,\n\t\t118\n\t],\n\t\"./openscad\": [\n\t\t204,\n\t\t119\n\t],\n\t\"./openscad.js\": [\n\t\t204,\n\t\t119\n\t],\n\t\"./oxygene\": [\n\t\t205,\n\t\t120\n\t],\n\t\"./oxygene.js\": [\n\t\t205,\n\t\t120\n\t],\n\t\"./parser3\": [\n\t\t206,\n\t\t121\n\t],\n\t\"./parser3.js\": [\n\t\t206,\n\t\t121\n\t],\n\t\"./perl\": [\n\t\t207,\n\t\t122\n\t],\n\t\"./perl.js\": [\n\t\t207,\n\t\t122\n\t],\n\t\"./pf\": [\n\t\t208,\n\t\t123\n\t],\n\t\"./pf.js\": [\n\t\t208,\n\t\t123\n\t],\n\t\"./pgsql\": [\n\t\t209,\n\t\t124\n\t],\n\t\"./pgsql.js\": [\n\t\t209,\n\t\t124\n\t],\n\t\"./php\": [\n\t\t210,\n\t\t125\n\t],\n\t\"./php.js\": [\n\t\t210,\n\t\t125\n\t],\n\t\"./plaintext\": [\n\t\t211,\n\t\t126\n\t],\n\t\"./plaintext.js\": [\n\t\t211,\n\t\t126\n\t],\n\t\"./pony\": [\n\t\t212,\n\t\t127\n\t],\n\t\"./pony.js\": [\n\t\t212,\n\t\t127\n\t],\n\t\"./powershell\": [\n\t\t213,\n\t\t128\n\t],\n\t\"./powershell.js\": [\n\t\t213,\n\t\t128\n\t],\n\t\"./processing\": [\n\t\t214,\n\t\t129\n\t],\n\t\"./processing.js\": [\n\t\t214,\n\t\t129\n\t],\n\t\"./profile\": [\n\t\t215,\n\t\t130\n\t],\n\t\"./profile.js\": [\n\t\t215,\n\t\t130\n\t],\n\t\"./prolog\": [\n\t\t216,\n\t\t131\n\t],\n\t\"./prolog.js\": [\n\t\t216,\n\t\t131\n\t],\n\t\"./properties\": [\n\t\t217,\n\t\t132\n\t],\n\t\"./properties.js\": [\n\t\t217,\n\t\t132\n\t],\n\t\"./protobuf\": [\n\t\t218,\n\t\t133\n\t],\n\t\"./protobuf.js\": [\n\t\t218,\n\t\t133\n\t],\n\t\"./puppet\": [\n\t\t219,\n\t\t134\n\t],\n\t\"./puppet.js\": [\n\t\t219,\n\t\t134\n\t],\n\t\"./purebasic\": [\n\t\t220,\n\t\t135\n\t],\n\t\"./purebasic.js\": [\n\t\t220,\n\t\t135\n\t],\n\t\"./python\": [\n\t\t221,\n\t\t136\n\t],\n\t\"./python.js\": [\n\t\t221,\n\t\t136\n\t],\n\t\"./q\": [\n\t\t222,\n\t\t137\n\t],\n\t\"./q.js\": [\n\t\t222,\n\t\t137\n\t],\n\t\"./qml\": [\n\t\t223,\n\t\t138\n\t],\n\t\"./qml.js\": [\n\t\t223,\n\t\t138\n\t],\n\t\"./r\": [\n\t\t224,\n\t\t139\n\t],\n\t\"./r.js\": [\n\t\t224,\n\t\t139\n\t],\n\t\"./reasonml\": [\n\t\t225,\n\t\t140\n\t],\n\t\"./reasonml.js\": [\n\t\t225,\n\t\t140\n\t],\n\t\"./rib\": [\n\t\t226,\n\t\t141\n\t],\n\t\"./rib.js\": [\n\t\t226,\n\t\t141\n\t],\n\t\"./roboconf\": [\n\t\t227,\n\t\t142\n\t],\n\t\"./roboconf.js\": [\n\t\t227,\n\t\t142\n\t],\n\t\"./routeros\": [\n\t\t228,\n\t\t143\n\t],\n\t\"./routeros.js\": [\n\t\t228,\n\t\t143\n\t],\n\t\"./rsl\": [\n\t\t229,\n\t\t144\n\t],\n\t\"./rsl.js\": [\n\t\t229,\n\t\t144\n\t],\n\t\"./ruby\": [\n\t\t230,\n\t\t145\n\t],\n\t\"./ruby.js\": [\n\t\t230,\n\t\t145\n\t],\n\t\"./ruleslanguage\": [\n\t\t231,\n\t\t146\n\t],\n\t\"./ruleslanguage.js\": [\n\t\t231,\n\t\t146\n\t],\n\t\"./rust\": [\n\t\t232,\n\t\t147\n\t],\n\t\"./rust.js\": [\n\t\t232,\n\t\t147\n\t],\n\t\"./sas\": [\n\t\t233,\n\t\t148\n\t],\n\t\"./sas.js\": [\n\t\t233,\n\t\t148\n\t],\n\t\"./scala\": [\n\t\t234,\n\t\t149\n\t],\n\t\"./scala.js\": [\n\t\t234,\n\t\t149\n\t],\n\t\"./scheme\": [\n\t\t235,\n\t\t150\n\t],\n\t\"./scheme.js\": [\n\t\t235,\n\t\t150\n\t],\n\t\"./scilab\": [\n\t\t236,\n\t\t151\n\t],\n\t\"./scilab.js\": [\n\t\t236,\n\t\t151\n\t],\n\t\"./scss\": [\n\t\t237,\n\t\t152\n\t],\n\t\"./scss.js\": [\n\t\t237,\n\t\t152\n\t],\n\t\"./shell\": [\n\t\t238,\n\t\t153\n\t],\n\t\"./shell.js\": [\n\t\t238,\n\t\t153\n\t],\n\t\"./smali\": [\n\t\t239,\n\t\t154\n\t],\n\t\"./smali.js\": [\n\t\t239,\n\t\t154\n\t],\n\t\"./smalltalk\": [\n\t\t240,\n\t\t155\n\t],\n\t\"./smalltalk.js\": [\n\t\t240,\n\t\t155\n\t],\n\t\"./sml\": [\n\t\t241,\n\t\t156\n\t],\n\t\"./sml.js\": [\n\t\t241,\n\t\t156\n\t],\n\t\"./sqf\": [\n\t\t242,\n\t\t157\n\t],\n\t\"./sqf.js\": [\n\t\t242,\n\t\t157\n\t],\n\t\"./sql\": [\n\t\t243,\n\t\t158\n\t],\n\t\"./sql.js\": [\n\t\t243,\n\t\t158\n\t],\n\t\"./stan\": [\n\t\t244,\n\t\t159\n\t],\n\t\"./stan.js\": [\n\t\t244,\n\t\t159\n\t],\n\t\"./stata\": [\n\t\t245,\n\t\t160\n\t],\n\t\"./stata.js\": [\n\t\t245,\n\t\t160\n\t],\n\t\"./step21\": [\n\t\t246,\n\t\t161\n\t],\n\t\"./step21.js\": [\n\t\t246,\n\t\t161\n\t],\n\t\"./stylus\": [\n\t\t247,\n\t\t162\n\t],\n\t\"./stylus.js\": [\n\t\t247,\n\t\t162\n\t],\n\t\"./subunit\": [\n\t\t248,\n\t\t163\n\t],\n\t\"./subunit.js\": [\n\t\t248,\n\t\t163\n\t],\n\t\"./swift\": [\n\t\t249,\n\t\t164\n\t],\n\t\"./swift.js\": [\n\t\t249,\n\t\t164\n\t],\n\t\"./taggerscript\": [\n\t\t250,\n\t\t165\n\t],\n\t\"./taggerscript.js\": [\n\t\t250,\n\t\t165\n\t],\n\t\"./tap\": [\n\t\t251,\n\t\t166\n\t],\n\t\"./tap.js\": [\n\t\t251,\n\t\t166\n\t],\n\t\"./tcl\": [\n\t\t252,\n\t\t167\n\t],\n\t\"./tcl.js\": [\n\t\t252,\n\t\t167\n\t],\n\t\"./tex\": [\n\t\t253,\n\t\t168\n\t],\n\t\"./tex.js\": [\n\t\t253,\n\t\t168\n\t],\n\t\"./thrift\": [\n\t\t254,\n\t\t169\n\t],\n\t\"./thrift.js\": [\n\t\t254,\n\t\t169\n\t],\n\t\"./tp\": [\n\t\t255,\n\t\t170\n\t],\n\t\"./tp.js\": [\n\t\t255,\n\t\t170\n\t],\n\t\"./twig\": [\n\t\t256,\n\t\t171\n\t],\n\t\"./twig.js\": [\n\t\t256,\n\t\t171\n\t],\n\t\"./typescript\": [\n\t\t257,\n\t\t172\n\t],\n\t\"./typescript.js\": [\n\t\t257,\n\t\t172\n\t],\n\t\"./vala\": [\n\t\t258,\n\t\t173\n\t],\n\t\"./vala.js\": [\n\t\t258,\n\t\t173\n\t],\n\t\"./vbnet\": [\n\t\t259,\n\t\t174\n\t],\n\t\"./vbnet.js\": [\n\t\t259,\n\t\t174\n\t],\n\t\"./vbscript\": [\n\t\t261,\n\t\t175\n\t],\n\t\"./vbscript-html\": [\n\t\t260,\n\t\t176\n\t],\n\t\"./vbscript-html.js\": [\n\t\t260,\n\t\t176\n\t],\n\t\"./vbscript.js\": [\n\t\t261,\n\t\t175\n\t],\n\t\"./verilog\": [\n\t\t262,\n\t\t177\n\t],\n\t\"./verilog.js\": [\n\t\t262,\n\t\t177\n\t],\n\t\"./vhdl\": [\n\t\t263,\n\t\t178\n\t],\n\t\"./vhdl.js\": [\n\t\t263,\n\t\t178\n\t],\n\t\"./vim\": [\n\t\t264,\n\t\t179\n\t],\n\t\"./vim.js\": [\n\t\t264,\n\t\t179\n\t],\n\t\"./x86asm\": [\n\t\t265,\n\t\t180\n\t],\n\t\"./x86asm.js\": [\n\t\t265,\n\t\t180\n\t],\n\t\"./xl\": [\n\t\t266,\n\t\t181\n\t],\n\t\"./xl.js\": [\n\t\t266,\n\t\t181\n\t],\n\t\"./xml\": [\n\t\t267,\n\t\t182\n\t],\n\t\"./xml.js\": [\n\t\t267,\n\t\t182\n\t],\n\t\"./xquery\": [\n\t\t268,\n\t\t183\n\t],\n\t\"./xquery.js\": [\n\t\t268,\n\t\t183\n\t],\n\t\"./yaml\": [\n\t\t269,\n\t\t184\n\t],\n\t\"./yaml.js\": [\n\t\t269,\n\t\t184\n\t],\n\t\"./zephir\": [\n\t\t270,\n\t\t185\n\t],\n\t\"./zephir.js\": [\n\t\t270,\n\t\t185\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn __webpack_require__.e(ids[1]).then(function() {\n\t\treturn __webpack_require__.t(id, 7);\n\t});\n}\nwebpackAsyncContext.keys = function webpackAsyncContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackAsyncContext.id = 341;\nmodule.exports = webpackAsyncContext;","import mod from \"-!../../node_modules/vue-style-loader/index.js!../../node_modules/css-loader/dist/cjs.js!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/sass-loader/lib/loader.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EditorWrapper.vue?vue&type=style&index=0&id=8aaec4a6&scoped=true&lang=scss&\"; export default mod; export * from \"-!../../node_modules/vue-style-loader/index.js!../../node_modules/css-loader/dist/cjs.js!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/sass-loader/lib/loader.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EditorWrapper.vue?vue&type=style&index=0&id=8aaec4a6&scoped=true&lang=scss&\"","exports = module.exports = require(\"../../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \"#editor-container[data-v-8aaec4a6] {\\n display: block;\\n width: 100vw;\\n max-width: 100%;\\n height: calc(100% - 50px);\\n top: 50px;\\n left: 0;\\n margin: 0 auto;\\n position: relative;\\n background-color: var(--color-main-background);\\n}\\n#editor-wrapper[data-v-8aaec4a6] {\\n display: flex;\\n width: 100%;\\n height: 100%;\\n overflow: hidden;\\n position: absolute;\\n}\\n#editor-wrapper .ProseMirror[data-v-8aaec4a6] {\\n margin-top: 0 !important;\\n}\\n#editor-wrapper.icon-loading #editor[data-v-8aaec4a6] {\\n opacity: 0.3;\\n}\\n#editor[data-v-8aaec4a6], .editor[data-v-8aaec4a6] {\\n background: var(--color-main-background);\\n color: var(--color-main-text);\\n background-clip: padding-box;\\n border-radius: var(--border-radius);\\n padding: 0;\\n position: relative;\\n overflow-y: auto;\\n overflow-x: hidden;\\n width: 100%;\\n}\\n.msg.icon-error[data-v-8aaec4a6] {\\n padding: 12px;\\n border-bottom: 1px solid var(--color-error);\\n padding-left: 30px;\\n background-position: 8px center;\\n}\\n.save-status[data-v-8aaec4a6] {\\n padding: 9px;\\n text-overflow: ellipsis;\\n color: var(--color-text-lighter);\\n}\\n.save-status.error[data-v-8aaec4a6] {\\n background-color: var(--color-error);\\n color: var(--color-main-background);\\n border-radius: 3px;\\n}\\n#editor-container #editor-wrapper.has-conflicts[data-v-8aaec4a6] {\\n height: calc(100% - 50px);\\n}\\n#editor-container #editor-wrapper.has-conflicts #editor[data-v-8aaec4a6], #editor-container #editor-wrapper.has-conflicts #read-only-editor[data-v-8aaec4a6] {\\n width: 50%;\\n height: 100%;\\n}\\n#editor-session-list[data-v-8aaec4a6] {\\n padding: 9px;\\n padding-right: 16px;\\n display: flex;\\n}\\n#editor-session-list input[data-v-8aaec4a6], #editor-session-list div[data-v-8aaec4a6] {\\n vertical-align: middle;\\n margin-left: 3px;\\n}\\n.editor__content[data-v-8aaec4a6] {\\n max-width: 670px;\\n margin: auto;\\n}\\n#body-public[data-v-8aaec4a6] {\\n height: auto;\\n}\\n#files-public-content[data-v-8aaec4a6] {\\n height: auto;\\n}\\n#files-public-content #editor-wrapper[data-v-8aaec4a6] {\\n position: relative;\\n}\\n#files-public-content #editor-container[data-v-8aaec4a6] {\\n top: 0;\\n width: 100%;\\n}\\n#files-public-content #editor-container #editor[data-v-8aaec4a6] .menubar {\\n position: fixed;\\n top: 50px;\\n width: 100%;\\n}\\n#files-public-content #editor-container #editor[data-v-8aaec4a6] {\\n padding-top: 50px;\\n overflow: auto;\\n}\\n#files-public-content #editor-container .has-conflicts #editor[data-v-8aaec4a6] {\\n padding-top: 0px;\\n}\\n.ie #editor[data-v-8aaec4a6] .menubar {\\n position: fixed;\\n top: 50px;\\n width: 100%;\\n}\\n.ie .editor__content[data-v-8aaec4a6] .ProseMirror {\\n padding-top: 50px;\\n}\\n\", \"\"]);\n","import mod from \"-!../../node_modules/vue-style-loader/index.js!../../node_modules/css-loader/dist/cjs.js!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/sass-loader/lib/loader.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EditorWrapper.vue?vue&type=style&index=1&lang=scss&\"; export default mod; export * from \"-!../../node_modules/vue-style-loader/index.js!../../node_modules/css-loader/dist/cjs.js!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/sass-loader/lib/loader.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EditorWrapper.vue?vue&type=style&index=1&lang=scss&\"","exports = module.exports = require(\"../../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \".modal-container #editor-container {\\n position: absolute;\\n}\\n.ProseMirror-hideselection *::selection {\\n background: transparent;\\n}\\n.ProseMirror-hideselection *::-moz-selection {\\n background: transparent;\\n}\\n.ProseMirror-hideselection {\\n caret-color: transparent;\\n}\\n.ProseMirror-selectednode {\\n outline: 2px solid #8cf;\\n}\\n\\n/* Make sure li selections wrap around markers */\\nli.ProseMirror-selectednode {\\n outline: none;\\n}\\nli.ProseMirror-selectednode:after {\\n content: \\\"\\\";\\n position: absolute;\\n left: -32px;\\n right: -2px;\\n top: -2px;\\n bottom: -2px;\\n border: 2px solid #8cf;\\n pointer-events: none;\\n}\\n.has-conflicts .ProseMirror-menubar,\\n#editor-wrapper.icon-loading .ProseMirror-menubar {\\n display: none;\\n}\\n.ProseMirror-gapcursor {\\n display: none;\\n pointer-events: none;\\n position: absolute;\\n}\\n.ProseMirror-gapcursor:after {\\n content: \\\"\\\";\\n display: block;\\n position: absolute;\\n top: -2px;\\n width: 20px;\\n border-top: 1px solid var(--color-main-text);\\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\\n}\\n@keyframes ProseMirror-cursor-blink {\\nto {\\n visibility: hidden;\\n}\\n}\\ndiv[contenteditable=true],\\ndiv[contenteditable=false] {\\n border: none !important;\\n width: 100%;\\n background-color: transparent;\\n color: var(--color-main-text);\\n opacity: 1;\\n -webkit-user-select: text;\\n user-select: text;\\n}\\n\\n/* Document rendering styles */\\n#editor-wrapper .ProseMirror {\\n margin-top: 44px;\\n height: 100%;\\n position: relative;\\n word-wrap: break-word;\\n white-space: pre-wrap;\\n -webkit-font-variant-ligatures: none;\\n font-variant-ligatures: none;\\n padding: 4px 8px 200px 14px;\\n line-height: 150%;\\n font-size: 14px;\\n outline: none;\\n}\\n#editor-wrapper .ProseMirror p:first-child,\\n #editor-wrapper .ProseMirror h1:first-child,\\n #editor-wrapper .ProseMirror h2:first-child,\\n #editor-wrapper .ProseMirror h3:first-child,\\n #editor-wrapper .ProseMirror h4:first-child,\\n #editor-wrapper .ProseMirror h5:first-child,\\n #editor-wrapper .ProseMirror h6:first-child {\\n margin-top: 10px;\\n}\\n#editor-wrapper .ProseMirror a {\\n color: var(--color-primary);\\n text-decoration: underline;\\n padding: .5em 0;\\n}\\n#editor-wrapper .ProseMirror p {\\n margin-bottom: 1em;\\n line-height: 150%;\\n}\\n#editor-wrapper .ProseMirror em {\\n font-style: italic;\\n}\\n#editor-wrapper .ProseMirror h1 {\\n font-size: 36px;\\n}\\n#editor-wrapper .ProseMirror h2 {\\n font-size: 28px;\\n}\\n#editor-wrapper .ProseMirror h3 {\\n font-size: 24px;\\n}\\n#editor-wrapper .ProseMirror h4 {\\n font-size: 21px;\\n}\\n#editor-wrapper .ProseMirror h5 {\\n font-size: 17px;\\n}\\n#editor-wrapper .ProseMirror h6 {\\n font-size: 14px;\\n}\\n#editor-wrapper .ProseMirror h1,\\n #editor-wrapper .ProseMirror h2,\\n #editor-wrapper .ProseMirror h3,\\n #editor-wrapper .ProseMirror h4,\\n #editor-wrapper .ProseMirror h5,\\n #editor-wrapper .ProseMirror h6 {\\n font-weight: 600;\\n line-height: 120%;\\n margin-top: 24px;\\n margin-bottom: 12px;\\n color: var(--color-main-text);\\n}\\n#editor-wrapper .ProseMirror img {\\n cursor: default;\\n max-width: 100%;\\n}\\n#editor-wrapper .ProseMirror hr {\\n padding: 2px 0;\\n border: none;\\n margin: 1em 0;\\n width: 100%;\\n}\\n#editor-wrapper .ProseMirror hr:after {\\n content: \\\"\\\";\\n display: block;\\n height: 1px;\\n background-color: var(--color-border-dark);\\n line-height: 2px;\\n}\\n#editor-wrapper .ProseMirror pre {\\n white-space: pre-wrap;\\n background-color: var(--color-background-dark);\\n border-radius: var(--border-radius);\\n padding: 1em 1.3em;\\n margin-bottom: 1em;\\n}\\n#editor-wrapper .ProseMirror p code {\\n background-color: var(--color-background-dark);\\n border-radius: var(--border-radius);\\n padding: .1em .3em;\\n}\\n#editor-wrapper .ProseMirror li {\\n position: relative;\\n}\\n#editor-wrapper .ProseMirror ul, #editor-wrapper .ProseMirror ol {\\n padding-left: 14px;\\n}\\n#editor-wrapper .ProseMirror ul li {\\n list-style-type: disc;\\n}\\n#editor-wrapper .ProseMirror blockquote {\\n padding-left: 1em;\\n border-left: 4px solid var(--color-primary);\\n color: var(--color-text-maxcontrast);\\n margin-left: 0;\\n margin-right: 0;\\n}\\n.ProseMirror-focused .ProseMirror-gapcursor {\\n display: block;\\n}\\n#editor-wrapper:not(.richEditor) .ProseMirror pre {\\n background-color: var(--color-main-background);\\n}\\n#editor-wrapper:not(.richEditor) .ProseMirror pre::before {\\n content: attr(data-language);\\n text-transform: uppercase;\\n display: block;\\n text-align: right;\\n font-weight: bold;\\n font-size: 0.6rem;\\n}\\n#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-comment,\\n #editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-quote {\\n color: #999999;\\n}\\n#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-variable,\\n #editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-template-variable,\\n #editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-attribute,\\n #editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-tag,\\n #editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-name,\\n #editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-regexp,\\n #editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-link,\\n #editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-name,\\n #editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-selector-id,\\n #editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-selector-class {\\n color: #f2777a;\\n}\\n#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-number,\\n #editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-meta,\\n #editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-built_in,\\n #editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-builtin-name,\\n #editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-literal,\\n #editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-type,\\n #editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-params {\\n color: #f99157;\\n}\\n#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-string,\\n #editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-symbol,\\n #editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-bullet {\\n color: #99cc99;\\n}\\n#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-title,\\n #editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-section {\\n color: #ffcc66;\\n}\\n#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-keyword,\\n #editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-selector-tag {\\n color: #6699cc;\\n}\\n#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-emphasis {\\n font-style: italic;\\n}\\n#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-strong {\\n font-weight: 700;\\n}\\n\", \"\"]);\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"editor-container\"}},[(_vm.currentSession && _vm.active)?_c('div',[(_vm.hasSyncCollission)?_c('p',{staticClass:\"msg icon-error\"},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.t('text', 'The document has been changed outside of the editor. The changes cannot be applied.'))+\"\\n\\t\\t\")]):_vm._e()]):_vm._e(),_vm._v(\" \"),(_vm.currentSession && _vm.active)?_c('div',{class:{'has-conflicts': _vm.hasSyncCollission, 'icon-loading': !_vm.initialLoading, 'richEditor': _vm.isRichEditor},attrs:{\"id\":\"editor-wrapper\"}},[_c('div',{attrs:{\"id\":\"editor\"}},[(!_vm.syncError && !_vm.readOnly)?_c('menu-bar',{ref:\"menubar\",attrs:{\"editor\":_vm.tiptap,\"is-rich-editor\":_vm.isRichEditor}},[(_vm.currentSession && _vm.active)?_c('div',{attrs:{\"id\":\"editor-session-list\"}},[_c('div',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.lastSavedStatusTooltip),expression:\"lastSavedStatusTooltip\"}],staticClass:\"save-status\",class:_vm.lastSavedStatusClass},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.lastSavedStatus)+\"\\n\\t\\t\\t\\t\\t\")]),_vm._v(\" \"),_c('session-list',{attrs:{\"sessions\":_vm.filteredSessions}},[(_vm.isPublic && _vm.currentSession.guestName)?_c('guest-name-dialog',{attrs:{\"sync-service\":_vm.syncService}}):_vm._e()],1)],1):_vm._e()]):_vm._e(),_vm._v(\" \"),(!_vm.readOnly && _vm.isRichEditor)?_c('menu-bubble',{attrs:{\"editor\":_vm.tiptap}}):_vm._e(),_vm._v(\" \"),_c('editor-content',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.initialLoading),expression:\"initialLoading\"}],staticClass:\"editor__content\",attrs:{\"editor\":_vm.tiptap}})],1),_vm._v(\" \"),(_vm.hasSyncCollission)?_c('read-only-editor',{attrs:{\"content\":_vm.syncError.data.outsideChange,\"is-rich-editor\":_vm.isRichEditor}}):_vm._e()],1):_vm._e(),_vm._v(\" \"),(_vm.hasSyncCollission && !_vm.readOnly)?_c('collision-resolve-dialog',{on:{\"resolveUseThisVersion\":_vm.resolveUseThisVersion,\"resolveUseServerVersion\":_vm.resolveUseServerVersion}}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/*\n * @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>\n *\n * @author Julius Härtl <jus@bitgrid.net>\n *\n * @license GNU AGPL version 3 or any later version\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nimport axios from 'nextcloud-axios'\nimport { endpointUrl } from '../helpers'\nimport { ERROR_TYPE } from './SyncService'\nimport { sendableSteps } from 'prosemirror-collab'\n\n/**\n * Minimum inverval to refetch the document changes\n * @type {number}\n */\nconst FETCH_INTERVAL = 300\n\n/**\n * Maximum interval between refetches of document state if multiple users have joined\n * @type {number}\n */\nconst FETCH_INTERVAL_MAX = 5000\n\n/**\n * Interval to check for changes when there is only one user joined\n * @type {number}\n */\nconst FETCH_INTERVAL_SINGLE_EDITOR = 5000\n\nconst MIN_PUSH_RETRY = 500\nconst MAX_PUSH_RETRY = 10000\n\n/* Timeout after that a PUSH_FAILURE error is emitted */\nconst WARNING_PUSH_RETRY = 5000\n\n/* Timeout for sessions to be marked as disconnected */\nconst COLLABORATOR_DISCONNECT_TIME = 20\n\nclass PollingBackend {\n\n\tconstructor(authority) {\n\t\t/** @type SyncService */\n\t\tthis._authority = authority\n\t\tthis.fetchInterval = FETCH_INTERVAL\n\t\tthis.retryTime = MIN_PUSH_RETRY\n\t\tthis.lock = false\n\t}\n\n\tconnect() {\n\t\tthis.fetcher = setInterval(this._fetchSteps.bind(this), this.fetchInterval)\n\t}\n\n\t_isPublic() {\n\t\treturn !!this._authority.options.shareToken\n\t}\n\n\tforceSave() {\n\t\tthis._forcedSave = true\n\t\tthis.fetchSteps()\n\t}\n\n\tsave() {\n\t\tthis._manualSave = true\n\t\tthis.fetchSteps()\n\t}\n\n\tfetchSteps() {\n\t\tthis._fetchSteps()\n\t}\n\n\t/**\n\t * This method is only called though the timer\n\t */\n\t_fetchSteps() {\n\t\tif (this.lock || !this.fetcher) {\n\t\t\treturn\n\t\t}\n\t\tthis.lock = true\n\t\tlet autosaveContent\n\t\tif (this._forcedSave || this._manualSave\n\t\t\t|| (!sendableSteps(this._authority.state)\n\t\t\t&& (this._authority._getVersion() !== this._authority.document.lastSavedVersion))\n\t\t) {\n\t\t\tautosaveContent = this._authority._getContent()\n\t\t}\n\t\taxios.post(endpointUrl('session/sync', this._isPublic()), {\n\t\t\tdocumentId: this._authority.document.id,\n\t\t\tsessionId: this._authority.session.id,\n\t\t\tsessionToken: this._authority.session.token,\n\t\t\tversion: this._authority.steps.length,\n\t\t\tautosaveContent,\n\t\t\tforce: !!this._forcedSave,\n\t\t\tmanualSave: !!this._manualSave,\n\t\t\ttoken: this._authority.options.shareToken,\n\t\t\tfilePath: this._authority.options.filePath\n\t\t}).then((response) => {\n\t\t\tif (this._authority.document.lastSavedVersion < response.data.document.lastSavedVersion) {\n\t\t\t\tconsole.debug('Saved document', response.data.document)\n\t\t\t}\n\n\t\t\tthis._authority.emit('change', { document: response.data.document, sessions: response.data.sessions })\n\t\t\tthis._authority.document = response.data.document\n\t\t\tthis._authority.sessions = response.data.sessions\n\n\t\t\tif (response.data.steps.length === 0) {\n\t\t\t\tthis.lock = false\n\t\t\t\tif (response.data.sessions.filter((session) => session.lastContact > Date.now() / 1000 - COLLABORATOR_DISCONNECT_TIME).length < 2) {\n\t\t\t\t\tthis.maximumRefetchTimer()\n\t\t\t\t} else {\n\t\t\t\t\tthis.increaseRefetchTimer()\n\t\t\t\t}\n\t\t\t\tthis._authority.emit('stateChange', { dirty: false })\n\t\t\t\tthis._authority.emit('stateChange', { initialLoading: true })\n\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tthis._authority._receiveSteps(response.data)\n\t\t\tthis.lock = false\n\t\t\tthis._forcedSave = false\n\t\t\tthis.resetRefetchTimer()\n\t\t}).catch((e) => {\n\t\t\tthis.lock = false\n\t\t\tif (!e.response) {\n\t\t\t\tthrow e\n\t\t\t}\n\t\t\t// Only emit conflict event if we have synced until the latest version\n\t\t\tif (e.response.status === 409 && e.response.data.document.currentVersion === this._authority.document.currentVersion) {\n\t\t\t\tconsole.error('Conflict during file save, please resolve')\n\t\t\t\tthis._authority.emit('error', ERROR_TYPE.SAVE_COLLISSION, {\n\t\t\t\t\toutsideChange: e.response.data.outsideChange\n\t\t\t\t})\n\t\t\t} else if (e.response.status === 403) {\n\t\t\t\tthis._authority.emit('error', ERROR_TYPE.CONNECTION_FAILED, {})\n\t\t\t} else {\n\t\t\t\tconsole.error('Failed to fetch steps due to other reason', e)\n\t\t\t}\n\t\t})\n\t\tthis._manualSave = false\n\t\tthis._forcedSave = false\n\t}\n\n\tsendSteps(_sendable) {\n\t\tthis._authority.emit('stateChange', { dirty: true })\n\t\tif (this.lock) {\n\t\t\tsetTimeout(() => {\n\t\t\t\tthis._authority.sendSteps(_sendable)\n\t\t\t}, 100)\n\t\t\treturn\n\t\t}\n\t\tthis.lock = true\n\t\tlet sendable = (typeof _sendable === 'function') ? _sendable() : _sendable\n\t\tlet steps = sendable.steps\n\t\taxios.post(endpointUrl('session/push', !!this._authority.options.shareToken), {\n\t\t\tdocumentId: this._authority.document.id,\n\t\t\tsessionId: this._authority.session.id,\n\t\t\tsessionToken: this._authority.session.token,\n\t\t\tsteps: steps.map(s => s.toJSON ? s.toJSON() : s) || [],\n\t\t\tversion: sendable.version,\n\t\t\ttoken: this._authority.options.shareToken,\n\t\t\tfilePath: this._authority.options.filePath\n\t\t}).then((response) => {\n\t\t\tthis.carefulRetryReset()\n\t\t\tthis.lock = false\n\t\t\tthis.fetchSteps()\n\t\t}).catch((e) => {\n\t\t\tconsole.error('failed to apply steps due to collission, retrying')\n\t\t\tthis.lock = false\n\t\t\tif (!e.response) {\n\t\t\t\tthrow e\n\t\t\t}\n\t\t\t// Only emit conflict event if we have synced until the latest version\n\t\t\tif (e.response.status === 403 && e.response.data.document.currentVersion === this._authority.document.currentVersion) {\n\t\t\t\tthis._authority.emit('error', ERROR_TYPE.PUSH_FAILURE, {})\n\t\t\t\tOC.Notification.showTemporary('Changes could not be sent yet')\n\t\t\t}\n\n\t\t\tthis.fetchSteps()\n\t\t\tthis.carefulRetry()\n\t\t})\n\t}\n\n\tdisconnect() {\n\t\tclearInterval(this.fetcher)\n\t\tthis.fetcher = 0\n\t}\n\n\tresetRefetchTimer() {\n\t\tif (this.fetcher === 0) {\n\t\t\treturn\n\t\t}\n\t\tthis.fetchInverval = FETCH_INTERVAL\n\t\tclearInterval(this.fetcher)\n\t\tthis.fetcher = setInterval(this._fetchSteps.bind(this), this.fetchInverval)\n\n\t}\n\n\tincreaseRefetchTimer() {\n\t\tif (this.fetcher === 0) {\n\t\t\treturn\n\t\t}\n\t\tthis.fetchInverval = Math.min(this.fetchInverval * 2, FETCH_INTERVAL_MAX)\n\t\tclearInterval(this.fetcher)\n\t\tthis.fetcher = setInterval(this._fetchSteps.bind(this), this.fetchInverval)\n\t}\n\n\tmaximumRefetchTimer() {\n\t\tif (this.fetcher === 0) {\n\t\t\treturn\n\t\t}\n\t\tthis.fetchInverval = FETCH_INTERVAL_SINGLE_EDITOR\n\t\tclearInterval(this.fetcher)\n\t\tthis.fetcher = setInterval(this._fetchSteps.bind(this), this.fetchInverval)\n\t}\n\n\tcarefulRetry() {\n\t\tlet newRetry = this.retryTime ? Math.min(this.retryTime * 2, MAX_PUSH_RETRY) : MIN_PUSH_RETRY\n\t\tif (newRetry > WARNING_PUSH_RETRY && this.retryTime < WARNING_PUSH_RETRY) {\n\t\t\tOC.Notification.showTemporary('Changes could not be sent yet')\n\t\t\tthis._authority.emit('error', ERROR_TYPE.PUSH_FAILURE, {})\n\t\t}\n\t\tthis.retryTime = newRetry\n\t}\n\n\tcarefulRetryReset() {\n\t\tthis.retryTime = MIN_PUSH_RETRY\n\t}\n\n}\n\nexport default PollingBackend\n","/*\n * @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>\n *\n * @author Julius Härtl <jus@bitgrid.net>\n *\n * @license GNU AGPL version 3 or any later version\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nimport axios from 'nextcloud-axios'\n\nimport PollingBackend from './PollingBackend'\nimport { endpointUrl } from './../helpers'\nimport { getVersion, sendableSteps } from 'prosemirror-collab'\n\nconst defaultOptions = {\n\tshareToken: null,\n\tforceRecreate: false,\n\tserialize: (document) => document\n}\n\nconst ERROR_TYPE = {\n\t/**\n\t * Failed to save collaborative document due to external change\n\t * collission needs to be resolved manually\n\t */\n\tSAVE_COLLISSION: 0,\n\t/**\n\t * Failed to push changes for MAX_REBASE_RETRY times\n\t */\n\tPUSH_FAILURE: 1,\n\n\tLOAD_ERROR: 2,\n\n\tCONNECTION_FAILED: 3,\n\n\tSOURCE_NOT_FOUND: 4\n}\n\nclass SyncService {\n\n\tconstructor(options) {\n\t\tthis.eventHandlers = {\n\t\t\t/* Document state */\n\t\t\topened: [],\n\t\t\tloaded: [],\n\t\t\t/* All initial steps fetched */\n\t\t\tfetched: [],\n\t\t\t/* received new steps */\n\t\t\tsync: [],\n\t\t\t/* state changed (dirty) */\n\t\t\tstateChange: [],\n\t\t\t/* error */\n\t\t\terror: [],\n\t\t\t/* Events for session and document meta data */\n\t\t\tchange: []\n\t\t}\n\n\t\tthis.backend = new PollingBackend(this)\n\t\tthis.on('loaded', () => {\n\t\t\tthis.backend.connect()\n\t\t})\n\n\t\tthis.options = Object.assign({}, defaultOptions, options)\n\n\t\tthis.document = null\n\t\tthis.session = null\n\t\tthis.sessions = []\n\n\t\tthis.steps = []\n\t\tthis.stepClientIDs = []\n\n\t\treturn this\n\t}\n\n\topen({ fileId, filePath }) {\n\t\treturn this._openDocument({ fileId, filePath }).then(() => {\n\t\t\tthis.emit('opened', {\n\t\t\t\tdocument: this.document,\n\t\t\t\tsession: this.session\n\t\t\t})\n\t\t\treturn this._fetchDocument().then(({ data }) => {\n\t\t\t\tthis.emit('loaded', {\n\t\t\t\t\tdocument: this.document,\n\t\t\t\t\tsession: this.session,\n\t\t\t\t\tdocumentSource: '' + data\n\t\t\t\t})\n\t\t\t})\n\t\t}).catch((error) => {\n\t\t\tif (!error.response) {\n\t\t\t\tthrow error\n\t\t\t}\n\t\t\tconsole.error(error.response)\n\t\t\tthis.emit('error', ERROR_TYPE.LOAD_ERROR, error.response.status)\n\t\t\treturn Promise.reject(error)\n\t\t})\n\t}\n\n\t_openDocument({ fileId, filePath }) {\n\t\treturn axios.get(endpointUrl('session/create', !!this.options.shareToken), {\n\t\t\tparams: {\n\t\t\t\tfileId: fileId,\n\t\t\t\tfilePath,\n\t\t\t\ttoken: this.options.shareToken,\n\t\t\t\tguestName: this.options.guestName,\n\t\t\t\tforceRecreate: this.options.forceRecreate\n\t\t\t}\n\t\t}).then((response) => {\n\t\t\tthis.document = response.data.document\n\t\t\tthis.document.readOnly = response.data.readOnly\n\t\t\tthis.session = response.data.session\n\t\t\treturn response.data\n\t\t})\n\t}\n\n\t_fetchDocument() {\n\t\treturn axios.get(\n\t\t\tendpointUrl('session/fetch', !!this.options.shareToken), {\n\t\t\t\tparams: {\n\t\t\t\t\tdocumentId: this.document.id,\n\t\t\t\t\tsessionId: this.session.id,\n\t\t\t\t\tsessionToken: this.session.token,\n\t\t\t\t\ttoken: this.options.shareToken\n\t\t\t\t}\n\t\t\t}\n\t\t)\n\t}\n\n\tupdateSession(guestName) {\n\t\tif (!this.isPublic()) {\n\t\t\treturn\n\t\t}\n\t\treturn axios.post(\n\t\t\tendpointUrl('session', !!this.options.shareToken), {\n\t\t\t\tdocumentId: this.document.id,\n\t\t\t\tsessionId: this.session.id,\n\t\t\t\tsessionToken: this.session.token,\n\t\t\t\ttoken: this.options.shareToken,\n\t\t\t\tguestName\n\t\t\t}\n\t\t).then(({ data }) => {\n\t\t\tthis.session = data\n\t\t\treturn data\n\t\t}).catch((error) => {\n\t\t\tconsole.error('Failed to update the session', error)\n\t\t\treturn Promise.reject(error)\n\t\t})\n\t}\n\n\tsendSteps(_sendable) {\n\t\tlet sendable = _sendable || sendableSteps(this.state)\n\t\tif (!sendable) {\n\t\t\treturn\n\t\t}\n\t\treturn this.backend.sendSteps(sendable)\n\t}\n\n\tstepsSince(version) {\n\t\treturn {\n\t\t\tsteps: this.steps.slice(version),\n\t\t\tclientIDs: this.stepClientIDs.slice(version)\n\t\t}\n\t}\n\n\t_receiveSteps({ steps, document }) {\n\t\tlet newSteps = []\n\t\tfor (let i = 0; i < steps.length; i++) {\n\t\t\tlet singleSteps = steps[i].data\n\t\t\tif (!Array.isArray(singleSteps)) {\n\t\t\t\tconsole.error('Invalid step data, skipping step', steps[i])\n\t\t\t\t// TODO: recover\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tsingleSteps.forEach(step => {\n\t\t\t\tthis.steps.push(step)\n\t\t\t\tnewSteps.push({\n\t\t\t\t\tstep,\n\t\t\t\t\tclientID: steps[i].sessionId\n\t\t\t\t})\n\t\t\t})\n\t\t}\n\t\tthis.emit('sync', { steps: newSteps, document })\n\t\tconsole.debug('receivedSteps', 'newVersion', this._getVersion())\n\t}\n\n\t_getVersion() {\n\t\tif (this.state) {\n\t\t\treturn getVersion(this.state)\n\t\t}\n\t\treturn 0\n\t}\n\t_getDocument() {\n\t\tif (this.state) {\n\t\t\treturn this.state.doc\n\t\t}\n\t}\n\n\t_getContent() {\n\t\treturn this.options.serialize(this._getDocument())\n\t}\n\n\tsave() {\n\t\tif (this.backend.save) {\n\t\t\tthis.backend.save()\n\t\t}\n\t}\n\n\tforceSave() {\n\t\tif (this.backend.forceSave) {\n\t\t\tthis.backend.forceSave()\n\t\t}\n\t}\n\n\tclose() {\n\t\t// TODO: save before close\n\t\tthis.backend.disconnect()\n\t\treturn axios.get(\n\t\t\tendpointUrl('session/close', !!this.options.shareToken), {\n\t\t\t\tparams: {\n\t\t\t\t\tdocumentId: this.document.id,\n\t\t\t\t\tsessionId: this.session.id,\n\t\t\t\t\tsessionToken: this.session.token,\n\t\t\t\t\ttoken: this.options.shareToken\n\t\t\t\t}\n\t\t\t}\n\t\t)\n\t}\n\n\ton(event, callback, _this) {\n\t\tthis.eventHandlers[event].push(callback.bind(_this))\n\t\treturn this\n\t}\n\n\temit(event, data, additionalData) {\n\t\tif (typeof this.eventHandlers[event] !== 'undefined') {\n\t\t\tthis.eventHandlers[event].forEach(function(callback) {\n\t\t\t\tcallback(data, additionalData)\n\t\t\t})\n\t\t} else {\n\t\t\tconsole.error('Event not found', event)\n\t\t}\n\t}\n\n\tisPublic() {\n\t\treturn !!this.options.shareToken\n\t}\n\n}\n\nexport default SyncService\nexport { SyncService, ERROR_TYPE }\n","/*\n * @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>\n *\n * @author Julius Härtl <jus@bitgrid.net>\n *\n * @license GNU AGPL version 3 or any later version\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\nconst extensionHighlight = {\n\tpy: 'python',\n\tgyp: 'python',\n\twsgi: 'python',\n\thtm: 'html',\n\txhtml: 'html',\n\terl: 'erlang',\n\tjsp: 'java',\n\tpl: 'perl',\n\trss: 'xml',\n\tatom: 'xml',\n\txsl: 'xml',\n\tplist: 'xml',\n\trb: 'ruby',\n\tbuilder: 'ruby',\n\tgemspec: 'ruby',\n\tpodspec: 'ruby',\n\tthor: 'ruby',\n\tdiff: 'patch',\n\ths: 'haskell',\n\ticl: 'haskell',\n\tphp3: 'php',\n\tphp4: 'php',\n\tphp5: 'php',\n\tphp6: 'php',\n\tsh: 'bash',\n\tzsh: 'bash',\n\tst: 'smalltalk',\n\tas: 'actionscript',\n\tapacheconf: 'apache',\n\tosacript: 'applescript',\n\tb: 'brainfuck',\n\tbf: 'brainfuck',\n\tclj: 'clojure',\n\t'cmake.in': 'cmake',\n\tcoffee: 'coffeescript',\n\tcson: 'coffescript',\n\ticed: 'coffescript',\n\tc: 'cpp',\n\t'c++': 'cpp',\n\t'h++': 'cpp',\n\thh: 'cpp',\n\tjinja: 'django',\n\tbat: 'dos',\n\tcmd: 'dos',\n\tfs: 'fsharp',\n\thbs: 'handlebars',\n\t'html.hbs': 'handlebars',\n\t'html.handlebars': 'handlebars',\n\t'sublime_metrics': 'json',\n\t'sublime_session': 'json',\n\t'sublime-keymap': 'json',\n\t'sublime-mousemap': 'json',\n\t'sublime-project': 'json',\n\t'sublime-settings': 'json',\n\t'sublime-workspace': 'json',\n\tmk: 'makefile',\n\tmak: 'makefile',\n\tmd: 'markdown',\n\tmkdown: 'markdown',\n\tmkd: 'markdown',\n\tnginxconf: 'nginx',\n\tm: 'objectivec',\n\tmm: 'objectivec',\n\tml: 'ocaml',\n\trs: 'rust',\n\tsci: 'scilab',\n\tvb: 'vbnet',\n\tvbs: 'vbscript'\n}\n\nexport default extensionHighlight\nexport {\n\textensionHighlight\n}\n","/*\n * @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>\n *\n * @author Julius Härtl <jus@bitgrid.net>\n *\n * @license GNU AGPL version 3 or any later version\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\nimport { Extension } from 'tiptap'\n\nexport default class Keymap extends Extension {\n\n\tget name() {\n\t\treturn 'save'\n\t}\n\n\tkeys({ schema }) {\n\t\treturn this.options\n\t}\n\n}\n","/*\n * @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>\n *\n * @author Julius Härtl <jus@bitgrid.net>\n *\n * @license GNU AGPL version 3 or any later version\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\tisMobile: this._isMobile()\n\t\t}\n\t},\n\tbeforeMount() {\n\t\twindow.addEventListener('resize', this._onResize)\n\t},\n\tbeforeDestroy() {\n\t\twindow.removeEventListener('resize', this._onResize)\n\t},\n\tmethods: {\n\t\t_onResize() {\n\t\t\t// Update mobile mode\n\t\t\tthis.isMobile = this._isMobile()\n\t\t},\n\t\t_isMobile() {\n\t\t\t// check if content width is under 768px\n\t\t\treturn document.documentElement.clientWidth < 768\n\t\t}\n\t}\n}\n","import mod from \"-!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EditorWrapper.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EditorWrapper.vue?vue&type=script&lang=js&\"","<!--\n - @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>\n -\n - @author Julius Härtl <jus@bitgrid.net>\n -\n - @license GNU AGPL version 3 or any later version\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n -->\n\n<template>\n\t<div id=\"editor-container\">\n\t\t<div v-if=\"currentSession && active\">\n\t\t\t<p v-if=\"hasSyncCollission\" class=\"msg icon-error\">\n\t\t\t\t{{ t('text', 'The document has been changed outside of the editor. The changes cannot be applied.') }}\n\t\t\t</p>\n\t\t</div>\n\t\t<div v-if=\"currentSession && active\" id=\"editor-wrapper\" :class=\"{'has-conflicts': hasSyncCollission, 'icon-loading': !initialLoading, 'richEditor': isRichEditor}\">\n\t\t\t<div id=\"editor\">\n\t\t\t\t<menu-bar v-if=\"!syncError && !readOnly\" ref=\"menubar\" :editor=\"tiptap\"\n\t\t\t\t\t:is-rich-editor=\"isRichEditor\">\n\t\t\t\t\t<div v-if=\"currentSession && active\" id=\"editor-session-list\">\n\t\t\t\t\t\t<div v-tooltip=\"lastSavedStatusTooltip\" class=\"save-status\" :class=\"lastSavedStatusClass\">\n\t\t\t\t\t\t\t{{ lastSavedStatus }}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<session-list :sessions=\"filteredSessions\">\n\t\t\t\t\t\t\t<guest-name-dialog v-if=\"isPublic && currentSession.guestName\" :sync-service=\"syncService\" />\n\t\t\t\t\t\t</session-list>\n\t\t\t\t\t</div>\n\t\t\t\t</menu-bar>\n\t\t\t\t<menu-bubble v-if=\"!readOnly && isRichEditor\" :editor=\"tiptap\" />\n\t\t\t\t<editor-content v-show=\"initialLoading\" class=\"editor__content\" :editor=\"tiptap\" />\n\t\t\t</div>\n\t\t\t<read-only-editor v-if=\"hasSyncCollission\" :content=\"syncError.data.outsideChange\"\n\t\t\t\t:is-rich-editor=\"isRichEditor\" />\n\t\t</div>\n\n\t\t<collision-resolve-dialog v-if=\"hasSyncCollission && !readOnly\" @resolveUseThisVersion=\"resolveUseThisVersion\" @resolveUseServerVersion=\"resolveUseServerVersion\" />\n\t</div>\n</template>\n\n<script>\nimport Vue from 'vue'\n\nimport { SyncService, ERROR_TYPE } from './../services/SyncService'\nimport { endpointUrl, getRandomGuestName } from './../helpers'\nimport { extensionHighlight } from '../helpers/mappings'\nimport { createEditor, markdownit, createMarkdownSerializer, serializePlainText, loadSyntaxHighlight } from './../EditorFactory'\n\nimport { EditorContent } from 'tiptap'\nimport { Collaboration } from 'tiptap-extensions'\nimport { Keymap } from './../extensions'\nimport isMobile from './../mixins/isMobile'\n\nimport Tooltip from 'nextcloud-vue/dist/Directives/Tooltip'\n\nconst EDITOR_PUSH_DEBOUNCE = 200\n\nexport default {\n\tname: 'EditorWrapper',\n\tcomponents: {\n\t\tEditorContent,\n\t\tMenuBar: () => import(/* webpackChunkName: \"editor-rich\" */'./MenuBar'),\n\t\tMenuBubble: () => import(/* webpackChunkName: \"editor-rich\" */'./MenuBubble'),\n\t\tReadOnlyEditor: () => import(/* webpackChunkName: \"editor\" */'./ReadOnlyEditor'),\n\t\tCollisionResolveDialog: () => import(/* webpackChunkName: \"editor\" */'./CollisionResolveDialog'),\n\t\tGuestNameDialog: () => import(/* webpackChunkName: \"editor-guest\" */'./GuestNameDialog'),\n\t\tSessionList: () => import(/* webpackChunkName: \"editor-collab\" */'./SessionList')\n\t},\n\tdirectives: {\n\t\tTooltip\n\t},\n\tmixins: [\n\t\tisMobile\n\t],\n\tprops: {\n\t\trelativePath: {\n\t\t\ttype: String,\n\t\t\tdefault: null\n\t\t},\n\t\tfileId: {\n\t\t\ttype: Number,\n\t\t\tdefault: null\n\t\t},\n\t\tactive: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false\n\t\t},\n\t\tshareToken: {\n\t\t\ttype: String,\n\t\t\tdefault: null\n\t\t},\n\t\tmime: {\n\t\t\ttype: String,\n\t\t\tdefault: null\n\t\t}\n\t},\n\tdata() {\n\t\treturn {\n\t\t\ttiptap: null,\n\t\t\t/** @type SyncService */\n\t\t\tsyncService: null,\n\n\t\t\tdocument: null,\n\t\t\tsessions: [],\n\t\t\tcurrentSession: null,\n\n\t\t\tfilteredSessions: {},\n\n\t\t\tdirty: false,\n\t\t\tinitialLoading: false,\n\t\t\tlastSavedString: '',\n\t\t\tsyncError: null,\n\t\t\treadOnly: true,\n\t\t\tforceRecreate: false,\n\n\t\t\tsaveStatusPolling: null\n\t\t}\n\t},\n\tcomputed: {\n\t\tlastSavedStatus() {\n\t\t\tlet status = (this.dirtyStateIndicator ? '*' : '')\n\t\t\tif (!this.isMobile) {\n\t\t\t\tstatus += this.lastSavedString\n\t\t\t}\n\t\t\treturn status\n\t\t},\n\t\tlastSavedStatusClass() {\n\t\t\treturn this.syncError && this.lastSavedString !== '' ? 'error' : ''\n\t\t},\n\t\tdirtyStateIndicator() {\n\t\t\treturn this.hasUnpushedChanges || this.hasUnsavedChanges\n\t\t},\n\t\tlastSavedStatusTooltip() {\n\t\t\tlet message = t('text', 'Last save {lastSave}', { lastSave: this.lastSavedString })\n\t\t\tif (this.hasSyncCollission) {\n\t\t\t\tmessage = t('text', 'The document has been changed outside of the editor. The changes cannot be applied.')\n\t\t\t}\n\t\t\tif (this.hasUnpushedChanges) {\n\t\t\t\tmessage += ' - ' + t('text', 'Unpushed changes')\n\t\t\t}\n\t\t\tif (this.hasUnsavedChanges) {\n\t\t\t\tmessage += ' - ' + t('text', 'Unsaved changes')\n\t\t\t}\n\t\t\treturn { content: message, placement: 'bottom' }\n\t\t},\n\t\thasSyncCollission() {\n\t\t\treturn this.syncError && this.syncError.type === ERROR_TYPE.SAVE_COLLISSION\n\t\t},\n\t\thasUnpushedChanges() {\n\t\t\treturn this.dirty\n\t\t},\n\t\thasUnsavedChanges() {\n\t\t\treturn this.document && this.document.lastSavedVersion < this.document.currentVersion\n\t\t},\n\t\tbackendUrl() {\n\t\t\treturn (endpoint) => {\n\t\t\t\treturn endpointUrl(endpoint, !!this.shareToken)\n\t\t\t}\n\t\t},\n\t\thasDocumentParameters() {\n\t\t\treturn this.fileId || this.shareToken\n\t\t},\n\t\tisPublic() {\n\t\t\treturn document.getElementById('isPublic') && document.getElementById('isPublic').value === '1'\n\t\t},\n\t\tisRichEditor() {\n\t\t\treturn this.mime === 'text/markdown'\n\t\t},\n\t\tfileExtension() {\n\t\t\treturn this.relativePath ? this.relativePath.split('/').pop().split('.').pop() : 'txt'\n\t\t}\n\t},\n\twatch: {\n\t\tlastSavedStatus: function() {\n\t\t\tthis.$refs.menubar && this.$refs.menubar.redrawMenuBar()\n\t\t}\n\t},\n\tmounted() {\n\t\tif (this.active && (this.hasDocumentParameters)) {\n\t\t\tthis.initSession()\n\t\t}\n\t\tthis.$parent.$emit('update:loaded', true)\n\t},\n\tcreated() {\n\t\tthis.saveStatusPolling = setInterval(() => {\n\t\t\tthis.updateLastSavedStatus()\n\t\t}, 2000)\n\t\tdocument.addEventListener('keydown', this._keyUpHandler, true)\n\t},\n\tbeforeDestroy() {\n\t\tdocument.removeEventListener('keydown', this._keyUpHandler, true)\n\t\tclearInterval(this.saveStatusPolling)\n\t\tif (this.currentSession && this.syncService) {\n\t\t\tthis.currentSession = null\n\t\t\tthis.syncService.close()\n\t\t\tthis.syncService = null\n\t\t}\n\t},\n\tmethods: {\n\t\tupdateLastSavedStatus() {\n\t\t\tif (this.document) {\n\t\t\t\tthis.lastSavedString = window.moment(this.document.lastSavedVersionTime * 1000).fromNow()\n\t\t\t}\n\t\t},\n\t\tinitSession() {\n\t\t\tif (!this.hasDocumentParameters) {\n\t\t\t\tthis.$parent.$emit('error', 'No valid file provided')\n\t\t\t\treturn\n\t\t\t}\n\t\t\tconst guestName = localStorage.getItem('nick') ? localStorage.getItem('nick') : getRandomGuestName()\n\t\t\tthis.syncService = new SyncService({\n\t\t\t\tshareToken: this.shareToken,\n\t\t\t\tfilePath: this.relativePath,\n\t\t\t\tguestName,\n\t\t\t\tforceRecreate: this.forceRecreate,\n\t\t\t\tserialize: (document) => {\n\t\t\t\t\tif (this.isRichEditor) {\n\t\t\t\t\t\tconst markdown = (createMarkdownSerializer(this.tiptap.nodes, this.tiptap.marks)).serialize(document)\n\t\t\t\t\t\tconsole.debug('serialized document', { markdown })\n\t\t\t\t\t\treturn markdown\n\t\t\t\t\t}\n\t\t\t\t\tconst file = serializePlainText(this.tiptap)\n\t\t\t\t\tconsole.debug('serialized document', { file })\n\t\t\t\t\treturn file\n\n\t\t\t\t}\n\t\t\t})\n\t\t\t\t.on('opened', ({ document, session }) => {\n\t\t\t\t\tthis.currentSession = session\n\t\t\t\t\tthis.document = document\n\t\t\t\t\tthis.readOnly = document.readOnly\n\t\t\t\t\tlocalStorage.setItem('nick', this.currentSession.guestName)\n\t\t\t\t})\n\t\t\t\t.on('change', ({ document, sessions }) => {\n\t\t\t\t\tif (this.document.baseVersionEtag !== '' && document.baseVersionEtag !== this.document.baseVersionEtag) {\n\t\t\t\t\t\tthis.resolveUseServerVersion()\n\t\t\t\t\t\treturn\n\t\t\t\t\t}\n\t\t\t\t\tthis.updateSessions.bind(this)(sessions)\n\t\t\t\t\tthis.document = document\n\n\t\t\t\t\tthis.syncError = null\n\t\t\t\t\tthis.tiptap.setOptions({ editable: !this.readOnly })\n\n\t\t\t\t})\n\t\t\t\t.on('loaded', ({ documentSource }) => {\n\t\t\t\t\tloadSyntaxHighlight(extensionHighlight[this.fileExtension] ? extensionHighlight[this.fileExtension] : this.fileExtension).then((languages) => {\n\t\t\t\t\t\tthis.tiptap = createEditor({\n\t\t\t\t\t\t\tcontent: this.isRichEditor ? markdownit.render(documentSource) : '<pre>' + window.escapeHTML(documentSource) + '</pre>',\n\t\t\t\t\t\t\tonUpdate: ({ state }) => {\n\t\t\t\t\t\t\t\tthis.syncService.state = state\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\textensions: [\n\t\t\t\t\t\t\t\tnew Collaboration({\n\t\t\t\t\t\t\t\t\t// the initial version we start with\n\t\t\t\t\t\t\t\t\t// version is an integer which is incremented with every change\n\t\t\t\t\t\t\t\t\tversion: this.document.initialVersion,\n\t\t\t\t\t\t\t\t\tclientID: this.currentSession.id,\n\t\t\t\t\t\t\t\t\t// debounce changes so we can save some bandwidth\n\t\t\t\t\t\t\t\t\tdebounce: EDITOR_PUSH_DEBOUNCE,\n\t\t\t\t\t\t\t\t\tonSendable: ({ sendable }) => {\n\t\t\t\t\t\t\t\t\t\tif (this.syncService) {\n\t\t\t\t\t\t\t\t\t\t\tthis.syncService.sendSteps()\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\tnew Keymap({\n\t\t\t\t\t\t\t\t\t'Ctrl-s': () => {\n\t\t\t\t\t\t\t\t\t\tthis.syncService.save()\n\t\t\t\t\t\t\t\t\t\treturn true\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tenableRichEditing: this.isRichEditor,\n\t\t\t\t\t\t\tlanguages\n\t\t\t\t\t\t})\n\t\t\t\t\t\tthis.syncService.state = this.tiptap.state\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t\t.on('sync', ({ steps, document }) => {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tthis.tiptap.extensions.options.collaboration.update({\n\t\t\t\t\t\t\tversion: document.currentVersion,\n\t\t\t\t\t\t\tsteps: steps\n\t\t\t\t\t\t})\n\t\t\t\t\t\tthis.syncService.state = this.tiptap.state\n\t\t\t\t\t\tthis.updateLastSavedStatus()\n\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\tconsole.error('Failed to update steps in collaboration plugin', e)\n\t\t\t\t\t\t// TODO: we should recreate the editing session when this happens\n\t\t\t\t\t}\n\t\t\t\t\tthis.document = document\n\t\t\t\t})\n\t\t\t\t.on('error', (error, data) => {\n\t\t\t\t\tthis.tiptap.setOptions({ editable: false })\n\t\t\t\t\tif (error === ERROR_TYPE.SAVE_COLLISSION && (!this.syncError || this.syncError.type !== ERROR_TYPE.SAVE_COLLISSION)) {\n\t\t\t\t\t\tthis.initialLoading = true\n\t\t\t\t\t\tthis.syncError = {\n\t\t\t\t\t\t\ttype: error,\n\t\t\t\t\t\t\tdata: data\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (error === ERROR_TYPE.CONNECTION_FAILED) {\n\t\t\t\t\t\tthis.initialLoading = false\n\t\t\t\t\t\t// FIXME: ideally we just try to reconnect in the service, so we don't loose steps\n\t\t\t\t\t\tOC.Notification.showTemporary('Connection failed, reconnecting')\n\t\t\t\t\t\tthis.reconnect()\n\t\t\t\t\t}\n\t\t\t\t\tif (error === ERROR_TYPE.SOURCE_NOT_FOUND) {\n\t\t\t\t\t\tthis.initialLoading = false\n\t\t\t\t\t\tOC.Notification.showTemporary('Source not found')\n\t\t\t\t\t\tthis.$emit('close')\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.on('stateChange', (state) => {\n\t\t\t\t\tif (state.initialLoading && !this.initialLoading) {\n\t\t\t\t\t\tthis.initialLoading = true\n\t\t\t\t\t\tthis.tiptap.focus('start')\n\t\t\t\t\t}\n\t\t\t\t\tif (state.hasOwnProperty('dirty')) {\n\t\t\t\t\t\tthis.dirty = state.dirty\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\tthis.syncService.open({ fileId: this.fileId, filePath: this.relativePath })\n\t\t\tthis.forceRecreate = false\n\t\t},\n\n\t\tresolveUseThisVersion() {\n\t\t\tthis.syncService.forceSave()\n\t\t\tthis.tiptap.setOptions({ editable: !this.readOnly })\n\t\t},\n\n\t\tresolveUseServerVersion() {\n\t\t\tthis.forceRecreate = true\n\t\t\tthis.reconnect()\n\t\t},\n\n\t\treconnect() {\n\t\t\tthis.syncService.close()\n\t\t\tthis.syncService = null\n\t\t\tthis.tiptap.destroy()\n\t\t\tthis.initSession()\n\t\t},\n\n\t\tupdateSessions(sessions) {\n\t\t\tthis.sessions = sessions.sort((a, b) => b.lastContact - a.lastContact)\n\t\t\tlet currentSessionIds = this.sessions.map((session) => session.userId)\n\t\t\tlet currentGuestIds = this.sessions.map((session) => session.guestId)\n\n\t\t\tconst removedSessions = Object.keys(this.filteredSessions)\n\t\t\t\t.filter(sessionId => !currentSessionIds.includes(sessionId) && !currentGuestIds.includes(sessionId))\n\n\t\t\tfor (let index in removedSessions) {\n\t\t\t\tVue.delete(this.filteredSessions, removedSessions[index])\n\t\t\t}\n\t\t\tfor (let index in this.sessions) {\n\t\t\t\tlet session = this.sessions[index]\n\t\t\t\tconst sessionKey = session.displayName ? session.userId : session.id\n\t\t\t\tif (this.filteredSessions[sessionKey]) {\n\t\t\t\t\t// update timestamp if relevant\n\t\t\t\t\tif (this.filteredSessions[sessionKey].lastContact < session.lastContact) {\n\t\t\t\t\t\tVue.set(this.filteredSessions[sessionKey], 'lastContact', session.lastContact)\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tVue.set(this.filteredSessions, sessionKey, session)\n\t\t\t\t}\n\t\t\t\tif (session.id === this.currentSession.id) {\n\t\t\t\t\tVue.set(this.filteredSessions[sessionKey], 'isCurrent', true)\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t_keyUpHandler(event) {\n\t\t\tconst key = event.key || event.keyCode\n\t\t\tif ((event.ctrlKey || event.metaKey) && !event.shiftKey && (key === 'f' || key === 70)) {\n\t\t\t\tevent.stopPropagation()\n\t\t\t\treturn true\n\t\t\t}\n\t\t}\n\t}\n}\n</script>\n\n<style scoped lang=\"scss\">\n\t#editor-container {\n\t\tdisplay: block;\n\t\twidth: 100vw;\n\t\tmax-width: 100%;\n\t\theight: calc(100% - 50px);\n\t\ttop: 50px;\n\t\tleft: 0;\n\t\tmargin: 0 auto;\n\t\tposition: relative;\n\t\tbackground-color: var(--color-main-background);\n\t}\n\n\t#editor-wrapper {\n\t\tdisplay: flex;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\toverflow: hidden;\n\t\tposition: absolute;\n\t\t.ProseMirror {\n\t\t\tmargin-top: 0 !important;\n\t\t}\n\t\t&.icon-loading {\n\t\t\t#editor {\n\t\t\t\topacity: 0.3;\n\t\t\t}\n\t\t}\n\t}\n\n\t#editor, .editor {\n\t\tbackground: var(--color-main-background);\n\t\tcolor: var(--color-main-text);\n\t\tbackground-clip: padding-box;\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: 0;\n\t\tposition: relative;\n\t\toverflow-y: auto;\n\t\toverflow-x: hidden;\n\t\twidth: 100%;\n\t}\n\n\t.msg.icon-error {\n\t\tpadding: 12px;\n\t\tborder-bottom:1px solid var(--color-error);\n\t\tpadding-left: 30px;\n\t\tbackground-position: 8px center;\n\t}\n\n\t.save-status {\n\t\tpadding: 9px;\n\t\ttext-overflow: ellipsis;\n\t\tcolor: var(--color-text-lighter);\n\n\t\t&.error {\n\t\t\tbackground-color: var(--color-error);\n\t\t\tcolor: var(--color-main-background);\n\t\t\tborder-radius: 3px;\n\t\t}\n\t}\n\n\t#editor-container #editor-wrapper.has-conflicts {\n\t\theight: calc(100% - 50px);\n\n\t\t#editor, #read-only-editor {\n\t\t\twidth: 50%;\n\t\t\theight: 100%;\n\t\t}\n\t}\n\n\t#editor-session-list {\n\t\tpadding: 9px;\n\t\tpadding-right: 16px;\n\t\tdisplay: flex;\n\n\t\tinput, div {\n\t\t\tvertical-align: middle;\n\t\t\tmargin-left: 3px;\n\t\t}\n\t}\n\n\t.editor__content {\n\t\tmax-width: 670px;\n\t\tmargin: auto;\n\t}\n\n\t#body-public {\n\t\theight: auto;\n\t}\n\n\t#files-public-content {\n\t\theight: auto;\n\t\t#editor-wrapper {\n\t\t\tposition: relative;\n\t\t}\n\t\t#editor-container {\n\t\t\ttop: 0;\n\t\t\twidth: 100%;\n\n\t\t\t#editor::v-deep .menubar {\n\t\t\t\t// sticky position is not working as body is our scroll container\n\t\t\t\tposition: fixed;\n\t\t\t\ttop: 50px;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\t#editor {\n\t\t\t\tpadding-top: 50px;\n\t\t\t\toverflow: auto;\n\t\t\t}\n\t\t\t.has-conflicts #editor {\n\t\t\t\tpadding-top: 0px;\n\t\t\t}\n\t\t}\n\t}\n\n\t.ie {\n\t\t#editor::v-deep .menubar {\n\t\t\t// sticky position is not working as body is our scroll container\n\t\t\tposition: fixed;\n\t\t\ttop: 50px;\n\t\t\twidth: 100%;\n\t\t}\n\t\t.editor__content::v-deep .ProseMirror {\n\t\t\tpadding-top: 50px;\n\t\t}\n\t}\n\n</style>\n<style lang=\"scss\">\n\t@import './../../css/style';\n\t@import './../../css/prosemirror';\n</style>\n","import { render, staticRenderFns } from \"./EditorWrapper.vue?vue&type=template&id=8aaec4a6&scoped=true&\"\nimport script from \"./EditorWrapper.vue?vue&type=script&lang=js&\"\nexport * from \"./EditorWrapper.vue?vue&type=script&lang=js&\"\nimport style0 from \"./EditorWrapper.vue?vue&type=style&index=0&id=8aaec4a6&scoped=true&lang=scss&\"\nimport style1 from \"./EditorWrapper.vue?vue&type=style&index=1&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"8aaec4a6\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../node_modules/vue-style-loader/index.js!../../node_modules/css-loader/dist/cjs.js!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/sass-loader/lib/loader.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ReadOnlyEditor.vue?vue&type=style&index=0&id=7a012ea5&scoped=true&lang=scss&\"; export default mod; export * from \"-!../../node_modules/vue-style-loader/index.js!../../node_modules/css-loader/dist/cjs.js!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/sass-loader/lib/loader.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ReadOnlyEditor.vue?vue&type=style&index=0&id=7a012ea5&scoped=true&lang=scss&\"","exports = module.exports = require(\"../../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \"#read-only-editor[data-v-7a012ea5] {\\n overflow: scroll;\\n}\\n\", \"\"]);\n","import mod from \"-!../../node_modules/vue-style-loader/index.js!../../node_modules/css-loader/dist/cjs.js!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/sass-loader/lib/loader.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CollisionResolveDialog.vue?vue&type=style&index=0&id=1c2d184a&scoped=true&lang=scss&\"; export default mod; export * from \"-!../../node_modules/vue-style-loader/index.js!../../node_modules/css-loader/dist/cjs.js!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/sass-loader/lib/loader.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CollisionResolveDialog.vue?vue&type=style&index=0&id=1c2d184a&scoped=true&lang=scss&\"","exports = module.exports = require(\"../../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \"#resolve-conflicts[data-v-1c2d184a] {\\n display: flex;\\n position: fixed;\\n z-index: 10000;\\n bottom: 0;\\n max-width: 900px;\\n width: 100vw;\\n margin: auto;\\n padding: 20px 0;\\n}\\n#resolve-conflicts button[data-v-1c2d184a] {\\n margin: auto;\\n box-shadow: 0 0 10px var(--color-box-shadow);\\n}\\n\", \"\"]);\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.editor)?_c('editor-content',{attrs:{\"id\":\"read-only-editor\",\"editor\":_vm.editor}}):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ReadOnlyEditor.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ReadOnlyEditor.vue?vue&type=script&lang=js&\"","<!--\n - @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>\n -\n - @author Julius Härtl <jus@bitgrid.net>\n -\n - @license GNU AGPL version 3 or any later version\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n -->\n\n<template>\n\t<editor-content v-if=\"editor\" id=\"read-only-editor\" :editor=\"editor\" />\n</template>\n\n<script>\nimport { EditorContent } from 'tiptap'\nimport { createEditor, markdownit } from '../EditorFactory'\n\nexport default {\n\tname: 'ReadOnlyEditor',\n\tcomponents: { EditorContent },\n\tprops: {\n\t\tcontent: {\n\t\t\ttype: String,\n\t\t\trequired: true\n\t\t},\n\t\tisRichEditor: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false\n\t\t}\n\t},\n\tdata: () => {\n\t\treturn {\n\t\t\teditor: null\n\t\t}\n\t},\n\tmounted() {\n\t\tthis.editor = createEditor({\n\t\t\tcontent: this.isRichEditor ? markdownit.render(this.content) : '<pre>' + window.escapeHTML(this.content) + '</pre>',\n\t\t\tenableRichEditing: this.isRichEditor\n\t\t})\n\t\tthis.editor.setOptions({ editable: false })\n\t},\n\tbeforeDestroy() {\n\t\tthis.editor.destroy()\n\t}\n}\n</script>\n\n<style scoped lang=\"scss\">\n\n\t#read-only-editor {\n\t\toverflow: scroll;\n\t}\n\n</style>\n","import { render, staticRenderFns } from \"./ReadOnlyEditor.vue?vue&type=template&id=7a012ea5&scoped=true&\"\nimport script from \"./ReadOnlyEditor.vue?vue&type=script&lang=js&\"\nexport * from \"./ReadOnlyEditor.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ReadOnlyEditor.vue?vue&type=style&index=0&id=7a012ea5&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7a012ea5\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"collision-resolve-dialog\",attrs:{\"id\":\"resolve-conflicts\"}},[_c('button',{on:{\"click\":function($event){return _vm.$emit('resolveUseThisVersion')}}},[_vm._v(\"\\n\\t\\t\"+_vm._s(_vm.t('text', 'Use current version'))+\"\\n\\t\")]),_vm._v(\" \"),_c('button',{on:{\"click\":function($event){return _vm.$emit('resolveUseServerVersion')}}},[_vm._v(\"\\n\\t\\t\"+_vm._s(_vm.t('text', 'Use the saved version'))+\"\\n\\t\")])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CollisionResolveDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CollisionResolveDialog.vue?vue&type=script&lang=js&\"","<!--\n - @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>\n -\n - @author Julius Härtl <jus@bitgrid.net>\n -\n - @license GNU AGPL version 3 or any later version\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n -->\n\n<template>\n\t<div id=\"resolve-conflicts\" class=\"collision-resolve-dialog\">\n\t\t<button @click=\"$emit('resolveUseThisVersion')\">\n\t\t\t{{ t('text', 'Use current version') }}\n\t\t</button>\n\t\t<button @click=\"$emit('resolveUseServerVersion')\">\n\t\t\t{{ t('text', 'Use the saved version') }}\n\t\t</button>\n\t</div>\n</template>\n\n<script>\nexport default {\n\tname: 'CollisionResolveDialog'\n}\n</script>\n\n<style scoped lang=\"scss\">\n\t#resolve-conflicts {\n\t\tdisplay: flex;\n\t\tposition: fixed;\n\t\tz-index: 10000;\n\t\tbottom: 0;\n\t\tmax-width: 900px;\n\t\twidth: 100vw;\n\t\tmargin: auto;\n\t\tpadding: 20px 0;\n\n\t\tbutton {\n\t\t\tmargin: auto;\n\t\t\tbox-shadow: 0 0 10px var(--color-box-shadow);\n\t\t}\n\t}\n</style>\n","import { render, staticRenderFns } from \"./CollisionResolveDialog.vue?vue&type=template&id=1c2d184a&scoped=true&\"\nimport script from \"./CollisionResolveDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./CollisionResolveDialog.vue?vue&type=script&lang=js&\"\nimport style0 from \"./CollisionResolveDialog.vue?vue&type=style&index=0&id=1c2d184a&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"1c2d184a\",\n null\n \n)\n\nexport default component.exports","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../node_modules/css-loader/dist/cjs.js!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/sass-loader/lib/loader.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ImageView.vue?vue&type=style&index=0&id=3153cb96&scoped=true&lang=scss&\");\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"0e73d06f\", content, true, {});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../node_modules/css-loader/dist/cjs.js!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/sass-loader/lib/loader.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EditorWrapper.vue?vue&type=style&index=0&id=8aaec4a6&scoped=true&lang=scss&\");\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"038abb85\", content, true, {});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../node_modules/css-loader/dist/cjs.js!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/sass-loader/lib/loader.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EditorWrapper.vue?vue&type=style&index=1&lang=scss&\");\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"de4c163c\", content, true, {});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../node_modules/css-loader/dist/cjs.js!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/sass-loader/lib/loader.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ReadOnlyEditor.vue?vue&type=style&index=0&id=7a012ea5&scoped=true&lang=scss&\");\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"e6d84634\", content, true, {});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../node_modules/css-loader/dist/cjs.js!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/sass-loader/lib/loader.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CollisionResolveDialog.vue?vue&type=style&index=0&id=1c2d184a&scoped=true&lang=scss&\");\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"724c1b66\", content, true, {});"],"sourceRoot":""}
|