%PDF- %PDF-
Direktori : /www/varak.net/nextcloud.varak.net/apps_old/apps/text/js/ |
Current File : //www/varak.net/nextcloud.varak.net/apps_old/apps/text/js/text-public.mjs |
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('text', '', 'js/Editor-DHuAN8Zo.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-DMTabKmO.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-SoWZqoso.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-fZsuJKoo.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-CQWfHvOo.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-XF5BqDH-.chunk.mjs'),window.OC.filePath('text', '', 'js/public-CBtR8U5E.chunk.mjs'),window.OC.filePath('text', '', 'css/public-8w2LAIqc.chunk.css'),window.OC.filePath('text', '', 'js/index-WINsn-uD.chunk.mjs'),window.OC.filePath('text', '', 'js/index-DkzhscpN.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer-BVpmSrje.chunk.css'),window.OC.filePath('text', '', 'js/index-hXSjL27_.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-CSBQhvYP.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-B4T8Bva5.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-CQ6iBklL-DSXPAugt.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-C17nUFcp.chunk.css'),window.OC.filePath('text', '', 'js/Wrapper-CiFcSLGo.chunk.mjs'),window.OC.filePath('text', '', 'js/index-CyNrdWBa.chunk.mjs'),window.OC.filePath('text', '', 'css/Wrapper-9Tt0kL-G.chunk.css'),window.OC.filePath('text', '', 'js/_commonjs-dynamic-modules-CSduYUN4.chunk.mjs'),window.OC.filePath('text', '', 'css/Editor-D1A8pt8B.chunk.css')])))=>i.map(i=>d[i]); /*! third party licenses: js/vendor.LICENSE.txt */ import{_ as d,s as c,e as u}from"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import{l as s}from"./index-Ubm2itxG.chunk.mjs";import{registerFileActionFallback as f,registerFileCreate as h}from"./files-x6jyGXY2.chunk.mjs";import{l as g}from"./logger-B4T8Bva5.chunk.mjs";import{o as w}from"./mime-ChWVRLiA.chunk.mjs";import{s as p}from"./index-hXSjL27_.chunk.mjs";import y from"./RichWorkspace-kbebT38B.chunk.mjs";import"./emoji-picker-SoWZqoso.chunk.mjs";import"./_plugin-vue2_normalizer-CQ6iBklL-DSXPAugt.chunk.mjs";import"./public-CBtR8U5E.chunk.mjs";import"./vue.runtime.esm-fZsuJKoo.chunk.mjs";import"./index-opjN8X5E.chunk.mjs";import"./index-DkzhscpN.chunk.mjs";import"./index-WINsn-uD.chunk.mjs";import"./token-DpxtlN7K.chunk.mjs";import"./Editor.singleton-CFX94nUf.chunk.mjs";import"./RichTextReader-HF8IZdUX.chunk.mjs";import"./BaseReader-DYXzFHm5.chunk.mjs";import"./RichText-CQWfHvOo.chunk.mjs";import"./_plugin-vue2_normalizer-XF5BqDH-.chunk.mjs";import"./MediaHandler.provider-CSBQhvYP.chunk.mjs";const _=function(e){const i=()=>setTimeout(e,0);(document.attachEvent?document.readyState==="complete":document.readyState!=="loading")?i():document.addEventListener("DOMContentLoaded",e)},E={attach(e){const i=e.fileList,r=t("text","Readme")+"."+s("text","default_file_extension");i.id!=="files"&&i.id!=="files.public"||e.addMenuEntry({id:"rich-workspace-init",displayName:t("text","Add folder description"),templateName:r,iconClass:"icon-add-folder-description",fileType:"file",useInput:!1,actionHandler(){return window.FileList.createFile(r,{scrollTo:!1,animate:!1}).then(()=>u("Text::showRichWorkspace",{autofocus:!0}))},shouldShow(){return!i.findFile(r)}})}},v={el:null,attach(e){e.id!=="files"&&e.id!=="files.public"||(this.el=document.createElement("div"),e.registerHeader({id:"workspace",el:this.el,render:this.render.bind(this),priority:10}))},render(e){e.id!=="files"&&e.id!=="files.public"||(OC.Plugins.register("OCA.Files.NewFileMenu",E),d(()=>import("./vue.runtime.esm-fZsuJKoo.chunk.mjs").then(i=>i.v),[],import.meta.url).then(i=>{const r=i.default;this.el.id="files-workspace-wrapper",r.prototype.t=window.t,r.prototype.n=window.n,r.prototype.OCA=window.OCA;const a=r.extend(y),n=new a({propsData:{path:e.getCurrentDirectory(),hasRichWorkspace:!0},store:p}).$mount(this.el);c("files:navigation:changed",()=>{n.active=OCA.Files.App.getCurrentFileList()===e}),e.$el.on("urlChanged",o=>{n.path=o.dir.toString()}),e.$el.on("changeDirectory",o=>{n.path=o.dir.toString()})}))}},C=({sharingToken:e,mimetype:i,fileId:r,$el:a})=>{const n=document.createElement("div");n.id="texteditor",document.getElementById("app-content").appendChild(n),Promise.all([d(()=>import("./vue.runtime.esm-fZsuJKoo.chunk.mjs").then(o=>o.v),[],import.meta.url),d(()=>import("./Editor-DHuAN8Zo.chunk.mjs").then(o=>o.b),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url)]).then(([o,l])=>({Vue:o.default,Editor:l.default})).then(({Vue:o,Editor:l})=>{o.prototype.t=window.t,o.prototype.OCA=window.OCA,new o({render:m=>m(l,{props:{active:!0,shareToken:e,mime:i,fileId:r}}),store:p}).$mount(a)}).catch(o=>g.error("Failed to attach editor",{error:o}))};_(()=>{var r;const e=document.getElementById("sharingToken")?document.getElementById("sharingToken").value:null;if(!e)return;if(document.querySelector("#preview table.files-filestable")){OC.Plugins.register("OCA.Files.FileList",v),f(),h();return}const i=(r=document.getElementById("mimetype"))==null?void 0:r.value;if(i&&w.indexOf(i)!==-1){const a=document.getElementById("preview"),n=s("text","file_id");C({mimetype:i,sharingToken:e,fileId:n,$el:a})}}),OCA.Text={RichWorkspaceEnabled:s("text","workspace_available")};