{"version":3,"sources":["webpack:///./presentation/components/common/TrustpilotStars.tsx","webpack:///./presentation/components/common/Logo.tsx","webpack:///./presentation/utils/getTrustpilotUrl.js","webpack:///./presentation/components/ribbons/advocate-trustpilot/Review.tsx","webpack:///src/presentation/components/ribbons/advocate-trustpilot/Review.stylesheet.ts","webpack:///./presentation/components/ribbons/advocate-trustpilot/Reviews.tsx","webpack:///./presentation/components/ribbons/advocate-trustpilot/Reviews.stylesheet.ts","webpack:///./presentation/components/ribbons/advocate-trustpilot/AdvocateTrustpilot.tsx","webpack:///./presentation/components/ribbons/advocate-trustpilot/AdvocateTrustpilot.stylesheet.ts","webpack:///./presentation/components/ribbons/advocate-trustpilot/index.ts","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:///../node_modules/@ux/type-size/dist/es/type-size.js"],"names":["starMap","1","1.5","2","2.5","3","3.5","4","4.5","5","TrustpilotStars","rating","styles","useStyles","default","root","maxWidth","maxHeight","display","useStylesheet","loading","src","alt","style","displayName","Logo","colorway","url","Component","isNilOrEmpty","Fragment","logo","Colorway","DARK","HIGHLIGHT","PRIMARY","getLogoForColorway","href","target","getFuzzyLang","r","getLocalizedTrustPilotUrl","lang","id","AdvocateReview","stars","excerpt","byline","theme","useTheme","spacing","textAlign","height","gu2px","justifyContent","marginBottom","textContainer","content","cssSides","Side","fontStyle","color","getTitleColor","getBodyColor","component","Shortcode","against","code","AdvocateTrustpilotReviews","reviews","isMinSm","useBreakpoints","review","marginTop","justify","Justify","CENTER","xs","sm","md","lg","Review","i","AdvocateTrustpilot","layout","name","trustScore","numberOfReviews","brandConfig","useBrandConfig","trustpilotPageId","trustPilot","pageId","currentLanguage","useLocale","isMinLg","inner","flexDirection","alignItems","title","padding","reviewCount","usedForTrustScoreCalculation","Ribbon","type","Type","ADVOCATE_TRUST_PILOT","values","value","Reviews","errorBoundary","visibilitySet","Design","_defineProperty","obj","key","Object","defineProperty","enumerable","configurable","writable","stylesheet","_ref","_useStyles","side","design","gu","INNER","assign","A","T","top","left","right","bottom","B","L","R","Y","X","PaddingBox","OUTER","props","enhance","_a","children","s","e","t","p","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","length","__rest","enhance$1","getColor","Against","LIGHT","NEUTRAL","palette","primary","tertiary","Alt","RecursiveShortcode","elements","rest","Bold","fontWeight","Link","contentType","attributes","externalRoutes","useExternalRoutes","to","goto","analyticskey","size","TextButtonSize","INHERIT","rel","newTab","formatText","text","newline","formattedText","split","join","escapeShortCodes","string","reduce","prev","cur","nl2br","Text","ReactTooltip","lazy","TooltipShortcode","eventToggle","undefined","cssTheme","CallToAction","fallback","tagName","useDefaultStyles","randomWidth","Math","floor","random","PendingShortcode","width","lines","Glyph","Sup","List","OrderedList","ListItem","TickListItem","ProductPrice","PhoneNumber","map","element","index","JSON","stringify","String","getAgainst","Element","glyph","Italic","Tooltip","ShortcodeWrapper","mergeStyles","rootStyles","inlineStyles","createTypographyElement","typographyFactory","defaultComponent","headingSize","depth","concat","_ref$theme","typography","fontFamily","PreHeading01","PreHeading02","stylesheet$1","Heading01","Heading02","Heading03","Heading04","Heading05","Heading06","_stylesheet","SubHeading01","SubHeading02","BodyCopy01","_SizeMap","SMALL","MEDIUM","LARGE","_SizeMap$1","_SizeMap$2","_SizeMap$3","_SizeMap$4","_LineHeightMap","_SizeMap$5","_SizeMap$6","_SizeMap$7","fontSize","lineHeight","footnote","smallprint","SizeMap$1","headingXxl","sizing","SizeMap$2","headingXl","SizeMap$3","LineHeightMap","headingL","SizeMap$4","LineHeightMap$1","headingM","SizeMap$5","LineHeightMap$2","headingS","SizeMap$6","LineHeightMap$3","headingXs","SizeMap$7","LineHeightMap$4","headingXxs"],"mappings":";+EAAA,wBAGA,MAaMA,EAAU,CACdC,EAAG,gHACHC,IAAK,kHACLC,EAAG,gHACHC,IAAK,kHACLC,EAAG,gHACHC,IAAK,kHACLC,EAAG,gHACHC,IAAK,kHACLC,EAAG,iHAKQC,EAAkB,IAAoC,IAAnC,OAAEC,GAAiC,EACjE,MAAM,OAAEC,GA5BY,KACpBC,YAAU,CACRC,QAAS,CACPC,KAAM,CACJC,SAAU,OACVC,UAAW,OACXC,QAAS,YAsBIC,GACnB,OAAO,qBAAKC,QAAQ,OAAOC,IAAKrB,EAAQW,GAASW,IAAM,cAAaX,MAAYY,MAAOX,EAAOG,QAGhGL,EAAgBc,YAAc,kBAEfd,O,qBCrCf,0CAKA,MA+Bae,EAAO,IAAmC,IAAlC,SAAEC,EAAF,IAAYC,GAAsB,EACrD,MAAM,OAAEf,GAZY,KACpBC,YAAU,CACRC,QAAS,CACPC,KAAM,CACJG,QAAS,QACTF,SAAU,OACVC,UAAW,WAMEE,GACbS,EAAYC,YAAaF,GAAOG,WAAW,IAC3CC,EAzBoBL,KAC1B,OAAQA,GACN,KAAKM,IAASC,KACd,KAAKD,IAASE,UACd,KAAKF,IAASG,QACZ,MAbJ,mHAcE,QACE,MAbJ,sHA+BaC,CAAmBV,GAChC,OACE,cAACE,EAAD,CAAWS,KAAMV,EAAKW,OAAO,SAA7B,SACE,qBAAKlB,QAAQ,OAAOC,IAAKU,EAAMT,IAAI,aAAaC,MAAOX,EAAOG,UAKpEU,EAAKD,YAAc,OAEJC,O,qBCjDf,iFAEA,MAAMc,EAAeC,IAAOA,IAAY,SAAUA,IAAQ,KAAMA,IAAQA,IAAOA,IAAS,MAAOA,IAAS,SAKzFC,IAHmB,CAACC,EAAMC,IACvCH,IAASA,IAASA,IAAS,IAAKA,IAAU,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a53f811c1fc75d8e7.chunk.js","sourcesContent":["import React from 'react';\nimport { useStyles } from '@team-griffin/stylr';\n\nconst useStylesheet = () =>\n useStyles({\n default: {\n root: {\n maxWidth: '100%',\n maxHeight: '100%',\n display: 'block',\n },\n },\n });\n\n// I'm not worried about the repetition of the prefix here as it'll be normalised away by gzip compression\n// as a dictionary item.\nconst starMap = {\n 1: 'https://img1.wsimg.com/cdn/Image/All/AllChannelsFoS/1/en-US/4627f20d-7040-4e7f-9abe-36501b4dd2e8/1-256x48.png',\n 1.5: 'https://img1.wsimg.com/cdn/Image/All/AllChannelsFoS/1/en-US/8f0e6ed7-723f-41e5-a402-2fd90025d763/1_5-256x48.png',\n 2: 'https://img1.wsimg.com/cdn/Image/All/AllChannelsFoS/1/en-US/a68be276-2c5e-4257-92ed-bc37a6a48950/2-256x48.png',\n 2.5: 'https://img1.wsimg.com/cdn/Image/All/AllChannelsFoS/1/en-US/a4e13b3a-499a-46e3-91f2-cc8c4b95e218/2_5-256x48.png',\n 3: 'https://img1.wsimg.com/cdn/Image/All/AllChannelsFoS/1/en-US/2f119448-0f7a-4bb5-878a-2a589e768761/3-256x48.png',\n 3.5: 'https://img1.wsimg.com/cdn/Image/All/AllChannelsFoS/1/en-US/0b1ee116-1add-4097-a3ad-dbbdcb4b9e41/3_5-256x48.png',\n 4: 'https://img1.wsimg.com/cdn/Image/All/AllChannelsFoS/1/en-US/22fcec44-6e44-49db-af28-940f92b03cb0/4-256x48.png',\n 4.5: 'https://img1.wsimg.com/cdn/Image/All/AllChannelsFoS/1/en-US/bbb6dfba-fd77-4f0c-b922-ab3cdc8a39af/4_5-256x48.png',\n 5: 'https://img1.wsimg.com/cdn/Image/All/AllChannelsFoS/1/en-US/91a13237-f0a8-49a3-bbf1-d6edf5fc1b69/5-256x48.png',\n} as {\n [key: string]: string;\n};\n\nexport const TrustpilotStars = ({ rating }: { rating: string }) => {\n const { styles } = useStylesheet();\n return {`Trustpilot;\n};\n\nTrustpilotStars.displayName = 'TrustpilotStars';\n\nexport default TrustpilotStars;\n","import React, { Fragment } from 'react';\nimport { Colorway } from '@ux/theme-utils';\nimport { useStyles } from '@team-griffin/stylr';\nimport { isNilOrEmpty } from 'presentation/utils/generalUtils';\n\nconst logoOnDark =\n 'https://img1.wsimg.com/cdn/Image/All/AllChannelsFoS/1/en-US/9f2eeecc-b670-4bc1-a366-878f0de5122c/dark-288x72.png';\nconst logoOnLight =\n 'https://img1.wsimg.com/cdn/Image/All/AllChannelsFoS/1/en-US/68137afe-5794-4f19-b4aa-f8d5fd8f0215/light-288x72.png';\n\ninterface OuterProps {\n url: string;\n colorway: Colorway;\n}\nconst getLogoForColorway = (colorway: Colorway) => {\n switch (colorway) {\n case Colorway.DARK:\n case Colorway.HIGHLIGHT:\n case Colorway.PRIMARY:\n return logoOnDark;\n default:\n return logoOnLight;\n }\n};\n\nconst useStylesheet = () =>\n useStyles({\n default: {\n root: {\n display: 'block',\n maxWidth: '100%',\n maxHeight: '100%',\n },\n },\n });\n\nexport const Logo = ({ colorway, url }: OuterProps) => {\n const { styles } = useStylesheet();\n const Component = isNilOrEmpty(url) ? Fragment : 'a';\n const logo = getLogoForColorway(colorway);\n return (\n \n \"Trustpilot\"\n \n );\n};\n\nLogo.displayName = 'Logo';\n\nexport default Logo;\n","import * as r from 'ramda';\n\nconst getFuzzyLang = r.pipe(r.defaultTo('en-gb'), r.split('-'), r.head, r.when(r.equals('en'), r.always('www')));\n\nconst getLocalizedTrustPilotUrl = (lang, id) =>\n r.ifElse(r.isNil, r.always(''), r.always(`https://${getFuzzyLang(lang)}.trustpilot.com/review/${id}`))(id);\n\nexport default getLocalizedTrustPilotUrl;\n","import React from 'react';\nimport TrustpilotStars from 'components/common/TrustpilotStars';\nimport PaddingBox from '@ux/padding-box';\nimport { Heading04, BodyCopy01 } from '@ux/typography';\nimport Shortcode, { ShortcodeProps } from 'components/Shortcode';\nimport { Colorway } from '@ux/theme-utils';\n\nimport useStylesheet from './Review.stylesheet';\n\nexport interface ReviewProps {\n stars: string;\n byline: string;\n excerpt: ShortcodeProps;\n}\n\ninterface OuterProps extends ReviewProps {\n colorway: Colorway;\n}\n\nexport const AdvocateReview = ({ colorway, stars, excerpt, byline }: OuterProps) => {\n const { styles } = useStylesheet({ colorway });\n\n return (\n \n
\n \n
\n
\n \n \n \n {byline}\n
\n
\n );\n};\n\nAdvocateReview.displayName = 'AdvocateReview';\n\nexport default AdvocateReview;\n","import cssSides, { Side } from '@team-griffin/css-sides';\nimport { gu2px, useTheme, Colorway } from '@ux/theme-utils';\nimport { content } from '@ux/type-size';\nimport { getTitleColor, getBodyColor } from 'presentation/utils/colorway';\nimport { useStyles } from '@team-griffin/stylr';\n\nexport default ({ colorway }: { colorway: Colorway }) => {\n const { theme } = useTheme();\n const { spacing } = theme;\n\n return useStyles(\n {\n default: {\n root: {\n textAlign: 'center',\n },\n stars: {\n height: gu2px(3, spacing),\n display: 'flex',\n justifyContent: 'center',\n marginBottom: gu2px(2, spacing),\n },\n textContainer: {\n ...content(),\n ...cssSides('margin', Side.A, 0),\n ...cssSides('padding', Side.A, 0),\n },\n excerpt: {\n fontStyle: 'normal',\n color: getTitleColor(theme, colorway),\n },\n byline: {\n color: getBodyColor(theme, colorway),\n },\n },\n },\n [{ colorway }],\n );\n};\n","import React from 'react';\nimport { Row, Column, Justify } from '@ux/grid';\nimport { Colorway } from 'domain/constants/colorway';\n\nimport useStylesheet from './Reviews.stylesheet';\nimport Review, { ReviewProps } from './Review';\n\ninterface OuterProps {\n colorway: Colorway;\n reviews: Array;\n}\n\ndeclare const i: number;\ndeclare const review: ReviewProps;\n\nexport const AdvocateTrustpilotReviews = ({ colorway, reviews }: OuterProps) => {\n const { styles } = useStylesheet();\n return (\n \n \n \n
\n \n
\n
\n
\n
\n );\n};\n\nAdvocateTrustpilotReviews.displayName = 'AdvocateTrustpilotReviews';\n\nexport default AdvocateTrustpilotReviews;\n","import { useStyles } from '@team-griffin/stylr';\nimport { gu2px, useTheme } from '@ux/theme-utils';\nimport { useBreakpoints } from '@ux/responsive';\n\nexport default () => {\n const {\n theme: { spacing },\n } = useTheme();\n const { isMinSm } = useBreakpoints();\n return useStyles(\n {\n default: {\n review: {\n marginTop: gu2px(1, spacing),\n },\n },\n\n isMinSm: {\n review: {\n marginTop: gu2px(2, spacing),\n },\n },\n },\n [{ isMinSm }],\n );\n};\n","import React, { ComponentType } from 'react';\nimport Logo from 'components/common/Logo';\nimport TrustpilotStars from 'components/common/TrustpilotStars';\nimport { FormattedMessage, FormattedNumber } from 'react-intl';\nimport { Container } from '@ux/grid';\nimport PaddingBox from '@ux/padding-box';\nimport { Heading06 } from '@ux/typography';\nimport errorBoundary from 'presentation/hocs/errorBoundary';\nimport getLocalizedTrustPilotUrl from 'presentation/utils/getTrustpilotUrl';\nimport { RibbonProps, Type } from 'domain/constants/ribbons';\nimport visibilitySet from 'presentation/hocs/visibilitySet';\nimport { useBrandConfig, useLocale } from '@ux/whitelabel';\n\nimport { ReviewProps } from './Review';\nimport useStylesheet from './AdvocateTrustpilot.stylesheet';\nimport Ribbon from '../Ribbon';\nimport Reviews from './Reviews';\n\nexport interface OuterProps extends RibbonProps {\n numberOfReviews?: {\n total: number;\n usedForTrustScoreCalculation: number;\n oneStar: number;\n twoStars: number;\n threeStars: number;\n fourStars: number;\n fiveStars: number;\n };\n stars: string;\n trustScore: number;\n reviews: Array;\n}\n\nexport const AdvocateTrustpilot = ({\n id,\n colorway,\n loading,\n layout,\n name,\n stars,\n trustScore,\n reviews,\n numberOfReviews,\n}: OuterProps) => {\n const brandConfig = useBrandConfig();\n const trustpilotPageId = brandConfig?.trustPilot?.pageId;\n const currentLanguage = useLocale();\n const { styles } = useStylesheet({ colorway });\n const url = getLocalizedTrustPilotUrl(currentLanguage, trustpilotPageId);\n const reviewCount = numberOfReviews?.usedForTrustScoreCalculation ?? null;\n return (\n \n \n \n
\n \n
\n
\n \n
\n \n ,\n reviewCount: (\n \n ),\n }}\n />\n \n
\n\n \n
\n
\n );\n};\n\nAdvocateTrustpilot.displayName = 'AdvocateTrustpilot';\n\nexport default errorBoundary(visibilitySet(AdvocateTrustpilot)) as ComponentType;\n","import { Colorway, gu2px, useTheme } from '@ux/theme-utils';\nimport { getTitleColor } from 'presentation/utils/colorway';\nimport { useStyles } from '@team-griffin/stylr';\nimport { useBreakpoints } from '@ux/responsive';\n\nexport default ({ colorway }: { colorway: Colorway }) => {\n const { isMinSm, isMinLg } = useBreakpoints();\n const { theme } = useTheme();\n const { spacing } = theme;\n\n return useStyles(\n {\n default: {\n inner: {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n },\n logo: {\n height: gu2px(4, spacing),\n marginBottom: gu2px(1, spacing),\n textAlign: 'center',\n },\n stars: {\n height: gu2px(3, spacing),\n marginBottom: gu2px(2, spacing),\n textAlign: 'center',\n },\n title: {\n color: getTitleColor(theme, colorway),\n textAlign: 'center',\n },\n },\n\n isMinLg: {\n logo: {\n height: gu2px(4, spacing),\n },\n stars: {\n height: gu2px(4, spacing),\n },\n reviews: {\n padding: 0,\n },\n },\n },\n [{ isMinSm }, { isMinLg }],\n );\n};\n","import AdvocateTrustpilot from './AdvocateTrustpilot';\n\nexport default AdvocateTrustpilot;\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","import { useTheme, TypographySizing } from '@ux/theme-utils';\nimport px2em from '@ux/px2em';\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 _SizeMap;\nvar SizeMap = (_SizeMap = {}, _defineProperty(_SizeMap, TypographySizing.SMALL, 48), _defineProperty(_SizeMap, TypographySizing.MEDIUM, 55), _defineProperty(_SizeMap, TypographySizing.LARGE, 63), _SizeMap);\nvar display = (function () {\n var _useTheme = useTheme(),\n theme = _useTheme.theme;\n\n var size = SizeMap[theme.typography.sizing] || 55;\n return {\n fontSize: px2em(size),\n lineHeight: '1.14'\n };\n});\n\n// content is the same on any size scale\nvar content = (function () {\n return {\n fontSize: px2em(16),\n lineHeight: '1.5'\n };\n});\n\n// footnote is the same on any size scale\nvar footnote = (function () {\n return {\n fontSize: px2em(14),\n lineHeight: '1.5'\n };\n});\n\n// smallprint is the same on any size scale\nvar smallprint = (function () {\n return {\n fontSize: px2em(12),\n lineHeight: '1.5'\n };\n});\n\nvar _SizeMap$1;\nvar SizeMap$1 = (_SizeMap$1 = {}, _defineProperty(_SizeMap$1, TypographySizing.SMALL, 32), _defineProperty(_SizeMap$1, TypographySizing.MEDIUM, 36), _defineProperty(_SizeMap$1, TypographySizing.LARGE, 42), _SizeMap$1);\nvar headingXxl = (function () {\n var _useTheme = useTheme(),\n theme = _useTheme.theme;\n\n var size = SizeMap$1[theme.typography.sizing] || 36;\n return {\n fontSize: px2em(size),\n lineHeight: '1.2'\n };\n});\n\nvar _SizeMap$2;\nvar SizeMap$2 = (_SizeMap$2 = {}, _defineProperty(_SizeMap$2, TypographySizing.SMALL, 28), _defineProperty(_SizeMap$2, TypographySizing.MEDIUM, 32), _defineProperty(_SizeMap$2, TypographySizing.LARGE, 36), _SizeMap$2);\nvar headingXl = (function () {\n var _useTheme = useTheme(),\n theme = _useTheme.theme;\n\n var size = SizeMap$2[theme.typography.sizing] || 32;\n return {\n fontSize: px2em(size),\n lineHeight: '1.2'\n };\n});\n\nvar _SizeMap$3;\nvar SizeMap$3 = (_SizeMap$3 = {}, _defineProperty(_SizeMap$3, TypographySizing.SMALL, 24), _defineProperty(_SizeMap$3, TypographySizing.MEDIUM, 28), _defineProperty(_SizeMap$3, TypographySizing.LARGE, 32), _SizeMap$3);\n\nvar LineHeightMap = _defineProperty({}, TypographySizing.SMALL, '1.25');\n\nvar headingL = (function () {\n var _useTheme = useTheme(),\n theme = _useTheme.theme;\n\n var size = SizeMap$3[theme.typography.sizing] || 28;\n var height = LineHeightMap[theme.typography.sizing] || '1.2';\n return {\n fontSize: px2em(size),\n lineHeight: height\n };\n});\n\nvar _SizeMap$4, _LineHeightMap;\nvar SizeMap$4 = (_SizeMap$4 = {}, _defineProperty(_SizeMap$4, TypographySizing.SMALL, 21), _defineProperty(_SizeMap$4, TypographySizing.MEDIUM, 24), _defineProperty(_SizeMap$4, TypographySizing.LARGE, 28), _SizeMap$4);\nvar LineHeightMap$1 = (_LineHeightMap = {}, _defineProperty(_LineHeightMap, TypographySizing.SMALL, '1.3'), _defineProperty(_LineHeightMap, TypographySizing.MEDIUM, '1.25'), _defineProperty(_LineHeightMap, TypographySizing.LARGE, '1.2'), _LineHeightMap);\nvar headingM = (function () {\n var _useTheme = useTheme(),\n theme = _useTheme.theme;\n\n var size = SizeMap$4[theme.typography.sizing] || 24;\n var height = LineHeightMap$1[theme.typography.sizing] || '1.25';\n return {\n fontSize: px2em(size),\n lineHeight: height\n };\n});\n\nvar _SizeMap$5;\nvar SizeMap$5 = (_SizeMap$5 = {}, _defineProperty(_SizeMap$5, TypographySizing.SMALL, 18), _defineProperty(_SizeMap$5, TypographySizing.MEDIUM, 21), _defineProperty(_SizeMap$5, TypographySizing.LARGE, 24), _SizeMap$5);\n\nvar LineHeightMap$2 = _defineProperty({}, TypographySizing.LARGE, '1.25');\n\nvar headingS = (function () {\n var _useTheme = useTheme(),\n theme = _useTheme.theme;\n\n var size = SizeMap$5[theme.typography.sizing] || 21;\n var height = LineHeightMap$2[theme.typography.sizing] || '1.3';\n return {\n fontSize: px2em(size),\n lineHeight: height\n };\n});\n\nvar _SizeMap$6;\nvar SizeMap$6 = (_SizeMap$6 = {}, _defineProperty(_SizeMap$6, TypographySizing.SMALL, 16), _defineProperty(_SizeMap$6, TypographySizing.MEDIUM, 18), _defineProperty(_SizeMap$6, TypographySizing.LARGE, 21), _SizeMap$6);\n\nvar LineHeightMap$3 = _defineProperty({}, TypographySizing.SMALL, '1.5');\n\nvar headingXs = (function () {\n var _useTheme = useTheme(),\n theme = _useTheme.theme;\n\n var size = SizeMap$6[theme.typography.sizing] || 18;\n var height = LineHeightMap$3[theme.typography.sizing] || '1.3';\n return {\n fontSize: px2em(size),\n lineHeight: height\n };\n});\n\nvar _SizeMap$7;\nvar SizeMap$7 = (_SizeMap$7 = {}, _defineProperty(_SizeMap$7, TypographySizing.SMALL, 14), _defineProperty(_SizeMap$7, TypographySizing.MEDIUM, 16), _defineProperty(_SizeMap$7, TypographySizing.LARGE, 18), _SizeMap$7);\n\nvar LineHeightMap$4 = _defineProperty({}, TypographySizing.LARGE, '1.3');\n\nvar headingXxs = (function () {\n var _useTheme = useTheme(),\n theme = _useTheme.theme;\n\n var size = SizeMap$7[theme.typography.sizing] || 16;\n var height = LineHeightMap$4[theme.typography.sizing] || '1.5';\n return {\n fontSize: px2em(size),\n lineHeight: height\n };\n});\n\nexport { content, display, footnote, headingL, headingM, headingS, headingXl, headingXs, headingXxl, headingXxs, smallprint };\n"],"sourceRoot":""}