{"version":3,"file":"styled.DODooVon.js","sources":["../../../../../../../node_modules/@babylon/ui-kit-base/components/text/inner-HTML/index.js","../../../../../../../node_modules/@babylon/ui-kit-forms/components/filters/collapse/styled.js","../../../../../../../node_modules/@babylon/ui-kit-forms/components/filters/collapse/index.js","../../../../../../../src/components/leisure/price/styled.ts","../../../../../../../src/components/leisure/button-fixed/styled.ts"],"sourcesContent":["import { createElement } from 'react';\n\nconst InnerHTML = ({ content, tag = 'span', className })=>{\n if (!content) return null;\n const props = {\n 'data-testid': 'InnerHTML',\n className: className,\n dangerouslySetInnerHTML: {\n __html: content\n }\n };\n return /*#__PURE__*/ createElement(tag, props);\n};\n\nexport { InnerHTML as default };\n","import styled, { css } from 'styled-components';\n\nconst CollapseWrapper = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"CollapseWrapper\"\n})([\n `opacity:1;`\n]);\nconst CollapseBody = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"CollapseBody\"\n})([\n `overflow:hidden;transition:max-height 0.2s ease-out;`,\n ` &.is-collapsed{max-height:0;}`\n], ({ $contentHeight })=>/*#__PURE__*/ css([\n `max-height:`,\n `px;`\n ], $contentHeight));\n\nexport { CollapseBody, CollapseWrapper };\n","import { jsxs, jsx } from 'react/jsx-runtime';\nimport classNames from 'classnames';\nimport { useState, useRef, useEffect } from 'react';\nimport { CollapseWrapper, CollapseBody } from './styled.js';\n\nconst Collapse = ({ isCollapsed = false, collapseButton, children, ...rest })=>{\n const [contentHeight, setContentHeight] = useState(0);\n const ref = useRef(null);\n const buttonRef = useRef(null);\n useEffect(()=>{\n if (ref.current && buttonRef.current) setContentHeight(ref.current.scrollHeight + buttonRef.current.scrollHeight);\n }, [\n children\n ]);\n return /*#__PURE__*/ jsxs(CollapseWrapper, {\n \"data-testid\": \"collapse\",\n ...rest,\n children: [\n /*#__PURE__*/ jsx(\"div\", {\n ref: buttonRef,\n children: collapseButton\n }),\n /*#__PURE__*/ jsx(CollapseBody, {\n \"data-testid\": \"collapseBody\",\n className: classNames({\n 'is-collapsed': isCollapsed\n }),\n $contentHeight: contentHeight,\n ref: ref,\n children: children\n })\n ]\n });\n};\n\nexport { Collapse as default };\n","import PriceWithCurrency from '@babylon/ui-kit-base/components/text/price-with-currency';\nimport { Currency } from '@babylon/ui-kit-base/components/text/price-with-currency/styled';\nimport { FontMixin } from '@babylon/ui-kit-styles/common/mixins/helpers.styled';\nimport { Margin } from '@babylon/ui-kit-styles/common/mixins/logical.styled';\nimport styled from 'styled-components';\n\nexport const OriginalPrice = styled(PriceWithCurrency)`\n\ttext-decoration: line-through;\n\t${Margin({ right: '4px' })}\n`;\n\nexport const PriceFrom = styled.span`\n\t&::after {\n\t\tcontent: ' ';\n\t}\n`;\n\nexport const CurrentPrice = styled(PriceWithCurrency)``;\n\nexport const PriceWrapper = styled.span<{ $isDesktop: boolean }>`\n\tcolor: ${({ theme }) => theme.colors.price.base};\n\n\t${OriginalPrice} {\n\t\t${Currency} {\n\t\t\t${FontMixin({ size: 'small' })}\n\t\t}\n\t}\n\n\t${PriceFrom}, ${OriginalPrice} {\n\t\t${FontMixin({ size: 'medium', weight: 'regular' })}\n\t}\n\t${CurrentPrice} {\n\t\t${FontMixin({ size: 'large', weight: 'medium' })}\n\t\t${Currency} {\n\t\t\t${FontMixin({ size: 'base' })}\n\t\t}\n\t}\n`;\n","import { Button } from '@babylon/ui-kit-base/components/buttons/button';\nimport { FlexMixin, FontMixin } from '@babylon/ui-kit-styles/common/mixins/helpers.styled';\nimport styled from 'styled-components';\n\nimport { CurrentPrice, PriceFrom, PriceWrapper } from '../price/styled';\n\nexport const ButtonFixed = styled(Button)`\n\theight: 56px;\n\tbackground-color: ${({ theme }) => theme.colors.secondary.base};\n\t${PriceWrapper} {\n\t\tcolor: ${({ theme }) => theme.colors.white.base};\n\t\t${PriceFrom} {\n\t\t\t${FontMixin({ size: 'large', weight: 'medium' })}\n\t\t}\n\t\t${CurrentPrice} {\n\t\t\t${FontMixin({ size: 'large', weight: 'medium' })}\n\t\t}\n\t}\n\t${FlexMixin({ align: 'center', justify: 'center' })}\n\t${FontMixin({ size: 'large', weight: 'medium' })}\n\tcolor: ${({ theme }) => theme.colors.white.base}\n`;\n"],"names":["InnerHTML","content","tag","className","props","createElement","CollapseWrapper","styled","CollapseBody","$contentHeight","css","Collapse","isCollapsed","collapseButton","children","rest","contentHeight","setContentHeight","useState","ref","useRef","buttonRef","useEffect","jsxs","jsx","classNames","OriginalPrice","PriceWithCurrency","Margin","PriceFrom","CurrentPrice","PriceWrapper","theme","Currency","FontMixin","ButtonFixed","Button","FlexMixin"],"mappings":"gHAEK,MAACA,EAAY,CAAC,CAAE,QAAAC,EAAS,IAAAC,EAAM,OAAQ,UAAAC,CAAS,IAAK,CACtD,GAAI,CAACF,EAAS,OAAO,KACrB,MAAMG,EAAQ,CACV,cAAe,YACf,UAAWD,EACX,wBAAyB,CACrB,OAAQF,CACX,CACT,EACI,OAAqBI,EAAa,cAACH,EAAKE,CAAK,CACjD,ECVME,EAAgCC,EAAO,IAAI,WAAW,CACxD,YAAa,iBACjB,CAAC,EAAE,CACC,YACJ,CAAC,EACKC,EAA6BD,EAAO,IAAI,WAAW,CACrD,YAAa,cACjB,CAAC,EAAE,CACC,uDACA,gCACJ,EAAG,CAAC,CAAE,eAAAE,CAAgB,IAAiBC,EAAI,CACnC,cACA,KACH,EAAED,CAAc,CAAC,ECVhBE,EAAW,CAAC,CAAE,YAAAC,EAAc,GAAO,eAAAC,EAAgB,SAAAC,EAAU,GAAGC,KAAS,CAC3E,KAAM,CAACC,EAAeC,CAAgB,EAAIC,EAAQ,SAAC,CAAC,EAC9CC,EAAMC,SAAO,IAAI,EACjBC,EAAYD,SAAO,IAAI,EAC7BE,OAAAA,EAAAA,UAAU,IAAI,CACNH,EAAI,SAAWE,EAAU,SAASJ,EAAiBE,EAAI,QAAQ,aAAeE,EAAU,QAAQ,YAAY,CACxH,EAAO,CACCP,CACR,CAAK,EACoBS,EAAAA,KAAKjB,EAAiB,CACvC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