{"version":3,"sources":["webpack:///./presentation/components/ribbons/table/Cell.tsx","webpack:///./presentation/components/ribbons/table/Cell.stylesheet.ts","webpack:///./presentation/components/ribbons/table/CompactGroup.tsx","webpack:///src/presentation/components/ribbons/table/CompactGroup.stylesheet.ts","webpack:///./presentation/components/ribbons/table/CompactTableSection.tsx","webpack:///src/presentation/components/ribbons/table/CompactTableSection.stylesheet.ts","webpack:///./presentation/components/ribbons/table/CompactTable.tsx","webpack:///src/presentation/components/ribbons/table/CompactTable.stylesheet.ts","webpack:///./presentation/components/ribbons/table/WideCell.tsx","webpack:///src/presentation/components/ribbons/table/WideCell.stylesheet.ts","webpack:///./presentation/components/ribbons/table/WideTableRow.tsx","webpack:///src/presentation/components/ribbons/table/WideTableRow.stylesheet.ts","webpack:///./presentation/components/ribbons/table/WideTable.tsx","webpack:///src/presentation/components/ribbons/table/WideTable.stylesheet.ts","webpack:///./presentation/components/ribbons/table/Table.tsx","webpack:///./presentation/components/ribbons/table/index.ts","webpack:///./presentation/utils/ribbonPadding.ts","webpack:///../node_modules/@ux/text-button/dist/es/text-button.js","webpack:///src/presentation/hocs/errorBoundary.tsx","webpack:///./presentation/hocs/withRibbonImpression.ts","webpack:///./presentation/utils/ribbonWidth.ts","webpack:///./presentation/hocs/deepLink.tsx","webpack:///./presentation/components/ribbons/Ribbon/Ribbon.tsx","webpack:///./presentation/components/ribbons/Ribbon/ConnectedRibbon.ts","webpack:///./presentation/components/ribbons/Ribbon/index.ts","webpack:///./presentation/utils/getBreakpoints.ts","webpack:///../node_modules/@ux/typography/dist/es/typography.js","webpack:///./presentation/components/Shortcode/PendingShortcode.tsx","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/Shortcode.tsx","webpack:///./presentation/components/Shortcode/index.ts","webpack:///./presentation/hocs/visibilitySet.tsx","webpack:///./domain/constants/alignment.ts","webpack:///../node_modules/@ux/panel/dist/es/panel.js"],"names":["PureCell","colorway","cell","styles","useStyles","default","root","textAlign","centered","layout","alignment","Alignment","CENTER","useStylesheet","style","Boolean","Shortcode","against","code","body","displayName","PureCompactGroup","cells","headCell","first","last","theme","useTheme","typography","group","longhand","width","color","opacify","palette","cssSides","Side","gu2px","theadCell","fontWeight","content","firstChild","borderTop","lastChild","component","Cell","PureCompactTable","head","rows","tableFirst","spacing","table","backgroundColor","secondary","paddingTop","paddingBottom","marginBottom","borderTopWidth","CompactGroup","j","key","length","flat","CompactTableSection","i","PureWideCell","isMinLg","useBreakpoints","paddingLeft","paddingRight","firstChildLg","lastChildLg","PureWideTableRow","row","isOdd","isLast","tbodyRow","display","grey12","flex","flexBasis","borderBottomWidth","isMinLgAndLast","WideCell","n","PureWideTable","hBaseline","curvature","theadRow","tCellCenter","depth","WideTableRow","PureTable","id","loading","borderless","Colorway","PRIMARY","PRIMARY_GRADIENT","HIGHLIGHT","includes","isMinMd","Ribbon","type","border","WideTable","CompactTable","visibilitySet","errorBoundary","Table","isMinSm","flush","r","shrinkLeading","shrinkTrailing","getPaddingSize","shrinkSide","isFlush","leading","Flush","LEADING","trailing","TRAILING","Size","Against","ContentType","_defineProperty","obj","value","Object","defineProperty","enumerable","configurable","writable","enhance","hooks","disabled","block","caps","size","MD","contentType","DEFAULT","_ref","_useStyles","hover","active","fill","LIGHT","NEUTRAL","DARK","tertiary","primaryContrast","PRIMARY_FADED","highlightContrast","HIGHLIGHT_FADED","highlight","assign","A","fontFamily","lineHeight","outline","cursor","textDecoration","transition","inner","opacity","borderBottomStyle","textTransform","SM","fontSize","LG","INHERIT","PHONE_NUMBER","TextButton","_a","children","domProps","s","e","t","p","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","__rest","createElement","stylesheet","getBackgroundColor","getTitleColor","ribbonPadding","ErrorBoundary","compose","withState","lifecycle","componentDidCatch","this","withProps","hooksA","pipe","mapProps","props","selector","useMemo","getRibbonAnalytics","analytics","useSelector","dispatch","useDispatch","actions","bindActionCreators","sendImpression","withHandlers","onImpression","name","ribbonName","ribbonType","hooksB","isFullyInViewport","stopWatcher","useEffect","pureEnhance","hocs","mapPropsHoc","branch","Watch","deepLink","withRouter","componentDidMount","location","hash","scrollWhenReady","animationComplete","setTimeout","scroller","scrollTo","duration","delay","smooth","WrappedComponent","mapFit","fit","Fit","FULLSCREEN","minHeight","FILL","AUTO","height","isFinite","targetRef","useRef","withBreakpointsHook","duoLayout","activeFit","findResponsiveItem","getBreakpoints","padding","duoLayoutFlex","duoRibbonWidth","position","flexDirection","percentage","ribbon","modifier","backgroundImage","primary","primaryGradient","ref","withRibbonImpression","mergeStyles","createHeading","headingSize","Number","concat","Y","Heading01","Heading02","Heading03","Heading04","Heading05","Heading06","stylesheet$1","_ref$theme","gu","marginTop","SubHeading01","SubHeading02","stylesheet$2","PreHeading01","PreHeading02","BodyCopy01","randomWidth","Math","floor","random","PendingShortcode","lines","elements","getColor","Alt","RecursiveShortcode","rest","Bold","fontStyle","Link","attributes","externalRoutes","useAppConfig","to","goto","analyticskey","TextButtonSize","rel","target","newTab","formatText","text","newline","formattedText","split","join","escapeShortCodes","string","reduce","prev","cur","nl2br","Text","ReactTooltip","lazy","TooltipShortcode","eventToggle","cssTheme","CallToAction","fallback","tagName","useDefaultStyles","maxWidth","Glyph","Sup","List","OrderedList","ListItem","TickListItem","ProductPrice","PhoneNumber","map","element","JSON","stringify","getAgainst","Element","glyph","Italic","Tooltip","ShortcodeWrapper","BaseComponent","_curvatureMap","Kind","_curvatureMap$1","roundAllBorders","borderRadius","topLeftRadius","topRightRadius","bottomLeftRadius","bottomRightRadius","curvatureMap","OFF","WEAK","STRONG","Panel","radius","grey10","overflow","borderWidth","getPanelColorway","kind","grey04","borderColor","ALERT","red01","WARNING","yellow01","grey02","getBorderColor","curvatureMap$1","enhance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EAAMzW,EAASiB,KAO9CiW,GAAwCrQ,EAAtB2O,EAAkB,GAAqC,IAAUQ,IAAK,GAAInP,EAAgB2O,EAAiB,IAAUS,KAAM,KAAOpP,EAAgB2O,EAAiB,IAAUU,OAAQ,GAAIV,GA0B/L,YAAM,aAAN,CAAoB,uBAAa,CAC/C3V,MAAO,GACP4W,KAAMlB,EAAKvQ,QACXhF,QAAS,IAASmI,QAChB,qBAAU,SAAUuD,GACtB,OA9BiB,SAAW5D,GAC5B,IAAI2O,EAAO3O,EAAK2O,KACZzW,EAAU8H,EAAK9H,QACfH,EAAQiI,EAAKjI,MAGbY,EADY,cACMA,MAElBQ,EAAUR,EAAMQ,QAChBqD,EAAY7D,EAAM6D,UAClBrC,EAAUxB,EAAMwB,QAChBmU,EAAS,YAAMc,EAAe5S,GAAYrC,GAC1CjD,EAAWwX,EAAiBC,EAAMzW,EAASiB,GAC/C,OAAO,YAAU,CACf7B,QAAS,CACPC,KAAM2H,OAAO4B,OAAO5B,OAAO4B,OAAO5B,OAAO4B,OAAO5B,OAAO4B,OAAO5B,OAAO4B,OAAO,GAAI,YAAS,SAAU,CACjG9H,MAAO,EACPjB,MAAO,WACJ4V,EAAgBW,IAAU,CAC7BE,SAAU,WACRtX,GAAWa,MAUZ6Q,CAAahF,MAWLyL,EARI,SAAwBrP,GAC3C,IAAIiC,EAAWjC,EAAKiC,SAChB7K,EAAS4I,EAAK5I,OAClB,OAAO,IAAMyL,cAAc,MAAO,CAChC9K,MAAOX,EAAOG,MACb0K,MAKU","file":"pex-static/40/57.6cd9e1e33fcf28e03e80.chunk.js","sourcesContent":["import React from 'react';\nimport Shortcode, { ShortcodeProps } from 'components/Shortcode';\nimport useStylesheet from './Cell.stylesheet';\nimport { Colorway } from 'domain/constants/colorway';\nimport { Alignment } from 'domain/constants/alignment';\n\nexport interface CellProps {\n body: ShortcodeProps,\n layout?: {\n alignment?: Alignment,\n }\n}\n\nexport interface OuterProps {\n colorway: Colorway,\n cell: CellProps,\n}\n\nconst PureCell = ({\n colorway,\n cell,\n}: OuterProps) => {\n const {\n styles,\n } = useStylesheet({ cell });\n return (\n
\n \n \n \n
\n );\n};\n\nPureCell.displayName = 'Cell';\n\nexport default PureCell;\n","import { useStyles } from '@team-griffin/stylr';\nimport { Alignment } from 'domain/constants/alignment';\nimport { CellProps } from './Cell';\n\n\nexport default ({\n cell,\n}: {\n cell: CellProps,\n}) => useStyles({\n default: {\n root: {\n textAlign: 'left',\n },\n },\n centered: {\n root: {\n textAlign: 'center',\n },\n },\n}, {\n centered: cell.layout?.alignment === Alignment.CENTER,\n});\n","import React from 'react';\nimport { Heading04, BodyCopy01 } from '@ux/typography';\nimport useStylesheet from './CompactGroup.stylesheet';\nimport Cell, { CellProps } from './Cell';\nimport { Colorway } from 'domain/constants/colorway';\nimport { useTheme } from '@ux/theme-utils';\n\nexport interface OuterProps {\n colorway: Colorway,\n headCell: CellProps,\n cells: CellProps[],\n first: boolean,\n last: boolean,\n}\n\ndeclare let cell: CellProps;\n\nconst PureCompactGroup = ({\n colorway,\n cells,\n headCell,\n first,\n last,\n}: OuterProps) => {\n const {\n theme,\n } = useTheme();\n const {\n styles,\n } = useStylesheet({\n theme,\n first,\n last,\n });\n return (\n \n \n \n \n\n \n \n \n \n \n \n );\n};\n\nPureCompactGroup.displayName = 'CompactGroup';\n\nexport default PureCompactGroup;\n","import { gu2px, Theme } from '@ux/theme-utils';\nimport { useStyles } from '@team-griffin/stylr';\nimport cssSides, { Side } from '@team-griffin/css-sides';\nimport { opacify } from '@ux/style-utils';\nimport { content } from '@ux/type-size';\nimport longhand from '@team-griffin/css-longhand';\n\nexport default ({\n theme,\n first,\n last,\n}: {\n theme: Theme,\n first: boolean,\n last: boolean,\n}) => {\n const {\n spacing,\n palette,\n typography,\n } = theme;\n\n return useStyles({\n default: {\n group: {\n ...longhand('borderTop', {\n width: 2,\n style: 'solid',\n color: opacify(palette.grey06, 0.2),\n }),\n ...cssSides('padding', Side.Y, gu2px(2, spacing)),\n ...cssSides('margin', Side.X, gu2px(3, spacing)),\n },\n theadCell: {\n fontWeight: 600,\n },\n cell: {\n ...content(typography),\n },\n },\n firstChild: {\n group: {\n borderTop: 'none',\n },\n },\n }, [\n { firstChild: first },\n { lastChild: last },\n ]);\n};\n","import React from 'react';\nimport useStylesheet from './CompactTableSection.stylesheet';\nimport CompactGroup from './CompactGroup';\nimport { CellProps } from './Cell';\nimport { Colorway } from 'domain/constants/colorway';\n\nexport interface OuterProps {\n colorway: Colorway,\n rows: CellProps[],\n head: CellProps[],\n tableFirst: boolean,\n}\n\ndeclare const j: number;\ndeclare const cell: CellProps;\n\nconst PureCompactTable = ({\n colorway,\n head,\n rows,\n tableFirst,\n}: OuterProps) => {\n const {\n styles,\n } = useStylesheet({\n tableFirst,\n });\n return (\n
\n \n \n \n
\n );\n};\n\nPureCompactTable.displayName = 'CompactTableSection';\n\nexport default PureCompactTable;\n","import { useStyles } from '@team-griffin/stylr';\nimport longhand from '@team-griffin/css-longhand';\nimport { gu2px, useTheme } from '@ux/theme-utils';\n\n\nexport default ({\n tableFirst,\n}: {\n tableFirst: boolean,\n}) => {\n const {\n theme: {\n palette,\n spacing,\n },\n } = useTheme();\n return useStyles({\n default: {\n table: {\n backgroundColor: '#fff',\n ...longhand('borderTop', {\n width: 3,\n style: 'solid',\n color: palette.secondary,\n }),\n paddingTop: gu2px(1, spacing),\n paddingBottom: gu2px(1, spacing),\n marginBottom: 0,\n },\n },\n\n tableFirst: {\n table: {\n borderTopWidth: 0,\n },\n },\n }, [\n { tableFirst },\n ]);\n};","import React from 'react';\nimport CompactTableSection from './CompactTableSection';\nimport { CellProps } from './Cell';\nimport { Colorway } from 'domain/constants/colorway';\nimport CompactGroup from './CompactGroup';\nimport useStylesheet from './CompactTable.stylesheet';\n\nexport interface OuterProps {\n colorway: Colorway,\n head: CellProps[],\n body: CellProps[][],\n}\n\ndeclare const i: number;\ndeclare const rows: CellProps[];\n\nconst PureCompactTable = ({\n colorway,\n head,\n body,\n}: OuterProps) => {\n const {\n styles,\n } = useStylesheet();\n return (\n \n \n
\n \n
\n
\n \n \n \n \n \n
\n );\n};\n\nPureCompactTable.displayName = 'CompactTable';\n\nexport default PureCompactTable;\n","import { useStyles } from '@team-griffin/stylr';\nimport { gu2px, useTheme } from '@ux/theme-utils';\nimport cssSides, { Side } from '@team-griffin/css-sides';\n\nexport default () => {\n const {\n theme: {\n spacing,\n },\n } = useTheme();\n return useStyles({\n default: {\n table: {\n ...cssSides('padding', Side.Y, gu2px(1, spacing)),\n },\n },\n });\n};","import React from 'react';\nimport useStylesheet from './WideCell.stylesheet';\nimport Cell, { OuterProps as CellProperties } from './Cell';\n\ninterface OuterProps extends CellProperties {\n first: boolean,\n last: boolean,\n}\n\nconst PureWideCell = ({\n colorway,\n cell,\n first,\n last,\n}: OuterProps) => {\n const {\n styles,\n } = useStylesheet({\n first,\n last,\n });\n return (\n
\n \n
\n );\n};\n\nPureWideCell.displayName = 'WideCell';\n\nexport default PureWideCell;\n","import { gu2px, useTheme } from '@ux/theme-utils';\nimport { useStyles } from '@team-griffin/stylr';\nimport cssSides, { Side } from '@team-griffin/css-sides';\nimport { useBreakpoints } from '@ux/responsive';\n\nexport default ({\n first,\n last,\n}: {\n first: boolean,\n last: boolean,\n}) => {\n const {\n theme: {\n spacing,\n },\n } = useTheme();\n const {\n isMinLg,\n } = useBreakpoints();\n return useStyles({\n default: {\n cell: {\n ...cssSides('padding', Side.X, gu2px(1.5, spacing)),\n },\n },\n\n firstChild: {\n cell: {\n paddingLeft: gu2px(3, spacing),\n },\n },\n lastChild: {\n cell: {\n paddingRight: gu2px(3, spacing),\n },\n },\n\n isMinLg: {\n cell: {\n ...cssSides('padding', Side.X, gu2px(2, spacing)),\n },\n },\n\n firstChildLg: {\n cell: {\n paddingLeft: gu2px(4, spacing),\n },\n },\n\n lastChildLg: {\n cell: {\n paddingRight: gu2px(4, spacing),\n },\n },\n\n }, [\n { isMinLg: isMinLg },\n { firstChild: first },\n { lastChild: last },\n { firstChildLg: first && isMinLg },\n { lastChildLg: last && isMinLg },\n ]);\n};\n","import React from 'react';\nimport useStylesheet from './WideTableRow.stylesheet';\nimport WideCell from './WideCell';\nimport { Colorway } from 'domain/constants/colorway';\nimport { CellProps } from './Cell';\n\n\ninterface OuterProps {\n colorway: Colorway,\n row: CellProps[],\n isOdd: boolean,\n isLast: boolean,\n}\n\ndeclare const j: number;\ndeclare const cell: CellProps;\n\nconst PureWideTableRow = ({\n colorway,\n row,\n isOdd,\n isLast,\n}: OuterProps) => {\n const {\n styles,\n } = useStylesheet({\n isOdd,\n isLast,\n });\n return (\n \n \n \n \n \n \n \n );\n};\n\nPureWideTableRow.displayName = 'WideTableRow';\n\nexport default PureWideTableRow;\n","import cssSides, { Side } from '@team-griffin/css-sides';\nimport { gu2px, useTheme } from '@ux/theme-utils';\nimport { opacify } from '@ux/style-utils';\nimport longhand from '@team-griffin/css-longhand';\nimport { useStyles } from '@team-griffin/stylr';\nimport { useBreakpoints } from '@ux/responsive';\n\nexport default ({\n isOdd,\n isLast,\n}: {\n isOdd: boolean,\n isLast: boolean,\n}) => {\n const {\n theme: {\n palette,\n spacing,\n },\n } = useTheme();\n const {\n isMinLg,\n } = useBreakpoints();\n return useStyles({\n default: {\n tbodyRow: {\n display: 'flex',\n ...cssSides('padding', Side.Y, gu2px(2, spacing)),\n ...longhand('borderBottom', {\n width: 2,\n color: opacify(palette.grey06, 0.2),\n style: 'solid',\n }),\n backgroundColor: palette.grey12,\n },\n\n cell: {\n flex: 1,\n flexBasis: 0,\n },\n\n },\n\n isOdd: {\n tbodyRow: {\n backgroundColor: '#fff',\n },\n },\n\n isLast: {\n tbodyRow: {\n paddingBottom: gu2px(3, spacing),\n borderBottomWidth: 0,\n },\n },\n\n isMinLg: {\n tbodyRow: {\n ...cssSides('padding', Side.Y, gu2px(2, spacing)),\n },\n },\n\n isMinLgAndLast: {\n tbodyRow: {\n paddingBottom: gu2px(4, spacing),\n },\n },\n\n }, [\n { isOdd },\n { isLast },\n { isMinLg },\n { isMinLgAndLast: isLast && isMinLg },\n ]);\n};","import React from 'react';\nimport { Heading04 } from '@ux/typography';\nimport useStylesheet from './WideTable.stylesheet';\nimport WideCell from './WideCell';\nimport WideTableRow from './WideTableRow';\nimport { Colorway } from 'domain/constants/colorway';\nimport { CellProps } from './Cell';\nimport { useTheme } from '@ux/theme-utils';\n\nconst isOdd = (i: number) => i%2 === 1;\nconst isLast = (i: number, n: number) => i+1 === n;\n\ninterface OuterProps {\n colorway: Colorway,\n head: CellProps[],\n body: Array,\n hBaseline?: number,\n}\n\n\ndeclare const i: number;\ndeclare const cell: CellProps;\ndeclare const row: CellProps[];\n\nconst PureWideTable = ({\n colorway,\n head,\n body,\n hBaseline = 1,\n}: OuterProps) => {\n const {\n theme,\n } = useTheme();\n const {\n styles,\n } = useStylesheet({\n theme,\n });\n return (\n
\n
\n \n \n \n \n \n
\n \n
\n \n \n \n \n );\n};\n\nPureWideTable.displayName = 'WideTable';\n\nexport default PureWideTable;\n","import cssSides, { Side } from '@team-griffin/css-sides';\nimport { gu2px, Theme } from '@ux/theme-utils';\nimport longhand from '@team-griffin/css-longhand';\nimport { useStyles } from '@team-griffin/stylr';\nimport { useBreakpoints } from '@ux/responsive';\n\nexport default ({\n theme: {\n spacing,\n palette,\n curvature,\n },\n}: {\n theme: Theme,\n}) => {\n const {\n isMinLg,\n } = useBreakpoints();\n return useStyles({\n default: {\n table: {\n backgroundColor: '#fff',\n },\n\n theadRow: {\n display: 'flex',\n ...cssSides('padding', Side.Y, gu2px(3, spacing)),\n ...longhand('borderBottom', {\n width: 3,\n color: palette.secondary,\n style: 'solid',\n }),\n },\n\n cell: {\n flex: 1,\n flexBasis: 0,\n },\n\n tCellCenter: {\n textAlign: 'center',\n },\n\n },\n\n isMinLg: {\n theadRow: {\n paddingTop: gu2px(4, spacing),\n },\n },\n\n }, [\n { isMinLg },\n { curvature },\n ]);\n};","import React, { ComponentType } from 'react';\nimport { Container } from '@ux/grid';\nimport Panel from '@ux/panel';\nimport Ribbon from 'components/ribbons/Ribbon';\nimport { useBreakpoints } from '@ux/responsive';\nimport { Colorway } from 'domain/constants/colorway';\nimport visibilitySet from 'presentation/hocs/visibilitySet';\nimport errorBoundary from 'presentation/hocs/errorBoundary';\nimport CompactTable from './CompactTable';\nimport WideTable from './WideTable';\nimport { RibbonProps } from 'domain/constants/ribbons';\nimport { CellProps } from './Cell';\nimport { useTheme } from '@ux/theme-utils';\n\ninterface OuterProps extends RibbonProps {\n head: CellProps[],\n body: Array,\n}\n\nexport const PureTable = ({\n id,\n colorway,\n layout,\n loading,\n head,\n body,\n hBaseline = 1,\n}: OuterProps) => {\n const {\n theme,\n } = useTheme();\n const borderless = [\n Colorway.PRIMARY,\n Colorway.PRIMARY_GRADIENT,\n Colorway.HIGHLIGHT,\n ].includes(colorway);\n const {\n isMinMd,\n } = useBreakpoints();\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nPureTable.displayName = 'Table';\n\nexport default visibilitySet(errorBoundary(PureTable)) as ComponentType;\n","import Table from './Table';\n\nexport default Table;\n","import { Flush } from 'domain/constants/ribbons';\nimport { gu2px } from '@ux/theme-utils';\nimport * as r from 'ramda';\nimport { Layout } from 'domain/constants/layout';\n\nexport default ({\n spacing,\n isMinSm,\n isMinLg,\n layout,\n flush,\n}: {\n spacing: number,\n isMinSm: boolean,\n isMinLg: boolean,\n layout?: Layout,\n flush?: Flush|boolean,\n}) => {\n\n if (r.equals(flush, true)) {\n // Component will handle all padding, used on full bleed image ribbons\n return {};\n }\n\n const {\n //@ts-ignore\n shrinkLeading,\n //@ts-ignore\n shrinkTrailing,\n } = r.defaultTo({}, layout);\n\n /*\n shrinkSide:\n shrink[Leading/Trailing] prop is true then return a reduced padding\n depending on screen size\n isFlush:\n leading or trailing edge has been designated as flush, no padding\n */\n const getPaddingSize = (shrinkSide: string, isFlush: boolean) => {\n\n if (isFlush) {\n return 0;\n }\n\n return r.cond([\n [ r.propEq(shrinkSide, true), () => r.ifElse(\n r.equals(true),\n r.always(1),\n r.always(0.5),\n )(isMinSm) ],\n [ r.propEq('isMinLg', true), r.always(6) ],\n [ r.propEq('isMinSm', true), r.always(5) ],\n [ r.T, r.always(4) ],\n ])({\n isMinLg,\n isMinSm,\n shrinkLeading,\n shrinkTrailing,\n });\n };\n\n const leading = getPaddingSize('shrinkLeading', flush === Flush.LEADING);\n const trailing = getPaddingSize('shrinkTrailing', flush === Flush.TRAILING);\n\n return {\n paddingTop: gu2px(leading, spacing),\n paddingBottom: gu2px(trailing, spacing),\n };\n};\n","import React from 'react';\nimport { defaultProps, withProps, mapProps } from '@team-griffin/rehook';\nimport pureEnhance from '@ux/pure-enhance';\nimport { DynamicLink } from '@ux/dynamic-link';\nimport { useStyles, withInteraction } from '@team-griffin/stylr';\nimport cssSides, { Side } from '@team-griffin/css-sides';\nimport longhand from '@team-griffin/css-longhand';\nimport px2em from '@ux/px2em';\nimport { content } from '@ux/type-size';\nimport { percentage, modifier } from '@ux/style-utils';\nimport { cond, equals, always, T, omit } from 'ramda';\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 Size;\n\n(function (Size) {\n Size[\"SM\"] = \"SM\";\n Size[\"MD\"] = \"MD\";\n Size[\"LG\"] = \"LG\";\n Size[\"INHERIT\"] = \"INHERIT\";\n})(Size || (Size = {}));\n\nvar Against;\n\n(function (Against) {\n Against[\"LIGHT\"] = \"LIGHT\";\n Against[\"NEUTRAL\"] = \"NEUTRAL\";\n Against[\"DARK\"] = \"DARK\";\n Against[\"PRIMARY\"] = \"PRIMARY\";\n Against[\"PRIMARY_FADED\"] = \"PRIMARY_FADED\";\n Against[\"HIGHLIGHT\"] = \"HIGHLIGHT\";\n Against[\"HIGHLIGHT_FADED\"] = \"HIGHLIGHT_FADED\";\n})(Against || (Against = {}));\n\nvar ContentType;\n\n(function (ContentType) {\n ContentType[\"DEFAULT\"] = \"DEFAULT\";\n ContentType[\"PHONE_NUMBER\"] = \"PHONE_NUMBER\";\n})(ContentType || (ContentType = {}));\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 stylesheet = function stylesheet(_ref) {\n var _useStyles;\n\n var theme = _ref.theme,\n against = _ref.against,\n block = _ref.block,\n disabled = _ref.disabled,\n size = _ref.size,\n caps = _ref.caps,\n contentType = _ref.contentType,\n hover = _ref.hover,\n active = _ref.active;\n var palette = theme.palette,\n typography = theme.typography;\n var fill = cond([[equals(Against.LIGHT), always(palette.secondary)], [equals(Against.NEUTRAL), always(palette.secondary)], [equals(Against.DARK), always(palette.tertiary)], [equals(Against.PRIMARY), always(palette.primaryContrast)], [equals(Against.PRIMARY_FADED), always(palette.secondary)], [equals(Against.HIGHLIGHT), always(palette.highlightContrast)], [equals(Against.HIGHLIGHT_FADED), always(palette.highlight)], [T, always(palette.secondary)]])(against);\n return useStyles((_useStyles = {\n default: {\n root: Object.assign({}, content(theme.typography), longhand('border', {\n color: 'transparent',\n style: 'solid',\n width: 0\n }), cssSides('margin', Side.A, 0), cssSides('padding', Side.A, 0), {\n fontFamily: typography.content,\n lineHeight: 1.1,\n paddingBottom: 1,\n color: fill,\n textAlign: 'left',\n backgroundColor: 'transparent',\n outline: 0,\n cursor: equals(disabled, true) ? 'not-allowed' : 'pointer',\n textDecoration: 'none',\n transition: 'opacity 0.2s ease-in-out, border 0.1s ease-in-out'\n }),\n\n /*\r\n we apply the border on the inner text span as we need to ensure\r\n that if the text wraps over 2 lines, both lines have a dotted border.\r\n If there is any padding on this inner element it breaks the underline\r\n when in a css column.\r\n */\n inner: Object.assign({}, longhand('borderBottom', {\n style: 'dotted',\n color: fill,\n width: 1\n }))\n },\n hover: {\n root: {\n opacity: 0.75\n },\n inner: {\n borderBottomStyle: 'solid',\n opacity: 0.75\n }\n },\n active: {\n inner: {\n borderBottomStyle: 'solid',\n opacity: 0.75\n }\n },\n caps: {\n root: {\n textTransform: 'uppercase'\n }\n },\n block: {\n root: {\n display: 'block',\n width: percentage(100)\n }\n }\n }, _defineProperty(_useStyles, modifier('size', Size.SM), {\n root: {\n fontSize: px2em(12)\n }\n }), _defineProperty(_useStyles, modifier('size', Size.MD), {\n root: {\n fontSize: px2em(14)\n }\n }), _defineProperty(_useStyles, modifier('size', Size.LG), {\n root: {\n fontSize: px2em(16)\n }\n }), _defineProperty(_useStyles, modifier('size', Size.INHERIT), {\n root: {\n fontSize: 'inherit',\n lineHeight: 'inherit'\n }\n }), _defineProperty(_useStyles, modifier('contentType', ContentType.PHONE_NUMBER), {\n inner: {\n borderBottomWidth: 0\n }\n }), _defineProperty(_useStyles, \"disabled\", {\n root: {\n opacity: 0.3\n }\n }), _useStyles), [{\n hover: hover\n }, {\n active: active\n }, {\n caps: caps\n }, {\n block: block\n }, {\n disabled: disabled\n }, {\n size: size\n }, {\n contentType: contentType\n }, {\n against: against\n }]);\n};\n\nvar PureTextButton = function PureTextButton(_a) {\n var styles = _a.styles,\n children = _a.children,\n domProps = __rest(_a, [\"styles\", \"children\"]);\n\n return React.createElement(DynamicLink, Object.assign({\n style: styles.root\n }, domProps), React.createElement(\"span\", {\n style: styles.inner\n }, children));\n};\nvar enhance = pureEnhance('TextButton', {\n hooks: [defaultProps({\n disabled: false,\n block: false,\n caps: false,\n size: Size.MD,\n contentType: ContentType.DEFAULT\n }), withProps(stylesheet), mapProps(omit(['theme', 'against', 'hover', 'active', 'focus', 'hocus', 'caps', 'block', 'size', 'contentType']))]\n});\nvar TextButton = withInteraction(enhance(PureTextButton)); // eslint-disable-next-line no-underscore-dangle\n\nexport default TextButton;\nexport { Against, ContentType, Size };\n","import React, { CSSProperties } from 'react';\nimport { compose, lifecycle, withState, withProps } from 'recompose';\nimport Message from '@ux/message';\nimport { Container } from '@ux/grid';\nimport * as r from 'ramda';\nimport cssSides, { Side } from '@team-griffin/css-sides';\nimport { getBackgroundColor, getTitleColor } from 'presentation/utils/colorway';\nimport { gu2px, useTheme } from '@ux/theme-utils';\nimport ribbonPadding from 'presentation/utils/ribbonPadding';\nimport { useStyles } from '@team-griffin/stylr';\nimport { Colorway } from 'domain/constants/colorway';\nimport { Layout } from 'domain/constants/layout';\nimport { Flush } from 'domain/constants/ribbons';\nimport { BreakpointProps, useBreakpoints } from '@ux/responsive';\n\ninterface OuterProps extends BreakpointProps {\n colorway: Colorway;\n layout: Layout;\n flush?: Flush | boolean;\n}\n\ninterface InnerProps extends OuterProps {\n styles: {\n root: CSSProperties;\n };\n hasErrored: boolean;\n}\nconst stylesheet = ({ colorway, layout, flush }: InnerProps) => {\n const { theme } = useTheme();\n const { isMinSm, isMinMd, isMinLg } = useBreakpoints();\n const { spacing } = theme;\n\n return useStyles(\n {\n default: {\n root: {\n backgroundColor: getBackgroundColor(theme, colorway),\n color: getTitleColor(theme, colorway),\n ...ribbonPadding({\n spacing,\n isMinSm,\n isMinLg,\n layout,\n flush,\n }),\n ...cssSides('Side', Side.X, gu2px(3, spacing)),\n textAlign: 'center',\n },\n },\n isMinSm: {\n root: {\n ...cssSides('Side', Side.X, gu2px(4, spacing)),\n },\n },\n },\n [{ colorway }, { isMinSm }, { isMinMd }],\n );\n};\n\nexport default (WrappedComponent: any) => {\n const ErrorBoundary = r.ifElse(\n r.propEq('hasErrored', true),\n ({ styles }) => (\n
\n \n \n \n
\n ),\n (props: InnerProps) => ,\n );\n\n return compose(\n withState('hasErrored', 'setHasErrored', false),\n lifecycle({\n componentDidCatch: function() {\n //@ts-ignore\n this.props.setHasErrored(true);\n },\n }),\n withProps(stylesheet),\n )(ErrorBoundary);\n};\n","import { useMemo, useEffect } from 'react';\nimport { branch, mapProps as mapPropsHoc } from 'recompose';\nimport pureEnhance from '@ux/pure-enhance';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { bindActionCreators } from 'redux';\nimport { pipe, withProps, mapProps, withHandlers } from '@team-griffin/rehook';\nimport { Watch } from 'scrollmonitor-react';\nimport * as r from 'ramda';\nimport { sendImpression } from 'application/signals/ribbons';\nimport { getRibbonAnalytics } from 'domain/selectors/ribbons';\nimport { Type } from 'domain/constants/ribbons';\n\nconst hooksA = pipe(\n mapProps((props: any) => {\n const { id } = props;\n const selector = useMemo(() => getRibbonAnalytics(id), [ id ]);\n const analytics = useSelector(selector);\n const dispatch = useDispatch();\n const actions = bindActionCreators({ sendImpression }, dispatch);\n\n return r.mergeDeepLeft(props, {\n analytics,\n actions,\n });\n }),\n withHandlers({\n onImpression: ({\n name,\n type,\n analytics,\n actions: {\n sendImpression,\n },\n }: {\n name: string,\n type: Type,\n analytics: any,\n actions: {\n sendImpression: Function,\n }\n }) => () => sendImpression({\n ...analytics,\n ribbonName: name,\n ribbonType: type,\n }),\n }),\n);\n\nconst hooksB = pipe(\n withProps(({\n isFullyInViewport,\n stopWatcher,\n onImpression,\n analytics,\n }: {\n isFullyInViewport: boolean,\n stopWatcher: () => void,\n onImpression: (a: any) => void,\n analytics: any,\n }) => {\n useEffect(() => {\n if (isFullyInViewport) {\n stopWatcher();\n onImpression(analytics);\n }\n }, [ isFullyInViewport ]);\n }),\n);\n\nexport default pureEnhance('RibbonImpression', {\n hocs: [\n mapPropsHoc(hooksA),\n branch(\n r.propSatisfies(r.complement(r.isNil), 'analytics'),\n Watch,\n ),\n mapPropsHoc(hooksB),\n ],\n});\n","export const duoRibbonWidth = ({\n isMinMd,\n duoLayout,\n}: {\n isMinMd: boolean,\n duoLayout?: boolean,\n}) => {\n if (!isMinMd || duoLayout == null) {\n return {};\n }\n\n const flexSize = (isMinMd && duoLayout) ? 50 : 100;\n return {\n flex: `${flexSize}%`,\n };\n};\n\nexport default null;","import React, { Fragment } from 'react';\nimport {\n compose,\n lifecycle,\n} from 'recompose';\nimport { withRouter } from 'react-router';\nimport { Element, scroller } from 'react-scroll';\n\nconst deepLink = compose(\n withRouter,\n lifecycle({\n componentDidMount: function() {\n //Adding some ts-ignores here so it doesn't throw not recognizing\n //this.props\n\n //@ts-ignore\n if (this.props.location.hash === `#${this.props.name}`) {\n const scrollWhenReady = () => {\n // we can't scroll to eagerly or we'll end up in the wrong place\n //@ts-ignore\n if (this.props.loading || !this.props.animationComplete) {\n return setTimeout(scrollWhenReady, 100);\n }\n //@ts-ignore\n scroller.scrollTo(this.props.name, {\n duration: 500,\n delay: 100,\n smooth: true,\n });\n };\n setTimeout(scrollWhenReady, 100);\n }\n },\n }),\n (WrappedComponent: any) => {\n return (props: any) => (\n \n \n \n \n );\n },\n);\n\nexport default deepLink;\n","import React, { useRef, useLayoutEffect, CSSProperties, ReactNode, Ref } from 'react';\nimport { withProps } from '@team-griffin/rehook';\nimport pureEnhance from '@ux/pure-enhance';\nimport { withBreakpointsHook, BreakpointProps } from '@ux/responsive';\nimport findResponsiveItem from 'presentation/utils/findResponsiveItem';\nimport getBreakpoints from 'presentation/utils/getBreakpoints';\nimport ribbonPadding from 'presentation/utils/ribbonPadding';\nimport { duoRibbonWidth } from 'presentation/utils/ribbonWidth';\nimport { percentage, modifier } from '@ux/style-utils';\nimport deepLink from 'presentation/hocs/deepLink';\nimport { getBackgroundColor } from 'presentation/utils/colorway';\nimport { useStyles } from '@team-griffin/stylr';\nimport { Colorway } from 'domain/constants/colorway';\nimport { Fit, Flush, RibbonProps } from 'domain/constants/ribbons';\nimport * as r from 'ramda';\n\nexport {\n Flush,\n};\n\ninterface OuterProps extends RibbonProps {\n children?: ReactNode,\n}\ninterface WithHandlerProps extends OuterProps {\n setAnimationComplete: Function,\n setRibbonHeight: Function,\n setHeight: Function,\n onAnimationEnd: (props: {\n newHeight: number;\n }) => void,\n}\n\ninterface InnerProps extends WithHandlerProps, BreakpointProps {\n rendered: boolean,\n targetRef: Ref,\n duration: number,\n styles: {\n root: CSSProperties,\n inner: CSSProperties,\n ribbon: CSSProperties,\n }\n}\n\nconst mapFit = (fit: Fit) => r.cond([\n [ r.equals(Fit.FULLSCREEN), r.always({\n minHeight: '100vh',\n }) ],\n [ r.equals(Fit.FILL), r.always({\n flex: 1,\n flexBasis: 'auto',\n }) ],\n [ r.equals(Fit.AUTO), r.always({\n height: 'auto',\n }) ],\n [ isFinite, r.always({\n minHeight: fit,\n }) ],\n [ r.T, r.always({\n height: 'auto',\n }) ],\n])(fit);\n\nconst stylesheet = ({\n theme,\n colorway,\n loading,\n layout,\n flush,\n ...props\n}: InnerProps) => {\n const {\n palette,\n spacing,\n } = theme;\n const {\n //@ts-ignore\n fit,\n } = r.defaultTo({}, layout);\n\n const {\n isMinSm,\n isMinMd,\n isMinLg,\n duoLayout,\n } = props;\n\n const activeFit = findResponsiveItem(\n getBreakpoints(props),\n fit,\n );\n\n const padding = ribbonPadding({\n spacing,\n isMinSm,\n isMinLg,\n layout,\n flush,\n });\n\n const duoLayoutFlex = duoRibbonWidth({\n isMinMd,\n duoLayout,\n });\n\n return useStyles({\n default: {\n root: {\n backgroundColor: getBackgroundColor(theme, colorway),\n position: 'relative',\n display: 'flex',\n flexDirection: 'column',\n width: percentage(100),\n ...mapFit(activeFit),\n ...padding,\n ...duoLayoutFlex,\n },\n inner: {\n flex: 1,\n flexBasis: 'auto',\n display: 'flex',\n height: 'auto',\n },\n ribbon: {\n display: 'flex',\n flexDirection: 'column',\n width: percentage(100),\n },\n },\n\n [modifier('colorway', Colorway.PRIMARY_GRADIENT)]: {\n root: {\n backgroundImage: `linear-gradient(to right, ${palette.primary}, ${palette.primaryGradient})`,\n },\n },\n }, [\n { loading },\n { colorway },\n { isMinSm },\n { isMinMd },\n { isMinLg },\n ]);\n};\n\nexport const PureRibbon = ({\n styles,\n targetRef,\n children,\n}: InnerProps) => (\n
\n
\n \n {children}\n
\n \n
\n);\n\nexport const enhance = pureEnhance('Ribbon', {\n hocs: [\n deepLink,\n ],\n hooks: [\n withProps(() => {\n const targetRef = useRef({});\n\n if (process.env.NODE_ENV !== 'production') {\n useLayoutEffect(() => {\n // when backstop runs on ribbons, this lets us filter out a lot of false\n // positives and a lot of race condition fails by only initialising\n // the snapshot once loading has finished + a delay to wait for fonts etc to load\n // eslint-disable-next-line\n setTimeout(() => {\n // eslint-disable-next-line\n console.log('BACKSTOP_RIBBON_READY');\n }, 3000);\n }, [ targetRef.current ]);\n }\n\n return {\n targetRef,\n };\n }),\n withBreakpointsHook,\n withProps(stylesheet),\n ],\n});\n\nexport default enhance(PureRibbon);\n","import pureEnhance from '@ux/pure-enhance';\nimport withRibbonImpression from 'presentation/hocs/withRibbonImpression';\n\nimport Ribbon from './Ribbon';\n\nconst enhance = pureEnhance('ConnectedRibbon', {\n hocs: [ withRibbonImpression ],\n});\n\nexport default enhance(Ribbon);\n","import Ribbon from './ConnectedRibbon';\nimport { Flush } from './Ribbon';\n\nexport { Flush };\n\nexport default Ribbon;\n","import * as r from 'ramda';\nimport { BreakpointProps } from '@ux/responsive';\n\ninterface anyProps extends BreakpointProps {\n [key: string]: any,\n}\nexport default (props: anyProps) => r.pick([\n 'isMinSm',\n 'isMinMd',\n 'isMinLg',\n 'isMinXl',\n], props) as anyProps;\n","import { headingXl, headingXxl, display, headingL, headingM, headingS, headingXs, headingXxs, content } from '@ux/type-size';\nimport reactCSS from 'reactcss';\nimport cssSides, { Side } from '@team-griffin/css-sides';\nimport { createElement } from 'react';\nimport { defaultProps, mapProps } from '@team-griffin/rehook';\nimport pureEnhance from '@ux/pure-enhance';\nimport { withStylesHook } from '@ux/style-utils';\nimport { withBreakpoints } from '@ux/responsive';\nimport { pipe, converge, assoc, mergeDeepRight, path, propOr, identity, dissoc, is, defaultTo } from 'ramda';\nimport { gu2px } from '@ux/theme-utils';\n\nvar mergeStyles = pipe(converge(assoc('style'), [converge(mergeDeepRight, [path(['styles', 'root']), propOr({}, 'style')]), identity]), dissoc('styles'));\n\nvar createHeading = function createHeading(name, component, headingSize, stylesheet) {\n return pureEnhance(name, {\n hocs: [withBreakpoints],\n hooks: [defaultProps({\n component: component\n }), withStylesHook(function (props) {\n return stylesheet(Object.assign({}, props, {\n headingSize: headingSize\n }));\n }), mapProps(pipe(mergeStyles, function (props) {\n // if a `depth` prop is provided, make the `` element\n if (is(Number, props.depth)) {\n return assoc('component', \"h\".concat(props.depth), props);\n }\n\n return props;\n }))]\n })(function (_ref) {\n var style = _ref.style,\n children = _ref.children,\n component = _ref.component;\n return createElement(component, {\n style: style\n }, children);\n });\n};\n\nvar stylesheet = function stylesheet(_ref) {\n var typography = _ref.theme.typography,\n isMinSm = _ref.isMinSm,\n isMinLg = _ref.isMinLg,\n headingSize = _ref.headingSize;\n return reactCSS({\n default: {\n root: Object.assign({}, headingSize[0](typography), cssSides('margin', Side.Y, 0), {\n fontWeight: 'normal',\n fontFamily: typography.display\n })\n },\n isMinSm: {\n root: Object.assign({}, headingSize[1](typography))\n },\n isMinLg: {\n root: Object.assign({}, headingSize[2](typography))\n }\n }, [{\n isMinSm: isMinSm\n }, {\n isMinLg: isMinLg\n }]);\n};\n/* eslint-disable max-len */\n\n\nvar Heading01 = createHeading('Heading01', 'h1', [headingXl, headingXxl, display], stylesheet);\nvar Heading02 = createHeading('Heading02', 'h1', [headingL, headingXl, headingXxl], stylesheet);\nvar Heading03 = createHeading('Heading03', 'h1', [headingM, headingL, headingXl], stylesheet);\nvar Heading04 = createHeading('Heading04', 'h1', [headingS, headingM, headingL], stylesheet);\nvar Heading05 = createHeading('Heading05', 'h1', [headingXs, headingS, headingM], stylesheet);\nvar Heading06 = createHeading('Heading06', 'h1', [headingXxs, headingXs, headingS], stylesheet);\n\nvar stylesheet$1 = 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 reactCSS({\n default: {\n root: Object.assign({}, headingSize[0](typography), {\n marginTop: gu2px(defaultTo(2, gu), spacing),\n marginBottom: 0,\n fontWeight: 'normal',\n fontFamily: typography.display\n })\n },\n isMinSm: {\n root: Object.assign({}, headingSize[1](typography))\n },\n isMinLg: {\n root: Object.assign({}, headingSize[2](typography))\n }\n }, [{\n isMinSm: isMinSm\n }, {\n isMinLg: isMinLg\n }]);\n};\n/* eslint-disable max-len */\n\n\nvar SubHeading01 = createHeading('SubHeading01', 'h2', [headingXs, headingS, headingM], stylesheet$1);\nvar SubHeading02 = createHeading('SubHeading02', 'h3', [headingXxs, headingXxs, headingXs], function (props) {\n return stylesheet$1(mergeDeepRight(props, {\n gu: 1\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 isMinSm = _ref.isMinSm,\n isMinLg = _ref.isMinLg,\n headingSize = _ref.headingSize;\n return reactCSS({\n default: {\n root: Object.assign({}, headingSize[0](typography), {\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](typography))\n },\n isMinLg: {\n root: Object.assign({}, headingSize[2](typography))\n }\n }, [{\n isMinSm: isMinSm\n }, {\n isMinLg: isMinLg\n }]);\n};\n/* eslint-disable max-len */\n\n\nvar PreHeading01 = createHeading('PreHeading01', 'div', [headingXxs, headingXs, headingS], stylesheet$2);\nvar PreHeading02 = createHeading('PreHeading02', 'div', [headingXxs, headingXxs, headingXs], stylesheet$2);\n\nvar stylesheet$3 = 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 reactCSS({\n default: {\n root: Object.assign({}, headingSize[0](typography), {\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](typography))\n },\n isMinLg: {\n root: Object.assign({}, headingSize[2](typography))\n }\n }, [{\n isMinSm: isMinSm\n }, {\n isMinLg: isMinLg\n }]);\n};\n/* eslint-disable max-len */\n\n\nvar BodyCopy01 = createHeading('BodyCopy01', 'p', [content, content, content], stylesheet$3);\n\nvar index = null;\n\nexport default index;\nexport { BodyCopy01, Heading01, Heading02, Heading03, Heading04, Heading05, Heading06, PreHeading01, PreHeading02, SubHeading01, SubHeading02 };\n","import React from 'react';\nimport Shimmer from '@ux/shimmer';\nimport { ShortcodeProps } from './';\nimport { Colorway } from '@ux/theme-utils';\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 = ({\n code,\n against,\n}: OuterProps) => (\n \n \n \n);\n\nPendingShortcode.displayName = 'PendingShortcode';\n\nexport default PendingShortcode;\n","import React from 'react';\nimport { RecursiveShortcodeProps } from './Shortcode';\nimport { Against } from 'domain/constants/colorway';\nimport { Theme, useTheme } from '@ux/theme-utils';\n\nconst getColor = (theme: Theme, against: Against) => {\n switch (against) {\n case Against.LIGHT: return theme.palette.primary;\n case Against.NEUTRAL: return theme.palette.primary;\n case Against.DARK: return theme.palette.tertiary;\n default: return 'inherit';\n }\n};\nconst Alt = ({\n RecursiveShortcode,\n elements,\n against,\n ...rest\n}: RecursiveShortcodeProps) => {\n const {\n theme,\n } = useTheme();\n return (\n \n \n \n );\n};\n\nAlt.displayName = 'Alt';\n\nexport default Alt;","import React from 'react';\nimport { RecursiveShortcodeProps } from './Shortcode';\n\nconst Bold = ({ elements, RecursiveShortcode, ...rest }: RecursiveShortcodeProps) => (\n \n \n \n);\n\nBold.displayName = 'Bold';\n\nexport default Bold;","import React from 'react';\nimport { RecursiveShortcodeProps } from './Shortcode';\n\nconst Bold = ({ elements, RecursiveShortcode, ...rest }: RecursiveShortcodeProps) => (\n \n \n \n);\n\nBold.displayName = 'Bold';\n\nexport default Bold;","import React from 'react';\nimport TextButton, {\n Size as TextButtonSize,\n} from '@ux/text-button';\nimport { RecursiveShortcodeProps } from './Shortcode';\nimport { useTheme } from '@ux/theme-utils';\nimport { useAppConfig } from '@ux/whitelabel';\n\nconst Link = ({\n RecursiveShortcode,\n elements,\n contentType,\n attributes,\n against,\n ...rest\n}: RecursiveShortcodeProps) => {\n const {\n theme,\n } = useTheme();\n const externalRoutes = useAppConfig('usf')?.externalRoutes ?? [];\n return (\n \n \n \n );\n};\n\nLink.displayName = 'Link';\n\nexport default Link;","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) => (string ?? '').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) => {\n\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) => (\n \n {formatText(text, nl2br)}\n \n);\n\nText.displayName = 'Text';\n\nexport default Text;","import React, { lazy, Suspense } from 'react';\nimport TextButton, { Size as TextButtonSize } from '@ux/text-button';\nimport { RecursiveShortcodeProps } from './Shortcode';\nimport { useTheme, cssTheme } from '@ux/theme-utils';\nimport { useBreakpoints } from '@ux/responsive';\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(() => import(\n /* webpackChunkName: \"react-tooltip-lite\" */\n 'react-tooltip-lite'\n));\n\nconst TooltipShortcode = ({\n RecursiveShortcode,\n against,\n attributes,\n elements,\n}: RecursiveShortcodeProps) => {\n const {\n isMinLg,\n } = useBreakpoints();\n const {\n theme,\n } = useTheme();\n const eventToggle = isMinLg ? void 0 : '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 \n \n )}\n >\n {CallToAction}\n \n \n );\n};\n\nTooltipShortcode.displayName = 'TooltipShortcode';\n\nexport default TooltipShortcode;\n","import React, { Suspense, lazy, ReactNode } from 'react';\nimport PendingShortcode from './PendingShortcode';\nimport { getAgainst } from 'presentation/utils/colorway';\nimport { Layout } from 'domain/constants/layout';\nimport { ShortcodeProps } from '.';\n\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 Alt from './Alt';\nimport Bold from './Bold';\nimport Italic from './Italic';\nimport Link from './Link';\nimport Text from './Text';\nimport Tooltip from './Tooltip';\nimport { Against } from 'domain/constants/colorway';\n\nconst Glyph = lazy(() => import(\n /* webpackChunkName: \"shortcode-glyph\" */\n './Glyph'\n));\n\nconst Sup = lazy(() => import(\n /* webpackChunkName: \"shortcode-sup\" */\n './Sup'\n));\n\nconst List = lazy(() => import(\n /* webpackChunkName: \"shortcode-list\" */\n './List'\n));\n\nconst OrderedList = lazy(() => import(\n /* webpackChunkName: \"shortcode-ordered-list\" */\n './OrderedList'\n));\n\nconst ListItem = lazy(() => import(\n /* webpackChunkName: \"shortcode-list-item\" */\n './ListItem'\n));\n\nconst TickListItem = lazy(() => import(\n /* webpackChunkName: \"shortcode-tick-list-item\" */\n './TickListItem'\n));\n\nconst ProductPrice = lazy(() => import(\n /* webpackChunkName: \"shortcode-product-price\" */\n './ProductPrice'\n));\n\nconst PhoneNumber = lazy(() => import(\n /* webpackChunkName: \"shortcode-phone-number\" */\n './PhoneNumber'\n));\n\ndeclare const i: number;\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?: ShortcodeProps[],\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) => (\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') {\n props.code = code;\n } else {\n props = {\n ...props,\n ...code,\n };\n }\n\n props.against = getAgainst(props.against);\n props.RecursiveShortcode = RecursiveShortcode;\n props.attributes = props?.attributes ?? {} as ShortcodeAttributesProps;\n const Element = (props: any) => {\n const {\n code,\n type,\n name,\n } = props;\n if (typeof props.code === 'string') {\n return (\n \n );\n }\n if (props.type === 'text') {\n return (\n \n );\n }\n if (type === 'element') {\n switch (name) {\n case 'list':\n if (props?.attributes?.style === 'number') {\n return (\n \n );\n }\n return (\n \n );\n case 'li':\n if (props?.attributes?.style === 'glyph') {\n return (\n \n );\n }\n return (\n \n );\n case 'i':\n return (\n \n );\n case 'b':\n return (\n \n );\n case 'alt':\n return (\n \n );\n case 'sup':\n return (\n \n );\n case 'glyph':\n return (\n \n );\n case 'tel':\n return (\n \n );\n case 'link':\n return (\n \n );\n case 'productprice':\n return (\n \n );\n case 'tooltip':\n return (\n \n );\n case 'root':\n return (\n \n );\n default: return null;\n }\n }\n return null;\n };\n\n return (\n \n );\n};\n\nconst ShortcodeWrapper = (props: RecursiveShortcodeProps) => (\n \n )}\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 React from 'react';\nimport * as r from 'ramda';\n\nexport default (BaseComponent: any) => r.ifElse(\n r.prop('visible'),\n (props) => ,\n (props) => (\n
\n \n
\n ),\n);\n","export enum Alignment {\n STARTING = 'STARTING',\n CENTER = 'CENTER',\n}\n\nexport default null;\n","import React from 'react';\nimport { puree } from '@ux/pure-enhance';\nimport { defaultProps, withProps } from '@team-griffin/rehook';\nimport { useStyles } from '@team-griffin/stylr';\nimport { Curvature, useTheme, gu2px, Colorway } from '@ux/theme-utils';\nimport longhand from '@team-griffin/css-longhand';\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 roundAllBorders = function roundAllBorders(borderRadius) {\n return longhand('border', {\n topLeftRadius: borderRadius,\n topRightRadius: borderRadius,\n bottomLeftRadius: borderRadius,\n bottomRightRadius: borderRadius\n });\n};\n\nvar _curvatureMap;\nvar curvatureMap = (_curvatureMap = {}, _defineProperty(_curvatureMap, Curvature.OFF, 0), _defineProperty(_curvatureMap, Curvature.WEAK, 1), _defineProperty(_curvatureMap, Curvature.STRONG, 3), _curvatureMap);\nvar stylesheet = (function (_ref) {\n var border = _ref.border,\n style = _ref.style;\n\n var _useTheme = useTheme(),\n theme = _useTheme.theme;\n\n var palette = theme.palette,\n curvature = theme.curvature,\n spacing = theme.spacing;\n var radius = gu2px(curvatureMap[curvature], spacing);\n return useStyles({\n default: {\n root: Object.assign(Object.assign(Object.assign(Object.assign({}, longhand('border', {\n width: 1,\n style: 'solid',\n color: palette.grey10\n })), roundAllBorders(radius)), {\n overflow: 'hidden',\n backgroundColor: '#fff'\n }), style)\n },\n borderless: {\n root: {\n borderWidth: 0\n }\n }\n }, [{\n borderless: border === false\n }, {\n style: style\n }]);\n});\n\nvar enhance = puree('Panel')(defaultProps({\n style: {},\n border: true\n}), withProps(function (props) {\n return stylesheet(props);\n}));\nvar PurePanel = function PurePanel(_ref) {\n var children = _ref.children,\n styles = _ref.styles;\n return React.createElement(\"div\", {\n style: styles.root\n }, children);\n};\nvar Panel = enhance(PurePanel); // eslint-disable-next-line no-underscore-dangle\n\nvar Kind;\n\n(function (Kind) {\n Kind[\"NEUTRAL\"] = \"NEUTRAL\";\n Kind[\"PRIMARY\"] = \"PRIMARY\";\n Kind[\"HIGHLIGHT\"] = \"HIGHLIGHT\";\n Kind[\"WARNING\"] = \"WARNING\";\n Kind[\"ALERT\"] = \"ALERT\";\n})(Kind || (Kind = {}));\n\nvar _curvatureMap$1;\n\nvar getColor = function getColor(against, palette) {\n if (against === Colorway.HIGHLIGHT) {\n return palette.highlightContrast;\n }\n\n if (against === Colorway.PRIMARY || against === Colorway.PRIMARY_GRADIENT) {\n return palette.primaryContrast;\n }\n\n if (against === Colorway.DARK) {\n return '#fff';\n }\n\n return palette.grey04;\n};\n\nvar getBorderColor = function getBorderColor(kind, against, palette) {\n if (kind === Kind.ALERT) {\n return palette.red01;\n }\n\n if (kind === Kind.WARNING) {\n return palette.yellow01;\n }\n\n if (kind === Kind.NEUTRAL) {\n if (against === Colorway.LIGHT || against === Colorway.NEUTRAL) {\n return palette.grey02;\n }\n\n return '#fff';\n }\n\n if (kind === Kind.HIGHLIGHT) {\n if (against === Colorway.HIGHLIGHT) {\n return palette.highlightContrast;\n }\n\n return palette.highlight;\n }\n\n if (kind === Kind.PRIMARY) {\n if (against === Colorway.PRIMARY || against === Colorway.PRIMARY_GRADIENT) {\n return palette.primaryContrast;\n }\n\n return palette.primary;\n }\n\n return palette.primary;\n};\n\nvar getPanelColorway = function getPanelColorway(kind, against, palette) {\n var color = getColor(against, palette);\n var borderColor = getBorderColor(kind, against, palette);\n return {\n color: color,\n borderColor: borderColor\n };\n};\n\nvar curvatureMap$1 = (_curvatureMap$1 = {}, _defineProperty(_curvatureMap$1, Curvature.OFF, 0), _defineProperty(_curvatureMap$1, Curvature.WEAK, 0.25), _defineProperty(_curvatureMap$1, Curvature.STRONG, 2), _curvatureMap$1);\nvar stylesheet$1 = (function (_ref) {\n var kind = _ref.kind,\n against = _ref.against,\n style = _ref.style;\n\n var _useTheme = useTheme(),\n theme = _useTheme.theme;\n\n var palette = theme.palette,\n curvature = theme.curvature,\n spacing = theme.spacing;\n var radius = gu2px(curvatureMap$1[curvature], spacing);\n var colorway = getPanelColorway(kind, against, palette);\n return useStyles({\n default: {\n root: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, longhand('border', {\n width: 2,\n style: 'solid'\n })), roundAllBorders(radius)), {\n overflow: 'hidden'\n }), colorway), style)\n }\n });\n});\n\nvar enhance$1 = puree('InnerPanel')(defaultProps({\n style: {},\n kind: Kind.PRIMARY,\n against: Colorway.LIGHT\n}), withProps(function (props) {\n return stylesheet$1(props);\n}));\n\nvar PureInnerPanel = function PureInnerPanel(_ref) {\n var children = _ref.children,\n styles = _ref.styles;\n return React.createElement(\"div\", {\n style: styles.root\n }, children);\n};\n\nvar InnerPanel = enhance$1(PureInnerPanel);\n\nexport default Panel;\nexport { InnerPanel, Kind, Panel };\n"],"sourceRoot":""}