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ACnBc,gBAAiBA,EACjBG,mBAAoBA,EACpBC,qBAAsBA,EACtBC,sBAAuBA,EACvBC,oBAAqBA,EACrBC,WAAYA,EACZC,UAAWA,EACXC,WAAYA,EACZC,oBAAqBA,EACrBC,qBAAsBA,EAAqBK,SAE1CA,CAAQ,GAKbK,CAAAA,EAAAA,EAAAA,GAAAA,EAACzB,EAAK,CAAC0B,MAAOtB,EACVY,aAAcA,EACdG,aAAcA,EACdF,uBAAwBA,EACxBC,sBAAuBA,EACvBb,mBAAoBA,EACpBsB,oBAAqBrB,EAAiBc,SACrCA,CAAQ,EAI7B,CAaAnB,EAAkB2B,YAAY,CAAG,CAC7BxB,gBAAiByB,KAAAA,EACjBxB,mBAAoB,EACpBC,iBAAkB,EAClBc,SAAU,IACd","sources":["webpack://_N_E/./components/Content/BackgroundWrapper.js"],"sourcesContent":["import {ContentConstants} from '../../adapters/helpers/Constants';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport dynamic from 'next/dynamic';\nconst VideoBackgroundWrapper = dynamic(() => import('./VideoBackgroundWrapper'));\nconst Image = dynamic(() => import('../Image/Image'));\n\nexport default function BackgroundWrapper({\n backgroundAsset,\n backgroundPosition,\n sectionOffsetTop,\n mainAssetOffsetTop,\n mainAssetOffsetRight,\n mainAssetOffsetBottom,\n mainAssetOffsetLeft,\n pauseLabel,\n playLabel,\n resetLabel,\n openTranscriptLabel,\n closeTranscriptLabel,\n preloadImage,\n desktopBackgroundImage,\n mobileBackgroundImage,\n imageQuality,\n children\n }) {\n switch(backgroundAsset?.fields?.contentType) {\n case ContentConstants.cloudinaryVideo:\n return (\n \n {children}\n \n );\n default:\n return (\n \n {children}\n \n );\n }\n}\n\nBackgroundWrapper.propTypes = {\n backgroundAsset: PropTypes.any,\n backgroundPosition: PropTypes.any,\n sectionOffsetTop: PropTypes.any,\n children: PropTypes.node,\n mainAssetOffsetTop: PropTypes.string,\n mainAssetOffsetRight: PropTypes.string,\n mainAssetOffsetBottom: PropTypes.string,\n mainAssetOffsetLeft: PropTypes.string,\n};\n\nBackgroundWrapper.defaultProps = {\n backgroundAsset: undefined,\n backgroundPosition: 0,\n sectionOffsetTop: 0,\n children: null,\n};\n"],"names":["VideoBackgroundWrapper","dynamic","Promise","all","__webpack_require__","e","then","bind","loadableGenerated","webpack","Image","BackgroundWrapper","_ref","_backgroundAsset$fiel","backgroundAsset","backgroundPosition","sectionOffsetTop","mainAssetOffsetTop","mainAssetOffsetRight","mainAssetOffsetBottom","mainAssetOffsetLeft","pauseLabel","playLabel","resetLabel","openTranscriptLabel","closeTranscriptLabel","preloadImage","desktopBackgroundImage","mobileBackgroundImage","imageQuality","children","fields","contentType","ContentConstants","cloudinaryVideo","_jsx","image","backgroundOffsetTop","defaultProps","undefined"],"sourceRoot":""}