{"version":3,"sources":["webpack:///./app/javascript/mastodon/features/keyboard_shortcuts/index.jsx"],"names":["messages","defineMessages","heading","id","defaultMessage","KeyboardShortcuts","ImmutablePureComponent","render","intl","multiColumn","this","props","_jsx","Column","ColumnHeader","title","formatMessage","icon","iconComponent","InfoIcon","className","FormattedMessage","Helmet","name","content","_defineProperty","PropTypes","object","isRequired","bool","injectIntl"],"mappings":"yMAYA,MAAMA,EAAWC,YAAe,CAC9BC,QAAS,CAAEC,GAAG,6BAA+BC,eAAe,wBAG9D,MAAMC,UAA0BC,IAO9BC,SACE,MAAM,KAAEC,EAAI,YAAEC,GAAgBC,KAAKC,MAEnC,OACEC,YAACC,IAAM,UACLD,YAACE,IAAY,CACXC,MAAOP,EAAKQ,cAAchB,EAASE,SACnCe,KAAK,cACLC,cAAeC,IACfV,YAAaA,IAGfG,YAAA,OAAKQ,UAAU,4DAAqD,EAClER,YAAA,kBACEA,YAAA,kBACEA,YAAA,eACEA,YAAA,eAAIA,YAACS,IAAgB,CAAClB,GAAE,4BAA6BC,eAAe,YACpEQ,YAAA,eAAIA,YAACS,IAAgB,CAAClB,GAAE,iCAAkCC,eAAe,mBAG7EQ,YAAA,kBACEA,YAAA,eACEA,YAAA,eAAIA,YAAA,gBAAK,MACTA,YAAA,eAAIA,YAACS,IAAgB,CAAClB,GAAE,2BAA4BC,eAAe,eAErEQ,YAAA,eACEA,YAAA,eAAIA,YAAA,gBAAK,MACTA,YAAA,eAAIA,YAACS,IAAgB,CAAClB,GAAE,6BAA8BC,eAAe,wBAEvEQ,YAAA,eACEA,YAAA,eAAIA,YAAA,gBAAK,MACTA,YAAA,eAAIA,YAACS,IAAgB,CAAClB,GAAE,6BAA8BC,eAAe,+BAEvEQ,YAAA,eACEA,YAAA,eAAIA,YAAA,gBAAK,MACTA,YAAA,eAAIA,YAACS,IAAgB,CAAClB,GAAE,+BAAgCC,eAAe,kBAEzEQ,YAAA,eACEA,YAAA,eAAIA,YAAA,gBAAK,MACTA,YAAA,eA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ClB,GAAE,2BAA4BC,eAAe,mCAErEQ,YAAA,eACEA,YAAA,eAAIA,YAAA,gBAAK,KAAO,IAACA,YAAA,gBAAK,MACtBA,YAAA,eAAIA,YAACS,IAAgB,CAAClB,GAAE,gCAAiCC,eAAe,6BAE1EQ,YAAA,eACEA,YAAA,eAAIA,YAAA,gBAAK,KAAO,IAACA,YAAA,gBAAK,MACtBA,YAAA,eAAIA,YAACS,IAAgB,CAAClB,GAAE,4BAA6BC,eAAe,gCAEtEQ,YAAA,eACEA,YAAA,eAAIA,YAAA,gBAAK,KAAO,IAACA,YAAA,gBAAK,MACtBA,YAAA,eAAIA,YAACS,IAAgB,CAAClB,GAAE,gCAAiCC,eAAe,2BAE1EQ,YAAA,eACEA,YAAA,eAAIA,YAAA,gBAAK,KAAO,IAACA,YAAA,gBAAK,MACtBA,YAAA,eAAIA,YAACS,IAAgB,CAAClB,GAAE,6BAA8BC,eAAe,iCAEvEQ,YAAA,eACEA,YAAA,eAAIA,YAAA,gBAAK,KAAO,IAACA,YAAA,gBAAK,MACtBA,YAAA,eAAIA,YAACS,IAAgB,CAAClB,GAAE,2BAA4BC,eAAe,+BAErEQ,YAAA,eACEA,YAAA,eAAIA,YAAA,gBAAK,KAAO,IAACA,YAAA,gBAAK,MACtBA,YAAA,eAAIA,YAACS,IAAgB,CAAClB,GAAE,8BAA+BC,eAAe,mCAExEQ,YAAA,eACEA,YAAA,eAAIA,YAAA,gBAAK,MACTA,YAAA,eAAIA,YAACS,IAAgB,CAAClB,GAAE,4BAA6BC,eAAe,gCAM5EQ,YAACU,IAAM,UACLV,YAAA,QAAMW,KAAK,SAASC,QAAQ,aAIpC,EAEDC,YAnKKpB,EAAiB,YAEF,CACjBG,KAAMkB,IAAUC,OAAOC,WACvBnB,YAAaiB,IAAUG,OAiKZC,sBAAWzB,E","file":"js/features/keyboard_shortcuts-d9d7322f5a9e8ef0b7e7.chunk.js","sourcesContent":["import PropTypes from 'prop-types';\n\nimport { defineMessages, injectIntl, FormattedMessage } from 'react-intl';\n\nimport { Helmet } from 'react-helmet';\n\nimport ImmutablePureComponent from 'react-immutable-pure-component';\n\nimport InfoIcon from '@/material-icons/400-24px/info.svg?react';\nimport Column from 'mastodon/components/column';\nimport ColumnHeader from 'mastodon/components/column_header';\n\nconst messages = defineMessages({\n  heading: { id: 'keyboard_shortcuts.heading', defaultMessage: 'Keyboard Shortcuts' },\n});\n\nclass KeyboardShortcuts extends ImmutablePureComponent {\n\n  static propTypes = {\n    intl: PropTypes.object.isRequired,\n    multiColumn: PropTypes.bool,\n  };\n\n  render () {\n    const { intl, multiColumn } = this.props;\n\n    return (\n      <Column>\n        <ColumnHeader\n          title={intl.formatMessage(messages.heading)}\n          icon='info-circle'\n          iconComponent={InfoIcon}\n          multiColumn={multiColumn}\n        />\n\n        <div className='keyboard-shortcuts scrollable optionally-scrollable'>\n          <table>\n            <thead>\n              <tr>\n                <th><FormattedMessage id='keyboard_shortcuts.hotkey' defaultMessage='Hotkey' /></th>\n                <th><FormattedMessage id='keyboard_shortcuts.description' defaultMessage='Description' /></th>\n              </tr>\n            </thead>\n            <tbody>\n              <tr>\n                <td><kbd>r</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.reply' defaultMessage='to reply' /></td>\n              </tr>\n              <tr>\n                <td><kbd>m</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.mention' defaultMessage='to mention author' /></td>\n              </tr>\n              <tr>\n                <td><kbd>p</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.profile' defaultMessage=\"to open author's profile\" /></td>\n              </tr>\n              <tr>\n                <td><kbd>f</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.favourite' defaultMessage='to favorite' /></td>\n              </tr>\n              <tr>\n                <td><kbd>b</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.boost' defaultMessage='to boost' /></td>\n              </tr>\n              <tr>\n                <td><kbd>enter</kbd>, <kbd>o</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.enter' defaultMessage='to open status' /></td>\n              </tr>\n              <tr>\n                <td><kbd>e</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.open_media' defaultMessage='to open media' /></td>\n              </tr>\n              <tr>\n                <td><kbd>x</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.toggle_hidden' defaultMessage='to show/hide text behind CW' /></td>\n              </tr>\n              <tr>\n                <td><kbd>h</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.toggle_sensitivity' defaultMessage='to show/hide media' /></td>\n              </tr>\n              <tr>\n                <td><kbd>up</kbd>, <kbd>k</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.up' defaultMessage='to move up in the list' /></td>\n              </tr>\n              <tr>\n                <td><kbd>down</kbd>, <kbd>j</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.down' defaultMessage='to move down in the list' /></td>\n              </tr>\n              <tr>\n                <td><kbd>1</kbd>-<kbd>9</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.column' defaultMessage='to focus a status in one of the columns' /></td>\n              </tr>\n              <tr>\n                <td><kbd>n</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.compose' defaultMessage='to focus the compose textarea' /></td>\n              </tr>\n              <tr>\n                <td><kbd>alt</kbd>+<kbd>n</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.toot' defaultMessage='to start a brand new post' /></td>\n              </tr>\n              <tr>\n                <td><kbd>alt</kbd>+<kbd>x</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.spoilers' defaultMessage='to show/hide CW field' /></td>\n              </tr>\n              <tr>\n                <td><kbd>backspace</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.back' defaultMessage='to navigate back' /></td>\n              </tr>\n              <tr>\n                <td><kbd>s</kbd>, <kbd>/</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.search' defaultMessage='to focus search' /></td>\n              </tr>\n              <tr>\n                <td><kbd>esc</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.unfocus' defaultMessage='to un-focus compose textarea/search' /></td>\n              </tr>\n              <tr>\n                <td><kbd>g</kbd>+<kbd>h</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.home' defaultMessage='to open home timeline' /></td>\n              </tr>\n              <tr>\n                <td><kbd>g</kbd>+<kbd>n</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.notifications' defaultMessage='to open notifications column' /></td>\n              </tr>\n              <tr>\n                <td><kbd>g</kbd>+<kbd>l</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.local' defaultMessage='to open local timeline' /></td>\n              </tr>\n              <tr>\n                <td><kbd>g</kbd>+<kbd>t</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.federated' defaultMessage='to open federated timeline' /></td>\n              </tr>\n              <tr>\n                <td><kbd>g</kbd>+<kbd>d</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.direct' defaultMessage='to open direct messages column' /></td>\n              </tr>\n              <tr>\n                <td><kbd>g</kbd>+<kbd>s</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.start' defaultMessage='to open \"get started\" column' /></td>\n              </tr>\n              <tr>\n                <td><kbd>g</kbd>+<kbd>f</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.favourites' defaultMessage='to open favorites list' /></td>\n              </tr>\n              <tr>\n                <td><kbd>g</kbd>+<kbd>p</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.pinned' defaultMessage='to open pinned posts list' /></td>\n              </tr>\n              <tr>\n                <td><kbd>g</kbd>+<kbd>u</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.my_profile' defaultMessage='to open your profile' /></td>\n              </tr>\n              <tr>\n                <td><kbd>g</kbd>+<kbd>b</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.blocked' defaultMessage='to open blocked users list' /></td>\n              </tr>\n              <tr>\n                <td><kbd>g</kbd>+<kbd>m</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.muted' defaultMessage='to open muted users list' /></td>\n              </tr>\n              <tr>\n                <td><kbd>g</kbd>+<kbd>r</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.requests' defaultMessage='to open follow requests list' /></td>\n              </tr>\n              <tr>\n                <td><kbd>?</kbd></td>\n                <td><FormattedMessage id='keyboard_shortcuts.legend' defaultMessage='to display this legend' /></td>\n              </tr>\n            </tbody>\n          </table>\n        </div>\n\n        <Helmet>\n          <meta name='robots' content='noindex' />\n        </Helmet>\n      </Column>\n    );\n  }\n\n}\n\nexport default injectIntl(KeyboardShortcuts);\n"],"sourceRoot":""}