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

2 lines
21 KiB
JavaScript
Raw Normal View History

2020-05-19 22:55:14 -07:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[84],{836:function(e,t,a){"use strict";a.r(t);var s=a(0),i=a(2),n=(a(9),a(6),a(8)),o=a(1),d=a(3),l=a.n(d),c=a(15),g=a(7);var r,b=function(e){Object(n.a)(a,e);var t;t=a;function a(){for(var t,a=arguments.length,s=new Array(a),n=0;n<a;n++)s[n]=arguments[n];return t=e.call.apply(e,[this].concat(s))||this,Object(o.a)(Object(i.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 a.prototype.render=function(){var e=this.handleChange,t=this.props,a=t.settings,i=t.item,n=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(i),p=o&&o.length>0&&o.map((function(t){var a=n+"--"+t.value;return(Object(s.a)("label",{htmlFor:a},void 0,Object(s.a)("input",{type:"radio",name:n,id:a,value:t.value,onBlur:e,onChange:e,checked:m===t.value,disabled:!r}),t.message,t.hint&&Object(s.a)("span",{className:"hint"},void 0,t.hint)))}));return Object(s.a)("div",{className:"glitch local-settings__page__item radio_buttons"},void 0,Object(s.a)("fieldset",{},void 0,Object(s.a)("legend",{},void 0,d),p))}return g?Object(s.a)("div",{className:"glitch local-settings__page__item string"},void 0,Object(s.a)("label",{htmlFor:n},void 0,Object(s.a)("p",{},void 0,d),Object(s.a)("p",{},void 0,Object(s.a)("input",{id:n,type:"text",value:a.getIn(i),placeholder:g,onChange:e,disabled:!r})))):Object(s.a)("div",{className:"glitch local-settings__page__item boolean"},void 0,Object(s.a)("label",{htmlFor:n},void 0,Object(s.a)("input",{id:n,type:"checkbox",checked:a.getIn(i),onChange:e,disabled:!r}),d))},a}(l.a.PureComponent);var u=Object(g.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"}}),m=Object(g.g)(r=function(e){Object(n.a)(a,e);var t;t=a;function a(){for(var t,a=arguments.length,n=new Array(a),d=0;d<a;d++)n[d]=arguments[d];return t=e.call.apply(e,[this].concat(n))||this,Object(o.a)(Object(i.a)(t),"pages",[function(e){var t
2018-09-16 14:17:34 -07:00
//# sourceMappingURL=settings_modal.js.map