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B2C,GAIT,C","sources":["webpack://riot-tournament-eu/./node_modules/react-intersection-observer/react-intersection-observer.m.js","webpack://riot-tournament-eu/./src/assets/icon/ChevronLeft.tsx","webpack://riot-tournament-eu/./src/assets/icon/ChevronRight.tsx","webpack://riot-tournament-eu/./src/components/global/accordion/accordion.tsx","webpack://riot-tournament-eu/./src/components/global/accordion/accordion.module.scss","webpack://riot-tournament-eu/./src/components/global/faq/faq.tsx","webpack://riot-tournament-eu/./src/components/global/faq/faq.module.scss","webpack://riot-tournament-eu/./src/components/global/global-button/global-button.module.scss","webpack://riot-tournament-eu/./src/components/global/global-button/global-button.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useEffect } from 'react';\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n _setPrototypeOf(subClass, superClass);\n}\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\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 return target;\n}\nvar observerMap = new Map();\nvar RootIds = new WeakMap();\nvar rootId = 0;\nvar unsupportedValue = undefined;\n/**\r\n * What should be the default behavior if the IntersectionObserver is unsupported?\r\n * Ideally the polyfill has been loaded, you can have the following happen:\r\n * - `undefined`: Throw an error\r\n * - `true` or `false`: Set the `inView` value to this regardless of intersection state\r\n * **/\n\nfunction defaultFallbackInView(inView) {\n unsupportedValue = inView;\n}\n/**\r\n * Generate a unique ID for the root element\r\n * @param root\r\n */\n\nfunction getRootId(root) {\n if (!root) return '0';\n if (RootIds.has(root)) return RootIds.get(root);\n rootId += 1;\n RootIds.set(root, rootId.toString());\n return RootIds.get(root);\n}\n/**\r\n * Convert the options to a string Id, based on the values.\r\n * Ensures we can reuse the same observer when observing elements with the same options.\r\n * @param options\r\n */\n\nfunction optionsToId(options) {\n return Object.keys(options).sort().filter(function (key) {\n return options[key] !== undefined;\n }).map(function (key) {\n return key + \"_\" + (key === 'root' ? getRootId(options.root) : options[key]);\n }).toString();\n}\nfunction createObserver(options) {\n // Create a unique ID for this observer instance, based on the root, root margin and threshold.\n var id = optionsToId(options);\n var instance = observerMap.get(id);\n if (!instance) {\n // Create a map of elements this observer is going to observe. Each element has a list of callbacks that should be triggered, once it comes into view.\n var elements = new Map();\n var thresholds;\n var observer = new IntersectionObserver(function (entries) {\n entries.forEach(function (entry) {\n var _elements$get;\n\n // While it would be nice if you could just look at isIntersecting to determine if the component is inside the viewport, browsers can't agree on how to use it.\n // -Firefox ignores `threshold` when considering `isIntersecting`, so it will never be false again if `threshold` is > 0\n var inView = entry.isIntersecting && thresholds.some(function (threshold) {\n return entry.intersectionRatio >= threshold;\n }); // @ts-ignore support IntersectionObserver v2\n\n if (options.trackVisibility && typeof entry.isVisible === 'undefined') {\n // The browser doesn't support Intersection Observer v2, falling back to v1 behavior.\n // @ts-ignore\n entry.isVisible = inView;\n }\n (_elements$get = elements.get(entry.target)) == null ? void 0 : _elements$get.forEach(function (callback) {\n callback(inView, entry);\n });\n });\n }, options); // Ensure we have a valid thresholds array. If not, use the threshold from the options\n\n thresholds = observer.thresholds || (Array.isArray(options.threshold) ? options.threshold : [options.threshold || 0]);\n instance = {\n id: id,\n observer: observer,\n elements: elements\n };\n observerMap.set(id, instance);\n }\n return instance;\n}\n/**\r\n * @param element - DOM Element to observe\r\n * @param callback - Callback function to trigger when intersection status changes\r\n * @param options - Intersection Observer options\r\n * @param fallbackInView - Fallback inView value.\r\n * @return Function - Cleanup function that should be triggered to unregister the observer\r\n */\n\nfunction observe(element, callback, options, fallbackInView) {\n if (options === void 0) {\n options = {};\n }\n if (fallbackInView === void 0) {\n fallbackInView = unsupportedValue;\n }\n if (typeof window.IntersectionObserver === 'undefined' && fallbackInView !== undefined) {\n var bounds = element.getBoundingClientRect();\n callback(fallbackInView, {\n isIntersecting: fallbackInView,\n target: element,\n intersectionRatio: typeof options.threshold === 'number' ? options.threshold : 0,\n time: 0,\n boundingClientRect: bounds,\n intersectionRect: bounds,\n rootBounds: bounds\n });\n return function () {// Nothing to cleanup\n };\n } // An observer with the same options can be reused, so lets use this fact\n\n var _createObserver = createObserver(options),\n id = _createObserver.id,\n observer = _createObserver.observer,\n elements = _createObserver.elements; // Register the callback listener for this element\n\n var callbacks = elements.get(element) || [];\n if (!elements.has(element)) {\n elements.set(element, callbacks);\n }\n callbacks.push(callback);\n observer.observe(element);\n return function unobserve() {\n // Remove the callback from the callback list\n callbacks.splice(callbacks.indexOf(callback), 1);\n if (callbacks.length === 0) {\n // No more callback exists for element, so destroy it\n elements[\"delete\"](element);\n observer.unobserve(element);\n }\n if (elements.size === 0) {\n // No more elements are being observer by this instance, so destroy it\n observer.disconnect();\n observerMap[\"delete\"](id);\n }\n };\n}\nvar _excluded = [\"children\", \"as\", \"triggerOnce\", \"threshold\", \"root\", \"rootMargin\", \"onChange\", \"skip\", \"trackVisibility\", \"delay\", \"initialInView\", \"fallbackInView\"];\nfunction isPlainChildren(props) {\n return typeof props.children !== 'function';\n}\n/**\r\n ## Render props\r\n\n To use the `` component, you pass it a function. It will be called\r\n whenever the state changes, with the new value of `inView`. In addition to the\r\n `inView` prop, children also receive a `ref` that should be set on the\r\n containing DOM element. This is the element that the IntersectionObserver will\r\n monitor.\r\n\n If you need it, you can also access the\r\n [`IntersectionObserverEntry`](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry)\r\n on `entry`, giving you access to all the details about the current intersection\r\n state.\r\n\n ```jsx\r\n import { InView } from 'react-intersection-observer';\r\n\n const Component = () => (\r\n \r\n {({ inView, ref, entry }) => (\r\n
\r\n

{`Header inside viewport ${inView}.`}

\r\n
\r\n )}\r\n
\r\n );\r\n\n export default Component;\r\n ```\r\n\n ## Plain children\r\n\n You can pass any element to the ``, and it will handle creating the\r\n wrapping DOM element. Add a handler to the `onChange` method, and control the\r\n state in your own component. Any extra props you add to `` will be\r\n passed to the HTML element, allowing you set the `className`, `style`, etc.\r\n\n ```jsx\r\n import { InView } from 'react-intersection-observer';\r\n\n const Component = () => (\r\n console.log('Inview:', inView)}>\r\n

Plain children are always rendered. Use onChange to monitor state.

\r\n
\r\n );\r\n\n export default Component;\r\n ```\r\n */\n\nvar InView = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(InView, _React$Component);\n function InView(props) {\n var _this;\n _this = _React$Component.call(this, props) || this;\n _this.node = null;\n _this._unobserveCb = null;\n _this.handleNode = function (node) {\n if (_this.node) {\n // Clear the old observer, before we start observing a new element\n _this.unobserve();\n if (!node && !_this.props.triggerOnce && !_this.props.skip) {\n // Reset the state if we get a new node, and we aren't ignoring updates\n _this.setState({\n inView: !!_this.props.initialInView,\n entry: undefined\n });\n }\n }\n _this.node = node ? node : null;\n _this.observeNode();\n };\n _this.handleChange = function (inView, entry) {\n if (inView && _this.props.triggerOnce) {\n // If `triggerOnce` is true, we should stop observing the element.\n _this.unobserve();\n }\n if (!isPlainChildren(_this.props)) {\n // Store the current State, so we can pass it to the children in the next render update\n // There's no reason to update the state for plain children, since it's not used in the rendering.\n _this.setState({\n inView: inView,\n entry: entry\n });\n }\n if (_this.props.onChange) {\n // If the user is actively listening for onChange, always trigger it\n _this.props.onChange(inView, entry);\n }\n };\n _this.state = {\n inView: !!props.initialInView,\n entry: undefined\n };\n return _this;\n }\n var _proto = InView.prototype;\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n // If a IntersectionObserver option changed, reinit the observer\n if (prevProps.rootMargin !== this.props.rootMargin || prevProps.root !== this.props.root || prevProps.threshold !== this.props.threshold || prevProps.skip !== this.props.skip || prevProps.trackVisibility !== this.props.trackVisibility || prevProps.delay !== this.props.delay) {\n this.unobserve();\n this.observeNode();\n }\n };\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.unobserve();\n this.node = null;\n };\n _proto.observeNode = function observeNode() {\n if (!this.node || this.props.skip) return;\n var _this$props = this.props,\n threshold = _this$props.threshold,\n root = _this$props.root,\n rootMargin = _this$props.rootMargin,\n trackVisibility = _this$props.trackVisibility,\n delay = _this$props.delay,\n fallbackInView = _this$props.fallbackInView;\n this._unobserveCb = observe(this.node, this.handleChange, {\n threshold: threshold,\n root: root,\n rootMargin: rootMargin,\n // @ts-ignore\n trackVisibility: trackVisibility,\n // @ts-ignore\n delay: delay\n }, fallbackInView);\n };\n _proto.unobserve = function unobserve() {\n if (this._unobserveCb) {\n this._unobserveCb();\n this._unobserveCb = null;\n }\n };\n _proto.render = function render() {\n if (!isPlainChildren(this.props)) {\n var _this$state = this.state,\n inView = _this$state.inView,\n entry = _this$state.entry;\n return this.props.children({\n inView: inView,\n entry: entry,\n ref: this.handleNode\n });\n }\n var _this$props2 = this.props,\n children = _this$props2.children,\n as = _this$props2.as,\n props = _objectWithoutPropertiesLoose(_this$props2, _excluded);\n return /*#__PURE__*/React.createElement(as || 'div', _extends({\n ref: this.handleNode\n }, props), children);\n };\n return InView;\n}(React.Component);\nInView.displayName = 'InView';\nInView.defaultProps = {\n threshold: 0,\n triggerOnce: false,\n initialInView: false\n};\n\n/**\r\n * React Hooks make it easy to monitor the `inView` state of your components. Call\r\n * the `useInView` hook with the (optional) [options](#options) you need. It will\r\n * return an array containing a `ref`, the `inView` status and the current\r\n * [`entry`](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry).\r\n * Assign the `ref` to the DOM element you want to monitor, and the hook will\r\n * report the status.\r\n *\r\n * @example\r\n * ```jsx\r\n * import React from 'react';\r\n * import { useInView } from 'react-intersection-observer';\r\n *\r\n * const Component = () => {\r\n * const { ref, inView, entry } = useInView({\r\n * threshold: 0,\r\n * });\r\n *\r\n * return (\r\n *
\r\n *

{`Header inside viewport ${inView}.`}

\r\n *
\r\n * );\r\n * };\r\n * ```\r\n */\n\nfunction useInView(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n threshold = _ref.threshold,\n delay = _ref.delay,\n trackVisibility = _ref.trackVisibility,\n rootMargin = _ref.rootMargin,\n root = _ref.root,\n triggerOnce = _ref.triggerOnce,\n skip = _ref.skip,\n initialInView = _ref.initialInView,\n fallbackInView = _ref.fallbackInView;\n var unobserve = React.useRef();\n var _React$useState = React.useState({\n inView: !!initialInView\n }),\n state = _React$useState[0],\n setState = _React$useState[1];\n var setRef = React.useCallback(function (node) {\n if (unobserve.current !== undefined) {\n unobserve.current();\n unobserve.current = undefined;\n } // Skip creating the observer\n\n if (skip) return;\n if (node) {\n unobserve.current = observe(node, function (inView, entry) {\n setState({\n inView: inView,\n entry: entry\n });\n if (entry.isIntersecting && triggerOnce && unobserve.current) {\n // If it should only trigger once, unobserve the element after it's inView\n unobserve.current();\n unobserve.current = undefined;\n }\n }, {\n root: root,\n rootMargin: rootMargin,\n threshold: threshold,\n // @ts-ignore\n trackVisibility: trackVisibility,\n // @ts-ignore\n delay: delay\n }, fallbackInView);\n }\n },\n // We break the rule here, because we aren't including the actual `threshold` variable\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [\n // If the threshold is an array, convert it to a string so it won't change between renders.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n Array.isArray(threshold) ? threshold.toString() : threshold, root, rootMargin, triggerOnce, skip, trackVisibility, fallbackInView, delay]);\n /* eslint-disable-next-line */\n\n useEffect(function () {\n if (!unobserve.current && state.entry && !triggerOnce && !skip) {\n // If we don't have a ref, then reset the state (unless the hook is set to only `triggerOnce` or `skip`)\n // This ensures we correctly reflect the current state - If you aren't observing anything, then nothing is inView\n setState({\n inView: !!initialInView\n });\n }\n });\n var result = [setRef, state.inView, state.entry]; // Support object destructuring, by adding the specific values.\n\n result.ref = result[0];\n result.inView = result[1];\n result.entry = result[2];\n return result;\n}\nexport { InView, InView as default, defaultFallbackInView, observe, useInView };","import React from 'react';\n\nconst ChevronLeft = ({ ...props }: React.SVGProps): JSX.Element => (\n \n \n \n);\n\nexport default ChevronLeft;\n","import React from 'react';\n\nconst ChevronRight = ({ ...props }: React.SVGProps): JSX.Element => (\n \n \n \n);\n\nexport default ChevronRight;\n","import React, { FC, useRef, useState } from 'react';\nimport useSSRLayoutEffect from '../../../hooks/useSSRLayoutEffect';\nimport * as styles from './accordion.module.scss';\n\ntype AccordionProps = {\n title: string;\n content: string;\n color: string;\n};\n\nconst Accordion: FC = ({ title, content, color }) => {\n const accordionContentRef = useRef(null);\n const [accordionContentHeight, setAccordionContentHeight] = useState(0);\n const [isAccordionOpen, setIsAccordionOpen] = useState(false);\n\n const openAccordion = () => {\n setIsAccordionOpen(!isAccordionOpen);\n };\n\n const initAccordionHeight = () => {\n if (accordionContentRef.current) {\n setAccordionContentHeight(accordionContentRef.current?.clientHeight);\n }\n };\n\n useSSRLayoutEffect(() => {\n initAccordionHeight();\n document.addEventListener('resize', initAccordionHeight);\n\n return () => {\n document.removeEventListener('resize', initAccordionHeight);\n setAccordionContentHeight(0);\n };\n }, []);\n\n return (\n
\n

\n {title}\n

\n \n

\n {content}\n

\n
\n
\n
\n \n \n
\n \n );\n};\n\nexport default Accordion;\n","// extracted by mini-css-extract-plugin\nexport var cross = \"accordion-module--cross--bFVxq\";\nexport var crossBottom = \"accordion-module--crossBottom--S-lLl\";\nexport var crossOpen = \"accordion-module--crossOpen--J12Q6\";\nexport var crossTop = \"accordion-module--crossTop--oISyS\";","import React, { FC, useMemo, useRef, useState } from 'react';\nimport ChevronLeft from '../../../assets/icon/ChevronLeft';\nimport ChevronRight from '../../../assets/icon/ChevronRight';\nimport Image from '../../../interfaces/image.interface';\nimport { Questions } from '../../../interfaces/question.interface';\nimport Accordion from '../accordion/accordion';\nimport * as styles from './faq.module.scss';\n\ntype RTFaqProps = {\n items: Questions[];\n faqTitle: string;\n faqImage: Image[];\n bgImage?: string;\n textColor: string;\n mainColor: string;\n isSkewed?: boolean;\n};\n\nconst RTFaq: FC = ({ isSkewed = false, ...entry }) => {\n const CHUNK = 7;\n\n const [currentPage, setCurrentPage] = useState(0);\n const wrapperRef = useRef(null);\n\n const questionsByChunk = useMemo(() => {\n return entry.items.map((_, i, arr) => (i % CHUNK ? [] : [arr.slice(i, i + CHUNK)])).flat();\n }, [entry.items]);\n\n const canPrev = useMemo(() => {\n if (currentPage === 0) return false;\n return true;\n }, [currentPage]);\n\n const canNext = useMemo(() => {\n if (currentPage + 1 === questionsByChunk.length) return false;\n return true;\n }, [currentPage, questionsByChunk.length]);\n\n const scrollIntoView = () => {\n wrapperRef.current?.scrollIntoView({ behavior: 'smooth', inline: 'start' });\n };\n\n const prev = () => {\n setCurrentPage(page => page - 1);\n scrollIntoView();\n };\n\n const next = () => {\n setCurrentPage(page => page + 1);\n scrollIntoView();\n };\n\n return (\n \n
\n
\n
\n
\n faq\n
\n
\n
\n

\n {entry.faqTitle}\n
\n

\n
\n {questionsByChunk[currentPage].map((q, index) => (\n \n ))}\n
\n {questionsByChunk.length > 1 && (\n
\n
\n \n

\n {currentPage + 1} / {questionsByChunk.length}\n

\n \n
\n
\n )}\n
\n
\n
\n \n );\n};\n\nexport default RTFaq;\n","// extracted by mini-css-extract-plugin\nexport var imgContainer = \"faq-module--img-container--g5Hid\";\nexport var leftContainer = \"faq-module--left-container--i5s9X\";\nexport var questionsContainer = \"faq-module--questions-container--zp7Bw\";\nexport var title = \"faq-module--title--IWHYR\";\nexport var titleBar = \"faq-module--titleBar--Wodca\";","// extracted by mini-css-extract-plugin\nexport var globalButton = \"global-button-module--global-button--RGMLY\";","import { Link } from 'gatsby';\nimport React, { FC, useRef, useState } from 'react';\nimport * as styles from './global-button.module.scss';\nimport './global-button.scss';\n\ntype ButtonProps = {\n url?: string;\n target?: '_blank' | '_self' | '_parent' | '_top' | 'framename';\n text: string;\n bgColor?: string;\n txtColor?: string;\n animated?: boolean;\n};\n\nconst GlobalButton: FC = ({ url, text, bgColor = '#000', txtColor = '#fff', target = '_self', animated }: ButtonProps) => {\n const button = useRef(null);\n const [hovered, setHovered] = useState(false);\n\n const mouseover = () => setHovered(true);\n const mouseout = () => setHovered(false);\n\n if (url) {\n return (\n \n \n \n / \n {text}\n \n \n \n );\n } else {\n return (\n \n \n / \n {text}\n \n \n );\n }\n};\n\nexport default GlobalButton;\n"],"names":["_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","_setPrototypeOf","o","p","setPrototypeOf","__proto__","observerMap","Map","RootIds","WeakMap","rootId","unsupportedValue","undefined","optionsToId","options","keys","sort","filter","map","root","has","set","toString","get","observe","element","callback","fallbackInView","window","IntersectionObserver","bounds","getBoundingClientRect","isIntersecting","intersectionRatio","threshold","time","boundingClientRect","intersectionRect","rootBounds","_createObserver","id","instance","thresholds","elements","observer","entries","forEach","entry","_elements$get","inView","some","trackVisibility","isVisible","Array","isArray","createObserver","callbacks","push","splice","indexOf","unobserve","size","disconnect","_excluded","isPlainChildren","props","children","InView","_React$Component","subClass","superClass","_this","node","_unobserveCb","handleNode","triggerOnce","skip","setState","initialInView","observeNode","handleChange","onChange","state","create","constructor","_proto","componentDidUpdate","prevProps","rootMargin","delay","componentWillUnmount","_this$props","render","_this$state","ref","_this$props2","as","excluded","sourceKeys","_objectWithoutPropertiesLoose","displayName","defaultProps","_ref","React","stroke","fill","strokeWidth","viewBox","height","width","xmlns","fillRule","d","title","content","color","accordionContentRef","useRef","accordionContentHeight","setAccordionContentHeight","useState","isAccordionOpen","setIsAccordionOpen","openAccordion","initAccordionHeight","_accordionContentRef$","current","clientHeight","useSSRLayoutEffect","document","addEventListener","removeEventListener","className","style","onClick","transition","borderColor","backgroundColor","isSkewed","currentPage","setCurrentPage","wrapperRef","questionsByChunk","useMemo","items","_","arr","slice","flat","canPrev","canNext","scrollIntoView","_wrapperRef$current","behavior","inline","bgImage","backgroundImage","src","faqImage","url","alt","textColor","faqTitle","mainColor","q","index","Accordion","question","response","prev","page","ChevronLeft","next","ChevronRight","globalButton","text","bgColor","txtColor","animated","button","hovered","setHovered","mouseover","mouseout","Link","to","onMouseOver","onMouseOut","styles","opacity","transform"],"sourceRoot":""}