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OAE/DE,EAAsBxT,KAAK,mBAAmByH,MAAK,WACjD,IAAI4B,EAAQ3K,EAAE0B,MACVyK,EAAKxB,EAAM3J,KAAK,MACpB2J,EAAM3J,KAAK,KAAMmL,EAAK,IAAMuI,EAC9B,IAEAI,EAAsBxT,KAAK,SAASyH,MAAK,WACvC,IAAI4B,EAAQ3K,EAAE0B,MACVqT,EAAUpK,EAAM3J,KAAK,OACzB2J,EAAM3J,KAAK,MAAO+T,EAAU,IAAML,EACpC,IAEAA,IAEAI,EAAsBxT,KAAK,YAAYyH,MAAK,WAC1C/I,EAAE0B,MAAM0Q,gBAAgBnB,EAC1B,IAEAqD,GACF,IAAGvT,GAAG,QAAS,wBAAwB,WACrCf,EAAE0B,MAAMsI,QAAQ,kBAAkBvG,SAClC6Q,GACF,IAGAtU,EAAEG,UAAUY,GAAG,QAAS,sBAAsB,SAAUoD,GACtDA,EAAE1C,iBACF,IAAIkJ,EAAQ3K,EAAE0B,MACVsT,EAAOtT,KAAKsT,KAGhBhV,EAAE,oBAAoBsB,KAAK,cAAciB,YAAY,WACrDoI,EAAM/B,SAAStG,SAAS,WAGX,qBAAT0S,GACFhV,EAAEgV,GAAMzS,YAAY,UACpBvC,EAAE,2BAA2BsC,SAAS,YAEtCtC,EAAEgV,GAAMzS,YAAY,UACpBvC,EAAE,oBAAoBsC,SAAS,UAEnC,IAGA,IACId,IADWsI,OAAO0C,wBAA0BrM,SAASsM,aACpC,SAAW,QAEhCzM,EAAE,2BAA2Be,GAAGS,GAAO,WACrCxB,EAAE,2BAA2BgP,IAAItN,MAAMmG,IAAI7H,EAAE0B,MAAMmG,OACnD7H,EAAE,uBAAuB4B,KAAK5B,EAAE0B,MAAMmG,MACxC,GACF,G","sources":["webpack://cms-web/./app/frontend/src/shared/booking_modal/booking_modal.js","webpack://cms-web/./app/frontend/src/shared/preferences/preferences.js","webpack://cms-web/./app/frontend/src/pages/edit_user_page/edit_user_page.js","webpack://cms-web/./app/frontend/src/shared/my_iberostar_menu/my_iberostar_menu.js","webpack://cms-web/./app/frontend/src/blocks/my_iberostar_page_packed/my_iberostar_page.js","webpack://cms-web/./app/frontend/src/core/utils/inputFilter.js","webpack://cms-web/./app/frontend/src/shared/quote_form/quote_form.js"],"sourcesContent":["import Modal from '../../shared/modal/modal'\n\n$(function () {\n const $block = $('.booking-modal')\n const ONLINE_BOOKINGS_DISABLED = document.getElementsByTagName('body')[0].classList.contains('js-force-callcenter-lightbox')\n\n // PY04777-786 - 762762 - Boton cancelar en mis reservas\n // Fix modal lock when opening a second modal\n let dataCancelModal = {}\n\n if (!$block.length) {\n return\n }\n\n if (!ONLINE_BOOKINGS_DISABLED) {\n $(document).on('click', '.link-pointers-star-agents', function (event) {\n event.preventDefault()\n const $el = $(this)\n openBookingModal('pointers-star-agents', $el.attr('data-link'))\n })\n\n $(document).on('click', '.link-modify', function (event) {\n event.preventDefault()\n const $el = $(this)\n openBookingModal('booking-modal-modify', $el.attr('data-link'))\n })\n\n $(document).on('click', '.link-cancel', function (event) {\n event.preventDefault()\n const $el = $(this)\n openCancelModal('booking-modal-cancel', $el.attr('data-link'), $el.attr('data-conditions'))\n })\n }\n\n $(document).on('click', '.link-select-gift', function (event) {\n event.preventDefault()\n const $el = $(this)\n openBookingModal('booking-modal-points', $el.attr('data-link'))\n })\n\n $(document).on('click', '.link-conditions', function (event) {\n event.preventDefault()\n const $el = $(this)\n openConditionsModal('booking-modal-conditions', $el.attr('data-conditions'))\n })\n\n $(document).on('click', '.link-payment-method', function (event) {\n event.preventDefault()\n Modal.close()\n const $el = $(this)\n openPaymentMethodModal('booking-modal-payment-method', $el.attr('data-payment-method'))\n })\n\n $(document).on('click', '.link-check-in', function (event) {\n event.preventDefault()\n const $el = $(this)\n openBookingModal('booking-modal-check-in', $el.attr('data-link'))\n })\n\n $(document).on('click', '.js-pay-state', function (event) {\n event.preventDefault()\n const $el = $(this)\n openPayStatusModal('pay-state', $el.attr('data-pay-state'))\n })\n\n function openBookingModal(selector, link) {\n Modal.show(selector, {\n onShow: () => {\n ScrollLock.on()\n $(`.${selector}-link`).attr('href', link)\n },\n onClose: () => {\n ScrollLock.off()\n },\n awaitCloseAnimation: true,\n })\n }\n\n function openPayStatusModal(selector, state) {\n const pay_state = state === 'true' ? 'pay' : 'no-pay'\n Modal.show(selector, {\n onShow: () => {\n ScrollLock.on()\n $('.pay-state-modal').addClass(pay_state)\n },\n onClose: () => {\n ScrollLock.off()\n $('.pay-state-modal').removeClass(pay_state)\n },\n awaitCloseAnimation: true,\n })\n }\n\n function openCancelModal(selector, link, conditions) {\n // PY04777-786 - 762762 - Boton cancelar en mis reservas\n // Store information on who is launching the event\n dataCancelModal = { selector, link, conditions }\n\n Modal.show(selector, {\n onShow: () => {\n ScrollLock.on()\n $(`#${selector}`).find('.link-conditions').attr('data-conditions', conditions)\n $(`.${selector}-link`).attr('href', link)\n },\n onClose: () => {\n ScrollLock.off()\n },\n awaitCloseAnimation: true,\n })\n\n return dataCancelModal\n }\n\n function openConditionsModal(selector, text) {\n // PY04777-786 - 762762 - Boton cancelar en mis reservas\n // Check if another modal is open before launching this one.\n const modalOpen = Array.from(document.querySelectorAll('.micromodal-slide.is-open'))\n\n // Close previous modal if exists\n modalOpen.length && Modal.close()\n\n Modal.show(selector, {\n onShow: () => {\n ScrollLock.on()\n $(`.${selector}-description p`).html(text)\n },\n onClose: () => {\n ScrollLock.off()\n\n // When closing the modal, open the one that triggered the condition modal.\n if (modalOpen.length) {\n openCancelModal(dataCancelModal.selector, dataCancelModal.link, dataCancelModal.conditions)\n }\n },\n awaitCloseAnimation: true,\n })\n }\n\n function openPaymentMethodModal(selector, text) {\n Modal.show(selector, {\n onShow: () => {\n ScrollLock.on()\n $(`.${selector}-description p`).html(text)\n },\n onClose: () => {\n ScrollLock.off()\n },\n awaitCloseAnimation: true,\n })\n }\n\n $(document).on('click', '.booking-modal-link', function () {\n Modal.close()\n })\n\n $(document).on('click', '.booking-modal-close', function (event) {\n event.preventDefault()\n Modal.close()\n })\n\n function showModalFacturaGen(modalId) {\n Modal.show(modalId, {\n onShow: () => {\n ScrollLock.on()\n },\n onClose: () => {\n ScrollLock.off()\n },\n awaitCloseAnimation: true,\n })\n }\n\n document.addEventListener('loadedReserve', function () {\n const buttonsDataModal = Array.from(document.querySelectorAll('[data-modal-factura-invoice]'))\n\n buttonsDataModal.forEach(button => {\n button.addEventListener('click', function () {\n const modalId = button.dataset.modalFacturaInvoice\n showModalFacturaGen(modalId)\n })\n })\n })\n})\n","import { sendUtagEvent } from '../../core/analytics/utag_events'\nimport { openLoader } from '../../elements/wait_loading/wait_loading'\n\nconst answers = {}\nlet remaining = 0\n\nexport function init() {\n fetchValues()\n setEvents()\n setUncompleted()\n}\n\nfunction fetchValues() {\n document.querySelectorAll('.question').forEach(block => {\n const question = block.querySelector('input').attributes['name'].value\n const answersNode = block.querySelector('.answer')\n const selected = answersNode.textContent?.split('|')\n answers[question] = selected.map(e => e.trim()).filter(e => e)\n\n answersNode.textContent = answers[question].join(', ')\n answersNode.classList.remove('hidden')\n })\n}\n\nfunction setEvents() {\n document.querySelectorAll('.question-header').forEach(el => el.addEventListener('click', handleHeaderClick))\n document\n .querySelectorAll('.question > fieldset input')\n .forEach(el => el.addEventListener('change', handleAnswerChange))\n document.querySelector('#preferences-anchor a')?.addEventListener('click', e => {\n e.preventDefault()\n e.stopPropagation()\n // TODO PY05032 No encontrados\n sendUtagEvent({\n data: {\n event_name: '',\n event_cat: 'manage my profile',\n event_act: 'holiday preferences',\n event_lbl: 'open preferences',\n force_cg: false,\n event_purpose: '',\n event_structure: '',\n },\n })\n const anchor = document.querySelector('#preferences-anchor')\n if (anchor.classList.contains('opened')) anchor.classList.remove('opened')\n else anchor.classList.add('opened')\n })\n document.querySelector('.submit-preferences')?.addEventListener('click', e => {\n // TODO PY05032 No encontrados\n sendUtagEvent({\n data: {\n event_name: '',\n event_cat: 'manage my profile',\n event_act: 'holiday preferences',\n event_lbl: 'submit preferences',\n force_cg: false,\n event_purpose: '',\n event_structure: '',\n },\n })\n openLoader()\n })\n}\n\nfunction handleHeaderClick(ev) {\n const { parentElement } = ev.target\n const { classList, className } = parentElement\n const questions = document.querySelectorAll('.question.current')\n\n if (!classList.contains('current')) {\n questions.forEach(el => el.classList.remove('current'))\n classList.add('current')\n } else if (classList.contains('completed') && !classList.contains('current')) {\n questions.forEach(el => el.classList.remove('current'))\n classList.add('current')\n } else if (classList.contains('current')) {\n if (parentElement.querySelectorAll('input:checked').length) classList.add('completed')\n classList.remove('current')\n }\n}\n\nfunction handleAnswerChange(ev) {\n const { name, checked, type, dataset } = ev.target\n const question = findAncestorByClassName(ev.target, 'question')\n\n if (type === 'radio') {\n if (!answers[name]) remaining--\n\n answers[name] = [dataset['label']]\n } else if (type === 'checkbox') {\n if (checked) {\n if (!answers[name]?.length) {\n answers[name] = [dataset['label']]\n remaining--\n } else answers[name].push(dataset['label'])\n } else {\n answers[name] = answers[name].filter(e => e !== dataset['label'])\n }\n }\n if (answers[name]?.length) question.classList.add('completed')\n else {\n question.classList.remove('completed')\n remaining++\n }\n\n question.querySelector('.answer').textContent = answers[name].join(', ')\n document.querySelector('.remaining span').textContent = remaining\n\n toggleRemainingAnswers(remaining)\n}\n\nfunction setUncompleted() {\n const total = document.querySelector('#total')?.value\n const completed = document.querySelector('#completed')?.value\n\n if (!total || !completed) return\n\n const remainingNode = document.querySelector('.remaining')\n\n remaining = Number(total) - Number(completed)\n remainingNode.querySelector('span').textContent = remaining\n\n toggleRemainingAnswers(remaining)\n}\n\nfunction toggleRemainingAnswers(show) {\n const remainingNode = document.querySelector('.remaining')\n\n if (show) {\n remainingNode.classList.remove('hidden')\n if (IB.currentDevice === 'mobile') remainingNode.previousElementSibling.classList.add('pb')\n } else {\n remainingNode.classList.add('hidden')\n if (IB.currentDevice === 'mobile') remainingNode.previousElementSibling.classList.remove('pb')\n }\n}\n\nfunction findAncestorByClassName(element, className) {\n if (!element.parentElement) return null\n\n if (element.parentElement.classList.contains(className)) return element.parentElement\n return findAncestorByClassName(element.parentElement, className)\n}\n\ninit()\n","import '../../shared/preferences/preferences'\nimport '../../vendors/intlTelInput/intlTelInput'\n\nimport Webview from '../../../../assets/javascripts/web_view'\nimport { inputFilterOnlyNumbers } from '../../core/utils/inputFilter.js'\n\nconst $doc = $(document)\nconst $mail_lightbox = $('#change-mail')\nconst $pass_lightbox = $('#change-password')\nconst $image_lightbox = $('#change-image')\nconst $newsletter_lightbox = $('#check-newsletter')\nconst $mail_form = $mail_lightbox.find('.formz')\nconst $pass_form = $pass_lightbox.find('.formz')\nconst $image_form = $image_lightbox.find('.formz')\nconst $newsletter_form = $newsletter_lightbox.find('.formz')\nconst $mail_submit = $mail_form.find('.btn-primary')\nconst $pass_submit = $pass_form.find('.btn-primary')\nconst $image_submit = $image_form.find('.btn-primary')\nconst $newsletter_submit = $newsletter_form.find('.btn-primary')\nconst $new_email = $('#new-email')\nconst $new_email_repeat = $('#new-email-repeat')\nconst $old_pass = $('#old-pass')\nconst $new_pass = $('#iberostar_api_user_password')\nconst $new_pass_repeat = $('#iberostar_api_user_password_repeat')\nconst $new_image = $('#iberostar_api_user_image')\nconst $personal_data = $('.accordion-block.personal-data')\nconst $notifications = $('.accordion-block.notifications')\nconst $country = $('#country')\nconst $postal_code = $('#postal-code')\nconst $presented_phone = $('#presented-phone')\n\nexport function init() {\n const $edit_user_page = $('.edit-user-page')\n const logged_from_call_center =\n $('.form-horizontal.formz#personal-data').data('logged-from-call-center') ||\n $('.edit-user-content').data('logged-from-call-center')\n\n if (!$edit_user_page.length) return\n\n if (Webview.getIsEmbedded()) {\n loadEmbeddedContent()\n }\n\n if ($edit_user_page.length && logged_from_call_center) {\n disablePersonalDataFormIfLoginCallCenter()\n }\n\n $('.edit-lightbox').find('form').parsley()\n\n $('.edit-user-fancybox').fancybox({\n clickSlide: false,\n touch: false,\n })\n\n $('.newsletter-fancybox').fancybox({\n clickSlide: false,\n touch: false,\n })\n\n const isIE11 = !!window.MSInputMethodContext && !!document.documentMode\n const event = isIE11 ? 'change' : 'input'\n\n $personal_data.add($notifications).on(event, function () {\n enablePersonalDataForm($(this))\n })\n\n $doc.on(event, '#personal-data input', function (e) {\n $(this).addClass('edited')\n })\n\n $personal_data.add($notifications).on('submit', function (e) {\n window.onbeforeunload = function () {\n // blank function do nothing\n }\n if (!$(this).find('form').parsley().isValid()) {\n e.preventDefault()\n window.onbeforeunload = function () {\n return 'Did you save your stuff?'\n }\n } else {\n $(this).find('form').find('.action').find('.clear-form').addClass('disabled')\n }\n })\n\n $personal_data.add($notifications).on('click', '.clear-form', function (e) {\n e.preventDefault()\n const $this = $(this)\n\n if ($this.hasClass('disabled')) return\n\n $this.closest('form').trigger('reset')\n\n $this.addClass('disabled')\n $this.closest('.accordion-block').removeClass('edited').find('.btn-primary').prop('disabled', true)\n $('input.edited').removeClass('edited')\n\n if (!$personal_data.hasClass('edited') && !$notifications.hasClass('edited')) {\n window.onbeforeunload = function () {\n // blank function do nothing\n }\n }\n })\n\n $($new_email)\n .add($new_email_repeat)\n .on('keyup', function () {\n if ($new_email.val() && $new_email_repeat.val() && $mail_submit.is(':disabled')) {\n $mail_submit.prop('disabled', false)\n }\n })\n\n $($old_pass)\n .add($new_pass)\n .add($new_pass_repeat)\n .on('keyup', function () {\n if ($old_pass.val() && $new_pass.val() && $new_pass_repeat.val() && $pass_submit.is(':disabled')) {\n $pass_submit.prop('disabled', false)\n }\n })\n\n $($new_image).on('change', function () {\n if ($new_image.val()) {\n if ($image_submit.is(':disabled')) {\n $image_submit.prop('disabled', false)\n }\n } else {\n $image_submit.prop('disabled', 'disabled')\n }\n })\n\n $presented_phone.intlTelInput()\n\n // Init formz on phone field\n FORMZ.required_fields.init($presented_phone)\n // Filter input to allow only numbers\n $presented_phone && inputFilterOnlyNumbers({ textBox: $presented_phone.get(0) })\n\n $presented_phone.on('countrychange', function (e, countryData) {\n if ($presented_phone.val() !== '') {\n enablePersonalDataForm($personal_data)\n }\n })\n\n if (typeof google === 'undefined') loadGoogleMapsScript()\n\n $country.on('change', function () {\n checkGooglePostalCode()\n })\n\n $postal_code.on('blur', function () {\n checkGooglePostalCode()\n })\n\n toggleAllCheckboxes()\n}\n\nfunction loadGoogleMapsScript() {\n const lang =\n document.documentElement.getAttribute('data-js-lang') ||\n document.documentElement.getAttribute('data-js-lang') ||\n $('html').attr('xml:lang') ||\n 'en'\n const script = document.createElement('script')\n const url = `https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places&language=${lang}`\n script.type = 'text/javascript'\n script.src = url\n document.body.appendChild(script)\n}\n\nfunction checkGooglePostalCode() {\n if ($country.val() === '' || $postal_code.val() === '') return\n\n const geocoder = new google.maps.Geocoder()\n let city = ''\n const $city_input = $('#city')\n\n geocoder.geocode(\n {\n componentRestrictions: {\n country: $country.val(),\n postalCode: $postal_code.val(),\n },\n },\n function (results, status) {\n if (status === 'OK') {\n const cities = results[0].postcode_localities\n if (cities) {\n $city_input.parent().find('select').remove()\n // turn city into a dropdown if necessary\n const $select = $(document.createElement('select'))\n\n $select.on('change', function () {\n $city_input.val($(this).val())\n })\n\n $.each(cities, function (index, locality) {\n const $option = $(document.createElement('option'))\n $option.html(locality)\n $option.attr('value', locality)\n // if(city == locality) {\n // $option.attr('selected','selected');\n // }\n $select.append($option)\n $select.trigger('change')\n })\n $select.attr('id', 'city-select')\n $city_input.hide()\n $city_input.parent().append($select)\n } else {\n const address_components = results[0].address_components\n $.each(address_components, function (index, component) {\n const types = component.types\n $.each(types, function (index, type) {\n if (type == 'locality') {\n city = component.long_name\n }\n })\n })\n $city_input.parent().find('select').remove()\n if (!$city_input.is(':visible')) $city_input.show()\n $city_input.val(city)\n }\n } else {\n $city_input.parent().find('select').remove()\n $city_input.val('')\n if (!$city_input.is(':visible')) $city_input.show()\n }\n }\n )\n}\n\nfunction enablePersonalDataForm($el) {\n if (!$el.hasClass('edited')) {\n $el.find('.action').find('.clear-form').removeClass('disabled')\n $el.find('.action').find('.btn-primary').prop('disabled', false)\n $el.addClass('edited')\n window.onbeforeunload = function () {\n return 'Did you save your stuff?'\n }\n }\n}\n\nfunction disablePersonalDataFormIfLoginCallCenter() {\n $('a.connect-btn').remove()\n $('a.edit-user-fancybox').remove()\n $('a.newsletter-fancybox').remove()\n $('.simple_form .action button.btn-primary').addClass('disabled')\n\n $('form input, form select').attr('disabled', 'disabled')\n $('form input, form select').attr('readonly', 'readonly')\n\n $('a.preferences-lightbox-link').remove()\n}\n\n$doc.on('click', '.accordion-title', function (e) {\n e.preventDefault()\n $(this).closest('.accordion-block').toggleClass('opened')\n})\n\nfunction toggleAllCheckboxes() {\n const btnMainCheckbox = document.querySelector('.js-main-checkbox')\n const boxSpamList = document.querySelectorAll('.sibiling')\n const smsAuthorizationBtn = document.querySelector('.js-sms-authorization-checkbox')\n const smsNoAcceptInput = document.querySelector('.js-no-accept-sms-input')\n\n function setCheckboxes(checked) {\n boxSpamList.forEach(boxSpam => {\n boxSpam.checked = checked\n })\n\n smsAuthorizationBtn.checked = !checked\n }\n\n btnMainCheckbox.addEventListener('click', function () {\n setCheckboxes(btnMainCheckbox.checked)\n })\n\n boxSpamList.forEach(boxSpam => {\n boxSpam.addEventListener('click', function () {\n if (!boxSpam.checked) {\n btnMainCheckbox.checked = false\n }\n })\n })\n\n smsAuthorizationBtn.addEventListener('click', function () {\n smsNoAcceptInput.checked = !smsAuthorizationBtn.checked\n\n checkFatherCheckbox()\n })\n\n smsNoAcceptInput.addEventListener('click', function () {\n smsAuthorizationBtn.checked = !smsNoAcceptInput.checked\n })\n}\n\n/**\n * Function to check the father checkbox\n */\nfunction checkFatherCheckbox() {\n const btnMainCheckbox = document.querySelector('.js-main-checkbox')\n const allChecked = Array.from(childCheckboxes).every(checkbox => checkbox.checked)\n\n btnMainCheckbox.checked = allChecked\n}\n\n//If you checked all children input automatically the father is checked too PY0400-350\n$('.sibiling').on('change', function () {\n const btnMainCheckbox = document.querySelector('.js-main-checkbox')\n\n if ($('.sibiling:checked').length == $('.sibiling').length) {\n btnMainCheckbox.checked = true\n }\n})\n\n$doc.on('click', '.cancel-user-edit, .updated-lightbox .btn-primary', function (e) {\n e.preventDefault()\n parent.jQuery.fancybox.getInstance().close()\n})\n\n$doc.on('click', '#personal-info-submit', function (e) {\n if ($presented_phone.val() !== '') {\n const phonePrefix = $('.selected-dial-code').text()\n const phoneNumber = $('#presented-phone').val()\n const phoneValue = `${phonePrefix} ${phoneNumber}`\n\n $('#phone').val(phoneValue)\n }\n\n const $user_name = $('#iberostar_api_user_first_name')\n /* Actualizamos el nombre del usuario en redis para que se muestre actualizado en el menĂº */\n if ($user_name.hasClass('edited') && IB.browsing_sessions !== undefined) {\n IB.browsing_sessions.store('name', $user_name.val())\n }\n})\n\n$doc.on('click', '.edit-user-page .connect-btn', function (e) {\n e.preventDefault()\n const $this = $(this)\n const connected = $this.hasClass('connected')\n const src = connected ? $this.data('disconnect-src') : $this.attr('href')\n\n $.fancybox.open({\n src,\n opts: {\n smallBtn: !connected,\n toolbar: false,\n clickOutside: connected ? false : 'close',\n clickSlide: connected ? false : 'close',\n touch: connected ? false : 'close',\n },\n })\n\n if (connected) {\n window.location.replace($this.data('disconnect-url'))\n }\n})\n\nfunction loadEmbeddedContent() {\n const contentToHide = {\n header: document.querySelector('.mobile-header'),\n footer: document.querySelector('.block-layer'),\n socialMediaLinking: document.querySelector('.my-account-element').lastElementChild,\n }\n\n Object.entries(contentToHide).forEach(([id, content]) => {\n content && content.classList.add('hidden')\n })\n\n //Opens all accordion blocks\n document.querySelectorAll('.edit-user-content .accordion-block').forEach(accordion => {\n accordion.classList.add('opened')\n })\n\n //Style settings\n document.querySelector('.bg-color-with-fastbooking').classList.remove('mb-5')\n}\n\ninit()\n","export function init() {\n if ($('.my-iberostar-menu').length > 0) {\n let $menu_cnt = $('div.my-iberostar-menu');\n let bookingsCount = $menu_cnt.data('bookingsCount');\n let quotesCount = $menu_cnt.data('quotesCount');\n let bookingsMenuItem = $menu_cnt.find('li.my-bookings a');\n let quotesMenuItem = $menu_cnt.find('li.my-quotes a');\n\n if (bookingsCount > 0) {\n bookingsMenuItem.text(bookingsMenuItem.text() + ' (' + bookingsCount + ')');\n }\n if (quotesCount > 0) {\n quotesMenuItem.text(quotesMenuItem.text() + ' (' + quotesCount + ')');\n }\n }\n}\n\ninit()\n","import '../../shared/deadline/deadline.js';\nimport '../../shared/booking_modal/booking_modal';\nimport '../../shared/pre_reservations_index_list/pre_reservations_index_list';\nimport '../../pages/edit_user_page/edit_user_page';\nimport '../../shared/my_iberostar_menu/my_iberostar_menu';\nimport '../../shared/next_bookings/next_bookings';\nimport '../../shared/quote_form/quote_form';\nimport '../../shared/dashboard_booking_row/dashboard_booking_row';\n\n$(function () {\n if ($('.my-iberostar-page').length) { // checks if in MIB to prevent crash with drop-down-links in destination page\n $(document).on('click', '.drop-down-links:not(.js-language-selector-links) a', function (e) {\n e.preventDefault();\n\n let $this = $(this);\n let $cnt = $this.closest('.booking-categories-cnt');\n let $cnt_drop_down = $this.closest('.drop-down-links');\n let category = $this.data('category');\n let text = $this.text();\n let $bookings = $('.dashboard-booking-row').find('.block-cnt > .block-cnt-parent');\n\n $cnt_drop_down.hide();\n $cnt.find('.d-link').removeClass('active');\n $cnt.find('> a').text(text);\n\n if (typeof category == 'undefined') return;\n\n if (category === 'all') {\n $bookings.find('.js-block-cnt-child').show();\n } else {\n $bookings.find('.js-block-cnt-child').hide();\n $bookings.find('.js-block-cnt-child[data-category=\"' + category + '\"]').show();\n }\n });\n\n let $results_order_by = $('.my-iberostar-page').find('.results-order-by');\n\n if ($results_order_by.length === 0 || IB.currentDevice !== 'mobile') return false;\n\n let $select = $('');\n\n $results_order_by.find('a').removeClass('reversible');\n $select.append($(''));\n $results_order_by.find('.drop-down-item').not(':first').each(function (index, el) {\n let $el = $(el);\n let text = $el.find('a').text();\n let data = $el.find('a').data('sort');\n let $option = $('');\n $select.append($option);\n });\n\n $('.select-results-order-by').formikation();\n $('.select-results-order-by').change(function (event) {\n let val = $(this).val();\n $results_order_by.find('[data-sort=\"' + val + '\"]').trigger('click');\n });\n }\n});\n","import { REGEX_LIB } from './constants';\n\n/**\n * Restricts input for the given textBox to the given inputFilter\n *\n * @param {dom object} textBox - input dom object\n * @param {function} inputFilter - filtering function\n * @param {array} events - array of events to listen on input\n */\nfunction inputFilter({ textBox, inputFilter, events = ['input', 'keydown'] }) {\n events.forEach(function (event) {\n textBox.addEventListener(event, function () {\n if (inputFilter(this.value)) {\n this.oldValue = this.value;\n this.oldSelectionStart = this.selectionStart;\n this.oldSelectionEnd = this.selectionEnd;\n } else if (this.hasOwnProperty('oldValue')) {\n this.value = this.oldValue;\n this.setSelectionRange(this.oldSelectionStart, this.oldSelectionEnd);\n } else {\n this.value = '';\n }\n });\n });\n}\n\n/**\n * Filters a text input to allow only numbers\n * @param {dom object} textBox - input dom object\n * @param {array} events - array of events to listen on input\n */\nexport const inputFilterOnlyNumbers = ({ textBox, events }) => {\n inputFilter({\n textBox,\n inputFilter: value => REGEX_LIB.onlyNumbers.test(value),\n events,\n });\n};\n","import dayjs from 'dayjs';\nimport '../../vendors/intlTelInput/intlTelInput';\nimport _filter from 'lodash/filter';\nimport _isEqual from 'lodash/isEqual';\nimport customParseFormat from 'dayjs/plugin/customParseFormat';\nimport { deviceAndMqbeMatch } from '../../core/iberapi/mqbe_device_type_match/mqbe_device_type_match';\n\ndayjs.extend(customParseFormat);\n\n$(function () {\n 'use strict';\n let $quote_form = $('.quote-form');\n\n if (!$quote_form.length) return false;\n\n let html = $('html');\n let language = html.attr('lang');\n let date_format = html.attr('data-date-format');\n let start_of_week = html.attr('data-start-of-week');\n let $hotel_selector = $quote_form.find('.hotel-selector');\n let $is_date = $quote_form.find('.is-date');\n let $check_in = $is_date.find('.check-in');\n let $check_out = $is_date.find('.check-out');\n let $selection_box = $('.hotel-selection');\n let $quoteFormPhone = $quote_form.find('#phone');\n let $quoteFormPhoneManual = $quote_form.find('#phone-manual-fill');\n let fastbooking_data = IB.hotels_data.check() ? IB.hotels_data.getData() : IB.hotels_data.get(function () {fastbooking_data = IB.hotels_data.getData();});\n let date_range_picker_options = {\n format: date_format,\n startOfWeek: start_of_week,\n language: language,\n startDate: new dayjs().format(date_format),\n autoClose: true,\n singleDate: true,\n singleMonth: true,\n showTopbar: false,\n selectForward: true,\n hoveringTooltip: false,\n stickyMonths: true,\n getValue: function () {\n if ($check_in.val() && $check_out.val())\n return $check_in.val() + ' ' + $check_out.val();\n else\n return '';\n },\n setValue: function (s, s1, s2) {\n $check_in.val(s1);\n $check_out.val(s2);\n let $this = $(this);\n // Base implementation\n if (!$this.attr('readonly') && !$this.is(':disabled') && s != $this.val()) {\n $this.val(s);\n }\n },\n beforeShowDay: function (t) {\n let style = t.getDay() === 0 ? 'weekend' : '';\n return [true, style, '', true];\n }\n };\n\n // add datepickers\n $quote_form.find('.is-date').each(function () {\n $(this).dateRangePicker(date_range_picker_options).on('datepicker-open', function() {\n var offset_left = $is_date.offset().left;\n $('.date-picker-wrapper').css('left', offset_left);\n $('.date-picker-wrapper').css('display: flex');\n }).on('datepicker-opened', function(ev, picker) {\n $(this).prop('readonly', true);\n }).on('datepicker-first-date-selected', function (ev, picker) {\n $(this).val(dayjs(picker.time).format(date_format));\n }).on('datepicker-open', function () {\n $('.date-picker-wrapper').css({\n left: ($(this).offset().left) - 5,\n width: 'auto'\n });\n setTimeout(function(){ $('.real-today').focus(); }, 200);\n });\n });\n\n // hotels multiple selector\n $quote_form.find('.chosen-select').chosen();\n\n // prevent screen blinking bug\n // due to duplicated label triggering chosen twice\n // via unbinding events from label\n $('.hotel-selector label').unbind('click');\n\n // loads prefixes into phone field\n $quoteFormPhone.intlTelInput();\n $quoteFormPhoneManual.intlTelInput();\n\n if ($quoteFormPhone.data('ame-prefix')) {\n $quoteFormPhone.intlTelInput('setCountry', 'us');\n }\n\n if ($quoteFormPhoneManual.data('ame-prefix')) {\n $quoteFormPhoneManual.intlTelInput('setCountry', 'us');\n }\n\n if (IB.currentDevice === 'mobile') {\n $quote_form.find('.fz-collapsable').addClass('fz-collapsed');\n $quote_form.find('.fz-collapse-trigger').addClass('fz-collapsed');\n\n $quote_form.find('.fz-collapse-trigger').on('click', function () {\n $(this).siblings('.fz-collapsable').toggleClass('fz-collapsed');\n $(this).toggleClass('fz-collapsed');\n });\n }\n\n\n $hotel_selector.find('[data-mice-form-hotels-selector]').on('change', function (e) {\n $selection_box.find('.selection-item').remove();\n let v = $(this).val();\n\n if (v === null) return false;\n let $not_this = $('[data-mice-form-hotels-selector]').not(this);\n let not_this_val = $not_this.val();\n\n if (_isEqual(v, not_this_val)) return false;\n\n $not_this.val(v).change().trigger('chosen:updated');\n\n $.each(v, function (indexInArray, valueOfElement) {\n let data_el = _filter(fastbooking_data.hotels[1], function (p) {\n return 'h' + valueOfElement === p.id;\n });\n let $template = $('

' + data_el[0].title + '

');\n $template.insertAfter($selection_box.find('.selection-title'));\n });\n });\n\n $hotel_selector.find('[data-mice-form-specialty-selector]').on('change', function (e) {\n let $ul = $selection_box.find('#specialties').find('ul');\n let v = $(this).val();\n let texts = [];\n $.each($(\"option:selected\", this), function(){\n texts.push($(this).text());\n });\n\n let $not_this = $('[data-mice-form-specialty-selector]').not(this);\n let not_this_val = $not_this.val();\n\n if (_isEqual(v, not_this_val)) return false;\n\n $not_this.val(v).change().trigger('chosen:updated');\n\n $ul.find('li').remove();\n\n if (v === null) {\n $ul.append($('
  • -
  • '));\n } else {\n $.each(texts,function(i,text){\n let $template = $('
  • ' + text + '
  • ');\n $ul.append($template);\n })\n }\n });\n\n $hotel_selector.find('[data-mice-form-budget-selector]').on('change', function (e) {\n let $ul = $selection_box.find('#budget').find('ul');\n let $this = $(this);\n let v = $this.val();\n let $not_this = $('[data-mice-form-budget-selector]').not(this);\n let not_this_val = $not_this.val();\n\n if (_isEqual(v, not_this_val)) return false;\n\n $not_this.val(v).change().trigger('chosen:updated');\n\n $ul.find('li').remove();\n\n if (v === null) {\n $ul.append($('
  • -
  • '));\n } else {\n $.each(v, function (indexInArray, valueOfElement) {\n let $template = $('
  • ' + $this.find('option[value=\"' + valueOfElement + '\"]').text() + '
  • ');\n\n $ul.append($template);\n });\n }\n });\n\n\n // enable/disable dependant inputs\n $('[data-toggle-input]').on('change', function () {\n let el = $(this);\n let input = $quote_form.find(el.data('toggle-input'));\n\n // If checkbox\n if (el.is('input:checkbox')) {\n if (el.is(':checked')) {\n enableInput(input);\n } else {\n disableInput(input);\n }\n } else if (el.is('select')) {\n if (typeof el.find('option:selected').attr('data-toggle-input-trigger') !== 'undefined') {\n enableInput(input);\n } else {\n disableInput(input);\n }\n }\n });\n\n let enableInput = function (input) {\n input.removeAttr('disabled');\n input.closest('.fz-field').removeClass('disabled');\n };\n let disableInput = function (input) {\n input.attr('disabled', 'disabled');\n input.closest('.fz-field').addClass('disabled');\n };\n\n\n // events logic\n\n let updateAddEvent = function () {\n if ($quote_form.find('.event-wrapper').length >= max_events) {\n $quote_form.find('.event-button').addClass('disabled');\n } else {\n $quote_form.find('.event-button').removeClass('disabled');\n }\n };\n\n let max_events = 3;\n let events_wrapper_template = $quote_form.find('.event-wrapper').clone().addClass('removable');\n let template_id = 1;\n\n $quote_form.on('click', '.event-button:not(.disabled)', function () {\n let $actual_wrapper = $quote_form.find('.event-wrapper');\n\n if ($actual_wrapper.length === max_events) return;\n\n $actual_wrapper.last().after(events_wrapper_template.clone());\n\n let $added_events_wrapper = $quote_form.find('.event-wrapper').last();\n\n $added_events_wrapper.find('input, textarea').each(function () {\n let $this = $(this);\n let id = $this.attr('id');\n $this.attr('id', id + '_' + template_id);\n });\n\n $added_events_wrapper.find('label').each(function () {\n let $this = $(this);\n let for_val = $this.attr('for');\n $this.attr('for', for_val + '_' + template_id);\n });\n\n template_id++;\n\n $added_events_wrapper.find('.is-date').each(function () {\n $(this).dateRangePicker(date_range_picker_options);\n });\n\n updateAddEvent();\n }).on('click', '.event-button-remove', function () {\n $(this).closest('.event-wrapper').remove();\n updateAddEvent();\n });\n\n\n $(document).on('click', '.quote-form-menu a', function (e) {\n e.preventDefault();\n let $this = $(this);\n let hash = this.hash;\n\n\n $('.quote-form-menu').find('li.current').removeClass('current');\n $this.parent().addClass('current');\n\n\n if (hash === '#quote-form-file') {\n $(hash).removeClass('hidden');\n $('#quote-form-manual-fill').addClass('hidden');\n } else {\n $(hash).removeClass('hidden');\n $('#quote-form-file').addClass('hidden');\n }\n });\n\n\n let isIE11 = !!window.MSInputMethodContext && !!document.documentMode;\n let event = isIE11 ? 'change' : 'input';\n\n $('[data-people-number-js]').on(event, function () {\n $('[data-people-number-js]').not(this).val($(this).val());\n $('#people_number_show').text($(this).val());\n });\n});\n"],"names":["$","$block","ONLINE_BOOKINGS_DISABLED","document","getElementsByTagName","classList","contains","dataCancelModal","openBookingModal","selector","link","Modal","show","onShow","ScrollLock","on","attr","onClose","off","awaitCloseAnimation","openCancelModal","conditions","find","length","event","preventDefault","this","$el","text","modalOpen","Array","from","querySelectorAll","close","html","openConditionsModal","state","pay_state","addClass","removeClass","openPayStatusModal","addEventListener","forEach","button","modalId","showModalFacturaGen","dataset","modalFacturaInvoice","answers","remaining","handleHeaderClick","ev","parentElement","target","className","questions","el","remove","add","handleAnswerChange","name","checked","type","question","findAncestorByClassName","push","filter","e","querySelector","textContent","join","toggleRemainingAnswers","remainingNode","IB","currentDevice","previousElementSibling","element","block","attributes","value","answersNode","selected","split","map","trim","stopPropagation","sendUtagEvent","data","event_name","event_cat","event_act","event_lbl","force_cg","event_purpose","event_structure","anchor","openLoader","total","completed","Number","setUncompleted","$doc","$mail_lightbox","$pass_lightbox","$image_lightbox","$newsletter_lightbox","$mail_form","$pass_form","$image_form","$newsletter_form","$mail_submit","$pass_submit","$image_submit","$new_email","$new_email_repeat","$old_pass","$new_pass","$new_pass_repeat","$new_image","$personal_data","$notifications","$country","$postal_code","$presented_phone","checkGooglePostalCode","val","geocoder","google","maps","Geocoder","city","$city_input","geocode","componentRestrictions","country","postalCode","results","status","cities","postcode_localities","parent","$select","createElement","each","index","locality","$option","append","trigger","hide","address_components","component","types","long_name","is","enablePersonalDataForm","hasClass","prop","window","onbeforeunload","closest","toggleClass","btnMainCheckbox","jQuery","fancybox","getInstance","phoneValue","$user_name","undefined","browsing_sessions","store","$this","connected","src","open","opts","smallBtn","toolbar","clickOutside","clickSlide","touch","location","replace","$edit_user_page","logged_from_call_center","Webview","getIsEmbedded","contentToHide","header","footer","socialMediaLinking","lastElementChild","Object","entries","_ref","id","content","accordion","loadEmbeddedContent","parsley","MSInputMethodContext","documentMode","isValid","intlTelInput","FORMZ","required_fields","init","inputFilterOnlyNumbers","textBox","get","countryData","lang","documentElement","getAttribute","script","url","body","appendChild","loadGoogleMapsScript","boxSpamList","smsAuthorizationBtn","smsNoAcceptInput","setCheckboxes","boxSpam","allChecked","childCheckboxes","every","checkbox","checkFatherCheckbox","toggleAllCheckboxes","$menu_cnt","bookingsCount","quotesCount","bookingsMenuItem","quotesMenuItem","$cnt","$cnt_drop_down","category","$bookings","$results_order_by","not","formikation","change","_ref2","events","inputFilter","oldValue","oldSelectionStart","selectionStart","oldSelectionEnd","selectionEnd","hasOwnProperty","setSelectionRange","REGEX_LIB","onlyNumbers","test","dayjs","customParseFormat","$quote_form","language","date_format","start_of_week","$hotel_selector","$is_date","$check_in","$check_out","$selection_box","$quoteFormPhone","$quoteFormPhoneManual","fastbooking_data","hotels_data","check","getData","date_range_picker_options","format","startOfWeek","startDate","autoClose","singleDate","singleMonth","showTopbar","selectForward","hoveringTooltip","stickyMonths","getValue","setValue","s","s1","s2","beforeShowDay","t","getDay","dateRangePicker","offset_left","offset","left","css","picker","time","width","setTimeout","focus","chosen","unbind","siblings","v","$not_this","not_this_val","_isEqual","indexInArray","valueOfElement","data_el","_filter","hotels","p","title","hotel_category_number","insertAfter","$ul","texts","i","$template","input","enableInput","disableInput","removeAttr","updateAddEvent","max_events","events_wrapper_template","clone","template_id","$actual_wrapper","last","after","$added_events_wrapper","for_val","hash"],"sourceRoot":""}