{"version":3,"file":"ContentPageShareableQuote-DvSI9DIq-chunk.js","sources":["../../../src/components/page/content-page/ContentPageShareableQuote.jsx"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport ContentPageSharePublicLinksSocial from \"./ContentPageSharePublicLinksSocial\";\n\nconst ContentPageShareableQuote = (props) => {\n\tconst { hideShare, quoteText, showQuotationMarks, theme, shareUrl, guid, sharePlatforms } =\n\t\tprops.dataset;\n\tconst platforms = JSON.parse(sharePlatforms).map((platform) => ({ label: platform }));\n\tconst quote =\n\t\tshowQuotationMarks === \"true\" || showQuotationMarks === true\n\t\t\t? \"\\u201C\" + quoteText + \"\\u201D\"\n\t\t\t: quoteText;\n\tconst analytics = {\n\t\taction: \"Share Quote_\" + guid,\n\t\tcategory: \"Share\",\n\t\tcomp: \"Share Quote\"\n\t};\n\n\treturn (\n\t\t
\n\t\t\t
\n\t\t\t
{quote}
\n\t\t\t{hideShare === \"false\" || hideShare === false ? (\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t) : null}\n\t\t
\n\t);\n};\n\nContentPageShareableQuote.propTypes = {\n\tdataset: PropTypes.shape({\n\t\tguid: PropTypes.string.isRequired,\n\t\tquoteText: PropTypes.string,\n\t\tshowQuotationMarks: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),\n\t\thideShare: PropTypes.oneOfType([PropTypes.string.isRequired, PropTypes.bool.isRequired]),\n\t\tshareUrl: PropTypes.string,\n\t\ttheme: PropTypes.string.isRequired,\n\t\tsharePlatforms: PropTypes.string.isRequired\n\t})\n};\n\nContentPageShareableQuote.defaultProps = {\n\tdataset: {\n\t\tguid: \"ABCDE01234\",\n\t\tquoteText:\n\t\t\t\"The future is always uncertain. But willingness to bear uncertainty is the key reason investors have the opportunity for profit.\",\n\t\tshowQuotationMarks: \"true\",\n\t\thideShare: \"false\",\n\t\tshareUrl: \"https://www.dimensional.com\",\n\t\ttheme: \"content-page-shareable-quote-theme-default\",\n\t\tsharePlatforms: '[\"facebook\", \"twitter\", \"linkedin\"]'\n\t}\n};\nexport default ContentPageShareableQuote;\n"],"names":["ContentPageShareableQuote","props","hideShare","quoteText","showQuotationMarks","theme","shareUrl","guid","sharePlatforms","platforms","platform","quote","analytics","jsxs","jsx","ContentPageSharePublicLinksSocial","PropTypes"],"mappings":"0JAIM,MAAAA,EAA6BC,GAAU,CACtC,KAAA,CAAE,UAAAC,EAAW,UAAAC,EAAW,mBAAAC,EAAoB,MAAAC,EAAO,SAAAC,EAAU,KAAAC,EAAM,eAAAC,GACxEP,EAAM,QACDQ,EAAY,KAAK,MAAMD,CAAc,EAAE,IAAKE,IAAc,CAAE,MAAOA,CAAW,EAAA,EAC9EC,EACLP,IAAuB,QAAUA,IAAuB,GACrD,IAAWD,EAAY,IACvBA,EACES,EAAY,CACjB,OAAQ,eAAiBL,EACzB,SAAU,QACV,KAAM,aACP,EAEA,OACEM,EAAA,KAAA,MAAA,CAAI,UAAW,gCAAgCR,CAAK,GACpD,SAAA,CAACS,EAAAA,IAAA,MAAA,CAAI,UAAU,SAAU,CAAA,EACxBA,EAAA,IAAA,MAAA,CAAI,UAAU,oCAAqC,SAAMH,EAAA,EACzDT,IAAc,SAAWA,IAAc,GACtCY,EAAAA,IAAA,MAAA,CAAI,UAAU,cACd,SAAAA,EAAA,IAACC,EAAA,CACA,UAAAH,EACA,SAAAN,EACA,KAAMG,EACN,UAAWE,CAAA,GAEb,EACG,IAAA,EACL,CAEF,EAEAX,EAA0B,UAAY,CACrC,QAASgB,EAAU,MAAM,CACxB,KAAMA,EAAU,OAAO,WACvB,UAAWA,EAAU,OACrB,mBAAoBA,EAAU,UAAU,CAACA,EAAU,OAAQA,EAAU,IAAI,CAAC,EAC1E,UAAWA,EAAU,UAAU,CAACA,EAAU,OAAO,WAAYA,EAAU,KAAK,UAAU,CAAC,EACvF,SAAUA,EAAU,OACpB,MAAOA,EAAU,OAAO,WACxB,eAAgBA,EAAU,OAAO,UACjC,CAAA,CACF,EAEAhB,EAA0B,aAAe,CACxC,QAAS,CACR,KAAM,aACN,UACC,mIACD,mBAAoB,OACpB,UAAW,QACX,SAAU,8BACV,MAAO,6CACP,eAAgB,qCAAA,CAElB"}