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AK,KAAAX,EAAAY,OAAA,aAAAhB,EAAA,cAAAiB,IAAA,aAAAjB,EAAA,yBAAAa,SAAAjB,EAAA,GAAAR,EAAAsB,GAAA,EAAArB,EAAA,CAAAU,MAAAH,CAAA,MAAAR,EAAAsB,GAAA,EAAAtB,EAAA8B,QAAA,EAAAL,SAAAX,CAAA","sources":["webpack://_N_E/./components/RichTextLink/RichTextLink.js","webpack://_N_E/"],"sourcesContent":["import dynamic from 'next/dynamic';\nimport {RichTextLinkBlockConstants} from '../../adapters/helpers/Constants';\nimport Block from '../../adapters/helpers/Block';\nimport React, {Component, Suspense} from 'react';\nimport PropTypes from 'prop-types'\nimport Loader from \"../../adapters/helpers/Loader\";\nconst Image = dynamic(() => import('../Image/Image'));\n\n\nfunction RichTextLink(props) {\n const block = new Block(props);\n const image = block.getFieldValue(RichTextLinkBlockConstants.image);\n const linkType = block.getFieldValue(RichTextLinkBlockConstants.linkType);\n const title = block.getFieldValue(RichTextLinkBlockConstants.title);\n const isPDF = block.getFieldValue(RichTextLinkBlockConstants.isPdfLink);\n const url = isPDF ? block.getFieldValue(RichTextLinkBlockConstants.asset)?.fields?.file?.url : block.getFieldValue(RichTextLinkBlockConstants.url) \n\n return (\n }>\n
\n \n {image ? : <>{title}}\n \n
\n
\n )\n}\n\nRichTextLink.propTypes = {\n /**\n * The Link type (external, internal, social)\n */\n linkType: PropTypes.string,\n\n /**\n * Image used in the link\n */\n image: PropTypes.object,\n \n /**\n * The url the link points to\n */\n url: PropTypes.string,\n}\n\nexport default RichTextLink;\n\n","\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7698],{27698:function(e,l,n){n.r(l);var a=n(5152),r=n.n(a),t=n(24036),i=n(40483),u=n(67294),d=n(47322),s=n(85893),c=r()((function(){return n.e(8084).then(n.bind(n,48084))}),{loadableGenerated:{webpack:function(){return[48084]}}});l.default=function(e){var l,n,a,r=new i.Z(e),f=r.getFieldValue(t.yT.image),g=r.getFieldValue(t.yT.linkType),h=r.getFieldValue(t.yT.title),k=r.getFieldValue(t.yT.isPdfLink)?null==(l=r.getFieldValue(t.yT.asset))||null==(n=l.fields)||null==(a=n.file)?void 0:a.url:r.getFieldValue(t.yT.url);return(0,s.jsx)(u.Suspense,{fallback:(0,s.jsx)(d.default,{}),children:(0,s.jsx)(\"div\",{className:\"ob-rich-text-link\",children:(0,s.jsx)(\"a\",{href:k,target:\"external\"===g?\"_blank\":null,rel:\"external\"===g?\"noopener noreferrer\":\"\",children:f?(0,s.jsx)(c,{image:f}):(0,s.jsx)(s.Fragment,{children:h})})})})}}}]);"],"names":["self","webpackChunk_N_E","push","e","l","n","r","a","t","i","u","d","s","c","then","bind","loadableGenerated","webpack","default","Z","f","getFieldValue","yT","image","g","linkType","h","title","k","isPdfLink","asset","fields","file","url","jsx","Suspense","fallback","children","className","href","target","rel","Fragment"],"sourceRoot":""}