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,CAC3BC,IAFW,KAGXC,IAAKC,QACLC,IAAKD,WACLE,IAAKF,cACLG,IAAKH,gBACLI,IAAKJ,oBAcMK,EAAiB,CAC5BC,IAAK,OACLC,IAAK,OACLC,IAAK,OACL1F,IAAK,QAGA,SAAS2F,EAAkBC,GAChC,OAAOA,EAAIC,WAAWC,QAAQ,wBAAyB,IACzD,CAGA,IAAYC,EAMAC,GANZ,SAAYD,GACV,mBACA,kBACD,CAHD,CAAYA,IAAAA,EAAS,KAMrB,SAAYC,GACV,YACA,uBACD,CAHD,CAAYA,IAAAA,EAAQ","sources":["webpack://empori-base/./src/controls/logotypes/logotypeImg.tsx","webpack://empori-base/./src/controls/logotypes/logotypesGrid.tsx","webpack://empori-base/./src/controls/logotypes/logotypesSlideshow.tsx","webpack://empori-base/./src/controls/logotypes/logotypes.tsx","webpack://empori-base/./src/controls/logotypes/logotypesNavigation.tsx","webpack://empori-base/./src/empracoTypes.ts","webpack://empori-base/./src/util/util.ts"],"sourcesContent":["import { FilterColor, ImageWithInfo } from '../../empracoTypes';\r\nimport { FileExtensions } from '../../util/util';\r\nimport { CSSProperties } from 'react';\r\n\r\nfunction renderImg(url: string, alt: string, css: CSSProperties) {\r\n const width = 200;\r\n const height = css.maxHeight ? css.maxHeight : 75;\r\n\r\n return ;\r\n};\r\n\r\ninterface LogotypeImageProps extends ImageWithInfo {\r\n externalLink: boolean;\r\n maxHeight?: number;\r\n filterColor: FilterColor;\r\n parentStyling?: CSSProperties;\r\n}\r\n\r\nexport function Logotype(props: LogotypeImageProps) {\r\n if (!props.imgUrl) {\r\n return null;\r\n }\r\n\r\n const url = props.imgUrl.includes(FileExtensions.SVG)\r\n ? props.imgUrl\r\n : `${props.imgUrl}?width=200&format=webp`;\r\n\r\n const setTarget = () => {\r\n if (props.externalLink && (props.pageLink.startsWith('http') || props.pageLink.startsWith('www'))) {\r\n return '_blank';\r\n }\r\n\r\n return '_self';\r\n };\r\n\r\n const setInlineStyling = () => {\r\n const css = {filter: 'none', maxHeight: 'unset'};\r\n\r\n if (props.maxHeight) {\r\n css.maxHeight = `${props.maxHeight}px`;\r\n }\r\n\r\n if (!url || !url.includes(FileExtensions.SVG)) {\r\n return css;\r\n }\r\n\r\n if (props.filterColor === FilterColor.black) {\r\n css.filter = 'brightness(0)';\r\n }\r\n\r\n if (props.filterColor === FilterColor.gray) {\r\n css.filter = 'grayscale(1)';\r\n }\r\n\r\n if (props.filterColor === FilterColor.white) {\r\n css.filter = 'brightness(0) invert(1)';\r\n }\r\n\r\n return css;\r\n };\r\n\r\n if (props.pageLink) {\r\n return(\r\n