Files
nextcloud-server-mirror/dist/comments-comments-tab.mjs
2026-10-01 10:13:03 +00:00

4 lines
6.4 KiB
JavaScript

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('', '', 'dist/ActivityCommentAction-SeJ_OfOy.chunk.mjs'),window.OC.filePath('', '', 'dist/index-kp2aFDpV.chunk.mjs'),window.OC.filePath('', '', 'dist/Check-C4bAfTBv.chunk.mjs'),window.OC.filePath('', '', 'dist/_plugin-vue_export-helper-CqVUm19z.chunk.mjs'),window.OC.filePath('', '', 'dist/mdi-DufDJCzM.chunk.mjs'),window.OC.filePath('', '', 'dist/TrashCanOutline-CMQZ11HT.chunk.mjs'),window.OC.filePath('', '', 'dist/translation-DoG5ZELJ-BWhNcFeL.chunk.mjs'),window.OC.filePath('', '', 'dist/star-outline-GQH97nZh.chunk.mjs'),window.OC.filePath('', '', 'dist/check-B1cRKwyT.chunk.mjs'),window.OC.filePath('', '', 'dist/PencilOutline-iy8e2K8g.chunk.mjs'),window.OC.filePath('', '', 'dist/common-PencilOutline-C_oBIsvc.chunk.css'),window.OC.filePath('', '', 'dist/Web-Czhm3-Vy.chunk.mjs'),window.OC.filePath('', '', 'dist/common-Web-3plNpBrB.chunk.css'),window.OC.filePath('', '', 'dist/formatRelative-BWbxYiaw.chunk.mjs'),window.OC.filePath('', '', 'dist/common-formatRelative-BYHcrfvW.chunk.css'),window.OC.filePath('', '', 'dist/NcModal-xj-RrAi5.chunk.mjs'),window.OC.filePath('', '', 'dist/common-NcModal-Cclh_O_-.chunk.css'),window.OC.filePath('', '', 'dist/common-mdi-B7Bbzm8f.chunk.css'),window.OC.filePath('', '', 'dist/Plus-Dt1y2YwC.chunk.mjs'),window.OC.filePath('', '', 'dist/common-Plus-BWNFKLbC.chunk.css'),window.OC.filePath('', '', 'dist/CommentView-DfiZHFfN.chunk.mjs'),window.OC.filePath('', '', 'dist/NcActionButton-D_hRtlpB.chunk.mjs'),window.OC.filePath('', '', 'dist/common-NcActionButton-BQBDvDX2.chunk.css'),window.OC.filePath('', '', 'dist/star-Dq-vWoCa.chunk.mjs'),window.OC.filePath('', '', 'dist/common-star-pXJ_-D_I.chunk.css'),window.OC.filePath('', '', 'dist/NcAvatar-B83u_8Mu.chunk.mjs'),window.OC.filePath('', '', 'dist/Link-CsKByTsd.chunk.mjs'),window.OC.filePath('', '', 'dist/autolink-Cec71Afb.chunk.mjs'),window.OC.filePath('', '', 'dist/common-autolink-B8CEsDGb.chunk.css'),window.OC.filePath('', '', 'dist/TrayArrowDown-Bke6rogp.chunk.mjs'),window.OC.filePath('', '', 'dist/NcUserStatusIcon-DJ6O0zTL.chunk.mjs'),window.OC.filePath('', '', 'dist/common-NcUserStatusIcon-Bq_6hmXG.chunk.css'),window.OC.filePath('', '', 'dist/NcActionLink-IMq9XUxR.chunk.mjs'),window.OC.filePath('', '', 'dist/common-NcActionLink-iJnZg6ii.chunk.css'),window.OC.filePath('', '', 'dist/NcActionRouter-CxjmdI2U.chunk.mjs'),window.OC.filePath('', '', 'dist/common-NcActionRouter-C1KErZDl.chunk.css'),window.OC.filePath('', '', 'dist/MenuUp-DIj8qL97.chunk.mjs'),window.OC.filePath('', '', 'dist/common-MenuUp-BzbAkUEn.chunk.css'),window.OC.filePath('', '', 'dist/common-NcAvatar-o8Woel4F.chunk.css'),window.OC.filePath('', '', 'dist/history-DwKokLb-.chunk.mjs'),window.OC.filePath('', '', 'dist/common-history-f2DD9EAL.chunk.css'),window.OC.filePath('', '', 'dist/activity-wKryFibL.chunk.mjs'),window.OC.filePath('', '', 'dist/GetComments-DgVjy6I7.chunk.mjs'),window.OC.filePath('', '', 'dist/dav-DFOc22LT.chunk.mjs'),window.OC.filePath('', '', 'dist/externalStorageUtils-BHfinIcK.chunk.mjs'),window.OC.filePath('', '', 'dist/common-CommentView-Cs8qprYu.chunk.css'),window.OC.filePath('', '', 'dist/comments-ActivityCommentAction-BNcHFi_U.chunk.css'),window.OC.filePath('', '', 'dist/ActivityCommentEntry-DQmtUeIR.chunk.mjs'),window.OC.filePath('', '', 'dist/comments-ActivityCommentEntry-DkLG8AtJ.chunk.css'),window.OC.filePath('', '', 'dist/FilesSidebarTab-1LrIT4O8.chunk.mjs'),window.OC.filePath('', '', 'dist/Folder-Bvs9gcVq.chunk.mjs'),window.OC.filePath('', '', 'dist/common-Folder-Don1d5Bd.chunk.css'),window.OC.filePath('', '', 'dist/common-FilesSidebarTab-Dk-ISsTg.chunk.css')])))=>i.map(i=>d[i]);
import{c as l,_ as m,i as c,d as w}from"./Check-C4bAfTBv.chunk.mjs";import{r as _}from"./index-Ck-w13D0.chunk.mjs";import{t as g}from"./translation-DoG5ZELJ-BWhNcFeL.chunk.mjs";import{l as r,i as v}from"./activity-wKryFibL.chunk.mjs";import{g as A}from"./GetComments-DgVjy6I7.chunk.mjs";import"./_plugin-vue_export-helper-CqVUm19z.chunk.mjs";import"./externalStorageUtils-BHfinIcK.chunk.mjs";import"./star-outline-GQH97nZh.chunk.mjs";import"./dav-DFOc22LT.chunk.mjs";const y='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-message-reply-text" viewBox="0 0 24 24"><path d="M18,8H6V6H18V8M18,11H6V9H18V11M18,14H6V12H18V14M22,4A2,2 0 0,0 20,2H4A2,2 0 0,0 2,4V16A2,2 0 0,0 4,18H18L22,22V4Z" /></svg>';function V(){let e;window.OCA.Activity.registerSidebarAction({mount:async(t,{node:o,reload:i})=>{const a=l();if(!e){const{default:s}=await m(async()=>{const{default:n}=await import("./ActivityCommentAction-SeJ_OfOy.chunk.mjs");return{default:n}},__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,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46]),import.meta.url);e=c(s,{reloadCallback:i,resourceId:o.fileid})}e.use(a),e.mount(t),r.info("Comments plugin mounted in Activity sidebar action",{node:o})},unmount:()=>{e?.unmount(),e=void 0}}),window.OCA.Activity.registerSidebarEntries(async({node:t,limit:o,offset:i})=>{const{data:a}=await A({resourceType:"files",resourceId:t.fileid},{limit:o,offset:i??0});r.debug("Loaded comments",{node:t,comments:a});const{default:s}=await m(async()=>{const{default:n}=await import("./ActivityCommentEntry-DQmtUeIR.chunk.mjs");return{default:n}},__vite__mapDeps([47,6,7,3,20,2,21,11,9,10,12,15,5,8,16,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,13,14,38,4,17,39,40,1,18,19,41,42,43,44,45,48]),import.meta.url);return a.map(n=>({_CommentsViewInstance:void 0,timestamp:Date.parse(n.props?.creationDateTime??""),mount(f,{reload:p}){const d=c(s,{comment:n,resourceId:t.fileid,reloadCallback:p});d.mount(f),this._CommentsViewInstance=d},unmount(){this._CommentsViewInstance?.unmount()}}))}),window.OCA.Activity.registerSidebarFilter(t=>t.type!=="comments"),r.info("Comments plugin registered for Activity sidebar action")}const u="comments_files-sidebar-tab";v()?window.addEventListener("DOMContentLoaded",function(){V()}):_({id:"comments",displayName:g("comments","Comments"),iconSvgInline:y,order:50,tagName:u,async onInit(){const{default:e}=await m(async()=>{const{default:o}=await import("./FilesSidebarTab-1LrIT4O8.chunk.mjs").then(i=>i.F);return{default:o}},__vite__mapDeps([49,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,25,26,27,28,29,30,31,21,22,32,33,34,35,36,37,38,50,51,20,23,24,39,40,41,42,43,44,45,52]),import.meta.url),t=w(e,{configureApp(o){const i=l();o.use(i)},shadowRoot:!1});window.customElements.define(u,t)}});
//# sourceMappingURL=comments-comments-tab.mjs.map