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-16 12:50:28 +0300
committerJulius Härtl <jus@bitgrid.net>2020-01-16 14:10:32 +0300
commit9a815285b2bde0e9a071567ad800c97e1da39bc1 (patch)
tree28d4b4d9114f1e20d10dcd1703a2e07cc920cec8 /js/editor.js
parentd9555335e271ee0509d43197cccddcefc966a21a (diff)
Build bundles
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'js/editor.js')
-rw-r--r--js/editor.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/editor.js b/js/editor.js
index 1ee02d19c..9c116ab72 100644
--- a/js/editor.js
+++ b/js/editor.js
@@ -105,7 +105,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/>.
*
- */function R(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)}var N,L,D={name:"EditorWrapper",components:{EditorContent:k.b,MenuBar:function(){return Promise.all([o.e(1),o.e(200),o.e(193)]).then(o.bind(null,523))},MenuBubble:function(){return Promise.all([o.e(1),o.e(200),o.e(193)]).then(o.bind(null,525))},ReadOnlyEditor:function(){return Promise.all([o.e(0),o.e(189),o.e(188),o.e(199),o.e(190)]).then(o.bind(null,522))},CollisionResolveDialog:function(){return Promise.all([o.e(0),o.e(189),o.e(188),o.e(199),o.e(190)]).then(o.bind(null,526))},GuestNameDialog:function(){return Promise.all([o.e(1),o.e(187),o.e(192)]).then(o.bind(null,527))},SessionList:function(){return Promise.all([o.e(1),o.e(187),o.e(191)]).then(o.bind(null,528))}},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 saved {lastSaved}",{lastSaved: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(){this.close()},methods:{close:(N=regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(document.removeEventListener("keydown",this._keyUpHandler,!0),clearInterval(this.saveStatusPolling),!this.currentSession||!this.syncService){e.next=12;break}return e.prev=3,e.next=6,this.syncService.close();case 6:this.currentSession=null,this.syncService=null,e.next=12;break;case 10:e.prev=10,e.t0=e.catch(3);case 12:return e.abrupt("return",!0);case 13:case"end":return e.stop()}}),e,this,[[3,10]])})),L=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=N.apply(e,t);function n(e){R(i,r,o,n,s,"next",e)}function s(e){R(i,r,o,n,s,"throw",e)}n(void 0)}))},function(){return L.apply(this,arguments)}),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(w.b)(e.tiptap.nodes,e.tiptap.marks).serialize(t);return console.debug("serialized document",{markdown:r}),r}var o=Object(w.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(w.c)(x[e.fileExtension]?x[e.fileExtension]:e.fileExtension).then((function(t){e.tiptap=Object(w.a)({content:e.isRichEditor?w.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 j.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}}},z=(o(481),o(483),o(19)),A=Object(z.a)(D,(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,"4e7c1306",null);r.default=A.exports},166:function(e,t,r){"use strict";r.r(t);var o=r(42),i=r(165);function n(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 s(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var s=e.apply(t,r);function a(e){n(s,o,i,a,c,"next",e)}function c(e){n(s,o,i,a,c,"throw",e)}a(void 0)}))}}var a=o.default.observable({messages:[],mtime:0}),c=function(e,t){console.debug("callMobileMessage "+e,t);var r=e;void 0!==t&&(r={MessageName:e,Values:t});var o=null;try{o=JSON.stringify(t)}catch(e){o=null}window.DirectEditingMobileInterface&&"function"==typeof window.DirectEditingMobileInterface[e]&&(null==o?window.DirectEditingMobileInterface[e]():window.DirectEditingMobileInterface[e](o)),window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.DirectEditingMobileInterface&&window.webkit.messageHandlers.DirectEditingMobileInterface.postMessage(r),window.postMessage(r)};window.addEventListener("message",(function(e){a.messages.push(e.data),console.debug("postMessage",e)}));var l,d={name:"DirectEditing",components:{EditorWrapper:i.default},data:function(){return{initial:OCP.InitialState.loadState("text","file"),messages:a.messages,log:a,saving:!1}},computed:{initialSession:function(){return JSON.parse(this.initial.session)||null}},beforeMount:function(){c("loading")},methods:{close:(l=s(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.saving=!0,setTimeout(s(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$refs.editor.close();case 2:c("close");case 3:case"end":return e.stop()}}),e)}))),0);case 2:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)}),share:function(){c("share")},loaded:function(){c("loaded")}}},u=(r(485),r(19)),p=Object(u.a)(d,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{class:{"icon-loading":e.saving},attrs:{id:"direct-editor"}},[r("EditorWrapper",{ref:"editor",attrs:{"initial-session":e.initialSession,active:!0,mime:"text/markdown","is-direct-editing":!0},on:{ready:e.loaded},scopedSlots:e._u([{key:"header",fn:function(){return[r("button",{staticClass:"icon-share",on:{click:e.share}}),e._v(" "),r("button",{staticClass:"icon-close",on:{click:e.close}})]},proxy:!0}])})],1)}),[],!1,null,"24a28827",null);t.default=p.exports},174:function(e,t,r){var o=r(377);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,r(87).default)("e7906548",o,!0,{})},175:function(e,t,r){var o=r(387);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,r(87).default)("5ba6a5c3",o,!0,{})},176:function(e,t,r){var o=r(389);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,r(87).default)("ed017fbc",o,!0,{})},372:function(e,t,r){"use strict";var o=r(170),i=r(173);function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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)}}function c(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),e}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(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&&p(e,t)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}
+ */function R(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)}var N,L,D={name:"EditorWrapper",components:{EditorContent:k.b,MenuBar:function(){return Promise.all([o.e(1),o.e(200),o.e(193)]).then(o.bind(null,523))},MenuBubble:function(){return Promise.all([o.e(1),o.e(200),o.e(193)]).then(o.bind(null,525))},ReadOnlyEditor:function(){return Promise.all([o.e(0),o.e(189),o.e(188),o.e(199),o.e(190)]).then(o.bind(null,522))},CollisionResolveDialog:function(){return Promise.all([o.e(0),o.e(189),o.e(188),o.e(199),o.e(190)]).then(o.bind(null,526))},GuestNameDialog:function(){return Promise.all([o.e(1),o.e(187),o.e(192)]).then(o.bind(null,527))},SessionList:function(){return Promise.all([o.e(1),o.e(187),o.e(191)]).then(o.bind(null,528))}},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 saved {lastSaved}",{lastSaved: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(){this.close()},methods:{close:(N=regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(document.removeEventListener("keydown",this._keyUpHandler,!0),clearInterval(this.saveStatusPolling),!this.currentSession||!this.syncService){e.next=12;break}return e.prev=3,e.next=6,this.syncService.close();case 6:this.currentSession=null,this.syncService=null,e.next=12;break;case 10:e.prev=10,e.t0=e.catch(3);case 12:return e.abrupt("return",!0);case 13:case"end":return e.stop()}}),e,this,[[3,10]])})),L=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=N.apply(e,t);function n(e){R(i,r,o,n,s,"next",e)}function s(e){R(i,r,o,n,s,"throw",e)}n(void 0)}))},function(){return L.apply(this,arguments)}),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(w.b)(e.tiptap.nodes,e.tiptap.marks).serialize(t);return console.debug("serialized document",{markdown:r}),r}var o=Object(w.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(w.c)(x[e.fileExtension]?x[e.fileExtension]:e.fileExtension).then((function(t){e.tiptap=Object(w.a)({content:e.isRichEditor?w.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 j.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}}},z=(o(481),o(483),o(19)),A=Object(z.a)(D,(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,"4e7c1306",null);r.default=A.exports},166:function(e,t,r){"use strict";r.r(t);var o=r(42),i=r(165);function n(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 s(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var s=e.apply(t,r);function a(e){n(s,o,i,a,c,"next",e)}function c(e){n(s,o,i,a,c,"throw",e)}a(void 0)}))}}var a=o.default.observable({messages:[],mtime:0}),c=function(e,t){console.debug("callMobileMessage "+e,t);var r=e;void 0!==t&&(r={MessageName:e,Values:t});var o=null;try{o=JSON.stringify(t)}catch(e){o=null}window.DirectEditingMobileInterface&&"function"==typeof window.DirectEditingMobileInterface[e]&&(null==o?window.DirectEditingMobileInterface[e]():window.DirectEditingMobileInterface[e](o)),window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.DirectEditingMobileInterface&&window.webkit.messageHandlers.DirectEditingMobileInterface.postMessage(r),window.postMessage(r)};window.addEventListener("message",(function(e){a.messages.push(e.data),console.debug("postMessage",e)}));var l,d={name:"DirectEditing",components:{EditorWrapper:i.default},data:function(){return{initial:OCP.InitialState.loadState("text","file"),messages:a.messages,log:a,saving:!1}},computed:{initialSession:function(){return JSON.parse(this.initial.session)||null}},beforeMount:function(){c("loading")},methods:{close:(l=s(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.saving=!0,setTimeout(s(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$refs.editor.close();case 2:c("close");case 3:case"end":return e.stop()}}),e)}))),0);case 2:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)}),share:function(){c("share")},loaded:function(){c("loaded")}}},u=(r(485),r(19)),p=Object(u.a)(d,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{class:{"icon-loading":e.saving},attrs:{id:"direct-editor"}},[r("EditorWrapper",{ref:"editor",attrs:{"initial-session":e.initialSession,active:!0,mime:e.initial.mimetype,"is-direct-editing":!0},on:{ready:e.loaded},scopedSlots:e._u([{key:"header",fn:function(){return[r("button",{staticClass:"icon-share",on:{click:e.share}}),e._v(" "),r("button",{staticClass:"icon-close",on:{click:e.close}})]},proxy:!0}])})],1)}),[],!1,null,"626177ba",null);t.default=p.exports},174:function(e,t,r){var o=r(377);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,r(87).default)("e7906548",o,!0,{})},175:function(e,t,r){var o=r(387);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,r(87).default)("5ba6a5c3",o,!0,{})},176:function(e,t,r){var o=r(389);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,r(87).default)("ed017fbc",o,!0,{})},372:function(e,t,r){"use strict";var o=r(170),i=r(173);function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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)}}function c(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),e}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(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&&p(e,t)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}
/*
* @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(382)("./"+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 m,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(Q(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 Z(e,2)[1].toMarkdown})).reduce((function(e,t){var r=Z(t,2);return te({},e,re({},r[0],r[1].toMarkdown))}),{}),o=Object.entries(t).filter((function(e){return Z(e,2)[1].toMarkdown})).reduce((function(e,t){var r=Z(t,2);return te({},e,re({},r[0],r[1].toMarkdown))}),{});return{serializer:new X.a(te({},X.b.nodes,{},r),te({},X.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}},376:function(e,t,r){"use strict";var o=r(174);r.n(o).a},377: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},382:function(e,t,r){var o={"./1c":[187,2],"./1c.js":[187,2],"./abnf":[188,3],"./abnf.js":[188,3],"./accesslog":[189,4],"./accesslog.js":[189,4],"./actionscript":[190,5],"./actionscript.js":[190,5],"./ada":[191,6],"./ada.js":[191,6],"./angelscript":[192,7],"./angelscript.js":[192,7],"./apache":[193,8],"./apache.js":[193,8],"./applescript":[194,9],"./applescript.js":[194,9],"./arcade":[195,10],"./arcade.js":[195,10],"./arduino":[196,11],"./arduino.js":[196,11],"./armasm":[197,12],"./armasm.js":[197,12],"./asciidoc":[198,13],"./asciidoc.js":[198,13],"./aspectj":[199,14],"./aspectj.js":[199,14],"./autohotkey":[200,15],"./autohotkey.js":[200,15],"./autoit":[201,16],"./autoit.js":[201,16],"./avrasm":[202,17],"./avrasm.js":[202,17],"./awk":[203,18],"./awk.js":[203,18],"./axapta":[204,19],"./axapta.js":[204,19],"./bash":[205,20],"./bash.js":[205,20],"./basic":[206,21],"./basic.js":[206,21],"./bnf":[207,22],"./bnf.js":[207,22],"./brainfuck":[208,23],"./brainfuck.js":[208,23],"./cal":[209,24],"./cal.js":[209,24],"./capnproto":[210,25],"./capnproto.js":[210,25],"./ceylon":[211,26],"./ceylon.js":[211,26],"./clean":[212,27],"./clean.js":[212,27],"./clojure":[214,28],"./clojure-repl":[213,29],"./clojure-repl.js":[213,29],"./clojure.js":[214,28],"./cmake":[215,30],"./cmake.js":[215,30],"./coffeescript":[216,31],"./coffeescript.js":[216,31],"./coq":[217,32],"./coq.js":[217,32],"./cos":[218,33],"./cos.js":[218,33],"./cpp":[219,34],"./cpp.js":[219,34],"./crmsh":[220,35],"./crmsh.js":[220,35],"./crystal":[221,36],"./crystal.js":[221,36],"./cs":[222,37],"./cs.js":[222,37],"./csp":[223,38],"./csp.js":[223,38],"./css":[224,39],"./css.js":[224,39],"./d":[225,40],"./d.js":[225,40],"./dart":[226,41],"./dart.js":[226,41],"./delphi":[227,42],"./delphi.js":[227,42],"./diff":[228,43],"./diff.js":[228,43],"./django":[229,44],"./django.js":[229,44],"./dns":[230,45],"./dns.js":[230,45],"./dockerfile":[231,46],"./dockerfile.js":[231,46],"./dos":[232,47],"./dos.js":[232,47],"./dsconfig":[233,48],"./dsconfig.js":[233,48],"./dts":[234,49],"./dts.js":[234,49],"./dust":[235,50],"./dust.js":[235,50],"./ebnf":[236,51],"./ebnf.js":[236,51],"./elixir":[237,52],"./elixir.js":[237,52],"./elm":[238,53],"./elm.js":[238,53],"./erb":[239,54],"./erb.js":[239,54],"./erlang":[241,55],"./erlang-repl":[240,56],"./erlang-repl.js":[240,56],"./erlang.js":[241,55],"./excel":[242,57],"./excel.js":[242,57],"./fix":[243,58],"./fix.js":[243,58],"./flix":[244,59],"./flix.js":[244,59],"./fortran":[245,60],"./fortran.js":[245,60],"./fsharp":[246,61],"./fsharp.js":[246,61],"./gams":[247,62],"./gams.js":[247,62],"./gauss":[248,63],"./gauss.js":[248,63],"./gcode":[249,64],"./gcode.js":[249,64],"./gherkin":[250,65],"./gherkin.js":[250,65],"./glsl":[251,66],"./glsl.js":[251,66],"./gml":[252,67],"./gml.js":[252,67],"./go":[253,68],"./go.js":[253,68],"./golo":[254,69],"./golo.js":[254,69],"./gradle":[255,70],"./gradle.js":[255,70],"./groovy":[256,71],"./groovy.js":[256,71],"./haml":[257,72],"./haml.js":[257,72],"./handlebars":[258,73],"./handlebars.js":[258,73],"./haskell":[259,74],"./haskell.js":[259,74],"./haxe":[260,75],"./haxe.js":[260,75],"./hsp":[261,76],"./hsp.js":[261,76],"./htmlbars":[262,77],"./htmlbars.js":[262,77],"./http":[263,78],"./http.js":[263,78],"./hy":[264,79],"./hy.js":[264,79],"./inform7":[265,80],"./inform7.js":[265,80],"./ini":[266,81],"./ini.js":[266,81],"./irpf90":[267,82],"./irpf90.js":[267,82],"./isbl":[268,83],"./isbl.js":[268,83],"./java":[269,84],"./java.js":[269,84],"./javascript":[270,85],"./javascript.js":[270,85],"./jboss-cli":[271,86],"./jboss-cli.js":[271,86],"./json":[272,87],"./json.js":[272,87],"./julia":[274,88],"./julia-repl":[273,89],"./julia-repl.js":[273,89],"./julia.js":[274,88],"./kotlin":[275,90],"./kotlin.js":[275,90],"./lasso":[276,91],"./lasso.js":[276,91],"./ldif":[277,92],"./ldif.js":[277,92],"./leaf":[278,93],"./leaf.js":[278,93],"./less":[279,94],"./less.js":[279,94],"./lisp":[280,95],"./lisp.js":[280,95],"./livecodeserver":[281,96],"./livecodeserver.js":[281,96],"./livescript":[282,97],"./livescript.js":[282,97],"./llvm":[283,98],"./llvm.js":[283,98],"./lsl":[284,99],"./lsl.js":[284,99],"./lua":[285,100],"./lua.js":[285,100],"./makefile":[286,101],"./makefile.js":[286,101],"./markdown":[287,102],"./markdown.js":[287,102],"./mathematica":[288,103],"./mathematica.js":[288,103],"./matlab":[289,104],"./matlab.js":[289,104],"./maxima":[290,105],"./maxima.js":[290,105],"./mel":[291,106],"./mel.js":[291,106],"./mercury":[292,107],"./mercury.js":[292,107],"./mipsasm":[293,108],"./mipsasm.js":[293,108],"./mizar":[294,109],"./mizar.js":[294,109],"./mojolicious":[295,110],"./mojolicious.js":[295,110],"./monkey":[296,111],"./monkey.js":[296,111],"./moonscript":[297,112],"./moonscript.js":[297,112],"./n1ql":[298,113],"./n1ql.js":[298,113],"./nginx":[299,114],"./nginx.js":[299,114],"./nimrod":[300,115],"./nimrod.js":[300,115],"./nix":[301,116],"./nix.js":[301,116],"./nsis":[302,117],"./nsis.js":[302,117],"./objectivec":[303,118],"./objectivec.js":[303,118],"./ocaml":[304,119],"./ocaml.js":[304,119],"./openscad":[305,120],"./openscad.js":[305,120],"./oxygene":[306,121],"./oxygene.js":[306,121],"./parser3":[307,122],"./parser3.js":[307,122],"./perl":[308,123],"./perl.js":[308,123],"./pf":[309,124],"./pf.js":[309,124],"./pgsql":[310,125],"./pgsql.js":[310,125],"./php":[311,126],"./php.js":[311,126],"./plaintext":[312,127],"./plaintext.js":[312,127],"./pony":[313,128],"./pony.js":[313,128],"./powershell":[314,129],"./powershell.js":[314,129],"./processing":[315,130],"./processing.js":[315,130],"./profile":[316,131],"./profile.js":[316,131],"./prolog":[317,132],"./prolog.js":[317,132],"./properties":[318,133],"./properties.js":[318,133],"./protobuf":[319,134],"./protobuf.js":[319,134],"./puppet":[320,135],"./puppet.js":[320,135],"./purebasic":[321,136],"./purebasic.js":[321,136],"./python":[322,137],"./python.js":[322,137],"./q":[323,138],"./q.js":[323,138],"./qml":[324,139],"./qml.js":[324,139],"./r":[325,140],"./r.js":[325,140],"./reasonml":[326,141],"./reasonml.js":[326,141],"./rib":[327,142],"./rib.js":[327,142],"./roboconf":[328,143],"./roboconf.js":[328,143],"./routeros":[329,144],"./routeros.js":[329,144],"./rsl":[330,145],"./rsl.js":[330,145],"./ruby":[331,146],"./ruby.js":[331,146],"./ruleslanguage":[332,147],"./ruleslanguage.js":[332,147],"./rust":[333,148],"./rust.js":[333,148],"./sas":[334,149],"./sas.js":[334,149],"./scala":[335,150],"./scala.js":[335,150],"./scheme":[336,151],"./scheme.js":[336,151],"./scilab":[337,152],"./scilab.js":[337,152],"./scss":[338,153],"./scss.js":[338,153],"./shell":[339,154],"./shell.js":[339,154],"./smali":[340,155],"./smali.js":[340,155],"./smalltalk":[341,156],"./smalltalk.js":[341,156],"./sml":[342,157],"./sml.js":[342,157],"./sqf":[343,158],"./sqf.js":[343,158],"./sql":[344,159],"./sql.js":[344,159],"./stan":[345,160],"./stan.js":[345,160],"./stata":[346,161],"./stata.js":[346,161],"./step21":[347,162],"./step21.js":[347,162],"./stylus":[348,163],"./stylus.js":[348,163],"./subunit":[349,164],"./subunit.js":[349,164],"./swift":[350,165],"./swift.js":[350,165],"./taggerscript":[351,166],"./taggerscript.js":[351,166],"./tap":[352,167],"./tap.js":[352,167],"./tcl":[353,168],"./tcl.js":[353,168],"./tex":[354,169],"./tex.js":[354,169],"./thrift":[355,170],"./thrift.js":[355,170],"./tp":[356,171],"./tp.js":[356,171],"./twig":[357,172],"./twig.js":[357,172],"./typescript":[358,173],"./typescript.js":[358,173],"./vala":[359,174],"./vala.js":[359,174],"./vbnet":[360,175],"./vbnet.js":[360,175],"./vbscript":[362,176],"./vbscript-html":[361,177],"./vbscript-html.js":[361,177],"./vbscript.js":[362,176],"./verilog":[363,178],"./verilog.js":[363,178],"./vhdl":[364,179],"./vhdl.js":[364,179],"./vim":[365,180],"./vim.js":[365,180],"./x86asm":[366,181],"./x86asm.js":[366,181],"./xl":[367,182],"./xl.js":[367,182],"./xml":[368,183],"./xml.js":[368,183],"./xquery":[369,184],"./xquery.js":[369,184],"./yaml":[370,185],"./yaml.js":[370,185],"./zephir":[371,186],"./zephir.js":[371,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=382,e.exports=i},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)("60bd8a91",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)("5039213c",o,!0,{})},385:function(e,t,r){var o=r(486);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,r(87).default)("4cdf9bb0",o,!0,{})},386:function(e,t,r){"use strict";var o=r(175);r.n(o).a},387: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 .checkbox-item{display:flex;align-items:start}#read-only-editor div.ProseMirror .checkbox-item input[type=checkbox]{display:none}#read-only-editor div.ProseMirror .checkbox-item:before{content:\'\';display:inline-block;height:14px;width:14px;vertical-align:middle;border-radius:50%;margin:0 6px 3px 3px;margin-left:3px;border:1px solid #878787;content:"";position:relative;width:44px;height:44px;display:block;border-radius:1px;height:14px;width:14px;box-shadow:none !important;background-position:center}#read-only-editor div.ProseMirror .checkbox-item.checked:before{background-image:url("/core/css/../img/actions/checkbox-mark.svg");background-color:var(--color-primary-element)}#read-only-editor div.ProseMirror .checkbox-item label{display:block;flex-grow:1}#read-only-editor div.ProseMirror .checkbox-item label>*:first-child{margin-top:0}#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},388:function(e,t,r){"use strict";var o=r(176);r.n(o).a},389: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 .checkbox-item{display:flex;align-items:start}div.ProseMirror .checkbox-item input[type=checkbox]{display:none}div.ProseMirror .checkbox-item:before{content:\'\';display:inline-block;height:14px;width:14px;vertical-align:middle;border-radius:50%;margin:0 6px 3px 3px;margin-left:3px;border:1px solid #878787;content:"";position:relative;width:44px;height:44px;display:block;border-radius:1px;height:14px;width:14px;box-shadow:none !important;background-position:center}div.ProseMirror .checkbox-item.checked:before{background-image:url("/core/css/../img/actions/checkbox-mark.svg");background-color:var(--color-primary-element)}div.ProseMirror .checkbox-item label{display:block;flex-grow:1}div.ProseMirror .checkbox-item label>*:first-child{margin-top:0}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},399:function(e,t,r){var o=r(501);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,r(87).default)("a3c96434",o,!0,{})},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,"#editor-container[data-v-4e7c1306]{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-4e7c1306]{display:flex;width:100%;height:100%;overflow:hidden;position:absolute}#editor-wrapper .ProseMirror[data-v-4e7c1306]{margin-top:0 !important}#editor-wrapper.icon-loading #editor[data-v-4e7c1306]{opacity:0.3}#editor[data-v-4e7c1306],.editor[data-v-4e7c1306]{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-4e7c1306]{padding:12px;border-bottom:1px solid var(--color-border);padding-left:30px;background-position:8px center}.save-status[data-v-4e7c1306]{padding:9px;text-overflow:ellipsis;color:var(--color-text-lighter)}.save-status.error[data-v-4e7c1306]{background-color:var(--color-error);color:var(--color-main-background);border-radius:3px}#editor-container #editor-wrapper.has-conflicts[data-v-4e7c1306]{height:calc(100% - 50px)}#editor-container #editor-wrapper.has-conflicts #editor[data-v-4e7c1306],#editor-container #editor-wrapper.has-conflicts #read-only-editor[data-v-4e7c1306]{width:50%;height:100%}#editor-session-list[data-v-4e7c1306]{padding:4px 16px 4px 4px;display:flex}#editor-session-list input[data-v-4e7c1306],#editor-session-list div[data-v-4e7c1306]{vertical-align:middle;margin-left:3px}.editor__content[data-v-4e7c1306]{max-width:670px;margin:auto;position:relative}#body-public[data-v-4e7c1306]{height:auto}#files-public-content[data-v-4e7c1306]{height:auto}#files-public-content #editor-wrapper[data-v-4e7c1306]{position:relative}#files-public-content #editor-container[data-v-4e7c1306]{top:0;width:100%}#files-public-content #editor-container #editor[data-v-4e7c1306] .menubar{position:fixed;top:50px;width:100%}#files-public-content #editor-container #editor[data-v-4e7c1306]{padding-top:50px;overflow:auto}#files-public-content #editor-container .has-conflicts #editor[data-v-4e7c1306]{padding-top:0px}.ie #editor[data-v-4e7c1306] .menubar{position:fixed;top:50px;width:100%}.ie .editor__content[data-v-4e7c1306] .ProseMirror{padding-top:50px}\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,'.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 .checkbox-item{display:flex;align-items:start}#editor-wrapper div.ProseMirror .checkbox-item input[type=checkbox]{display:none}#editor-wrapper div.ProseMirror .checkbox-item:before{content:\'\';display:inline-block;height:14px;width:14px;vertical-align:middle;border-radius:50%;margin:0 6px 3px 3px;margin-left:3px;border:1px solid #878787;content:"";position:relative;width:44px;height:44px;display:block;border-radius:1px;height:14px;width:14px;box-shadow:none !important;background-position:center}#editor-wrapper div.ProseMirror .checkbox-item.checked:before{background-image:url("/core/css/../img/actions/checkbox-mark.svg");background-color:var(--color-primary-element)}#editor-wrapper div.ProseMirror .checkbox-item label{display:block;flex-grow:1}#editor-wrapper div.ProseMirror .checkbox-item label>*:first-child{margin-top:0}#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},485:function(e,t,r){"use strict";var o=r(385);r.n(o).a},486:function(e,t,r){(t=r(86)(!1)).push([e.i,"#direct-editor[data-v-24a28827]{width:100%;height:100vh}#direct-editor[data-v-24a28827] #editor-wrapper div.ProseMirror{margin-top:0}pre[data-v-24a28827]{width:100%;max-width:700px;margin:auto;background-color:var(--color-background-dark)}button[data-v-24a28827]{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-24a28827]:hover,button[data-v-24a28827]:focus,button[data-v-24a28827]:active{background-color:var(--color-background-dark)}button.is-active[data-v-24a28827],button[data-v-24a28827]:hover,button[data-v-24a28827]:focus{opacity:1}button.icon-undo[data-v-24a28827],button.icon-redo[data-v-24a28827]{opacity:.4}\n",""]),e.exports=t},500:function(e,t,r){"use strict";var o=r(399);r.n(o).a},501: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},522:function(e,t,r){"use strict";r.r(t);var o=r(170),i=r(373),n=r.n(i),s=r(372),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(386),r(388),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},526:function(e,t,r){"use strict";r.r(t);var o={name:"CollisionResolveDialog"},i=(r(500),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=fad06f0ecca408af0386 \ 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(382)("./"+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 m,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(Q(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 Z(e,2)[1].toMarkdown})).reduce((function(e,t){var r=Z(t,2);return te({},e,re({},r[0],r[1].toMarkdown))}),{}),o=Object.entries(t).filter((function(e){return Z(e,2)[1].toMarkdown})).reduce((function(e,t){var r=Z(t,2);return te({},e,re({},r[0],r[1].toMarkdown))}),{});return{serializer:new X.a(te({},X.b.nodes,{},r),te({},X.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}},376:function(e,t,r){"use strict";var o=r(174);r.n(o).a},377: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},382:function(e,t,r){var o={"./1c":[187,2],"./1c.js":[187,2],"./abnf":[188,3],"./abnf.js":[188,3],"./accesslog":[189,4],"./accesslog.js":[189,4],"./actionscript":[190,5],"./actionscript.js":[190,5],"./ada":[191,6],"./ada.js":[191,6],"./angelscript":[192,7],"./angelscript.js":[192,7],"./apache":[193,8],"./apache.js":[193,8],"./applescript":[194,9],"./applescript.js":[194,9],"./arcade":[195,10],"./arcade.js":[195,10],"./arduino":[196,11],"./arduino.js":[196,11],"./armasm":[197,12],"./armasm.js":[197,12],"./asciidoc":[198,13],"./asciidoc.js":[198,13],"./aspectj":[199,14],"./aspectj.js":[199,14],"./autohotkey":[200,15],"./autohotkey.js":[200,15],"./autoit":[201,16],"./autoit.js":[201,16],"./avrasm":[202,17],"./avrasm.js":[202,17],"./awk":[203,18],"./awk.js":[203,18],"./axapta":[204,19],"./axapta.js":[204,19],"./bash":[205,20],"./bash.js":[205,20],"./basic":[206,21],"./basic.js":[206,21],"./bnf":[207,22],"./bnf.js":[207,22],"./brainfuck":[208,23],"./brainfuck.js":[208,23],"./cal":[209,24],"./cal.js":[209,24],"./capnproto":[210,25],"./capnproto.js":[210,25],"./ceylon":[211,26],"./ceylon.js":[211,26],"./clean":[212,27],"./clean.js":[212,27],"./clojure":[214,28],"./clojure-repl":[213,29],"./clojure-repl.js":[213,29],"./clojure.js":[214,28],"./cmake":[215,30],"./cmake.js":[215,30],"./coffeescript":[216,31],"./coffeescript.js":[216,31],"./coq":[217,32],"./coq.js":[217,32],"./cos":[218,33],"./cos.js":[218,33],"./cpp":[219,34],"./cpp.js":[219,34],"./crmsh":[220,35],"./crmsh.js":[220,35],"./crystal":[221,36],"./crystal.js":[221,36],"./cs":[222,37],"./cs.js":[222,37],"./csp":[223,38],"./csp.js":[223,38],"./css":[224,39],"./css.js":[224,39],"./d":[225,40],"./d.js":[225,40],"./dart":[226,41],"./dart.js":[226,41],"./delphi":[227,42],"./delphi.js":[227,42],"./diff":[228,43],"./diff.js":[228,43],"./django":[229,44],"./django.js":[229,44],"./dns":[230,45],"./dns.js":[230,45],"./dockerfile":[231,46],"./dockerfile.js":[231,46],"./dos":[232,47],"./dos.js":[232,47],"./dsconfig":[233,48],"./dsconfig.js":[233,48],"./dts":[234,49],"./dts.js":[234,49],"./dust":[235,50],"./dust.js":[235,50],"./ebnf":[236,51],"./ebnf.js":[236,51],"./elixir":[237,52],"./elixir.js":[237,52],"./elm":[238,53],"./elm.js":[238,53],"./erb":[239,54],"./erb.js":[239,54],"./erlang":[241,55],"./erlang-repl":[240,56],"./erlang-repl.js":[240,56],"./erlang.js":[241,55],"./excel":[242,57],"./excel.js":[242,57],"./fix":[243,58],"./fix.js":[243,58],"./flix":[244,59],"./flix.js":[244,59],"./fortran":[245,60],"./fortran.js":[245,60],"./fsharp":[246,61],"./fsharp.js":[246,61],"./gams":[247,62],"./gams.js":[247,62],"./gauss":[248,63],"./gauss.js":[248,63],"./gcode":[249,64],"./gcode.js":[249,64],"./gherkin":[250,65],"./gherkin.js":[250,65],"./glsl":[251,66],"./glsl.js":[251,66],"./gml":[252,67],"./gml.js":[252,67],"./go":[253,68],"./go.js":[253,68],"./golo":[254,69],"./golo.js":[254,69],"./gradle":[255,70],"./gradle.js":[255,70],"./groovy":[256,71],"./groovy.js":[256,71],"./haml":[257,72],"./haml.js":[257,72],"./handlebars":[258,73],"./handlebars.js":[258,73],"./haskell":[259,74],"./haskell.js":[259,74],"./haxe":[260,75],"./haxe.js":[260,75],"./hsp":[261,76],"./hsp.js":[261,76],"./htmlbars":[262,77],"./htmlbars.js":[262,77],"./http":[263,78],"./http.js":[263,78],"./hy":[264,79],"./hy.js":[264,79],"./inform7":[265,80],"./inform7.js":[265,80],"./ini":[266,81],"./ini.js":[266,81],"./irpf90":[267,82],"./irpf90.js":[267,82],"./isbl":[268,83],"./isbl.js":[268,83],"./java":[269,84],"./java.js":[269,84],"./javascript":[270,85],"./javascript.js":[270,85],"./jboss-cli":[271,86],"./jboss-cli.js":[271,86],"./json":[272,87],"./json.js":[272,87],"./julia":[274,88],"./julia-repl":[273,89],"./julia-repl.js":[273,89],"./julia.js":[274,88],"./kotlin":[275,90],"./kotlin.js":[275,90],"./lasso":[276,91],"./lasso.js":[276,91],"./ldif":[277,92],"./ldif.js":[277,92],"./leaf":[278,93],"./leaf.js":[278,93],"./less":[279,94],"./less.js":[279,94],"./lisp":[280,95],"./lisp.js":[280,95],"./livecodeserver":[281,96],"./livecodeserver.js":[281,96],"./livescript":[282,97],"./livescript.js":[282,97],"./llvm":[283,98],"./llvm.js":[283,98],"./lsl":[284,99],"./lsl.js":[284,99],"./lua":[285,100],"./lua.js":[285,100],"./makefile":[286,101],"./makefile.js":[286,101],"./markdown":[287,102],"./markdown.js":[287,102],"./mathematica":[288,103],"./mathematica.js":[288,103],"./matlab":[289,104],"./matlab.js":[289,104],"./maxima":[290,105],"./maxima.js":[290,105],"./mel":[291,106],"./mel.js":[291,106],"./mercury":[292,107],"./mercury.js":[292,107],"./mipsasm":[293,108],"./mipsasm.js":[293,108],"./mizar":[294,109],"./mizar.js":[294,109],"./mojolicious":[295,110],"./mojolicious.js":[295,110],"./monkey":[296,111],"./monkey.js":[296,111],"./moonscript":[297,112],"./moonscript.js":[297,112],"./n1ql":[298,113],"./n1ql.js":[298,113],"./nginx":[299,114],"./nginx.js":[299,114],"./nimrod":[300,115],"./nimrod.js":[300,115],"./nix":[301,116],"./nix.js":[301,116],"./nsis":[302,117],"./nsis.js":[302,117],"./objectivec":[303,118],"./objectivec.js":[303,118],"./ocaml":[304,119],"./ocaml.js":[304,119],"./openscad":[305,120],"./openscad.js":[305,120],"./oxygene":[306,121],"./oxygene.js":[306,121],"./parser3":[307,122],"./parser3.js":[307,122],"./perl":[308,123],"./perl.js":[308,123],"./pf":[309,124],"./pf.js":[309,124],"./pgsql":[310,125],"./pgsql.js":[310,125],"./php":[311,126],"./php.js":[311,126],"./plaintext":[312,127],"./plaintext.js":[312,127],"./pony":[313,128],"./pony.js":[313,128],"./powershell":[314,129],"./powershell.js":[314,129],"./processing":[315,130],"./processing.js":[315,130],"./profile":[316,131],"./profile.js":[316,131],"./prolog":[317,132],"./prolog.js":[317,132],"./properties":[318,133],"./properties.js":[318,133],"./protobuf":[319,134],"./protobuf.js":[319,134],"./puppet":[320,135],"./puppet.js":[320,135],"./purebasic":[321,136],"./purebasic.js":[321,136],"./python":[322,137],"./python.js":[322,137],"./q":[323,138],"./q.js":[323,138],"./qml":[324,139],"./qml.js":[324,139],"./r":[325,140],"./r.js":[325,140],"./reasonml":[326,141],"./reasonml.js":[326,141],"./rib":[327,142],"./rib.js":[327,142],"./roboconf":[328,143],"./roboconf.js":[328,143],"./routeros":[329,144],"./routeros.js":[329,144],"./rsl":[330,145],"./rsl.js":[330,145],"./ruby":[331,146],"./ruby.js":[331,146],"./ruleslanguage":[332,147],"./ruleslanguage.js":[332,147],"./rust":[333,148],"./rust.js":[333,148],"./sas":[334,149],"./sas.js":[334,149],"./scala":[335,150],"./scala.js":[335,150],"./scheme":[336,151],"./scheme.js":[336,151],"./scilab":[337,152],"./scilab.js":[337,152],"./scss":[338,153],"./scss.js":[338,153],"./shell":[339,154],"./shell.js":[339,154],"./smali":[340,155],"./smali.js":[340,155],"./smalltalk":[341,156],"./smalltalk.js":[341,156],"./sml":[342,157],"./sml.js":[342,157],"./sqf":[343,158],"./sqf.js":[343,158],"./sql":[344,159],"./sql.js":[344,159],"./stan":[345,160],"./stan.js":[345,160],"./stata":[346,161],"./stata.js":[346,161],"./step21":[347,162],"./step21.js":[347,162],"./stylus":[348,163],"./stylus.js":[348,163],"./subunit":[349,164],"./subunit.js":[349,164],"./swift":[350,165],"./swift.js":[350,165],"./taggerscript":[351,166],"./taggerscript.js":[351,166],"./tap":[352,167],"./tap.js":[352,167],"./tcl":[353,168],"./tcl.js":[353,168],"./tex":[354,169],"./tex.js":[354,169],"./thrift":[355,170],"./thrift.js":[355,170],"./tp":[356,171],"./tp.js":[356,171],"./twig":[357,172],"./twig.js":[357,172],"./typescript":[358,173],"./typescript.js":[358,173],"./vala":[359,174],"./vala.js":[359,174],"./vbnet":[360,175],"./vbnet.js":[360,175],"./vbscript":[362,176],"./vbscript-html":[361,177],"./vbscript-html.js":[361,177],"./vbscript.js":[362,176],"./verilog":[363,178],"./verilog.js":[363,178],"./vhdl":[364,179],"./vhdl.js":[364,179],"./vim":[365,180],"./vim.js":[365,180],"./x86asm":[366,181],"./x86asm.js":[366,181],"./xl":[367,182],"./xl.js":[367,182],"./xml":[368,183],"./xml.js":[368,183],"./xquery":[369,184],"./xquery.js":[369,184],"./yaml":[370,185],"./yaml.js":[370,185],"./zephir":[371,186],"./zephir.js":[371,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=382,e.exports=i},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)("60bd8a91",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)("5039213c",o,!0,{})},385:function(e,t,r){var o=r(486);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,r(87).default)("eb76de5c",o,!0,{})},386:function(e,t,r){"use strict";var o=r(175);r.n(o).a},387: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 .checkbox-item{display:flex;align-items:start}#read-only-editor div.ProseMirror .checkbox-item input[type=checkbox]{display:none}#read-only-editor div.ProseMirror .checkbox-item:before{content:\'\';display:inline-block;height:14px;width:14px;vertical-align:middle;border-radius:50%;margin:0 6px 3px 3px;margin-left:3px;border:1px solid #878787;content:"";position:relative;width:44px;height:44px;display:block;border-radius:1px;height:14px;width:14px;box-shadow:none !important;background-position:center}#read-only-editor div.ProseMirror .checkbox-item.checked:before{background-image:url("/core/css/../img/actions/checkbox-mark.svg");background-color:var(--color-primary-element)}#read-only-editor div.ProseMirror .checkbox-item label{display:block;flex-grow:1}#read-only-editor div.ProseMirror .checkbox-item label>*:first-child{margin-top:0}#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},388:function(e,t,r){"use strict";var o=r(176);r.n(o).a},389: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 .checkbox-item{display:flex;align-items:start}div.ProseMirror .checkbox-item input[type=checkbox]{display:none}div.ProseMirror .checkbox-item:before{content:\'\';display:inline-block;height:14px;width:14px;vertical-align:middle;border-radius:50%;margin:0 6px 3px 3px;margin-left:3px;border:1px solid #878787;content:"";position:relative;width:44px;height:44px;display:block;border-radius:1px;height:14px;width:14px;box-shadow:none !important;background-position:center}div.ProseMirror .checkbox-item.checked:before{background-image:url("/core/css/../img/actions/checkbox-mark.svg");background-color:var(--color-primary-element)}div.ProseMirror .checkbox-item label{display:block;flex-grow:1}div.ProseMirror .checkbox-item label>*:first-child{margin-top:0}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},399:function(e,t,r){var o=r(501);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,r(87).default)("a3c96434",o,!0,{})},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,"#editor-container[data-v-4e7c1306]{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-4e7c1306]{display:flex;width:100%;height:100%;overflow:hidden;position:absolute}#editor-wrapper .ProseMirror[data-v-4e7c1306]{margin-top:0 !important}#editor-wrapper.icon-loading #editor[data-v-4e7c1306]{opacity:0.3}#editor[data-v-4e7c1306],.editor[data-v-4e7c1306]{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-4e7c1306]{padding:12px;border-bottom:1px solid var(--color-border);padding-left:30px;background-position:8px center}.save-status[data-v-4e7c1306]{padding:9px;text-overflow:ellipsis;color:var(--color-text-lighter)}.save-status.error[data-v-4e7c1306]{background-color:var(--color-error);color:var(--color-main-background);border-radius:3px}#editor-container #editor-wrapper.has-conflicts[data-v-4e7c1306]{height:calc(100% - 50px)}#editor-container #editor-wrapper.has-conflicts #editor[data-v-4e7c1306],#editor-container #editor-wrapper.has-conflicts #read-only-editor[data-v-4e7c1306]{width:50%;height:100%}#editor-session-list[data-v-4e7c1306]{padding:4px 16px 4px 4px;display:flex}#editor-session-list input[data-v-4e7c1306],#editor-session-list div[data-v-4e7c1306]{vertical-align:middle;margin-left:3px}.editor__content[data-v-4e7c1306]{max-width:670px;margin:auto;position:relative}#body-public[data-v-4e7c1306]{height:auto}#files-public-content[data-v-4e7c1306]{height:auto}#files-public-content #editor-wrapper[data-v-4e7c1306]{position:relative}#files-public-content #editor-container[data-v-4e7c1306]{top:0;width:100%}#files-public-content #editor-container #editor[data-v-4e7c1306] .menubar{position:fixed;top:50px;width:100%}#files-public-content #editor-container #editor[data-v-4e7c1306]{padding-top:50px;overflow:auto}#files-public-content #editor-container .has-conflicts #editor[data-v-4e7c1306]{padding-top:0px}.ie #editor[data-v-4e7c1306] .menubar{position:fixed;top:50px;width:100%}.ie .editor__content[data-v-4e7c1306] .ProseMirror{padding-top:50px}\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,'.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 .checkbox-item{display:flex;align-items:start}#editor-wrapper div.ProseMirror .checkbox-item input[type=checkbox]{display:none}#editor-wrapper div.ProseMirror .checkbox-item:before{content:\'\';display:inline-block;height:14px;width:14px;vertical-align:middle;border-radius:50%;margin:0 6px 3px 3px;margin-left:3px;border:1px solid #878787;content:"";position:relative;width:44px;height:44px;display:block;border-radius:1px;height:14px;width:14px;box-shadow:none !important;background-position:center}#editor-wrapper div.ProseMirror .checkbox-item.checked:before{background-image:url("/core/css/../img/actions/checkbox-mark.svg");background-color:var(--color-primary-element)}#editor-wrapper div.ProseMirror .checkbox-item label{display:block;flex-grow:1}#editor-wrapper div.ProseMirror .checkbox-item label>*:first-child{margin-top:0}#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},485:function(e,t,r){"use strict";var o=r(385);r.n(o).a},486:function(e,t,r){(t=r(86)(!1)).push([e.i,"#direct-editor[data-v-626177ba]{width:100%;height:100vh}#direct-editor[data-v-626177ba] #editor-wrapper div.ProseMirror{margin-top:0}pre[data-v-626177ba]{width:100%;max-width:700px;margin:auto;background-color:var(--color-background-dark)}button[data-v-626177ba]{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-626177ba]:hover,button[data-v-626177ba]:focus,button[data-v-626177ba]:active{background-color:var(--color-background-dark)}button.is-active[data-v-626177ba],button[data-v-626177ba]:hover,button[data-v-626177ba]:focus{opacity:1}button.icon-undo[data-v-626177ba],button.icon-redo[data-v-626177ba]{opacity:.4}\n",""]),e.exports=t},500:function(e,t,r){"use strict";var o=r(399);r.n(o).a},501: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},522:function(e,t,r){"use strict";r.r(t);var o=r(170),i=r(373),n=r.n(i),s=r(372),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(386),r(388),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},526:function(e,t,r){"use strict";r.r(t);var o={name:"CollisionResolveDialog"},i=(r(500),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=7b3a2dd7ed575a00e8f0 \ No newline at end of file