{"version":3,"file":"static/js/main.cb9b033f.chunk.js","sources":["../node_modules/webrtc-test-suite/dist sync","i18n.js","helpers/constants.js","components/ErrorMessage.js","helpers/userMessages.js","services/Storage.js","services/ApiService.js","services/EmbedService.js","features/demo/demoSlice.js","features/demo/Demo.js","features/embed/embedSlice.js","services/GameService.js","services/ServiceBase.js","helpers/logger.js","services/SignallingService.js","features/player/playerSlice.js","helpers/network.js","helpers/device.js","features/player/PopupPlayer.js","components/PlayerWarning.js","services/WebRtcService.js","services/UEController.js","services/LatencyTester.js","services/UEConnectionService.js","features/signalling/AfkMonitor.js","features/signalling/NetworkChecker.js","components/PlayerDataModal.js","features/signalling/UEConsole.js","features/signalling/WebRTCPlayer.js","features/player/Player.js","img/icons/icon-rotate-phone.svg","features/player/FullscreenFeatures.js","features/player/FullPagePlayer.js","features/embed/Embed.js","features/player/FullscreenPlayer.js","features/player/IFrame.js","App.js","app/store.js","serviceWorker.js","index.js"],"sourceRoot":"","sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = function() { return []; };\nwebpackEmptyContext.resolve = webpackEmptyContext;\nmodule.exports = webpackEmptyContext;\nwebpackEmptyContext.id = 225;","import i18n from \"i18next\";\nimport LanguageDetector from \"i18next-browser-languagedetector\";\nimport { initReactI18next } from \"react-i18next\";\nimport en from \"./i18n/en.json\";\nimport nb from \"./i18n/nb.json\";\nimport pl from \"./i18n/pl.json\";\n\ni18n\n .use(LanguageDetector)\n .use(initReactI18next)\n .init({\n resources: {\n en: en,\n nb: nb,\n no: nb,\n pl: pl,\n },\n keySeparator: \".\",\n fallbackLng: \"en\",\n interpolation: {\n escapeValue: false,\n },\n detection: {\n caches: [\"localStorage\", \"cookie\"],\n order: [\"querystring\", \"cookie\", \"localStorage\", \"navigator\"],\n },\n });\n\nexport default i18n;\n","export const ToClientMessageType = {\n QualityControlOwnership: 0,\n Response: 1,\n Command: 2,\n FreezeFrame: 3,\n UnfreezeFrame: 4,\n VideoEncoderAvgQP: 5,\n LatencyTest: 6,\n InitialSettings: 7,\n};\n\nexport const ToStreamerMessageType = {\n // Must be kept in sync with PixelStreamingProtocol::EToUE4Msg C++ enum.\n\n /*\n * Control Messages. Range = 0..49.\n */\n IFrameRequest: 0,\n RequestQualityControl: 1,\n MaxFpsRequest: 2,\n AverageBitrateRequest: 3,\n StartStreaming: 4,\n StopStreaming: 5,\n LatencyTest: 6,\n RequestInitialSettings: 7,\n\n /*\n * Input Messages. Range = 50..89.\n */\n\n // Generic Input Messages. Range = 50..59.\n UIInteraction: 50,\n Command: 51,\n};\n\nexport const ErrorCodes = {\n // Game and embeds\n GameNotFound: 1001,\n EmbedNotFound: 1002,\n EmbedInactive: 1003,\n DemoNotFound: 1004,\n DemoInactive: 1005,\n EmbedNotInDomain: 1006,\n\n // CoreAPI\n CoreApiConnectionFailed: 2001,\n CoreApiServerError: 2002,\n CoreApiBadRequest: 2003,\n\n // Signalling and WebSockets\n SignallingConnectError: 3001,\n SignallingDisconnected: 3002,\n NoStreamerAvailable: 3003,\n\n // WebRTC\n WebRtcConnectRelayFailed: 4001,\n WebRtcDisconnected: 4002,\n\n // Misc\n UnsupportedBrowser: 5001,\n UserConnectionFailed: 5002,\n};\n\nexport const AllowedDomains = [\"localhost\", \"127.0.0.1\", \"play.apprend.ly\"];\n","import React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport i18n from \"../i18n\";\nimport PropTypes from \"prop-types\";\nimport classNames from \"classnames\";\nimport { getErrorKey } from \"../helpers/userMessages\";\n\nconst ErrorMessage = (props) => {\n const { t } = useTranslation();\n\n const errorKey = props.errorKey ?? getErrorKey(props.errorCode);\n\n const getDescriptionKey = () => {\n return `errors:${errorKey}.description`;\n };\n\n return (\n
{t(getDescriptionKey())}
\n )}\n {props.errorCode && (\n\n {t(\"general:errorCode\")}: {props.errorCode}\n
\n )}\n\n {t(\"player:quitConfirmation\")}\n
\n{t(\"player:rotateDevice\")}
\n\n {t(\"player:quitConfirmation\")}\n
\n