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AAY,IAC9C,MACMvE,EAAMoE,aAAaC,cAAcrE,EAAMoE,kBAG7C1iB,OAAO+f,cAAckD,YACrBpW,EAAE,oBAAoBqU,MACxB,KAKNrU,EAAE7M,QAAQ+gB,GAAG,gBAAgBwB,iBAC3B,MAAMxD,EAAU/e,OAAO+f,cAAcgD,kBAAoB,EACnDtD,EAAWnB,EAAMmB,gBAAkBzf,OAAO+f,cAAcc,cAE9DhU,EAAEsU,KAAK,CACL5L,KAAM,MACNxG,IAAM,qBAAoByR,IAC1B9d,KAAM,CACJ0e,eAAgB,CACdrC,QAASA,EACTsC,kBAAmB5B,EAAWV,IAGlCuC,SAAU,QAEd,GACF,GACF,CACF,EACDljB,EAxPQyC,QAAU,CAAC,kBAAiBzC,EAC5BmI,OAAS,CAAE2c,QAASC,Q","sources":["webpack:///./app/javascript/controllers/ sync _controller\\.js$","webpack:///./app/javascript/controllers/background_controller.js","webpack:///./app/javascript/controllers/carousel_controller.js","webpack:///./app/javascript/controllers/cart_controller.js","webpack:///./app/javascript/controllers/chapter_height_controller.js","webpack:///./app/javascript/controllers/close_modal_controller.js","webpack:///./app/javascript/controllers/content_type_carousel_controller.js","webpack:///./app/javascript/controllers/customer_controller.js","webpack:///./app/javascript/controllers/dietary_requirement_controller.js","webpack:///./app/javascript/controllers/dropdown_controller.js","webpack:///./app/javascript/controllers/dropdown_video_footer_controller.js","webpack:///./app/javascript/controllers/eresource_controller.js","webpack:///./app/javascript/controllers/eway_controller.js","webpack:///./app/javascript/controllers/food_allergies_controller.js","webpack:///./app/javascript/controllers/form_controller.js","webpack:///./app/javascript/controllers/ga4_ecommerce_controller.js","webpack:///./app/javascript/controllers/hide_controller.js","webpack:///./app/javascript/controllers/image_preview_controller.js","webpack:///./app/javascript/controllers/index.js","webpack:///./app/javascript/controllers/modal_content_controller.js","webpack:///./app/javascript/controllers/modalities_controller.js","webpack:///./app/javascript/controllers/nav_menu_swiper_controller.js","webpack:///./app/javascript/controllers/one_dropdown_controller.js","webpack:///./app/javascript/controllers/password_controller.js","webpack:///./app/javascript/controllers/payment_controller.js","webpack:///./app/javascript/controllers/places_autocomplete_controller.js","webpack:///./app/javascript/controllers/record_selection_controller.js","webpack:///./app/javascript/controllers/search_box_controller.js","webpack:///./app/javascript/controllers/toggable_controller.js","webpack:///./app/javascript/controllers/toggle_controller.js","webpack:///./app/javascript/controllers/undisable_button_controller.js","webpack:///./app/javascript/controllers/uniq_radio_controller.js","webpack:///./app/javascript/controllers/video_controller.js"],"sourcesContent":["var map = {\n\t\"./background_controller.js\": 9462,\n\t\"./carousel_controller.js\": 9350,\n\t\"./cart_controller.js\": 8222,\n\t\"./chapter_height_controller.js\": 4723,\n\t\"./close_modal_controller.js\": 5754,\n\t\"./content_type_carousel_controller.js\": 5826,\n\t\"./customer_controller.js\": 9800,\n\t\"./dietary_requirement_controller.js\": 5587,\n\t\"./dropdown_controller.js\": 4131,\n\t\"./dropdown_video_footer_controller.js\": 5084,\n\t\"./eresource_controller.js\": 8909,\n\t\"./eway_controller.js\": 9765,\n\t\"./food_allergies_controller.js\": 6141,\n\t\"./form_controller.js\": 1112,\n\t\"./ga4_ecommerce_controller.js\": 9158,\n\t\"./hide_controller.js\": 3953,\n\t\"./image_preview_controller.js\": 3160,\n\t\"./modal_content_controller.js\": 8071,\n\t\"./modalities_controller.js\": 9249,\n\t\"./nav_menu_swiper_controller.js\": 2649,\n\t\"./one_dropdown_controller.js\": 8792,\n\t\"./password_controller.js\": 7514,\n\t\"./payment_controller.js\": 1262,\n\t\"./places_autocomplete_controller.js\": 6945,\n\t\"./record_selection_controller.js\": 313,\n\t\"./search_box_controller.js\": 6991,\n\t\"./toggable_controller.js\": 3839,\n\t\"./toggle_controller.js\": 2645,\n\t\"./undisable_button_controller.js\": 621,\n\t\"./uniq_radio_controller.js\": 3635,\n\t\"./video_controller.js\": 1510,\n\t\"controllers/background_controller.js\": 9462,\n\t\"controllers/carousel_controller.js\": 9350,\n\t\"controllers/cart_controller.js\": 8222,\n\t\"controllers/chapter_height_controller.js\": 4723,\n\t\"controllers/close_modal_controller.js\": 5754,\n\t\"controllers/content_type_carousel_controller.js\": 5826,\n\t\"controllers/customer_controller.js\": 9800,\n\t\"controllers/dietary_requirement_controller.js\": 5587,\n\t\"controllers/dropdown_controller.js\": 4131,\n\t\"controllers/dropdown_video_footer_controller.js\": 5084,\n\t\"controllers/eresource_controller.js\": 8909,\n\t\"controllers/eway_controller.js\": 9765,\n\t\"controllers/food_allergies_controller.js\": 6141,\n\t\"controllers/form_controller.js\": 1112,\n\t\"controllers/ga4_ecommerce_controller.js\": 9158,\n\t\"controllers/hide_controller.js\": 3953,\n\t\"controllers/image_preview_controller.js\": 3160,\n\t\"controllers/modal_content_controller.js\": 8071,\n\t\"controllers/modalities_controller.js\": 9249,\n\t\"controllers/nav_menu_swiper_controller.js\": 2649,\n\t\"controllers/one_dropdown_controller.js\": 8792,\n\t\"controllers/password_controller.js\": 7514,\n\t\"controllers/payment_controller.js\": 1262,\n\t\"controllers/places_autocomplete_controller.js\": 6945,\n\t\"controllers/record_selection_controller.js\": 313,\n\t\"controllers/search_box_controller.js\": 6991,\n\t\"controllers/toggable_controller.js\": 3839,\n\t\"controllers/toggle_controller.js\": 2645,\n\t\"controllers/undisable_button_controller.js\": 621,\n\t\"controllers/uniq_radio_controller.js\": 3635,\n\t\"controllers/video_controller.js\": 1510\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 7074;","import { Controller } from 'stimulus'\n\nexport default class extends Controller {\n static targets = ['container', 'absoluteContainer']\n\n connect() {\n if (this.hasContainerTarget) {\n const backgroundColor = this.containerTarget.dataset.backgroundColor\n if (backgroundColor)\n this.addBackGroundcolor(this.element, backgroundColor)\n }\n\n if (this.hasAbsoluteContainerTarget) {\n this.absoluteContainerTargets.forEach((element) => {\n const innerHeight = element.clientHeight\n this.createAbsoluteWraper(innerHeight, element)\n })\n }\n }\n\n addBackGroundcolor(element, classColor, styleColor) {\n if (classColor) element.classList.add(classColor)\n if (styleColor) element.style.backgroundColor = styleColor\n }\n\n createAbsoluteWraper(wrapperHeight, target) {\n const self = this\n const mainWrapper = document.createElement('div')\n const absoluteWrapper = document.createElement('div')\n const customWrapper = document.createElement('div')\n absoluteWrapper.classList.add('absolute', 'left-0', 'w-full')\n customWrapper.classList.add('site-container')\n const backgroundColor = window\n .getComputedStyle(target, null)\n .getPropertyValue('background-color')\n self.addBackGroundcolor(absoluteWrapper, null, backgroundColor)\n mainWrapper.style.height = `${wrapperHeight}px`\n mainWrapper.appendChild(absoluteWrapper)\n absoluteWrapper.appendChild(customWrapper)\n self.wrap(target, mainWrapper, customWrapper)\n\n window.addEventListener(\n 'resize',\n function (event) {\n const innerHeight = target.clientHeight\n mainWrapper.style.height = `${innerHeight}px`\n },\n true\n )\n }\n\n wrap(el, wrapper, innerWrapper) {\n el.parentNode.insertBefore(wrapper, el)\n if (innerWrapper) {\n innerWrapper.appendChild(el)\n } else {\n wrapper.appendChild(el)\n }\n }\n}\n","import { Controller } from 'stimulus'\n\nexport default class extends Controller {\n static targets = ['carousel', 'scroll']\n\n connect() {\n this.checkScroll()\n }\n\n scroll(event) {\n if (this.hasCarouselTarget) {\n const right = event.currentTarget.classList.contains('scroll-right')\n const left = event.currentTarget.classList.contains('scroll-left')\n if (left) this.carouselTarget.scrollLeft -= 380\n if (right) this.carouselTarget.scrollLeft += 380\n }\n }\n\n checkScroll() {\n if (this.hasCarouselTarget && this.hasScrollTarget) {\n if (this.carouselTarget.scrollWidth <= this.carouselTarget.offsetWidth) {\n this.scrollTarget.classList.add('hidden')\n } else {\n this.scrollTarget.classList.remove('hidden')\n }\n this.setCarouselContainerCenter()\n }\n }\n setCarouselContainerCenter() {\n if (\n window.screen.width <= 576 &&\n this.carouselTarget.children.length === 1\n ) {\n this.carouselTarget.classList.add('justify-center')\n } else if (\n window.screen.width > 576 &&\n this.carouselTarget.classList.contains('justify-center')\n ) {\n this.carouselTarget.classList.remove('justify-center')\n }\n }\n}\n","import { Controller} from \"stimulus\";\n\nexport default class extends Controller {\n reviewCart(e) {\n e.preventDefault()\n\n const accessCode = e.target.form.children.EWAY_ACCESSCODE.value\n\n fetch(`/cart/review?AccessCode=${accessCode}`)\n .then((response) => {\n return response.json();\n })\n .then((data) => {\n const cart_price = parseFloat(data['cart']['total_with_shipping']).toFixed(2)\n const form_price = (data['eway']['total_amount'] / 100).toFixed(2)\n\n if (cart_price === form_price) {\n e.target.form.submit()\n }\n else {\n window.location.replace(\"/cart/review?cart_updated=true\");\n }\n })\n }\n}\n","import { Controller } from 'stimulus'\n\nexport default class extends Controller {\n static targets = ['video', 'chapterContainer']\n\n connect() {\n if (this.hasChapterContainerTarget && this.hasVideoTarget) {\n this.matchVideoHeight()\n }\n }\n\n matchVideoHeight() {\n if (window.screen.width >= 1024) {\n const height = window\n .getComputedStyle(this.videoTarget)\n .getPropertyValue('padding-bottom')\n this.chapterContainerTarget.style.height = height\n }\n }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = ['modal'];\n\n close() {\n if (this.hasModalTarget) {\n this.modalTarget.style.display = 'none';\n document.querySelector('.modal-backdrop.fade.in').style.display = 'none';\n }\n }\n}\n","import { Controller } from 'stimulus'\nimport Swiper, { Navigation } from 'swiper';\nimport 'swiper/css/bundle';\n\nexport default class extends Controller {\n static targets = [\"swiperWrapper\"]\n\n connect() {\n this.updateSwiper()\n }\n\n updateSwiper() {\n const width = window.innerWidth;\n\n let slidesPerView = 6\n\n if (width < 1075) {\n slidesPerView = width < 654 ? 2 : 4;\n }\n\n this.alignItems(slidesPerView)\n\n const swiper = new Swiper('.swiper', {\n slidesPerView: slidesPerView,\n navigation: {\n nextEl: '.swiper-button-next',\n prevEl: '.swiper-button-prev',\n },\n modules: [Navigation],\n observer: true,\n observeParents: true\n });\n }\n\n alignItems(slidesPerView) {\n const items = document.getElementsByClassName('swiper-slide')\n\n if (items.length < slidesPerView) {\n this.swiperWrapperTarget.classList.add('slides-centered')\n }\n else {\n this.swiperWrapperTarget.classList.remove('slides-centered')\n }\n }\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static STUDENT_PROFESSION_ID = '261070181'\n static targets = ['marketingContact']\n\n toggleMarketingContactField(e) {\n this.marketingContactTarget.hidden = e.target.value === this.constructor.STUDENT_PROFESSION_ID\n }\n}\n","import { Controller} from \"stimulus\";\n\nexport default class extends Controller {\n static targets = ['checkbox', 'field', 'input']\n\n connect() {\n this.toggleVisibility()\n }\n\n toggleVisibility() {\n if (this.checkboxTarget.checked) {\n this.fieldTarget.classList.remove('hide')\n }\n else {\n this.fieldTarget.classList.add('hide')\n\n for (let checkbox of this.fieldTarget.getElementsByTagName(\"input\")) {\n checkbox.checked = false\n }\n }\n }\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = [\"selected\"]\n\n showDropdown() {\n if (this.element.classList.contains('dropdown--active')) {\n this.element.classList.remove('dropdown--active')\n } else {\n this.element.classList.add('dropdown--active')\n if (this.element.classList.contains('dropdown--checked')) {\n this.element.classList.remove('dropdown--checked')\n }\n }\n }\n\n setValue(event) {\n this.selectedTarget.innerText = event.currentTarget.innerText\n this.element.querySelector(`#${this.element.dataset.selectName}`).value = event.currentTarget.dataset.value\n this.element.classList.add('dropdown--checked')\n if (document.querySelector('#continue-to-payment')) {\n document.querySelector('#continue-to-payment').disabled = false\n }\n this.showDropdown()\n }\n}","//TODO: won't be able to use it until fix issue that controller is loaded twice\nimport { Controller } from 'stimulus'\n\nexport default class extends Controller {\n static targets = ['menuToDisplay', 'trigger']\n static values = { elementClass: Array }\n\n showMenu(event) {\n if (this.hasMenuToDisplayTarget) {\n const indexToShow = parseInt(event.currentTarget.dataset.menuNumber)\n\n if (this.lastTarget == undefined) {\n this.menuToDisplayTargets[indexToShow].classList.remove('hidden')\n this.toggleElementClass(indexToShow)\n } else {\n this.menuToDisplayTargets.forEach((element, index) => {\n if (element.classList.contains('hidden')) {\n if (index == indexToShow) {\n element.classList.remove('hidden')\n this.toggleElementClass(index)\n }\n } else {\n element.classList.add('hidden')\n this.toggleElementClass(index, false)\n }\n })\n }\n this.lastTarget = true\n }\n }\n\n toggleElementClass(index, add = true) {\n if (this.hasElementClassValue && this.hasTriggerTarget) {\n if (add) {\n this.triggerTargets[index].classList.add(...this.elementClassValue)\n } else {\n this.triggerTargets[index].classList.remove(...this.elementClassValue)\n }\n }\n }\n}\n","import { Controller} from \"stimulus\";\nimport {useClickOutside} from \"stimulus-use\";\n\nexport default class extends Controller {\n connect() {\n this.waitForElementAndScroll();\n }\n\n waitForElementAndScroll() {\n const targetId = window.location.hash.replace('#', '');\n if (!targetId) return;\n\n const observer = new MutationObserver((mutations, obs) => {\n const element = document.getElementById(targetId);\n if (element) {\n const offset = document.querySelector('#bio-top-menu')?.offsetHeight || 0;\n element.style.scrollMarginTop = `${offset}px`;\n\n element.scrollIntoView({ behavior: \"smooth\", block: \"start\" });\n obs.disconnect();\n }\n });\n\n observer.observe(document.body, { childList: true, subtree: true });\n }\n}\n","import { Controller} from \"stimulus\";\n\nexport default class extends Controller {\n static targets = ['button', 'text']\n\n disableButton(e) {\n this.buttonTarget.disabled = 'disabled'\n\n if (this.textTarget.tagName === 'SPAN') {\n this.textTarget.innerHTML = 'Processing...'\n }\n else {\n this.textTarget.value = 'Processing...'\n }\n }\n}\n","import { Controller} from \"stimulus\";\n\nexport default class extends Controller {\n static targets = ['select', 'field', 'input']\n\n connect() {\n this.toggleVisibility()\n }\n\n toggleVisibility() {\n if (this.selectTarget.value === 'Food Allergies (Free Text)') {\n this.fieldTarget.classList.remove('hide')\n }\n else {\n this.fieldTarget.classList.add('hide')\n this.inputTarget.value = ''\n\n const event = new Event('change');\n this.inputTarget.dispatchEvent(event);\n }\n }\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = ['requiredField', 'submitInput', 'internationalFields', 'roleSelect'];\n\n validate() {\n const requiredFieldsValues = this.requiredFieldTargets.map((element) => element.value)\n const hasEmptyValues = requiredFieldsValues.filter(element => !element).length > 0;\n\n this.setSubmitDisabled(hasEmptyValues);\n }\n\n setSubmitDisabled(value) {\n const disabledClassName = 'form-disabled'\n this.submitInputTarget.disabled = !!value;\n\n if (value) {\n return this.submitInputTarget.classList.add(disabledClassName)\n }\n\n this.submitInputTarget.classList.remove(disabledClassName)\n }\n\n toggleInternationalFields() {\n if (this.roleSelectTarget.options[this.roleSelectTarget.selectedIndex].text === 'International') {\n this.internationalFieldsTarget.classList.remove('hidden')\n }\n else {\n this.internationalFieldsTarget.classList.add('hidden')\n }\n }\n}\n","import {Controller} from \"stimulus\";\n\nexport default class extends Controller {\n static values = {\n trigger: String,\n event: String,\n currency: String,\n itemId: String,\n itemName: String,\n itemBrand: String,\n itemCategory: String,\n price: Number,\n quantity: Number,\n transactionId: String,\n value: Number,\n tax: Number,\n shipping: Number,\n coupon: String,\n customerId: String,\n discount: Number\n }\n\n connect() {\n const trigger = this.triggerValue;\n\n if (trigger === \"pageload\") {\n this.pushToDataLayer();\n } else if (trigger === \"click\") {\n this.element.addEventListener(\"click\", (event) => {\n event.preventDefault();\n\n const addToCartEvent = this.element.dataset.ga4EcommerceEventValue === 'add_to_cart';\n const form = this.element.closest('form');\n let quantityInput = 0;\n if (form) {\n quantityInput = form.querySelector('.qa-quantity input');\n } else {\n quantityInput = this.element.dataset.ga4EcommerceQuantityValue;\n }\n\n if (addToCartEvent) {\n this.quantityValue = quantityInput.value;\n this.pushToDataLayer();\n } else {\n this.pushToDataLayer();\n }\n\n // Check if the form is an XHR form\n if (form && form.dataset.remote === \"true\") {\n // Allow the XHR request to proceed\n form.submit();\n } else if (form) {\n // Submit the form normally\n event.target.closest('form').submit();\n }\n });\n }\n\n if (this.element.dataset.ga4EcommerceEventValue === 'view_cart') {\n this.viewCart();\n }\n }\n\n pushToDataLayer() {\n\n const event = this.getValue('event');\n const currency = this.getValue('currency');\n const itemId = this.getValue('itemId');\n const itemName = this.getValue('itemName');\n const itemBrand = this.getValue('itemBrand');\n const itemCategory = this.getValue('itemCategory');\n const price = this.getValue('price');\n const quantity = this.getValue('quantity');\n const transactionId = this.getValue('transactionId');\n const value = this.getValue('value');\n const tax = this.getValue('tax');\n const shipping = this.getValue('shipping');\n const coupon = this.getValue('coupon');\n const customerId = this.getValue('customerId');\n const discount = this.getValue('discount');\n\n const ecommerceData = {\n currency: currency,\n customer_id: customerId,\n items: []\n };\n\n if (itemId || itemName || itemBrand || itemCategory || !isNaN(price) || !isNaN(quantity)) {\n ecommerceData.items.push({\n item_id: itemId,\n item_name: itemName,\n item_brand: itemBrand,\n item_category: itemCategory,\n price: !isNaN(price) ? price : undefined,\n quantity: !isNaN(quantity) ? quantity : undefined,\n discount: !isNaN(discount) ? discount : undefined\n });\n }\n\n if (transactionId) ecommerceData.transaction_id = transactionId;\n if (!isNaN(value)) ecommerceData.value = value;\n if (!isNaN(tax)) ecommerceData.tax = tax;\n if (!isNaN(shipping)) ecommerceData.shipping = shipping;\n if (coupon) ecommerceData.coupon = coupon;\n if (customerId) ecommerceData.customer_id = customerId;\n\n const dataLayerEvent = {\n event: event,\n ecommerce: ecommerceData\n };\n\n window.dataLayer.push({ ecommerce: null }); // Clear the ecommerce object\n window.dataLayer.push(dataLayerEvent);\n }\n\n viewCart() {\n const cartItems = JSON.parse(this.element.dataset.cartItems);\n const currency = this.getValue('currency');\n const value = this.getValue('value');\n const customerId = this.getValue('customerId');\n const shipping = this.getValue('shipping');\n\n const ecommerceData = {\n currency: currency,\n value: value,\n items: cartItems\n };\n\n if (customerId) ecommerceData.customer_id = customerId;\n if (!isNaN(shipping)) ecommerceData.shipping = shipping;\n\n const dataLayerEvent = {\n event: 'view_cart',\n ecommerce: ecommerceData\n };\n\n window.dataLayer = window.dataLayer || [];\n window.dataLayer.push(dataLayerEvent);\n }\n\n // Get explicit set value set. If not set, return undefined.\n // This is a workaround for Stimulus not supporting disabling of default values.\n // undefined values are not pushed to the dataLayer.\n getValue(key) {\n const hasKey = `has${key.charAt(0).toUpperCase() + key.slice(1)}Value`;\n const keyVal = `${key}Value`;\n\n return this[hasKey] ? this[keyVal] : undefined;\n }\n}\n","import { Controller } from 'stimulus'\n\nexport default class extends Controller {\n static targets = ['container']\n\n call(_event) {\n if (this.hasContainerTarget) this.containerTarget.classList.add('hidden')\n }\n}\n","import { Controller } from 'stimulus'\n\nexport default class extends Controller {\n static targets = ['input', 'output', 'preview']\n\n attachImage(element) {\n this.element.querySelector('#user_profile_pic').click()\n }\n\n disconnect() {\n this.element.remove()\n }\n\n readURL() {\n let input = this.inputTarget\n let output = this.outputTarget\n let preview = this.previewTarget\n $(preview).addClass('hidden')\n $(output).removeClass('hidden')\n if (input.files && input.files[0]) {\n var reader = new FileReader()\n reader.onload = function () {\n output.src = reader.result\n }\n reader.readAsDataURL(input.files[0])\n }\n }\n}\n","// Load all the controllers within this directory and all subdirectories.\n// Controller files must be named *_controller.js.\n\nimport { Application } from \"stimulus\"\nimport { definitionsFromContext } from \"stimulus/webpack-helpers\"\n\nconst application = Application.start()\nconst context = require.context(\"controllers\", true, /_controller\\.js$/)\napplication.load(definitionsFromContext(context))\n\nimport { Alert, Modal } from \"tailwindcss-stimulus-components\"\napplication.register('alert', Alert)\napplication.register('modal', Modal)\n","import { Modal } from 'tailwindcss-stimulus-components'\n\nexport default class extends Modal {\n static targets = ['container']\n static values = { url: String }\n\n connect() {\n this.bioCard = this.element.closest('.card')\n super.connect()\n }\n\n open(e) {\n super.open(e)\n this.removeZoomOncard()\n this.setContent()\n }\n\n close(e) {\n super.close(e)\n this.addZoomOncard()\n }\n\n removeZoomOncard() {\n if (this.hasBioCard()) this.bioCard.classList.add('card--no-zoom')\n }\n\n addZoomOncard() {\n if (this.hasBioCard()) this.bioCard.classList.remove('card--no-zoom')\n }\n\n hasBioCard() {\n return this.bioCard != null\n }\n\n async setContent(event) {\n if (this.hasUrlValue) this.fetchContent()\n }\n\n async fetchContent() {\n if (this.hasContainerTarget) {\n this.containerTarget.firstElementChild.innerHTML = this.setLoader()\n const response = await fetch(this.urlValue)\n const responseHTML = await response.text()\n\n this.containerTarget.firstElementChild.innerHTML = responseHTML\n\n let scriptElement = document.createElement('script')\n scriptElement.src = \"https://secure.ewaypayments.com/scripts/eCrypt.min.js\"\n\n this.containerTarget.firstElementChild.appendChild(scriptElement)\n }\n }\n\n setLoader() {\n return `
`\n }\n}\n","import { Controller } from 'stimulus'\n\nexport default class extends Controller {\n static targets = [\n 'addButton',\n 'confirmDelete',\n 'cancelDelete',\n 'modalityToDelete',\n ]\n\n async addModality(event) {\n await this.fetchModality(event.currentTarget.dataset.src)\n this.checkModalityButton()\n }\n\n connect() {\n this.checkModalityButton()\n }\n\n deleteModality(event) {\n if (this.hasConfirmDeleteTarget && this.hasCancelDeleteTarget) {\n const confirmContainer = this.element.querySelector(\n '.confirm-delete-modality'\n )\n if (this.confirmDeleteTarget == event.currentTarget) {\n this.modalityToDeleteTarget.remove()\n confirmContainer.classList.add('hidden')\n this.checkModalityButton()\n } else if (this.cancelDeleteTarget == event.currentTarget) {\n confirmContainer.classList.add('hidden')\n } else if (confirmContainer.classList.contains('hidden')) {\n confirmContainer.classList.remove('hidden')\n event.currentTarget.parentElement.dataset.modalitiesTarget =\n 'modalityToDelete'\n }\n } else {\n event.currentTarget.parentElement.remove()\n this.checkModalityButton()\n }\n }\n\n async fetchModality(src) {\n const response = await fetch(src)\n const responseHTML = await response.text()\n\n this.element.querySelector('.modality').innerHTML += responseHTML\n }\n\n checkModalityButton() {\n if (this.hasAddButtonTarget) {\n const numberOfModalities = this.addButtonTargets.length\n if (numberOfModalities > 2) {\n this.addButtonTargets.forEach((addButton) => {\n addButton.disabled = true\n })\n } else if (numberOfModalities > 1) {\n this.addButtonTargets[0].disabled = true\n this.addButtonTargets[1].disabled = false\n } else {\n this.addButtonTarget.disabled = false\n }\n }\n }\n}\n","import { Controller } from 'stimulus'\n\nexport default class extends Controller {\n static targets = ['wrapper', 'slide', 'leftControl', 'rightControl']\n\n connect() {\n this.wrapperTarget.addEventListener('keydown', preventKeyBoardScroll)\n this.wrapperTarget.addEventListener('wheel', preventScroll)\n this.wrapperTarget.addEventListener('touchmove', preventScroll)\n this.wrapperTarget.addEventListener('touchstart', this.setScroll)\n this.wrapperTarget.addEventListener('touchend', this.scrollOnTouch)\n this.wrapperTarget.addEventListener('scroll', this.Onscroll)\n this.setSwiper()\n }\n\n setScroll = (event) => (this.scrollPosition = event.touches[0].clientX)\n\n scrollOnTouch = (event) => {\n const newPosition = event.changedTouches[0].clientX\n if (this.scrollPosition > newPosition) this.scrollRight()\n\n if (this.scrollPosition < newPosition) this.scrollLeft()\n }\n\n scrollLeft(_event) {\n this.scroll({ left: true })\n }\n\n scrollRight(_event) {\n this.scroll({ right: true })\n }\n\n scroll({ left, right }) {\n if (this.clientWidth < this.scrolltWidth) {\n const gapSlide = this.slideWidth + this.calcGap()\n\n if (left) {\n this.wrapperTarget.scroll({\n left: this.wrapperScroll - gapSlide,\n behavior: 'smooth',\n })\n }\n if (right) {\n this.wrapperTarget.scroll({\n left: this.wrapperScroll + gapSlide,\n behavior: 'smooth',\n })\n }\n }\n }\n\n Onscroll = (_event) => {\n window.clearTimeout(this.isScrolling)\n\n this.isScrolling = setTimeout(() => {\n this.setSwiper(null, false)\n }, 66)\n }\n\n updateControllers() {\n if (this.clientWidth < this.scrolltWidth) {\n this.rightControlTarget.classList.remove('hidden')\n this.leftControlTarget.classList.remove('hidden')\n this.adjustWrapper()\n\n if (this.wrapperScroll == 0) {\n this.leftControlTarget.classList.add(...this.disabledClasses())\n } else {\n this.leftControlTarget.classList.remove(...this.disabledClasses())\n }\n if (this.clientWidth + this.wrapperScroll >= this.scrolltWidth) {\n this.rightControlTarget.classList.add(...this.disabledClasses())\n } else {\n this.rightControlTarget.classList.remove(...this.disabledClasses())\n }\n } else {\n this.rightControlTarget.classList.add('hidden')\n this.leftControlTarget.classList.add('hidden')\n }\n }\n\n setSwiper = (_event, resetWidth = true) => {\n if (resetWidth) this.wrapperTarget.style.width = ''\n\n this.clientWidth = this.wrapperTarget.clientWidth\n this.scrolltWidth = this.wrapperTarget.scrollWidth\n this.slideWidth = this.slideTarget.clientWidth\n this.wrapperScroll = this.wrapperTarget.scrollLeft\n\n this.updateControllers()\n }\n\n adjustWrapper() {\n const leftIconWidth = parseFloat(\n window.getComputedStyle(this.leftControlTarget).getPropertyValue('width')\n )\n const rightIconWidth = parseFloat(\n window.getComputedStyle(this.rightControlTarget).getPropertyValue('width')\n )\n const gap = this.calcGap()\n const slidesCount = this.slideTargets.length\n const gapCount = slidesCount - 1\n\n const wrapperWidth = this.element.clientWidth - leftIconWidth - rightIconWidth\n\n const gapSlide = this.slideWidth + gap\n\n const countSlidesAllowed = Math.floor(wrapperWidth / gapSlide)\n\n const newWrapperWidth =\n countSlidesAllowed == 0 ? gapSlide : countSlidesAllowed * gapSlide\n\n this.wrapperTarget.style.width = `${newWrapperWidth}px`\n }\n\n disabledClasses() {\n return ['pointer-events-none', 'text-gray-50', 'cursor-default']\n }\n\n calcGap() {\n const firstSlide = this.slideTarget.offsetLeft\n const secondSlide = this.slideTargets[1].offsetLeft\n\n return secondSlide ? secondSlide - (firstSlide + this.slideWidth) : 0\n }\n}\n\nconst preventKeyBoardScroll = (event) => {\n var keys = [32, 33, 34, 35, 37, 38, 39, 40]\n if (keys.includes(event.keyCode)) {\n event.preventDefault()\n return false\n }\n}\n\nconst preventScroll = (event) => {\n event.preventDefault()\n event.stopPropagation()\n\n return false\n}\n","import { Controller } from 'stimulus'\nimport { useClickOutside } from 'stimulus-use'\n\nexport default class extends Controller {\n static targets = ['dropdown']\n\n connect() {\n if (!this.hasDropdownTarget) return\n\n useClickOutside(this, { element: this.dropdownTarget })\n }\n\n clickOutside(event) {\n if (event.target.id !== 'mega-menu' && !Array.from(event.target.classList).some(\n klass => ['menu-link', 'mega-menu', 'mega-menu-link', 'mega-menu-arrow'].includes(klass))\n ) {\n const divList = document.querySelectorAll('.mega-menu');\n\n divList.forEach(div => {\n if(!div.classList.contains('hidden')) {\n div.classList.add('hidden')\n }\n })\n }\n }\n\n removeDisplay(event) {\n if (this.hasDropdownTarget) {\n const currentContainer = event.currentTarget.closest(\n \"[data-one-dropdown-target='dropdownContainer']\"\n )\n const currentDropdown = currentContainer.querySelector(\n \"[data-one-dropdown-target='dropdown']\"\n )\n\n this.dropdownTargets.forEach((target) => {\n if (target !== currentDropdown) {\n target.classList.add('hidden')\n } else {\n target.classList.remove('hidden')\n }\n })\n }\n }\n}\n","import { Controller } from 'stimulus'\n\nexport default class extends Controller {\n static targets = [\n \"submit\", \"password\", \"passwordConfirmation\", \"passwordLengthIcon\", \"nonNumericPresenceIcon\", \"numberPresenceIcon\",\n \"specialCharacterPresenceIcon\", \"passwordMatchIcon\", \"acknowledge\"\n ]\n\n toggleEditPassword() {\n if (\n (!this.hasAcknowledgeTarget && this.passwordTarget.value.length === 0) ||\n ((!this.hasAcknowledgeTarget || this.acknowledgeTarget.checked) &&\n this.validatesLength() &&\n this.validatesNonNumericPresence() &&\n this.validatesNumberPresence() &&\n this.validatesSpecialCharacterPresence() &&\n this.validatesMatchingPasswords())\n ) {\n this.submitTarget.removeAttribute('disabled')\n }\n else {\n this.submitTarget.setAttribute('disabled', true)\n }\n }\n\n validates() {\n this.setIcon(this.validatesLength(), this.passwordLengthIconTarget)\n this.setIcon(this.validatesNonNumericPresence(), this.nonNumericPresenceIconTarget)\n this.setIcon(this.validatesNumberPresence(), this.numberPresenceIconTarget)\n this.setIcon(this.validatesSpecialCharacterPresence(), this.specialCharacterPresenceIconTarget)\n this.setIcon(this.validatesMatchingPasswords(), this.passwordMatchIconTarget)\n }\n\n validatesLength() {\n return this.passwordTarget.value.length >= 10\n }\n\n validatesNonNumericPresence() {\n return /[a-zA-Z]/.test(this.passwordTarget.value)\n }\n\n validatesNumberPresence() {\n return /\\d/.test(this.passwordTarget.value)\n }\n\n validatesSpecialCharacterPresence() {\n const specialCharacters = /[!@#$%^&*()_+\\-=\\[\\]{};':\"\\\\|,.<>\\/?]+/\n\n return specialCharacters.test(this.passwordTarget.value)\n }\n\n validatesMatchingPasswords() {\n return this.passwordTarget.value.length > 0 && this.passwordTarget.value === this.passwordConfirmationTarget.value\n }\n\n setIcon(valid, target) {\n let icons = ['fa-circle-check', 'fa-circle-xmark']\n let classes = ['requirement-success', 'requirement-fails']\n\n if (!valid) {\n icons = icons.reverse()\n classes = classes.reverse()\n }\n\n target.classList.add(icons[0])\n target.classList.remove(icons[1])\n target.parentElement.classList.add(classes[0])\n target.parentElement.classList.remove(classes[1])\n }\n\n toggleVisibility(event) {\n event.stopImmediatePropagation()\n const icon = event.target;\n const input = icon.parentElement.previousElementSibling;\n\n if (input.type === 'password') {\n input.type = 'text'\n icon.classList.remove('fa-eye-slash')\n icon.classList.add('fa-eye')\n }\n else {\n input.type = 'password'\n icon.classList.remove('fa-eye')\n icon.classList.add('fa-eye-slash')\n }\n }\n}\n\n","import { Controller} from \"stimulus\";\n\nexport default class extends Controller {\n static targets = ['orderId']\n\n connect() {\n const queryString = window.location.search;\n const urlParams = new URLSearchParams(queryString);\n const accessCode = urlParams.get('AccessCode')\n const orderId = this.orderIdTarget.dataset['orderId']\n\n setTimeout(\n window.location.replace(`/carts/${orderId}/payments/process_order?AccessCode=${accessCode}`),\n 2000\n )\n }\n}\n","import PlacesAutocomplete from 'stimulus-places-autocomplete'\nimport { Loader } from '@googlemaps/js-api-loader'\n\nexport default class extends PlacesAutocomplete {\n static targets = super.targets.concat(['streetAddress', 'subpremise'])\n static values = { apiKey: String }\n\n // connect overridden to import the \"places\" library with @googlemaps/js-api-loader\n async connect() {\n if (!this.hasApiKeyValue) return\n\n const loader = new Loader({ apiKey: this.apiKeyValue, version: 'weekly' })\n this.Places = await loader.importLibrary('places')\n this.initAutocomplete()\n }\n\n setAddressComponents(address) {\n super.setAddressComponents(address)\n if (this.hasStreetAddressTarget)\n this.streetAddressTarget.value = this.setStreetAddress(address)\n if (this.hasSubpremiseTarget) this.subpremiseTarget.value = address.subpremise || ''\n }\n\n // set the Autocomplete options in this getter.\n get autocompleteOptions() {\n return {\n fields: ['address_components'],\n componentRestrictions: {\n country: this.countryValue,\n },\n }\n }\n\n // initAutocomplete is overridden so it uses the imported \"places\" library\n initAutocomplete() {\n if (!this.hasAddressTarget) return\n\n this.autocomplete = new this.Places.Autocomplete(\n this.addressTarget,\n this.autocompleteOptions\n )\n this.autocomplete.addListener('place_changed', this.placeChanged)\n }\n\n formatAddressComponents(addressComponents) {\n const data = {}\n\n addressComponents.forEach((component) => {\n const type = component.types[0]\n\n data[type] = type == 'country' ? component.short_name : component.long_name\n })\n\n return data\n }\n\n setStreetAddress(address) {\n if (!address.street_number) {\n return address.route || ''\n } else {\n return `${address.street_number} ${address.route}`\n }\n }\n}\n","import { Controller } from 'stimulus'\n\nexport default class extends Controller {\n static targets = ['input', 'option']\n\n toggleItem(event) {\n if (isChecked(event.currentTarget)) {\n this.deselectItem(event)\n } else {\n this.selectItem(event)\n }\n }\n\n selectItem(event) {\n if (this.hasInputTarget) {\n const item = event.currentTarget\n\n this.optionTargets.forEach((option) => removeSelectionAffordance(option))\n addSelection(item, this.inputTarget)\n }\n }\n\n deselectItem(event) {\n if (this.hasInputTarget) {\n const item = event.currentTarget\n\n removeSelection(item, this.inputTarget)\n }\n }\n}\n\nconst addSelection = (item, inputTarget) => {\n inputTarget.value = item.dataset.value\n item.classList.add('checked')\n}\nconst isChecked = (element) => element.classList.contains('checked')\n\nconst removeSelection = (item, inputTarget) => {\n inputTarget.value = ''\n item.classList.remove('checked')\n}\n\nconst removeSelectionAffordance = (item) => {\n item.classList.remove('checked')\n}\n","import { Controller } from \"stimulus\"\nimport { useClickOutside } from 'stimulus-use'\n\nexport default class extends Controller {\n static targets = [ 'form', 'content', 'input', 'result', 'loading' ]\n\n connect() {\n useClickOutside(this)\n }\n\n clickOutside(event) {\n if (event.target.id !== 'show_all_link') {\n this.closeSearch()\n }\n }\n\n async search(ev) {\n ev.preventDefault()\n\n if (ev.key === 'Enter') {\n let path = this.getUrl(ev.target.value, true)\n\n if (ev.target.parentElement.dataset.searchId !== undefined) {\n path += `&search_id=${ev.target.parentElement.dataset.searchId}`\n }\n\n window.location.href = path\n }\n else {\n if (ev.key === 'Escape') {\n return this.closeSearch(ev)\n }\n\n this.contentTarget.innerHTML = this.getLoadingHTML()\n\n clearTimeout(this.contentTarget.dataset.timer)\n\n this.contentTarget.dataset.timer = setTimeout(() => {\n this.fetchSearch(ev.target.value)\n }, 500)\n }\n }\n\n async searchAll(ev) {\n ev.preventDefault()\n\n this.contentTarget.innerHTML = this.getLoadingHTML()\n\n await this.fetchSearch(this.inputTarget.value, true)\n }\n\n showSearchBox() {\n this.contentTarget.style.display = 'block'\n const body = document.getElementsByTagName(\"BODY\")[0];\n body.classList.add('dropdown-opened')\n\n this.contentTarget.innerHTML = this.getLoadingHTML()\n\n this.fetchSearch(this.inputTarget.value)\n }\n\n async fetchSearch(searchText = '', getAll = false) {\n const url = this.getUrl(searchText, getAll)\n\n const response = await fetch(url)\n\n const responseHTML = await response.text()\n if (response.url.includes('users/sign_in')) {\n window.location = response.url\n }\n\n this.contentTarget.innerHTML = responseHTML\n }\n\n closeSearch() {\n this.inputTarget.blur()\n\n this.contentTarget.style.display = 'none'\n\n this.contentTarget.innerHTML = \"\"\n\n const body = document.getElementsByTagName(\"BODY\")[0];\n body.classList.remove('dropdown-opened')\n }\n\n getLoadingHTML() {\n return `\n