2 lines
6.9 KiB
JavaScript
2 lines
6.9 KiB
JavaScript
webpackJsonp([20],{1006:function(n,t,e){"use strict";e.d(t,"a",function(){return _});var i,o,a=e(2),r=e.n(a),c=e(1),l=e.n(c),s=e(3),u=e.n(s),d=e(4),f=e.n(d),h=e(0),p=e.n(h),b=e(9),m=e(96),v=e(23),g=e(7),k=Object(g.f)({label:{id:"lists.new.title_placeholder",defaultMessage:"New list title"},title:{id:"lists.new.create",defaultMessage:"Add list"}}),y=function(n){return{value:n.getIn(["listEditor","title"]),disabled:n.getIn(["listEditor","isSubmitting"])}},C=function(n){return{onChange:function(t){return n(Object(m.w)(t))},onSubmit:function(){return n(Object(m.G)(!0))}}},_=(i=Object(b.connect)(y,C))(o=Object(g.g)(o=function(n){function t(){var e,i,o;l()(this,t);for(var a=arguments.length,r=Array(a),c=0;c<a;c++)r[c]=arguments[c];return e=i=u()(this,n.call.apply(n,[this].concat(r))),i.handleChange=function(n){i.props.onChange(n.target.value)},i.handleSubmit=function(n){n.preventDefault(),i.props.onSubmit()},i.handleClick=function(){i.props.onSubmit()},o=e,u()(i,o)}return f()(t,n),t.prototype.render=function(){var n=this.props,t=n.value,e=n.disabled,i=n.intl,o=i.formatMessage(k.label),a=i.formatMessage(k.title);return r()("form",{className:"column-inline-form",onSubmit:this.handleSubmit},void 0,r()("label",{},void 0,r()("span",{style:{display:"none"}},void 0,o),r()("input",{className:"setting-text",value:t,disabled:e,onChange:this.handleChange,placeholder:o})),r()(v.a,{disabled:e,icon:"plus",title:a,onClick:this.handleClick}))},t}(p.a.PureComponent))||o)||o},153:function(n,t,e){"use strict";e.d(t,"a",function(){return b});var i=e(2),o=e.n(i),a=e(1),r=e.n(a),c=e(3),l=e.n(c),s=e(4),u=e.n(s),d=e(0),f=e.n(d),h=e(10),p=e.n(h),b=function(n){function t(){var e,i,o;r()(this,t);for(var a=arguments.length,c=Array(a),s=0;s<a;s++)c[s]=arguments[s];return e=i=l()(this,n.call.apply(n,[this].concat(c))),i.handleClick=function(){i.props.onClick()},o=e,l()(i,o)}return u()(t,n),t.prototype.render=function(){var n=this.props,t=n.icon,e=n.type,i=n.active,a=n.columnHeaderId,r="";return t&&(r=o()("i",{className:"fa fa-fw fa-"+t+" column-header__icon"})),o()("h1",{className:p()("column-header",{active:i}),id:a||null},void 0,o()("button",{onClick:this.handleClick},void 0,r,e))},t}(f.a.PureComponent)},283:function(n,t,e){"use strict";e.d(t,"a",function(){return g});var i=e(2),o=e.n(i),a=e(1),r=e.n(a),c=e(3),l=e.n(c),s=e(4),u=e.n(s),d=e(32),f=e.n(d),h=e(0),p=e.n(h),b=e(153),m=e(90),v=e(43),g=function(n){function t(){var e,i,o;r()(this,t);for(var a=arguments.length,c=Array(a),s=0;s<a;s++)c[s]=arguments[s];return e=i=l()(this,n.call.apply(n,[this].concat(c))),i.handleHeaderClick=function(){var n=i.node.querySelector(".scrollable");n&&(i._interruptScrollAnimation=Object(m.b)(n))},i.handleScroll=f()(function(){void 0!==i._interruptScrollAnimation&&i._interruptScrollAnimation()},200),i.setRef=function(n){i.node=n},o=e,l()(i,o)}return u()(t,n),t.prototype.scrollTop=function(){var n=this.node.querySelector(".scrollable");n&&(this._interruptScrollAnimation=Object(m.b)(n))},t.prototype.render=function(){var n=this.props,t=n.heading,e=n.icon,i=n.children,a=n.active,r=n.hideHeadingOnMobile,c=t&&(!r||r&&!Object(v.b)(window.innerWidth)),l=c&&t.replace(/ /g,"-"),s=c&&o()(b.a,{icon:e,active:a,type:t,onClick:this.handleHeaderClick,columnHeaderId:l});return p.a.createElement("div",{ref:this.setRef,role:"region","aria-labelledby":l,className:"column",onScroll:this.handleScroll},s,i)},t}(p.a.PureComponent)},285:function(n,t,e){"use strict";e.d(t,"a",function(){return g});var i,o,a=e(2),r=e.n(a),c=e(1),l=e.n(c),s=e(3),u=e.n(s),d=e(4),f=e.n(d),h=e(0),p=e.n(h),b=e(7),m=e(5),v=e.n(m),g=(o=i=function(n){function t(){var e,i,o;l()(this,t);for(var a=arguments.length,r=Array(a),c=0;c<a;c++)r[c]=arguments[c];return e=i=u()(this,n.call.apply(n,[this].concat(r))),i.handleClick=function(){window.history&&1===window.history.length?i.context.router.history.push("/"):i.context.router.history.goBack()},o=e,u()(i,o)}return f()(t,n),t.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()(b.b,{id:"column_back_button.label",defaultMessage:"Back"}))},t}(p.a.PureComponent),i.contextTypes={router:v.a.object},o)},297:function(n,t,e){"use strict";e.d(t,"a",function(){return p});var i=e(2),o=e.n(i),a=e(1),r=e.n(a),c=e(3),l=e.n(c),s=e(4),u=e.n(s),d=e(0),f=(e.n(d),e(7)),h=e(285),p=function(n){function t(){return r()(this,t),l()(this,n.apply(this,arguments))}return u()(t,n),t.prototype.render=function(){return o()("div",{className:"column-back-button--slim"},void 0,o()("div",{role:"button",tabIndex:"0",onClick:this.handleClick,className:"column-back-button column-back-button--slim-button"},void 0,o()("i",{className:"fa fa-fw fa-chevron-left column-back-button__icon"}),o()(f.b,{id:"column_back_button.label",defaultMessage:"Back"})))},t}(h.a)},832:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e.d(t,"default",function(){return R});var i,o,a,r,c=e(2),l=e.n(c),s=e(1),u=e.n(s),d=e(3),f=e.n(d),h=e(4),p=e.n(h),b=e(0),m=(e.n(b),e(9)),v=e(5),g=e.n(v),k=e(14),y=e.n(k),C=e(298),_=e(283),N=e(297),j=e(96),S=e(7),w=e(12),O=e.n(w),M=e(910),x=e(911),A=e(1006),q=e(95),H=(e.n(q),Object(S.f)({heading:{id:"column.lists",defaultMessage:"Lists"},subheading:{id:"lists.subheading",defaultMessage:"Your lists"}})),I=Object(q.createSelector)([function(n){return n.get("lists")}],function(n){return n?n.toList().filter(function(n){return!!n}).sort(function(n,t){return n.get("title").localeCompare(t.get("title"))}):n}),P=function(n){return{lists:I(n)}},R=(i=Object(m.connect)(P))(o=Object(S.g)((r=a=function(n){function t(){return u()(this,t),f()(this,n.apply(this,arguments))}return p()(t,n),t.prototype.componentWillMount=function(){this.props.dispatch(Object(j.C)())},t.prototype.render=function(){var n=this.props,t=n.intl,e=n.lists;return e?l()(_.a,{icon:"bars",heading:t.formatMessage(H.heading)},void 0,l()(N.a,{}),l()(A.a,{}),l()("div",{className:"scrollable"},void 0,l()(x.a,{text:t.formatMessage(H.subheading)}),e.map(function(n){return l()(M.a,{to:"/timelines/list/"+n.get("id"),icon:"bars",text:n.get("title")},n.get("id"))}))):l()(_.a,{},void 0,l()(C.a,{}))},t}(O.a),a.propTypes={params:g.a.object.isRequired,dispatch:g.a.func.isRequired,lists:y.a.list,intl:g.a.object.isRequired},o=r))||o)||o},910:function(n,t,e){"use strict";var i=e(2),o=e.n(i),a=e(0),r=(e.n(a),e(44)),c=function(n){var t=n.icon,e=n.text,i=n.to,a=n.href,c=n.method,l=n.badge,s=void 0!==l?o()("span",{className:"column-link__badge"},void 0,l):null;return a?o()("a",{href:a,className:"column-link","data-method":c},void 0,o()("i",{className:"fa fa-fw fa-"+t+" column-link__icon"}),e,s):o()(r.b,{to:i,className:"column-link"},void 0,o()("i",{className:"fa fa-fw fa-"+t+" column-link__icon"}),e,s)};t.a=c},911:function(n,t,e){"use strict";var i=e(2),o=e.n(i),a=e(0),r=(e.n(a),function(n){var t=n.text;return o()("div",{className:"column-subheading"},void 0,t)});t.a=r}});
|
|
//# sourceMappingURL=lists.js.map
|