forked from AkkomaGang/akkoma
2 lines
17 KiB
JavaScript
2 lines
17 KiB
JavaScript
|
webpackJsonp([12],{149:function(e,t,n){"use strict";n.d(t,"a",function(){return g});var o,i,r=n(2),s=n.n(r),a=n(1),c=n.n(a),l=n(3),d=n.n(l),u=n(4),h=n.n(u),p=n(0),f=n.n(p),v=n(6),g=(i=o=function(e){function t(){return c()(this,t),d()(this,e.apply(this,arguments))}return h()(t,e),t.prototype.render=function(){var e=this.props,t=e.disabled,n=e.visible;return s()("button",{className:"load-more",disabled:t||!n,style:{visibility:n?"visible":"hidden"},onClick:this.props.onClick},void 0,s()(v.b,{id:"status.load_more",defaultMessage:"Load more"}))},t}(f.a.PureComponent),o.defaultProps={visible:!0},i)},150:function(e,t,n){"use strict";n.d(t,"a",function(){return v});var o=n(2),i=n.n(o),r=n(1),s=n.n(r),a=n(3),c=n.n(a),l=n(4),d=n.n(l),u=n(0),h=n.n(u),p=n(10),f=n.n(p),v=function(e){function t(){var n,o,i;s()(this,t);for(var r=arguments.length,a=Array(r),l=0;l<r;l++)a[l]=arguments[l];return n=o=c()(this,e.call.apply(e,[this].concat(a))),o.handleClick=function(){o.props.onClick()},i=n,c()(o,i)}return d()(t,e),t.prototype.render=function(){var e=this.props,t=e.icon,n=e.type,o=e.active,r=e.columnHeaderId,s="";return t&&(s=i()("i",{className:"fa fa-fw fa-"+t+" column-header__icon"})),i()("h1",{className:f()("column-header",{active:o}),id:r||null},void 0,i()("button",{onClick:this.handleClick},void 0,s,n))},t}(h.a.PureComponent)},283:function(e,t,n){"use strict";function o(e){return function(t){t({type:r,account:e}),t(Object(i.d)("MUTE"))}}t.a=o;var i=(n(14),n(22),n(15),n(26)),r="MUTES_INIT_MODAL"},284:function(e,t,n){"use strict";n.d(t,"a",function(){return m});var o=n(2),i=n.n(o),r=n(1),s=n.n(r),a=n(3),c=n.n(a),l=n(4),d=n.n(l),u=n(34),h=n.n(u),p=n(0),f=n.n(p),v=n(150),g=n(90),b=n(35),m=function(e){function t(){var n,o,i;s()(this,t);for(var r=arguments.length,a=Array(r),l=0;l<r;l++)a[l]=arguments[l];return n=o=c()(this,e.call.apply(e,[this].concat(a))),o.handleHeaderClick=function(){var e=o.node.querySelector(".scrollable");e&&(o._interruptScrollAnimation=Object(g.b)(e))},o.handleScroll=h()(function(){void 0!==o._interruptScrollAnimation&&o._interruptScrollAnimation()},200),o.setRef=function(e){o.node=e},i=n,c()(o,i)}return d()(t,e),t.prototype.scrollTop=function(){var e=this.node.querySelector(".scrollable");e&&(this._interruptScrollAnimation=Object(g.b)(e))},t.prototype.render=function(){var e=this.props,t=e.heading,n=e.icon,o=e.children,r=e.active,s=e.hideHeadingOnMobile,a=t&&(!s||s&&!Object(b.b)(window.innerWidth)),c=a&&t.replace(/ /g,"-"),l=a&&i()(v.a,{icon:n,active:r,type:t,onClick:this.handleHeaderClick,columnHeaderId:c});return f.a.createElement("div",{ref:this.setRef,role:"region","aria-labelledby":c,className:"column",onScroll:this.handleScroll},l,o)},t}(f.a.PureComponent)},285:function(e,t,n){"use strict";var o=n(2),i=n.n(o),r=n(0),s=(n.n(r),n(9)),a=n(153),c=n(66),l=n(18),d=n(67),u=n(22),h=n(91),p=n(283),f=n(151),v=n(26),g=n(6),b=n(11),m=Object(g.f)({deleteConfirm:{id:"confirmations.delete.confirm",defaultMessage:"Delete"},deleteMessage:{id:"confirmations.delete.message",defaultMessage:"Are you sure you want to delete this status?"},blockConfirm:{id:"confirmations.block.confirm",defaultMessage:"Block"}}),y=function(){var e=Object(c.e)();return function(t,n){return{status:e(t,n.id)}}},M=function(e,t){var n=t.intl;return{onReply:function(t,n){e(Object(l.T)(t,n))},onModalReblog:function(t){e(Object(d.l)(t))},onReblog:function(t,n){t.get("reblogged")?e(Object(d.n)(t)):n.shiftKey||!b.b?this.onModalReblog(t):e(Object(v.d)("BOOST",{status:t,onReblog:this.onModalReblog}))},onFavourite:function(t){e(t.get("favourited")?Object(d.m)(t):Object(d.i)(t))},onDelete:function(t){e(b.e?Object(v.d)("CONFIRM",{message:n.formatMessage(m.deleteMessage),confirm:n.formatMessage(m.deleteConfirm),onConfirm:function(){return e(Object(h.f)(t.get("id")))}}):Object(h.f)(t.get("id")))},onMention:function(t,n){e(Object(l.R)(t,n))},onOpenMedia:function(t,n){e(Object(v.d)("MEDIA",{media:t,index:n}))},onOpenVideo:function(t,n){e(Object(v.d)("VIDEO",{media:t,time:n}))},onBlock:function(t){e(Object(v.d)("CONFIRM",{message:i()(g.b,{id:"confirmations.block.message
|
||
|
//# sourceMappingURL=favourited_statuses.js.map
|