honkoma/priv/static/packs/flavours/glitch/async/compose.js

2 lines
11 KiB
JavaScript
Raw Normal View History

2019-06-26 19:06:28 +00:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[48],{647:function(e,t,i){"use strict";var s=i(21),a=i(7),n=i(644),o=i(19),c=i(50),r=i(363),u=i(366),g=Object(a.f)({missingDescriptionMessage:{id:"confirmations.missing_media_description.message",defaultMessage:"At least one media attachment is lacking a description. Consider describing all media attachments for the visually impaired before sending your toot."},missingDescriptionConfirm:{id:"confirmations.missing_media_description.confirm",defaultMessage:"Send anyway"}});t.a=Object(s.connect)(function(e){var t=e.getIn(["local_settings","always_show_spoilers_field"]),i=e.getIn(["compose","in_reply_to"]),s=i?e.getIn(["statuses",i,"visibility"]):null,a=e.getIn(["local_settings","side_arm"]),n=s?Object(u.a)(s,a):null,o=null;switch(e.getIn(["local_settings","side_arm_reply_mode"])){case"copy":o=s;break;case"restrict":o=n}return o=o||a,{advancedOptions:e.getIn(["compose","advanced_options"]),focusDate:e.getIn(["compose","focusDate"]),caretPosition:e.getIn(["compose","caretPosition"]),isSubmitting:e.getIn(["compose","is_submitting"]),isChangingUpload:e.getIn(["compose","is_changing_upload"]),isUploading:e.getIn(["compose","is_uploading"]),layout:e.getIn(["local_settings","layout"]),media:e.getIn(["compose","media_attachments"]),preselectDate:e.getIn(["compose","preselectDate"]),privacy:e.getIn(["compose","privacy"]),contentType:e.getIn(["compose","content_type"]),sideArm:o,sensitive:e.getIn(["compose","sensitive"]),showSearch:e.getIn(["search","submitted"])&&!e.getIn(["search","hidden"]),spoiler:t||e.getIn(["compose","spoiler"]),spoilerText:e.getIn(["compose","spoiler_text"]),suggestions:e.getIn(["compose","suggestions"]),text:e.getIn(["compose","text"]),anyMedia:0<e.getIn(["compose","media_attachments"]).size,spoilersAlwaysOn:t,mediaDescriptionConfirmation:e.getIn(["local_settings","confirm_missing_media_description"]),preselectOnReply:e.getIn(["local_settings","preselect_on_reply"])}},function(a,e){var t=e.intl;return{onChange:function(e){a(Object(o.Q)(e))},onSubmit:function(e){a(Object(o.nb)(e))},onClearSuggestions:function(){a(Object(o.ab)())},onFetchSuggestions:function(e){a(Object(o.db)(e))},onSuggestionSelected:function(e,t,i,s){a(Object(o.mb)(e,t,i,s))},onChangeSpoilerText:function(e){a(Object(o.U)(e))},onChangeContentType:function(e){a(Object(o.S)(e))},onPaste:function(e){a(Object(o.qb)(e))},onPickEmoji:function(e,t){a(Object(o.fb)(e,t))},onChangeSpoilerness:function(){a(Object(o.V)())},onChangeVisibility:function(e){a(Object(o.W)(e))},onMount:function(){a(Object(o.hb)())},onUnmount:function(){a(Object(o.pb)())},onMediaDescriptionConfirm:function(e){a(Object(c.d)("CONFIRM",{message:t.formatMessage(g.missingDescriptionMessage),confirm:t.formatMessage(g.missingDescriptionConfirm),onConfirm:function(){return a(Object(o.nb)(e))},onDoNotAsk:function(){return a(Object(r.b)(["confirm_missing_media_description"],!1))}}))}}})(n.a)},692:function(e,t,i){"use strict";i.r(t);var s,a,n,o,c,r,u,g=i(0),l=i(6),d=i(3),b=i.n(d),m=i(647),f=i(21),p=i(964),O=i(29),h=Object(f.connect)(function(e){return{account:e.getIn(["accounts",O.k])}})(p.a),j=i(7),_=i(12),v=i.n(_),y=i(231),I=i(965),M=Object(f.connect)(function(e){return{value:e.getIn(["search","value"]),submitted:e.getIn(["search","submitted"])}},function(t){return{onChange:function(e){t(Object(y.e)(e))},onClear:function(){t(Object(y.f)())},onSubmit:function(){t(Object(y.h)())},onShow:function(){t(Object(y.g)())}}})(I.a),S=i(192),w=i(45),C=i.n(w),N=i(1),k=i(5),D=i.n(k),T=i(26),x=i.n(T),P=i(630),A=i(911),q=i(25),z=i(966),R=i(317),U=i(967),E=function(e){var t=e.hashtag;return Object(g.a)("div",{className:"trends__item"},void 0,Object(g.a)("div",{className:"trends__item__name"},void 0,Object(g.a)(R.a,{href:t.get("url"),to:"/timelines/tag/"+t.get("name")},void 0,"#",Object(g.a)("span",{},void 0,t.get("name"))),Object(g.a)(j.b,{id:"trends.count_by_accounts",defaultMessage:"{count} {rawCount, plural, one {person} other {people}} talking",values:{rawCount:t.getIn(["history",0,"accounts"]),count:Object(g.a)("strong",{},void 0,Object(U.a)(t.get
//# sourceMappingURL=compose.js.map