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,YAAcuB,KAC3I,gBAAoB,MAAO,CAAEnD,UAAW,mBAAoBgD,QAAUC,IAC9DA,EAAEC,kBACFrG,SAA8CA,EAAM6E,eAAeuB,EAAE,EACtE,cAAe,SACtB,gBAAoB,MAAO,CAAEjD,UAAW,IAAW,CAAE0E,IAAKvB,IAAatG,EAAM+E,WAAa,iBAAkB,CAAE,wBAAyB/E,EAAM2H,YACzI,gBAAoB,MAAO,CAAExE,UAAW,oBACpC,gBAAoB,MAAO,CAAEA,UAAW,IAAW,iBAAkB,CAAEyE,UAAWtB,MAC7EtG,EAAMkF,gBAAkBc,MACvBhG,EAAMiH,OAASX,IAAaC,IAC9BvG,EAAM8H,YAAc,gBAAoB,KAAM,CAAE3E,UAAW,mBAC3D,gBAAoB,MAAO,CAAEA,UAAW,eAAiB6D,UAAyB,C","sources":["webpack:///./node_modules/prop-types/factoryWithThrowingShims.js","webpack:///./node_modules/prop-types/index.js","webpack:///./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack:///./assets/common/src/components/utils/ThronVideo.tsx","webpack:///./assets/stone/src/components/editorial/EditorialVideoContainer.tsx","webpack:///./assets/stone/src/components/editorial/EditorialVideoWrapper.tsx","webpack:///./assets/stone/src/components/modal/ModalDialog.tsx"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","import classNames from 'classnames';\nimport React, { useEffect, useRef, useState } from 'react';\nimport ThronIntegrationComponent from './../../scripts/components/thronIntegrationComponent';\nconst ThronVideo = (props) => {\n const videoRef = useRef();\n const [thronComponent, setThronComponent] = useState(null);\n useEffect(() => {\n if (videoRef.current) {\n if (thronComponent) {\n thronComponent.changeContent(props.thronID);\n }\n else {\n const options = {};\n props.onPauseCallback && (options.onPauseCallback = props.onPauseCallback);\n props.onPlayCallback && (options.onPlayCallback = props.onPlayCallback);\n props.onCompleteCallback && (options.onCompleteCallback = props.onCompleteCallback);\n props.onInitCallback && (options.onInitCallback = props.onInitCallback);\n props.onTimeUpdate && (options.onTimeUpdate = props.onTimeUpdate);\n typeof props.loopTimes === 'number' && (options.loopTimes = props.loopTimes);\n const newThronComponent = new ThronIntegrationComponent(videoRef.current, 'video', options);\n setThronComponent(newThronComponent);\n }\n }\n }, [props.thronID]);\n return (React.createElement(\"div\", { ref: videoRef, \"aria-hidden\": \"true\", className: classNames('video-wrapper', props.className), \"data-option-id\": props.thronID, \"data-option-mobile-id\": props === null || props === void 0 ? void 0 : props.thronMobileID, \"data-option-muted\": props.muted, \"data-option-autoplay\": props.autoplay, \"data-option-loop\": props.loop, \"data-option-lock-bitrate\": props.lockBitrate, \"data-option-no-skin\": props.noskin, \"data-option-sess-id\": props.sessionId }));\n};\nexport default ThronVideo;\n","import React, { useMemo, useState } from 'react';\nimport EditorialVideo from './EditorialVideo';\nimport ModalDialog from '../modal/ModalDialog';\nconst EditorialVideoContainer = (props) => {\n const [fullScreen, setFullScreen] = useState(false);\n const [defaultParams, setDefaultParams] = useState({});\n const [isBackFromOverlay, setIsBackFromOverlay] = useState(false);\n const [overlayParams, setOverlayParams] = useState({});\n const containerProps = useMemo(() => {\n return Object.assign(Object.assign({}, props), { isFullbleed: props.dimension === 'FULL_BLEED', fullScreen,\n setFullScreen,\n isBackFromOverlay,\n setIsBackFromOverlay });\n }, [props.dimension, fullScreen, isBackFromOverlay]);\n return (React.createElement(React.Fragment, null,\n React.createElement(EditorialVideo, Object.assign({}, props, containerProps, { onUpdate: setDefaultParams, overrideParams: overlayParams, forceActiveState: props.forceActiveState })),\n React.createElement(ModalDialog, { isOpen: fullScreen, onRequestClose: () => {\n setIsBackFromOverlay(true);\n setFullScreen(false);\n }, className: \"editorial-video-modal\", fullHeight: true, fullWidth: true, noSkin: true, hideCloseButton: true, buttonInHeader: false },\n React.createElement(EditorialVideo, Object.assign({ isFullscreenOverlay: true }, props, containerProps, { uuid: props.uuid + '-fullscreen', onUpdate: setOverlayParams, overrideParams: defaultParams })))));\n};\nexport default EditorialVideoContainer;\n","import React from 'react';\nimport EditorialVideoContainer from './EditorialVideoContainer';\nconst EditorialVideoWrapper = (props) => {\n const IS_FULLBLEED = props.dimension === 'FULL_BLEED';\n const colClasses = {\n '16_COLUMNS': 'col-lg-16 offset-lg-4',\n '20_COLUMNS': 'col-lg-20 offset-lg-2',\n FULL_BLEED: '',\n };\n const wrapperClasses = {\n '16_COLUMNS': 'editorial-video--wrapper--16',\n '20_COLUMNS': 'editorial-video--wrapper--20',\n FULL_BLEED: 'editorial-video--wrapper--full',\n };\n const renderWrapper = () => (React.createElement(\"div\", { className: `editorial-video--wrapper ${wrapperClasses[props.dimension]}` },\n React.createElement(\"div\", { className: `container` },\n React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: colClasses[props.dimension] }, renderVideo())))));\n const renderVideo = () => React.createElement(EditorialVideoContainer, Object.assign({}, props, { isFullbleed: IS_FULLBLEED }));\n return React.createElement(React.Fragment, null, IS_FULLBLEED ? renderVideo() : renderWrapper());\n};\nexport default EditorialVideoWrapper;\n","import classNames from 'classnames';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport Modal from 'react-modal';\nimport useMediaQueries from '@stone/hooks/useMediaQueries';\nimport Image from '@stone/ui/image/Image';\nconst appElement = document.getElementById('maincontent');\nModal.setAppElement(appElement ? appElement : document.getElementsByTagName('body')[0]);\nconst ModalDialog = (props) => {\n var _a;\n const { t } = useTranslation();\n const closeButton = () => {\n return (React.createElement(\"button\", { type: \"button\", \"aria-label\": t('button.close'), className: classNames('modal__close', props.closeInvertedSm && 'modal__close--inverted-sm'), onClick: (e) => {\n e.stopPropagation();\n props === null || props === void 0 ? void 0 : props.onRequestClose(e);\n } }));\n };\n const { isMobile } = useMediaQueries();\n const renderHeader = () => (React.createElement(React.Fragment, null, !props.hideHeader && (React.createElement(\"div\", { className: \"modal__header\" },\n props.buttonInHeader && closeButton(),\n props.beforeTitleButtons || props.afterTitleButtons ? (React.createElement(\"div\", { className: \"modal__header-title\" },\n props.beforeTitleButtons,\n React.createElement(\"h2\", { id: \"dialog1_label\", className: classNames('dialog__title', props.visuallyhidden && 'visually-hidden') }, props.contentLabel),\n props.afterTitleButtons)) : (React.createElement(\"h2\", { id: \"dialog1_label\", className: classNames('dialog__title', props.visuallyhidden && 'visually-hidden') }, props.contentLabel)),\n props.subjsx && props.subjsx(),\n props.subtitle && React.createElement(\"p\", { className: \"dialog__description\" }, props.subtitle)))));\n const renderChildren = () => props.image && !isMobile ? (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"modal__body--left\" },\n React.createElement(Image, { src: props.image, alt: \"\" })),\n React.createElement(\"div\", { className: \"modal__body--right\" },\n React.createElement(\"div\", { className: \"scrollable\" },\n renderHeader(),\n props.children)))) : (props.children);\n return (React.createElement(Modal, Object.assign({ \"aria-labelledby\": props.contentLabel ? 'dialog1_label' : '', closeTimeoutMS: 600 }, props, { overlayClassName: classNames('overlay-modal', props.overlayClassName), className: classNames('modal modal--dialog', props.noPadding && 'modal--no-padding', (_a = props.className) === null || _a === void 0 ? void 0 : _a.toString().replace('modal--centered', ''), {\n 'modal--fullheight': props.fullHeight,\n 'modal--fullwidth': props.fullWidth,\n 'modal--image': props.image,\n modal__legacy: props.isLegacy,\n }) }), props.noSkin ? (React.createElement(React.Fragment, null,\n !props.buttonInHeader && !props.hideCloseButton && closeButton(),\n renderChildren())) : (React.createElement(\"div\", { className: classNames({ container: !props.fullWidth || !isMobile }) },\n React.createElement(\"div\", { className: classNames({ 'row justify-center': !props.fullWidth || !isMobile, 'align-middle': !props.fullWidth || !isMobile }) },\n React.createElement(\"div\", { className: \"modal__closearea\", onClick: (e) => {\n e.stopPropagation();\n props === null || props === void 0 ? void 0 : props.onRequestClose(e);\n }, \"aria-hidden\": \"true\" }),\n React.createElement(\"div\", { className: classNames({ col: isMobile && !props.fullWidth }, 'modal__wrapper', { 'modal__legacy-wrapper': props.isLegacy }) },\n React.createElement(\"div\", { className: \"modal__container\" },\n React.createElement(\"div\", { className: classNames('modal__content', { container: isMobile }) },\n !props.buttonInHeader && closeButton(),\n (!props.image || isMobile) && renderHeader(),\n props.hasDivisor && React.createElement(\"hr\", { className: \"modal__divisor\" }),\n React.createElement(\"div\", { className: \"modal__body\" }, renderChildren())))))))));\n};\nexport default ModalDialog;\n"],"names":["ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","module","exports","shim","props","propName","componentName","location","propFullName","secret","err","Error","name","getShim","isRequired","ReactPropTypes","array","bigint","bool","func","number","object","string","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","videoRef","useRef","thronComponent","setThronComponent","useState","useEffect","current","changeContent","thronID","options","onPauseCallback","onPlayCallback","onCompleteCallback","onInitCallback","onTimeUpdate","loopTimes","newThronComponent","ref","className","thronMobileID","muted","autoplay","loop","lockBitrate","noskin","sessionId","fullScreen","setFullScreen","defaultParams","setDefaultParams","isBackFromOverlay","setIsBackFromOverlay","overlayParams","setOverlayParams","containerProps","useMemo","Object","assign","isFullbleed","dimension","onUpdate","overrideParams","forceActiveState","isOpen","onRequestClose","fullHeight","fullWidth","noSkin","hideCloseButton","buttonInHeader","isFullscreenOverlay","uuid","IS_FULLBLEED","colClasses","FULL_BLEED","wrapperClasses","renderVideo","appElement","document","getElementById","getElementsByTagName","_a","t","closeButton","type","closeInvertedSm","onClick","e","stopPropagation","isMobile","renderHeader","hideHeader","beforeTitleButtons","afterTitleButtons","id","visuallyhidden","contentLabel","subjsx","subtitle","renderChildren","image","src","alt","children","closeTimeoutMS","overlayClassName","noPadding","toString","replace","modal__legacy","isLegacy","container","col","hasDivisor"],"sourceRoot":""}