{"version":3,"sources":["webpack:///../node_modules/@ux/bookends/node_modules/@ux/padding-box/node_modules/@team-griffin/css-sides/dist/es/css-sides.js","webpack:///../node_modules/@ux/bookends/node_modules/@ux/padding-box/dist/es/padding-box.js","webpack:///../node_modules/@ux/bookends/node_modules/@ux/padding-box/node_modules/@team-griffin/css-longhand/dist/es/css-longhand.js","webpack:///../node_modules/@ux/bookends/dist/es/index-40846e5c.js","webpack:///../node_modules/@ux/bookends/node_modules/@ux/theme-utils/dist/es/theme-utils.js","webpack:///../node_modules/@ux/bookends/node_modules/@ux/type-size/dist/es/type-size.js","webpack:///../node_modules/@ux/bookends/node_modules/@ux/style-utils/dist/es/style-utils.js","webpack:///../node_modules/@ux/bookends/dist/es/index-b94e3459.js","webpack:///../node_modules/@ux/bookends/dist/es/utils-2cbabf7b.js","webpack:///../node_modules/@ux/bookends/node_modules/@ux/dynamic-link/dist/es/dynamic-link.js","webpack:///../node_modules/@ux/bookends/dist/es/_rollupPluginBabelHelpers-1b8c042f.js","webpack:///../node_modules/@ux/bookends/dist/es/utils-b53f15f5.js"],"names":["_sidesMap","Design","coreProp","prop","Object","keys","reduce","result","key","k","str","charAt","toUpperCase","substr","upperFirst","v","assign","obj","value","defineProperty","enumerable","configurable","writable","Side","actualSides","sidesMap","sides","idx","_defineProperty","stylesheet","_ref","_useStyles","style","side","design","isMinLg","spacing","theme","gu","INNER","padding","default","root","A","T","top","left","right","bottom","B","L","R","Y","X","PaddingBox","component","OUTER","props","styles","enhance","_a","children","s","e","t","p","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","__rest","enhance$1","useFooterConfig","sales","footer","useLogo","useLinkGroups","_useFooterConfig","groups","createLink","label","toProp","language","urls","_urls$","href","useLegalLinks","data","filter","link","useComplementaryLinks","config","_config$complementary","_config$complementary2","_config$complementary3","complementary","menu","items","map","url","rest","slice","useSocialLinks","_useBrandConfig$socia","social","FooterCopyright","colorway","palette","text","color","LIGHT","grey02","createElement","cascade","id","values","year","Date","getFullYear","lineHeight","textDecoration","borderBottomWidth","borderBottomStyle","tertiary","borderBottomColor","hover","secondary","FooterLink","externalRoutes","to","FooterLinkGroup","typography","wordBreak","title","marginBottom","fontFamily","display","list","listItem","margin","enhance$2","links","undefined","FooterLinks","isMinSm","overflow","enhance$3","group","xs","sm","lg","FooterLegalLinks","marginRight","enhance$4","legalLinks","complementaryLinks","FooterLogo","ownerProps","logoSrc","logo","logoLight","logoDark","height","enhance$5","src","alt","FooterSocial","paddingTop","icon","width","outline","enhance$6","facebook","twitter","Boolean","target","rel","size","isNotEmpty","o","Footer","_ownerProps$linkGroup","_ownerProps$linkGroup2","_ownerProps$languageM","hasLinkGroups","linkGroups","hasSocialLinks","socialLinks","hasLanguageGroup","languageMap","backgroundColor","logoArea","alignItems","justifyContent","additional","primary","paddingBottom","enhance$7","logoWrapper","ConnectedFooter","enhance$8","Curvature","TypographySizing","Spacing","GridUnit","Colorway","gu2px","count","SMALL","MEDIUM","LARGE","spacingToGridUnit","Math","floor","varPrefix","property","concat","useTheme","content","fontSize","footnote","smallprint","SizeMap$3","LineHeightMap","headingL","sizing","SizeMap$4","LineHeightMap$1","headingM","SizeMap$5","LineHeightMap$2","headingS","SizeMap$6","LineHeightMap$3","headingXs","SizeMap$7","LineHeightMap$4","headingXxs","arguments","source","ownKeys","sym","getOwnPropertyDescriptor","forEach","_objectSpread","modifier","namespace","opacify","clr","opacity","alpha","string","percentage","Menu","normalizeLinkProp","_props$$language","_props$","normalizeLinkUrl","absoluteUrlRegex","getLocationUrl","location","hash","pathname","search","join","isExternalUrl","host","proxies","replace","some","proxy","startsWith","isProxyUrl","includes","test","isAbsoluteUrl","isHashUrl","getLinkPath","hasSmoothMotion","window","matchMedia","matches","getExternalFlag","hook","propsIn","DynamicLink","activeStyle","exact","strict","dropExternalProps","scroller","external","smooth","dropInternalProps","useComponentProps","onClick","args","scrollTo","duration","delay","addScrolling","getComponentProps","getExternalFlag$1","parseLocationProps","origin","Link","hook$1","_props$externalRout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YF,GAAKA,IAAM,IAASG","file":"pex-static/12/67.00cfd5d8b2ebe407286e.chunk.js","sourcesContent":["import cssLonghand from '@team-griffin/css-longhand';\nimport reduce from 'lodash.reduce';\n\nvar defineProperty = function (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 _sidesMap;\n\nvar Side = {\n A: 'a',\n X: 'x',\n Y: 'y'\n};\n\nvar actualSides = ['left', 'top', 'right', 'bottom'];\n\nvar sidesMap = (_sidesMap = {}, defineProperty(_sidesMap, Side.A, [0, 1, 2, 3]), defineProperty(_sidesMap, Side.X, [0, 2]), defineProperty(_sidesMap, Side.Y, [1, 3]), _sidesMap);\n\nvar cssSides = function cssSides(prop, sides, value) {\n return cssLonghand(prop, reduce(sidesMap[sides], function (result, idx) {\n return Object.assign({}, result, defineProperty({}, actualSides[idx], value));\n }, {}));\n};\n\nexport default cssSides;\nexport { Side };\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","var defineProperty = function (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 upperFirst = function upperFirst(str) {\n return str.charAt(0).toUpperCase() + str.substr(1);\n};\n\nvar longhand = function longhand(coreProp, prop) {\n return Object.keys(prop).reduce(function (result, key) {\n var k = \"\" + coreProp + upperFirst(key);\n var v = prop[key];\n\n return Object.assign({}, result, defineProperty({}, k, v));\n }, {});\n};\n\nexport default longhand;\n","import { withProps, defaultProps } from '@team-griffin/rehook';\nimport { puree } from '@ux/pure-enhance';\nimport React, { useMemo } from 'react';\nimport { useAppConfig, useBrandConfig, useBrandLogos, useUrls } from '@ux/whitelabel';\nimport { useLanguage } from '@ux/language';\nimport { n as normalizeLinkUrl } from './utils-2cbabf7b.js';\nimport { _ as _extends } from './_rollupPluginBabelHelpers-1b8c042f.js';\nimport { Row, Column, Container } from '@ux/grid';\nimport { useBreakpoints, withBreakpointsHook } from '@ux/responsive';\nimport { useTheme, Colorway, gu2px } from '@ux/theme-utils';\nimport { h as hasListLength } from './utils-b53f15f5.js';\nimport { useStyles, withHover } from '@team-griffin/stylr';\nimport Message, { useMessage } from '@ux/message';\nimport { opacify, modifier } from '@ux/style-utils';\nimport { smallprint, content, headingXxs } from '@ux/type-size';\nimport PaddingBox from '@ux/padding-box';\nimport cssSides, { Side } from '@team-griffin/css-sides';\nimport './index-b94e3459.js';\nimport { DynamicLink } from '@ux/dynamic-link';\nimport Glyph from '@ux/glyphs';\nimport longhand from '@team-griffin/css-longhand';\n\n/* eslint-disable react-hooks/rules-of-hooks */\n\nconst useFooterConfig = () => useAppConfig('bks').sales.footer;\n\nconst useLogo = useBrandLogos;\nconst useLinkGroups = () => {\n var _useFooterConfig;\n\n return (_useFooterConfig = useFooterConfig()) === null || _useFooterConfig === void 0 ? void 0 : _useFooterConfig.groups;\n};\n\nconst createLink = (label, toProp, language) => urls => {\n var _ref, _urls$;\n\n const url = (_ref = (_urls$ = urls[`${language}.${toProp}`]) != null ? _urls$ : urls[`${toProp}.${language}`]) != null ? _ref : urls[toProp];\n return {\n href: url,\n label\n };\n};\n\nconst useLegalLinks = (urls = useUrls(), language = useLanguage().data) => {\n return useMemo(() => {\n return [createLink('legal.imprint', 'legal.imprint', language)(urls), createLink('legal.terms', 'legal.terms', language)(urls), createLink('legal.privacy', 'legal.privacy', language)(urls), createLink('legal.cookies', 'cookieManagement', language)(urls)].filter(link => link.href);\n }, [language, urls]);\n};\nconst useComplementaryLinks = (config = useFooterConfig(), language = useLanguage().data) => {\n return useMemo(() => {\n var _config$complementary, _config$complementary2, _config$complementary3;\n\n return ((_config$complementary = config === null || config === void 0 ? void 0 : (_config$complementary2 = config.complementary) === null || _config$complementary2 === void 0 ? void 0 : (_config$complementary3 = _config$complementary2.menu) === null || _config$complementary3 === void 0 ? void 0 : _config$complementary3.items) != null ? _config$complementary : []).map(normalizeLinkUrl(language)).map(({\n url,\n ...rest\n }) => ({\n href: url,\n ...rest\n })).filter(link => link.href).slice(0, 10);\n }, [config, language]);\n};\nconst useSocialLinks = () => {\n var _useBrandConfig$socia;\n\n return (_useBrandConfig$socia = useBrandConfig().social) != null ? _useBrandConfig$socia : {};\n};\n\nconst useStylesheet = ({\n colorway\n}) => {\n const {\n theme: {\n palette\n }\n } = useTheme();\n return useStyles({\n default: {\n text: { ...smallprint(),\n color: opacify('#fff', 0.85)\n }\n },\n [modifier('colorway', Colorway.LIGHT)]: {\n text: {\n color: palette.grey02\n }\n }\n }, [{\n colorway\n }]);\n};\n\nconst enhance = puree('FooterCopyright')(withProps(useStylesheet));\nconst PureFooterCopyright = ({\n styles\n}) => /*#__PURE__*/React.createElement(PaddingBox, null, /*#__PURE__*/React.createElement(\"small\", {\n style: styles.text\n}, /*#__PURE__*/React.createElement(Message, {\n cascade: [{\n id: 'bks.footer.legal.copyright'\n }, {\n id: 'brand.legal.copyright'\n }],\n values: {\n year: new Date().getFullYear()\n }\n})));\nvar FooterCopyright = enhance(PureFooterCopyright);\n\nconst useStylesheet$1 = ({\n colorway\n}) => {\n const {\n theme: {\n palette\n }\n } = useTheme();\n return useStyles({\n default: {\n root: { ...content(),\n lineHeight: 2,\n textDecoration: 'none',\n borderBottomWidth: 1,\n borderBottomStyle: 'dotted',\n color: palette.tertiary,\n borderBottomColor: palette.tertiary\n }\n },\n hover: {\n root: {\n borderBottomStyle: 'solid'\n }\n },\n [modifier('colorway', Colorway.LIGHT)]: {\n root: {\n color: palette.secondary,\n borderBottomColor: palette.secondary\n }\n }\n }, [{\n colorway\n }]);\n};\n\nconst enhance$1 = puree('FooterLink')(withProps(useStylesheet$1));\nconst PureFooterLink = ({\n styles,\n href,\n externalRoutes,\n children\n}) => /*#__PURE__*/React.createElement(DynamicLink, {\n externalRoutes: externalRoutes,\n style: styles.root,\n to: href\n}, children);\nvar FooterLink = withHover(enhance$1(PureFooterLink));\n\nconst useStylesheet$2 = ({\n colorway\n}) => {\n const {\n theme: {\n spacing,\n typography,\n palette\n }\n } = useTheme();\n const {\n isMinLg\n } = useBreakpoints();\n return useStyles({\n default: {\n root: { ...cssSides('padding', Side.A, gu2px(3, spacing)),\n ...cssSides('margin', Side.Y, gu2px(1, spacing)),\n wordBreak: 'break-all'\n },\n title: {\n color: '#fff',\n marginBottom: gu2px(3, spacing),\n fontFamily: typography.display,\n ...headingXxs()\n },\n list: { ...cssSides('padding', Side.A, 0),\n ...cssSides('margin', Side.A, 0)\n },\n listItem: {\n display: 'block',\n margin: 0,\n padding: 0\n }\n },\n [modifier('colorway', Colorway.LIGHT)]: {\n title: {\n color: palette.grey02\n }\n },\n isMinLg: {\n root: { ...cssSides('margin', Side.Y, 0),\n ...cssSides('padding', Side.A, gu2px(4, spacing))\n }\n }\n }, [{\n colorway\n }, {\n isMinLg\n }]);\n};\n\nconst enhance$2 = puree('FooterLinkGroup')(withProps(useStylesheet$2));\nconst PureFooterLinkGroup = ({\n styles,\n colorway,\n title,\n links,\n externalRoutes\n}) => /*#__PURE__*/React.createElement(\"div\", {\n style: styles.root\n}, /*#__PURE__*/React.createElement(\"h2\", {\n style: styles.title\n}, /*#__PURE__*/React.createElement(Message, {\n id: title\n})), /*#__PURE__*/React.createElement(\"ul\", {\n style: styles.list\n}, links.map(function (link, i) {\n return /*#__PURE__*/React.createElement(\"li\", {\n key: link.label,\n style: styles.listItem\n }, /*#__PURE__*/React.createElement(FooterLink, {\n colorway: colorway,\n externalRoutes: externalRoutes,\n href: link.href\n }, /*#__PURE__*/React.createElement(Message, {\n id: link.label\n })));\n}, undefined)));\nvar FooterLinkGroup = enhance$2(PureFooterLinkGroup);\n\nconst useStylesheet$3 = () => {\n const {\n theme: {\n spacing\n }\n } = useTheme();\n const {\n isMinSm\n } = useBreakpoints();\n return useStyles({\n default: {\n root: {\n overflow: 'hidden'\n }\n },\n isMinSm: {\n root: { ...cssSides('padding', Side.Y, gu2px(1, spacing))\n }\n },\n isMinLg: {\n root: { ...cssSides('padding', Side.Y, gu2px(2, spacing))\n }\n }\n }, [{\n isMinSm\n }]);\n};\n\nconst enhance$3 = puree('FooterLinks')(withProps(useStylesheet$3));\nconst PureFooterLinks = ({\n styles,\n colorway,\n links,\n externalRoutes\n}) => /*#__PURE__*/React.createElement(\"section\", {\n style: styles.root\n}, /*#__PURE__*/React.createElement(Row, null, links.map(function (group, i) {\n return /*#__PURE__*/React.createElement(Column, {\n key: `keyGroup${i}`,\n xs: 12,\n sm: 6,\n lg: 3\n }, /*#__PURE__*/React.createElement(FooterLinkGroup, _extends({\n colorway: colorway,\n externalRoutes: externalRoutes\n }, group)));\n}, undefined)));\nvar FooterLinks = enhance$3(PureFooterLinks);\n\nconst useStylesheet$4 = () => {\n const {\n theme: {\n spacing\n }\n } = useTheme();\n const {\n isMinSm,\n isMinLg\n } = useBreakpoints();\n return useStyles({\n default: {\n root: { ...cssSides('padding', Side.A, gu2px(3, spacing)),\n ...cssSides('margin', Side.A, 0)\n },\n listItem: {\n display: 'block',\n margin: 0,\n padding: 0\n }\n },\n isMinSm: {\n listItem: {\n display: 'inline-block',\n marginRight: gu2px(2, spacing)\n }\n },\n isMinLg: {\n root: { ...cssSides('padding', Side.A, gu2px(4, spacing))\n }\n }\n }, [{\n isMinSm\n }, {\n isMinLg\n }]);\n};\n\nconst enhance$4 = puree('FooterLegalLinks')(withProps(useStylesheet$4));\nconst PureFooterLegalLinks = ({\n styles,\n legalLinks,\n complementaryLinks,\n externalRoutes\n}) => /*#__PURE__*/React.createElement(\"ul\", {\n style: styles.root\n}, legalLinks.map(function (link, i) {\n return /*#__PURE__*/React.createElement(\"li\", {\n key: link.label,\n style: styles.listItem\n }, /*#__PURE__*/React.createElement(FooterLink, {\n externalRoutes: externalRoutes,\n href: link.href\n }, /*#__PURE__*/React.createElement(Message, {\n cascade: [{\n id: `bks.footer.${link.label}`\n }, {\n id: `brand.footer.${link.label}`\n }]\n })));\n}, undefined), complementaryLinks.map(function (link, i) {\n return /*#__PURE__*/React.createElement(\"li\", {\n key: i,\n style: styles.listItem\n }, /*#__PURE__*/React.createElement(FooterLink, {\n externalRoutes: externalRoutes,\n href: link.href\n }, /*#__PURE__*/React.createElement(Message, {\n id: `bks.footer.complementary.menu.items.${i}.label`\n })));\n}, undefined));\nvar FooterLegalLinks = enhance$4(PureFooterLegalLinks);\n\nconst useStylesheet$5 = () => {\n const {\n theme: {\n spacing\n }\n } = useTheme();\n return useStyles({\n default: {\n logo: {\n height: gu2px(4, spacing)\n }\n }\n });\n};\n\nconst enhance$5 = puree('FooterLink')(withProps(ownerProps => ({\n logoSrc: ownerProps.colorway === Colorway.LIGHT ? ownerProps.logo.logoLight : ownerProps.logo.logoDark\n})), withProps(useStylesheet$5));\nconst PureFooterLink$1 = ({\n styles,\n logoSrc\n}) => /*#__PURE__*/React.createElement(\"img\", {\n src: logoSrc,\n alt: useMessage({\n id: 'brand.legal.displayName'\n }),\n style: styles.logo\n});\nvar FooterLogo = enhance$5(PureFooterLink$1);\n\nconst useStylesheet$6 = ({\n colorway\n}) => {\n const {\n theme: {\n spacing,\n palette\n }\n } = useTheme();\n const {\n isMinLg\n } = useBreakpoints();\n return useStyles({\n default: {\n root: {\n display: 'flex',\n ...cssSides('padding', Side.A, gu2px(3, spacing)),\n paddingTop: 0\n },\n icon: {\n width: gu2px(3, spacing),\n height: gu2px(3, spacing),\n marginRight: gu2px(2, spacing),\n color: '#fff',\n textDecoration: 'none',\n outline: 0\n }\n },\n [modifier('colorway', Colorway.LIGHT)]: {\n icon: {\n color: palette.grey02\n }\n },\n isMinLg: {\n root: { ...cssSides('padding', Side.A, gu2px(4, spacing)),\n paddingTop: 0\n }\n }\n }, [{\n colorway\n }, {\n isMinLg\n }]);\n};\n\nconst enhance$6 = puree('FooterSocial')(withProps(useStylesheet$6));\nconst PureFooterSocial = ({\n styles,\n facebook,\n twitter\n}) => /*#__PURE__*/React.createElement(\"div\", {\n style: styles.root\n}, Boolean(facebook) ? /*#__PURE__*/React.createElement(\"a\", {\n style: styles.icon,\n href: `https://facebook.com/${facebook}`,\n target: \"_blank\",\n rel: \"noopener noreferrer\",\n id: \"bks-social-facebook\"\n}, /*#__PURE__*/React.createElement(Glyph, {\n icon: \"socialFacebook\",\n color: styles.icon.color,\n alt: \"facebook\"\n})) : null, Boolean(twitter) ? /*#__PURE__*/React.createElement(\"a\", {\n style: styles.icon,\n href: `https://twitter.com/${twitter}`,\n target: \"_blank\",\n rel: \"noopener noreferrer\",\n id: \"bks-social-twitter\"\n}, /*#__PURE__*/React.createElement(Glyph, {\n icon: \"socialTwitter\",\n color: styles.icon.color,\n size: styles.icon.height,\n alt: \"Twitter\"\n})) : null);\nvar FooterSocial = enhance$6(PureFooterSocial);\n\nvar stylesheet = (({\n theme,\n isMinSm,\n isMinLg,\n colorway\n}) => {\n const {\n palette,\n spacing\n } = theme;\n return useStyles({\n default: {\n root: {\n backgroundColor: palette.grey02,\n color: '#fff',\n paddingTop: gu2px(4, spacing)\n },\n logoArea: { ...cssSides('padding', Side.A, gu2px(3, spacing)),\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between'\n },\n additional: { ...longhand('borderTop', {\n width: 4,\n style: 'solid',\n color: palette.primary\n }),\n paddingBottom: gu2px(4, spacing)\n }\n },\n isMinSm: {\n root: {\n paddingTop: gu2px(5, spacing)\n },\n additional: {\n paddingTop: gu2px(2, spacing),\n paddingBottom: gu2px(5, spacing)\n }\n },\n isMinLg: {\n root: {\n paddingTop: gu2px(6, spacing)\n },\n logoArea: { ...cssSides('padding', Side.A, gu2px(4, spacing))\n },\n additional: {\n paddingBottom: gu2px(6, spacing)\n }\n },\n [modifier('colorway', Colorway.LIGHT)]: {\n root: {\n backgroundColor: '#fff'\n }\n }\n }, [{\n isMinSm\n }, {\n isMinLg\n }, {\n colorway\n }]);\n});\n\nconst isNotEmpty = o => o != null && Object.keys(o).length > 0;\n\nconst enhance$7 = puree('Footer')(withBreakpointsHook, defaultProps({\n externalRoutes: []\n}), withProps(ownerProps => {\n var _ownerProps$linkGroup, _ownerProps$linkGroup2, _ownerProps$languageM;\n\n return {\n hasLinkGroups: ((_ownerProps$linkGroup = (_ownerProps$linkGroup2 = ownerProps.linkGroups) === null || _ownerProps$linkGroup2 === void 0 ? void 0 : _ownerProps$linkGroup2.length) != null ? _ownerProps$linkGroup : 0) > 0,\n hasSocialLinks: isNotEmpty(ownerProps.socialLinks),\n hasLanguageGroup: hasListLength((_ownerProps$languageM = ownerProps.languageMap) != null ? _ownerProps$languageM : {})\n };\n}), withProps(useTheme), withProps(props => stylesheet(props)));\nconst PureFooter = ({\n styles,\n colorway,\n logo,\n linkGroups,\n legalLinks,\n complementaryLinks,\n // languageMap,\n hasLinkGroups,\n // hasLanguageGroup,\n socialLinks,\n hasSocialLinks,\n externalRoutes\n}) => /*#__PURE__*/React.createElement(\"footer\", {\n style: styles.root\n}, /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(\"div\", {\n style: styles.logoArea\n}, /*#__PURE__*/React.createElement(\"span\", {\n style: styles.logoWrapper\n}, /*#__PURE__*/React.createElement(FooterLogo, {\n logo: logo,\n colorway: colorway\n}))), hasLinkGroups ? /*#__PURE__*/React.createElement(FooterLinks, {\n colorway: colorway,\n externalRoutes: externalRoutes,\n links: linkGroups\n}) : null), /*#__PURE__*/React.createElement(\"section\", {\n style: styles.additional\n}, /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(FooterLegalLinks, {\n externalRoutes: externalRoutes,\n legalLinks: legalLinks,\n complementaryLinks: complementaryLinks\n}), hasSocialLinks ? /*#__PURE__*/React.createElement(FooterSocial, _extends({\n colorway: colorway\n}, socialLinks)) : null, /*#__PURE__*/React.createElement(FooterCopyright, {\n colorway: colorway\n}))));\nvar Footer = enhance$7(PureFooter);\n\nconst enhance$8 = puree('ConnectedFooter')(withProps(() => ({\n logo: useLogo(),\n linkGroups: useLinkGroups(),\n legalLinks: useLegalLinks(),\n complementaryLinks: useComplementaryLinks(),\n socialLinks: useSocialLinks()\n})));\n// @ts-ignore\nconst ConnectedFooter = enhance$8(Footer);\n\nexport default ConnectedFooter;\n","import hexRgb from 'hex-rgb';\nimport { useTheme as useTheme$1 } from '@team-griffin/react-dye';\n\nvar Curvature;\n\n(function (Curvature) {\n Curvature[Curvature[\"OFF\"] = 0] = \"OFF\";\n Curvature[Curvature[\"WEAK\"] = 1] = \"WEAK\";\n Curvature[Curvature[\"STRONG\"] = 2] = \"STRONG\";\n})(Curvature || (Curvature = {}));\n\nvar TypographySizing;\n\n(function (TypographySizing) {\n TypographySizing[TypographySizing[\"SMALL\"] = 0] = \"SMALL\";\n TypographySizing[TypographySizing[\"MEDIUM\"] = 1] = \"MEDIUM\";\n TypographySizing[TypographySizing[\"LARGE\"] = 2] = \"LARGE\";\n})(TypographySizing || (TypographySizing = {}));\n\nvar Spacing;\n\n(function (Spacing) {\n Spacing[Spacing[\"SMALL\"] = 0] = \"SMALL\";\n Spacing[Spacing[\"MEDIUM\"] = 1] = \"MEDIUM\";\n Spacing[Spacing[\"LARGE\"] = 2] = \"LARGE\";\n})(Spacing || (Spacing = {}));\n\nvar GridUnit;\n\n(function (GridUnit) {\n GridUnit[GridUnit[\"SMALL\"] = 6] = \"SMALL\";\n GridUnit[GridUnit[\"MEDIUM\"] = 8] = \"MEDIUM\";\n GridUnit[GridUnit[\"LARGE\"] = 10] = \"LARGE\";\n})(GridUnit || (GridUnit = {}));\n\nvar Colorway;\n\n(function (Colorway) {\n Colorway[\"LIGHT\"] = \"LIGHT\";\n Colorway[\"NEUTRAL\"] = \"NEUTRAL\";\n Colorway[\"DARK\"] = \"DARK\";\n Colorway[\"PRIMARY\"] = \"PRIMARY\";\n Colorway[\"PRIMARY_GRADIENT\"] = \"PRIMARY_GRADIENT\";\n Colorway[\"HIGHLIGHT\"] = \"HIGHLIGHT\";\n})(Colorway || (Colorway = {}));\n\nvar validateColor = function validateColor(color) {\n var test = /^#[0-9A-Fa-f]{6}|[0-9A-Fa-f]{3}/i;\n\n if (test.test(color)) {\n return color;\n }\n\n throw new Error(\"Not a valid color: \".concat(color));\n};\nvar spacingToGridUnit = function spacingToGridUnit(spacing) {\n if (spacing === Spacing.SMALL) {\n return GridUnit.SMALL;\n }\n\n if (spacing === Spacing.MEDIUM) {\n return GridUnit.MEDIUM;\n }\n\n if (spacing === Spacing.LARGE) {\n return GridUnit.LARGE;\n }\n\n return GridUnit.MEDIUM;\n};\nvar gu2px = function gu2px(count, spacing) {\n var gu = spacingToGridUnit(spacing);\n return Math.floor(count * gu);\n};\nvar hex2RgbString = function hex2RgbString(hex) {\n if (!hex) {\n return '';\n }\n\n var color = hexRgb(hex);\n return \"\".concat(color.red, \", \").concat(color.green, \", \").concat(color.blue);\n};\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function (obj) {\n return typeof obj;\n };\n } else {\n _typeof = function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\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 flattenObj = function flattenObj(obj, parent) {\n var res = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n for (var key in obj) {\n if (obj.hasOwnProperty(key)) {\n var propName = parent ? \"\".concat(parent, \"-\").concat(key) : key;\n\n if (_typeof(obj[key]) === 'object') {\n flattenObj(obj[key], propName, res);\n } else {\n res[propName] = obj[key];\n }\n }\n }\n\n return res;\n}; // take the theme object and return a set of\n// css variables for the theme\n\n\nvar buildCssVars = function buildCssVars(theme) {\n if (_typeof(theme) !== 'object' || theme === null) {\n // eslint-disable-next-line no-console\n console.error('Invalid theme provided for CSS variables');\n return '';\n } // flatten in prep for mapping to css vars\n\n\n var flatTheme = flattenObj(theme); // add additional css variables for GU spacing\n // since we cannot do dynamic runtime stuff in css\n\n var guSizes = flattenObj({\n gu: {\n 1: \"\".concat(gu2px(1, theme.spacing), \"px\"),\n 2: \"\".concat(gu2px(2, theme.spacing), \"px\"),\n 3: \"\".concat(gu2px(3, theme.spacing), \"px\"),\n 4: \"\".concat(gu2px(4, theme.spacing), \"px\"),\n 5: \"\".concat(gu2px(5, theme.spacing), \"px\"),\n 6: \"\".concat(gu2px(6, theme.spacing), \"px\"),\n 8: \"\".concat(gu2px(8, theme.spacing), \"px\"),\n 10: \"\".concat(gu2px(10, theme.spacing), \"px\"),\n 12: \"\".concat(gu2px(12, theme.spacing), \"px\"),\n 16: \"\".concat(gu2px(16, theme.spacing), \"px\")\n }\n }); // build the RGB colors for palette, required for opacity functions\n // palette-primary-rgb: '255, 255, 255'\n\n var rgbPalette = Object.keys(flatTheme).filter(function (k) {\n return k.includes('palette');\n }).reduce(function (prev, cur) {\n return Object.assign(Object.assign({}, prev), _defineProperty({}, \"\".concat(cur, \"-rgb\"), hex2RgbString(flatTheme[cur])));\n }, {});\n var cssTheme = Object.assign({}, flatTheme, guSizes, rgbPalette); // build CSS variables from theme object, prepend 'theme'\n // --theme-palette-primary: #color\n // --theme-palette-illustrations-primary: #color\n\n var cssVarsString = Object.keys(cssTheme).reduce(function (prev, cur) {\n return \"\".concat(prev, \"--theme-\").concat(cur, \": \").concat(cssTheme[cur], \";\");\n }, '');\n return \":root { \".concat(cssVarsString, \" }\");\n}; // An object version of the theme that returns the css vars\n// for simplicity and to save repetition and keep it as familiar as possible\n// e.g.\n// import { cssTheme } from '@ux/theme-utils';\n// {\n// backgroundColor: cssTheme.palette.primary,\n// }\n\nvar varPrefix = function varPrefix(property) {\n return \"var(--theme-\".concat(property, \")\");\n};\n\nvar cssTheme = {\n curvature: varPrefix('curvature'),\n greyTone: varPrefix('greyTone'),\n iconSet: varPrefix('iconSet'),\n spacing: varPrefix('spacing'),\n gu1: varPrefix('gu-1'),\n gu2: varPrefix('gu-2'),\n gu3: varPrefix('gu-3'),\n gu4: varPrefix('gu-4'),\n gu5: varPrefix('gu-5'),\n gu6: varPrefix('gu-6'),\n gu8: varPrefix('gu-8'),\n gu10: varPrefix('gu-10'),\n gu12: varPrefix('gu-12'),\n gu16: varPrefix('gu-16'),\n palette: {\n headerBackground: varPrefix('palette-headerBackground'),\n headerForeground: varPrefix('palette-headerForeground'),\n headerHighlight: varPrefix('palette-headerHighlight'),\n primary: varPrefix('palette-primary'),\n primaryContrast: varPrefix('palette-primaryContrast'),\n primaryGradient: varPrefix('palette-primaryGradient'),\n secondary: varPrefix('palette-secondary'),\n tertiary: varPrefix('palette-tertiary'),\n highlight: varPrefix('palette-highlight'),\n highlightContrast: varPrefix('palette-highlightContrast'),\n accent: varPrefix('palette-accent'),\n contrast: varPrefix('palette-contrast'),\n contrastAccent: varPrefix('palette-contrastAccent'),\n cta: varPrefix('palette-cta'),\n ctaContrast: varPrefix('palette-ctaContrast'),\n illustrations: {\n primary: varPrefix('palette-illustrations-primary'),\n primaryContrast: varPrefix('palette-illustrations-primaryContrast'),\n secondary: varPrefix('palette-illustrations-secondary'),\n secondaryContrast: varPrefix('palette-illustrations-secondaryContrast'),\n tertiary: varPrefix('palette-illustrations-tertiary'),\n tertiaryContrast: varPrefix('palette-illustrations-tertiaryContrast')\n },\n grey01: varPrefix('palette-grey01'),\n grey02: varPrefix('palette-grey02'),\n grey03: varPrefix('palette-grey03'),\n grey04: varPrefix('palette-grey04'),\n grey05: varPrefix('palette-grey05'),\n grey06: varPrefix('palette-grey06'),\n grey07: varPrefix('palette-grey07'),\n grey08: varPrefix('palette-grey08'),\n grey09: varPrefix('palette-grey09'),\n grey10: varPrefix('palette-grey10'),\n grey11: varPrefix('palette-grey11'),\n grey12: varPrefix('palette-grey12'),\n red01: varPrefix('palette-red01'),\n red02: varPrefix('palette-red02'),\n yellow01: varPrefix('palette-yellow01'),\n yellow02: varPrefix('palette-yellow02'),\n green01: varPrefix('palette-green01'),\n green02: varPrefix('palette-green02'),\n // RGB versions\n rgb: {\n headerBackground: varPrefix('palette-headerBackground-rgb'),\n headerForeground: varPrefix('palette-headerForeground-rgb'),\n headerHighlight: varPrefix('palette-headerHighlight-rgb'),\n primary: varPrefix('palette-primary-rgb'),\n primaryContrast: varPrefix('palette-primaryContrast-rgb'),\n primaryGradient: varPrefix('palette-primaryGradient-rgb'),\n secondary: varPrefix('palette-secondary-rgb'),\n tertiary: varPrefix('palette-tertiary-rgb'),\n highlight: varPrefix('palette-highlight-rgb'),\n highlightContrast: varPrefix('palette-highlightContrast-rgb'),\n accent: varPrefix('palette-accent-rgb'),\n contrast: varPrefix('palette-contrast-rgb'),\n contrastAccent: varPrefix('palette-contrastAccent-rgb'),\n cta: varPrefix('palette-cta-rgb'),\n ctaContrast: varPrefix('palette-ctaContrast-rgb'),\n illustrations: {\n primary: varPrefix('palette-illustrations-primary-rgb'),\n primaryContrast: varPrefix('palette-illustrations-primaryContrast-rgb'),\n secondary: varPrefix('palette-illustrations-secondary-rgb'),\n secondaryContrast: varPrefix('palette-illustrations-secondaryContrast-rgb'),\n tertiary: varPrefix('palette-illustrations-tertiary-rgb'),\n tertiaryContrast: varPrefix('palette-illustrations-tertiaryContrast-rgb')\n },\n grey01: varPrefix('palette-grey01-rgb'),\n grey02: varPrefix('palette-grey02-rgb'),\n grey03: varPrefix('palette-grey03-rgb'),\n grey04: varPrefix('palette-grey04-rgb'),\n grey05: varPrefix('palette-grey05-rgb'),\n grey06: varPrefix('palette-grey06-rgb'),\n grey07: varPrefix('palette-grey07-rgb'),\n grey08: varPrefix('palette-grey08-rgb'),\n grey09: varPrefix('palette-grey09-rgb'),\n grey10: varPrefix('palette-grey10-rgb'),\n grey11: varPrefix('palette-grey11-rgb'),\n grey12: varPrefix('palette-grey12-rgb'),\n red01: varPrefix('palette-red01-rgb'),\n red02: varPrefix('palette-red02-rgb'),\n yellow01: varPrefix('palette-yellow01-rgb'),\n yellow02: varPrefix('palette-yellow02-rgb'),\n green01: varPrefix('palette-green01-rgb'),\n green02: varPrefix('palette-green02-rgb')\n }\n },\n typography: {\n display: varPrefix('typography-display'),\n content: varPrefix('typography-content'),\n displayURL: varPrefix('typography-displayURL'),\n contentURL: varPrefix('typography-URL'),\n sizing: varPrefix('typography-sizing'),\n gwfUrl: varPrefix('typography-gwfUrl')\n }\n};\n\nvar useTheme = function useTheme() {\n return {\n theme: useTheme$1()\n };\n};\n\nexport { Colorway, Curvature, GridUnit, Spacing, TypographySizing, buildCssVars, cssTheme, gu2px, hex2RgbString, spacingToGridUnit, useTheme, validateColor };\n","import { useTheme, TypographySizing } from '@ux/theme-utils';\nimport px2em from '@ux/px2em';\n\nconst SizeMap = {\n [TypographySizing.SMALL]: 48,\n [TypographySizing.MEDIUM]: 55,\n [TypographySizing.LARGE]: 63\n};\nvar display = (() => {\n const {\n theme\n } = useTheme();\n const 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 = (() => ({\n fontSize: px2em(16),\n lineHeight: '1.5'\n}));\n\n// footnote is the same on any size scale\nvar footnote = (() => ({\n fontSize: px2em(14),\n lineHeight: '1.5'\n}));\n\n// smallprint is the same on any size scale\nvar smallprint = (() => ({\n fontSize: px2em(12),\n lineHeight: '1.5'\n}));\n\nconst SizeMap$1 = {\n [TypographySizing.SMALL]: 32,\n [TypographySizing.MEDIUM]: 36,\n [TypographySizing.LARGE]: 42\n};\nvar headingXxl = (() => {\n const {\n theme\n } = useTheme();\n const size = SizeMap$1[theme.typography.sizing] || 36;\n return {\n fontSize: px2em(size),\n lineHeight: '1.2'\n };\n});\n\nconst SizeMap$2 = {\n [TypographySizing.SMALL]: 28,\n [TypographySizing.MEDIUM]: 32,\n [TypographySizing.LARGE]: 36\n};\nvar headingXl = (() => {\n const {\n theme\n } = useTheme();\n const size = SizeMap$2[theme.typography.sizing] || 32;\n return {\n fontSize: px2em(size),\n lineHeight: '1.2'\n };\n});\n\nconst SizeMap$3 = {\n [TypographySizing.SMALL]: 24,\n [TypographySizing.MEDIUM]: 28,\n [TypographySizing.LARGE]: 32\n};\nconst LineHeightMap = {\n [TypographySizing.SMALL]: '1.25'\n};\nvar headingL = (() => {\n const {\n theme\n } = useTheme();\n const size = SizeMap$3[theme.typography.sizing] || 28;\n const height = LineHeightMap[theme.typography.sizing] || '1.2';\n return {\n fontSize: px2em(size),\n lineHeight: height\n };\n});\n\nconst SizeMap$4 = {\n [TypographySizing.SMALL]: 21,\n [TypographySizing.MEDIUM]: 24,\n [TypographySizing.LARGE]: 28\n};\nconst LineHeightMap$1 = {\n [TypographySizing.SMALL]: '1.3',\n [TypographySizing.MEDIUM]: '1.25',\n [TypographySizing.LARGE]: '1.2'\n};\nvar headingM = (() => {\n const {\n theme\n } = useTheme();\n const size = SizeMap$4[theme.typography.sizing] || 24;\n const height = LineHeightMap$1[theme.typography.sizing] || '1.25';\n return {\n fontSize: px2em(size),\n lineHeight: height\n };\n});\n\nconst SizeMap$5 = {\n [TypographySizing.SMALL]: 18,\n [TypographySizing.MEDIUM]: 21,\n [TypographySizing.LARGE]: 24\n};\nconst LineHeightMap$2 = {\n [TypographySizing.LARGE]: '1.25'\n};\nvar headingS = (() => {\n const {\n theme\n } = useTheme();\n const size = SizeMap$5[theme.typography.sizing] || 21;\n const height = LineHeightMap$2[theme.typography.sizing] || '1.3';\n return {\n fontSize: px2em(size),\n lineHeight: height\n };\n});\n\nconst SizeMap$6 = {\n [TypographySizing.SMALL]: 16,\n [TypographySizing.MEDIUM]: 18,\n [TypographySizing.LARGE]: 21\n};\nconst LineHeightMap$3 = {\n [TypographySizing.SMALL]: '1.5'\n};\nvar headingXs = (() => {\n const {\n theme\n } = useTheme();\n const size = SizeMap$6[theme.typography.sizing] || 18;\n const height = LineHeightMap$3[theme.typography.sizing] || '1.3';\n return {\n fontSize: px2em(size),\n lineHeight: height\n };\n});\n\nconst SizeMap$7 = {\n [TypographySizing.SMALL]: 14,\n [TypographySizing.MEDIUM]: 16,\n [TypographySizing.LARGE]: 18\n};\nconst LineHeightMap$4 = {\n [TypographySizing.LARGE]: '1.3'\n};\nvar headingXxs = (() => {\n const {\n theme\n } = useTheme();\n const size = SizeMap$7[theme.typography.sizing] || 16;\n const 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 { puree } from '@ux/pure-enhance';\nimport color from 'color';\n\nvar srOnly = {\n position: 'absolute',\n width: 1,\n height: 1,\n padding: 0,\n overflow: 'hidden',\n clip: 'rect(0, 0, 0, 0)',\n whiteSpace: 'nowrap',\n clipPath: 'inset(50%)',\n border: 0\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\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n\n ownKeys.forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n }\n\n return target;\n}\n\nvar withStyles = function withStyles(stylesheet) {\n return function (props) {\n return _objectSpread({}, props, {\n styles: stylesheet(props)\n });\n };\n};\n\nvar withStyles$1 = puree('WithStylesHoc')(withStyles);\n\n/* eslint-disable max-len */\nvar modifier = function modifier(namespace, value) {\n return \"\".concat(namespace, \"-\").concat(value);\n};\n\nvar opacify = function opacify(clr, opacity) {\n return color(clr).alpha(opacity).string();\n};\n\nfunction percentage(value) {\n return \"\".concat(value, \"%\");\n}\n\nexport { modifier, opacify, percentage, srOnly, withStyles$1 as withStyles, withStyles as withStylesHook };\n","import '@ux/theme-utils';\n\nlet Menu;\n\n(function (Menu) {\n Menu[\"NAV\"] = \"@ux/bookends/nav-menu\";\n Menu[\"ACCOUNT\"] = \"@ux/bookends/account-menu\";\n Menu[\"CONTACT\"] = \"@ux/bookends/contact-menu\";\n Menu[\"SUPPLEMENTARY\"] = \"@ux/bookends/supplementary-menu\";\n})(Menu || (Menu = {}));\n","const normalizeLinkProp = (language, prop) => props => {\n var _props$$language, _props$;\n\n const value = (_props$$language = (_props$ = props[`${prop}s`]) === null || _props$ === void 0 ? void 0 : _props$[language]) != null ? _props$$language : props[prop];\n const result = { ...props,\n [prop]: value\n };\n delete result[`${prop}s`];\n return result;\n};\nconst normalizeLinkUrl = language => normalizeLinkProp(language, 'url');\n\nexport { normalizeLinkProp as a, normalizeLinkUrl as n };\n","import React from 'react';\nimport { puree } from '@ux/pure-enhance';\nimport { NavLink } from 'react-router-dom';\nimport { scroller } from 'react-scroll';\nimport { push } from 'connected-react-router';\nimport { useDispatch } from 'react-redux';\n\nconst absoluteUrlRegex = /^[a-z][a-z\\d+.-]*:/;\n\nconst isAbsoluteUrl = url => absoluteUrlRegex.test(url);\n\nconst getLocationUrl = location => {\n if (location == null) {\n return '';\n }\n\n if (typeof location === 'string') {\n return location;\n }\n\n const {\n hash,\n pathname,\n search\n } = location;\n return [pathname, search, hash].join('');\n};\nconst isProxyUrl = (host, proxies, to) => {\n const url = getLocationUrl(to).replace(host, '');\n return proxies.some(proxy => url.startsWith(proxy));\n};\nconst isExternalUrl = (host, proxies, to) => {\n if (isProxyUrl(host, proxies, to)) {\n return true;\n }\n\n const url = getLocationUrl(to);\n\n if (url.includes(host)) {\n return false;\n }\n\n return isAbsoluteUrl(url);\n};\nconst isHashUrl = url => {\n return (url != null ? url : '').charAt(0) === '#';\n};\nconst getLinkPath = (host, proxies, to) => {\n const url = getLocationUrl(to);\n\n if (isExternalUrl(host, proxies, url)) {\n return url;\n }\n\n return url.replace(host, '');\n};\nconst hasSmoothMotion = window => {\n if (typeof window.matchMedia === 'function') {\n return !window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n }\n\n return true;\n};\nconst getExternalFlag = (href, to, externalRoutes, host) => {\n if (href) {\n return true;\n }\n\n if (to && isExternalUrl(host, externalRoutes, getLocationUrl(to))) {\n return true;\n }\n\n return false;\n};\n\nconst parseLocationProps = obj => ({ ...obj,\n to: getLocationUrl(obj.to)\n});\n\nconst getExternalFlag$1 = props => {\n return { ...props,\n external: getExternalFlag(props.href, props.to, props.externalRoutes, props.host)\n };\n};\n\nconst getComponentProps = props => {\n if (props.href != null) {\n return { ...props,\n DynamicLink: 'a'\n };\n }\n\n if (props.to) {\n if (props.external) {\n const {\n to,\n ...rest\n } = props;\n return { ...rest,\n DynamicLink: 'a',\n href: to\n };\n }\n\n return { ...props,\n DynamicLink: NavLink,\n to: getLinkPath(props.host, props.externalRoutes, props.to)\n };\n }\n\n return { ...props,\n DynamicLink: 'button'\n };\n};\n\nconst addScrolling = props => {\n if (props.external === false && isHashUrl(getLocationUrl(props.to))) {\n const onClick = (...args) => {\n const {\n scroller,\n to,\n smooth\n } = props;\n scroller.scrollTo(getLocationUrl(to).slice(1), {\n duration: 500,\n delay: 100,\n smooth\n });\n\n if (props.onClick) {\n props.onClick(...args);\n }\n };\n\n return { ...props,\n onClick\n };\n }\n\n return props;\n};\n\nconst useComponentProps = props => {\n if (props.component != null) {\n return { ...props,\n DynamicLink: props.component\n };\n }\n\n return props;\n};\n\nconst dropInternalProps = props => {\n /* eslint-disable @typescript-eslint/no-unused-vars */\n const {\n scroller,\n externalRoutes,\n host,\n external,\n smooth,\n ...rest\n } = props;\n /* eslint-enable */\n\n return rest;\n};\n\nconst dropExternalProps = props => {\n if (props.DynamicLink === 'a' || props.DynamicLink === 'button') {\n /* eslint-disable @typescript-eslint/no-unused-vars */\n const {\n activeStyle,\n exact,\n strict,\n component,\n ...rest\n } = props;\n /* eslint-enable */\n\n return rest;\n }\n /* eslint-disable @typescript-eslint/no-unused-vars */\n\n\n const {\n component,\n ...rest\n } = props;\n /* eslint-enable */\n\n return rest;\n};\n\nconst hook = propsIn => {\n const props = {\n externalRoutes: [],\n scroller,\n host: window.location.origin,\n smooth: hasSmoothMotion(window),\n ...propsIn\n };\n return dropExternalProps(dropInternalProps(useComponentProps(addScrolling(getComponentProps(getExternalFlag$1(parseLocationProps(props)))))));\n};\n\nconst PureLink = ({\n DynamicLink,\n ...props\n}) => /*#__PURE__*/React.createElement(DynamicLink, props);\n\nconst enhance = puree('DynamicLink')(hook);\nvar Link = enhance(PureLink); // eslint-disable-next-line\n\nconst hoc = puree('DynamicLink')(hook);\n\nconst hook$1 = props => {\n var _props$externalRoutes;\n\n const href = props.href;\n const host = window.location.origin;\n const to = getLocationUrl(props.to);\n const externalRoutes = (_props$externalRoutes = props.externalRoutes) != null ? _props$externalRoutes : [];\n const external = getExternalFlag(href, to, externalRoutes, host);\n const dispatch = useDispatch();\n\n if (href != null) {\n return () => {\n window.location.href = href;\n };\n }\n\n if (to != null) {\n if (external) {\n return () => {\n window.location.href = to;\n };\n }\n\n return () => {\n dispatch(push(getLinkPath(host, externalRoutes, to)));\n\n if (isHashUrl(to)) {\n scroller.scrollTo(getLocationUrl(to).slice(1), {\n duration: 500,\n delay: 100,\n smooth: hasSmoothMotion(window)\n });\n }\n };\n }\n\n return () => {// noop\n };\n};\n\nexport { Link as DynamicLink, hook$1 as dynamicClick, hoc as dynamicLinkHoc, hook as dynamicLinkHook };\n","function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nexport { _extends as _ };\n","import './index-b94e3459.js';\nimport { Colorway } from '@ux/theme-utils';\n\nconst hasLength = list => list.length > 0;\nconst hasListLength = obj => hasLength(Object.keys(obj));\nconst isDark = x => x === Colorway.DARK;\nconst isPrimary = x => x === Colorway.PRIMARY;\n\nexport { hasLength as a, isPrimary as b, hasListLength as h, isDark as i };\n"],"sourceRoot":""}