{"version":3,"file":"index.CgTLizEG.js","sources":["../../../../../../../node_modules/@babylon/ui-kit-cards/components/cards/favorite-card/hooks/useSetFavorite.js","../../../../../../../node_modules/@babylon/ui-kit-cards/components/cards/favorite-card/utils/index.js","../../../../../../../node_modules/@babylon/ui-kit-cards/components/cards/favorite-card/views/desktop/prices/styled.js","../../../../../../../node_modules/@babylon/ui-kit-cards/components/cards/favorite-card/views/desktop/prices/index.js","../../../../../../../node_modules/@babylon/ui-kit-cards/components/cards/favorite-card/views/desktop/styled.js","../../../../../../../node_modules/@babylon/ui-kit-cards/components/cards/favorite-card/views/desktop/index.js","../../../../../../../node_modules/@babylon/ui-kit-cards/components/cards/favorite-card/views/mobile/prices/styled.js","../../../../../../../node_modules/@babylon/ui-kit-cards/components/cards/favorite-card/views/mobile/prices/index.js","../../../../../../../node_modules/@babylon/ui-kit-cards/components/cards/favorite-card/views/mobile/styled.js","../../../../../../../node_modules/@babylon/ui-kit-cards/components/cards/favorite-card/views/mobile/index.js","../../../../../../../node_modules/@babylon/ui-kit-cards/components/cards/favorite-card/index.js","../../../../../../../node_modules/@babylon/ui-kit-cards/components/cards/favorite-card/views/desktop/card-skeleton/styled.js","../../../../../../../node_modules/@babylon/ui-kit-cards/components/cards/favorite-card/views/desktop/card-skeleton/index.js"],"sourcesContent":["import { useState, useCallback, useMemo } from 'react';\n\nconst useSetFavorite = (isFavorite, onSetFavorite)=>{\n const [iconStatus, setIconStatus] = useState(isFavorite ? 'nico-heart-filled' : 'nico-heart');\n const [isHeartFilled, setIsHeartFilled] = useState(isFavorite);\n const handleFavorite = useCallback(async ()=>{\n if (onSetFavorite) {\n const remoteRS = await onSetFavorite();\n if (remoteRS) {\n if (iconStatus === 'nico-heart-filled') {\n setIconStatus('nico-heart');\n setIsHeartFilled(false);\n } else {\n setIconStatus('nico-heart-filled');\n setIsHeartFilled(true);\n }\n }\n }\n }, [\n iconStatus,\n onSetFavorite\n ]);\n const actions = useMemo(()=>({\n handleFavorite\n }), [\n handleFavorite\n ]);\n return useMemo(()=>({\n actions,\n iconStatus,\n isHeartFilled\n }), [\n actions,\n iconStatus,\n isHeartFilled\n ]);\n};\n\nexport { useSetFavorite as default };\n","const positiveNumberOrUndefined = (num)=>{\n if (num && num > 0) return num;\n return undefined;\n};\nconst normalizePrice = (price)=>({\n ...price,\n value: positiveNumberOrUndefined(price?.value)\n });\n\nexport { normalizePrice };\n","import { FlexMixin, FontMixin } from '@babylon/ui-kit-styles/common/mixins/helpers.styled';\nimport styled from 'styled-components';\n\nconst PricesWrapper = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"PricesWrapper\"\n})([\n ``,\n ` flex-grow:1;color:`,\n `;`\n], FlexMixin({\n direction: 'column',\n align: 'flex-end'\n}), ({ theme })=>theme.colors.secondary.base);\nconst PriceTopDesktop = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"PriceTopDesktop\"\n})([\n `.from{`,\n ` &::after{content:' ';}`,\n `{font-weight:400;line-height:20px;}}`\n], FontMixin({\n size: 'small',\n height: 'small',\n weight: 'medium'\n}), ({ theme })=>theme.media.down('tablet'));\nconst PriceCurrentDesktop = /*#__PURE__*/ styled.span.withConfig({\n displayName: \"PriceCurrentDesktop\"\n})([\n `color:`,\n `;`,\n ` `,\n `{font-size:28px;line-height:38px;}`\n], ({ theme })=>theme.colors.secondary.base, FontMixin({\n size: 'largest',\n height: 'largest',\n weight: 'medium'\n}), ({ theme })=>theme.media.down('tablet'));\n\nexport { PriceCurrentDesktop, PriceTopDesktop, PricesWrapper };\n","import { jsxs, jsx } from 'react/jsx-runtime';\nimport PriceWithCurrency from '@babylon/ui-kit-base/components/text/price-with-currency';\nimport contextBabylon from '@babylon/ui-kit-context';\nimport { useContext } from 'react';\nimport { normalizePrice } from '../../../utils/index.js';\nimport { PricesWrapper, PriceTopDesktop, PriceCurrentDesktop } from './styled.js';\n\nconst Prices = (props)=>{\n const price = normalizePrice(props.price);\n const { Currency, Language } = useContext(contextBabylon);\n const priceProps = {\n price: price.value,\n currency: Currency,\n locale: Language\n };\n return /*#__PURE__*/ jsxs(PricesWrapper, {\n \"data-testid\": \"Prices\",\n children: [\n /*#__PURE__*/ jsx(PriceTopDesktop, {\n children: price.text && /*#__PURE__*/ jsx(\"span\", {\n className: \"from\",\n children: price.text\n })\n }),\n /*#__PURE__*/ jsx(PriceCurrentDesktop, {\n children: /*#__PURE__*/ jsx(PriceWithCurrency, {\n props: priceProps\n })\n })\n ]\n });\n};\n\nexport { Prices as default };\n","import Icon from '@babylon/ui-kit-base/components/icons/icon';\nimport Anchor from '@babylon/ui-kit-base/components/others/anchor';\nimport InnerMarkdownHTML from '@babylon/ui-kit-base/components/text/inner-markdown-HTML';\nimport { BoxShadow } from '@babylon/ui-kit-styles/common/mixins/box-shadow.styled';\nimport { FontMixin, FlexMixin } from '@babylon/ui-kit-styles/common/mixins/helpers.styled';\nimport { BorderRadius, Border, Padding, Margin } from '@babylon/ui-kit-styles/common/mixins/logical.styled';\nimport styled, { css } from 'styled-components';\n\nconst FavoriteCardDesktop = /*#__PURE__*/ styled.section.withConfig({\n displayName: \"FavoriteCardDesktop\"\n})([\n `height:426px;width:276px;`,\n ``\n], BorderRadius({\n all: '4px'\n}));\nconst FavoriteCardDesktopWrapper = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"FavoriteCardDesktopWrapper\"\n})([\n `width:100%;height:426px;`\n]);\nconst FavoriteCardDesktopHeader = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"FavoriteCardDesktopHeader\"\n})([\n `position:relative;`\n]);\nconst FavoriteCardDesktopHeaderBg = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"FavoriteCardDesktopHeaderBg\"\n})([\n ``,\n ` background-position:0 0;background-repeat:no-repeat;background-size:cover;`,\n ` width:100%;height:200px;`\n], BorderRadius({\n topLeft: '4px',\n topRight: '4px'\n}), ({ backgroundImage })=>/*#__PURE__*/ css([\n `background-image:url('`,\n `');`\n ], backgroundImage));\nconst FavoriteCardDesktopHeaderWrapper = /*#__PURE__*/ styled(Anchor).withConfig({\n displayName: \"FavoriteCardDesktopHeaderWrapper\"\n})([\n ``\n]);\nconst FavoriteCardDesktopHeaderLike = /*#__PURE__*/ styled(Icon).withConfig({\n displayName: \"FavoriteCardDesktopHeaderLike\"\n})([\n `position:absolute;right:16px;top:16px;`,\n ` `,\n ` cursor:pointer;`\n], FontMixin({\n size: 'large',\n weight: 'bold'\n}), ({ isHeartFilled, theme })=>isHeartFilled ? /*#__PURE__*/ css([\n `color:`,\n `;text-shadow:-1px 0 `,\n `,0 1px `,\n `,1px 0 `,\n `,0 -1px `,\n `;`\n ], theme.colors.status.danger, theme.colors.white.base, theme.colors.white.base, theme.colors.white.base, theme.colors.white.base) : /*#__PURE__*/ css([\n `color:`,\n `;`\n ], theme.colors.white.base));\nconst FavoriteCardDesktopBody = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"FavoriteCardDesktopBody\"\n})([\n ``,\n ` `,\n ` `,\n ` `,\n ` height:226px;`\n], FlexMixin({\n type: 'flex',\n direction: 'column',\n justify: 'space-between',\n align: 'flex-end'\n}), ({ theme })=>Border({\n all: `1px solid ${theme.colors.grays.light}`\n }), BorderRadius({\n bottomLeft: '4px',\n bottomRight: '4px'\n}), BoxShadow);\nconst FavoriteCardDesktopBodyWrapper = /*#__PURE__*/ styled(Anchor).withConfig({\n displayName: \"FavoriteCardDesktopBodyWrapper\"\n})([\n ``\n]);\nconst FavoriteCardDesktopTitle = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"FavoriteCardDesktopTitle\"\n})([\n ``,\n ` color:`,\n `;`,\n ``\n], FontMixin({\n size: 'large',\n weight: 'medium',\n height: 'large'\n}), ({ theme })=>theme.colors.primary.light, Padding({\n x: '16px',\n top: '12px',\n bottom: '2px'\n}));\nconst FavoriteCardDesktopSubtitle = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"FavoriteCardDesktopSubtitle\"\n})([\n ``,\n ` color:`,\n `;`,\n ``\n], FontMixin({\n size: 'base',\n weight: 'regular',\n height: 'base'\n}), ({ theme })=>theme.colors.primary.lighter, Padding({\n x: '16px',\n y: '0'\n}));\nconst FavoriteCardDesktopDescription = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"FavoriteCardDesktopDescription\"\n})([\n ``,\n ` color:`,\n `;`,\n ``\n], FontMixin({\n size: 'medium',\n height: 'large'\n}), ({ theme })=>theme.colors.grays.dark, Padding({\n x: '16px',\n top: '6px'\n}));\nconst FavoriteCardDesktopFooter = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"FavoriteCardDesktopFooter\"\n})([\n ``,\n ``\n], Padding({\n x: '16px',\n bottom: '8px'\n}));\nconst FavoriteCardDesktopFooterWrapper = /*#__PURE__*/ styled(Anchor).withConfig({\n displayName: \"FavoriteCardDesktopFooterWrapper\"\n})([\n ``\n]);\nconst FavoriteCardDesktopStarRating = /*#__PURE__*/ styled(Icon).withConfig({\n displayName: \"FavoriteCardDesktopStarRating\"\n})([\n ``,\n ` color:`,\n `;`\n], FontMixin({\n size: 'medium'\n}), ({ theme })=>theme.colors.rating.base);\nconst FavoriteCardDesktopDescriptionElement = /*#__PURE__*/ styled.span.withConfig({\n displayName: \"FavoriteCardDesktopDescriptionElement\"\n})([\n ``,\n ` & > i{`,\n `}`\n], FlexMixin({\n type: 'flex',\n justify: 'flex-start',\n align: 'center'\n}), FontMixin({\n size: 'smaller'\n}));\nconst FavoriteCardDesktopMarkdown = /*#__PURE__*/ styled(InnerMarkdownHTML).withConfig({\n displayName: \"FavoriteCardDesktopMarkdown\"\n})([\n ``,\n ` white-space:nowrap;text-overflow:ellipsis;overflow:hidden;`\n], Margin({\n right: '4px'\n}));\nconst FavoriteCardDesktopListDemo = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"FavoriteCardDesktopListDemo\"\n})([\n ``,\n ` grid-gap:18px;`\n], FlexMixin({\n type: 'flex',\n direction: 'row',\n wrap: true\n}));\n\nexport { FavoriteCardDesktop, FavoriteCardDesktopBody, FavoriteCardDesktopBodyWrapper, FavoriteCardDesktopDescription, FavoriteCardDesktopDescriptionElement, FavoriteCardDesktopFooter, FavoriteCardDesktopFooterWrapper, FavoriteCardDesktopHeader, FavoriteCardDesktopHeaderBg, FavoriteCardDesktopHeaderLike, FavoriteCardDesktopHeaderWrapper, FavoriteCardDesktopListDemo, FavoriteCardDesktopMarkdown, FavoriteCardDesktopStarRating, FavoriteCardDesktopSubtitle, FavoriteCardDesktopTitle, FavoriteCardDesktopWrapper };\n","import { jsx, jsxs } from 'react/jsx-runtime';\nimport contextBabylon from '@babylon/ui-kit-context';\nimport { genKey } from '@babylon/ui-kit-helpers/keys';\nimport { useContext, Children } from 'react';\nimport useSetFavorite from '../../hooks/useSetFavorite.js';\nimport Prices from './prices/index.js';\nimport { FavoriteCardDesktop as FavoriteCardDesktop$1, FavoriteCardDesktopWrapper, FavoriteCardDesktopHeader, FavoriteCardDesktopHeaderWrapper, FavoriteCardDesktopHeaderBg, FavoriteCardDesktopHeaderLike, FavoriteCardDesktopBody, FavoriteCardDesktopBodyWrapper, FavoriteCardDesktopTitle, FavoriteCardDesktopSubtitle, FavoriteCardDesktopDescription, FavoriteCardDesktopDescriptionElement, FavoriteCardDesktopMarkdown, FavoriteCardDesktopFooter, FavoriteCardDesktopFooterWrapper, FavoriteCardDesktopStarRating } from './styled.js';\n\n/**\n * Returns a string with or without stars replacing asterisks\n * @param title\n * @returns Title or Title with stars icon for rating\n */ const renderRatingDestop = (title, showOnlyRating = false)=>{\n const ratingPattern = /\\[\\*+\\]/;\n if (!showOnlyRating && !ratingPattern.test(title)) return title;\n const match = new RegExp(ratingPattern).exec(title);\n const ratingStars = match ? match[0].replace(/\\[|\\]/g, '') : '';\n const textPart = title.replace(ratingPattern, '');\n return /*#__PURE__*/ jsxs(\"div\", {\n children: [\n !showOnlyRating && textPart,\n ratingStars.split('').map((_, index)=>/*#__PURE__*/ jsx(FavoriteCardDesktopStarRating, {\n className: \"nico-star-filled\"\n }, genKey(index)))\n ]\n });\n};\nconst FavoriteCardDesktop = ({ link, title = '', image, subtitle = '', description = [], price = {}, isFavorite = true, canBeRefavorited = true, onSetFavorite = ()=>Promise.resolve(true) })=>{\n const { iconStatus, isHeartFilled, actions } = useSetFavorite(isFavorite, onSetFavorite);\n const context = useContext(contextBabylon);\n const mscdn = context.Cdn.startsWith('http') ? context.Cdn.substring(6) : context.Cdn;\n return /*#__PURE__*/ jsx(FavoriteCardDesktop$1, {\n \"data-testid\": \"FavoriteCard\",\n children: /*#__PURE__*/ jsxs(FavoriteCardDesktopWrapper, {\n children: [\n /*#__PURE__*/ jsxs(FavoriteCardDesktopHeader, {\n \"data-testid\": \"FavoriteCardHeader\",\n children: [\n /*#__PURE__*/ jsx(FavoriteCardDesktopHeaderWrapper, {\n ...link,\n target: link?.target ?? '_blank',\n children: /*#__PURE__*/ jsx(FavoriteCardDesktopHeaderBg, {\n backgroundImage: `${mscdn}${image?.src}`\n })\n }),\n (isHeartFilled || canBeRefavorited && !isHeartFilled) && /*#__PURE__*/ jsx(FavoriteCardDesktopHeaderLike, {\n \"data-testid\": \"FavoriteCardLike\",\n className: iconStatus,\n onClick: actions.handleFavorite,\n isHeartFilled: isHeartFilled\n })\n ]\n }),\n /*#__PURE__*/ jsxs(FavoriteCardDesktopBody, {\n \"data-testid\": \"FavoriteCardBody\",\n children: [\n /*#__PURE__*/ jsxs(FavoriteCardDesktopBodyWrapper, {\n ...link,\n target: link?.target ?? '_blank',\n children: [\n title && /*#__PURE__*/ jsx(FavoriteCardDesktopTitle, {\n \"data-testid\": \"FavoriteCardTitle\",\n children: renderRatingDestop(title)\n }),\n subtitle && /*#__PURE__*/ jsx(FavoriteCardDesktopSubtitle, {\n \"data-testid\": \"FavoriteCardSubtitle\",\n children: subtitle\n }),\n !!description.length && /*#__PURE__*/ jsx(FavoriteCardDesktopDescription, {\n children: Children.toArray(description.map((item)=>/*#__PURE__*/ jsxs(FavoriteCardDesktopDescriptionElement, {\n title: item.replace(/[*[\\]]/g, ''),\n \"data-testid\": \"FavoriteCardDescriptionElement\",\n children: [\n /*#__PURE__*/ jsx(FavoriteCardDesktopMarkdown, {\n tag: \"p\",\n content: item\n }),\n renderRatingDestop(item, true)\n ]\n })))\n })\n ]\n }),\n /*#__PURE__*/ jsx(FavoriteCardDesktopFooter, {\n \"data-testid\": \"FavoriteCardFooter\",\n children: /*#__PURE__*/ jsx(FavoriteCardDesktopFooterWrapper, {\n ...link,\n target: link?.target ?? '_blank',\n children: /*#__PURE__*/ jsx(Prices, {\n price: price\n })\n })\n })\n ]\n })\n ]\n })\n });\n};\n\nexport { FavoriteCardDesktop as default };\n","import { FlexMixin, FontMixin } from '@babylon/ui-kit-styles/common/mixins/helpers.styled';\nimport styled from 'styled-components';\n\nconst PricesWrapper = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"PricesWrapper\"\n})([\n ``,\n ` color:`,\n `;`\n], FlexMixin({\n direction: 'column',\n align: 'flex-end'\n}), ({ theme })=>theme.colors.secondary.base);\nconst PriceTopMobile = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"PriceTopMobile\"\n})([\n `.from{`,\n ` &::after{content:' ';}}`\n], FontMixin({\n size: 'small',\n height: 'small',\n weight: 'regular'\n}));\nconst PriceCurrentMobile = /*#__PURE__*/ styled.span.withConfig({\n displayName: \"PriceCurrentMobile\"\n})([\n `color:`,\n `;`,\n ``\n], ({ theme })=>theme.colors.secondary.base, FontMixin({\n size: 'larger',\n height: 'larger',\n weight: 'medium'\n}));\n\nexport { PriceCurrentMobile, PriceTopMobile, PricesWrapper };\n","import { jsxs, jsx } from 'react/jsx-runtime';\nimport PriceWithCurrency from '@babylon/ui-kit-base/components/text/price-with-currency';\nimport contextBabylon from '@babylon/ui-kit-context';\nimport { useContext } from 'react';\nimport { normalizePrice } from '../../../utils/index.js';\nimport { PricesWrapper, PriceTopMobile, PriceCurrentMobile } from './styled.js';\n\nconst Prices = (props)=>{\n const price = normalizePrice(props.price);\n const { Currency, Language } = useContext(contextBabylon);\n const priceProps = {\n price: price.value,\n currency: Currency,\n locale: Language\n };\n return /*#__PURE__*/ jsxs(PricesWrapper, {\n \"data-testid\": \"Prices\",\n children: [\n /*#__PURE__*/ jsx(PriceTopMobile, {\n children: price.text && /*#__PURE__*/ jsx(\"span\", {\n className: \"from\",\n children: price.text\n })\n }),\n /*#__PURE__*/ jsx(PriceCurrentMobile, {\n children: /*#__PURE__*/ jsx(PriceWithCurrency, {\n props: priceProps\n })\n })\n ]\n });\n};\n\nexport { Prices as default };\n","import Icon from '@babylon/ui-kit-base/components/icons/icon';\nimport Anchor from '@babylon/ui-kit-base/components/others/anchor';\nimport InnerMarkdownHTML from '@babylon/ui-kit-base/components/text/inner-markdown-HTML';\nimport { FlexMixin, FontMixin } from '@babylon/ui-kit-styles/common/mixins/helpers.styled';\nimport { Padding, Margin, Border } from '@babylon/ui-kit-styles/common/mixins/logical.styled';\nimport styled, { css } from 'styled-components';\n\nconst FavoriteCardMobile = /*#__PURE__*/ styled.section.withConfig({\n displayName: \"FavoriteCardMobile\"\n})([\n ``,\n ` flex-grow:1;height:100%;position:relative;`\n], ({ theme })=>Border({\n y: `1px solid ${theme.colors.grays.light}`\n }));\nconst FavoriteCardMobileWrapper = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"FavoriteCardMobileWrapper\"\n})([\n ``,\n ` position:relative;`\n], FlexMixin({\n type: 'flex',\n direction: 'row'\n}));\nconst FavoriteCardMobileHeader = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"FavoriteCardMobileHeader\"\n})([\n `position:relative;`\n]);\nconst FavoriteCardMobileHeaderBg = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"FavoriteCardMobileHeaderBg\"\n})([\n ``,\n ` background-position:0 0;background-repeat:no-repeat;background-size:cover;height:100%;min-height:140px;width:112px;`\n], ({ backgroundImage })=>/*#__PURE__*/ css([\n `background-image:url('`,\n `');`\n ], backgroundImage));\nconst FavoriteCardMobileHeaderWrapper = /*#__PURE__*/ styled(Anchor).withConfig({\n displayName: \"FavoriteCardMobileHeaderWrapper\"\n})([\n ``\n]);\nconst FavoriteCardMobileHeaderLike = /*#__PURE__*/ styled(Icon).withConfig({\n displayName: \"FavoriteCardMobileHeaderLike\"\n})([\n ``,\n ` position:absolute;right:16px;top:16px;`,\n ` cursor:pointer;`\n], FontMixin({\n size: 'large',\n weight: 'bold'\n}), ({ isHeartFilled, theme })=>isHeartFilled ? /*#__PURE__*/ css([\n `color:`,\n `;text-shadow:-1px 0 `,\n `,0 1px `,\n `,1px 0 `,\n `,0 -1px `,\n `;`\n ], theme.colors.status.danger, theme.colors.white.base, theme.colors.white.base, theme.colors.white.base, theme.colors.white.base) : /*#__PURE__*/ css([\n `color:`,\n `;`\n ], theme.colors.white.base));\nconst FavoriteCardMobileBody = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"FavoriteCardMobileBody\"\n})([\n ``\n]);\nconst FavoriteCardMobileBodyWrapper = /*#__PURE__*/ styled(Anchor).withConfig({\n displayName: \"FavoriteCardMobileBodyWrapper\"\n})([\n ``,\n ` height:100%;`\n], FlexMixin({\n type: 'flex',\n direction: 'column',\n justify: 'space-between'\n}));\nconst FavoriteCardMobileTitle = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"FavoriteCardMobileTitle\"\n})([\n ``,\n ` `,\n ` color:`,\n `;`\n], FontMixin({\n size: 'base',\n weight: 'regular',\n height: 'base'\n}), Padding({\n x: '12px',\n top: '8px'\n}), ({ theme })=>theme.colors.grays.darker);\nconst FavoriteCardMobileBodyTop = /*#__PURE__*/ styled.section.withConfig({\n displayName: \"FavoriteCardMobileBodyTop\"\n})([\n ``\n]);\nconst FavoriteCardMobileSubtitle = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"FavoriteCardMobileSubtitle\"\n})([\n ``,\n ` `,\n ` color:`,\n `;`\n], FontMixin({\n size: 'medium',\n weight: 'light',\n height: 'medium'\n}), Padding({\n x: '12px',\n bottom: '8px'\n}), ({ theme })=>theme.colors.grays.darker);\nconst FavoriteCardMobileDescription = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"FavoriteCardMobileDescription\"\n})([\n ``,\n ` `,\n ` `,\n ` color:`,\n `;`\n], FlexMixin({\n type: 'flex',\n direction: 'row',\n align: 'flex-end',\n justify: 'space-between'\n}), FontMixin({\n size: 'small',\n weight: 'light',\n height: 'small'\n}), Padding({\n x: '12px',\n y: '6px'\n}), ({ theme })=>theme.colors.grays.dark);\nconst FavoriteCardMobileDescriptionLeft = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"FavoriteCardMobileDescriptionLeft\"\n})([\n `max-width:150px;`\n]);\nconst FavoriteCardMobileStarRating = /*#__PURE__*/ styled(Icon).withConfig({\n displayName: \"FavoriteCardMobileStarRating\"\n})([\n ``,\n ` color:`,\n `;`\n], FontMixin({\n size: 'smaller'\n}), ({ theme })=>theme.colors.rating.base);\nconst FavoriteCardMobileDescriptionElement = /*#__PURE__*/ styled.span.withConfig({\n displayName: \"FavoriteCardMobileDescriptionElement\"\n})([\n ``,\n ` & > i{`,\n `}`\n], FlexMixin({\n type: 'flex',\n direction: 'row',\n align: 'center',\n wrap: true\n}), FontMixin({\n size: 'smaller'\n}));\nconst FavoriteCardMobileMarkdown = /*#__PURE__*/ styled(InnerMarkdownHTML).withConfig({\n displayName: \"FavoriteCardMobileMarkdown\"\n})([\n ``,\n ``\n], Margin({\n right: '4px'\n}));\nconst FavoriteCardMobileListDemo = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"FavoriteCardMobileListDemo\"\n})([\n ``,\n ` grid-gap:18px;`\n], FlexMixin({\n type: 'flex',\n direction: 'column'\n}));\n\nexport { FavoriteCardMobile, FavoriteCardMobileBody, FavoriteCardMobileBodyTop, FavoriteCardMobileBodyWrapper, FavoriteCardMobileDescription, FavoriteCardMobileDescriptionElement, FavoriteCardMobileDescriptionLeft, FavoriteCardMobileHeader, FavoriteCardMobileHeaderBg, FavoriteCardMobileHeaderLike, FavoriteCardMobileHeaderWrapper, FavoriteCardMobileListDemo, FavoriteCardMobileMarkdown, FavoriteCardMobileStarRating, FavoriteCardMobileSubtitle, FavoriteCardMobileTitle, FavoriteCardMobileWrapper };\n","import { jsx, jsxs } from 'react/jsx-runtime';\nimport contextBabylon from '@babylon/ui-kit-context';\nimport { genKey } from '@babylon/ui-kit-helpers/keys';\nimport { useContext, Children } from 'react';\nimport useSetFavorite from '../../hooks/useSetFavorite.js';\nimport Prices from './prices/index.js';\nimport { FavoriteCardMobile as FavoriteCardMobile$1, FavoriteCardMobileWrapper, FavoriteCardMobileHeader, FavoriteCardMobileHeaderWrapper, FavoriteCardMobileHeaderBg, FavoriteCardMobileHeaderLike, FavoriteCardMobileBody, FavoriteCardMobileBodyWrapper, FavoriteCardMobileBodyTop, FavoriteCardMobileTitle, FavoriteCardMobileSubtitle, FavoriteCardMobileDescription, FavoriteCardMobileDescriptionLeft, FavoriteCardMobileDescriptionElement, FavoriteCardMobileMarkdown, FavoriteCardMobileStarRating } from './styled.js';\n\n/**\n * Returns a string with or without stars replacing asterisks\n * @param title\n * @returns Title or Title with stars icon for rating\n */ const renderRatingMobile = (title, showOnlyRating = false)=>{\n const ratingPattern = /\\[\\*+\\]/;\n if (!showOnlyRating && !ratingPattern.test(title)) return title;\n const match = new RegExp(ratingPattern).exec(title);\n const ratingStars = match ? match[0].replace(/\\[|\\]/g, '') : '';\n const textPart = title.replace(ratingPattern, '');\n return /*#__PURE__*/ jsxs(\"div\", {\n children: [\n !showOnlyRating && textPart,\n ratingStars.split('').map((_, index)=>/*#__PURE__*/ jsx(FavoriteCardMobileStarRating, {\n className: \"nico-star-filled\"\n }, genKey(index)))\n ]\n });\n};\nconst FavoriteCardMobile = ({ link, title = '', image, subtitle = '', description = [], price = {}, isFavorite = true, canBeRefavorited = true, onSetFavorite = ()=>Promise.resolve(true) })=>{\n const { iconStatus, isHeartFilled, actions } = useSetFavorite(isFavorite, onSetFavorite);\n const context = useContext(contextBabylon);\n const mscdn = context.Cdn.startsWith('http') ? context.Cdn.substring(6) : context.Cdn;\n return /*#__PURE__*/ jsx(FavoriteCardMobile$1, {\n \"data-testid\": \"FavoriteCard\",\n children: /*#__PURE__*/ jsxs(FavoriteCardMobileWrapper, {\n children: [\n /*#__PURE__*/ jsxs(FavoriteCardMobileHeader, {\n \"data-testid\": \"FavoriteCardHeader\",\n children: [\n /*#__PURE__*/ jsx(FavoriteCardMobileHeaderWrapper, {\n ...link,\n target: link?.target ?? '_blank',\n children: /*#__PURE__*/ jsx(FavoriteCardMobileHeaderBg, {\n backgroundImage: `${mscdn}${image?.src}`\n })\n }),\n (isHeartFilled || canBeRefavorited && !isHeartFilled) && /*#__PURE__*/ jsx(FavoriteCardMobileHeaderLike, {\n \"data-testid\": \"FavoriteCardLike\",\n className: iconStatus,\n onClick: actions.handleFavorite,\n isHeartFilled: isHeartFilled\n })\n ]\n }),\n /*#__PURE__*/ jsx(FavoriteCardMobileBody, {\n \"data-testid\": \"FavoriteCardBody\",\n children: /*#__PURE__*/ jsxs(FavoriteCardMobileBodyWrapper, {\n ...link,\n target: link?.target ?? '_blank',\n children: [\n /*#__PURE__*/ jsxs(FavoriteCardMobileBodyTop, {\n children: [\n title && /*#__PURE__*/ jsx(FavoriteCardMobileTitle, {\n \"data-testid\": \"FavoriteCardTitle\",\n children: renderRatingMobile(title)\n }),\n subtitle && /*#__PURE__*/ jsx(FavoriteCardMobileSubtitle, {\n \"data-testid\": \"FavoriteCardSubtitle\",\n children: subtitle\n })\n ]\n }),\n !!description.length && /*#__PURE__*/ jsxs(FavoriteCardMobileDescription, {\n children: [\n /*#__PURE__*/ jsx(FavoriteCardMobileDescriptionLeft, {\n children: Children.toArray(description.map((item)=>/*#__PURE__*/ jsxs(FavoriteCardMobileDescriptionElement, {\n \"data-testid\": \"FavoriteCardDescriptionElement\",\n children: [\n /*#__PURE__*/ jsx(FavoriteCardMobileMarkdown, {\n tag: \"p\",\n content: item\n }),\n renderRatingMobile(item, true)\n ]\n })))\n }),\n /*#__PURE__*/ jsx(Prices, {\n price: price\n })\n ]\n })\n ]\n })\n })\n ]\n })\n });\n};\n\nexport { FavoriteCardMobile as default };\n","import { generateViewsComponent } from '@babylon/ui-kit-helpers/views';\nimport FavoriteCardDesktop from './views/desktop/index.js';\nimport FavoriteCardMobile from './views/mobile/index.js';\n\nconst FavoriteCard = generateViewsComponent(FavoriteCardDesktop, FavoriteCardMobile);\n\nexport { FavoriteCard as default };\n","import { BoxShadowHover, BoxShadow } from '@babylon/ui-kit-styles/common/mixins/box-shadow.styled';\nimport { FlexMixin } 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 SkeletonsContainerDesktop = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"SkeletonsContainerDesktop\"\n})([\n ``\n]);\nconst SkeletonItemDesktop = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"SkeletonItemDesktop\"\n})([\n ``,\n ` `,\n ` `,\n ` `,\n ` overflow:hidden;`\n], FlexMixin({\n direction: 'column'\n}), BorderRadius({\n all: '4px'\n}), BoxShadowHover, BoxShadow);\nconst SkeletonBodyDesktop = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"SkeletonBodyDesktop\"\n})([\n `border-bottom:1px solid `,\n `;padding:24px 12px 16px 12px;& div{margin-bottom:12px;}`\n], ({ theme })=>theme.colors.grays.lighter);\nconst SkeletonFooterDesktop = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"SkeletonFooterDesktop\"\n})([\n ``,\n ` padding:12px;`\n], FlexMixin({\n align: 'center',\n justify: 'end'\n}));\n\nexport { SkeletonBodyDesktop, SkeletonFooterDesktop, SkeletonItemDesktop, SkeletonsContainerDesktop };\n","import { jsxs, jsx } from 'react/jsx-runtime';\nimport Skeleton from '@babylon/ui-kit-structures/components/others/skeleton';\nimport { SkeletonItemDesktop, SkeletonBodyDesktop, SkeletonFooterDesktop } from './styled.js';\n\nconst CardSkeletonDesktop = ()=>/*#__PURE__*/ jsxs(SkeletonItemDesktop, {\n \"data-testid\": \"CardSkeletonDesktop\",\n className: \"item\",\n children: [\n /*#__PURE__*/ jsx(Skeleton, {\n variant: \"rectangular\",\n animation: \"wave\",\n height: \"165px\"\n }),\n /*#__PURE__*/ jsxs(SkeletonBodyDesktop, {\n children: [\n /*#__PURE__*/ jsx(Skeleton, {\n variant: \"rectangular\",\n animation: \"wave\",\n width: \"80%\",\n height: \"20px\"\n }),\n /*#__PURE__*/ jsx(Skeleton, {\n variant: \"rectangular\",\n animation: \"wave\",\n width: \"75%\",\n height: \"20px\"\n }),\n /*#__PURE__*/ jsx(Skeleton, {\n variant: \"rectangular\",\n animation: \"wave\",\n width: \"60%\",\n height: \"20px\"\n }),\n /*#__PURE__*/ jsx(Skeleton, {\n variant: \"rectangular\",\n animation: \"wave\",\n width: \"50%\",\n height: \"20px\"\n }),\n /*#__PURE__*/ jsx(Skeleton, {\n variant: \"rectangular\",\n animation: \"wave\",\n width: \"60%\",\n height: \"20px\"\n })\n ]\n }),\n /*#__PURE__*/ jsx(SkeletonFooterDesktop, {\n children: /*#__PURE__*/ jsx(Skeleton, {\n variant: \"rectangular\",\n animation: \"wave\",\n width: \"20%\",\n height: \"30px\"\n })\n })\n ]\n });\n\nexport { CardSkeletonDesktop as default };\n"],"names":["useSetFavorite","isFavorite","onSetFavorite","iconStatus","setIconStatus","useState","isHeartFilled","setIsHeartFilled","handleFavorite","useCallback","actions","useMemo","positiveNumberOrUndefined","num","normalizePrice","price","PricesWrapper","styled","FlexMixin","theme","PriceTopDesktop","FontMixin","PriceCurrentDesktop","Prices","props","Currency","Language","useContext","contextBabylon","priceProps","jsxs","jsx","PriceWithCurrency","FavoriteCardDesktop","BorderRadius","FavoriteCardDesktopWrapper","FavoriteCardDesktopHeader","FavoriteCardDesktopHeaderBg","backgroundImage","css","FavoriteCardDesktopHeaderWrapper","Anchor","FavoriteCardDesktopHeaderLike","Icon","FavoriteCardDesktopBody","Border","BoxShadow","FavoriteCardDesktopBodyWrapper","FavoriteCardDesktopTitle","Padding","FavoriteCardDesktopSubtitle","FavoriteCardDesktopDescription","FavoriteCardDesktopFooter","FavoriteCardDesktopFooterWrapper","FavoriteCardDesktopStarRating","FavoriteCardDesktopDescriptionElement","FavoriteCardDesktopMarkdown","InnerMarkdownHTML","Margin","renderRatingDestop","title","showOnlyRating","ratingPattern","match","ratingStars","textPart","_","index","genKey","link","image","subtitle","description","canBeRefavorited","context","mscdn","FavoriteCardDesktop$1","Children","item","PriceTopMobile","PriceCurrentMobile","FavoriteCardMobile","FavoriteCardMobileWrapper","FavoriteCardMobileHeader","FavoriteCardMobileHeaderBg","FavoriteCardMobileHeaderWrapper","FavoriteCardMobileHeaderLike","FavoriteCardMobileBody","FavoriteCardMobileBodyWrapper","FavoriteCardMobileTitle","FavoriteCardMobileBodyTop","FavoriteCardMobileSubtitle","FavoriteCardMobileDescription","FavoriteCardMobileDescriptionLeft","FavoriteCardMobileStarRating","FavoriteCardMobileDescriptionElement","FavoriteCardMobileMarkdown","renderRatingMobile","FavoriteCardMobile$1","FavoriteCard","generateViewsComponent","SkeletonItemDesktop","BoxShadowHover","SkeletonBodyDesktop","SkeletonFooterDesktop","CardSkeletonDesktop","Skeleton"],"mappings":"+OAEA,MAAMA,EAAiB,CAACC,EAAYC,IAAgB,CAChD,KAAM,CAACC,EAAYC,CAAa,EAAIC,EAAQ,SAACJ,EAAa,oBAAsB,YAAY,EACtF,CAACK,EAAeC,CAAgB,EAAIF,EAAQ,SAACJ,CAAU,EACvDO,EAAiBC,EAAAA,YAAY,SAAU,CACrCP,GACiB,MAAMA,MAEfC,IAAe,qBACfC,EAAc,YAAY,EAC1BG,EAAiB,EAAK,IAEtBH,EAAc,mBAAmB,EACjCG,EAAiB,EAAI,GAIzC,EAAO,CACCJ,EACAD,CACR,CAAK,EACKQ,EAAUC,EAAAA,QAAQ,KAAK,CACrB,eAAAH,CACZ,GAAY,CACJA,CACR,CAAK,EACD,OAAOG,EAAO,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