spc-pleroma/priv/static/packs/flavours/glitch/async/settings_modal.js

2 lines
21 KiB
JavaScript
Raw Normal View History

2020-02-29 05:41:13 +00:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[84],{810:function(e,t,a){"use strict";a.r(t);var s,i,n=a(0),o=a(2),d=a(7),l=a(1),c=a(3),g=a.n(c),r=a(13),b=a(6),u=function(e){function t(){for(var t,a=arguments.length,s=new Array(a),i=0;i<a;i++)s[i]=arguments[i];return t=e.call.apply(e,[this].concat(s))||this,Object(l.a)(Object(o.a)(t),"handleChange",(function(e){var a=e.target,s=t.props,i=s.item,n=s.onChange,o=s.options,d=s.placeholder;o&&o.length>0?n(i,a.value):n(i,d?a.value:a.checked)})),t}return Object(d.a)(t,e),t.prototype.render=function(){var e=this.handleChange,t=this.props,a=t.settings,s=t.item,i=t.id,o=t.options,d=t.children,l=t.dependsOn,c=t.dependsOnNot,g=t.placeholder,r=!0;if(l)for(var b=0;b<l.length;b++)r=r&&a.getIn(l[b]);if(c)for(var u=0;u<c.length;u++)r=r&&!a.getIn(c[u]);if(o&&o.length>0){var m=a.getIn(s),p=o&&o.length>0&&o.map((function(t){var a=i+"--"+t.value;return Object(n.a)("label",{htmlFor:a},void 0,Object(n.a)("input",{type:"radio",name:i,id:a,value:t.value,onBlur:e,onChange:e,checked:m===t.value,disabled:!r}),t.message,t.hint&&Object(n.a)("span",{className:"hint"},void 0,t.hint))}));return Object(n.a)("div",{className:"glitch local-settings__page__item radio_buttons"},void 0,Object(n.a)("fieldset",{},void 0,Object(n.a)("legend",{},void 0,d),p))}return g?Object(n.a)("div",{className:"glitch local-settings__page__item string"},void 0,Object(n.a)("label",{htmlFor:i},void 0,Object(n.a)("p",{},void 0,d),Object(n.a)("p",{},void 0,Object(n.a)("input",{id:i,type:"text",value:a.getIn(s),placeholder:g,onChange:e,disabled:!r})))):Object(n.a)("div",{className:"glitch local-settings__page__item boolean"},void 0,Object(n.a)("label",{htmlFor:i},void 0,Object(n.a)("input",{id:i,type:"checkbox",checked:a.getIn(s),onChange:e,disabled:!r}),d))},t}(g.a.PureComponent),m=Object(b.f)({layout_auto:{id:"layout.auto",defaultMessage:"Auto"},layout_auto_hint:{id:"layout.hint.auto",defaultMessage:"Automatically chose layout based on “Enable advanced web interface” setting and screen size."},layout_desktop:{id:"layout.desktop",defaultMessage:"Desktop"},layout_desktop_hint:{id:"layout.hint.desktop",defaultMessage:"Use multiple-column layout regardless of the “Enable advanced web interface” setting or screen size."},layout_mobile:{id:"layout.single",defaultMessage:"Mobile"},layout_mobile_hint:{id:"layout.hint.single",defaultMessage:"Use single-column layout regardless of the “Enable advanced web interface” setting or screen size."},side_arm_none:{id:"settings.side_arm.none",defaultMessage:"None"},side_arm_keep:{id:"settings.side_arm_reply_mode.keep",defaultMessage:"Keep secondary toot button to set privacy"},side_arm_copy:{id:"settings.side_arm_reply_mode.copy",defaultMessage:"Copy privacy setting of the toot being replied to"},side_arm_restrict:{id:"settings.side_arm_reply_mode.restrict",defaultMessage:"Restrict privacy setting to that of the toot being replied to"},regexp:{id:"settings.content_warnings.regexp",defaultMessage:"Regular expression"},filters_drop:{id:"settings.filtering_behavior.drop",defaultMessage:"Hide filtered toots completely"},filters_upstream:{id:"settings.filtering_behavior.upstream",defaultMessage:'Show "filtered" like vanilla Mastodon'},filters_hide:{id:"settings.filtering_behavior.hide",defaultMessage:'Show "filtered" and add a button to display why'},filters_cw:{id:"settings.filtering_behavior.cw",defaultMessage:"Still display the post, and add filtered words to content warning"},rewrite_mentions_no:{id:"settings.rewrite_mentions_no",defaultMessage:"Do not rewrite mentions"},rewrite_mentions_acct:{id:"settings.rewrite_mentions_acct",defaultMessage:"Rewrite with username and domain (when the account is remote)"},rewrite_mentions_username:{id:"settings.rewrite_mentions_username",defaultMessage:"Rewrite with username"}}),p=Object(b.g)(s=function(e){function t(){for(var t,a=arguments.length,s=new Array(a),i=0;i<a;i++)s[i]=arguments[i];return t=e.call.apply(e,[this].concat(s))||this,Object(l.a)(Object(o.a)(t),"pages",[function(e){var t=e.intl,a=e.onChange,s=e.settings;return Object(n.a)("di
2018-09-16 21:17:34 +00:00
//# sourceMappingURL=settings_modal.js.map