HEX
Server: LiteSpeed
System: Linux d8 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: wbwebdes (3015)
PHP: 8.1.31
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/wbwebdes/domains/files.wb-cloud.nl/public_html/apps/text/js/text-editor.mjs
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('text', '', 'js/MarkdownContentEditor-BgRucRbT.chunk.mjs'),window.OC.filePath('text', '', 'js/EditorOutline-CqmB-AYU.chunk.mjs'),window.OC.filePath('text', '', 'js/NcLoadingIcon-DmVcM0-B.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-DwlFXcXb.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-C9BcAUzb.chunk.mjs'),window.OC.filePath('text', '', 'js/index-6AQ8QgJK.chunk.mjs'),window.OC.filePath('text', '', 'js/index-CCUE3e_p.chunk.mjs'),window.OC.filePath('text', '', 'css/NcLoadingIcon-CFe6qyTF.chunk.css'),window.OC.filePath('text', '', 'js/logger-DVPLBGl3.chunk.mjs'),window.OC.filePath('text', '', 'js/index-B8nYQ_zQ.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-ChweF_5Q-5iiVgoP-.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-ChweF_5Q-BAYWJnqj.chunk.css'),window.OC.filePath('text', '', 'js/NcCheckboxRadioSwitch-ip_mRd2T-Df5K32Av.chunk.mjs'),window.OC.filePath('text', '', 'css/NcCheckboxRadioSwitch-ip_mRd2T-Bebqso8K.chunk.css'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-XSZyZ-Zg.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-CjlCfPBG.chunk.mjs'),window.OC.filePath('text', '', 'css/EditorOutline-CAy5jVNs.chunk.css'),window.OC.filePath('text', '', 'js/MenuBar-D7Mx5BJq.chunk.mjs'),window.OC.filePath('text', '', 'css/MenuBar-DZeLx75j.chunk.css'),window.OC.filePath('text', '', 'css/MarkdownContentEditor-KEyC-RiG.chunk.css'),window.OC.filePath('text', '', 'js/Editor-Bi-gMhs0.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Be8Hx1Gh.chunk.mjs'),window.OC.filePath('text', '', 'js/dav-CQDyL7M_-Dl4xEXlI.chunk.mjs'),window.OC.filePath('text', '', 'css/Editor-CW8w_8G1.chunk.css')])))=>i.map(i=>d[i]);
import{_ as p,s as S}from"./index-6AQ8QgJK.chunk.mjs";import{V as m}from"./vue.runtime.esm-C9BcAUzb.chunk.mjs";import{o as A,A as I,O as P,H as L,a as k,E,b as M}from"./MediaHandler.provider-CjlCfPBG.chunk.mjs";import"./emoji-picker-DwlFXcXb.chunk.mjs";import"./index-B8nYQ_zQ.chunk.mjs";import"./index-CCUE3e_p.chunk.mjs";import"./logger-DVPLBGl3.chunk.mjs";const j="1.2";window.OCA.Text={...window.OCA.Text};class B{#t;#o;constructor(t,e){return this.#t=t,this.#o=e,this.#n(),this}#e(){return this.#t.$children[0]}onCreate(t=()=>{}){return this.#t.$on("create:content",e=>{t(e)}),this}onLoaded(t=()=>{}){return this.#t.$on("ready",()=>{t()}),this}onUpdate(t=()=>{}){return this.#t.$on("update:content",e=>{t(e)}),this}onOutlineToggle(t=()=>{}){return this.#t.$on("outline-toggled",e=>{t(e)}),this}onSearch(t=()=>{}){return S("text:editor:search-results",t),this}render(t){t.innerHTML="";const e=document.createElement("div");return t.appendChild(e),this.#t.$mount(e),this}destroy(){this.#t.$destroy(),this.#t.$el.innerHTML=""}setContent(t){return this.#t.$set(this.#o,"content",t),this.#e()?.setContent?.(t),this}setSearchQuery(t,e){this.#e()?.editor?.commands.setSearchQuery(t,e)}searchNext(){this.#e()?.editor?.commands.nextMatch()}searchPrevious(){this.#e()?.editor?.commands.previousMatch()}async save(){return this.#e().save?.()}setShowOutline(t){return this.#t.$set(this.#o,"showOutlineOutside",t),this}setReadOnly(t){return this.#t.$set(this.#o,"readOnly",t),this}updateReadonlyBarProps(t){return this.#t.$set(this.#o,"readonlyBarProps",t),this}insertAtCursor(t){this.#e().editor?.chain().insertContent(t).focus().run()}focus(){this.#e().editor?.commands.focus()}debugYjs(){const t=this.#e().debugYjsData();console.warn(JSON.stringify(t,null," ")),console.warn(`%c%s
%c%s
%s`,"font-weight: bold;",'Editor Yjs debug data. Copy the object below that starts with "clientId".',"font-weight: normal; font-style: italic;",'- In Chrome, select "Copy" at the end of the line.','- In Firefox, right-click on the object and select "Copy object".')}#n(){window?._oc_debug&&(this.vm=this.#t,window.OCA.Text._debug=[...window.OCA.Text._debug??[],this])}}window.OCA.Text.apiVersion=j,window.OCA.Text.createEditor=async function({el:h,fileId:t=void 0,useSession:e=!0,filePath:a=void 0,shareToken:d=null,content:l="",readOnly:c=!1,autofocus:w=!0,readonlyBar:u={component:null,props:null},onCreate:O=({markdown:s})=>{},onLoaded:y=()=>{},onUpdate:f=({markdown:s})=>{},onOutlineToggle:v=s=>{},onFileInsert:g=void 0,onMentionSearch:C=void 0,onMentionInsert:T=void 0,openLinkHandler:_=void 0,onSearch:b=void 0}){const{default:s}=await p(async()=>{const{default:o}=await import("./MarkdownContentEditor-BgRucRbT.chunk.mjs");return{default:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]),import.meta.url),{default:x}=await p(async()=>{const{default:o}=await import("./Editor-Bi-gMhs0.chunk.mjs").then(r=>r.a);return{default:o}},__vite__mapDeps([20,5,3,21,2,4,6,7,22,10,11,17,1,8,9,12,13,14,15,16,18,23]),import.meta.url),n=m.observable({showOutlineOutside:!1,readonlyBarProps:u.props,readOnly:c,content:l}),i=t&&e,$=new m({provide(){return{[M]:g,[E]:!!i,[k]:i?!0:C,[L]:i?!0:T,[P]:{openLink:_||A},[I]:{resolve(o,r){return[{type:"image",url:o}]}}}},data(){return n},render:o=>{const r=u?.component?{readonlyBar:()=>o(u.component,{props:n.readonlyBarProps})}:{};return i?o(x,{props:{fileId:t,relativePath:a,shareToken:d,mime:"text/markdown",active:!0,autofocus:w,showOutlineOutside:n.showOutlineOutside},scopedSlots:r}):o(s,{props:{fileId:t,content:n.content,relativePath:a,shareToken:d,readOnly:n.readOnly,showOutlineOutside:n.showOutlineOutside},scopedSlots:r})}});return new B($,n).onCreate(O).onLoaded(y).onUpdate(f).onOutlineToggle(v).onSearch(b).render(h)};
//# sourceMappingURL=text-editor.mjs.map