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AkG,OAAA,CAAAvD,OAAA,CAAA3C,EAAAkG,OAAA,CAAAlG,EAAAkG,OAAA,CAAAK,UAAA,oBAAAvG,CAAA,EAAAA,EAAAkG,OAAA,UAAAlG,CAAA,CAAAC,CAAA,WAAAD,EAAA,aAAAE,EAAAC,EAAAQ,EAAA,GAAAC,EAAAQ,OAAAC,IAAA,CAAArB,GAAA,IAAAG,EAAA,EAAAA,EAAAS,EAAAiB,MAAA,CAAA1B,IAAAD,EAAAU,CAAA,CAAAT,EAAA,CAAAF,EAAAkG,OAAA,CAAAjG,IAAA,GAAAS,CAAAA,CAAA,CAAAT,EAAA,CAAAF,CAAA,CAAAE,EAAA,SAAAS,CAAA,EAAAX,EAAAkG,OAAA,CAAAvD,OAAA,CAAA3C,EAAAkG,OAAA,CAAAlG,EAAAkG,OAAA,CAAAK,UAAA","sources":["webpack://_N_E/./components/Label/Label.js","webpack://_N_E/./components/UserQuoteBlock/UserQuoteBlock.js","webpack://_N_E/./node_modules/next/dist/compiled/@babel/runtime/helpers/objectWithoutProperties.js","webpack://_N_E/./node_modules/next/dist/compiled/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","webpack://_N_E/"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\nimport DOMPurify from 'isomorphic-dompurify';\n\nexport default Label;\n\nexport function Label({ label, tokens }) {\n if (!label) {\n return '';\n } else if (tokens) {\n return replaceTokensFromString(label?.fields?.text || label, tokens);\n } else {\n return label?.fields?.text || label;\n }\n}\n\nLabel.propTypes = {\n label: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.object\n ]),\n tokens: PropTypes.object,\n};\n\nexport function LabelHTML({ label, tokens, ...props }) {\n if (!label) {\n return (\n \n );\n } else if (tokens) {\n return (\n \n );\n } else {\n return (\n \n );\n }\n}\n\nLabelHTML.propTypes = {\n label: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.object\n ]),\n tokens: PropTypes.object,\n};\n\nexport function replaceTokensFromString(s, tokens) {\n for (let tokenKey in tokens) {\n s = s.replace(new RegExp('{' + tokenKey + '}', 'g'), tokens[tokenKey]);\n }\n\n return s;\n}\n","import React from 'react';\nimport Block from '../../adapters/helpers/Block';\nimport dynamic from 'next/dynamic';\nconst Image = dynamic(()=>import('../Image/Image'))\nconst Heading = dynamic(()=>import('../Heading/Heading'))\nconst StarRating = dynamic(()=>import('../StarRating/StarRating'))\nimport PropTypes from 'prop-types'\nimport { mediaQueryHOC } from '../../adapters/helpers/Hooks'\nimport { UserQuoteConstants } from '../../adapters/helpers/Constants';\nimport {Label} from '../Label/Label';\nconst CustomerReview = dynamic(()=>import('../CustomerReviews/CustomerReview'))\nconst Disclaimer = dynamic(()=>import('../Disclaimer/Disclaimer'))\n\nfunction UserQuote(props) {\n const {extraAttributes, isMedium} = props;\n return (extraAttributes && extraAttributes.entity) ?\n renderUserQuoteBlock(extraAttributes.entity, props, isMedium) :\n '';\n}\n\nexport default mediaQueryHOC(UserQuote);\n\nfunction renderUserQuoteBlock(entity, props) {\n\n const product = entity;\n const productOverview = new Block(entity.productOverview);\n const propsBlock = new Block(props);\n\n const classNames = propsBlock.getFieldValue(UserQuoteConstants.classNames);\n const title = propsBlock.getFieldValue(UserQuoteConstants.title);\n const anchorId = propsBlock.getAnchorId();\n const mainAsset = productOverview.getFieldValue(UserQuoteConstants.mainAsset);\n const productName = productOverview.getFieldValue(UserQuoteConstants.name);\n const disclaimer = productOverview.getFieldValue(UserQuoteConstants.disclaimer);\n const writeAReviewLabel = Label({label: propsBlock.getFieldValue(UserQuoteConstants.writeAReviewLabel)});\n const userQuote = entity.featuredQuote;\n\n let authorName;\n let quote;\n let starRating;\n let displayUserReviews;\n\n if(userQuote) {\n authorName = userQuote.fields.authorName;\n quote = userQuote.fields.quote;\n starRating = userQuote.fields.starRating;\n displayUserReviews = userQuote.fields.displayUserReviews;\n }\n\n //User reviews are displayed by default if there is no featured quote\n if(displayUserReviews == undefined){\n displayUserReviews = true;\n }\n\n return (\n\n
\n
\n {userQuote &&\n
\n \n {title}\n \n
\n
\n
\n {props.isMedium ? (\n \n ) : (\n \n )}\n
\n\n
\n {quote}\n
\n\n
{authorName}
\n
\n
\n \n
\n
\n {disclaimer &&\n \n }\n
\n }\n\n \n\n
\n
\n\n )\n}\n\nrenderUserQuoteBlock.propTypes = {\n isMedium: PropTypes.bool,\n}\n","var objectWithoutPropertiesLoose = require(\"./objectWithoutPropertiesLoose.js\");\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nmodule.exports = _objectWithoutProperties;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nmodule.exports = _objectWithoutPropertiesLoose;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3509,4291],{44291:function(e,t,n){\"use strict\";n.r(t),n.d(t,{Label:function(){return m},LabelHTML:function(){return x},replaceTokensFromString:function(){return j}});var r=n(930),l=n.n(r),i=n(3323),o=n.n(i),s=n(45697),u=n.n(s),a=(n(67294),n(29238)),c=n.n(a),d=n(85893),f=[\"label\",\"tokens\"];function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.default=e.exports,e.exports.__esModule=!0},57826:function(e){e.exports=function(e,t){if(null==e)return{};var n,r,l={},i=Object.keys(e);for(r=0;r=0||(l[n]=e[n]);return l},e.exports.default=e.exports,e.exports.__esModule=!0}}]);"],"names":["self","webpackChunk_N_E","push","e","t","n","r","d","Label","m","LabelHTML","x","replaceTokensFromString","j","l","i","o","s","u","a","c","f","b","Object","keys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","enumerable","apply","p","arguments","length","forEach","getOwnPropertyDescriptors","defineProperties","defineProperty","label","tokens","fields","text","jsx","dangerouslySetInnerHTML","__html","sanitize","replace","default","propTypes","oneOfType","string","object","Promise","resolve","then","bind","loadableGenerated","webpack","Ui","v","g","h","O","y","w","_","q","extraAttributes","isMedium","entity","Z","productOverview","getFieldValue","qQ","classNames","title","getAnchorId","mainAsset","name","disclaimer","writeAReviewLabel","featuredQuote","authorName","quote","starRating","displayUserReviews","className","concat","id","children","jsxs","tag","h2","ratingNumber","smallSize","mediumSize","largeSize","image","document","product","productName","isDisplay","exports","indexOf","prototype","propertyIsEnumerable","call","__esModule"],"sourceRoot":""}