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AAA,cAACM,EAAAA,EAAW,CAACH,KAAK,SAVf,IAaZ,I","sources":["webpack://app/./node_modules/@lacedltd/laced-components/dist/src/components/atoms/GlobalNotification/GlobalNotification.styles.js","webpack://app/./node_modules/@lacedltd/laced-components/dist/src/components/atoms/GlobalNotification/GlobalNotification.js","webpack://app/./app/javascript/components/shared/HolidaySeasonDeliveryGuaranteeBanner/HolidaySeasonDeliveryGuaranteeBanner.styles.ts","webpack://app/./app/javascript/components/shared/HolidaySeasonDeliveryGuaranteeBanner/HolidaySeasonDeliveryGuaranteeBanner.tsx"],"sourcesContent":["import '@emotion/react';\nimport styled from '@emotion/styled';\nimport tokens from '@lacedltd/design-tokens';\nimport { mediaQuery } from '../../../helpers/media.js';\nimport '../../../helpers/animation.js';\n\nvar _a;\r\nvar GlobalNotification = styled.div((_a = {\r\n width: \"100%\",\r\n backgroundColor: tokens.color.airJordan.p,\r\n color: tokens.color.yeezy.p,\r\n padding: \"\".concat(tokens.spacing[3], \" \").concat(tokens.spacing[5]),\r\n textAlign: \"center\",\r\n fontFamily: tokens.fontFamilies.primary,\r\n fontSize: tokens.fontSize[2]\r\n },\r\n _a[mediaQuery.m.min] = {\r\n padding: \"\".concat(tokens.spacing[3], \" \").concat(tokens.spacing[8]),\r\n },\r\n _a));\n\nexport { GlobalNotification };\n//# sourceMappingURL=GlobalNotification.styles.js.map\n","import * as React from 'react';\nimport { GlobalNotification as GlobalNotification$1 } from './GlobalNotification.styles.js';\n\nvar GlobalNotification = function (_a) {\r\n var children = _a.children;\r\n return React.createElement(GlobalNotification$1, { role: \"banner\" }, children);\r\n};\n\nexport { GlobalNotification as default };\n//# sourceMappingURL=GlobalNotification.js.map\n","import styled from '@emotion/styled'\nimport tokens from '@lacedltd/design-tokens'\n\nexport const CentredRow = styled.div({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n gap: tokens.spacing[5]\n})\n","import { GlobalNotification, Icons, Link } from '@lacedltd/laced-components'\nimport * as React from 'react'\nimport { useFeatureIsOn } from '@growthbook/growthbook-react'\nimport { useLocale, useTranslation } from 'hooks'\nimport { withGrowthbook, withTranslations } from 'helpers'\nimport * as S from './HolidaySeasonDeliveryGuaranteeBanner.styles'\n\nconst onValidPage = (path: string) => {\n return !(path.includes('admin') || path.includes('checkout'))\n}\n\nconst HolidaySeasonDeliveryGuaranteeBanner = () => {\n const { localiseUrl, location } = useLocale()\n const { t } = useTranslation()\n const pdArrivesBeforeChristmas = useFeatureIsOn('pd_arrives_before_christmas')\n const pdArrivesBeforeNewYear = useFeatureIsOn('pd_arrives_before_new_year')\n\n if (!onValidPage(window.location.pathname)) return null\n if (location.code !== 'GB') return null\n\n let message = ''\n\n if (pdArrivesBeforeChristmas) {\n message = t('react_components.seasonal.banner.guaranteed_before_christmas')\n }\n\n if (pdArrivesBeforeNewYear) {\n message = t('react_components.seasonal.banner.guaranteed_before_nye')\n }\n\n if (!message) return null\n\n return (\n \n \n \n {message} \n \n \n \n )\n}\n\nexport default withGrowthbook(\n withTranslations(HolidaySeasonDeliveryGuaranteeBanner)\n)\n"],"names":["_a","GlobalNotification","div","width","backgroundColor","airJordan","p","color","yeezy","padding","concat","textAlign","fontFamily","primary","fontSize","media","m","min","children","role","CentredRow","_styled","target","display","alignItems","justifyContent","gap","tokens","withGrowthbook","withTranslations","HolidaySeasonDeliveryGuaranteeBanner","localiseUrl","location","useLocale","t","useTranslation","pdArrivesBeforeChristmas","useFeatureIsOn","pdArrivesBeforeNewYear","path","window","pathname","includes","code","message","React","Link","href","size","darkMode","S","Icons"],"sourceRoot":""}