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

4 lines
6.0 KiB
JavaScript

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('', '', 'dist/ActivityCommentAction-CS0aJlhu.chunk.mjs'),window.OC.filePath('', '', 'dist/index-ChKwPSRd.chunk.mjs'),window.OC.filePath('', '', 'dist/preload-helper-d4wkr0R4.chunk.mjs'),window.OC.filePath('', '', 'dist/index-NL2nY9rr.chunk.mjs'),window.OC.filePath('', '', 'dist/NcModal-B0w4UHjQ.chunk.mjs'),window.OC.filePath('', '', 'dist/ArrowRight-DwWWNX0W.chunk.mjs'),window.OC.filePath('', '', 'dist/createElementId-99Wdeh2V.chunk.mjs'),window.OC.filePath('', '', 'dist/fileSize-G68jp3EG.chunk.mjs'),window.OC.filePath('', '', 'dist/public-Cpb8_kIm.chunk.mjs'),window.OC.filePath('', '', 'dist/formatRelative-CRa9J-kT.chunk.mjs'),window.OC.filePath('', '', 'dist/common-createElementId-C_oBIsvc.chunk.css'),window.OC.filePath('', '', 'dist/common-ArrowRight-3plNpBrB.chunk.css'),window.OC.filePath('', '', 'dist/common-NcModal-Cclh_O_-.chunk.css'),window.OC.filePath('', '', 'dist/PencilOutline-DQUj8ge9.chunk.mjs'),window.OC.filePath('', '', 'dist/common-PencilOutline-BYHcrfvW.chunk.css'),window.OC.filePath('', '', 'dist/common-index-B7Bbzm8f.chunk.css'),window.OC.filePath('', '', 'dist/NcNoteCard-3neTxroh.chunk.mjs'),window.OC.filePath('', '', 'dist/common-NcNoteCard-BWNFKLbC.chunk.css'),window.OC.filePath('', '', 'dist/CommentView-DlObuNIT.chunk.mjs'),window.OC.filePath('', '', 'dist/pinia-CYjSPQPx.chunk.mjs'),window.OC.filePath('', '', 'dist/NcActionButton-Br00MMdh.chunk.mjs'),window.OC.filePath('', '', 'dist/common-NcActionButton-BQBDvDX2.chunk.css'),window.OC.filePath('', '', 'dist/NcAvatar-CbPiNVJc.chunk.mjs'),window.OC.filePath('', '', 'dist/TrashCanOutline-B4BQndoo.chunk.mjs'),window.OC.filePath('', '', 'dist/autolink-B7OkText.chunk.mjs'),window.OC.filePath('', '', 'dist/common-autolink-B8CEsDGb.chunk.css'),window.OC.filePath('', '', 'dist/colors-CWK0LA3a.chunk.mjs'),window.OC.filePath('', '', 'dist/NcUserStatusIcon-DZnhiZw9.chunk.mjs'),window.OC.filePath('', '', 'dist/common-NcUserStatusIcon-Bq_6hmXG.chunk.css'),window.OC.filePath('', '', 'dist/NcDateTime.vue_vue_type_script_setup_true_lang-BMPt7zgC.chunk.mjs'),window.OC.filePath('', '', 'dist/common-NcDateTime-nu2hAc7o.chunk.css'),window.OC.filePath('', '', 'dist/common-NcAvatar-C_ZSEW-_.chunk.css'),window.OC.filePath('', '', 'dist/NcUserBubble-Dd8cPfkX.chunk.mjs'),window.OC.filePath('', '', 'dist/common-NcUserBubble-f2DD9EAL.chunk.css'),window.OC.filePath('', '', 'dist/activity-D3DGugVa.chunk.mjs'),window.OC.filePath('', '', 'dist/GetComments-CBqvSsgU.chunk.mjs'),window.OC.filePath('', '', 'dist/index-DCr4LsPY.chunk.mjs'),window.OC.filePath('', '', 'dist/common-CommentView-D9eoYnuL.chunk.css'),window.OC.filePath('', '', 'dist/common-NcActionSeparator-pXJ_-D_I.chunk.css'),window.OC.filePath('', '', 'dist/comments-ActivityCommentAction-D5Q48MrJ.chunk.css'),window.OC.filePath('', '', 'dist/ActivityCommentEntry-DjnY4ggA.chunk.mjs'),window.OC.filePath('', '', 'dist/comments-ActivityCommentEntry-CVfnMLz5.chunk.css'),window.OC.filePath('', '', 'dist/FilesSidebarTab-BErvenKg.chunk.mjs'),window.OC.filePath('', '', 'dist/NcEmptyContent-Lu7H7Rrh.chunk.mjs'),window.OC.filePath('', '', 'dist/common-NcEmptyContent-Don1d5Bd.chunk.css'),window.OC.filePath('', '', 'dist/common-FilesSidebarTab-D1FhhmK6.chunk.css')])))=>i.map(i=>d[i]);
import{_ as m,e as c,d as w}from"./preload-helper-d4wkr0R4.chunk.mjs";import{r as _}from"./index-Bsg0Thwh.chunk.mjs";import{t as g}from"./fileSize-G68jp3EG.chunk.mjs";import{c as l}from"./pinia-CYjSPQPx.chunk.mjs";import{l as r,i as A}from"./activity-D3DGugVa.chunk.mjs";import{g as v}from"./GetComments-CBqvSsgU.chunk.mjs";import"./externalStorageUtils-D5mNQ-cb.chunk.mjs";import"./formatRelative-CRa9J-kT.chunk.mjs";import"./public-Cpb8_kIm.chunk.mjs";import"./index-DCr4LsPY.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 o;window.OCA.Activity.registerSidebarAction({mount:async(t,{node:e,reload:i})=>{const a=l();if(!o){const{default:s}=await m(async()=>{const{default:n}=await import("./ActivityCommentAction-CS0aJlhu.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]),import.meta.url);o=c(s,{reloadCallback:i,resourceId:e.fileid})}o.use(a),o.mount(t),r.info("Comments plugin mounted in Activity sidebar action",{node:e})},unmount:()=>{o?.unmount()}}),window.OCA.Activity.registerSidebarEntries(async({node:t,limit:e,offset:i})=>{const{data:a}=await v({resourceType:"files",resourceId:t.fileid},{limit:e,offset:i??0});r.debug("Loaded comments",{node:t,comments:a});const{default:s}=await m(async()=>{const{default:n}=await import("./ActivityCommentEntry-DjnY4ggA.chunk.mjs");return{default:n}},__vite__mapDeps([40,7,8,9,18,2,19,20,5,6,10,11,4,12,21,22,23,24,25,26,27,28,29,30,13,14,31,32,33,1,3,15,16,17,34,35,36,37,38,41]),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";A()?window.addEventListener("DOMContentLoaded",function(){V()}):_({id:"comments",displayName:g("comments","Comments"),iconSvgInline:y,order:50,tagName:u,async onInit(){const{default:o}=await m(async()=>{const{default:e}=await import("./FilesSidebarTab-BErvenKg.chunk.mjs").then(i=>i.F);return{default:e}},__vite__mapDeps([42,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,22,23,24,25,26,27,28,20,21,29,30,31,43,44,18,19,32,33,34,35,36,37,38,45]),import.meta.url),t=w(o,{configureApp(e){const i=l();e.use(i)},shadowRoot:!1});window.customElements.define(u,t)}});
//# sourceMappingURL=comments-comments-tab.mjs.map