{"version":3,"file":"styled.a4bba997.js","sources":["../../../../../../../node_modules/@babylon/ui-kit-forms/esm/components/filters/collapse/styled.mjs","../../../../../../../node_modules/@babylon/ui-kit-forms/esm/components/filters/collapse/index.mjs","../../../../../../../src/components/leisure/price/styled.ts","../../../../../../../src/components/leisure/button-fixed/styled.ts"],"sourcesContent":["import styled, { css } from 'styled-components';\n\nconst CollapseWrapper = styled.div`\n\topacity: 1;\n`;\nconst CollapseBody = styled.div`\n\toverflow: hidden;\n\ttransition: max-height 0.2s ease-out;\n\t${({ $contentHeight }) => css`\n\t\tmax-height: ${$contentHeight}px;\n\t`}\n\t&.is-collapsed {\n\t\tmax-height: 0;\n\t}\n`;\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.mjs';\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)\n setContentHeight(ref.current.scrollHeight + buttonRef.current.scrollHeight);\n }, [children]);\n return /* @__PURE__ */ jsxs(CollapseWrapper, { \"data-testid\": \"collapse\", ...rest, children: [\n /* @__PURE__ */ jsx(\"div\", { ref: buttonRef, children: collapseButton }),\n /* @__PURE__ */ jsx(\n CollapseBody,\n {\n \"data-testid\": \"collapseBody\",\n className: classNames({ \"is-collapsed\": isCollapsed }),\n $contentHeight: contentHeight,\n ref,\n children\n }\n )\n ] });\n};\n\nexport { Collapse, 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":["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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