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OAAOX,EAAIY,MAAKC,GAAQA,EAAKF,aAAeA,GAC9C,CAPWG,CAAclC,IAAoB,OAAVA,QAA4B,IAAVA,OAAmB,EAASA,EAAMmC,QAAU,EAAInC,EAAQ,GAAI+B,EAC/G,CAAE,MAAOK,GACP,MAAO,EACT,CACF,CAGA,C","sources":["components/views/Header/CTA/CTA.styles.js","components/views/Header/CTA/index.jsx","../node_modules/@micado-digital/react-ui/hooks/useSystemLinksExt.js"],"sourcesContent":["import makeStyles from \"@material-ui/styles/makeStyles\";\n\nconst styles = makeStyles(theme => ({\n\tcta: {\n\t\t\"& a\": {\n\t\t\tdisplay: \"block\"\n\t\t}\n\t}\n}));\n\nexport default styles;\n","import React from \"react\";\nimport clsx from \"clsx\";\nimport loadable from \"@loadable/component\";\nimport useSystemLinksExt from \"@micado-digital/react-ui/hooks/useSystemLinksExt\";\n\nimport styles from \"./CTA.styles\";\n\nconst Button = loadable(() => import(\"@material-ui/core/Button\"));\nconst ReactLink = loadable(() => import(\"@micado-digital/react-link/ReactLink\"));\n\nconst CTA = ({ isLandingpage = false }) => {\n\tconst css = styles();\n\tconst links = useSystemLinksExt();\n\tconst { title, url } = links(\"cta\") || {};\n\n\treturn (\n\t\t
\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t
\n\t);\n};\n\nexport default CTA;\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _react = require(\"react\");\nvar _PageContext = _interopRequireDefault(require(\"../context/PageContext\"));\nvar _WebProfileContext = _interopRequireDefault(require(\"../context/WebProfileContext\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\nconst useSystemLinksExt = () => {\n const [pageData] = (0, _react.useContext)(_PageContext.default);\n const [profileData] = (0, _react.useContext)(_WebProfileContext.default);\n const [links, setLinks] = (0, _react.useState)([]);\n const {\n lang\n } = pageData || {};\n const {\n customLinks\n } = profileData || {};\n (0, _react.useEffect)(() => {\n if (!customLinks || !lang) return;\n setLinks(customLinks);\n }, [customLinks, lang]);\n return function (identifier) {\n try {\n return resolveObject(links && (links === null || links === void 0 ? void 0 : links.length) > 0 ? links : \"\", identifier);\n } catch (error) {\n return \"\";\n }\n };\n function resolveObject(obj, identifier) {\n return obj.find(item => item.identifier === identifier);\n }\n};\nvar _default = exports.default = useSystemLinksExt;"],"names":["makeStyles","theme","cta","display","Button","loadable","ReactLink","_ref","isLandingpage","css","styles","links","useSystemLinksExt","title","url","_jsx","className","clsx","children","to","color","size","variant","dangerouslySetInnerHTML","__html","exports","_react","require","_PageContext","_interopRequireDefault","_WebProfileContext","obj","__esModule","default","pageData","useContext","profileData","setLinks","useState","lang","customLinks","useEffect","identifier","find","item","resolveObject","length","error"],"sourceRoot":""}