akkoma/priv/static/packs/features/keyboard_shortcuts.js

2 lines
6.9 KiB
JavaScript
Raw Normal View History

2018-08-12 13:29:30 +00:00
webpackJsonp([28],{155:function(t,o,e){"use strict";e.d(o,"a",function(){return f});var d=e(2),i=e.n(d),n=e(1),r=e.n(n),a=e(3),s=e.n(a),c=e(4),u=e.n(c),l=e(0),b=e.n(l),v=e(10),h=e.n(v),f=function(t){function o(){var e,d,i;r()(this,o);for(var n=arguments.length,a=Array(n),c=0;c<n;c++)a[c]=arguments[c];return e=d=s()(this,t.call.apply(t,[this].concat(a))),d.handleClick=function(){d.props.onClick()},i=e,s()(d,i)}return u()(o,t),o.prototype.render=function(){var t=this.props,o=t.icon,e=t.type,d=t.active,n=t.columnHeaderId,r="";return o&&(r=i()("i",{className:"fa fa-fw fa-"+o+" column-header__icon"})),i()("h1",{className:h()("column-header",{active:d}),id:n||null},void 0,i()("button",{onClick:this.handleClick},void 0,r,e))},o}(b.a.PureComponent)},274:function(t,o,e){"use strict";e.d(o,"a",function(){return y});var d=e(2),i=e.n(d),n=e(1),r=e.n(n),a=e(3),s=e.n(a),c=e(4),u=e.n(c),l=e(32),b=e.n(l),v=e(0),h=e.n(v),f=e(155),k=e(91),p=e(43),y=function(t){function o(){var e,d,i;r()(this,o);for(var n=arguments.length,a=Array(n),c=0;c<n;c++)a[c]=arguments[c];return e=d=s()(this,t.call.apply(t,[this].concat(a))),d.handleHeaderClick=function(){var t=d.node.querySelector(".scrollable");t&&(d._interruptScrollAnimation=Object(k.b)(t))},d.handleScroll=b()(function(){void 0!==d._interruptScrollAnimation&&d._interruptScrollAnimation()},200),d.setRef=function(t){d.node=t},i=e,s()(d,i)}return u()(o,t),o.prototype.scrollTop=function(){var t=this.node.querySelector(".scrollable");t&&(this._interruptScrollAnimation=Object(k.b)(t))},o.prototype.render=function(){var t=this.props,o=t.heading,e=t.icon,d=t.children,n=t.active,r=t.hideHeadingOnMobile,a=o&&(!r||r&&!Object(p.b)(window.innerWidth)),s=a&&o.replace(/ /g,"-"),c=a&&i()(f.a,{icon:e,active:n,type:o,onClick:this.handleHeaderClick,columnHeaderId:s});return h.a.createElement("div",{ref:this.setRef,role:"region","aria-labelledby":s,className:"column",onScroll:this.handleScroll},c,d)},o}(h.a.PureComponent)},276:function(t,o,e){"use strict";e.d(o,"a",function(){return y});var d,i,n=e(2),r=e.n(n),a=e(1),s=e.n(a),c=e(3),u=e.n(c),l=e(4),b=e.n(l),v=e(0),h=e.n(v),f=e(7),k=e(5),p=e.n(k),y=(i=d=function(t){function o(){var e,d,i;s()(this,o);for(var n=arguments.length,r=Array(n),a=0;a<n;a++)r[a]=arguments[a];return e=d=u()(this,t.call.apply(t,[this].concat(r))),d.handleClick=function(){window.history&&1===window.history.length?d.context.router.history.push("/"):d.context.router.history.goBack()},i=e,u()(d,i)}return b()(o,t),o.prototype.render=function(){return r()("button",{onClick:this.handleClick,className:"column-back-button"},void 0,r()("i",{className:"fa fa-fw fa-chevron-left column-back-button__icon"}),r()(f.b,{id:"column_back_button.label",defaultMessage:"Back"}))},o}(h.a.PureComponent),d.contextTypes={router:p.a.object},i)},288:function(t,o,e){"use strict";e.d(o,"a",function(){return h});var d=e(2),i=e.n(d),n=e(1),r=e.n(n),a=e(3),s=e.n(a),c=e(4),u=e.n(c),l=e(0),b=(e.n(l),e(7)),v=e(276),h=function(t){function o(){return r()(this,o),s()(this,t.apply(this,arguments))}return u()(o,t),o.prototype.render=function(){return i()("div",{className:"column-back-button--slim"},void 0,i()("div",{role:"button",tabIndex:"0",onClick:this.handleClick,className:"column-back-button column-back-button--slim-button"},void 0,i()("i",{className:"fa fa-fw fa-chevron-left column-back-button__icon"}),i()(b.b,{id:"column_back_button.label",defaultMessage:"Back"})))},o}(v.a)},820:function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),e.d(o,"default",function(){return C});var d,i,n,r=e(2),a=e.n(r),s=e(1),c=e.n(s),u=e(3),l=e.n(u),b=e(4),v=e.n(b),h=e(0),f=(e.n(h),e(274)),k=e(288),p=e(7),y=e(5),m=e.n(y),g=e(12),_=e.n(g),M=Object(p.f)({heading:{id:"keyboard_shortcuts.heading",defaultMessage:"Keyboard Shortcuts"}}),C=Object(p.g)((n=i=function(t){function o(){return c()(this,o),l()(this,t.apply(this,arguments))}return v()(o,t),o.prototype.render=function(){var t=this.props.intl;return a()(f.a,{icon:"question",heading:t.formatMessage(M.heading)},void 0,a()(k.a,{}),a()("div",{className:"keyboard-shortcuts scrollabl
//# sourceMappingURL=keyboard_shortcuts.js.map