{"version":3,"file":"js/application-webpacker-b1a96fd8d56ad18d200e.js","sources":["webpack:///./app/javascript/components/ApprovedGames/index.js","webpack:///./app/javascript/components/CharacterBanner/index.js","webpack:///./app/javascript/components/CharacterImporter/index.js","webpack:///./app/javascript/components/Chat/ChatFormattingHelp/index.js","webpack:///./app/javascript/components/Chat/Message/MessageBody/index.js","webpack:///./app/javascript/components/Chat/Message/index.js","webpack:///./app/javascript/components/Chat/MessageCreate/index.js","webpack:///./app/javascript/components/Chat/MessageEdit/index.js","webpack:///./app/javascript/components/Chat/MessageInput/index.js","webpack:///./app/javascript/components/Chat/index.js","webpack:///./app/javascript/components/Chat/types.js","webpack:///./app/javascript/components/ConversationPreviews/index.js","webpack:///./app/javascript/components/GameTime/index.js","webpack:///./app/javascript/components/GamingSessionForm/index.js","webpack:///./app/javascript/components/GroupCreateForm/index.js","webpack:///./app/javascript/components/GroupDescription/index.js","webpack:///./app/javascript/components/GroupModIntro/index.js","webpack:///./app/javascript/components/GroupTags/index.js","webpack:///./app/javascript/components/Loading/index.js","webpack:///./app/javascript/components/PlatformMemberships/index.js","webpack:///./app/javascript/components/SignupForm/index.js","webpack:///./app/javascript/components/TimeAgo/index.js","webpack:///./app/javascript/components/UserFeed/index.js","webpack:///./app/javascript/components/UserFeedItem/FeedBody.js","webpack:///./app/javascript/components/UserFeedItem/FeedImage.js","webpack:///./app/javascript/components/UserFeedItem/Footer.js","webpack:///./app/javascript/components/UserFeedItem/Header.js","webpack:///./app/javascript/components/UserFeedItem/index.js","webpack:///./app/javascript/packs/application-webpacker.js","webpack:///./app/javascript/pages/ConversationPage/index.js","webpack:///./app/javascript/pages/GamingSessionsPage/index.js","webpack:///./app/javascript/pages/GroupModsPage/index.js","webpack:///./app/javascript/pages/GroupsPage/index.js","webpack:///./app/javascript/pages/HelpPage/index.js","webpack:///./app/javascript/pages/HqPage/index.js","webpack:///./app/javascript/pages/SherpaHqPage/index.js","webpack:///./app/javascript/utils/bungie_api.js","webpack:///./app/javascript/utils/user.js","webpack:///./app/javascript/components/CharacterBanner/styles.css?8498","webpack:///./app/javascript/components/Chat/Message/MessageBody/styles.css?4837","webpack:///./app/javascript/components/Chat/Message/styles.css?8e8a","webpack:///./app/javascript/components/Chat/MessageCreate/styles.css?8dba","webpack:///./app/javascript/components/Chat/MessageEdit/styles.css?e943","webpack:///./app/javascript/components/Chat/MessageInput/styles.css?e218","webpack:///./app/javascript/components/Chat/styles.css?9ba3","webpack:///./app/javascript/components/ConversationPreviews/styles.css?a558","webpack:///./app/javascript/components/GamingSessionForm/styles.css?8da1","webpack:///./app/javascript/components/Loading/styles.css?57e5","webpack:////tmp/build_42f209c5/node_modules/moment/locale|sync|/^\\.\\/.*$/"],"sourcesContent":["import React from \"react\";\nimport * as api from \"../../utils/api\";\n\n\nexport default class ApprovedGames extends React.Component {\n\n state = {\n gamesList: [],\n approvedGames: [],\n editing: false,\n loading: true\n }\n\n componentDidMount() {\n api.fetchGames().then((response) => {\n var games = response.map(({ id, name }) => ({ id, name }));\n this.setState({ gamesList: games })\n })\n\n if (this.props.groupId) {\n api.fetchApprovedGames({ groupId: this.props.groupId }).then((response) => {\n var gameIds = response.map(({ game_id }) => (game_id));\n this.setState({ approvedGames: gameIds, loading: false })\n })\n } else {\n api.fetchUserApprovedGames({ userId: this.props.userId }).then((response) => {\n var gameIds = response.map(({ game_id }) => (game_id));\n this.setState({ approvedGames: gameIds, loading: false })\n })\n }\n\n }\n\n updateApprovedGames = (gameId) => {\n if (this.state.approvedGames.includes(gameId)) {\n this.setState({ approvedGames: this.state.approvedGames.filter(i => i !== gameId) })\n } else {\n this.setState({ approvedGames: [...this.state.approvedGames, gameId] })\n }\n\n if (this.props.groupId) {\n api.updateApprovedGames({ groupId: this.props.groupId, gameId: gameId, headers: ReactOnRails.authenticityHeaders() }).then((response) => {\n })\n } else {\n api.updateApprovedGames({ userId: this.props.userId, gameId: gameId, headers: ReactOnRails.authenticityHeaders() }).then((response) => {\n })\n }\n\n };\n\n\n\n render() {\n\n if (this.state.loading) {\n return (\n
\n '@' followed by a user's gamertag:\n \n @FearBroner\n | \n \n @FearBroner\n | \n
\n Wrap the username in brackets if it contains a space or\n '#':\n \n @[Pac Man]\n | \n \n @Pac Man\n | \n
\n Emoji (see{\" \"}\n \n Emoji Cheat Sheet\n )\n \n :smile:\n | \n 😄 | \n
~~spoiler text~~ | \n\n spoiler text\n | \n
_underlined text_ | \n\n \n underlined text\n \n | \n
**bold text** | \n\n bold text\n | \n
*italicized text* | \n\n italicized text\n | \n
superscript ^text^ | \n\n superscript text\n | \n
-strikethrough text- | \n\n \n strikethrough text\n \n | \n
`code` | \n\n code \n | \n
\n {processed}\n
\n );\n }\n },\n emoji: {\n pattern: /(:\\w+?:)/gim,\n matcherFn: (rawText, processed, key) => {\n return emoji.get(rawText);\n }\n },\n\n userMention: {\n pattern: /\\B@([a-z0-9_\\-#]+?)\\b/gim,\n matcherFn: usernameMentionMatcherFn\n },\n userMentionBracketed: {\n pattern: /\\B@\\[([a-z0-9_\\-# ]+?)\\]\\B/gim,\n matcherFn: usernameMentionMatcherFn\n },\n gifv: {\n pattern: /(\\bhttps?:\\/\\/\\S+?\\.gifv\\b)/gim,\n matcherFn: (rawText, processed, key) => {\n return {this.state.lastMessage.text}
\n \n full conversation »\n \n{whenHelpMessage}
}\n{visibilityHelpMessage}
}\n\n {this.state.noGroupsError &&{this.state.noGroupsError}
}\n\n WARNING: this game has players on waitlist! If you lower the party size, they'll be automatically\n promoted to an active player and notified.\n
\n )}\n\n {this.state.displayPartySizeIncreaseWarning && (\n\n WARNING: this game is already full! If you increase the party size, you'll have to kick one of the\n players who've already joined.\n
\n )}\n\n {this.state.displayPartySizeHelp &&{partySizeHelpMessage}
}\n{otherOptionsHelpMesssage}
}\nURL must include https://
\n )}\n{this.state.autoPublicError}
}\n\n \n {this.state.autoAllianceError &&{this.state.autoAllianceError}
}\n\n \n\n These options are only available to our incredible supporters:\n
\n \n {\" \"}\n Learn more (opens new window)\n \n
{this.state.autoAllianceError}
}\n\n \n{formReadyError}
}\nProcessing...
\n \n{this.state.errors}
\n \n\n {\"looks like you're in the \" + newTimeZone + \" timezone.\"}\n
\n\n {\"looks like you're in the \" + newTimeZone + \" timezone.\"}\n
\nYour interests: {this.state.interests.map((interest) => interest + \", \")}
\nthis.setState({ editing: !this.state.editing })}>{this.state.description}
\n )}\n\n1. Add all the games you play so we can match as many players as possible.
\n2. Edit your group description below if you'd like.
\n3. Invite your members so everyone can start scheduling games. We prioritize groups by\n how many games they post.
\n4. Schedule your first game with the discord bot - just type !create to start.\n\n
\nJoining Group...
}\n \n\n {\"looks like you're in the \" + newTimeZone + \" timezone.\"}\n
\n {this.props.groupSignup ? (\n{this.state.errors}
\n ) : this.props.groupSignup ? (\nStarts: {moment(this.props.item.data.gaming_session_start_time).format(\"hh:mm A MM/DD/YY\")}
\n )}\n@{this.props.author_gamertag}
\n