{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./fleming/scripts/homeSlider.js","webpack:///./fleming/scripts/lib/modal.ts","webpack:///./fleming/scripts/lib/accordion.ts","webpack:///./fleming/assets/svg/accordion-arrow.svg","webpack:///./fleming/scripts/vacancies.js","webpack:///./fleming/scripts/embeddedVideo.js","webpack:///./fleming/scripts/toggleFIxedElements.js","webpack:///./fleming/scripts/awards.js","webpack:///./fleming/scripts/filters.js","webpack:///./fleming/scripts/helpers.js","webpack:///./fleming/scripts/modal.js","webpack:///./fleming/scripts/mobileMenu.js","webpack:///./fleming/scripts/searchBarFilter.js","webpack:///./fleming/scripts/menu.js","webpack:///./fleming/scripts/share.js","webpack:///./fleming/scripts/tabs.js","webpack:///./fleming/scripts/videoModals.js","webpack:///./fleming/scripts/lib/txtType.js","webpack:///./fleming/scripts/typewriter.js","webpack:///./fleming/scripts/form.js","webpack:///./fleming/scripts/ProgramTabs.js","webpack:///./fleming/scripts/testimonialFilter.js","webpack:///./fleming/scripts/accessibiltySettings.js","webpack:///./fleming/scripts/main.js","webpack:///./fleming/scripts/sliders/facultyList.js","webpack:///./fleming/scripts/sliders/genericCards.js","webpack:///./fleming/scripts/sliders/headerColumns.js","webpack:///./fleming/scripts/sliders/inverseBox.js","webpack:///./fleming/scripts/sliders/partnerShowcase.js","webpack:///./fleming/scripts/sliders/programmeShowcase.js","webpack:///./fleming/scripts/sliders/testimonials.js","webpack:///./fleming/scripts/sliders/offer.js","webpack:///./fleming/scripts/sliders/programmeSlider.js","webpack:///./fleming/scripts/sliders/imageGallery.js","webpack:///./fleming/scripts/sliders.js","webpack:///./fleming/scripts/index.js"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","4","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","bgTimer","KeyCodes","trigger","button","body","expanded","helper","this","setAttribute","hide","appendChild","document","createElement","innerHTML","firstChild","show","duration","clearInterval","timer","removeAttribute","setTimeout","toggle","isHidden","getAttribute","root","pairs","init","triggers","Array","from","querySelectorAll","filter","parentElement","singleElement","dataset","accordionSingle","accordionExpanded","forEach","addChild","target","accordionToggle","querySelector","getElementById","pair","hasAttribute","addEventListener","toggleChild","x","DOM","loadMore","startIndex","vacancyItems","showMoreBtn","fetch","then","res","json","vacancyList","html","remaining","classList","add","vacancies","swapToVideo","videoWrapper","thumbnail","firstElementChild","videoframe","videoId","createVideo","videoid","nextElementSibling","remove","handleSwap","e","embeddedVideo","element","bgCounter","slideToOption","option","slidesList","slide","backgroundList","bg","background","play","setInterval","nextSlide","activeElement","nextOpt","handleMousedown","contains","handleVideoEnd","slideVideo","homeBackground","children","homeSlider","video","mq","matchMedia","manageVideo","ev","currentSource","url","matches","src","mobileSrc","addListener","newOption","prevY","filteredAwards","activeFilterYear","FOCUSABLE_ELEMENTS","join","defaultOptions","disableFocus","disableScroll","awaitOpenAnimation","awaitCloseAnimation","openClasses","defaultInitOptions","modal","openTriggers","closeTriggers","options","isOpen","onKeydown","onClick","checkIntegrity","registerEvents","Modal","modals","initOptions","some","getOpen","find","showModal","closeModal","Boolean","event","preventDefault","stopImmediatePropagation","lastFocusedElement","openClass","scrollBehaviour","addEventListeners","removeEventListener","setFocusToFirstNode","currentTarget","onShow","removeEventListeners","indexOf","focus","onClose","keyCode","ESCAPE","TAB","retainFocus","focusableNodes","getFocusableNodes","node","offsetParent","focusedItemIndex","shiftKey","nodesWhichAreNotCloseTargets","assign","style","overflow","Error","mediaQuery","isFixedNav","isBottomBar","toggleFixedNav","nav","toggleBottomBar","homeBottomBar","toggleFixedElements","scrollPosition","banner","getBoundingClientRect","top","height","handleResize","fixedElements","toggleNavModal","createSelect","select","Select","optionBuilder","undefined","panelItem","position","item","className","changeOpenerText","multipleSelectionOnSingleClick","multipleSelectOpenerText","labels","array","allowPanelClick","openOnHover","closeOnMouseleave","wrapDataAttributes","openerLabel","handleChange","valor","location","href","filters","redrawAwardList","awardItems","year","showMore","handleFilterChange","filterYear","awardSelect","awardYear","handleShowMore","award","awards","awardsList","setCookie","days","Date","setTime","getTime","cookie","toGMTString","parseHTML","div","instance","toggleModal","navListItems","openMenuElement","openSTModal","evt","Id","id","replace","overlayStudentTestimonialModal","closeSTModal","studentTestimonialModals","createPopupModal","v","match","popup","popupModal","modalTimer","searchModal","formModal","callUsFormModal","openEnquireForm","openCallUsForm","extraModals","search","includes","modalTrigger","blmodalOpen","isScroll","scroll","inPageForm","createFormModal","createCallUsFormModal","showFilters","filterBox","display","filterButton","handleFilter","searchBarFilter","filterOptions","menuTemplate","helpers","liTemplate","drawMenu","list","frag","cloneNode","ul","li","a","textContent","u","func","limit","inThrottle","args","removeChild","removeLevels","wait","container","levels","handler","onMobileOpen","logo","onMobileClose","mm","backButton","JSON","parse","last","getInstance","menuQuery","changeBackground","level","levelIndex","arrayLevels","backgrounds","menuBg","removeHovers","links","link","openLevel","nextLevel","closeLevel","levelToClose","prevLevel","previousElementSibling","levelLinks","prevLevelLinks","nextLevelIndex","lvl","getList","listItem","listItemOption","listIndex","index","toggleMenu","firstList","firstLevel","courseTitle","navLinks","menuLevels","sidebarMenu","allMenuLinks","dropdownElements","listItemsSM","itemLink","childList","listToShow","listLinks","levelToOpen","levelToOpenLists","listElement","showList","handleToggleMenu","mobileModal","screenWidth","innerWidth","documentElement","clientWidth","status","mouseoverEvent","Event","dispatchEvent","PdataSet","divParent","mobileMenu","handleCloseLevel","elementMouseIsOver","elementFromPoint","clientX","clientY","hideMenuQuery","query","menu","handleClick","share","boxes","wrapper","tabGroup","activeTab","activeContent","tabs","Tabby","setup","killTabs","marginBottom","minHeight","scrollTo","pageYOffset","detail","tab","content","previousTab","open","fontFamily","tabBounds","parentBounds","contentBounds","titleHeight","bottom","tabMargin","parseInt","getComputedStyle","marginTop","heightDifference","distanceToParent","map","gmTriggers","blogModal","iframe","videoModal","self","_","youtubeId","videoSrc","TxtType","el","toRotate","period","loopNum","txt","tick","isDeleting","fullTxt","substring","delta","Math","random","type","bindEvents","form","inputs","input","closest","textareas","selectProgramme","formParent","observer","MutationObserver","mutations","mutation","addedNodes","selects","innerText","parent","observe","subtree","cacheDOM","tabTriggerBtn","currentTabData","tabTrigger","accItem","getElementsByClassName","accHD","toggleItem","itemClass","parentNode","accordionPabel","radioButtonGroup","buttonGroup","testimonialFilter","iso","isotope","itemSelector","layoutMode","filtersElem","filterValue","arrange","buttonGroups","len","activeElementsHistory","checkTabPress","openNavElement","firstLevelMenus","menuId","divmen","activeMenu","lastMenu","Last1stlevelMenu","tagName","toLocaleLowerCase","KeyboardEvent","bubbles","cancelable","click","validateFormAccessibility","indx","required","RemoveOutline","ctrl","accessibiltySettings","placeholder","trim","text","val","txtLabel","ariaLabel","hasClass","attr","has","removeAttr","alt","lnk","toLowerCase","icn","iconClass","role","tabIndex","console","log","elements","outline","SetupAccessibility","lazySizes","cfg","customMedia","bannerScroll","mainWrap","scrollIntoView","behavior","resizeTimer","resizing","sliderToggle","collapse","slideDown","slideUp","slideToggle","videoModals","typewriter","ProgramTabs","clearTimeout","passive","accordion","Accordion","filterContainer","sections","section","scrollToTopButton","visible","scrollY","adjustMargin","bannerHeight","immediate","timeout","context","later","callNow","debounce","hash","scrollTop","AOS","disable","once","anchorPlacement","autoplay","autoplayButtonOutput","controls","edgePadding","gutter","items","loop","mouseDrag","preventScrollOnTouch","rewind","slideBy","speed","swipeAngle","responsive","376","576","tns","size","controlsContainer","floor","768","998","1200","center","autoplayTimeout","992","childCount","childElementCount","min","navContainer","programmeSliders","slider","track","navTrack","primarySlider","programmeControls","events","on","goTo","1024","facultyList","genericCards","headerColumns","inverseBox","partnerShowcase","programmeShowcase","testimonials","offer","programmeSlider","imageGallery"],"mappings":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Y/iB,OACZgjB,GAAahjB,OACbijB,GAAcjjB,OACdkjB,GAAWljB,OACXmjB,GAAgBnjB,OAChBojB,GAAkBpjB,OAClBqjB,GAAarjB,OACbsjB,GAAMtjB,OACNujB,GAAgBvjB,OAChBwjB,GAAaxjB,UCjBjByd,QAAQC,IAAI","file":"main.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t4: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/dist/\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([141,0,1]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","const DOM = {};\r\nlet bgCounter = 1;\r\nlet bgTimer;\r\n\r\nconst cacheDOM = () => {\r\n DOM.homeSlider = document.querySelector('.banner__bg-slider');\r\n DOM.homeBackground = document.querySelector('.banner__background');\r\n DOM.backgroundList = document.querySelectorAll('.banner__bg-image');\r\n DOM.slidesList = document.querySelectorAll('.banner__bg-option');\r\n DOM.slideVideo = document.querySelector('.banner__bg-image video');\r\n};\r\n\r\nconst slideToOption = (option) => {\r\n DOM.slidesList.forEach((slide) => {\r\n slide.classList.remove('banner__bg-option--active');\r\n });\r\n\r\n DOM.backgroundList.forEach((bg) => {\r\n bg.classList.remove('banner__bg-image--active');\r\n if (option.dataset.slide === bg.dataset.background) {\r\n bg.classList.add('banner__bg-image--active');\r\n clearInterval(bgTimer);\r\n if (!bg.firstElementChild) {\r\n bgTimer = setInterval(nextSlide, 5000);\r\n } else {\r\n bg.firstElementChild.play();\r\n }\r\n }\r\n });\r\n option.classList.add('banner__bg-option--active');\r\n};\r\n\r\nconst nextSlide = () => {\r\n const activeElement = document.querySelector('.banner__bg-option--active');\r\n const nextOpt =\r\n activeElement.nextElementSibling != null\r\n ? activeElement.nextElementSibling\r\n : activeElement.parentElement.firstElementChild;\r\n\r\n slideToOption(nextOpt);\r\n};\r\n\r\nconst handleMousedown = (e) => {\r\n if (e.target.classList.contains('banner__bg-option')) {\r\n slideToOption(e.target);\r\n }\r\n};\r\n\r\nconst handleVideoEnd = () => {\r\n const videoContainer = DOM.slideVideo.parentElement;\r\n if (videoContainer.classList.contains('banner__bg-image--active')) {\r\n if (DOM.homeBackground.children.length > 1) {\r\n nextSlide();\r\n } else {\r\n DOM.slideVideo.play();\r\n }\r\n }\r\n};\r\n\r\nconst bindEvents = () => {\r\n DOM.homeSlider.addEventListener('mousedown', handleMousedown);\r\n if (DOM.slideVideo) {\r\n DOM.slideVideo.addEventListener('ended', handleVideoEnd);\r\n }\r\n};\r\n\r\nconst init = () => {\r\n cacheDOM();\r\n\r\n // Lazyload and add breakpoints to videos\r\n const video = document.querySelector('video[data-src][data-mobile-src]');\r\n if (video) {\r\n const mq = window.matchMedia('(min-width: 768px)');\r\n\r\n const manageVideo = (ev) => {\r\n const currentSource = video.getAttribute('src');\r\n const url = ev.matches\r\n ? video.dataset.src\r\n : video.dataset.mobileSrc;\r\n\r\n if (currentSource !== url) {\r\n video.setAttribute('src', url);\r\n video.play();\r\n }\r\n };\r\n\r\n mq.addListener(manageVideo);\r\n manageVideo(mq);\r\n }\r\n\r\n if (DOM.homeSlider && DOM.backgroundList.length > 1) {\r\n DOM.backgroundList.forEach(() => {\r\n const newOption = document.createElement('div');\r\n newOption.classList.add('banner__bg-option');\r\n newOption.dataset.slide = bgCounter;\r\n\r\n if (bgCounter === 1) {\r\n newOption.classList.add('banner__bg-option--active');\r\n }\r\n\r\n DOM.homeSlider.appendChild(newOption);\r\n DOM.slidesList = document.querySelectorAll('.banner__bg-option');\r\n bgCounter += 1;\r\n });\r\n\r\n bgTimer = setInterval(nextSlide, 5000);\r\n bindEvents();\r\n if (\r\n DOM.slideVideo &&\r\n DOM.homeBackground.firstElementChild.firstElementChild ===\r\n DOM.slideVideo\r\n ) {\r\n DOM.slideVideo.play();\r\n }\r\n } else if (DOM.backgroundList.length === 1 && DOM.slideVideo) {\r\n DOM.slideVideo.play();\r\n DOM.slideVideo.addEventListener('ended', handleVideoEnd);\r\n }\r\n};\r\n\r\nconst homeSlider = { init };\r\nexport default homeSlider;\r\n","enum KeyCodes {\r\n TAB = 9,\r\n ENTER = 13,\r\n ESCAPE = 27,\r\n SPACE = 32,\r\n LEFT_ARROW = 37,\r\n UP_ARROW = 38,\r\n RIGHT_ARROW = 39,\r\n DOWN_ARROW = 40,\r\n}\r\n\r\nconst FOCUSABLE_ELEMENTS = [\r\n 'a[href]',\r\n 'area[href]',\r\n 'input:not([disabled]):not([type=\"hidden\"]):not([aria-hidden])',\r\n 'select:not([disabled]):not([aria-hidden])',\r\n 'textarea:not([disabled]):not([aria-hidden])',\r\n 'button:not([disabled]):not([aria-hidden])',\r\n 'iframe',\r\n 'object',\r\n 'embed',\r\n '[contenteditable]',\r\n '[tabindex]:not([tabindex^=\"-\"])',\r\n].join(', ');\r\n\r\nexport type ModalOptions = {\r\n disableFocus?: Boolean;\r\n disableScroll?: Boolean;\r\n awaitOpenAnimation?: Boolean;\r\n awaitCloseAnimation?: Boolean;\r\n openClasses?: string[];\r\n onShow?: (modal: HTMLElement, trigger: HTMLElement, event: Event) => void;\r\n onClose?: (modal: HTMLElement, trigger: HTMLElement, event: Event) => void;\r\n};\r\n\r\nexport type ModalInitOptions = {\r\n modal: HTMLElement;\r\n openTriggers: HTMLElement[] | string;\r\n closeTriggers: HTMLElement[] | string;\r\n} & ModalOptions;\r\n\r\nconst defaultOptions: ModalOptions = {\r\n disableFocus: false,\r\n disableScroll: false,\r\n awaitOpenAnimation: false,\r\n awaitCloseAnimation: false,\r\n openClasses: ['is-open'],\r\n};\r\n\r\nconst defaultInitOptions: ModalInitOptions = {\r\n ...defaultOptions,\r\n modal: null,\r\n openTriggers: 'data-modal-open',\r\n closeTriggers: 'data-modal-close',\r\n};\r\n\r\nexport class Modal {\r\n private static modals: Modal[] = [];\r\n\r\n private isOpen: boolean = false;\r\n private lastFocusedElement: HTMLElement;\r\n\r\n private constructor(\r\n private modal: HTMLElement,\r\n private openTriggers: HTMLElement[],\r\n private closeTriggers: HTMLElement[],\r\n private options: ModalOptions = defaultOptions\r\n ) {\r\n this.onKeydown = this.onKeydown.bind(this);\r\n this.onClick = this.onClick.bind(this);\r\n this.openTriggers = [...this.openTriggers];\r\n this.closeTriggers = [...this.closeTriggers];\r\n\r\n this.checkIntegrity();\r\n this.registerEvents();\r\n\r\n Modal.modals = [...Modal.modals, this];\r\n }\r\n\r\n /**\r\n * Creates a Modal instance\r\n *\r\n * @static\r\n * @param {ModalInitOptions}\r\n * @returns {Modal}\r\n * @memberof Modal\r\n */\r\n public static init(initOptions: ModalInitOptions): Modal {\r\n initOptions = { ...defaultInitOptions, ...initOptions };\r\n\r\n const { modal, openTriggers, closeTriggers, ...options } = initOptions;\r\n\r\n const openers =\r\n typeof openTriggers == 'string'\r\n ? Array.from(\r\n document.querySelectorAll(openTriggers)\r\n )\r\n : openTriggers;\r\n\r\n const closers =\r\n typeof closeTriggers == 'string'\r\n ? Array.from(\r\n document.querySelectorAll(closeTriggers)\r\n )\r\n : closeTriggers;\r\n\r\n return new Modal(modal, openers, closers, options);\r\n }\r\n\r\n /**\r\n * Checks if any Modals are open. If no Modals are given, all existing Modals will be checked.\r\n *\r\n * @static\r\n * @param {...Modal[]} modals\r\n * @memberof Modal\r\n */\r\n public static isOpen(...modals: Modal[]) {\r\n if (modals.length) return modals.some((modal) => modal.isOpen);\r\n\r\n return !!Modal.getOpen();\r\n }\r\n\r\n /**\r\n * Get the currently open Modal\r\n *\r\n * @static\r\n * @returns\r\n * @memberof Modal\r\n */\r\n public static getOpen() {\r\n return Modal.modals.find((modal) => modal.isOpen);\r\n }\r\n\r\n /**\r\n * Shows the modal\r\n *\r\n * @memberof Modal\r\n */\r\n public show() {\r\n this.showModal();\r\n }\r\n\r\n /**\r\n * Hides the modal\r\n *\r\n * @memberof Modal\r\n */\r\n public hide() {\r\n this.closeModal();\r\n }\r\n\r\n /**\r\n * Loops through all triggers and binds click event\r\n * @return {void}\r\n */\r\n private registerEvents() {\r\n this.openTriggers.filter(Boolean).forEach((trigger) => {\r\n trigger.addEventListener('click', (event) => {\r\n if (this.isOpen) return;\r\n\r\n event.preventDefault();\r\n this.showModal(event);\r\n });\r\n });\r\n\r\n this.closeTriggers.filter(Boolean).forEach((trigger) => {\r\n trigger.addEventListener('click', (event) => {\r\n if (!this.isOpen) return;\r\n\r\n event.preventDefault();\r\n event.stopImmediatePropagation();\r\n this.closeModal(event);\r\n });\r\n });\r\n }\r\n\r\n private showModal(event: Event = null) {\r\n if (this.isOpen) return;\r\n this.isOpen = true;\r\n\r\n this.lastFocusedElement = document.activeElement as HTMLElement;\r\n this.modal.setAttribute('aria-hidden', 'false');\r\n this.options.openClasses.forEach((openClass) =>\r\n this.modal.classList.add(openClass)\r\n );\r\n this.scrollBehaviour('disable');\r\n this.addEventListeners();\r\n\r\n if (this.options.awaitOpenAnimation) {\r\n const handler = () => {\r\n this.modal.removeEventListener('animationend', handler, false);\r\n this.setFocusToFirstNode();\r\n };\r\n this.modal.addEventListener('animationend', handler, false);\r\n } else {\r\n this.setFocusToFirstNode();\r\n }\r\n\r\n const trigger = event?.currentTarget as HTMLElement;\r\n\r\n if (this.options.onShow)\r\n this.options.onShow(this.modal, trigger, event);\r\n }\r\n\r\n private addEventListeners() {\r\n this.modal.addEventListener('touchstart', this.onClick);\r\n this.modal.addEventListener('click', this.onClick);\r\n document.addEventListener('keydown', this.onKeydown);\r\n }\r\n\r\n private removeEventListeners() {\r\n this.modal.removeEventListener('touchstart', this.onClick);\r\n this.modal.removeEventListener('click', this.onClick);\r\n document.removeEventListener('keydown', this.onKeydown);\r\n }\r\n\r\n private onClick(event) {\r\n if (this.closeTriggers.indexOf(event.target) > -1) {\r\n this.closeModal(event);\r\n }\r\n }\r\n\r\n private closeModal(event: Event = null) {\r\n if (!this.isOpen) return;\r\n this.isOpen = false;\r\n\r\n this.modal.setAttribute('aria-hidden', 'true');\r\n this.removeEventListeners();\r\n this.scrollBehaviour('enable');\r\n if (this.lastFocusedElement && this.lastFocusedElement.focus) {\r\n this.lastFocusedElement.focus();\r\n }\r\n\r\n if (this.options.awaitCloseAnimation) {\r\n const handler = () => {\r\n // Check if we're no longer closed\r\n if (this.modal.getAttribute('aria-hidden') === 'false') return;\r\n\r\n this.options.openClasses.forEach((openClass) =>\r\n this.modal.classList.remove(openClass)\r\n );\r\n this.modal.removeEventListener('animationend', handler, false);\r\n };\r\n\r\n this.modal.addEventListener('animationend', handler, false);\r\n } else {\r\n this.options.openClasses.forEach((openClass) =>\r\n this.modal.classList.remove(openClass)\r\n );\r\n }\r\n\r\n const trigger = event?.currentTarget as HTMLElement;\r\n if (this.options.onClose)\r\n this.options.onClose(this.modal, trigger, event);\r\n }\r\n\r\n private onKeydown(event) {\r\n const { keyCode } = event;\r\n\r\n if (keyCode == KeyCodes.ESCAPE) this.closeModal(event);\r\n else if (keyCode == KeyCodes.TAB) this.retainFocus(event);\r\n }\r\n\r\n private retainFocus(event) {\r\n let focusableNodes = this.getFocusableNodes();\r\n\r\n // no focusable nodes\r\n if (focusableNodes.length === 0) return;\r\n\r\n /**\r\n * Filters nodes which are hidden to prevent\r\n * focus leak outside modal\r\n */\r\n focusableNodes = focusableNodes.filter((node) => {\r\n return node.offsetParent !== null;\r\n });\r\n\r\n // if disableFocus is true\r\n if (!this.modal.contains(document.activeElement)) {\r\n focusableNodes[0].focus();\r\n } else {\r\n const focusedItemIndex = focusableNodes.indexOf(\r\n document.activeElement as HTMLElement\r\n );\r\n\r\n if (event.shiftKey && focusedItemIndex === 0) {\r\n focusableNodes[focusableNodes.length - 1].focus();\r\n event.preventDefault();\r\n }\r\n\r\n if (\r\n !event.shiftKey &&\r\n focusableNodes.length > 0 &&\r\n focusedItemIndex === focusableNodes.length - 1\r\n ) {\r\n focusableNodes[0].focus();\r\n event.preventDefault();\r\n }\r\n }\r\n }\r\n\r\n private getFocusableNodes() {\r\n return Array.from(\r\n this.modal.querySelectorAll(FOCUSABLE_ELEMENTS)\r\n );\r\n }\r\n\r\n /**\r\n * Tries to set focus on a node which is not a close trigger\r\n * if no other nodes exist then focuses on first close trigger\r\n */\r\n private setFocusToFirstNode() {\r\n if (this.options.disableFocus) return;\r\n\r\n const focusableNodes = this.getFocusableNodes();\r\n\r\n // No focusable nodes\r\n if (focusableNodes.length === 0) return;\r\n\r\n // Remove nodes on whose click, the modal closes\r\n // could not think of a better name :(\r\n const nodesWhichAreNotCloseTargets = focusableNodes.filter(\r\n (node) => this.closeTriggers.indexOf(node) === -1\r\n );\r\n\r\n if (nodesWhichAreNotCloseTargets.length > 0)\r\n nodesWhichAreNotCloseTargets[0].focus();\r\n if (nodesWhichAreNotCloseTargets.length === 0)\r\n focusableNodes[0].focus();\r\n }\r\n\r\n private scrollBehaviour(toggle: 'enable' | 'disable') {\r\n if (!this.options.disableScroll) return;\r\n\r\n if (toggle === 'enable')\r\n Object.assign(document.body.style, { overflow: '' });\r\n else if (toggle === 'disable')\r\n Object.assign(document.body.style, { overflow: 'hidden' });\r\n }\r\n\r\n private checkIntegrity() {\r\n if (!this.modal) {\r\n throw new Error('Invalid parameter: modal');\r\n }\r\n\r\n // if (!this.openTriggers.length) {\r\n // throw new Error('Invalid parameter: openTriggers');\r\n // }\r\n\r\n // if (!this.closeTriggers.length) {\r\n // throw new Error('Invalid parameter: closeTriggers');\r\n // }\r\n }\r\n}\r\n","import { slideUp, slideDown } from 'es6-slide-up-down';\r\nimport svg from '!!raw-loader!../../assets/svg/accordion-arrow.svg';\r\n\r\nconst inlineSvg = () => {\r\n const helper = document.createElement('div');\r\n\r\n helper.innerHTML = svg;\r\n\r\n return helper.firstChild;\r\n};\r\n\r\nclass AccordionItem {\r\n private timer: number;\r\n\r\n constructor(\r\n public trigger: HTMLElement,\r\n public button: HTMLElement,\r\n public body: HTMLElement,\r\n expanded: Boolean = false\r\n ) {\r\n if (!expanded) this.hide(0);\r\n else this.button.setAttribute('aria-expanded', 'true');\r\n\r\n this.button.appendChild(inlineSvg());\r\n }\r\n\r\n show(duration = 300) {\r\n clearInterval(this.timer);\r\n this.button.setAttribute('aria-expanded', 'true');\r\n\r\n this.body.removeAttribute('hidden');\r\n slideDown(this.body, duration);\r\n }\r\n\r\n hide(duration = 300) {\r\n this.button.setAttribute('aria-expanded', 'false');\r\n\r\n if (duration !== 0) {\r\n slideUp(this.body, duration);\r\n this.timer = window.setTimeout(() => {\r\n this.body.setAttribute('hidden', '');\r\n }, duration);\r\n } else {\r\n this.body.setAttribute('hidden', '');\r\n }\r\n }\r\n\r\n toggle() {\r\n if (this.isHidden()) {\r\n this.show();\r\n } else {\r\n this.hide();\r\n }\r\n }\r\n\r\n isHidden() {\r\n return this.button.getAttribute('aria-expanded') === 'false';\r\n }\r\n}\r\n\r\nexport default class Accordion {\r\n private pairs: AccordionItem[] = [];\r\n private singleElement: Boolean;\r\n private expanded: Boolean;\r\n\r\n constructor(private root: HTMLElement) {\r\n this.init();\r\n }\r\n\r\n init() {\r\n const triggers = Array.from(\r\n this.root.querySelectorAll('[data-accordion-toggle]')\r\n ).filter((trigger) => trigger.parentElement == this.root);\r\n\r\n this.singleElement = this.root.dataset.accordionSingle === 'true';\r\n this.expanded = this.root.dataset.accordionExpanded === 'true';\r\n\r\n triggers.forEach((trigger: HTMLElement) => this.addChild(trigger));\r\n }\r\n\r\n addChild(trigger: HTMLElement) {\r\n const target = trigger.dataset.accordionToggle;\r\n const button = trigger.querySelector('button');\r\n const body = document.getElementById(target);\r\n\r\n if (!body || !button) return;\r\n\r\n const pair = new AccordionItem(\r\n trigger,\r\n button,\r\n body,\r\n this.expanded || trigger.hasAttribute('data-expanded')\r\n );\r\n\r\n this.pairs.push(pair);\r\n\r\n trigger.addEventListener('click', () => this.toggleChild(pair));\r\n }\r\n\r\n toggleChild(pair: AccordionItem) {\r\n if (pair.isHidden() && this.singleElement) {\r\n this.pairs\r\n .filter((x) => x !== pair)\r\n .forEach((x: AccordionItem) => {\r\n if (!x.isHidden()) x.hide();\r\n });\r\n }\r\n\r\n pair.toggle();\r\n }\r\n}\r\n","export default \"\\r\\n\\t\\r\\n\\t\\r\\n\\r\\n\";","const DOM = {};\r\n\r\nconst cacheDOM = () => {\r\n DOM.vacancies = document.querySelector('.vacancies');\r\n DOM.showMoreBtn = document.querySelector('.vacancies__button');\r\n DOM.vacancyList = document.querySelector('.vacancies__list');\r\n DOM.vacancyItems = document.querySelectorAll('.vacancies__item');\r\n};\r\n\r\nconst loadMore = () => {\r\n const startIndex = DOM.vacancyItems.length;\r\n\r\n DOM.showMoreBtn.setAttribute('disabled', 'true');\r\n\r\n fetch(`/umbraco/surface/loadmore/getvacancies?startIndex=${startIndex}`)\r\n .then((res) => res.json())\r\n .then((json) => {\r\n DOM.vacancyList.innerHTML += json.html;\r\n if (json.remaining === false) {\r\n DOM.showMoreBtn.classList.add('vacancies__button--inactive');\r\n }\r\n\r\n DOM.vacancyItems = document.querySelectorAll('.vacancies__item');\r\n DOM.showMoreBtn.removeAttribute('disabled');\r\n });\r\n};\r\n\r\nconst bindEvents = () => {\r\n DOM.showMoreBtn.addEventListener('click', loadMore);\r\n};\r\n\r\nconst init = () => {\r\n cacheDOM();\r\n if (DOM.vacancies) {\r\n bindEvents();\r\n }\r\n};\r\n\r\nconst vacancies = { init };\r\nexport default vacancies;\r\n","const DOM = {};\r\n\r\nconst cacheDOM = () => {\r\n DOM.embeddedVideo = document.querySelectorAll('.video-embed__wrapper');\r\n};\r\n\r\nconst createVideo = (videoId) => {\r\n const videoframe = document.createElement('iframe');\r\n videoframe.setAttribute(\r\n 'src',\r\n `https://www.youtube.com/embed/${videoId}?autoplay=1`\r\n );\r\n videoframe.setAttribute('allowfullscreen', '');\r\n videoframe.setAttribute('allow', 'autoplay');\r\n videoframe.classList.add('video-embed__videoframe');\r\n\r\n return videoframe;\r\n};\r\n\r\nconst swapToVideo = (videoWrapper) => {\r\n const thumbnail = videoWrapper.firstElementChild;\r\n const videoId = thumbnail.dataset.videoid;\r\n const videoframe = createVideo(videoId);\r\n\r\n thumbnail.nextElementSibling.remove();\r\n thumbnail.parentElement.appendChild(videoframe);\r\n thumbnail.remove();\r\n};\r\n\r\nconst handleSwap = (e) => {\r\n swapToVideo(e.target.parentElement);\r\n};\r\n\r\nconst bindEvents = () => {\r\n DOM.embeddedVideo.forEach((element) => {\r\n element.addEventListener('click', handleSwap);\r\n });\r\n};\r\n\r\nconst init = () => {\r\n cacheDOM();\r\n if (DOM.embeddedVideo) {\r\n bindEvents();\r\n }\r\n};\r\n\r\nconst embeddedVideo = { init };\r\nexport default embeddedVideo;\r\n","import { Modal } from './lib/modal.ts';\r\n\r\nconst DOM = {};\r\nconst mediaQuery = window.matchMedia('(max-width: 768px)');\r\nlet isFixedNav = false;\r\nlet isBottomBar = false;\r\nlet prevY;\r\n\r\nconst cacheDOM = () => {\r\n DOM.nav = document.querySelector('.nav');\r\n DOM.banner = document.querySelector('.banner');\r\n DOM.homeBottomBar = document.querySelector('.home-bottom-bar');\r\n};\r\n\r\nconst toggleFixedNav = () => {\r\n if (!isFixedNav) {\r\n DOM.nav.classList.add('nav--fixed');\r\n DOM.nav.classList.add('nav--opened');\r\n isFixedNav = true;\r\n } else {\r\n DOM.nav.classList.remove('nav--opened');\r\n DOM.nav.classList.add('nav--closed');\r\n setTimeout(() => {\r\n DOM.nav.classList.remove('nav--fixed');\r\n DOM.nav.classList.remove('nav--closed');\r\n }, 100);\r\n isFixedNav = false;\r\n }\r\n};\r\n\r\nconst toggleBottomBar = () => {\r\n if (!isBottomBar) {\r\n DOM.homeBottomBar.classList.add('home-bottom-bar--opened');\r\n isBottomBar = true;\r\n } else {\r\n DOM.homeBottomBar.classList.remove('home-bottom-bar--opened');\r\n isBottomBar = false;\r\n }\r\n};\r\n\r\nconst toggleFixedElements = () => {\r\n const scrollPosition = DOM.banner.getBoundingClientRect().top * -1;\r\n const bannerHeight = DOM.banner.getBoundingClientRect().height;\r\n const showPoint = bannerHeight * 0.75;\r\n\r\n if (scrollPosition > showPoint) {\r\n if (mediaQuery.matches) {\r\n if (!isFixedNav && prevY > scrollPosition) {\r\n toggleFixedNav();\r\n } else if (\r\n isFixedNav &&\r\n prevY < scrollPosition &&\r\n !Modal.isOpen()\r\n ) {\r\n toggleFixedNav();\r\n }\r\n if (!isBottomBar) {\r\n toggleBottomBar();\r\n }\r\n } else {\r\n if (!isFixedNav) {\r\n toggleFixedNav();\r\n }\r\n if (isBottomBar) {\r\n toggleBottomBar();\r\n }\r\n }\r\n } else {\r\n if (isFixedNav) {\r\n toggleFixedNav();\r\n }\r\n if (isBottomBar) {\r\n toggleBottomBar();\r\n }\r\n }\r\n\r\n prevY = scrollPosition;\r\n};\r\n\r\nconst toggleNavModal = () => {\r\n const scrollPosition = DOM.banner.getBoundingClientRect().top * -1;\r\n const showPoint = DOM.nav.getBoundingClientRect().height / 2;\r\n\r\n if (scrollPosition > showPoint && mediaQuery.matches) {\r\n if (\r\n !DOM.nav.classList.contains('nav--fixed') &&\r\n !DOM.nav.classList.contains('nav--opened')\r\n ) {\r\n DOM.nav.classList.add('nav--fixed');\r\n DOM.nav.classList.add('nav--opened');\r\n }\r\n }\r\n};\r\n\r\nconst handleResize = () => {\r\n toggleFixedElements();\r\n\r\n if (isBottomBar && !mediaQuery.matches) {\r\n toggleBottomBar();\r\n }\r\n};\r\n\r\nconst bindEvents = () => {\r\n document.addEventListener('scroll', toggleFixedElements);\r\n window.addEventListener('resize', handleResize);\r\n};\r\n\r\nconst init = () => {\r\n cacheDOM();\r\n if (DOM.nav && DOM.banner) {\r\n bindEvents();\r\n }\r\n};\r\n\r\nconst fixedElements = { init, toggleNavModal };\r\nexport default fixedElements;\r\n","import filters from './filters';\r\n\r\nconst DOM = {};\r\nlet filteredAwards;\r\nlet activeFilterYear;\r\n\r\nconst cacheDOM = () => {\r\n DOM.awardsList = document.querySelector('.awards__list');\r\n DOM.showMore = document.querySelector('.awards__more');\r\n DOM.awardItems = document.querySelectorAll('.awards__item');\r\n DOM.awardSelect = document.querySelector('.awards__select');\r\n};\r\n\r\nconst showButton = () => {\r\n filteredAwards\r\n .filter((award) => award.classList.contains('awards__item--hide'))\r\n .slice(0, 3)\r\n .forEach((award) => award.classList.remove('awards__item--hide'));\r\n\r\n if (\r\n !filteredAwards.some((x) => x.classList.contains('awards__item--hide'))\r\n ) {\r\n DOM.showMore.classList.remove('awards__more--active');\r\n }\r\n};\r\n\r\nconst redrawAwardList = () => {\r\n filteredAwards = [];\r\n\r\n DOM.awardItems.forEach((item) => {\r\n item.classList.add('awards__item--hide');\r\n if (\r\n item.dataset.year === activeFilterYear ||\r\n activeFilterYear === 'all'\r\n ) {\r\n filteredAwards.push(item);\r\n }\r\n });\r\n\r\n filteredAwards\r\n .slice(0, 9)\r\n .forEach((item) => item.classList.remove('awards__item--hide'));\r\n if (filteredAwards.length <= 9) {\r\n DOM.showMore.classList.remove('awards__more--active');\r\n } else {\r\n DOM.showMore.classList.add('awards__more--active');\r\n }\r\n};\r\n\r\nconst filterByYear = () => {\r\n const filterYear = DOM.awardSelect.value;\r\n activeFilterYear = filterYear;\r\n\r\n DOM.awardItems.forEach((item) => {\r\n const awardYear = item.dataset.year;\r\n item.classList.add('awards__item--hide');\r\n if (awardYear === filterYear || filterYear === 'all') {\r\n item.classList.remove('awards__item--hide');\r\n }\r\n });\r\n\r\n redrawAwardList();\r\n};\r\n\r\nconst handleFilterChange = (e) => {\r\n filterByYear(e.target.value);\r\n};\r\n\r\nconst handleShowMore = (e) => {\r\n e.preventDefault();\r\n showButton();\r\n};\r\n\r\nconst bindEvents = () => {\r\n DOM.showMore.addEventListener('click', handleShowMore);\r\n DOM.awardSelect.addEventListener('change', handleFilterChange);\r\n};\r\n\r\nconst init = () => {\r\n cacheDOM();\r\n\r\n if (DOM.awardsList && DOM.awardSelect) {\r\n filters.createSelect(DOM.awardSelect);\r\n activeFilterYear = 'all';\r\n redrawAwardList();\r\n bindEvents();\r\n }\r\n};\r\n\r\nconst awards = { init };\r\nexport default awards;\r\n","import Select from 'select-custom';\r\n\r\nconst DOM = {};\r\n\r\nconst cacheDOM = () => {\r\n DOM.select = document.querySelector('.filters__select');\r\n};\r\n\r\nconst createSelect = (select) => {\r\n const customSelect = new Select(select, {\r\n optionBuilder: undefined,\r\n panelItem: { position: '', item: '', className: '' },\r\n changeOpenerText: true,\r\n multipleSelectionOnSingleClick: true,\r\n multipleSelectOpenerText: { labels: false, array: false },\r\n allowPanelClick: false,\r\n openOnHover: false,\r\n closeOnMouseleave: false,\r\n wrapDataAttributes: false,\r\n openerLabel: false,\r\n });\r\n\r\n customSelect.init();\r\n};\r\n\r\nconst handleChange = (e) => {\r\n let url;\r\n const valor = e.target.value;\r\n const selectOptions = e.target.children;\r\n\r\n selectOptions.forEach((option) => {\r\n if (option.value === valor) {\r\n url = option.dataset.url;\r\n }\r\n });\r\n\r\n window.location.href = url;\r\n};\r\n\r\nconst bindEvents = () => {\r\n DOM.select.addEventListener('change', handleChange);\r\n};\r\n\r\nconst init = () => {\r\n cacheDOM();\r\n if (DOM.select) {\r\n createSelect(DOM.select);\r\n bindEvents();\r\n }\r\n};\r\n\r\nconst filters = { init, createSelect };\r\nexport default filters;\r\n","export function getWidth() {\r\n return (\r\n window.innerWidth ||\r\n document.documentElement.clientWidth ||\r\n document.body.clientWidth\r\n );\r\n}\r\n\r\nexport function getElementOver(e) {\r\n return document.elementFromPoint(e.clientX, e.clientY);\r\n}\r\n\r\nexport function getCookie(name) {\r\n const v = document.cookie.match(`(^|;) ?${name}=([^;]*)(;|$)`);\r\n return v ? v[2] : null;\r\n}\r\n\r\nexport function setCookie(name, value, days) {\r\n const d = new Date();\r\n d.setTime(d.getTime() + 24 * 60 * 60 * 1000 * days);\r\n document.cookie = `${name}=${value};path=/;expires=${d.toGMTString()}`;\r\n}\r\n\r\nexport function deleteCookie(name) {\r\n setCookie(name, '', -1);\r\n}\r\n\r\nexport function throttle(func, limit) {\r\n let inThrottle;\r\n\r\n return (...args) => {\r\n if (inThrottle) return;\r\n\r\n func.apply(this, args);\r\n inThrottle = true;\r\n setTimeout(() => {\r\n inThrottle = false;\r\n }, limit);\r\n };\r\n}\r\n\r\nexport function debounce(func, wait, immediate) {\r\n let timeout;\r\n return (...args) => {\r\n const context = this;\r\n const later = () => {\r\n timeout = null;\r\n if (!immediate) func.apply(context, args);\r\n };\r\n const callNow = immediate && !timeout;\r\n clearTimeout(timeout);\r\n timeout = setTimeout(later, wait);\r\n if (callNow) func.apply(context, args);\r\n };\r\n}\r\n\r\nexport function parseHTML(s) {\r\n const div = document.createElement('div');\r\n div.innerHTML = s;\r\n return div.firstElementChild;\r\n}\r\n","import fixedElements from './toggleFIxedElements';\r\nimport { setCookie, getCookie } from './helpers';\r\nimport { Modal } from './lib/modal.ts';\r\n\r\nconst DOM = {};\r\nconst POPUP_COOKIE = '___popupDismissed';\r\n\r\nconst cacheDOM = () => {\r\n DOM.searchModal = document.querySelector('#search-modal');\r\n DOM.formModal = document.querySelector('#form-modal');\r\n DOM.callUsFormModal = document.querySelector('#call-us-form-modal');\r\n DOM.nav = document.querySelector('.nav');\r\n DOM.navListItems = document.querySelectorAll('.nav__listItem');\r\n DOM.openMenuElement = document.querySelector('.nav__link--open-menu');\r\n DOM.openEnquireForm = document.querySelectorAll('.open-enquire-form');\r\n DOM.openCallUsForm = document.querySelectorAll('.open-call-us-form');\r\n DOM.extraModals = document.querySelectorAll('[data-blmodal-open]');\r\n DOM.popupModal = document.getElementById('popup-form-modal');\r\n DOM.studentTestimonialModals = document.querySelectorAll('.student-testimonials-modal');\r\n DOM.overlayStudentTestimonialModal = document.querySelector('.student-testimonials-modal-overlay');\r\n};\r\n\r\nconst toggleModal = () => {\r\n DOM.navListItems.forEach((item) => {\r\n const link = item.firstElementChild;\r\n if (link !== DOM.openMenuElement) {\r\n item.classList.toggle('nav__listItem--hide');\r\n }\r\n });\r\n\r\n if (Modal.isOpen()) {\r\n DOM.nav.classList.add('nav--has-modal');\r\n } else {\r\n DOM.nav.classList.remove('nav--has-modal');\r\n }\r\n\r\n fixedElements.toggleNavModal();\r\n\r\n /* Check for IE as it doesnt let you change classes in svg elements */\r\n if (DOM.openMenuElement.firstElementChild.classList) {\r\n DOM.openMenuElement.firstElementChild.classList.toggle('svg-close');\r\n }\r\n};\r\n\r\nconst createSearchModal = () => {\r\n const searchModal = Modal.init({\r\n modal: DOM.searchModal,\r\n openTriggers: '.nav__link--open-search',\r\n closeTriggers: [\r\n DOM.openMenuElement,\r\n document.querySelector('[data-slidemodal-close]'),\r\n ],\r\n openClasses: ['slide-modal--open'],\r\n awaitOpenAnimation: true,\r\n awaitCloseAnimation: true,\r\n disableFocus: false,\r\n disableScroll: true,\r\n onShow: toggleModal,\r\n onClose: toggleModal,\r\n });\r\n};\r\n\r\nconst createFormModal = () => {\r\n const isScroll = DOM.openEnquireForm[0].dataset.scroll;\r\n const inPageForm = document.getElementById('form');\r\n\r\n if (isScroll === 'True' && inPageForm) return;\r\n\r\n const formModal = Modal.init({\r\n modal: DOM.formModal,\r\n openTriggers: '.open-enquire-form',\r\n closeTriggers: [\r\n DOM.openMenuElement,\r\n document.querySelector('[data-slidemodal-close]'),\r\n ],\r\n openClasses: ['slide-modal--open'],\r\n awaitOpenAnimation: true,\r\n awaitCloseAnimation: true,\r\n disableFocus: false,\r\n disableScroll: true,\r\n onShow: toggleModal,\r\n onClose: toggleModal,\r\n });\r\n};\r\n\r\nconst createCallUsFormModal = () => {\r\n if (!DOM.openCallUsForm[0]) return;\r\n\r\n const isScroll = DOM.openCallUsForm[0].dataset.scroll;\r\n const inPageForm = document.getElementById('callUsForm');\r\n\r\n if (isScroll === 'True' && inPageForm) return;\r\n\r\n Modal.init({\r\n modal: DOM.callUsFormModal,\r\n openTriggers: '.open-call-us-form',\r\n closeTriggers: [\r\n DOM.openMenuElement,\r\n document.querySelector('[data-slidemodal-close]'),\r\n ],\r\n openClasses: ['slide-modal--open'],\r\n awaitOpenAnimation: true,\r\n awaitCloseAnimation: true,\r\n disableFocus: false,\r\n disableScroll: true,\r\n onShow: toggleModal,\r\n onClose: toggleModal,\r\n });\r\n};\r\n\r\nconst createExtraModals = () => {\r\n DOM.extraModals.forEach((modalTrigger) => {\r\n const modal = document.querySelector(modalTrigger.dataset.blmodalOpen);\r\n if (!modal) return;\r\n\r\n Modal.init({\r\n modal,\r\n openTriggers: [modalTrigger],\r\n closeTriggers: [DOM.openMenuElement],\r\n openClasses: ['slide-modal--open'],\r\n awaitOpenAnimation: true,\r\n awaitCloseAnimation: true,\r\n disableFocus: false,\r\n disableScroll: true,\r\n onShow: toggleModal,\r\n onClose: toggleModal,\r\n });\r\n });\r\n};\r\n\r\nconst openSTModal = (evt) => {\r\n var Id = evt.id.replace('st-modal-', '');\r\n document.querySelector('#' + 'st-modal-loader-' + Id).classList.add('show');\r\n DOM.overlayStudentTestimonialModal.classList.add('open');\r\n\r\n setTimeout(function () {\r\n document.querySelector('#' + 'st-modal-loader-' + Id).classList.remove('show');\r\n }, 200);\r\n\r\n};\r\n\r\nconst closeSTModal = (evt) => {\r\n var Id = evt.id.replace('st-modal-', '');\r\n if (document.querySelector('#divVideo_' + Id + ' iframe')) {\r\n var video = document.querySelector('#divVideo_' + Id + ' iframe').src;\r\n document.querySelector('#divVideo_' + Id + ' iframe').src = \"\";\r\n document.querySelector('#divVideo_' + Id + ' iframe').src = video.replace('autoplay=1', 'autoplay=0');\r\n }\r\n DOM.studentTestimonialModals.forEach(function (value, i) {\r\n value.classList.remove('open');\r\n });\r\n DOM.overlayStudentTestimonialModal.classList.remove('open');\r\n};\r\n\r\nconst createstudentTestimonialModal = () => {\r\n DOM.studentTestimonialModals.forEach((modal) => {\r\n Modal.init({\r\n modal,\r\n openTriggers: [\r\n document.querySelector('#' + modal.id.replace('st-modal-', 'st-modal-open-')),\r\n ],\r\n closeTriggers: [\r\n document.querySelector('#' + modal.id.replace('st-modal-', 'st-modal-close-')),\r\n ],\r\n openClasses: ['open'],\r\n awaitOpenAnimation: true,\r\n awaitCloseAnimation: true,\r\n disableFocus: false,\r\n disableScroll: true,\r\n onShow: openSTModal,\r\n onClose: closeSTModal,\r\n });\r\n });\r\n //const stModal = Modal.init({\r\n // modal: DOM.studentTestimonialModal,\r\n // openTriggers: '.data-stmodal-open',\r\n // closeTriggers: [\r\n // document.querySelector('#student-testimonial-modal-close'),\r\n // ],\r\n // openClasses: ['open'],\r\n // awaitOpenAnimation: true,\r\n // awaitCloseAnimation: true,\r\n // disableFocus: false,\r\n // disableScroll: true,\r\n // onShow: toggleSTModal,\r\n // onClose: toggleSTModal,\r\n //});\r\n};\r\n\r\n// TODO: extract to separate file\r\nconst createPopupModal = () => {\r\n // If the user has the cookie, do nothing\r\n if (getCookie(POPUP_COOKIE)) return;\r\n\r\n const popup = Modal.init({\r\n modal: DOM.popupModal,\r\n closeTriggers: '[data-modal-close]',\r\n openClasses: ['popup-modal--open'],\r\n awaitOpenAnimation: true,\r\n awaitCloseAnimation: false,\r\n disableFocus: true,\r\n disableScroll: false,\r\n onClose: () => {\r\n // Disable the popup for the next 10 days\r\n setCookie(POPUP_COOKIE, true, 10);\r\n },\r\n });\r\n\r\n // Close the modal automatically in small resolutions\r\n const mq = matchMedia('(min-width: 768px)');\r\n mq.addListener(() => {\r\n if (!mq.matches) popup.hide();\r\n });\r\n\r\n // Open the modal after X ms (default: 30s)\r\n const timer = DOM.popupModal.dataset.modalTimer || 30000;\r\n setTimeout(() => {\r\n if (mq.matches) popup.show();\r\n }, timer);\r\n};\r\n\r\nconst init = () => {\r\n cacheDOM();\r\n\r\n if (window.location.search.includes('popup=true'))\r\n setCookie(POPUP_COOKIE, true, 60);\r\n\r\n if (DOM.searchModal)\r\n createSearchModal();\r\n\r\n if (DOM.extraModals)\r\n createExtraModals();\r\n\r\n if (DOM.formModal)\r\n createFormModal();\r\n\r\n if (DOM.callUsFormModal)\r\n createCallUsFormModal();\r\n\r\n if (DOM.popupModal)\r\n createPopupModal();\r\n\r\n if (DOM.studentTestimonialModals)\r\n createstudentTestimonialModal();\r\n};\r\n\r\nconst modals = { init };\r\nexport default modals;\r\n","import * as helpers from './helpers';\r\nimport { Modal } from './lib/modal.ts';\r\nimport fixedElements from './toggleFIxedElements';\r\n\r\nlet instance;\r\nconst DOM = {};\r\n\r\nconst menuTemplate = helpers.parseHTML(\r\n '
    '\r\n);\r\n\r\nconst liTemplate = helpers.parseHTML(\r\n '
  • '\r\n);\r\n\r\n// After some testing, rendering the menu from a string template is the fastest\r\n// way to do this. Using