{"version":3,"sources":["webpack:///./node_modules/@square-enix-private/fe-media/dist/YouTube/index.js","webpack:///./src/pages/broadcast/:slug/index.js","webpack:///./node_modules/@square-enix-private/fe-media/dist/YouTube/utils/getUrl.js","webpack:///./node_modules/querystringify/index.js","webpack:///./node_modules/@square-enix-private/fe-media/dist/index.js"],"names":["Object","defineProperty","exports","value","default","_styledBase","_interopRequireDefault","_propTypes","_react","_styledSystem","_getUrl","obj","__esModule","_objectWithoutProperties","source","excluded","key","i","target","sourceKeys","keys","length","indexOf","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","prototype","propertyIsEnumerable","call","Iframe","display","width","height","YouTube","_ref","_ref$className","className","_ref$width","_ref$height","_ref$onIframeRef","onIframeRef","urlProps","createElement","allowFullScreen","frameBorder","src","ref","element","propTypes","string","func","enableAPI","bool","hideControls","mute","videoId","playlist","arrayOf","autoPlay","loop","playsInline","modestBranding","start","number","origin","_default","BroadcastVideoPage","locale","pageContext","broadcastItem","data","sectionTitle","useTranslation","t","content","related","title","video","relatedItems","maxWidth","minHeight","SEHeaderHeight","m","alignItems","flexDirection","pt","pb","px","justifyContent","mx","mr","ml","mt","variant","to","size","icon","faTimes","mb","textAlign","my","map","id","toUpperCase","pageId","breadcrumb","defaultProps","_querystringify","_ref$hideControls","_ref$mute","_ref$autoPlay","_ref$loop","_ref$videoId","_ref$playsInline","_ref$modestBranding","_ref$src","Error","params","rel","enablejsapi","undefined","controls","autoplay","toString","playsinline","modestbranding","forEach","queryString","stringify","urlWithSrc","concat","urlWithId","has","hasOwnProperty","decode","input","decodeURIComponent","replace","e","encode","encodeURIComponent","prefix","pairs","isNaN","push","join","parse","query","part","parser","result","exec","enumerable","get","_YouTube"],"mappings":"8FAEAA,OAAOC,eAAeC,EAAS,aAAc,CAC3CC,OAAO,IAETD,EAAQE,aAAU,EAElB,IAAIC,EAAcC,EAAuB,EAAQ,SAE7CC,EAAaD,EAAuB,EAAQ,SAE5CE,EAASF,EAAuB,EAAQ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AAeC,EAAS,aAAc,CAC3CC,OAAO,IAETH,OAAOC,eAAeC,EAAS,UAAW,CACxCsJ,YAAY,EACZC,IAAK,WACH,OAAOC,EAAStJ,WAIpB,IAEgCO,EAF5B+I,GAE4B/I,EAFM,EAAQ,UAG9BA,EAAIC,WAAaD,EAAM,CACnCP,QAASO","file":"component---src-pages-broadcast-slug-index-js-bf0a48ddb12a3a144500.js","sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _styledBase = _interopRequireDefault(require(\"@emotion/styled-base\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _styledSystem = require(\"styled-system\");\n\nvar _getUrl = _interopRequireDefault(require(\"./utils/getUrl\"));\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nvar Iframe = (0, _styledBase.default)(\"iframe\", {\n target: \"ed2i56t0\"\n})(\"display:block;\", _styledSystem.display, _styledSystem.width, _styledSystem.height);\n\nvar YouTube = function YouTube(_ref) {\n var _ref$className = _ref.className,\n className = _ref$className === void 0 ? '' : _ref$className,\n _ref$width = _ref.width,\n width = _ref$width === void 0 ? 560 : _ref$width,\n _ref$height = _ref.height,\n height = _ref$height === void 0 ? 315 : _ref$height,\n display = _ref.display,\n _ref$onIframeRef = _ref.onIframeRef,\n onIframeRef = _ref$onIframeRef === void 0 ? function () {} : _ref$onIframeRef,\n urlProps = _objectWithoutProperties(_ref, [\"className\", \"width\", \"height\", \"display\", \"onIframeRef\"]);\n\n return _react.default.createElement(Iframe, {\n className: className,\n display: display,\n allowFullScreen: true,\n frameBorder: \"0\" // @ts-ignore - https://git.sqexeu.com/onlinedev/onlinedev-fe-core/issues/7\n ,\n height: height,\n src: (0, _getUrl.default)(urlProps) // @ts-ignore - https://git.sqexeu.com/onlinedev/onlinedev-fe-core/issues/7\n ,\n width: width,\n ref: function ref(element) {\n return onIframeRef(element);\n }\n });\n};\n\nYouTube.propTypes = {\n className: _propTypes.default.string,\n onIframeRef: _propTypes.default.func,\n enableAPI: _propTypes.default.bool,\n src: _propTypes.default.string,\n hideControls: _propTypes.default.bool,\n mute: _propTypes.default.bool,\n videoId: _propTypes.default.string,\n playlist: _propTypes.default.arrayOf(_propTypes.default.string),\n autoPlay: _propTypes.default.bool,\n loop: _propTypes.default.bool,\n playsInline: _propTypes.default.bool,\n modestBranding: _propTypes.default.bool,\n start: _propTypes.default.number,\n origin: _propTypes.default.string\n};\nvar _default = YouTube;\nexports.default = _default;","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { graphql } from 'gatsby';\nimport { useTranslation } from 'react-i18next';\nimport GTMData from '@square-enix-private/fe-gtm/dist/GTMData';\nimport { YouTube } from '@square-enix-private/fe-media';\n\nimport { Flex, Heading } from '@square-enix-private/vaquita-ui';\nimport { SEHeaderHeight } from '~/constants/site';\nimport SectionTitle from '~/components/SectionTitle/index';\nimport {\n MainVideo,\n ItemWrapper,\n VideoContainer,\n VideoItem,\n CloseButtonWrapper,\n CloseViewer\n} from '~/components/VideosListViewer/elements';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport { faTimes } from '@fortawesome/free-solid-svg-icons';\n\nconst BroadcastVideoPage = ({\n pageContext: { locale },\n data: { broadcastItem }\n}) => {\n const sectionTitle = useTranslation('broadcastpage').t('title');\n const content = broadcastItem[0];\n const { related, title, video } = content;\n const relatedItems = related || [];\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {title}\n \n \n \n {relatedItems.length > 0 && (\n \n {relatedItems.map(({ id, title, videoId }) => (\n \n \n \n \n \n \n {title.toUpperCase()}\n \n \n \n ))}\n \n )}\n \n \n );\n};\n\nBroadcastVideoPage.propTypes = {\n data: PropTypes.object,\n pageContext: PropTypes.object\n};\n\nBroadcastVideoPage.defaultProps = {\n data: {},\n pageContext: {}\n};\n\nexport const query = graphql`\n query($locale: String, $slug: String) {\n ...FooterData\n ...GenericData\n ...MetadataData\n ...FlagsData\n ...MenuData\n ...AssetsData\n ...AgeGateData\n broadcastpage(filter: { localeDirectory: { eq: $locale } }) {\n title\n }\n broadcastItem: broadcastitems(\n filter: { localeDirectory: { eq: $locale }, slug: { eq: $slug } }\n ) {\n slug\n title\n id\n video {\n title\n videoId\n }\n video {\n alt\n image {\n ...FastlyProps\n }\n }\n related {\n title\n videoId\n id\n }\n }\n }\n`;\n\nexport default BroadcastVideoPage;\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _querystringify = require(\"querystringify\");\n\nvar baseUrl = 'https://www.youtube.com/embed/';\n\nvar getUrl = function getUrl(_ref) {\n var enableAPI = _ref.enableAPI,\n _ref$hideControls = _ref.hideControls,\n hideControls = _ref$hideControls === void 0 ? false : _ref$hideControls,\n _ref$mute = _ref.mute,\n mute = _ref$mute === void 0 ? false : _ref$mute,\n _ref$autoPlay = _ref.autoPlay,\n autoPlay = _ref$autoPlay === void 0 ? false : _ref$autoPlay,\n _ref$loop = _ref.loop,\n loop = _ref$loop === void 0 ? false : _ref$loop,\n _ref$videoId = _ref.videoId,\n videoId = _ref$videoId === void 0 ? null : _ref$videoId,\n playlist = _ref.playlist,\n _ref$playsInline = _ref.playsInline,\n playsInline = _ref$playsInline === void 0 ? false : _ref$playsInline,\n _ref$modestBranding = _ref.modestBranding,\n modestBranding = _ref$modestBranding === void 0 ? false : _ref$modestBranding,\n start = _ref.start,\n origin = _ref.origin,\n _ref$src = _ref.src,\n src = _ref$src === void 0 ? '' : _ref$src;\n\n if (!videoId && !src) {\n throw Error('videoId or src is required');\n }\n\n var params = {\n start: start,\n origin: origin,\n rel: 0,\n enablejsapi: enableAPI ? 1 : undefined,\n controls: hideControls ? 0 : undefined,\n mute: mute ? 1 : undefined,\n autoplay: autoPlay ? 1 : undefined,\n loop: loop ? 1 : undefined,\n playlist: playlist && playlist.length > 0 ? playlist.toString() : undefined,\n playsinline: playsInline ? 1 : undefined,\n modestbranding: modestBranding ? 1 : undefined\n };\n Object.keys(params).forEach(function (key) {\n typeof params[key] === 'undefined' && delete params[key];\n });\n var queryString = (0, _querystringify.stringify)(params);\n var urlWithSrc = \"\".concat(src).concat(src.indexOf('?') > -1 ? '' : \"?\".concat(queryString));\n var urlWithId = \"\".concat(baseUrl).concat(videoId, \"?\").concat(queryString);\n return videoId ? urlWithId : urlWithSrc;\n};\n\nvar _default = getUrl;\nexports.default = _default;","'use strict';\n\nvar has = Object.prototype.hasOwnProperty,\n undef;\n/**\n * Decode a URI encoded string.\n *\n * @param {String} input The URI encoded string.\n * @returns {String|Null} The decoded string.\n * @api private\n */\n\nfunction decode(input) {\n try {\n return decodeURIComponent(input.replace(/\\+/g, ' '));\n } catch (e) {\n return null;\n }\n}\n/**\n * Attempts to encode a given input.\n *\n * @param {String} input The string that needs to be encoded.\n * @returns {String|Null} The encoded string.\n * @api private\n */\n\n\nfunction encode(input) {\n try {\n return encodeURIComponent(input);\n } catch (e) {\n return null;\n }\n}\n/**\n * Simple query string parser.\n *\n * @param {String} query The query string that needs to be parsed.\n * @returns {Object}\n * @api public\n */\n\n\nfunction querystring(query) {\n var parser = /([^=?#&]+)=?([^&]*)/g,\n result = {},\n part;\n\n while (part = parser.exec(query)) {\n var key = decode(part[1]),\n value = decode(part[2]); //\n // Prevent overriding of existing properties. This ensures that build-in\n // methods like `toString` or __proto__ are not overriden by malicious\n // querystrings.\n //\n // In the case if failed decoding, we want to omit the key/value pairs\n // from the result.\n //\n\n if (key === null || value === null || key in result) continue;\n result[key] = value;\n }\n\n return result;\n}\n/**\n * Transform a query string to an object.\n *\n * @param {Object} obj Object that should be transformed.\n * @param {String} prefix Optional prefix.\n * @returns {String}\n * @api public\n */\n\n\nfunction querystringify(obj, prefix) {\n prefix = prefix || '';\n var pairs = [],\n value,\n key; //\n // Optionally prefix with a '?' if needed\n //\n\n if ('string' !== typeof prefix) prefix = '?';\n\n for (key in obj) {\n if (has.call(obj, key)) {\n value = obj[key]; //\n // Edge cases where we actually want to encode the value to an empty\n // string instead of the stringified value.\n //\n\n if (!value && (value === null || value === undef || isNaN(value))) {\n value = '';\n }\n\n key = encode(key);\n value = encode(value); //\n // If we failed to encode the strings, we should bail out as we don't\n // want to add invalid strings to the query.\n //\n\n if (key === null || value === null) continue;\n pairs.push(key + '=' + value);\n }\n }\n\n return pairs.length ? prefix + pairs.join('&') : '';\n} //\n// Expose the module.\n//\n\n\nexports.stringify = querystringify;\nexports.parse = querystring;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"YouTube\", {\n enumerable: true,\n get: function get() {\n return _YouTube.default;\n }\n});\n\nvar _YouTube = _interopRequireDefault(require(\"./YouTube\"));\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}"],"sourceRoot":""}