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

2 lines
22 KiB
JavaScript
Raw Normal View History

2020-01-22 15:00:23 +00:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[54],{568:function(t,e,n){"use strict";var a=n(12),o=n(6),i=n(536),r=n(16),c=n(42),s=n(297),l=n(300),u=Object(o.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"},missingDescriptionEdit:{id:"confirmations.missing_media_description.edit",defaultMessage:"Edit media"}});e.a=Object(o.g)(Object(a.connect)(function(t){var e=t.getIn(["local_settings","always_show_spoilers_field"]),n=t.getIn(["compose","in_reply_to"]),a=n?t.getIn(["statuses",n,"visibility"]):null,o=t.getIn(["local_settings","side_arm"]),i=a?Object(l.a)(a,o):null,r=null;switch(t.getIn(["local_settings","side_arm_reply_mode"])){case"copy":r=a;break;case"restrict":r=i}return r=r||o,{advancedOptions:t.getIn(["compose","advanced_options"]),focusDate:t.getIn(["compose","focusDate"]),caretPosition:t.getIn(["compose","caretPosition"]),isSubmitting:t.getIn(["compose","is_submitting"]),isChangingUpload:t.getIn(["compose","is_changing_upload"]),isUploading:t.getIn(["compose","is_uploading"]),layout:t.getIn(["local_settings","layout"]),media:t.getIn(["compose","media_attachments"]),preselectDate:t.getIn(["compose","preselectDate"]),privacy:t.getIn(["compose","privacy"]),sideArm:r,sensitive:t.getIn(["compose","sensitive"]),showSearch:t.getIn(["search","submitted"])&&!t.getIn(["search","hidden"]),spoiler:e||t.getIn(["compose","spoiler"]),spoilerText:t.getIn(["compose","spoiler_text"]),suggestions:t.getIn(["compose","suggestions"]),text:t.getIn(["compose","text"]),anyMedia:t.getIn(["compose","media_attachments"]).size>0,spoilersAlwaysOn:e,mediaDescriptionConfirmation:t.getIn(["local_settings","confirm_missing_media_description"]),preselectOnReply:t.getIn(["local_settings","preselect_on_reply"])}},function(t,e){var n=e.intl;return{onChange:function(e){t(Object(r.Q)(e))},onSubmit:function(e){t(Object(r.ob)(e))},onClearSuggestions:function(){t(Object(r.ab)())},onFetchSuggestions:function(e){t(Object(r.eb)(e))},onSuggestionSelected:function(e,n,a,o){t(Object(r.nb)(e,n,a,o))},onChangeSpoilerText:function(e){t(Object(r.U)(e))},onPaste:function(e){t(Object(r.rb)(e))},onPickEmoji:function(e,n){t(Object(r.gb)(e,n))},onChangeSpoilerness:function(){t(Object(r.V)())},onChangeVisibility:function(e){t(Object(r.W)(e))},onMediaDescriptionConfirm:function(e,a){t(Object(c.d)("CONFIRM",{message:n.formatMessage(u.missingDescriptionMessage),confirm:n.formatMessage(u.missingDescriptionConfirm),onConfirm:function(){return t(Object(r.ob)(e))},secondary:n.formatMessage(u.missingDescriptionEdit),onSecondary:function(){return t(Object(c.d)("FOCAL_POINT",{id:a}))},onDoNotAsk:function(){return t(Object(s.b)(["confirm_missing_media_description"],!1))}}))}}})(i.a))},59:function(t,e,n){var a,o;(function(){(function(){(function(){this.Rails={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:{selector:"button[data-remote]:not([form]), button[data-confirm]:not([form])",exclude:"form button"},inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",formDisableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",formEnableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",fileIn
2019-06-26 19:06:28 +00:00
//# sourceMappingURL=compose.js.map