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,CAAwB,QAAZH,EAAChC,EAAMe,aAAK,IAAAiB,OAAA,EAAXA,EAAaI,YAC5C,OACEzB,EAAAA,cAACO,EAAAA,EAAc,CACbC,IAAIC,EAAAA,EAAAA,IAAQpB,EAAMO,OAClBL,OAAQF,EAAME,OACdmB,kBAAmBrB,EAAMc,gBACzBQ,MAAOtB,EAAMS,OAASE,EAAAA,cAACY,EAAAA,EAAoBvB,EAAMS,OACjDe,QACEb,EAAAA,cAAAA,EAAAA,SAAA,KACEA,EAAAA,cAAA,UAAKX,EAAMO,OACXI,EAAAA,cAAA,KAAGc,MAAO,CAAEC,SAAU,IAAM1B,EAAMM,MACjC2B,GACCtB,EAAAA,cAAC0B,EAAAA,KAAI,CAACC,GAAIL,GAAajC,EAAMuC,WAAa,KACxC5B,EAAAA,cAACkB,EAAAA,EAAM,CAACC,MAAO9B,EAAMQ,SAAUuB,UAAW,OAKlD,C","sources":["webpack://@nitro/gatsby-harvia.com/../gatsby-theme-harvia/src/components/dato/blocks/DatoCtaRef.tsx","webpack://@nitro/gatsby-harvia.com/../gatsby-theme-harvia/src/components/molecules/tileable-blocks/CtaToExternalUrlBlock.tsx","webpack://@nitro/gatsby-harvia.com/../gatsby-theme-harvia/src/components/molecules/tileable-blocks/CtaToPageBlock.tsx"],"sourcesContent":["import { graphql } from \"gatsby\"\nimport React from \"react\"\nimport { HarviaBackgroundColor } from \"../../layouts/BgColor\"\nimport CtaToExternalUrlBlock from \"../../molecules/tileable-blocks/CtaToExternalUrlBlock\"\nimport CtaToPageBlock from \"../../molecules/tileable-blocks/CtaToPageBlock\"\nimport { MediaTextBlockLayout } from \"../../molecules/tileable-blocks/MediaTextBlock\"\n//import * as styles from \"./DatoSharedCtaToPageRef.module.scss\"\n\nexport type DatoCtaRefProps = {\n cta:\n | ({ __typename: \"DatoCmsSharedCtaToPage\" } & Queries.DatoSharedCtaToPageFragment)\n | ({ __typename: \"DatoCmsSharedCtaToExternalUrl\" } & Queries.DatoSharedCtaToExternalUrlFragment)\n\n layout: MediaTextBlockLayout\n textBackground?: HarviaBackgroundColor\n}\n\nconst DatoCtaRef = (props: Queries.DatoCtaRefFragment) => {\n //console.log(\"Rendering DatoCtaRef\", props)\n\n if (!props.cta) return null\n\n const { cta, layout, textBackground } = props\n const bg = (textBackground || \"BrandWhite\") as HarviaBackgroundColor\n const la = (layout || \"Tile\") as MediaTextBlockLayout\n\n const { text, title, linkText, image } = cta\n\n if (!title || !linkText) {\n return null\n }\n\n switch (cta.__typename) {\n case \"DatoCmsSharedCtaToPage\":\n return (\n
{props.text}
\n{props.text}
\n {routePath && (\n \n \n \n )}\n >\n }\n />\n )\n}\n\nexport default CtaToPageBlock\n"],"names":["props","cta","layout","textBackground","bg","la","text","title","linkText","image","__typename","React","CtaToPageBlock","undefined","backgroundColor","route","url","CtaToExternalUrlBlock","MediaTextBlock","id","slugify","contentBackground","media","BackgroundMedia","content","style","flexGrow","ExternalLink","href","Button","label","tabIndex","_props$route","routePath","useRoutePath","getRoutePath","originalId","Link","to","urlParams"],"sourceRoot":""}