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

2 lines
21 KiB
JavaScript

(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=e.intl,a=e.onChange,i=e.settings;return(Object(s.a)("div",{className:"glitch local-settings__page general"},void 0,Object(s.a)("h1",{},void 0,Object(s.a)(g.b,{id:"settings.general",defaultMessage:"General"})),Object(s.a)(b,{settings:i,item:["show_reply_count"],id:"mastodon-settings--reply-count",onChange:a},void 0,Object(s.a)(g.b,{id:"settings.show_reply_counter",defaultMessage:"Display an estimate of the reply count"})),Object(s.a)(b,{settings:i,item:["hicolor_privacy_icons"],id:"mastodon-settings--hicolor_privacy_icons",onChange:a},void 0,Object(s.a)(g.b,{id:"settings.hicolor_privacy_icons",defaultMessage:"High color privacy icons"}),Object(s.a)("span",{className:"hint"},void 0,Object(s.a)(g.b,{id:"settings.hicolor_privacy_icons.hint",defaultMessage:"Display privacy icons in bright and easily distinguishable colors"}))),Object(s.a)(b,{settings:i,item:["confirm_boost_missing_media_description"],id:"mastodon-settings--confirm_boost_missing_media_description",onChange:a},void 0,Object(s.a)(g.b,{id:"settings.confirm_boost_missing_media_description",defaultMessage:"Show confirmation dialog before boosting toots lacking media descriptions"})),Object(s.a)(b,{settings:i,item:["tag_misleading_links"],id:"mastodon-settings--tag_misleading_links",onChange:a},void 0,Object(s.a)(g.b,{id:"settings.tag_misleading_links",defaultMessage:"Tag misleading links"}),Object(s.a)("span",{className:"hint"},void 0,Object(s.a)(g.b,{id:"settings.tag_misleading_links.hint",defaultMessage:"Add a visual indication with the link target host to every link not mentioning it explicitly"}))),Object(s.a)(b,{settings:i,item:["rewrite_mentions"],id:"mastodon-settings--rewrite_mentions",options:[{value:"no",message:t.formatMessage(u.rewrite_mentions_no)},{value:"acct",message:t.formatMessage(u.rewrite_mentions_acct)},{value:"username",message:t.formatMessage(u.rewrite_mentions_username)}],onChange:a},void 0,Object(s.a)(g.b,{id:"settings.rewrite_mentions",defaultMessage:"Rewrite mentions in displayed statuses"})),Object(s.a)("section",{},void 0,Object(s.a)("h2",{},void 0,Object(s.a)(g.b,{id:"settings.notifications_opts",defaultMessage:"Notifications options"})),Object(s.a)(b,{settings:i,item:["notifications","tab_badge"],id:"mastodon-settings--notifications-tab_badge",onChange:a},void 0,Object(s.a)(g.b,{id:"settings.notifications.tab_badge",defaultMessage:"Unread notifications badge"}),Object(s.a)("span",{className:"hint"},void 0,Object(s.a)(g.b,{id:"settings.notifications.tab_badge.hint",defaultMessage:"Display a badge for unread notifications in the column icons when the notifications column isn't open"}))),Object(s.a)(b,{settings:i,item:["notifications","favicon_badge"],id:"mastodon-settings--notifications-favicon_badge",onChange:a},void 0,Object(s.a)(g.b,{id:"settings.notifications.favicon_badge",defaultMessage:"Unread notifications favicon badge"}),Object(s.a)("span",{className:"hint"},void 0,Object(s.a)(g.b,{id:"settings.notifications.favicon_badge.hint",defaultMessage:"Add a badge for unread notifications to the favicon"})))),Object(s.a)("section",{},void 0,Object(s.a)("h2",{},void 0,Object(s.a)(g.b,{id:"settings.layout_opts",defaultMessage:"Layout options"})),Object(s.a)(b,{settings:i,item:["layout"],id:"mastodon-settings--layout",options:[{value:"auto",message:t.formatMessage(u.layout_auto),hint:t.formatMessage(u.layout_auto_hint)},{value:"multiple",message:t.formatMessage(u.layout_desktop),hint:t.formatMessage(u.layout_desktop_hint)},{value:"single",message:t.formatMessage(u.layout_mobile),hint:t.formatMessage(u.layout_mobile_hint)}],onChange:a},void 0,Object(s.a)(g.b,{id:"settings.layout",defaultMessage:"Layout:"})),Object(s.a)(b,{settings:i,item:["stretch"],id:"mastodon-settings--stretch",onChange:a},void 0,Object(s.a)(g.b,{id:"settings.wide_view",defaultMessage:"Wide view (Desktop mode only)"}),Object(s.a)("span",{className:"hint"},void 0,Object(s.a)(g.b,{id:"settings.wide_view_hint",defaultMessage:"Stretches columns to better fill the available space."}))),Object(s.a)(b,{settings:i,item:["navbar_under"],id:"mastodon-settings--navbar_under",onChange:a},void 0,Object(s.a)(g.b,{id:"settings.navbar_under",defaultMessage:"Navbar at the bottom (Mobile only)"})),Object(s.a)(b,{settings:i,item:["swipe_to_change_columns"],id:"mastodon-settings--swipe_to_change_columns",onChange:a},void 0,Object(s.a)(g.b,{id:"settings.swipe_to_change_columns",defaultMessage:"Allow swiping to change columns (Mobile only)"})))))},function(e){var t=e.intl,a=e.onChange,i=e.settings;return(Object(s.a)("div",{className:"glitch local-settings__page compose_box_opts"},void 0,Object(s.a)("h1",{},void 0,Object(s.a)(g.b,{id:"settings.compose_box_opts",defaultMessage:"Compose box"})),Object(s.a)(b,{settings:i,item:["always_show_spoilers_field"],id:"mastodon-settings--always_show_spoilers_field",onChange:a},void 0,Object(s.a)(g.b,{id:"settings.always_show_spoilers_field",defaultMessage:"Always enable the Content Warning field"})),Object(s.a)(b,{settings:i,item:["prepend_cw_re"],id:"mastodon-settings--prepend_cw_re",onChange:a},void 0,Object(s.a)(g.b,{id:"settings.prepend_cw_re",defaultMessage:"Prepend “re: ” to content warnings when replying"})),Object(s.a)(b,{settings:i,item:["preselect_on_reply"],id:"mastodon-settings--preselect_on_reply",onChange:a},void 0,Object(s.a)(g.b,{id:"settings.preselect_on_reply",defaultMessage:"Pre-select usernames on reply"}),Object(s.a)("span",{className:"hint"},void 0,Object(s.a)(g.b,{id:"settings.preselect_on_reply_hint",defaultMessage:"When replying to a conversation with multiple participants, pre-select usernames past the first"}))),Object(s.a)(b,{settings:i,item:["confirm_missing_media_description"],id:"mastodon-settings--confirm_missing_media_description",onChange:a},void 0,Object(s.a)(g.b,{id:"settings.confirm_missing_media_description",defaultMessage:"Show confirmation dialog before sending toots lacking media descriptions"})),Object(s.a)(b,{settings:i,item:["confirm_before_clearing_draft"],id:"mastodon-settings--confirm_before_clearing_draft",onChange:a},void 0,Object(s.a)(g.b,{id:"settings.confirm_before_clearing_draft",defaultMessage:"Show confirmation dialog before overwriting the message being composed"})),Object(s.a)(b,{settings:i,item:["show_content_type_choice"],id:"mastodon-settings--show_content_type_choice",onChange:a},void 0,Object(s.a)(g.b,{id:"settings.show_content_type_choice",defaultMessage:"Show content-type choice when authoring toots"})),Object(s.a)(b,{settings:i,item:["side_arm"],id:"mastodon-settings--side_arm",options:[{value:"none",message:t.formatMessage(u.side_arm_none)},{value:"direct",message:t.formatMessage({id:"privacy.direct.short"})},{value:"private",message:t.formatMessage({id:"privacy.private.short"})},{value:"unlisted",message:t.formatMessage({id:"privacy.unlisted.short"})},{value:"public",message:t.formatMessage({id:"privacy.public.short"})}],onChange:a},void 0,Object(s.a)(g.b,{id:"settings.side_arm",defaultMessage:"Secondary toot button:"})),Object(s.a)(b,{settings:i,item:["side_arm_reply_mode"],id:"mastodon-settings--side_arm_reply_mode",options:[{value:"keep",message:t.formatMessage(u.side_arm_keep)},{value:"copy",message:t.formatMessage(u.side_arm_copy)},{value:"restrict",message:t.formatMessage(u.side_arm_restrict)}],onChange:a},void 0,Object(s.a)(g.b,{id:"settings.side_arm_reply_mode",defaultMessage:"When replying to a toot:"}))))},function(e){var t=e.intl,a=e.onChange,i=e.settings;return(Object(s.a)("div",{className:"glitch local-settings__page content_warnings"},void 0,Object(s.a)("h1",{},void 0,Object(s.a)(g.b,{id:"settings.content_warnings",defaultMessage:"Content warnings"})),Object(s.a)(b,{settings:i,item:["content_warnings","auto_unfold"],id:"mastodon-settings--content_warnings-auto_unfold",onChange:a},void 0,Object(s.a)(g.b,{id:"settings.enable_content_warnings_auto_unfold",defaultMessage:"Automatically unfold content-warnings"})),Object(s.a)(b,{settings:i,item:["content_warnings","filter"],id:"mastodon-settings--content_warnings-auto_unfold",onChange:a,dependsOn:[["content_warnings","auto_unfold"]],placeholder:t.formatMessage(u.regexp)},void 0,Object(s.a)(g.b,{id:"settings.content_warnings_filter",defaultMessage:"Content warnings to not automatically unfold:"}))))},function(e){var t=e.intl,a=e.onChange,i=e.settings;return(Object(s.a)("div",{className:"glitch local-settings__page filters"},void 0,Object(s.a)("h1",{},void 0,Object(s.a)(g.b,{id:"settings.filters",defaultMessage:"Filters"})),Object(s.a)(b,{settings:i,item:["filtering_behavior"],id:"mastodon-settings--filters-behavior",onChange:a,options:[{value:"drop",message:t.formatMessage(u.filters_drop)},{value:"upstream",message:t.formatMessage(u.filters_upstream)},{value:"hide",message:t.formatMessage(u.filters_hide)},{value:"content_warning",message:t.formatMessage(u.filters_cw)}]},void 0,Object(s.a)(g.b,{id:"settings.filtering_behavior",defaultMessage:"Filtering behavior"}))))},function(e){var t=e.onChange,a=e.settings;return(Object(s.a)("div",{className:"glitch local-settings__page collapsed"},void 0,Object(s.a)("h1",{},void 0,Object(s.a)(g.b,{id:"settings.collapsed_statuses",defaultMessage:"Collapsed toots"})),Object(s.a)(b,{settings:a,item:["collapsed","enabled"],id:"mastodon-settings--collapsed-enabled",onChange:t},void 0,Object(s.a)(g.b,{id:"settings.enable_collapsed",defaultMessage:"Enable collapsed toots"})),Object(s.a)(b,{settings:a,item:["collapsed","show_action_bar"],id:"mastodon-settings--collapsed-show-action-bar",onChange:t,dependsOn:[["collapsed","enabled"]]},void 0,Object(s.a)(g.b,{id:"settings.show_action_bar",defaultMessage:"Show action buttons in collapsed toots"})),Object(s.a)("section",{},void 0,Object(s.a)("h2",{},void 0,Object(s.a)(g.b,{id:"settings.auto_collapse",defaultMessage:"Automatic collapsing"})),Object(s.a)(b,{settings:a,item:["collapsed","auto","all"],id:"mastodon-settings--collapsed-auto-all",onChange:t,dependsOn:[["collapsed","enabled"]]},void 0,Object(s.a)(g.b,{id:"settings.auto_collapse_all",defaultMessage:"Everything"})),Object(s.a)(b,{settings:a,item:["collapsed","auto","notifications"],id:"mastodon-settings--collapsed-auto-notifications",onChange:t,dependsOn:[["collapsed","enabled"]],dependsOnNot:[["collapsed","auto","all"]]},void 0,Object(s.a)(g.b,{id:"settings.auto_collapse_notifications",defaultMessage:"Notifications"})),Object(s.a)(b,{settings:a,item:["collapsed","auto","lengthy"],id:"mastodon-settings--collapsed-auto-lengthy",onChange:t,dependsOn:[["collapsed","enabled"]],dependsOnNot:[["collapsed","auto","all"]]},void 0,Object(s.a)(g.b,{id:"settings.auto_collapse_lengthy",defaultMessage:"Lengthy toots"})),Object(s.a)(b,{settings:a,item:["collapsed","auto","reblogs"],id:"mastodon-settings--collapsed-auto-reblogs",onChange:t,dependsOn:[["collapsed","enabled"]],dependsOnNot:[["collapsed","auto","all"]]},void 0,Object(s.a)(g.b,{id:"settings.auto_collapse_reblogs",defaultMessage:"Boosts"})),Object(s.a)(b,{settings:a,item:["collapsed","auto","replies"],id:"mastodon-settings--collapsed-auto-replies",onChange:t,dependsOn:[["collapsed","enabled"]],dependsOnNot:[["collapsed","auto","all"]]},void 0,Object(s.a)(g.b,{id:"settings.auto_collapse_replies",defaultMessage:"Replies"})),Object(s.a)(b,{settings:a,item:["collapsed","auto","media"],id:"mastodon-settings--collapsed-auto-media",onChange:t,dependsOn:[["collapsed","enabled"]],dependsOnNot:[["collapsed","auto","all"]]},void 0,Object(s.a)(g.b,{id:"settings.auto_collapse_media",defaultMessage:"Toots with media"}))),Object(s.a)("section",{},void 0,Object(s.a)("h2",{},void 0,Object(s.a)(g.b,{id:"settings.image_backgrounds",defaultMessage:"Image backgrounds"})),Object(s.a)(b,{settings:a,item:["collapsed","backgrounds","user_backgrounds"],id:"mastodon-settings--collapsed-user-backgrouns",onChange:t,dependsOn:[["collapsed","enabled"]]},void 0,Object(s.a)(g.b,{id:"settings.image_backgrounds_users",defaultMessage:"Give collapsed toots an image background"})),Object(s.a)(b,{settings:a,item:["collapsed","backgrounds","preview_images"],id:"mastodon-settings--collapsed-preview-images",onChange:t,dependsOn:[["collapsed","enabled"]]},void 0,Object(s.a)(g.b,{id:"settings.image_backgrounds_media",defaultMessage:"Preview collapsed toot media"})))))},function(e){var t=e.onChange,a=e.settings;return(Object(s.a)("div",{className:"glitch local-settings__page media"},void 0,Object(s.a)("h1",{},void 0,Object(s.a)(g.b,{id:"settings.media",defaultMessage:"Media"})),Object(s.a)(b,{settings:a,item:["media","letterbox"],id:"mastodon-settings--media-letterbox",onChange:t},void 0,Object(s.a)(g.b,{id:"settings.media_letterbox",defaultMessage:"Letterbox media"}),Object(s.a)("span",{className:"hint"},void 0,Object(s.a)(g.b,{id:"settings.media_letterbox_hint",defaultMessage:"Scale down and letterbox media to fill the image containers instead of stretching and cropping them"}))),Object(s.a)(b,{settings:a,item:["media","fullwidth"],id:"mastodon-settings--media-fullwidth",onChange:t},void 0,Object(s.a)(g.b,{id:"settings.media_fullwidth",defaultMessage:"Full-width media previews"})),Object(s.a)(b,{settings:a,item:["inline_preview_cards"],id:"mastodon-settings--inline-preview-cards",onChange:t},void 0,Object(s.a)(g.b,{id:"settings.inline_preview_cards",defaultMessage:"Inline preview cards for external links"})),Object(s.a)(b,{settings:a,item:["media","reveal_behind_cw"],id:"mastodon-settings--reveal-behind-cw",onChange:t},void 0,Object(s.a)(g.b,{id:"settings.media_reveal_behind_cw",defaultMessage:"Reveal sensitive media behind a CW by default"}))))}]),t}return a.prototype.render=function(){var e=this.pages,t=this.props,a=t.index,i=t.intl,n=t.onChange,o=t.settings,d=e[a]||e[0];return Object(s.a)(d,{intl:i,onChange:n,settings:o})},a}(l.a.PureComponent))||r,p=a(14),_=a.n(p),f=a(25);var h,v=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),"handleClick",(function(e){var a=t.props,s=a.index,i=a.onNavigate;i&&(i(s),e.preventDefault())})),t}return a.prototype.render=function(){var e=this.handleClick,t=this.props,a=t.active,i=t.className,n=t.href,o=t.icon,d=t.textIcon,l=t.onNavigate,c=t.title,g=_()("glitch","local-settings__navigation__item",{active:a},i),r=o?Object(s.a)(f.a,{fixedWidth:!0,id:o}):d?Object(s.a)("span",{className:"text-icon-button"},void 0,d):null;return n?Object(s.a)("a",{href:n,className:g},void 0,r," ",Object(s.a)("span",{},void 0,c)):l?Object(s.a)("a",{onClick:e,role:"button",tabIndex:"0",className:g},void 0,r," ",Object(s.a)("span",{},void 0,c)):null},a}(l.a.PureComponent),O=a(150);var j=Object(g.f)({general:{id:"settings.general",defaultMessage:"General"},compose:{id:"settings.compose_box_opts",defaultMessage:"Compose box"},content_warnings:{id:"settings.content_warnings",defaultMessage:"Content Warnings"},filters:{id:"settings.filters",defaultMessage:"Filters"},collapsed:{id:"settings.collapsed_statuses",defaultMessage:"Collapsed toots"},media:{id:"settings.media",defaultMessage:"Media"},preferences:{id:"settings.preferences",defaultMessage:"Preferences"},close:{id:"settings.close",defaultMessage:"Close"}}),M=Object(g.g)(h=function(e){Object(n.a)(a,e);var t;t=a;function a(){return e.apply(this,arguments)||this}return a.prototype.render=function(){var e=this.props,t=e.index,a=e.intl,i=e.onClose,n=e.onNavigate;return(Object(s.a)("nav",{className:"glitch local-settings__navigation"},void 0,Object(s.a)(v,{active:0===t,index:0,onNavigate:n,icon:"cogs",title:a.formatMessage(j.general)}),Object(s.a)(v,{active:1===t,index:1,onNavigate:n,icon:"pencil",title:a.formatMessage(j.compose)}),Object(s.a)(v,{active:2===t,index:2,onNavigate:n,textIcon:"CW",title:a.formatMessage(j.content_warnings)}),Object(s.a)(v,{active:3===t,index:3,onNavigate:n,icon:"filter",title:a.formatMessage(j.filters)}),Object(s.a)(v,{active:4===t,index:4,onNavigate:n,icon:"angle-double-up",title:a.formatMessage(j.collapsed)}),Object(s.a)(v,{active:5===t,index:5,onNavigate:n,icon:"image",title:a.formatMessage(j.media)}),Object(s.a)(v,{active:6===t,href:O.c,index:6,icon:"cog",title:a.formatMessage(j.preferences)}),Object(s.a)(v,{active:7===t,className:"close",index:7,onNavigate:i,icon:"times",title:a.formatMessage(j.close)})))},a}(l.a.PureComponent))||h,w=a(45),y=a(309);var C=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),"state",{currentIndex:0}),Object(o.a)(Object(i.a)(t),"navigateTo",(function(e){return t.setState({currentIndex:+e})})),t}return a.prototype.render=function(){var e=this.navigateTo,t=this.props,a=t.onChange,i=t.onClose,n=t.settings,o=this.state.currentIndex;return Object(s.a)("div",{className:"glitch modal-root__modal local-settings"},void 0,Object(s.a)(M,{index:o,onClose:i,onNavigate:e}),Object(s.a)(m,{index:o,onChange:a,settings:n}))},a}(l.a.PureComponent);t.default=Object(c.connect)((function(e){return{settings:e.get("local_settings")}}),(function(e){return{onChange:function(t,a){e(Object(y.b)(t,a))},onClose:function(){e(Object(w.c)())}}}))(C)}}]);
//# sourceMappingURL=settings_modal.js.map