{"version":3,"file":"Callout.chunk.c707c6d47ad44cf47f1b.js","mappings":"0OACA,GAAgB,QAAU,uBAAuB,KAAO,uBAAuB,KAAO,uBAAuB,MAAQ,uBAAuB,QAAU,uBAAuB,MAAQ,uBAAuB,qBAAqB,uBAAuB,mBAAmB,uBAAuB,qBAAqB,uBAAuB,gBAAgB,wBCGvV,IAAKA,EAAwB,SAAxBA,GAAwB,OAAxBA,EAAwB,kBAAxBA,EAAwB,kBAAxBA,EAAwB,sBAAxBA,EAAwB,YAAxBA,CAAwB,M,wNCO7B,MAAMC,EAA2DC,IACpE,MAAM,MAAEC,EAAK,KAAEC,EAAI,KAAEC,EAAI,MAAEC,EAAK,kBAAEC,GAAsBL,EAaxD,OACIM,EAAAA,cAAA,OACIC,UAAWC,IACPC,EAAOV,QACe,YAAtBM,GAAmCI,EAAO,YAADC,OAAaL,IACtDD,GAASA,EAAMO,KAAOF,EAAO,wBAGhCL,GAASA,EAAMO,KAAOL,EAAAA,cAACM,EAAAA,EAAOC,EAAA,GAAKT,EAAK,CAAEU,QAASC,EAAAA,EAAgBC,QAAST,UAAWE,EAAOQ,SAC/FX,EAAAA,cAAA,OAAKC,UAAWE,EAAOS,SAClBjB,GAASK,EAAAA,cAAA,KAAGC,UAAWE,EAAOU,OAAQlB,GACtCC,GAAQI,EAAAA,cAAA,KAAGC,UAAWE,EAAOW,MAAOlB,GACpCC,GAAQA,EAAKkB,MACVf,EAAAA,cAACgB,EAAAA,KAAIT,EAAA,GAAKV,EAAI,CAAEoB,KAAMC,EAAAA,EAASC,QAASC,QAxBjCC,MACnB,OAAQtB,GACJ,KAAKP,EAAyB8B,QAC1B,OAAOC,EAAAA,EAAYD,QACvB,KAAK9B,EAAyBgC,UAC1B,OAAOD,EAAAA,EAAYC,UACvB,QACI,OAAOD,EAAAA,EAAYJ,QAC3B,EAgB6DE,GAAkBpB,UAAWE,EAAOa,SAG3F,C","sources":["webpack://Kristiania.Web/./Features/Partials/Callout/Callout.module.css?68b7","webpack://Kristiania.Web/./Features/Partials/Callout/CalloutBackgroundVariant.csharp.ts","webpack://Kristiania.Web/./Features/Partials/Callout/Callout.tsx"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"Callout\":\"o5HieFYoWOxBSqBaMxuJ\",\"Link\":\"xZcYbmyYIBXZ099OMnvD\",\"Text\":\"XY5TBgqMrRqFYOQ7O7ZQ\",\"Image\":\"mZq7ShjcsiUFkcP0AShl\",\"Content\":\"ASqyfzgRZ5D3rKknUKxU\",\"Title\":\"Y5fNcn2VNSt1xS89TywJ\",\"Variant--withImage\":\"Cl59d9a8ARh4rDeSU3Lx\",\"Variant--primary\":\"TQWUmT9Rn1I8zH35rzKa\",\"Variant--secondary\":\"vBqAn1FBmuFtRza7Xa_H\",\"Variant--grey\":\"_gcyNIafWvucm79gTNEn\"};","// This code was generated by a Reinforced.Typings tool.\n// Changes to this file may cause incorrect behavior and will be lost if\n// the code is regenerated.\n\nexport enum CalloutBackgroundVariant {\n\tDefault = \"default\",\n\tPrimary = \"primary\",\n\tSecondary = \"secondary\",\n\tGrey = \"grey\"\n}\n","import classNames from 'classnames';\nimport * as React from 'react';\nimport { Link } from '../Link/Link';\nimport { LinkType } from '../Link/LinkType.csharp';\nimport { LinkVariant } from '../Link/LinkVariant.csharp';\nimport { Picture } from '../Picture/Picture';\nimport { PictureProfiles } from '../Picture/PictureProfiles';\nimport styles from './Callout.module.css';\nimport { CalloutBackgroundVariant } from './CalloutBackgroundVariant.csharp';\nimport type { CalloutProps } from './CalloutProps.csharp';\n\nexport const Callout: React.FC> = props => {\n const { title, text, link, image, backgroundVariant } = props;\n\n const getLinkVariant = () => {\n switch (backgroundVariant) {\n case CalloutBackgroundVariant.Primary:\n return LinkVariant.Primary;\n case CalloutBackgroundVariant.Secondary:\n return LinkVariant.Secondary;\n default:\n return LinkVariant.Default;\n }\n };\n\n return (\n \n {image && image.url && }\n
\n {title &&

{title}

}\n {text &&

{text}

}\n {link && link.href && (\n \n )}\n
\n \n );\n};\n"],"names":["CalloutBackgroundVariant","Callout","props","title","text","link","image","backgroundVariant","React","className","classNames","styles","concat","url","Picture","_extends","profile","PictureProfiles","callout","Image","Content","Title","Text","href","Link","type","LinkType","Default","variant","getLinkVariant","Primary","LinkVariant","Secondary"],"sourceRoot":""}