const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('text', '', 'js/ViewerView-f3iChIxa.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-CbNPNm8f.chunk.mjs'),window.OC.filePath('text', '', 'js/Wrapper-obocs1sV.chunk.mjs'),window.OC.filePath('text', '', 'js/NcLoadingIcon-Bdu4Z_fo.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-hi3Hwbeu.chunk.mjs'),window.OC.filePath('text', '', 'js/index-xQwnxqUU.chunk.mjs'),window.OC.filePath('text', '', 'js/index-DxwFe63_.chunk.mjs'),window.OC.filePath('text', '', 'css/NcLoadingIcon-KhuNWNbx.chunk.css'),window.OC.filePath('text', '', 'js/logger-DrmDPXkr.chunk.mjs'),window.OC.filePath('text', '', 'js/index-DtbbSwig.chunk.mjs'),window.OC.filePath('text', '', 'js/index-D3wiQe9-.chunk.mjs'),window.OC.filePath('text', '', 'js/preload-helper-BorfeO-5.chunk.mjs'),window.OC.filePath('text', '', 'js/NcCheckboxRadioSwitch-D4IV4zWy-Bb19W4wJ.chunk.mjs'),window.OC.filePath('text', '', 'css/NcCheckboxRadioSwitch-D4IV4zWy-CFjpafPM.chunk.css'),window.OC.filePath('text', '', 'js/NcNoteCard-CwNXZ4vV-CPnkYq5v.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CwNXZ4vV-Cyx11ynf.chunk.css'),window.OC.filePath('text', '', 'js/MediaHandler.provider-BUbYNN83.chunk.mjs'),window.OC.filePath('text', '', 'css/Wrapper-CNQWYaBa.chunk.css'),window.OC.filePath('text', '', 'js/Editor-Cr_YdjKk.chunk.mjs'),window.OC.filePath('text', '', 'js/dav-BTwUt5Rb.chunk.mjs'),window.OC.filePath('text', '', 'js/MenuBar-BBhgnV0-.chunk.mjs'),window.OC.filePath('text', '', 'css/MenuBar-B9oARRUR.chunk.css'),window.OC.filePath('text', '', 'css/Editor-CNbK6O9y.chunk.css'),window.OC.filePath('text', '', 'js/MarkdownContentEditor-BwTzyQSN.chunk.mjs'),window.OC.filePath('text', '', 'css/RichTextReader-Dh2MlJRZ.chunk.css'),window.OC.filePath('text', '', 'js/PlainTextReader-DQ-K7AxY.chunk.mjs'),window.OC.filePath('text', '', 'js/BaseReader-DF7IocT4.chunk.mjs'),window.OC.filePath('text', '', 'css/BaseReader-DVgiDsJn.chunk.css'),window.OC.filePath('text', '', 'css/ViewerView-BfLh0Bg4.chunk.css')])))=>i.map(i=>d[i]);
import{_ as p}from"./preload-helper-BorfeO-5.chunk.mjs";import{l as i}from"./logger-DrmDPXkr.chunk.mjs";import"./index-DtbbSwig.chunk.mjs";import"./index-xQwnxqUU.chunk.mjs";import"./emoji-picker-hi3Hwbeu.chunk.mjs";const r=["text/markdown","text/x-web-markdown"],a=["text/plain","application/cmd","application/x-empty","application/x-msdos-program","application/javascript","application/json","application/x-perl","application/x-php","application/x-tex","application/xml","application/yaml","text/asciidoc","text/css","text/html","text/org","text/x-c","text/x-c++src","text/x-h","text/x-java-source","text/x-ldif","text/x-nfo","text/x-python","text/x-shellscript"];!OC.appswebroots?.richdocuments&&!OC.appswebroots?.onlyoffice&&a.push("text/csv");function n(){return p(()=>import("./ViewerView-f3iChIxa.chunk.mjs"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28]),import.meta.url)}typeof OCA.Viewer>"u"?i.error("Viewer app is not installed"):OCA.Viewer.registerHandler({id:"text",mimes:[...r,...a],component:n,group:null,theme:"default",canCompare:!0,downloadCallback:async e=>{const o=window.OCA?.Text?.editorComponents;if(o instanceof Set){for(const t of o)if(t?.fileId===e.fileid&&t?.dirty){i.debug("Saving file before download",{fileId:e.fileid}),await t.save();return}}}});
//# sourceMappingURL=text-viewer.mjs.map
