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AAAM,EAAAL,EAAIP,EAAIrT,QAAQ6T,gBAAgB7J,MAAM,OACrD,OAAL1L,QAAK,IAALA,GAAa,QAAR4V,EAAL5V,EAAO6P,cAAM,IAAA+F,GAAa,QAAbA,EAAbA,EAAeM,mBAAW,IAAAN,GAAW,QAAXA,EAA1BA,EAA4B5T,iBAAS,IAAA4T,GAArCA,EAAuChQ,OAAMyP,MAAAO,EAAAN,EACxCP,EAAIrT,QAAQ0T,cAAc1J,MAAM,SAGrCqJ,EAAI/S,UAAUoB,IAAI,UACb,OAALpD,QAAK,IAALA,GAAa,QAAR6V,EAAL7V,EAAO6P,cAAM,IAAAgG,GAAa,QAAbA,EAAbA,EAAeK,mBAAW,IAAAL,GAAW,QAAXA,EAA1BA,EAA4B7T,iBAAS,IAAA6T,GAArCA,EAAuCjQ,OAAO,WAGhD,GAAgB,OAAZkQ,QAAY,IAAZA,GAAAA,EAAcK,aAAa,kCAAmC,CAChE,IAAMC,EAAiB5U,SAASC,cAC9BqU,EAAapU,QAAQ2U,yBAEnBD,IACFA,EAAe9P,MAAQ0O,EAE3B,CAEKD,EAAIoB,aAAa,0BAEpBG,QAAQC,kBAAazF,OAAWA,EAAU,IAAD5Q,OAAM8U,GAEnD,IACA,E,0DCpFFwB,EAAAA,QAAcC,OAAQ,EAEtBD,EAAAA,cAAoBE,UAAY,WACfC,KAAKC,eAAe,GAC5BC,gBACT,EAEAL,EAAAA,cAAoBM,MAAQ,WACXH,KAAKC,eAAe,GAC5BG,UAAY,EACrB,C","sources":["webpack://app/./app/javascript/src/custom/InitApp.js","webpack://app/./app/javascript/src/custom/components/Accordion.js","webpack://app/./app/javascript/src/custom/components/AirportSelector.js","webpack://app/./app/javascript/src/custom/components/ShoppingCart.js","webpack://app/./app/javascript/src/custom/components/SignaturePad.js","webpack://app/./app/javascript/src/custom/events/room_requests.js","webpack://app/./app/javascript/src/custom/registration/Medpro.js","webpack://app/./app/javascript/src/plugins/Gmap.js","webpack://app/./app/javascript/src/plugins/Tabby.js","webpack://app/./app/javascript/src/turbo_configuration.js"],"sourcesContent":["import $ from 'jquery';\n\nexport const initHideShowLinks = () => {\n $('body').on('click', 'a[data-show]', (event) => {\n event.preventDefault();\n $(`#${$(this).data('show')}`).removeClass('hidden');\n });\n\n $('body').on('click', 'a[data-hide]', (event) => {\n event.preventDefault();\n $(`#${$(this).data('hide')}`).addClass('hidden');\n });\n};\n\nexport const setUniqIds = (editorId) => {\n const uniqueId = (id) => `${id}_${Math.random().toString(36).substr(2, 16)}`;\n const newId = uniqueId(editorId);\n $(`#${editorId}`).attr('id', newId);\n $(`#toolbar-${editorId}`).attr('id', `toolbar-${newId}`);\n};\nwindow.setUniqIds = setUniqIds;\n\nexport const initializeRemoteSearch = (url) => {\n $(\".remote-search\").dropdown({\n fullTextSearch: true,\n apiSettings: {\n url: url,\n },\n });\n};\nwindow.initializeRemoteSearch = initializeRemoteSearch;\n","import { toggleContent, isHidden } from \"../Utils\";\n\nexport const toggleClick = (elem) => {\n const contentContainer = document.querySelector(\n `[data-content=\"${elem.dataset.toggle}\"]`,\n );\n const { displayClass } = contentContainer.dataset;\n\n toggleContent(contentContainer, isHidden(contentContainer), displayClass);\n\n const icon = elem.querySelector(\".toggle-icon\");\n if (icon) {\n icon.classList.toggle(\"toggle-active\");\n }\n\n const chevron = elem.querySelector(\"[class*='g-icon-chevron']\");\n if (chevron) {\n chevron.classList.toggle(\"tw-rotate-180\");\n }\n};\n\nexport const initAccordion = (elem) => {\n elem.addEventListener('click', (e) => {\n if (elem?.type !== 'checkbox') {\n e.preventDefault();\n }\n toggleClick(elem);\n });\n if (elem.dataset.toggleDefaultActive === \"true\") {\n toggleClick(elem);\n }\n};\n\nexport const initAccordions = () => {\n document.querySelectorAll(\"[data-toggle]\").forEach((el) => {\n initAccordion(el);\n });\n};\n\nexport const randomizeAccordionSelector = (containerElem, toggleSelector) => {\n const uniqueSelector = `${toggleSelector}_${Math.random().toString(36)}`;\n\n containerElem\n .querySelectorAll(`[data-toggle='${toggleSelector}']`)\n .forEach((el) => {\n el.dataset.toggle = uniqueSelector;\n });\n containerElem\n .querySelectorAll(`[data-content=\"${toggleSelector}\"]`)\n .forEach((el) => {\n el.dataset.content = uniqueSelector;\n });\n containerElem\n .querySelectorAll(`[data-toggle='${uniqueSelector}']`)\n .forEach((el) => {\n initAccordion(el);\n });\n};\n\ndocument.addEventListener(\"DOMContentLoaded\", initAccordions);\ndocument.addEventListener(\"accordion:init\", initAccordions);\n","import $ from \"jquery\";\n\nexport const bindAirportSelector = (elem) => {\n const url = elem.dataset.url || elem.parentElement.dataset.url;\n\n $(elem).dropdown({\n clearable: true,\n apiSettings: {\n url,\n },\n filterRemoteData: false,\n });\n elem.classList.add(\"remote-bound\");\n};\n\nconst init = () => {\n document.querySelectorAll(\".airport-selector\").forEach((elem) => {\n if (elem.tagName === \"SELECT\") {\n bindAirportSelector(elem);\n }\n });\n};\n\ndocument.addEventListener(\"airportselector:rebind\", init);\n","const renderDiscount = (cart, discount, currency, locale) => {\n const cartDiscount = cart.querySelector('.cart-discount');\n if (cartDiscount && discount && currency) {\n if (discount > 0) {\n const formattedDiscount = new Intl.NumberFormat(locale, { style: 'currency', currency }).format(discount);\n cartDiscount.textContent = `- ${formattedDiscount}`;\n cartDiscount.parentNode.parentNode.classList.remove('tw-hidden');\n } else {\n cartDiscount.parentNode.parentNode.classList.add('tw-hidden');\n }\n }\n};\n\nconst renderTotal = (cart, total, currency, locale) => {\n const cartTotal = cart.querySelector('.cart-total');\n if (cartTotal) {\n cartTotal.textContent = new Intl.NumberFormat(locale, { style: 'currency', currency }).format(total);\n }\n};\n\nconst hideShowNext = (cart, quantity) => {\n const actions = cart.querySelector('.actions');\n if (actions === null) {\n return;\n }\n\n if (actions.dataset.mandatory !== 'true' || quantity > 0) {\n actions.classList.remove('tw-hidden');\n } else {\n actions.classList.add('tw-hidden');\n }\n};\n\nconst renderCart = (orderForm) => {\n const selector = orderForm.dataset.cartSelector;\n const cart = document.querySelector(selector);\n\n const locale = orderForm.dataset.cartLocale;\n\n const template = cart.querySelector('.cart-item-template');\n const itemsContainer = cart.querySelector('.items');\n itemsContainer.textContent = '';\n\n let total = 0.0;\n let currency = 'USD';\n\n let totalQuantity = 0;\n\n orderForm.querySelectorAll('[data-cart-item-id]').forEach((item) => {\n const clone = template.content.cloneNode(true);\n\n const itemName = clone.querySelector('.item-name');\n itemName.textContent = item.dataset.cartItemName;\n\n let quantity = 0;\n if (item.dataset.cartItemQuantity) {\n quantity = parseInt(item.dataset.cartItemQuantity, 10);\n if (Number.isNaN(quantity)) {\n quantity = 0;\n } else {\n const itemQuantity = clone.querySelector('.item-quantity');\n itemQuantity.textContent = quantity;\n }\n }\n\n if (item.dataset.cartItemPrice && item.dataset.cartItemCurrency) {\n let price = parseFloat(item.dataset.cartItemPrice);\n currency = item.dataset.cartItemCurrency;\n\n if (Number.isNaN(price)) {\n price = 0.0;\n }\n const subtotal = quantity * price;\n total += subtotal;\n\n const itemPrice = clone.querySelector('.item-price');\n itemPrice.textContent = new Intl.NumberFormat(locale, { style: 'currency', currency }).format(subtotal);\n }\n\n if (quantity > 0) {\n itemsContainer.appendChild(clone);\n totalQuantity += quantity;\n }\n });\n\n const discount = orderForm.dataset.cartDiscount;\n const discountCurrency = orderForm.dataset.cartDiscountCurrency;\n\n if (discount) {\n total -= discount;\n renderDiscount(cart, discount, discountCurrency, locale);\n }\n\n renderTotal(cart, total, currency, locale);\n hideShowNext(cart, totalQuantity);\n};\n\nconst init = () => {\n document.querySelectorAll('[data-cart-selector]').forEach((el) => {\n renderCart(el);\n\n el.querySelectorAll('.cart-quantity').forEach((quantityEl) => {\n quantityEl.addEventListener('change', (e) => {\n const parent = e.target.parentNode;\n parent.dataset.cartItemQuantity = e.target.value;\n renderCart(el);\n });\n });\n });\n};\n\ndocument.addEventListener('DOMContentLoaded', init);\ndocument.addEventListener('shopping_cart:rebind', init);\n","/* eslint-disable no-underscore-dangle */\nimport SignaturePad from \"signature_pad\";\n\n// eslint-disable-next-line func-names\n\n/**\n * Crop signature canvas to only contain the signature and no whitespace.\n *\n * @since 1.0.0\n * CREDIT: https://github.com/szimek/signature_pad/issues/49#issuecomment-260976909\n */\nconst cropSignatureCanvas = (canvas) => {\n // First duplicate the canvas to not alter the original\n const croppedCanvas = document.createElement(\"canvas\");\n const croppedCtx = croppedCanvas.getContext(\"2d\");\n\n croppedCanvas.width = canvas.width;\n croppedCanvas.height = canvas.height;\n croppedCtx.drawImage(canvas, 0, 0);\n\n // Next do the actual cropping\n let w = croppedCanvas.width;\n let h = croppedCanvas.height;\n const pix = { x: [], y: [] };\n const imageData = croppedCtx.getImageData(\n 0,\n 0,\n croppedCanvas.width,\n croppedCanvas.height,\n );\n let x;\n let y;\n let index;\n\n // eslint-disable-next-line no-plusplus\n for (y = 0; y < h; y++) {\n // eslint-disable-next-line no-plusplus\n for (x = 0; x < w; x++) {\n index = (y * w + x) * 4;\n if (imageData.data[index + 3] > 0) {\n pix.x.push(x);\n pix.y.push(y);\n }\n }\n }\n pix.x.sort((a, b) => a - b);\n pix.y.sort((a, b) => a - b);\n const n = pix.x.length - 1;\n\n w = pix.x[n] - pix.x[0];\n h = pix.y[n] - pix.y[0];\n const cut = croppedCtx.getImageData(pix.x[0], pix.y[0], w, h);\n\n croppedCanvas.width = w;\n croppedCanvas.height = h;\n croppedCtx.putImageData(cut, 0, 0);\n\n return croppedCanvas.toDataURL();\n};\n\nconst resizeCanvas = (canvas, signaturePad) => {\n const ratio = Math.max(window.devicePixelRatio || 1, 1);\n canvas.width = canvas.offsetWidth * ratio;\n canvas.height = canvas.offsetHeight * ratio;\n canvas.getContext(\"2d\").scale(ratio, ratio);\n signaturePad.clear(); // otherwise isEmpty() might return incorrect value\n};\n\nexport const initSignaturePad = (elem) => {\n const container = elem;\n const selector = container.dataset.signatureField;\n\n const dataField = document.querySelector(`${selector}_field`);\n const canvas = document.querySelector(`${selector}_signature_pad`);\n const signaturePad = new SignaturePad(canvas);\n const clearButton = document.querySelector(`${selector}_signature_pad_clear`);\n\n resizeCanvas(canvas, signaturePad);\n\n try {\n if (dataField.value && dataField.value !== \"\") {\n signaturePad.fromDataURL(dataField.value);\n }\n } catch (e) {\n // eslint-disable-next-line no-console\n console.error(\"Could not draw saved signature\", e);\n }\n\n signaturePad.addEventListener(\"endStroke\", () => {\n dataField.value = cropSignatureCanvas(canvas);\n });\n\n clearButton.addEventListener(\"click\", (e) => {\n e.preventDefault();\n signaturePad.clear();\n });\n};\n\nexport const initSignaturePadReadOnly = (elem) => {\n const container = elem;\n const selector = container.dataset.signatureField;\n\n const dataField = document.querySelector(`${selector}_field`);\n const label = document.querySelector(`${selector}_label`);\n const canvas = document.querySelector(`${selector}_signature_pad`);\n const signaturePad = new SignaturePad(canvas);\n const clearButton = document.querySelector(`${selector}_signature_pad_clear`);\n clearButton.classList.add(\"hide\");\n\n resizeCanvas(canvas, signaturePad);\n\n try {\n if (dataField.value && dataField.value !== \"\") {\n signaturePad.fromDataURL(dataField.value);\n }\n } catch (e) {\n // eslint-disable-next-line no-console\n console.error(\"Could not draw saved signature\", e);\n }\n\n delete dataField.dataset.formValidate; // Cannot be required if it's readonly\n label.classList.remove(\"required\");\n\n signaturePad.off();\n clearButton.addEventListener(\"click\", (e) => {\n e.preventDefault();\n });\n};\n\nconst init = () => {\n document.querySelectorAll(\"[data-signature-field]\").forEach((elem) => {\n initSignaturePad(elem);\n });\n};\n\nexport const initReadOnly = () => {\n document.querySelectorAll(\"[data-signature-field]\").forEach((elem) => {\n initSignaturePadReadOnly(elem);\n });\n};\n\ndocument.addEventListener(\"DOMContentLoaded\", init);\ndocument.addEventListener(\"signature_pad:init_read_only\", initReadOnly);\n","import $ from 'jquery';\nimport { initAllFlatpickrMulti } from '../DatetimeInit';\nimport { getCSRFTokenValue } from '../CsrfToken';\n\nconst checkNextButton = () => {\n const result = $('button.room-type-selected:visible').length > 0 || $('#assigned-rooms');\n if (result) {\n $('#next-button').removeClass('disabled').addClass('green');\n } else {\n $('#next-button').removeClass('green').addClass('disabled');\n }\n};\n\nconst removeRoomRequest = (e) => {\n const btnEl = e.target;\n const organizationId = btnEl.getAttribute('data-organization-id');\n const eventId = btnEl.getAttribute('data-event-id');\n const roomRequestIds = btnEl.attributes.room_request_ids.value;\n\n $.ajax({\n url: `/organizations/${organizationId}/events/${eventId}/room_requests/${roomRequestIds}`,\n type: 'DELETE',\n headers: {\n 'X-CSRF-Token': getCSRFTokenValue(),\n },\n success(data) {\n const suffixId = data.room_type_id;\n\n $(`#room-type-selected-${suffixId}`)\n .attr('room_request_id', '')\n .hide();\n\n $(`#room-type-select-${suffixId}`).show();\n $('#room-request-cart').html(data.room_type_cart_partial);\n\n checkNextButton();\n },\n });\n};\n\nconst addRoomRequest = (e) => {\n const btnEl = e.currentTarget;\n const onBehalfOf = btnEl.getAttribute('data-on-behalf-of') === 'true';\n const organizationId = btnEl.getAttribute('data-organization-id');\n const eventId = btnEl.getAttribute('data-event-id');\n const roomTypeId = btnEl.getAttribute('data-roomtype-id');\n const checkin = $('#checkin')[0].value;\n const checkout = $('#checkout')[0].value;\n const roomCount = $(`#room-count-${roomTypeId}`)[0].value;\n const guestCount = $(`#guest-count-${roomTypeId}`)[0].value;\n\n $.ajax({\n url: `/organizations/${organizationId}/events/${eventId}/room_requests`,\n type: 'POST',\n headers: {\n 'X-CSRF-Token': getCSRFTokenValue(),\n },\n data: {\n room_type_id: roomTypeId,\n checkin,\n checkout,\n room_count: roomCount,\n guest_count: guestCount,\n on_behalf_of: onBehalfOf,\n },\n success(data) {\n const suffixId = data.room_type_id;\n $('#flash-notice').remove();\n $(`#room-type-select-${suffixId}`).hide();\n $(`#error_message_${suffixId}`).toggleClass('hidden', true);\n $(`#room-type-selected-${suffixId}`)\n .attr('room_request_ids', data.room_request_ids)\n .show();\n $('#room-request-cart').html(data.room_type_cart_partial);\n checkNextButton();\n },\n error(jqXHR) {\n const suffixId = jqXHR.responseJSON.room_type_id;\n $(`#error_message_${suffixId} .content`).text(jqXHR.responseJSON.error);\n $(`#error_message_${suffixId}`).toggleClass('hidden', false);\n },\n });\n};\n\nconst updateAvailability = (e) => {\n e.preventDefault();\n\n let path = $(e.target).attr('href').split('?')[0];\n const date1 = $('#checkin').val();\n const date2 = $('#checkout').val();\n const checkin = new Date(date1);\n const checkout = new Date(date2);\n\n if (checkin <= checkout) {\n path = `${path}?checkin=${date1}&checkout=${date2}`;\n } else {\n path = `${path}?checkin=${date2}&checkout=${date1}`;\n }\n\n $(e.target).attr('href', path);\n if ($('button.room-type-selected:visible').length === 0) {\n window.location.href = path;\n } else {\n $('button.room-type-selected:visible').each((ind, el) => {\n const onBehalfOf = el.getAttribute('data-on-behalf-of') === 'true';\n const roomRequestIds = el.attributes.room_request_ids.value;\n const organizationId = el.getAttribute('data-organization-id');\n const eventId = el.getAttribute('data-event-id');\n const roomTypeId = el.getAttribute('data-roomtype-id');\n const roomCheckin = $('#checkin')[0].value;\n const roomCheckout = $('#checkout')[0].value;\n const roomCount = $(`#room-count-${roomTypeId}`)[0].value;\n const guestCount = $(`#guest-count-${roomTypeId}`)[0].value;\n\n $.ajax({\n url: `/organizations/${organizationId}/events/${eventId}/room_requests/${roomRequestIds}`,\n type: 'DELETE',\n headers: {\n 'X-CSRF-Token': getCSRFTokenValue(),\n },\n success(data) {\n const suffixId = data.room_type_id;\n\n $(`#room-type-selected-${suffixId}`)\n .attr('room_request_id', '');\n\n $.ajax({\n url: `/organizations/${organizationId}/events/${eventId}/room_requests`,\n type: 'POST',\n headers: {\n 'X-CSRF-Token': getCSRFTokenValue(),\n },\n data: {\n room_type_id: roomTypeId,\n checkin: roomCheckin,\n checkout: roomCheckout,\n room_count: roomCount,\n guest_count: guestCount,\n on_behalf_of: onBehalfOf,\n },\n success() {\n const newPath = document.querySelector('#room-block-availability-update-button').href;\n window.location.href = newPath;\n },\n });\n },\n });\n });\n }\n};\n\nconst initAdditionalDetails = (url) => {\n $('body').on('click', '#next-button.additional-details', (e) => {\n e.preventDefault();\n\n let roomRequestId = localStorage.getItem('roomRequestId');\n let additionalRequest = localStorage.getItem('additionalRequirements');\n let loyaltyName = localStorage.getItem('loyaltyName');\n let loyaltyNumber = localStorage.getItem('loyaltyNumber');\n\n if (roomRequestId) {\n roomRequestId = roomRequestId.replace(/\"/g, '');\n }\n\n if (additionalRequest) {\n additionalRequest = additionalRequest.replace(/\"/g, '');\n }\n\n if (loyaltyName) {\n loyaltyName = loyaltyName.replace(/\"/g, '');\n }\n\n if (loyaltyNumber) {\n loyaltyNumber = loyaltyNumber.replace(/\"/g, '');\n }\n\n $.ajax({\n url,\n type: 'PUT',\n dataType: 'script',\n headers: {\n 'X-CSRF-Token': getCSRFTokenValue(),\n },\n data: {\n room_request_cart: {\n room_requests_attributes: {\n id: roomRequestId,\n additional_request: additionalRequest,\n loyalty_name: loyaltyName,\n loyalty_number: loyaltyNumber,\n },\n },\n },\n success() {\n localStorage.clear();\n },\n });\n });\n};\n\nconst enableSearch = () => {\n const checkin = document.querySelector('#checkin');\n const checkout = document.querySelector('#checkout');\n const submitBtn = document.querySelector('#room-block-availability-update-button');\n\n const listener = () => {\n if (checkin.value && checkout.value) {\n submitBtn.classList.remove('disabled');\n } else if (!submitBtn.classList.contains('disabled')) {\n submitBtn.classList.add('disabled');\n }\n };\n checkin.addEventListener('change', listener);\n checkout.addEventListener('change', listener);\n};\n\nexport const initRoomTypeSelection = (occupantsPath) => {\n checkNextButton();\n document.querySelector('#room-block-availability-update-button').addEventListener('click', updateAvailability);\n document.querySelectorAll('.room-type-selected').forEach((el) => {\n el.addEventListener('click', removeRoomRequest);\n });\n document.querySelectorAll('.room-type-select').forEach((el) => {\n el.addEventListener('click', addRoomRequest);\n });\n\n initAllFlatpickrMulti({ allowInput: false });\n initAdditionalDetails(occupantsPath);\n enableSearch();\n};\nwindow.initRoomTypeSelection = initRoomTypeSelection;\n","import Rails from \"@rails/ujs\";\nimport { i18n } from \"../Internationalization\";\n\nconst hideRequiredNotices = () => {\n const notice = document.querySelector(\"#medpro_required_info\");\n notice?.classList?.add(\"tw-hidden\");\n\n const requiredError = document.querySelector(\"#medpro_required_error\");\n requiredError?.classList?.add(\"tw-hidden\");\n};\n\nconst disableRequiredValidation = () => {\n const medproIdField = document.querySelector(\n \"#registration_medpro_search_medpro_id\",\n );\n delete medproIdField.dataset.formValidateRequired;\n document.dispatchEvent(new Event(\"rebind-validation\"));\n};\n\nconst selectCard = (el) => {\n const medproId = el.dataset.medproSelect;\n const medproIdField = document.querySelector(\n \"#registration_medpro_search_medpro_id\",\n );\n medproIdField.value = medproId;\n\n const regLastName = document.querySelector(\"#registration_last_name\");\n if (\n regLastName !== null &&\n regLastName.value === \"\" &&\n el.dataset.medproLastName !== \"\"\n ) {\n regLastName.value = el.dataset.medproLastName;\n }\n\n const regFirstName = document.querySelector(\"#registration_first_name\");\n if (\n regFirstName != null &&\n regFirstName.value === \"\" &&\n el.dataset.medproFirstName !== \"\"\n ) {\n regFirstName.value = el.dataset.medproFirstName;\n }\n\n hideRequiredNotices();\n\n document.querySelectorAll(\"[data-medpro-select]\").forEach((button) => {\n const span = button.querySelector(\"span\");\n const img = button.querySelector(\"img\");\n if (button.dataset.medproSelect === medproId) {\n span.textContent = i18n.t(\"actions.selected\");\n img.classList.remove(\"tw-hidden\");\n } else {\n span.textContent = i18n.t(\"actions.select\");\n img.classList.add(\"tw-hidden\");\n }\n });\n};\n\nconst bindControls = () => {\n document.querySelectorAll(\"[data-medpro-unverify]\").forEach((el) => {\n el.addEventListener(\"click\", (e) => {\n e.preventDefault();\n const medproIdField = document.querySelector(\n \"#registration_medpro_search_medpro_id\",\n );\n medproIdField.value = \"\";\n document\n .querySelector(\"#medpro_verify_later\")\n .classList.remove(\"tw-hidden\");\n document.querySelectorAll(\"[data-medpro-id]\").forEach((card) => {\n card.classList.add(\"tw-hidden\");\n });\n document.querySelector(\"#medpro_header\")?.classList?.add(\"tw-hidden\");\n disableRequiredValidation();\n hideRequiredNotices();\n });\n });\n document.querySelectorAll(\"[data-medpro-select]\").forEach((el) => {\n el.addEventListener(\"click\", (e) => {\n e.preventDefault();\n selectCard(el);\n });\n });\n};\n\nconst setResult = (e) => {\n const medproIdField = document.querySelector(\n \"#registration_medpro_search_medpro_id\",\n );\n medproIdField.value = e.detail.medproId;\n\n if (e.detail.assumedId !== \"\") {\n const recordSelectButton = document.querySelector(\n `[data-medpro-select=\"${e.detail.assumedId}\"]`,\n );\n if (recordSelectButton) {\n selectCard(recordSelectButton);\n }\n }\n\n const requiredNotice = document.querySelector(\"#medpro_required_info\");\n requiredNotice?.classList?.add(\"tw-hidden\");\n\n const container = document.querySelector(\"[data-medpro-verify-info]\");\n container?.classList?.remove(\"tw-hidden\");\n if (\n e.detail.resultState === \"not_found\" ||\n e.detail.resultState === \"error\"\n ) {\n hideRequiredNotices();\n disableRequiredValidation();\n }\n bindControls();\n};\n\nconst init = () => {\n const medproVerificationComponent = document.querySelector(\n \"[data-medpro-registration]\",\n );\n if (medproVerificationComponent) {\n const verifyUrl = medproVerificationComponent.dataset.medproRegistration;\n const verifyButton =\n medproVerificationComponent.querySelector(\".verify_medpro\");\n verifyButton.addEventListener(\"click\", (e) => {\n e.preventDefault();\n const medproIdField = document.querySelector(\n \"#registration_medpro_search_medpro_id\",\n );\n medproIdField.value = \"\";\n\n const data = {\n \"medpro_search[first_name]\": document.querySelector(\n \"#registration_first_name\",\n )?.value,\n \"medpro_search[last_name]\": document.querySelector(\n \"#registration_last_name\",\n )?.value,\n \"medpro_search[designation]\": document.querySelector(\n \"#registration_medpro_search_designation\",\n ).value,\n \"medpro_search[state_license]\": document.querySelector(\n \"#registration_medpro_search_state_license\",\n ).value,\n \"medpro_search[identifier_type]\": document.querySelector(\n \"#registration_medpro_search_identifier_type\",\n ).value,\n \"medpro_search[identifier_number]\": document.querySelector(\n \"#registration_medpro_search_identifier_number\",\n ).value,\n };\n\n Rails.ajax({\n type: \"GET\",\n url: verifyUrl,\n data: new URLSearchParams(data).toString(),\n });\n return false;\n });\n bindControls();\n }\n};\n\ndocument.addEventListener(\"DOMContentLoaded\", init);\ndocument.addEventListener(\"medpro:result\", setResult);\ndocument.addEventListener(\"form-validate:fail\", (e) => {\n if (e.detail[\"#registration_medpro_search_medpro_id\"]?.isValid === false) {\n hideRequiredNotices();\n\n const requiredError = document.querySelector(\"#medpro_required_error\");\n requiredError?.classList?.remove(\"tw-hidden\");\n }\n});\n","const silverGMapStyles = [\n {\n elementType: \"geometry\",\n stylers: [\n {\n color: \"#f5f5f5\",\n },\n ],\n },\n {\n elementType: \"labels.icon\",\n stylers: [\n {\n visibility: \"off\",\n },\n ],\n },\n {\n elementType: \"labels.text.fill\",\n stylers: [\n {\n color: \"#616161\",\n },\n ],\n },\n {\n elementType: \"labels.text.stroke\",\n stylers: [\n {\n color: \"#f5f5f5\",\n },\n ],\n },\n {\n featureType: \"administrative.land_parcel\",\n elementType: \"labels.text.fill\",\n stylers: [\n {\n color: \"#bdbdbd\",\n },\n ],\n },\n {\n featureType: \"poi\",\n elementType: \"geometry\",\n stylers: [\n {\n color: \"#eeeeee\",\n },\n ],\n },\n {\n featureType: \"poi\",\n elementType: \"labels.text.fill\",\n stylers: [\n {\n color: \"#757575\",\n },\n ],\n },\n {\n featureType: \"poi.park\",\n elementType: \"geometry\",\n stylers: [\n {\n color: \"#e5e5e5\",\n },\n ],\n },\n {\n featureType: \"poi.park\",\n elementType: \"labels.text.fill\",\n stylers: [\n {\n color: \"#9e9e9e\",\n },\n ],\n },\n {\n featureType: \"road\",\n elementType: \"geometry\",\n stylers: [\n {\n color: \"#ffffff\",\n },\n ],\n },\n {\n featureType: \"road.arterial\",\n elementType: \"labels.text.fill\",\n stylers: [\n {\n color: \"#757575\",\n },\n ],\n },\n {\n featureType: \"road.highway\",\n elementType: \"geometry\",\n stylers: [\n {\n color: \"#dadada\",\n },\n ],\n },\n {\n featureType: \"road.highway\",\n elementType: \"labels.text.fill\",\n stylers: [\n {\n color: \"#616161\",\n },\n ],\n },\n {\n featureType: \"road.local\",\n elementType: \"labels.text.fill\",\n stylers: [\n {\n color: \"#9e9e9e\",\n },\n ],\n },\n {\n featureType: \"transit.line\",\n elementType: \"geometry\",\n stylers: [\n {\n color: \"#e5e5e5\",\n },\n ],\n },\n {\n featureType: \"transit.station\",\n elementType: \"geometry\",\n stylers: [\n {\n color: \"#eeeeee\",\n },\n ],\n },\n {\n featureType: \"water\",\n elementType: \"geometry\",\n stylers: [\n {\n color: \"#c9c9c9\",\n },\n ],\n },\n {\n featureType: \"water\",\n elementType: \"labels.text.fill\",\n stylers: [\n {\n color: \"#9e9e9e\",\n },\n ],\n },\n];\n\nexport const initMap = (id = \"map\") => {\n try {\n const mapEl = document.getElementById(id);\n if (\n mapEl == null ||\n mapEl.length === 0 ||\n typeof window.google === \"undefined\" ||\n typeof window.google.maps === \"undefined\"\n )\n return;\n\n const lng = mapEl.dataset.lng || 0;\n const lat = mapEl.dataset.lat || 0;\n const { title } = mapEl.dataset;\n\n const myLatLng = new window.google.maps.LatLng(lat, lng);\n\n const map = new window.google.maps.Map(document.getElementById(id), {\n center: myLatLng,\n scrollwheel: false,\n zoom: 14,\n });\n\n // eslint-disable-next-line no-new\n new window.google.maps.Marker({\n position: myLatLng,\n map,\n title,\n });\n } catch (e) {\n console.log(\"Error initializing map\", e);\n }\n};\ndocument.addEventListener(\"maps:init\", (e) => {\n initMap(e?.detail?.id);\n});\n\nexport const initEventsMap = (mapId = \"events_map\") => {\n const mapEl = document.getElementById(mapId);\n const elData = document.getElementById(`${mapId}_markers`);\n\n if (\n mapEl == null ||\n mapEl.length === 0 ||\n typeof window.google === \"undefined\"\n )\n return false;\n\n const greyMapType = new window.google.maps.StyledMapType(silverGMapStyles, {\n name: \"Greyscale\",\n });\n const defaultStyle = mapEl.dataset.mapStyle || \"roadmap\";\n const markers = [];\n\n elData.querySelectorAll(\"var\").forEach((el) => {\n markers.push({\n brand: el.dataset.brand,\n name: el.dataset.name,\n lng: el.dataset.lng,\n lat: el.dataset.lat,\n text: el.dataset.text,\n address: el.dataset.address,\n link: el.dataset.url,\n icon: el.dataset.image,\n });\n });\n\n const lng = mapEl.dataset.lng || 0;\n const lat = mapEl.dataset.lat || 0;\n const zoom = parseInt(mapEl.dataset.mapZoom || \"11\", 10);\n const myLatLng = new window.google.maps.LatLng(lat, lng);\n\n const map = new window.google.maps.Map(document.getElementById(mapId), {\n center: myLatLng,\n scrollwheel: false,\n zoom,\n mapTypeControlOptions: {\n mapTypeIds: [\"roadmap\", \"satellite\", \"greyscale\"],\n },\n });\n\n map.mapTypes.set(\"greyscale\", greyMapType);\n map.setMapTypeId(defaultStyle);\n\n const bounds = new window.google.maps.LatLngBounds();\n\n markers.forEach((marker) => {\n const contentString1 = `\n
${marker.text}
\n