{"version":3,"sources":["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/Desktop-5fa747c4.js","webpack:///../node_modules/react-height/lib/index.js","webpack:///../node_modules/react-height/lib/ReactHeight.js","webpack:///../node_modules/@ux/bookends/dist/es/index-906ad3e9.js"],"names":["Curvature","TypographySizing","Spacing","GridUnit","Colorway","gu2px","count","spacing","gu","SMALL","MEDIUM","LARGE","spacingToGridUnit","Math","floor","varPrefix","property","concat","useTheme","theme","content","fontSize","lineHeight","footnote","smallprint","SizeMap$3","LineHeightMap","headingL","size","typography","sizing","height","SizeMap$4","LineHeightMap$1","headingM","SizeMap$5","LineHeightMap$2","headingS","SizeMap$6","LineHeightMap$3","headingXs","SizeMap$7","LineHeightMap$4","headingXxs","_defineProperty","obj","key","value","Object","defineProperty","enumerable","configurable","writable","stylesheet","props","target","i","arguments","length","source","ownKeys","keys","getOwnPropertySymbols","filter","sym","getOwnPropertyDescriptor","forEach","_objectSpread","styles","modifier","namespace","opacify","clr","opacity","alpha","string","percentage","Menu","enhance","colorway","palette","default","ribbon","backgroundColor","headerBackground","style","color","width","link","Y","X","display","grey02","borderLeftColor","textDecoration","activeLink","fontWeight","cta","divider","LIGHT","DARK","NEUTRAL","grey12","PRIMARY","primary","PureSalesHeaderDesktop","logo","links","languageMap","supplementaryLinks","contactLinks","shortcutNav","homeUrl","basketUrl","basketItemCount","externalRoutes","showBasket","showAccount","setHeight","createElement","onHeightReady","contrast","showLogo","Desktop","ReactHeight","module","exports","_react","__esModule","_typeof","cache","_getRequireWildcardCache","has","get","newObj","hasPropertyDescriptor","prototype","hasOwnProperty","call","desc","set","_interopRequireWildcard","WeakMap","Symbol","iterator","constructor","_extends","assign","apply","this","_objectWithoutProperties","excluded","sourceKeys","indexOf","_objectWithoutPropertiesLoose","sourceSymbolKeys","propertyIsEnumerable","_defineProperties","descriptor","_getPrototypeOf","o","setPrototypeOf","getPrototypeOf","__proto__","_assertThisInitialized","self","ReferenceError","_setPrototypeOf","p","_PureComponent","_this","instance","Constructor","TypeError","_classCallCheck","_possibleConstructorReturn","el","wrapper","state","dirty","subClass","superClass","create","_inherits","protoProps","staticProps","_createClass","_this2","getElementHeight","setState","_ref","children","_this3","_this$props","hidden","overflow","ref","setWrapperRef","PureComponent","clientHeight","DesktopMasthead","MobileMasthead","DesktopNavigation","MobileNavigation"],"mappings":"8EAAA,qLAGIA,EAQAC,EAQAC,EAQAC,EAQAC,EAnCJ,UAKA,SAAWJ,GACTA,EAAUA,EAAe,IAAI,GAAK,MAClCA,EAAUA,EAAgB,KAAI,GAAK,OACnCA,EAAUA,EAAkB,OAAI,GAAK,SAHvC,CAIGA,IAAcA,EAAY,KAI7B,SAAWC,GACTA,EAAiBA,EAAwB,MAAI,GAAK,QAClDA,EAAiBA,EAAyB,OAAI,GAAK,SACnDA,EAAiBA,EAAwB,MAAI,GAAK,QAHpD,CAIGA,IAAqBA,EAAmB,KAI3C,SAAWC,GACTA,EAAQA,EAAe,MAAI,GAAK,QAChCA,EAAQA,EAAgB,OAAI,GAAK,SACjCA,EAAQA,EAAe,MAAI,GAAK,QAHlC,CAIGA,IAAYA,EAAU,KAIzB,SAAWC,GACTA,EAASA,EAAgB,MAAI,GAAK,QAClCA,EAASA,EAAiB,OAAI,GAAK,SACnCA,EAASA,EAAgB,MAAI,IAAM,QAHrC,CAIGA,IAAaA,EAAW,KAI3B,SAAWC,GACTA,EAAgB,MAAI,QACpBA,EAAkB,QAAI,UACtBA,EAAe,KAAI,OACnBA,EAAkB,QAAI,UACtBA,EAA2B,iBAAI,mBAC/BA,EAAoB,UAAI,YAN1B,CAOGA,IAAaA,EAAW,KAE3B,IAwBIC,EAAQ,SAAeC,EAAOC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oK,SAAU,WAEXpE,EAAgB,QAAER,cAAc,MAAO2B,EAAS,CACjDkD,IAAK/C,KAAKgD,eACT/I,GAAQyI,IAGNhE,EAAgB,QAAER,cAAc,MAAO2B,EAAS,CACrDkD,IAAK/C,KAAKgD,eACT/I,GAAQyI,OAIRnE,EAjHT,CAkHEG,EAAOuE,eAETxE,EAAQF,YAAcA,EAEtBhF,EAAgBgF,EAAa,eAAgB,CAC3CsE,QAAQ,EACRf,OAAO,EACPS,iBA/H4B,SAAiCZ,GAC7D,OAAOA,EAAGuB,iB,oBCxCZ,qJAEA,MAAMC,EAAkB,YAAiB,IAAM,sDACzCC,EAAiB,YAAiB,IAAM,gCAExCC,EAAoB,YAAiB,IAAM,sDAC3CC,EAAmB,YAAiB,IAAM","file":"pex-static/69.c7ec047a9128e3aaab89.chunk.js","sourcesContent":["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","import 'react-with-suspense-lazy';\nimport { withProps } from '@team-griffin/rehook';\nimport { puree } from '@ux/pure-enhance';\nimport React from 'react';\nimport { opacify, percentage, modifier } from '@ux/style-utils';\nimport cssSides, { Side } from '@team-griffin/css-sides';\nimport { useTheme, gu2px, Colorway } from '@ux/theme-utils';\nimport { useStyles } from '@team-griffin/stylr';\nimport longhand from '@team-griffin/css-longhand';\nimport { headingXxs } from '@ux/type-size';\nimport './index-b94e3459.js';\nimport { ReactHeight } from 'react-height';\nimport { D as DesktopMasthead, a as DesktopNavigation } from './index-906ad3e9.js';\n\nvar stylesheet = (({\n colorway\n}) => {\n const {\n theme\n } = useTheme();\n const {\n palette,\n spacing\n } = theme;\n return useStyles({\n default: {\n ribbon: {\n backgroundColor: palette.headerBackground,\n ...longhand('borderBottom', {\n style: 'solid',\n color: opacify('#000000', 0.1),\n width: 1\n })\n },\n link: { ...headingXxs(),\n ...cssSides('padding', Side.Y, gu2px(2, spacing)),\n ...cssSides('padding', Side.X, gu2px(3, spacing)),\n display: 'block',\n width: percentage(100),\n backgroundColor: '#ffffff',\n color: palette.grey02,\n borderLeftColor: '#ffffff',\n textDecoration: 'none'\n },\n activeLink: {\n fontWeight: 600,\n borderLeftColor: palette.cta\n },\n divider: { ...longhand('borderBottom', {\n width: 1,\n color: opacify('#000000', 0.1),\n style: 'solid'\n })\n }\n },\n [modifier('colorway', Colorway.LIGHT)]: {\n ribbon: {\n backgroundColor: '#ffffff'\n }\n },\n [modifier('colorway', Colorway.DARK)]: {\n ribbon: {\n backgroundColor: palette.grey02\n }\n },\n [modifier('colorway', Colorway.NEUTRAL)]: {\n ribbon: {\n backgroundColor: palette.grey12\n }\n },\n [modifier('colorway', Colorway.PRIMARY)]: {\n ribbon: {\n backgroundColor: palette.primary\n }\n }\n }, [{\n colorway\n }]);\n});\n\nconst enhance = puree('HeaderDesktop')(withProps(props => stylesheet(props)));\nconst PureSalesHeaderDesktop = ({\n styles,\n colorway,\n logo,\n links,\n languageMap,\n supplementaryLinks,\n contactLinks,\n shortcutNav,\n homeUrl,\n basketUrl,\n basketItemCount,\n externalRoutes,\n showBasket,\n showAccount,\n // events\n setHeight\n}) => /*#__PURE__*/React.createElement(ReactHeight, {\n onHeightReady: setHeight\n}, /*#__PURE__*/React.createElement(\"header\", null, /*#__PURE__*/React.createElement(DesktopMasthead, {\n externalRoutes: externalRoutes,\n shortcutNav: shortcutNav,\n showBasket: showBasket,\n showAccount: showAccount,\n basketUrl: basketUrl,\n basketItemCount: basketItemCount,\n supplementaryLinks: supplementaryLinks,\n contactLinks: contactLinks,\n logo: logo.contrast,\n homeUrl: homeUrl,\n showLogo: true,\n colorway: colorway,\n languageMap: languageMap\n}), /*#__PURE__*/React.createElement(\"div\", {\n style: styles.ribbon\n}, /*#__PURE__*/React.createElement(DesktopNavigation, {\n externalRoutes: externalRoutes,\n links: links,\n colorway: colorway\n}))));\nvar Desktop = enhance(PureSalesHeaderDesktop);\n\nexport default Desktop;\nexport { PureSalesHeaderDesktop, enhance };\n","\"use strict\";\n\nvar _require = require('./ReactHeight'),\n ReactHeight = _require.ReactHeight;\n\nReactHeight.ReactHeight = ReactHeight;\nmodule.exports = ReactHeight;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ReactHeight = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nfunction _getRequireWildcardCache() { if (typeof WeakMap !== \"function\") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\"default\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar getElementHeightDefault = function getElementHeightDefault(el) {\n return el.clientHeight;\n};\n\nvar ReactHeight =\n/*#__PURE__*/\nfunction (_PureComponent) {\n _inherits(ReactHeight, _PureComponent);\n\n function ReactHeight(props) {\n var _this;\n\n _classCallCheck(this, ReactHeight);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(ReactHeight).call(this, props));\n\n _defineProperty(_assertThisInitialized(_this), \"setWrapperRef\", function (el) {\n _this.wrapper = el;\n });\n\n _this.state = {\n dirty: props.dirty,\n height: 0\n };\n return _this;\n }\n\n _createClass(ReactHeight, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this2 = this;\n\n var getElementHeight = this.props.getElementHeight;\n var height = getElementHeight(this.wrapper);\n var dirty = false;\n this.setState({\n height: height,\n dirty: dirty\n }, function () {\n var onHeightReady = _this2.props.onHeightReady;\n var currentHeight = _this2.state.height;\n onHeightReady(currentHeight);\n });\n } // eslint-disable-next-line react/no-deprecated\n\n }, {\n key: \"componentWillReceiveProps\",\n value: function componentWillReceiveProps(_ref) {\n var children = _ref.children,\n dirty = _ref.dirty;\n var oldChildren = this.props.children;\n\n if (children !== oldChildren || dirty) {\n this.setState({\n dirty: true\n });\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate() {\n var _this3 = this;\n\n var getElementHeight = this.props.getElementHeight;\n var height = getElementHeight(this.wrapper);\n var dirty = false;\n var currentSavedHeight = this.state.height;\n\n if (height === currentSavedHeight) {\n // eslint-disable-next-line react/no-did-update-set-state\n this.setState({\n dirty: dirty\n });\n } else {\n // eslint-disable-next-line react/no-did-update-set-state\n this.setState({\n height: height,\n dirty: dirty\n }, function () {\n var onHeightReady = _this3.props.onHeightReady;\n var currentHeight = _this3.state.height;\n onHeightReady(currentHeight);\n });\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this$props = this.props,\n _onHeightReady = _this$props.onHeightReady,\n _getElementHeight = _this$props.getElementHeight,\n _dirty = _this$props.dirty,\n hidden = _this$props.hidden,\n children = _this$props.children,\n props = _objectWithoutProperties(_this$props, [\"onHeightReady\", \"getElementHeight\", \"dirty\", \"hidden\", \"children\"]);\n\n var dirty = this.state.dirty;\n\n if (hidden && !dirty) {\n return null;\n }\n\n if (hidden) {\n return _react[\"default\"].createElement(\"div\", {\n style: {\n height: 0,\n overflow: 'hidden'\n }\n }, _react[\"default\"].createElement(\"div\", _extends({\n ref: this.setWrapperRef\n }, props), children));\n }\n\n return _react[\"default\"].createElement(\"div\", _extends({\n ref: this.setWrapperRef\n }, props), children);\n }\n }]);\n\n return ReactHeight;\n}(_react.PureComponent);\n\nexports.ReactHeight = ReactHeight;\n\n_defineProperty(ReactHeight, \"defaultProps\", {\n hidden: false,\n dirty: true,\n getElementHeight: getElementHeightDefault\n});","import { withSuspenseLazy } from 'react-with-suspense-lazy';\n\nconst DesktopMasthead = withSuspenseLazy(() => import('./index-8b02e963.js'));\nconst MobileMasthead = withSuspenseLazy(() => import('./index-9598bb86.js'));\n\nconst DesktopNavigation = withSuspenseLazy(() => import('./index-8f4d97a7.js'));\nconst MobileNavigation = withSuspenseLazy(() => import('./index-ad590629.js'));\n\nexport { DesktopMasthead as D, MobileMasthead as M, DesktopNavigation as a, MobileNavigation as b };\n"],"sourceRoot":""}