text/js/editor.js

3 строки
234 KiB
JavaScript

/*! For license information please see editor.js.LICENSE.txt */
(self.webpackChunk_nextcloud_text=self.webpackChunk_nextcloud_text||[]).push([["editor"],{31728:(t,e,i)=>{"use strict";i.d(e,{BG:()=>C,C6:()=>h,Cy:()=>u,FQ:()=>s,HB:()=>o,IT:()=>c,QT:()=>b,Uw:()=>n,Zf:()=>y,a_:()=>x,cY:()=>l,eP:()=>_,fB:()=>m,q$:()=>a,rz:()=>v,sw:()=>p,vo:()=>d,wU:()=>A,ww:()=>f,zZ:()=>g});var r=i(52029);const n=Symbol("tiptap:editor"),o=Symbol("editor:file"),s=Symbol("attachment:resolver"),a=Symbol("editor:is-mobile"),l=Symbol("editor:is-public"),d=Symbol("editor:is-rich-editor"),c=Symbol("editor:is-rich-woskapace"),A=Symbol("sync:service"),h=Symbol("editor:upload"),p=Symbol("hook:mention-search"),g=Symbol("hook:mention-insert"),u={inject:{$editor:{from:n,default:null}}},C={inject:{$syncService:{from:A,default:null}}},m={inject:{$isPublic:{from:l,default:!1}}},v={inject:{$isRichWorkspace:{from:c,default:!1}}},b={inject:{$isRichEditor:{from:d,default:!1}}},f={inject:{$isMobile:{from:a,default:!1}}},x={inject:{$file:{from:o,default:()=>({fileId:0,relativePath:null,document:null})}}},y={inject:{$attachmentResolver:{from:s,default:{resolve:t=>(r.k.warn("No attachment resolver provided. Some attachment sources cannot be resolved."),[t])}}}},_={inject:{$editorUpload:{from:h,default:!0}}}},52447:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});const r=(0,i(20144).defineComponent)({data:()=>({activeMenuEntry:0,entries:[]}),computed:{visibleEntries(){return this.entries}},watch:{visibleEntries(){this.$nextTick((()=>{var t;(this.activeMenuEntry>this.visibleEntries.length||null!==(t=this.visibleEntries[this.activeMenuEntry])&&void 0!==t&&t.disabled)&&this.setNextMenuEntry()}))}},methods:{disableMenuEntry(t,e){const i=this.visibleEntries.findIndex((e=>{let{key:i}=e;return i===t}));this.visibleEntries[i].disabled=e,!1===e&&this.activeMenuEntry===i&&this.$nextTick((()=>this.setNextMenuEntry()))},setNextMenuEntry(){const t=this.visibleEntries.length+(this.$refs.remainingEntries?1:0);do{this.activeMenuEntry=(this.activeMenuEntry+1)%t}while(this.activeMenuEntry<this.visibleEntries.length&&this.visibleEntries[this.activeMenuEntry].disabled)},setPreviousMenuEntry(){const t=this.visibleEntries.length+(this.$refs.remainingEntries?1:0);do{const e=this.activeMenuEntry-1;this.activeMenuEntry=(e%t+t)%t}while(this.activeMenuEntry<this.visibleEntries.length&&this.visibleEntries[this.activeMenuEntry].disabled)},handleToolbarNavigation(t){if("ArrowRight"===t.key?this.setNextMenuEntry():"ArrowLeft"===t.key&&this.setPreviousMenuEntry(),this.activeMenuEntry===this.visibleEntries.length){var e,i;null===(e=this.$refs.remainingEntries)||void 0===e||null===(i=e.focusButton)||void 0===i||i.call(e)}else{[...this.$refs.menuEntries].sort(((t,e)=>this.visibleEntries.findIndex((e=>{let{key:i}=e;return i===t.$vnode.data.key}))-this.visibleEntries.findIndex((t=>{let{key:i}=t;return i===e.$vnode.data.key}))))[this.activeMenuEntry].focusButton()}}}})},52029:(t,e,i)=>{"use strict";i.d(e,{k:()=>r});const r=(0,i(17499).IY)().setApp("text").detectUser().build()},207:(t,e,i)=>{"use strict";i.d(e,{Z:()=>k});var r=i(11480),n=i(57691),o=i.n(n),s=i(25030);function a(t,e){d(t,e),e.add(t)}function l(t,e,i){d(t,e),e.set(t,i)}function d(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function c(t,e){return function(t,e){if(e.get)return e.get.call(t);return e.value}(t,p(t,e,"get"))}function A(t,e,i){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return i}function h(t,e,i){return function(t,e,i){if(e.set)e.set.call(t,i);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=i}}(t,p(t,e,"set"),i),i}function p(t,e,i){if(!e.has(t))throw new TypeError("attempted to "+i+" private field on non-instance");return e.get(t)}const g=s.default.getters["text/findAttachment"];var u=new WeakMap,C=new WeakMap,m=new WeakMap,v=new WeakMap,b=new WeakMap,f=new WeakMap,x=new WeakSet,y=new WeakSet,_=new WeakSet,j=new WeakSet,w=new WeakSet;class k{constructor(t){let{session:e,user:i,shareToken:r,currentDirectory:n,fileId:o}=t;a(this,w),a(this,j),a(this,_),a(this,y),a(this,x),l(this,u,{writable:!0,value:void 0}),l(this,C,{writable:!0,value:void 0}),l(this,m,{writable:!0,value:void 0}),l(this,v,{writable:!0,value:void 0}),l(this,b,{writable:!0,value:void 0}),l(this,f,{writable:!0,value:void 0}),h(this,u,e),h(this,C,i),h(this,m,r),h(this,v,n),h(this,b,null!=o?o:e.documentId),h(this,f,A(this,x,M).call(this))}async resolve(t){let e,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=/^\.attachments\.\d+\//;if(t.match(r)){const n=decodeURIComponent(t.replace(r,"").split("?")[0]);if(await c(this,f),e=g(n),i&&!e&&(await A(this,x,M).call(this),e=g(n)),e)return e}return function(t){return t.startsWith("http://")||t.startsWith("https://")||t.startsWith("data:")}(t)?{isImage:!0,name:A(this,y,B).call(this,t),previewUrl:t,fullUrl:t}:{isImage:!0,name:A(this,y,B).call(this,t),previewUrl:A(this,_,E).call(this,t),fullUrl:A(this,_,E).call(this,t)}}}async function M(){return t={documentId:c(this,b),session:c(this,u),shareToken:c(this,m)},s.default.dispatch("text/setAttachmentList",t);var t}function B(t){return t.split("/").pop()}function E(t){if(c(this,C)){const e=c(this,C).uid,i=A(this,w,S).call(this,t).split("/").map(encodeURIComponent).join("/");return(0,r.c)("dav/files/".concat(e).concat(i))}const e=A(this,w,S).call(this,t).split("/"),i=e.pop(),n=e.join("/");return(0,r.nu)("/s/{token}/download?path={dirname}&files={basename}",{token:c(this,m),basename:i,dirname:n})}function P(t){return decodeURI(t.split("?")[0])}function S(t){const e=[c(this,v),A(this,j,P).call(this,t)].join("/");return o()(e)}},86536:(t,e,i)=>{"use strict";i.d(e,{r2:()=>et,jA:()=>tt,QS:()=>it,TY:()=>X,_U:()=>nt});var r=i(59391),n=i(20296),o=i.n(n),s=i(52029),a=i(47845),l=i(11480);function d(t,e){A(t,e),e.add(t)}function c(t,e,i){A(t,e),e.set(t,i)}function A(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(t,e){return function(t,e){if(e.get)return e.get.call(t);return e.value}(t,u(t,e,"get"))}function p(t,e,i){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return i}function g(t,e,i){return function(t,e,i){if(e.set)e.set.call(t,i);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=i}}(t,u(t,e,"set"),i),i}function u(t,e,i){if(!e.has(t))throw new TypeError("attempted to "+i+" private field on non-instance");return e.get(t)}class C extends Error{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Close has already been called on the connection";for(var e=arguments.length,i=new Array(e>1?e-1:0),r=1;r<e;r++)i[r-1]=arguments[r];super(t,...i)}}var m=new WeakMap,v=new WeakSet;function b(t){return $(t,!!h(this,m).shareToken)}var f=new WeakMap,x=new WeakMap,y=new WeakMap,_=new WeakMap,j=new WeakMap,w=new WeakMap,k=new WeakMap,M=new WeakMap,B=new WeakMap,E=new WeakSet,P=new WeakSet;class S{constructor(t,e){d(this,P),d(this,E),c(this,B,{get:D,set:void 0}),c(this,f,{writable:!0,value:void 0}),c(this,x,{writable:!0,value:void 0}),c(this,y,{writable:!0,value:void 0}),c(this,_,{writable:!0,value:void 0}),c(this,j,{writable:!0,value:void 0}),c(this,w,{writable:!0,value:void 0}),c(this,k,{writable:!0,value:void 0}),c(this,M,{writable:!0,value:void 0});const{document:i,session:r,lock:n,readOnly:o,content:s,documentState:a}=t.data;g(this,_,i),g(this,j,r),g(this,w,n),g(this,k,o),g(this,f,s),g(this,y,a),g(this,M,e),this.isPublic=!!e.shareToken,this.closed=!1}get session(){return h(this,j)}get document(){return h(this,_)}get docStateVersion(){return h(this,y)?h(this,_).lastSavedVersion:0}get state(){return{document:{...h(this,_),readOnly:h(this,k)},session:h(this,j),documentSource:h(this,f)||"",documentState:h(this,y)}}sync(t){let{version:e}=t;return p(this,E,I).call(this,p(this,P,T).call(this,"session/".concat(h(this,_).id,"/sync")),{...h(this,B),filePath:h(this,M).filePath,baseVersionEtag:h(this,_).baseVersionEtag,version:e})}save(t){let{version:e,autosaveContent:i,documentState:r,force:n,manualSave:o}=t;return p(this,E,I).call(this,p(this,P,T).call(this,"session/".concat(h(this,_).id,"/save")),{...h(this,B),filePath:h(this,M).filePath,baseVersionEtag:h(this,_).baseVersionEtag,version:e,autosaveContent:i,documentState:r,force:n,manualSave:o})}push(t){let{steps:e,version:i,awareness:r}=t;return p(this,E,I).call(this,p(this,P,T).call(this,"session/".concat(h(this,_).id,"/push")),{...h(this,B),filePath:h(this,M).filePath,baseVersionEtag:h(this,_).baseVersionEtag,steps:e,version:i,awareness:r})}update(t){return p(this,E,I).call(this,p(this,P,T).call(this,"session/".concat(h(this,_).id,"/session")),{...h(this,B),guestName:t}).then((t=>{let{data:e}=t;g(this,j,e)}))}uploadAttachment(t){const e=new FormData;e.append("file",t);const i=$("attachment/upload")+"?documentId="+encodeURIComponent(h(this,_).id)+"&sessionId="+encodeURIComponent(h(this,j).id)+"&sessionToken="+encodeURIComponent(h(this,j).token)+"&shareToken="+encodeURIComponent(h(this,M).shareToken||"");return p(this,E,I).call(this,i,e,{headers:{"Content-Type":"multipart/form-data"}})}insertAttachmentFile(t){return p(this,E,I).call(this,$("attachment/filepath"),{documentId:h(this,_).id,sessionId:h(this,j).id,sessionToken:h(this,j).token,filePath:t})}close(){const t=p(this,E,I).call(this,p(this,P,T).call(this,"session/".concat(h(this,_).id,"/close")),h(this,B));return this.closed=!0,t}setBaseVersionEtag(t){h(this,_).baseVersionEtag=t}}function D(){return{documentId:h(this,_).id,sessionId:h(this,j).id,sessionToken:h(this,j).token,token:h(this,M).shareToken}}function I(){return this.closed?Promise.reject(new C):a.Z.post(...arguments)}function T(t){return $(t,!!h(this,B).token)}function $(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=(0,l.nu)("/apps/text");return e?"".concat(i,"/public/").concat(t):"".concat(i,"/").concat(t)}const L=class{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d(this,v),c(this,m,{writable:!0,value:void 0}),g(this,m,t)}open(t){let{fileId:e,baseVersionEtag:i}=t;return a.Z.put(p(this,v,b).call(this,"session/".concat(e,"/create")),{fileId:e,baseVersionEtag:i,filePath:h(this,m).filePath,token:h(this,m).shareToken,guestName:h(this,m).guestName,forceRecreate:h(this,m).forceRecreate}).then((t=>new S(t,h(this,m))))}};function O(t,e,i){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.set(t,i)}function Z(t,e){return function(t,e){if(e.get)return e.get.call(t);return e.value}(t,N(t,e,"get"))}function z(t,e,i){return function(t,e,i){if(e.set)e.set.call(t,i);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=i}}(t,N(t,e,"set"),i),i}function N(t,e,i){if(!e.has(t))throw new TypeError("attempted to "+i+" private field on non-instance");return e.get(t)}var R=new WeakMap,U=new WeakMap,G=new WeakMap,F=new WeakMap,W=new WeakMap,q=new WeakMap,H=new WeakMap;const Y=class{constructor(t,e){O(this,R,{writable:!0,value:void 0}),O(this,U,{writable:!0,value:void 0}),O(this,G,{writable:!0,value:void 0}),O(this,F,{writable:!0,value:void 0}),O(this,W,{writable:!0,value:void 0}),O(this,q,{writable:!0,value:void 0}),O(this,H,{writable:!0,value:void 0}),z(this,R,t),z(this,U,e),z(this,F,300),z(this,W,0),z(this,G,0)}connect(){this.fetcher>0?console.error("Trying to connect, but already connected"):(z(this,H,!1),this.fetcher=setInterval(this._fetchSteps.bind(this),50),document.addEventListener("visibilitychange",this.visibilitychange.bind(this)))}async _fetchSteps(){if(Z(this,q))return;const t=Date.now();Z(this,G)>t-Z(this,F)||(this.fetcher?(z(this,q,!0),s.k.debug("[PollingBackend] Fetching steps",Z(this,R).version),await Z(this,U).sync({version:Z(this,R).version}).then(this._handleResponse.bind(this),this._handleError.bind(this)),z(this,G,Date.now()),z(this,q,!1)):console.error("No inverval but triggered"))}_handleResponse(t){let{data:e}=t;const{document:i,sessions:r}=e;if(z(this,W,0),Z(this,R).emit("change",{document:i,sessions:r}),Z(this,R)._receiveSteps(e),0===e.steps.length){if(Z(this,H)||z(this,H,!0),Z(this,R).checkIdle())return;const t=Date.now()-9e4;return r.filter((e=>1e3*e.lastContact>t)).length<2?this.maximumRefetchTimer():this.increaseRefetchTimer(),void Z(this,R).emit("stateChange",{initialLoading:!0})}Z(this,H)&&this.resetRefetchTimer()}_handleError(t){var e,i;t.response&&"ECONNABORTED"!==t.code?409===t.response.status?(this._handleResponse(t.response),s.k.error("Conflict during file save, please resolve"),Z(this,R).emit("error",{type:it.SAVE_COLLISSION,data:{outsideChange:t.response.data.outsideChange}})):412===t.response.status?(Z(this,R).emit("error",{type:it.LOAD_ERROR,data:t.response}),this.disconnect()):403===t.response.status||404===t.response.status?(Z(this,R).emit("error",{type:it.SOURCE_NOT_FOUND,data:{}}),this.disconnect()):503===t.response.status?(this.increaseRefetchTimer(),Z(this,R).emit("error",{type:it.CONNECTION_FAILED,data:{}}),s.k.error("Failed to fetch steps due to unavailable service",{error:t})):(this.disconnect(),Z(this,R).emit("error",{type:it.CONNECTION_FAILED,data:{}}),s.k.error("Failed to fetch steps due to other reason",{error:t})):(z(this,W,(e=Z(this,W),i=e++,e)),i>=5?(s.k.error("[PollingBackend:fetchSteps] Network error when fetching steps, emitting CONNECTION_FAILED"),Z(this,R).emit("error",{type:it.CONNECTION_FAILED,data:{}})):s.k.error("[PollingBackend:fetchSteps] Network error when fetching steps, retry ".concat(Z(this,W))))}disconnect(){clearInterval(this.fetcher),this.fetcher=0,document.removeEventListener("visibilitychange",this.visibilitychange.bind(this))}resetRefetchTimer(){z(this,F,300)}increaseRefetchTimer(){z(this,F,Math.min(2*Z(this,F),5e3))}maximumRefetchTimer(){z(this,F,5e3)}visibilitychange(){"hidden"===document.visibilityState?z(this,F,6e4):this.resetRefetchTimer()}};function V(t,e,i){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.set(t,i)}function Q(t,e){return function(t,e){if(e.get)return e.get.call(t);return e.value}(t,J(t,e,"get"))}function K(t,e,i){return function(t,e,i){if(e.set)e.set.call(t,i);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=i}}(t,J(t,e,"set"),i),i}function J(t,e,i){if(!e.has(t))throw new TypeError("attempted to "+i+" private field on non-instance");return e.get(t)}const X=1440,tt=60,et=90,it={SAVE_COLLISSION:0,PUSH_FAILURE:1,LOAD_ERROR:2,CONNECTION_FAILED:3,SOURCE_NOT_FOUND:4};var rt=new WeakMap;class nt{constructor(t){let{baseVersionEtag:e,serialize:i,getDocumentState:n,...s}=t;return V(this,rt,{writable:!0,value:void 0}),this._bus=(0,r.Z)(),this.serialize=i,this.getDocumentState=n,this._api=new L(s),this.connection=null,this.stepClientIDs=[],this.lastStepPush=Date.now(),this.version=null,this.baseVersionEtag=e,this.sending=!1,K(this,rt,null),this.autosave=o()(this._autosave.bind(this),3e4),this}async open(t){let{fileId:e,initialSession:i}=t;const r=i?Promise.resolve(new S({data:i},{})):this._api.open({fileId:e,baseVersionEtag:this.baseVersionEtag}).catch((t=>this._emitError(t)));this.connection=await r,this.connection&&(this.backend=new Y(this,this.connection),this.version=this.connection.docStateVersion,this.baseVersionEtag=this.connection.document.baseVersionEtag,this.emit("opened",{...this.connection.state,version:this.version}),this.emit("loaded",{...this.connection.state,version:this.version}))}startSync(){this.backend.connect()}syncUp(){this.backend.resetRefetchTimer()}_emitError(t){t.response&&"ECONNABORTED"!==t.code?this.emit("error",{type:it.LOAD_ERROR,data:t.response}):this.emit("error",{type:it.CONNECTION_FAILED,data:{}})}updateSession(t){return this.connection.isPublic?this.connection.update(t).catch((t=>(s.k.error("Failed to update the session",{error:t}),Promise.reject(t)))):Promise.reject(new Error)}sendSteps(t){if(!Q(this,rt))return new Promise(((e,i)=>{K(this,rt,setInterval((()=>{this.connection&&!this.sending&&this.sendStepsNow(t).then(e).catch(i)}),200))}))}sendStepsNow(t){this.sending=!0,clearInterval(Q(this,rt)),K(this,rt,null);const e=t();return e.steps.length>0&&this.emit("stateChange",{dirty:!0}),this.connection.push(e).then((t=>{this.sending=!1,this.emit("sync",{steps:[],document:this.connection.document,version:this.version})})).catch((t=>{const{response:i,code:r}=t;if(this.sending=!1,i&&"ECONNABORTED"!==r||this.emit("error",{type:it.CONNECTION_FAILED,data:{}}),412===(null==i?void 0:i.status))this.emit("error",{type:it.LOAD_ERROR,data:i});else if(403===(null==i?void 0:i.status)){var n;e.document||s.k.error("failed to write to document - not allowed"),(null===(n=i.data.document)||void 0===n?void 0:n.currentVersion)===this.version&&(this.emit("error",{type:it.PUSH_FAILURE,data:{}}),OC.Notification.showTemporary("Changes could not be sent yet"))}throw new Error("Failed to apply steps. Retry!",{cause:t})}))}_receiveSteps(t){let{steps:e,document:i,sessions:r}=t;const n=[...r.filter((t=>t.lastContact>Math.floor(Date.now()/1e3)-et)).filter((t=>t.lastAwarenessMessage)).map((t=>({step:t.lastAwarenessMessage,clientId:t.clientId})))];for(let t=0;t<e.length;t++){const i=e[t].data;this.version<e[t].version&&(this.version=e[t].version),Array.isArray(i)?i.forEach((i=>{n.push({step:i,clientID:e[t].sessionId})})):s.k.error("Invalid step data, skipping step",{step:e[t]})}this.lastStepPush=Date.now(),this.emit("sync",{steps:n,document:this.connection.document,version:this.version})}checkIdle(){return(Date.now()-this.lastStepPush)/1e3/60>X&&(s.k.debug("[SyncService] Document is idle for ".concat(this.IDLE_TIMEOUT," minutes, suspending connection")),this.emit("idle"),!0)}_getContent(){return this.serialize()}async save(){let{force:t=!1,manualSave:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s.k.debug("[SyncService] saving",arguments[0]);try{const i=await this.connection.save({version:this.version,autosaveContent:this._getContent(),documentState:this.getDocumentState(),force:t,manualSave:e});this.emit("stateChange",{dirty:!1}),this.connection.document.lastSavedVersionTime=Date.now()/1e3,s.k.debug("[SyncService] saved",i);const{document:r,sessions:n}=i.data;this.emit("save",{document:r,sessions:n}),this.autosave.clear()}catch(t){throw s.k.error("Failed to save document.",{error:t}),t}}forceSave(){return this.save({force:!0})}_autosave(){return this.save({manualSave:!1}).catch((t=>{s.k.error("Failed to autosave document.",{error:t})}))}async close(){var t;return this.autosave.clear(),null===(t=this.backend)||void 0===t||t.disconnect(),this._close()}_close(){return null===this.connection?Promise.resolve():(this.backend.disconnect(),this.connection.close())}uploadAttachment(t){return this.connection.uploadAttachment(t)}insertAttachmentFile(t){return this.connection.insertAttachmentFile(t)}on(t,e){return this._bus.on(t,e),this}off(t,e){return this._bus.off(t,e),this}emit(t,e){this._bus.emit(t,e)}}},78446:(t,e,i)=>{"use strict";i.d(e,{Z:()=>a});var r=i(87537),n=i.n(r),o=i(23645),s=i.n(o)()(n());s.push([t.id,".text-assistant[data-v-4c96cd80]{position:fixed;top:calc(2*var(--header-height));right:0;margin:calc(var(--default-grid-baseline)*3);overflow:auto;width:250px;max-height:200px}.task-list[data-v-4c96cd80]{padding:24px}h4[data-v-4c96cd80]{display:flex;align-items:center;justify-items:center;justify-content:space-between;margin-bottom:12px}.assistant-bubble[data-v-4c96cd80]{display:flex;gap:8px;background-color:var(--color-primary-element-light);border-radius:var(--border-radius-rounded);padding:2px 8px}.assistant-bubble .icon[data-v-4c96cd80]{color:var(--color-primary)}ul[data-v-4c96cd80]{width:calc(100% - 16px)}ul[data-v-4c96cd80] .list-item{padding-top:0;padding-bottom:0}ul[data-v-4c96cd80] .line-two__additional_elements{margin-top:-22px}.floating-menu[data-v-4c96cd80]{position:relative}.floating-menu--badge[data-v-4c96cd80]{position:absolute;bottom:-2px;right:-2px}.icon-status--success[data-v-4c96cd80]{color:var(--color-success)}.icon-status--failed[data-v-4c96cd80]{color:var(--color-error)}","",{version:3,sources:["webpack://./src/components/Assistant.vue"],names:[],mappings:"AACA,iCACC,cAAA,CACA,gCAAA,CACA,OAAA,CACA,2CAAA,CACA,aAAA,CACA,WAAA,CACA,gBAAA,CAGD,4BACC,YAAA,CAGD,oBACC,YAAA,CACA,kBAAA,CACA,oBAAA,CACA,6BAAA,CACA,kBAAA,CAGD,mCACC,YAAA,CACA,OAAA,CACA,mDAAA,CACA,0CAAA,CACA,eAAA,CAEA,yCACC,0BAAA,CAIF,oBACC,uBAAA,CAEA,+BACC,aAAA,CACA,gBAAA,CAGD,mDACC,gBAAA,CAIF,gCACC,iBAAA,CAEA,uCACC,iBAAA,CACA,WAAA,CACA,UAAA,CAIF,uCACC,0BAAA,CAGD,sCACC,wBAAA",sourcesContent:["\n.text-assistant {\n\tposition: fixed;\n\ttop: calc(2 * var(--header-height));\n\tright: 0;\n\tmargin: calc(var(--default-grid-baseline) * 3);\n\toverflow: auto;\n\twidth: 250px;\n\tmax-height: 200px;\n}\n\n.task-list {\n\tpadding: 24px;\n}\n\nh4 {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-items: center;\n\tjustify-content: space-between;\n\tmargin-bottom: 12px;\n}\n\n.assistant-bubble {\n\tdisplay: flex;\n\tgap: 8px;\n\tbackground-color: var(--color-primary-element-light);\n\tborder-radius: var(--border-radius-rounded);\n\tpadding: 2px 8px;\n\n\t.icon {\n\t\tcolor: var(--color-primary);\n\t}\n}\n\nul {\n\twidth: calc(100% - 16px);\n\n\t& :deep(.list-item) {\n\t\tpadding-top: 0;\n\t\tpadding-bottom: 0;\n\t}\n\n\t& :deep(.line-two__additional_elements) {\n\t\tmargin-top: -22px;\n\t}\n}\n\n.floating-menu {\n\tposition: relative;\n\n\t&--badge {\n\t\tposition: absolute;\n\t\tbottom: -2px;\n\t\tright: -2px;\n\t}\n}\n\n.icon-status--success {\n\tcolor: var(--color-success);\n}\n\n.icon-status--failed {\n\tcolor: var(--color-error);\n}\n"],sourceRoot:""}]);const a=s},38909:(t,e,i)=>{"use strict";i.d(e,{Z:()=>a});var r=i(87537),n=i.n(r),o=i(23645),s=i.n(o)()(n());s.push([t.id,".editor__content[data-v-151c6c0d]{max-width:var(--text-editor-max-width);margin:auto;position:relative;width:100%}.text-editor__content-wrapper[data-v-151c6c0d]{--side-width: calc((100% - var(--text-editor-max-width)) / 2);display:grid;grid-template-columns:1fr auto}.text-editor__content-wrapper.--show-outline[data-v-151c6c0d]{grid-template-columns:var(--side-width) auto var(--side-width)}.text-editor__content-wrapper .text-editor__content-wrapper__left[data-v-151c6c0d],.text-editor__content-wrapper .text-editor__content-wrapper__right[data-v-151c6c0d]{height:100%;position:relative}","",{version:3,sources:["webpack://./src/components/BaseReader.vue"],names:[],mappings:"AACA,kCACC,sCAAA,CACA,WAAA,CACA,iBAAA,CACA,UAAA,CAGD,+CACC,6DAAA,CACA,YAAA,CACA,8BAAA,CACA,8DACC,8DAAA,CAED,uKAEC,WAAA,CACA,iBAAA",sourcesContent:["\n.editor__content {\n\tmax-width: var(--text-editor-max-width);\n\tmargin: auto;\n\tposition: relative;\n\twidth: 100%;\n}\n\n.text-editor__content-wrapper {\n\t--side-width: calc((100% - var(--text-editor-max-width)) / 2);\n\tdisplay: grid;\n\tgrid-template-columns: 1fr auto;\n\t&.--show-outline {\n\t\tgrid-template-columns: var(--side-width) auto var(--side-width);\n\t}\n\t.text-editor__content-wrapper__left,\n\t.text-editor__content-wrapper__right {\n\t\theight: 100%;\n\t\tposition: relative;\n\t}\n}\n"],sourceRoot:""}]);const a=s},13408:(t,e,i)=>{"use strict";i.d(e,{Z:()=>a});var r=i(87537),n=i.n(r),o=i(23645),s=i.n(o)()(n());s.push([t.id,"#resolve-conflicts[data-v-f43ae8b6]{display:flex;width:100%;margin:auto;padding:20px 0}#resolve-conflicts button[data-v-f43ae8b6]{margin:auto}","",{version:3,sources:["webpack://./src/components/CollisionResolveDialog.vue"],names:[],mappings:"AACA,oCACC,YAAA,CACA,UAAA,CACA,WAAA,CACA,cAAA,CAEA,2CACC,WAAA",sourcesContent:["\n#resolve-conflicts {\n\tdisplay: flex;\n\twidth: 100%;\n\tmargin: auto;\n\tpadding: 20px 0;\n\n\tbutton {\n\t\tmargin: auto;\n\t}\n}\n"],sourceRoot:""}]);const a=s},46173:(t,e,i)=>{"use strict";i.d(e,{Z:()=>a});var r=i(87537),n=i.n(r),o=i(23645),s=i.n(o)()(n());s.push([t.id,".modal-container .text-editor[data-v-5c3f88f6]{top:0;height:calc(100vh - var(--header-height))}.text-editor[data-v-5c3f88f6]{display:block;width:100%;max-width:100%;height:100%;left:0;margin:0 auto;position:relative;background-color:var(--color-main-background)}.text-editor .text-editor__wrapper.has-conflicts[data-v-5c3f88f6]{height:calc(100% - 50px)}#body-public[data-v-5c3f88f6]{height:auto}#files-public-content .text-editor[data-v-5c3f88f6]{top:0;width:100%}#files-public-content .text-editor .text-editor__main[data-v-5c3f88f6]{overflow:auto;z-index:20}#files-public-content .text-editor .has-conflicts .text-editor__main[data-v-5c3f88f6]{padding-top:0}.menubar-placeholder[data-v-5c3f88f6],.text-editor--readonly-bar[data-v-5c3f88f6]{position:fixed;position:-webkit-sticky;position:sticky;top:0;opacity:0;visibility:hidden;height:44px;padding-top:3px;padding-bottom:3px}.text-editor--readonly-bar[data-v-5c3f88f6],.menubar-placeholder--with-slot[data-v-5c3f88f6]{opacity:unset;visibility:unset;z-index:50;max-width:var(--text-editor-max-width);margin:auto;width:100%;background-color:var(--color-main-background)}","",{version:3,sources:["webpack://./src/components/Editor.vue"],names:[],mappings:"AACA,+CACC,KAAA,CACA,yCAAA,CAGD,8BACC,aAAA,CACA,UAAA,CACA,cAAA,CACA,WAAA,CACA,MAAA,CACA,aAAA,CACA,iBAAA,CACA,6CAAA,CAGD,kEACC,wBAAA,CAGD,8BACC,WAAA,CAIA,oDACC,KAAA,CACA,UAAA,CAEA,uEACC,aAAA,CACA,UAAA,CAED,sFACC,aAAA,CAKH,kFAEC,cAAA,CACA,uBAAA,CACA,eAAA,CACA,KAAA,CACA,SAAA,CACA,iBAAA,CACA,WAAA,CACA,eAAA,CACA,kBAAA,CAGD,6FAEC,aAAA,CACA,gBAAA,CAEA,UAAA,CACA,sCAAA,CACA,WAAA,CACA,UAAA,CACA,6CAAA",sourcesContent:["\n.modal-container .text-editor {\n\ttop: 0;\n\theight: calc(100vh - var(--header-height));\n}\n\n.text-editor {\n\tdisplay: block;\n\twidth: 100%;\n\tmax-width: 100%;\n\theight: 100%;\n\tleft: 0;\n\tmargin: 0 auto;\n\tposition: relative;\n\tbackground-color: var(--color-main-background);\n}\n\n.text-editor .text-editor__wrapper.has-conflicts {\n\theight: calc(100% - 50px);\n}\n\n#body-public {\n\theight: auto;\n}\n\n#files-public-content {\n\t.text-editor {\n\t\ttop: 0;\n\t\twidth: 100%;\n\n\t\t.text-editor__main {\n\t\t\toverflow: auto;\n\t\t\tz-index: 20;\n\t\t}\n\t\t.has-conflicts .text-editor__main {\n\t\t\tpadding-top: 0;\n\t\t}\n\t}\n}\n\n.menubar-placeholder,\n.text-editor--readonly-bar {\n\tposition: fixed;\n\tposition: -webkit-sticky;\n\tposition: sticky;\n\ttop: 0;\n\topacity: 0;\n\tvisibility: hidden;\n\theight: 44px; // important for mobile so that the buttons are always inside the container\n\tpadding-top:3px;\n\tpadding-bottom: 3px;\n}\n\n.text-editor--readonly-bar,\n.menubar-placeholder--with-slot {\n\topacity: unset;\n\tvisibility: unset;\n\n\tz-index: 50;\n\tmax-width: var(--text-editor-max-width);\n\tmargin: auto;\n\twidth: 100%;\n\tbackground-color: var(--color-main-background);\n}\n"],sourceRoot:""}]);const a=s},29878:(t,e,i)=>{"use strict";i.d(e,{Z:()=>h});var r=i(87537),n=i.n(r),o=i(23645),s=i.n(o),a=i(61667),l=i.n(a),d=new URL(i(69521),i.b),c=s()(n()),A=l()(d);c.push([t.id,`:root{--text-editor-max-width: 670px }:root{--text-editor-max-width: 670px }.ProseMirror-hideselection{caret-color:rgba(0,0,0,0);color:var(--color-main-text)}.ProseMirror-hideselection *::selection{background:rgba(0,0,0,0);color:var(--color-main-text)}.ProseMirror-hideselection *::-moz-selection{background:rgba(0,0,0,0);color:var(--color-main-text)}.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,.text-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}}.animation-rotate{animation:rotate var(--animation-duration, 0.8s) linear infinite}[data-handler=text]{background-color:var(--color-main-background);border-top:3px solid var(--color-primary-element)}[data-handler=text] .modal-title{font-weight:bold}@keyframes fadeInDown{from{opacity:0;transform:translate3d(0, -100%, 0)}to{opacity:1;transform:translate3d(0, 0, 0)}}@keyframes fadeInLeft{from{opacity:0;transform:translate3d(-100%, 0, 0)}to{opacity:1;transform:translate3d(0, 0, 0)}}.fadeInLeft{animation-name:fadeInLeft}@media print{@page{size:A4;margin:2.5cm 2cm 2cm 2.5cm}body{position:absolute;overflow:visible !important}#header{display:none !important}#content{display:block !important;position:relative !important;border-radius:0;margin:0;width:100%;height:fit-content}footer{display:none !important}#viewer[data-handler=text]{border:none;width:100% !important;position:absolute !important}#viewer[data-handler=text] .modal-header{display:none !important}#viewer[data-handler=text] .modal-container{top:0px;height:fit-content}.text-editor{height:fit-content !important}.text-editor .text-menubar{display:none !important}.text-editor .action-item{display:none !important}.text-editor .editor__content{max-width:100%}.text-editor .text-editor__wrapper{height:fit-content;position:unset}.text-editor .text-editor__wrapper div.ProseMirror{margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0}.text-editor .text-editor__wrapper div.ProseMirror h1,.text-editor .text-editor__wrapper div.ProseMirror h2,.text-editor .text-editor__wrapper div.ProseMirror h3,.text-editor .text-editor__wrapper div.ProseMirror h4,.text-editor .text-editor__wrapper div.ProseMirror h5{break-after:avoid;page-break-after:avoid}.text-editor .text-editor__wrapper div.ProseMirror .image,.text-editor .text-editor__wrapper div.ProseMirror img,.text-editor .text-editor__wrapper div.ProseMirror table{break-inside:avoid-page;page-break-inside:avoid;max-width:90% !important;margin:5vw auto 5vw 5% !important}.text-editor .text-editor__wrapper div.ProseMirror th{color:#000 !important;font-weight:bold !important;border-width:0 1px 2px 0 !important;border-color:gray !important;border-style:none solid solid none !important}.text-editor .text-editor__wrapper div.ProseMirror th:last-of-type{border-width:0 0 2px 0 !important}.text-editor .text-editor__wrapper div.ProseMirror td{border-style:none solid none none !important;border-width:1px !important;border-color:gray !important}.text-editor .text-editor__wrapper div.ProseMirror td:last-of-type{border:none !important}.menubar-placeholder,.text-editor--readonly-bar{display:none}.text-editor__content-wrapper.--show-outline{display:block}.text-editor__content-wrapper .editor--outline{width:auto;height:auto;overflow:unset;position:relative}.text-editor__content-wrapper .editor--outline__btn-close{display:none}.collaboration-cursor__caret,.collaboration-cursor__label{display:none}}.text-editor__wrapper div.ProseMirror{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:var(--default-font-size);outline:none;--table-color-border: var(--color-border);--table-color-heading: var(--color-text-maxcontrast);--table-color-heading-border: var(--color-border-dark);--table-color-background: var(--color-main-background);--table-color-background-hover: var(--color-primary-element-light);--table-border-radius: var(--border-radius)}.text-editor__wrapper div.ProseMirror :target{scroll-margin-top:50px}.text-editor__wrapper div.ProseMirror[contenteditable=true],.text-editor__wrapper div.ProseMirror[contenteditable=false],.text-editor__wrapper div.ProseMirror [contenteditable=true],.text-editor__wrapper div.ProseMirror [contenteditable=false]{width:100%;background-color:rgba(0,0,0,0);color:var(--color-main-text);opacity:1;-webkit-user-select:text;user-select:text;font-size:var(--default-font-size)}.text-editor__wrapper div.ProseMirror[contenteditable=true]:not(.collaboration-cursor__caret),.text-editor__wrapper div.ProseMirror[contenteditable=false]:not(.collaboration-cursor__caret),.text-editor__wrapper div.ProseMirror [contenteditable=true]:not(.collaboration-cursor__caret),.text-editor__wrapper div.ProseMirror [contenteditable=false]:not(.collaboration-cursor__caret){border:none !important}.text-editor__wrapper div.ProseMirror[contenteditable=true]:focus,.text-editor__wrapper div.ProseMirror[contenteditable=true]:focus-visible,.text-editor__wrapper div.ProseMirror[contenteditable=false]:focus,.text-editor__wrapper div.ProseMirror[contenteditable=false]:focus-visible,.text-editor__wrapper div.ProseMirror [contenteditable=true]:focus,.text-editor__wrapper div.ProseMirror [contenteditable=true]:focus-visible,.text-editor__wrapper div.ProseMirror [contenteditable=false]:focus,.text-editor__wrapper div.ProseMirror [contenteditable=false]:focus-visible{box-shadow:none !important}.text-editor__wrapper div.ProseMirror ul[data-type=taskList]{margin-left:1px}.text-editor__wrapper div.ProseMirror .checkbox-item{display:flex;align-items:start}.text-editor__wrapper div.ProseMirror .checkbox-item input[type=checkbox]{display:none}.text-editor__wrapper div.ProseMirror .checkbox-item:before{content:"";vertical-align:middle;margin:3px 6px 3px 2px;border:1px solid var(--color-text-maxcontrast);display:block;border-radius:var(--border-radius);height:14px;width:14px;box-shadow:none !important;background-position:center;cursor:pointer;left:9px}.text-editor__wrapper div.ProseMirror .checkbox-item.checked:before{background-image:url(${A});background-color:var(--color-primary-element);border-color:var(--color-primary-element)}.text-editor__wrapper div.ProseMirror .checkbox-item.checked>label>p{color:var(--color-text-maxcontrast);text-decoration:line-through}.text-editor__wrapper div.ProseMirror .checkbox-item label{display:block;flex-grow:1;max-width:calc(100% - 28px)}.text-editor__wrapper div.ProseMirror>*:first-child{margin-top:10px}.text-editor__wrapper div.ProseMirror>h1:first-child,.text-editor__wrapper div.ProseMirror h2:first-child,.text-editor__wrapper div.ProseMirror h3:first-child,.text-editor__wrapper div.ProseMirror h4:first-child,.text-editor__wrapper div.ProseMirror h5:first-child,.text-editor__wrapper div.ProseMirror h6:first-child{margin-top:0}.text-editor__wrapper div.ProseMirror a{color:var(--color-primary-element);text-decoration:underline;padding:.5em 0}.text-editor__wrapper div.ProseMirror p .paragraph-content{margin-bottom:1em;line-height:150%}.text-editor__wrapper div.ProseMirror em{font-style:italic}.text-editor__wrapper div.ProseMirror h1,.text-editor__wrapper div.ProseMirror h2,.text-editor__wrapper div.ProseMirror h3,.text-editor__wrapper div.ProseMirror h4,.text-editor__wrapper div.ProseMirror h5,.text-editor__wrapper div.ProseMirror h6{font-weight:600;line-height:1.1em;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}.text-editor__wrapper div.ProseMirror h1{font-size:30px}.text-editor__wrapper div.ProseMirror h2{font-size:26px}.text-editor__wrapper div.ProseMirror h3{font-size:23px}.text-editor__wrapper div.ProseMirror h4{font-size:20px}.text-editor__wrapper div.ProseMirror h5{font-size:17px}.text-editor__wrapper div.ProseMirror h6{font-size:var(--default-font-size)}.text-editor__wrapper div.ProseMirror img{cursor:default;max-width:100%}.text-editor__wrapper div.ProseMirror hr{padding:2px 0;border:none;margin:2em 0;width:100%}.text-editor__wrapper div.ProseMirror hr:after{content:"";display:block;height:1px;background-color:var(--color-border-dark);line-height:2px}.text-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}.text-editor__wrapper div.ProseMirror pre::before{content:attr(data-language);text-transform:uppercase;display:block;text-align:right;font-weight:bold;font-size:.6rem}.text-editor__wrapper div.ProseMirror pre code .hljs-comment,.text-editor__wrapper div.ProseMirror pre code .hljs-quote{color:#999}.text-editor__wrapper div.ProseMirror pre code .hljs-variable,.text-editor__wrapper div.ProseMirror pre code .hljs-template-variable,.text-editor__wrapper div.ProseMirror pre code .hljs-attribute,.text-editor__wrapper div.ProseMirror pre code .hljs-tag,.text-editor__wrapper div.ProseMirror pre code .hljs-name,.text-editor__wrapper div.ProseMirror pre code .hljs-regexp,.text-editor__wrapper div.ProseMirror pre code .hljs-link,.text-editor__wrapper div.ProseMirror pre code .hljs-selector-id,.text-editor__wrapper div.ProseMirror pre code .hljs-selector-class{color:#f2777a}.text-editor__wrapper div.ProseMirror pre code .hljs-number,.text-editor__wrapper div.ProseMirror pre code .hljs-meta,.text-editor__wrapper div.ProseMirror pre code .hljs-built_in,.text-editor__wrapper div.ProseMirror pre code .hljs-builtin-name,.text-editor__wrapper div.ProseMirror pre code .hljs-literal,.text-editor__wrapper div.ProseMirror pre code .hljs-type,.text-editor__wrapper div.ProseMirror pre code .hljs-params{color:#f99157}.text-editor__wrapper div.ProseMirror pre code .hljs-string,.text-editor__wrapper div.ProseMirror pre code .hljs-symbol,.text-editor__wrapper div.ProseMirror pre code .hljs-bullet{color:#9c9}.text-editor__wrapper div.ProseMirror pre code .hljs-title,.text-editor__wrapper div.ProseMirror pre code .hljs-section{color:#fc6}.text-editor__wrapper div.ProseMirror pre code .hljs-keyword,.text-editor__wrapper div.ProseMirror pre code .hljs-selector-tag{color:#69c}.text-editor__wrapper div.ProseMirror pre code .hljs-emphasis{font-style:italic}.text-editor__wrapper div.ProseMirror pre code .hljs-strong{font-weight:700}.text-editor__wrapper div.ProseMirror pre.frontmatter{margin-bottom:2em;border-left:4px solid var(--color-primary-element)}.text-editor__wrapper div.ProseMirror pre.frontmatter::before{display:block;content:attr(data-title);color:var(--color-text-maxcontrast);padding-bottom:.5em}.text-editor__wrapper div.ProseMirror p code{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}.text-editor__wrapper div.ProseMirror li{position:relative;padding-left:3px}.text-editor__wrapper div.ProseMirror li p .paragraph-content{margin-bottom:.5em}.text-editor__wrapper div.ProseMirror ul,.text-editor__wrapper div.ProseMirror ol{padding-left:10px;margin-left:10px;margin-bottom:1em}.text-editor__wrapper div.ProseMirror ul>li{list-style-type:disc}.text-editor__wrapper div.ProseMirror li ul>li{list-style-type:circle}.text-editor__wrapper div.ProseMirror li li ul>li{list-style-type:square}.text-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}.text-editor__wrapper div.ProseMirror table{border-spacing:0;width:calc(100% - 50px);table-layout:auto;white-space:normal;margin-bottom:1em}.text-editor__wrapper div.ProseMirror table+*{margin-top:1em}.text-editor__wrapper div.ProseMirror table td,.text-editor__wrapper div.ProseMirror table th{border:1px solid var(--table-color-border);border-left:0;vertical-align:top;max-width:100%}.text-editor__wrapper div.ProseMirror table td:first-child,.text-editor__wrapper div.ProseMirror table th:first-child{border-left:1px solid var(--table-color-border)}.text-editor__wrapper div.ProseMirror table td{padding:.5em .75em;border-top:0;color:var(--color-main-text)}.text-editor__wrapper div.ProseMirror table th{padding:0 0 0 .75em;font-weight:normal;border-bottom-color:var(--table-color-heading-border);color:var(--table-color-heading)}.text-editor__wrapper div.ProseMirror table th>div{display:flex}.text-editor__wrapper div.ProseMirror table tr{background-color:var(--table-color-background)}.text-editor__wrapper div.ProseMirror table tr:hover,.text-editor__wrapper div.ProseMirror table tr:active,.text-editor__wrapper div.ProseMirror table tr:focus{background-color:var(--table-color-background-hover)}.text-editor__wrapper div.ProseMirror table tr:first-child th:first-child{border-top-left-radius:var(--table-border-radius)}.text-editor__wrapper div.ProseMirror table tr:first-child th:last-child{border-top-right-radius:var(--table-border-radius)}.text-editor__wrapper div.ProseMirror table tr:last-child td:first-child{border-bottom-left-radius:var(--table-border-radius)}.text-editor__wrapper div.ProseMirror table tr:last-child td:last-child{border-bottom-right-radius:var(--table-border-radius)}.text-editor__wrapper .ProseMirror-focused .ProseMirror-gapcursor{display:block}.text-editor__wrapper .editor__content p.is-empty:first-child::before{content:attr(data-placeholder);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}.text-editor__wrapper .editor__content{tab-size:4}.text-editor__wrapper .tippy-content div{visibility:visible !important}.text-editor__wrapper .text-editor__main.draggedOver{background-color:var(--color-primary-element-light)}.text-editor__wrapper .text-editor__main .text-editor__content-wrapper{position:relative}.text-editor__wrapper.has-conflicts>.editor{width:50%}.text-editor__wrapper.has-conflicts>.content-wrapper{width:50%}.text-editor__wrapper.has-conflicts>.content-wrapper #read-only-editor{margin:0px auto;padding-top:50px;overflow:initial}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.collaboration-cursor__caret{position:relative;margin-left:-1px;margin-right:-1px;border-left:1px solid #0d0d0d;border-right:1px solid #0d0d0d;word-break:normal;pointer-events:none}.collaboration-cursor__label{position:absolute;top:-1.4em;left:-1px;font-size:12px;font-style:normal;font-weight:600;line-height:normal;user-select:none;color:#0d0d0d;padding:.1rem .3rem;border-radius:3px 3px 3px 0;white-space:nowrap;opacity:0}.collaboration-cursor__label.collaboration-cursor__label__active{opacity:1}.collaboration-cursor__label:not(.collaboration-cursor__label__active){transition:opacity .2s 5s}`,"",{version:3,sources:["webpack://./src/css/variables.scss","webpack://./src/css/style.scss","webpack://./src/css/print.scss","webpack://./src/css/prosemirror.scss","webpack://./src/components/Editor.vue"],names:[],mappings:"AAAA,MACC,+BAAA,CADD,MACC,+BAAA,CCGD,2BACC,yBAAA,CACA,4BAAA,CAEA,wCACC,wBAAA,CACA,4BAAA,CAGD,6CACC,wBAAA,CACA,4BAAA,CAIF,0BACC,sBAAA,CAID,4BACC,YAAA,CAEA,kCACC,UAAA,CACA,iBAAA,CACA,UAAA,CACA,UAAA,CAAA,QAAA,CAAA,WAAA,CACA,qBAAA,CACA,mBAAA,CAMD,4FACC,YAAA,CAIF,uBACC,YAAA,CACA,mBAAA,CACA,iBAAA,CAEA,6BACC,UAAA,CACA,aAAA,CACA,iBAAA,CACA,QAAA,CACA,UAAA,CACA,2CAAA,CACA,gEAAA,CAIF,oCACC,GACC,iBAAA,CAAA,CAIF,kBACC,gEAAA,CAGD,oBACC,6CAAA,CACA,iDAAA,CACA,iCACC,gBAAA,CAKF,sBACC,KACC,SAAA,CACA,kCAAA,CAGD,GACC,SAAA,CACA,8BAAA,CAAA,CAMF,sBACC,KACC,SAAA,CACA,kCAAA,CAGD,GACC,SAAA,CACA,8BAAA,CAAA,CAIF,YACC,yBAAA,CC1GD,aACC,MACC,OAAA,CACA,0BAAA,CAGD,KAEC,iBAAA,CACA,2BAAA,CAGD,QACC,uBAAA,CAGD,SACC,wBAAA,CACA,4BAAA,CACA,eAAA,CACA,QAAA,CACA,UAAA,CACA,kBAAA,CAGD,OACC,uBAAA,CAGD,2BAEC,WAAA,CACA,qBAAA,CAEA,4BAAA,CAEA,yCAEC,uBAAA,CAED,4CAEC,OAAA,CACA,kBAAA,CAIF,aACC,6BAAA,CAEA,2BAEC,uBAAA,CAED,0BAEC,uBAAA,CAED,8BAEC,cAAA,CAED,mCACC,kBAAA,CACA,cAAA,CAEA,mDACC,YAAA,CACA,eAAA,CACA,aAAA,CACA,gBAAA,CAEA,8QAEC,iBAAA,CACA,sBAAA,CAED,0KAEC,uBAAA,CACA,uBAAA,CAEA,wBAAA,CACA,iCAAA,CAID,sDACC,qBAAA,CACA,2BAAA,CACA,mCAAA,CACA,4BAAA,CACA,6CAAA,CAED,mEACC,iCAAA,CAGD,sDACC,4CAAA,CACA,2BAAA,CACA,4BAAA,CAED,mEACC,sBAAA,CAMJ,gDACC,YAAA,CAIA,6CACC,aAAA,CAGD,+CACC,UAAA,CACA,WAAA,CACA,cAAA,CACA,iBAAA,CAED,0DACC,YAAA,CAIF,0DAEC,YAAA,CAAA,CCjIF,sCACC,WAAA,CACA,iBAAA,CACA,oBAAA,CACA,oBAAA,CACA,mCAAA,CACA,2BAAA,CACA,0BAAA,CACA,gBAAA,CACA,kCAAA,CACA,YAAA,CA+QA,yCAAA,CACA,oDAAA,CACA,sDAAA,CACA,sDAAA,CACA,kEAAA,CACA,2CAAA,CAlRA,8CAEC,sBAAA,CAGD,oPAIC,UAAA,CACA,8BAAA,CACA,4BAAA,CACA,SAAA,CACA,wBAAA,CACA,gBAAA,CACA,kCAAA,CAEA,4XACC,sBAAA,CAGD,wjBACC,0BAAA,CAIF,6DACC,eAAA,CAGD,qDACC,YAAA,CACA,iBAAA,CAEA,0EACC,YAAA,CAED,4DACC,UAAA,CACA,qBAAA,CACA,sBAAA,CACA,8CAAA,CACA,aAAA,CACA,kCAAA,CACA,WAAA,CACA,UAAA,CACA,0BAAA,CACA,0BAAA,CACA,cAAA,CACA,QAAA,CAGA,oEACC,wDAAA,CACA,6CAAA,CACA,yCAAA,CAED,qEACC,mCAAA,CACA,4BAAA,CAGF,2DACC,aAAA,CACA,WAAA,CACA,2BAAA,CAIF,oDACC,eAAA,CAIA,8TACC,YAAA,CAIF,wCACC,kCAAA,CACA,yBAAA,CACA,cAAA,CAGD,2DACC,iBAAA,CACA,gBAAA,CAGD,yCACC,iBAAA,CAGD,sPAMC,eAAA,CACA,iBAAA,CACA,eAAA,CACA,kBAAA,CACA,4BAAA,CAGD,yCACC,cAAA,CAGD,yCACC,cAAA,CAGD,yCACC,cAAA,CAGD,yCACC,cAAA,CAGD,yCACC,cAAA,CAGD,yCACC,kCAAA,CAGD,0CACC,cAAA,CACA,cAAA,CAGD,yCACC,aAAA,CACA,WAAA,CACA,YAAA,CACA,UAAA,CAGD,+CACC,UAAA,CACA,aAAA,CACA,UAAA,CACA,yCAAA,CACA,eAAA,CAGD,0CACC,oBAAA,CACA,6CAAA,CACA,kCAAA,CACA,iBAAA,CACA,iBAAA,CAEA,kDACC,2BAAA,CACA,wBAAA,CACA,aAAA,CACA,gBAAA,CACA,gBAAA,CACA,eAAA,CAGA,wHAEC,UAAA,CAED,kjBASC,aAAA,CAED,yaAOC,aAAA,CAED,oLAGC,UAAA,CAED,wHAEC,UAAA,CAED,+HAEC,UAAA,CAED,8DACC,iBAAA,CAED,4DACC,eAAA,CAKH,sDACC,iBAAA,CACA,kDAAA,CAGD,8DACC,aAAA,CACA,wBAAA,CACA,mCAAA,CACA,mBAAA,CAGD,6CACC,6CAAA,CACA,kCAAA,CACA,iBAAA,CAGD,yCACC,iBAAA,CACA,gBAAA,CAEA,8DACC,kBAAA,CAIF,kFACC,iBAAA,CACA,gBAAA,CACA,iBAAA,CAGD,4CACC,oBAAA,CAID,+CACC,sBAAA,CAID,kDACC,sBAAA,CAGD,iDACC,gBAAA,CACA,kDAAA,CACA,mCAAA,CACA,aAAA,CACA,cAAA,CAWD,4CACC,gBAAA,CACA,uBAAA,CACA,iBAAA,CACA,kBAAA,CACA,iBAAA,CACA,8CACC,cAAA,CAID,8FACC,0CAAA,CACA,aAAA,CACA,kBAAA,CACA,cAAA,CACA,sHACC,+CAAA,CAGF,+CACC,kBAAA,CACA,YAAA,CACA,4BAAA,CAED,+CACC,mBAAA,CACA,kBAAA,CACA,qDAAA,CACA,gCAAA,CAEA,mDACC,YAAA,CAGF,+CACC,8CAAA,CACA,gKACC,oDAAA,CAKD,0EAAA,iDAAA,CACA,yEAAA,kDAAA,CAIA,yEAAA,oDAAA,CACA,wEAAA,qDAAA,CAOH,kEACC,aAAA,CAGD,sEACC,8BAAA,CACA,UAAA,CACA,mCAAA,CACA,mBAAA,CACA,QAAA,CAGD,uCACC,UAAA,CAGD,yCACC,6BAAA,CClWC,qDACC,mDAAA,CAED,uEACC,iBAAA,CAKH,4CACC,SAAA,CAGD,qDACC,SAAA,CACA,uEACC,eAAA,CACA,gBAAA,CACA,gBAAA,CAIF,gBACC,GAAA,sBAAA,CACA,KAAA,wBAAA,CAAA,CAID,6BACC,iBAAA,CACA,gBAAA,CACA,iBAAA,CACA,6BAAA,CACA,8BAAA,CACA,iBAAA,CACA,mBAAA,CAID,6BACC,iBAAA,CACA,UAAA,CACA,SAAA,CACA,cAAA,CACA,iBAAA,CACA,eAAA,CACA,kBAAA,CACA,gBAAA,CACA,aAAA,CACA,mBAAA,CACA,2BAAA,CACA,kBAAA,CACA,SAAA,CAEA,iEACC,SAAA,CAGD,uEACC,yBAAA",sourcesContent:[":root {\n\t--text-editor-max-width: 670px\n}\n\n","@use 'sass:math';\n\n@import './variables';\n\n.ProseMirror-hideselection {\n\tcaret-color: transparent;\n\tcolor: var(--color-main-text);\n\n\t*::selection {\n\t\tbackground: transparent;\n\t\tcolor: var(--color-main-text);\n\t}\n\n\t*::-moz-selection {\n\t\tbackground: transparent;\n\t\tcolor: var(--color-main-text);\n\t}\n}\n\n.ProseMirror-selectednode {\n\toutline: 2px solid #8cf;\n}\n\n/* Make sure li selections wrap around markers */\nli.ProseMirror-selectednode {\n\toutline: none;\n\n\t&:after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tleft: -32px;\n\t\tright: -2px; top: -2px; bottom: -2px;\n\t\tborder: 2px solid #8cf;\n\t\tpointer-events: none;\n\t}\n}\n\n.has-conflicts,\n.text-editor__wrapper.icon-loading {\n\t.ProseMirror-menubar {\n\t\tdisplay: none;\n\t}\n}\n\n.ProseMirror-gapcursor {\n\tdisplay: none;\n\tpointer-events: none;\n\tposition: absolute;\n\n\t&:after {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\ttop: -2px;\n\t\twidth: 20px;\n\t\tborder-top: 1px solid var(--color-main-text);\n\t\tanimation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n\t}\n}\n\n@keyframes ProseMirror-cursor-blink {\n\tto {\n\t\tvisibility: hidden;\n\t}\n}\n\n.animation-rotate {\n\tanimation: rotate var(--animation-duration, 0.8s) linear infinite;\n}\n\n[data-handler='text'] {\n\tbackground-color: var(--color-main-background);\n\tborder-top: 3px solid var(--color-primary-element);\n\t.modal-title {\n\t\tfont-weight: bold;\n\t}\n}\n\n// from https://github.com/animate-css/animate.css/blob/main/source/fading_entrances/fadeInDown.css\n@keyframes fadeInDown {\n\tfrom {\n\t\topacity: 0;\n\t\ttransform: translate3d(0, -100%, 0);\n\t}\n\n\tto {\n\t\topacity: 1;\n\t\ttransform: translate3d(0, 0, 0);\n\t}\n}\n\n\n// from https://github.com/animate-css/animate.css/blob/main/source/fading_entrances/fadeInLeft.css\n@keyframes fadeInLeft {\n\tfrom {\n\t\topacity: 0;\n\t\ttransform: translate3d(-100%, 0, 0);\n\t}\n\n\tto {\n\t\topacity: 1;\n\t\ttransform: translate3d(0, 0, 0);\n\t}\n}\n\n.fadeInLeft {\n\tanimation-name: fadeInLeft;\n}\n","@media print {\n\t@page {\n\t\tsize: A4;\n\t\tmargin: 2.5cm 2cm 2cm 2.5cm;\n\t}\n\n\tbody {\n\t\t// position: fixed does not support scrolling and as such only prints one page\n\t\tposition: absolute;\n\t\toverflow: visible!important;\n\t}\n\n\t#header {\n\t\tdisplay: none!important;\n\t}\n\n\t#content {\n\t\tdisplay: block!important;\n\t\tposition: relative!important;\n\t\tborder-radius: 0;\n\t\tmargin: 0;\n\t\twidth: 100%;\n\t\theight: fit-content;\n\t}\n\n\tfooter {\n\t\tdisplay: none!important;\n\t}\n\n\t#viewer[data-handler='text'] {\n\t\t// Hide top border\n\t\tborder: none;\n\t\twidth: 100%!important;\n\t\t// NcModal uses fixed, which will be cropped when printed\n\t\tposition: absolute!important;\n\n\t\t.modal-header {\n\t\t\t// Hide modal header (close button)\n\t\t\tdisplay: none!important;\n\t\t}\n\t\t.modal-container {\n\t\t\t// Make sure top aligned as we hided the menubar */\n\t\t\ttop: 0px;\n\t\t\theight: fit-content;\n\t\t}\n\t}\n\n\t.text-editor {\n\t\theight: fit-content!important;\n\n\t\t.text-menubar {\n\t\t\t// Hide menu bar\n\t\t\tdisplay: none!important;\n\t\t}\n\t\t.action-item {\n\t\t\t// Hide table settings\n\t\t\tdisplay: none!important;\n\t\t}\n\t\t.editor__content {\n\t\t\t// Margins set by page rule\n\t\t\tmax-width: 100%;\n\t\t}\n\t\t.text-editor__wrapper {\n\t\t\theight: fit-content;\n\t\t\tposition: unset;\n\n\t\t\tdiv.ProseMirror {\n\t\t\t\tmargin-top: 0;\n\t\t\t\tmargin-bottom: 0;\n\t\t\t\tpadding-top: 0;\n\t\t\t\tpadding-bottom: 0;\n\n\t\t\t\th1, h2, h3, h4, h5 {\n\t\t\t\t\t// orphaned headlines are ugly\n\t\t\t\t\tbreak-after: avoid;\n\t\t\t\t\tpage-break-after: avoid;\n\t\t\t\t}\n\t\t\t\t.image, img, table {\n\t\t\t\t\t// try no page breaks within tables or images\n\t\t\t\t\tbreak-inside: avoid-page;\n\t\t\t\t\tpage-break-inside: avoid;\n\t\t\t\t\t// Some more indention\n\t\t\t\t\tmax-width: 90%!important;\n\t\t\t\t\tmargin: 5vw auto 5vw 5%!important;\n\t\t\t\t}\n\n\t\t\t\t// Add some borders below header and between columns\n\t\t\t\tth {\n\t\t\t\t\tcolor: black!important;\n\t\t\t\t\tfont-weight: bold!important;\n\t\t\t\t\tborder-width: 0 1px 2px 0!important;\n\t\t\t\t\tborder-color: gray!important;\n\t\t\t\t\tborder-style: none solid solid none!important;\n\t\t\t\t}\n\t\t\t\tth:last-of-type {\n\t\t\t\t\tborder-width: 0 0 2px 0!important;\n\t\t\t\t}\n\n\t\t\t\ttd {\n\t\t\t\t\tborder-style: none solid none none!important;\n\t\t\t\t\tborder-width: 1px!important;\n\t\t\t\t\tborder-color: gray!important;\n\t\t\t\t}\n\t\t\t\ttd:last-of-type {\n\t\t\t\t\tborder: none!important;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t.menubar-placeholder, .text-editor--readonly-bar {\n\t\tdisplay: none;\n\t}\n\n\t.text-editor__content-wrapper {\n\t\t&.--show-outline {\n\t\t\tdisplay: block;\n\t\t}\n\n\t\t.editor--outline {\n\t\t\twidth: auto;\n\t\t\theight: auto;\n\t\t\toverflow: unset;\n\t\t\tposition: relative;\n\t\t}\n\t\t.editor--outline__btn-close {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t.collaboration-cursor__caret,\n\t.collaboration-cursor__label {\n\t\tdisplay: none;\n\t}\n}\n","@use 'sass:selector';\n\n/* Document rendering styles */\ndiv.ProseMirror {\n\theight: 100%;\n\tposition: relative;\n\tword-wrap: break-word;\n\twhite-space: pre-wrap;\n\t-webkit-font-variant-ligatures: none;\n\tfont-variant-ligatures: none;\n\tpadding: 4px 8px 200px 14px;\n\tline-height: 150%;\n\tfont-size: var(--default-font-size);\n\toutline: none;\n\n\t:target {\n\t\t// Menubar height: 44px + 3px bottom + 3px top padding\n\t\tscroll-margin-top: 50px;\n\t}\n\n\t&[contenteditable=true],\n\t&[contenteditable=false],\n\t[contenteditable=true],\n\t[contenteditable=false] {\n\t\twidth: 100%;\n\t\tbackground-color: transparent;\n\t\tcolor: var(--color-main-text);\n\t\topacity: 1;\n\t\t-webkit-user-select: text;\n\t\tuser-select: text;\n\t\tfont-size: var(--default-font-size);\n\n\t\t&:not(.collaboration-cursor__caret) {\n\t\t\tborder: none !important;\n\t\t}\n\n\t\t&:focus, &:focus-visible {\n\t\t\tbox-shadow: none !important;\n\t\t}\n\t}\n\n\tul[data-type=taskList] {\n\t\tmargin-left: 1px;\n\t}\n\n\t.checkbox-item {\n\t\tdisplay: flex;\n\t\talign-items: start;\n\n\t\tinput[type=checkbox] {\n\t\t\tdisplay: none;\n\t\t}\n\t\t&:before {\n\t\t\tcontent: '';\n\t\t\tvertical-align: middle;\n\t\t\tmargin: 3px 6px 3px 2px;\n\t\t\tborder: 1px solid var(--color-text-maxcontrast);\n\t\t\tdisplay: block;\n\t\t\tborder-radius: var(--border-radius);\n\t\t\theight: 14px;\n\t\t\twidth: 14px;\n\t\t\tbox-shadow: none !important;\n\t\t\tbackground-position: center;\n\t\t\tcursor: pointer;\n\t\t\tleft: 9px;\n\t\t}\n\t\t&.checked{\n\t\t\t&:before {\n\t\t\t\tbackground-image: url('../../img/checkbox-mark.svg');\n\t\t\t\tbackground-color: var(--color-primary-element);\n\t\t\t\tborder-color: var(--color-primary-element);\n\t\t\t}\n\t\t\t> label > p {\n\t\t\t\tcolor: var(--color-text-maxcontrast);\n\t\t\t\ttext-decoration: line-through;\n\t\t\t}\n\t\t}\n\t\tlabel {\n\t\t\tdisplay: block;\n\t\t\tflex-grow: 1;\n\t\t\tmax-width: calc(100% - 28px);\n\t\t}\n\t}\n\n\t> *:first-child {\n\t\tmargin-top: 10px;\n\t}\n\n\t> h1,h2,h3,h4,h5,h6 {\n\t\t&:first-child {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\n\ta {\n\t\tcolor: var(--color-primary-element);\n\t\ttext-decoration: underline;\n\t\tpadding: .5em 0;\n\t}\n\n\tp .paragraph-content {\n\t\tmargin-bottom: 1em;\n\t\tline-height: 150%;\n\t}\n\n\tem {\n\t\tfont-style: italic;\n\t}\n\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6 {\n\t\tfont-weight: 600;\n\t\tline-height: 1.1em;\n\t\tmargin-top: 24px;\n\t\tmargin-bottom: 12px;\n\t\tcolor: var(--color-main-text);\n\t}\n\n\th1 {\n\t\tfont-size: 30px;\n\t}\n\n\th2 {\n\t\tfont-size: 26px;\n\t}\n\n\th3 {\n\t\tfont-size: 23px;\n\t}\n\n\th4 {\n\t\tfont-size: 20px;\n\t}\n\n\th5 {\n\t\tfont-size: 17px;\n\t}\n\n\th6 {\n\t\tfont-size: var(--default-font-size);\n\t}\n\n\timg {\n\t\tcursor: default;\n\t\tmax-width: 100%;\n\t}\n\n\thr {\n\t\tpadding: 2px 0;\n\t\tborder: none;\n\t\tmargin: 2em 0;\n\t\twidth: 100%;\n\t}\n\n\thr:after {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\theight: 1px;\n\t\tbackground-color: var(--color-border-dark);\n\t\tline-height: 2px;\n\t}\n\n\tpre {\n\t\twhite-space: pre-wrap;\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: 1em 1.3em;\n\t\tmargin-bottom: 1em;\n\n\t\t&::before {\n\t\t\tcontent: attr(data-language);\n\t\t\ttext-transform: uppercase;\n\t\t\tdisplay: block;\n\t\t\ttext-align: right;\n\t\t\tfont-weight: bold;\n\t\t\tfont-size: 0.6rem;\n\t\t}\n\t\tcode {\n\t\t\t.hljs-comment,\n\t\t\t.hljs-quote {\n\t\t\t\tcolor: #999999;\n\t\t\t}\n\t\t\t.hljs-variable,\n\t\t\t.hljs-template-variable,\n\t\t\t.hljs-attribute,\n\t\t\t.hljs-tag,\n\t\t\t.hljs-name,\n\t\t\t.hljs-regexp,\n\t\t\t.hljs-link,\n\t\t\t.hljs-selector-id,\n\t\t\t.hljs-selector-class {\n\t\t\t\tcolor: #f2777a;\n\t\t\t}\n\t\t\t.hljs-number,\n\t\t\t.hljs-meta,\n\t\t\t.hljs-built_in,\n\t\t\t.hljs-builtin-name,\n\t\t\t.hljs-literal,\n\t\t\t.hljs-type,\n\t\t\t.hljs-params {\n\t\t\t\tcolor: #f99157;\n\t\t\t}\n\t\t\t.hljs-string,\n\t\t\t.hljs-symbol,\n\t\t\t.hljs-bullet {\n\t\t\t\tcolor: #99cc99;\n\t\t\t}\n\t\t\t.hljs-title,\n\t\t\t.hljs-section {\n\t\t\t\tcolor: #ffcc66;\n\t\t\t}\n\t\t\t.hljs-keyword,\n\t\t\t.hljs-selector-tag {\n\t\t\t\tcolor: #6699cc;\n\t\t\t}\n\t\t\t.hljs-emphasis {\n\t\t\t\tfont-style: italic;\n\t\t\t}\n\t\t\t.hljs-strong {\n\t\t\t\tfont-weight: 700;\n\t\t\t}\n\t\t}\n\t}\n\n\tpre.frontmatter {\n\t\tmargin-bottom: 2em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t}\n\n\tpre.frontmatter::before {\n\t\tdisplay: block;\n\t\tcontent: attr(data-title);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tpadding-bottom: 0.5em;\n\t}\n\n\tp code {\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: .1em .3em;\n\t}\n\n\tli {\n\t\tposition: relative;\n\t\tpadding-left: 3px;\n\n\t\tp .paragraph-content {\n\t\t\tmargin-bottom: 0.5em;\n\t\t}\n\t}\n\n\tul, ol {\n\t\tpadding-left: 10px;\n\t\tmargin-left: 10px;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tul > li {\n\t\tlist-style-type: disc;\n\t}\n\n\t// Second-level list entries\n\tli ul > li {\n\t\tlist-style-type: circle;\n\t}\n\n\t// Third-level and further down list entries\n\tli li ul > li {\n\t\tlist-style-type: square;\n\t}\n\n\tblockquote {\n\t\tpadding-left: 1em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tmargin-left: 0;\n\t\tmargin-right: 0;\n\t}\n\n\t// table variables\n\t--table-color-border: var(--color-border);\n\t--table-color-heading: var(--color-text-maxcontrast);\n\t--table-color-heading-border: var(--color-border-dark);\n\t--table-color-background: var(--color-main-background);\n\t--table-color-background-hover: var(--color-primary-element-light);\n\t--table-border-radius: var(--border-radius);\n\n\ttable {\n\t\tborder-spacing: 0;\n\t\twidth: calc(100% - 50px);\n\t\ttable-layout: auto;\n\t\twhite-space: normal; // force text to wrapping\n\t\tmargin-bottom: 1em;\n\t\t&+ * {\n\t\t\tmargin-top: 1em;\n\t\t}\n\n\n\t\ttd, th {\n\t\t\tborder: 1px solid var(--table-color-border);\n\t\t\tborder-left: 0;\n\t\t\tvertical-align: top;\n\t\t\tmax-width: 100%;\n\t\t\t&:first-child {\n\t\t\t\tborder-left: 1px solid var(--table-color-border);\n\t\t\t}\n\t\t}\n\t\ttd {\n\t\t\tpadding: 0.5em 0.75em;\n\t\t\tborder-top: 0;\n\t\t\tcolor: var(--color-main-text);\n\t\t}\n\t\tth {\n\t\t\tpadding: 0 0 0 0.75em;\n\t\t\tfont-weight: normal;\n\t\t\tborder-bottom-color: var(--table-color-heading-border);\n\t\t\tcolor: var(--table-color-heading);\n\n\t\t\t& > div {\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t}\n\t\ttr {\n\t\t\tbackground-color: var(--table-color-background);\n\t\t\t&:hover, &:active, &:focus {\n\t\t\t\tbackground-color: var(--table-color-background-hover);\n\t\t\t}\n\t\t}\n\n\t\ttr:first-child {\n\t\t\tth:first-child { border-top-left-radius: var(--table-border-radius); }\n\t\t\tth:last-child { border-top-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t\ttr:last-child {\n\t\t\ttd:first-child { border-bottom-left-radius: var(--table-border-radius); }\n\t\t\ttd:last-child { border-bottom-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t}\n\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n\tdisplay: block;\n}\n\n.editor__content p.is-empty:first-child::before {\n\tcontent: attr(data-placeholder);\n\tfloat: left;\n\tcolor: var(--color-text-maxcontrast);\n\tpointer-events: none;\n\theight: 0;\n}\n\n.editor__content {\n\ttab-size: 4;\n}\n\n.tippy-content div {\n\tvisibility: visible !important;\n}\n","\n@import './../css/variables';\n@import './../css/style';\n@import './../css/print';\n\n.text-editor__wrapper {\n\t@import './../css/prosemirror';\n\n\t// relative position for the alignment of the menububble\n\t.text-editor__main {\n\t\t&.draggedOver {\n\t\t\tbackground-color: var(--color-primary-element-light);\n\t\t}\n\t\t.text-editor__content-wrapper {\n\t\t\tposition: relative;\n\t\t}\n\t}\n}\n\n.text-editor__wrapper.has-conflicts > .editor {\n\twidth: 50%;\n}\n\n.text-editor__wrapper.has-conflicts > .content-wrapper {\n\twidth: 50%;\n\t#read-only-editor {\n\t\tmargin: 0px auto;\n\t\tpadding-top: 50px;\n\t\toverflow: initial;\n\t}\n}\n\n@keyframes spin {\n\t0% { transform: rotate(0deg); }\n\t100% { transform: rotate(360deg); }\n}\n\n/* Give a remote user a caret */\n.collaboration-cursor__caret {\n\tposition: relative;\n\tmargin-left: -1px;\n\tmargin-right: -1px;\n\tborder-left: 1px solid #0D0D0D;\n\tborder-right: 1px solid #0D0D0D;\n\tword-break: normal;\n\tpointer-events: none;\n}\n\n/* Render the username above the caret */\n.collaboration-cursor__label {\n\tposition: absolute;\n\ttop: -1.4em;\n\tleft: -1px;\n\tfont-size: 12px;\n\tfont-style: normal;\n\tfont-weight: 600;\n\tline-height: normal;\n\tuser-select: none;\n\tcolor: #0D0D0D;\n\tpadding: 0.1rem 0.3rem;\n\tborder-radius: 3px 3px 3px 0;\n\twhite-space: nowrap;\n\topacity: 0;\n\n\t&.collaboration-cursor__label__active {\n\t\topacity: 1;\n\t}\n\n\t&:not(.collaboration-cursor__label__active) {\n\t\ttransition: opacity 0.2s 5s;\n\t}\n}\n"],sourceRoot:""}]);const h=c},47557:(t,e,i)=>{"use strict";i.d(e,{Z:()=>a});var r=i(87537),n=i.n(r),o=i(23645),s=i.n(o)()(n());s.push([t.id,".editor__content[data-v-7394eeaa]{max-width:min(var(--text-editor-max-width),100vw - 16px);margin:auto;position:relative;width:100%}.ie .editor__content[data-v-7394eeaa] .ProseMirror{padding-top:50px}.text-editor__content-wrapper[data-v-7394eeaa]{--side-width: calc((100% - var(--text-editor-max-width)) / 2);display:grid;grid-template-columns:1fr auto}.text-editor__content-wrapper.--show-outline[data-v-7394eeaa]{grid-template-columns:var(--side-width) auto var(--side-width)}.text-editor__content-wrapper .text-editor__content-wrapper__left[data-v-7394eeaa],.text-editor__content-wrapper .text-editor__content-wrapper__right[data-v-7394eeaa]{height:100%;position:relative}.is-rich-workspace .text-editor__content-wrapper[data-v-7394eeaa]{--side-width: var(--text-editor-max-width);grid-template-columns:var(--side-width) auto}.is-rich-workspace .text-editor__content-wrapper .text-editor__content-wrapper__left[data-v-7394eeaa],.is-rich-workspace .text-editor__content-wrapper .text-editor__content-wrapper__right[data-v-7394eeaa]{display:none}","",{version:3,sources:["webpack://./src/components/Editor/ContentContainer.vue"],names:[],mappings:"AACA,kCACC,wDAAA,CACA,WAAA,CACA,iBAAA,CACA,UAAA,CAIA,mDACC,gBAAA,CAIF,+CACC,6DAAA,CACA,YAAA,CACA,8BAAA,CACA,8DACC,8DAAA,CAED,uKAEC,WAAA,CACA,iBAAA,CAKD,kEACC,0CAAA,CACA,4CAAA,CACA,6MAEC,YAAA",sourcesContent:["\n.editor__content {\n\tmax-width: min(var(--text-editor-max-width), calc(100vw - 16px));\n\tmargin: auto;\n\tposition: relative;\n\twidth: 100%;\n}\n\n.ie {\n\t.editor__content:deep(.ProseMirror) {\n\t\tpadding-top: 50px;\n\t}\n}\n\n.text-editor__content-wrapper {\n\t--side-width: calc((100% - var(--text-editor-max-width)) / 2);\n\tdisplay: grid;\n\tgrid-template-columns: 1fr auto;\n\t&.--show-outline {\n\t\tgrid-template-columns: var(--side-width) auto var(--side-width);\n\t}\n\t.text-editor__content-wrapper__left,\n\t.text-editor__content-wrapper__right {\n\t\theight: 100%;\n\t\tposition: relative;\n\t}\n}\n\n.is-rich-workspace {\n\t.text-editor__content-wrapper {\n\t\t--side-width: var(--text-editor-max-width);\n\t\tgrid-template-columns: var(--side-width) auto;\n\t\t.text-editor__content-wrapper__left,\n\t\t.text-editor__content-wrapper__right {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},10869:(t,e,i)=>{"use strict";i.d(e,{Z:()=>a});var r=i(87537),n=i.n(r),o=i(23645),s=i.n(o)()(n());s.push([t.id,".document-status[data-v-30c7e03a]{position:sticky;top:16px;z-index:100000;max-width:var(--text-editor-max-width);margin:auto;background-color:var(--color-main-background)}","",{version:3,sources:["webpack://./src/components/Editor/DocumentStatus.vue"],names:[],mappings:"AACA,kCACC,eAAA,CACA,QAAA,CACA,cAAA,CAEA,sCAAA,CACA,WAAA,CACA,6CAAA",sourcesContent:["\n.document-status {\n\tposition: sticky;\n\ttop: 16px;\n\tz-index: 100000;\n\t// max-height: 50px;\n\tmax-width: var(--text-editor-max-width);\n\tmargin: auto;\n\tbackground-color: var(--color-main-background);\n}\n"],sourceRoot:""}]);const a=s},69229:(t,e,i)=>{"use strict";i.d(e,{Z:()=>a});var r=i(87537),n=i.n(r),o=i(23645),s=i.n(o)()(n());s.push([t.id,".text-editor__main[data-v-8ffa875e],.editor[data-v-8ffa875e]{background:var(--color-main-background);color:var(--color-main-text);background-clip:padding-box;border-radius:var(--border-radius);padding:0;position:relative;width:100%}","",{version:3,sources:["webpack://./src/components/Editor/MainContainer.vue"],names:[],mappings:"AACA,6DACC,uCAAA,CACA,4BAAA,CACA,2BAAA,CACA,kCAAA,CACA,SAAA,CACA,iBAAA,CACA,UAAA",sourcesContent:["\n.text-editor__main, .editor {\n\tbackground: var(--color-main-background);\n\tcolor: var(--color-main-text);\n\tbackground-clip: padding-box;\n\tborder-radius: var(--border-radius);\n\tpadding: 0;\n\tposition: relative;\n\twidth: 100%;\n}\n"],sourceRoot:""}]);const a=s},99212:(t,e,i)=>{"use strict";i.d(e,{Z:()=>a});var r=i(87537),n=i.n(r),o=i(23645),s=i.n(o)()(n());s.push([t.id,".text-editor__session-list[data-v-42888af2]{display:flex}.text-editor__session-list input[data-v-42888af2],.text-editor__session-list div[data-v-42888af2]{vertical-align:middle;margin-left:3px}.save-status[data-v-42888af2]{border-radius:50%;color:var(--color-text-lighter);display:inline-flex;justify-content:center;padding:0;height:44px;width:44px}.save-status[data-v-42888af2]:hover{background-color:var(--color-background-hover)}.last-saved[data-v-42888af2]{padding:6px}","",{version:3,sources:["webpack://./src/components/Editor/Status.vue"],names:[],mappings:"AACA,4CACC,YAAA,CAEA,kGACC,qBAAA,CACA,eAAA,CAIF,8BACC,iBAAA,CACA,+BAAA,CACA,mBAAA,CACA,sBAAA,CACA,SAAA,CACA,WAAA,CACA,UAAA,CAEA,oCACC,8CAAA,CAIF,6BACC,WAAA",sourcesContent:["\n.text-editor__session-list {\n\tdisplay: flex;\n\n\tinput, div {\n\t\tvertical-align: middle;\n\t\tmargin-left: 3px;\n\t}\n}\n\n.save-status {\n\tborder-radius: 50%;\n\tcolor: var(--color-text-lighter);\n\tdisplay: inline-flex;\n\tjustify-content: center;\n\tpadding: 0;\n\theight: 44px;\n\twidth: 44px;\n\n\t&:hover {\n\t\tbackground-color: var(--color-background-hover);\n\t}\n}\n\n.last-saved {\n\tpadding: 6px;\n}\n"],sourceRoot:""}]);const a=s},80270:(t,e,i)=>{"use strict";i.d(e,{Z:()=>a});var r=i(87537),n=i.n(r),o=i(23645),s=i.n(o)()(n());s.push([t.id,".text-editor__wrapper[data-v-55273a24]{display:flex;width:100%;height:100%}.text-editor__wrapper.show-color-annotations[data-v-55273a24] .author-annotation{padding-top:2px;padding-bottom:2px}.text-editor__wrapper[data-v-55273a24]:not(.show-color-annotations) .author-annotation,.text-editor__wrapper[data-v-55273a24]:not(.show-color-annotations) .image{background-color:rgba(0,0,0,0) !important}.text-editor__wrapper .ProseMirror[data-v-55273a24]{margin-top:0 !important}","",{version:3,sources:["webpack://./src/components/Editor/Wrapper.vue"],names:[],mappings:"AAEA,uCACC,YAAA,CACA,UAAA,CACA,WAAA,CAEA,iFACC,eAAA,CACA,kBAAA,CAGD,kKAEC,yCAAA,CAGD,oDACC,uBAAA",sourcesContent:["\n\n.text-editor__wrapper {\n\tdisplay: flex;\n\twidth: 100%;\n\theight: 100%;\n\n\t&.show-color-annotations:deep(.author-annotation) {\n\t\tpadding-top: 2px;\n\t\tpadding-bottom: 2px;\n\t}\n\n\t&:not(.show-color-annotations):deep(.author-annotation),\n\t&:not(.show-color-annotations):deep(.image) {\n\t\tbackground-color: transparent !important;\n\t}\n\n\t.ProseMirror {\n\t\tmargin-top: 0 !important;\n\t}\n}\n\n"],sourceRoot:""}]);const a=s},64260:(t,e,i)=>{"use strict";i.d(e,{Z:()=>h});var r=i(87537),n=i.n(r),o=i(23645),s=i.n(o),a=i(61667),l=i.n(a),d=new URL(i(69521),i.b),c=s()(n()),A=l()(d);c.push([t.id,`table[data-v-0b17af4e]{margin-top:24px;border-collapse:collapse}table tbody tr[data-v-0b17af4e]:hover,table tbody tr[data-v-0b17af4e]:focus,table tbody tr[data-v-0b17af4e]:active{background-color:rgba(0,0,0,0) !important}table thead tr[data-v-0b17af4e]{border:none}table th[data-v-0b17af4e]{font-weight:bold;padding:.75rem 1rem .75rem 0;border-bottom:2px solid var(--color-background-darker)}table td[data-v-0b17af4e]{padding:.75rem 1rem .75rem 0;border-top:1px solid var(--color-background-dark);border-bottom:unset}table td.noborder[data-v-0b17af4e]{border-top:unset}table td.ellipsis_top[data-v-0b17af4e]{padding-bottom:0}table td.ellipsis[data-v-0b17af4e]{padding-top:0;padding-bottom:0}table td.ellipsis_bottom[data-v-0b17af4e]{padding-top:0}table kbd[data-v-0b17af4e]{font-size:smaller}table code[data-v-0b17af4e]{padding:.2em .4em;font-size:90%;background-color:var(--color-background-dark);border-radius:6px}div.ProseMirror[data-v-0b17af4e]{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:var(--default-font-size);outline:none;--table-color-border: var(--color-border);--table-color-heading: var(--color-text-maxcontrast);--table-color-heading-border: var(--color-border-dark);--table-color-background: var(--color-main-background);--table-color-background-hover: var(--color-primary-element-light);--table-border-radius: var(--border-radius)}div.ProseMirror[data-v-0b17af4e] :target{scroll-margin-top:50px}div.ProseMirror[contenteditable=true][data-v-0b17af4e],div.ProseMirror[contenteditable=false][data-v-0b17af4e],div.ProseMirror [contenteditable=true][data-v-0b17af4e],div.ProseMirror [contenteditable=false][data-v-0b17af4e]{width:100%;background-color:rgba(0,0,0,0);color:var(--color-main-text);opacity:1;-webkit-user-select:text;user-select:text;font-size:var(--default-font-size)}div.ProseMirror[contenteditable=true][data-v-0b17af4e]:not(.collaboration-cursor__caret),div.ProseMirror[contenteditable=false][data-v-0b17af4e]:not(.collaboration-cursor__caret),div.ProseMirror [contenteditable=true][data-v-0b17af4e]:not(.collaboration-cursor__caret),div.ProseMirror [contenteditable=false][data-v-0b17af4e]:not(.collaboration-cursor__caret){border:none !important}div.ProseMirror[contenteditable=true][data-v-0b17af4e]:focus,div.ProseMirror[contenteditable=true][data-v-0b17af4e]:focus-visible,div.ProseMirror[contenteditable=false][data-v-0b17af4e]:focus,div.ProseMirror[contenteditable=false][data-v-0b17af4e]:focus-visible,div.ProseMirror [contenteditable=true][data-v-0b17af4e]:focus,div.ProseMirror [contenteditable=true][data-v-0b17af4e]:focus-visible,div.ProseMirror [contenteditable=false][data-v-0b17af4e]:focus,div.ProseMirror [contenteditable=false][data-v-0b17af4e]:focus-visible{box-shadow:none !important}div.ProseMirror ul[data-type=taskList][data-v-0b17af4e]{margin-left:1px}div.ProseMirror .checkbox-item[data-v-0b17af4e]{display:flex;align-items:start}div.ProseMirror .checkbox-item input[type=checkbox][data-v-0b17af4e]{display:none}div.ProseMirror .checkbox-item[data-v-0b17af4e]:before{content:"";vertical-align:middle;margin:3px 6px 3px 2px;border:1px solid var(--color-text-maxcontrast);display:block;border-radius:var(--border-radius);height:14px;width:14px;box-shadow:none !important;background-position:center;cursor:pointer;left:9px}div.ProseMirror .checkbox-item.checked[data-v-0b17af4e]:before{background-image:url(${A});background-color:var(--color-primary-element);border-color:var(--color-primary-element)}div.ProseMirror .checkbox-item.checked>label>p[data-v-0b17af4e]{color:var(--color-text-maxcontrast);text-decoration:line-through}div.ProseMirror .checkbox-item label[data-v-0b17af4e]{display:block;flex-grow:1;max-width:calc(100% - 28px)}div.ProseMirror>*[data-v-0b17af4e]:first-child{margin-top:10px}div.ProseMirror>h1[data-v-0b17af4e]:first-child,div.ProseMirror h2[data-v-0b17af4e]:first-child,div.ProseMirror h3[data-v-0b17af4e]:first-child,div.ProseMirror h4[data-v-0b17af4e]:first-child,div.ProseMirror h5[data-v-0b17af4e]:first-child,div.ProseMirror h6[data-v-0b17af4e]:first-child{margin-top:0}div.ProseMirror a[data-v-0b17af4e]{color:var(--color-primary-element);text-decoration:underline;padding:.5em 0}div.ProseMirror p .paragraph-content[data-v-0b17af4e]{margin-bottom:1em;line-height:150%}div.ProseMirror em[data-v-0b17af4e]{font-style:italic}div.ProseMirror h1[data-v-0b17af4e],div.ProseMirror h2[data-v-0b17af4e],div.ProseMirror h3[data-v-0b17af4e],div.ProseMirror h4[data-v-0b17af4e],div.ProseMirror h5[data-v-0b17af4e],div.ProseMirror h6[data-v-0b17af4e]{font-weight:600;line-height:1.1em;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}div.ProseMirror h1[data-v-0b17af4e]{font-size:30px}div.ProseMirror h2[data-v-0b17af4e]{font-size:26px}div.ProseMirror h3[data-v-0b17af4e]{font-size:23px}div.ProseMirror h4[data-v-0b17af4e]{font-size:20px}div.ProseMirror h5[data-v-0b17af4e]{font-size:17px}div.ProseMirror h6[data-v-0b17af4e]{font-size:var(--default-font-size)}div.ProseMirror img[data-v-0b17af4e]{cursor:default;max-width:100%}div.ProseMirror hr[data-v-0b17af4e]{padding:2px 0;border:none;margin:2em 0;width:100%}div.ProseMirror hr[data-v-0b17af4e]:after{content:"";display:block;height:1px;background-color:var(--color-border-dark);line-height:2px}div.ProseMirror pre[data-v-0b17af4e]{white-space:pre-wrap;background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:1em 1.3em;margin-bottom:1em}div.ProseMirror pre[data-v-0b17af4e]::before{content:attr(data-language);text-transform:uppercase;display:block;text-align:right;font-weight:bold;font-size:.6rem}div.ProseMirror pre code .hljs-comment[data-v-0b17af4e],div.ProseMirror pre code .hljs-quote[data-v-0b17af4e]{color:#999}div.ProseMirror pre code .hljs-variable[data-v-0b17af4e],div.ProseMirror pre code .hljs-template-variable[data-v-0b17af4e],div.ProseMirror pre code .hljs-attribute[data-v-0b17af4e],div.ProseMirror pre code .hljs-tag[data-v-0b17af4e],div.ProseMirror pre code .hljs-name[data-v-0b17af4e],div.ProseMirror pre code .hljs-regexp[data-v-0b17af4e],div.ProseMirror pre code .hljs-link[data-v-0b17af4e],div.ProseMirror pre code .hljs-selector-id[data-v-0b17af4e],div.ProseMirror pre code .hljs-selector-class[data-v-0b17af4e]{color:#f2777a}div.ProseMirror pre code .hljs-number[data-v-0b17af4e],div.ProseMirror pre code .hljs-meta[data-v-0b17af4e],div.ProseMirror pre code .hljs-built_in[data-v-0b17af4e],div.ProseMirror pre code .hljs-builtin-name[data-v-0b17af4e],div.ProseMirror pre code .hljs-literal[data-v-0b17af4e],div.ProseMirror pre code .hljs-type[data-v-0b17af4e],div.ProseMirror pre code .hljs-params[data-v-0b17af4e]{color:#f99157}div.ProseMirror pre code .hljs-string[data-v-0b17af4e],div.ProseMirror pre code .hljs-symbol[data-v-0b17af4e],div.ProseMirror pre code .hljs-bullet[data-v-0b17af4e]{color:#9c9}div.ProseMirror pre code .hljs-title[data-v-0b17af4e],div.ProseMirror pre code .hljs-section[data-v-0b17af4e]{color:#fc6}div.ProseMirror pre code .hljs-keyword[data-v-0b17af4e],div.ProseMirror pre code .hljs-selector-tag[data-v-0b17af4e]{color:#69c}div.ProseMirror pre code .hljs-emphasis[data-v-0b17af4e]{font-style:italic}div.ProseMirror pre code .hljs-strong[data-v-0b17af4e]{font-weight:700}div.ProseMirror pre.frontmatter[data-v-0b17af4e]{margin-bottom:2em;border-left:4px solid var(--color-primary-element)}div.ProseMirror pre.frontmatter[data-v-0b17af4e]::before{display:block;content:attr(data-title);color:var(--color-text-maxcontrast);padding-bottom:.5em}div.ProseMirror p code[data-v-0b17af4e]{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}div.ProseMirror li[data-v-0b17af4e]{position:relative;padding-left:3px}div.ProseMirror li p .paragraph-content[data-v-0b17af4e]{margin-bottom:.5em}div.ProseMirror ul[data-v-0b17af4e],div.ProseMirror ol[data-v-0b17af4e]{padding-left:10px;margin-left:10px;margin-bottom:1em}div.ProseMirror ul>li[data-v-0b17af4e]{list-style-type:disc}div.ProseMirror li ul>li[data-v-0b17af4e]{list-style-type:circle}div.ProseMirror li li ul>li[data-v-0b17af4e]{list-style-type:square}div.ProseMirror blockquote[data-v-0b17af4e]{padding-left:1em;border-left:4px solid var(--color-primary-element);color:var(--color-text-maxcontrast);margin-left:0;margin-right:0}div.ProseMirror table[data-v-0b17af4e]{border-spacing:0;width:calc(100% - 50px);table-layout:auto;white-space:normal;margin-bottom:1em}div.ProseMirror table+*[data-v-0b17af4e]{margin-top:1em}div.ProseMirror table td[data-v-0b17af4e],div.ProseMirror table th[data-v-0b17af4e]{border:1px solid var(--table-color-border);border-left:0;vertical-align:top;max-width:100%}div.ProseMirror table td[data-v-0b17af4e]:first-child,div.ProseMirror table th[data-v-0b17af4e]:first-child{border-left:1px solid var(--table-color-border)}div.ProseMirror table td[data-v-0b17af4e]{padding:.5em .75em;border-top:0;color:var(--color-main-text)}div.ProseMirror table th[data-v-0b17af4e]{padding:0 0 0 .75em;font-weight:normal;border-bottom-color:var(--table-color-heading-border);color:var(--table-color-heading)}div.ProseMirror table th>div[data-v-0b17af4e]{display:flex}div.ProseMirror table tr[data-v-0b17af4e]{background-color:var(--table-color-background)}div.ProseMirror table tr[data-v-0b17af4e]:hover,div.ProseMirror table tr[data-v-0b17af4e]:active,div.ProseMirror table tr[data-v-0b17af4e]:focus{background-color:var(--table-color-background-hover)}div.ProseMirror table tr:first-child th[data-v-0b17af4e]:first-child{border-top-left-radius:var(--table-border-radius)}div.ProseMirror table tr:first-child th[data-v-0b17af4e]:last-child{border-top-right-radius:var(--table-border-radius)}div.ProseMirror table tr:last-child td[data-v-0b17af4e]:first-child{border-bottom-left-radius:var(--table-border-radius)}div.ProseMirror table tr:last-child td[data-v-0b17af4e]:last-child{border-bottom-right-radius:var(--table-border-radius)}.ProseMirror-focused .ProseMirror-gapcursor[data-v-0b17af4e]{display:block}.editor__content p.is-empty[data-v-0b17af4e]:first-child::before{content:attr(data-placeholder);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}.editor__content[data-v-0b17af4e]{tab-size:4}.tippy-content div[data-v-0b17af4e]{visibility:visible !important}div.ProseMirror[data-v-0b17af4e]{display:inline;margin-top:unset;position:unset;padding:unset;line-height:unset}div.ProseMirror h1[data-v-0b17af4e],div.ProseMirror h6[data-v-0b17af4e]{display:inline;padding:0;margin:0}`,"",{version:3,sources:["webpack://./src/components/HelpModal.vue","webpack://./src/css/prosemirror.scss"],names:[],mappings:"AACA,uBACC,eAAA,CACA,wBAAA,CAGC,mHACC,yCAAA,CAIF,gCACC,WAAA,CAGD,0BACC,gBAAA,CACA,4BAAA,CACA,sDAAA,CAGD,0BACC,4BAAA,CACA,iDAAA,CACA,mBAAA,CAEA,mCACC,gBAAA,CAGD,uCACC,gBAAA,CAGD,mCACC,aAAA,CACA,gBAAA,CAGD,0CACC,aAAA,CAIF,2BACC,iBAAA,CAGD,4BACC,iBAAA,CACA,aAAA,CACA,6CAAA,CACA,iBAAA,CCjDF,iCACC,WAAA,CACA,iBAAA,CACA,oBAAA,CACA,oBAAA,CACA,mCAAA,CACA,2BAAA,CACA,0BAAA,CACA,gBAAA,CACA,kCAAA,CACA,YAAA,CA+QA,yCAAA,CACA,oDAAA,CACA,sDAAA,CACA,sDAAA,CACA,kEAAA,CACA,2CAAA,CAlRA,yCAEC,sBAAA,CAGD,gOAIC,UAAA,CACA,8BAAA,CACA,4BAAA,CACA,SAAA,CACA,wBAAA,CACA,gBAAA,CACA,kCAAA,CAEA,wWACC,sBAAA,CAGD,ghBACC,0BAAA,CAIF,wDACC,eAAA,CAGD,gDACC,YAAA,CACA,iBAAA,CAEA,qEACC,YAAA,CAED,uDACC,UAAA,CACA,qBAAA,CACA,sBAAA,CACA,8CAAA,CACA,aAAA,CACA,kCAAA,CACA,WAAA,CACA,UAAA,CACA,0BAAA,CACA,0BAAA,CACA,cAAA,CACA,QAAA,CAGA,+DACC,wDAAA,CACA,6CAAA,CACA,yCAAA,CAED,gEACC,mCAAA,CACA,4BAAA,CAGF,sDACC,aAAA,CACA,WAAA,CACA,2BAAA,CAIF,+CACC,eAAA,CAIA,gSACC,YAAA,CAIF,mCACC,kCAAA,CACA,yBAAA,CACA,cAAA,CAGD,sDACC,iBAAA,CACA,gBAAA,CAGD,oCACC,iBAAA,CAGD,wNAMC,eAAA,CACA,iBAAA,CACA,eAAA,CACA,kBAAA,CACA,4BAAA,CAGD,oCACC,cAAA,CAGD,oCACC,cAAA,CAGD,oCACC,cAAA,CAGD,oCACC,cAAA,CAGD,oCACC,cAAA,CAGD,oCACC,kCAAA,CAGD,qCACC,cAAA,CACA,cAAA,CAGD,oCACC,aAAA,CACA,WAAA,CACA,YAAA,CACA,UAAA,CAGD,0CACC,UAAA,CACA,aAAA,CACA,UAAA,CACA,yCAAA,CACA,eAAA,CAGD,qCACC,oBAAA,CACA,6CAAA,CACA,kCAAA,CACA,iBAAA,CACA,iBAAA,CAEA,6CACC,2BAAA,CACA,wBAAA,CACA,aAAA,CACA,gBAAA,CACA,gBAAA,CACA,eAAA,CAGA,8GAEC,UAAA,CAED,qgBASC,aAAA,CAED,sYAOC,aAAA,CAED,qKAGC,UAAA,CAED,8GAEC,UAAA,CAED,qHAEC,UAAA,CAED,yDACC,iBAAA,CAED,uDACC,eAAA,CAKH,iDACC,iBAAA,CACA,kDAAA,CAGD,yDACC,aAAA,CACA,wBAAA,CACA,mCAAA,CACA,mBAAA,CAGD,wCACC,6CAAA,CACA,kCAAA,CACA,iBAAA,CAGD,oCACC,iBAAA,CACA,gBAAA,CAEA,yDACC,kBAAA,CAIF,wEACC,iBAAA,CACA,gBAAA,CACA,iBAAA,CAGD,uCACC,oBAAA,CAID,0CACC,sBAAA,CAID,6CACC,sBAAA,CAGD,4CACC,gBAAA,CACA,kDAAA,CACA,mCAAA,CACA,aAAA,CACA,cAAA,CAWD,uCACC,gBAAA,CACA,uBAAA,CACA,iBAAA,CACA,kBAAA,CACA,iBAAA,CACA,yCACC,cAAA,CAID,oFACC,0CAAA,CACA,aAAA,CACA,kBAAA,CACA,cAAA,CACA,4GACC,+CAAA,CAGF,0CACC,kBAAA,CACA,YAAA,CACA,4BAAA,CAED,0CACC,mBAAA,CACA,kBAAA,CACA,qDAAA,CACA,gCAAA,CAEA,8CACC,YAAA,CAGF,0CACC,8CAAA,CACA,iJACC,oDAAA,CAKD,qEAAA,iDAAA,CACA,oEAAA,kDAAA,CAIA,oEAAA,oDAAA,CACA,mEAAA,qDAAA,CAOH,6DACC,aAAA,CAGD,iEACC,8BAAA,CACA,UAAA,CACA,mCAAA,CACA,mBAAA,CACA,QAAA,CAGD,kCACC,UAAA,CAGD,oCACC,6BAAA,CDlTD,iCACC,cAAA,CACA,gBAAA,CACA,cAAA,CACA,aAAA,CACA,iBAAA,CAEA,wEACC,cAAA,CACA,SAAA,CACA,QAAA",sourcesContent:["\ntable {\n\tmargin-top: 24px;\n\tborder-collapse: collapse;\n\n\ttbody tr {\n\t\t&:hover, &:focus, &:active {\n\t\t\tbackground-color: transparent !important;\n\t\t}\n\t}\n\n\tthead tr {\n\t\tborder: none;\n\t}\n\n\tth {\n\t\tfont-weight: bold;\n\t\tpadding: .75rem 1rem .75rem 0;\n\t\tborder-bottom: 2px solid var(--color-background-darker);\n\t}\n\n\ttd {\n\t\tpadding: .75rem 1rem .75rem 0;\n\t\tborder-top: 1px solid var(--color-background-dark);\n\t\tborder-bottom: unset;\n\n\t\t&.noborder {\n\t\t\tborder-top: unset;\n\t\t}\n\n\t\t&.ellipsis_top {\n\t\t\tpadding-bottom: 0;\n\t\t}\n\n\t\t&.ellipsis {\n\t\t\tpadding-top: 0;\n\t\t\tpadding-bottom: 0;\n\t\t}\n\n\t\t&.ellipsis_bottom {\n\t\t\tpadding-top: 0;\n\t\t}\n\t}\n\n\tkbd {\n\t\tfont-size: smaller;\n\t}\n\n\tcode {\n\t\tpadding: .2em .4em;\n\t\tfont-size: 90%;\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: 6px;\n\t}\n}\n\n@import '../css/prosemirror';\n\ndiv.ProseMirror {\n\tdisplay: inline;\n\tmargin-top: unset;\n\tposition: unset;\n\tpadding: unset;\n\tline-height: unset;\n\n\th1, h6 {\n\t\tdisplay: inline;\n\t\tpadding: 0;\n\t\tmargin: 0;\n\t}\n}\n","@use 'sass:selector';\n\n/* Document rendering styles */\ndiv.ProseMirror {\n\theight: 100%;\n\tposition: relative;\n\tword-wrap: break-word;\n\twhite-space: pre-wrap;\n\t-webkit-font-variant-ligatures: none;\n\tfont-variant-ligatures: none;\n\tpadding: 4px 8px 200px 14px;\n\tline-height: 150%;\n\tfont-size: var(--default-font-size);\n\toutline: none;\n\n\t:target {\n\t\t// Menubar height: 44px + 3px bottom + 3px top padding\n\t\tscroll-margin-top: 50px;\n\t}\n\n\t&[contenteditable=true],\n\t&[contenteditable=false],\n\t[contenteditable=true],\n\t[contenteditable=false] {\n\t\twidth: 100%;\n\t\tbackground-color: transparent;\n\t\tcolor: var(--color-main-text);\n\t\topacity: 1;\n\t\t-webkit-user-select: text;\n\t\tuser-select: text;\n\t\tfont-size: var(--default-font-size);\n\n\t\t&:not(.collaboration-cursor__caret) {\n\t\t\tborder: none !important;\n\t\t}\n\n\t\t&:focus, &:focus-visible {\n\t\t\tbox-shadow: none !important;\n\t\t}\n\t}\n\n\tul[data-type=taskList] {\n\t\tmargin-left: 1px;\n\t}\n\n\t.checkbox-item {\n\t\tdisplay: flex;\n\t\talign-items: start;\n\n\t\tinput[type=checkbox] {\n\t\t\tdisplay: none;\n\t\t}\n\t\t&:before {\n\t\t\tcontent: '';\n\t\t\tvertical-align: middle;\n\t\t\tmargin: 3px 6px 3px 2px;\n\t\t\tborder: 1px solid var(--color-text-maxcontrast);\n\t\t\tdisplay: block;\n\t\t\tborder-radius: var(--border-radius);\n\t\t\theight: 14px;\n\t\t\twidth: 14px;\n\t\t\tbox-shadow: none !important;\n\t\t\tbackground-position: center;\n\t\t\tcursor: pointer;\n\t\t\tleft: 9px;\n\t\t}\n\t\t&.checked{\n\t\t\t&:before {\n\t\t\t\tbackground-image: url('../../img/checkbox-mark.svg');\n\t\t\t\tbackground-color: var(--color-primary-element);\n\t\t\t\tborder-color: var(--color-primary-element);\n\t\t\t}\n\t\t\t> label > p {\n\t\t\t\tcolor: var(--color-text-maxcontrast);\n\t\t\t\ttext-decoration: line-through;\n\t\t\t}\n\t\t}\n\t\tlabel {\n\t\t\tdisplay: block;\n\t\t\tflex-grow: 1;\n\t\t\tmax-width: calc(100% - 28px);\n\t\t}\n\t}\n\n\t> *:first-child {\n\t\tmargin-top: 10px;\n\t}\n\n\t> h1,h2,h3,h4,h5,h6 {\n\t\t&:first-child {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\n\ta {\n\t\tcolor: var(--color-primary-element);\n\t\ttext-decoration: underline;\n\t\tpadding: .5em 0;\n\t}\n\n\tp .paragraph-content {\n\t\tmargin-bottom: 1em;\n\t\tline-height: 150%;\n\t}\n\n\tem {\n\t\tfont-style: italic;\n\t}\n\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6 {\n\t\tfont-weight: 600;\n\t\tline-height: 1.1em;\n\t\tmargin-top: 24px;\n\t\tmargin-bottom: 12px;\n\t\tcolor: var(--color-main-text);\n\t}\n\n\th1 {\n\t\tfont-size: 30px;\n\t}\n\n\th2 {\n\t\tfont-size: 26px;\n\t}\n\n\th3 {\n\t\tfont-size: 23px;\n\t}\n\n\th4 {\n\t\tfont-size: 20px;\n\t}\n\n\th5 {\n\t\tfont-size: 17px;\n\t}\n\n\th6 {\n\t\tfont-size: var(--default-font-size);\n\t}\n\n\timg {\n\t\tcursor: default;\n\t\tmax-width: 100%;\n\t}\n\n\thr {\n\t\tpadding: 2px 0;\n\t\tborder: none;\n\t\tmargin: 2em 0;\n\t\twidth: 100%;\n\t}\n\n\thr:after {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\theight: 1px;\n\t\tbackground-color: var(--color-border-dark);\n\t\tline-height: 2px;\n\t}\n\n\tpre {\n\t\twhite-space: pre-wrap;\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: 1em 1.3em;\n\t\tmargin-bottom: 1em;\n\n\t\t&::before {\n\t\t\tcontent: attr(data-language);\n\t\t\ttext-transform: uppercase;\n\t\t\tdisplay: block;\n\t\t\ttext-align: right;\n\t\t\tfont-weight: bold;\n\t\t\tfont-size: 0.6rem;\n\t\t}\n\t\tcode {\n\t\t\t.hljs-comment,\n\t\t\t.hljs-quote {\n\t\t\t\tcolor: #999999;\n\t\t\t}\n\t\t\t.hljs-variable,\n\t\t\t.hljs-template-variable,\n\t\t\t.hljs-attribute,\n\t\t\t.hljs-tag,\n\t\t\t.hljs-name,\n\t\t\t.hljs-regexp,\n\t\t\t.hljs-link,\n\t\t\t.hljs-selector-id,\n\t\t\t.hljs-selector-class {\n\t\t\t\tcolor: #f2777a;\n\t\t\t}\n\t\t\t.hljs-number,\n\t\t\t.hljs-meta,\n\t\t\t.hljs-built_in,\n\t\t\t.hljs-builtin-name,\n\t\t\t.hljs-literal,\n\t\t\t.hljs-type,\n\t\t\t.hljs-params {\n\t\t\t\tcolor: #f99157;\n\t\t\t}\n\t\t\t.hljs-string,\n\t\t\t.hljs-symbol,\n\t\t\t.hljs-bullet {\n\t\t\t\tcolor: #99cc99;\n\t\t\t}\n\t\t\t.hljs-title,\n\t\t\t.hljs-section {\n\t\t\t\tcolor: #ffcc66;\n\t\t\t}\n\t\t\t.hljs-keyword,\n\t\t\t.hljs-selector-tag {\n\t\t\t\tcolor: #6699cc;\n\t\t\t}\n\t\t\t.hljs-emphasis {\n\t\t\t\tfont-style: italic;\n\t\t\t}\n\t\t\t.hljs-strong {\n\t\t\t\tfont-weight: 700;\n\t\t\t}\n\t\t}\n\t}\n\n\tpre.frontmatter {\n\t\tmargin-bottom: 2em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t}\n\n\tpre.frontmatter::before {\n\t\tdisplay: block;\n\t\tcontent: attr(data-title);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tpadding-bottom: 0.5em;\n\t}\n\n\tp code {\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: .1em .3em;\n\t}\n\n\tli {\n\t\tposition: relative;\n\t\tpadding-left: 3px;\n\n\t\tp .paragraph-content {\n\t\t\tmargin-bottom: 0.5em;\n\t\t}\n\t}\n\n\tul, ol {\n\t\tpadding-left: 10px;\n\t\tmargin-left: 10px;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tul > li {\n\t\tlist-style-type: disc;\n\t}\n\n\t// Second-level list entries\n\tli ul > li {\n\t\tlist-style-type: circle;\n\t}\n\n\t// Third-level and further down list entries\n\tli li ul > li {\n\t\tlist-style-type: square;\n\t}\n\n\tblockquote {\n\t\tpadding-left: 1em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tmargin-left: 0;\n\t\tmargin-right: 0;\n\t}\n\n\t// table variables\n\t--table-color-border: var(--color-border);\n\t--table-color-heading: var(--color-text-maxcontrast);\n\t--table-color-heading-border: var(--color-border-dark);\n\t--table-color-background: var(--color-main-background);\n\t--table-color-background-hover: var(--color-primary-element-light);\n\t--table-border-radius: var(--border-radius);\n\n\ttable {\n\t\tborder-spacing: 0;\n\t\twidth: calc(100% - 50px);\n\t\ttable-layout: auto;\n\t\twhite-space: normal; // force text to wrapping\n\t\tmargin-bottom: 1em;\n\t\t&+ * {\n\t\t\tmargin-top: 1em;\n\t\t}\n\n\n\t\ttd, th {\n\t\t\tborder: 1px solid var(--table-color-border);\n\t\t\tborder-left: 0;\n\t\t\tvertical-align: top;\n\t\t\tmax-width: 100%;\n\t\t\t&:first-child {\n\t\t\t\tborder-left: 1px solid var(--table-color-border);\n\t\t\t}\n\t\t}\n\t\ttd {\n\t\t\tpadding: 0.5em 0.75em;\n\t\t\tborder-top: 0;\n\t\t\tcolor: var(--color-main-text);\n\t\t}\n\t\tth {\n\t\t\tpadding: 0 0 0 0.75em;\n\t\t\tfont-weight: normal;\n\t\t\tborder-bottom-color: var(--table-color-heading-border);\n\t\t\tcolor: var(--table-color-heading);\n\n\t\t\t& > div {\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t}\n\t\ttr {\n\t\t\tbackground-color: var(--table-color-background);\n\t\t\t&:hover, &:active, &:focus {\n\t\t\t\tbackground-color: var(--table-color-background-hover);\n\t\t\t}\n\t\t}\n\n\t\ttr:first-child {\n\t\t\tth:first-child { border-top-left-radius: var(--table-border-radius); }\n\t\t\tth:last-child { border-top-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t\ttr:last-child {\n\t\t\ttd:first-child { border-bottom-left-radius: var(--table-border-radius); }\n\t\t\ttd:last-child { border-bottom-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t}\n\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n\tdisplay: block;\n}\n\n.editor__content p.is-empty:first-child::before {\n\tcontent: attr(data-placeholder);\n\tfloat: left;\n\tcolor: var(--color-text-maxcontrast);\n\tpointer-events: none;\n\theight: 0;\n}\n\n.editor__content {\n\ttab-size: 4;\n}\n\n.tippy-content div {\n\tvisibility: visible !important;\n}\n"],sourceRoot:""}]);const h=c},57172:(t,e,i)=>{"use strict";i.d(e,{Z:()=>a});var r=i(87537),n=i.n(r),o=i(23645),s=i.n(o)()(n());s.push([t.id,".text-menubar[data-v-0b381e60]{--background-blur: blur(10px);position:sticky;top:0;z-index:10021;background-color:var(--color-main-background-translucent);backdrop-filter:var(--background-blur);max-height:44px;padding-top:3px;padding-bottom:3px;visibility:hidden;display:flex;justify-content:flex-end;align-items:center}.text-menubar.text-menubar--ready[data-v-0b381e60]:not(.text-menubar--hide){visibility:visible;animation-name:fadeInDown;animation-duration:.3s}.text-menubar.text-menubar--hide[data-v-0b381e60]{opacity:0;transition:visibility .2s .4s,opacity .2s .4s}.text-menubar .text-menubar__entries[data-v-0b381e60]{display:flex;flex-grow:1;margin-left:max(0px,(100% - var(--text-editor-max-width))/2)}.text-menubar .text-menubar__slot[data-v-0b381e60]{justify-content:flex-end;display:flex;min-width:max(0px,min(100px,(100% - var(--text-editor-max-width))/2))}.text-menubar.text-menubar--is-workspace .text-menubar__entries[data-v-0b381e60]{margin-left:0}@media(max-width: 660px){.text-menubar .text-menubar__entries[data-v-0b381e60]{margin-left:0}}","",{version:3,sources:["webpack://./src/components/Menu/MenuBar.vue"],names:[],mappings:"AACA,+BACC,6BAAA,CACA,eAAA,CACA,KAAA,CACA,aAAA,CACA,yDAAA,CACA,sCAAA,CACA,eAAA,CACA,eAAA,CACA,kBAAA,CAEA,iBAAA,CAEA,YAAA,CACA,wBAAA,CACA,kBAAA,CAEA,4EACC,kBAAA,CACA,yBAAA,CACA,sBAAA,CAGD,kDACC,SAAA,CACA,6CAAA,CAED,sDACC,YAAA,CACA,WAAA,CACA,4DAAA,CAGD,mDACC,wBAAA,CACA,YAAA,CACA,qEAAA,CAIA,iFACC,aAAA,CAIF,yBACC,sDACC,aAAA,CAAA",sourcesContent:["\n.text-menubar {\n\t--background-blur: blur(10px);\n\tposition: sticky;\n\ttop: 0;\n\tz-index: 10021; // above modal-header so menubar is always on top\n\tbackground-color: var(--color-main-background-translucent);\n\tbackdrop-filter: var(--background-blur);\n\tmax-height: 44px; // important for mobile so that the buttons are always inside the container\n\tpadding-top:3px;\n\tpadding-bottom: 3px;\n\n\tvisibility: hidden;\n\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\n\t&.text-menubar--ready:not(.text-menubar--hide) {\n\t\tvisibility: visible;\n\t\tanimation-name: fadeInDown;\n\t\tanimation-duration: 0.3s;\n\t}\n\n\t&.text-menubar--hide {\n\t\topacity: 0;\n\t\ttransition: visibility 0.2s 0.4s, opacity 0.2s 0.4s;\n\t}\n\t.text-menubar__entries {\n\t\tdisplay: flex;\n\t\tflex-grow: 1;\n\t\tmargin-left: max(0px, calc((100% - var(--text-editor-max-width)) / 2));\n\t}\n\n\t.text-menubar__slot {\n\t\tjustify-content: flex-end;\n\t\tdisplay: flex;\n\t\tmin-width: max(0px, min(100px, (100% - var(--text-editor-max-width)) / 2));\n\t}\n\n\t&.text-menubar--is-workspace {\n\t\t.text-menubar__entries {\n\t\t\tmargin-left: 0;\n\t\t}\n\t}\n\n\t@media (max-width: 660px) {\n\t\t.text-menubar__entries {\n\t\t\tmargin-left: 0;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},11305:(t,e,i)=>{"use strict";i.d(e,{Z:()=>a});var r=i(87537),n=i.n(r),o=i(23645),s=i.n(o)()(n());s.push([t.id,".translate-dialog[data-v-8498603c]{margin:24px}.translate-dialog .wrapper[data-v-8498603c]{display:grid;grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));grid-column-gap:16px;margin-top:calc(var(--default-grid-baseline)*6)}.translate-dialog .wrapper .language-selector[data-v-8498603c]{font-weight:bold;flex-wrap:wrap;gap:var(--default-grid-baseline)}.translate-dialog .wrapper .col[data-v-8498603c]{grid-row:1/2}.translate-dialog[data-v-8498603c] .translate-textarea{display:block;width:100%;margin-bottom:12px;height:auto;resize:none;box-sizing:border-box;overflow-y:auto;min-height:62px;max-height:58vh}@media(max-width: 670px){.translate-dialog .wrapper[data-v-8498603c]{display:block}.translate-dialog .language-selector .select[data-v-8498603c]{width:100%}.translate-dialog[data-v-8498603c] .translate-textarea{max-height:20vh}label[for=fromLanguage][data-v-8498603c],label[for=toLanguage][data-v-8498603c]{display:none}}.language-selector[data-v-8498603c]{display:flex;align-items:center;margin-bottom:12px}.language-selector label[data-v-8498603c]{flex-grow:1}.translate-actions[data-v-8498603c]{display:flex;justify-content:flex-end}.translate-actions button[data-v-8498603c]{margin-left:12px}","",{version:3,sources:["webpack://./src/components/Modal/Translate.vue"],names:[],mappings:"AACA,mCACC,WAAA,CAEA,4CACC,YAAA,CACA,2DAAA,CACA,oBAAA,CACA,+CAAA,CAEA,+DACC,gBAAA,CACA,cAAA,CACA,gCAAA,CAGD,iDACC,YAAA,CAIF,uDACC,aAAA,CACA,UAAA,CACA,kBAAA,CACA,WAAA,CACA,WAAA,CACA,qBAAA,CACA,eAAA,CACA,eAAA,CACA,eAAA,CAIF,yBAEE,4CACC,aAAA,CAIA,8DACC,UAAA,CAIF,uDACC,eAAA,CAKD,gFAEC,YAAA,CAAA,CAKH,oCACC,YAAA,CACA,kBAAA,CACA,kBAAA,CAEA,0CACC,WAAA,CAIF,oCACC,YAAA,CACA,wBAAA,CAEA,2CACC,gBAAA",sourcesContent:['\n.translate-dialog {\n\tmargin: 24px;\n\n\t.wrapper {\n\t\tdisplay: grid;\n\t\tgrid-template-columns: repeat(auto-fill, minmax(300px, 1fr));\n\t\tgrid-column-gap: 16px;\n\t\tmargin-top: calc(var(--default-grid-baseline) * 6);\n\n\t\t.language-selector {\n\t\t\tfont-weight: bold;\n\t\t\tflex-wrap: wrap;\n\t\t\tgap: var(--default-grid-baseline);\n\t\t}\n\n\t\t.col {\n\t\t\tgrid-row: 1/2;\n\t\t}\n\t}\n\n\t:deep(.translate-textarea) {\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t\tmargin-bottom: 12px;\n\t\theight: auto;\n\t\tresize: none;\n\t\tbox-sizing: border-box;\n\t\toverflow-y: auto;\n\t\tmin-height: 62px;\n\t\tmax-height: 58vh;\n\t}\n}\n\n@media (max-width: 670px) {\n\t.translate-dialog {\n\t\t.wrapper {\n\t\t\tdisplay: block;\n\t\t}\n\n\t\t.language-selector {\n\t\t\t.select {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\n\t\t:deep(.translate-textarea) {\n\t\t\tmax-height: 20vh;\n\t\t}\n\t}\n\n\tlabel {\n\t\t&[for="fromLanguage"],\n\t\t&[for="toLanguage"] {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n.language-selector {\n\tdisplay: flex;\n\talign-items: center;\n\tmargin-bottom: 12px;\n\n\tlabel {\n\t\tflex-grow: 1;\n\t}\n}\n\n.translate-actions {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\n\tbutton {\n\t\tmargin-left: 12px;\n\t}\n}\n'],sourceRoot:""}]);const a=s},44689:(t,e,i)=>{"use strict";i.d(e,{Z:()=>a});var r=i(87537),n=i.n(r),o=i(23645),s=i.n(o)()(n());s.push([t.id,"#read-only-editor{overflow:scroll}.thumbnailContainer #read-only-editor{width:100%}.thumbnailContainer #read-only-editor .ProseMirror{height:auto;margin:0 0 0 0;padding:0}","",{version:3,sources:["webpack://./src/components/Reader.vue"],names:[],mappings:"AAEA,kBACC,eAAA,CAGD,sCACC,UAAA,CAEA,mDACC,WAAA,CACA,cAAA,CACA,SAAA",sourcesContent:["\n\n#read-only-editor {\n\toverflow: scroll;\n}\n\n.thumbnailContainer #read-only-editor {\n\twidth: 100%;\n\n\t.ProseMirror {\n\t\theight: auto;\n\t\tmargin: 0 0 0 0;\n\t\tpadding: 0;\n\t}\n}\n\n"],sourceRoot:""}]);const a=s},36993:(t,e,i)=>{"use strict";i.d(e,{Z:()=>h});var r=i(87537),n=i.n(r),o=i(23645),s=i.n(o),a=i(61667),l=i.n(a),d=new URL(i(69521),i.b),c=s()(n()),A=l()(d);c.push([t.id,`div.ProseMirror{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:var(--default-font-size);outline:none;--table-color-border: var(--color-border);--table-color-heading: var(--color-text-maxcontrast);--table-color-heading-border: var(--color-border-dark);--table-color-background: var(--color-main-background);--table-color-background-hover: var(--color-primary-element-light);--table-border-radius: var(--border-radius)}div.ProseMirror :target{scroll-margin-top:50px}div.ProseMirror[contenteditable=true],div.ProseMirror[contenteditable=false],div.ProseMirror [contenteditable=true],div.ProseMirror [contenteditable=false]{width:100%;background-color:rgba(0,0,0,0);color:var(--color-main-text);opacity:1;-webkit-user-select:text;user-select:text;font-size:var(--default-font-size)}div.ProseMirror[contenteditable=true]:not(.collaboration-cursor__caret),div.ProseMirror[contenteditable=false]:not(.collaboration-cursor__caret),div.ProseMirror [contenteditable=true]:not(.collaboration-cursor__caret),div.ProseMirror [contenteditable=false]:not(.collaboration-cursor__caret){border:none !important}div.ProseMirror[contenteditable=true]:focus,div.ProseMirror[contenteditable=true]:focus-visible,div.ProseMirror[contenteditable=false]:focus,div.ProseMirror[contenteditable=false]:focus-visible,div.ProseMirror [contenteditable=true]:focus,div.ProseMirror [contenteditable=true]:focus-visible,div.ProseMirror [contenteditable=false]:focus,div.ProseMirror [contenteditable=false]:focus-visible{box-shadow:none !important}div.ProseMirror ul[data-type=taskList]{margin-left:1px}div.ProseMirror .checkbox-item{display:flex;align-items:start}div.ProseMirror .checkbox-item input[type=checkbox]{display:none}div.ProseMirror .checkbox-item:before{content:"";vertical-align:middle;margin:3px 6px 3px 2px;border:1px solid var(--color-text-maxcontrast);display:block;border-radius:var(--border-radius);height:14px;width:14px;box-shadow:none !important;background-position:center;cursor:pointer;left:9px}div.ProseMirror .checkbox-item.checked:before{background-image:url(${A});background-color:var(--color-primary-element);border-color:var(--color-primary-element)}div.ProseMirror .checkbox-item.checked>label>p{color:var(--color-text-maxcontrast);text-decoration:line-through}div.ProseMirror .checkbox-item label{display:block;flex-grow:1;max-width:calc(100% - 28px)}div.ProseMirror>*:first-child{margin-top:10px}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:0}div.ProseMirror a{color:var(--color-primary-element);text-decoration:underline;padding:.5em 0}div.ProseMirror p .paragraph-content{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:1.1em;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}div.ProseMirror h1{font-size:30px}div.ProseMirror h2{font-size:26px}div.ProseMirror h3{font-size:23px}div.ProseMirror h4{font-size:20px}div.ProseMirror h5{font-size:17px}div.ProseMirror h6{font-size:var(--default-font-size)}div.ProseMirror img{cursor:default;max-width:100%}div.ProseMirror hr{padding:2px 0;border:none;margin:2em 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 pre::before{content:attr(data-language);text-transform:uppercase;display:block;text-align:right;font-weight:bold;font-size:.6rem}div.ProseMirror pre code .hljs-comment,div.ProseMirror pre code .hljs-quote{color:#999}div.ProseMirror pre code .hljs-variable,div.ProseMirror pre code .hljs-template-variable,div.ProseMirror pre code .hljs-attribute,div.ProseMirror pre code .hljs-tag,div.ProseMirror pre code .hljs-name,div.ProseMirror pre code .hljs-regexp,div.ProseMirror pre code .hljs-link,div.ProseMirror pre code .hljs-selector-id,div.ProseMirror pre code .hljs-selector-class{color:#f2777a}div.ProseMirror pre code .hljs-number,div.ProseMirror pre code .hljs-meta,div.ProseMirror pre code .hljs-built_in,div.ProseMirror pre code .hljs-builtin-name,div.ProseMirror pre code .hljs-literal,div.ProseMirror pre code .hljs-type,div.ProseMirror pre code .hljs-params{color:#f99157}div.ProseMirror pre code .hljs-string,div.ProseMirror pre code .hljs-symbol,div.ProseMirror pre code .hljs-bullet{color:#9c9}div.ProseMirror pre code .hljs-title,div.ProseMirror pre code .hljs-section{color:#fc6}div.ProseMirror pre code .hljs-keyword,div.ProseMirror pre code .hljs-selector-tag{color:#69c}div.ProseMirror pre code .hljs-emphasis{font-style:italic}div.ProseMirror pre code .hljs-strong{font-weight:700}div.ProseMirror pre.frontmatter{margin-bottom:2em;border-left:4px solid var(--color-primary-element)}div.ProseMirror pre.frontmatter::before{display:block;content:attr(data-title);color:var(--color-text-maxcontrast);padding-bottom:.5em}div.ProseMirror p code{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}div.ProseMirror li{position:relative;padding-left:3px}div.ProseMirror li p .paragraph-content{margin-bottom:.5em}div.ProseMirror ul,div.ProseMirror ol{padding-left:10px;margin-left:10px;margin-bottom:1em}div.ProseMirror ul>li{list-style-type:disc}div.ProseMirror li ul>li{list-style-type:circle}div.ProseMirror li 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}div.ProseMirror table{border-spacing:0;width:calc(100% - 50px);table-layout:auto;white-space:normal;margin-bottom:1em}div.ProseMirror table+*{margin-top:1em}div.ProseMirror table td,div.ProseMirror table th{border:1px solid var(--table-color-border);border-left:0;vertical-align:top;max-width:100%}div.ProseMirror table td:first-child,div.ProseMirror table th:first-child{border-left:1px solid var(--table-color-border)}div.ProseMirror table td{padding:.5em .75em;border-top:0;color:var(--color-main-text)}div.ProseMirror table th{padding:0 0 0 .75em;font-weight:normal;border-bottom-color:var(--table-color-heading-border);color:var(--table-color-heading)}div.ProseMirror table th>div{display:flex}div.ProseMirror table tr{background-color:var(--table-color-background)}div.ProseMirror table tr:hover,div.ProseMirror table tr:active,div.ProseMirror table tr:focus{background-color:var(--table-color-background-hover)}div.ProseMirror table tr:first-child th:first-child{border-top-left-radius:var(--table-border-radius)}div.ProseMirror table tr:first-child th:last-child{border-top-right-radius:var(--table-border-radius)}div.ProseMirror table tr:last-child td:first-child{border-bottom-left-radius:var(--table-border-radius)}div.ProseMirror table tr:last-child td:last-child{border-bottom-right-radius:var(--table-border-radius)}.ProseMirror-focused .ProseMirror-gapcursor{display:block}.editor__content p.is-empty:first-child::before{content:attr(data-placeholder);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}.editor__content{tab-size:4}.tippy-content div{visibility:visible !important}@media print{@page{size:A4;margin:2.5cm 2cm 2cm 2.5cm}body{position:absolute;overflow:visible !important}#header{display:none !important}#content{display:block !important;position:relative !important;border-radius:0;margin:0;width:100%;height:fit-content}footer{display:none !important}#viewer[data-handler=text]{border:none;width:100% !important;position:absolute !important}#viewer[data-handler=text] .modal-header{display:none !important}#viewer[data-handler=text] .modal-container{top:0px;height:fit-content}.text-editor{height:fit-content !important}.text-editor .text-menubar{display:none !important}.text-editor .action-item{display:none !important}.text-editor .editor__content{max-width:100%}.text-editor .text-editor__wrapper{height:fit-content;position:unset}.text-editor .text-editor__wrapper div.ProseMirror{margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0}.text-editor .text-editor__wrapper div.ProseMirror h1,.text-editor .text-editor__wrapper div.ProseMirror h2,.text-editor .text-editor__wrapper div.ProseMirror h3,.text-editor .text-editor__wrapper div.ProseMirror h4,.text-editor .text-editor__wrapper div.ProseMirror h5{break-after:avoid;page-break-after:avoid}.text-editor .text-editor__wrapper div.ProseMirror .image,.text-editor .text-editor__wrapper div.ProseMirror img,.text-editor .text-editor__wrapper div.ProseMirror table{break-inside:avoid-page;page-break-inside:avoid;max-width:90% !important;margin:5vw auto 5vw 5% !important}.text-editor .text-editor__wrapper div.ProseMirror th{color:#000 !important;font-weight:bold !important;border-width:0 1px 2px 0 !important;border-color:gray !important;border-style:none solid solid none !important}.text-editor .text-editor__wrapper div.ProseMirror th:last-of-type{border-width:0 0 2px 0 !important}.text-editor .text-editor__wrapper div.ProseMirror td{border-style:none solid none none !important;border-width:1px !important;border-color:gray !important}.text-editor .text-editor__wrapper div.ProseMirror td:last-of-type{border:none !important}.menubar-placeholder,.text-editor--readonly-bar{display:none}.text-editor__content-wrapper.--show-outline{display:block}.text-editor__content-wrapper .editor--outline{width:auto;height:auto;overflow:unset;position:relative}.text-editor__content-wrapper .editor--outline__btn-close{display:none}.collaboration-cursor__caret,.collaboration-cursor__label{display:none}}`,"",{version:3,sources:["webpack://./src/css/prosemirror.scss","webpack://./src/css/print.scss"],names:[],mappings:"AAGA,gBACC,WAAA,CACA,iBAAA,CACA,oBAAA,CACA,oBAAA,CACA,mCAAA,CACA,2BAAA,CACA,0BAAA,CACA,gBAAA,CACA,kCAAA,CACA,YAAA,CA+QA,yCAAA,CACA,oDAAA,CACA,sDAAA,CACA,sDAAA,CACA,kEAAA,CACA,2CAAA,CAlRA,wBAEC,sBAAA,CAGD,4JAIC,UAAA,CACA,8BAAA,CACA,4BAAA,CACA,SAAA,CACA,wBAAA,CACA,gBAAA,CACA,kCAAA,CAEA,oSACC,sBAAA,CAGD,wYACC,0BAAA,CAIF,uCACC,eAAA,CAGD,+BACC,YAAA,CACA,iBAAA,CAEA,oDACC,YAAA,CAED,sCACC,UAAA,CACA,qBAAA,CACA,sBAAA,CACA,8CAAA,CACA,aAAA,CACA,kCAAA,CACA,WAAA,CACA,UAAA,CACA,0BAAA,CACA,0BAAA,CACA,cAAA,CACA,QAAA,CAGA,8CACC,wDAAA,CACA,6CAAA,CACA,yCAAA,CAED,+CACC,mCAAA,CACA,4BAAA,CAGF,qCACC,aAAA,CACA,WAAA,CACA,2BAAA,CAIF,8BACC,eAAA,CAIA,0LACC,YAAA,CAIF,kBACC,kCAAA,CACA,yBAAA,CACA,cAAA,CAGD,qCACC,iBAAA,CACA,gBAAA,CAGD,mBACC,iBAAA,CAGD,kHAMC,eAAA,CACA,iBAAA,CACA,eAAA,CACA,kBAAA,CACA,4BAAA,CAGD,mBACC,cAAA,CAGD,mBACC,cAAA,CAGD,mBACC,cAAA,CAGD,mBACC,cAAA,CAGD,mBACC,cAAA,CAGD,mBACC,kCAAA,CAGD,oBACC,cAAA,CACA,cAAA,CAGD,mBACC,aAAA,CACA,WAAA,CACA,YAAA,CACA,UAAA,CAGD,yBACC,UAAA,CACA,aAAA,CACA,UAAA,CACA,yCAAA,CACA,eAAA,CAGD,oBACC,oBAAA,CACA,6CAAA,CACA,kCAAA,CACA,iBAAA,CACA,iBAAA,CAEA,4BACC,2BAAA,CACA,wBAAA,CACA,aAAA,CACA,gBAAA,CACA,gBAAA,CACA,eAAA,CAGA,4EAEC,UAAA,CAED,4WASC,aAAA,CAED,+QAOC,aAAA,CAED,kHAGC,UAAA,CAED,4EAEC,UAAA,CAED,mFAEC,UAAA,CAED,wCACC,iBAAA,CAED,sCACC,eAAA,CAKH,gCACC,iBAAA,CACA,kDAAA,CAGD,wCACC,aAAA,CACA,wBAAA,CACA,mCAAA,CACA,mBAAA,CAGD,uBACC,6CAAA,CACA,kCAAA,CACA,iBAAA,CAGD,mBACC,iBAAA,CACA,gBAAA,CAEA,wCACC,kBAAA,CAIF,sCACC,iBAAA,CACA,gBAAA,CACA,iBAAA,CAGD,sBACC,oBAAA,CAID,yBACC,sBAAA,CAID,4BACC,sBAAA,CAGD,2BACC,gBAAA,CACA,kDAAA,CACA,mCAAA,CACA,aAAA,CACA,cAAA,CAWD,sBACC,gBAAA,CACA,uBAAA,CACA,iBAAA,CACA,kBAAA,CACA,iBAAA,CACA,wBACC,cAAA,CAID,kDACC,0CAAA,CACA,aAAA,CACA,kBAAA,CACA,cAAA,CACA,0EACC,+CAAA,CAGF,yBACC,kBAAA,CACA,YAAA,CACA,4BAAA,CAED,yBACC,mBAAA,CACA,kBAAA,CACA,qDAAA,CACA,gCAAA,CAEA,6BACC,YAAA,CAGF,yBACC,8CAAA,CACA,8FACC,oDAAA,CAKD,oDAAA,iDAAA,CACA,mDAAA,kDAAA,CAIA,mDAAA,oDAAA,CACA,kDAAA,qDAAA,CAOH,4CACC,aAAA,CAGD,gDACC,8BAAA,CACA,UAAA,CACA,mCAAA,CACA,mBAAA,CACA,QAAA,CAGD,iBACC,UAAA,CAGD,mBACC,6BAAA,CC5WD,aACC,MACC,OAAA,CACA,0BAAA,CAGD,KAEC,iBAAA,CACA,2BAAA,CAGD,QACC,uBAAA,CAGD,SACC,wBAAA,CACA,4BAAA,CACA,eAAA,CACA,QAAA,CACA,UAAA,CACA,kBAAA,CAGD,OACC,uBAAA,CAGD,2BAEC,WAAA,CACA,qBAAA,CAEA,4BAAA,CAEA,yCAEC,uBAAA,CAED,4CAEC,OAAA,CACA,kBAAA,CAIF,aACC,6BAAA,CAEA,2BAEC,uBAAA,CAED,0BAEC,uBAAA,CAED,8BAEC,cAAA,CAED,mCACC,kBAAA,CACA,cAAA,CAEA,mDACC,YAAA,CACA,eAAA,CACA,aAAA,CACA,gBAAA,CAEA,8QAEC,iBAAA,CACA,sBAAA,CAED,0KAEC,uBAAA,CACA,uBAAA,CAEA,wBAAA,CACA,iCAAA,CAID,sDACC,qBAAA,CACA,2BAAA,CACA,mCAAA,CACA,4BAAA,CACA,6CAAA,CAED,mEACC,iCAAA,CAGD,sDACC,4CAAA,CACA,2BAAA,CACA,4BAAA,CAED,mEACC,sBAAA,CAMJ,gDACC,YAAA,CAIA,6CACC,aAAA,CAGD,+CACC,UAAA,CACA,WAAA,CACA,cAAA,CACA,iBAAA,CAED,0DACC,YAAA,CAIF,0DAEC,YAAA,CAAA",sourcesContent:["@use 'sass:selector';\n\n/* Document rendering styles */\ndiv.ProseMirror {\n\theight: 100%;\n\tposition: relative;\n\tword-wrap: break-word;\n\twhite-space: pre-wrap;\n\t-webkit-font-variant-ligatures: none;\n\tfont-variant-ligatures: none;\n\tpadding: 4px 8px 200px 14px;\n\tline-height: 150%;\n\tfont-size: var(--default-font-size);\n\toutline: none;\n\n\t:target {\n\t\t// Menubar height: 44px + 3px bottom + 3px top padding\n\t\tscroll-margin-top: 50px;\n\t}\n\n\t&[contenteditable=true],\n\t&[contenteditable=false],\n\t[contenteditable=true],\n\t[contenteditable=false] {\n\t\twidth: 100%;\n\t\tbackground-color: transparent;\n\t\tcolor: var(--color-main-text);\n\t\topacity: 1;\n\t\t-webkit-user-select: text;\n\t\tuser-select: text;\n\t\tfont-size: var(--default-font-size);\n\n\t\t&:not(.collaboration-cursor__caret) {\n\t\t\tborder: none !important;\n\t\t}\n\n\t\t&:focus, &:focus-visible {\n\t\t\tbox-shadow: none !important;\n\t\t}\n\t}\n\n\tul[data-type=taskList] {\n\t\tmargin-left: 1px;\n\t}\n\n\t.checkbox-item {\n\t\tdisplay: flex;\n\t\talign-items: start;\n\n\t\tinput[type=checkbox] {\n\t\t\tdisplay: none;\n\t\t}\n\t\t&:before {\n\t\t\tcontent: '';\n\t\t\tvertical-align: middle;\n\t\t\tmargin: 3px 6px 3px 2px;\n\t\t\tborder: 1px solid var(--color-text-maxcontrast);\n\t\t\tdisplay: block;\n\t\t\tborder-radius: var(--border-radius);\n\t\t\theight: 14px;\n\t\t\twidth: 14px;\n\t\t\tbox-shadow: none !important;\n\t\t\tbackground-position: center;\n\t\t\tcursor: pointer;\n\t\t\tleft: 9px;\n\t\t}\n\t\t&.checked{\n\t\t\t&:before {\n\t\t\t\tbackground-image: url('../../img/checkbox-mark.svg');\n\t\t\t\tbackground-color: var(--color-primary-element);\n\t\t\t\tborder-color: var(--color-primary-element);\n\t\t\t}\n\t\t\t> label > p {\n\t\t\t\tcolor: var(--color-text-maxcontrast);\n\t\t\t\ttext-decoration: line-through;\n\t\t\t}\n\t\t}\n\t\tlabel {\n\t\t\tdisplay: block;\n\t\t\tflex-grow: 1;\n\t\t\tmax-width: calc(100% - 28px);\n\t\t}\n\t}\n\n\t> *:first-child {\n\t\tmargin-top: 10px;\n\t}\n\n\t> h1,h2,h3,h4,h5,h6 {\n\t\t&:first-child {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\n\ta {\n\t\tcolor: var(--color-primary-element);\n\t\ttext-decoration: underline;\n\t\tpadding: .5em 0;\n\t}\n\n\tp .paragraph-content {\n\t\tmargin-bottom: 1em;\n\t\tline-height: 150%;\n\t}\n\n\tem {\n\t\tfont-style: italic;\n\t}\n\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6 {\n\t\tfont-weight: 600;\n\t\tline-height: 1.1em;\n\t\tmargin-top: 24px;\n\t\tmargin-bottom: 12px;\n\t\tcolor: var(--color-main-text);\n\t}\n\n\th1 {\n\t\tfont-size: 30px;\n\t}\n\n\th2 {\n\t\tfont-size: 26px;\n\t}\n\n\th3 {\n\t\tfont-size: 23px;\n\t}\n\n\th4 {\n\t\tfont-size: 20px;\n\t}\n\n\th5 {\n\t\tfont-size: 17px;\n\t}\n\n\th6 {\n\t\tfont-size: var(--default-font-size);\n\t}\n\n\timg {\n\t\tcursor: default;\n\t\tmax-width: 100%;\n\t}\n\n\thr {\n\t\tpadding: 2px 0;\n\t\tborder: none;\n\t\tmargin: 2em 0;\n\t\twidth: 100%;\n\t}\n\n\thr:after {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\theight: 1px;\n\t\tbackground-color: var(--color-border-dark);\n\t\tline-height: 2px;\n\t}\n\n\tpre {\n\t\twhite-space: pre-wrap;\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: 1em 1.3em;\n\t\tmargin-bottom: 1em;\n\n\t\t&::before {\n\t\t\tcontent: attr(data-language);\n\t\t\ttext-transform: uppercase;\n\t\t\tdisplay: block;\n\t\t\ttext-align: right;\n\t\t\tfont-weight: bold;\n\t\t\tfont-size: 0.6rem;\n\t\t}\n\t\tcode {\n\t\t\t.hljs-comment,\n\t\t\t.hljs-quote {\n\t\t\t\tcolor: #999999;\n\t\t\t}\n\t\t\t.hljs-variable,\n\t\t\t.hljs-template-variable,\n\t\t\t.hljs-attribute,\n\t\t\t.hljs-tag,\n\t\t\t.hljs-name,\n\t\t\t.hljs-regexp,\n\t\t\t.hljs-link,\n\t\t\t.hljs-selector-id,\n\t\t\t.hljs-selector-class {\n\t\t\t\tcolor: #f2777a;\n\t\t\t}\n\t\t\t.hljs-number,\n\t\t\t.hljs-meta,\n\t\t\t.hljs-built_in,\n\t\t\t.hljs-builtin-name,\n\t\t\t.hljs-literal,\n\t\t\t.hljs-type,\n\t\t\t.hljs-params {\n\t\t\t\tcolor: #f99157;\n\t\t\t}\n\t\t\t.hljs-string,\n\t\t\t.hljs-symbol,\n\t\t\t.hljs-bullet {\n\t\t\t\tcolor: #99cc99;\n\t\t\t}\n\t\t\t.hljs-title,\n\t\t\t.hljs-section {\n\t\t\t\tcolor: #ffcc66;\n\t\t\t}\n\t\t\t.hljs-keyword,\n\t\t\t.hljs-selector-tag {\n\t\t\t\tcolor: #6699cc;\n\t\t\t}\n\t\t\t.hljs-emphasis {\n\t\t\t\tfont-style: italic;\n\t\t\t}\n\t\t\t.hljs-strong {\n\t\t\t\tfont-weight: 700;\n\t\t\t}\n\t\t}\n\t}\n\n\tpre.frontmatter {\n\t\tmargin-bottom: 2em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t}\n\n\tpre.frontmatter::before {\n\t\tdisplay: block;\n\t\tcontent: attr(data-title);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tpadding-bottom: 0.5em;\n\t}\n\n\tp code {\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: .1em .3em;\n\t}\n\n\tli {\n\t\tposition: relative;\n\t\tpadding-left: 3px;\n\n\t\tp .paragraph-content {\n\t\t\tmargin-bottom: 0.5em;\n\t\t}\n\t}\n\n\tul, ol {\n\t\tpadding-left: 10px;\n\t\tmargin-left: 10px;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tul > li {\n\t\tlist-style-type: disc;\n\t}\n\n\t// Second-level list entries\n\tli ul > li {\n\t\tlist-style-type: circle;\n\t}\n\n\t// Third-level and further down list entries\n\tli li ul > li {\n\t\tlist-style-type: square;\n\t}\n\n\tblockquote {\n\t\tpadding-left: 1em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tmargin-left: 0;\n\t\tmargin-right: 0;\n\t}\n\n\t// table variables\n\t--table-color-border: var(--color-border);\n\t--table-color-heading: var(--color-text-maxcontrast);\n\t--table-color-heading-border: var(--color-border-dark);\n\t--table-color-background: var(--color-main-background);\n\t--table-color-background-hover: var(--color-primary-element-light);\n\t--table-border-radius: var(--border-radius);\n\n\ttable {\n\t\tborder-spacing: 0;\n\t\twidth: calc(100% - 50px);\n\t\ttable-layout: auto;\n\t\twhite-space: normal; // force text to wrapping\n\t\tmargin-bottom: 1em;\n\t\t&+ * {\n\t\t\tmargin-top: 1em;\n\t\t}\n\n\n\t\ttd, th {\n\t\t\tborder: 1px solid var(--table-color-border);\n\t\t\tborder-left: 0;\n\t\t\tvertical-align: top;\n\t\t\tmax-width: 100%;\n\t\t\t&:first-child {\n\t\t\t\tborder-left: 1px solid var(--table-color-border);\n\t\t\t}\n\t\t}\n\t\ttd {\n\t\t\tpadding: 0.5em 0.75em;\n\t\t\tborder-top: 0;\n\t\t\tcolor: var(--color-main-text);\n\t\t}\n\t\tth {\n\t\t\tpadding: 0 0 0 0.75em;\n\t\t\tfont-weight: normal;\n\t\t\tborder-bottom-color: var(--table-color-heading-border);\n\t\t\tcolor: var(--table-color-heading);\n\n\t\t\t& > div {\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t}\n\t\ttr {\n\t\t\tbackground-color: var(--table-color-background);\n\t\t\t&:hover, &:active, &:focus {\n\t\t\t\tbackground-color: var(--table-color-background-hover);\n\t\t\t}\n\t\t}\n\n\t\ttr:first-child {\n\t\t\tth:first-child { border-top-left-radius: var(--table-border-radius); }\n\t\t\tth:last-child { border-top-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t\ttr:last-child {\n\t\t\ttd:first-child { border-bottom-left-radius: var(--table-border-radius); }\n\t\t\ttd:last-child { border-bottom-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t}\n\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n\tdisplay: block;\n}\n\n.editor__content p.is-empty:first-child::before {\n\tcontent: attr(data-placeholder);\n\tfloat: left;\n\tcolor: var(--color-text-maxcontrast);\n\tpointer-events: none;\n\theight: 0;\n}\n\n.editor__content {\n\ttab-size: 4;\n}\n\n.tippy-content div {\n\tvisibility: visible !important;\n}\n","@media print {\n\t@page {\n\t\tsize: A4;\n\t\tmargin: 2.5cm 2cm 2cm 2.5cm;\n\t}\n\n\tbody {\n\t\t// position: fixed does not support scrolling and as such only prints one page\n\t\tposition: absolute;\n\t\toverflow: visible!important;\n\t}\n\n\t#header {\n\t\tdisplay: none!important;\n\t}\n\n\t#content {\n\t\tdisplay: block!important;\n\t\tposition: relative!important;\n\t\tborder-radius: 0;\n\t\tmargin: 0;\n\t\twidth: 100%;\n\t\theight: fit-content;\n\t}\n\n\tfooter {\n\t\tdisplay: none!important;\n\t}\n\n\t#viewer[data-handler='text'] {\n\t\t// Hide top border\n\t\tborder: none;\n\t\twidth: 100%!important;\n\t\t// NcModal uses fixed, which will be cropped when printed\n\t\tposition: absolute!important;\n\n\t\t.modal-header {\n\t\t\t// Hide modal header (close button)\n\t\t\tdisplay: none!important;\n\t\t}\n\t\t.modal-container {\n\t\t\t// Make sure top aligned as we hided the menubar */\n\t\t\ttop: 0px;\n\t\t\theight: fit-content;\n\t\t}\n\t}\n\n\t.text-editor {\n\t\theight: fit-content!important;\n\n\t\t.text-menubar {\n\t\t\t// Hide menu bar\n\t\t\tdisplay: none!important;\n\t\t}\n\t\t.action-item {\n\t\t\t// Hide table settings\n\t\t\tdisplay: none!important;\n\t\t}\n\t\t.editor__content {\n\t\t\t// Margins set by page rule\n\t\t\tmax-width: 100%;\n\t\t}\n\t\t.text-editor__wrapper {\n\t\t\theight: fit-content;\n\t\t\tposition: unset;\n\n\t\t\tdiv.ProseMirror {\n\t\t\t\tmargin-top: 0;\n\t\t\t\tmargin-bottom: 0;\n\t\t\t\tpadding-top: 0;\n\t\t\t\tpadding-bottom: 0;\n\n\t\t\t\th1, h2, h3, h4, h5 {\n\t\t\t\t\t// orphaned headlines are ugly\n\t\t\t\t\tbreak-after: avoid;\n\t\t\t\t\tpage-break-after: avoid;\n\t\t\t\t}\n\t\t\t\t.image, img, table {\n\t\t\t\t\t// try no page breaks within tables or images\n\t\t\t\t\tbreak-inside: avoid-page;\n\t\t\t\t\tpage-break-inside: avoid;\n\t\t\t\t\t// Some more indention\n\t\t\t\t\tmax-width: 90%!important;\n\t\t\t\t\tmargin: 5vw auto 5vw 5%!important;\n\t\t\t\t}\n\n\t\t\t\t// Add some borders below header and between columns\n\t\t\t\tth {\n\t\t\t\t\tcolor: black!important;\n\t\t\t\t\tfont-weight: bold!important;\n\t\t\t\t\tborder-width: 0 1px 2px 0!important;\n\t\t\t\t\tborder-color: gray!important;\n\t\t\t\t\tborder-style: none solid solid none!important;\n\t\t\t\t}\n\t\t\t\tth:last-of-type {\n\t\t\t\t\tborder-width: 0 0 2px 0!important;\n\t\t\t\t}\n\n\t\t\t\ttd {\n\t\t\t\t\tborder-style: none solid none none!important;\n\t\t\t\t\tborder-width: 1px!important;\n\t\t\t\t\tborder-color: gray!important;\n\t\t\t\t}\n\t\t\t\ttd:last-of-type {\n\t\t\t\t\tborder: none!important;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t.menubar-placeholder, .text-editor--readonly-bar {\n\t\tdisplay: none;\n\t}\n\n\t.text-editor__content-wrapper {\n\t\t&.--show-outline {\n\t\t\tdisplay: block;\n\t\t}\n\n\t\t.editor--outline {\n\t\t\twidth: auto;\n\t\t\theight: auto;\n\t\t\toverflow: unset;\n\t\t\tposition: relative;\n\t\t}\n\t\t.editor--outline__btn-close {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t.collaboration-cursor__caret,\n\t.collaboration-cursor__label {\n\t\tdisplay: none;\n\t}\n}\n"],sourceRoot:""}]);const h=c},78968:(t,e,i)=>{"use strict";i.d(e,{Z:()=>a});var r=i(87537),n=i.n(r),o=i(23645),s=i.n(o)()(n());s.push([t.id,".placeholder-main[data-v-5a5c7130]{max-width:670px;position:relative;margin-bottom:auto;z-index:1}.placeholder-main-text[data-v-5a5c7130]{margin:50px auto 0;width:100%}#rich-workspace .placeholder-main-text[data-v-5a5c7130]{margin:40px 0 0}.placeholder-list[data-v-5a5c7130]{position:absolute;transform:translateZ(0)}.placeholder-list-regular[data-v-5a5c7130]{animation:pulse-5a5c7130 2s;animation-iteration-count:infinite;animation-timing-function:linear}.placeholder-list-reverse[data-v-5a5c7130]{animation:pulse-reverse-5a5c7130 2s;animation-iteration-count:infinite;animation-timing-function:linear}.placeholder-gradient[data-v-5a5c7130]{position:fixed;height:0;width:0;z-index:-1}.text-placeholder[data-v-5a5c7130]{width:min(670px,100vw);height:6em;margin:8px auto;padding:4px 8px 0 14px;display:block}.text-placeholder-line-one[data-v-5a5c7130],.text-placeholder-line-two[data-v-5a5c7130],.text-placeholder-line-three[data-v-5a5c7130],.text-placeholder-line-four[data-v-5a5c7130]{width:670px;height:1em}.text-placeholder-line-one[data-v-5a5c7130]{y:.33em;width:175px}.text-placeholder-line-two[data-v-5a5c7130]{y:1.66em}.text-placeholder-line-three[data-v-5a5c7130]{y:3em}.text-placeholder-line-four[data-v-5a5c7130]{y:4.33em}@keyframes pulse-5a5c7130{0%{opacity:1}50%{opacity:0}100%{opacity:1}}@keyframes pulse-reverse-5a5c7130{0%{opacity:0}50%{opacity:1}100%{opacity:0}}","",{version:3,sources:["webpack://./src/components/SkeletonLoading.vue"],names:[],mappings:"AAIA,mCACC,eAHyB,CAIzB,iBAAA,CACA,kBAAA,CACA,SAAA,CAEA,wCACC,kBAAA,CACA,UAAA,CAIF,wDACC,eAAA,CAGD,mCACC,iBAAA,CACA,uBAAA,CAGD,2CACC,2BAAA,CACA,kCAAA,CACA,gCAAA,CAGD,2CACC,mCAAA,CACA,kCAAA,CACA,gCAAA,CAGD,uCACC,cAAA,CACA,QAAA,CACA,OAAA,CACA,UAAA,CAGD,mCACC,sBAAA,CACA,UAAA,CACA,eAAA,CACA,sBAAA,CACA,aAAA,CAEA,mLAIC,WAAA,CACA,UAAA,CAGD,4CACC,OAAA,CACA,WAAA,CAGD,4CACC,QAAA,CAGD,8CACC,KAAA,CAGD,6CACC,QAAA,CAIF,0BACC,GACC,SAAA,CAED,IACC,SAAA,CAED,KACC,SAAA,CAAA,CAIF,kCACC,GACC,SAAA,CAED,IACC,SAAA,CAED,KACC,SAAA,CAAA",sourcesContent:["\n$margin: 8px;\n$messages-list-max-width: 670px;\n\n.placeholder-main {\n\tmax-width: $messages-list-max-width;\n\tposition: relative;\n\tmargin-bottom: auto;\n\tz-index: 1;\n\n\t&-text {\n\t\tmargin: 50px auto 0;\n\t\twidth: 100%;\n\t}\n}\n\n#rich-workspace .placeholder-main-text {\n\tmargin: 40px 0 0;\n}\n\n.placeholder-list {\n\tposition: absolute;\n\ttransform: translateZ(0);\n}\n\n.placeholder-list-regular {\n\tanimation: pulse 2s;\n\tanimation-iteration-count: infinite;\n\tanimation-timing-function: linear;\n}\n\n.placeholder-list-reverse {\n\tanimation: pulse-reverse 2s;\n\tanimation-iteration-count: infinite;\n\tanimation-timing-function: linear;\n}\n\n.placeholder-gradient {\n\tposition: fixed;\n\theight: 0;\n\twidth: 0;\n\tz-index: -1;\n}\n\n.text-placeholder {\n\twidth: min($messages-list-max-width, 100vw);\n\theight: 6em;\n\tmargin: $margin auto;\n\tpadding: 4px 8px 0 14px;\n\tdisplay: block;\n\n\t&-line-one,\n\t&-line-two,\n\t&-line-three,\n\t&-line-four {\n\t\twidth: 670px;\n\t\theight: 1em;\n\t}\n\n\t&-line-one {\n\t\ty: 0.33em;\n\t\twidth: 175px;\n\t}\n\n\t&-line-two {\n\t\ty: 1.66em;\n\t}\n\n\t&-line-three {\n\t\ty: 3em;\n\t}\n\n\t&-line-four {\n\t\ty: 4.33em;\n\t}\n}\n\n@keyframes pulse {\n\t0% {\n\t\topacity: 1;\n\t}\n\t50% {\n\t\topacity: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t}\n}\n\n@keyframes pulse-reverse {\n\t0% {\n\t\topacity: 0;\n\t}\n\t50% {\n\t\topacity: 1;\n\t}\n\t100% {\n\t\topacity: 0;\n\t}\n}\n\n"],sourceRoot:""}]);const a=s},40189:(t,e,i)=>{"use strict";i.d(e,{Z:()=>C});var r=i(87537),n=i.n(r),o=i(23645),s=i.n(o),a=i(61667),l=i.n(a),d=new URL(i(95599),i.b),c=new URL(i(27783),i.b),A=new URL(i(43208),i.b),h=s()(n()),p=l()(d),g=l()(c),u=l()(A);h.push([t.id,`.autocomplete-result[data-v-2145738d]{display:flex;height:30px;padding:10px}.highlight .autocomplete-result[data-v-2145738d]{color:var(--color-main-text);background:var(--color-primary-element-light)}.highlight .autocomplete-result[data-v-2145738d],.highlight .autocomplete-result *[data-v-2145738d]{cursor:pointer}.autocomplete-result__icon[data-v-2145738d]{position:relative;flex:0 0 30px;width:30px;min-width:30px;height:30px;border-radius:30px;background-color:var(--color-background-darker);background-repeat:no-repeat;background-position:center;background-size:10px}.autocomplete-result__icon--with-avatar[data-v-2145738d]{color:inherit;background-size:cover}.autocomplete-result__status[data-v-2145738d]{position:absolute;right:-4px;bottom:-4px;box-sizing:border-box;width:18px;height:18px;border:2px solid var(--color-main-background);border-radius:50%;background-color:var(--color-main-background);font-size:var(--default-font-size);line-height:15px;background-repeat:no-repeat;background-size:16px;background-position:center}.autocomplete-result__status--online[data-v-2145738d]{background-image:url(${p})}.autocomplete-result__status--dnd[data-v-2145738d]{background-image:url(${g});background-color:#fff}.autocomplete-result__status--away[data-v-2145738d]{background-image:url(${u})}.autocomplete-result__status--icon[data-v-2145738d]{border:none;background-color:rgba(0,0,0,0)}.autocomplete-result__content[data-v-2145738d]{display:flex;flex:1 1 100%;flex-direction:column;justify-content:center;min-width:0;padding-left:10px}.autocomplete-result__title[data-v-2145738d],.autocomplete-result__subline[data-v-2145738d]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.autocomplete-result__subline[data-v-2145738d]{color:var(--color-text-lighter)}`,"",{version:3,sources:["webpack://./src/components/Suggestion/Mention/AutoCompleteResult.vue"],names:[],mappings:"AAIA,sCACC,YAAA,CACA,WALgB,CAMhB,YALsB,CAOtB,iDACC,4BAAA,CACA,6CAAA,CACA,oGACC,cAAA,CAIF,4CACC,iBAAA,CACA,aAAA,CACA,UAnBe,CAoBf,cApBe,CAqBf,WArBe,CAsBf,kBAtBe,CAuBf,+CAAA,CACA,2BAAA,CACA,0BAAA,CACA,oBAAA,CACA,yDACC,aAAA,CACA,qBAAA,CAIF,8CACC,iBAAA,CACA,UAAA,CACA,WAAA,CACA,qBAAA,CACA,UAAA,CACA,WAAA,CACA,6CAAA,CACA,iBAAA,CACA,6CAAA,CACA,kCAAA,CACA,gBAAA,CACA,2BAAA,CACA,oBAAA,CACA,0BAAA,CAEA,sDACC,wDAAA,CAED,mDACC,wDAAA,CACA,qBAAA,CAED,oDACC,wDAAA,CAED,oDACC,WAAA,CACA,8BAAA,CAIF,+CACC,YAAA,CACA,aAAA,CACA,qBAAA,CACA,sBAAA,CACA,WAAA,CACA,iBAtEqB,CAyEtB,4FAEC,kBAAA,CACA,eAAA,CACA,sBAAA,CAGD,+CACC,+BAAA",sourcesContent:["\n$clickable-area: 30px;\n$autocomplete-padding: 10px;\n\n.autocomplete-result {\n\tdisplay: flex;\n\theight: $clickable-area;\n\tpadding: $autocomplete-padding;\n\n\t.highlight & {\n\t\tcolor: var(--color-main-text);\n\t\tbackground: var(--color-primary-element-light);\n\t\t&, * {\n\t\t\tcursor: pointer;\n\t\t}\n\t}\n\n\t&__icon {\n\t\tposition: relative;\n\t\tflex: 0 0 $clickable-area;\n\t\twidth: $clickable-area;\n\t\tmin-width: $clickable-area;\n\t\theight: $clickable-area;\n\t\tborder-radius: $clickable-area;\n\t\tbackground-color: var(--color-background-darker);\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-position: center;\n\t\tbackground-size: $clickable-area - 2 * $autocomplete-padding;\n\t\t&--with-avatar {\n\t\t\tcolor: inherit;\n\t\t\tbackground-size: cover;\n\t\t}\n\t}\n\n\t&__status {\n\t\tposition: absolute;\n\t\tright: -4px;\n\t\tbottom: -4px;\n\t\tbox-sizing: border-box;\n\t\twidth: 18px;\n\t\theight: 18px;\n\t\tborder: 2px solid var(--color-main-background);\n\t\tborder-radius: 50%;\n\t\tbackground-color: var(--color-main-background);\n\t\tfont-size: var(--default-font-size);\n\t\tline-height: 15px;\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-size: 16px;\n\t\tbackground-position: center;\n\n\t\t&--online{\n\t\t\tbackground-image: url('../../../assets/status-icons/user-status-online.svg');\n\t\t}\n\t\t&--dnd{\n\t\t\tbackground-image: url('../../../assets/status-icons/user-status-dnd.svg');\n\t\t\tbackground-color: #ffffff;\n\t\t}\n\t\t&--away{\n\t\t\tbackground-image: url('../../../assets/status-icons/user-status-away.svg');\n\t\t}\n\t\t&--icon {\n\t\t\tborder: none;\n\t\t\tbackground-color: transparent;\n\t\t}\n\t}\n\n\t&__content {\n\t\tdisplay: flex;\n\t\tflex: 1 1 100%;\n\t\tflex-direction: column;\n\t\tjustify-content: center;\n\t\tmin-width: 0;\n\t\tpadding-left: $autocomplete-padding;\n\t}\n\n\t&__title,\n\t&__subline {\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n\n\t&__subline {\n\t\tcolor: var(--color-text-lighter);\n\t}\n}\n\n"],sourceRoot:""}]);const C=h},18628:(t,e,i)=>{"use strict";i.d(e,{Z:()=>a});var r=i(87537),n=i.n(r),o=i(23645),s=i.n(o)()(n());s.push([t.id,".items{position:relative;border-radius:var(--border-radius);background:var(--color-main-background);overflow:hidden;font-size:.9rem;box-shadow:0 1px 5px var(--color-box-shadow);min-width:250px}.item-empty{padding:4px 8px;opacity:.8}","",{version:3,sources:["webpack://./src/components/Suggestion/Mention/MentionList.vue"],names:[],mappings:"AACA,OACC,iBAAA,CACA,kCAAA,CACA,uCAAA,CACA,eAAA,CACA,eAAA,CACA,4CAAA,CACA,eAAA,CAGD,YACC,eAAA,CACA,UAAA",sourcesContent:["\n.items {\n\tposition: relative;\n\tborder-radius: var(--border-radius);\n\tbackground: var(--color-main-background);\n\toverflow: hidden;\n\tfont-size: 0.9rem;\n\tbox-shadow: 0 1px 5px var(--color-box-shadow);\n\tmin-width: 250px;\n}\n\n.item-empty {\n\tpadding: 4px 8px;\n\topacity: 0.8;\n}\n"],sourceRoot:""}]);const a=s},49106:(t,e,i)=>{"use strict";i.d(e,{Z:()=>a});var r=i(87537),n=i.n(r),o=i(23645),s=i.n(o)()(n());s.push([t.id,"body{position:fixed;background-color:var(--color-main-background)}#content[class=app-public]{margin:0;margin-top:0}","",{version:3,sources:["webpack://./src/views/DirectEditing.vue"],names:[],mappings:"AACA,KACC,cAAA,CACA,6CAAA,CAGD,2BACC,QAAA,CACA,YAAA",sourcesContent:["\nbody {\n\tposition: fixed;\n\tbackground-color: var(--color-main-background);\n}\n\n#content[class=app-public] {\n\tmargin: 0;\n\tmargin-top: 0;\n}\n"],sourceRoot:""}]);const a="text"==i.j?s:null},95669:(t,e,i)=>{"use strict";i.d(e,{Z:()=>a});var r=i(87537),n=i.n(r),o=i(23645),s=i.n(o)()(n());s.push([t.id,"#direct-editor[data-v-d43914dc]{width:100%;height:100%;position:fixed;overflow:auto}#direct-editor[data-v-d43914dc] .text-editor{height:100%;top:0}#direct-editor[data-v-d43914dc] .text-editor__wrapper div.ProseMirror{margin-top:0}pre[data-v-d43914dc]{width:100%;max-width:700px;margin:auto;background-color:var(--color-background-dark)}button[data-v-d43914dc]{width:44px;height:44px;margin:0;background-size:16px;border:0;background-color:rgba(0,0,0,0);opacity:.5;color:var(--color-main-text);background-position:center center;vertical-align:top}button[data-v-d43914dc]:hover,button[data-v-d43914dc]:focus,button[data-v-d43914dc]:active{background-color:var(--color-background-dark)}button.is-active[data-v-d43914dc],button[data-v-d43914dc]:hover,button[data-v-d43914dc]:focus{opacity:1}","",{version:3,sources:["webpack://./src/views/DirectEditing.vue"],names:[],mappings:"AACA,gCACC,UAAA,CACA,WAAA,CACA,cAAA,CACA,aAAA,CAEA,6CACC,WAAA,CACA,KAAA,CAED,sEACC,YAAA,CAIF,qBACC,UAAA,CACA,eAAA,CACA,WAAA,CACA,6CAAA,CAGD,wBACC,UAAA,CACA,WAAA,CACA,QAAA,CACA,oBAAA,CACA,QAAA,CACA,8BAAA,CACA,UAAA,CACA,4BAAA,CACA,iCAAA,CACA,kBAAA,CACA,2FACC,6CAAA,CAED,8FAGC,SAAA",sourcesContent:["\n#direct-editor {\n\twidth: 100%;\n\theight: 100%;\n\tposition: fixed;\n\toverflow: auto;\n\n\t&:deep(.text-editor) {\n\t\theight: 100%;\n\t\ttop: 0;\n\t}\n\t&:deep(.text-editor__wrapper div.ProseMirror) {\n\t\tmargin-top: 0;\n\t}\n}\n\npre {\n\twidth: 100%;\n\tmax-width: 700px;\n\tmargin: auto;\n\tbackground-color: var(--color-background-dark);\n}\n\nbutton {\n\twidth: 44px;\n\theight: 44px;\n\tmargin: 0;\n\tbackground-size: 16px;\n\tborder: 0;\n\tbackground-color: transparent;\n\topacity: .5;\n\tcolor: var(--color-main-text);\n\tbackground-position: center center;\n\tvertical-align: top;\n\t&:hover, &:focus, &:active {\n\t\tbackground-color: var(--color-background-dark);\n\t}\n\t&.is-active,\n\t&:hover,\n\t&:focus {\n\t\topacity: 1;\n\t}\n}\n"],sourceRoot:""}]);const a="text"==i.j?s:null},21058:(t,e,i)=>{"use strict";i.d(e,{Z:()=>a});var r=i(87537),n=i.n(r),o=i(23645),s=i.n(o)()(n());s.push([t.id,"\n.text-readonly-bar[data-v-27a921ca] {\n\tdisplay: flex;\n}\n.text-readonly-bar__entries[data-v-27a921ca] {\n\tdisplay: flex;\n\tflex-grow: 1;\n}\n","",{version:3,sources:["webpack://./src/components/Menu/ReadonlyBar.vue"],names:[],mappings:";AA4CA;CACA,aAAA;AACA;AACA;CACA,aAAA;CACA,YAAA;AACA",sourcesContent:['<template>\n\t<div data-text-el="readonly-bar" class="text-readonly-bar">\n\t\t<div ref="menubar"\n\t\t\trole="toolbar"\n\t\t\tclass="text-readonly-bar__entries"\n\t\t\t:aria-label="t(\'text\', \'Editor actions\')">\n\t\t\t<component :is="actionEntry.component ? actionEntry.component : (actionEntry.children ? \'ActionList\' : \'ActionSingle\')"\n\t\t\t\tv-for="(actionEntry, index) in visibleEntries"\n\t\t\t\tref="menuEntries"\n\t\t\t\t:key="actionEntry.key"\n\t\t\t\t:action-entry="actionEntry"\n\t\t\t\t:can-be-focussed="activeMenuEntry === index"\n\t\t\t\t@disabled="disableMenuEntry(actionEntry.key, $event)" />\n\t\t</div>\n\t\t<div class="text-menubar__slot">\n\t\t\t<slot />\n\t\t</div>\n\t</div>\n</template>\n\n<script>\nimport { defineComponent } from \'vue\'\nimport { ReadonlyEntries as entries } from \'./entries.js\'\n\nimport ActionList from \'./ActionList.vue\'\nimport ActionSingle from \'./ActionSingle.vue\'\nimport ToolBarLogic from \'./ToolBarLogic.js\'\n\nexport default defineComponent({\n\tname: \'ReadonlyBar\',\n\tcomponents: {\n\t\tActionList,\n\t\tActionSingle,\n\t},\n\textends: ToolBarLogic,\n\tdata() {\n\t\treturn {\n\t\t\tentries,\n\t\t}\n\t},\n})\n<\/script>\n\n<style scoped>\n.text-readonly-bar {\n\tdisplay: flex;\n}\n.text-readonly-bar__entries {\n\tdisplay: flex;\n\tflex-grow: 1;\n}\n</style>\n'],sourceRoot:""}]);const a=s},63497:(t,e,i)=>{var r={"./1c":[30908,"highlight/1c"],"./1c.js":[30908,"highlight/1c"],"./1c.js.js":[9856,"highlight/1c-js-js"],"./abnf":[62853,"highlight/abnf"],"./abnf.js":[62853,"highlight/abnf"],"./abnf.js.js":[5116,"highlight/abnf-js-js"],"./accesslog":[35976,"highlight/accesslog"],"./accesslog.js":[35976,"highlight/accesslog"],"./accesslog.js.js":[36461,"highlight/accesslog-js-js"],"./actionscript":[55505,"highlight/actionscript"],"./actionscript.js":[55505,"highlight/actionscript"],"./actionscript.js.js":[78197,"highlight/actionscript-js-js"],"./ada":[40059,"highlight/ada"],"./ada.js":[40059,"highlight/ada"],"./ada.js.js":[16880,"highlight/ada-js-js"],"./angelscript":[72921,"highlight/angelscript"],"./angelscript.js":[72921,"highlight/angelscript"],"./angelscript.js.js":[62053,"highlight/angelscript-js-js"],"./apache":[4998,"highlight/apache"],"./apache.js":[4998,"highlight/apache"],"./apache.js.js":[69773,"highlight/apache-js-js"],"./applescript":[99733,"highlight/applescript"],"./applescript.js":[99733,"highlight/applescript"],"./applescript.js.js":[56323,"highlight/applescript-js-js"],"./arcade":[70149,"highlight/arcade"],"./arcade.js":[70149,"highlight/arcade"],"./arcade.js.js":[99434,"highlight/arcade-js-js"],"./arduino":[89860,"highlight/arduino"],"./arduino.js":[89860,"highlight/arduino"],"./arduino.js.js":[1345,"highlight/arduino-js-js"],"./armasm":[93138,"highlight/armasm"],"./armasm.js":[93138,"highlight/armasm"],"./armasm.js.js":[96358,"highlight/armasm-js-js"],"./asciidoc":[88699,"highlight/asciidoc"],"./asciidoc.js":[88699,"highlight/asciidoc"],"./asciidoc.js.js":[5301,"highlight/asciidoc-js-js"],"./aspectj":[59950,"highlight/aspectj"],"./aspectj.js":[59950,"highlight/aspectj"],"./aspectj.js.js":[79219,"highlight/aspectj-js-js"],"./autohotkey":[31599,"highlight/autohotkey"],"./autohotkey.js":[31599,"highlight/autohotkey"],"./autohotkey.js.js":[54598,"highlight/autohotkey-js-js"],"./autoit":[1892,"highlight/autoit"],"./autoit.js":[1892,"highlight/autoit"],"./autoit.js.js":[81923,"highlight/autoit-js-js"],"./avrasm":[53105,"highlight/avrasm"],"./avrasm.js":[53105,"highlight/avrasm"],"./avrasm.js.js":[66522,"highlight/avrasm-js-js"],"./awk":[44868,"highlight/awk"],"./awk.js":[44868,"highlight/awk"],"./awk.js.js":[36775,"highlight/awk-js-js"],"./axapta":[52059,"highlight/axapta"],"./axapta.js":[52059,"highlight/axapta"],"./axapta.js.js":[5432,"highlight/axapta-js-js"],"./bash":[98780,"highlight/bash"],"./bash.js":[98780,"highlight/bash"],"./bash.js.js":[13574,"highlight/bash-js-js"],"./basic":[80995,"highlight/basic"],"./basic.js":[80995,"highlight/basic"],"./basic.js.js":[18080,"highlight/basic-js-js"],"./bnf":[87061,"highlight/bnf"],"./bnf.js":[87061,"highlight/bnf"],"./bnf.js.js":[14060,"highlight/bnf-js-js"],"./brainfuck":[16380,"highlight/brainfuck"],"./brainfuck.js":[16380,"highlight/brainfuck"],"./brainfuck.js.js":[37195,"highlight/brainfuck-js-js"],"./c":[80612,"highlight/c"],"./c.js":[80612,"highlight/c"],"./c.js.js":[96991,"highlight/c-js-js"],"./cal":[15762,"highlight/cal"],"./cal.js":[15762,"highlight/cal"],"./cal.js.js":[65197,"highlight/cal-js-js"],"./capnproto":[90614,"highlight/capnproto"],"./capnproto.js":[90614,"highlight/capnproto"],"./capnproto.js.js":[79955,"highlight/capnproto-js-js"],"./ceylon":[33796,"highlight/ceylon"],"./ceylon.js":[33796,"highlight/ceylon"],"./ceylon.js.js":[1263,"highlight/ceylon-js-js"],"./clean":[52222,"highlight/clean"],"./clean.js":[52222,"highlight/clean"],"./clean.js.js":[45443,"highlight/clean-js-js"],"./clojure":[92177,"highlight/clojure"],"./clojure-repl":[42012,"highlight/clojure-repl"],"./clojure-repl.js":[42012,"highlight/clojure-repl"],"./clojure-repl.js.js":[21487,"highlight/clojure-repl-js-js"],"./clojure.js":[92177,"highlight/clojure"],"./clojure.js.js":[73864,"highlight/clojure-js-js"],"./cmake":[35849,"highlight/cmake"],"./cmake.js":[35849,"highlight/cmake"],"./cmake.js.js":[30520,"highlight/cmake-js-js"],"./coffeescript":[95437,"highlight/coffeescript"],"./coffeescript.js":[95437,"highlight/coffeescript"],"./coffeescript.js.js":[1493,"highlight/coffeescript-js-js"],"./coq":[99087,"highlight/coq"],"./coq.js":[99087,"highlight/coq"],"./coq.js.js":[36768,"highlight/coq-js-js"],"./cos":[72569,"highlight/cos"],"./cos.js":[72569,"highlight/cos"],"./cos.js.js":[2210,"highlight/cos-js-js"],"./cpp":[6248,"highlight/cpp"],"./cpp.js":[6248,"highlight/cpp"],"./cpp.js.js":[16365,"highlight/cpp-js-js"],"./crmsh":[77740,"highlight/crmsh"],"./crmsh.js":[77740,"highlight/crmsh"],"./crmsh.js.js":[31965,"highlight/crmsh-js-js"],"./crystal":[83147,"highlight/crystal"],"./crystal.js":[83147,"highlight/crystal"],"./crystal.js.js":[63882,"highlight/crystal-js-js"],"./csharp":[63707,"highlight/csharp"],"./csharp.js":[63707,"highlight/csharp"],"./csharp.js.js":[29676,"highlight/csharp-js-js"],"./csp":[89534,"highlight/csp"],"./csp.js":[89534,"highlight/csp"],"./csp.js.js":[82162,"highlight/csp-js-js"],"./css":[15064,"highlight/css"],"./css.js":[15064,"highlight/css"],"./css.js.js":[45429,"highlight/css-js-js"],"./d":[118,"highlight/d"],"./d.js":[118,"highlight/d"],"./d.js.js":[51484,"highlight/d-js-js"],"./dart":[26642,"highlight/dart"],"./dart.js":[26642,"highlight/dart"],"./dart.js.js":[86573,"highlight/dart-js-js"],"./delphi":[7762,"highlight/delphi"],"./delphi.js":[7762,"highlight/delphi"],"./delphi.js.js":[71839,"highlight/delphi-js-js"],"./diff":[87731,"highlight/diff"],"./diff.js":[87731,"highlight/diff"],"./diff.js.js":[11612,"highlight/diff-js-js"],"./django":[33189,"highlight/django"],"./django.js":[33189,"highlight/django"],"./django.js.js":[94723,"highlight/django-js-js"],"./dns":[31344,"highlight/dns"],"./dns.js":[31344,"highlight/dns"],"./dns.js.js":[37854,"highlight/dns-js-js"],"./dockerfile":[57360,"highlight/dockerfile"],"./dockerfile.js":[57360,"highlight/dockerfile"],"./dockerfile.js.js":[33866,"highlight/dockerfile-js-js"],"./dos":[20605,"highlight/dos"],"./dos.js":[20605,"highlight/dos"],"./dos.js.js":[5378,"highlight/dos-js-js"],"./dsconfig":[7522,"highlight/dsconfig"],"./dsconfig.js":[7522,"highlight/dsconfig"],"./dsconfig.js.js":[63264,"highlight/dsconfig-js-js"],"./dts":[11729,"highlight/dts"],"./dts.js":[11729,"highlight/dts"],"./dts.js.js":[24232,"highlight/dts-js-js"],"./dust":[1450,"highlight/dust"],"./dust.js":[1450,"highlight/dust"],"./dust.js.js":[26229,"highlight/dust-js-js"],"./ebnf":[13039,"highlight/ebnf"],"./ebnf.js":[13039,"highlight/ebnf"],"./ebnf.js.js":[82808,"highlight/ebnf-js-js"],"./elixir":[62543,"highlight/elixir"],"./elixir.js":[62543,"highlight/elixir"],"./elixir.js.js":[40785,"highlight/elixir-js-js"],"./elm":[25658,"highlight/elm"],"./elm.js":[25658,"highlight/elm"],"./elm.js.js":[7977,"highlight/elm-js-js"],"./erb":[32151,"highlight/erb"],"./erb.js":[32151,"highlight/erb"],"./erb.js.js":[9214,"highlight/erb-js-js"],"./erlang":[57569,"highlight/erlang"],"./erlang-repl":[12282,"highlight/erlang-repl"],"./erlang-repl.js":[12282,"highlight/erlang-repl"],"./erlang-repl.js.js":[78191,"highlight/erlang-repl-js-js"],"./erlang.js":[57569,"highlight/erlang"],"./erlang.js.js":[84485,"highlight/erlang-js-js"],"./excel":[5817,"highlight/excel"],"./excel.js":[5817,"highlight/excel"],"./excel.js.js":[72276,"highlight/excel-js-js"],"./fix":[13146,"highlight/fix"],"./fix.js":[13146,"highlight/fix"],"./fix.js.js":[29274,"highlight/fix-js-js"],"./flix":[93090,"highlight/flix"],"./flix.js":[93090,"highlight/flix"],"./flix.js.js":[2556,"highlight/flix-js-js"],"./fortran":[13532,"highlight/fortran"],"./fortran.js":[13532,"highlight/fortran"],"./fortran.js.js":[33800,"highlight/fortran-js-js"],"./fsharp":[36652,"highlight/fsharp"],"./fsharp.js":[36652,"highlight/fsharp"],"./fsharp.js.js":[11770,"highlight/fsharp-js-js"],"./gams":[47903,"highlight/gams"],"./gams.js":[47903,"highlight/gams"],"./gams.js.js":[3060,"highlight/gams-js-js"],"./gauss":[45004,"highlight/gauss"],"./gauss.js":[45004,"highlight/gauss"],"./gauss.js.js":[51715,"highlight/gauss-js-js"],"./gcode":[11871,"highlight/gcode"],"./gcode.js":[11871,"highlight/gcode"],"./gcode.js.js":[84025,"highlight/gcode-js-js"],"./gherkin":[16499,"highlight/gherkin"],"./gherkin.js":[16499,"highlight/gherkin"],"./gherkin.js.js":[21442,"highlight/gherkin-js-js"],"./glsl":[21942,"highlight/glsl"],"./glsl.js":[21942,"highlight/glsl"],"./glsl.js.js":[79958,"highlight/glsl-js-js"],"./gml":[81921,"highlight/gml"],"./gml.js":[81921,"highlight/gml"],"./gml.js.js":[98186,"highlight/gml-js-js"],"./go":[92399,"highlight/go"],"./go.js":[92399,"highlight/go"],"./go.js.js":[64368,"highlight/go-js-js"],"./golo":[9574,"highlight/golo"],"./golo.js":[9574,"highlight/golo"],"./golo.js.js":[361,"highlight/golo-js-js"],"./gradle":[89878,"highlight/gradle"],"./gradle.js":[89878,"highlight/gradle"],"./gradle.js.js":[57741,"highlight/gradle-js-js"],"./graphql":[21738,"highlight/graphql"],"./graphql.js":[21738,"highlight/graphql"],"./graphql.js.js":[94840,"highlight/graphql-js-js"],"./groovy":[54658,"highlight/groovy"],"./groovy.js":[54658,"highlight/groovy"],"./groovy.js.js":[56464,"highlight/groovy-js-js"],"./haml":[21950,"highlight/haml"],"./haml.js":[21950,"highlight/haml"],"./haml.js.js":[31061,"highlight/haml-js-js"],"./handlebars":[71407,"highlight/handlebars"],"./handlebars.js":[71407,"highlight/handlebars"],"./handlebars.js.js":[74313,"highlight/handlebars-js-js"],"./haskell":[67077,"highlight/haskell"],"./haskell.js":[67077,"highlight/haskell"],"./haskell.js.js":[98107,"highlight/haskell-js-js"],"./haxe":[42720,"highlight/haxe"],"./haxe.js":[42720,"highlight/haxe"],"./haxe.js.js":[43127,"highlight/haxe-js-js"],"./hsp":[69662,"highlight/hsp"],"./hsp.js":[69662,"highlight/hsp"],"./hsp.js.js":[67423,"highlight/hsp-js-js"],"./http":[78937,"highlight/http"],"./http.js":[78937,"highlight/http"],"./http.js.js":[49706,"highlight/http-js-js"],"./hy":[99358,"highlight/hy"],"./hy.js":[99358,"highlight/hy"],"./hy.js.js":[85952,"highlight/hy-js-js"],"./inform7":[84458,"highlight/inform7"],"./inform7.js":[84458,"highlight/inform7"],"./inform7.js.js":[96955,"highlight/inform7-js-js"],"./ini":[94762,"highlight/ini"],"./ini.js":[94762,"highlight/ini"],"./ini.js.js":[38305,"highlight/ini-js-js"],"./irpf90":[60320,"highlight/irpf90"],"./irpf90.js":[60320,"highlight/irpf90"],"./irpf90.js.js":[78463,"highlight/irpf90-js-js"],"./isbl":[14664,"highlight/isbl"],"./isbl.js":[14664,"highlight/isbl"],"./isbl.js.js":[77648,"highlight/isbl","highlight/isbl-js-js"],"./java":[28257,"highlight/java"],"./java.js":[28257,"highlight/java"],"./java.js.js":[53664,"highlight/java-js-js"],"./javascript":[40978,"highlight/javascript"],"./javascript.js":[40978,"highlight/javascript"],"./javascript.js.js":[14204,"highlight/javascript-js-js"],"./jboss-cli":[84111,"highlight/jboss-cli"],"./jboss-cli.js":[84111,"highlight/jboss-cli"],"./jboss-cli.js.js":[28948,"highlight/jboss-cli-js-js"],"./json":[40014,"highlight/json"],"./json.js":[40014,"highlight/json"],"./json.js.js":[14547,"highlight/json-js-js"],"./julia":[24629,"highlight/julia"],"./julia-repl":[25850,"highlight/julia-repl"],"./julia-repl.js":[25850,"highlight/julia-repl"],"./julia-repl.js.js":[40996,"highlight/julia-repl-js-js"],"./julia.js":[24629,"highlight/julia"],"./julia.js.js":[34380,"highlight/julia-js-js"],"./kotlin":[65812,"highlight/kotlin"],"./kotlin.js":[65812,"highlight/kotlin"],"./kotlin.js.js":[15847,"highlight/kotlin-js-js"],"./lasso":[73530,"highlight/lasso"],"./lasso.js":[73530,"highlight/lasso"],"./lasso.js.js":[88178,"highlight/lasso-js-js"],"./latex":[47408,"highlight/latex"],"./latex.js":[47408,"highlight/latex"],"./latex.js.js":[32429,"highlight/latex-js-js"],"./ldif":[57604,"highlight/ldif"],"./ldif.js":[57604,"highlight/ldif"],"./ldif.js.js":[57137,"highlight/ldif-js-js"],"./leaf":[23961,"highlight/leaf"],"./leaf.js":[23961,"highlight/leaf"],"./leaf.js.js":[10822,"highlight/leaf-js-js"],"./less":[44210,"highlight/less"],"./less.js":[44210,"highlight/less"],"./less.js.js":[63224,"highlight/less-js-js"],"./lisp":[91943,"highlight/lisp"],"./lisp.js":[91943,"highlight/lisp"],"./lisp.js.js":[59998,"highlight/lisp-js-js"],"./livecodeserver":[82299,"highlight/livecodeserver"],"./livecodeserver.js":[82299,"highlight/livecodeserver"],"./livecodeserver.js.js":[99261,"highlight/livecodeserver-js-js"],"./livescript":[69735,"highlight/livescript"],"./livescript.js":[69735,"highlight/livescript"],"./livescript.js.js":[3079,"highlight/livescript-js-js"],"./llvm":[14972,"highlight/llvm"],"./llvm.js":[14972,"highlight/llvm"],"./llvm.js.js":[43195,"highlight/llvm-js-js"],"./lsl":[37034,"highlight/lsl"],"./lsl.js":[37034,"highlight/lsl"],"./lsl.js.js":[64675,"highlight/lsl-js-js"],"./lua":[28841,"highlight/lua"],"./lua.js":[28841,"highlight/lua"],"./lua.js.js":[58353,"highlight/lua-js-js"],"./makefile":[97903,"highlight/makefile"],"./makefile.js":[97903,"highlight/makefile"],"./makefile.js.js":[49591,"highlight/makefile-js-js"],"./markdown":[52003,"highlight/markdown"],"./markdown.js":[52003,"highlight/markdown"],"./markdown.js.js":[11855,"highlight/markdown-js-js"],"./mathematica":[8601,"highlight/mathematica"],"./mathematica.js":[8601,"highlight/mathematica"],"./mathematica.js.js":[68752,"highlight/mathematica","highlight/mathematica-js-js"],"./matlab":[48009,"highlight/matlab"],"./matlab.js":[48009,"highlight/matlab"],"./matlab.js.js":[53959,"highlight/matlab-js-js"],"./maxima":[27020,"highlight/maxima"],"./maxima.js":[27020,"highlight/maxima"],"./maxima.js.js":[11307,"highlight/maxima-js-js"],"./mel":[67739,"highlight/mel"],"./mel.js":[67739,"highlight/mel"],"./mel.js.js":[85316,"highlight/mel-js-js"],"./mercury":[44261,"highlight/mercury"],"./mercury.js":[44261,"highlight/mercury"],"./mercury.js.js":[64896,"highlight/mercury-js-js"],"./mipsasm":[74807,"highlight/mipsasm"],"./mipsasm.js":[74807,"highlight/mipsasm"],"./mipsasm.js.js":[61511,"highlight/mipsasm-js-js"],"./mizar":[49291,"highlight/mizar"],"./mizar.js":[49291,"highlight/mizar"],"./mizar.js.js":[59718,"highlight/mizar-js-js"],"./mojolicious":[8895,"highlight/mojolicious"],"./mojolicious.js":[8895,"highlight/mojolicious"],"./mojolicious.js.js":[54368,"highlight/mojolicious-js-js"],"./monkey":[9676,"highlight/monkey"],"./monkey.js":[9676,"highlight/monkey"],"./monkey.js.js":[9724,"highlight/monkey-js-js"],"./moonscript":[56486,"highlight/moonscript"],"./moonscript.js":[56486,"highlight/moonscript"],"./moonscript.js.js":[94766,"highlight/moonscript-js-js"],"./n1ql":[71414,"highlight/n1ql"],"./n1ql.js":[71414,"highlight/n1ql"],"./n1ql.js.js":[85334,"highlight/n1ql-js-js"],"./nestedtext":[5384,"highlight/nestedtext"],"./nestedtext.js":[5384,"highlight/nestedtext"],"./nestedtext.js.js":[82574,"highlight/nestedtext-js-js"],"./nginx":[94028,"highlight/nginx"],"./nginx.js":[94028,"highlight/nginx"],"./nginx.js.js":[68815,"highlight/nginx-js-js"],"./nim":[45968,"highlight/nim"],"./nim.js":[45968,"highlight/nim"],"./nim.js.js":[51698,"highlight/nim-js-js"],"./nix":[84802,"highlight/nix"],"./nix.js":[84802,"highlight/nix"],"./nix.js.js":[54831,"highlight/nix-js-js"],"./node-repl":[69609,"highlight/node-repl"],"./node-repl.js":[69609,"highlight/node-repl"],"./node-repl.js.js":[75233,"highlight/node-repl-js-js"],"./nsis":[9968,"highlight/nsis"],"./nsis.js":[9968,"highlight/nsis"],"./nsis.js.js":[49113,"highlight/nsis-js-js"],"./objectivec":[2446,"highlight/objectivec"],"./objectivec.js":[2446,"highlight/objectivec"],"./objectivec.js.js":[3707,"highlight/objectivec-js-js"],"./ocaml":[57552,"highlight/ocaml"],"./ocaml.js":[57552,"highlight/ocaml"],"./ocaml.js.js":[63808,"highlight/ocaml-js-js"],"./openscad":[6277,"highlight/openscad"],"./openscad.js":[6277,"highlight/openscad"],"./openscad.js.js":[11393,"highlight/openscad-js-js"],"./oxygene":[80136,"highlight/oxygene"],"./oxygene.js":[80136,"highlight/oxygene"],"./oxygene.js.js":[93871,"highlight/oxygene-js-js"],"./parser3":[43412,"highlight/parser3"],"./parser3.js":[43412,"highlight/parser3"],"./parser3.js.js":[93773,"highlight/parser3-js-js"],"./perl":[12482,"highlight/perl"],"./perl.js":[12482,"highlight/perl"],"./perl.js.js":[35740,"highlight/perl-js-js"],"./pf":[4485,"highlight/pf"],"./pf.js":[4485,"highlight/pf"],"./pf.js.js":[85243,"highlight/pf-js-js"],"./pgsql":[89814,"highlight/pgsql"],"./pgsql.js":[89814,"highlight/pgsql"],"./pgsql.js.js":[64460,"highlight/pgsql-js-js"],"./php":[92656,"highlight/php"],"./php-template":[35112,"highlight/php-template"],"./php-template.js":[35112,"highlight/php-template"],"./php-template.js.js":[6511,"highlight/php-template-js-js"],"./php.js":[92656,"highlight/php"],"./php.js.js":[70693,"highlight/php-js-js"],"./plaintext":[62437,"highlight/plaintext"],"./plaintext.js":[62437,"highlight/plaintext"],"./plaintext.js.js":[13651,"highlight/plaintext-js-js"],"./pony":[46874,"highlight/pony"],"./pony.js":[46874,"highlight/pony"],"./pony.js.js":[56170,"highlight/pony-js-js"],"./powershell":[85040,"highlight/powershell"],"./powershell.js":[85040,"highlight/powershell"],"./powershell.js.js":[23003,"highlight/powershell-js-js"],"./processing":[25371,"highlight/processing"],"./processing.js":[25371,"highlight/processing"],"./processing.js.js":[81414,"highlight/processing-js-js"],"./profile":[73476,"highlight/profile"],"./profile.js":[73476,"highlight/profile"],"./profile.js.js":[13445,"highlight/profile-js-js"],"./prolog":[63944,"highlight/prolog"],"./prolog.js":[63944,"highlight/prolog"],"./prolog.js.js":[45640,"highlight/prolog-js-js"],"./properties":[17546,"highlight/properties"],"./properties.js":[17546,"highlight/properties"],"./properties.js.js":[19862,"highlight/properties-js-js"],"./protobuf":[15559,"highlight/protobuf"],"./protobuf.js":[15559,"highlight/protobuf"],"./protobuf.js.js":[88241,"highlight/protobuf-js-js"],"./puppet":[93867,"highlight/puppet"],"./puppet.js":[93867,"highlight/puppet"],"./puppet.js.js":[973,"highlight/puppet-js-js"],"./purebasic":[92938,"highlight/purebasic"],"./purebasic.js":[92938,"highlight/purebasic"],"./purebasic.js.js":[53893,"highlight/purebasic-js-js"],"./python":[38245,"highlight/python"],"./python-repl":[3722,"highlight/python-repl"],"./python-repl.js":[3722,"highlight/python-repl"],"./python-repl.js.js":[53693,"highlight/python-repl-js-js"],"./python.js":[38245,"highlight/python"],"./python.js.js":[43720,"highlight/python-js-js"],"./q":[82623,"highlight/q"],"./q.js":[82623,"highlight/q"],"./q.js.js":[90999,"highlight/q-js-js"],"./qml":[23797,"highlight/qml"],"./qml.js":[23797,"highlight/qml"],"./qml.js.js":[96012,"highlight/qml-js-js"],"./r":[54730,"highlight/r"],"./r.js":[54730,"highlight/r"],"./r.js.js":[26930,"highlight/r-js-js"],"./reasonml":[2318,"highlight/reasonml"],"./reasonml.js":[2318,"highlight/reasonml"],"./reasonml.js.js":[39057,"highlight/reasonml-js-js"],"./rib":[94820,"highlight/rib"],"./rib.js":[94820,"highlight/rib"],"./rib.js.js":[50363,"highlight/rib-js-js"],"./roboconf":[41874,"highlight/roboconf"],"./roboconf.js":[41874,"highlight/roboconf"],"./roboconf.js.js":[25875,"highlight/roboconf-js-js"],"./routeros":[74005,"highlight/routeros"],"./routeros.js":[74005,"highlight/routeros"],"./routeros.js.js":[95873,"highlight/routeros-js-js"],"./rsl":[92852,"highlight/rsl"],"./rsl.js":[92852,"highlight/rsl"],"./rsl.js.js":[25978,"highlight/rsl-js-js"],"./ruby":[67905,"highlight/ruby"],"./ruby.js":[67905,"highlight/ruby"],"./ruby.js.js":[7453,"highlight/ruby-js-js"],"./ruleslanguage":[32192,"highlight/ruleslanguage"],"./ruleslanguage.js":[32192,"highlight/ruleslanguage"],"./ruleslanguage.js.js":[51506,"highlight/ruleslanguage-js-js"],"./rust":[9880,"highlight/rust"],"./rust.js":[9880,"highlight/rust"],"./rust.js.js":[75391,"highlight/rust-js-js"],"./sas":[93129,"highlight/sas"],"./sas.js":[93129,"highlight/sas"],"./sas.js.js":[56262,"highlight/sas-js-js"],"./scala":[30729,"highlight/scala"],"./scala.js":[30729,"highlight/scala"],"./scala.js.js":[76940,"highlight/scala-js-js"],"./scheme":[82254,"highlight/scheme"],"./scheme.js":[82254,"highlight/scheme"],"./scheme.js.js":[76613,"highlight/scheme-js-js"],"./scilab":[85149,"highlight/scilab"],"./scilab.js":[85149,"highlight/scilab"],"./scilab.js.js":[47731,"highlight/scilab-js-js"],"./scss":[71062,"highlight/scss"],"./scss.js":[71062,"highlight/scss"],"./scss.js.js":[61258,"highlight/scss-js-js"],"./shell":[7874,"highlight/shell"],"./shell.js":[7874,"highlight/shell"],"./shell.js.js":[16605,"highlight/shell-js-js"],"./smali":[10943,"highlight/smali"],"./smali.js":[10943,"highlight/smali"],"./smali.js.js":[21216,"highlight/smali-js-js"],"./smalltalk":[17659,"highlight/smalltalk"],"./smalltalk.js":[17659,"highlight/smalltalk"],"./smalltalk.js.js":[5229,"highlight/smalltalk-js-js"],"./sml":[45935,"highlight/sml"],"./sml.js":[45935,"highlight/sml"],"./sml.js.js":[26301,"highlight/sml-js-js"],"./sqf":[3677,"highlight/sqf"],"./sqf.js":[3677,"highlight/sqf"],"./sqf.js.js":[27351,"highlight/sqf-js-js"],"./sql":[98935,"highlight/sql"],"./sql.js":[98935,"highlight/sql"],"./sql.js.js":[43066,"highlight/sql-js-js"],"./stan":[50052,"highlight/stan"],"./stan.js":[50052,"highlight/stan"],"./stan.js.js":[41047,"highlight/stan-js-js"],"./stata":[60454,"highlight/stata"],"./stata.js":[60454,"highlight/stata"],"./stata.js.js":[78525,"highlight/stata-js-js"],"./step21":[37022,"highlight/step21"],"./step21.js":[37022,"highlight/step21"],"./step21.js.js":[85098,"highlight/step21-js-js"],"./stylus":[88688,"highlight/stylus"],"./stylus.js":[88688,"highlight/stylus"],"./stylus.js.js":[91613,"highlight/stylus-js-js"],"./subunit":[40726,"highlight/subunit"],"./subunit.js":[40726,"highlight/subunit"],"./subunit.js.js":[93299,"highlight/subunit-js-js"],"./swift":[77690,"highlight/swift"],"./swift.js":[77690,"highlight/swift"],"./swift.js.js":[82974,"highlight/swift-js-js"],"./taggerscript":[15460,"highlight/taggerscript"],"./taggerscript.js":[15460,"highlight/taggerscript"],"./taggerscript.js.js":[43700,"highlight/taggerscript-js-js"],"./tap":[30422,"highlight/tap"],"./tap.js":[30422,"highlight/tap"],"./tap.js.js":[17532,"highlight/tap-js-js"],"./tcl":[78158,"highlight/tcl"],"./tcl.js":[78158,"highlight/tcl"],"./tcl.js.js":[16925,"highlight/tcl-js-js"],"./thrift":[30906,"highlight/thrift"],"./thrift.js":[30906,"highlight/thrift"],"./thrift.js.js":[9377,"highlight/thrift-js-js"],"./tp":[6123,"highlight/tp"],"./tp.js":[6123,"highlight/tp"],"./tp.js.js":[12686,"highlight/tp-js-js"],"./twig":[71973,"highlight/twig"],"./twig.js":[71973,"highlight/twig"],"./twig.js.js":[73660,"highlight/twig-js-js"],"./typescript":[28987,"highlight/typescript"],"./typescript.js":[28987,"highlight/typescript"],"./typescript.js.js":[92373,"highlight/typescript-js-js"],"./vala":[41462,"highlight/vala"],"./vala.js":[41462,"highlight/vala"],"./vala.js.js":[2239,"highlight/vala-js-js"],"./vbnet":[27531,"highlight/vbnet"],"./vbnet.js":[27531,"highlight/vbnet"],"./vbnet.js.js":[48701,"highlight/vbnet-js-js"],"./vbscript":[4703,"highlight/vbscript"],"./vbscript-html":[48704,"highlight/vbscript-html"],"./vbscript-html.js":[48704,"highlight/vbscript-html"],"./vbscript-html.js.js":[43992,"highlight/vbscript-html-js-js"],"./vbscript.js":[4703,"highlight/vbscript"],"./vbscript.js.js":[55872,"highlight/vbscript-js-js"],"./verilog":[54494,"highlight/verilog"],"./verilog.js":[54494,"highlight/verilog"],"./verilog.js.js":[44118,"highlight/verilog-js-js"],"./vhdl":[48110,"highlight/vhdl"],"./vhdl.js":[48110,"highlight/vhdl"],"./vhdl.js.js":[63461,"highlight/vhdl-js-js"],"./vim":[53638,"highlight/vim"],"./vim.js":[53638,"highlight/vim"],"./vim.js.js":[54971,"highlight/vim-js-js"],"./wasm":[81533,"highlight/wasm"],"./wasm.js":[81533,"highlight/wasm"],"./wasm.js.js":[7809,"highlight/wasm-js-js"],"./wren":[68563,"highlight/wren"],"./wren.js":[68563,"highlight/wren"],"./wren.js.js":[87106,"highlight/wren-js-js"],"./x86asm":[19947,"highlight/x86asm"],"./x86asm.js":[19947,"highlight/x86asm"],"./x86asm.js.js":[50923,"highlight/x86asm-js-js"],"./xl":[49338,"highlight/xl"],"./xl.js":[49338,"highlight/xl"],"./xl.js.js":[66778,"highlight/xl-js-js"],"./xml":[4610,"highlight/xml"],"./xml.js":[4610,"highlight/xml"],"./xml.js.js":[20722,"highlight/xml-js-js"],"./xquery":[5595,"highlight/xquery"],"./xquery.js":[5595,"highlight/xquery"],"./xquery.js.js":[8001,"highlight/xquery-js-js"],"./yaml":[71392,"highlight/yaml"],"./yaml.js":[71392,"highlight/yaml"],"./yaml.js.js":[8564,"highlight/yaml-js-js"],"./zephir":[42222,"highlight/zephir"],"./zephir.js":[42222,"highlight/zephir"],"./zephir.js.js":[64181,"highlight/zephir-js-js"]};function n(t){if(!i.o(r,t))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=r[t],n=e[0];return Promise.all(e.slice(1).map(i.e)).then((()=>i.t(n,23)))}n.keys=()=>Object.keys(r),n.id=63497,t.exports=n},75578:(t,e,i)=>{"use strict";i.d(e,{Z:()=>_});var r=i(73845),n=i(79835),o=i(31728),s=i(28612),a=i(38105);const l={name:"BaseReader",components:{EditorContent:n.kg,EditorOutline:a.Z},mixins:[s.vV,s.Ad],provide(){const t={};return Object.defineProperties(t,{[o.Uw]:{get:()=>this.$editor}}),t},inject:["renderHtml","extensions"],props:{content:{type:String,required:!0}},computed:{htmlContent(){return this.renderHtml(this.content)},showOutline(){return this.$outlineState.visible}},watch:{content(){this.updateContent()}},created(){this.$editor=this.createEditor(),this.$editor.setEditable(!1)},beforeDestroy(){this.$editor.destroy()},methods:{createEditor(){return new r.ML({content:this.htmlContent,extensions:this.extensions()})},updateContent(){this.$editor.commands.setContent(this.htmlContent,!0)}}};var d=i(93379),c=i.n(d),A=i(7795),h=i.n(A),p=i(90569),g=i.n(p),u=i(3565),C=i.n(u),m=i(19216),v=i.n(m),b=i(44589),f=i.n(b),x=i(38909),y={};y.styleTagTransform=f(),y.setAttributes=C(),y.insert=g().bind(null,"head"),y.domAPI=h(),y.insertStyleElement=v();c()(x.Z,y);x.Z&&x.Z.locals&&x.Z.locals;const _=(0,i(51900).Z)(l,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"content-wrapper text-editor__content-wrapper",class:{"--show-outline":t.showOutline},attrs:{"data-text-el":"editor-content-wrapper"}},[t.showOutline?e("div",{staticClass:"text-editor__content-wrapper__left"},[e("EditorOutline")],1):t._e(),t._v(" "),t.$editor?e("EditorContent",{staticClass:"editor__content text-editor__content",attrs:{id:"read-only-editor",editor:t.$editor}}):t._e(),t._v(" "),e("div",{staticClass:"text-editor__content-wrapper__right"})],1)}),[],!1,null,"151c6c0d",null).exports},57654:(e,i,r)=>{"use strict";r.r(i),r.d(i,{default:()=>we});var n=r(20144),o=r(20629),s=r(77958),a=r(43554),l=r(69183),d=r(50135),c=r(73845);const A=c.hj.create({addOptions:()=>({fileId:null}),addStorage:()=>({started:!1}),onCreate(){if(null===this.options.fileId)throw new Error("fileId needs to be provided");this.storage.started=!0},onSelectionUpdate(t){let{editor:e}=t;if(!this.storage.started)return;const i=e.state.selection.$anchor.pos;sessionStorage.setItem("text-lastPos-"+this.options.fileId,i)},addCommands(){return{autofocus:()=>t=>{let{commands:e,editor:i}=t;const r=sessionStorage.getItem("text-lastPos-"+this.options.fileId);return r?e.focus(r):e.focus("start")}}}});var h=r(19191),p=r(66309),g=r(31728),u=r(74369),C=r(52029),m=r(68137);function v(t){const e=new Uint8Array(t);return(0,m.s3)(e)}function b(t){return(0,m.Gh)(t)}var f=r(65580),x=r(58778),y=r(38510);var _=r(86536);function j(t,e){M(t,e),e.add(t)}function w(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function k(t,e,i){M(t,e),e.set(t,i)}function M(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function B(t,e){return function(t,e){if(e.get)return e.get.call(t);return e.value}(t,P(t,e,"get"))}function E(t,e,i){return function(t,e,i){if(e.set)e.set.call(t,i);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=i}}(t,P(t,e,"set"),i),i}function P(t,e,i){if(!e.has(t))throw new TypeError("attempted to "+i+" private field on non-instance");return e.get(t)}function S(t,e,i){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return i}function D(t){var e,i;let{ydoc:r,syncService:n,fileId:o,initialSession:s,queue:a,disableBc:l}=t;if(!o)throw new Error("fileId is required");const d=function(t,e,i,r){var n,o,s,a,l,d,c,A;return n=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap,l=new WeakSet,d=new WeakMap,c=new WeakMap,A=new WeakSet,class{constructor(r){j(this,A),k(this,c,{get:g,set:void 0}),k(this,d,{get:p,set:void 0}),j(this,l),k(this,n,{writable:!0,value:void 0}),k(this,o,{writable:!0,value:void 0}),k(this,s,{writable:!0,value:void 0}),w(this,"binaryType",void 0),w(this,"onmessage",void 0),w(this,"onerror",void 0),w(this,"onclose",void 0),w(this,"onopen",void 0),k(this,a,{writable:!0,value:void 0}),this.url=r,C.k.debug("WebSocketPolyfill#constructor",{url:r,fileId:e,initialSession:i}),S(this,l,h).call(this,{opened:t=>{var e;let{version:i,session:r}=t;E(this,s,i),C.k.debug("opened ",{version:i,session:r}),E(this,o,r),null===(e=this.onopen)||void 0===e||e.call(this)},loaded:t=>{let{version:e,session:i,content:r}=t;C.k.debug("loaded ",{version:e,session:i}),E(this,s,e),E(this,o,i)},sync:t=>{let{steps:e,version:i}=t;C.k.debug("synced ",{version:i,steps:e}),E(this,s,i),e&&e.forEach((t=>{const e=b(t.step);this.onmessage({data:e})}))}}),t.open({fileId:e,initialSession:i})}send(){var e;r.push(...arguments);let i=[];return null===(e=t.sendSteps((()=>{const t={steps:B(this,d),awareness:B(this,c),version:B(this,s)};return i=[...r],C.k.debug("sending steps ",t),t})))||void 0===e?void 0:e.then((t=>(r.splice(0,r.length,...r.filter((t=>!i.includes(t)))),t)),(t=>C.k.error(t)))}async close(){await S(this,A,u).call(this),Object.entries(B(this,a)).forEach((e=>{let[i,r]=e;return t.off(i,r)})),E(this,a,[]),t.close().then((()=>{this.onclose()})),C.k.debug("Websocket closed")}};function h(e){E(this,a,e),Object.entries(B(this,a)).forEach((e=>{let[i,r]=e;return t.on(i,r)}))}function p(){return r.map((t=>v(t))).filter((t=>t<"AQ"))}function g(){return r.map((t=>v(t))).findLast((t=>t>"AQ"))||""}function u(){if(r.length){var e;let i=[];return null===(e=t.sendStepsNow((()=>{const t={steps:B(this,d),awareness:B(this,c),version:B(this,s)};return i=[...r],C.k.debug("sending final steps ",t),t})))||void 0===e?void 0:e.then((()=>{r.splice(0,r.length,...r.filter((t=>!i.includes(t))))}),(t=>C.k.error(t)))}}}(n,o,s,a);l=null!==(e=l)&&void 0!==e?e:!(null===(i=window)||void 0===i||!i._oc_debug);const c=new y.VU("ws://localhost:1234","file:"+o,r,{WebSocketPolyfill:d,disableBc:l});return c.on("status",(t=>C.k.debug("status",t))),c}var I=r(207);const T={py:"python",gyp:"python",wsgi:"python",htm:"html",xhtml:"html",erl:"erlang",jsp:"java",pl:"perl",rss:"xml",atom:"xml",xsl:"xml",plist:"xml",rb:"ruby",builder:"ruby",gemspec:"ruby",podspec:"ruby",thor:"ruby",diff:"patch",hs:"haskell",icl:"haskell",php3:"php",php4:"php",php5:"php",php6:"php",sh:"bash",zsh:"bash",st:"smalltalk",as:"actionscript",apacheconf:"apache",osacript:"applescript",b:"brainfuck",bf:"brainfuck",clj:"clojure","cmake.in":"cmake",coffee:"coffeescript",cson:"coffescript",iced:"coffescript",c:"cpp",h:"cpp","c++":"cpp","h++":"cpp",hh:"cpp",jinja:"django",bat:"dos",cmd:"dos",fs:"fsharp",hbs:"handlebars","html.hbs":"handlebars","html.handlebars":"handlebars",sublime_metrics:"json",sublime_session:"json","sublime-keymap":"json","sublime-mousemap":"json","sublime-project":"json","sublime-settings":"json","sublime-workspace":"json",js:"javascript",mk:"makefile",mak:"makefile",md:"markdown",mkdown:"markdown",mkd:"markdown",nginxconf:"nginx",m:"objectivec",mm:"objectivec",ml:"ocaml",rs:"rust",sci:"scilab",txt:"plaintext",vb:"vbnet",vbs:"vbscript"};var $=r(47845),L=r(11480);const O={name:"AutoCompleteResult",props:{label:{type:String,required:!0},subline:{type:String,default:null},id:{type:String,default:null},icon:{type:String,required:!0},source:{type:String,required:!0},status:{type:[Object,Array],default:()=>({})}},computed:{avatarUrl(){return this.id&&"users"===this.source?this.getAvatarUrl(this.id,44):null},haveStatus(){var t,e;return(null===(t=this.status)||void 0===t?void 0:t.icon)||(null===(e=this.status)||void 0===e?void 0:e.status)}},methods:{getAvatarUrl:(t,e)=>(0,L.nu)("/avatar/{user}/{size}",{user:t,size:e})}};var Z=r(93379),z=r.n(Z),N=r(7795),R=r.n(N),U=r(90569),G=r.n(U),F=r(3565),W=r.n(F),q=r(19216),H=r.n(q),Y=r(44589),V=r.n(Y),Q=r(40189),K={};K.styleTagTransform=V(),K.setAttributes=W(),K.insert=G().bind(null,"head"),K.domAPI=R(),K.insertStyleElement=H();z()(Q.Z,K);Q.Z&&Q.Z.locals&&Q.Z.locals;var J=r(51900);const X={components:{AutoCompleteResult:(0,J.Z)(O,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"autocomplete-result"},[e("div",{staticClass:"autocomplete-result__icon",class:[t.icon,"autocomplete-result__icon--".concat(t.avatarUrl?"with-avatar":"")],style:t.avatarUrl?{backgroundImage:"url(".concat(t.avatarUrl,")")}:null},[t.haveStatus?e("div",{staticClass:"autocomplete-result__status",class:["autocomplete-result__status--".concat(t.status&&t.status.icon?"icon":t.status.status)]},[t._v("\n\t\t\t"+t._s(t.status&&t.status.icon||"")+"\n\t\t")]):t._e()]),t._v(" "),e("span",{staticClass:"autocomplete-result__content"},[e("span",{staticClass:"autocomplete-result__title"},[t._v("\n\t\t\t"+t._s(t.label)+"\n\t\t")]),t._v(" "),t.subline?e("span",{staticClass:"autocomplete-result__subline"},[t._v("\n\t\t\t"+t._s(t.subline)+"\n\t\t")]):t._e()])])}),[],!1,null,"2145738d",null).exports,SuggestionListWrapper:r(15039).Z},props:{items:{type:Array,required:!0},command:{type:Function,required:!0}},methods:{onKeyDown(t){var e;let{event:i}=t;return null===(e=this.$refs.suggestionList)||void 0===e?void 0:e.onKeyDown({event:i})}}};var tt=r(18628),et={};et.styleTagTransform=V(),et.setAttributes=W(),et.insert=G().bind(null,"head"),et.domAPI=R(),et.insertStyleElement=H();z()(tt.Z,et);tt.Z&&tt.Z.locals&&tt.Z.locals;const it=(0,J.Z)(X,(function(){var t=this,e=t._self._c;return e("SuggestionListWrapper",{ref:"suggestionList",attrs:{command:t.command,items:t.items},scopedSlots:t._u([{key:"default",fn:function(t){let{item:i,active:r}=t;return[e("AutoCompleteResult",{class:r?"highlight":null,attrs:{id:i.id,label:i.label,icon:"icon-user",source:"users"}})]}},{key:"empty",fn:function(){return[t._v("\n\t\t"+t._s(t.t("text","No user found"))+"\n\t")]},proxy:!0}])})}),[],!1,null,null,null).exports;var rt=r(28374);const nt=(0,L.nu)("apps/text/api/v1/users"),ot=t=>{let{session:e,params:i}=t;return(0,rt.Z)({listComponent:it,items:async t=>{let{query:i}=t;const r={documentId:e.documentId,sessionId:e.id,sessionToken:e.token,filter:i},n=await $.Z.post(nt,r),o=JSON.parse(JSON.stringify(n.data)),s=[];return Object.keys(o).map((t=>s.push({id:t,label:o[t]}))),s},command:t=>{var r,n;let{editor:o,range:s,props:a}=t;null!=i&&i.emitMention?i.emitMention({props:a}):(t=>{let{session:e,props:i}=t;const r=e.documentId;$.Z.put((0,L.nu)("apps/text/session/".concat(r,"/mention")),{documentId:r,sessionId:e.id,sessionToken:e.token,mention:i.id})})({session:e,props:a});const l=o.view.state.selection.$to.nodeAfter;(null==l||null===(r=l.text)||void 0===r?void 0:r.startsWith(" "))&&(s.to+=1),o.chain().focus().insertContentAt(s,[{type:"mention",attrs:a},{type:"text",text:" "}]).run(),null===(n=window.getSelection())||void 0===n||n.collapseToEnd()},...i})};r(36522);var st=r(4981),at=r(30837),lt=r(22927),dt=r(22608);const ct=t=>{let e,{language:i,onCreate:r=(()=>{}),onUpdate:n=(()=>{}),extensions:o,enableRichEditing:s,session:a,relativePath:l,isEmbedded:d=!1}=t;return e=s?[lt.Ho.configure({relativePath:l,isEmbedded:d,component:void 0,extensions:[lt.pf.configure({suggestion:ot({session:a})})]}),lt.iQ]:[lt.f3,dt.Z.configure({lowlight:st.$,defaultLanguage:i})],new c.ML({onCreate:r,onUpdate:n,editorProps:{scrollMargin:50,scrollThreshold:50},extensions:e.concat(o||[])})};var At=r(32892),ht=r(65122),pt=r(6804),gt=r(34627),ut=r(95573),Ct=r.n(ut),mt=r(81877),vt=r(87823);const bt={methods:{setContent(t){let{isRichEditor:e,addToHistory:i=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=e?ht.Z.render(t)+"<p/>":"<pre>".concat(Ct()(t),"</pre>");this.$editor.chain().setContent(r,i).command((t=>{let{tr:e}=t;return e.setMeta("addToHistory",i),!0})).run()},setInitialYjsState(t,e){let{isRichEditor:i}=e;const r=i?ht.Z.render(t)+"<p/>":"<pre>".concat(Ct()(t),"</pre>"),n=ct({enableRichEditing:i}),o=(0,c.AW)(r,n.extensionManager.extensions),s=vt.NB.fromJSON(n.schema,o),a=(0,h.D$)((t=>{const e=new h.QW;e.clientID=0;const i=e.get("default",h.sI);return i.doc?((0,mt.e$)(t,i),e):e})(s));(0,h.NG)(this.$ydoc,a)}}},ft={name:"CollisionResolveDialog",components:{NcButton:gt.P2},mixins:[g.Cy,g.QT,bt,g.BG],props:{syncError:{type:Object,default:null}},data:()=>({clicked:!1}),methods:{resolveThisVersion(){this.clicked=!0,this.$syncService.forceSave().then((()=>this.$syncService.syncUp())),this.$editor.setEditable(!this.readOnly)},resolveServerVersion(){const{outsideChange:t}=this.syncError.data;this.clicked=!0,this.$editor.setEditable(!this.readOnly),this.setContent(t,{isRichEditor:this.$isRichEditor}),this.$syncService.forceSave().then((()=>this.$syncService.syncUp()))}}};var xt=r(13408),yt={};yt.styleTagTransform=V(),yt.setAttributes=W(),yt.insert=G().bind(null,"head"),yt.domAPI=R(),yt.insertStyleElement=H();z()(xt.Z,yt);xt.Z&&xt.Z.locals&&xt.Z.locals;const _t={name:"DocumentStatus",components:{CollisionResolveDialog:(0,J.Z)(ft,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"collision-resolve-dialog",class:{"icon-loading":t.clicked},attrs:{id:"resolve-conflicts"}},[e("NcButton",{attrs:{disabled:t.clicked,"data-cy":"resolveThisVersion"},on:{click:t.resolveThisVersion}},[t._v("\n\t\t"+t._s(t.t("text","Use current version"))+"\n\t")]),t._v(" "),e("NcButton",{attrs:{disabled:t.clicked,"data-cy":"resolveServerVersion"},on:{click:t.resolveServerVersion}},[t._v("\n\t\t"+t._s(t.t("text","Use the saved version"))+"\n\t")])],1)}),[],!1,null,"f43ae8b6",null).exports,Lock:pt.Z,NcNoteCard:gt.qf},props:{idle:{type:Boolean,require:!0},lock:{type:Object,default:null},syncError:{type:Object,default:null},hasConnectionIssue:{type:Boolean,require:!0}},data:()=>({IDLE_TIMEOUT:_.TY}),computed:{hasSyncCollission(){return this.syncError&&this.syncError.type===_.QS.SAVE_COLLISSION},isLoadingError(){return this.syncError&&this.syncError.type===_.QS.LOAD_ERROR},hasWarning(){return this.syncError||this.hasConnectionIssue}},methods:{reconnect(){this.$emit("reconnect")},reload(){window.location.reload()}}};var jt=r(10869),wt={};wt.styleTagTransform=V(),wt.setAttributes=W(),wt.insert=G().bind(null,"head"),wt.domAPI=R(),wt.insertStyleElement=H();z()(jt.Z,wt);jt.Z&&jt.Z.locals&&jt.Z.locals;const kt=(0,J.Z)(_t,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"document-status"},[t.hasWarning?e("NcNoteCard",{attrs:{type:"warning"}},[t.isLoadingError?e("p",[t._v("\n\t\t\t"+t._s(t.syncError.data.data.error)+"\n\t\t\t"),t._v(" "),412===t.syncError.data.status?e("a",{staticClass:"button primary",on:{click:t.reload}},[t._v(t._s(t.t("text","Reload")))]):t._e()]):t.hasSyncCollission?e("p",[t._v("\n\t\t\t"+t._s(t.t("text","Document has been changed outside of the editor. The changes cannot be applied"))+"\n\t\t")]):t.hasConnectionIssue?e("p",[t._v("\n\t\t\t"+t._s(t.t("text","Document could not be loaded. Please check your internet connection."))+"\n\t\t\t"),e("a",{staticClass:"button primary",on:{click:t.reconnect}},[t._v(t._s(t.t("text","Reconnect")))])]):t._e()]):t.idle?e("NcNoteCard",{attrs:{type:"info"}},[e("p",[t._v("\n\t\t\t"+t._s(t.t("text","Document idle for {timeout} minutes, click to continue editing",{timeout:t.IDLE_TIMEOUT}))+"\n\t\t\t"),e("a",{staticClass:"button primary",on:{click:t.reconnect}},[t._v(t._s(t.t("text","Reconnect")))])])]):t._e(),t._v(" "),t.lock?e("NcNoteCard",{attrs:{type:"info"},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Lock",{attrs:{size:20}})]},proxy:!0}],null,!1,326953187)},[t._v(" "),e("p",[t._v("\n\t\t\t"+t._s(t.t("text","This file is opened read-only as it is currently locked by {user}.",{user:t.lock.displayName}))+"\n\t\t")])]):t._e(),t._v(" "),t.hasSyncCollission?e("CollisionResolveDialog",{attrs:{"sync-error":t.syncError}}):t._e()],1)}),[],!1,null,"30c7e03a",null).exports;var Mt=r(20296),Bt=r.n(Mt);const Et=()=>document.documentElement.clientWidth<768,Pt={data:()=>({isMobile:Et()}),beforeMount(){this.$onResize=Bt()((()=>{this.isMobile=Et()}),100),window.addEventListener("resize",this.$onResize)},beforeDestroy(){window.removeEventListener("resize",this.$onResize)}};var St=r(13815),Dt=r(37531),It=r(49628),Tt=r(57883);const $t={data:()=>({refreshMoment:0}),mounted(){this.$refreshInterval=setInterval((()=>{this.refreshMoment++}),2e4)},beforeDestroy(){clearInterval(this.$refreshInterval)}},Lt={name:"Status",components:{NcButton:gt.P2,NcSavingIndicatorIcon:gt.id,SessionList:()=>r.e("editor-collab").then(r.bind(r,9057)),GuestNameDialog:()=>r.e("editor-guest").then(r.bind(r,84550))},mixins:[g.ww,g.fB,g.BG,$t],props:{hasConnectionIssue:{type:Boolean,require:!0},dirty:{type:Boolean,require:!0},document:{type:Object,default:null},syncError:{type:Object,default:null},sessions:{type:Object,default:()=>({})}},computed:{lastSavedStatus(){return this.hasConnectionIssue?this.$isMobile?t("text","Offline"):t("text","Offline, changes will be saved when online"):this.dirtyStateIndicator?t("text","Saving …"):t("text","Saved")},dirtyStateIndicator(){return this.dirty||this.hasUnsavedChanges},lastSavedStatusTooltip(){let e=t("text","Last saved {lastSave}",{lastSave:this.lastSavedString});return this.hasSyncCollission&&(e=t("text","The document has been changed outside of the editor. The changes cannot be applied.")),(this.dirty||this.hasUnsavedChanges)&&(e+=" - "+t("text","Unsaved changes")),e},hasUnsavedChanges(){return this.document&&this.document.lastSavedVersion<this.document.currentVersion},hasSyncCollission(){return this.syncError&&this.syncError.type===_.QS.SAVE_COLLISSION},saveStatusClass(){return this.syncError&&""!==this.lastSavedString?"error":this.dirtyStateIndicator?"saving":"saved"},currentSession(){return Object.values(this.sessions).find((t=>t.isCurrent))},lastSavedString(){return this.refreshMoment,(0,Tt.Z)(1e3*this.document.lastSavedVersionTime).fromNow()}},methods:{onClickSave(){this.dirtyStateIndicator&&this.$syncService.forceSave()}}};var Ot=r(99212),Zt={};Zt.styleTagTransform=V(),Zt.setAttributes=W(),Zt.insert=G().bind(null,"head"),Zt.domAPI=R(),Zt.insertStyleElement=H();z()(Ot.Z,Zt);Ot.Z&&Ot.Z.locals&&Ot.Z.locals;const zt=(0,J.Z)(Lt,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-editor__session-list"},[e("div",{staticClass:"save-status",class:t.saveStatusClass,attrs:{title:t.lastSavedStatusTooltip}},[e("NcButton",{attrs:{type:"tertiary","aria-label":t.t("text","Save document")},on:{click:t.onClickSave},scopedSlots:t._u([{key:"icon",fn:function(){return[e("NcSavingIndicatorIcon",{attrs:{saving:"saving"===t.saveStatusClass,error:"error"===t.saveStatusClass}})]},proxy:!0}])})],1),t._v(" "),e("SessionList",{attrs:{sessions:t.sessions}},[e("p",{staticClass:"last-saved",attrs:{slot:"lastSaved"},slot:"lastSaved"},[t._v("\n\t\t\t"+t._s(t.t("text","Last saved"))+": "+t._s(t.lastSavedString)+"\n\t\t")]),t._v(" "),t.$isPublic&&t.currentSession&&!t.currentSession.userId?e("GuestNameDialog",{attrs:{session:t.currentSession}}):t._e()],1)],1)}),[],!1,null,"42888af2",null).exports;var Nt=r(43774),Rt=r(80676);const Ut=window.getComputedStyle(document.body),Gt=Ut.getPropertyValue("--color-placeholder-dark"),Ft=Ut.getPropertyValue("--color-placeholder-light"),Wt={name:"SkeletonLoading",props:{count:{type:Number,default:5}},setup:()=>({colorPlaceholderDark:Gt,colorPlaceholderLight:Ft}),computed:{textPlaceholderData(){const t=[];for(let e=0;e<4;e++)t.push("width: "+(Math.floor(50*Math.random())+60)+"%");return t}}};var qt=r(78968),Ht={};Ht.styleTagTransform=V(),Ht.setAttributes=W(),Ht.insert=G().bind(null,"head"),Ht.domAPI=R(),Ht.insertStyleElement=H();z()(qt.Z,Ht);qt.Z&&qt.Z.locals&&qt.Z.locals;const Yt=(0,J.Z)(Wt,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"placeholder-main placeholder-main-text"},[t._l(["-regular","-reverse"],(function(i,r){return[e("svg",{key:"gradient"+i,class:"placeholder-gradient placeholder-gradient"+i},[e("defs",[e("linearGradient",{attrs:{id:"placeholder-gradient"+i}},[e("stop",{attrs:{offset:"0%","stop-color":0===r?t.colorPlaceholderLight:t.colorPlaceholderDark}}),t._v(" "),e("stop",{attrs:{offset:"100%","stop-color":0===r?t.colorPlaceholderDark:t.colorPlaceholderLight}})],1)],1)]),t._v(" "),e("ul",{key:"list"+i,class:"placeholder-list placeholder-list"+i},t._l(t.count,(function(r){return e("li",{key:"placeholder"+i+r},[e("svg",{staticClass:"text-placeholder",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"url(#placeholder-gradient"+i+")"}},[e("rect",{staticClass:"text-placeholder-line-one",style:t.textPlaceholderData[0]}),t._v(" "),e("rect",{staticClass:"text-placeholder-line-two",style:t.textPlaceholderData[1]}),t._v(" "),e("rect",{staticClass:"text-placeholder-line-three",style:t.textPlaceholderData[2]}),t._v(" "),e("rect",{staticClass:"text-placeholder-line-four",style:t.textPlaceholderData[3]})])])})),0)]}))],2)}),[],!1,null,"5a5c7130",null).exports;var Vt=r(64024),Qt=r(24087),Kt=r(56737),Jt=r(32568),Xt=r(25110),te=r(42776),ee=r(47406),ie=r(22528),re=r(90402),ne=r(71927),oe=r(33587),se=r(91957),ae=r(51890),le=r(79835);const de=(t,e,i)=>Math.min(Math.max(parseInt(t),parseInt(e)),parseInt(i)),ce={name:"Assistant",components:{FloatingMenu:le.AH,ErrorIcon:Qt.Z,CreationIcon:Kt.Z,ClockOutline:Jt.Z,CheckCircleIcon:te.Z,DeleteIcon:Xt.Z,TextBoxPlusOutlineIcon:ee.Z,PencilIcon:ie.Z,TextShort:re.Z,FormatHeader1:ne.Z,Shuffle:oe.Z,TranslateVariant:se.Z,ClipboardTextOutlineIcon:ae.Z,NcActions:gt.O3,NcActionButton:gt.Js,NcActionSeparator:gt.rr,NcListItem:gt.hx,NcModal:gt.Jc},mixins:[g.Cy,g.fB,g.rz,g.a_],data:()=>({providers:OCP.InitialState.loadState("text","textprocessing"),selection:"",tasks:[],STATUS_FAILED:4,STATUS_RUNNING:2,STATUS_SCHEDULED:1,STATUS_SUCCESSFUL:3,STATUS_UNKNOWN:0,showTaskList:!1,canTranslate:(0,a.j)("text","translation_languages",[]).length>0}),computed:{showAssistant(){var t;return!this.$isRichWorkspace&&!this.$isPublic&&(null===(t=window)||void 0===t||null===(t=t.OCA)||void 0===t||null===(t=t.TPAssistant)||void 0===t?void 0:t.openAssistantForm)},identifier(){return"text-file:"+this.$file.fileId},badgeStateIcon(){return this.tasks.filter((t=>1===t.status||2===t.status)).length>0?Jt.Z:this.tasks.filter((t=>4===t.status)).length>0?Qt.Z:this.tasks.filter((t=>3===t.status)).length>0?te.Z:null}},beforeMount(){this.showAssistant&&(this.$editor.on("selectionUpdate",this.onSelection),this.fetchTasks(),(0,l.Ld)("notifications:notification:received",this.checkNotification))},beforeDestroy(){this.showAssistant&&(this.$editor.off("selectionUpdate",this.onSelection),(0,l.r1)("notifications:notification:received",this.checkNotification))},methods:{async fetchTasks(){const t=await $.Z.get((0,L.Ii)("/textprocessing/tasks/app/text")+"?identifier="+this.identifier),e={};for(const t in this.providers){const i=this.providers[t];e[i.task]=i}this.tasks=t.data.ocs.data.tasks.map((t=>({...t,title:e[t.type].name}))).sort(((t,e)=>e.id-t.id))},async checkNotification(t){"assistant"===t.notification.app&&"WEB"===t.notification.actions[0].type&&await this.fetchTasks()},onSelection(){const{state:t}=this.$editor,{from:e,to:i}=t.selection;this.selection=t.doc.textBetween(e,i," ")},async openAssistantForm(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;await window.OCA.TPAssistant.openAssistantForm({appId:"text",identifier:this.identifier,taskType:e,input:this.selection,isInsideViewer:!0,closeOnResult:!1,actionButtons:[{type:"primary",title:t("text","Insert result"),label:t("text","Insert result"),onClick:t=>{this.insertResult(t)}}]}),await this.fetchTasks()},openTranslateDialog(){this.selection.trim().length||this.$editor.commands.selectAll(),(0,l.j8)("text:translate-modal:show",{content:this.selection||""})},async openResult(t){var e;null===(e=window.OCA)||void 0===e||e.TPAssistant.openAssistantResult(t)},async insertResult(t){this.$editor.commands.insertContent(t.output),this.showTaskList=!1},async copyResult(e){try{await navigator.clipboard.writeText(e.output),(0,Vt.s$)(t("text","Nextcloud Assistant result copied")),this.showTaskList=!1}catch(e){console.error(e),(0,Vt.x2)(t("text","Could not copy result to clipboard"))}},async deleteTask(t){try{await $.Z.delete((0,L.Ii)("/textprocessing/task/".concat(t.id)))}catch(t){console.error("Failed to delete task",t)}const e=this.tasks.findIndex((e=>e.id===t.id));e>-1&&this.$delete(this.tasks,e)},floatingOptions(){return{placement:"right",getReferenceClientRect:()=>{const t=this.$parent.$el.querySelector(".ProseMirror").getBoundingClientRect(),e=(0,c.pr)(this.$editor.view,this.$editor.state.selection.from,this.$editor.state.selection.to);let i=0,r=0;return t.width<670&&(i=20),t.width<425&&(i=66,r=30),{...e,width:t.width-i,height:de(e.height,44,window.innerHeight),top:de(e.top,132,window.innerHeight-72)+r,left:t.left,right:t.right,bottom:de(e.top+44,72,window.innerHeight-132)+22}}}},floatingShow:()=>!0}};var Ae=r(78446),he={};he.styleTagTransform=V(),he.setAttributes=W(),he.insert=G().bind(null,"head"),he.domAPI=R(),he.insertStyleElement=H();z()(Ae.Z,he);Ae.Z&&Ae.Z.locals&&Ae.Z.locals;const pe=(0,J.Z)(ce,(function(){var t=this,e=t._self._c;return t.showAssistant?e("div",{staticClass:"text-assistant"},[t.$editor?e("FloatingMenu",{staticClass:"floating-menu",attrs:{editor:t.$editor,"tippy-options":t.floatingOptions(),"should-show":t.floatingShow,"data-cy":"assistantMenu"}},[e("NcActions",{attrs:{title:t.t("text","Nextcloud Assistant"),type:"secondary"},scopedSlots:t._u([{key:"icon",fn:function(){return[e("CreationIcon",{staticClass:"icon",attrs:{size:20}})]},proxy:!0}],null,!1,3374928481)},[t._v(" "),t._l(t.providers,(function(i){return e("NcActionButton",{key:i.task,attrs:{"close-after-click":""},on:{click:function(e){return t.openAssistantForm(i.task)}},scopedSlots:t._u([{key:"icon",fn:function(){return["OCP\\TextProcessing\\FreePromptTaskType"==i.task?e("PencilIcon",{attrs:{size:20}}):"OCP\\TextProcessing\\SummarizeTaskType"==i.task?e("TextShort",{attrs:{size:20}}):"OCP\\TextProcessing\\HeadlineTaskType"==i.task?e("FormatHeader1",{attrs:{size:20}}):"OCA\\OpenAi\\TextProcessing\\ReformulateTaskType"==i.task?e("Shuffle",{attrs:{size:20}}):e("CreationIcon")]},proxy:!0}],null,!0)},[t._v("\n\t\t\t\t"+t._s(i.name)+"\n\t\t\t")])})),t._v(" "),e("NcActionButton",{attrs:{"data-cy":"open-translate","close-after-click":""},on:{click:t.openTranslateDialog},scopedSlots:t._u([{key:"icon",fn:function(){return[e("TranslateVariant",{attrs:{size:20}})]},proxy:!0}],null,!1,722262457)},[t._v("\n\t\t\t\t"+t._s(t.t("text","Translate"))+"\n\t\t\t")]),t._v(" "),e("NcActionSeparator"),t._v(" "),e("NcActionButton",{attrs:{"close-after-click":""},on:{click:function(e){t.showTaskList=!0}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("CreationIcon",{attrs:{size:20}})]},proxy:!0}],null,!1,2994082090)},[t._v("\n\t\t\t\t"+t._s(t.t("text","Show assistant results"))+"\n\t\t\t")])],2),t._v(" "),t.badgeStateIcon?e(t.badgeStateIcon,{tag:"component",staticClass:"floating-menu--badge",attrs:{size:16}}):t._e()],1):t._e(),t._v(" "),e("NcModal",{attrs:{show:t.showTaskList},on:{"update:show":function(e){t.showTaskList=e}}},[e("div",{staticClass:"task-list"},[t.tasks.length>0?e("h4",[e("span",{staticClass:"assistant-bubble"},[e("CreationIcon",{staticClass:"icon",attrs:{size:16}}),t._v(" "),e("span",[t._v(t._s(t.t("text","Nextcloud Assistant")))])],1)]):t._e(),t._v(" "),t.tasks.length>0?e("ul",t._l(t.tasks,(function(i){return e("NcListItem",{key:i.id,attrs:{name:i.title,bold:!1,"force-display-actions":!0},on:{click:()=>t.openResult(i)},scopedSlots:t._u([{key:"subname",fn:function(){return[t._v("\n\t\t\t\t\t\t"+t._s(i.input)+"\n\t\t\t\t\t")]},proxy:!0},{key:"icon",fn:function(){return[i.status===t.STATUS_SUCCESSFUL?e("CheckCircleIcon",{staticClass:"icon-status--success",attrs:{size:20}}):i.status===t.STATUS_FAILED?e("ErrorIcon",{staticClass:"icon-status--failed",attrs:{size:20}}):e("ClockOutline",{attrs:{size:20}})]},proxy:!0},{key:"indicator",fn:function(){return[e("NcActions",{attrs:{inline:2}},[i.status===t.STATUS_SUCCESSFUL?e("NcActionButton",{attrs:{title:i.output},on:{click:function(e){return e.stopPropagation(),(()=>t.copyResult(i)).apply(null,arguments)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("ClipboardTextOutlineIcon",{attrs:{size:20}})]},proxy:!0}],null,!0)},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.t("text","Insert result"))+"\n\t\t\t\t\t\t\t")]):t._e()],1)]},proxy:!0},{key:"actions",fn:function(){return[i.status===t.STATUS_SUCCESSFUL?e("NcActionButton",{attrs:{title:i.output},on:{click:function(e){return e.stopPropagation(),(()=>t.openResult(i)).apply(null,arguments)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("CreationIcon",{attrs:{size:20}})]},proxy:!0}],null,!0)},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.t("text","Show result"))+"\n\t\t\t\t\t\t")]):t._e(),t._v(" "),i.status===t.STATUS_SUCCESSFUL?e("NcActionButton",{attrs:{title:i.output},on:{click:()=>t.insertResult(i)},scopedSlots:t._u([{key:"icon",fn:function(){return[e("TextBoxPlusOutlineIcon",{attrs:{size:20}})]},proxy:!0}],null,!0)},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.t("text","Insert result"))+"\n\t\t\t\t\t\t")]):t._e(),t._v(" "),e("NcActionButton",{on:{click:()=>t.deleteTask(i)},scopedSlots:t._u([{key:"icon",fn:function(){return[e("DeleteIcon",{attrs:{size:20}})]},proxy:!0}],null,!0)},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.t("text","Delete task"))+"\n\t\t\t\t\t\t")])]},proxy:!0}],null,!0)})})),1):t._e()])])],1):t._e()}),[],!1,null,"4c96cd80",null).exports;const ge={id:null,label:t("text","Detect language")},ue={name:"Translate",components:{NcModal:gt.Jc,NcButton:gt.P2,NcSelect:gt.QG,NcLoadingIcon:gt.lb,NcTextArea:gt.O9},mixins:[g.ww],props:{show:{type:Boolean,default:!1},content:{type:String,default:""}},data:()=>({input:"Hallo welt. Das ist ein Test.",result:"",fromLanguage:!0===(0,a.j)("text","translation_can_detect",!1)?ge:null,toLanguage:null,languages:(0,a.j)("text","translation_languages",[]),canDetect:(0,a.j)("text","translation_can_detect"),loading:!1,error:null,disableFromLanguageSelect:!0}),computed:{fromLanguages(){const e=this.canDetect?[ge]:[],i=new Set;for(const r of this.languages)i.has(r.from)||(i.add(r.from),e.push({id:r.from,label:this.$isMobile?t("text","Translate from {language}",{language:r.fromLabel}):r.fromLabel}));return e},toLanguages(){if(null===this.fromLanguage)return[];const e=this.languages.filter((t=>null===this.fromLanguage.id||t.from===this.fromLanguage.id)),i=[],r=new Set;for(const n of e)r.has(n.to)||(r.add(n.to),i.push({id:n.to,label:this.$isMobile?t("text","Translate to {language}",{language:n.toLabel}):n.toLabel}));return i}},watch:{content(){this.input=this.content},input(){this.result=null,this.error=null,this.autosize()},toLanguage(){this.result=null,this.error=null}},mounted(){this.input=this.content},methods:{async translate(){this.loading=!0;try{var e,i;const t=await $.Z.post((0,L.Ii)("translation/translate"),{text:this.input,fromLanguage:null!==(e=null===(i=this.fromLanguage)||void 0===i?void 0:i.id)&&void 0!==e?e:null,toLanguage:this.toLanguage.id});this.result=t.data.ocs.data.text}catch(e){console.error("Failed to translate",e),this.error=t("text","Translation failed")}finally{this.loading=!1}},async contentInsert(){this.$emit("insert-content",this.result)},async contentReplace(){this.$emit("replace-content",this.result)},autosize(){this.$refs.input.$refs.input.style.overflowY="hidden",this.$refs.input.$refs.input.style.height="auto";const t=this.$refs.input.$refs.input.scrollHeight+10;this.$refs.input.$refs.input.style.height=t+"px",this.$refs.result.$refs.input.style.height=t+"px",this.$refs.input.$refs.input.style.overflowY="auto"},onInputFocus(){this.disableFromLanguageSelect=!1,this.autosize()}}};var Ce=r(11305),me={};me.styleTagTransform=V(),me.setAttributes=W(),me.insert=G().bind(null,"head"),me.domAPI=R(),me.insertStyleElement=H();z()(Ce.Z,me);Ce.Z&&Ce.Z.locals&&Ce.Z.locals;const ve=(0,J.Z)(ue,(function(){var t=this,e=t._self._c;return e("NcModal",{attrs:{show:t.show,size:"large"},on:{close:function(e){return t.$emit("close")}}},[e("div",{staticClass:"translate-dialog"},[e("h2",[t._v(t._s(t.t("text","Translate")))]),t._v(" "),e("em",[t._v(t._s(t.t("text","To translate individual parts of the text, select it before using the translate function.")))]),t._v(" "),e("div",{staticClass:"wrapper"},[e("div",{staticClass:"col"},[e("div",{staticClass:"language-selector"},[e("label",{attrs:{for:"fromLanguage"}},[t._v(t._s(t.t("text","Translate from")))]),t._v(" "),e("NcSelect",{attrs:{"input-id":"fromLanguage",placeholder:t.t("text","Select language"),options:t.fromLanguages,disabled:t.disableFromLanguageSelect,"append-to-body":!1},model:{value:t.fromLanguage,callback:function(e){t.fromLanguage=e},expression:"fromLanguage"}})],1),t._v(" "),e("NcTextArea",{ref:"input",attrs:{value:t.input,label:t.t("text","Text to translate from"),autofocus:"","data-cy":"translate-input","input-class":"translate-textarea",resize:"none"},on:{"update:value":function(e){t.input=e},focus:t.onInputFocus}})],1),t._v(" "),e("div",{staticClass:"col"},[e("div",{staticClass:"language-selector"},[e("label",{attrs:{for:"toLanguage"}},[t._v(t._s(t.t("text","to")))]),t._v(" "),e("NcSelect",{attrs:{"input-id":"toLanguage",placeholder:t.t("text","Select language"),options:t.toLanguages,disabled:!t.fromLanguage,"append-to-body":!1},model:{value:t.toLanguage,callback:function(e){t.toLanguage=e},expression:"toLanguage"}})],1),t._v(" "),e("NcTextArea",{ref:"result",class:{"icon-loading":t.loading},attrs:{value:t.result,label:t.t("text","Translated text result"),readonly:"","input-class":"translate-textarea",resize:"none"},on:{"update:value":function(e){t.result=e}}})],1)]),t._v(" "),e("div",{staticClass:"translate-actions"},[t.loading?e("NcLoadingIcon"):t._e(),t._v(" "),t.result?t._e():e("NcButton",{attrs:{type:"primary",disabled:t.loading},on:{click:t.translate}},[t._v("\n\t\t\t\t"+t._s(t.t("text","Translate"))+"\n\t\t\t")]),t._v(" "),t.result&&t.content?e("NcButton",{attrs:{type:"secondary"},on:{click:t.contentReplace}},[t._v("\n\t\t\t\t"+t._s(t.t("text","Replace"))+"\n\t\t\t")]):t._e(),t._v(" "),t.result?e("NcButton",{attrs:{type:"primary"},on:{click:t.contentInsert}},[t._v("\n\t\t\t\t"+t._s(t.t("text","Insert"))+"\n\t\t\t")]):t._e()],1)])])}),[],!1,null,"8498603c",null).exports,be={name:"Editor",components:{SkeletonLoading:Yt,DocumentStatus:kt,Wrapper:Rt.Z,MainContainer:Nt.Z,ReadonlyBar:u.Z,ContentContainer:It.Z,MenuBar:Dt.Z,Reader:()=>Promise.all([r.e("mermaid"),r.e("vendors-node_modules_nextcloud_vue_dist_index_mjs"),r.e("vendors-node_modules_braintree_sanitize-url_dist_index_js-node_modules_quartzy_markdown-it-me-87eec1"),r.e("vendors-node_modules_nextcloud_dialogs_dist_chunks__plugin-vue2_normalizer-VrK6B12S_mjs-node_-38ea61"),r.e("vendors-node_modules_nextcloud_logger_dist_index_js-node_modules_path-normalize_lib_index_js--840af5"),r.e("src_extensions_index_js-src_components_Editor_EditorOutline_vue-data_image_svg_xml_3csvg_20xm-1ac8cb"),r.e("editor")]).then(r.bind(r,76483)),Status:zt,Assistant:pe,Translate:ve},mixins:[Pt,bt,St.Z],provide(){const t={};return Object.defineProperties(t,{[g.Uw]:{get:()=>this.$editor},[g.wU]:{get:()=>this.$syncService},[g.HB]:{get:()=>this.fileData},[g.FQ]:{get:()=>this.$attachmentResolver},[g.cY]:{get:()=>this.isPublic},[g.vo]:{get:()=>this.isRichEditor},[g.IT]:{get:()=>this.isRichWorkspace},[g.q$]:{get:()=>this.isMobile}}),t},inject:["isEmbedded"],props:{richWorkspace:{type:Boolean,require:!1,default:!1},initialSession:{type:Object,default:null},relativePath:{type:String,default:""},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},hideMenu:{type:Boolean,default:!1},isDirectEditing:{type:Boolean,default:!1},showOutlineOutside:{type:Boolean,default:!1}},data:()=>({IDLE_TIMEOUT:_.TY,document:null,sessions:[],currentSession:null,filteredSessions:{},idle:!1,dirty:!1,contentLoaded:!1,syncError:null,hasConnectionIssue:!1,hasEditor:!1,readOnly:!0,forceRecreate:!1,menubarLoaded:!1,draggedOver:!1,contentWrapper:null,translateModal:!1,translateContent:""}),computed:{...(0,o.rn)({showAuthorAnnotations:t=>t.text.showAuthorAnnotations}),isRichWorkspace(){return this.richWorkspace},hasSyncCollission(){return this.syncError&&this.syncError.type===_.QS.SAVE_COLLISSION},hasDocumentParameters(){return this.fileId||this.shareToken||this.initialSession},isPublic(){return this.isDirectEditing||document.getElementById("isPublic")&&"1"===document.getElementById("isPublic").value},isRichEditor(){return(0,a.j)("text","rich_editing_enabled",!0)&&"text/markdown"===this.mime},fileExtension(){return this.relativePath?this.relativePath.split("/").pop().split(".").pop():"txt"},currentDirectory(){return this.relativePath?this.relativePath.split("/").slice(0,-1).join("/"):"/"},displayed(){return this.currentSession&&this.active},displayedStatus(){return this.displayed||!!this.syncError},showLoadingSkeleton(){return!(this.contentLoaded&&this.displayed||this.syncError)},renderRichEditorMenus(){return this.contentLoaded&&this.isRichEditor&&!this.syncError&&!this.readOnly},renderMenus(){return this.contentLoaded&&!this.syncError},imagePath(){return this.relativePath.split("/").slice(0,-1).join("/")},fileData(){return{fileId:this.fileId,relativePath:this.relativePath,document:{...this.document}}}},watch:{displayed(){this.$nextTick((()=>{this.contentWrapper=this.$refs.contentWrapper}))}},mounted(){this.active&&this.hasDocumentParameters&&this.initSession(),this.richWorkspace||(window.addEventListener("beforeprint",this.preparePrinting),window.addEventListener("afterprint",this.preparePrinting)),(0,l.Ld)("text:image-node:add",this.onAddImageNode),(0,l.Ld)("text:image-node:delete",this.onDeleteImageNode),this.emit("update:loaded",!0),(0,p.yU7)(this.$el,(t=>{const e=t[0],{width:i}=e.contentRect,r=i-36;this.$el.style.setProperty("--widget-full-width","".concat(r,"px"))})),(0,l.Ld)("text:translate-modal:show",this.showTranslateModal)},created(){this.$ydoc=new h.QW,this.$queue=[],this.$providers=[],this.$editor=null,this.$syncService=null,this.$attachmentResolver=null},async beforeDestroy(){if(this.richWorkspace||(window.removeEventListener("beforeprint",this.preparePrinting),window.removeEventListener("afterprint",this.preparePrinting)),(0,l.r1)("text:image-node:add",this.onAddImageNode),(0,l.r1)("text:image-node:delete",this.onDeleteImageNode),this.dirty){const t=new Promise((t=>setTimeout(t,2e3)));await Promise.any([t,this.$syncService.save()])}this.$providers.forEach((t=>t.destroy())),(0,l.r1)("text:translate-modal:show",this.showTranslateModal)},methods:{initSession(){var t;if(!this.hasDocumentParameters)return void this.emit("error","No valid file provided");const e=localStorage.getItem("nick")?localStorage.getItem("nick"):"";this.$syncService=new _._U({guestName:e,shareToken:this.shareToken,filePath:this.relativePath,baseVersionEtag:null===(t=this.$syncService)||void 0===t?void 0:t.baseVersionEtag,forceRecreate:this.forceRecreate,serialize:this.isRichEditor?t=>(0,At.g)(this.$editor.schema).serialize(null!=t?t:this.$editor.state.doc):t=>(null!=t?t:this.$editor.state.doc).textContent,getDocumentState:()=>{return t=this.$ydoc,v(h.D$(t));var t}}),this.listenSyncServiceEvents(),this.$providers.forEach((t=>null==t?void 0:t.destroy())),this.$providers=[];const i=D({ydoc:this.$ydoc,syncService:this.$syncService,fileId:this.fileId,queue:this.$queue,initialSession:this.initialSession});this.$providers.push(i),this.forceRecreate=!1},listenEditorEvents(){this.$editor.on("focus",this.onFocus),this.$editor.on("blur",this.onBlur)},unlistenEditorEvents(){this.$editor.off("focus",this.onFocus),this.$editor.off("blur",this.onBlur)},listenSyncServiceEvents(){this.$syncService.on("opened",this.onOpened).on("change",this.onChange).on("loaded",this.onLoaded).on("sync",this.onSync).on("error",this.onError).on("stateChange",this.onStateChange).on("idle",this.onIdle).on("save",this.onSave)},unlistenSyncServiceEvents(){this.$syncService.off("opened",this.onOpened).off("change",this.onChange).off("loaded",this.onLoaded).off("sync",this.onSync).off("error",this.onError).off("stateChange",this.onStateChange).off("idle",this.onIdle).off("save",this.onSave)},reconnect(){this.contentLoaded=!1,this.hasConnectionIssue=!1,this.close().then(this.initSession),this.idle=!1},updateSessions(t){this.sessions=t.sort(((t,e)=>e.lastContact-t.lastContact));const e=this.sessions.find((t=>t.id===this.currentSession.id));(0,n.set)(this,"currentSession",e);const i=this.sessions.map((t=>t.userId)),r=this.sessions.map((t=>t.guestId)),o=Object.keys(this.filteredSessions).filter((t=>!i.includes(t)&&!r.includes(t)));for(const t in o)n.default.delete(this.filteredSessions,o[t]);for(const t in this.sessions){const e=this.sessions[t],i=e.displayName?e.userId:e.id;this.filteredSessions[i]?this.filteredSessions[i].lastContact<e.lastContact&&(0,n.set)(this.filteredSessions[i],"lastContact",e.lastContact):(0,n.set)(this.filteredSessions,i,e),e.id===this.currentSession.id&&(0,n.set)(this.filteredSessions[i],"isCurrent",!0)}},onOpened(t){let{document:e,session:i}=t;this.currentSession=i,this.document=e,this.readOnly=e.readOnly,this.$editor&&this.$editor.setEditable(!this.readOnly),this.lock=this.$syncService.lock,localStorage.setItem("nick",this.currentSession.guestName),this.$attachmentResolver=new I.Z({session:this.currentSession,user:(0,s.ts)(),shareToken:this.shareToken,currentDirectory:this.currentDirectory})},onLoaded(e){let{documentSource:i,documentState:n}=e;if(n){!function(t,e,i){const r=b(e);h.NG(t,r,i)}(this.$ydoc,n,this.$providers[0]);const t=function(t,e){const i=b(e),r=h.rL(i),n=h.gJ(t);if(s=n,(o=r).length===s.length&&o.every(((t,e)=>s[e]===t)))return;var o,s;const a=f.Mf();f.uE(a,y.Mr);const l=h.D$(t,r);return x.lr(a,l),f._f(a)}(this.$ydoc,n);t&&(C.k.debug("onLoaded: Pushing local changes to server"),this.$queue.push(t))}else this.setInitialYjsState(i,{isRichEditor:this.isRichEditor});this.hasConnectionIssue=!1;const o=T[this.fileExtension]||this.fileExtension;(this.isRichEditor?Promise.resolve():(async t=>{const e=at.Z.listLanguages();if(C.k.debug("Supported languages",{list:e}),!st.$.listLanguages().includes(t))try{C.k.debug("Loading language",t);const e=await r(63497)("./".concat(t));st.$.registerLanguage(t,e.default)}catch(t){C.k.debug("No matching highlighing found",{error:t})}})(o)).then((()=>{const e=this.currentSession;this.$editor?this.$syncService.startSync():(this.$editor=ct({language:o,relativePath:this.relativePath,session:e,onCreate:t=>{let{editor:e}=t;this.$syncService.startSync()},onUpdate:t=>{let{editor:e}=t;const i=this.$syncService.serialize(e.state.doc);this.emit("update:content",{markdown:i})},extensions:[A.configure({fileId:this.fileId}),d.mn.configure({document:this.$ydoc}),lt.lN.configure({provider:this.$providers[0],user:{name:null!=e&&e.userId?e.displayName:(null==e?void 0:e.guestName)||t("text","Guest"),color:null==e?void 0:e.color,clientId:this.$ydoc.clientID}})],enableRichEditing:this.isRichEditor,isEmbedded:this.isEmbedded}),this.hasEditor=!0,this.listenEditorEvents())}))},onChange(t){let{document:e,sessions:i}=t;this.updateSessions.bind(this)(i),this.document=e,this.syncError=null,this.$editor.setEditable(!this.readOnly)},onSync(t){let{steps:e,document:i}=t;this.hasConnectionIssue=!1,this.$nextTick((()=>{this.emit("sync-service:sync")})),this.document=i},onError(e){let{type:i,data:r}=e;this.$nextTick((()=>{var t;null===(t=this.$editor)||void 0===t||t.setEditable(!1),this.emit("sync-service:error")})),i===_.QS.LOAD_ERROR&&(this.syncError={type:i,data:r}),i!==_.QS.SAVE_COLLISSION||this.syncError&&this.syncError.type===_.QS.SAVE_COLLISSION||(this.contentLoaded=!0,this.syncError={type:i,data:r}),i!==_.QS.CONNECTION_FAILED||this.hasConnectionIssue||(this.hasConnectionIssue=!0,OC.Notification.showTemporary(t("text","Connection failed."))),i===_.QS.SOURCE_NOT_FOUND&&(this.hasConnectionIssue=!0),this.emit("ready")},onStateChange(t){t.initialLoading&&!this.contentLoaded&&(this.contentLoaded=!0,this.autofocus&&!this.readOnly&&this.$nextTick((()=>{this.$editor.commands.autofocus()})),this.emit("ready")),Object.prototype.hasOwnProperty.call(t,"dirty")&&this.$editor&&(this.$editor.can().undo()||this.$editor.can().redo())&&(this.dirty=t.dirty,this.dirty&&this.$syncService.autosave())},onIdle(){this.$syncService.close(),this.idle=!0,this.readOnly=!0,this.$editor.setEditable(!this.readOnly),this.$nextTick((()=>{this.emit("sync-service:idle")}))},onSave(){(0,l.j8)("files:file:updated",{fileid:this.fileId}),this.$nextTick((()=>{this.emit("sync-service:save")}))},onFocus(){this.emit("focus")},onBlur(){this.emit("blur")},onAddImageNode(){this.emit("add-image-node")},onDeleteImageNode(t){this.emit("delete-image-node",t)},async save(){await this.$syncService.save()},async close(){if(this.currentSession&&this.$syncService)try{await this.$syncService.close(),this.unlistenSyncServiceEvents(),this.currentSession=null,this.$syncService=null}catch(t){}if(this.$editor)try{this.unlistenEditorEvents(),this.$editor.destroy(),this.$editor=null,this.hasEditor=!1}catch(t){C.k.warn("Failed to destroy editor",{error:t})}return!0},emit(t,e){var i;this.$emit(t,e),null===(i=this.$parent)||void 0===i||i.$emit(t,e)},preparePrinting(t){const e=document.getElementById("content");e&&"beforeprint"===t.type?e.style.display="none":e&&(e.style.display="")},debugContent(t){const e=this.$syncService.serialize(t.state.doc),i=ht.Z.render(e);C.k.debug("markdown, serialized from editor state by prosemirror-markdown"),console.debug(e),C.k.debug("HTML, serialized from markdown by markdown-it"),console.debug(i),C.k.debug("HTML, as rendered in the browser by Tiptap"),console.debug(t.getHTML())},outlineToggled(t){this.emit("outline-toggled",t)},onKeyDown(t){if("Escape"!==t.key)return"Tab"!==t.key||t.shiftKey||t.ctrlKey||t.metaKey||!this.$editor.isActive("codeBlock")?void((t.ctrlKey||t.metaKey)&&"s"===t.key&&(this.$syncService.save(),t.preventDefault())):(this.$editor.commands.insertContent("\t"),this.$editor.commands.focus(),t.preventDefault(),void t.stopPropagation());t.preventDefault()},showTranslateModal(t){this.translateContent=t.content,this.translateModal=!0},hideTranslate(){this.translateModal=!1},translateInsert(t){this.$editor.commands.command((e=>{let{tr:i,commands:r}=e;return r.insertContentAt(i.selection.to,t)})),this.translateModal=!1},translateReplace(t){this.$editor.commands.command((e=>{let{tr:i,commands:r}=e;const n=i.selection,o={from:n.from,to:n.to};return r.insertContentAt(o,t)})),this.translateModal=!1}}},fe=be;var xe=r(46173),ye={};ye.styleTagTransform=V(),ye.setAttributes=W(),ye.insert=G().bind(null,"head"),ye.domAPI=R(),ye.insertStyleElement=H();z()(xe.Z,ye);xe.Z&&xe.Z.locals&&xe.Z.locals;var _e=r(29878),je={};je.styleTagTransform=V(),je.setAttributes=W(),je.insert=G().bind(null,"head"),je.domAPI=R(),je.insertStyleElement=H();z()(_e.Z,je);_e.Z&&_e.Z.locals&&_e.Z.locals;const we=(0,J.Z)(fe,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-editor",attrs:{id:"editor-container","data-text-el":"editor-container",tabindex:"-1"},on:{keydown:function(e){return e.stopPropagation(),t.onKeyDown.apply(null,arguments)}}},[t.displayedStatus?e("DocumentStatus",{attrs:{idle:t.idle,lock:t.lock,"sync-error":t.syncError,"has-connection-issue":t.hasConnectionIssue},on:{reconnect:t.reconnect}}):t._e(),t._v(" "),t.showLoadingSkeleton?e("SkeletonLoading"):t._e(),t._v(" "),t.displayed?e("Wrapper",{attrs:{"sync-error":t.syncError,"has-connection-issue":t.hasConnectionIssue,"content-loaded":t.contentLoaded,"show-author-annotations":t.showAuthorAnnotations,"show-outline-outside":t.showOutlineOutside},on:{"outline-toggled":t.outlineToggled}},[t.hasEditor?e("MainContainer",[t.readOnly?e("div",{staticClass:"text-editor--readonly-bar"},[t._t("readonlyBar",(function(){return[e("ReadonlyBar",[e("Status",{attrs:{document:t.document,dirty:t.dirty,sessions:t.filteredSessions,"sync-error":t.syncError,"has-connection-issue":t.hasConnectionIssue}})],1)]}))],2):[t.renderMenus?e("MenuBar",{ref:"menubar",attrs:{"is-hidden":t.hideMenu,loaded:t.menubarLoaded},on:{"update:loaded":function(e){t.menubarLoaded=e}}},[e("Status",{attrs:{document:t.document,dirty:t.dirty,sessions:t.filteredSessions,"sync-error":t.syncError,"has-connection-issue":t.hasConnectionIssue}}),t._v(" "),t._t("header")],2):e("div",{staticClass:"menubar-placeholder"})],t._v(" "),e("ContentContainer",{directives:[{name:"show",rawName:"v-show",value:t.contentLoaded,expression:"contentLoaded"}],ref:"contentWrapper"})],2):t._e(),t._v(" "),t.hasSyncCollission?e("Reader",{attrs:{content:t.syncError.data.outsideChange,"is-rich-editor":t.isRichEditor}}):t._e()],1):t._e(),t._v(" "),t.$editor?e("Assistant"):t._e(),t._v(" "),e("Translate",{attrs:{show:t.translateModal,content:t.translateContent},on:{"insert-content":t.translateInsert,"replace-content":t.translateReplace,close:t.hideTranslate}})],1)}),[],!1,null,"5c3f88f6",null).exports},49628:(t,e,i)=>{"use strict";i.d(e,{Z:()=>y});var r=i(79835),n=i(31728),o=i(28612),s=i(38105);const a={name:"ContentContainer",components:{EditorContent:r.kg,EditorOutline:s.Z},mixins:[n.Cy,o.vV],computed:{showOutline(){return this.$outlineState.visible}}};var l=i(93379),d=i.n(l),c=i(7795),A=i.n(c),h=i(90569),p=i.n(h),g=i(3565),u=i.n(g),C=i(19216),m=i.n(C),v=i(44589),b=i.n(v),f=i(47557),x={};x.styleTagTransform=b(),x.setAttributes=u(),x.insert=p().bind(null,"head"),x.domAPI=A(),x.insertStyleElement=m();d()(f.Z,x);f.Z&&f.Z.locals&&f.Z.locals;const y=(0,i(51900).Z)(a,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"content-wrapper text-editor__content-wrapper",class:{"--show-outline":t.showOutline},attrs:{"data-text-el":"editor-content-wrapper"}},[t.showOutline?e("div",{staticClass:"text-editor__content-wrapper__left"},[e("EditorOutline")],1):t._e(),t._v(" "),t._t("default"),t._v(" "),e("EditorContent",{staticClass:"editor__content text-editor__content",attrs:{role:"document",editor:t.$editor}}),t._v(" "),e("div",{staticClass:"text-editor__content-wrapper__right"})],2)}),[],!1,null,"7394eeaa",null).exports},43774:(e,i,r)=>{"use strict";r.d(i,{Z:()=>B});var n=r(77958),o=r(64024),s=r(69183),a=r(52029),l=r(31728),d=r(33528);const c=t=>t.split("/").slice(0,-1).join("/"),A={name:"MediaHandler",mixins:[l.Cy,l.a_,l.BG],provide(){const t={};return Object.defineProperties(t,{[d.gn]:{get:()=>this.showAttachmentPrompt},[d.eS]:{get:()=>this.chooseLocalFile},[d.uT]:{get:()=>this.state}}),t},data:()=>({lastFilePath:null,draggedOver:!1,state:{isUploadingAttachments:!1}}),computed:{initialFilePath(){var t,e,i;return null!==(t=this.lastFilePath)&&void 0!==t?t:c(null!==(e=null===(i=this.$file)||void 0===i?void 0:i.relativePath)&&void 0!==e?e:"/")}},methods:{setDraggedOver(t){this.draggedOver=t},onPaste(t){this.uploadAttachmentFiles(t.detail.files)},onEditorDrop(t){this.uploadAttachmentFiles(t.detail.files,t.detail.position),this.draggedOver=!1},onAttachmentUploadFilePicked(t){this.uploadAttachmentFiles(t.target.files),t.target.value=""},chooseLocalFile(){this.$refs.attachmentFileInput.click()},async uploadAttachmentFiles(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t)return;this.state.isUploadingAttachments=!0;const i=[...t].map((t=>this.uploadAttachmentFile(t,e)));return Promise.all(i).catch((t=>{var e;a.k.error("Uploading multiple images failed",{error:t}),(0,o.x2)((null==t||null===(e=t.response)||void 0===e||null===(e=e.data)||void 0===e?void 0:e.error)||t.message)})).then((()=>{this.state.isUploadingAttachments=!1}))},async uploadAttachmentFile(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.state.isUploadingAttachments=!0,this.$syncService.uploadAttachment(t).then((i=>{var r,n,o;this.insertAttachment(null===(r=i.data)||void 0===r?void 0:r.name,null===(n=i.data)||void 0===n?void 0:n.id,t.type,e,null===(o=i.data)||void 0===o?void 0:o.dirname)})).catch((t=>{var e;a.k.error("Uploading image failed",{error:t}),(0,o.x2)(null==t||null===(e=t.response)||void 0===e||null===(e=e.data)||void 0===e?void 0:e.error)})).then((()=>{this.state.isUploadingAttachments=!1}))},showAttachmentPrompt(){(0,n.ts)()&&OC.dialogs.filepicker(t("text","Insert an attachment"),(t=>{this.insertFromPath(t)}),!1,[],!0,void 0,this.initialFilePath)},insertFromPath(t){return this.lastFilePath=c(t),this.state.isUploadingAttachments=!0,this.$syncService.insertAttachmentFile(t).then((t=>{var e,i,r,n;this.insertAttachment(null===(e=t.data)||void 0===e?void 0:e.name,null===(i=t.data)||void 0===i?void 0:i.id,null===(r=t.data)||void 0===r?void 0:r.mimetype,null,null===(n=t.data)||void 0===n?void 0:n.dirname)})).catch((t=>{var e;a.k.error("Failed to insert image path",{error:t}),(0,o.x2)((null==t||null===(e=t.response)||void 0===e||null===(e=e.data)||void 0===e?void 0:e.error)||t.message)})).then((()=>{this.state.isUploadingAttachments=!1}))},insertAttachment(t,e,i){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;const n=(arguments.length>4&&void 0!==arguments[4]?arguments[4]:"")+"/"+encodeURIComponent(t).replace(/[!'()*]/g,(t=>"%"+t.charCodeAt(0).toString(16).toUpperCase())),o=t.replaceAll(/[[\]]/g,"");(r?this.$editor.chain().focus(r):this.$editor.chain()).setImage({src:n,alt:o}).run();const a=this.$editor.view.state.selection;a.empty||this.$editor.commands.focus(a.to),this.$editor.commands.scrollIntoView(),(0,s.j8)("text:image-node:add",null)}}};var h=r(51900);const p={name:"MainContainer",components:{MediaHandler:(0,h.Z)(A,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"editor editor-media-handler",class:{draggedOver:t.draggedOver},attrs:{"data-text-el":"editor-media-handler"},on:{"image-paste":t.onPaste,dragover:function(e){return e.preventDefault(),e.stopPropagation(),t.setDraggedOver(!0)},dragleave:function(e){return e.preventDefault(),e.stopPropagation(),t.setDraggedOver(!1)},"file-drop":t.onEditorDrop}},[e("input",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"attachmentFileInput",attrs:{"data-text-el":"attachment-file-input",type:"file",accept:"*/*",multiple:""},on:{change:t.onAttachmentUploadFilePicked}}),t._v(" "),t._t("default")],2)}),[],!1,null,null,null).exports},mixins:[l.eP]};var g=r(93379),u=r.n(g),C=r(7795),m=r.n(C),v=r(90569),b=r.n(v),f=r(3565),x=r.n(f),y=r(19216),_=r.n(y),j=r(44589),w=r.n(j),k=r(69229),M={};M.styleTagTransform=w(),M.setAttributes=x(),M.insert=b().bind(null,"head"),M.domAPI=m(),M.insertStyleElement=_();u()(k.Z,M);k.Z&&k.Z.locals&&k.Z.locals;const B=(0,h.Z)(p,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"editor"},[t.$editorUpload?e("MediaHandler",{staticClass:"text-editor__main"},[t._t("default")],2):t._t("default")],2)}),[],!1,null,"8ffa875e",null).exports},23499:(t,e,i)=>{"use strict";i.d(e,{default:()=>C});var r=i(80676),n=i(43774),o=i(37531),s=i(73845),a=i(78825),l=i(77958),d=i(31728),c=i(32892),A=i(207),h=i(65122),p=i(22927),g=i(74369);const u={name:"MarkdownContentEditor",components:{ContentContainer:i(49628).Z,ReadonlyBar:g.Z,MenuBar:o.Z,MainContainer:n.Z,Wrapper:r.Z},provide(){const t={};return Object.defineProperties(t,{[d.Uw]:{get:()=>this.$editor},[d.FQ]:{get:()=>{var t;return null!==(t=this.$attachmentResolver)&&void 0!==t?t:null}},[d.vo]:{get:()=>!0}}),t},props:{fileId:{type:Number,default:null},content:{type:String,required:!0},readOnly:{type:Boolean,default:!1},relativePath:{type:String,default:""},shareToken:{type:String,default:null},showOutlineOutside:{type:Boolean,default:!1}},emits:["update:content"],computed:{htmlContent(){return this.renderHtml(this.content)}},watch:{content(){this.updateContent()}},created(){var t;(this.$editor=this.createEditor(),this.$editor.setEditable(!this.readOnly),this.fileId)&&(this.$attachmentResolver=new A.Z({currentDirectory:null===(t=this.relativePath)||void 0===t?void 0:t.match(/.*\//),user:(0,l.ts)(),shareToken:this.shareToken,fileId:this.fileId}))},updated(){this.$editor.setEditable(!this.readOnly)},beforeDestroy(){this.$editor.destroy()},methods:{renderHtml:t=>h.Z.render(t),extensions(){return[p.Ho.configure({component:this,extensions:[a.Z]})]},createEditor(){return new s.ML({content:this.htmlContent,extensions:this.extensions(),onUpdate:t=>{let{editor:e}=t;const i=(0,c.g)(this.$editor.schema).serialize(e.state.doc);this.emit("update:content",{json:e.state.doc,markdown:i})},onCreate:t=>{let{editor:e}=t;this.$emit("ready"),this.$parent.$emit("ready")}})},updateContent(){this.$editor.commands.setContent(this.htmlContent,!0)},outlineToggled(t){this.emit("outline-toggled",t)},emit(t,e){var i;this.$emit(t,e),null===(i=this.$parent)||void 0===i||i.$emit(t,e)}}};const C=(0,i(51900).Z)(u,(function(){var t=this,e=t._self._c;return e("Wrapper",{attrs:{"content-loaded":!0,"show-outline-outside":t.showOutlineOutside},on:{"outline-toggled":t.outlineToggled}},[e("MainContainer",[t.readOnly?t._t("readonlyBar",(function(){return[e("ReadonlyBar")]})):e("MenuBar",{attrs:{autohide:!1}}),t._v(" "),e("ContentContainer")],2)],1)}),[],!1,null,"64ff351a",null).exports},80676:(t,e,i)=>{"use strict";i.d(e,{Z:()=>_});var r=i(86536),n=i(31728),o=i(28612),s=i(13815),a=i(20629);const l={name:"Wrapper",mixins:[s.Z,n.QT,n.rz],provide(){const t={};return Object.defineProperties(t,{[o.Dr]:{get:()=>this.outline},[o.aM]:{get:()=>({toggle:this.outlineToggle})}}),t},props:{syncError:{type:Object,default:null},hasConnectionIssue:{type:Boolean,default:!1},contentLoaded:{type:Boolean,default:!0},showAuthorAnnotations:{type:Boolean,default:!1},showOutlineOutside:{type:Boolean,default:!1}},data:()=>({outline:{visible:!1,enable:!1}}),computed:{...(0,a.rn)({viewWidth:t=>t.text.viewWidth}),hasSyncCollission(){return this.syncError&&this.syncError.type===r.QS.SAVE_COLLISSION},showOutline(){return!!this.isAbleToShowOutline&&this.outline.visible},isAbleToShowOutline(){return!this.$isRichWorkspace&&this.viewWidth>1265}},watch:{showOutlineOutside(){this.outline.visible=this.showOutlineOutside}},mounted(){this.outline.enable=this.isAbleToShowOutline,this.$watch((()=>this.isAbleToShowOutline),(t=>{Object.assign(this.outline,{enable:t})}))},methods:{outlineToggle(){this.outline.visible=!this.outline.visible,this.$emit("outline-toggled",this.outline.visible)}}};var d=i(93379),c=i.n(d),A=i(7795),h=i.n(A),p=i(90569),g=i.n(p),u=i(3565),C=i.n(u),m=i(19216),v=i.n(m),b=i(44589),f=i.n(b),x=i(80270),y={};y.styleTagTransform=f(),y.setAttributes=C(),y.insert=g().bind(null,"head"),y.domAPI=h(),y.insertStyleElement=v();c()(x.Z,y);x.Z&&x.Z.locals&&x.Z.locals;const _=(0,i(51900).Z)(l,(function(){var t=this;return(0,t._self._c)("div",{staticClass:"text-editor__wrapper",class:{"has-conflicts":t.hasSyncCollission,"is-rich-workspace":t.$isRichWorkspace,"is-rich-editor":t.$isRichEditor,"show-color-annotations":t.showAuthorAnnotations}},[t._t("default")],2)}),[],!1,null,"55273a24",null).exports},44720:(e,i,r)=>{"use strict";r.d(i,{Z:()=>C});var n=r(34627),o=r(76115);const s={name:"NcActionButton",components:{NextcloudVueNcActionButton:n.Js},extends:o.b,mounted(){this.$editor.on("transaction",(()=>this.updateState()))},methods:{runAction(){const{actionEntry:t}=this;var e;t.click?t.click(this):null===(e=t.action(this.$editor.chain().focus()))||void 0===e||e.run();this.$nextTick((()=>{this.$emit("trigged",{...t})}))}}};var a=r(51900);const l=(0,a.Z)(s,(function(){var t=this,e=t._self._c;return e("NextcloudVueNcActionButton",t._g({staticClass:"entry-single-action entry-action entry-action-item",class:t.state.class,attrs:{disabled:t.state.disabled,"aria-keyshortcuts":t.keyshortcuts||void 0,"data-text-action-entry":t.actionEntry.key,type:t.state.type,"model-value":"button"!==t.state.type?t.state.active:void 0,"close-after-click":""},on:{click:t.runAction},scopedSlots:t._u([{key:"icon",fn:function(){return[e(t.icon,{tag:"component"})]},proxy:!0}])},t.$listeners),[t._v("\n\t"+t._s(t.label)+"\n")])}),[],!1,null,null,null).exports;var d=r(72076),c=r(28612),A=r(13815),h=r(60948),p=r(20296),g=r.n(p);const u={name:"ActionList",components:{NcActions:n.O3,NcActionSeparator:n.rr,ActionListItem:l},extends:o.b,mixins:[A.Z,c.vV,h.q],props:{forceEnabled:{type:Boolean,default:!1}},data:()=>({visible:!1,hasEnabledChild:!0}),computed:{currentChild(){const{state:t,$editor:e,actionEntry:{children:i}}=this;return t.active?i.find((t=>(0,d.vK)(t,e))):null},icon(){return this.currentChild?this.currentChild.icon:this.actionEntry.icon},iconKey(){return"".concat(this.actionEntry.key,"/").concat(this.activeKey)},activeKey(){var t;return null===(t=this.currentChild)||void 0===t?void 0:t.key},children(){return this.actionEntry.children.filter((t=>{let{visible:e}=t;return void 0===e||("function"==typeof e?e(this):e)}))},labelWithSelected(){return this.currentChild?t("text",'{menuItemName}, "{selectedSubMenuItemName}" is selected',{menuItemName:this.actionEntry.label,selectedSubMenuItemName:this.currentChild.label}):this.actionEntry.label},isEnabled(){return this.forceEnabled||this.hasEnabledChild}},mounted(){this.$_updateState=g()(this.checkStateOfChildren.bind(this),50),this.$editor.on("update",this.$_updateState),this.$editor.on("selectionUpdate",this.$_updateState)},beforeDestroy(){this.$editor.off("update",this.$_updateState),this.$editor.off("selectionUpdate",this.$_updateState)},methods:{onOpenChange(t){this.visible=t},runAction(){},onTrigger(t){null!=t&&t.click||(this.$editor.chain().focus().run(),this.$emit("trigged",t))},checkStateOfChildren(){this.hasEnabledChild=this.children.some((t=>this.isChildEnabled(t)))},isChildEnabled(t){return!t.isSeparator&&!(0,d.wr)(t,this.$editor).disabled}}};const C=(0,a.Z)(u,(function(){var t=this,e=t._self._c;return e("NcActions",t._b({staticClass:"entry-list-action entry-action",attrs:{title:t.tooltip,container:t.menuIDSelector,"aria-label":t.labelWithSelected,type:t.state.active?"primary":"tertiary","force-menu":!0,"data-text-action-entry":t.actionEntry.key,"data-text-action-active":t.activeKey,disabled:!t.isEnabled},on:{"update:open":t.onOpenChange},scopedSlots:t._u([{key:"icon",fn:function(){return[e(t.icon,{key:t.iconKey,tag:"component"})]},proxy:!0}])},"NcActions",t.state,!1),[t._v(" "),t._l(t.children,(function(i){var r;return[i.isSeparator?e("NcActionSeparator",{key:"child-".concat(i.key)}):e("ActionListItem",t._g({key:"child-".concat(i.key),attrs:{active:(null===(r=t.currentChild)||void 0===r?void 0:r.key)===i.key,"is-item":"","action-entry":i},on:{trigged:t.onTrigger}},t.$listeners))]})),t._v(" "),t._t("lastAction",null,null,{visible:t.visible})],2)}),[],!1,null,null,null).exports},92722:(t,e,i)=>{"use strict";i.d(e,{Z:()=>s});var r=i(34627),n=i(76115);const o={name:"ActionSingle",components:{NcButton:r.P2},extends:n.b,props:{isItem:{type:Boolean,default:!1}},mounted(){this.$editor.on("transaction",(()=>this.updateState()))},methods:{runAction(){const{actionEntry:t}=this;var e;t.click?t.click(this):null===(e=t.action(this.$editor.chain().focus()))||void 0===e||e.run();this.$nextTick((()=>{this.$emit("trigged",{...t})}))}}};const s=(0,i(51900).Z)(o,(function(){var t=this,e=t._self._c;return e("NcButton",t._g({staticClass:"entry-single-action entry-action",class:t.state.class,attrs:{disabled:t.state.disabled,"aria-keyshortcuts":t.keyshortcuts||void 0,"data-text-action-entry":t.actionEntry.key,"aria-label":t.label,title:t.tooltip,type:"tertiary",pressed:"button"!==t.state.type?t.state.active:void 0},on:{click:t.runAction},scopedSlots:t._u([{key:"icon",fn:function(){return[e(t.icon,{tag:"component"})]},proxy:!0},t.actionEntry.forceLabel?{key:"default",fn:function(){return[t._v("\n\t\t"+t._s(t.label)+"\n\t")]},proxy:!0}:null],null,!0)},t.$listeners))}),[],!1,null,null,null).exports},37531:(t,e,i)=>{"use strict";i.d(e,{Z:()=>R});var r=i(34627),n=i(43554),o=i(66309),s=i(69183),a=i(20144),l=i(32318);const d=(0,a.defineComponent)({name:"NcActionButton",components:{NextcloudVueNcActionButton:r.Js,Help:l.WW}});var c=i(51900);const A=(0,c.Z)(d,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("NextcloudVueNcActionButton",t._g({attrs:{"close-after-click":"","data-text-action-entry":"formatting-help"},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Help")]},proxy:!0}])},t.$listeners),[t._v("\n\t"+t._s(t.t("text","Formatting help"))+"\n")])}),[],!1,null,null,null).exports;var h=i(44720),p=i(92722),g=i(31352),u=i(31728);const C=(0,a.defineComponent)({name:"CharacterCount",components:{AlphabeticalVariant:l.Pn,NcActionText:r.L1},mixins:[u.Cy],props:{visible:Boolean},data:()=>({wordCount:0,charCount:0}),computed:{countString(){return"".concat((0,g.uN)("text","%n word","%n words",this.wordCount),", ").concat((0,g.uN)("text","%n char","%n chars",this.charCount))}},watch:{visible:"refresh"},created(){this.refresh()},methods:{refresh(){this.wordCount=this.$editor.storage.characterCount.words(),this.charCount=this.$editor.storage.characterCount.characters()}}});const m=(0,c.Z)(C,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("NcActionText",{attrs:{"data-text-action-entry":"character-count"},scopedSlots:t._u([{key:"icon",fn:function(){return[e("AlphabeticalVariant")]},proxy:!0},{key:"default",fn:function(){return[t._v("\n\t\t"+t._s(t.countString)+"\n\t")]},proxy:!0}])})}),[],!1,null,null,null).exports;const v={name:"HelpModal",components:{NcDialog:r.a0},data:()=>({formatted:{bold:!0,italic:!0,strikethrough:!0,heading1:!0,heading6:!0,unorderdList:!0,orderedList:!0,checkList:!0,blockQuote:!0,codeBlock:!0}}),computed:{isFormatted(){return t=>this.formatted[t]},isMobileCached(){return this.isMobilePlatform()}},methods:{toggleFormatted(t){this.formatted[t]=!this.formatted[t]},isMobilePlatform:function(){var t;return void 0!==(null===(t=navigator)||void 0===t||null===(t=t.userAgentData)||void 0===t?void 0:t.mobile)?navigator.userAgentData.mobile:[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/playbook/i,/silk/i,/BlackBerry/i,/Windows Phone/i].some((t=>navigator.userAgent.match(t)))}}};var b=i(93379),f=i.n(b),x=i(7795),y=i.n(x),_=i(90569),j=i.n(_),w=i(3565),k=i.n(w),M=i(19216),B=i.n(M),E=i(44589),P=i.n(E),S=i(64260),D={};D.styleTagTransform=P(),D.setAttributes=k(),D.insert=j().bind(null,"head"),D.domAPI=y(),D.insertStyleElement=B();f()(S.Z,D);S.Z&&S.Z.locals&&S.Z.locals;const I=(0,c.Z)(v,(function(){var t=this,e=t._self._c;return e("NcDialog",{attrs:{size:"normal","data-text-el":"formatting-help",name:t.t("text","Formatting help"),"close-on-click-outside":!0},on:{closing:function(e){return t.$emit("close")}}},[e("h2",[t._v(t._s(t.t("text","Formatting help")))]),t._v(" "),e("p",[t._v(t._s(t.t("text","Speed up your writing with simple shortcuts.")))]),t._v(" "),t.isMobileCached?e("p",[t._v("\n\t\t"+t._s(t.t("text","Just type the Markdown syntax from below."))+"\n\t")]):e("p",[t._v("\n\t\t"+t._s(t.t("text","Just type the Markdown syntax or use keyboard shortcuts from below."))+"\n\t")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v(t._s(t.t("text","Style")))]),t._v(" "),e("th",[t._v(t._s(t.t("text","Syntax")))]),t._v(" "),t.isMobileCached?t._e():e("th",[t._v("\n\t\t\t\t\t"+t._s(t.t("text","Keyboard shortcuts"))+"\n\t\t\t\t")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v(t._s(t.t("text","New paragraph")))]),t._v(" "),e("td",[e("kbd",[t._v(t._s(t.t("text","Enter")))])]),t._v(" "),t.isMobileCached?t._e():e("td")]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Hard line break")))]),t._v(" "),e("td",[e("kbd",[t._v(t._s(t.t("text","Enter")))]),t._v("\n\t\t\t\t\t"+t._s(t.t("text","followed by"))+"\n\t\t\t\t\t"),e("kbd",[t._v(t._s(t.t("text","Backspace")))])]),t._v(" "),t.isMobileCached?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Shift")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v(t._s(t.t("text","Enter")))])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Bold")))]),t._v(" "),e("td",[e("code",[t._v("**"+t._s(t.t("text","Bold text"))+"**")])]),t._v(" "),t.isMobileCached?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("B")])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Italic")))]),t._v(" "),e("td",[e("code",[t._v("*"+t._s(t.t("text","Italicized text"))+"*")])]),t._v(" "),t.isMobileCached?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("I")])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Strikethrough")))]),t._v(" "),e("td",[e("code",[t._v("~~"+t._s(t.t("text","Mistaken text"))+"~~")])]),t._v(" "),t.isMobileCached?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v(t._s(t.t("text","Shift")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("S")])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Underline")))]),t._v(" "),e("td",[e("code",[t._v("__"+t._s(t.t("text","Underlined text"))+"__")])]),t._v(" "),t.isMobileCached?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("U")])])]),t._v(" "),e("tr",[e("td",{staticClass:"ellipsis_top"},[t._v("\n\t\t\t\t\t"+t._s(t.t("text","Heading 1"))+"\n\t\t\t\t")]),t._v(" "),e("td",{staticClass:"ellipsis_top"},[e("code",[t._v("# "+t._s(t.t("text","Heading level 1")))])]),t._v(" "),t.isMobileCached?t._e():e("td",{staticClass:"ellipsis_top"},[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v(t._s(t.t("text","Shift")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("1")])])]),t._v(" "),e("tr",[e("td",{staticClass:"noborder ellipsis"},[t._v("\n\t\t\t\t\t…\n\t\t\t\t")]),t._v(" "),e("td",{staticClass:"noborder ellipsis"},[t._v("\n\t\t\t\t\t…\n\t\t\t\t")]),t._v(" "),t.isMobileCached?t._e():e("td",{staticClass:"ellipsis noborder"},[t._v("\n\t\t\t\t\t…\n\t\t\t\t")])]),t._v(" "),e("tr",[e("td",{staticClass:"noborder ellipsis_bottom"},[t._v("\n\t\t\t\t\t"+t._s(t.t("text","Heading 6"))+"\n\t\t\t\t")]),t._v(" "),e("td",{staticClass:"noborder ellipsis_bottom"},[e("code",[t._v("###### "+t._s(t.t("text","Heading level 6")))])]),t._v(" "),t.isMobileCached?t._e():e("td",{staticClass:"noborder ellipsis_bottom"},[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v(t._s(t.t("text","Shift")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("6")])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Unordered list")))]),t._v(" "),e("td",[e("code",[t._v("* "+t._s(t.t("text","An item")))])]),t._v(" "),t.isMobileCached?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v(t._s(t.t("text","Shift")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("8")])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Ordered list")))]),t._v(" "),e("td",[e("code",[t._v("1. "+t._s(t.t("text","First item")))])]),t._v(" "),t.isMobileCached?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v(t._s(t.t("text","Shift")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("7")])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Checklist")))]),t._v(" "),e("td",[e("code",[t._v("* [] "+t._s(t.t("text","To-Do item")))])]),t._v(" "),t.isMobileCached?t._e():e("td")]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Blockquote")))]),t._v(" "),e("td",[e("code",[t._v("> "+t._s(t.t("text","Quoted text")))])]),t._v(" "),t.isMobileCached?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v(">")])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Code block")))]),t._v(" "),e("td",[e("code",[t._v("``` "+t._s(t.t("text","Some code")))])]),t._v(" "),t.isMobileCached?t._e():e("td")])])])])}),[],!1,null,"0b17af4e",null).exports;var T=i(52447),$=i(95906),L=i(60948);const O={name:"MenuBar",components:{ActionFormattingHelp:A,ActionList:h.Z,ActionSingle:p.Z,HelpModal:I,NcActionSeparator:r.rr,NcActionButton:r.Js,CharacterCount:m,TranslateVariant:l.Fq},extends:T.Z,mixins:[u.Cy,u.ww,u.QT,u.rz],provide(){const t={};return Object.defineProperties(t,{[L.V]:{get:()=>this.randomID}}),t},props:{isHidden:{type:Boolean,default:!1}},data:()=>({entries:[...$.Z],randomID:"menu-bar-".concat(Math.ceil(1e4*Math.random()+500).toString(16)),displayHelp:!1,isReady:!1,canTranslate:(0,n.j)("text","translation_languages",[]).length>0,resize:null,iconsLimit:4}),computed:{visibleEntries(){return this.entries.filter((t=>{let{priority:e}=t;return void 0===e||e<=this.iconsLimit}))},hiddenEntries(){const t=this.entries.filter((t=>{let{priority:e}=t;return void 0!==e&&e>this.iconsLimit})),e=t.reduce(((e,i,r)=>{var n;const o=null!==(n=i.children)&&void 0!==n?n:[i];if(o.length>1){const n=e.length&&!e.at(-1).isSeparator?[{key:"separator-before-".concat(i.id),isSeparator:!0}]:[],s=r!==t.length-1?[{key:"separator-after-".concat(i.id),isSeparator:!0}]:[];return[...e,...n,...o,...s]}return[...e,...o]}),[]);return{key:"remain",label:this.t("text","Remaining actions"),icon:l.BF,children:e}}},mounted(){this.resize=(0,o.yU7)(this.$refs.menubar,this.onResize),this.$nextTick((()=>{this.isReady=!0,this.$emit("update:loaded",!0)}))},beforeDestroy(){var t;null===(t=this.resize)||void 0===t||t.stop()},methods:{onResize(t){const e=t[0],{width:i}=e.contentRect,r=i-4,n=this.$isMobile?44:46,o=Math.floor(r/n);this.iconsLimit=o-1,this.isReady=!0},showHelp(){this.displayHelp=!0},hideHelp(){this.displayHelp=!1},showTranslate(){const{from:t,to:e}=this.$editor.view.state.selection;let i=this.$editor.view.state.doc.textBetween(t,e," ");i.trim().length||(this.$editor.commands.selectAll(),i=this.$editor.view.state.doc.textContent),console.debug("translation click",this.$editor.view.state.selection,i),(0,s.j8)("text:translate-modal:show",{content:i})}}},Z=O;var z=i(57172),N={};N.styleTagTransform=P(),N.setAttributes=k(),N.insert=j().bind(null,"head"),N.domAPI=y(),N.insertStyleElement=B();f()(z.Z,N);z.Z&&z.Z.locals&&z.Z.locals;const R=(0,c.Z)(Z,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-menubar",class:{"text-menubar--ready":t.isReady,"text-menubar--hide":t.isHidden,"text-menubar--is-workspace":t.$isRichWorkspace},attrs:{id:t.randomID,"data-text-el":"menubar",role:"region","aria-label":t.t("text","Editor actions")}},[t.displayHelp?e("HelpModal",{on:{close:t.hideHelp}}):t._e(),t._v(" "),t.$isRichEditor?e("div",{ref:"menubar",staticClass:"text-menubar__entries",attrs:{role:"toolbar","aria-label":t.t("text","Formatting menu bar")},on:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),t.handleToolbarNavigation.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])||"button"in e&&2!==e.button?null:(e.stopPropagation(),t.handleToolbarNavigation.apply(null,arguments))}]}},[t._l(t.visibleEntries,(function(i,r){return e(i.component?i.component:i.children?"ActionList":"ActionSingle",{key:i.key,ref:"menuEntries",refInFor:!0,tag:"component",attrs:{"action-entry":i,"can-be-focussed":t.activeMenuEntry===r},on:{disabled:function(e){return t.disableMenuEntry(i.key,e)},click:function(e){t.activeMenuEntry=r}}})})),t._v(" "),e("ActionList",{ref:"remainingEntries",attrs:{"action-entry":t.hiddenEntries,"can-be-focussed":t.activeMenuEntry===t.visibleEntries.length,"force-enabled":!0},on:{click:function(e){t.activeMenuEntry="remain"}},scopedSlots:t._u([{key:"lastAction",fn:function(i){let{visible:r}=i;return[t.canTranslate?e("NcActionButton",{attrs:{"close-after-click":""},on:{click:t.showTranslate},scopedSlots:t._u([{key:"icon",fn:function(){return[e("TranslateVariant")]},proxy:!0}],null,!0)},[t._v("\n\t\t\t\t\t"+t._s(t.t("text","Translate"))+"\n\t\t\t\t")]):t._e(),t._v(" "),e("ActionFormattingHelp",{on:{click:t.showHelp}}),t._v(" "),e("NcActionSeparator"),t._v(" "),e("CharacterCount",t._b({},"CharacterCount",{visible:r},!1))]}}],null,!1,2258818168)})],2):t._e(),t._v(" "),e("div",{staticClass:"text-menubar__slot"},[t._t("default")],2)],1)}),[],!1,null,"0b381e60",null).exports},74369:(t,e,i)=>{"use strict";i.d(e,{Z:()=>_});var r=i(20144),n=i(95906),o=i(44720),s=i(92722),a=i(52447);const l=(0,r.defineComponent)({name:"ReadonlyBar",components:{ActionList:o.Z,ActionSingle:s.Z},extends:a.Z,data:()=>({entries:n.E})});var d=i(93379),c=i.n(d),A=i(7795),h=i.n(A),p=i(90569),g=i.n(p),u=i(3565),C=i.n(u),m=i(19216),v=i.n(m),b=i(44589),f=i.n(b),x=i(21058),y={};y.styleTagTransform=f(),y.setAttributes=C(),y.insert=g().bind(null,"head"),y.domAPI=h(),y.insertStyleElement=v();c()(x.Z,y);x.Z&&x.Z.locals&&x.Z.locals;const _=(0,i(51900).Z)(l,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"text-readonly-bar",attrs:{"data-text-el":"readonly-bar"}},[e("div",{ref:"menubar",staticClass:"text-readonly-bar__entries",attrs:{role:"toolbar","aria-label":t.t("text","Editor actions")}},t._l(t.visibleEntries,(function(i,r){return e(i.component?i.component:i.children?"ActionList":"ActionSingle",{key:i.key,ref:"menuEntries",refInFor:!0,tag:"component",attrs:{"action-entry":i,"can-be-focussed":t.activeMenuEntry===r},on:{disabled:function(e){return t.disableMenuEntry(i.key,e)}}})})),1),t._v(" "),e("div",{staticClass:"text-menubar__slot"},[t._t("default")],2)])}),[],!1,null,"27a921ca",null).exports},91124:(t,e,i)=>{"use strict";i.d(e,{Z:()=>d});var r=i(83416),n=i(95573),o=i.n(n),s=i(75578),a=i(22927);const l={name:"PlainTextReader",components:{BaseReader:s.Z},provide:{renderHtml:t=>"<pre>"+o()(t)+"</pre>",extensions:()=>[a.f3,r.ZP]},props:{content:{type:String,required:!0}}};const d=(0,i(51900).Z)(l,(function(){return(0,this._self._c)("BaseReader",{attrs:{content:this.content}})}),[],!1,null,null,null).exports},76483:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>f});var r=i(91124),n=i(97009);const o={name:"Reader",components:{PlainTextReader:r.Z,RichTextReader:n.Z},props:{content:{type:String,required:!0},isRichEditor:{type:Boolean,default:!0}}};var s=i(93379),a=i.n(s),l=i(7795),d=i.n(l),c=i(90569),A=i.n(c),h=i(3565),p=i.n(h),g=i(19216),u=i.n(g),C=i(44589),m=i.n(C),v=i(44689),b={};b.styleTagTransform=m(),b.setAttributes=p(),b.insert=A().bind(null,"head"),b.domAPI=d(),b.insertStyleElement=u();a()(v.Z,b);v.Z&&v.Z.locals&&v.Z.locals;const f=(0,i(51900).Z)(o,(function(){var t=this,e=t._self._c;return t.isRichEditor?e("RichTextReader",{attrs:{content:t.content}}):e("PlainTextReader",{attrs:{content:t.content}})}),[],!1,null,null,null).exports},97009:(t,e,i)=>{"use strict";i.d(e,{Z:()=>x});var r=i(75578),n=i(22927),o=i(65122);const s={name:"RichTextReader",components:{BaseReader:r.Z},provide:{renderHtml:t=>o.Z.render(t),extensions:()=>[n.Ho.configure({editing:!1})]},props:{content:{type:String,required:!0}}};var a=i(93379),l=i.n(a),d=i(7795),c=i.n(d),A=i(90569),h=i.n(A),p=i(3565),g=i.n(p),u=i(19216),C=i.n(u),m=i(44589),v=i.n(m),b=i(36993),f={};f.styleTagTransform=v(),f.setAttributes=g(),f.insert=h().bind(null,"head"),f.domAPI=c(),f.insertStyleElement=C();l()(b.Z,f);b.Z&&b.Z.locals&&b.Z.locals;const x=(0,i(51900).Z)(s,(function(){var t=this;return(0,t._self._c)("BaseReader",{attrs:{content:t.content},on:{"click-link":(e,i)=>t.$emit("click-link",e,i)}})}),[],!1,null,null,null).exports},46190:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>w});var r=i(20144),n=i(57654),o=i(52029);const s=r.default.observable({messages:[],mtime:0}),a=(t,e)=>{o.k.debug("callMobileMessage ".concat(t),{attributes:e});let i=t;void 0!==e&&(i={MessageName:t,Values:e});let r=null;try{r=JSON.stringify(e)}catch(t){r=null}window.DirectEditingMobileInterface&&"function"==typeof window.DirectEditingMobileInterface[t]&&(null==r?window.DirectEditingMobileInterface[t]():window.DirectEditingMobileInterface[t](r)),window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.DirectEditingMobileInterface&&window.webkit.messageHandlers.DirectEditingMobileInterface.postMessage(i),window.postMessage(i)};window.addEventListener("message",(function(t){s.messages.push(t.data),o.k.debug("postMessage",{message:t})}));const l={name:"DirectEditing",components:{Editor:n.default},data:()=>({initial:OCP.InitialState.loadState("text","file"),messages:s.messages,log:s,saving:!1}),computed:{initialSession(){return JSON.parse(this.initial.session)||null},isMobile:()=>window.DirectEditingMobileInterface||window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.DirectEditingMobileInterface},beforeMount(){a("loading")},mounted(){document.querySelector('meta[name="viewport"]').setAttribute("content","width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0")},methods:{async close(){this.saving=!0,setTimeout((async()=>{await this.$refs.editor.$destroy(),a("close")}),0)},share(){a("share")},loaded(){a("loaded")}}};var d=i(93379),c=i.n(d),A=i(7795),h=i.n(A),p=i(90569),g=i.n(p),u=i(3565),C=i.n(u),m=i(19216),v=i.n(m),b=i(44589),f=i.n(b),x=i(49106),y={};y.styleTagTransform=f(),y.setAttributes=C(),y.insert=g().bind(null,"head"),y.domAPI=h(),y.insertStyleElement=v();c()(x.Z,y);x.Z&&x.Z.locals&&x.Z.locals;var _=i(95669),j={};j.styleTagTransform=f(),j.setAttributes=C(),j.insert=g().bind(null,"head"),j.domAPI=h(),j.insertStyleElement=v();c()(_.Z,j);_.Z&&_.Z.locals&&_.Z.locals;const w=(0,i(51900).Z)(l,(function(){var t=this,e=t._self._c;return e("div",{class:{"icon-loading":t.saving},attrs:{id:"direct-editor"}},[e("Editor",{ref:"editor",attrs:{"initial-session":t.initialSession,"file-id":t.initial.fileId,active:!0,mime:t.initial.mimetype,"is-direct-editing":!0},on:{ready:t.loaded},scopedSlots:t._u([t.isMobile?{key:"header",fn:function(){return[e("button",{staticClass:"icon-share",on:{click:t.share}}),t._v(" "),e("button",{staticClass:"icon-close",on:{click:t.close}})]},proxy:!0}:null],null,!0)})],1)}),[],!1,null,"d43914dc",null).exports},43208:(t,e,i)=>{"use strict";t.exports=i.p+"611b3a44bd59d3f2f2b7.svg"},27783:(t,e,i)=>{"use strict";t.exports=i.p+"84454dcbb8cc5ec32c4e.svg"},95599:(t,e,i)=>{"use strict";t.exports=i.p+"9abe16601ec156375395.svg"}}]);
//# sourceMappingURL=editor.js.map?v=e9ff85556fa394ef0109