forked from AkkomaGang/akkoma
2 lines
No EOL
2.8 KiB
JavaScript
2 lines
No EOL
2.8 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[79],{845:function(n,t,e){"use strict";e.r(t),e.d(t,"default",(function(){return A}));var c,i,o,r=e(0),a=(e(9),e(6),e(8)),u=e(1),s=(e(3),e(5)),d=e.n(s),l=e(16),b=e.n(l),f=e(15),p=e(21),j=e(7),O=e(24),v=e(108),m=e(1151),I=Object(j.g)(Object(f.connect)((function(){var n=Object(v.d)();return function(t,e){var c=e.accountId,i=e.added;return{account:n(t,c),added:void 0===i?t.getIn(["pinnedAccountsEditor","accounts","items"]).includes(c):i}}}),(function(n,t){var e=t.accountId;return{onRemove:function(){return n(Object(O.U)(e))},onAdd:function(){return n(Object(O.O)(e))}}}))(m.a)),g=e(1152),_=Object(j.g)(Object(f.connect)((function(n){return{value:n.getIn(["pinnedAccountsEditor","suggestions","value"])}}),(function(n){return{onSubmit:function(t){return n(Object(O.K)(t))},onClear:function(){return n(Object(O.B)())},onChange:function(t){return n(Object(O.A)(t))}}}))(g.a)),h=e(97),R=e(35),w=e.n(R);var A=Object(f.connect)((function(n){return{accountIds:n.getIn(["pinnedAccountsEditor","accounts","items"]),searchAccountIds:n.getIn(["pinnedAccountsEditor","suggestions","items"])}}),(function(n){return{onInitialize:function(){return n(Object(O.J)())},onClear:function(){return n(Object(O.B)())},onReset:function(){return n(Object(O.Q)())}}}))(c=Object(j.g)((o=i=function(n){Object(a.a)(e,n);var t;t=e;function e(){return n.apply(this,arguments)||this}var c=e.prototype;return c.componentDidMount=function(){(0,this.props.onInitialize)()},c.componentWillUnmount=function(){(0,this.props.onReset)()},c.render=function(){var n=this.props,t=n.accountIds,e=n.searchAccountIds,c=n.onClear,i=e.size>0;return Object(r.a)("div",{className:"modal-root__modal list-editor"},void 0,Object(r.a)("h4",{},void 0,Object(r.a)(j.b,{id:"endorsed_accounts_editor.endorsed_accounts",defaultMessage:"Featured accounts"})),Object(r.a)(_,{}),Object(r.a)("div",{className:"drawer__pager"},void 0,Object(r.a)("div",{className:"drawer__inner list-editor__accounts"},void 0,t.map((function(n){return Object(r.a)(I,{accountId:n,added:!0},n)}))),i&&Object(r.a)("div",{role:"button",tabIndex:"-1",className:"drawer__backdrop",onClick:c}),Object(r.a)(h.a,{defaultStyle:{x:-100},style:{x:w()(i?0:-100,{stiffness:210,damping:20})}},void 0,(function(n){var t=n.x;return(Object(r.a)("div",{className:"drawer__inner backdrop",style:{transform:0===t?null:"translateX("+t+"%)",visibility:-100===t?"hidden":"visible"}},void 0,e.map((function(n){return Object(r.a)(I,{accountId:n},n)}))))}))))},e}(p.a),Object(u.a)(i,"propTypes",{onClose:d.a.func.isRequired,intl:d.a.object.isRequired,onInitialize:d.a.func.isRequired,onClear:d.a.func.isRequired,onReset:d.a.func.isRequired,title:d.a.string.isRequired,accountIds:b.a.list.isRequired,searchAccountIds:b.a.list.isRequired}),c=o))||c)||c}}]);
|
|
//# sourceMappingURL=pinned_accounts_editor.js.map
|