{"version":3,"sources":["webpack:///./app/javascript/images/icons/check-icon.svg","webpack:///./app/javascript/js/components/MobileCalendarModal/datesHelpers.js","webpack:///./app/javascript/js/components/MobileCalendarModal/modalHandler.js","webpack:///./app/javascript/js/components/MobileCalendarModal/template.js","webpack:///./app/javascript/js/common/dom.js","webpack:///./app/javascript/images/icons/arrow-grey.svg","webpack:///./app/javascript/images/icons/arrow-white.svg","webpack:///./app/javascript/images/icons/calendar-checked.svg","webpack:///./app/javascript/images/icons/arrow-down.svg","webpack:///./app/javascript/js/components/MobileCalendarModal/index.js","webpack:///./app/javascript/js/components/MobileCalendarModal/fillContactUsWhatsAppWithDates.js","webpack:///./app/javascript/js/components/MobileCalendarModal/constants.js","webpack:///./app/javascript/js/components/ScheduledPaymentsContent/template.js","webpack:///./app/javascript/js/components/MobileCalendarModal/summaryInfo.js","webpack:///./app/javascript/js/components/ScheduledPaymentsContent/index.js","webpack:///./app/javascript/images/icons/question.svg"],"names":["datesToInputs","_ref","_ref2","checkIn","checkOut","checkInInput","checkOutInput","checkInString","format","SIMPLE_DATE_FORMAT","checkOutString","value","setDates","date1","date2","datePickStartEl","document","querySelector","datePickEndEl","DATEPICKER_FORMAT","toString","inputsToCalendar","_ref3","parse","open","onShow","onClose","body","modal","getElementById","MODAL_ID","MicroModal","close","remove","html","concat","t","arrowWhiteSrc","closeIcon","calendarChecked","arrowGreySrc","arrowDown","questionSrc","checkIcon","appendChild","htmlToElement","show","fillContactUsWhatsAppWithDates","window","isWebview","ReactNativeWebView","postMessage","template","createElement","trim","innerHTML","content","firstChild","executeFirstTimeIsVisible","element","fn","IntersectionObserver","entries","self","i","length","isIntersecting","e","unobserve","rootMargin","threshold","observe","_regeneratorRuntime","exports","Op","Object","prototype","hasOwn","hasOwnProperty","defineProperty","obj","key","desc","$Symbol","Symbol","iteratorSymbol","iterator","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","toStringTag","define","enumerable","configurable","writable","err","wrap","innerFn","outerFn","tryLocsList","protoGenerator","Generator","generator","create","context","Context","makeInvokeMethod","tryCatch","arg","type","call","ContinueSentinel","GeneratorFunction","GeneratorFunctionPrototype","IteratorPrototype","getProto","getPrototypeOf","NativeIteratorPrototype","values","Gp","defineIteratorMethods","forEach","method","_invoke","AsyncIterator","PromiseImpl","previousPromise","callInvokeWithMethodAndArg","resolve","reject","invoke","record","result","__await","then","unwrapped","error","state","Error","doneResult","delegate","delegateResult","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","done","methodName","undefined","TypeError","info","resultName","next","nextLoc","pushTryEntry","locs","entry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","iterable","iteratorMethod","isNaN","displayName","isGeneratorFunction","genFun","ctor","constructor","name","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","asyncGeneratorStep","gen","_next","_throw","_asyncToGenerator","args","arguments","apply","datePickCheckoutMobile","maxDate","datePickCheckinMobile","_modalReservationForm","_callee2","http","searchDateFilter","preloadUrl","minimumStay","minDateParsed","blockedCheckOutDatesList","checkInEl","checkOutEl","checkInTextDivEl","checkInTextEl","checkInLabelEl","checkOutTextDivEl","checkOutTextEl","checkOutLabelEl","submitDatesButtonEl","clearDatesButtonEl","minParsed","searchedDatesCheckIn","searchedDatesCheckOut","moveIn","moveOut","useDates","today","disabledMoveOutDates","_breakdownPropsEl","locale","datesButton","bestdealDatesButton","withoutDatesButton","requestAutoSubmitButton","requestAutoSubmitButtonTrigger","createDatePicker","selectCheckinDatesHandler","selectCheckoutDatesHandler","checkScrollToMinDate","readElements","goToUpdateMobilePreview","clearCalendarDates","preloadMobile","breakdownPropsEl","applyCheckInCheckOutDatesIfExisten","handleSeeDatesButton","handleSeeBestDealDatesButton","handleSeeWithoutDatesButton","handleRequestAutoSubmitButton","_args2","_context2","Date","getAttribute","parseInt","getElement","classList","add","datePickCheckinMobileEl","Litepicker","inlineMode","singleMode","onSelect","datePickCheckoutMobileEl","onRender","setTimeout","unixDate","dateCheckIn","getDate","newMinDate","addDays","newMaxDate","verifyBlockedDates","innerText","setOptions","minDate","daysDiff","startDate","disabled","clearSelection","toDateString","scrollIntoView","showCheckOutMessage","showReservationConfirmSubmit","dateCheckOut","sumPetfee","checked","closeDatesModalBtnEl","removeEventListener","closeMicroModal","addEventListener","checkInTabHandler","checkOutTabHandler","submitDatesButtonElText","sumPetFee","updateMobilePreview","form","dates","submit","showCheckInMessage","style","display","_callee","blockedCheckInDatesList","minCheckInDate","disableWeekends","_yield$http$get","_yield$http$get$data","_maxCheckInDate","_minCheckInDate","_blockedCheckInDatesList","_blockedCheckOutDatesList","_disableWeekends","_disabledMoveOutDates","searchedDates","_context","get","data","max_check_in_date","min_check_in_date","blocked_checkin_dates_list","blocked_checkout_dates_list","disable_weekends","disabled_move_out_dates","lang","numberOfMonths","numberOfColumns","hotelMode","firstDay","mobileFriendly","bookedDays","presetCheckInString","presetCheckOutString","setDate","gotoDate","openMobileCalendarModal","click","checkOutDate","checkOutParsed","goToCheckInTab","goToCheckOutTab","modalReservationForm","_x","_x2","addDatesToWhatsAppMessage","breakdownPaymentType","whatappPaymentType","payment_type","replaceAll","modalContactUsWhatsAppLinkEl","querySelectorAll","endDateText","textContent","endDate","iniDateText","buttonType","propertyId","location","href","split","at","campaingTrackerHrefUrl","el","btn","printCurrency","amount","formatCurrency","payments","map","p","date","index","total","breakdown","prorated","deposit_amount","cleaning_fee","needsBreakDown","rent","printRentLabel","only_rent","coupon_discount","long_term_discount","final_cleaning_fee","fire_insurance","condominium_price","iptu_price","pet_fee","join","breakdownFirstMonthLabel","nights","timeSpan","payInFull","isLongTerm","days","breakdownTotalValue","inAdvance","isShortTerm","monthlyCleaningFeeTotal","charging_utilities","time_span","total_monthly_cleaning_fee","breakdownOnChangeSelection","breakdownEl","breakdownDueTodaySpanEl","breakdownPaymentTypeEl","breakdownPriceValueEl","breakdownPaymentTypesEl","breakdownDueTodayEl","breakdownDueTodayValueEl","breakdownFirstRentSpanEl","breakdownPayInAdvanceEl","breakdownPayMonthlyEl","scheduledPaymentsEl","breakdownPayInAdvanceValuesSubtitleValueEl","breakdownCleaningFeeValueEl","breakdownCondominiumValueEl","breakdownIptuValueEl","breakdownPayMonthlyValuesSubtitleValueEl","payment","total_iptu","total_condominium","total_w_discount","total_only_rent","total_rent","breakdownPayInAdvanceValuesSubtitleNumericValue","replace","breakdownPayMonthlyLabelsSubtitleNumericValue","willMovingWithPetCheckBoxEl","breakdownPetFeeValueEl","event","numericPetFeeValue","target","breakdownChangeValues","breakdownPayInAdvanceLabelsSubtitleValueEl","breakdownPayInAdvanceValuesEl","breakdownPayInAdvanceValuesTitleValueEl","breakdownPayInAdvanceValuesDiscountTitleValueEl","breakdownPayMonthlyLabelsSubtitleValueEl","breakdownPayMonthlyValuesEl","breakdownPayMonthlyValuesTitleValueEl","discount_percent","discount","monthly_rent_with_discount_w_cleaning_fee","monthly_rent_w_cleaning_fee","_x3","_x4","_updateMobilePreview","breakdownMobileEl","breakdownDepositLineEl","breakdownDepositValueEl","breakdownCleaningFeeLineEl","breakdownCleaningFeeTooltip","breakdownFinalCleaningFeeLineEl","breakdownFinalCleaningFeeValueEl","breakdownCloseModalButtonEl","scheduledPaymentsButtonEl","breakdownPetFeeLineEl","breakdownPetFeeLabel","breakdownFireInsuranceValueEl","breakdownCondominiumEl","breakdownIptuEl","willMovingWithPetContainer","isMovingWithPet","submitButtonEl","propertyAvailable","propertyPrice","propertyHasOriginalPrice","propertyOriginalPrice","previewUrl","input","petFriendly","monthlyRent","firstPayment","firstPaymentBreakdown","tooltipCleaning","color","numericTotal","submitForm","stopPropagation","start_date","end_date","handleScheduledPaymentsButton","params","pet_friendly","monthly_rent_with_discount","setAttribute","tippy","dropContent","removeChild","render"],"mappings":";2FAAA,OAAe,cAA0B,sE,iCCAzC,kHAEaA,EAAgB,SAAHC,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,MAAMC,aAAuDtK,IAA7CmV,GAAsB3F,mBAAmC,OAAS,OAClHuE,EAAiCrL,UAAY,MAAQ6F,YAAe4G,GAAsB3F,oBAE1FyE,EAA0BtK,iBAAiB,QAASgM,GAEpDK,YAAM,wBACNre,SAASC,cAAc,qBAAqB6P,UAAUC,IAAI,gBAC1D+L,EAAkBhM,UAAU7O,OAAO,gBAEnC2b,EAA2BlK,MAAMC,QAAU0K,EAAc,OAAS,OAClEd,EAAsB7J,MAAMC,QAAU0K,EAAc,OAAS,OAC7D1C,EAAuB5J,UAAY,MAAQ6F,YAAeO,EAAUc,SAEpEwE,EAA8B1L,UAAY,MAAQ6F,YAAeO,EAAUW,gBAEtEX,EAAUY,oBACb2E,EAAuBhK,MAAMC,QAAU,QAGpCwE,EAAUa,aACb2E,EAAgBjK,MAAMC,QAAU,QACjC,yBAAAc,EAAAzI,UAAA4H,QACFvG,MAAA,KAAAD,WAED,IAAM4R,EAAgC,YC5UhB,SAACnH,GAErB,IADA,IAAMyH,EAActe,SAASC,cAAc,oCACpCqe,EAAY7b,YACjB6b,EAAYC,YAAYD,EAAY7b,YAEtC,IAAMvB,EAAOsB,EAAQqU,GACrByH,EAAY1c,YAAYC,YAAcX,IDuUtCsd,CAAO3H,IAGH+G,EAAa,WACjB5d,SAASC,cAAc,qBAAqByS,MAAMC,QAAU,QAC5D3S,SAASC,cAAc,6BAA6B6U,U,gCErVtD,OAAe,cAA0B","file":"js/16-a69a21db71bf1dfc9122.chunk.js","sourcesContent":["export default __webpack_public_path__ + \"media/images/icons/check-icon-c06640f2b22a938ce0409de40f45a2bb.svg\";","import { format, SIMPLE_DATE_FORMAT, DATEPICKER_FORMAT, parse } from '../../common/dates';\n\nexport const datesToInputs = ({ checkIn, checkOut }, { checkInInput, checkOutInput }) => {\n const checkInString = checkIn ? format(checkIn, SIMPLE_DATE_FORMAT) : '';\n const checkOutString = checkOut ? format(checkOut, SIMPLE_DATE_FORMAT) : '';\n\n checkInInput.value = checkInString;\n checkOutInput.value = checkOutString;\n};\n\nexport function setDates(date1, date2) {\n const datePickStartEl = document.querySelector('.datepick-start');\n const datePickEndEl = document.querySelector('.datepick-end');\n datePickStartEl.value = format(date1, DATEPICKER_FORMAT).toString();\n datePickEndEl.value = format(date2, DATEPICKER_FORMAT).toString();\n}\n\nexport const inputsToCalendar = ({ checkInInput, checkOutInput }) => {\n const checkIn = checkInInput.value ? parse(checkInInput.value, SIMPLE_DATE_FORMAT) : null;\n const checkOut = checkOutInput.value ? parse(checkOutInput.value, SIMPLE_DATE_FORMAT) : null;\n\n return {\n checkIn, checkOut\n };\n};\n","import MicroModal from 'micromodal';\nimport { template } from './template';\nimport { htmlToElement } from '../../common/dom';\nimport { MODAL_ID } from './constants';\nimport fillContactUsWhatsAppWithDates from './fillContactUsWhatsAppWithDates';\n\nexport const open = ({ onShow, onClose }) => {\n const body = document.querySelector('body');\n const modal = document.getElementById(MODAL_ID);\n\n const handleOnClose = modal => {\n onClose && onClose(modal);\n };\n\n const handleOnShow = modal => {\n onShow && onShow(modal);\n };\n\n if (modal) {\n MicroModal.close(MODAL_ID);\n modal.remove();\n }\n\n const html = template();\n body.appendChild(htmlToElement(html));\n\n MicroModal.show(MODAL_ID, { onShow: handleOnShow, onClose: handleOnClose });\n fillContactUsWhatsAppWithDates(window);\n};\n\nexport const close = () => {\n if (window.isWebview) {\n window.ReactNativeWebView.postMessage('CloseButtonClicked');\n }\n\n const modal = document.getElementById(MODAL_ID);\n MicroModal.close(MODAL_ID);\n modal.remove();\n};\n","import { t } from '../../common/translations';\nimport { MODAL_ID } from './constants';\nimport arrowGreySrc from 'images/icons/arrow-grey.svg';\nimport arrowWhiteSrc from 'images/icons/arrow-white.svg';\nimport questionSrc from 'images/icons/question.svg';\nimport calendarChecked from 'images/icons/calendar-checked.svg';\nimport arrowDown from 'images/icons/arrow-down.svg';\nimport checkIcon from 'images/icons/check-icon.svg';\nimport closeIcon from 'images/react_icons/xmark.svg';\n\nexport const template = () => `\n
\n
\n
\n
\n \n
\n
\n
\n ${t('apartment_page.js.modal.select')}\n
\n
\n ${t('apartment_page.js.modal.check_in')}\n
\n
\n \n
\n
\n
\n
\n ${t('apartment_page.js.modal.select')}\n
\n
\n ${t('apartment_page.js.modal.check_out')}\n
\n
\n \n
\n
\n
\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n
\n
\n ${t('apartment_page.js.modal.clear_filters')}\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n
\n
\n \n ${t('property_card.by_month')}\n
\n
\n
\n
\n \n
\n
\n ${t('apartment_page.reservation_form.available_from')}\n \n \n
\n
\n
\n
\n \n \n \n \n \n
\n
\n ${t('apartment_page.reservation_form.breakdown.quote_summary')}\n
\n 31 Nights at\n
\n
\n
\n
\n ${t('apartment_page.reservation_form.breakdown.first_month_rent')}\n \n \n \n
\n
\n \n R$ 0\n \n
\n
\n\n
\n
\n ${t('apartment_page.reservation_form.breakdown.long_term_discount')}\n
\n
\n \n R$ 0\n \n
\n
\n\n
\n
\n ${t('apartment_page.reservation_form.breakdown.cleaning_fee_label')}\n \n \n \n \n \n
\n
\n \n R$ 0\n \n
\n
\n\n
\n
\n ${t('apartment_page.reservation_form.breakdown.deposit_amount_label')}\n \n \n \n
\n
\n \n R$ 0\n \n
\n
\n\n
\n
\n ${t('apartment_page.reservation_form.breakdown.final_cleaning_fee_label')}\n \n \n \n
\n
\n \n R$ 0\n \n
\n
\n\n
\n
\n ${t('apartment_page.reservation_form.breakdown.fire_insurance_label')}\n \n \n \n
\n
\n \n R$ 0\n \n
\n
\n\n
\n
\n ${t('apartment_page.reservation_form.breakdown.condominium_label')}\n
\n
\n \n R$ 0\n \n
\n
\n\n
\n
\n ${t('apartment_page.reservation_form.breakdown.iptu_label')}\n
\n
\n \n R$ 0\n \n
\n
\n\n\n \n\n
\n
\n ${t('apartment_page.reservation_form.breakdown.pet_fee_label')}\n \n \n \n
\n
\n \n R$ 0\n \n
\n
\n\n
\n
\n \n
\n
\n \n R$ 0\n \n
\n
\n \n\n
\n
\n
\n
\n \n
\n
\n ${t('apartment_page.reservation_form.breakdown.pay_in_advance')}\n \n
\n
\n
\n
\n \n \n
\n \n
\n
\n
\n
\n
\n \n
\n
\n ${t('apartment_page.reservation_form.breakdown.pay_monthly')}\n \n
\n
\n
\n \n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n ${t('apartment_page.reservation_form.wont_charge')}\n
\n
\n \n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n`;\n","export function htmlToElement(html) {\n const template = document.createElement('template');\n html = html.trim(); // Never return a text node of whitespace as the result\n template.innerHTML = html;\n return template.content.firstChild;\n}\n\nexport function show(element, display = undefined) {\n\n if (display) {\n element.style.display = display;\n return;\n }\n\n const dataDisplay = element.getAttribute('data-display');\n\n if (dataDisplay !== undefined) {\n element.style.display = dataDisplay;\n return;\n }\n\n element.style.display = 'block';\n}\n\nexport function hide(element) {\n if (element.style.display !== 'none') {\n element.setAttribute('data-display', element.style.display);\n }\n element.style.display = 'none';\n}\n\nexport function executeFirstTimeIsVisible(element, fn) {\n const options = {\n rootMargin: '100px',\n threshold: 0\n };\n\n const observer = new IntersectionObserver(\n (entries, self) => {\n\n for(let i = 0; i < entries.length; i < i++) {\n if (entries[i].isIntersecting) {\n try {\n fn();\n } catch (e) {\n throw e;\n } finally {\n self.unobserve(element);\n }\n return;\n }\n }\n\n },\n options\n );\n\n observer.observe(element);\n}","export default __webpack_public_path__ + \"media/images/icons/arrow-grey-b6081fd7488885f6539835d8b3c71c70.svg\";","export default __webpack_public_path__ + \"media/images/icons/arrow-white-80724e09dac246333cb0a99338001d77.svg\";","export default __webpack_public_path__ + \"media/images/icons/calendar-checked-ebff8a2fddc27d8c9fa8a652dfeaa779.svg\";","export default __webpack_public_path__ + \"media/images/icons/arrow-down-6192b2b913afbdd17d551b17b57fde45.svg\";","import Litepicker from 'litepicker';\nimport { t } from '../../common/translations';\nimport {\n addDays,\n format,\n parse,\n daysDiff,\n verifyBlockedDates\n} from '../../common/dates';\nimport { open as openMobileCalendarModal, close as closeMicroModal } from './modalHandler';\nimport { updateMobilePreview } from './summaryInfo';\nimport { datesToInputs, inputsToCalendar } from './datesHelpers';\nimport { getElement } from '../../common/asyncElementGetter';\n\nlet datePickCheckoutMobile = null;\nlet maxDate = null;\nlet datePickCheckinMobile = null;\n\nasync function modalReservationForm({ document }, { http }, searchDateFilter = false) {\n let preloadUrl = null;\n let minimumStay = null;\n let minDateParsed = null;\n let blockedCheckOutDatesList = [];\n let checkInEl = null;\n let checkOutEl = null;\n let checkInTextDivEl = null;\n let checkInTextEl = null;\n let checkInLabelEl = null;\n let checkOutTextDivEl = null;\n let checkOutTextEl = null;\n let checkOutLabelEl = null;\n let submitDatesButtonEl = null;\n let clearDatesButtonEl = null;\n let checkInTabEL = null;\n let checkOutTabEL = null;\n let minParsed = null;\n let searchedDatesCheckIn = null;\n let searchedDatesCheckOut = null;\n let moveIn = null;\n let moveOut = null;\n let useDates = 'normal';\n const today = new Date();\n let disabledMoveOutDates = [];\n\n if (!searchDateFilter) {\n const breakdownPropsEl = document.querySelector('#breakdown-props');\n preloadUrl = breakdownPropsEl.getAttribute('data-preload-url');\n minimumStay = parseInt(breakdownPropsEl.getAttribute('data-minimum-stay') || '0');\n }\n\n const locale = document.querySelector('html').getAttribute('lang');\n const checkInInput = document.querySelector('#search_check_in');\n const checkOutInput = document.querySelector('#search_check_out');\n const datesButton = await getElement('.select-dates', false, true, 500, 30);\n const bestdealDatesButton = await getElement('.select-bestdeal-dates', false, true, 500, 30);\n const withoutDatesButton = await getElement('.reservation-sticky-submit', false, true, 500, 30);\n const requestAutoSubmitButton = await getElement('.reservation-sticky-request-submit', false, true, 500, 30);\n const requestAutoSubmitButtonTrigger = await getElement('.reservation-sticky-request-submit-trigger', false, true, 500, 30);\n\n const createDatePicker = () => {\n minimumStay = parseInt(`${t('apartment_page.js.modal.minimum_stay')}`);\n document.querySelector('.check-out-container').classList.add('display-none');\n const datePickCheckinMobileEl = document.querySelector('#mobile-checkin-date');\n datePickCheckinMobile = new Litepicker({\n element: datePickCheckinMobileEl,\n inlineMode: true,\n singleMode: true,\n onSelect: function(date1) {\n selectCheckinDatesHandler(date1);\n }\n });\n\n const datePickCheckoutMobileEl = document.querySelector('#mobile-checkout-date');\n datePickCheckoutMobile = new Litepicker({\n element: datePickCheckoutMobileEl,\n inlineMode: true,\n singleMode: true,\n onSelect: function(date2) {\n selectCheckoutDatesHandler(date2);\n },\n onRender: function() {\n setTimeout(() => {\n disabledMoveOutDates.forEach(element => {\n const unixDate = Date.parse(element);\n if (document.querySelector('a[data-time=\"' + unixDate + '\"]')) {\n document.querySelector('.check-out-container a[data-time=\"' + unixDate + '\"]').classList.add('is-locked');\n }\n });\n }, 100);\n }\n });\n readElements(searchDateFilter);\n preloadMobile();\n };\n\n const selectCheckinDatesHandler = (dateCheckIn) => {\n const checkOut = datePickCheckoutMobile.getDate();\n const newMinDate = addDays(dateCheckIn, minimumStay);\n const newMaxDate = verifyBlockedDates(blockedCheckOutDatesList, dateCheckIn);\n checkInTextEl.innerText = format(dateCheckIn, 'D MMMM YYYY');\n moveIn = document.querySelector('.check_in');\n moveIn.classList.add('wrapper-adjust');\n datePickCheckoutMobile.setOptions({\n minDate: newMinDate,\n maxDate: newMaxDate\n });\n if (!checkOut || daysDiff(newMinDate, checkOut) < 0) {\n datePickCheckoutMobile.setOptions({\n startDate: newMinDate\n });\n document.querySelector('.check-in-container').classList.add('display-none');\n document.querySelector('.check-out-container').classList.remove('display-none');\n checkInEl.classList.remove('selected');\n checkInLabelEl.classList.add('display-none');\n checkInTextDivEl.classList.remove('display-none');\n checkOutLabelEl.classList.remove('display-none');\n checkOutTextDivEl.classList.add('display-none');\n checkOutEl.classList.add('selected');\n submitDatesButtonEl.disabled = true;\n datePickCheckoutMobile.clearSelection();\n minParsed = Date.parse(addDays(newMinDate, 14).toDateString());\n if (document.querySelector('.check-out-container a[data-time=\"' + minParsed + '\"]')) {\n document.querySelector('.check-out-container a[data-time=\"' + minParsed + '\"]').scrollIntoView(false);\n } else {\n minParsed = Date.parse(addDays(newMinDate).toDateString());\n if (document.querySelector('.check-out-container a[data-time=\"' + minParsed + '\"]')) {\n document.querySelector('.check-out-container a[data-time=\"' + minParsed + '\"]').scrollIntoView(false);\n }\n }\n showCheckOutMessage();\n if (searchDateFilter) {\n showReservationConfirmSubmit();\n submitDatesButtonEl.disabled = false;\n }\n }\n\n if (checkOutTextEl.innerHTML !== '') {\n checkOutLabelEl.classList.add('display-none');\n }\n document.querySelector('.check-in-container').classList.add('display-none');\n document.querySelector('.check-out-container').classList.remove('display-none');\n checkInEl.classList.remove('selected');\n checkInLabelEl.classList.add('display-none');\n checkInTextDivEl.classList.remove('display-none');\n checkOutEl.classList.add('selected');\n submitDatesButtonEl.disabled = true;\n minParsed = Date.parse(addDays(newMinDate, 14).toDateString());\n };\n\n const selectCheckoutDatesHandler = (dateCheckOut) => {\n let sumPetfee = false;\n showCheckOutMessage();\n moveOut = document.querySelector('.check_out');\n moveOut.classList.add('wrapper-adjust');\n if (checkOutTextEl.innerText === '') sumPetfee = true;\n checkOutTextEl.innerText = format(dateCheckOut, 'D MMMM YYYY');\n checkOutLabelEl.classList.add('display-none');\n checkOutTextDivEl.classList.remove('display-none');\n checkInEl.classList.remove('selected');\n checkOutEl.classList.add('selected');\n if (!searchDateFilter) {\n document.querySelector('#will-moving-with-pet').checked = false;\n goToUpdateMobilePreview(sumPetfee);\n }\n };\n\n const checkScrollToMinDate = () => {\n if (minParsed && document.querySelector('.check-out-container a[data-time=\"' + minParsed + '\"]')) {\n document.querySelector('.check-out-container a[data-time=\"' + minParsed + '\"]').scrollIntoView(false);\n }\n };\n\n const readElements = (searchDateFilter) => {\n checkInEl = document.querySelector('#check-in-tab');\n checkOutEl = document.querySelector('#check-out-tab');\n checkInTextDivEl = document.querySelector('.calendar-range__selection-value-check_in');\n checkInTextEl = document.querySelector('.value_check_in');\n checkInLabelEl = document.querySelector('.select_check_in');\n checkOutTextDivEl = document.querySelector('.calendar-range__selection-value-check_out');\n checkOutTextEl = document.querySelector('.value_check_out');\n checkOutLabelEl = document.querySelector('.select_check_out');\n submitDatesButtonEl = document.querySelector('#reservation-confirm__submit');\n clearDatesButtonEl = document.querySelector('.clear-dates');\n const closeDatesModalBtnEl = document.querySelector('#close-calendar-modal');\n closeDatesModalBtnEl.removeEventListener('click', closeMicroModal);\n closeDatesModalBtnEl.addEventListener('click', closeMicroModal);\n clearDatesButtonEl.addEventListener('click', clearCalendarDates);\n submitDatesButtonEl.addEventListener('click', goToUpdateMobilePreview(false));\n checkInTabEL = document.querySelector('#check-in-tab');\n checkInTabEL.addEventListener('click', checkInTabHandler);\n checkOutTabEL = document.querySelector('#check-out-tab');\n checkOutTabEL.addEventListener('click', checkOutTabHandler);\n const btnPrevMonthEl = document.querySelector('.check-out-container .button-previous-month');\n btnPrevMonthEl.addEventListener('click', checkScrollToMinDate);\n if (searchDateFilter) {\n const submitDatesButtonElText = document.querySelector('.submit_button_text');\n const submitWrapper = document.querySelector('.submit-wrapper');\n submitWrapper.classList.remove('display-none');\n submitDatesButtonElText.innerText = `${t('apartment_page.js.modal.apply')}`;\n }\n };\n\n const goToUpdateMobilePreview = (sumPetFee) => {\n if (datePickCheckinMobile.getDate() && datePickCheckoutMobile.getDate() && !searchDateFilter) {\n updateMobilePreview(datePickCheckinMobile.getDate(), datePickCheckoutMobile.getDate(), http, sumPetFee);\n }\n\n if (searchDateFilter) {\n const form = document.querySelector('.new_search');\n const checkIn = datePickCheckinMobile.getDate();\n const checkOut = datePickCheckoutMobile.getDate();\n const dates = { checkIn, checkOut };\n\n datesToInputs(dates, { checkInInput, checkOutInput });\n form.submit();\n }\n };\n\n const clearCalendarDates = () => {\n document.querySelector('.check-out-container').classList.add('display-none');\n document.querySelector('.check-in-container').classList.remove('display-none');\n checkInLabelEl.classList.remove('display-none');\n checkInTextDivEl.classList.add('display-none');\n moveIn = document.querySelector('.check_in');\n moveOut = document.querySelector('.check_out');\n moveIn.classList.remove('wrapper-adjust');\n moveOut.classList.remove('wrapper-adjust');\n datePickCheckinMobile.clearSelection();\n datePickCheckoutMobile.clearSelection();\n showCheckInMessage();\n document.querySelector('.datepicker-loader').style.display = 'none';\n if (minParsed) {\n document.querySelector('a[data-time=\"' + minDateParsed + '\"]').scrollIntoView(false);\n }\n checkOutEl.classList.remove('selected');\n checkInEl.classList.add('selected');\n checkOutLabelEl.classList.remove('display-none');\n checkOutTextDivEl.classList.add('display-none');\n };\n\n const preloadMobile = async() => {\n let blockedCheckInDatesList = [];\n let maxCheckInDate = null;\n let minCheckInDate = null;\n let disableWeekends = null;\n\n if (!searchDateFilter) {\n const { data: { max_check_in_date: _maxCheckInDate, min_check_in_date: _minCheckInDate, blocked_checkin_dates_list: _blockedCheckInDatesList, blocked_checkout_dates_list: _blockedCheckOutDatesList, disable_weekends: _disableWeekends, disabled_move_out_dates: _disabledMoveOutDates } } = await http.get(preloadUrl);\n maxCheckInDate = _maxCheckInDate;\n minCheckInDate = _minCheckInDate;\n blockedCheckInDatesList = _blockedCheckInDatesList;\n blockedCheckOutDatesList = _blockedCheckOutDatesList;\n maxDate = maxCheckInDate;\n disableWeekends = _disableWeekends;\n disabledMoveOutDates = _disabledMoveOutDates;\n } else {\n const searchedDates = inputsToCalendar({ checkInInput, checkOutInput });\n searchedDatesCheckIn = searchedDates.checkIn;\n searchedDatesCheckOut = searchedDates.checkOut;\n if (searchedDatesCheckIn) {\n selectCheckinDatesHandler(searchedDatesCheckIn);\n }\n\n if (searchedDatesCheckOut) {\n selectCheckoutDatesHandler(searchedDatesCheckOut);\n }\n\n checkInTabHandler();\n }\n\n minDateParsed = Date.parse(minCheckInDate + ' 00:00:00');\n\n datePickCheckinMobile.setOptions({\n lang: locale,\n numberOfMonths: 2,\n numberOfColumns: 1,\n hotelMode: true,\n firstDay: 0,\n startDate: minCheckInDate,\n mobileFriendly: true,\n minDate: minCheckInDate,\n maxDate: maxDate,\n bookedDays: blockedCheckInDatesList\n });\n\n datePickCheckoutMobile.setOptions({\n lang: locale,\n numberOfMonths: 2,\n numberOfColumns: 1,\n hotelMode: true,\n firstDay: 0,\n startDate: searchedDatesCheckOut,\n minDate: addDays(today, minimumStay),\n mobileFriendly: true,\n bookedDays: blockedCheckOutDatesList,\n disableWeekends: disableWeekends\n });\n showCheckInMessage();\n document.querySelector('.mobile-calendar-modal').style.display = 'block';\n if (minDateParsed) {\n document.querySelector('a[data-time=\"' + minDateParsed + '\"]').scrollIntoView(false);\n document.querySelector('a[data-time=\"' + minDateParsed + '\"]').classList.remove('is-start-date', 'is-end-date');\n }\n\n if (!searchDateFilter) applyCheckInCheckOutDatesIfExisten();\n };\n\n const breakdownPropsEl = document.querySelector('#breakdown-props');\n const applyCheckInCheckOutDatesIfExisten = () => {\n let presetCheckInString = '';\n let presetCheckOutString = '';\n\n switch (useDates) {\n case 'best_deal':\n presetCheckInString = breakdownPropsEl.getAttribute('data-min-price-check-in-date');\n presetCheckOutString = breakdownPropsEl.getAttribute('data-min-price-check-out-date');\n break;\n case 'normal':\n presetCheckInString = breakdownPropsEl.getAttribute('data-preset-start-date');\n presetCheckOutString = breakdownPropsEl.getAttribute('data-preset-end-date');\n break;\n default:\n break;\n }\n\n if (presetCheckInString.length > 0) {\n datePickCheckinMobile.setDate(parse(presetCheckInString), false);\n datePickCheckinMobile.gotoDate(parse(presetCheckInString));\n }\n\n if (presetCheckOutString.length > 0) {\n datePickCheckoutMobile.setDate(parse(presetCheckOutString), false);\n datePickCheckoutMobile.gotoDate(parse(presetCheckOutString));\n }\n\n goToUpdateMobilePreview(false);\n };\n\n const handleSeeDatesButton = () => {\n useDates = 'normal';\n openMobileCalendarModal({});\n createDatePicker();\n };\n\n const handleSeeBestDealDatesButton = () => {\n useDates = 'best_deal';\n openMobileCalendarModal({});\n createDatePicker();\n };\n\n const handleSeeWithoutDatesButton = () => {\n useDates = 'none';\n openMobileCalendarModal({});\n createDatePicker();\n };\n\n const handleRequestAutoSubmitButton = () => {\n useDates = 'normal';\n requestAutoSubmitButtonTrigger.innerHTML = 'true';\n openMobileCalendarModal({});\n createDatePicker();\n };\n\n datesButton.addEventListener('click', handleSeeDatesButton);\n bestdealDatesButton.addEventListener('click', handleSeeBestDealDatesButton);\n withoutDatesButton.addEventListener('click', handleSeeWithoutDatesButton);\n requestAutoSubmitButton.addEventListener('click', handleRequestAutoSubmitButton);\n\n if (!!breakdownPropsEl.getAttribute('data-preset-start-date') && !!breakdownPropsEl.getAttribute('data-preset-end-date') && datesButton) {\n datesButton.click();\n }\n}\n\nconst checkInTabHandler = () => {\n showCheckInMessage();\n const checkInEl = document.querySelector('#check-in-tab');\n const checkOutEl = document.querySelector('#check-out-tab');\n document.querySelector('.check-out-container').classList.add('display-none');\n document.querySelector('.check-in-container').classList.remove('display-none');\n checkOutEl.classList.remove('selected');\n checkInEl.classList.add('selected');\n showReservationConfirmSubmit();\n};\n\nconst checkOutTabHandler = () => {\n showCheckOutMessage();\n const checkOutDate = datePickCheckinMobile.getDate();\n showReservationConfirmSubmit();\n if (checkOutDate) {\n const checkInEl = document.querySelector('#check-in-tab');\n const checkOutEl = document.querySelector('#check-out-tab');\n document.querySelector('.check-out-container').classList.remove('display-none');\n document.querySelector('.check-in-container').classList.add('display-none');\n checkOutEl.classList.add('selected');\n checkInEl.classList.remove('selected');\n const checkOutParsed = Date.parse(checkOutDate.toDateString());\n if (document.querySelector('.check-out-container a[data-time=\"' + checkOutParsed + '\"]')) {\n document.querySelector('.check-out-container a[data-time=\"' + checkOutParsed + '\"]').scrollIntoView(false);\n }\n }\n};\n\nconst showReservationConfirmSubmit = () => {\n const confirmButton = document.querySelector('#reservation-confirm__submit');\n confirmButton.classList.remove('display-none');\n};\n\nconst showCheckInMessage = () => {\n document.querySelector('.property-booking-bar__messages').innerText = maxDate == null ? `${t('apartment_page.js.modal.check_in_info_filter')}` : `${t('apartment_page.js.modal.check_in_info')} ${format(maxDate, 'L')}`;\n document.querySelector('.property-booking-bar__messages').classList.remove('display-none');\n};\n\nconst showCheckOutMessage = () => {\n document.querySelector('.property-booking-bar__messages').innerText = `${t('apartment_page.js.modal.min_stay')}`;\n document.querySelector('.property-booking-bar__messages').classList.remove('display-none');\n};\n\nexport default modalReservationForm;\n\nexport function goToCheckInTab() {\n document.querySelector('#preview_modal_body').classList.add('display-none');\n document.querySelector('#dates_modal_body').classList.remove('display-none');\n checkInTabHandler();\n}\n\nexport function goToCheckOutTab() {\n document.querySelector('#preview_modal_body').classList.add('display-none');\n document.querySelector('#dates_modal_body').classList.remove('display-none');\n checkOutTabHandler();\n}\n","import { t } from '../../common/translations';\n\nconst replaceSpaceWithCharSpace = (string) => string.replaceAll(' ', '%20');\n\nfunction fillContactUsWhatsAppWithDates({ document }) {\n const modalContactUsBtnEls = document.querySelectorAll('.modal-contact-us-whatsapp-link');\n modalContactUsBtnEls.forEach(btn => {\n btn.addEventListener('click', addDatesToWhatsAppMessage);\n });\n}\n\nconst addDatesToWhatsAppMessage = () => {\n const breakdownPaymentType = t(`checkout_page.checkout_form.fields.payment_types.${document.querySelector('.breakdown-payment-type').value}`);\n const whatappPaymentType = replaceSpaceWithCharSpace(t('contact.whatsapp_text_info_payment_type', { payment_type: breakdownPaymentType }));\n const modalContactUsWhatsAppLinkEl = document.querySelectorAll('.modal-contact-us-whatsapp-link');\n const endDateText = document.querySelector('.date__span.date__span-end_date').textContent;\n const endDate = endDateText ? `&end_date=${endDateText}` : '';\n const iniDateText = document.querySelector('.date__span.date__span-ini_date').textContent;\n const startDate = iniDateText ? `&start_date=${iniDateText}` : '';\n const buttonType = t('campaign_tracker.button_type.sales');\n const websiteUrl = location.href;\n const propertyId = websiteUrl.split('/').at(-1);\n\n const campaingTrackerHrefUrl = `/whatsapp_redirect?property_id=${propertyId}&button_type=${buttonType}${startDate}${endDate}`;\n\n modalContactUsWhatsAppLinkEl.forEach(el => {\n el.href = `${campaingTrackerHrefUrl}%20${whatappPaymentType}`;\n });\n};\n\nexport default fillContactUsWhatsAppWithDates;\n","export const MODAL_ID = 'mobile-calendar-modal';\n","import { t } from '../../common/translations';\nimport { format } from '../../common/dates';\nimport formatCurrency from '../../common/formatCurrency';\n\nconst needsBreakDown = ({ breakdown, prorated }, index) => {\n return index === 0 ||\n (!!breakdown.deposit_amount) ||\n (!!breakdown.cleaning_fee) ||\n prorated !== undefined;\n};\n\nconst printDay = (date, index) => {\n if (index === 0) {\n return t('scheduled_payments.js.modal.today');\n }\n return format(date, 'MMMM DD, YYYY');\n};\n\nconst printCurrency = (amount) => {\n return `R$ ${formatCurrency(amount)}`;\n};\n\nconst printRentLabel = (index) => {\n if (index === 0) {\n return t('scheduled_payments.js.modal.first_month_rent');\n }\n\n return t('scheduled_payments.js.modal.month_rent');\n};\n\nexport const content = (payments) => `\n
\n

\n ${t('scheduled_payments.js.modal.description')}\n

\n\n ${payments.map((p, i) => `\n
\n
\n
${printDay(p.date, i)}
\n
${printCurrency(p.total)}
\n
\n ${needsBreakDown(p, i) ? (`\n
\n ${p.prorated ? (`\n
\n
${t('scheduled_payments.js.modal.prorated')}
\n
`) : ''}\n ${p.breakdown.rent ? (`\n
\n
${printRentLabel(i)}
\n
${p.breakdown.only_rent ? printCurrency(p.breakdown.only_rent) : printCurrency(p.breakdown.rent)}
\n
`) : ''}\n ${p.breakdown.coupon_discount ? (`\n
\n
${t('scheduled_payments.js.modal.discount_coupon')}
\n
${printCurrency(p.breakdown.coupon_discount)}
\n
`) : ''}\n ${p.breakdown.long_term_discount < 0 ? (`\n
\n
${t('scheduled_payments.js.modal.long_term_discount')}
\n
-R$ ${formatCurrency(-1 * p.breakdown.long_term_discount)}
\n
`) : ''}\n ${p.breakdown.cleaning_fee ? (`\n
\n
${t('scheduled_payments.js.modal.cleaning_fee')}
\n
${printCurrency(p.breakdown.cleaning_fee)}
\n
`) : ''}\n ${p.breakdown.deposit_amount ? (`\n
\n
${t('scheduled_payments.js.modal.deposit_amount')}
\n
${printCurrency(p.breakdown.deposit_amount)}
\n
`) : ''}\n ${p.breakdown.final_cleaning_fee ? (`\n
\n
${t('scheduled_payments.js.modal.final_cleaning_fee')}
\n
${printCurrency(p.breakdown.final_cleaning_fee)}
\n
`) : ''}\n ${p.breakdown.fire_insurance ? (`\n
\n
${t('scheduled_payments.js.modal.fire_insurance')}
\n
${printCurrency(p.breakdown.fire_insurance)}
\n
`) : ''}\n ${p.breakdown.condominium_price ? (`\n
\n
${t('scheduled_payments.js.modal.condominium')}
\n
${printCurrency(p.breakdown.condominium_price)}
\n
`) : ''}\n ${p.breakdown.iptu_price ? (`\n
\n
${t('scheduled_payments.js.modal.iptu')}
\n
${printCurrency(p.breakdown.iptu_price)}
\n
`) : ''}\n ${p.breakdown.pet_fee ? (`\n
\n
${t('scheduled_payments.js.modal.pet_fee')}
\n
${printCurrency(p.breakdown.pet_fee)}
\n
`) : ''}\n
\n `) : ''}\n
`).join('')}\n
\n`;\n","import { setDates } from './datesHelpers';\nimport { goToCheckInTab, goToCheckOutTab } from './index';\nimport { close as closeMicroModal } from './modalHandler';\nimport { render } from '../ScheduledPaymentsContent';\nimport tippy from 'tippy.js';\nimport 'tippy.js/dist/tippy.css';\nimport { isShortTerm, isLongTerm } from '../../common/apartmentRentalPeriod';\nimport {\n format,\n daysDiff,\n SIMPLE_DATE_FORMAT,\n DATEPICKER_FORMAT\n} from '../../common/dates';\nimport formatCurrency from '../../common/formatCurrency';\nimport { t } from '../../common/translations';\n\nlet payments = null;\n\nconst breakdownFirstMonthLabel = (nights, timeSpan, payInFull = false) => {\n if (!payInFull && isLongTerm(timeSpan)) return t('apartment_page.reservation_form.breakdown.first_month_rent');\n\n return t('apartment_page.reservation_form.breakdown.total_days_rent', { days: nights });\n};\n\nconst breakdownTotalValue = (timeSpan, inAdvance = false) => {\n if (isShortTerm(timeSpan)) return t('apartment_page.reservation_form.breakdown.due_short_period_label');\n if (inAdvance) return t('apartment_page.reservation_form.breakdown.due_in_advance_label');\n\n return t('apartment_page.reservation_form.breakdown.due_today_label');\n};\n\nconst monthlyCleaningFeeTotal = (breakdown, inAdvance = false) => {\n if (!breakdown.charging_utilities) return null;\n if (inAdvance || breakdown.time_span === 'short_term') {\n return 'R$ ' + formatCurrency(breakdown.total_monthly_cleaning_fee);\n }\n return 'R$ ' + formatCurrency(breakdown.payments[0].breakdown.cleaning_fee);\n};\n\nconst breakdownOnChangeSelection = (breakdownEl, breakdownDueTodaySpanEl, breakdown) => {\n const breakdownPaymentTypeEl = document.querySelector('.breakdown-payment-type');\n const breakdownPriceValueEl = breakdownEl.querySelector('.breakdown__price .breakdown__value-amount');\n const breakdownPaymentTypesEl = breakdownEl.querySelector('.breakdown__payment-types');\n const breakdownDueTodayEl = breakdownEl.querySelector('.breakdown__due-today');\n const breakdownDueTodayValueEl = breakdownDueTodayEl.querySelector('.breakdown__value-amount');\n const breakdownFirstRentSpanEl = breakdownEl.querySelector('#first_month_label');\n const breakdownPayInAdvanceEl = breakdownEl.querySelector('#pay-in-advance');\n const breakdownPayMonthlyEl = breakdownEl.querySelector('#pay-monthly');\n const scheduledPaymentsEl = breakdownEl.querySelector('.scheduled-payments');\n const breakdownPayInAdvanceValuesEl = document.querySelector('#pay-in-advance-values');\n const breakdownPayInAdvanceValuesSubtitleValueEl = breakdownPayInAdvanceValuesEl.querySelector('.subtitle');\n const breakdownCleaningFeeValueEl = breakdownEl.querySelector('.breakdown__cleaning_fee .breakdown__value-amount');\n const breakdownCondominiumValueEl = breakdownEl.querySelector('.breakdown__condominium .breakdown__value-amount');\n const breakdownIptuValueEl = breakdownEl.querySelector('.breakdown__iptu .breakdown__value-amount');\n\n const breakdownPayMonthlyValuesEl = document.querySelector('#pay-monthly-values');\n const breakdownPayMonthlyValuesSubtitleValueEl = breakdownPayMonthlyValuesEl.querySelector('.subtitle');\n\n const payment = breakdown.payments[0];\n\n scheduledPaymentsEl.classList.add('scheduled-payments--hidden');\n breakdownPayMonthlyEl.classList.remove('type-item--active');\n\n if (isShortTerm(breakdown.time_span)) {\n breakdownPaymentTypeEl.value = 'pay_in_full';\n breakdownPaymentTypesEl.classList.add('breakdown__payment-types--hidden');\n breakdownDueTodayEl.classList.remove('breakdown__due-today--in-advance');\n breakdownIptuValueEl.innerText = 'R$ ' + formatCurrency(breakdown.total_iptu);\n breakdownCondominiumValueEl.innerText = 'R$ ' + formatCurrency(breakdown.total_condominium);\n breakdownDueTodayValueEl.innerText = `R$ ${formatCurrency(breakdown.total_w_discount)}`;\n breakdownPriceValueEl.innerText = `R$ ${(breakdown.condominium_price || breakdown.total_condominium) ? formatCurrency(breakdown.total_only_rent) : formatCurrency(breakdown.total_rent)}`;\n breakdownFirstRentSpanEl.innerText = breakdownFirstMonthLabel(breakdown.nights, breakdown.time_span);\n return;\n }\n\n breakdownPaymentTypeEl.value = 'pay_in_full';\n breakdownPayInAdvanceEl.classList.add('type-item--active');\n breakdownDueTodayEl.classList.add('breakdown__due-today--in-advance');\n breakdownPaymentTypesEl.classList.remove('breakdown__payment-types--hidden');\n breakdownDueTodayValueEl.innerText = `R$ ${formatCurrency(breakdown.total_w_discount)}`;\n breakdownPriceValueEl.innerText = `R$ ${(breakdown.condominium_price || breakdown.total_condominium) ? formatCurrency(breakdown.total_only_rent) : formatCurrency(breakdown.total_rent)}`;\n breakdownFirstRentSpanEl.innerText = breakdownFirstMonthLabel(breakdown.nights, breakdown.time_span, true);\n breakdownCondominiumValueEl.innerText = 'R$ ' + formatCurrency(breakdown.total_condominium);\n breakdownIptuValueEl.innerText = 'R$ ' + formatCurrency(breakdown.total_iptu);\n\n breakdownPayInAdvanceEl.addEventListener('click', () => {\n breakdownPaymentTypeEl.value = 'pay_in_full';\n breakdownPayInAdvanceEl.classList.add('type-item--active');\n breakdownPayMonthlyEl.classList.remove('type-item--active');\n breakdownDueTodayEl.classList.add('breakdown__due-today--in-advance');\n scheduledPaymentsEl.classList.add('scheduled-payments--hidden');\n breakdownPriceValueEl.innerText = `R$ ${(breakdown.condominium_price || breakdown.total_condominium) ? formatCurrency(breakdown.total_only_rent) : formatCurrency(breakdown.total_rent)}`;\n breakdownDueTodaySpanEl.innerText = breakdownTotalValue(breakdown.time_span, true);\n breakdownCleaningFeeValueEl.innerText = monthlyCleaningFeeTotal(breakdown, true);\n breakdownFirstRentSpanEl.innerText = breakdownFirstMonthLabel(breakdown.nights, breakdown.time_span, true);\n breakdownCondominiumValueEl.innerText = 'R$ ' + formatCurrency(breakdown.total_condominium);\n breakdownIptuValueEl.innerText = 'R$ ' + formatCurrency(breakdown.total_iptu);\n const breakdownPayInAdvanceValuesSubtitleNumericValue = parseInt(breakdownPayInAdvanceValuesSubtitleValueEl.innerText.replace(/[^\\d]/g, ''), 10);\n\n breakdownDueTodayValueEl.innerText = `R$ ${formatCurrency(breakdownPayInAdvanceValuesSubtitleNumericValue)}`;\n });\n\n breakdownPayMonthlyEl.addEventListener('click', () => {\n breakdownPaymentTypeEl.value = 'first_payment';\n\n breakdownPayInAdvanceEl.classList.remove('type-item--active');\n breakdownPayMonthlyEl.classList.add('type-item--active');\n breakdownDueTodayEl.classList.remove('breakdown__due-today--in-advance');\n scheduledPaymentsEl.classList.remove('scheduled-payments--hidden');\n breakdownPriceValueEl.innerText = `R$ ${breakdown.condominium_price ? formatCurrency(breakdown.payments[0].breakdown.only_rent) : formatCurrency(payment.breakdown.rent)}`;\n breakdownDueTodaySpanEl.innerText = breakdownTotalValue(breakdown.time_span);\n breakdownFirstRentSpanEl.innerText = breakdownFirstMonthLabel(breakdown.nights, breakdown.time_span);\n breakdownCleaningFeeValueEl.innerText = monthlyCleaningFeeTotal(breakdown);\n const breakdownPayMonthlyLabelsSubtitleNumericValue = parseInt(breakdownPayMonthlyValuesSubtitleValueEl.innerText.replace(/[^\\d]/g, ''), 10);\n breakdownCondominiumValueEl.innerText = 'R$ ' + formatCurrency(breakdown.condominium_price);\n breakdownIptuValueEl.innerText = 'R$ ' + formatCurrency(breakdown.iptu_price);\n\n breakdownDueTodayValueEl.innerText = `R$ ${formatCurrency(breakdownPayMonthlyLabelsSubtitleNumericValue)}`;\n });\n\n const willMovingWithPetCheckBoxEl = document.querySelector('#will-moving-with-pet');\n const breakdownMobileEl = document.querySelector('#preview_modal_body');\n const breakdownPetFeeValueEl = breakdownMobileEl.querySelector('.breakdown__pet_fee .breakdown__value-amount');\n\n willMovingWithPetCheckBoxEl.addEventListener('change', (event) => {\n const numericPetFeeValue = parseInt(breakdownPetFeeValueEl.innerText.replace(/[^\\d]/g, ''), 10);\n if (event.target.checked) {\n payment.breakdown.pet_fee = numericPetFeeValue;\n payment.total = payment.total + numericPetFeeValue;\n } else {\n delete payment.breakdown.pet_fee;\n payment.total = payment.total - numericPetFeeValue;\n }\n });\n};\n\nconst breakdownChangeValues = (breakdownEl, breakdown) => {\n if (isShortTerm(breakdown.time_span)) return;\n\n const payment = breakdown.payments[0];\n\n const breakdownPayInAdvanceLabelsEl = breakdownEl.querySelector('#pay-in-advance-labels');\n const breakdownPayInAdvanceLabelsSubtitleValueEl = breakdownPayInAdvanceLabelsEl.querySelector('.subtitle');\n\n const breakdownPayInAdvanceValuesEl = breakdownEl.querySelector('#pay-in-advance-values');\n const breakdownPayInAdvanceValuesTitleValueEl = breakdownPayInAdvanceValuesEl.querySelector('.title');\n const breakdownPayInAdvanceValuesDiscountTitleValueEl = breakdownPayInAdvanceValuesEl.querySelector('.discount-title');\n const breakdownPayInAdvanceValuesSubtitleValueEl = breakdownPayInAdvanceValuesEl.querySelector('.subtitle');\n\n const breakdownPayMonthlyLabelsEl = breakdownEl.querySelector('#pay-monthly-labels');\n const breakdownPayMonthlyLabelsSubtitleValueEl = breakdownPayMonthlyLabelsEl.querySelector('.subtitle');\n\n const breakdownPayMonthlyValuesEl = breakdownEl.querySelector('#pay-monthly-values');\n const breakdownPayMonthlyValuesTitleValueEl = breakdownPayMonthlyValuesEl.querySelector('.title');\n const breakdownPayMonthlyValuesSubtitleValueEl = breakdownPayMonthlyValuesEl.querySelector('.subtitle');\n\n breakdownPayInAdvanceLabelsSubtitleValueEl.innerText = breakdown.discount_percent && breakdown.discount_percent > 0 ? `${t('apartment_page.reservation_form.breakdown.save_discount', { discount: breakdown.discount_percent })}` : '';\n\n breakdownPayInAdvanceValuesTitleValueEl.innerText = `R$ ${formatCurrency(breakdown.monthly_rent_with_discount_w_cleaning_fee)}${t('apartment_page.reservation_form.breakdown_per_month')}`;\n breakdownPayInAdvanceValuesDiscountTitleValueEl.innerHTML = breakdown.discount_percent && breakdown.discount_percent > 0 ? `R$ ${formatCurrency(breakdown.monthly_rent_w_cleaning_fee)}${t('apartment_page.reservation_form.breakdown_per_month')}` : '';\n breakdownPayInAdvanceValuesSubtitleValueEl.innerText = `Total R$ ${formatCurrency(breakdown.total_w_discount)}`;\n\n breakdownPayMonthlyLabelsSubtitleValueEl.innerHTML = breakdown.discount_percent && breakdown.discount_percent > 0 ? t('apartment_page.reservation_form.breakdown.no_discount') : '';\n\n breakdownPayMonthlyValuesTitleValueEl.innerText = `R$ ${formatCurrency(breakdown.monthly_rent_w_cleaning_fee)}${t('apartment_page.reservation_form.breakdown_per_month')}`;\n breakdownPayMonthlyValuesSubtitleValueEl.innerHTML = `${t('apartment_page.reservation_form.breakdown.due_today_label')} R$ ${formatCurrency(payment.total)}`;\n};\n\nexport async function updateMobilePreview(startDate, endDate, http, sumPetFee) {\n const breakdownMobileEl = document.querySelector('#preview_modal_body');\n const breakdownDepositLineEl = breakdownMobileEl.querySelector('.breakdown__line.breakdown__deposit');\n const breakdownDepositValueEl = breakdownMobileEl.querySelector('.breakdown__deposit .breakdown__value-amount');\n const breakdownCleaningFeeLineEl = breakdownMobileEl.querySelector('.breakdown__line.breakdown__cleaning_fee');\n const breakdownCleaningFeeTooltip = breakdownMobileEl.querySelector('.cleaning-fee-tooltip');\n const breakdownCleaningFeeValueEl = breakdownMobileEl.querySelector('.breakdown__cleaning_fee .breakdown__value-amount');\n const breakdownFinalCleaningFeeLineEl = breakdownMobileEl.querySelector('.breakdown__line.breakdown__final_cleaning_fee');\n const breakdownFinalCleaningFeeValueEl = breakdownMobileEl.querySelector('.breakdown__final_cleaning_fee .breakdown__value-amount');\n const breakdownDueTodaySpanEl = breakdownMobileEl.querySelector('#due-today-label');\n const breakdownCloseModalButtonEl = breakdownMobileEl.querySelector('.breakdown__header-close-modal');\n const scheduledPaymentsButtonEl = breakdownMobileEl.querySelector('.scheduled-payments__button-mobile');\n const breakdownPetFeeValueEl = breakdownMobileEl.querySelector('.breakdown__pet_fee .breakdown__value-amount');\n const breakdownPetFeeLineEl = breakdownMobileEl.querySelector('.breakdown__line.breakdown__pet_fee');\n const breakdownPetFeeLabel = breakdownPetFeeLineEl.querySelector('.breakdown__label > span:first-child');\n const breakdownFireInsuranceValueEl = breakdownMobileEl.querySelector('.breakdown__fire_insurance .breakdown__value-amount');\n const breakdownCondominiumEl = breakdownMobileEl.querySelector('#condominium');\n const breakdownIptuEl = breakdownMobileEl.querySelector('#iptu');\n const willMovingWithPetContainer = document.querySelector('#moving-with-pet-check-box-container');\n const willMovingWithPetCheckBoxEl = document.querySelector('#will-moving-with-pet');\n const isMovingWithPet = document.querySelector('#reservation-form #is_moving_with_pet');\n isMovingWithPet.value = 'false';\n breakdownPetFeeLabel.style.color = '#ACAEAF';\n breakdownPetFeeValueEl.style.color = '#ACAEAF';\n\n if (sumPetFee) {\n willMovingWithPetCheckBoxEl.addEventListener('change', (event) => {\n const breakdownDueTodayEl = document.querySelector('.breakdown__due-today');\n const breakdownDueTodayValueEl = breakdownDueTodayEl.querySelector('.breakdown__value-amount');\n const numericTotal = parseInt(breakdownDueTodayValueEl.innerText.replace(/[^\\d]/g, ''), 10);\n const numericPetFeeValue = parseInt(breakdownPetFeeValueEl.innerText.replace(/[^\\d]/g, ''), 10);\n\n const breakdownPayInAdvanceValuesEl = document.querySelector('#pay-in-advance-values');\n const breakdownPayInAdvanceValuesSubtitleValueEl = breakdownPayInAdvanceValuesEl.querySelector('.subtitle');\n const breakdownPayInAdvanceValuesSubtitleNumericValue = parseInt(breakdownPayInAdvanceValuesSubtitleValueEl.innerText.replace(/[^\\d]/g, ''), 10);\n\n const breakdownPayMonthlyValuesEl = document.querySelector('#pay-monthly-values');\n const breakdownPayMonthlyValuesSubtitleValueEl = breakdownPayMonthlyValuesEl.querySelector('.subtitle');\n const breakdownPayMonthlyLabelsSubtitleNumericValue = parseInt(breakdownPayMonthlyValuesSubtitleValueEl.innerText.replace(/[^\\d]/g, ''), 10);\n\n if (event.target.checked) {\n isMovingWithPet.value = 'true';\n breakdownPetFeeLabel.style.color = '#292D32';\n breakdownPetFeeValueEl.style.color = '#292D32';\n breakdownDueTodayValueEl.innerText = `R$ ${formatCurrency(numericTotal + numericPetFeeValue)}`;\n breakdownPayInAdvanceValuesSubtitleValueEl.innerText = `Total R$ ${formatCurrency(breakdownPayInAdvanceValuesSubtitleNumericValue + numericPetFeeValue)}`;\n breakdownPayMonthlyValuesSubtitleValueEl.innerText = `${t('apartment_page.reservation_form.breakdown.due_today_label')} R$ ${formatCurrency(breakdownPayMonthlyLabelsSubtitleNumericValue + numericPetFeeValue)}`;\n } else {\n isMovingWithPet.value = 'false';\n breakdownPetFeeLabel.style.color = '#ACAEAF';\n breakdownPetFeeValueEl.style.color = '#ACAEAF';\n breakdownDueTodayValueEl.innerText = `R$ ${formatCurrency(numericTotal - numericPetFeeValue)}`;\n breakdownPayInAdvanceValuesSubtitleValueEl.innerText = `Total R$ ${formatCurrency(breakdownPayInAdvanceValuesSubtitleNumericValue - numericPetFeeValue)}`;\n breakdownPayMonthlyValuesSubtitleValueEl.innerText = `${t('apartment_page.reservation_form.breakdown.due_today_label')} R$ ${formatCurrency(breakdownPayMonthlyLabelsSubtitleNumericValue - numericPetFeeValue)}`;\n }\n });\n }\n\n breakdownCloseModalButtonEl.addEventListener('click', closeMicroModal);\n\n const submitButtonEl = breakdownMobileEl.querySelector('#reservation-form-mobile__submit');\n submitButtonEl.addEventListener('click', submitForm);\n\n const requestAutoSubmitButtonTrigger = document.querySelector('.reservation-sticky-request-submit-trigger');\n if (requestAutoSubmitButtonTrigger.innerHTML === 'true') {\n submitButtonEl.click();\n }\n\n const checkInAndOutEl = breakdownMobileEl.querySelector('.dates-chosen');\n checkInAndOutEl.addEventListener('click', goToCheckInTab);\n const checkInPreviewEl = breakdownMobileEl.querySelector('.date__span-ini_date');\n checkInPreviewEl.addEventListener('click', goToCheckInTab);\n const checkOutPreviewEl = breakdownMobileEl.querySelector('.date__span-end_date');\n checkOutPreviewEl.addEventListener('click', (e) => {\n e.stopPropagation();\n goToCheckOutTab();\n });\n const breakdownPropsEl = document.querySelector('#breakdown-props');\n const propertyAvailable = breakdownPropsEl.getAttribute('data-available');\n const propertyPrice = breakdownPropsEl.getAttribute('data-price') || '0';\n const propertyHasOriginalPrice = breakdownPropsEl.getAttribute('data-has-original-price');\n const propertyOriginalPrice = breakdownPropsEl.getAttribute('data-original-price');\n const previewUrl = breakdownPropsEl.getAttribute('data-preview-url');\n\n setDates(startDate, endDate);\n\n breakdownMobileEl.querySelector('.property-available').innerText = propertyAvailable;\n if (propertyHasOriginalPrice === 'true' && (parseInt(propertyOriginalPrice.replace(/\\D+/g, '')) > parseInt(propertyPrice.replace(/\\D+/g, '')))) {\n breakdownMobileEl.querySelector('.monthly-original-price').innerHTML = `${propertyOriginalPrice}${t('apartment_page.reservation_form.breakdown_per_month')}`;\n }\n breakdownMobileEl.querySelector('.monthly-price').innerText = propertyPrice;\n breakdownMobileEl.querySelector('.date__span-ini_date').innerText = format(startDate, DATEPICKER_FORMAT);\n breakdownMobileEl.querySelector('.date__span-end_date').innerText = format(endDate, DATEPICKER_FORMAT);\n breakdownMobileEl.querySelector('.breakdown__title-days').innerText = `${t('apartment_page.reservation_form.breakdown.total_days', { days: daysDiff(startDate, endDate) })}`;\n\n const input = {\n start_date: format(startDate, SIMPLE_DATE_FORMAT),\n end_date: format(endDate, SIMPLE_DATE_FORMAT)\n };\n scheduledPaymentsButtonEl.removeEventListener('click', handleScheduledPaymentsButton);\n\n const { data } = await http.get(previewUrl, {\n params: input\n });\n\n const { breakdown, pet_friendly: petFriendly } = data;\n payments = breakdown.payments;\n const monthlyRent = 'R$ ' + formatCurrency(breakdown.monthly_rent_with_discount);\n\n const firstPayment = payments[0];\n const firstPaymentBreakdown = firstPayment.breakdown;\n\n breakdownOnChangeSelection(breakdownMobileEl, breakdownDueTodaySpanEl, breakdown);\n breakdownChangeValues(breakdownMobileEl, breakdown);\n\n // updateBreakdown;\n if (propertyHasOriginalPrice === 'true' && (parseInt(propertyOriginalPrice.replace(/\\D+/g, '')) > parseInt(monthlyRent.replace(/\\D+/g, '')))) {\n breakdownMobileEl.querySelector('.monthly-original-price').innerHTML = `${propertyOriginalPrice}${t('apartment_page.reservation_form.breakdown_per_month')}`;\n } else {\n breakdownMobileEl.querySelector('.monthly-original-price').innerHTML = '';\n }\n breakdownMobileEl.querySelector('.monthly-price').innerText = monthlyRent;\n\n breakdownDueTodaySpanEl.innerText = breakdownTotalValue(breakdown.time_span, true);\n\n if (firstPaymentBreakdown.long_term_discount < 0) {\n // show/hide\n breakdownMobileEl.querySelector('.breakdown__long_term_discount').style.display = 'flex';\n breakdownMobileEl.querySelector('.breakdown__long_term_discount .breakdown__value-amount').innerText = '-R$ ' + formatCurrency(-1 * firstPaymentBreakdown.long_term_discount);\n } else {\n breakdownMobileEl.querySelector('.breakdown__long_term_discount').style.display = 'none';\n }\n\n breakdownDepositLineEl.style.display = firstPaymentBreakdown.deposit_amount === undefined ? 'none' : 'flex';\n breakdownDepositValueEl.innerText = 'R$ ' + formatCurrency(firstPaymentBreakdown.deposit_amount);\n\n breakdownCleaningFeeLineEl.style.display = !data.breakdown.total_monthly_cleaning_fee || data.breakdown.total_monthly_cleaning_fee === 0 ? 'none' : 'flex';\n const tooltipCleaning = !data.breakdown.total_monthly_cleaning_fee || data.breakdown.total_monthly_cleaning_fee === 0 ? '' : t('breakdown.tooltip.utilities');\n breakdownCleaningFeeTooltip.setAttribute('data-tippy-content', tooltipCleaning);\n\n // TODO: move to helpers.js // decorators\n breakdownCleaningFeeValueEl.innerText = monthlyCleaningFeeTotal(breakdown, true);\n\n breakdownFinalCleaningFeeLineEl.style.display = firstPaymentBreakdown.final_cleaning_fee === undefined ? 'none' : 'flex';\n breakdownFinalCleaningFeeValueEl.innerText = 'R$ ' + formatCurrency(firstPaymentBreakdown.final_cleaning_fee);\n\n scheduledPaymentsButtonEl.addEventListener('click', handleScheduledPaymentsButton);\n\n tippy('[data-tippy-content]');\n document.querySelector('#dates_modal_body').classList.add('display-none');\n breakdownMobileEl.classList.remove('display-none');\n\n willMovingWithPetContainer.style.display = petFriendly ? 'flex' : 'none';\n breakdownPetFeeLineEl.style.display = petFriendly ? 'flex' : 'none';\n breakdownPetFeeValueEl.innerText = 'R$ ' + formatCurrency(breakdown.pet_fee);\n\n breakdownFireInsuranceValueEl.innerText = 'R$ ' + formatCurrency(breakdown.fire_insurance);\n\n if (!breakdown.condominium_price) {\n breakdownCondominiumEl.style.display = 'none';\n }\n\n if (!breakdown.iptu_price) {\n breakdownIptuEl.style.display = 'none';\n }\n}\n\nconst handleScheduledPaymentsButton = () => {\n render(payments);\n};\n\nconst submitForm = () => {\n document.querySelector('.reservation-form').style.display = 'block';\n document.querySelector('#reservation-form__submit').click();\n};\n","import { content } from './template';\nimport { htmlToElement } from '../../common/dom';\n\nexport const render = (payments) => {\n const dropContent = document.querySelector('.schedule-payments-modal-content');\n while (dropContent.firstChild) {\n dropContent.removeChild(dropContent.firstChild);\n }\n const html = content(payments);\n dropContent.appendChild(htmlToElement(html));\n};\n","export default __webpack_public_path__ + \"media/images/icons/question-615585725457bfbf5cdc7e44e1fa6630.svg\";"],"sourceRoot":""}