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S,IAAXmE,OAAAA,EAAAA,EAAaK,QAAU,KAEhCC,EAAAA,GAAAA,QAGfN,SAAAA,G,IAAKA,EAAsBA,EAAtBA,OAAW,QAAXA,EAAAA,EAAEnE,iBAAS,IAAXmE,OAAAA,EAAAA,EAAaQ,QAAoB,QAAXR,EAAAA,EAAEnE,iBAAS,IAAXmE,OAAAA,EAAAA,EAAaQ,OAAS,O,kBClN3DmB,EAAOC,QAAU","sources":["webpack://_N_E/./src/features/index/Banners/PromoBannersSection/PromoBanner/index.tsx","webpack://_N_E/./src/features/index/Banners/PromoBannersSection/PromoBanner/styled.ts","webpack://_N_E/./static/images/defaultImageFallback.svg"],"sourcesContent":["import React, { forwardRef, useCallback, useState } from 'react';\nimport Router from 'next/router';\n\nimport { IAdvertising } from '@r1-frontend/api-domru/spec-offer/v1/banners/dto/responseDto';\n\nimport { push } from '@r1-frontend/analytics/campaignLayer';\nimport { dataLayerPush } from '@r1-frontend/analytics/dataLayerPush';\n\nimport { btnTypes } from '@r1-frontend/ui-react/components/buttons/baseButton';\nimport { TButtonSize, TButtonType } from '@r1-frontend/ui-react/components/buttons/button';\nimport WebpImage from '@r1-frontend/ui-react/components/WebpImage';\nimport { NonStaticContainer } from '@r1-frontend/ui-react/experimental/containers';\nimport { TTooltipPosition } from '@r1-frontend/ui-react/experimental/tooltip/types';\nimport { AdvertisingLabelWithTooltip } from '@r1-frontend/ui-react/organisms/AdvertisingLabelWithTooltip';\nimport { COLORS } from '@r1-frontend/ui-react/tokens/colors';\nimport { EVENTS } from '@r1-frontend/shared/constants/analytics';\nimport { useWebp } from '@r1-frontend/shared/hooks/useWebp';\n\nimport { IBannerTag as ITag } from '~/src/api/content/banners';\n\nimport * as ST from './styled';\n\nexport enum EClickType {\n ON_BANNER = ' full',\n ON_BTN = '',\n}\n\ntype TCustomStyleRule = Record;\ntype TCustomStyleType = 'sMobile' | 'mobile' | 'tablet' | 'laptop' | 'desktop' | 'default';\nexport type TCustomStyle = {\n [key in TCustomStyleType]?: TCustomStyleRule\n}\nexport type TExtStyle = Record\n\ninterface IProps {\n label?: string,\n labelColor?: string,\n title?: string,\n description?: string,\n image?: string,\n imageWebp?: string,\n background?: string,\n backgroundWebp?: string,\n buttonText?: string,\n textColor?: string,\n route?: string,\n tags: ITag[],\n bannerIdx?: string | number,\n buttonType?: TButtonType,\n legal?: {\n text?: string,\n textColor?: string,\n ageLimit?: string,\n },\n extStyles?: TExtStyle,\n onClick?: () => void,\n buttonSize?: TButtonSize,\n communicationId?: string,\n advertising?: IAdvertising,\n tooltipPosition?: TTooltipPosition,\n}\n\nconst PromoBanner = forwardRef(({\n bannerIdx = 0,\n label,\n labelColor,\n title = '',\n description = '',\n buttonText = 'Подробнее',\n image = '',\n imageWebp = '',\n background = '',\n backgroundWebp = '',\n textColor = COLORS.TextPrimary,\n tags = [],\n route = '',\n onClick,\n buttonType = btnTypes.PRIMARY,\n legal = {\n textColor: COLORS.TextPrimary,\n },\n extStyles,\n buttonSize,\n communicationId,\n advertising,\n tooltipPosition = 'bottom-right',\n}, ref): JSX.Element => {\n const [isRedirecting, setIsRedirecting] = useState(false);\n\n const sendDataLayerPush = useCallback((clickType: EClickType) => {\n const [firstTag, lastTag] = tags;\n const lastTagAlias = lastTag?.alias.replaceAll('_', ' ');\n\n dataLayerPush({\n event: EVENTS.UAevent,\n category: `banner ${firstTag?.alias}`,\n action: `click ${bannerIdx} ${lastTagAlias} banner${clickType}`,\n label: route,\n });\n }, [tags, bannerIdx, route]);\n\n const onClickBanner = useCallback((clickType: EClickType) => {\n if (route) {\n if (communicationId) {\n push({ id: +bannerIdx, type: 'banner', actionType: 'transition', communicationId });\n }\n\n sendDataLayerPush(clickType);\n setIsRedirecting(true);\n Router.push(route);\n }\n\n onClick && onClick();\n }, [sendDataLayerPush, route, onClick]);\n\n const backgroundImage = useWebp() ? backgroundWebp : background;\n\n return (\n onClickBanner(EClickType.ON_BANNER)}\n backgroundImage={backgroundImage}\n extStyles={extStyles?.wrapper}\n >\n \n \n {!!label && (\n \n )}\n \n \n onClickBanner(EClickType.ON_BTN)}\n bType={buttonType}\n extStyles={extStyles?.button}\n loading={isRedirecting}\n >\n {buttonText}\n \n \n \n \n {advertising && (\n \n e.stopPropagation()}\n companyName={advertising.companyName}\n erid={advertising.erid}\n tooltip={{\n position: tooltipPosition,\n }}\n />\n \n )}\n \n \n \n {legal?.text && (\n \n { legal.ageLimit && {legal.ageLimit}+ }\n {legal.text}\n \n )}\n \n \n );\n});\n\nPromoBanner.displayName = 'PromoBannerWithForwardedRef';\nexport default PromoBanner;\n","import { LazyLoadImage } from 'react-lazy-load-image-component';\nimport styled from 'styled-components';\n\nimport Button from '@r1-frontend/ui-react/components/buttons/button';\nimport { FlexBoxCol as Col } from '@r1-frontend/ui-react/components/layouts/flexBoxGrid';\nimport { wideBreakpoints } from '@r1-frontend/ui-react/components/layouts/wideContainer';\nimport { COLORS } from '@r1-frontend/ui-react/tokens/colors';\nimport { FONTS } from '@r1-frontend/ui-react/tokens/fonts';\n\nimport { TCustomStyle } from '~/src/features/index/Banners/PromoBannersSection/PromoBanner/index';\nimport defaultImageFallback from '~/static/images/defaultImageFallback.svg';\n\nexport const Wrapper = styled.div<{ backgroundImage: string, extStyles?: TCustomStyle }>`\n height: 320px;\n background-image: url(${defaultImageFallback});\n background: url(${props => props.backgroundImage}) center / cover no-repeat;\n border-radius: 16px;\n overflow: hidden;\n cursor: pointer;\n ${p => p.extStyles?.default ? p.extStyles?.default : ''};\n\n @media (max-width: ${wideBreakpoints.laptop}) {\n height: 280px;\n border-radius: 0;\n ${p => p.extStyles?.laptop ? p.extStyles?.laptop : ''};\n }\n\n @media (max-width: ${wideBreakpoints.mobile}) {\n height: auto;\n border-radius: 24px;\n ${p => p.extStyles?.mobile ? p.extStyles?.mobile : ''};\n }\n`;\n\nexport const DescCol = styled(Col)<{ extStyles?: TCustomStyle }>`\n display: flex;\n align-items: center;\n ${p => p.extStyles?.default ? p.extStyles?.default : ''};\n\n @media (max-width: ${wideBreakpoints.sDesktop}) {\n ${p => p.extStyles?.desktop ? p.extStyles?.desktop : ''};\n }\n\n @media (max-width: ${wideBreakpoints.laptop}) {\n ${p => p.extStyles?.laptop ? p.extStyles.laptop : ''};\n }\n\n @media (max-width: ${wideBreakpoints.mobile}) {\n max-width: 100% !important;\n flex-basis: 100% !important;\n align-items: flex-start;\n height: 220px;\n background: ${COLORS.BgSurface};\n ${p => p.extStyles?.mobile ? p.extStyles?.mobile : ''};\n }\n\n @media (max-width: ${wideBreakpoints.sMobile}) {\n height: auto;\n ${p => p.extStyles?.sMobile ? p.extStyles?.sMobile : ''};\n }\n`;\n\nexport const Desc = styled.div<{ extStyles?: TCustomStyle }>`\n display: block;\n width: 100%;\n padding-left: 40px;\n ${p => p.extStyles?.default ? p.extStyles?.default : ''};\n\n @media (max-width: ${wideBreakpoints.mobile}) {\n padding: 16px 20px;\n ${p => p.extStyles?.mobile ? p.extStyles?.mobile : ''};\n }\n`;\n\nexport const BannerLabel = styled.p<{ textColor?: string }>`\n ${FONTS.LABEL};\n margin-bottom: 4px;\n color: ${props => props.textColor || COLORS.TextHint};\n\n @media (max-width: ${wideBreakpoints.mobile}) {\n ${FONTS.LABEL_S};\n }\n`;\n\nexport const Title = styled.p<{ textColor: string, extStyles?: TCustomStyle }>`\n ${FONTS.H2};\n color: ${props => props.textColor};\n ${p => p.extStyles?.default ? p.extStyles?.default : ''};\n\n @media (max-width: ${wideBreakpoints.laptop}) {\n ${FONTS.H2};\n ${p => p.extStyles?.laptop ? p.extStyles?.laptop : ''};\n }\n\n @media (max-width: ${wideBreakpoints.tablet}) {\n ${p => p.extStyles?.tablet ? p.extStyles?.tablet : ''};\n }\n\n @media (max-width: ${wideBreakpoints.mobile}) {\n ${FONTS.H4};\n color: ${COLORS.TextPrimary};\n ${p => p.extStyles?.mobile ? p.extStyles?.mobile : ''};\n }\n`;\n\nexport const Text = styled.p<{ textColor: string, extStyles?: TCustomStyle }>`\n ${FONTS.M};\n line-height: 28px;\n color: ${props => props.textColor};\n margin-top: 8px;\n margin-bottom: 24px;\n align-self: flex-start;\n ${p => p.extStyles?.default ? p.extStyles?.default : ''};\n \n @media (max-width: ${wideBreakpoints.laptop}) {\n ${FONTS.XS};\n margin-bottom: 16px;\n ${p => p.extStyles?.laptop ? p.extStyles?.laptop : ''};\n }\n\n @media (max-width: ${wideBreakpoints.tablet}) {\n ${p => p.extStyles?.tablet ? p.extStyles?.tablet : ''};\n }\n\n @media (max-width: ${wideBreakpoints.mobile}) {\n color: ${COLORS.TextSecondary};\n ${p => p.extStyles?.mobile ? p.extStyles?.mobile : ''};\n }\n`;\n\nexport const SButton = styled(Button)<{ extStyles?: TCustomStyle }>`\n ${p => p.extStyles?.default ? p.extStyles?.default : ''};\n\n @media (max-width: ${wideBreakpoints.mobile}) {\n width: 100%;\n ${p => p.extStyles?.mobile ? p.extStyles?.mobile : ''};\n }\n`;\n\nexport const ImageCol = styled(Col)<{ extStyles?: TCustomStyle }>`\n position: relative;\n height: 100%;\n ${p => p.extStyles?.default ? p.extStyles?.default : ''};\n\n @media (max-width: ${wideBreakpoints.sDesktop}) {\n ${p => p.extStyles?.desktop ? p.extStyles?.desktop : ''};\n }\n\n @media (max-width: ${wideBreakpoints.laptop}) {\n ${p => p.extStyles?.laptop ? p.extStyles.laptop : ''};\n }\n\n @media (max-width: ${wideBreakpoints.mobile}) {\n max-width: 100% !important;\n flex-basis: 100% !important;\n height: 200px;\n order: -1;\n background-repeat: no-repeat;\n ${p => p.extStyles?.mobile ? p.extStyles?.mobile : ''};\n }\n`;\n\nexport const Image = styled(LazyLoadImage)<{ $extStyles?: TCustomStyle }>`\n position: absolute;\n margin: auto;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n max-height: 100%;\n ${p => p.$extStyles?.default ? p.$extStyles?.default : ''};\n\n @media (max-width: ${wideBreakpoints.mobile}) {\n ${p => p.$extStyles?.mobile || ''}\n }\n`;\n\nexport const Legal = styled.div<{ textColor?: string }>`\n position: absolute;\n bottom: 4px;\n left: 4px;\n color: ${p => p.textColor ?? COLORS.BgMain};\n\n @media (max-width: ${wideBreakpoints.mobile}) {\n max-width: 235px;\n }\n`;\n\nexport const LegalTitle = styled.div`\n ${FONTS.S};\n`;\n\nexport const LegalDescription = styled.div`\n ${FONTS.XXXS};\n margin-right: 128px;\n\n @media (max-width: ${wideBreakpoints.mobile}) {\n margin-right: 0;\n }\n`;\n\nexport const AdvertisingBlock = styled.div<{ extStyles?: TCustomStyle }>`\n position: absolute;\n bottom: 24px;\n right: 24px;\n ${p => p.extStyles?.default ? p.extStyles?.default : ''};\n\n @media (max-width: ${wideBreakpoints.mobile}) {\n bottom: 16px;\n right: 16px;\n ${p => p.extStyles?.mobile ? p.extStyles?.mobile : ''};\n }\n`;\n","module.exports = \"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iODAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3Qgd2lkdGg9IjgwIiBoZWlnaHQ9IjgwIiByeD0iMTIiIGZpbGw9IiNGQUZBRkEiIGZpbGwtb3BhY2l0eT0iMC4xNSIvPjwvc3ZnPg==\""],"names":["EClickType","PromoBanner","forwardRef","ref","bannerIdx","label","labelColor","title","description","buttonText","image","imageWebp","background","backgroundWebp","textColor","COLORS","tags","route","onClick","buttonType","btnTypes","legal","extStyles","buttonSize","communicationId","advertising","tooltipPosition","useState","isRedirecting","setIsRedirecting","sendDataLayerPush","useCallback","clickType","firstTag","lastTag","lastTagAlias","alias","replaceAll","dataLayerPush","event","EVENTS","category","action","onClickBanner","push","id","type","actionType","Router","backgroundImage","useWebp","ST","ON_BANNER","wrapper","lg","md","sm","xs","descCol","dangerouslySetInnerHTML","__html","text","size","href","ON_BTN","bType","button","loading","imageCol","NonStaticContainer","$desktop","$bottom","$right","$mobile","AdvertisingLabelWithTooltip","e","stopPropagation","companyName","erid","tooltip","position","WebpImage","urlWebp","undefined","$extStyles","src","alt","ageLimit","displayName","p","Wrapper","styled","defaultImageFallback","props","default","wideBreakpoints","laptop","mobile","DescCol","Col","desktop","sMobile","Desc","BannerLabel","FONTS","Title","tablet","Text","SButton","Button","ImageCol","Image","LazyLoadImage","Legal","LegalTitle","LegalDescription","module","exports"],"sourceRoot":""}