nextcloud/apps/comments/js/comments.js

2 lines
11 KiB
JavaScript
Raw Normal View History

!function(n){var e={};function t(a){if(e[a])return e[a].exports;var l=e[a]={i:a,l:!1,exports:{}};return n[a].call(l.exports,l,l.exports,t),l.l=!0,l.exports}t.m=n,t.c=e,t.d=function(n,e,a){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:a})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var a=Object.create(null);if(t.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var l in n)t.d(a,l,function(e){return n[e]}.bind(null,l));return a},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.p="/js/",t(t.s=610)}({610:function(n,e,t){"use strict";t.r(e);t(611),t(612),t(613),t(614);window.OCA.Comments=OCA.Comments},611:function(n,e){OCA.Comments||(OCA.Comments={})},612:function(n,e){function t(n){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}var a,l;a=Handlebars.template,(l=OCA.Comments.Templates=OCA.Comments.Templates||{}).comment=a({1:function(n,e,t,a,l){return" unread"},3:function(n,e,t,a,l){return" collapsed"},5:function(n,e,t,a,l){return" currentUser"},7:function(n,e,t,a,l){var s;return'data-username="'+n.escapeExpression("function"==typeof(s=null!=(s=t.actorId||(null!=e?e.actorId:e))?s:t.helperMissing)?s.call(null!=e?e:n.nullContext||{},{"name":"actorId","hash":{},"data":l}):s)+'"'},9:function(n,e,t,a,l){return'\t\t\t<a href="#" class="action more icon icon-more has-tooltip"></a>\n\t\t\t<div class="deleteLoading icon-loading-small hidden"></div>\n'},11:function(n,e,t,a,l){return'\t\t<div class="message-overlay"></div>\n'},"compiler":[7,">= 4.0.0"],"main":function(n,e,a,l,s){var i,o,r=null!=e?e:n.nullContext||{},c=a.helperMissing,m="function",u=n.escapeExpression;return'<li class="comment'+(null!=(i=a.if.call(r,null!=e?e.isUnread:e,{"name":"if","hash":{},"fn":n.program(1,s,0),"inverse":n.noop,"data":s}))?i:"")+(null!=(i=a.if.call(r,null!=e?e.isLong:e,{"name":"if","hash":{},"fn":n.program(3,s,0),"inverse":n.noop,"data":s}))?i:"")+'" data-id="'+u(t(o=null!=(o=a.id||(null!=e?e.id:e))?o:c)===m?o.call(r,{"name":"id","hash":{},"data":s}):o)+'">\n\t<div class="authorRow">\n\t\t<div class="avatar'+(null!=(i=a.if.call(r,null!=e?e.isUserAuthor:e,{"name":"if","hash":{},"fn":n.program(5,s,0),"inverse":n.noop,"data":s}))?i:"")+'" '+(null!=(i=a.if.call(r,null!=e?e.actorId:e,{"name":"if","hash":{},"fn":n.program(7,s,0),"inverse":n.noop,"data":s}))?i:"")+'> </div>\n\t\t<div class="author'+(null!=(i=a.if.call(r,null!=e?e.isUserAuthor:e,{"name":"if","hash":{},"fn":n.program(5,s,0),"inverse":n.noop,"data":s}))?i:"")+'">'+u(t(o=null!=(o=a.actorDisplayName||(null!=e?e.actorDisplayName:e))?o:c)===m?o.call(r,{"name":"actorDisplayName","hash":{},"data":s}):o)+"</div>\n"+(null!=(i=a.if.call(r,null!=e?e.isUserAuthor:e,{"name":"if","hash":{},"fn":n.program(9,s,0),"inverse":n.noop,"data":s}))?i:"")+'\t\t<div class="date has-tooltip live-relative-timestamp" data-timestamp="'+u(t(o=null!=(o=a.timestamp||(null!=e?e.timestamp:e))?o:c)===m?o.call(r,{"name":"timestamp","hash":{},"data":s}):o)+'" title="'+u(t(o=null!=(o=a.altDate||(null!=e?e.altDate:e))?o:c)===m?o.call(r,{"name":"altDate","hash":{},"data":s}):o)+'">'+u(t(o=null!=(o=a.date||(null!=e?e.date:e))?o:c)===m?o.call(r,{"name":"date","hash":{},"data":s}):o)+'</div>\n\t</div>\n\t<div class="message">'+(null!=(i=t(o=null!=(o=a.formattedMessage||(null!=e?e.formattedMessage:e))?o:c)===m?o.call(r,{"name":"formattedMessage","hash":{},"data":s}):o)?i:"")+"</div>\n"+(null!=(i=a.if.call(r,null!=e?e.isLong:e,{"name":"if","hash":{},"fn":n.program(11,s,0),"inverse":n.noop,"data":s}))?i:"")+"</li>\n"},"useData":!0}),l.commentsmodifymenu=a({1:functio
//# sourceMappingURL=comments.js.map