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L,EAzDlC,SAACH,EAAQzc,GAAK,OAAKA,EAAMuH,eAAgB,IA0DlE,SAACqW,EAAgB7S,EAAmBmS,EAAcL,EAAYtV,GAAe,MAAM,CACjFC,cAAeuD,EACfrE,aAAa,GAADhC,OAAA+U,EAAMgF,IAAM,EAAGvB,IAAa,CAAEA,IAC1C3V,gBAAeqC,EAAAA,EAAA,GACVrC,GAAe,IAClBqW,eAAAA,IAEFlW,UAAWmV,EACZ,IAGG6B,EAAiB,SAAAjX,GACrB,IAAQjE,EAASiE,EAATjE,KAER,IAAKA,IAAS+C,OAAOyP,KAAKxS,GAAM0R,OAC9B,OAAOzN,EAGT,IAAI7D,EAAaJ,EAAOA,EAAKI,WAAa,GACpC+a,EAAcnb,GAAQA,EAAKmb,YAAcnb,EAAKmb,YAAc,GAYlE,OAVA/a,EAAatC,IACXsd,IAAO,UACPtC,GAAU,SAACuC,EAAMva,GAAK,MAAM,CAC1BA,MAAAA,EACAvB,MAAO8b,EAAK3J,OACZ3Q,IAAKua,IAAMD,GAAM,SAAAlP,GAAG,OAAIoP,IAAMpP,EAAIrL,MAAM,IACzC,IACD0a,KAAQ,SAAAC,GAAS,OAAIC,WAAWD,EAAU3a,MAAM,IAPrChD,CAQXsC,GAEFgG,EAAAA,EAAA,GACKnC,GAAQ,IACXjE,KAAIoG,EAAAA,EAAA,GACCpG,GAAI,IACPE,MAAOwb,WAAW1b,EAAKE,OACvBG,WAAYqb,WAAW1b,EAAKK,YAC5BC,YAAaob,WAAW1b,EAAKM,aAC7BF,WAAAA,EACAD,gBAAiBgb,EAAYta,KAAI,SAAAC,GAAK,OAAAsF,EAAAA,EAAA,GAAUtF,GAAK,IAAEzD,MAAOqe,WAAW5a,EAAMzD,QAAM,OAG3F,EAEMyK,GAAcyR,EAAAA,EAAAA,KAAe,SAAApT,GAAK,OAAIA,EAAMlC,QAAQ,GAAEiX","sources":["webpack://sunseasons24/./app/components/resource_mobile_carousel_component.js","webpack://sunseasons24/./app/javascript/components/Layout/Card.js","webpack://sunseasons24/./app/javascript/components/Shared/BookingPolicies/styles.js","webpack://sunseasons24/./app/javascript/components/HOC/withHistory.js","webpack://sunseasons24/./app/javascript/components/Shared/CostCalculationStatus/styles.js","webpack://sunseasons24/./app/javascript/components/Shared/CostCalculationStatus/index.js","webpack://sunseasons24/./app/javascript/components/Shared/CostSummary/index.js","webpack://sunseasons24/./app/javascript/components/Shared/Forms/CostCalculationForm/styles.js","webpack://sunseasons24/./app/javascript/components/Shared/Forms/CostCalculationForm/GuestSelect.js","webpack://sunseasons24/./app/javascript/components/Shared/Forms/CostCalculationForm/index.js","webpack://sunseasons24/./app/javascript/modules/accommodation/types.js","webpack://sunseasons24/./app/javascript/modules/accommodation/index.js","webpack://sunseasons24/./app/javascript/modules/accommodation/components/CostCalculation.js","webpack://sunseasons24/./app/javascript/components/Shared/Sticky/styles.js","webpack://sunseasons24/./app/javascript/components/Shared/Sticky/index.js","webpack://sunseasons24/./app/javascript/modules/accommodation/components/MobileBookNow/styles.js","webpack://sunseasons24/./app/javascript/modules/accommodation/components/MobileBookNow/index.js","webpack://sunseasons24/./app/javascript/modules/accommodation/components/MobileCostCalculation/styles.js","webpack://sunseasons24/./app/javascript/modules/accommodation/components/MobileCostCalculation/index.js","webpack://sunseasons24/./app/javascript/modules/accommodation/sagas.js","webpack://sunseasons24/./app/javascript/modules/accommodation/store.js","webpack://sunseasons24/./app/javascript/accommodation-page.js","webpack://sunseasons24/./app/javascript/components/Shared/BookingPolicies/index.js","webpack://sunseasons24/./app/javascript/components/Elements/Divider.js","webpack://sunseasons24/./app/javascript/components/HOC/withProvider.js","webpack://sunseasons24/./app/javascript/components/Shared/CostSummary/Sum/styles.js","webpack://sunseasons24/./app/javascript/components/Shared/CostSummary/Sum/index.js","webpack://sunseasons24/./app/javascript/components/Shared/CostSummary/styles.js","webpack://sunseasons24/./app/javascript/modules/accommodation/selectors.js"],"sourcesContent":["import onmount from 'onmount';\nimport Swiper, { Pagination } from 'swiper';\n\nonmount('[data-js-resource-mobile-carousel]', () => {\n new Swiper('[data-js-resource-mobile-carousel]', {\n modules: [Pagination],\n pagination: {\n el: '.swiper-pagination',\n type: 'fraction',\n },\n });\n});\n","import styled from 'styled-components';\n\nexport default styled.div`\n display: block;\n position: relative;\n padding: 3rem;\n background: white;\n`;\n","import BaseDivider from 'components/Elements/Divider';\nimport styled from 'styled-components';\nimport { colors } from 'styles/config';\n\nexport const Divider = styled(BaseDivider)`\n margin-bottom: 0;\n`;\n\nexport const H3 = styled.h3`\n font-weight: 300;\n padding-bottom: 3rem;\n`;\n\nexport const H6 = styled.h6`\n color: ${colors.mineShaft};\n font-weight: 400;\n font-size: 1.4rem;\n margin-bottom: 0.8rem;\n`;\n\nexport const P = styled.p`\n font-size: 1.4rem;\n color: ${colors.boulder};\n margin-bottom: 0;\n`;\n\nexport const Policy = styled.div`\n padding: 2rem 0;\n ${props => (props.first ? 'padding-top: 0;' : 'padding-top: 2rem')};\n ${props => (props.last ? 'padding-bottom: 0;' : 'padding-bottom: 2rem')};\n`;\n","import { Component } from 'react';\nimport history from 'utils/history';\n\nconst withHistory = WrappedComponent =>\n class extends Component {\n componentDidMount() {\n history.listen(() => {\n this.forceUpdate();\n });\n }\n\n render() {\n return ;\n }\n };\n\nexport default withHistory;\n","import styled from 'styled-components';\n\nexport const Messages = styled.div`\n display: block;\n width: 100%;\n margin-bottom: 1.2rem;\n text-align: center;\n`;\n","import { Alert } from '@sun-seasons-24/ui';\nimport PropTypes from 'prop-types';\nimport { useTranslation } from 'react-i18next';\nimport { branch, compose, defaultProps, onlyUpdateForKeys, renderNothing, setPropTypes } from 'recompose';\nimport renderIf from 'render-if';\n\nimport { Messages } from './styles';\n\nconst enhance = compose(\n branch(props => props.isLoading, renderNothing),\n onlyUpdateForKeys(['isCalculationReady', 'minNights', 'status']),\n setPropTypes({\n minNights: PropTypes.number,\n status: PropTypes.string,\n isCalculationReady: PropTypes.bool,\n translations: PropTypes.object,\n }),\n defaultProps({\n isCalculationReady: false,\n })\n);\n\nconst CostCalculationStatus = ({ translations, minNights, status, isCalculationReady }) => {\n const [t] = useTranslation();\n\n return (\n \n {renderIf(!isCalculationReady)(\n \n {translations.form.messages.chooseTerm}\n \n )}\n {renderIf(isCalculationReady && status === 'possible')(\n \n {translations.form.messages.available}\n \n )}\n {renderIf(isCalculationReady && status === 'dates_unavailable')(\n \n {translations.form.messages.unavailable}\n \n )}\n {renderIf(isCalculationReady && status === 'min_nights_unfulfilled')(\n \n {t('costCalculation.form.messages.minNightsUnfulfilled', { count: minNights })}\n \n )}\n \n );\n};\n\nexport default enhance(CostCalculationStatus);\n","import { Card } from '@sun-seasons-24/ui';\nimport { camelize } from 'humps';\nimport { useTranslation } from 'react-i18next';\nimport Loading from 'react-loading';\nimport { colors } from 'styles/config';\nimport { formatMoney } from 'utils/helpers';\n\nimport { Cost, List, LoadingContainer, Name, SubmitButton, Value } from './styles';\nimport Sum from './Sum';\n\nconst SummaryLoading = () => (\n \n \n \n);\n\nconst CostSummary = props => {\n const { translations, isLoading, cost } = props;\n const [t] = useTranslation();\n\n if (isLoading) {\n return (\n \n \n \n );\n }\n\n const { total, additionalCosts, datePrices, prepayment, uponArrival } = cost;\n\n return (\n \n {translations.costsSummary}\n \n \n {datePrices.map(({ price, count, sum }) => (\n \n {t('costCalculation.summaryNightsCount', { count, price: `${price} PLN` })}\n {formatMoney(sum, 'PLN')}\n \n ))}\n {additionalCosts.map(({ value, title }) => (\n \n {t(`costCalculation.additionalCosts.${camelize(title)}`)}\n {formatMoney(value, 'PLN')}\n \n ))}\n \n \n \n \n {translations.prepayment}:\n {formatMoney(prepayment, 'PLN')}\n \n \n {translations.uponArrival}:\n {formatMoney(uponArrival, 'PLN')}\n \n \n \n {translations.bookNow}\n \n \n \n );\n};\n\nexport default CostSummary;\n","import BaseIcon from 'components/Elements/Icon';\nimport styled from 'styled-components';\nimport { colors } from 'styles/config';\n\n/*\nContainer\n*/\n\nexport const Container = styled.div`\n display: block;\n padding: 0;\n border-radius: 0.3rem;\n`;\n\n/* InputsContainer */\n\nexport const InputsContainer = styled.div`\n display: block;\n padding: 2rem 1.5rem;\n margin-bottom: 1rem;\n border-radius: 0.3rem;\n background: ${colors.mariner};\n`;\n\nexport const FormRow = styled.div`\n display: flex;\n align-items: center;\n margin-bottom: 0;\n`;\n\n/*\nFormRow\n*/\n\nexport const FormItem = styled.div`\n align-items: center;\n background: ${colors.white};\n display: flex;\n flex-basis: 55%;\n flex-shrink: 0;\n margin-bottom: 0;\n position: relative;\n min-width: 12.7rem;\n`;\n\nexport const Label = styled.label`\n display: flex;\n flex-grow: 2;\n align-items: center;\n line-height: 1;\n margin: 0;\n font-size: 1.4rem;\n font-weight: 300;\n color: ${colors.white};\n`;\n\nexport const Icon = styled(BaseIcon)`\n display: flex;\n justify-content: center;\n align-items: center;\n position: absolute;\n top: 0;\n right: 0;\n width: 3.6rem;\n height: 100%;\n margin: 0;\n color: ${colors.sun};\n font-size: 2.2rem;\n pointer-events: none;\n`;\n\nexport const Select = styled.select`\n height: 4rem;\n width: 100%;\n font-size: 1.4rem;\n padding: 0.6rem 0.8rem;\n padding-left: 1.2rem;\n background: transparent;\n`;\n\nexport const Messages = styled.div`\n display: block;\n width: 100%;\n margin-bottom: 1.2rem;\n text-align: center;\n`;\n\nexport const Form = styled.form`\n display: block;\n margin-bottom: 3rem;\n`;\n","import { FormItem, FormRow, Icon, Label, Select } from './styles';\n\nconst GuestsSelect = props => (\n \n \n \n \n \n \n \n);\n\nexport default GuestsSelect;\n","import DateRangePicker from 'components/Elements/DateRangePicker';\nimport CostCalculationStatus from 'components/Shared/CostCalculationStatus';\nimport CostSummary from 'components/Shared/CostSummary';\nimport PropTypes from 'prop-types';\nimport { useTranslation } from 'react-i18next';\nimport { compose, defaultProps, setPropTypes, withHandlers } from 'recompose';\nimport { Field, reduxForm } from 'redux-form';\nimport renderIf from 'render-if';\n\nimport GuestsSelect from './GuestSelect';\nimport { Container, Form, InputsContainer } from './styles';\n\nconst enhance = compose(\n withHandlers({\n onChange: props => values => {\n if (values.arrival && values.departure && values.guests) {\n props.calculateCost(values);\n }\n },\n }),\n reduxForm({ form: 'costCalculation' }),\n setPropTypes({\n change: PropTypes.func.isRequired,\n datePickerProps: PropTypes.object.isRequired,\n guestOptions: PropTypes.array.isRequired,\n initialValues: PropTypes.object.isRequired,\n isLoading: PropTypes.bool.isRequired,\n isCalculationReady: PropTypes.bool.isRequired,\n stayInfo: PropTypes.object.isRequired,\n submitUrl: PropTypes.string.isRequired,\n translations: PropTypes.object.isRequired,\n }),\n defaultProps({\n isCalculationReady: false,\n })\n);\n\nconst CostCalculationForm = props => {\n const { i18n } = useTranslation();\n\n const {\n change,\n datePickerProps,\n guestOptions,\n initialValues,\n isCalculationReady,\n isLoading,\n stayInfo: { status, cost, minNights },\n submitUrl,\n translations,\n } = props;\n\n return (\n
\n \n \n \n \n } name=\"location\" />\n } name=\"property\" />\n } name=\"accommodation\" />\n \n \n \n {renderIf((isCalculationReady && status === 'possible') || isLoading)(\n \n )}\n \n );\n};\n\nexport default enhance(CostCalculationForm);\n","const CALCULATE_COST = 'ACCOMMODATION/calculate_cost';\nconst SET_IS_COST_CALCULATED = 'ACCOMMODATION/set_is_cost_calculated';\nconst SET_LOADING = 'ACCOMMODATION/set_loading';\nconst SET_STAY_INFO = 'ACCOMMODATION/set_stay_info';\nconst TOGGLE_MODAL_VISIBILITY = 'ACCOMMODATION/toggle_model_visibility';\n\nexport default {\n CALCULATE_COST,\n SET_IS_COST_CALCULATED,\n SET_LOADING,\n SET_STAY_INFO,\n TOGGLE_MODAL_VISIBILITY,\n};\n","import { combineReducers } from 'redux';\nimport { createAction, handleActions } from 'redux-actions';\nimport { reducer as formReducer } from 'redux-form';\n\nimport types from './types';\n\n/* Actions */\n\nexport const calculateCost = createAction(types.CALCULATE_COST);\nexport const toggleModalVisibility = createAction(types.TOGGLE_MODAL_VISIBILITY);\nexport const setLoading = createAction(types.SET_LOADING);\nexport const setStayInfo = createAction(types.SET_STAY_INFO);\nexport const setIsCostCalculated = createAction(types.SET_IS_COST_CALCULATED);\n\n/* Reducers */\n\nconst accommodationReducer = handleActions(\n {\n [toggleModalVisibility](state, action) {\n return { ...state, isModalVisible: action.payload };\n },\n [setLoading](state, action) {\n return { ...state, isLoading: action.payload };\n },\n [setStayInfo](state, action) {\n return { ...state, stayInfo: action.payload };\n },\n [setIsCostCalculated](state, action) {\n return { ...state, isCostCalculated: action.payload };\n },\n },\n {}\n);\n\n/* Root reducer */\n\nconst rootReducer = combineReducers({\n accommodation: accommodationReducer,\n form: formReducer,\n});\n\nexport default rootReducer;\n","import withHistory from 'components/HOC/withHistory';\nimport withProvider from 'components/HOC/withProvider';\nimport withThemeProvider from 'components/HOC/withThemeProvider';\nimport CostCalculationForm from 'components/Shared/Forms/CostCalculationForm';\nimport { connect } from 'react-redux';\nimport MediaQuery from 'react-responsive';\nimport { addUrlProps, configureUrlQuery } from 'react-url-query';\nimport { compose } from 'recompose';\nimport history from 'utils/history';\n\nimport * as actions from '../index';\nimport {\n getDatepickerFocusedInput,\n getFormProps,\n getInitialFormValues,\n getIsCalculationReady,\n getIsLoading,\n getStayInfo,\n} from '../selectors';\n\nconfigureUrlQuery({ history });\n\nconst mapStateToProps = (state, ownProps) => {\n const moduleState = state.accommodation;\n const { translations } = ownProps;\n\n const initialFormValues = getInitialFormValues(moduleState, ownProps);\n\n return {\n initialFormValues,\n queryParams: initialFormValues,\n datepickerFocusedInput: getDatepickerFocusedInput(moduleState),\n isCalculationReady: getIsCalculationReady(moduleState, ownProps),\n translations,\n formProps: getFormProps(moduleState, ownProps),\n stayInfo: getStayInfo(moduleState),\n isLoading: getIsLoading(moduleState),\n };\n};\n\nconst mapUrlToProps = url => ({\n queryParams: {\n arrival: url.arrival,\n departure: url.departure,\n guests: url.guests,\n location: url.location,\n },\n});\n\nconst enhance = compose(\n withHistory,\n withProvider('AccommodationStore'),\n withThemeProvider,\n addUrlProps({ mapUrlToProps }),\n connect(mapStateToProps, actions)\n);\n\nconst CostCalculation = props => {\n const { formProps, translations, isCalculationReady, calculateCost, stayInfo, isLoading } = props;\n\n return (\n \n \n \n );\n};\n\nexport default enhance(CostCalculation);\n","import styled from 'styled-components';\nimport { colors } from 'styles/config';\n\nexport const StickyContainer = styled.div`\n display: flex;\n height: calc(auto + 0.1rem);\n position: fixed;\n right: 0;\n bottom: 0;\n left: 0;\n align-items: ${props => (props.scrollable ? 'flex-start' : 'center')};\n box-shadow: 0 0 0.3rem 0.3rem rgba(0, 0, 0, 0.05);\n justify-content: space-around;\n background: ${colors.white};\n overflow-y: auto;\n overflow-x: hidden;\n transform: translated3d(0, 0, 0);\n z-index: 1120;\n`;\n","import React, { useEffect, useRef } from 'react';\nimport { createPortal } from 'react-dom';\nimport { canUseDOM } from 'utils/helpers';\n\nimport { StickyContainer } from './styles';\n\nconst Sticky = props => {\n const stickyTarget = useRef(document.createElement('div'));\n\n useEffect(() => {\n stickyTarget.current.className = 'sticky';\n document.body.appendChild(stickyTarget.current);\n\n return () => {\n document.body.removeChild(stickyTarget.current);\n };\n }, []);\n\n if (!canUseDOM) {\n return null;\n }\n\n return createPortal({props.children}, stickyTarget.current);\n};\n\nexport default Sticky;\n","import {\n SubmitButton as BaseSubmitButton,\n SubmitButtonContainer as BaseSubmitButtonContainer,\n Summary as BaseSummary,\n} from 'components/Shared/CostSummary/styles';\nimport BaseSum from 'components/Shared/CostSummary/Sum';\nimport styled from 'styled-components';\nimport { colors } from 'styles/config';\n\nexport const Summary = styled(BaseSummary)`\n border: none;\n border-radius: 0;\n padding: 1rem 1.5rem 1.5rem !important;\n`;\n\nexport const ChooseDatesButton = styled(BaseSubmitButton)`\n margin: 0;\n background: ${colors.lima};\n`;\n\nexport const ChooseDatesButtonContainer = styled(BaseSubmitButtonContainer)`\n padding: 0;\n margin: 0;\n`;\n\nexport const Sum = styled(BaseSum)`\n display: flex;\n padding: 0;\n margin-bottom: 0.8rem;\n`;\n","import { Button } from '@sun-seasons-24/ui';\nimport withHistory from 'components/HOC/withHistory';\nimport withProvider from 'components/HOC/withProvider';\nimport withThemeProvider from 'components/HOC/withThemeProvider';\nimport Sticky from 'components/Shared/Sticky';\nimport { connect } from 'react-redux';\nimport MediaQuery from 'react-responsive';\nimport { addUrlProps, configureUrlQuery } from 'react-url-query';\nimport { compose, withHandlers } from 'recompose';\nimport { formatMoney } from 'utils/helpers';\nimport history from 'utils/history';\n\nimport * as actions from '../../index';\nimport { getInitialFormValues, getStayInfo, getSubmitUrl, getTermChosen } from '../../selectors';\nimport { ChooseDatesButton, ChooseDatesButtonContainer, Sum, Summary } from './styles';\n\nconfigureUrlQuery({ history });\n\nconst mapStateToProps = (state, ownProps) => {\n const moduleState = state.accommodation;\n const { isModalVisible } = moduleState;\n const { translations } = ownProps;\n\n const queryParams = getInitialFormValues(moduleState, ownProps);\n\n return {\n isModalVisible,\n isTermChosen: getTermChosen(moduleState, ownProps),\n queryParams,\n stayInfo: getStayInfo(moduleState),\n submitUrl: getSubmitUrl(moduleState, ownProps),\n translations,\n };\n};\n\nconst mapUrlToProps = url => ({\n queryParams: {\n arrival: url.arrival,\n departure: url.departure,\n guests: url.guests,\n location: url.location,\n },\n});\n\nconst enhance = compose(\n withHistory,\n withProvider('AccommodationStore'),\n withThemeProvider,\n addUrlProps({ mapUrlToProps }),\n connect(mapStateToProps, actions),\n withHandlers({\n handleChooseDatesButtonClick: props => event => {\n event.preventDefault();\n props.toggleModalVisibility(true);\n },\n })\n);\n\nconst MobileBookNow = ({ handleChooseDatesButtonClick, isTermChosen, submitUrl, translations, stayInfo }) => (\n \n \n {isTermChosen && stayInfo.status === 'possible' ? (\n \n \n \n \n ) : (\n \n \n \n )}\n \n \n);\n\nexport default enhance(MobileBookNow);\n","import styled from 'styled-components';\nimport { colors } from 'styles/config';\n\nexport const Container = styled.div`\n display: block;\n width: 100%;\n`;\n\nexport const Inner = styled.div`\n display: flex;\n height: 4.4rem;\n margin: 1rem auto;\n justify-content: space-between;\n align-items: center;\n background: ${colors.white};\n`;\n\nexport const Parameters = styled.div`\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n padding: 0 1rem;\n font-weight: 400;\n`;\n\nexport const Term = styled.div`\n color: ${colors.mineShaft};\n font-size: 1.2rem;\n`;\n\nexport const Span = styled.span`\n color: ${colors.mariner};\n font-size: 1.1rem;\n`;\n\nexport const ChooseDatesLink = styled.a`\n display: flex;\n align-items: center;\n height: 100%;\n padding: 0 1rem;\n background: ${colors.sun};\n color: ${colors.white};\n font-size: 1.4rem;\n font-weight: 400;\n text-align: center;\n justify-content: space-around;\n border-radius: 0.4rem;\n width: 100%;\n pointer-events: auto;\n\n &:hover {\n color: ${colors.white};\n cursor: pointer;\n }\n`;\n\nexport const ChangeLink = styled.a`\n display: flex;\n align-items: center;\n height: 100%;\n padding: 0 1rem;\n background: ${colors.mariner};\n color: ${colors.white};\n font-size: 1.2rem;\n font-weight: 400;\n border-radius: 0;\n pointer-events: auto;\n\n &:hover {\n color: ${colors.white};\n cursor: pointer;\n }\n`;\n","import withHistory from 'components/HOC/withHistory';\nimport withProvider from 'components/HOC/withProvider';\nimport withThemeProvider from 'components/HOC/withThemeProvider';\nimport Modal from 'components/Layout/Modal';\nimport CostCalculationStatus from 'components/Shared/CostCalculationStatus';\nimport CostCalculationForm from 'components/Shared/Forms/CostCalculationForm';\nimport { useEffect } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport posed, { PoseGroup } from 'react-pose';\nimport { connect } from 'react-redux';\nimport MediaQuery from 'react-responsive';\nimport { addUrlProps, configureUrlQuery } from 'react-url-query';\nimport { compose, withHandlers } from 'recompose';\nimport history from 'utils/history';\n\nimport * as actions from '../../index';\nimport {\n getDatepickerFocusedInput,\n getFormProps,\n getInitialFormValues,\n getIsCalculationReady,\n getIsLoading,\n getStayInfo,\n} from '../../selectors';\nimport { ChangeLink, Container, Inner, Parameters, Span, Term } from './styles';\n\nconfigureUrlQuery({ history });\n\nconst mapStateToProps = (state, ownProps) => {\n const moduleState = state.accommodation;\n const { isModalVisible } = moduleState;\n const { translations } = ownProps;\n\n const initialFormValues = getInitialFormValues(moduleState, ownProps);\n\n return {\n datepickerFocusedInput: getDatepickerFocusedInput(moduleState),\n formProps: getFormProps(moduleState, ownProps),\n initialFormValues,\n isLoading: getIsLoading(moduleState),\n isModalVisible,\n isCalculationReady: getIsCalculationReady(moduleState, ownProps),\n queryParams: initialFormValues,\n stayInfo: getStayInfo(moduleState),\n translations,\n };\n};\n\nconst mapUrlToProps = url => ({\n queryParams: {\n arrival: url.arrival,\n departure: url.departure,\n guests: url.guests,\n },\n});\n\nconst enhance = compose(\n withHistory,\n withProvider('AccommodationStore'),\n withThemeProvider,\n addUrlProps({ mapUrlToProps }),\n connect(mapStateToProps, actions),\n withHandlers({\n hideModal: props => () => {\n props.toggleModalVisibility(false);\n },\n handleButtonClick: props => event => {\n event.preventDefault();\n props.toggleModalVisibility(true);\n },\n })\n);\n\nconst EnterAnimation = posed.div({\n enter: { opacity: 0 },\n exit: { opacity: 1 },\n});\n\nconst MobileCostCalculation = props => {\n const [t] = useTranslation();\n\n const {\n calculateCost,\n formProps,\n handleButtonClick,\n hideModal,\n isLoading,\n isModalVisible,\n isCalculationReady,\n queryParams,\n queryParams: { arrival, departure, guests },\n stayInfo,\n translations,\n } = props;\n\n useEffect(() => {\n if (arrival && departure && guests) {\n calculateCost(queryParams);\n }\n }, [arrival, departure, guests]);\n\n return (\n \n \n {isCalculationReady && arrival && departure && guests ? (\n \n \n {translations.yourStay}\n \n {arrival} - {departure}, {t('guestCount', { count: parseInt(guests, 10) })}\n \n \n {translations.change}\n \n ) : null}\n \n \n \n {isModalVisible && (\n \n \n \n \n \n )}\n \n \n );\n};\n\nexport default enhance(MobileCostCalculation);\n","import Gate from 'adapters/Gate';\nimport { multiReplaceInUrlQuery } from 'react-url-query';\nimport { all, call, put, takeEvery } from 'redux-saga/effects';\nimport URI from 'urijs';\n\nimport * as actions from './index';\nimport types from './types';\n\nconst updateSearchBreadcrumb = params => {\n const link = document.querySelector('.breadcrumbs a.search');\n if (link && link.length) {\n link.href = URI(link.href).query(params).toString();\n }\n};\n\nfunction* calculateCost(action) {\n const query = action.payload;\n\n if (query.arrival && query.departure && query.guests) {\n yield put(actions.setIsCostCalculated(false));\n yield put(actions.setLoading(true));\n const response = yield call(Gate.get, '/stay_info', { params: query });\n yield put(actions.setStayInfo(response.data));\n yield call(multiReplaceInUrlQuery, query);\n yield call(updateSearchBreadcrumb, query);\n yield put(actions.setIsCostCalculated(true));\n yield put(actions.setLoading(false));\n }\n}\n\nfunction* calculateCostSaga() {\n yield takeEvery(types.CALCULATE_COST, calculateCost);\n}\n\nexport default function* sagas() {\n yield all([calculateCostSaga()]);\n}\n","import { applyMiddleware, createStore } from 'redux';\nimport { composeWithDevTools } from 'redux-devtools-extension';\nimport promise from 'redux-promise';\nimport createSagaMiddleware from 'redux-saga';\n\nimport rootReducer from './index';\nimport rootSaga from './sagas';\n\nconst sagaMiddleware = createSagaMiddleware();\n\nconst composeEnhancers = composeWithDevTools({ name: 'Accommodation' });\n\nconst bindMiddleware = middleware => {\n if (process.env.NODE_ENV !== 'production') {\n return composeEnhancers(applyMiddleware(...middleware));\n }\n\n return applyMiddleware(...middleware);\n};\n\nconst store = props => {\n const initialState = {\n accommodation: {\n accommodation: props.accommodation,\n searchData: props.searchData,\n stayInfo: props.stayInfo,\n isModalVisible: false,\n isLoading: false,\n isCostCalculated: false,\n },\n form: {},\n };\n\n const createdStore = createStore(rootReducer, initialState, bindMiddleware([promise, sagaMiddleware]));\n\n createdStore.runSagaTask = () => {\n store.sagaTask = sagaMiddleware.run(rootSaga);\n };\n\n createdStore.runSagaTask();\n\n return createdStore;\n};\n\nexport default store;\n","import 'core-js/stable';\nimport 'regenerator-runtime/runtime';\nimport 'fslightbox';\nimport 'resource_mobile_carousel_component';\nimport 'react-dates/initialize';\n\nimport DateRangePicker from 'components/Elements/DateRangePicker';\nimport LocationSelect from 'components/Elements/LocationSelect';\nimport BookingPolicies from 'components/Shared/BookingPolicies';\nimport $ from 'jquery';\nimport CostCalculation from 'modules/accommodation/components/CostCalculation';\nimport MobileBookNow from 'modules/accommodation/components/MobileBookNow';\nimport MobileCostCalculation from 'modules/accommodation/components/MobileCostCalculation';\nimport AccommodationStore from 'modules/accommodation/store';\nimport Navigation from 'modules/navigation/app';\nimport onmount from 'onmount';\nimport ReactOnRails from 'react-on-rails';\n\n$('[data-js-accordion-header]').on('click tap', () => onmount());\n\nonmount(\n '[data-js-accordions]',\n () => {\n $('[data-js-accordion-header]').each((index, that) => {\n $(that).on('click tap', event => {\n event.preventDefault();\n\n $(event.target)\n .closest('[data-js-accordion]')\n .toggleClass('open')\n .siblings('[data-js-accordion]')\n .removeClass('open');\n });\n });\n },\n () => {\n $('[data-js-accordion-header]').off('click tap');\n }\n);\n\nReactOnRails.registerStore({\n AccommodationStore,\n});\n\nReactOnRails.register({\n MobileCostCalculation,\n MobileBookNow,\n BookingPolicies,\n CostCalculation,\n LocationSelect,\n Navigation,\n DateRangePicker,\n});\n","import Card from 'components/Layout/Card';\nimport renderIf from 'render-if';\n\nimport { Divider, H3, H6, P, Policy } from './styles';\n\nexport default ({ cardTitle, bookingPolicies }) => (\n \n

{cardTitle}

\n {bookingPolicies.map((policy, index) => (\n
\n \n
{policy.title}
\n

{policy.description}

\n
\n {renderIf(index < bookingPolicies.length - 1)()}\n
\n ))}\n
\n);\n","import styled from 'styled-components';\nimport { colors } from 'styles/config';\n\nexport default styled.div`\n height: 0.1rem;\n width: 100%;\n margin: 0 auto 2rem;\n background: ${colors.gainsboro};\n`;\n","import { camelizeKeys } from 'humps';\nimport ReactOnRails from 'react-on-rails';\nimport { Provider } from 'react-redux';\n\nconst withProvider = storeName => ConnectedComponent => props => {\n const store = ReactOnRails.getStore(storeName);\n\n return (\n \n \n \n );\n};\n\nexport default withProvider;\n","import styled from 'styled-components';\nimport { colors } from 'styles/config';\n\nexport const StyledSum = styled.div`\n display: block;\n justify-content: space-between;\n align-items: baseline;\n padding: 0;\n margin: 1rem 0;\n font-size: 1.4rem;\n font-weight: 300;\n text-align: right;\n color: ${colors.mariner};\n`;\n\nexport const Amount = styled.div`\n font-size: 2.6rem;\n font-weight: 400;\n`;\n","import { useTranslation } from 'react-i18next';\nimport { formatMoney } from 'utils/helpers';\n\nimport { Amount, StyledSum } from './styles';\n\nconst Sum = ({ value, className }) => {\n const [t] = useTranslation();\n\n return (\n \n
{t('costCalculation.total')}
\n {formatMoney(value, 'PLN')}\n
\n );\n};\n\nexport default Sum;\n","import { Button } from '@sun-seasons-24/ui';\nimport styled, { css } from 'styled-components';\nimport { colors } from 'styles/config';\n\nexport const LoadingContainer = styled.div`\n display: flex;\n width: 100%;\n justify-content: space-around;\n align-items: center;\n padding: 2rem 0rem;\n`;\n\nexport const Summary = styled.div`\n display: inline-block;\n position: static;\n width: 100%;\n height: auto;\n padding: 0;\n margin-top: ${props => (props.isLoading ? '1rem' : 0)};\n /* border: 0.2rem solid #fbad17; */\n /* border-radius: 0.3rem; */\n color: ${colors.mineShaft};\n background: ${colors.white};\n`;\n\nconst primarySummaryTitleCss = css`\n color: ${colors.white};\n background: ${colors.sun};\n font-weight: 400;\n`;\n\nconst defaultSummaryTitleCss = css`\n font-weight: 300;\n border-bottom: 0.1rem solid ${colors.concrete};\n`;\n\nexport const SummaryTitle = styled.div`\n display: flex;\n align-items: center;\n height: 5.2rem;\n padding: 0 2rem;\n border-bottom: 0.1rem solid ${colors.concrete};\n font-size: 1.6rem;\n\n ${defaultSummaryTitleCss};\n\n ${props => props.primary && primarySummaryTitleCss};\n`;\n\nexport const List = styled.div`\n padding: ${props => (props.noPadding ? '0 0 2rem' : '2rem 0')};\n margin: 0;\n border-bottom: ${props => (props.noBorder ? 0 : `0.1rem solid ${colors.concrete}`)};\n color: ${props => (props.secondary ? colors.mariner : colors.initial)};\n font-size: 1.4rem;\n`;\n\nexport const Cost = styled.div`\n display: flex;\n justify-content: space-between;\n\n &:not(:last-child) {\n margin-bottom: 0.8rem;\n }\n`;\n\nexport const Name = styled.span`\n font-weight: 300;\n`;\n\nexport const Value = styled.span`\n font-weight: 400;\n`;\n\n/* SubmitButton */\n\nexport const SubmitButtonContainer = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-around;\n margin: 0 1rem 1rem;\n`;\n\nexport const SubmitButton = styled(Button)`\n height: 4.4rem;\n background: ${colors.sun};\n font-size: 1.6rem;\n margin: 0;\n`;\n","import { format, getHours, getMinutes } from 'date-fns';\nimport compose from 'lodash/fp/compose';\nimport groupBy from 'lodash/fp/groupBy';\nimport map from 'lodash/fp/map';\nimport range from 'lodash/fp/range';\nimport round from 'lodash/fp/round';\nimport sortBy from 'lodash/fp/sortBy';\nimport isNil from 'lodash/isNil';\nimport omitBy from 'lodash/omitBy';\nimport sumBy from 'lodash/sumBy';\nimport { createSelector } from 'reselect';\nimport URI from 'urijs';\n\nconst mapObject = map.convert({ cap: false });\n\nconst getSearchData = state => state.searchData;\nconst getDatepickerFocusedInput = state => state.datepickerFocusedInput;\nconst getQueryParams = (_state, props) => props.queryParams;\nconst getAccommodation = (_state, props) => props.accommodationData;\nconst getBaseUrl = (_state, props) => props.bookingUrl;\nconst getDatePickerProps = (_state, props) => props.datePickerProps;\nconst getIsLoading = state => state.isLoading;\nconst getIsCostCalculated = state => state.isCostCalculated;\n\nconst getUrlHasBookingParams = createSelector(\n getQueryParams,\n params => !!(params.arrival && params.departure && params.guests)\n);\n\nconst getIsCalculationReady = createSelector(\n [getIsCostCalculated, getUrlHasBookingParams],\n (isCostCalculated, urlHasBookingParams) => isCostCalculated && urlHasBookingParams\n);\n\nconst getMaxNumAdults = createSelector(getAccommodation, accommodation => accommodation.maxNumAdults);\n\nconst getAvailableDates = createSelector(getAccommodation, accommodation => {\n const currentDate = new Date();\n const currentHour = getHours(currentDate);\n const currentMinutes = getMinutes(currentDate);\n\n const isAfter3PM = currentHour > 15 || (currentHour === 15 && currentMinutes > 0);\n\n let dates = accommodation.availableDates;\n\n if (isAfter3PM) {\n dates = dates.filter(date => format(new Date(date), 'yyyy-MM-dd') !== format(new Date(), 'yyyy-MM-dd'));\n }\n\n return dates;\n});\n\nconst getInitialFormValues = createSelector(\n [getSearchData, getQueryParams, getAccommodation],\n (searchData, queryParams, accommodation) => {\n const { defaultGuestsCount } = searchData;\n\n const baseValues = {\n accommodation: accommodation.slug,\n property: accommodation.propertySlug,\n location: accommodation.locationSlug,\n };\n\n return { guests: defaultGuestsCount, ...omitBy(queryParams, isNil), ...baseValues };\n }\n);\n\nconst getTermChosen = createSelector(\n getInitialFormValues,\n initialFormValues => !!(initialFormValues.arrival && initialFormValues.departure && initialFormValues.guests)\n);\n\nconst getSubmitUrl = createSelector([getInitialFormValues, getBaseUrl], (queryParams, baseUrl) =>\n URI(baseUrl).query(queryParams).toString()\n);\n\nconst getFormProps = createSelector(\n [getAvailableDates, getInitialFormValues, getMaxNumAdults, getBaseUrl, getDatePickerProps],\n (availableDates, initialFormValues, maxNumAdults, bookingUrl, datePickerProps) => ({\n initialValues: initialFormValues,\n guestOptions: [...range(1, maxNumAdults), maxNumAdults],\n datePickerProps: {\n ...datePickerProps,\n availableDates,\n },\n submitUrl: bookingUrl,\n })\n);\n\nconst selectStayInfo = stayInfo => {\n const { cost } = stayInfo;\n\n if (!cost || !Object.keys(cost).length) {\n return stayInfo;\n }\n\n let datePrices = cost ? cost.datePrices : [];\n const otherPrices = cost && cost.otherPrices ? cost.otherPrices : [];\n\n datePrices = compose(\n sortBy('-count'),\n mapObject((objs, price) => ({\n price,\n count: objs.length,\n sum: sumBy(objs, obj => round(obj.price)),\n })),\n groupBy(datePrice => parseFloat(datePrice.price))\n )(datePrices);\n\n return {\n ...stayInfo,\n cost: {\n ...cost,\n total: parseFloat(cost.total),\n prepayment: parseFloat(cost.prepayment),\n uponArrival: parseFloat(cost.uponArrival),\n datePrices,\n additionalCosts: otherPrices.map(price => ({ ...price, value: parseFloat(price.value) })),\n },\n };\n};\n\nconst getStayInfo = createSelector(state => state.stayInfo, selectStayInfo);\n\nexport {\n getDatepickerFocusedInput,\n getFormProps,\n getInitialFormValues,\n getIsCalculationReady,\n getIsLoading,\n getStayInfo,\n getSubmitUrl,\n getTermChosen,\n selectStayInfo,\n};\n"],"names":["onmount","Swiper","modules","Pagination","pagination","el","type","styled","div","_templateObject","Divider","BaseDivider","_taggedTemplateLiteral","H3","h3","_templateObject2","H6","h6","_templateObject3","colors","mineShaft","P","p","_templateObject4","boulder","Policy","_templateObject5","props","first","last","WrappedComponent","_Component","_inherits","_class","_super","_createSuper","_classCallCheck","apply","arguments","key","value","_this","history","listen","forceUpdate","React","this","Component","Messages","compose","branch","isLoading","renderNothing","onlyUpdateForKeys","setPropTypes","minNights","PropTypes","status","isCalculationReady","translations","defaultProps","_ref","t","_slicedToArray","useTranslation","renderIf","Alert","mode","centered","form","messages","chooseTerm","available","unavailable","count","SummaryLoading","LoadingContainer","Loading","color","sun","delay","height","width","cost","Card","total","additionalCosts","datePrices","prepayment","uponArrival","Title","primary","costsSummary","Body","List","noPadding","map","price","sum","Cost","Name","concat","Value","formatMoney","_ref2","title","camelize","Sum","SubmitButton","fluid","rounded","bookNow","Container","InputsContainer","mariner","FormRow","FormItem","white","Label","label","Icon","BaseIcon","_templateObject6","Select","select","_templateObject7","Form","_templateObject8","_templateObject9","htmlFor","Object","assign","input","guestOptions","option","name","withHandlers","onChange","values","arrival","departure","guests","calculateCost","reduxForm","change","isRequired","datePickerProps","initialValues","stayInfo","submitUrl","i18n","_props$stayInfo","action","DateRangePicker","initialEndDate","initialStartDate","inputLayout","language","showPlaceholders","showLabels","Field","component","GuestsSelect","fieldProps","hidden","CostCalculationStatus","CostSummary","CALCULATE_COST","SET_IS_COST_CALCULATED","SET_LOADING","SET_STAY_INFO","TOGGLE_MODAL_VISIBILITY","createAction","types","toggleModalVisibility","setLoading","setStayInfo","setIsCostCalculated","accommodationReducer","handleActions","_defineProperty","_handleActions","state","_objectSpread","isModalVisible","payload","isCostCalculated","combineReducers","accommodation","formReducer","configureUrlQuery","withHistory","withProvider","withThemeProvider","addUrlProps","mapUrlToProps","url","queryParams","location","connect","ownProps","moduleState","initialFormValues","getInitialFormValues","datepickerFocusedInput","getDatepickerFocusedInput","getIsCalculationReady","formProps","getFormProps","getStayInfo","getIsLoading","actions","MediaQuery","query","CostCalculationForm","StickyContainer","scrollable","stickyTarget","useRef","document","createElement","useEffect","current","className","body","appendChild","removeChild","canUseDOM","createPortal","children","Summary","BaseSummary","BaseSubmitButton","lima","BaseSubmitButtonContainer","BaseSum","isTermChosen","getTermChosen","getSubmitUrl","handleChooseDatesButtonClick","event","preventDefault","Sticky","Button","as","href","onClick","chooseDates","Inner","Parameters","Term","Span","span","ChangeLink","a","enhance","hideModal","handleButtonClick","EnterAnimation","posed","enter","opacity","exit","_props$queryParams","yourStay","parseInt","PoseGroup","Modal","id","minimal","visible","_regeneratorRuntime","exports","Op","prototype","hasOwn","hasOwnProperty","defineProperty","obj","desc","$Symbol","Symbol","iteratorSymbol","iterator","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","toStringTag","define","enumerable","configurable","writable","err","wrap","innerFn","outerFn","self","tryLocsList","protoGenerator","Generator","generator","create","context","Context","makeInvokeMethod","tryCatch","fn","arg","call","ContinueSentinel","GeneratorFunction","GeneratorFunctionPrototype","IteratorPrototype","getProto","getPrototypeOf","NativeIteratorPrototype","Gp","defineIteratorMethods","forEach","method","_invoke","AsyncIterator","PromiseImpl","invoke","resolve","reject","record","result","__await","then","unwrapped","error","previousPromise","callInvokeWithMethodAndArg","Error","done","delegate","delegateResult","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","methodName","undefined","TypeError","info","resultName","next","nextLoc","pushTryEntry","locs","entry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","iterable","iteratorMethod","isNaN","length","i","displayName","isGeneratorFunction","genFun","ctor","constructor","mark","setPrototypeOf","__proto__","awrap","async","Promise","iter","keys","val","object","reverse","pop","skipTempReset","prev","charAt","slice","stop","rootRecord","rval","exception","handle","loc","caught","hasCatch","hasFinally","finallyEntry","complete","finish","thrown","delegateYield","_marked","_marked2","calculateCostSaga","_marked3","sagas","updateSearchBreadcrumb","params","link","querySelector","URI","toString","response","_context","put","Gate","get","data","multiReplaceInUrlQuery","_context2","takeEvery","_context3","all","sagaMiddleware","createSagaMiddleware","composeWithDevTools","store","middleware","initialState","searchData","createdStore","createStore","rootReducer","promise","applyMiddleware","_toConsumableArray","runSagaTask","sagaTask","run","rootSaga","$","on","each","index","that","target","closest","toggleClass","siblings","removeClass","off","ReactOnRails","AccommodationStore","MobileCostCalculation","MobileBookNow","BookingPolicies","cardTitle","bookingPolicies","policy","description","CostCalculation","LocationSelect","Navigation","gainsboro","storeName","ConnectedComponent","Provider","camelizeKeys","StyledSum","Amount","primarySummaryTitleCss","css","defaultSummaryTitleCss","concrete","noBorder","secondary","initial","SubmitButtonContainer","_templateObject10","_templateObject11","mapObject","cap","getQueryParams","_state","getAccommodation","accommodationData","getBaseUrl","bookingUrl","getUrlHasBookingParams","createSelector","urlHasBookingParams","getMaxNumAdults","maxNumAdults","getAvailableDates","currentDate","Date","currentHour","getHours","currentMinutes","getMinutes","isAfter3PM","dates","availableDates","filter","date","format","defaultGuestsCount","baseValues","slug","property","propertySlug","locationSlug","omitBy","isNil","baseUrl","range","selectStayInfo","otherPrices","sortBy","objs","sumBy","round","groupBy","datePrice","parseFloat"],"sourceRoot":""}