honkoma/priv/static/packs/features/account_gallery.js

2 lines
24 KiB
JavaScript
Raw Normal View History

2018-08-12 13:29:30 +00:00
webpackJsonp([17],{1001:function(e,o,t){"use strict";t.d(o,"a",function(){return M});var n,a,i=t(2),s=t.n(i),r=t(1),c=t.n(r),l=t(3),u=t.n(l),d=t(4),p=t.n(d),f=t(0),m=(t.n(f),t(14)),g=t.n(m),h=t(12),v=t.n(h),b=t(287),_=t(13),M=(a=n=function(e){function o(){var t,n,a;c()(this,o);for(var i=arguments.length,s=Array(i),r=0;r<i;r++)s[r]=arguments[r];return t=n=u()(this,e.call.apply(e,[this].concat(s))),n.state={visible:!n.props.media.getIn(["status","sensitive"])||_.f},n.handleClick=function(){return!n.state.visible&&(n.setState({visible:!0}),!0)},a=t,u()(n,a)}return p()(o,e),o.prototype.render=function(){var e=this.props.media,o=this.state.visible,t=e.get("status"),n=e.getIn(["meta","focus","x"]),a=e.getIn(["meta","focus","y"]),i=100*(n/2+.5),r=100*(a/-2+.5),c={},l=void 0,u=void 0;return"gifv"===e.get("type")&&(l=s()("span",{className:"media-gallery__gifv__label"},void 0,"GIF")),o?(c.backgroundImage="url("+e.get("preview_url")+")",c.backgroundPosition=i+"% "+r+"%"):u=s()("span",{className:"account-gallery__item__icons"},void 0,s()("i",{className:"fa fa-eye-slash"})),s()("div",{className:"account-gallery__item"},void 0,s()(b.a,{to:"/statuses/"+t.get("id"),href:t.get("url"),style:c,onInterceptClick:this.handleClick},void 0,u,l))},o}(v.a),n.propTypes={media:g.a.map.isRequired},a)},155:function(e,o,t){"use strict";t.d(o,"a",function(){return g});var n=t(2),a=t.n(n),i=t(1),s=t.n(i),r=t(3),c=t.n(r),l=t(4),u=t.n(l),d=t(0),p=t.n(d),f=t(10),m=t.n(f),g=function(e){function o(){var t,n,a;s()(this,o);for(var i=arguments.length,r=Array(i),l=0;l<i;l++)r[l]=arguments[l];return t=n=c()(this,e.call.apply(e,[this].concat(r))),n.handleClick=function(){n.props.onClick()},a=t,c()(n,a)}return u()(o,e),o.prototype.render=function(){var e=this.props,o=e.icon,t=e.type,n=e.active,i=e.columnHeaderId,s="";return o&&(s=a()("i",{className:"fa fa-fw fa-"+o+" column-header__icon"})),a()("h1",{className:m()("column-header",{active:n}),id:i||null},void 0,a()("button",{onClick:this.handleClick},void 0,s,t))},o}(p.a.PureComponent)},274:function(e,o,t){"use strict";t.d(o,"a",function(){return b});var n=t(2),a=t.n(n),i=t(1),s=t.n(i),r=t(3),c=t.n(r),l=t(4),u=t.n(l),d=t(32),p=t.n(d),f=t(0),m=t.n(f),g=t(155),h=t(91),v=t(43),b=function(e){function o(){var t,n,a;s()(this,o);for(var i=arguments.length,r=Array(i),l=0;l<i;l++)r[l]=arguments[l];return t=n=c()(this,e.call.apply(e,[this].concat(r))),n.handleHeaderClick=function(){var e=n.node.querySelector(".scrollable");e&&(n._interruptScrollAnimation=Object(h.b)(e))},n.handleScroll=p()(function(){void 0!==n._interruptScrollAnimation&&n._interruptScrollAnimation()},200),n.setRef=function(e){n.node=e},a=t,c()(n,a)}return u()(o,e),o.prototype.scrollTop=function(){var e=this.node.querySelector(".scrollable");e&&(this._interruptScrollAnimation=Object(h.b)(e))},o.prototype.render=function(){var e=this.props,o=e.heading,t=e.icon,n=e.children,i=e.active,s=e.hideHeadingOnMobile,r=o&&(!s||s&&!Object(v.b)(window.innerWidth)),c=r&&o.replace(/ /g,"-"),l=r&&a()(g.a,{icon:t,active:i,type:o,onClick:this.handleHeaderClick,columnHeaderId:c});return m.a.createElement("div",{ref:this.setRef,role:"region","aria-labelledby":c,className:"column",onScroll:this.handleScroll},l,n)},o}(m.a.PureComponent)},275:function(e,o,t){"use strict";t.d(o,"a",function(){return h});var n,a,i=t(2),s=t.n(i),r=t(1),c=t.n(r),l=t(3),u=t.n(l),d=t(4),p=t.n(d),f=t(0),m=t.n(f),g=t(7),h=(a=n=function(e){function o(){return c()(this,o),u()(this,e.apply(this,arguments))}return p()(o,e),o.prototype.render=function(){var e=this.props,o=e.disabled,t=e.visible;return s()("button",{className:"load-more",disabled:o||!t,style:{visibility:t?"visible":"hidden"},onClick:this.props.onClick},void 0,s()(g.b,{id:"status.load_more",defaultMessage:"Load more"}))},o}(m.a.PureComponent),n.defaultProps={visible:!0},a)},276:function(e,o,t){"use strict";t.d(o,"a",function(){return b});var n,a,i=t(2),s=t.n(i),r=t(1),c=t.n(r),l=t(3),u=t.n(l),d=t(4),p=t.n(d),f=t(0),m=t.n(f),g=t(7),h=t(5),v=t.n(h),b=(a=n=function(e){function o(){var t,n,a;c()(this,o);for(var i=arguments.length,s=Array(i),r=0;r<i;
//# sourceMappingURL=account_gallery.js.map