Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-01-09 19:15:39 +0300
committerJulius Härtl <jus@bitgrid.net>2020-01-09 20:51:36 +0300
commit80f8cb775f8514f450b59a5bb422f8db241310d9 (patch)
treee142816f48205493aaa50c1a23d3541f8546b169 /js/editor.js
parent7218cdc2f642b7fdb47bc9d840ab19d7e258c9ed (diff)
Bump bundles
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'js/editor.js')
-rw-r--r--js/editor.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/editor.js b/js/editor.js
index 1575a5062..0df72a721 100644
--- a/js/editor.js
+++ b/js/editor.js
@@ -20,7 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-var p=300,h=500,f=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._authority=t,this.fetchInterval=p,this.retryTime=h,this.lock=!1,this.fetchRetryCounter=0}var t,r,o;return t=e,(r=[{key:"connect",value:function(){this.fetcher=setInterval(this._fetchSteps.bind(this),0)}},{key:"_isPublic",value:function(){return!!this._authority.options.shareToken}},{key:"forceSave",value:function(){this._forcedSave=!0,this.fetchSteps()}},{key:"save",value:function(){this._manualSave=!0,this.fetchSteps()}},{key:"fetchSteps",value:function(){this._fetchSteps()}},{key:"_fetchSteps",value:function(){var e,t=this;!this.lock&&this.fetcher&&(this.lock=!0,(this._forcedSave||this._manualSave||!Object(d.d)(this._authority.state)&&this._authority._getVersion()!==this._authority.document.lastSavedVersion)&&(e=this._authority._getContent()),c.a.post(Object(l.b)("session/sync",this._isPublic()),{documentId:this._authority.document.id,sessionId:this._authority.session.id,sessionToken:this._authority.session.token,version:this._authority._getVersion(),autosaveContent:e,force:!!this._forcedSave,manualSave:!!this._manualSave,token:this._authority.options.shareToken,filePath:this._authority.options.filePath}).then((function(e){if(t.fetchRetryCounter=0,t._authority.document.lastSavedVersion<e.data.document.lastSavedVersion&&(console.debug("Saved document",e.data.document),t._authority.emit("save",{document:e.data.document,sessions:e.data.sessions})),t._authority.emit("change",{document:e.data.document,sessions:e.data.sessions}),t._authority.document=e.data.document,t._authority.sessions=e.data.sessions,0===e.data.steps.length)return t.lock=!1,e.data.sessions.filter((function(e){return e.lastContact>Date.now()/1e3-20})).length<2?t.maximumRefetchTimer():t.increaseRefetchTimer(),t._authority.emit("stateChange",{dirty:!1}),void t._authority.emit("stateChange",{initialLoading:!0});t._authority._receiveSteps(e.data),t.lock=!1,t._forcedSave=!1,t.resetRefetchTimer()})).catch((function(e){t.lock=!1,e.response&&"ECONNABORTED"!==e.code?409===e.response.status&&e.response.data.document.currentVersion===t._authority.document.currentVersion?(console.error("Conflict during file save, please resolve"),t._authority.emit("error",y.SAVE_COLLISSION,{outsideChange:e.response.data.outsideChange})):403===e.response.status?t._authority.emit("error",y.CONNECTION_FAILED,{}):(t.increaseRefetchTimer(),t._authority.emit("error",y.CONNECTION_FAILED,{retry:!1}),console.error("Failed to fetch steps due to other reason",e)):t.fetchRetryCounter++>=5?(console.error("[PollingBackend:fetchSteps] Network error when fetching steps, emitting CONNECTION_FAILED"),t._authority.emit("error",y.CONNECTION_FAILED,{})):console.error("[PollingBackend:fetchSteps] Network error when fetching steps, retry ".concat(t.fetchRetryCounter))})),this._manualSave=!1,this._forcedSave=!1)}},{key:"sendSteps",value:function(e){var t=this;if(this._authority.emit("stateChange",{dirty:!0}),this.lock)setTimeout((function(){t._authority.sendSteps()}),100);else{this.lock=!0;var r="function"==typeof e?e():e,o=r.steps;c.a.post(Object(l.b)("session/push",!!this._authority.options.shareToken),{documentId:this._authority.document.id,sessionId:this._authority.session.id,sessionToken:this._authority.session.token,steps:o.map((function(e){return e.toJSON?e.toJSON():e}))||[],version:r.version,token:this._authority.options.shareToken,filePath:this._authority.options.filePath}).then((function(e){t.carefulRetryReset(),t.lock=!1,t.fetchSteps()})).catch((function(e){console.error("failed to apply steps due to collission, retrying"),t.lock=!1,e.response&&"ECONNABORTED"!==e.code?(403===e.response.status&&e.response.data.document.currentVersion===t._authority.document.currentVersion&&(t._authority.emit("error",y.PUSH_FAILURE,{}),OC.Notification.showTemporary("Changes could not be sent yet")),t.fetchSteps(),t.carefulRetry()):t._authority.emit("error",y.CONNECTION_FAILED,{})}))}}},{key:"disconnect",value:function(){clearInterval(this.fetcher),this.fetcher=0}},{key:"resetRefetchTimer",value:function(){0!==this.fetcher&&(this.fetchInterval=p,clearInterval(this.fetcher),this.fetcher=setInterval(this._fetchSteps.bind(this),this.fetchInterval))}},{key:"increaseRefetchTimer",value:function(){0!==this.fetcher&&(this.fetchInterval=Math.min(2*this.fetchInterval,5e3),clearInterval(this.fetcher),this.fetcher=setInterval(this._fetchSteps.bind(this),this.fetchInterval))}},{key:"maximumRefetchTimer",value:function(){0!==this.fetcher&&(this.fetchInterval=5e3,clearInterval(this.fetcher),this.fetcher=setInterval(this._fetchSteps.bind(this),this.fetchInterval))}},{key:"carefulRetry",value:function(){var e=this.retryTime?Math.min(2*this.retryTime,1e4):h;e>5e3&&this.retryTime<5e3&&(OC.Notification.showTemporary("Changes could not be sent yet"),this._authority.emit("error",y.PUSH_FAILURE,{})),this.retryTime=e}},{key:"carefulRetryReset",value:function(){this.retryTime=h}}])&&u(t.prototype,r),o&&u(t,o),e}();function v(e,t,r,o,i,n,s){try{var a=e[n](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(o,i)}function m(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}
+var p=300,h=500,f=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._authority=t,this.fetchInterval=p,this.retryTime=h,this.lock=!1,this.fetchRetryCounter=0}var t,r,o;return t=e,(r=[{key:"connect",value:function(){this.fetcher=setInterval(this._fetchSteps.bind(this),0)}},{key:"_isPublic",value:function(){return!!this._authority.options.shareToken}},{key:"forceSave",value:function(){this._forcedSave=!0,this.fetchSteps()}},{key:"save",value:function(){this._manualSave=!0,this.fetchSteps()}},{key:"fetchSteps",value:function(){this._fetchSteps()}},{key:"_fetchSteps",value:function(){var e,t=this;!this.lock&&this.fetcher&&(this.lock=!0,(this._forcedSave||this._manualSave||!Object(d.d)(this._authority.state)&&this._authority._getVersion()!==this._authority.document.lastSavedVersion)&&(e=this._authority._getContent()),c.a.post(Object(l.b)("session/sync",this._isPublic()),{documentId:this._authority.document.id,sessionId:this._authority.session.id,sessionToken:this._authority.session.token,version:this._authority._getVersion(),autosaveContent:e,force:!!this._forcedSave,manualSave:!!this._manualSave,token:this._authority.options.shareToken,filePath:this._authority.options.filePath}).then((function(e){if(t.fetchRetryCounter=0,t._authority.document.lastSavedVersion<e.data.document.lastSavedVersion&&(console.debug("Saved document",e.data.document),t._authority.emit("save",{document:e.data.document,sessions:e.data.sessions})),t._authority.emit("change",{document:e.data.document,sessions:e.data.sessions}),t._authority.document=e.data.document,t._authority.sessions=e.data.sessions,0===e.data.steps.length)return t.lock=!1,e.data.sessions.filter((function(e){return e.lastContact>Date.now()/1e3-20})).length<2?t.maximumRefetchTimer():t.increaseRefetchTimer(),t._authority.emit("stateChange",{dirty:!1}),void t._authority.emit("stateChange",{initialLoading:!0});t._authority._receiveSteps(e.data),t.lock=!1,t._forcedSave=!1,t.resetRefetchTimer()})).catch((function(e){t.lock=!1,e.response&&"ECONNABORTED"!==e.code?409===e.response.status&&e.response.data.document.currentVersion===t._authority.document.currentVersion?(console.error("Conflict during file save, please resolve"),t._authority.emit("error",y.SAVE_COLLISSION,{outsideChange:e.response.data.outsideChange})):403===e.response.status?t._authority.emit("error",y.CONNECTION_FAILED,{}):404===e.response.status?t._authority.emit("error",y.SOURCE_NOT_FOUND,{}):503===e.response.status?(t.increaseRefetchTimer(),t._authority.emit("error",y.CONNECTION_FAILED,{retry:!0}),console.error("Failed to fetch steps due to unavailable service",e)):(t.increaseRefetchTimer(),t._authority.emit("error",y.CONNECTION_FAILED,{retry:!1}),console.error("Failed to fetch steps due to other reason",e)):t.fetchRetryCounter++>=5?(console.error("[PollingBackend:fetchSteps] Network error when fetching steps, emitting CONNECTION_FAILED"),t._authority.emit("error",y.CONNECTION_FAILED,{})):console.error("[PollingBackend:fetchSteps] Network error when fetching steps, retry ".concat(t.fetchRetryCounter))})),this._manualSave=!1,this._forcedSave=!1)}},{key:"sendSteps",value:function(e){var t=this;if(this._authority.emit("stateChange",{dirty:!0}),this.lock)setTimeout((function(){t._authority.sendSteps()}),100);else{this.lock=!0;var r="function"==typeof e?e():e,o=r.steps;c.a.post(Object(l.b)("session/push",!!this._authority.options.shareToken),{documentId:this._authority.document.id,sessionId:this._authority.session.id,sessionToken:this._authority.session.token,steps:o.map((function(e){return e.toJSON?e.toJSON():e}))||[],version:r.version,token:this._authority.options.shareToken,filePath:this._authority.options.filePath}).then((function(e){t.carefulRetryReset(),t.lock=!1,t.fetchSteps()})).catch((function(e){console.error("failed to apply steps due to collission, retrying"),t.lock=!1,e.response&&"ECONNABORTED"!==e.code?(403===e.response.status&&e.response.data.document.currentVersion===t._authority.document.currentVersion&&(t._authority.emit("error",y.PUSH_FAILURE,{}),OC.Notification.showTemporary("Changes could not be sent yet")),t.fetchSteps(),t.carefulRetry()):t._authority.emit("error",y.CONNECTION_FAILED,{})}))}}},{key:"disconnect",value:function(){clearInterval(this.fetcher),this.fetcher=0}},{key:"resetRefetchTimer",value:function(){0!==this.fetcher&&(this.fetchInterval=p,clearInterval(this.fetcher),this.fetcher=setInterval(this._fetchSteps.bind(this),this.fetchInterval))}},{key:"increaseRefetchTimer",value:function(){0!==this.fetcher&&(this.fetchInterval=Math.min(2*this.fetchInterval,5e3),clearInterval(this.fetcher),this.fetcher=setInterval(this._fetchSteps.bind(this),this.fetchInterval))}},{key:"maximumRefetchTimer",value:function(){0!==this.fetcher&&(this.fetchInterval=5e3,clearInterval(this.fetcher),this.fetcher=setInterval(this._fetchSteps.bind(this),this.fetchInterval))}},{key:"carefulRetry",value:function(){var e=this.retryTime?Math.min(2*this.retryTime,1e4):h;e>5e3&&this.retryTime<5e3&&(OC.Notification.showTemporary("Changes could not be sent yet"),this._authority.emit("error",y.PUSH_FAILURE,{})),this.retryTime=e}},{key:"carefulRetryReset",value:function(){this.retryTime=h}}])&&u(t.prototype,r),o&&u(t,o),e}();function v(e,t,r,o,i,n,s){try{var a=e[n](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(o,i)}function m(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}
/*
* @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
*
@@ -63,7 +63,7 @@ var b={shareToken:null,forceRecreate:!1,serialize:function(e){return e}},y={SAVE
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
- */var E=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),_(this,O(t).apply(this,arguments))}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&M(e,t)}(t,e),r=t,(o=[{key:"keys",value:function(e){return e.schema,this.options}},{key:"name",get:function(){return"save"}}])&&S(r.prototype,o),i&&S(r,i),t}(k.e),C={data:function(){return{isMobile:this._isMobile()}},beforeMount:function(){window.addEventListener("resize",this._onResize)},beforeDestroy:function(){window.removeEventListener("resize",this._onResize)},methods:{_onResize:function(){this.isMobile=this._isMobile()},_isMobile:function(){return document.documentElement.clientWidth<768}}},I=o(179),T=o.n(I),R={name:"EditorWrapper",components:{EditorContent:k.b,MenuBar:function(){return Promise.all([o.e(1),o.e(200),o.e(193)]).then(o.bind(null,520))},MenuBubble:function(){return Promise.all([o.e(1),o.e(200),o.e(193)]).then(o.bind(null,522))},ReadOnlyEditor:function(){return Promise.all([o.e(0),o.e(189),o.e(188),o.e(199),o.e(190)]).then(o.bind(null,519))},CollisionResolveDialog:function(){return Promise.all([o.e(0),o.e(189),o.e(188),o.e(199),o.e(190)]).then(o.bind(null,523))},GuestNameDialog:function(){return Promise.all([o.e(1),o.e(187),o.e(192)]).then(o.bind(null,524))},SessionList:function(){return Promise.all([o.e(1),o.e(187),o.e(191)]).then(o.bind(null,525))}},directives:{Tooltip:T.a},mixins:[C],props:{initialSession:{type:Object,default:null},relativePath:{type:String,default:null},fileId:{type:Number,default:null},active:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!0},shareToken:{type:String,default:null},mime:{type:String,default:null},autohide:{type:Boolean,default:!1},isDirectEditing:{type:Boolean,default:!1}},data:function(){return{tiptap:null,syncService:null,document:null,sessions:[],currentSession:null,filteredSessions:{},dirty:!1,initialLoading:!1,lastSavedString:"",syncError:null,hasConnectionIssue:!1,readOnly:!0,forceRecreate:!1,saveStatusPolling:null}},computed:{lastSavedStatus:function(){var e=this.dirtyStateIndicator?"*":"";return this.isMobile||(e+=this.lastSavedString),e},lastSavedStatusClass:function(){return this.syncError&&""!==this.lastSavedString?"error":""},dirtyStateIndicator:function(){return this.hasUnpushedChanges||this.hasUnsavedChanges},lastSavedStatusTooltip:function(){var e=t("text","Last save {lastSave}",{lastSave:this.lastSavedString});return this.hasSyncCollission&&(e=t("text","The document has been changed outside of the editor. The changes cannot be applied.")),this.hasUnpushedChanges&&(e+=" - "+t("text","Unpushed changes")),this.hasUnsavedChanges&&(e+=" - "+t("text","Unsaved changes")),{content:e,placement:"bottom"}},hasSyncCollission:function(){return this.syncError&&this.syncError.type===y.SAVE_COLLISSION},hasUnpushedChanges:function(){return this.dirty},hasUnsavedChanges:function(){return this.document&&this.document.lastSavedVersion<this.document.currentVersion},backendUrl:function(){var e=this;return function(t){return Object(l.b)(t,!!e.shareToken)}},hasDocumentParameters:function(){return this.fileId||this.shareToken||this.initialSession},isPublic:function(){return this.isDirectEditing||document.getElementById("isPublic")&&"1"===document.getElementById("isPublic").value},isRichEditor:function(){return"text/markdown"===this.mime},fileExtension:function(){return this.relativePath?this.relativePath.split("/").pop().split(".").pop():"txt"}},watch:{lastSavedStatus:function(){this.$refs.menubar&&this.$refs.menubar.redrawMenuBar()}},mounted:function(){this.active&&this.hasDocumentParameters&&this.initSession(),this.$parent.$emit("update:loaded",!0)},created:function(){var e=this;this.saveStatusPolling=setInterval((function(){e.updateLastSavedStatus()}),2e3),document.addEventListener("keydown",this._keyUpHandler,!0)},beforeDestroy:function(){var e=this;document.removeEventListener("keydown",this._keyUpHandler,!0),clearInterval(this.saveStatusPolling),this.currentSession&&this.syncService&&this.syncService.close().then((function(){e.currentSession=null,e.syncService=null})).catch((function(e){}))},methods:{updateLastSavedStatus:function(){this.document&&(this.lastSavedString=window.moment(1e3*this.document.lastSavedVersionTime).fromNow())},initSession:function(){var e=this;if(this.hasDocumentParameters){var t=localStorage.getItem("nick")?localStorage.getItem("nick"):Object(l.c)();this.syncService=new g({shareToken:this.shareToken,filePath:this.relativePath,guestName:t,forceRecreate:this.forceRecreate,serialize:function(t){if(e.isRichEditor){var r=Object(j.b)(e.tiptap.nodes,e.tiptap.marks).serialize(t);return console.debug("serialized document",{markdown:r}),r}var o=Object(j.e)(e.tiptap);return console.debug("serialized document",{file:o}),o}}).on("opened",(function(t){var r=t.document,o=t.session;e.currentSession=o,e.document=r,e.readOnly=r.readOnly,localStorage.setItem("nick",e.currentSession.guestName)})).on("change",(function(t){var r=t.document,o=t.sessions;""===e.document.baseVersionEtag||r.baseVersionEtag===e.document.baseVersionEtag?(e.updateSessions.bind(e)(o),e.document=r,e.syncError=null,e.tiptap.setOptions({editable:!e.readOnly})):e.resolveUseServerVersion()})).on("loaded",(function(t){var r=t.documentSource;e.hasConnectionIssue=!1,Object(j.c)(w[e.fileExtension]?w[e.fileExtension]:e.fileExtension).then((function(t){e.tiptap=Object(j.a)({content:e.isRichEditor?j.d.render(r):"<pre>"+s()(r)+"</pre>",onInit:function(t){var r=t.state;e.syncService.state=r,e.syncService.startSync()},onUpdate:function(t){var r=t.state;e.syncService.state=r},extensions:[new x.g({version:e.document.initialVersion,clientID:e.currentSession.id,debounce:200,onSendable:function(t){t.sendable;e.syncService&&e.syncService.sendSteps()}}),new E({"Ctrl-s":function(){return e.syncService.save(),!0}})],enableRichEditing:e.isRichEditor,languages:t}),e.tiptap.on("focus",(function(){e.$emit("focus")})),e.tiptap.on("blur",(function(){e.$emit("blur")})),e.syncService.state=e.tiptap.state}))})).on("sync",(function(t){var r=t.steps,o=t.document;e.hasConnectionIssue=!1;try{e.tiptap.extensions.options.collaboration.update({version:o.currentVersion,steps:r}),e.syncService.state=e.tiptap.state,e.updateLastSavedStatus()}catch(e){console.error("Failed to update steps in collaboration plugin",e)}e.document=o})).on("error",(function(t,r){e.tiptap.setOptions({editable:!1}),t!==y.SAVE_COLLISSION||e.syncError&&e.syncError.type===y.SAVE_COLLISSION||(e.initialLoading=!0,e.syncError={type:t,data:r}),t!==y.CONNECTION_FAILED||e.hasConnectionIssue||(e.hasConnectionIssue=!0,OC.Notification.showTemporary("Connection failed, reconnecting"),!1!==r.retry&&setTimeout(e.reconnect.bind(e),5e3)),t===y.SOURCE_NOT_FOUND&&(e.initialLoading=!1,OC.Notification.showTemporary("Source not found"),e.$emit("close"))})).on("stateChange",(function(t){t.initialLoading&&!e.initialLoading&&(e.initialLoading=!0,e.autofocus&&e.tiptap.focus("start"),e.$emit("ready")),t.hasOwnProperty("dirty")&&(e.dirty=t.dirty)})),null===this.initialSession?this.syncService.open({fileId:this.fileId,filePath:this.relativePath}).catch((function(t){e.hasConnectionIssue=!0})):this.syncService.open({initialSession:this.initialSession}).catch((function(t){e.hasConnectionIssue=!0})),this.forceRecreate=!1}else this.$parent.$emit("error","No valid file provided")},resolveUseThisVersion:function(){this.syncService.forceSave(),this.tiptap.setOptions({editable:!this.readOnly})},resolveUseServerVersion:function(){this.forceRecreate=!0,this.reconnect()},reconnect:function(){var e=this;this.syncService?this.syncService.close().then((function(){e.syncService=null,e.tiptap.destroy(),e.initSession()})).catch((function(e){})):(this.syncService=null,this.tiptap.destroy(),this.initSession())},updateSessions:function(e){this.sessions=e.sort((function(e,t){return t.lastContact-e.lastContact}));var t=this.sessions.map((function(e){return e.userId})),r=this.sessions.map((function(e){return e.guestId})),o=Object.keys(this.filteredSessions).filter((function(e){return!t.includes(e)&&!r.includes(e)}));for(var n in o)i.default.delete(this.filteredSessions,o[n]);for(var s in this.sessions){var a=this.sessions[s],c=a.displayName?a.userId:a.id;this.filteredSessions[c]?this.filteredSessions[c].lastContact<a.lastContact&&i.default.set(this.filteredSessions[c],"lastContact",a.lastContact):i.default.set(this.filteredSessions,c,a),a.id===this.currentSession.id&&i.default.set(this.filteredSessions[c],"isCurrent",!0)}},_keyUpHandler:function(e){var t=e.key||e.keyCode;if((e.ctrlKey||e.metaKey)&&!e.shiftKey&&("f"===t||70===t))return e.stopPropagation(),!0}}},N=(o(479),o(481),o(19)),L=Object(N.a)(R,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"editor-container"}},[e.currentSession&&e.active?r("div",[e.hasSyncCollission?r("p",{staticClass:"msg icon-error"},[e._v("\n\t\t\t"+e._s(e.t("text","The document has been changed outside of the editor. The changes cannot be applied."))+"\n\t\t")]):e._e(),e._v(" "),e.hasConnectionIssue?r("p",{staticClass:"msg icon-error"},[e._v("\n\t\t\t"+e._s(e.t("text","Network connection error: Could not connect to the document"))+" "),r("a",{staticClass:"button primary",on:{click:e.reconnect}},[e._v(e._s(e.t("text","Retry")))])]):e._e()]):e._e(),e._v(" "),e.currentSession&&e.active?r("div",{class:{"has-conflicts":e.hasSyncCollission,"icon-loading":!e.initialLoading,richEditor:e.isRichEditor},attrs:{id:"editor-wrapper"}},[r("div",{attrs:{id:"editor"}},[e.syncError||e.readOnly?e._e():r("MenuBar",{ref:"menubar",attrs:{editor:e.tiptap,"is-rich-editor":e.isRichEditor,"is-public":e.isPublic,autohide:e.autohide}},[e.currentSession&&e.active?r("div",{attrs:{id:"editor-session-list"}},[r("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.lastSavedStatusTooltip,expression:"lastSavedStatusTooltip"}],staticClass:"save-status",class:e.lastSavedStatusClass},[e._v("\n\t\t\t\t\t\t"+e._s(e.lastSavedStatus)+"\n\t\t\t\t\t")]),e._v(" "),r("SessionList",{attrs:{sessions:e.filteredSessions}},[e.isPublic&&e.currentSession.guestName?r("GuestNameDialog",{attrs:{"sync-service":e.syncService}}):e._e()],1)],1):e._e(),e._v(" "),e._t("header")],2),e._v(" "),r("div",[!e.readOnly&&e.isRichEditor?r("MenuBubble",{attrs:{editor:e.tiptap}}):e._e(),e._v(" "),r("EditorContent",{directives:[{name:"show",rawName:"v-show",value:e.initialLoading,expression:"initialLoading"}],staticClass:"editor__content",attrs:{editor:e.tiptap}})],1)],1),e._v(" "),e.hasSyncCollission?r("ReadOnlyEditor",{attrs:{content:e.syncError.data.outsideChange,"is-rich-editor":e.isRichEditor}}):e._e()],1):e._e(),e._v(" "),e.hasSyncCollission&&!e.readOnly?r("CollisionResolveDialog",{on:{resolveUseThisVersion:e.resolveUseThisVersion,resolveUseServerVersion:e.resolveUseServerVersion}}):e._e()],1)}),[],!1,null,"a78b8c7c",null);
+ */var E=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),_(this,O(t).apply(this,arguments))}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&M(e,t)}(t,e),r=t,(o=[{key:"keys",value:function(e){return e.schema,this.options}},{key:"name",get:function(){return"save"}}])&&S(r.prototype,o),i&&S(r,i),t}(k.e),C={data:function(){return{isMobile:this._isMobile()}},beforeMount:function(){window.addEventListener("resize",this._onResize)},beforeDestroy:function(){window.removeEventListener("resize",this._onResize)},methods:{_onResize:function(){this.isMobile=this._isMobile()},_isMobile:function(){return document.documentElement.clientWidth<768}}},I=o(179),T=o.n(I),R={name:"EditorWrapper",components:{EditorContent:k.b,MenuBar:function(){return Promise.all([o.e(1),o.e(200),o.e(193)]).then(o.bind(null,520))},MenuBubble:function(){return Promise.all([o.e(1),o.e(200),o.e(193)]).then(o.bind(null,522))},ReadOnlyEditor:function(){return Promise.all([o.e(0),o.e(189),o.e(188),o.e(199),o.e(190)]).then(o.bind(null,519))},CollisionResolveDialog:function(){return Promise.all([o.e(0),o.e(189),o.e(188),o.e(199),o.e(190)]).then(o.bind(null,523))},GuestNameDialog:function(){return Promise.all([o.e(1),o.e(187),o.e(192)]).then(o.bind(null,524))},SessionList:function(){return Promise.all([o.e(1),o.e(187),o.e(191)]).then(o.bind(null,525))}},directives:{Tooltip:T.a},mixins:[C],props:{initialSession:{type:Object,default:null},relativePath:{type:String,default:null},fileId:{type:Number,default:null},active:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!0},shareToken:{type:String,default:null},mime:{type:String,default:null},autohide:{type:Boolean,default:!1},isDirectEditing:{type:Boolean,default:!1}},data:function(){return{tiptap:null,syncService:null,document:null,sessions:[],currentSession:null,filteredSessions:{},dirty:!1,initialLoading:!1,lastSavedString:"",syncError:null,hasConnectionIssue:!1,readOnly:!0,forceRecreate:!1,saveStatusPolling:null}},computed:{lastSavedStatus:function(){var e=this.dirtyStateIndicator?"*":"";return this.isMobile||(e+=this.lastSavedString),e},lastSavedStatusClass:function(){return this.syncError&&""!==this.lastSavedString?"error":""},dirtyStateIndicator:function(){return this.hasUnpushedChanges||this.hasUnsavedChanges},lastSavedStatusTooltip:function(){var e=t("text","Last save {lastSave}",{lastSave:this.lastSavedString});return this.hasSyncCollission&&(e=t("text","The document has been changed outside of the editor. The changes cannot be applied.")),this.hasUnpushedChanges&&(e+=" - "+t("text","Unpushed changes")),this.hasUnsavedChanges&&(e+=" - "+t("text","Unsaved changes")),{content:e,placement:"bottom"}},hasSyncCollission:function(){return this.syncError&&this.syncError.type===y.SAVE_COLLISSION},hasUnpushedChanges:function(){return this.dirty},hasUnsavedChanges:function(){return this.document&&this.document.lastSavedVersion<this.document.currentVersion},backendUrl:function(){var e=this;return function(t){return Object(l.b)(t,!!e.shareToken)}},hasDocumentParameters:function(){return this.fileId||this.shareToken||this.initialSession},isPublic:function(){return this.isDirectEditing||document.getElementById("isPublic")&&"1"===document.getElementById("isPublic").value},isRichEditor:function(){return"text/markdown"===this.mime},fileExtension:function(){return this.relativePath?this.relativePath.split("/").pop().split(".").pop():"txt"}},watch:{lastSavedStatus:function(){this.$refs.menubar&&this.$refs.menubar.redrawMenuBar()}},mounted:function(){this.active&&this.hasDocumentParameters&&this.initSession(),this.$parent.$emit("update:loaded",!0)},created:function(){var e=this;this.saveStatusPolling=setInterval((function(){e.updateLastSavedStatus()}),2e3),document.addEventListener("keydown",this._keyUpHandler,!0)},beforeDestroy:function(){var e=this;document.removeEventListener("keydown",this._keyUpHandler,!0),clearInterval(this.saveStatusPolling),this.currentSession&&this.syncService&&this.syncService.close().then((function(){e.currentSession=null,e.syncService=null})).catch((function(e){}))},methods:{updateLastSavedStatus:function(){this.document&&(this.lastSavedString=window.moment(1e3*this.document.lastSavedVersionTime).fromNow())},initSession:function(){var e=this;if(this.hasDocumentParameters){var t=localStorage.getItem("nick")?localStorage.getItem("nick"):Object(l.c)();this.syncService=new g({shareToken:this.shareToken,filePath:this.relativePath,guestName:t,forceRecreate:this.forceRecreate,serialize:function(t){if(e.isRichEditor){var r=Object(j.b)(e.tiptap.nodes,e.tiptap.marks).serialize(t);return console.debug("serialized document",{markdown:r}),r}var o=Object(j.e)(e.tiptap);return console.debug("serialized document",{file:o}),o}}).on("opened",(function(t){var r=t.document,o=t.session;e.currentSession=o,e.document=r,e.readOnly=r.readOnly,localStorage.setItem("nick",e.currentSession.guestName)})).on("change",(function(t){var r=t.document,o=t.sessions;""===e.document.baseVersionEtag||r.baseVersionEtag===e.document.baseVersionEtag?(e.updateSessions.bind(e)(o),e.document=r,e.syncError=null,e.tiptap.setOptions({editable:!e.readOnly})):e.resolveUseServerVersion()})).on("loaded",(function(t){var r=t.documentSource;e.hasConnectionIssue=!1,Object(j.c)(w[e.fileExtension]?w[e.fileExtension]:e.fileExtension).then((function(t){e.tiptap=Object(j.a)({content:e.isRichEditor?j.d.render(r):"<pre>"+s()(r)+"</pre>",onInit:function(t){var r=t.state;e.syncService.state=r,e.syncService.startSync()},onUpdate:function(t){var r=t.state;e.syncService.state=r},extensions:[new x.g({version:e.document.initialVersion,clientID:e.currentSession.id,debounce:200,onSendable:function(t){t.sendable;e.syncService&&e.syncService.sendSteps()}}),new E({"Ctrl-s":function(){return e.syncService.save(),!0}})],enableRichEditing:e.isRichEditor,languages:t}),e.tiptap.on("focus",(function(){e.$emit("focus")})),e.tiptap.on("blur",(function(){e.$emit("blur")})),e.syncService.state=e.tiptap.state}))})).on("sync",(function(t){var r=t.steps,o=t.document;e.hasConnectionIssue=!1;try{e.tiptap.extensions.options.collaboration.update({version:o.currentVersion,steps:r}),e.syncService.state=e.tiptap.state,e.updateLastSavedStatus()}catch(e){console.error("Failed to update steps in collaboration plugin",e)}e.document=o})).on("error",(function(t,r){e.tiptap.setOptions({editable:!1}),t!==y.SAVE_COLLISSION||e.syncError&&e.syncError.type===y.SAVE_COLLISSION||(e.initialLoading=!0,e.syncError={type:t,data:r}),t!==y.CONNECTION_FAILED||e.hasConnectionIssue||(e.hasConnectionIssue=!0,OC.Notification.showTemporary("Connection failed, reconnecting"),!1!==r.retry&&setTimeout(e.reconnect.bind(e),5e3)),t===y.SOURCE_NOT_FOUND&&(e.initialLoading=!1,e.$emit("close"),e.$emit("error"))})).on("stateChange",(function(t){t.initialLoading&&!e.initialLoading&&(e.initialLoading=!0,e.autofocus&&e.tiptap.focus("start"),e.$emit("ready")),t.hasOwnProperty("dirty")&&(e.dirty=t.dirty)})),null===this.initialSession?this.syncService.open({fileId:this.fileId,filePath:this.relativePath}).catch((function(t){e.hasConnectionIssue=!0})):this.syncService.open({initialSession:this.initialSession}).catch((function(t){e.hasConnectionIssue=!0})),this.forceRecreate=!1}else this.$parent.$emit("error","No valid file provided")},resolveUseThisVersion:function(){this.syncService.forceSave(),this.tiptap.setOptions({editable:!this.readOnly})},resolveUseServerVersion:function(){this.forceRecreate=!0,this.reconnect()},reconnect:function(){var e=this;this.syncService?this.syncService.close().then((function(){e.syncService=null,e.tiptap.destroy(),e.initSession()})).catch((function(e){})):(this.syncService=null,this.tiptap.destroy(),this.initSession())},updateSessions:function(e){this.sessions=e.sort((function(e,t){return t.lastContact-e.lastContact}));var t=this.sessions.map((function(e){return e.userId})),r=this.sessions.map((function(e){return e.guestId})),o=Object.keys(this.filteredSessions).filter((function(e){return!t.includes(e)&&!r.includes(e)}));for(var n in o)i.default.delete(this.filteredSessions,o[n]);for(var s in this.sessions){var a=this.sessions[s],c=a.displayName?a.userId:a.id;this.filteredSessions[c]?this.filteredSessions[c].lastContact<a.lastContact&&i.default.set(this.filteredSessions[c],"lastContact",a.lastContact):i.default.set(this.filteredSessions,c,a),a.id===this.currentSession.id&&i.default.set(this.filteredSessions[c],"isCurrent",!0)}},_keyUpHandler:function(e){var t=e.key||e.keyCode;if((e.ctrlKey||e.metaKey)&&!e.shiftKey&&("f"===t||70===t))return e.stopPropagation(),!0}}},N=(o(479),o(481),o(19)),L=Object(N.a)(R,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"editor-container"}},[e.currentSession&&e.active?r("div",[e.hasSyncCollission?r("p",{staticClass:"msg icon-error"},[e._v("\n\t\t\t"+e._s(e.t("text","The document has been changed outside of the editor. The changes cannot be applied."))+"\n\t\t")]):e._e(),e._v(" "),e.hasConnectionIssue?r("p",{staticClass:"msg icon-info"},[e._v("\n\t\t\t"+e._s(e.t("text","File could not be loaded. Please check your internet connection."))+" "),r("a",{staticClass:"button primary",on:{click:e.reconnect}},[e._v(e._s(e.t("text","Retry")))])]):e._e()]):e._e(),e._v(" "),e.currentSession&&e.active?r("div",{class:{"has-conflicts":e.hasSyncCollission,"icon-loading":!e.initialLoading||e.hasConnectionIssue,richEditor:e.isRichEditor},attrs:{id:"editor-wrapper"}},[r("div",{attrs:{id:"editor"}},[e.syncError||e.readOnly?e._e():r("MenuBar",{ref:"menubar",attrs:{editor:e.tiptap,"is-rich-editor":e.isRichEditor,"is-public":e.isPublic,autohide:e.autohide}},[e.currentSession&&e.active?r("div",{attrs:{id:"editor-session-list"}},[r("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.lastSavedStatusTooltip,expression:"lastSavedStatusTooltip"}],staticClass:"save-status",class:e.lastSavedStatusClass},[e._v("\n\t\t\t\t\t\t"+e._s(e.lastSavedStatus)+"\n\t\t\t\t\t")]),e._v(" "),r("SessionList",{attrs:{sessions:e.filteredSessions}},[e.isPublic&&e.currentSession.guestName?r("GuestNameDialog",{attrs:{"sync-service":e.syncService}}):e._e()],1)],1):e._e(),e._v(" "),e._t("header")],2),e._v(" "),r("div",[!e.readOnly&&e.isRichEditor?r("MenuBubble",{attrs:{editor:e.tiptap}}):e._e(),e._v(" "),r("EditorContent",{directives:[{name:"show",rawName:"v-show",value:e.initialLoading,expression:"initialLoading"}],staticClass:"editor__content",attrs:{editor:e.tiptap}})],1)],1),e._v(" "),e.hasSyncCollission?r("ReadOnlyEditor",{attrs:{content:e.syncError.data.outsideChange,"is-rich-editor":e.isRichEditor}}):e._e()],1):e._e(),e._v(" "),e.hasSyncCollission&&!e.readOnly?r("CollisionResolveDialog",{on:{resolveUseThisVersion:e.resolveUseThisVersion,resolveUseServerVersion:e.resolveUseServerVersion}}):e._e()],1)}),[],!1,null,"3809e52c",null);
/*
* @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
*
@@ -189,7 +189,7 @@ var b={shareToken:null,forceRecreate:!1,serialize:function(e){return e}},y={SAVE
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
- */var $=0,F=1,G=function(e,t){return Object(z.findParentNode)((function(t){return t.type===e.nodes.list_item}))(t)},H=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),V(this,B(t).apply(this,arguments))}var r,i,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&q(e,t)}(t,e),r=t,(i=[{key:"commands",value:function(e){var t=e.type,r=e.schema;return{bullet_list_item:function(){return function(e,o,i){return Object(C.q)(r.nodes.bullet_list,t)(e,o,i)}},todo_item:function(){return function(e,r,o){var i=e.schema,n=e.selection,s=n.$from,a=n.$to,c=s.blockRange(a),l=e.tr,d=G(i,n);if(void 0===d&&(Object(C.q)(i.nodes.bullet_list,t)(e,(function(e){l=e}),o),d=G(i,l.selection)),!c||void 0===d)return!1;l.setNodeMarkup(d.pos,i.nodes.list_item,{type:d.node.attrs.type===F?$:F}),l.scrollIntoView(),r&&r(l)}}}}},{key:"defaultOptions",get:function(){return{nested:!0}}},{key:"schema",get:function(){return{attrs:{done:{default:!1},type:{default:$}},draggable:!0,content:"paragraph block*",toDOM:function(e){if(e.attrs.type===$)return["li",0];var t={type:"checkbox",class:"checkbox"};return e.attrs.done&&(t.checked=!0),["li",["input",t],["label",{class:"checkbox-label"},["div",{class:"checkbox-wrapper"},0]]]},parseDOM:[{priority:100,tag:"li",getAttrs:function(e){var t=e.querySelector("input[type=checkbox]");return{done:t&&t.checked,type:t?F:$}}}],toMarkdown:function(e,t){t.attrs.type===F&&e.write("[".concat(t.attrs.done?"x":" ","] ")),e.renderContent(t)}}}},{key:"plugins",get:function(){return[new o.h({props:{handleClick:function(e,t,r){var o=e.state,i=o.schema,n=o.selection,s=n.$from,a=n.$to;if(!s.blockRange(a))return!1;var c=Object(z.findParentNode)((function(e){return e.type===i.nodes.list_item}))(n),l="label"===r.target.tagName.toLowerCase();if(void 0!==c&&c.node.attrs.type===F&&l){var d=o.tr;d.setNodeMarkup(c.pos,i.nodes.list_item,{done:!c.node.attrs.done,type:F}),e.dispatch(d)}}}})]}}])&&U(r.prototype,i),n&&U(r,n),t}(i.o),W=r(377),J=r.n(W),K=r(410),Y=r.n(K),Z=r(411);function Q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var r=[],o=!0,i=!1,n=void 0;try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(r.push(s.value),!t||r.length!==t);o=!0);}catch(e){i=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(i)throw n}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function X(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function te(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(r),!0).forEach((function(t){re(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ee(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function re(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oe(e,t,r,o,i,n,s){try{var a=e[n](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(o,i)}r.d(t,"d",(function(){return se})),r.d(t,"a",(function(){return ne})),r.d(t,"b",(function(){return ce})),r.d(t,"e",(function(){return le})),r.d(t,"c",(function(){return ie}));
+ */var F=0,$=1,G=function(e,t){return Object(z.findParentNode)((function(t){return t.type===e.nodes.list_item}))(t)},H=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),V(this,B(t).apply(this,arguments))}var r,i,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&q(e,t)}(t,e),r=t,(i=[{key:"commands",value:function(e){var t=e.type,r=e.schema;return{bullet_list_item:function(){return function(e,o,i){return Object(C.q)(r.nodes.bullet_list,t)(e,o,i)}},todo_item:function(){return function(e,r,o){var i=e.schema,n=e.selection,s=n.$from,a=n.$to,c=s.blockRange(a),l=e.tr,d=G(i,n);if(void 0===d&&(Object(C.q)(i.nodes.bullet_list,t)(e,(function(e){l=e}),o),d=G(i,l.selection)),!c||void 0===d)return!1;l.setNodeMarkup(d.pos,i.nodes.list_item,{type:d.node.attrs.type===$?F:$}),l.scrollIntoView(),r&&r(l)}}}}},{key:"defaultOptions",get:function(){return{nested:!0}}},{key:"schema",get:function(){return{attrs:{done:{default:!1},type:{default:F}},draggable:!0,content:"paragraph block*",toDOM:function(e){if(e.attrs.type===F)return["li",0];var t={type:"checkbox",class:"checkbox"};return e.attrs.done&&(t.checked=!0),["li",["input",t],["label",{class:"checkbox-label"},["div",{class:"checkbox-wrapper"},0]]]},parseDOM:[{priority:100,tag:"li",getAttrs:function(e){var t=e.querySelector("input[type=checkbox]");return{done:t&&t.checked,type:t?$:F}}}],toMarkdown:function(e,t){t.attrs.type===$&&e.write("[".concat(t.attrs.done?"x":" ","] ")),e.renderContent(t)}}}},{key:"plugins",get:function(){return[new o.h({props:{handleClick:function(e,t,r){var o=e.state,i=o.schema,n=o.selection,s=n.$from,a=n.$to;if(!s.blockRange(a))return!1;var c=Object(z.findParentNode)((function(e){return e.type===i.nodes.list_item}))(n),l="label"===r.target.tagName.toLowerCase();if(void 0!==c&&c.node.attrs.type===$&&l){var d=o.tr;d.setNodeMarkup(c.pos,i.nodes.list_item,{done:!c.node.attrs.done,type:$}),e.dispatch(d)}}}})]}}])&&U(r.prototype,i),n&&U(r,n),t}(i.o),W=r(377),J=r.n(W),K=r(410),Y=r.n(K),Z=r(411);function Q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var r=[],o=!0,i=!1,n=void 0;try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(r.push(s.value),!t||r.length!==t);o=!0);}catch(e){i=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(i)throw n}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function X(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function te(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(r),!0).forEach((function(t){re(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ee(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function re(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oe(e,t,r,o,i,n,s){try{var a=e[n](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(o,i)}r.d(t,"d",(function(){return se})),r.d(t,"a",(function(){return ne})),r.d(t,"b",(function(){return ce})),r.d(t,"e",(function(){return le})),r.d(t,"c",(function(){return ie}));
/*
* @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
*
@@ -211,5 +211,5 @@ var b={shareToken:null,forceRecreate:!1,serialize:function(e){return e}},y={SAVE
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-var ie=function(){var e,t=(e=regeneratorRuntime.mark((function e(t){var o,i,n,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=[t],i={},n=0;case 3:if(!(n<o.length)){e.next=17;break}return e.prev=4,e.next=7,r(381)("./"+o[n]);case 7:s=e.sent,i[o[n]]=s.default,e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(4),e.abrupt("return",void 0);case 14:n++,e.next=3;break;case 17:if(0!==Object.keys(i).length||i.constructor!==Object){e.next=19;break}return e.abrupt("return",void 0);case 19:return e.abrupt("return",{languages:i});case 20:case"end":return e.stop()}}),e,null,[[4,11]])})),function(){var t=this,r=arguments;return new Promise((function(o,i){var n=e.apply(t,r);function s(e){oe(n,o,i,s,a,"next",e)}function a(e){oe(n,o,i,s,a,"throw",e)}s(void 0)}))});return function(e){return t.apply(this,arguments)}}(),ne=function(e){var t=e.content,r=e.onInit,n=e.onUpdate,s=e.extensions,a=e.enableRichEditing,c=e.languages,l=[];return l=a?[new i.i,new i.d,new h,new f,new v,new i.h,new i.k,new i.c,new i.p,new i.a,new i.e,new H,new i.n,new E,new i.q({emptyNodeClass:"is-empty",emptyNodeText:"Add notes, lists or links …",showOnlyWhenEditable:!0})]:[new D,new o.j,new i.f(te({},c))],s=s||[],new o.a({content:t,onInit:r,onUpdate:n,extensions:[].concat(X(l),[new i.j]).concat(s),useBuiltInExtensions:a})},se=J()("commonmark",{html:!1,breaks:!1}).enable("strikethrough").use(Y.a,{enable:!0,labelAfter:!0}),ae=function(e){this.message=e},ce=function(e,t){var r=Object.entries(e).filter((function(e){return Q(e,2)[1].toMarkdown})).reduce((function(e,t){var r=Q(t,2);return te({},e,re({},r[0],r[1].toMarkdown))}),{}),o=Object.entries(t).filter((function(e){return Q(e,2)[1].toMarkdown})).reduce((function(e,t){var r=Q(t,2);return te({},e,re({},r[0],r[1].toMarkdown))}),{});return{serializer:new Z.a(te({},Z.b.nodes,{},r),te({},Z.b.marks,{},o)),serialize:function(e,t){return this.serializer.serialize(e,te({},t,{tightLists:!0})).split("\\[").join("[").split("\\]").join("]")}}},le=function(e){var t=e.getJSON();if(1!==t.content.length||void 0===t.content[0].content||1!==t.content[0].content.length){if("code_block"===t.content[0].type&&void 0===t.content[0].content)return"";throw new ae("Failed to serialize document to plain text")}var r=t.content[0].content[0];if("text"!==r.type)throw new ae("Failed to serialize document to plain text");return r.text}},375:function(e,t,r){"use strict";var o=r(173);r.n(o).a},376:function(e,t,r){(t=r(86)(!1)).push([e.i,".image[data-v-2ac49a8a]{margin:0;padding:0}.image__caption[data-v-2ac49a8a]{text-align:center;color:var(--color-text-lighter)}.image__caption input[type='text'][data-v-2ac49a8a]{width:100%;border:none;text-align:center}.icon-image[data-v-2ac49a8a]{margin-top:10px;height:32px;padding:20px;background-size:contain}.image__loading[data-v-2ac49a8a]{height:100px}.image__placeholder .image__main[data-v-2ac49a8a]{background-color:var(--color-background-dark);text-align:center;padding:20px;border-radius:var(--border-radius)}.image__placeholder .image__main .icon-image[data-v-2ac49a8a]{opacity:0.7}.fade-enter-active[data-v-2ac49a8a]{transition:opacity .3s ease-in-out}.fade-enter-to[data-v-2ac49a8a]{opacity:1}.fade-enter[data-v-2ac49a8a]{opacity:0}\n",""]),e.exports=t},381:function(e,t,r){var o={"./1c":[186,2],"./1c.js":[186,2],"./abnf":[187,3],"./abnf.js":[187,3],"./accesslog":[188,4],"./accesslog.js":[188,4],"./actionscript":[189,5],"./actionscript.js":[189,5],"./ada":[190,6],"./ada.js":[190,6],"./angelscript":[191,7],"./angelscript.js":[191,7],"./apache":[192,8],"./apache.js":[192,8],"./applescript":[193,9],"./applescript.js":[193,9],"./arcade":[194,10],"./arcade.js":[194,10],"./arduino":[195,11],"./arduino.js":[195,11],"./armasm":[196,12],"./armasm.js":[196,12],"./asciidoc":[197,13],"./asciidoc.js":[197,13],"./aspectj":[198,14],"./aspectj.js":[198,14],"./autohotkey":[199,15],"./autohotkey.js":[199,15],"./autoit":[200,16],"./autoit.js":[200,16],"./avrasm":[201,17],"./avrasm.js":[201,17],"./awk":[202,18],"./awk.js":[202,18],"./axapta":[203,19],"./axapta.js":[203,19],"./bash":[204,20],"./bash.js":[204,20],"./basic":[205,21],"./basic.js":[205,21],"./bnf":[206,22],"./bnf.js":[206,22],"./brainfuck":[207,23],"./brainfuck.js":[207,23],"./cal":[208,24],"./cal.js":[208,24],"./capnproto":[209,25],"./capnproto.js":[209,25],"./ceylon":[210,26],"./ceylon.js":[210,26],"./clean":[211,27],"./clean.js":[211,27],"./clojure":[213,28],"./clojure-repl":[212,29],"./clojure-repl.js":[212,29],"./clojure.js":[213,28],"./cmake":[214,30],"./cmake.js":[214,30],"./coffeescript":[215,31],"./coffeescript.js":[215,31],"./coq":[216,32],"./coq.js":[216,32],"./cos":[217,33],"./cos.js":[217,33],"./cpp":[218,34],"./cpp.js":[218,34],"./crmsh":[219,35],"./crmsh.js":[219,35],"./crystal":[220,36],"./crystal.js":[220,36],"./cs":[221,37],"./cs.js":[221,37],"./csp":[222,38],"./csp.js":[222,38],"./css":[223,39],"./css.js":[223,39],"./d":[224,40],"./d.js":[224,40],"./dart":[225,41],"./dart.js":[225,41],"./delphi":[226,42],"./delphi.js":[226,42],"./diff":[227,43],"./diff.js":[227,43],"./django":[228,44],"./django.js":[228,44],"./dns":[229,45],"./dns.js":[229,45],"./dockerfile":[230,46],"./dockerfile.js":[230,46],"./dos":[231,47],"./dos.js":[231,47],"./dsconfig":[232,48],"./dsconfig.js":[232,48],"./dts":[233,49],"./dts.js":[233,49],"./dust":[234,50],"./dust.js":[234,50],"./ebnf":[235,51],"./ebnf.js":[235,51],"./elixir":[236,52],"./elixir.js":[236,52],"./elm":[237,53],"./elm.js":[237,53],"./erb":[238,54],"./erb.js":[238,54],"./erlang":[240,55],"./erlang-repl":[239,56],"./erlang-repl.js":[239,56],"./erlang.js":[240,55],"./excel":[241,57],"./excel.js":[241,57],"./fix":[242,58],"./fix.js":[242,58],"./flix":[243,59],"./flix.js":[243,59],"./fortran":[244,60],"./fortran.js":[244,60],"./fsharp":[245,61],"./fsharp.js":[245,61],"./gams":[246,62],"./gams.js":[246,62],"./gauss":[247,63],"./gauss.js":[247,63],"./gcode":[248,64],"./gcode.js":[248,64],"./gherkin":[249,65],"./gherkin.js":[249,65],"./glsl":[250,66],"./glsl.js":[250,66],"./gml":[251,67],"./gml.js":[251,67],"./go":[252,68],"./go.js":[252,68],"./golo":[253,69],"./golo.js":[253,69],"./gradle":[254,70],"./gradle.js":[254,70],"./groovy":[255,71],"./groovy.js":[255,71],"./haml":[256,72],"./haml.js":[256,72],"./handlebars":[257,73],"./handlebars.js":[257,73],"./haskell":[258,74],"./haskell.js":[258,74],"./haxe":[259,75],"./haxe.js":[259,75],"./hsp":[260,76],"./hsp.js":[260,76],"./htmlbars":[261,77],"./htmlbars.js":[261,77],"./http":[262,78],"./http.js":[262,78],"./hy":[263,79],"./hy.js":[263,79],"./inform7":[264,80],"./inform7.js":[264,80],"./ini":[265,81],"./ini.js":[265,81],"./irpf90":[266,82],"./irpf90.js":[266,82],"./isbl":[267,83],"./isbl.js":[267,83],"./java":[268,84],"./java.js":[268,84],"./javascript":[269,85],"./javascript.js":[269,85],"./jboss-cli":[270,86],"./jboss-cli.js":[270,86],"./json":[271,87],"./json.js":[271,87],"./julia":[273,88],"./julia-repl":[272,89],"./julia-repl.js":[272,89],"./julia.js":[273,88],"./kotlin":[274,90],"./kotlin.js":[274,90],"./lasso":[275,91],"./lasso.js":[275,91],"./ldif":[276,92],"./ldif.js":[276,92],"./leaf":[277,93],"./leaf.js":[277,93],"./less":[278,94],"./less.js":[278,94],"./lisp":[279,95],"./lisp.js":[279,95],"./livecodeserver":[280,96],"./livecodeserver.js":[280,96],"./livescript":[281,97],"./livescript.js":[281,97],"./llvm":[282,98],"./llvm.js":[282,98],"./lsl":[283,99],"./lsl.js":[283,99],"./lua":[284,100],"./lua.js":[284,100],"./makefile":[285,101],"./makefile.js":[285,101],"./markdown":[286,102],"./markdown.js":[286,102],"./mathematica":[287,103],"./mathematica.js":[287,103],"./matlab":[288,104],"./matlab.js":[288,104],"./maxima":[289,105],"./maxima.js":[289,105],"./mel":[290,106],"./mel.js":[290,106],"./mercury":[291,107],"./mercury.js":[291,107],"./mipsasm":[292,108],"./mipsasm.js":[292,108],"./mizar":[293,109],"./mizar.js":[293,109],"./mojolicious":[294,110],"./mojolicious.js":[294,110],"./monkey":[295,111],"./monkey.js":[295,111],"./moonscript":[296,112],"./moonscript.js":[296,112],"./n1ql":[297,113],"./n1ql.js":[297,113],"./nginx":[298,114],"./nginx.js":[298,114],"./nimrod":[299,115],"./nimrod.js":[299,115],"./nix":[300,116],"./nix.js":[300,116],"./nsis":[301,117],"./nsis.js":[301,117],"./objectivec":[302,118],"./objectivec.js":[302,118],"./ocaml":[303,119],"./ocaml.js":[303,119],"./openscad":[304,120],"./openscad.js":[304,120],"./oxygene":[305,121],"./oxygene.js":[305,121],"./parser3":[306,122],"./parser3.js":[306,122],"./perl":[307,123],"./perl.js":[307,123],"./pf":[308,124],"./pf.js":[308,124],"./pgsql":[309,125],"./pgsql.js":[309,125],"./php":[310,126],"./php.js":[310,126],"./plaintext":[311,127],"./plaintext.js":[311,127],"./pony":[312,128],"./pony.js":[312,128],"./powershell":[313,129],"./powershell.js":[313,129],"./processing":[314,130],"./processing.js":[314,130],"./profile":[315,131],"./profile.js":[315,131],"./prolog":[316,132],"./prolog.js":[316,132],"./properties":[317,133],"./properties.js":[317,133],"./protobuf":[318,134],"./protobuf.js":[318,134],"./puppet":[319,135],"./puppet.js":[319,135],"./purebasic":[320,136],"./purebasic.js":[320,136],"./python":[321,137],"./python.js":[321,137],"./q":[322,138],"./q.js":[322,138],"./qml":[323,139],"./qml.js":[323,139],"./r":[324,140],"./r.js":[324,140],"./reasonml":[325,141],"./reasonml.js":[325,141],"./rib":[326,142],"./rib.js":[326,142],"./roboconf":[327,143],"./roboconf.js":[327,143],"./routeros":[328,144],"./routeros.js":[328,144],"./rsl":[329,145],"./rsl.js":[329,145],"./ruby":[330,146],"./ruby.js":[330,146],"./ruleslanguage":[331,147],"./ruleslanguage.js":[331,147],"./rust":[332,148],"./rust.js":[332,148],"./sas":[333,149],"./sas.js":[333,149],"./scala":[334,150],"./scala.js":[334,150],"./scheme":[335,151],"./scheme.js":[335,151],"./scilab":[336,152],"./scilab.js":[336,152],"./scss":[337,153],"./scss.js":[337,153],"./shell":[338,154],"./shell.js":[338,154],"./smali":[339,155],"./smali.js":[339,155],"./smalltalk":[340,156],"./smalltalk.js":[340,156],"./sml":[341,157],"./sml.js":[341,157],"./sqf":[342,158],"./sqf.js":[342,158],"./sql":[343,159],"./sql.js":[343,159],"./stan":[344,160],"./stan.js":[344,160],"./stata":[345,161],"./stata.js":[345,161],"./step21":[346,162],"./step21.js":[346,162],"./stylus":[347,163],"./stylus.js":[347,163],"./subunit":[348,164],"./subunit.js":[348,164],"./swift":[349,165],"./swift.js":[349,165],"./taggerscript":[350,166],"./taggerscript.js":[350,166],"./tap":[351,167],"./tap.js":[351,167],"./tcl":[352,168],"./tcl.js":[352,168],"./tex":[353,169],"./tex.js":[353,169],"./thrift":[354,170],"./thrift.js":[354,170],"./tp":[355,171],"./tp.js":[355,171],"./twig":[356,172],"./twig.js":[356,172],"./typescript":[357,173],"./typescript.js":[357,173],"./vala":[358,174],"./vala.js":[358,174],"./vbnet":[359,175],"./vbnet.js":[359,175],"./vbscript":[361,176],"./vbscript-html":[360,177],"./vbscript-html.js":[360,177],"./vbscript.js":[361,176],"./verilog":[362,178],"./verilog.js":[362,178],"./vhdl":[363,179],"./vhdl.js":[363,179],"./vim":[364,180],"./vim.js":[364,180],"./x86asm":[365,181],"./x86asm.js":[365,181],"./xl":[366,182],"./xl.js":[366,182],"./xml":[367,183],"./xml.js":[367,183],"./xquery":[368,184],"./xquery.js":[368,184],"./yaml":[369,185],"./yaml.js":[369,185],"./zephir":[370,186],"./zephir.js":[370,186]};function i(e){if(!r.o(o,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=o[e],i=t[0];return r.e(t[1]).then((function(){return r.t(i,7)}))}i.keys=function(){return Object.keys(o)},i.id=381,e.exports=i},382:function(e,t,r){var o=r(480);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,r(87).default)("f7705cfa",o,!0,{})},383:function(e,t,r){var o=r(482);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,r(87).default)("5039213c",o,!0,{})},384:function(e,t,r){var o=r(484);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,r(87).default)("52530ccf",o,!0,{})},385:function(e,t,r){"use strict";var o=r(174);r.n(o).a},386:function(e,t,r){(t=r(86)(!1)).push([e.i,'#read-only-editor{overflow:scroll}#read-only-editor div.ProseMirror{margin-top:44px;height:100%;position:relative;word-wrap:break-word;white-space:pre-wrap;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;padding:4px 8px 200px 14px;line-height:150%;font-size:14px;outline:none}#read-only-editor div.ProseMirror[contenteditable=true],#read-only-editor div.ProseMirror[contenteditable=false]{border:none !important;width:100%;background-color:transparent;color:var(--color-main-text);opacity:1;-webkit-user-select:text;user-select:text;font-size:14px}#read-only-editor div.ProseMirror li label.checkbox-label{width:100%;display:flex;margin-top:10px;margin-bottom:1em}#read-only-editor div.ProseMirror li label.checkbox-label:before{position:relative;top:2px}#read-only-editor div.ProseMirror li label.checkbox-label div.checkbox-wrapper{margin-bottom:-1em;width:100%}#read-only-editor div.ProseMirror li label.checkbox-label div.checkbox-wrapper>p{margin-top:-1px;margin-bottom:0;padding-bottom:10px}#read-only-editor div.ProseMirror p:first-child,#read-only-editor div.ProseMirror h1:first-child,#read-only-editor div.ProseMirror h2:first-child,#read-only-editor div.ProseMirror h3:first-child,#read-only-editor div.ProseMirror h4:first-child,#read-only-editor div.ProseMirror h5:first-child,#read-only-editor div.ProseMirror h6:first-child{margin-top:10px}#read-only-editor div.ProseMirror a{color:var(--color-primary-element);text-decoration:underline;padding:.5em 0}#read-only-editor div.ProseMirror p{margin-bottom:1em;line-height:150%}#read-only-editor div.ProseMirror em{font-style:italic}#read-only-editor div.ProseMirror h1,#read-only-editor div.ProseMirror h2,#read-only-editor div.ProseMirror h3,#read-only-editor div.ProseMirror h4,#read-only-editor div.ProseMirror h5,#read-only-editor div.ProseMirror h6{font-weight:600;line-height:120%;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}#read-only-editor div.ProseMirror h1{font-size:36px;margin-top:48px}#read-only-editor div.ProseMirror h2{font-size:28px;margin-top:48px}#read-only-editor div.ProseMirror h3{font-size:24px}#read-only-editor div.ProseMirror h4{font-size:21px}#read-only-editor div.ProseMirror h5{font-size:17px}#read-only-editor div.ProseMirror h6{font-size:14px}#read-only-editor div.ProseMirror img{cursor:default;max-width:100%}#read-only-editor div.ProseMirror hr{padding:2px 0;border:none;margin:1em 0;width:100%}#read-only-editor div.ProseMirror hr:after{content:"";display:block;height:1px;background-color:var(--color-border-dark);line-height:2px}#read-only-editor div.ProseMirror pre{white-space:pre-wrap;background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:1em 1.3em;margin-bottom:1em}#read-only-editor div.ProseMirror p code{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}#read-only-editor div.ProseMirror li{position:relative}#read-only-editor div.ProseMirror ul,#read-only-editor div.ProseMirror ol{padding-left:10px;margin-left:10px}#read-only-editor div.ProseMirror ul li{list-style-type:disc}#read-only-editor div.ProseMirror ul>li>ul>li{list-style-type:circle}#read-only-editor div.ProseMirror ul>li>ul>li ul li{list-style-type:square}#read-only-editor div.ProseMirror blockquote{padding-left:1em;border-left:4px solid var(--color-primary-element);color:var(--color-text-maxcontrast);margin-left:0;margin-right:0}#read-only-editor .ProseMirror-focused .ProseMirror-gapcursor{display:block}#read-only-editor .editor__content p.is-empty:first-child::before{content:attr(data-empty-text);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}.thumbnailContainer #read-only-editor{width:100%}.thumbnailContainer #read-only-editor .ProseMirror{height:auto;margin:0 0 0 0;padding:0}\n',""]),e.exports=t},387:function(e,t,r){"use strict";var o=r(175);r.n(o).a},388:function(e,t,r){(t=r(86)(!1)).push([e.i,'div.ProseMirror{margin-top:44px;height:100%;position:relative;word-wrap:break-word;white-space:pre-wrap;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;padding:4px 8px 200px 14px;line-height:150%;font-size:14px;outline:none}div.ProseMirror[contenteditable=true],div.ProseMirror[contenteditable=false]{border:none !important;width:100%;background-color:transparent;color:var(--color-main-text);opacity:1;-webkit-user-select:text;user-select:text;font-size:14px}div.ProseMirror li label.checkbox-label{width:100%;display:flex;margin-top:10px;margin-bottom:1em}div.ProseMirror li label.checkbox-label:before{position:relative;top:2px}div.ProseMirror li label.checkbox-label div.checkbox-wrapper{margin-bottom:-1em;width:100%}div.ProseMirror li label.checkbox-label div.checkbox-wrapper>p{margin-top:-1px;margin-bottom:0;padding-bottom:10px}div.ProseMirror p:first-child,div.ProseMirror h1:first-child,div.ProseMirror h2:first-child,div.ProseMirror h3:first-child,div.ProseMirror h4:first-child,div.ProseMirror h5:first-child,div.ProseMirror h6:first-child{margin-top:10px}div.ProseMirror a{color:var(--color-primary-element);text-decoration:underline;padding:.5em 0}div.ProseMirror p{margin-bottom:1em;line-height:150%}div.ProseMirror em{font-style:italic}div.ProseMirror h1,div.ProseMirror h2,div.ProseMirror h3,div.ProseMirror h4,div.ProseMirror h5,div.ProseMirror h6{font-weight:600;line-height:120%;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}div.ProseMirror h1{font-size:36px;margin-top:48px}div.ProseMirror h2{font-size:28px;margin-top:48px}div.ProseMirror h3{font-size:24px}div.ProseMirror h4{font-size:21px}div.ProseMirror h5{font-size:17px}div.ProseMirror h6{font-size:14px}div.ProseMirror img{cursor:default;max-width:100%}div.ProseMirror hr{padding:2px 0;border:none;margin:1em 0;width:100%}div.ProseMirror hr:after{content:"";display:block;height:1px;background-color:var(--color-border-dark);line-height:2px}div.ProseMirror pre{white-space:pre-wrap;background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:1em 1.3em;margin-bottom:1em}div.ProseMirror p code{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}div.ProseMirror li{position:relative}div.ProseMirror ul,div.ProseMirror ol{padding-left:10px;margin-left:10px}div.ProseMirror ul li{list-style-type:disc}div.ProseMirror ul>li>ul>li{list-style-type:circle}div.ProseMirror ul>li>ul>li ul li{list-style-type:square}div.ProseMirror blockquote{padding-left:1em;border-left:4px solid var(--color-primary-element);color:var(--color-text-maxcontrast);margin-left:0;margin-right:0}.ProseMirror-focused .ProseMirror-gapcursor{display:block}.editor__content p.is-empty:first-child::before{content:attr(data-empty-text);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}\n',""]),e.exports=t},397:function(e,t,r){var o=r(499);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,r(87).default)("a3c96434",o,!0,{})},479:function(e,t,r){"use strict";var o=r(382);r.n(o).a},480:function(e,t,r){(t=r(86)(!1)).push([e.i,"#editor-container[data-v-a78b8c7c]{display:block;width:100%;max-width:100%;height:100%;left:0;margin:0 auto;position:relative;background-color:var(--color-main-background)}#editor-wrapper[data-v-a78b8c7c]{display:flex;width:100%;height:100%;overflow:hidden;position:absolute}#editor-wrapper .ProseMirror[data-v-a78b8c7c]{margin-top:0 !important}#editor-wrapper.icon-loading #editor[data-v-a78b8c7c]{opacity:0.3}#editor[data-v-a78b8c7c],.editor[data-v-a78b8c7c]{background:var(--color-main-background);color:var(--color-main-text);background-clip:padding-box;border-radius:var(--border-radius);padding:0;position:relative;overflow-y:auto;overflow-x:hidden;width:100%}.msg.icon-error[data-v-a78b8c7c]{padding:12px;border-bottom:1px solid var(--color-error);padding-left:30px;background-position:8px center}.save-status[data-v-a78b8c7c]{padding:9px;text-overflow:ellipsis;color:var(--color-text-lighter)}.save-status.error[data-v-a78b8c7c]{background-color:var(--color-error);color:var(--color-main-background);border-radius:3px}#editor-container #editor-wrapper.has-conflicts[data-v-a78b8c7c]{height:calc(100% - 50px)}#editor-container #editor-wrapper.has-conflicts #editor[data-v-a78b8c7c],#editor-container #editor-wrapper.has-conflicts #read-only-editor[data-v-a78b8c7c]{width:50%;height:100%}#editor-session-list[data-v-a78b8c7c]{padding:4px 16px 4px 4px;display:flex}#editor-session-list input[data-v-a78b8c7c],#editor-session-list div[data-v-a78b8c7c]{vertical-align:middle;margin-left:3px}.editor__content[data-v-a78b8c7c]{max-width:670px;margin:auto;position:relative}#body-public[data-v-a78b8c7c]{height:auto}#files-public-content[data-v-a78b8c7c]{height:auto}#files-public-content #editor-wrapper[data-v-a78b8c7c]{position:relative}#files-public-content #editor-container[data-v-a78b8c7c]{top:0;width:100%}#files-public-content #editor-container #editor[data-v-a78b8c7c] .menubar{position:fixed;top:50px;width:100%}#files-public-content #editor-container #editor[data-v-a78b8c7c]{padding-top:50px;overflow:auto}#files-public-content #editor-container .has-conflicts #editor[data-v-a78b8c7c]{padding-top:0px}.ie #editor[data-v-a78b8c7c] .menubar{position:fixed;top:50px;width:100%}.ie .editor__content[data-v-a78b8c7c] .ProseMirror{padding-top:50px}\n",""]),e.exports=t},481:function(e,t,r){"use strict";var o=r(383);r.n(o).a},482:function(e,t,r){(t=r(86)(!1)).push([e.i,'.modal-container #editor-container{position:absolute}.ProseMirror-hideselection *::selection{background:transparent}.ProseMirror-hideselection *::-moz-selection{background:transparent}.ProseMirror-hideselection{caret-color:transparent}.ProseMirror-selectednode{outline:2px solid #8cf}li.ProseMirror-selectednode{outline:none}li.ProseMirror-selectednode:after{content:"";position:absolute;left:-32px;right:-2px;top:-2px;bottom:-2px;border:2px solid #8cf;pointer-events:none}.has-conflicts .ProseMirror-menubar,#editor-wrapper.icon-loading .ProseMirror-menubar{display:none}.ProseMirror-gapcursor{display:none;pointer-events:none;position:absolute}.ProseMirror-gapcursor:after{content:"";display:block;position:absolute;top:-2px;width:20px;border-top:1px solid var(--color-main-text);animation:ProseMirror-cursor-blink 1.1s steps(2, start) infinite}@keyframes ProseMirror-cursor-blink{to{visibility:hidden}}#editor-wrapper div.ProseMirror{margin-top:44px;height:100%;position:relative;word-wrap:break-word;white-space:pre-wrap;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;padding:4px 8px 200px 14px;line-height:150%;font-size:14px;outline:none}#editor-wrapper div.ProseMirror[contenteditable=true],#editor-wrapper div.ProseMirror[contenteditable=false]{border:none !important;width:100%;background-color:transparent;color:var(--color-main-text);opacity:1;-webkit-user-select:text;user-select:text;font-size:14px}#editor-wrapper div.ProseMirror li label.checkbox-label{width:100%;display:flex;margin-top:10px;margin-bottom:1em}#editor-wrapper div.ProseMirror li label.checkbox-label:before{position:relative;top:2px}#editor-wrapper div.ProseMirror li label.checkbox-label div.checkbox-wrapper{margin-bottom:-1em;width:100%}#editor-wrapper div.ProseMirror li label.checkbox-label div.checkbox-wrapper>p{margin-top:-1px;margin-bottom:0;padding-bottom:10px}#editor-wrapper div.ProseMirror p:first-child,#editor-wrapper div.ProseMirror h1:first-child,#editor-wrapper div.ProseMirror h2:first-child,#editor-wrapper div.ProseMirror h3:first-child,#editor-wrapper div.ProseMirror h4:first-child,#editor-wrapper div.ProseMirror h5:first-child,#editor-wrapper div.ProseMirror h6:first-child{margin-top:10px}#editor-wrapper div.ProseMirror a{color:var(--color-primary-element);text-decoration:underline;padding:.5em 0}#editor-wrapper div.ProseMirror p{margin-bottom:1em;line-height:150%}#editor-wrapper div.ProseMirror em{font-style:italic}#editor-wrapper div.ProseMirror h1,#editor-wrapper div.ProseMirror h2,#editor-wrapper div.ProseMirror h3,#editor-wrapper div.ProseMirror h4,#editor-wrapper div.ProseMirror h5,#editor-wrapper div.ProseMirror h6{font-weight:600;line-height:120%;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}#editor-wrapper div.ProseMirror h1{font-size:36px;margin-top:48px}#editor-wrapper div.ProseMirror h2{font-size:28px;margin-top:48px}#editor-wrapper div.ProseMirror h3{font-size:24px}#editor-wrapper div.ProseMirror h4{font-size:21px}#editor-wrapper div.ProseMirror h5{font-size:17px}#editor-wrapper div.ProseMirror h6{font-size:14px}#editor-wrapper div.ProseMirror img{cursor:default;max-width:100%}#editor-wrapper div.ProseMirror hr{padding:2px 0;border:none;margin:1em 0;width:100%}#editor-wrapper div.ProseMirror hr:after{content:"";display:block;height:1px;background-color:var(--color-border-dark);line-height:2px}#editor-wrapper div.ProseMirror pre{white-space:pre-wrap;background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:1em 1.3em;margin-bottom:1em}#editor-wrapper div.ProseMirror p code{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}#editor-wrapper div.ProseMirror li{position:relative}#editor-wrapper div.ProseMirror ul,#editor-wrapper div.ProseMirror ol{padding-left:10px;margin-left:10px}#editor-wrapper div.ProseMirror ul li{list-style-type:disc}#editor-wrapper div.ProseMirror ul>li>ul>li{list-style-type:circle}#editor-wrapper div.ProseMirror ul>li>ul>li ul li{list-style-type:square}#editor-wrapper div.ProseMirror blockquote{padding-left:1em;border-left:4px solid var(--color-primary-element);color:var(--color-text-maxcontrast);margin-left:0;margin-right:0}#editor-wrapper .ProseMirror-focused .ProseMirror-gapcursor{display:block}#editor-wrapper .editor__content p.is-empty:first-child::before{content:attr(data-empty-text);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}#editor-wrapper:not(.richEditor) .ProseMirror pre{background-color:var(--color-main-background)}#editor-wrapper:not(.richEditor) .ProseMirror pre::before{content:attr(data-language);text-transform:uppercase;display:block;text-align:right;font-weight:bold;font-size:0.6rem}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-comment,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-quote{color:#999999}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-variable,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-template-variable,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-attribute,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-tag,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-name,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-regexp,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-link,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-selector-id,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-selector-class{color:#f2777a}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-number,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-meta,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-built_in,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-builtin-name,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-literal,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-type,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-params{color:#f99157}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-string,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-symbol,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-bullet{color:#99cc99}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-title,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-section{color:#ffcc66}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-keyword,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-selector-tag{color:#6699cc}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-emphasis{font-style:italic}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-strong{font-weight:700}\n',""]),e.exports=t},483:function(e,t,r){"use strict";var o=r(384);r.n(o).a},484:function(e,t,r){(t=r(86)(!1)).push([e.i,"#direct-editor[data-v-2c1879fe]{width:100%;height:100vh}pre[data-v-2c1879fe]{width:100%;max-width:700px;margin:auto;background-color:var(--color-background-dark)}button[data-v-2c1879fe]{width:44px;height:44px;margin:0;background-size:16px;border:0;background-color:transparent;opacity:.5;color:var(--color-main-text);background-position:center center;vertical-align:top}button[data-v-2c1879fe]:hover,button[data-v-2c1879fe]:focus,button[data-v-2c1879fe]:active{background-color:var(--color-background-dark)}button.is-active[data-v-2c1879fe],button[data-v-2c1879fe]:hover,button[data-v-2c1879fe]:focus{opacity:1}button.icon-undo[data-v-2c1879fe],button.icon-redo[data-v-2c1879fe]{opacity:.4}\n",""]),e.exports=t},498:function(e,t,r){"use strict";var o=r(397);r.n(o).a},499:function(e,t,r){(t=r(86)(!1)).push([e.i,"#resolve-conflicts[data-v-7fd0186f]{display:flex;position:fixed;z-index:10000;bottom:0;max-width:900px;width:100vw;margin:auto;padding:20px 0}#resolve-conflicts button[data-v-7fd0186f]{margin:auto;box-shadow:0 0 10px var(--color-box-shadow)}\n",""]),e.exports=t},519:function(e,t,r){"use strict";r.r(t);var o=r(169),i=r(372),n=r.n(i),s=r(371),a={name:"ReadOnlyEditor",components:{EditorContent:o.b},props:{content:{type:String,required:!0},isRichEditor:{type:Boolean,default:!0}},data:function(){return{editor:null}},mounted:function(){this.editor=Object(s.a)({content:this.isRichEditor?s.d.render(this.content):"<pre>"+n()(this.content)+"</pre>",enableRichEditing:this.isRichEditor}),this.editor.setOptions({editable:!1})},beforeDestroy:function(){this.editor.destroy()}},c=(r(385),r(387),r(19)),l=Object(c.a)(a,(function(){var e=this.$createElement,t=this._self._c||e;return this.editor?t("EditorContent",{attrs:{id:"read-only-editor",editor:this.editor}}):this._e()}),[],!1,null,null,null);t.default=l.exports},523:function(e,t,r){"use strict";r.r(t);var o={name:"CollisionResolveDialog"},i=(r(498),r(19)),n=Object(i.a)(o,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"collision-resolve-dialog",attrs:{id:"resolve-conflicts"}},[r("button",{on:{click:function(t){return e.$emit("resolveUseThisVersion")}}},[e._v("\n\t\t"+e._s(e.t("text","Use current version"))+"\n\t")]),e._v(" "),r("button",{on:{click:function(t){return e.$emit("resolveUseServerVersion")}}},[e._v("\n\t\t"+e._s(e.t("text","Use the saved version"))+"\n\t")])])}),[],!1,null,"7fd0186f",null);t.default=n.exports}}]);
-//# sourceMappingURL=editor.js.map?v=6e14b641085af8154693 \ No newline at end of file
+var ie=function(){var e,t=(e=regeneratorRuntime.mark((function e(t){var o,i,n,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=[t],i={},n=0;case 3:if(!(n<o.length)){e.next=17;break}return e.prev=4,e.next=7,r(381)("./"+o[n]);case 7:s=e.sent,i[o[n]]=s.default,e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(4),e.abrupt("return",void 0);case 14:n++,e.next=3;break;case 17:if(0!==Object.keys(i).length||i.constructor!==Object){e.next=19;break}return e.abrupt("return",void 0);case 19:return e.abrupt("return",{languages:i});case 20:case"end":return e.stop()}}),e,null,[[4,11]])})),function(){var t=this,r=arguments;return new Promise((function(o,i){var n=e.apply(t,r);function s(e){oe(n,o,i,s,a,"next",e)}function a(e){oe(n,o,i,s,a,"throw",e)}s(void 0)}))});return function(e){return t.apply(this,arguments)}}(),ne=function(e){var t=e.content,r=e.onInit,n=e.onUpdate,s=e.extensions,a=e.enableRichEditing,c=e.languages,l=[];return l=a?[new i.i,new i.d,new h,new f,new v,new i.h,new i.k,new i.c,new i.p,new i.a,new i.e,new H,new i.n,new E,new i.q({emptyNodeClass:"is-empty",emptyNodeText:"Add notes, lists or links …",showOnlyWhenEditable:!0})]:[new D,new o.j,new i.f(te({},c))],s=s||[],new o.a({content:t,onInit:r,onUpdate:n,extensions:[].concat(X(l),[new i.j]).concat(s),useBuiltInExtensions:a})},se=J()("commonmark",{html:!1,breaks:!1}).enable("strikethrough").use(Y.a,{enable:!0,labelAfter:!0}),ae=function(e){this.message=e},ce=function(e,t){var r=Object.entries(e).filter((function(e){return Q(e,2)[1].toMarkdown})).reduce((function(e,t){var r=Q(t,2);return te({},e,re({},r[0],r[1].toMarkdown))}),{}),o=Object.entries(t).filter((function(e){return Q(e,2)[1].toMarkdown})).reduce((function(e,t){var r=Q(t,2);return te({},e,re({},r[0],r[1].toMarkdown))}),{});return{serializer:new Z.a(te({},Z.b.nodes,{},r),te({},Z.b.marks,{},o)),serialize:function(e,t){return this.serializer.serialize(e,te({},t,{tightLists:!0})).split("\\[").join("[").split("\\]").join("]")}}},le=function(e){var t=e.getJSON();if(1!==t.content.length||void 0===t.content[0].content||1!==t.content[0].content.length){if("code_block"===t.content[0].type&&void 0===t.content[0].content)return"";throw new ae("Failed to serialize document to plain text")}var r=t.content[0].content[0];if("text"!==r.type)throw new ae("Failed to serialize document to plain text");return r.text}},375:function(e,t,r){"use strict";var o=r(173);r.n(o).a},376:function(e,t,r){(t=r(86)(!1)).push([e.i,".image[data-v-2ac49a8a]{margin:0;padding:0}.image__caption[data-v-2ac49a8a]{text-align:center;color:var(--color-text-lighter)}.image__caption input[type='text'][data-v-2ac49a8a]{width:100%;border:none;text-align:center}.icon-image[data-v-2ac49a8a]{margin-top:10px;height:32px;padding:20px;background-size:contain}.image__loading[data-v-2ac49a8a]{height:100px}.image__placeholder .image__main[data-v-2ac49a8a]{background-color:var(--color-background-dark);text-align:center;padding:20px;border-radius:var(--border-radius)}.image__placeholder .image__main .icon-image[data-v-2ac49a8a]{opacity:0.7}.fade-enter-active[data-v-2ac49a8a]{transition:opacity .3s ease-in-out}.fade-enter-to[data-v-2ac49a8a]{opacity:1}.fade-enter[data-v-2ac49a8a]{opacity:0}\n",""]),e.exports=t},381:function(e,t,r){var o={"./1c":[186,2],"./1c.js":[186,2],"./abnf":[187,3],"./abnf.js":[187,3],"./accesslog":[188,4],"./accesslog.js":[188,4],"./actionscript":[189,5],"./actionscript.js":[189,5],"./ada":[190,6],"./ada.js":[190,6],"./angelscript":[191,7],"./angelscript.js":[191,7],"./apache":[192,8],"./apache.js":[192,8],"./applescript":[193,9],"./applescript.js":[193,9],"./arcade":[194,10],"./arcade.js":[194,10],"./arduino":[195,11],"./arduino.js":[195,11],"./armasm":[196,12],"./armasm.js":[196,12],"./asciidoc":[197,13],"./asciidoc.js":[197,13],"./aspectj":[198,14],"./aspectj.js":[198,14],"./autohotkey":[199,15],"./autohotkey.js":[199,15],"./autoit":[200,16],"./autoit.js":[200,16],"./avrasm":[201,17],"./avrasm.js":[201,17],"./awk":[202,18],"./awk.js":[202,18],"./axapta":[203,19],"./axapta.js":[203,19],"./bash":[204,20],"./bash.js":[204,20],"./basic":[205,21],"./basic.js":[205,21],"./bnf":[206,22],"./bnf.js":[206,22],"./brainfuck":[207,23],"./brainfuck.js":[207,23],"./cal":[208,24],"./cal.js":[208,24],"./capnproto":[209,25],"./capnproto.js":[209,25],"./ceylon":[210,26],"./ceylon.js":[210,26],"./clean":[211,27],"./clean.js":[211,27],"./clojure":[213,28],"./clojure-repl":[212,29],"./clojure-repl.js":[212,29],"./clojure.js":[213,28],"./cmake":[214,30],"./cmake.js":[214,30],"./coffeescript":[215,31],"./coffeescript.js":[215,31],"./coq":[216,32],"./coq.js":[216,32],"./cos":[217,33],"./cos.js":[217,33],"./cpp":[218,34],"./cpp.js":[218,34],"./crmsh":[219,35],"./crmsh.js":[219,35],"./crystal":[220,36],"./crystal.js":[220,36],"./cs":[221,37],"./cs.js":[221,37],"./csp":[222,38],"./csp.js":[222,38],"./css":[223,39],"./css.js":[223,39],"./d":[224,40],"./d.js":[224,40],"./dart":[225,41],"./dart.js":[225,41],"./delphi":[226,42],"./delphi.js":[226,42],"./diff":[227,43],"./diff.js":[227,43],"./django":[228,44],"./django.js":[228,44],"./dns":[229,45],"./dns.js":[229,45],"./dockerfile":[230,46],"./dockerfile.js":[230,46],"./dos":[231,47],"./dos.js":[231,47],"./dsconfig":[232,48],"./dsconfig.js":[232,48],"./dts":[233,49],"./dts.js":[233,49],"./dust":[234,50],"./dust.js":[234,50],"./ebnf":[235,51],"./ebnf.js":[235,51],"./elixir":[236,52],"./elixir.js":[236,52],"./elm":[237,53],"./elm.js":[237,53],"./erb":[238,54],"./erb.js":[238,54],"./erlang":[240,55],"./erlang-repl":[239,56],"./erlang-repl.js":[239,56],"./erlang.js":[240,55],"./excel":[241,57],"./excel.js":[241,57],"./fix":[242,58],"./fix.js":[242,58],"./flix":[243,59],"./flix.js":[243,59],"./fortran":[244,60],"./fortran.js":[244,60],"./fsharp":[245,61],"./fsharp.js":[245,61],"./gams":[246,62],"./gams.js":[246,62],"./gauss":[247,63],"./gauss.js":[247,63],"./gcode":[248,64],"./gcode.js":[248,64],"./gherkin":[249,65],"./gherkin.js":[249,65],"./glsl":[250,66],"./glsl.js":[250,66],"./gml":[251,67],"./gml.js":[251,67],"./go":[252,68],"./go.js":[252,68],"./golo":[253,69],"./golo.js":[253,69],"./gradle":[254,70],"./gradle.js":[254,70],"./groovy":[255,71],"./groovy.js":[255,71],"./haml":[256,72],"./haml.js":[256,72],"./handlebars":[257,73],"./handlebars.js":[257,73],"./haskell":[258,74],"./haskell.js":[258,74],"./haxe":[259,75],"./haxe.js":[259,75],"./hsp":[260,76],"./hsp.js":[260,76],"./htmlbars":[261,77],"./htmlbars.js":[261,77],"./http":[262,78],"./http.js":[262,78],"./hy":[263,79],"./hy.js":[263,79],"./inform7":[264,80],"./inform7.js":[264,80],"./ini":[265,81],"./ini.js":[265,81],"./irpf90":[266,82],"./irpf90.js":[266,82],"./isbl":[267,83],"./isbl.js":[267,83],"./java":[268,84],"./java.js":[268,84],"./javascript":[269,85],"./javascript.js":[269,85],"./jboss-cli":[270,86],"./jboss-cli.js":[270,86],"./json":[271,87],"./json.js":[271,87],"./julia":[273,88],"./julia-repl":[272,89],"./julia-repl.js":[272,89],"./julia.js":[273,88],"./kotlin":[274,90],"./kotlin.js":[274,90],"./lasso":[275,91],"./lasso.js":[275,91],"./ldif":[276,92],"./ldif.js":[276,92],"./leaf":[277,93],"./leaf.js":[277,93],"./less":[278,94],"./less.js":[278,94],"./lisp":[279,95],"./lisp.js":[279,95],"./livecodeserver":[280,96],"./livecodeserver.js":[280,96],"./livescript":[281,97],"./livescript.js":[281,97],"./llvm":[282,98],"./llvm.js":[282,98],"./lsl":[283,99],"./lsl.js":[283,99],"./lua":[284,100],"./lua.js":[284,100],"./makefile":[285,101],"./makefile.js":[285,101],"./markdown":[286,102],"./markdown.js":[286,102],"./mathematica":[287,103],"./mathematica.js":[287,103],"./matlab":[288,104],"./matlab.js":[288,104],"./maxima":[289,105],"./maxima.js":[289,105],"./mel":[290,106],"./mel.js":[290,106],"./mercury":[291,107],"./mercury.js":[291,107],"./mipsasm":[292,108],"./mipsasm.js":[292,108],"./mizar":[293,109],"./mizar.js":[293,109],"./mojolicious":[294,110],"./mojolicious.js":[294,110],"./monkey":[295,111],"./monkey.js":[295,111],"./moonscript":[296,112],"./moonscript.js":[296,112],"./n1ql":[297,113],"./n1ql.js":[297,113],"./nginx":[298,114],"./nginx.js":[298,114],"./nimrod":[299,115],"./nimrod.js":[299,115],"./nix":[300,116],"./nix.js":[300,116],"./nsis":[301,117],"./nsis.js":[301,117],"./objectivec":[302,118],"./objectivec.js":[302,118],"./ocaml":[303,119],"./ocaml.js":[303,119],"./openscad":[304,120],"./openscad.js":[304,120],"./oxygene":[305,121],"./oxygene.js":[305,121],"./parser3":[306,122],"./parser3.js":[306,122],"./perl":[307,123],"./perl.js":[307,123],"./pf":[308,124],"./pf.js":[308,124],"./pgsql":[309,125],"./pgsql.js":[309,125],"./php":[310,126],"./php.js":[310,126],"./plaintext":[311,127],"./plaintext.js":[311,127],"./pony":[312,128],"./pony.js":[312,128],"./powershell":[313,129],"./powershell.js":[313,129],"./processing":[314,130],"./processing.js":[314,130],"./profile":[315,131],"./profile.js":[315,131],"./prolog":[316,132],"./prolog.js":[316,132],"./properties":[317,133],"./properties.js":[317,133],"./protobuf":[318,134],"./protobuf.js":[318,134],"./puppet":[319,135],"./puppet.js":[319,135],"./purebasic":[320,136],"./purebasic.js":[320,136],"./python":[321,137],"./python.js":[321,137],"./q":[322,138],"./q.js":[322,138],"./qml":[323,139],"./qml.js":[323,139],"./r":[324,140],"./r.js":[324,140],"./reasonml":[325,141],"./reasonml.js":[325,141],"./rib":[326,142],"./rib.js":[326,142],"./roboconf":[327,143],"./roboconf.js":[327,143],"./routeros":[328,144],"./routeros.js":[328,144],"./rsl":[329,145],"./rsl.js":[329,145],"./ruby":[330,146],"./ruby.js":[330,146],"./ruleslanguage":[331,147],"./ruleslanguage.js":[331,147],"./rust":[332,148],"./rust.js":[332,148],"./sas":[333,149],"./sas.js":[333,149],"./scala":[334,150],"./scala.js":[334,150],"./scheme":[335,151],"./scheme.js":[335,151],"./scilab":[336,152],"./scilab.js":[336,152],"./scss":[337,153],"./scss.js":[337,153],"./shell":[338,154],"./shell.js":[338,154],"./smali":[339,155],"./smali.js":[339,155],"./smalltalk":[340,156],"./smalltalk.js":[340,156],"./sml":[341,157],"./sml.js":[341,157],"./sqf":[342,158],"./sqf.js":[342,158],"./sql":[343,159],"./sql.js":[343,159],"./stan":[344,160],"./stan.js":[344,160],"./stata":[345,161],"./stata.js":[345,161],"./step21":[346,162],"./step21.js":[346,162],"./stylus":[347,163],"./stylus.js":[347,163],"./subunit":[348,164],"./subunit.js":[348,164],"./swift":[349,165],"./swift.js":[349,165],"./taggerscript":[350,166],"./taggerscript.js":[350,166],"./tap":[351,167],"./tap.js":[351,167],"./tcl":[352,168],"./tcl.js":[352,168],"./tex":[353,169],"./tex.js":[353,169],"./thrift":[354,170],"./thrift.js":[354,170],"./tp":[355,171],"./tp.js":[355,171],"./twig":[356,172],"./twig.js":[356,172],"./typescript":[357,173],"./typescript.js":[357,173],"./vala":[358,174],"./vala.js":[358,174],"./vbnet":[359,175],"./vbnet.js":[359,175],"./vbscript":[361,176],"./vbscript-html":[360,177],"./vbscript-html.js":[360,177],"./vbscript.js":[361,176],"./verilog":[362,178],"./verilog.js":[362,178],"./vhdl":[363,179],"./vhdl.js":[363,179],"./vim":[364,180],"./vim.js":[364,180],"./x86asm":[365,181],"./x86asm.js":[365,181],"./xl":[366,182],"./xl.js":[366,182],"./xml":[367,183],"./xml.js":[367,183],"./xquery":[368,184],"./xquery.js":[368,184],"./yaml":[369,185],"./yaml.js":[369,185],"./zephir":[370,186],"./zephir.js":[370,186]};function i(e){if(!r.o(o,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=o[e],i=t[0];return r.e(t[1]).then((function(){return r.t(i,7)}))}i.keys=function(){return Object.keys(o)},i.id=381,e.exports=i},382:function(e,t,r){var o=r(480);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,r(87).default)("61e9997b",o,!0,{})},383:function(e,t,r){var o=r(482);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,r(87).default)("5039213c",o,!0,{})},384:function(e,t,r){var o=r(484);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,r(87).default)("52530ccf",o,!0,{})},385:function(e,t,r){"use strict";var o=r(174);r.n(o).a},386:function(e,t,r){(t=r(86)(!1)).push([e.i,'#read-only-editor{overflow:scroll}#read-only-editor div.ProseMirror{margin-top:44px;height:100%;position:relative;word-wrap:break-word;white-space:pre-wrap;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;padding:4px 8px 200px 14px;line-height:150%;font-size:14px;outline:none}#read-only-editor div.ProseMirror[contenteditable=true],#read-only-editor div.ProseMirror[contenteditable=false]{border:none !important;width:100%;background-color:transparent;color:var(--color-main-text);opacity:1;-webkit-user-select:text;user-select:text;font-size:14px}#read-only-editor div.ProseMirror li label.checkbox-label{width:100%;display:flex;margin-top:10px;margin-bottom:1em}#read-only-editor div.ProseMirror li label.checkbox-label:before{position:relative;top:2px}#read-only-editor div.ProseMirror li label.checkbox-label div.checkbox-wrapper{margin-bottom:-1em;width:100%}#read-only-editor div.ProseMirror li label.checkbox-label div.checkbox-wrapper>p{margin-top:-1px;margin-bottom:0;padding-bottom:10px}#read-only-editor div.ProseMirror p:first-child,#read-only-editor div.ProseMirror h1:first-child,#read-only-editor div.ProseMirror h2:first-child,#read-only-editor div.ProseMirror h3:first-child,#read-only-editor div.ProseMirror h4:first-child,#read-only-editor div.ProseMirror h5:first-child,#read-only-editor div.ProseMirror h6:first-child{margin-top:10px}#read-only-editor div.ProseMirror a{color:var(--color-primary-element);text-decoration:underline;padding:.5em 0}#read-only-editor div.ProseMirror p{margin-bottom:1em;line-height:150%}#read-only-editor div.ProseMirror em{font-style:italic}#read-only-editor div.ProseMirror h1,#read-only-editor div.ProseMirror h2,#read-only-editor div.ProseMirror h3,#read-only-editor div.ProseMirror h4,#read-only-editor div.ProseMirror h5,#read-only-editor div.ProseMirror h6{font-weight:600;line-height:120%;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}#read-only-editor div.ProseMirror h1{font-size:36px;margin-top:48px}#read-only-editor div.ProseMirror h2{font-size:28px;margin-top:48px}#read-only-editor div.ProseMirror h3{font-size:24px}#read-only-editor div.ProseMirror h4{font-size:21px}#read-only-editor div.ProseMirror h5{font-size:17px}#read-only-editor div.ProseMirror h6{font-size:14px}#read-only-editor div.ProseMirror img{cursor:default;max-width:100%}#read-only-editor div.ProseMirror hr{padding:2px 0;border:none;margin:1em 0;width:100%}#read-only-editor div.ProseMirror hr:after{content:"";display:block;height:1px;background-color:var(--color-border-dark);line-height:2px}#read-only-editor div.ProseMirror pre{white-space:pre-wrap;background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:1em 1.3em;margin-bottom:1em}#read-only-editor div.ProseMirror p code{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}#read-only-editor div.ProseMirror li{position:relative}#read-only-editor div.ProseMirror ul,#read-only-editor div.ProseMirror ol{padding-left:10px;margin-left:10px}#read-only-editor div.ProseMirror ul li{list-style-type:disc}#read-only-editor div.ProseMirror ul>li>ul>li{list-style-type:circle}#read-only-editor div.ProseMirror ul>li>ul>li ul li{list-style-type:square}#read-only-editor div.ProseMirror blockquote{padding-left:1em;border-left:4px solid var(--color-primary-element);color:var(--color-text-maxcontrast);margin-left:0;margin-right:0}#read-only-editor .ProseMirror-focused .ProseMirror-gapcursor{display:block}#read-only-editor .editor__content p.is-empty:first-child::before{content:attr(data-empty-text);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}.thumbnailContainer #read-only-editor{width:100%}.thumbnailContainer #read-only-editor .ProseMirror{height:auto;margin:0 0 0 0;padding:0}\n',""]),e.exports=t},387:function(e,t,r){"use strict";var o=r(175);r.n(o).a},388:function(e,t,r){(t=r(86)(!1)).push([e.i,'div.ProseMirror{margin-top:44px;height:100%;position:relative;word-wrap:break-word;white-space:pre-wrap;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;padding:4px 8px 200px 14px;line-height:150%;font-size:14px;outline:none}div.ProseMirror[contenteditable=true],div.ProseMirror[contenteditable=false]{border:none !important;width:100%;background-color:transparent;color:var(--color-main-text);opacity:1;-webkit-user-select:text;user-select:text;font-size:14px}div.ProseMirror li label.checkbox-label{width:100%;display:flex;margin-top:10px;margin-bottom:1em}div.ProseMirror li label.checkbox-label:before{position:relative;top:2px}div.ProseMirror li label.checkbox-label div.checkbox-wrapper{margin-bottom:-1em;width:100%}div.ProseMirror li label.checkbox-label div.checkbox-wrapper>p{margin-top:-1px;margin-bottom:0;padding-bottom:10px}div.ProseMirror p:first-child,div.ProseMirror h1:first-child,div.ProseMirror h2:first-child,div.ProseMirror h3:first-child,div.ProseMirror h4:first-child,div.ProseMirror h5:first-child,div.ProseMirror h6:first-child{margin-top:10px}div.ProseMirror a{color:var(--color-primary-element);text-decoration:underline;padding:.5em 0}div.ProseMirror p{margin-bottom:1em;line-height:150%}div.ProseMirror em{font-style:italic}div.ProseMirror h1,div.ProseMirror h2,div.ProseMirror h3,div.ProseMirror h4,div.ProseMirror h5,div.ProseMirror h6{font-weight:600;line-height:120%;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}div.ProseMirror h1{font-size:36px;margin-top:48px}div.ProseMirror h2{font-size:28px;margin-top:48px}div.ProseMirror h3{font-size:24px}div.ProseMirror h4{font-size:21px}div.ProseMirror h5{font-size:17px}div.ProseMirror h6{font-size:14px}div.ProseMirror img{cursor:default;max-width:100%}div.ProseMirror hr{padding:2px 0;border:none;margin:1em 0;width:100%}div.ProseMirror hr:after{content:"";display:block;height:1px;background-color:var(--color-border-dark);line-height:2px}div.ProseMirror pre{white-space:pre-wrap;background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:1em 1.3em;margin-bottom:1em}div.ProseMirror p code{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}div.ProseMirror li{position:relative}div.ProseMirror ul,div.ProseMirror ol{padding-left:10px;margin-left:10px}div.ProseMirror ul li{list-style-type:disc}div.ProseMirror ul>li>ul>li{list-style-type:circle}div.ProseMirror ul>li>ul>li ul li{list-style-type:square}div.ProseMirror blockquote{padding-left:1em;border-left:4px solid var(--color-primary-element);color:var(--color-text-maxcontrast);margin-left:0;margin-right:0}.ProseMirror-focused .ProseMirror-gapcursor{display:block}.editor__content p.is-empty:first-child::before{content:attr(data-empty-text);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}\n',""]),e.exports=t},397:function(e,t,r){var o=r(499);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,r(87).default)("a3c96434",o,!0,{})},479:function(e,t,r){"use strict";var o=r(382);r.n(o).a},480:function(e,t,r){(t=r(86)(!1)).push([e.i,"#editor-container[data-v-3809e52c]{display:block;width:100%;max-width:100%;height:100%;left:0;margin:0 auto;position:relative;background-color:var(--color-main-background)}#editor-wrapper[data-v-3809e52c]{display:flex;width:100%;height:100%;overflow:hidden;position:absolute}#editor-wrapper .ProseMirror[data-v-3809e52c]{margin-top:0 !important}#editor-wrapper.icon-loading #editor[data-v-3809e52c]{opacity:0.3}#editor[data-v-3809e52c],.editor[data-v-3809e52c]{background:var(--color-main-background);color:var(--color-main-text);background-clip:padding-box;border-radius:var(--border-radius);padding:0;position:relative;overflow-y:auto;overflow-x:hidden;width:100%}.msg.icon-error[data-v-3809e52c]{padding:12px;border-bottom:1px solid var(--color-border);padding-left:30px;background-position:8px center}.save-status[data-v-3809e52c]{padding:9px;text-overflow:ellipsis;color:var(--color-text-lighter)}.save-status.error[data-v-3809e52c]{background-color:var(--color-error);color:var(--color-main-background);border-radius:3px}#editor-container #editor-wrapper.has-conflicts[data-v-3809e52c]{height:calc(100% - 50px)}#editor-container #editor-wrapper.has-conflicts #editor[data-v-3809e52c],#editor-container #editor-wrapper.has-conflicts #read-only-editor[data-v-3809e52c]{width:50%;height:100%}#editor-session-list[data-v-3809e52c]{padding:4px 16px 4px 4px;display:flex}#editor-session-list input[data-v-3809e52c],#editor-session-list div[data-v-3809e52c]{vertical-align:middle;margin-left:3px}.editor__content[data-v-3809e52c]{max-width:670px;margin:auto;position:relative}#body-public[data-v-3809e52c]{height:auto}#files-public-content[data-v-3809e52c]{height:auto}#files-public-content #editor-wrapper[data-v-3809e52c]{position:relative}#files-public-content #editor-container[data-v-3809e52c]{top:0;width:100%}#files-public-content #editor-container #editor[data-v-3809e52c] .menubar{position:fixed;top:50px;width:100%}#files-public-content #editor-container #editor[data-v-3809e52c]{padding-top:50px;overflow:auto}#files-public-content #editor-container .has-conflicts #editor[data-v-3809e52c]{padding-top:0px}.ie #editor[data-v-3809e52c] .menubar{position:fixed;top:50px;width:100%}.ie .editor__content[data-v-3809e52c] .ProseMirror{padding-top:50px}\n",""]),e.exports=t},481:function(e,t,r){"use strict";var o=r(383);r.n(o).a},482:function(e,t,r){(t=r(86)(!1)).push([e.i,'.modal-container #editor-container{position:absolute}.ProseMirror-hideselection *::selection{background:transparent}.ProseMirror-hideselection *::-moz-selection{background:transparent}.ProseMirror-hideselection{caret-color:transparent}.ProseMirror-selectednode{outline:2px solid #8cf}li.ProseMirror-selectednode{outline:none}li.ProseMirror-selectednode:after{content:"";position:absolute;left:-32px;right:-2px;top:-2px;bottom:-2px;border:2px solid #8cf;pointer-events:none}.has-conflicts .ProseMirror-menubar,#editor-wrapper.icon-loading .ProseMirror-menubar{display:none}.ProseMirror-gapcursor{display:none;pointer-events:none;position:absolute}.ProseMirror-gapcursor:after{content:"";display:block;position:absolute;top:-2px;width:20px;border-top:1px solid var(--color-main-text);animation:ProseMirror-cursor-blink 1.1s steps(2, start) infinite}@keyframes ProseMirror-cursor-blink{to{visibility:hidden}}#editor-wrapper div.ProseMirror{margin-top:44px;height:100%;position:relative;word-wrap:break-word;white-space:pre-wrap;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;padding:4px 8px 200px 14px;line-height:150%;font-size:14px;outline:none}#editor-wrapper div.ProseMirror[contenteditable=true],#editor-wrapper div.ProseMirror[contenteditable=false]{border:none !important;width:100%;background-color:transparent;color:var(--color-main-text);opacity:1;-webkit-user-select:text;user-select:text;font-size:14px}#editor-wrapper div.ProseMirror li label.checkbox-label{width:100%;display:flex;margin-top:10px;margin-bottom:1em}#editor-wrapper div.ProseMirror li label.checkbox-label:before{position:relative;top:2px}#editor-wrapper div.ProseMirror li label.checkbox-label div.checkbox-wrapper{margin-bottom:-1em;width:100%}#editor-wrapper div.ProseMirror li label.checkbox-label div.checkbox-wrapper>p{margin-top:-1px;margin-bottom:0;padding-bottom:10px}#editor-wrapper div.ProseMirror p:first-child,#editor-wrapper div.ProseMirror h1:first-child,#editor-wrapper div.ProseMirror h2:first-child,#editor-wrapper div.ProseMirror h3:first-child,#editor-wrapper div.ProseMirror h4:first-child,#editor-wrapper div.ProseMirror h5:first-child,#editor-wrapper div.ProseMirror h6:first-child{margin-top:10px}#editor-wrapper div.ProseMirror a{color:var(--color-primary-element);text-decoration:underline;padding:.5em 0}#editor-wrapper div.ProseMirror p{margin-bottom:1em;line-height:150%}#editor-wrapper div.ProseMirror em{font-style:italic}#editor-wrapper div.ProseMirror h1,#editor-wrapper div.ProseMirror h2,#editor-wrapper div.ProseMirror h3,#editor-wrapper div.ProseMirror h4,#editor-wrapper div.ProseMirror h5,#editor-wrapper div.ProseMirror h6{font-weight:600;line-height:120%;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}#editor-wrapper div.ProseMirror h1{font-size:36px;margin-top:48px}#editor-wrapper div.ProseMirror h2{font-size:28px;margin-top:48px}#editor-wrapper div.ProseMirror h3{font-size:24px}#editor-wrapper div.ProseMirror h4{font-size:21px}#editor-wrapper div.ProseMirror h5{font-size:17px}#editor-wrapper div.ProseMirror h6{font-size:14px}#editor-wrapper div.ProseMirror img{cursor:default;max-width:100%}#editor-wrapper div.ProseMirror hr{padding:2px 0;border:none;margin:1em 0;width:100%}#editor-wrapper div.ProseMirror hr:after{content:"";display:block;height:1px;background-color:var(--color-border-dark);line-height:2px}#editor-wrapper div.ProseMirror pre{white-space:pre-wrap;background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:1em 1.3em;margin-bottom:1em}#editor-wrapper div.ProseMirror p code{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}#editor-wrapper div.ProseMirror li{position:relative}#editor-wrapper div.ProseMirror ul,#editor-wrapper div.ProseMirror ol{padding-left:10px;margin-left:10px}#editor-wrapper div.ProseMirror ul li{list-style-type:disc}#editor-wrapper div.ProseMirror ul>li>ul>li{list-style-type:circle}#editor-wrapper div.ProseMirror ul>li>ul>li ul li{list-style-type:square}#editor-wrapper div.ProseMirror blockquote{padding-left:1em;border-left:4px solid var(--color-primary-element);color:var(--color-text-maxcontrast);margin-left:0;margin-right:0}#editor-wrapper .ProseMirror-focused .ProseMirror-gapcursor{display:block}#editor-wrapper .editor__content p.is-empty:first-child::before{content:attr(data-empty-text);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}#editor-wrapper:not(.richEditor) .ProseMirror pre{background-color:var(--color-main-background)}#editor-wrapper:not(.richEditor) .ProseMirror pre::before{content:attr(data-language);text-transform:uppercase;display:block;text-align:right;font-weight:bold;font-size:0.6rem}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-comment,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-quote{color:#999999}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-variable,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-template-variable,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-attribute,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-tag,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-name,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-regexp,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-link,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-selector-id,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-selector-class{color:#f2777a}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-number,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-meta,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-built_in,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-builtin-name,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-literal,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-type,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-params{color:#f99157}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-string,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-symbol,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-bullet{color:#99cc99}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-title,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-section{color:#ffcc66}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-keyword,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-selector-tag{color:#6699cc}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-emphasis{font-style:italic}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-strong{font-weight:700}\n',""]),e.exports=t},483:function(e,t,r){"use strict";var o=r(384);r.n(o).a},484:function(e,t,r){(t=r(86)(!1)).push([e.i,"#direct-editor[data-v-2c1879fe]{width:100%;height:100vh}pre[data-v-2c1879fe]{width:100%;max-width:700px;margin:auto;background-color:var(--color-background-dark)}button[data-v-2c1879fe]{width:44px;height:44px;margin:0;background-size:16px;border:0;background-color:transparent;opacity:.5;color:var(--color-main-text);background-position:center center;vertical-align:top}button[data-v-2c1879fe]:hover,button[data-v-2c1879fe]:focus,button[data-v-2c1879fe]:active{background-color:var(--color-background-dark)}button.is-active[data-v-2c1879fe],button[data-v-2c1879fe]:hover,button[data-v-2c1879fe]:focus{opacity:1}button.icon-undo[data-v-2c1879fe],button.icon-redo[data-v-2c1879fe]{opacity:.4}\n",""]),e.exports=t},498:function(e,t,r){"use strict";var o=r(397);r.n(o).a},499:function(e,t,r){(t=r(86)(!1)).push([e.i,"#resolve-conflicts[data-v-7fd0186f]{display:flex;position:fixed;z-index:10000;bottom:0;max-width:900px;width:100vw;margin:auto;padding:20px 0}#resolve-conflicts button[data-v-7fd0186f]{margin:auto;box-shadow:0 0 10px var(--color-box-shadow)}\n",""]),e.exports=t},519:function(e,t,r){"use strict";r.r(t);var o=r(169),i=r(372),n=r.n(i),s=r(371),a={name:"ReadOnlyEditor",components:{EditorContent:o.b},props:{content:{type:String,required:!0},isRichEditor:{type:Boolean,default:!0}},data:function(){return{editor:null}},mounted:function(){this.editor=Object(s.a)({content:this.isRichEditor?s.d.render(this.content):"<pre>"+n()(this.content)+"</pre>",enableRichEditing:this.isRichEditor}),this.editor.setOptions({editable:!1})},beforeDestroy:function(){this.editor.destroy()}},c=(r(385),r(387),r(19)),l=Object(c.a)(a,(function(){var e=this.$createElement,t=this._self._c||e;return this.editor?t("EditorContent",{attrs:{id:"read-only-editor",editor:this.editor}}):this._e()}),[],!1,null,null,null);t.default=l.exports},523:function(e,t,r){"use strict";r.r(t);var o={name:"CollisionResolveDialog"},i=(r(498),r(19)),n=Object(i.a)(o,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"collision-resolve-dialog",attrs:{id:"resolve-conflicts"}},[r("button",{on:{click:function(t){return e.$emit("resolveUseThisVersion")}}},[e._v("\n\t\t"+e._s(e.t("text","Use current version"))+"\n\t")]),e._v(" "),r("button",{on:{click:function(t){return e.$emit("resolveUseServerVersion")}}},[e._v("\n\t\t"+e._s(e.t("text","Use the saved version"))+"\n\t")])])}),[],!1,null,"7fd0186f",null);t.default=n.exports}}]);
+//# sourceMappingURL=editor.js.map?v=99f707bd4895bb49a93a \ No newline at end of file