{"version":3,"sources":["webpack:///./presentation/hooks/withUrlComponent.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","webpack:///../node_modules/ramda/es/zipWith.js"],"names":["withUrlComponent","withProps","props","r","Component","isInternalUrl","url","NavLink","to","isHashUrl","href","Design","Side","_defineProperty","obj","key","value","Object","defineProperty","enumerable","configurable","writable","stylesheet","_ref","_useStyles","style","side","design","isMinLg","spacing","theme","gu","INNER","padding","default","root","assign","A","T","top","left","right","bottom","B","L","R","Y","X","PaddingBox","component","OUTER","styles","enhance","_a","children","s","e","t","p","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","__rest","enhance$1","getColor","against","Against","LIGHT","NEUTRAL","palette","primary","DARK","tertiary","Alt","RecursiveShortcode","elements","rest","useTheme","color","displayName","Bold","fontWeight","fontStyle","Link","contentType","attributes","externalRoutes","useExternalRoutes","goto","id","analyticskey","size","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","maxWidth","randomWidth","Math","floor","random","PendingShortcode","code","display","width","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","_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","height","SizeMap$4","LineHeightMap$1","headingM","SizeMap$5","LineHeightMap$2","headingS","SizeMap$6","LineHeightMap$3","headingXs","SizeMap$7","LineHeightMap$4","headingXxs","zipWith","fn","a","b","rv","idx","len","min"],"mappings":";8EAAA,0FAeA,MAAMA,EAAmBC,oBAAWC,GAClCC,IACEA,IACEA,IAAO,OAEPA,IAAO,CAAC,SAAU,SAEpBA,IAAO,CACL,CACEA,IACA,KAAM,CACJC,UAAW,SAGf,CACEC,IACCC,IAAD,CACEF,UAAWG,IACXC,GAAIF,KAGR,CACEG,IACCH,IAAD,CACEF,UAAWG,IACXC,GAAIF,KAGR,CACEH,IACCG,IAAD,CACEF,UAAW,IACXM,KAAMJ,OA/BdH,CAoCED,IAGWF,O,oBCvDf,sCAkDIW,EAOAC,EAzDJ,oEAmCA,SAASC,EAAgBC,EAAKC,EAAKC,GAYjC,OAXID,KAAOD,EACTG,OAAOC,eAAeJ,EAAKC,EAAK,CAC9BC,MAAOA,EACPG,YAAY,EACZC,cAAc,EACdC,UAAU,IAGZP,EAAIC,GAAOC,EAGNF,GAKT,SAAWH,GACTA,EAAc,MAAI,QAClBA,EAAc,MAAI,QAFpB,CAGGA,IAAWA,EAAS,KAIvB,SAAWC,GACTA,EAAQ,EAAI,MACZA,EAAQ,EAAI,IACZA,EAAQ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IAAIC,EAAK,GACLC,EAAM,EACNC,EAAMtG,KAAKuG,IAAIL,EAAEjK,OAAQkK,EAAElK,QAExBoK,EAAMC,GACXF,EAAGC,GAAOJ,EAAGC,EAAEG,GAAMF,EAAEE,IACvBA,GAAO,EAGT,OAAOD,KAGM","file":"pex-static/90/7.c9749fff0071de3e4ec2.chunk.js","sourcesContent":["import * as r from 'ramda';\nimport { withProps } from '@team-griffin/rehook';\nimport { isInternalUrl, isHashUrl } from 'domain/url';\nimport { NavLink } from 'react-router-dom';\n\ninterface AnyProps {\n url?: string;\n action?: {\n url?: string;\n [key: string]: any;\n };\n [key: string]: any;\n}\n\nexport type UrlComponentType = typeof NavLink | 'a' | 'div';\nconst withUrlComponent = withProps((props: AnyProps) =>\n r.pipe(\n r.either(\n r.prop('url'),\n // @ts-ignore: error when upgrading to @ux/config\n r.path(['action', 'url']),\n ),\n r.cond([\n [\n r.isNil,\n () => ({\n Component: 'div',\n }),\n ],\n [\n isInternalUrl,\n (url) => ({\n Component: NavLink,\n to: url,\n }),\n ],\n [\n isHashUrl,\n (url) => ({\n Component: NavLink,\n to: url,\n }),\n ],\n [\n r.T,\n (url) => ({\n Component: 'a',\n href: url,\n }),\n ],\n ]),\n // @ts-ignore: error after upgrading eslint config. Please replace with relevant comment\n )(props),\n);\n\nexport default withUrlComponent;\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","import _curry3 from \"./internal/_curry3.js\";\n/**\n * Creates a new list out of the two supplied by applying the function to each\n * equally-positioned pair in the lists. The returned list is truncated to the\n * length of the shorter of the two input lists.\n *\n * @function\n * @memberOf R\n * @since v0.1.0\n * @category List\n * @sig ((a, b) -> c) -> [a] -> [b] -> [c]\n * @param {Function} fn The function used to combine the two elements into one value.\n * @param {Array} list1 The first array to consider.\n * @param {Array} list2 The second array to consider.\n * @return {Array} The list made by combining same-indexed elements of `list1` and `list2`\n * using `fn`.\n * @example\n *\n * const f = (x, y) => {\n * // ...\n * };\n * R.zipWith(f, [1, 2, 3], ['a', 'b', 'c']);\n * //=> [f(1, 'a'), f(2, 'b'), f(3, 'c')]\n * @symb R.zipWith(fn, [a, b, c], [d, e, f]) = [fn(a, d), fn(b, e), fn(c, f)]\n */\n\nvar zipWith =\n/*#__PURE__*/\n_curry3(function zipWith(fn, a, b) {\n var rv = [];\n var idx = 0;\n var len = Math.min(a.length, b.length);\n\n while (idx < len) {\n rv[idx] = fn(a[idx], b[idx]);\n idx += 1;\n }\n\n return rv;\n});\n\nexport default zipWith;"],"sourceRoot":""}