Pleroma/priv/static/packs/features/compose.js

2 lines
49 KiB
JavaScript
Raw Normal View History

2020-05-20 07:55:14 +02:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{404:function(e,t,o){"use strict";(function(e){o.d(t,"a",(function(){return u}));var a=o(0),n=(o(9),o(6),o(8)),s=o(3),i=o.n(s),c=o(83),r=o.n(c);var l=e.env.CDN_HOST||"",u=function(e){Object(n.a)(o,e);var t;t=o;function o(){return e.apply(this,arguments)||this}return o.prototype.render=function(){var e,t=this.props.emoji;if(t.custom)e=t.imageUrl;else{var o=r.a[t.native]||r.a[t.native.replace(/\uFE0F$/,"")];if(!o)return null;e=l+"/emoji/"+o.filename+".svg"}return(Object(a.a)("div",{className:"autosuggest-emoji"},void 0,Object(a.a)("img",{className:"emojione",src:e,alt:t.native||t.colons}),t.colons))},o}(i.a.PureComponent)}).call(this,o(50))},588:function(e,t,o){"use strict";var a,n,s,i=o(15),c=o(0),r=o(2),l=o(9),u=o(6),p=o(8),d=o(1),g=o(3),b=o.n(g),f=o(320),m=o(110),h=o(16),O=o.n(h),v=o(5),j=o.n(v),y=o(23),_=o(210),C=o(115),S=o(53),M=o(122),k=o(7),w=o(21),x=o(222),T=o(282);var R=Object(k.f)({cancel:{id:"reply_indicator.cancel",defaultMessage:"Cancel"}}),N=Object(k.g)((s=n=function(e){Object(p.a)(o,e);var t;t=o;function o(){for(var t,o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return t=e.call.apply(e,[this].concat(a))||this,Object(d.a)(Object(r.a)(t),"handleClick",(function(){t.props.onCancel()})),Object(d.a)(Object(r.a)(t),"handleAccountClick",(function(e){0!==e.button||e.ctrlKey||e.metaKey||(e.preventDefault(),t.context.router.history.push("/accounts/"+t.props.status.getIn(["account","id"])))})),t}return o.prototype.render=function(){var e=this.props,t=e.status,o=e.intl;if(!t)return null;var a={__html:t.get("contentHtml")},n={direction:Object(x.a)(t.get("search_index"))?"rtl":"ltr"};return Object(c.a)("div",{className:"reply-indicator"},void 0,Object(c.a)("div",{className:"reply-indicator__header"},void 0,Object(c.a)("div",{className:"reply-indicator__cancel"},void 0,Object(c.a)(S.a,{title:o.formatMessage(R.cancel),icon:"times",onClick:this.handleClick,inverted:!0})),Object(c.a)("a",{href:t.getIn(["account","url"]),onClick:this.handleAccountClick,className:"reply-indicator__display-name"},void 0,Object(c.a)("div",{className:"reply-indicator__display-avatar"},void 0,Object(c.a)(C.a,{account:t.get("account"),size:24})),Object(c.a)(M.a,{account:t.get("account")}))),Object(c.a)("div",{className:"reply-indicator__content",style:n,dangerouslySetInnerHTML:a}),t.get("media_attachments").size>0&&Object(c.a)(T.a,{compact:!0,media:t.get("media_attachments")}))},o}(w.a),Object(d.a)(n,"contextTypes",{router:j.a.object}),Object(d.a)(n,"propTypes",{status:O.a.map,onCancel:j.a.func.isRequired,intl:j.a.object.isRequired}),a=s))||a,D=Object(i.connect)((function(){var e=Object(_.f)();return function(t){return{status:e(t,{id:t.getIn(["compose","in_reply_to"])})}}}),(function(e){return{onCancel:function(){e(Object(y.M)())}}}))(N);var I=function(e){Object(p.a)(o,e);var t;t=o;function o(){return e.apply(this,arguments)||this}return o.prototype.render=function(){var e=this.props.account;return(Object(c.a)("div",{className:"autosuggest-account",title:e.get("acct")},void 0,Object(c.a)("div",{className:"autosuggest-account-icon"},void 0,Object(c.a)(C.a,{account:e,size:18})),Object(c.a)(M.a,{account:e})))},o}(w.a);Object(d.a)(I,"propTypes",{account:O.a.map.isRequired});var P=Object(i.connect)((function(){var e=Object(_.d)();return function(t,o){var a=o.id;return{account:e(t,a)}}}))(I),F=o(404),q=o(421);var A=function(e){Object(p.a)(o,e);var t;t=o;function o(){return e.apply(this,arguments)||this}return o.prototype.render=function(){var e=this.props.tag,t=e.history&&Object(q.a)(e.history.reduce((function(e,t){return e+1*t.uses}),0));return Object(c.a)("div",{className:"autosuggest-hashtag"},void 0,Object(c.a)("div",{className:"autosuggest-hashtag__name"},void 0,"#",Object(c.a)("strong",{},void 0,e.name)),void 0!==e.history&&Object(c.a)("div",{className:"autosuggest-hashtag__uses"},void 0,Object(c.a)(k.b,{id:"autosuggest_hashtag.per_week",defaultMessage:"{count} per week",values:{count:t}})))},o}(b.a.PureComponent),E=o(151),K=o(14),U=o.n(K);var W=function(e,t){var o,a=e.slic
//# sourceMappingURL=compose.js.map