{"version":3,"sources":["webpack:///../node_modules/@ux/illustrations/dist/es/illustrations.js","webpack:///../node_modules/@ux/padding-box/dist/es/padding-box.js","webpack:///./presentation/components/Shortcode/Alt.tsx","webpack:///./presentation/components/Shortcode/Bold.tsx","webpack:///./presentation/components/Shortcode/Italic.tsx","webpack:///./presentation/components/Shortcode/Link.tsx","webpack:///./presentation/components/Shortcode/Text.tsx","webpack:///src/presentation/components/Shortcode/Tooltip.tsx","webpack:///./presentation/components/Shortcode/PendingShortcode.tsx","webpack:///./presentation/components/Shortcode/Shortcode.tsx","webpack:///./presentation/components/Shortcode/index.ts","webpack:///../node_modules/@ux/typography/dist/es/typography.js","webpack:///./presentation/utils/urlLanguageParse.ts","webpack:///./presentation/utils/createImageAlt.ts","webpack:///./presentation/utils/getActiveImageWithAspectRatios.ts"],"names":["size","ownerProps","gu","test","icon","theme","spacing","createPaintbrushUrl","params","URLSearchParams","Object","keys","palette","illustrations","forEach","key","append","iconSet","toString","Illustration","default","root","maxWidth","height","width","position","display","remote","left","top","enhance","styles","alt","createElement","style","src","importance","loading","Design","Side","_defineProperty","obj","value","defineProperty","enumerable","configurable","writable","stylesheet","_ref","_useStyles","side","design","isMinLg","INNER","padding","assign","A","T","right","bottom","B","L","R","Y","X","PaddingBox","component","OUTER","props","_a","children","s","e","t","p","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","__rest","enhance$1","getColor","against","Against","LIGHT","NEUTRAL","primary","DARK","tertiary","Alt","RecursiveShortcode","elements","rest","useTheme","color","displayName","Bold","fontWeight","fontStyle","Link","contentType","attributes","externalRoutes","useExternalRoutes","to","goto","id","analyticskey","TextButtonSize","INHERIT","rel","target","newTab","formatText","text","newline","formattedText","split","join","escapeShortCodes","string","reduce","prev","cur","nl2br","Text","ReactTooltip","lazy","TooltipShortcode","useBreakpoints","eventToggle","undefined","cssTheme","CallToAction","fallback","tagName","useDefaultStyles","content","randomWidth","Math","floor","random","PendingShortcode","code","lines","Glyph","Sup","List","OrderedList","ListItem","TickListItem","ProductPrice","PhoneNumber","map","element","index","Shortcode","JSON","stringify","String","getAgainst","Element","type","name","glyph","Italic","Tooltip","ShortcodeWrapper","mergeStyles","rootStyles","inlineStyles","createTypographyElement","typographyFactory","defaultComponent","headingSize","depth","concat","_ref$theme","typography","isMinSm","marginTop","marginBottom","fontFamily","PreHeading01","PreHeading02","stylesheet$1","Heading01","Heading02","Heading03","Heading04","Heading05","Heading06","_stylesheet","SubHeading01","SubHeading02","BodyCopy01","url","language","parsedLanguage","toUpperCase","replace","hasImage","r","isNotNilOrEmpty","str","image","match","breakpoints","imagesWithAspectRatios","imageUrl","imageAspectRatio","preserveDimension","findResponsiveItem"],"mappings":";8EAAA,6FAOA,MAAMA,EAAOC,IACX,GAAuB,MAAnBA,EAAWD,KAAc,CAE3B,MAAME,EAAK,UAAUC,KAAKF,EAAWG,MAAQ,EAAI,EACjD,OAAO,YAAMF,EAAID,EAAWI,MAAMC,SAGpC,OAAOL,EAAWD,MAsBpB,MAEMO,EAAsB,CAACH,EAAMC,KACjC,MAAMG,EAAS,IAAIC,gBAMnB,OALAC,OAAOC,KAAKN,EAAMO,QAAQC,eAAeC,QAAQC,IAE/CP,EAAOQ,OAAO,WAAWD,KAAQV,EAAMO,QAAQC,cAAcE,MAE/DP,EAAOQ,OAAO,UAAWX,EAAMY,SACxB,+CAA4Bb,SAAYI,EAAOU,cAqBxD,IAAIC,EAlBY,YAAM,eAAN,CAAsB,oBA/BpBlB,GAAc,YAAU,CACxCmB,QAAS,CACPC,KAAM,CACJC,SAAU,YAAW,KACrBC,OAAQvB,EAAKC,GACbuB,MAAOxB,EAAKC,GACZwB,SAAU,WACVC,QAAS,gBAEXC,OAAQ,CACNF,SAAU,WACVD,MAAO,YAAW,KAClBD,OAAQ,YAAW,KACnBK,KAAM,EACNC,IAAK,KAGR,KAgCgBC,CAhBM,EACvBC,SACA3B,OACAC,QACA2B,SACiB,IAAMC,cAAc,MAAO,CAC5CC,MAAOH,EAAOV,MAC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D,EAAII,QAAQ,eAAgBF,GAErC,OAAOF,I,oBCVT,uDAYA,MAAMK,EAAWC,IAAgBC,IAAiB,YAmCnCD,QAASD,EAAUC,IAAOA,IAAO,YA1B1BE,IACpB,GAAmB,iBAARA,EACT,MAAO,GAGT,MAAMC,EAAQD,EAAIE,MAAM,6BAExB,OAAID,GAASA,EAAM,GACVA,EAAM,GAGRD,GAOWA,GAAgBA,EAAIJ,QAAQ,QAAS,MAQ+BE,IAAS,M,oBC3CjG,aAce,KACbK,EACAF,EACAG,KAEA,MAAQC,SAAUb,EAAZ,iBAAiBc,EAAjB,kBAAmCC,GAAsBN,EAE/D,GAA8B,MAA1BG,GAAkCA,EAAuBlI,OAAS,EAAG,CAEvE,OADoCsI,YAAmBL,EAAaC,IAC9B,GAGxC,MAAO,CACLZ,MACAc,mBACAC","file":"pex-static/90/5.273a3ce4e29b2040caab.chunk.js","sourcesContent":["import React from 'react';\nimport { withProps } from '@team-griffin/rehook';\nimport { puree } from '@ux/pure-enhance';\nimport { useStyles } from '@team-griffin/stylr';\nimport { percentage } from '@ux/style-utils';\nimport { gu2px } from '@ux/theme-utils';\n\nconst size = ownerProps => {\n if (ownerProps.size == null) {\n // if banner add more spacing\n const gu = /^banner/.test(ownerProps.icon) ? 8 : 2;\n return gu2px(gu, ownerProps.theme.spacing);\n }\n\n return ownerProps.size;\n};\n\nvar stylesheet = (ownerProps => useStyles({\n default: {\n root: {\n maxWidth: percentage(100),\n height: size(ownerProps),\n width: size(ownerProps),\n position: 'relative',\n display: 'inline-block'\n },\n remote: {\n position: 'absolute',\n width: percentage(100),\n height: percentage(100),\n left: 0,\n top: 0\n }\n }\n}, []));\n\nconst baseUrl = 'https://paintbrush.heg-cp.com';\n\nconst createPaintbrushUrl = (icon, theme) => {\n const params = new URLSearchParams();\n Object.keys(theme.palette.illustrations).forEach(key => {\n // @ts-ignore\n params.append(`palette[${key}]`, theme.palette.illustrations[key]);\n });\n params.append('iconSet', theme.iconSet);\n return `${baseUrl}/illustrations/${icon}.svg?${params.toString()}`;\n};\n\nconst enhance = puree('Illustration')(withProps(stylesheet));\n\nconst PureIllustration = ({\n styles,\n icon,\n theme,\n alt\n}) => /*#__PURE__*/React.createElement(\"div\", {\n style: styles.root\n}, /*#__PURE__*/React.createElement(\"img\", {\n src: createPaintbrushUrl(icon, theme),\n alt: alt,\n style: styles.remote // @ts-ignore\n ,\n importance: \"low\",\n loading: \"lazy\"\n}));\n\nvar Illustration = enhance(PureIllustration); // eslint-disable-next-line no-underscore-dangle\n\nexport default Illustration;\nexport { Illustration, createPaintbrushUrl };\n","import { createElement } from 'react';\nimport { defaultProps, withProps, omitProps } from '@team-griffin/rehook';\nimport { puree } from '@ux/pure-enhance';\nimport cssSides, { Side as Side$1 } from '@team-griffin/css-sides';\nimport { useBreakpoints } from '@ux/responsive';\nimport { useTheme, gu2px } from '@ux/theme-utils';\nimport { modifier } from '@ux/style-utils';\nimport { useStyles } from '@team-griffin/stylr';\nimport longhand from '@team-griffin/css-longhand';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)\r\n t[p[i]] = s[p[i]];\r\n return t;\r\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nvar Design;\n\n(function (Design) {\n Design[\"OUTER\"] = \"OUTER\";\n Design[\"INNER\"] = \"INNER\";\n})(Design || (Design = {}));\n\nvar Side;\n\n(function (Side) {\n Side[\"A\"] = \"ALL\";\n Side[\"X\"] = \"X\";\n Side[\"Y\"] = \"Y\";\n Side[\"T\"] = \"TOP\";\n Side[\"B\"] = \"BOTTOM\";\n Side[\"L\"] = \"LEFT\";\n Side[\"R\"] = \"RIGHT\";\n})(Side || (Side = {}));\n\nvar stylesheet = (function (_ref) {\n var _useStyles;\n\n var style = _ref.style,\n side = _ref.side,\n design = _ref.design;\n\n var _useBreakpoints = useBreakpoints(),\n isMinLg = _useBreakpoints.isMinLg;\n\n var _useTheme = useTheme(),\n spacing = _useTheme.theme.spacing; // Inner: 3GU on large, 2GU otherwise\n // Outer: 4GU on large, 3GU otherwise\n // eslint-disable-next-line no-nested-ternary\n\n\n var gu = design === Design.INNER ? isMinLg ? 3 : 2 : isMinLg ? 4 : 3;\n var padding = gu2px(gu, spacing);\n return useStyles((_useStyles = {\n default: {\n // apply any user defined styes likes colors\n root: Object.assign({}, style)\n }\n }, _defineProperty(_useStyles, modifier('side', Side.A), {\n root: Object.assign({}, cssSides('padding', Side$1.A, padding))\n }), _defineProperty(_useStyles, modifier('side', Side.T), {\n root: Object.assign({}, longhand('padding', {\n top: padding,\n left: 0,\n right: 0,\n bottom: 0\n }))\n }), _defineProperty(_useStyles, modifier('side', Side.B), {\n root: Object.assign({}, longhand('padding', {\n top: 0,\n left: 0,\n right: 0,\n bottom: padding\n }))\n }), _defineProperty(_useStyles, modifier('side', Side.L), {\n root: Object.assign({}, longhand('padding', {\n top: 0,\n left: padding,\n right: 0,\n bottom: 0\n }))\n }), _defineProperty(_useStyles, modifier('side', Side.R), {\n root: Object.assign({}, longhand('padding', {\n top: 0,\n left: 0,\n right: padding,\n bottom: 0\n }))\n }), _defineProperty(_useStyles, modifier('side', Side.Y), {\n root: Object.assign(Object.assign({}, cssSides('padding', Side$1.Y, padding)), cssSides('padding', Side$1.X, 0))\n }), _defineProperty(_useStyles, modifier('side', Side.X), {\n root: Object.assign(Object.assign({}, cssSides('padding', Side$1.X, padding)), cssSides('padding', Side$1.Y, 0))\n }), _useStyles), [{\n side: side\n }, {\n isMinLg: isMinLg\n }, {\n design: design\n }]);\n});\n\nvar PurePaddingBox = function PurePaddingBox(_a) {\n var children = _a.children,\n component = _a.component,\n props = __rest(_a, [\"children\", \"component\"]);\n\n return createElement(component, props, children);\n};\n\nvar enhance = puree('PaddingBox')(defaultProps({\n component: 'div',\n side: Side.A,\n design: Design.OUTER\n}), withProps(function (props) {\n return stylesheet(props);\n}), withProps(function (_ref) {\n var styles = _ref.styles;\n return {\n style: styles.root\n };\n}), omitProps(['styles', 'side', 'design'])); // eslint-disable-next-line no-underscore-dangle\nvar PaddingBox = enhance(PurePaddingBox);\n\nvar enhance$1 = puree('InnerPaddingBox')(withProps(function () {\n return {\n design: Design.INNER\n };\n})); // @ts-ignore gets confused when wrapping and passing in an optional prop (design)\n\nvar InnerPaddingBox = enhance$1(PaddingBox);\n\nvar paddingBox = function paddingBox(props) {\n return stylesheet(Object.assign({\n side: Side.A\n }, props)).styles.root;\n};\nvar innerPaddingBox = function innerPaddingBox(props) {\n return stylesheet(Object.assign({\n side: Side.A,\n design: Design.INNER\n }, props)).styles.root;\n};\n\nexport default PaddingBox;\nexport { Design, InnerPaddingBox, PaddingBox, Side, innerPaddingBox, paddingBox };\n","import React from 'react';\nimport { Against } from 'domain/constants/colorway';\nimport { Theme, useTheme } from '@ux/theme-utils';\n\nimport { RecursiveShortcodeProps } from './Shortcode';\n\nconst getColor = (theme: Theme, against: Against | undefined) => {\n switch (against) {\n case Against.LIGHT:\n return theme.palette.primary;\n case Against.NEUTRAL:\n return theme.palette.primary;\n case Against.DARK:\n return theme.palette.tertiary;\n default:\n return 'inherit';\n }\n};\nconst Alt = ({ RecursiveShortcode, elements, against, ...rest }: RecursiveShortcodeProps) => {\n const { theme } = useTheme();\n return (\n \n {RecursiveShortcode ? : null}\n \n );\n};\n\nAlt.displayName = 'Alt';\n\nexport default Alt;\n","import React from 'react';\n\nimport { RecursiveShortcodeProps } from './Shortcode';\n\nconst Bold = ({ elements, RecursiveShortcode, ...rest }: RecursiveShortcodeProps) => (\n \n {RecursiveShortcode ? : null}\n \n);\n\nBold.displayName = 'Bold';\n\nexport default Bold;\n","import React from 'react';\n\nimport { RecursiveShortcodeProps } from './Shortcode';\n\nconst Bold = ({ elements, RecursiveShortcode, ...rest }: RecursiveShortcodeProps) => (\n \n {RecursiveShortcode ? : null}\n \n);\n\nBold.displayName = 'Bold';\n\nexport default Bold;\n","import React from 'react';\nimport TextButton, { Size as TextButtonSize } from '@ux/text-button';\nimport { useExternalRoutes } from 'domain/selectors/common';\n\nimport { RecursiveShortcodeProps } from './Shortcode';\n\nconst Link = ({ RecursiveShortcode, elements, contentType, attributes, against, ...rest }: RecursiveShortcodeProps) => {\n const externalRoutes = useExternalRoutes();\n\n return (\n \n {/* @ts-ignore: error when upgrading to @ux/config */}\n \n \n );\n};\n\nLink.displayName = 'Link';\n\nexport default Link;\n","import React, { Fragment } from 'react';\n\nconst escapeShortCodes = (text: string) => {\n if (typeof text !== 'string') {\n return null;\n }\n const replaceA = (text ?? '').split('[!').join('[');\n const replaceB = replaceA.split('!/]').join('/]');\n const replaceC = replaceB.split('[/!').join('[/');\n return replaceC;\n // using split/join because for some reason replaceAll fails for backstop\n // tests but not for backstop storybook?\n // if anyone can tell me why, I'd appreciate it.\n // return (text ?? '').replaceAll('[!', '[').replaceAll('!/]', '/]')\n // .replaceAll('[/!', '[/');\n};\n\nconst nl2br = (string: string) =>\n (string ?? '')\n .split('\\n')\n // @ts-ignore typescript cant figure typing out\n // eslint-disable-next-line react/no-array-index-key\n .reduce((prev, cur, i) => [prev,
, cur]);\n\nconst formatText = (text: string, newline: boolean | Element | undefined) => {\n const formattedText = escapeShortCodes(text) ?? '';\n if (newline === false) {\n return formattedText;\n }\n return nl2br(formattedText);\n};\n\ninterface OuterProps {\n text: string;\n nl2br?: Element;\n}\nconst Text = ({ text, nl2br }: OuterProps) => {formatText(text, nl2br)};\n\nText.displayName = 'Text';\n\nexport default Text;\n","import React, { lazy, Suspense } from 'react';\nimport TextButton, { Size as TextButtonSize } from '@ux/text-button';\nimport { cssTheme } from '@ux/theme-utils';\nimport { useBreakpoints } from '@ux/responsive';\n\nimport { RecursiveShortcodeProps } from './Shortcode';\n\n/*\n React-Tooltip is a heavy dependency therefore we asynchronously load it in\n and gracefully decorate the functionality in once it has loaded\n*/\nconst ReactTooltip = lazy(\n () =>\n import(\n /* webpackChunkName: \"react-tooltip-lite\" */\n 'react-tooltip-lite'\n ),\n);\n\nconst TooltipShortcode = ({ RecursiveShortcode, against, attributes, elements }: RecursiveShortcodeProps) => {\n const { isMinLg } = useBreakpoints();\n const eventToggle = isMinLg ? undefined : 'onClick';\n const padding = cssTheme.gu2;\n const CallToAction = (\n \n {attributes?.label}\n \n );\n\n return (\n \n {/* @ts-ignore children doesnt exist */}\n \n {/* @ts-ignore: error when upgrading to @ux/config */}\n \n \n }\n >\n {CallToAction}\n \n \n );\n};\n\nTooltipShortcode.displayName = 'TooltipShortcode';\n\nexport default TooltipShortcode;\n","import React from 'react';\nimport Shimmer from '@ux/shimmer';\nimport { Colorway } from '@ux/theme-utils';\n\nimport { ShortcodeProps } from './';\n\nexport interface OuterProps {\n against?: Colorway;\n code?: ShortcodeProps;\n}\n\n// random % width for shimmer betwen 50% and 95%\nconst randomWidth = () => Math.floor(Math.random() * (95 - 50) + 50);\n\nconst PendingShortcode = ({ code, against }: OuterProps) => (\n \n \n \n);\n\nPendingShortcode.displayName = 'PendingShortcode';\n\nexport default PendingShortcode;\n","import React, { Suspense, lazy, ReactNode } from 'react';\nimport { getAgainst } from 'presentation/utils/colorway';\nimport { Layout } from 'domain/constants/layout';\n/*\n These shortcodes should not be lazy loaded in as they are already in the\n main bundle and it causes a unnecessary shimmer which makes the page feel\n less responsive\n*/\nimport { Against } from 'domain/constants/colorway';\n\nimport Alt from './Alt';\nimport Bold from './Bold';\nimport Italic from './Italic';\nimport Link from './Link';\nimport Text from './Text';\nimport Tooltip from './Tooltip';\nimport PendingShortcode from './PendingShortcode';\n\nimport { ShortcodeProps } from '.';\n\nconst Glyph = lazy(\n () =>\n import(\n /* webpackChunkName: \"shortcode-glyph\" */\n './Glyph'\n ),\n);\n\nconst Sup = lazy(\n () =>\n import(\n /* webpackChunkName: \"shortcode-sup\" */\n './Sup'\n ),\n);\n\nconst List = lazy(\n () =>\n import(\n /* webpackChunkName: \"shortcode-list\" */\n './List'\n ),\n);\n\nconst OrderedList = lazy(\n () =>\n import(\n /* webpackChunkName: \"shortcode-ordered-list\" */\n './OrderedList'\n ),\n);\n\nconst ListItem = lazy(\n () =>\n import(\n /* webpackChunkName: \"shortcode-list-item\" */\n './ListItem'\n ),\n);\n\nconst TickListItem = lazy(\n () =>\n import(\n /* webpackChunkName: \"shortcode-tick-list-item\" */\n './TickListItem'\n ),\n);\n\nconst ProductPrice = lazy(\n () =>\n import(\n /* webpackChunkName: \"shortcode-product-price\" */\n './ProductPrice'\n ),\n);\n\nconst PhoneNumber = lazy(\n () =>\n import(\n /* webpackChunkName: \"shortcode-phone-number\" */\n './PhoneNumber'\n ),\n);\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\ndeclare const i: number;\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\ndeclare const element: ShortcodeProps;\n\nexport interface ShortcodeAttributesProps {\n use?: number;\n number?: number;\n RecursiveShortcode: (props: RecursiveShortcodeProps) => JSX.Element;\n analyticskey?: string;\n goto?: string;\n label?: ReactNode;\n prices?: Array<{\n gross: number;\n net: number;\n raw: number;\n tax: number;\n }>;\n inctax?: string;\n style?: string;\n rel?: string;\n newTab?: string;\n}\nexport interface RecursiveShortcodeProps {\n elements?: Array;\n RecursiveShortcode?: (props: RecursiveShortcodeProps) => JSX.Element;\n type?: string;\n name?: string;\n layout?: Layout;\n against?: Against;\n attributes?: ShortcodeAttributesProps;\n nl2br?: boolean;\n rest?: {\n [key: string]: any;\n };\n [key: string]: any;\n}\n\nconst RecursiveShortcode = ({ elements = [], ...rest }: RecursiveShortcodeProps) => (\n <>\n {elements.map((element, index) => (\n // Temporarily allow index as key waiting for BE to add ids\n // eslint-disable-next-line react/no-array-index-key\n \n ))}\n >\n);\n\nexport interface ShortcodeOuterProps {\n against?: Against;\n code: RecursiveShortcodeProps;\n type?: string;\n name?: string;\n}\n\nconst Shortcode = ({ code, ...rest }: RecursiveShortcodeProps) => {\n let props = {\n ...rest,\n } as RecursiveShortcodeProps;\n if (typeof code === 'string' || code instanceof String) {\n props.code = code;\n } else {\n props = {\n ...props,\n ...code,\n };\n }\n\n // @ts-ignore: error when upgrading to @ux/config\n props.against = getAgainst(props.against);\n props.RecursiveShortcode = RecursiveShortcode;\n props.attributes = props?.attributes ?? ({} as ShortcodeAttributesProps);\n const Element = (props: any) => {\n const { code, type, name } = props;\n if (typeof props.code === 'string') {\n return ;\n }\n if (props.type === 'text') {\n return ;\n }\n if (type === 'element') {\n switch (name) {\n case 'list':\n if (props?.attributes?.style === 'number') {\n return ;\n }\n return
;\n case 'li':\n if (props?.attributes?.style === 'glyph') {\n return ;\n }\n return ;\n case 'i':\n return ;\n case 'b':\n return ;\n case 'alt':\n return ;\n case 'sup':\n return ;\n case 'glyph':\n return ;\n case 'tel':\n return ;\n case 'link':\n return ;\n case 'productprice':\n return ;\n case 'tooltip':\n return ;\n case 'root':\n return ;\n default:\n return null;\n }\n }\n return null;\n };\n\n return ;\n};\n\nconst ShortcodeWrapper = (props: RecursiveShortcodeProps) => (\n }>\n \n \n);\n\nShortcodeWrapper.displayName = 'Shortcode';\n\nexport default ShortcodeWrapper;\n","import Shortcode, { RecursiveShortcodeProps } from './Shortcode';\n\n// TODO: help.. please.\nexport type ShortcodeProps = RecursiveShortcodeProps;\n\nexport default Shortcode;\n","import { headingXxs, headingXs, headingS, headingXl, headingXxl, display, headingL, headingM, content } from '@ux/type-size';\nimport { useStyles } from '@team-griffin/stylr';\nimport { useTheme, gu2px } from '@ux/theme-utils';\nimport { defaultProps, withProps, omitProps } from '@team-griffin/rehook';\nimport { puree } from '@ux/pure-enhance';\nimport { withBreakpointsHook } from '@ux/responsive';\nimport { createElement } from 'react';\nimport cssSides, { Side } from '@team-griffin/css-sides';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)\r\n t[p[i]] = s[p[i]];\r\n return t;\r\n}\n\nvar mergeStyles = function mergeStyles(_a) {\n var styles = _a.styles,\n style = _a.style,\n props = __rest(_a, [\"styles\", \"style\"]);\n\n var rootStyles = (styles === null || styles === void 0 ? void 0 : styles.root) || {};\n var inlineStyles = style || {};\n return Object.assign(Object.assign({}, props), {\n style: Object.assign(Object.assign({}, rootStyles), inlineStyles)\n });\n};\n\nvar createTypographyElement = function createTypographyElement(_a) {\n var component = _a.component,\n children = _a.children,\n rest = __rest(_a, [\"component\", \"children\"]);\n\n return createElement(component, Object.assign({}, rest), children);\n};\n\nvar typographyFactory = function typographyFactory(_ref) {\n var name = _ref.name,\n defaultComponent = _ref.defaultComponent,\n headingSize = _ref.headingSize,\n stylesheet = _ref.stylesheet;\n return puree(name)(defaultProps({\n component: defaultComponent\n }), withProps(useTheme), withBreakpointsHook, withProps(function (props) {\n return stylesheet(Object.assign(Object.assign({}, props), {\n headingSize: headingSize\n }));\n }), withProps(mergeStyles), withProps(function (props) {\n // if a `depth` prop is provided, make the `` element\n if (typeof props.depth === 'number') {\n return {\n component: \"h\".concat(props.depth)\n };\n }\n }), omitProps(['theme', 'depth', 'styles', 'isMinXs', 'isMinSm', 'isMinMd', 'isMinLg', 'isMinXl']))(createTypographyElement);\n};\n\nvar stylesheet = function stylesheet(_ref) {\n var _ref$theme = _ref.theme,\n typography = _ref$theme.typography,\n spacing = _ref$theme.spacing,\n isMinSm = _ref.isMinSm,\n isMinLg = _ref.isMinLg,\n headingSize = _ref.headingSize;\n return useStyles({\n default: {\n root: Object.assign(Object.assign({}, headingSize[0]()), {\n display: 'block',\n marginTop: 0,\n marginBottom: gu2px(1, spacing),\n fontWeight: 'normal',\n fontFamily: typography.display\n })\n },\n isMinSm: {\n root: Object.assign({}, headingSize[1]())\n },\n isMinLg: {\n root: Object.assign({}, headingSize[2]())\n }\n }, [{\n isMinSm: isMinSm\n }, {\n isMinLg: isMinLg\n }]);\n};\n\nvar PreHeading01 = typographyFactory({\n name: 'PreHeading01',\n defaultComponent: 'div',\n headingSize: [headingXxs, headingXs, headingS],\n stylesheet: stylesheet\n});\nvar PreHeading02 = typographyFactory({\n name: 'PreHeading02',\n defaultComponent: 'div',\n headingSize: [headingXxs, headingXxs, headingXs],\n stylesheet: stylesheet\n});\n\nvar stylesheet$1 = function stylesheet(_ref) {\n var typography = _ref.theme.typography,\n isMinSm = _ref.isMinSm,\n isMinLg = _ref.isMinLg,\n headingSize = _ref.headingSize;\n return useStyles({\n default: {\n root: Object.assign(Object.assign(Object.assign({}, headingSize[0]()), cssSides('margin', Side.Y, 0)), {\n display: 'block',\n fontWeight: 'normal',\n fontFamily: typography.display\n })\n },\n isMinSm: {\n root: Object.assign({}, headingSize[1]())\n },\n isMinLg: {\n root: Object.assign({}, headingSize[2]())\n }\n }, [{\n isMinSm: isMinSm\n }, {\n isMinLg: isMinLg\n }]);\n};\n\nvar Heading01 = typographyFactory({\n name: 'Heading01',\n defaultComponent: 'h1',\n headingSize: [headingXl, headingXxl, display],\n stylesheet: stylesheet$1\n});\nvar Heading02 = typographyFactory({\n name: 'Heading02',\n defaultComponent: 'h2',\n headingSize: [headingL, headingXl, headingXxl],\n stylesheet: stylesheet$1\n});\nvar Heading03 = typographyFactory({\n name: 'Heading03',\n defaultComponent: 'h3',\n headingSize: [headingM, headingL, headingXl],\n stylesheet: stylesheet$1\n});\nvar Heading04 = typographyFactory({\n name: 'Heading04',\n defaultComponent: 'h4',\n headingSize: [headingS, headingM, headingL],\n stylesheet: stylesheet$1\n});\nvar Heading05 = typographyFactory({\n name: 'Heading05',\n defaultComponent: 'h5',\n headingSize: [headingXs, headingS, headingM],\n stylesheet: stylesheet$1\n});\nvar Heading06 = typographyFactory({\n name: 'Heading06',\n defaultComponent: 'h6',\n headingSize: [headingXxs, headingXs, headingS],\n stylesheet: stylesheet$1\n});\n\nvar _stylesheet = function stylesheet(_ref) {\n var _ref$theme = _ref.theme,\n typography = _ref$theme.typography,\n spacing = _ref$theme.spacing,\n gu = _ref.gu,\n isMinSm = _ref.isMinSm,\n isMinLg = _ref.isMinLg,\n headingSize = _ref.headingSize;\n return useStyles({\n default: {\n root: Object.assign(Object.assign({}, headingSize[0]()), {\n display: 'block',\n marginTop: gu2px(gu !== null && gu !== void 0 ? gu : 2, spacing),\n marginBottom: 0,\n fontWeight: 'normal',\n fontFamily: typography.display\n })\n },\n isMinSm: {\n root: Object.assign({}, headingSize[1]())\n },\n isMinLg: {\n root: Object.assign({}, headingSize[2]())\n }\n }, [{\n isMinSm: isMinSm\n }, {\n isMinLg: isMinLg\n }]);\n};\n\nvar SubHeading01 = typographyFactory({\n name: 'SubHeading01',\n defaultComponent: 'h2',\n headingSize: [headingXs, headingS, headingM],\n stylesheet: _stylesheet\n});\nvar SubHeading02 = typographyFactory({\n name: 'SubHeading02',\n defaultComponent: 'h3',\n headingSize: [headingXxs, headingXxs, headingXs],\n stylesheet: function stylesheet(props) {\n return _stylesheet(Object.assign(Object.assign({}, props), {\n gu: 1\n }));\n }\n});\n\nvar stylesheet$2 = function stylesheet(_ref) {\n var _ref$theme = _ref.theme,\n typography = _ref$theme.typography,\n spacing = _ref$theme.spacing,\n headingSize = _ref.headingSize,\n isMinSm = _ref.isMinSm,\n isMinLg = _ref.isMinLg;\n return useStyles({\n default: {\n root: Object.assign(Object.assign({}, headingSize[0]()), {\n display: 'block',\n marginTop: gu2px(1, spacing),\n marginBottom: 0,\n fontWeight: 'normal',\n fontFamily: typography.content\n })\n },\n isMinSm: {\n root: Object.assign({}, headingSize[1]())\n },\n isMinLg: {\n root: Object.assign({}, headingSize[2]())\n }\n }, [{\n isMinSm: isMinSm\n }, {\n isMinLg: isMinLg\n }]);\n};\n\nvar BodyCopy01 = typographyFactory({\n name: 'BodyCopy01',\n defaultComponent: 'p',\n headingSize: [content, content, content],\n stylesheet: stylesheet$2\n});\n\nvar index = null;\n\nexport default index;\nexport { BodyCopy01, Heading01, Heading02, Heading03, Heading04, Heading05, Heading06, PreHeading01, PreHeading02, SubHeading01, SubHeading02 };\n","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","/*\n createImageAlt({\n illustration: ?String,\n imageUrl: String,\n });\n\n Returns a relevant alt tag text from the URL path\n*/\n\nimport { isNotNilOrEmpty } from '@team-griffin/capra';\nimport * as r from 'ramda';\n\nconst hasImage = r.propSatisfies(isNotNilOrEmpty, 'imageUrl');\n\n/*\n getImageName\n From a URL like https://img1.wsimg.com/cdn/Image/All/Website/2/en-GB/ad586f1e-81a0-4a9d-a675-e266e25e965f/Christian_Jaroljmek.jpg\n return the text between the final slash and dot (Christian_Jaroljmek)\n\n If no regex match, return the string as is (this will capture illustrations)\n*/\nconst getImageName = (str: string) => {\n if (typeof str !== 'string') {\n return '';\n }\n\n const image = str.match(/\\/([^/]+?)\\.[a-zA-Z0-9]+$/);\n\n if (image && image[1]) {\n return image[1];\n }\n\n return str;\n};\n\n/*\n formatName\n Replace any underscores and hyphens with whitespace\n*/\nconst formatName = (str: string) => str.replace(/[-_]/g, ' ');\n\n// eslint-disable-next-line no-underscore-dangle\nexport const __test__ = {\n getImageName,\n formatName,\n};\n\nexport default r.ifElse(hasImage, r.pipe(r.prop('imageUrl'), getImageName, formatName), r.always(''));\n","import { BreakpointProps } from '@ux/responsive';\nimport { ImagesWithAspectRatios, ImageWithAspectRatios } from 'core/ribbons/primitives';\nimport { ImageAspectRatio } from 'domain/constants/imageAspectRatio';\nimport { Dimension } from 'domain/constants/dimension';\nimport findResponsiveItem from 'presentation/utils/findResponsiveItem';\n\n/**\n * If imagesWithAspectRatios is present in ribbon props, this should be used.\n * This array follows the existing standard of [mobile,tablet,desktop] structure.\n * Where imagesWithAspectRatios is empty/omitted, the existing imageUrl and imageAspectRatio should be used.\n */\n\ntype ImageProps = {\n imageUrl?: string;\n imageAspectRatio?: ImageAspectRatio;\n preserveDimension?: Dimension | string;\n};\n\nexport default (\n breakpoints: BreakpointProps,\n image: ImageProps,\n imagesWithAspectRatios: ImagesWithAspectRatios | undefined,\n): ImageWithAspectRatios => {\n const { imageUrl: url, imageAspectRatio, preserveDimension } = image;\n\n if (imagesWithAspectRatios != null && imagesWithAspectRatios.length > 0) {\n const activeImageWithAspectRatios = findResponsiveItem(breakpoints, imagesWithAspectRatios);\n return activeImageWithAspectRatios || {};\n }\n\n return {\n url,\n imageAspectRatio,\n preserveDimension,\n };\n};\n"],"sourceRoot":""}