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

2 lines
34 KiB
JavaScript
Raw Normal View History

2018-09-20 16:10:13 +00:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[31],{712:function(e,t,n){"use strict";n.r(t);var r,o,a,i=n(0),u=n.n(i),s=n(6),l=n.n(s),c=n(3),f=n.n(c),p=n(7),d=n.n(p),y=n(1),h=n.n(y),m=n(203),v=n(12),b=n(695),g=n(10),_=Object(v.connect)(function(e){return{account:e.getIn(["accounts",g.i])}})(b.a),w=n(11),O=n(810),j=n(4),x=n(120),M=n(700),P=Object(v.connect)(function(e){return{value:e.getIn(["search","value"]),submitted:e.getIn(["search","submitted"])}},function(e){return{onChange:function(t){e(Object(x.e)(t))},onClear:function(){e(Object(x.f)())},onSubmit:function(){e(Object(x.h)())},onShow:function(){e(Object(x.g)())}}})(M.a),k=n(25),E=n(22),T=n.n(E),N=n(17),S=n.n(N),R=n(693),C=n(154),I=n(18),A=n(759),L=n(139),D=function(e){var t=e.hashtag;return u()("div",{className:"trends__item"},void 0,u()("div",{className:"trends__item__name"},void 0,u()(O.a,{to:"/timelines/tag/"+t.get("name")},void 0,"#",u()("span",{},void 0,t.get("name"))),u()(j.b,{id:"trends.count_by_accounts",defaultMessage:"{count} {rawCount, plural, one {person} other {people}} talking",values:{rawCount:t.getIn(["history",0,"accounts"]),count:u()("strong",{},void 0,Object(L.a)(t.getIn(["history",0,"accounts"])))}})),u()("div",{className:"trends__item__current"},void 0,Object(L.a)(t.getIn(["history",0,"uses"]))),u()("div",{className:"trends__item__sparkline"},void 0,u()(A.Sparklines,{width:50,height:28,data:t.get("history")&&t.get("history").reverse().map(function(e){return e.get("uses")}).toArray()},void 0,u()(A.SparklinesCurve,{style:{fill:"none"}}))))},W=(o=r=function(e){function t(){return l()(this,t),f()(this,e.apply(this,arguments))}return d()(t,e),t.prototype.render=function(){var e=this.props.results,t=void 0,n=void 0,r=void 0,o=0;return e.get("accounts")&&e.get("accounts").size>0&&(o+=e.get("accounts").size,t=u()("div",{className:"search-results__section"},void 0,u()("h5",{},void 0,u()("i",{className:"fa fa-fw fa-users"}),u()(j.b,{id:"search_results.accounts",defaultMessage:"People"})),e.get("accounts").map(function(e){return u()(R.a,{id:e},e)}))),e.get("statuses")&&e.get("statuses").size>0&&(o+=e.get("statuses").size,n=u()("div",{className:"search-results__section"},void 0,u()("h5",{},void 0,u()("i",{className:"fa fa-fw fa-quote-right"}),u()(j.b,{id:"search_results.statuses",defaultMessage:"Toots"})),e.get("statuses").map(function(e){return u()(C.a,{id:e},e)}))),e.get("hashtags")&&e.get("hashtags").size>0&&(o+=e.get("hashtags").size,r=u()("div",{className:"search-results__section"},void 0,u()("h5",{},void 0,u()("i",{className:"fa fa-fw fa-hashtag"}),u()(j.b,{id:"search_results.hashtags",defaultMessage:"Hashtags"})),e.get("hashtags").map(function(e){return u()(D,{hashtag:e},e.get("name"))}))),u()("div",{className:"search-results"},void 0,u()("div",{className:"search-results__header"},void 0,u()("i",{className:"fa fa-search fa-fw"}),u()(j.b,{id:"search_results.total",defaultMessage:"{count, number} {count, plural, one {result} other {results}}",values:{count:o}})),t,n,r)},t}(I.a),r.propTypes={results:S.a.map.isRequired},o),z=Object(v.connect)(function(e){return{results:e.getIn(["search","results"])}})(W);n.d(t,"default",function(){return V});var F=Object(j.f)({start:{id:"getting_started.heading",defaultMessage:"Getting started"},home_timeline:{id:"tabs_bar.home",defaultMessage:"Home"},notifications:{id:"tabs_bar.notifications",defaultMessage:"Notifications"},public:{id:"navigation_bar.public_timeline",defaultMessage:"Federated timeline"},community:{id:"navigation_bar.community_timeline",defaultMessage:"Local timeline"},preferences:{id:"navigation_bar.preferences",defaultMessage:"Preferences"},logout:{id:"navigation_bar.logout",defaultMessage:"Logout"},compose:{id:"navigation_bar.compose",defaultMessage:"Compose new toot"}}),V=Object(v.connect)(function(e,t){return{columns:e.getIn(["settings","columns"]),showSearch:t.multiColumn?e.getIn(["search","submitted"])&&!e.getIn(["search","hidden"]):t.isSearchPage}})(a=Object(j.g)(a=function(e){function t(){var n,r,o;l()(this,t);for(var a=arguments.length,i=Array(a),u=0;u<a;u++)i[u]=arguments[u];return n=r
//# sourceMappingURL=compose.js.map