{"version":3,"sources":["webpack:///./presentation/utils/urlLanguageParse.ts","webpack:///./domain/constants/dimension.ts","webpack:///../node_modules/linaria/lib/react/index.js","webpack:///../node_modules/linaria/lib/react/styled.js","webpack:///../node_modules/linaria/lib/index.js","webpack:///../node_modules/linaria/lib/core/css.js","webpack:///../node_modules/linaria/lib/core/cx.js","webpack:///src/presentation/components/ribbons/centerfold/Centerfold.stylesheet.ts","webpack:///src/presentation/components/ribbons/centerfold/Image.stylesheet.ts","webpack:///./presentation/components/ribbons/centerfold/Image.tsx","webpack:///./presentation/components/ribbons/centerfold/Centerfold.tsx","webpack:///./presentation/components/ribbons/centerfold/index.ts"],"names":["url","language","length","parsedLanguage","split","toUpperCase","join","replace","Dimension","exports","__esModule","styled","_styled","obj","default","_interopRequireDefault","React","cache","_getRequireWildcardCache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_interopRequireWildcard","_isPropValid","_index","WeakMap","restOp","keysToExclude","keys","filter","prop","includes","reduce","acc","curr","assign","_default","tag","options","render","props","ref","filteredProps","_props$as","as","component","className","class","rest","indexOf","_key","cx","vars","style","name","variable","result","unit","value","__linaria","createElement","Result","forwardRef","innerRef","displayName","extends","enumerable","_css","_cx","_strings","Error","_len","arguments","classNames","Array","Boolean","ctas","cntnt","getHeights","height","atBreakpoint","breakpoints","isMinSm","isMinMd","isMinLg","isMinXl","activeHeightInitial","findResponsiveItem","getActiveFromArray","activeHeight","isNumeric","transitionHeight","StyledRoot","img","root","PureImage","image","layout","constrainImage","fullBackground","flippedFullBackground","flipped","getClassNames","currentLanguage","useCurrentLanguage","alt","createImageAlt","imageUrl","imgSrc","urlLanguageParse","aspect","preserveDimension","HEIGHT","focus","constrained","loading","src","setDirection","Direction","ROW","ROW_REVERSE","visibilitySet","errorBoundary","id","text","colorway","hBaseline","title","body","subtitle","precursor","useBreakpoints","activeImage","activeAnchor","flexAnchors","Anchor","CENTER","anchor","supportNull","offset","needsOffset","setOffset","hasTitle","isNilOrEmpty","hasBody","hasCta","hasSubtitle","hasPrecursor","multipleCtas","action","content","Ribbon","flush","type","Type","CENTERFOLD","ribbonPadding","linariaPadding","heightAnchor","vblock","direction","xs","sm","offsetXs","align","eyebrow","Shortcode","code","against","undefined","heading","depth","subheading","map","cta","i","CallToAction","ribbonId","index","Centerfold"],"mappings":"8EAAe,KAACA,EAAaC,KAC3B,GAAID,GAAOA,EAAIE,QAAUD,EAAU,CACjC,IAAIE,EAMJ,OAJEA,EADiC,IAA/BF,EAASG,MAAM,KAAKF,OACL,CAACD,EAASG,MAAM,KAAK,GAAIH,EAASG,MAAM,KAAK,GAAGC,eAAeC,KAAK,KAEpEL,EAEZD,EAAIO,QAAQ,eAAgBJ,GAErC,OAAOH,I,oBCVF,IAAKQ,EAAZ,kC,SAAYA,K,cAAAA,E,iBAAAA,M,0BCEZC,EAAQC,YAAa,EACrBD,EAAQE,YAAS,EAEjB,IAAIC,EAIJ,SAAgCC,GAAO,OAAOA,GAAOA,EAAIH,WAAaG,EAAM,CAAEC,QAASD,GAJzEE,CAAuB,EAAQ,MAE7CN,EAAQE,OAASC,EAAQE,S,oBCLzBL,EAAQC,YAAa,EACrBD,EAAQK,aAAU,EAElB,IAAIE,EAUJ,SAAiCH,GAAO,GAAIA,GAAOA,EAAIH,WAAc,OAAOG,EAAO,GAAY,OAARA,GAA+B,iBAARA,GAAmC,mBAARA,EAAsB,MAAO,CAAEC,QAASD,GAAS,IAAII,EAAQC,IAA4B,GAAID,GAASA,EAAME,IAAIN,GAAQ,OAAOI,EAAMG,IAAIP,GAAQ,IAAIQ,EAAS,GAAQC,EAAwBC,OAAOC,gBAAkBD,OAAOE,yBAA0B,IAAK,IAAIC,KAAOb,EAAO,GAAIU,OAAOI,UAAUC,eAAeC,KAAKhB,EAAKa,GAAM,CAAE,IAAII,EAAOR,EAAwBC,OAAOE,yBAAyBZ,EAAKa,GAAO,KAAUI,IAASA,EAAKV,KAAOU,EAAKC,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AAW2B,EAAW6E,QAAlC,UACE,cAAC,IAAD,CACEe,QACElB,EACE,cAAC,IAAD,CAAWtG,UAAU,IAArB,SACE,cAACyH,EAAA,EAAD,CAAWC,KAAMrC,EAAWsC,QAAS3C,WAErC4C,EAGNC,QACE5B,EACE,cAAC,IAAD,CAAW6B,MAAO7C,EAAlB,SACE,cAACwC,EAAA,EAAD,CAAWC,KAAMxC,EAAOyC,QAAS3C,WAEjC4C,EAENG,WACE1B,EACE,cAAC,IAAD,CAAWrG,UAAU,IAArB,SACE,cAACyH,EAAA,EAAD,CAAWC,KAAMtC,EAAUuC,QAAS3C,WAEpC4C,IAIPzB,GACC,cAAC,IAAD,CAAUlG,UAAW2B,EAAWmD,KAAhC,SACE,cAAC0C,EAAA,EAAD,CAAWC,KAAMvC,EAAMwC,QAAS3C,MAGnCoB,GACC,qBAAKnG,UAAW2B,EAAWG,KAA3B,SACGA,EAAKiG,IAAI,CAACC,EAAKC,IACd,qBACEjI,UAAW2B,EAAW4E,OADxB,SAKE,cAAC2B,EAAA,EAAD,CAAcC,SAAUtD,EAAIuD,MAAOH,KAAOD,KAFrCC,0BCpJhBI","file":"pex-static/34/22.cd95f1de02fce57023b6.chunk.js","sourcesContent":["export default (url: string, language?: string) => {\n if (url && url.length && language) {\n let parsedLanguage;\n if (language.split('-').length === 2) {\n parsedLanguage = [language.split('-')[0], language.split('-')[1].toUpperCase()].join('-');\n } else {\n parsedLanguage = language;\n }\n return url.replace('{{language}}', parsedLanguage);\n }\n return url;\n};\n","export enum Dimension {\n WIDTH = 'WIDTH',\n HEIGHT = 'HEIGHT',\n}\n\nexport default null;\n","\"use strict\";\n\nexports.__esModule = true;\nexports.styled = void 0;\n\nvar _styled = _interopRequireDefault(require(\"./styled\"));\n\nexports.styled = _styled.default;\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n//# sourceMappingURL=index.js.map","\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _isPropValid = _interopRequireDefault(require(\"@emotion/is-prop-valid\"));\n\nvar _index = require(\"../index\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _getRequireWildcardCache() { if (typeof WeakMap !== \"function\") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\n/**\n * This file contains an runtime version of `styled` component. Responsibilities of the component are:\n * - returns ReactElement based on HTML tag used with `styled` or custom React Component\n * - injects classNames for the returned component\n * - injects CSS variables used to define dynamic styles based on props\n */\n// eslint-disable-line import/no-extraneous-dependencies\n// Workaround for rest operator\nvar restOp = (obj, keysToExclude) => Object.keys(obj).filter(prop => !keysToExclude.includes(prop)).reduce((acc, curr) => Object.assign(acc, {\n [curr]: obj[curr]\n}), {}); // rest operator workaround\n\n\nvar warnIfInvalid = (value, componentName) => {\n if (process.env.NODE_ENV !== 'production') {\n if (typeof value === 'string' || // eslint-disable-next-line no-self-compare\n typeof value === 'number' && isFinite(value)) {\n return;\n }\n\n var stringified = typeof value === 'object' ? JSON.stringify(value) : String(value); // eslint-disable-next-line no-console\n\n console.warn(\"An interpolation evaluated to '\" + stringified + \"' in the component '\" + componentName + \"', which is probably a mistake. You should explicitly cast or transform the value to a string.\");\n }\n}; // If styled wraps custom component, that component should have className property\n\n\nfunction styled(tag) {\n return options => {\n if (process.env.NODE_ENV !== 'production') {\n if (Array.isArray(options)) {\n // We received a strings array since it's used as a tag\n throw new Error('Using the \"styled\" tag in runtime is not supported. Make sure you have set up the Babel plugin correctly. See https://github.com/callstack/linaria#setup');\n }\n }\n\n var render = (props, ref) => {\n var _props$as = props.as,\n component = _props$as === void 0 ? tag : _props$as,\n className = props.class;\n var rest = restOp(props, ['as', 'class']);\n var filteredProps; // Check if it's an HTML tag and not a custom element\n\n if (typeof component === 'string' && component.indexOf('-') === -1) {\n filteredProps = {}; // eslint-disable-next-line guard-for-in\n\n for (var _key in rest) {\n if (_key === 'as' || (0, _isPropValid.default)(_key)) {\n // Don't pass through invalid attributes to HTML elements\n filteredProps[_key] = rest[_key];\n }\n }\n } else {\n filteredProps = rest;\n }\n\n filteredProps.ref = ref;\n filteredProps.className = (0, _index.cx)(filteredProps.className || className, options.class);\n var vars = options.vars;\n\n if (vars) {\n var style = {}; // eslint-disable-next-line guard-for-in\n\n for (var name in vars) {\n var variable = vars[name];\n var result = variable[0];\n var unit = variable[1] || '';\n var value = typeof result === 'function' ? result(props) : result;\n warnIfInvalid(value, options.name);\n style[\"--\" + name] = \"\" + value + unit;\n }\n\n filteredProps.style = Object.assign(style, filteredProps.style);\n }\n\n if (tag.__linaria && tag !== component) {\n // If the underlying tag is a styled component, forward the `as` prop\n // Otherwise the styles from the underlying component will be ignored\n filteredProps.as = component;\n return /*#__PURE__*/React.createElement(tag, filteredProps);\n }\n\n return /*#__PURE__*/React.createElement(component, filteredProps);\n };\n\n var Result = React.forwardRef ? /*#__PURE__*/React.forwardRef(render) : // React.forwardRef won't available on older React versions and in Preact\n // Fallback to a innerRef prop in that case\n props => {\n var rest = restOp(props, ['innerRef']);\n return render(rest, props.innerRef);\n };\n Result.displayName = options.name; // These properties will be read by the babel plugin for interpolation\n\n Result.__linaria = {\n className: options.class,\n extends: tag\n };\n return Result;\n };\n}\n\nvar _default = process.env.NODE_ENV !== 'production' ? new Proxy(styled, {\n get(o, prop) {\n return o(prop);\n }\n\n}) : styled;\n\nexports.default = _default;\n//# sourceMappingURL=styled.js.map","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"css\", {\n enumerable: true,\n get: function () {\n return _css.default;\n }\n});\nObject.defineProperty(exports, \"cx\", {\n enumerable: true,\n get: function () {\n return _cx.default;\n }\n});\n\nvar _css = _interopRequireDefault(require(\"./core/css\"));\n\nvar _cx = _interopRequireDefault(require(\"./core/cx\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n//# sourceMappingURL=index.js.map","\"use strict\";\n\nexports.__esModule = true;\nexports.default = css;\n\nfunction css(_strings) {\n throw new Error('Using the \"css\" tag in runtime is not supported. Make sure you have set up the Babel plugin correctly.');\n}\n//# sourceMappingURL=css.js.map","\"use strict\";\n\nexports.__esModule = true;\nexports.default = cx;\n\nfunction cx() {\n for (var _len = arguments.length, classNames = new Array(_len), _key = 0; _key < _len; _key++) {\n classNames[_key] = arguments[_key];\n }\n\n return classNames.filter(Boolean).join(' ');\n}\n//# sourceMappingURL=cx.js.map","import findResponsiveItem from 'presentation/utils/findResponsiveItem';\nimport { ResponsiveSet } from 'core/ribbons/primitives';\nimport { Layout } from 'domain/constants/layout';\nimport { BreakpointProps } from '@ux/responsive';\nimport { CTA } from 'core/ribbons/cta';\nimport { ShortcodeProps } from 'presentation/components/Shortcode';\nimport { css, cx } from 'linaria';\nimport { cssTheme } from '@uds/theme-utils';\nimport { classNames } from '@uds/typography';\nimport { styled } from 'linaria/lib/react';\nimport { isNumeric } from '@ux/js';\n\nconst ctas = {\n default: css`\n margin-top: ${cssTheme.gu3};\n flex-wrap: wrap;\n &&& {\n ${cssTheme.breakpoints.sm} {\n display: flex;\n }\n }\n `,\n multiple: css`\n margin-top: ${cssTheme.gu2};\n `,\n};\n\nconst action = css`\n margin-top: ${cssTheme.gu1};\n &&& {\n ${cssTheme.breakpoints.sm} {\n margin-right: ${cssTheme.gu1};\n }\n }\n`;\n\nconst txt = css`\n margin-top: ${cssTheme.gu3};\n`;\n\nconst cntnt = {\n default: css`\n // 2GU between text and image (2 + 1 from Column)\n &&& {\n ${cssTheme.breakpoints.sm} {\n margin-right: ${cssTheme.gu1};\n }\n }\n // 3GU between text and image (2 + 1 from Column)\n &&& {\n ${cssTheme.breakpoints.lg} {\n margin-right: ${cssTheme.gu2};\n }\n }\n `,\n flipped: css`\n // 2GU between text and image (2 + 1 from Column)\n &&& {\n ${cssTheme.breakpoints.sm} {\n margin-right: 0;\n margin-left: ${cssTheme.gu1};\n }\n }\n // 3GU between text and image (2 + 1 from Column)\n &&& {\n ${cssTheme.breakpoints.lg} {\n margin-right: 0;\n margin-left: ${cssTheme.gu2};\n }\n },\n `,\n};\n\nconst root = css`\n position: relative;\n flex: 1;\n flex-basis: auto;\n padding-bottom: ${cssTheme.gu4};\n &&& {\n ${cssTheme.breakpoints.sm} {\n height: 100%;\n }\n }\n`;\n\ninterface RootProps {\n height?: ResponsiveSet;\n layout: Layout;\n}\n\nconst getHeights = ({\n height = ['auto', 'auto', 'auto'],\n atBreakpoint = 'xs',\n}: {\n height?: ResponsiveSet;\n atBreakpoint?: string;\n}) => {\n const breakpoints = {\n isMinSm: ['xl', 'lg', 'md', 'sm'].includes(atBreakpoint),\n isMinMd: ['xl', 'lg', 'md'].includes(atBreakpoint),\n isMinLg: ['xl', 'lg'].includes(atBreakpoint),\n isMinXl: atBreakpoint === 'xl' ?? false,\n } as BreakpointProps;\n const getActiveFromArray = (array: ResponsiveSet) => findResponsiveItem(breakpoints, array);\n\n const activeHeightInitial = getActiveFromArray(height);\n const activeHeight = isNumeric(activeHeightInitial) ? `${activeHeightInitial}px` : activeHeightInitial;\n const transitionHeight = activeHeight === 'auto' ? '200px' : activeHeight;\n return {\n activeHeight,\n transitionHeight,\n };\n};\n\nconst heightAnchor = css`\n ${cssTheme.breakpoints.sm} {\n display: flex;\n height: 100%;\n }\n`;\n\nexport const StyledRoot = styled.div`\n min-height: ${(props) => getHeights({ height: props?.layout?.height }).transitionHeight};\n ${cssTheme.breakpoints.sm} {\n min-height: ${(props) => getHeights({ height: props?.layout?.height, atBreakpoint: 'sm' }).transitionHeight};\n padding-top: calc(var(--centerfold-padding-top) * ${cssTheme.gu1});\n padding-bottom: calc(var(--centerfold-padding-bottom) * ${cssTheme.gu1});\n & .${heightAnchor} {\n min-height: ${(props) => getHeights({ height: props?.layout?.height, atBreakpoint: 'sm' }).activeHeight};\n }\n }\n ${cssTheme.breakpoints.md} {\n min-height: ${(props) => getHeights({ height: props?.layout?.height, atBreakpoint: 'md' }).transitionHeight};\n }\n ${cssTheme.breakpoints.lg} {\n min-height: ${(props) => getHeights({ height: props?.layout?.height, atBreakpoint: 'lg' }).transitionHeight};\n }\n`;\n\nexport const getClassNames = ({\n text,\n layout,\n}: {\n text: {\n title: ShortcodeProps;\n body: ShortcodeProps;\n ctas: Array;\n };\n layout: Layout;\n}) => {\n const multipleCtas = Array.isArray(text.ctas) && text.ctas.length > 1;\n const { flipped } = layout;\n return {\n root,\n ctas: cx(ctas.default, multipleCtas && ctas.multiple),\n action: cx(multipleCtas && action),\n text: cx(txt, classNames.content),\n heightAnchor,\n content: cx(cntnt.default, flipped && cntnt.flipped),\n };\n};\n","import { cssTheme } from '@uds/theme-utils';\nimport { styled } from 'linaria/react';\nimport { css, cx } from 'linaria';\nimport { Layout } from 'domain/constants/layout';\n\nconst img = {\n default: css`\n position: static;\n `,\n fullBackground: css`\n width: 100%;\n max-width: 100%;\n &&& {\n ${cssTheme.breakpoints.sm} {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 50%;\n width: 50%;\n height: 100%;\n }\n }\n `,\n flippedFullBackground: css`\n &&& {\n ${cssTheme.breakpoints.sm} {\n right: 50%;\n left: 0;\n }\n }\n `,\n constrained: css`\n position: static;\n width: 100%;\n height: 100%;\n &&& {\n ${cssTheme.breakpoints.sm} {\n position: absolute;\n }\n }\n `,\n};\n\nconst root = {\n constrained: css`\n padding-top: ${cssTheme.gu1};\n &&& {\n ${cssTheme.breakpoints.sm} {\n padding-top: 0;\n height: 100%;\n }\n }\n `,\n fullBackground: css`\n &&& ${cssTheme.breakpoints.sm} {\n padding-top: 0;\n position: static;\n }\n `,\n};\ninterface RootProps {\n aspect: 'contain' | 'cover';\n focus: string;\n constrained?: boolean;\n}\n\nexport const StyledRoot = styled.div`\n & img {\n object-fit: unset;\n object-position: unset;\n }\n &&& {\n ${cssTheme.breakpoints.sm} {\n & img {\n object-fit: ${(props) => props.aspect};\n object-position: ${(props) => props.focus};\n }\n }\n`;\n\nexport const getClassNames = ({ layout }: { layout: Layout }) => {\n const { flipped, constrainImage } = layout;\n const fullBackground = !constrainImage;\n const flippedFullBackground = flipped && fullBackground;\n\n return {\n image: cx(\n img.default,\n fullBackground && img.fullBackground,\n flippedFullBackground && img.flippedFullBackground,\n constrainImage && img.constrained,\n ),\n root: cx(constrainImage ? root.constrained : root.fullBackground),\n };\n};\n","import React from 'react';\nimport createImageAlt from 'presentation/utils/createImageAlt';\nimport urlLanguageParse from 'presentation/utils/urlLanguageParse';\nimport { Layout } from 'domain/constants/layout';\nimport { useCurrentLanguage } from 'domain/selectors/page';\nimport { Dimension } from 'domain/constants/dimension';\n\nimport { Image } from './Centerfold';\nimport { getClassNames, StyledRoot } from './Image.stylesheet';\n\nexport interface OuterProps {\n image: Image;\n layout: Layout;\n}\n\nexport const PureImage = ({ image, layout }: OuterProps) => {\n const classNames = getClassNames({ layout });\n const currentLanguage = useCurrentLanguage();\n\n const alt = createImageAlt({ imageUrl: image.url });\n\n const imgSrc = urlLanguageParse(image.url, currentLanguage);\n\n // preserving image height uses contain, so the image always fits in\n // otherwise fill available width with cover\n const aspect = image.preserveDimension === Dimension.HEIGHT ? 'contain' : 'cover';\n\n return (\n \n {alt}\n \n );\n};\n\nPureImage.displayName = 'CenterfoldImage';\n\nexport default PureImage;\n","import React, { ComponentType } from 'react';\nimport { Container, Row, Column, Direction } from '@uds/grid';\nimport Shortcode, { ShortcodeProps } from 'components/Shortcode';\nimport Ribbon from 'components/ribbons/Ribbon';\nimport CallToAction from 'components/common/CallToAction';\nimport PaddingBox from '@uds/padding-box';\nimport { useBreakpoints } from '@ux/responsive';\nimport findResponsiveItem from 'presentation/utils/findResponsiveItem';\nimport visibilitySet from 'presentation/hocs/visibilitySet';\nimport errorBoundary from 'presentation/hocs/errorBoundary';\nimport flexAnchors from 'presentation/utils/flexAnchors';\nimport { Anchor } from 'domain/constants/anchor';\nimport { RibbonProps, Type } from 'domain/constants/ribbons';\nimport { Dimension } from 'domain/constants/dimension';\nimport { CTA } from 'core/ribbons/cta';\nimport { isNilOrEmpty } from 'presentation/utils/generalUtils';\nimport { Layout } from 'domain/constants/layout';\nimport ribbonPadding from 'presentation/utils/ribbonPadding';\nimport { Heading02, BodyCopy, Heading04, Heading05, Typelockup } from '@uds/typography';\n\nimport { getClassNames, StyledRoot } from './Centerfold.stylesheet';\nimport CenterfoldImage from './Image';\n\nconst setDirection = (layout: Layout) => {\n if (layout.constrainImage) {\n if (layout.flipped) {\n return Direction.ROW;\n }\n return Direction.ROW_REVERSE;\n }\n return Direction.ROW;\n};\n\nconst needsOffset = (layout: Layout, isMinSm: boolean) => layout.flipped && isMinSm;\n\nconst setOffset = (layout: Layout) => (layout.constrainImage ? 0 : 6);\n\ntype Text = {\n title: ShortcodeProps;\n body: ShortcodeProps;\n ctas: Array;\n subtitle?: ShortcodeProps;\n precursor?: ShortcodeProps;\n};\n\nexport type Image = {\n url: string;\n focus: string;\n preserveDimension?: Dimension;\n};\n\nexport interface OuterProps extends RibbonProps {\n text: Text;\n image: Array;\n}\n\nexport const PureCenterfold = ({ id, loading, name, text, layout, colorway, hBaseline = 1, image }: OuterProps) => {\n const { title, body, ctas, subtitle, precursor } = text || {};\n\n const { constrainImage } = layout;\n\n const breakpoints = useBreakpoints();\n const { isMinSm, isMinLg } = breakpoints;\n\n const activeImage = findResponsiveItem(breakpoints, image) as Image;\n\n const activeAnchor = findResponsiveItem(breakpoints, flexAnchors([Anchor.CENTER, null, null], layout.anchor), {\n supportNull: true,\n });\n\n const offset = needsOffset(layout, isMinSm) ? setOffset(layout) : null;\n\n const hasTitle = !isNilOrEmpty(title);\n const hasBody = !isNilOrEmpty(body);\n const hasCta = !isNilOrEmpty(ctas);\n const hasSubtitle = !isNilOrEmpty(subtitle);\n const hasPrecursor = !isNilOrEmpty(precursor);\n\n const classNames = getClassNames({ text, layout });\n\n return (\n \n \n {!constrainImage && }\n
\n \n {/* @ts-ignore: error after upgrading to ux-configs */}\n \n {constrainImage && (\n \n \n \n )}\n \n \n \n \n \n ) : undefined\n }\n // @ts-ignore heading can apparently be undefined. LOL.\n heading={\n hasTitle ? (\n \n \n \n ) : undefined\n }\n subheading={\n hasSubtitle ? (\n \n \n \n ) : undefined\n }\n />\n\n {hasBody && (\n \n \n \n )}\n {hasCta && (\n
\n {ctas.map((cta, i) => (\n \n \n
\n ))}\n
\n )}\n \n \n \n \n \n \n \n );\n};\n\nexport default visibilitySet(errorBoundary(PureCenterfold)) as ComponentType;\n","import Centerfold from './Centerfold';\n\nexport default Centerfold;\n"],"sourceRoot":""}