nextcloud/dist/comments-init.mjs
nextcloud-command 78098c8325 chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2026-04-01 13:41:02 +00:00

2 lines
1.4 KiB
JavaScript

import{g as r,a as s}from"./index-DMw01uN3.chunk.mjs";import{a as m,t as i}from"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import{i as a,l as o}from"./activity-DdSAHrqw.chunk.mjs";import"./folder-29HuacU_-GslSi8fz.chunk.mjs";import"./index-Bp9-GhMo.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";import"./public-CvthP4YJ.chunk.mjs";const c='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-comment-processing" viewBox="0 0 24 24"><path d="M9,22A1,1 0 0,1 8,21V18H4A2,2 0 0,1 2,16V4C2,2.89 2.9,2 4,2H20A2,2 0 0,1 22,4V16A2,2 0 0,1 20,18H13.9L10.2,21.71C10,21.9 9.75,22 9.5,22V22H9M17,11V9H15V11H17M13,11V9H11V11H13M9,11V9H7V11H9Z" /></svg>',d={id:"comments-unread",title({nodes:n}){const e=n[0]?.attributes["comments-unread"];return typeof e=="number"&&e>=0?m("comments","1 new comment","{unread} new comments",e,{unread:e}):i("comments","Comment")},displayName:()=>"",iconSvgInline:()=>c,enabled({nodes:n}){const e=n[0]?.attributes?.["comments-unread"];return typeof e=="number"&&e>0},async exec({nodes:n}){if(n.length!==1||!n[0])return!1;try{const e=r(),t=a()?"activity":"comments";return e.isOpen&&e.node?.source===n[0].source?(o.debug("Sidebar already open for this node, just activating comments tab"),e.setActiveTab(t),null):(e.open(n[0],t),null)}catch(e){return o.error("Error while opening sidebar",{error:e}),!1}},inline:()=>!0,order:-140};s(d);
//# sourceMappingURL=comments-init.mjs.map