{"version":3,"sources":["webpack:///../node_modules/react-intl/lib/src/components/createFormattedComponent.js","webpack:///../node_modules/react-intl/lib/index.js","webpack:///./presentation/components/Shortcode/Alt.tsx","webpack:///./presentation/components/Shortcode/Bold.tsx","webpack:///./presentation/components/Shortcode/Italic.tsx","webpack:///./presentation/components/Shortcode/Link.tsx","webpack:///./presentation/components/Shortcode/Text.tsx","webpack:///src/presentation/components/Shortcode/Tooltip.tsx","webpack:///./presentation/components/Shortcode/PendingShortcode.tsx","webpack:///./presentation/components/Shortcode/Shortcode.tsx","webpack:///./presentation/components/Shortcode/index.ts","webpack:///./presentation/components/common/TrustpilotStars.tsx","webpack:///./presentation/components/common/Logo.tsx","webpack:///./presentation/utils/getTrustpilotUrl.js","webpack:///./presentation/components/ribbons/advocate-trustpilot/Review.tsx","webpack:///src/presentation/components/ribbons/advocate-trustpilot/Review.stylesheet.ts","webpack:///./presentation/components/ribbons/advocate-trustpilot/Reviews.tsx","webpack:///src/presentation/components/ribbons/advocate-trustpilot/Reviews.stylesheet.ts","webpack:///./presentation/components/ribbons/advocate-trustpilot/AdvocateTrustpilot.tsx","webpack:///src/presentation/components/ribbons/advocate-trustpilot/AdvocateTrustpilot.stylesheet.ts","webpack:///./presentation/components/ribbons/advocate-trustpilot/index.ts"],"names":["DisplayName","DisplayNameParts","__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","createFormattedDateTimePartsComponent","name","ComponentParts","props","Consumer","intl","value","children","formatProps","date","Date","formatDateToParts","formatTimeToParts","displayName","createFormattedComponent","Component","formattedValue","Text","textComponent","FormattedNumber","getColor","theme","against","Against","LIGHT","NEUTRAL","palette","primary","DARK","tertiary","Alt","RecursiveShortcode","elements","rest","useTheme","style","color","Bold","fontWeight","fontStyle","Link","contentType","attributes","isExternalRoute","route","useIsExternalRoute","goto","href","id","analyticskey","size","TextButtonSize","INHERIT","rel","target","newTab","formatText","text","newline","values","formattedText","replace","_","match","replaceValues","split","join","escapeShortCodes","string","reduce","prev","cur","nl2br","ReactTooltip","lazy","TooltipShortcode","isMinLg","useBreakpoints","eventToggle","undefined","padding","cssTheme","CallToAction","fallback","tagName","useDefaultStyles","content","maxWidth","randomWidth","Math","floor","random","PendingShortcode","code","display","width","lines","Glyph","Sup","List","OrderedList","ListItem","TickListItem","ProductPrice","PhoneNumber","map","element","index","Shortcode","JSON","stringify","String","getAgainst","type","glyph","Italic","Tooltip","ShortcodeWrapper","starMap","1","1.5","2","2.5","3","3.5","4","4.5","5","TrustpilotStars","rating","styles","useStyles","default","root","maxHeight","useStylesheet","loading","src","alt","Logo","colorway","url","isNilOrEmpty","Fragment","logo","Colorway","HIGHLIGHT","PRIMARY","PRIMARY_GRADIENT","getLogoForColorway","getFuzzyLang","r","getLocalizedTrustPilotUrl","lang","AdvocateReview","stars","excerpt","byline","classNames","textContainer","cx","getClassNames","className","component","AdvocateTrustpilotReviews","reviews","review","justify","Justify","CENTER","xs","sm","md","lg","Review","AdvocateTrustpilot","layout","trustScore","numberOfReviews","brandConfig","useBrandConfig","trustpilotPageId","trustPilot","pageId","currentLanguage","useLocale","reviewCount","total","Ribbon","Type","ADVOCATE_TRUST_PILOT","inner","title","Reviews","errorBoundary","visibilitySet"],"mappings":"oHAcIA,EAUAC,E,uBAxBAC,EAAkC,SAAUC,EAAGC,GAC/C,IAAIC,EAAI,GACR,IAAK,IAAIC,KAAKH,EAAOI,OAAOC,UAAUC,eAAeC,KAAKP,EAAGG,IAAMF,EAAEO,QAAQL,GAAK,IAC9ED,EAAEC,GAAKH,EAAEG,IACb,GAAS,MAALH,GAAqD,mBAAjCI,OAAOK,sBACtB,KAAIC,EAAI,EAAb,IAAgBP,EAAIC,OAAOK,sBAAsBT,GAAIU,EAAIP,EAAEQ,OAAQD,IAC3DT,EAAEO,QAAQL,EAAEO,IAAM,GAAKN,OAAOC,UAAUO,qBAAqBL,KAAKP,EAAGG,EAAEO,MACvER,EAAEC,EAAEO,IAAMV,EAAE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,SACE,cAACL,EAAA,EAAD,CAAMC,SAAUA,EAAUC,IAAKA,MAEjC,qBAAKqB,UAAWJ,EAAWH,MAA3B,SACE,cAAC3B,EAAA,EAAD,CAAiBC,OAAQ0B,MAE3B,cAAC,IAAD,CAAWO,UAAWJ,EAAWkC,MAAO7B,UAAU,IAAlD,SACE,cAAC,IAAD,CACEnH,GAAG,wCACHW,OAAQ,CACNgG,QACAsB,WAAY,cAAC,IAAD,CAAiB3K,MAAO2K,IACpCS,YAAa,cAAC,IAAD,CAAiBpL,MAAOoL,YAK7C,cAACO,EAAD,CAAS5B,QAASA,UAM1BU,EAAmBlK,YAAc,qBAElBqL,kBAAcC,YAAcpB,IE7E5BA","file":"pex-static/34/16.9b902be227477d15b1c3.chunk.js","sourcesContent":["var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport * as React from 'react';\nimport { invariantIntlContext } from '../utils';\nimport { Context } from './injectIntl';\nvar DisplayName;\n(function (DisplayName) {\n DisplayName[\"formatDate\"] = \"FormattedDate\";\n DisplayName[\"formatTime\"] = \"FormattedTime\";\n DisplayName[\"formatNumber\"] = \"FormattedNumber\";\n DisplayName[\"formatList\"] = \"FormattedList\";\n // Note that this DisplayName is the locale display name, not to be confused with\n // the name of the enum, which is for React component display name in dev tools.\n DisplayName[\"formatDisplayName\"] = \"FormattedDisplayName\";\n})(DisplayName || (DisplayName = {}));\nvar DisplayNameParts;\n(function (DisplayNameParts) {\n DisplayNameParts[\"formatDate\"] = \"FormattedDateParts\";\n DisplayNameParts[\"formatTime\"] = \"FormattedTimeParts\";\n DisplayNameParts[\"formatNumber\"] = \"FormattedNumberParts\";\n DisplayNameParts[\"formatList\"] = \"FormattedListParts\";\n})(DisplayNameParts || (DisplayNameParts = {}));\nexport var FormattedNumberParts = function (props) { return (React.createElement(Context.Consumer, null, function (intl) {\n invariantIntlContext(intl);\n var value = props.value, children = props.children, formatProps = __rest(props, [\"value\", \"children\"]);\n return children(intl.formatNumberToParts(value, formatProps));\n})); };\nFormattedNumberParts.displayName = 'FormattedNumberParts';\nexport function createFormattedDateTimePartsComponent(name) {\n var ComponentParts = function (props) { return (React.createElement(Context.Consumer, null, function (intl) {\n invariantIntlContext(intl);\n var value = props.value, children = props.children, formatProps = __rest(props, [\"value\", \"children\"]);\n var date = typeof value === 'string' ? new Date(value || 0) : value;\n var formattedParts = name === 'formatDate'\n ? intl.formatDateToParts(date, formatProps)\n : intl.formatTimeToParts(date, formatProps);\n return children(formattedParts);\n })); };\n ComponentParts.displayName = DisplayNameParts[name];\n return ComponentParts;\n}\nexport function createFormattedComponent(name) {\n var Component = function (props) { return (React.createElement(Context.Consumer, null, function (intl) {\n invariantIntlContext(intl);\n var value = props.value, children = props.children, formatProps = __rest(props, [\"value\", \"children\"]);\n // TODO: fix TS type definition for localeMatcher upstream\n var formattedValue = intl[name](value, formatProps);\n if (typeof children === 'function') {\n return children(formattedValue);\n }\n var Text = intl.textComponent || React.Fragment;\n return React.createElement(Text, null, formattedValue);\n })); };\n Component.displayName = DisplayName[name];\n return Component;\n}\n","import { createFormattedComponent, createFormattedDateTimePartsComponent, } from './src/components/createFormattedComponent';\nexport function defineMessages(msgs) {\n return msgs;\n}\nexport function defineMessage(msg) {\n return msg;\n}\nexport { default as injectIntl, Provider as RawIntlProvider, Context as IntlContext, } from './src/components/injectIntl';\nexport { default as useIntl } from './src/components/useIntl';\nexport { default as IntlProvider, createIntl } from './src/components/provider';\n// IMPORTANT: Explicit here to prevent api-extractor from outputing `import('./src/types').CustomFormatConfig`\nexport var FormattedDate = createFormattedComponent('formatDate');\nexport var FormattedTime = createFormattedComponent('formatTime');\nexport var FormattedNumber = createFormattedComponent('formatNumber');\nexport var FormattedList = createFormattedComponent('formatList');\nexport var FormattedDisplayName = createFormattedComponent('formatDisplayName');\nexport var FormattedDateParts = createFormattedDateTimePartsComponent('formatDate');\nexport var FormattedTimeParts = createFormattedDateTimePartsComponent('formatTime');\nexport { FormattedNumberParts } from './src/components/createFormattedComponent';\nexport { default as FormattedRelativeTime } from './src/components/relative';\nexport { default as FormattedPlural } from './src/components/plural';\nexport { default as FormattedMessage } from './src/components/message';\nexport { createIntlCache } from './src/utils';\nexport * from './src/error';\n","import React from 'react';\nimport { Theme, useTheme, Colorway as Against } from '@uds/theme-utils';\n\nimport { RecursiveShortcodeProps } from './Shortcode';\n\nconst getColor = (theme: Theme, against: Against | undefined) => {\n switch (against) {\n case Against.LIGHT:\n return theme.palette.primary;\n case Against.NEUTRAL:\n return theme.palette.primary;\n case Against.DARK:\n return theme.palette.tertiary;\n default:\n return 'inherit';\n }\n};\nconst Alt = ({ RecursiveShortcode, elements, against, ...rest }: RecursiveShortcodeProps) => {\n const { theme } = useTheme();\n return (\n \n {RecursiveShortcode ? : null}\n \n );\n};\n\nAlt.displayName = 'Alt';\n\nexport default Alt;\n","import React from 'react';\n\nimport { RecursiveShortcodeProps } from './Shortcode';\n\nconst Bold = ({ elements, RecursiveShortcode, ...rest }: RecursiveShortcodeProps) => (\n \n {RecursiveShortcode ? : null}\n \n);\n\nBold.displayName = 'Bold';\n\nexport default Bold;\n","import React from 'react';\n\nimport { RecursiveShortcodeProps } from './Shortcode';\n\nconst Bold = ({ elements, RecursiveShortcode, ...rest }: RecursiveShortcodeProps) => (\n \n {RecursiveShortcode ? : null}\n \n);\n\nBold.displayName = 'Bold';\n\nexport default Bold;\n","import React from 'react';\nimport { ReactRouterTextButton } from '@uds/react-router-adapter';\nimport { Size as TextButtonSize } from '@uds/text-button';\nimport { useIsExternalRoute } from 'domain/selectors/common';\n\nimport { RecursiveShortcodeProps } from './Shortcode';\n\nconst Link = ({ RecursiveShortcode, elements, contentType, attributes, against, ...rest }: RecursiveShortcodeProps) => {\n const [isExternalRoute, route] = useIsExternalRoute(attributes?.goto);\n return (\n \n {/* @ts-ignore: error when upgrading to @ux/config */}\n \n \n );\n};\n\nLink.displayName = 'Link';\n\nexport default Link;\n","import React, { Fragment } from 'react';\n\nconst escapeShortCodes = (text: string) => {\n if (typeof text !== 'string') {\n return null;\n }\n const replaceA = (text ?? '').split('[!').join('[');\n const replaceB = replaceA.split('!/]').join('/]');\n const replaceC = replaceB.split('[/!').join('[/');\n return replaceC;\n // using split/join because for some reason replaceAll fails for backstop\n // tests but not for backstop storybook?\n // if anyone can tell me why, I'd appreciate it.\n // return (text ?? '').replaceAll('[!', '[').replaceAll('!/]', '/]')\n // .replaceAll('[/!', '[/');\n};\n\nconst replaceValues = (text: string, values?: Record) => {\n if (values == null) {\n return text;\n }\n return text.replace(/{(?[^{]*)}/g, (_, match) => {\n return values[match];\n });\n};\n\nconst nl2br = (string: string) =>\n (string ?? '')\n .split('\\n')\n // @ts-ignore typescript cant figure typing out\n // eslint-disable-next-line react/no-array-index-key\n .reduce((prev, cur, i) => [prev,
, cur]);\n\nconst formatText = (text: string, newline: boolean | Element | undefined, values?: Record) => {\n const formattedText = replaceValues(escapeShortCodes(text) ?? '', values);\n if (newline === false) {\n return formattedText;\n }\n return nl2br(formattedText);\n};\n\ninterface OuterProps {\n text?: string | undefined;\n nl2br?: boolean | Element;\n values?: Record;\n}\nconst Text = ({ text, nl2br, values }: OuterProps) => {formatText(text ?? '', nl2br, values)};\n\nText.displayName = 'Text';\n\nexport default Text;\n","import React, { lazy, Suspense } from 'react';\nimport TextButton, { Size as TextButtonSize } from '@uds/text-button';\nimport { cssTheme } from '@uds/theme-utils';\nimport { useBreakpoints } from '@uds/responsive';\n\nimport { RecursiveShortcodeProps } from './Shortcode';\n\n/*\n React-Tooltip is a heavy dependency therefore we asynchronously load it in\n and gracefully decorate the functionality in once it has loaded\n*/\nconst ReactTooltip = lazy(\n () =>\n import(\n /* webpackChunkName: \"react-tooltip-lite\" */\n 'react-tooltip-lite'\n ),\n);\n\nconst TooltipShortcode = ({ RecursiveShortcode, attributes, elements }: RecursiveShortcodeProps) => {\n const { isMinLg } = useBreakpoints();\n const eventToggle = isMinLg ? undefined : 'onClick';\n const padding = cssTheme.gu2;\n const CallToAction = {attributes?.label};\n\n return (\n \n {/* @ts-ignore children doesnt exist */}\n \n {/* @ts-ignore: error when upgrading to @ux/config */}\n \n \n }\n >\n {CallToAction}\n \n \n );\n};\n\nTooltipShortcode.displayName = 'TooltipShortcode';\n\nexport default TooltipShortcode;\n","import React from 'react';\nimport { Shimmer } from '@uds/penders';\n\nimport { ShortcodeProps } from './';\n\nexport interface OuterProps {\n code?: ShortcodeProps;\n}\n\n// random % width for shimmer betwen 50% and 95%\nconst randomWidth = () => Math.floor(Math.random() * (95 - 50) + 50);\n\nconst PendingShortcode = ({ code }: OuterProps) => (\n \n \n \n);\n\nPendingShortcode.displayName = 'PendingShortcode';\n\nexport default PendingShortcode;\n","import React, { Suspense, lazy, ReactNode } from 'react';\nimport { getAgainst } from 'presentation/utils/colorway';\nimport { Layout } from 'domain/constants/layout';\n/*\n These shortcodes should not be lazy loaded in as they are already in the\n main bundle and it causes a unnecessary shimmer which makes the page feel\n less responsive\n*/\nimport { Colorway as Against } from '@uds/theme-utils';\nimport { IconName } from '@uds/glyphs';\n\nimport Alt from './Alt';\nimport Bold from './Bold';\nimport Italic from './Italic';\nimport Link from './Link';\nimport Text from './Text';\nimport Tooltip from './Tooltip';\nimport PendingShortcode from './PendingShortcode';\n\nimport { ShortcodeProps } from '.';\n\nconst Glyph = lazy(\n () =>\n import(\n /* webpackChunkName: \"shortcode-glyph\" */\n './Glyph'\n ),\n);\n\nconst Sup = lazy(\n () =>\n import(\n /* webpackChunkName: \"shortcode-sup\" */\n './Sup'\n ),\n);\n\nconst List = lazy(\n () =>\n import(\n /* webpackChunkName: \"shortcode-list\" */\n './List'\n ),\n);\n\nconst OrderedList = lazy(\n () =>\n import(\n /* webpackChunkName: \"shortcode-ordered-list\" */\n './OrderedList'\n ),\n);\n\nconst ListItem = lazy(\n () =>\n import(\n /* webpackChunkName: \"shortcode-list-item\" */\n './ListItem'\n ),\n);\n\nconst TickListItem = lazy(\n () =>\n import(\n /* webpackChunkName: \"shortcode-tick-list-item\" */\n './TickListItem'\n ),\n);\n\nconst ProductPrice = lazy(\n () =>\n import(\n /* webpackChunkName: \"shortcode-product-price\" */\n './ProductPrice'\n ),\n);\n\nconst PhoneNumber = lazy(\n () =>\n import(\n /* webpackChunkName: \"shortcode-phone-number\" */\n './PhoneNumber'\n ),\n);\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\ndeclare const i: number;\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\ndeclare const element: ShortcodeProps;\n\nexport interface ShortcodeAttributesProps {\n glyph: string;\n use?: number;\n number?: number;\n RecursiveShortcode: (props: RecursiveShortcodeProps) => JSX.Element;\n analyticskey?: string;\n goto?: string;\n label?: ReactNode;\n icon: IconName;\n prices?: Array<{\n gross: number;\n net: number;\n raw: number;\n tax: number;\n }>;\n inctax?: string;\n style?: string;\n rel?: string;\n newTab?: string;\n}\nexport interface RecursiveShortcodeProps {\n elements?: Array;\n RecursiveShortcode?: (props: RecursiveShortcodeProps) => JSX.Element;\n type?: string;\n name?: string;\n layout?: Layout;\n against?: Against;\n attributes?: ShortcodeAttributesProps | undefined;\n nl2br?: boolean;\n rest?: {\n [key: string]: any;\n };\n [key: string]: any;\n}\n\nconst RecursiveShortcode = ({ elements = [], ...rest }: RecursiveShortcodeProps) => (\n <>\n {elements.map((element, index) => (\n // Temporarily allow index as key waiting for BE to add ids\n // eslint-disable-next-line react/no-array-index-key\n \n ))}\n >\n);\n\nexport interface ShortcodeOuterProps {\n against?: Against;\n code: RecursiveShortcodeProps;\n type?: string;\n name?: string;\n values?: Record;\n}\n\nconst Shortcode = ({ code, ...rest }: RecursiveShortcodeProps) => {\n let props = {\n ...rest,\n } as RecursiveShortcodeProps;\n if (typeof code === 'string' || code instanceof String) {\n props.code = code;\n } else {\n props = {\n ...props,\n ...code,\n };\n }\n\n props.against = getAgainst(props.against);\n props.RecursiveShortcode = RecursiveShortcode;\n props.attributes = props?.attributes ?? ({} as ShortcodeAttributesProps);\n\n const { type, name, values } = props;\n if (typeof props.code === 'string') {\n return ;\n }\n if (props.type === 'text') {\n return ;\n }\n if (type === 'element') {\n switch (name) {\n case 'list':\n if (props?.attributes?.style === 'number') {\n return ;\n }\n return
;\n case 'li':\n if (props?.attributes?.style === 'glyph') {\n return ;\n }\n return ;\n case 'i':\n return ;\n case 'b':\n return ;\n case 'alt':\n return ;\n case 'sup':\n return ;\n case 'glyph':\n return ;\n case 'tel':\n return ;\n case 'link':\n return ;\n case 'productprice':\n return ;\n case 'tooltip':\n return ;\n case 'root':\n return ;\n default:\n return null;\n }\n }\n return null;\n};\n\nconst ShortcodeWrapper = (props: RecursiveShortcodeProps) => (\n }>\n \n \n);\n\nShortcodeWrapper.displayName = 'Shortcode';\n\nexport default ShortcodeWrapper;\n","import Shortcode, { RecursiveShortcodeProps } from './Shortcode';\n\n// TODO: help.. please.\nexport type ShortcodeProps = RecursiveShortcodeProps;\n\nexport default Shortcode;\n","import React from 'react';\nimport { useStyles } from '@team-griffin/stylr';\n\nconst useStylesheet = () =>\n useStyles({\n default: {\n root: {\n maxWidth: '100%',\n maxHeight: '100%',\n display: 'block',\n },\n },\n });\n\n// I'm not worried about the repetition of the prefix here as it'll be normalised away by gzip compression\n// as a dictionary item.\nconst starMap = {\n 1: 'https://img1.wsimg.com/cdn/Image/All/AllChannelsFoS/1/en-US/4627f20d-7040-4e7f-9abe-36501b4dd2e8/1-256x48.png',\n 1.5: 'https://img1.wsimg.com/cdn/Image/All/AllChannelsFoS/1/en-US/8f0e6ed7-723f-41e5-a402-2fd90025d763/1_5-256x48.png',\n 2: 'https://img1.wsimg.com/cdn/Image/All/AllChannelsFoS/1/en-US/a68be276-2c5e-4257-92ed-bc37a6a48950/2-256x48.png',\n 2.5: 'https://img1.wsimg.com/cdn/Image/All/AllChannelsFoS/1/en-US/a4e13b3a-499a-46e3-91f2-cc8c4b95e218/2_5-256x48.png',\n 3: 'https://img1.wsimg.com/cdn/Image/All/AllChannelsFoS/1/en-US/2f119448-0f7a-4bb5-878a-2a589e768761/3-256x48.png',\n 3.5: 'https://img1.wsimg.com/cdn/Image/All/AllChannelsFoS/1/en-US/0b1ee116-1add-4097-a3ad-dbbdcb4b9e41/3_5-256x48.png',\n 4: 'https://img1.wsimg.com/cdn/Image/All/AllChannelsFoS/1/en-US/22fcec44-6e44-49db-af28-940f92b03cb0/4-256x48.png',\n 4.5: 'https://img1.wsimg.com/cdn/Image/All/AllChannelsFoS/1/en-US/bbb6dfba-fd77-4f0c-b922-ab3cdc8a39af/4_5-256x48.png',\n 5: 'https://img1.wsimg.com/cdn/Image/All/AllChannelsFoS/1/en-US/91a13237-f0a8-49a3-bbf1-d6edf5fc1b69/5-256x48.png',\n} as {\n [key: string]: string;\n};\n\nexport const TrustpilotStars = ({ rating }: { rating: string }) => {\n const { styles } = useStylesheet();\n return
;\n};\n\nTrustpilotStars.displayName = 'TrustpilotStars';\n\nexport default TrustpilotStars;\n","import React, { Fragment } from 'react';\nimport { Colorway } from '@uds/theme-utils';\nimport { useStyles } from '@team-griffin/stylr';\nimport { isNilOrEmpty } from 'presentation/utils/generalUtils';\n\nconst logoOnDark =\n 'https://img1.wsimg.com/cdn/Image/All/AllChannelsFoS/1/en-US/9f2eeecc-b670-4bc1-a366-878f0de5122c/dark-288x72.png';\nconst logoOnLight =\n 'https://img1.wsimg.com/cdn/Image/All/AllChannelsFoS/1/en-US/68137afe-5794-4f19-b4aa-f8d5fd8f0215/light-288x72.png';\n\ninterface OuterProps {\n url: string;\n colorway: Colorway;\n}\nconst getLogoForColorway = (colorway: Colorway) => {\n switch (colorway) {\n case Colorway.DARK:\n case Colorway.HIGHLIGHT:\n case Colorway.PRIMARY:\n case Colorway.PRIMARY_GRADIENT:\n return logoOnDark;\n default:\n return logoOnLight;\n }\n};\n\nconst useStylesheet = () =>\n useStyles({\n default: {\n root: {\n display: 'block',\n maxWidth: '100%',\n maxHeight: '100%',\n },\n },\n });\n\nexport const Logo = ({ colorway, url }: OuterProps) => {\n const { styles } = useStylesheet();\n const Component = isNilOrEmpty(url) ? Fragment : 'a';\n const logo = getLogoForColorway(colorway);\n return (\n \n
\n \n );\n};\n\nLogo.displayName = 'Logo';\n\nexport default Logo;\n","import * as r from 'ramda';\n\nconst getFuzzyLang = r.pipe(r.defaultTo('en-gb'), r.split('-'), r.head, r.when(r.equals('en'), r.always('www')));\n\nconst getLocalizedTrustPilotUrl = (lang, id) =>\n r.ifElse(r.isNil, r.always(''), r.always(`https://${getFuzzyLang(lang)}.trustpilot.com/review/${id}`))(id);\n\nexport default getLocalizedTrustPilotUrl;\n","import React from 'react';\nimport TrustpilotStars from 'components/common/TrustpilotStars';\nimport PaddingBox from '@uds/padding-box';\nimport { BodyCopy, Heading04 } from '@uds/typography';\nimport Shortcode, { ShortcodeProps } from 'components/Shortcode';\n\nimport getClassNames from './Review.stylesheet';\n\nexport interface ReviewProps {\n stars: string;\n byline: string;\n excerpt: ShortcodeProps;\n}\n\ninterface OuterProps extends ReviewProps {}\n\nexport const AdvocateReview = ({ stars, excerpt, byline }: OuterProps) => {\n const classNames = getClassNames();\n return (\n \n \n \n
\n \n \n \n \n {byline}\n
\n \n );\n};\n\nAdvocateReview.displayName = 'AdvocateReview';\n\nexport default AdvocateReview;\n","import { css, cx } from 'linaria';\nimport { cssTheme } from '@uds/theme-utils';\nimport { classNames } from '@uds/typography';\n\nconst root = css`\n text-align: center;\n`;\n\nconst stars = css`\n height: ${cssTheme.gu3};\n display: flex;\n justify-content: center;\n margin-bottom: ${cssTheme.gu2};\n`;\n\nconst excerpt = css`\n font-style: normal;\n`;\n\nconst textContainer = css`\n margin: 0;\n padding: 0;\n`;\nexport default () => {\n return {\n root,\n stars,\n excerpt,\n textContainer: cx(classNames.content, textContainer),\n };\n};\n","import React from 'react';\nimport { Row, Column, Justify } from '@uds/grid';\n\nimport getClassNames from './Reviews.stylesheet';\nimport Review, { ReviewProps } from './Review';\n\ninterface OuterProps {\n reviews: Array;\n}\n\ndeclare const i: number;\ndeclare const review: ReviewProps;\n\nexport const AdvocateTrustpilotReviews = ({ reviews }: OuterProps) => {\n const classNames = getClassNames();\n return (\n \n \n \n \n \n
\n \n \n
\n );\n};\n\nAdvocateTrustpilotReviews.displayName = 'AdvocateTrustpilotReviews';\n\nexport default AdvocateTrustpilotReviews;\n","import { css } from 'linaria';\nimport { cssTheme } from '@uds/theme-utils';\n\nexport default () => {\n return {\n review: css`\n margin-top: ${cssTheme.gu1};\n ${cssTheme.breakpoints.sm} {\n margin-top: ${cssTheme.gu2};\n }\n `,\n };\n};\n","import React, { ComponentType } from 'react';\nimport Logo from 'components/common/Logo';\nimport TrustpilotStars from 'components/common/TrustpilotStars';\nimport { FormattedMessage, FormattedNumber } from 'react-intl';\nimport PaddingBox from '@uds/padding-box';\nimport { Container } from '@uds/grid';\nimport { Heading06 } from '@uds/typography';\nimport errorBoundary from 'presentation/hocs/errorBoundary';\nimport getLocalizedTrustPilotUrl from 'presentation/utils/getTrustpilotUrl';\nimport { RibbonProps, Type } from 'domain/constants/ribbons';\nimport visibilitySet from 'presentation/hocs/visibilitySet';\nimport { useBrandConfig, useLocale } from '@ux/whitelabel';\n\nimport { ReviewProps } from './Review';\nimport getClassNames from './AdvocateTrustpilot.stylesheet';\nimport Ribbon from '../Ribbon';\nimport Reviews from './Reviews';\n\nexport interface OuterProps extends RibbonProps {\n numberOfReviews?: {\n total: number;\n usedForTrustScoreCalculation: number;\n oneStar: number;\n twoStars: number;\n threeStars: number;\n fourStars: number;\n fiveStars: number;\n };\n stars: string;\n trustScore: number;\n reviews: Array;\n}\n\nexport const AdvocateTrustpilot = ({\n id,\n colorway,\n loading,\n layout,\n name,\n stars,\n trustScore,\n reviews,\n numberOfReviews,\n}: OuterProps) => {\n const brandConfig = useBrandConfig();\n const trustpilotPageId = brandConfig?.trustPilot?.pageId;\n const currentLanguage = useLocale();\n const url = getLocalizedTrustPilotUrl(currentLanguage, trustpilotPageId);\n const reviewCount = numberOfReviews?.total ?? null;\n const classNames = getClassNames();\n return (\n \n \n \n \n \n
\n \n \n
\n \n ,\n reviewCount: ,\n }}\n />\n \n \n \n \n \n );\n};\n\nAdvocateTrustpilot.displayName = 'AdvocateTrustpilot';\n\nexport default errorBoundary(visibilitySet(AdvocateTrustpilot)) as ComponentType;\n","import { cssTheme } from '@uds/theme-utils';\nimport { css } from 'linaria';\n\nconst inner = css`\n display: flex;\n flex-direction: column;\n align-items: center;\n`;\n\nconst title = css`\n text-align: center;\n`;\n\nconst reviews = css`\n ${cssTheme.breakpoints.lg} {\n padding: 0;\n }\n`;\n\nconst logo = css`\n height: ${cssTheme.gu4};\n margin-bottom: ${cssTheme.gu1};\n text-align: center;\n`;\n\nconst stars = css`\n height: ${cssTheme.gu3};\n margin-bottom: ${cssTheme.gu1};\n text-align: center;\n ${cssTheme.breakpoints.lg} {\n height: ${cssTheme.gu4};\n }\n`;\n\nexport default () => {\n return {\n inner,\n title,\n reviews,\n logo,\n stars,\n };\n};\n","import AdvocateTrustpilot from './AdvocateTrustpilot';\n\nexport default AdvocateTrustpilot;\n"],"sourceRoot":""}