{"version":3,"sources":["webpack:///./presentation/components/ribbons/info/Info.tsx","webpack:///./presentation/components/ribbons/info/Info.stylesheet.ts","webpack:///./presentation/components/ribbons/info/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:///./domain/constants/alignment.ts"],"names":["Info","id","loading","name","title","subtitle","ctas","colorway","hBaseline","layout","hasTitle","isNilOrEmpty","hasSubtitle","hasCta","isMinSm","useBreakpoints","styles","theme","useTheme","spacing","alignment","findResponsiveItem","alignmentMobile","Alignment","STARTING","alignmentTablet","useStyles","default","root","textAlign","display","width","color","getTitleColor","getBodyColor","overflow","marginTop","gu2px","cta","marginRight","modifier","CENTER","justifyContent","useStylesheet","Ribbon","type","Type","INFO","style","depth","Shortcode","against","code","component","map","i","CallToAction","getAgainst","ribbonId","index","block","concat","String","displayName","errorBoundary","visibilitySet","Design","Side","_defineProperty","obj","key","value","Object","defineProperty","enumerable","configurable","writable","stylesheet","_ref","_useStyles","side","design","isMinLg","gu","INNER","padding","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","DARK","tertiary","Alt","RecursiveShortcode","elements","rest","Bold","fontWeight","fontStyle","Link","contentType","attributes","externalRoutes","useExternalRoutes","to","goto","analyticskey","size","TextButtonSize","INHERIT","rel","target","newTab","formatText","text","newline","formattedText","split","join","escapeShortCodes","string","reduce","prev","cur","nl2br","Text","ReactTooltip","lazy","TooltipShortcode","eventToggle","undefined","cssTheme","fallback","tagName","useDefaultStyles","content","maxWidth","randomWidth","Math","floor","random","PendingShortcode","lines","Glyph","Sup","List","OrderedList","ListItem","TickListItem","ProductPrice","PhoneNumber","element","JSON","stringify","Element","glyph","Italic","Tooltip","ShortcodeWrapper","mergeStyles","rootStyles","inlineStyles","createTypographyElement","typographyFactory","defaultComponent","headingSize","_ref$theme","typography","marginBottom","fontFamily","PreHeading01","PreHeading02","stylesheet$1","Heading01","Heading02","Heading03","Heading04","Heading05","Heading06","_stylesheet","SubHeading01","SubHeading02","BodyCopy01"],"mappings":";uPAuBO,MAAMA,EAAO,IAA+F,IAA9F,GAAEC,EAAF,QAAMC,EAAN,KAAeC,EAAf,MAAqBC,EAArB,SAA4BC,EAA5B,KAAsCC,EAAtC,SAA4CC,EAA5C,UAAsDC,EAAY,EAAlE,OAAqEC,GAAyB,EACjH,MAAMC,GAAYC,YAAaP,GACzBQ,GAAeD,YAAaN,GAC5BQ,GAAUF,YAAaL,IACvB,QAAEQ,GAAYC,eACd,OAAEC,GCnBK,KAA6F,cAA5F,OAAEP,EAAF,SAAUF,EAAV,QAAoBO,GAAwE,EAC1G,MAAM,MAAEG,GAAUC,eACZ,QAAEC,GAAYF,EAEdG,EAAYC,YAAmBN,cAAkB,UACrDN,aADqD,EACrDA,EAAQa,iBAD6C,EAC1BC,IAAUC,SADgB,SAErDf,aAFqD,EAErDA,EAAQgB,iBAF6C,EAE1BF,IAAUC,SAFgB,SAGrDf,aAHqD,EAGrDA,EAAQW,WAH6C,EAGhCG,IAAUC,WAGjC,OAAOE,YACL,CACEC,QAAS,CACPC,KAAM,CACJC,UAAW,OACXC,QAAS,QACTC,MAAO,QAET3B,MAAO,CACL4B,MAAOC,YAAchB,EAAOV,IAE9BF,SAAU,CACR2B,MAAOE,YAAajB,EAAOV,IAE7BD,KAAM,CACJ6B,SAAU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I,IAEVE,EAAelB,EAAkB,CACnChM,KAAM,eACNiM,iBAAkB,KAClBC,YAAa,CAAC,IAAY,IAAY,KACtCxH,WAAY,SAAoBuB,GAC9B,OAAO+G,EAAY3I,OAAOc,OAAOd,OAAOc,OAAO,GAAIc,GAAQ,CACzDjB,GAAI,QAmCNmI,EAAanB,EAAkB,CACjChM,KAAM,aACNiM,iBAAkB,IAClBC,YAAa,CAAC,IAAS,IAAS,KAChCxH,WAlCiB,SAAoBC,GACrC,IAAIwH,EAAaxH,EAAK7D,MAClBsL,EAAaD,EAAWC,WACxBpL,EAAUmL,EAAWnL,QACrBkL,EAAcvH,EAAKuH,YACnBvL,EAAUgE,EAAKhE,QACfoE,EAAUJ,EAAKI,QACnB,OAAO,YAAU,CACfvD,QAAS,CACPC,KAAM4C,OAAOc,OAAOd,OAAOc,OAAO,GAAI+G,EAAY,MAAO,CACvDvK,QAAS,QACTM,UAAW,YAAM,EAAGjB,GACpBqL,aAAc,EACdvE,WAAY,SACZwE,WAAYF,EAAWhC,WAG3BzJ,QAAS,CACPc,KAAM4C,OAAOc,OAAO,GAAI+G,EAAY,OAEtCnH,QAAS,CACPtD,KAAM4C,OAAOc,OAAO,GAAI+G,EAAY,QAErC,CAAC,CACFvL,QAASA,GACR,CACDoE,QAASA,S,oBC/PN,IAAK3D,EAAZ,kC,SAAYA,K,oBAAAA,E,iBAAAA,M","file":"pex-static/90/42.dee15ff1ecae3628c80b.chunk.js","sourcesContent":["import React, { ComponentType } from 'react';\nimport { Container } from '@ux/grid';\nimport PaddingBox from '@ux/padding-box';\nimport { Heading02, SubHeading01 } from '@ux/typography';\nimport Shortcode, { ShortcodeProps } from 'components/Shortcode';\nimport Ribbon from 'components/ribbons/Ribbon';\nimport CallToAction from 'components/common/CallToAction';\nimport { useBreakpoints } from '@ux/responsive';\nimport visibilitySet from 'presentation/hocs/visibilitySet';\nimport errorBoundary from 'presentation/hocs/errorBoundary';\nimport { getAgainst } from 'presentation/utils/colorway';\nimport { RibbonProps, Type } from 'domain/constants/ribbons';\nimport { CTA } from 'core/ribbons/cta';\nimport { isNilOrEmpty } from 'presentation/utils/generalUtils';\n\nimport useStylesheet from './Info.stylesheet';\n\ninterface OuterProps extends RibbonProps {\n title: ShortcodeProps;\n subtitle: ShortcodeProps;\n ctas: Array;\n}\n\nexport const Info = ({ id, loading, name, title, subtitle, ctas, colorway, hBaseline = 1, layout }: OuterProps) => {\n const hasTitle = !isNilOrEmpty(title);\n const hasSubtitle = !isNilOrEmpty(subtitle);\n const hasCta = !isNilOrEmpty(ctas);\n const { isMinSm } = useBreakpoints();\n const { styles } = useStylesheet({\n isMinSm,\n colorway,\n layout,\n });\n return (\n \n
\n \n \n {hasTitle && (\n \n \n \n )}\n {hasSubtitle && (\n \n \n \n )}\n {hasCta && (\n
\n {ctas.map((cta, i) => (\n
\n \n
\n ))}\n
\n )}\n
\n
\n
\n
\n );\n};\n\nInfo.displayName = 'Info';\n\nexport default errorBoundary(visibilitySet(Info)) as ComponentType;\n","import { useStyles } from '@team-griffin/stylr';\nimport { modifier } from '@ux/style-utils';\nimport { getTitleColor, getBodyColor } from 'presentation/utils/colorway';\nimport { gu2px, useTheme, Colorway } from '@ux/theme-utils';\nimport { Alignment } from 'domain/constants/alignment';\nimport { Layout } from 'domain/constants/layout';\nimport { useBreakpoints } from '@ux/responsive';\nimport findResponsiveItem from 'presentation/utils/findResponsiveItem';\n\nexport default ({ layout, colorway, isMinSm }: { layout: Layout; colorway: Colorway; isMinSm: boolean }) => {\n const { theme } = useTheme();\n const { spacing } = theme;\n\n const alignment = findResponsiveItem(useBreakpoints(), [\n layout?.alignmentMobile ?? Alignment.STARTING,\n layout?.alignmentTablet ?? Alignment.STARTING,\n layout?.alignment ?? Alignment.STARTING,\n ]);\n\n return useStyles(\n {\n default: {\n root: {\n textAlign: 'left',\n display: 'block',\n width: '100%',\n },\n title: {\n color: getTitleColor(theme, colorway),\n },\n subtitle: {\n color: getBodyColor(theme, colorway),\n },\n ctas: {\n overflow: 'hidden',\n marginTop: gu2px(2, spacing),\n },\n cta: {\n marginTop: gu2px(1, spacing),\n },\n },\n\n isMinSm: {\n ctas: {\n display: 'flex',\n },\n cta: {\n marginRight: gu2px(1, spacing),\n },\n },\n\n [modifier('alignment', Alignment.CENTER)]: {\n root: {\n textAlign: 'center',\n },\n ctas: {\n justifyContent: 'center',\n },\n },\n },\n [{ isMinSm }, { alignment }],\n );\n};\n","import Info from './Info';\n\nexport default Info;\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 enum Alignment {\n STARTING = 'STARTING',\n CENTER = 'CENTER',\n}\n\nexport default null;\n"],"sourceRoot":""}