{"version":3,"sources":["webpack:///app/javascript/builds/pleroma/mastofe/app/javascript/flavours/glitch/features/local_settings/page/item/index.js","webpack:///app/javascript/builds/pleroma/mastofe/app/javascript/flavours/glitch/features/local_settings/page/index.js","webpack:///app/javascript/builds/pleroma/mastofe/app/javascript/flavours/glitch/features/local_settings/navigation/item/index.js","webpack:///app/javascript/builds/pleroma/mastofe/app/javascript/flavours/glitch/features/local_settings/navigation/index.js","webpack:///app/javascript/builds/pleroma/mastofe/app/javascript/flavours/glitch/features/local_settings/index.js"],"names":["LocalSettingsPageItem","e","target","_this$props","_this","props","item","onChange","options","placeholder","length","value","checked","render","handleChange","this","_this$props2","settings","id","children","dependsOn","dependsOnNot","enabled","i","getIn","currentValue","optionElems","map","opt","optionId","Object","jsx","htmlFor","type","name","onBlur","disabled","message","hint","class","className","React","PureComponent","messages","defineMessages","layout_auto","defaultMessage","layout_desktop","layout_mobile","side_arm_none","side_arm_keep","side_arm_copy","side_arm_restrict","regexp","LocalSettingsPage","injectIntl","_ref","intl","index_es","item_LocalSettingsPageItem","formatMessage","_ref2","_ref3","_ref4","_ref5","pages","index","CurrentPage","onNavigate","preventDefault","handleClick","active","href","icon","textIcon","title","finalClassName","classNames","iconElem","onClick","role","tabIndex","general","compose","content_warnings","collapsed","media","preferences","close","LocalSettingsNavigation","onClose","item_LocalSettingsPage","preferencesLink","LocalSettings","currentIndex","setState","navigateTo","state","navigation_LocalSettingsNavigation","page_LocalSettingsPage","connect","get","dispatch","setting","changeLocalSetting","closeModal"],"mappings":"qKAOqBA,+LAkBJ,SAAAC,GAAK,IACVC,EAAWD,EAAXC,OADUC,EAE+BC,EAAKC,MAA9CC,EAFUH,EAEVG,KAAMC,EAFIJ,EAEJI,SAAUC,EAFNL,EAEMK,QAASC,EAFfN,EAEeM,YAC7BD,GAA4B,EAAjBA,EAAQE,OAAYH,EAASD,EAAMJ,EAAOS,OACnCJ,EAASD,EAAtBG,EAA4BP,EAAOS,MACxBT,EAAOU,iDAG7BC,OA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AOlB,EAAKG,cAAcjB,EAAS6C,cA/DQ/C,IAAMC,oCCGrDmD,wLAQI,CACNC,aAAc,4CAGH,SAAC5B,GAAD,OACX9D,EAAK2F,SAAS,CAAED,cAAe5B,4CAEjCrD,OAAA,WAAU,IAEAmF,EAAejF,KAAfiF,WAFA7F,EAGgCY,KAAKV,MAArCE,EAHAJ,EAGAI,SAAUmF,EAHVvF,EAGUuF,QAASzE,EAHnBd,EAGmBc,SACnB6E,EAAiB/E,KAAKkF,MAAtBH,aAER,OACEhE,OAAAC,EAAA,EAAAD,CAAA,OAAKU,UAAU,gDAAf,EACEV,OAAAC,EAAA,EAAAD,CAACoE,EAAD,CACEhC,MAAO4B,EACPJ,QAASA,EACTtB,WAAY4B,IAEdlE,OAAAC,EAAA,EAAAD,CAACqE,EAAD,CACEjC,MAAO4B,EACPvF,SAAUA,EACVU,SAAUA,SA/BQwB,IAAMC,eAuCnB0D,4BApDS,SAAAH,GAAK,MAAK,CAChChF,SAAUgF,EAAMI,IAAI,oBAGK,SAAAC,GAAQ,MAAK,CACtC/F,SADsC,SAC5BgG,EAAS5F,GACjB2F,EAASE,YAAmBD,EAAS5F,KAEvC+E,QAJsC,WAKpCY,EAASG,kBA2CEL,CAA6CP","file":"flavours/glitch/async/settings_modal.js","sourcesContent":["// Package imports\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport ImmutablePropTypes from 'react-immutable-proptypes';\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n\nexport default class LocalSettingsPageItem extends React.PureComponent {\n\n static propTypes = {\n children: PropTypes.element.isRequired,\n dependsOn: PropTypes.array,\n dependsOnNot: PropTypes.array,\n id: PropTypes.string.isRequired,\n item: PropTypes.array.isRequired,\n onChange: PropTypes.func.isRequired,\n options: PropTypes.arrayOf(PropTypes.shape({\n value: PropTypes.string.isRequired,\n message: PropTypes.string.isRequired,\n hint: PropTypes.string,\n })),\n settings: ImmutablePropTypes.map.isRequired,\n placeholder: PropTypes.string,\n };\n\n handleChange = e => {\n const { target } = e;\n const { item, onChange, options, placeholder } = this.props;\n if (options && options.length > 0) onChange(item, target.value);\n else if (placeholder) onChange(item, target.value);\n else onChange(item, target.checked);\n }\n\n render () {\n const { handleChange } = this;\n const { settings, item, id, options, children, dependsOn, dependsOnNot, placeholder } = this.props;\n let enabled = true;\n\n if (dependsOn) {\n for (let i = 0; i < dependsOn.length; i++) {\n enabled = enabled && settings.getIn(dependsOn[i]);\n }\n }\n if (dependsOnNot) {\n for (let i = 0; i < dependsOnNot.length; i++) {\n enabled = enabled && !settings.getIn(dependsOnNot[i]);\n }\n }\n\n if (options && options.length > 0) {\n const currentValue = settings.getIn(item);\n const optionElems = options && options.length > 0 && options.map((opt) => {\n let optionId = `${id}--${opt.value}`;\n return (\n \n );\n });\n return (\n
\n
\n {children}\n {optionElems}\n
\n
\n );\n } else if (placeholder) {\n return (\n
\n \n
\n );\n } else return (\n
\n \n
\n );\n }\n\n}\n","// Package imports\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport ImmutablePropTypes from 'react-immutable-proptypes';\nimport { defineMessages, FormattedMessage, injectIntl } from 'react-intl';\n\n// Our imports\nimport LocalSettingsPageItem from './item';\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n\nconst messages = defineMessages({\n layout_auto: { id: 'layout.auto', defaultMessage: 'Auto' },\n layout_desktop: { id: 'layout.desktop', defaultMessage: 'Desktop' },\n layout_mobile: { id: 'layout.single', defaultMessage: 'Mobile' },\n side_arm_none: { id: 'settings.side_arm.none', defaultMessage: 'None' },\n side_arm_keep: { id: 'settings.side_arm_reply_mode.keep', defaultMessage: 'Keep secondary toot button to set privacy' },\n side_arm_copy: { id: 'settings.side_arm_reply_mode.copy', defaultMessage: 'Copy privacy setting of the toot being replied to' },\n side_arm_restrict: { id: 'settings.side_arm_reply_mode.restrict', defaultMessage: 'Restrict privacy setting to that of the toot being replied to' },\n regexp: { id: 'settings.content_warnings.regexp', defaultMessage: 'Regular expression' },\n});\n\n@injectIntl\nexport default class LocalSettingsPage extends React.PureComponent {\n\n static propTypes = {\n index : PropTypes.number,\n intl : PropTypes.object.isRequired,\n onChange : PropTypes.func.isRequired,\n settings : ImmutablePropTypes.map.isRequired,\n };\n\n pages = [\n ({ intl, onChange, settings }) => (\n
\n

\n \n \n \n \n \n \n \n
\n

\n \n \n \n \n \n \n \n \n
\n
\n

\n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n
\n ),\n ({ intl, onChange, settings }) => (\n
\n

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n ),\n ({ intl, onChange, settings }) => (\n
\n

\n \n \n \n \n \n \n
\n ),\n ({ onChange, settings }) => (\n
\n

\n \n \n \n \n \n \n
\n

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n
\n

\n \n \n \n \n \n \n
\n
\n ),\n ({ onChange, settings }) => (\n
\n

\n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n ),\n ];\n\n render () {\n const { pages } = this;\n const { index, intl, onChange, settings } = this.props;\n const CurrentPage = pages[index] || pages[0];\n\n return ;\n }\n\n}\n","// Package imports\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n\nexport default class LocalSettingsPage extends React.PureComponent {\n\n static propTypes = {\n active: PropTypes.bool,\n className: PropTypes.string,\n href: PropTypes.string,\n icon: PropTypes.string,\n textIcon: PropTypes.string,\n index: PropTypes.number.isRequired,\n onNavigate: PropTypes.func,\n title: PropTypes.string,\n };\n\n handleClick = (e) => {\n const { index, onNavigate } = this.props;\n if (onNavigate) {\n onNavigate(index);\n e.preventDefault();\n }\n }\n\n render () {\n const { handleClick } = this;\n const {\n active,\n className,\n href,\n icon,\n textIcon,\n onNavigate,\n title,\n } = this.props;\n\n const finalClassName = classNames('glitch', 'local-settings__navigation__item', {\n active,\n }, className);\n\n const iconElem = icon ? : (textIcon ? {textIcon} : null);\n\n if (href) return (\n \n {iconElem} {title}\n \n );\n else if (onNavigate) return (\n \n {iconElem} {title}\n \n );\n else return null;\n }\n\n}\n","// Package imports\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { injectIntl, defineMessages } from 'react-intl';\n\n// Our imports\nimport LocalSettingsNavigationItem from './item';\nimport { preferencesLink } from 'flavours/glitch/util/backend_links';\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n\nconst messages = defineMessages({\n general: { id: 'settings.general', defaultMessage: 'General' },\n compose: { id: 'settings.compose_box_opts', defaultMessage: 'Compose box' },\n content_warnings: { id: 'settings.content_warnings', defaultMessage: 'Content Warnings' },\n collapsed: { id: 'settings.collapsed_statuses', defaultMessage: 'Collapsed toots' },\n media: { id: 'settings.media', defaultMessage: 'Media' },\n preferences: { id: 'settings.preferences', defaultMessage: 'Preferences' },\n close: { id: 'settings.close', defaultMessage: 'Close' },\n});\n\n@injectIntl\nexport default class LocalSettingsNavigation extends React.PureComponent {\n\n static propTypes = {\n index : PropTypes.number,\n intl : PropTypes.object.isRequired,\n onClose : PropTypes.func.isRequired,\n onNavigate : PropTypes.func.isRequired,\n };\n\n render () {\n\n const { index, intl, onClose, onNavigate } = this.props;\n\n return (\n \n );\n }\n\n}\n","// Package imports.\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport ImmutablePropTypes from 'react-immutable-proptypes';\nimport { connect } from 'react-redux';\n\n// Our imports\nimport LocalSettingsPage from './page';\nimport LocalSettingsNavigation from './navigation';\nimport { closeModal } from 'flavours/glitch/actions/modal';\nimport { changeLocalSetting } from 'flavours/glitch/actions/local_settings';\n\nconst mapStateToProps = state => ({\n settings: state.get('local_settings'),\n});\n\nconst mapDispatchToProps = dispatch => ({\n onChange (setting, value) {\n dispatch(changeLocalSetting(setting, value));\n },\n onClose () {\n dispatch(closeModal());\n },\n});\n\nclass LocalSettings extends React.PureComponent {\n\n static propTypes = {\n onChange: PropTypes.func.isRequired,\n onClose: PropTypes.func.isRequired,\n settings: ImmutablePropTypes.map.isRequired,\n };\n\n state = {\n currentIndex: 0,\n };\n\n navigateTo = (index) =>\n this.setState({ currentIndex: +index });\n\n render () {\n\n const { navigateTo } = this;\n const { onChange, onClose, settings } = this.props;\n const { currentIndex } = this.state;\n\n return (\n
\n \n \n
\n );\n }\n\n}\n\nexport default connect(mapStateToProps, mapDispatchToProps)(LocalSettings);\n"],"sourceRoot":""}