{"version":3,"file":"index.eb82c84e.js","sources":["../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/card-simple/views/mobile/styled.mjs","../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/card-simple/views/mobile/index.mjs","../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/card-simple/index.mjs","../../../../../../../node_modules/@babylon/ui-kit-common/esm/components/carousels/carousel-card-simple/views/desktop/styled.mjs","../../../../../../../node_modules/@babylon/ui-kit-common/esm/components/carousels/carousel-card-simple/views/desktop/index.mjs"],"sourcesContent":["import InnerMarkdownHTML from '@babylon/ui-kit-base/components/text/inner-markdown-HTML';\nimport { FlexMixin, FontMixin } from '@babylon/ui-kit-styles/common/mixins/helpers.styled';\nimport styled from 'styled-components';\n\nconst CardSimpleWrapperMobile = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"CardSimpleWrapperMobile\",\n componentId: \"sc-371406c3-0\"\n})([\n \"position:relative;transition:all 0.2s cubic-bezier(0.25,0.8,0.25,0.1);width:100%;& > figure{height:fit-content;img{object-fit:cover;\",\n \";}}\"\n], ({ $height = '250px' })=>`height:${$height}`);\nconst CardSimpleContentMobile = /*#__PURE__*/ styled.a.withConfig({\n displayName: \"CardSimpleContentMobile\",\n componentId: \"sc-371406c3-1\"\n})([\n \"\",\n \" background-color:\",\n \";bottom:0;left:0;padding:12px;position:absolute;right:0;top:0;\"\n], FlexMixin({\n align: 'center',\n direction: 'column',\n justify: 'center'\n}), ({ theme })=>theme.colors.black.low);\nconst CardSimpleTitleMobile = /*#__PURE__*/ styled(InnerMarkdownHTML).withConfig({\n displayName: \"CardSimpleTitleMobile\",\n componentId: \"sc-371406c3-2\"\n})([\n \"\",\n \" color:\",\n \";margin:0;text-align:center;text-transform:uppercase;padding:4px 8px;border:1px solid \",\n \";border-radius:4px;margin-bottom:8px;\"\n], FontMixin({\n size: 'medium',\n weight: 'medium',\n height: 'large'\n}), ({ theme })=>theme.colors.white.base, ({ theme })=>theme.colors.white.base);\nconst CardSimpleSubtitleMobile = /*#__PURE__*/ styled(InnerMarkdownHTML).withConfig({\n displayName: \"CardSimpleSubtitleMobile\",\n componentId: \"sc-371406c3-3\"\n})([\n \"\",\n \" color:\",\n \";margin:0;padding:8px 0;text-align:center;\"\n], FontMixin({\n size: 'medium',\n weight: 'light',\n height: 'medium'\n}), ({ theme })=>theme.colors.white.base);\nconst CardSimpleFromMobile = /*#__PURE__*/ styled.span.withConfig({\n displayName: \"CardSimpleFromMobile\",\n componentId: \"sc-371406c3-4\"\n})([\n \"\",\n \" color:\",\n \";\"\n], FontMixin({\n size: 'medium',\n weight: 'regular',\n height: 'small'\n}), ({ theme })=>theme.colors.white.base);\nconst CardSimplePriceMobile = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"CardSimplePriceMobile\",\n componentId: \"sc-371406c3-5\"\n})([\n \"& > .price{\",\n \" color:\",\n \";margin:0;}& > .currency{\",\n \" color:\",\n \";margin:0;}\"\n], FontMixin({\n size: 'larger',\n weight: 'medium',\n height: 'largest'\n}), ({ theme })=>theme.colors.white.base, FontMixin({\n size: 'larger',\n weight: 'medium',\n height: 'medium'\n}), ({ theme })=>theme.colors.white.base);\n\nexport { CardSimpleContentMobile, CardSimpleFromMobile, CardSimplePriceMobile, CardSimpleSubtitleMobile, CardSimpleTitleMobile, CardSimpleWrapperMobile };\n","import { jsxs, jsx, Fragment } from 'react/jsx-runtime';\nimport Image from '@babylon/ui-kit-base/components/multimedia/image';\nimport contextBabylon from '@babylon/ui-kit-context';\nimport { getCurrencySymbol } from '@babylon/ui-kit-helpers/currency';\nimport { nullsToUndefined } from '@babylon/ui-kit-helpers/null';\nimport { useContext } from 'react';\nimport { CARD_SIMPLE_CONSTANTS } from '../../constants.mjs';\nimport { CardSimpleWrapperMobile, CardSimpleContentMobile, CardSimpleTitleMobile, CardSimpleSubtitleMobile, CardSimpleFromMobile, CardSimplePriceMobile } from './styled.mjs';\n\nconst CardSimpleMobile = ({ title = '', subtitle, price, image, link, config, height, width, className })=>{\n const { Currency } = useContext(contextBabylon);\n const { alternative } = image ?? {};\n return /*#__PURE__*/ jsxs(CardSimpleWrapperMobile, {\n \"data-testid\": \"CardSimpleMobile\",\n $height: height,\n $width: width,\n className: className,\n children: [\n /*#__PURE__*/ jsx(Image, {\n ...image,\n alternative: alternative ? alternative : CARD_SIMPLE_CONSTANTS.DEFAULT_IMAGE\n }),\n /*#__PURE__*/ jsxs(CardSimpleContentMobile, {\n ...nullsToUndefined(link),\n children: [\n title && /*#__PURE__*/ jsx(CardSimpleTitleMobile, {\n content: title\n }),\n subtitle && /*#__PURE__*/ jsx(CardSimpleSubtitleMobile, {\n content: subtitle\n }),\n !!price && /*#__PURE__*/ jsxs(Fragment, {\n children: [\n /*#__PURE__*/ jsx(CardSimpleFromMobile, {\n children: config?.literals?.from\n }),\n /*#__PURE__*/ jsxs(CardSimplePriceMobile, {\n children: [\n /*#__PURE__*/ jsx(\"span\", {\n className: \"price\",\n children: price\n }),\n /*#__PURE__*/ jsx(\"span\", {\n className: \"currency\",\n children: getCurrencySymbol(Currency)\n })\n ]\n })\n ]\n })\n ]\n })\n ]\n });\n};\n\nexport { CardSimpleMobile as default };\n","import { generateViewsComponent } from '@babylon/ui-kit-helpers/views';\nimport CardSimpleDesktop from './views/desktop/index.mjs';\nimport CardSimpleMobile from './views/mobile/index.mjs';\n\nconst CardSimple = generateViewsComponent(CardSimpleDesktop, CardSimpleMobile);\n\nexport { CardSimple, CardSimple as default };\n","import { CardSimpleWrapperDesktop } from '@babylon/ui-kit-cards/components/cards/card-simple/views/desktop/styled';\nimport Slider from '@babylon/ui-kit-structures/components/others/slider';\nimport { BoxShadow } from '@babylon/ui-kit-styles/common/mixins/box-shadow.styled';\nimport { FlexMixin, FontMixin } from '@babylon/ui-kit-styles/common/mixins/helpers.styled';\nimport { BorderRadius } from '@babylon/ui-kit-styles/common/mixins/logical.styled';\nimport styled from 'styled-components';\n\nconst CarouselCardSimpleContainer = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"CarouselCardSimpleContainer\",\n componentId: \"sc-96218271-0\"\n})([\n \"\"\n]);\nconst CarouselCardSimpleSlider = /*#__PURE__*/ styled(Slider).withConfig({\n displayName: \"CarouselCardSimpleSlider\",\n componentId: \"sc-96218271-1\"\n})([\n \"&.carousel-card-simple-slider-secondary{\",\n \"{& img{height:176px;}& > a{background-color:\",\n \";}}}.splide__pagination{\",\n \"{visibility:hidden;}}.splide__arrows{\",\n \"{visibility:hidden;}& [disabled]{visibility:hidden;}left:-22px;right:-22px;width:calc(100% + 44px);> button{width:36px;height:36px;background-color:\",\n \";\",\n \" \",\n \" :hover{.nico-angle-right{::before{color:\",\n \";}}.nico-angle-left{::before{color:\",\n \";}}}}.nico-angle-right{::before{\",\n \" \",\n \"}}.nico-angle-left{::before{\",\n \" \",\n \"}}}\"\n], CardSimpleWrapperDesktop, ({ theme })=>theme.colors.black.high, ({ theme })=>theme.media.up('tablet'), ({ theme })=>theme.media.down('tablet'), ({ theme })=>theme.colors.white.base, BorderRadius({\n all: '100%'\n}), BoxShadow, ({ theme })=>theme.colors.primary.base, ({ theme })=>theme.colors.primary.base, FlexMixin({\n justify: 'center',\n align: 'center'\n}), FontMixin({\n size: 'small',\n weight: 'bold'\n}), FlexMixin({\n justify: 'center',\n align: 'center'\n}), FontMixin({\n size: 'small',\n weight: 'bold'\n}));\n\nexport { CarouselCardSimpleContainer, CarouselCardSimpleSlider };\n","import { jsxs, jsx } from 'react/jsx-runtime';\nimport Title from '@babylon/ui-kit-base/components/text/title';\nimport CardSimple from '@babylon/ui-kit-cards/components/cards/card-simple';\nimport { Children } from 'react';\nimport { useTheme } from 'styled-components';\nimport { CarouselCardSimpleContainer, CarouselCardSimpleSlider } from './styled.mjs';\n\nconst CarouselCardSimpleDesktop = ({ props })=>{\n const { title, config, items = [], variant = 'default' } = props ?? {};\n const theme = /*#__PURE__*/ useTheme();\n const slider = {\n breakpoints: {\n [theme.breakpoints.xxl]: {\n perPage: 4,\n perMove: 4\n },\n [theme.breakpoints.xl]: {\n perPage: 3,\n perMove: 3\n },\n [theme.breakpoints.lg]: {\n perPage: 2,\n perMove: 2\n }\n },\n arrows: config?.hasNavigation,\n gap: 12,\n pagination: config?.hasPagination,\n perMove: 4,\n perPage: 4,\n paginationVariant: 'bottom'\n };\n return /*#__PURE__*/ jsxs(CarouselCardSimpleContainer, {\n \"data-testid\": \"CarouselCardSimpleDesktop\",\n children: [\n title && /*#__PURE__*/ jsx(Title, {\n ...title\n }),\n /*#__PURE__*/ jsx(CarouselCardSimpleSlider, {\n ...slider,\n className: `carousel-card-simple-slider-${variant}`,\n children: Children.toArray(items.map((item)=>{\n const image = {\n ...item.image,\n ...config?.resize\n };\n const literals = {\n ...item.config?.literals,\n ...config?.literals\n };\n return /*#__PURE__*/ jsx(CardSimple, {\n ...item,\n image: image,\n config: {\n ...item.config,\n literals\n }\n });\n }))\n })\n ]\n });\n};\n\nexport { CarouselCardSimpleDesktop as default };\n"],"names":["CardSimpleWrapperMobile","styled","$height","CardSimpleContentMobile","FlexMixin","theme","CardSimpleTitleMobile","InnerMarkdownHTML","FontMixin","CardSimpleSubtitleMobile","CardSimpleFromMobile","CardSimplePriceMobile","CardSimpleMobile","title","subtitle","price","image","link","config","height","width","className","Currency","useContext","contextBabylon","alternative","jsxs","jsx","Image","CARD_SIMPLE_CONSTANTS","nullsToUndefined","Fragment","_a","getCurrencySymbol","CardSimple","generateViewsComponent","CardSimpleDesktop","CarouselCardSimpleContainer","CarouselCardSimpleSlider","Slider","CardSimpleWrapperDesktop","BorderRadius","BoxShadow","CarouselCardSimpleDesktop","props","items","variant","useTheme","slider","Title","Children","item","literals"],"mappings":"yMAIA,MAAMA,EAAwCC,EAAO,IAAI,WAAW,CAChE,YAAa,0BACb,YAAa,eACjB,CAAC,EAAE,CACC,uIACA,KACJ,EAAG,CAAC,CAAE,QAAAC,EAAU,OAAO,IAAK,UAAUA,CAAO,EAAE,EACzCC,EAAwCF,EAAO,EAAE,WAAW,C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