{"version":3,"sources":["webpack:///../node_modules/react-intl/lib/src/components/createFormattedComponent.js","webpack:///../node_modules/react-intl/lib/index.js","webpack:///./domain/constants/alignment.ts","webpack:///./presentation/components/common/TrustpilotStars.tsx","webpack:///./presentation/components/common/Logo.tsx","webpack:///./presentation/utils/getTrustpilotUrl.js","webpack:///src/presentation/components/ribbons/aggregate-rating-trustpilot/AggregateRatingTrustpilot.stylesheet.ts","webpack:///./presentation/components/ribbons/aggregate-rating-trustpilot/AggregateRatingTrustpilot.tsx","webpack:///./presentation/components/ribbons/aggregate-rating-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","Alignment","starMap","1","1.5","2","2.5","3","3.5","4","4.5","5","TrustpilotStars","rating","styles","useStyles","default","root","maxWidth","maxHeight","display","useStylesheet","loading","src","alt","style","Logo","colorway","url","isNilOrEmpty","Fragment","logo","Colorway","DARK","HIGHLIGHT","PRIMARY","PRIMARY_GRADIENT","getLogoForColorway","href","target","getFuzzyLang","r","getLocalizedTrustPilotUrl","lang","id","title","stars","AggregateRatingTrustpilot","layout","hBaseline","trustScore","numberOfReviews","brandConfig","useBrandConfig","trustpilotPageId","trustPilot","pageId","currentLanguage","useLocale","classNames","alignment","cx","getClassNames","findResponsiveItem","useBreakpoints","alignmentMobile","CENTER","alignmentTablet","STARTING","reviewCount","total","Ribbon","flush","type","Type","AGGREGATE_RATING_TRUST_PILOT","className","text","depth","values","bold","reviews","imagery","errorBoundary","visibilitySet"],"mappings":"oHAcIA,EAUAC,E,uBAxBAC,EAAkC,SAAUC,EAAGC,GAC/C,IAAIC,EAAI,GACR,IAAK,IAAIC,KAAKH,EAAOI,OAAOC,UAAUC,eAAeC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IAAUmE,SAFgB,SAGrDpB,aAHqD,EAGrDA,EAAQY,WAH6C,EAGhC3D,IAAUmE,aAM3BC,EAAW,SAAGlB,aAAH,EAAGA,EAAiBmB,OAApB,EAA6B,KAE9C,OACE,cAACC,EAAA,EAAD,CACE3B,GAAIA,EACJjB,SAAUA,EACVqB,OAAQA,EACRwB,OAAO,EACPlD,QAASA,EACTxC,KAAMA,EACN2F,KAAMC,IAAKC,6BAPb,SASE,cAAC,IAAD,UACE,cAAC,IAAD,UACE,sBAAKC,UAAWjB,EAAW1C,KAA3B,UACE,qBAAK2D,UAAWjB,EAAWkB,KAA3B,SACE,cAAC,IAAD,CAAWD,UAAWjB,EAAWd,MAAOiC,MAAO7B,EAA/C,SACE,cAAC,IAAD,CACEL,GAAG,+CACHmC,OAAQ,CACNlE,OACE,wBAAQ+D,UAAWjB,EAAWqB,KAA9B,SACE,cAAC,IAAD,CACEpC,GAAG,gDACHmC,OAAQ,CACNjC,MAAO,cAAC,IAAD,CAAiB3D,MAAO2D,IAC/BI,WAAY,cAAC,IAAD,CAAiB/D,MAAO+D,SAK5C+B,QACE,wBAAQL,UAAWjB,EAAWqB,KAA9B,SACE,cAAC,IAAD,CACEpC,GAAG,iDACHmC,OAAQ,CACNE,QAAS,cAAC,IAAD,CAAiB9F,MAAOkF,gBASjD,sBAAKO,UAAWjB,EAAWuB,QAA3B,UACE,qBAAKN,UAAWjB,EAAW5B,KAA3B,SACE,cAACL,EAAA,EAAD,CAAMC,SAAUA,EAAUC,IAAKA,MAEjC,qBAAKgD,UAAWjB,EAAWb,MAA3B,SACE,cAAClC,EAAA,EAAD,CAAiBC,OAAQiC,mBAUzCC,EAA0BrD,YAAc,4BAEzByF,kBAAcC,YAAcrC,ICpH5BA","file":"pex-static/34/17.4fd796d1926c7bde3e8a.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","export enum Alignment {\n STARTING = 'STARTING',\n CENTER = 'CENTER',\n}\n\nexport default null;\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 { Alignment } from 'domain/constants/alignment';\nimport { css, cx } from 'linaria';\nimport { cssTheme } from '@uds/theme-utils';\n\nconst title = {\n default: css`\n text-align: left;\n `,\n centered: css`\n text-align: center;\n `,\n};\n\nconst root = {\n default: css`\n display: flex;\n flex-direction: column;\n ${cssTheme.breakpoints.md} {\n flex-direction: row;\n justify-content: space-between;\n }\n `,\n centered: css`\n && {\n justify-content: center;\n align-items: center;\n }\n `,\n};\n\nconst bold = css`\n font-weight: 600;\n`;\n\nconst imagery = css`\n margin-top: ${cssTheme.gu2};\n ${cssTheme.breakpoints.md} {\n display: flex;\n margin-top: 0;\n padding-left: ${cssTheme.gu3};\n }\n ${cssTheme.breakpoints.lg} {\n padding-left: ${cssTheme.gu4};\n }\n`;\n\nconst logo = {\n default: css`\n margin-bottom: ${cssTheme.gu2};\n height: ${cssTheme.gu4};\n ${cssTheme.breakpoints.md} {\n height: ${cssTheme.gu3};\n margin-left: auto;\n margin-top: 0;\n margin-right: ${cssTheme.gu2};\n margin-bottom: 0;\n }\n ${cssTheme.breakpoints.lg} {\n height: ${cssTheme.gu4};\n }\n `,\n centered: css`\n && {\n text-align: center;\n }\n `,\n};\n\nconst stars = {\n default: css`\n height: ${cssTheme.gu3};\n ${cssTheme.breakpoints.lg} {\n height: ${cssTheme.gu4};\n }\n `,\n centered: css`\n && {\n text-align: center;\n }\n `,\n};\n\nconst text = css`\n padding-right: ${cssTheme.gu3};\n ${cssTheme.breakpoints.lg} {\n padding-right: ${cssTheme.gu4};\n }\n`;\n\ninterface InnerProps {\n alignment: Alignment;\n}\n\nexport default ({ alignment }: InnerProps) => {\n return {\n root: cx(root.default, alignment === Alignment.CENTER && root.centered),\n bold,\n imagery,\n logo: cx(logo.default, alignment === Alignment.CENTER && logo.centered),\n stars: cx(stars.default, alignment === Alignment.CENTER && stars.centered),\n text,\n title: alignment === Alignment.CENTER ? title.centered : title.default,\n };\n};\n","import React, { ComponentType } from 'react';\nimport Logo from 'components/common/Logo';\nimport TrustpilotStars from 'components/common/TrustpilotStars';\nimport { Heading05 } from '@uds/typography';\nimport { FormattedMessage, FormattedNumber } from 'react-intl';\nimport { Container } from '@uds/grid';\nimport PaddingBox from '@uds/padding-box';\nimport { useBreakpoints } from '@uds/responsive';\nimport errorBoundary from 'presentation/hocs/errorBoundary';\nimport getLocalizedTrustPilotUrl from 'presentation/utils/getTrustpilotUrl';\nimport { RibbonProps, Type } from 'domain/constants/ribbons';\nimport { useBrandConfig, useLocale } from '@ux/whitelabel';\nimport visibilitySet from 'presentation/hocs/visibilitySet';\nimport findResponsiveItem from 'presentation/utils/findResponsiveItem';\nimport { Alignment } from 'domain/constants/alignment';\n\nimport Ribbon from '../Ribbon';\nimport getClassNames from './AggregateRatingTrustpilot.stylesheet';\n\nexport interface OuterProps extends RibbonProps {\n stars: string;\n trustScore: number;\n numberOfReviews?: {\n total?: number;\n usedForTrustScoreCalculation?: number;\n };\n url: string;\n hBaseline?: number;\n}\n\nexport const AggregateRatingTrustpilot = ({\n id,\n colorway,\n layout,\n loading,\n hBaseline = 1,\n stars,\n trustScore,\n name,\n numberOfReviews,\n}: OuterProps) => {\n const brandConfig = useBrandConfig();\n const trustpilotPageId = brandConfig?.trustPilot?.pageId;\n const currentLanguage = useLocale();\n\n const url = getLocalizedTrustPilotUrl(currentLanguage, trustpilotPageId);\n\n const alignment = findResponsiveItem(useBreakpoints(), [\n layout?.alignmentMobile ?? Alignment.CENTER,\n layout?.alignmentTablet ?? Alignment.STARTING,\n layout?.alignment ?? Alignment.STARTING,\n ]) as Alignment;\n\n const classNames = getClassNames({\n alignment,\n });\n const reviewCount = numberOfReviews?.total ?? null;\n \n return (\n \n \n \n \n \n \n \n ,\n trustScore: ,\n }}\n />\n \n ),\n reviews: (\n \n ,\n }}\n />\n \n ),\n }}\n />\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nAggregateRatingTrustpilot.displayName = 'AggregateRatingTrustpilot';\n\nexport default errorBoundary(visibilitySet(AggregateRatingTrustpilot)) as ComponentType;\n","import AggregateRatingTrustpilot from './AggregateRatingTrustpilot';\n\nexport default AggregateRatingTrustpilot;\n"],"sourceRoot":""}