{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./scripts/components/utils.js","webpack:///./modules/navbar/navbar.js","webpack:///./scripts/components/preloader.js","webpack:///./scripts/app.js","webpack:///./modules/dropdown/dropdown.js","webpack:///./scripts/components/form.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","0","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","getDomIndex","target","parentNode","children","indexOf","isTouchDevice","navigator","maxTouchPoints","msMaxTouchPoints","navbar","container","querySelector","targetElement","navbarToggler","querySelectorAll","navbarCloseBtn","close","document","body","classList","remove","enableBodyScroll","forEach","item","addEventListener","event","preventDefault","contains","add","disableBodyScroll","imagesLoaded","require","_regeneratorRuntime","e","a","iterator","asyncIterator","u","define","configurable","writable","wrap","Generator","Context","makeInvokeMethod","tryCatch","type","arg","h","f","y","GeneratorFunction","GeneratorFunctionPrototype","getPrototypeOf","v","values","g","defineIteratorMethods","_invoke","AsyncIterator","invoke","_typeof","resolve","__await","then","callInvokeWithMethodAndArg","Error","done","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","return","TypeError","resultName","next","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","reset","isNaN","displayName","isGeneratorFunction","constructor","mark","setPrototypeOf","__proto__","awrap","async","Promise","keys","reverse","pop","prev","charAt","stop","rval","handle","complete","finish","catch","delegateYield","asyncGeneratorStep","_asyncToGenerator","arguments","_next","_throw","_toConsumableArray","Array","isArray","_arrayLikeToArray","_arrayWithoutHoles","from","_iterableToArray","toString","test","_unsupportedIterableToArray","_nonIterableSpread","gsap","registerPlugin","ScrollTrigger","fadeIn","el","smooth","undefined","displayStyle","style","opacity","display","request","animation","cancelAnimationFrame","rAf","requestAnimationFrame","fadeOut","jobControl","content","title","getAttribute","id","parseInt","formContainer","formJob","append","innerHTML","setAttribute","setTimeout","scrollTo","top","offsetTop","offsetHeight","behavior","FiltersAndPagination","filterdata","pageN","filters","btn","initPagination","paginationContainer","GetSearchResults","resultsxpage","dataset","paginationOptions","totalItems","itemsPerPage","visiblePages","page","centerAlign","firstItemClassName","lastItemClassName","template","currentPage","moveButton","disabledMoveButton","moreButton","paginationInstance","Pagination","LoadingShow","xhttp","XMLHttpRequest","onload","resp","this","responseText","status","totalresult","myLazyLoad","update","LoadingHide","console","log","open","THOM_searchUrlContent","send","URLSearchParams","filterId","filterValue","val","GetFilters","on","eventData","MyThomFormResponseAction","text","myHtml","dialogAlert","A11yDialog","getElementById","show","timelineInterval","defaultPristineConfig","classTo","errorClass","successClass","errorTextParent","errorTextTag","errorTextClass","timelineFillingUpdate","fillingLine","left","offsetLeft","width","offsetWidth","inputs","Number","to","timelineAuto","currentInput","ind","input","element","loader","createElement","className","spinner","appendChild","App","LazyLoad","unobserve_entered","elements_selector","callback_loaded","animFadeInEl","utils","toArray","set","autoAlpha","animFadeInAnim","duration","paused","delay","trigger","start","end","once","onEnter","self","progress","play","animFadeIn","counts","setInterval","count","maxCount","upto","clearInterval","carousel","stagger","Swiper","Mousewheel","Keyboard","spaceBetween","slidesPerView","grabCursor","slidesOffsetAfter","keyboard","enabled","mousewheel","forceToAxis","sensitivity","breakpoints","1200","centeredSlides","loop","lazy","initialSlide","cursor","bounds","getBoundingClientRect","x","clientX","clientY","clientWidth","clientHeight","ease","mobileDesc","interval","dot","desc","videoElement","videoSrc","src","load","controls","restart","volume","state","matchMedia","matches","pause","currentTime","toggle","muted","itemOnEnter","itemOnLeave","timeline","scrollTrigger","onEnterBack","onLeave","onLeaveBack","dialogSectorsEl","doit","dialogSectors","modalScroller","onresize","clearTimeout","getComputedStyle","Scrollbar","destroy","sectorsModalScrollbar","init","alwaysShowTracks","onclick","selector","image","img","imgwrap","visibility","imgEl","removeChild","list","accordions","accordion","acc","elem","dropdown","scrollbar","closest","elems","elems_n","elems_H","elems_max","max","height","getElementsByClassName","_","thomDropdown","dialogPrivacyEl","dialogPrivacy","dialogPrivacyScroller","delegateTo","tds","DOMParser","parseFromString","lightGallery","licenseKey","plugins","lgVideo","zoom","counter","download","getCaptionFromTitleOrAlt","zoomFromOrigin","hideBarsDelay","vimeoPlayerParams","byline","portrait","dnt","youTubePlayerParams","modestbranding","showinfo","rel","gallery","imagesCarousels","slider","swiper","disable","enable","mobileSettings","showCloseIcon","click","forms","form","validateForm","Pristine","inputFileLabelVal","inputContainer","inputFile","inputFileLabel","onchange","fileName","files","replace","split","onfocus","onblur","valid","validate","rSiteKey","sitekey","rAction","action","grecaptcha","ready","execute","token","FormSubmit","formData","FormData","fetch","response","ok","json","reject","Status","Url","location","href","Message","Title","formReset","err","warn","button","history","scrollRestoration","scrollPosY","barba","timeout","prefetchIgnore","prevent","_ref","hasAttribute","transitions","leave","_callee","_context","pageTransitionIn","current","enter","_callee2","_context2","pageTransitionOut","namespace","_callee3","_context3","afterLeave","_callee4","tlChildren","js","newBody","parser","doc","newMenu","_context4","globalTimeline","getChildren","child","kill","script","eval","html","pageTransition","pageTransitionBlu","pageTransitionLoaderLogo","yPercent","transformOrigin","onStart","scroll","_callee5","startMyApp","hideLoading","_context5","pageTransitionLoadingHide","contentAnimation","onComplete","pointerEvents"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW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XsiB,EAAWC,EAAAla,KAAAka,EAAA/Z,OAAA,SACR,CACL6Z,aACAC,gBACD,wBAAAC,EAAAjY,UAAA8X,MARHtX,GAJO2X,CAAiBje,EAAWxE,GAgBrC,SAASwiB,EAA0BxiB,GAIjC6L,IACGmM,WACAtS,IAAI,OAQJ6M,GACCuP,EACA,CACEjO,SAAU,GACVvH,QAAS,EAETqK,KAAM,aACNuL,QAAS,WACc,SAAjBliB,EAAKgU,SACPvG,YAAW,WACT9J,OAAO+J,SAAS,EAAG,EAAG,aACrB,KAGPgV,WAAY,WAKVX,EAAyB9c,UAAUC,OAAO,UAQ1C2G,IAAK6H,IACHmO,EACA,CACEG,UAAW,IACX1V,QAAS,EACTqW,cAAe,QAEjB,SAIN,GACA","file":"app.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\t0: 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 = \"\";\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([189,1]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","// Map number x from range [a, b] to [c, d]\nconst map = (x, a, b, c, d) => (x - a) * (d - c) / (b - a) + c;\n\n// Linear interpolation\nconst lerp = (a, b, n) => (1 - n) * a + n * b;\n\nconst clamp = (num, min, max) => num <= min ? min : num >= max ? max : num;\n\n// Gets the mouse position\nconst getMousePos = (ev) => {\n return { \n x : ev.clientX, \n y : ev.clientY \n };\n};\n\nconst getDomIndex = (target) => {\n return [].slice.call(target.parentNode.children).indexOf(target)\n}\n\nconst isTouchDevice = () => {\n return ( 'ontouchstart' in window ) || \n ( navigator.maxTouchPoints > 0 ) || \n ( navigator.msMaxTouchPoints > 0 );\n}\n\nconst slideDown = element => element.style.height = 'auto';\nconst slideUp = element => element.style.height = 0;\n\n// Google map Style\nconst mapStyle = [\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 { map, lerp, clamp, getMousePos, getDomIndex, isTouchDevice, slideDown, slideUp, mapStyle};\n","/**\n * Navbar\n */\n\n// import PerfectScrollbar from 'perfect-scrollbar';\n// import 'perfect-scrollbar/css/perfect-scrollbar.css';\nimport { gsap } from \"gsap\";\nimport { isTouchDevice } from '../../scripts/components/utils';\nimport { disableBodyScroll, enableBodyScroll } from 'body-scroll-lock';\n\nconst hoverIntent = (el, onOver, onOut) => {\n let x;\n let y;\n let pX;\n let pY;\n const h = {};\n let state = 0;\n let timer = 0;\n\n let options = {\n sensitivity: 7,\n interval: 100,\n timeout: 0,\n overClass: 'hovered'\n };\n\n const delay = e => {\n if (timer) timer = clearTimeout(timer);\n state = 0;\n if (onOut) {\n return onOut.call(el, e);\n }\n el.classList.remove(options.overClass);\n return false;\n };\n\n const tracker = e => {\n x = e.clientX;\n y = e.clientY;\n };\n\n const compare = e => {\n if (timer) timer = clearTimeout(timer);\n if (Math.abs(pX - x) + Math.abs(pY - y) < options.sensitivity) {\n state = 1;\n if (onOver) {\n return onOver.call(el, e);\n }\n el.classList.add(options.overClass);\n return false;\n }\n pX = x;\n pY = y;\n timer = setTimeout(() => {\n compare(e);\n }, options.interval);\n return false;\n };\n\n // Public methods\n\n const dispatchOver = e => {\n if (timer) timer = clearTimeout(timer);\n el.removeEventListener('mousemove', tracker, false);\n\n if (state !== 1) {\n pX = e.clientX;\n pY = e.clientY;\n\n el.addEventListener('mousemove', tracker, false);\n\n timer = setTimeout(() => {\n compare(e);\n }, options.interval);\n }\n\n return this;\n };\n\n const dispatchOut = e => {\n if (timer) timer = clearTimeout(timer);\n el.removeEventListener('mousemove', tracker, false);\n\n if (state === 1) {\n timer = setTimeout(() => {\n delay(e);\n }, options.timeout);\n }\n\n return this;\n };\n\n if (el) {\n el.addEventListener('mouseover', dispatchOver, false);\n el.addEventListener('mouseout', dispatchOut, false);\n }\n\n h.options = opt => {\n options = { ...options, ...opt };\n return h;\n };\n\n h.remove = () => {\n if (!el) return;\n el.removeEventListener('mouseover', dispatchOver, false);\n el.removeEventListener('mouseout', dispatchOut, false);\n };\n\n return h;\n};\n\n// let header = '';\n// let targetElement = '';\n// let navbarToggler = '';\n// let pinOffset = 0;\n// let prevScrollPos;\n\nconst navbar = (container) => {\n let header = container.querySelector('.header');\n let targetElement = container.querySelector('.js-navbar');\n let navbarToggler = targetElement.querySelectorAll('.js-navbar-toggler');\n let navbarCloseBtn = targetElement.querySelector('.nav--close');\n\n let open = () => {\n document.body.classList.add('navbar--opened');\n disableBodyScroll(document);\n }\n\n let close = () => {\n document.body.classList.remove('navbar--opened');\n enableBodyScroll(document)\n }\n\n // Menù Button to open Menu\n if (navbarToggler) {\n close();\n\n navbarToggler.forEach(function(item) {\n \n item.addEventListener('click', function (event) {\n event.preventDefault(); \n if(document.body.classList.contains('navbar--opened')){\n close();\n } else {\n open();\n }\n });\n }); \n }\n\n if(navbarCloseBtn) {\n navbarCloseBtn.addEventListener('click', function (event) {\n event.preventDefault();\n close();\n });\n }\n}\n\nexport {navbar};\n","const imagesLoaded = require('imagesloaded');\n\nconst body = document.body;\nexport const preloader = selector => {\n return new Promise(resolve => {\n\n const imgwrap = document.createElement('div');\n imgwrap.style.visibility = 'hidden';\n body.appendChild(imgwrap);\n \n [...document.querySelectorAll(selector)].forEach(el => {\n const imgEl = document.createElement('img');\n imgEl.style.width = 0;\n imgEl.src = el.dataset.img;\n imgEl.className = 'preload';\n imgwrap.appendChild(imgEl);\n });\n\n imagesLoaded(document.querySelectorAll('.preload'), () => {\n imgwrap.parentNode.removeChild(imgwrap);\n body.classList.remove('loading');\n resolve();\n });\n\n });\n};","import barba from \"@barba/core\";\nimport { navbar } from \"../modules/navbar/navbar\";\n// import MultiMenu from 'multi-menu' // when you use webpack/rollup\n// import 'multi-menu/css/multi-menu.css' // when you use webpack/rollup\nimport utils from \"fizzy-ui-utils\";\nimport LazyLoad from \"vanilla-lazyload\";\n// import { Loader } from \"@googlemaps/js-api-loader\";\nimport { gsap } from \"gsap\";\nimport { ScrollTrigger } from \"gsap/ScrollTrigger\";\ngsap.registerPlugin(ScrollTrigger);\nimport { thomDropdown } from \"../modules/dropdown/dropdown\";\nimport Scrollbar from \"smooth-scrollbar\";\nimport A11yDialog from \"a11y-dialog\";\nimport { disableBodyScroll, enableBodyScroll } from \"body-scroll-lock\";\nimport lightGallery from \"lightgallery\";\n// import lgMediumZoom from 'lightgallery/plugins/mediumZoom';\nimport lgVideo from \"lightgallery/plugins/video\";\nimport Pristine from \"pristinejs\";\nimport { preloader } from \"./components/preloader\";\n\n// import Swiper JS\nimport Swiper from \"swiper\";\nimport { EffectFade, Autoplay, Mousewheel, Keyboard } from \"swiper/modules\";\n// import Swiper and modules styles\nimport \"swiper/swiper.css\";\nimport \"swiper/modules/effect-fade.css\";\nimport \"swiper/modules/effect-fade-element.css\";\nimport \"swiper/modules/mousewheel.css\";\n\nimport { getDomIndex, isTouchDevice } from \"./components/utils\";\nimport { formReset } from \"./components/form\";\n\nimport Pagination from \"tui-pagination\";\n\nconst imagesLoaded = require(\"imagesloaded\");\n\n// fade in and slide up content\n// on Intersection Observer with ScrollTrigger\nconst animFadeIn = (animFadeInEl) => {\n animFadeInEl.forEach((el, i) => {\n // Set up your animation\n let animFadeInAnim = gsap.to(el, {\n duration: 1.5,\n autoAlpha: 1,\n y: 0,\n paused: true,\n delay: 0.3,\n });\n // Use callbacks to control the state of the animation\n ScrollTrigger.create({\n trigger: el,\n start: \"top 90%\",\n end: \"bottom 90%\",\n once: true,\n // markers: true,\n onEnter: (self) => {\n // If it's scrolled past, set the state\n // If it's scrolled to, play it\n self.progress === 1\n ? animFadeInAnim.progress(1)\n : animFadeInAnim.play();\n },\n });\n });\n};\n\n// fade in\nconst fadeIn = (el, smooth = true, displayStyle = \"block\") => {\n el.style.opacity = 0;\n el.style.display = displayStyle;\n if (smooth) {\n let opacity = 0;\n let request;\n\n let animation = () => {\n el.style.opacity = opacity += 0.04;\n if (opacity >= 1) {\n opacity = 1;\n cancelAnimationFrame(request);\n }\n };\n\n let rAf = () => {\n request = requestAnimationFrame(rAf);\n animation();\n };\n rAf();\n } else {\n el.style.opacity = 1;\n el.style.display = displayStyle;\n }\n};\n// fade out\nconst fadeOut = (el, smooth = true, displayStyle = \"none\") => {\n if (smooth) {\n let opacity = el.style.opacity;\n let request;\n\n let animation = () => {\n el.style.opacity = opacity -= 0.04;\n if (opacity <= 0) {\n opacity = 0;\n el.style.display = displayStyle;\n cancelAnimationFrame(request);\n }\n };\n\n let rAf = () => {\n request = requestAnimationFrame(rAf);\n animation();\n };\n rAf();\n } else {\n el.style.opacity = 0;\n el.style.display = displayStyle;\n }\n};\n\n// Job form append\nfunction jobControl(item) {\n if (item.classList.contains(\"jobs--item\")) {\n var content = item.querySelector(\".jobs--item--content\");\n var title = item.getAttribute(\"data-job-title\");\n var id = parseInt(item.getAttribute(\"data-job-id\"));\n var formContainer = document.querySelector(\"#formJob\");\n var formJob = document.querySelector(\"#formJobOpportunities\");\n\n formContainer.style.display = 'none';\n content.append(formContainer);\n fadeIn(formContainer);\n\n // Reset form\n formJob.reset();\n formJob.querySelector(\".thom-form__error\").style.display = 'none';\n\n if (formJob.querySelector(\"input[type=file]\")) {\n formJob.querySelector(\".thom-form-selectfile__label span\").innerHTML =\n formJob.querySelector(\"input[type=file]\").getAttribute(\"placeholder\");\n }\n\n // Passo valori a campi nascosti\n formJob.querySelector(\"#TitoloLavoro\").value = title;\n formJob.querySelector(\"#JobId\").value = id;\n\n // Se id 0 mostro campi per Candidatura spontanea\n if (id == 0) {\n formJob.querySelector(\".only-for-free-application\").style.display = 'block';\n formJob\n .querySelector(\".only-for-free-application-el\")\n .setAttribute(\"data-val-required\", true);\n } else {\n formJob.querySelector(\".only-for-free-application\").style.display = 'none';\n formJob\n .querySelector(\".only-for-free-application-el\")\n .setAttribute(\"data-val-required\", false);\n }\n\n // Scroll update e riposizionamento\n setTimeout(function () {\n window.scrollTo({ top: item.offsetTop - document.querySelector(\".navbar\").offsetHeight, behavior: \"smooth\" });\n }, 600);\n }\n}\n\n// Google map loader\n// const loader = new Loader({\n// apiKey: _gmapkey,\n// version: \"weekly\",\n// libraries: [\"places\"]\n// });\nfunction FiltersAndPagination() {\n var filterdata;\n var pageN = 1;\n var filters = document.querySelectorAll(\".thom-search--filter-block\");\n\n // filters click\n filters.forEach((el, i) => {\n el.querySelectorAll(\".thom-search--filter-btn\").forEach((btn, i) => {\n btn.addEventListener(\"click\", function (e) {\n e.preventDefault();\n pageN = 1;\n initPagination = false;\n paginationContainer.style.opacity = 0;\n el.querySelectorAll(\".thom-search--filter-btn\").forEach((btn, i) => {\n btn.classList.remove(\"selected\");\n });\n btn.classList.add(\"selected\");\n GetSearchResults();\n });\n });\n });\n\n // pagination\n let initPagination = false; \n let paginationContainer = document.querySelector(\n \".thom-search--pagination .pagination\"\n );\n paginationContainer.style.opacity = 0;\n let resultsxpage = paginationContainer.dataset.resultsxpage;\n let paginationOptions = {\n totalItems: 1,\n itemsPerPage: resultsxpage,\n visiblePages: 4,\n page: 1,\n centerAlign: false,\n firstItemClassName: \"tui-first-child\",\n lastItemClassName: \"tui-last-child\",\n template: {\n page: '{{page}}',\n currentPage:\n '{{page}}',\n moveButton:\n '' +\n '' +\n \"\",\n disabledMoveButton:\n '' +\n '{{type}}' +\n \"\",\n moreButton:\n '' +\n '...' +\n \"\",\n },\n };\n let paginationInstance = new Pagination(\n paginationContainer,\n paginationOptions\n );\n\n paginationInstance.on(\"beforeMove\", function (eventData) {\n pageN = eventData.page;\n });\n\n paginationInstance.on('afterMove', function(eventData) {\n pageN = eventData.page;\n GetSearchResults();\n });\n\n function GetFilters() {\n filterdata = new URLSearchParams();\n for (var i = 0; i < filters.length; i++) {\n var filterId = filters[i].getAttribute(\"id\");\n var filterValue = filters[i].querySelector(\n \".thom-search--filter-btn.selected\"\n ).dataset.val;\n\n if (filterValue === undefined) {\n filterValue = null;\n }\n\n filterdata.append(filterId, filterValue);\n }\n\n // current page\n filterdata.append(document.querySelector(\".pagination\").getAttribute(\"id\"), pageN);\n\n return filterdata;\n }\n\n function GetSearchResults() {\n LoadingShow(document.querySelector(\".wrapper\"));\n\n let xhttp = new XMLHttpRequest();\n\n xhttp.onload = function () {\n\n var resp = this.responseText;\n\n if (\n this.status != 500\n ) {\n document.querySelector(\"#search-result\").innerHTML = resp;\n\n var totalresult = document.querySelector(\"#search-result .news-list\")\n .dataset.result;\n // pagination replace\n if(initPagination === false){\n paginationInstance.reset(totalresult);\n initPagination = true;\n }\n \n if (totalresult <= resultsxpage) {\n document.querySelector('.thom-search--pagination').style.display = 'none';\n } else {\n document.querySelector('.thom-search--pagination').style.display = 'block';\n }\n\n myLazyLoad.update();\n\n window.scrollTo({ top: 0, behavior: \"smooth\" });\n\n LoadingHide(document.querySelector(\".wrapper\"));\n\n paginationContainer.style.opacity = 1;\n\n } else {\n console.log(\"error\");\n console.log(this);\n LoadingHide(document.querySelector(\".wrapper\"));\n }\n };\n\n xhttp.open(\"POST\", THOM_searchUrlContent);\n\n xhttp.send(GetFilters());\n }\n\n GetSearchResults();\n}\n\n// Form Response Action\nfunction MyThomFormResponseAction(title, text) {\n var mytitle = \"\";\n\n LoadingShow(document.querySelector(\".wrapper\"));\n\n if (title !== undefined && title !== null && title !== \"\") {\n mytitle = \"
\" + text + \"
\";\n\n document.querySelector(\"#alert-dialog .dialog-text\").innerHTML = myHtml;\n\n var dialogAlert = new A11yDialog(document.getElementById(\"alert-dialog\"));\n\n dialogAlert\n .on(\"show\", () => {\n disableBodyScroll(dialogAlert);\n LoadingHide(document.querySelector(\".wrapper\"));\n })\n .on(\"hide\", () => enableBodyScroll(dialogAlert));\n\n dialogAlert.show();\n}\n\n// Pristine validation configuration\nconst defaultPristineConfig = {\n // class of the parent element where the error/success class is added\n classTo: \"form-group\",\n errorClass: \"has-danger\",\n successClass: \"has-success\",\n // class of the parent element where error text element is appended\n errorTextParent: \"form-group\",\n // type of element to create for the error text\n errorTextTag: \"div\",\n // class of the error text element\n errorTextClass: \"text-help\",\n};\n\nfunction timelineFillingUpdate(t) {\n var fillingLine = document.querySelector(\".filling-line\");\n var left = t.offsetLeft;\n var width = t.offsetWidth;\n var inputs = document.querySelectorAll(\".timeline .input\");\n\n left = Number(left) + Number(width) / 2;\n\n if (getDomIndex(t) === inputs.length - 1) {\n left = \"100%\";\n }\n\n gsap.to(fillingLine, {\n width: left,\n });\n}\n\nfunction timelineAuto(inputs) {\n var s = inputs.length;\n var currentInput = document.querySelector(\".timeline .input.active\");\n var ind = getDomIndex(currentInput) + 1;\n if (ind >= s) {\n ind = 0;\n }\n\n var next = inputs[ind];\n\n timelineFillingUpdate(next);\n next.classList.add(\"active\");\n document.querySelector(\".timeline--description\").innerHTML =\n next.querySelector(\".desc\").innerHTML;\n\n [...inputs].forEach((input) => {\n var index = getDomIndex(input);\n if (index !== ind) {\n input.classList.remove(\"active\");\n }\n });\n}\n\nlet timelineInterval;\n\nlet LoadingShow = (element) => {\n document.body.classList.add(\"loading\");\n\n let loader = document.createElement(\"div\");\n loader.className = \"loader\";\n\n let spinner = document.createElement(\"span\");\n spinner.className = \"spinner\";\n\n loader.appendChild(spinner);\n element.appendChild(loader);\n\n element.querySelector(\".loader\").classList.add(\"show\");\n};\n\nlet LoadingHide = (element) => {\n element.querySelector(\".loader\").classList.remove(\"show\");\n setTimeout(() => {\n element.querySelector(\".loader\").remove();\n }, \"500\");\n document.body.classList.remove(\"loading\");\n};\n\nlet myLazyLoad;\n\nconst App = (container, data) => {\n myLazyLoad = new LazyLoad({\n container: container,\n unobserve_entered: true,\n elements_selector: \".lazy\",\n callback_loaded: function (el) {\n // locoScroll.update();\n },\n });\n\n // Fade in animation\n if (container.querySelector(\".fadeIn\")) {\n const animFadeInEl = gsap.utils.toArray(\".fadeIn\");\n // console.log(animFadeInEl)\n // Set things up\n gsap.set(animFadeInEl, { autoAlpha: 0, y: 20 });\n animFadeIn(animFadeInEl);\n }\n\n // Numbers\n container.querySelectorAll(\".number\").forEach((el, i) => {\n // Use callbacks to control the state of the animation\n ScrollTrigger.create({\n trigger: el,\n start: \"top 80%\",\n once: true,\n // markers: true,\n onEnter: (self) => {\n let counts = setInterval(updated, 60);\n let upto = el.querySelector(\".value\").innerHTML;\n function updated() {\n let count = el.querySelector(\".value\");\n let maxCount = Number(el.getAttribute(\"data-val\"));\n count.innerHTML = ++upto;\n if (upto === maxCount) {\n clearInterval(counts);\n }\n }\n },\n });\n });\n\n // Card Carousel\n if (container.querySelector(\".card-carousel\")) {\n var carousels = container.querySelectorAll(\".card-carousel\");\n [...carousels].forEach((carousel) => {\n ScrollTrigger.create({\n trigger: carousel,\n start: \"top 80%\",\n once: true,\n // markers: true,\n onEnter: (self) => {\n gsap.to(carousel.querySelectorAll(\".item\"), {\n opacity: 1,\n duration: 0.8,\n stagger: 0.35,\n });\n },\n });\n\n let swiper = new Swiper(carousel, {\n modules: [Mousewheel, Keyboard],\n spaceBetween: 25,\n slidesPerView: \"auto\",\n grabCursor: true,\n slidesOffsetAfter: 75,\n keyboard: {\n enabled: true,\n },\n mousewheel: {\n enabled: true,\n forceToAxis: true,\n sensitivity: 5,\n },\n breakpoints: {\n 1200: {\n grabCursor: false,\n slidesOffsetAfter: 0,\n },\n },\n });\n });\n }\n\n // Images Carousel\n if (container.querySelector(\".images-carousel\")) {\n var imagesCarousels = container.querySelectorAll(\".images-carousel\");\n [...imagesCarousels].forEach((carousel) => {\n let grabCursor = true;\n\n if (!isTouchDevice()) {\n grabCursor = false;\n }\n\n let ImagesSwiper = new Swiper(carousel, {\n modules: [Mousewheel, Keyboard],\n slidesPerView: \"auto\",\n centeredSlides: true,\n spaceBetween: 25,\n loop: true,\n grabCursor: grabCursor,\n lazy: true,\n initialSlide: 2,\n keyboard: {\n enabled: true,\n },\n mousewheel: {\n enabled: true,\n forceToAxis: true,\n sensitivity: 5,\n },\n });\n\n if (!isTouchDevice()) {\n let cursor = carousel.querySelector(\".cursor\");\n carousel.addEventListener(\"pointermove\", (e) => {\n let bounds = carousel.getBoundingClientRect();\n let x = e.clientX - bounds.left;\n let y = e.clientY - bounds.top;\n\n gsap.to(cursor, {\n x: x - cursor.clientWidth / 2,\n y: y - cursor.clientHeight / 2,\n duration: 0.5,\n ease: \"power4\",\n });\n });\n }\n });\n }\n\n // Timeline\n if (container.querySelector(\".timeline\")) {\n var inputs = container.querySelectorAll(\".timeline .input\");\n var mobileDesc = container.querySelector(\".timeline--description\");\n var currentInput = container.querySelector(\".timeline .input.active\");\n var interval = container\n .querySelector(\".timeline\")\n .getAttribute(\"data-interval\");\n mobileDesc.innerHTML = currentInput.querySelector(\".desc\").innerHTML;\n\n timelineFillingUpdate(currentInput);\n\n timelineInterval = setInterval(function () {\n timelineAuto(inputs);\n }, interval);\n\n [...inputs].forEach((input) => {\n var ind = getDomIndex(input);\n var dot = input.querySelector(\".dot\");\n var desc = input.querySelector(\".desc\").innerHTML;\n\n dot.addEventListener(\"click\", function () {\n timelineFillingUpdate(input);\n\n input.classList.add(\"active\");\n mobileDesc.innerHTML = desc;\n\n [...inputs].forEach((input) => {\n var index = getDomIndex(input);\n if (index !== ind) {\n input.classList.remove(\"active\");\n }\n });\n\n // paras.forEach(para => {\n // var index = getDomIndex(para);\n // if(index !== ind){\n // para.classList.remove('active')\n // } else {\n // para.classList.add('active')\n // }\n // })\n\n clearInterval(timelineInterval);\n\n timelineInterval = setInterval(function () {\n timelineAuto(inputs);\n }, interval);\n });\n });\n }\n\n // video media / Scrolltrigger\n if (container.querySelector(\".media\")) {\n container.querySelectorAll(\".media\").forEach((el, i) => {\n if (el.querySelector(\".video--item\")) {\n let videoElement = el.querySelector(\".video--item\");\n let videoSrc = el\n .querySelector(\".video--item\")\n .getAttribute(\"data-src\");\n videoElement.src = videoSrc;\n videoElement.load();\n\n if (el.querySelector(\".video--controls\")) {\n var controls = el.querySelector(\".video--controls\");\n var restart = controls.querySelector(\".skip-start\");\n var volume = controls.querySelector(\".volume\");\n var state = controls.querySelector(\".state\");\n var progress = controls.querySelector(\".progress-bar\");\n\n if (window.matchMedia(\"(min-width: 920px)\").matches) {\n setTimeout(function () {\n fadeOut(controls);\n }, 2000);\n\n el.addEventListener(\"mouseenter\", function () {\n fadeIn(controls, true, \"flex\");\n });\n\n el.addEventListener(\"mouseleave\", function () {\n fadeOut(controls, true);\n });\n }\n\n restart.addEventListener(\"click\", function () {\n videoElement.pause();\n videoElement.currentTime = \"0\";\n videoElement.play();\n state.classList.remove(\"stop\");\n });\n\n volume.addEventListener(\"click\", function () {\n volume.classList.toggle(\"on\");\n if (volume.classList.contains(\"on\")) {\n videoElement.muted = false;\n } else {\n videoElement.muted = true;\n }\n });\n\n state.addEventListener(\"click\", function () {\n state.classList.toggle(\"stop\");\n if (state.classList.contains(\"stop\")) {\n videoElement.pause();\n } else {\n videoElement.play();\n }\n });\n }\n\n let itemOnEnter = () => {\n el.classList.add(\"is-playing\");\n videoElement.play();\n if (state) {\n state.classList.remove(\"stop\");\n }\n };\n let itemOnLeave = () => {\n el.classList.remove(\"is-playing\");\n videoElement.pause();\n };\n\n var mediaTl = gsap.timeline({\n scrollTrigger: {\n trigger: el,\n start: \"top 80%\",\n end: \"bottom 10%\",\n // markers: true,\n onEnter: itemOnEnter,\n onEnterBack: itemOnEnter,\n onLeave: itemOnLeave,\n onLeaveBack: itemOnLeave,\n },\n });\n }\n });\n }\n\n // Settori modal\n let dialogSectorsEl = container.querySelector(\"#sectors-dialog\");\n\n if (dialogSectorsEl) {\n let dialogSectors = new A11yDialog(dialogSectorsEl);\n let modalScroller = dialogSectorsEl.querySelector(\".dialog-wrap\");\n\n if (window.matchMedia(\"(min-width: 640px)\").matches) {\n modalScroller = dialogSectorsEl.querySelector(\".dialog-wrap .text--wrap\");\n }\n\n // Resize\n let doit;\n window.onresize = function () {\n clearTimeout(doit);\n if (window.getComputedStyle(dialogSectorsEl, null).display != \"none\") {\n doit = setTimeout(function () {\n Scrollbar.destroy(modalScroller);\n if (window.matchMedia(\"(min-width: 640px)\").matches) {\n modalScroller = dialogSectorsEl.querySelector(\n \".dialog-wrap .text--wrap\"\n );\n } else {\n modalScroller = dialogSectorsEl.querySelector(\".dialog-wrap\");\n }\n\n sectorsModalScrollbar();\n }, 100);\n }\n };\n\n // Make scrollbar\n let sectorsModalScrollbar = () => {\n Scrollbar.init(modalScroller, {\n // delegateTo: dialogSectorsEl,\n alwaysShowTracks: false,\n });\n };\n // Dialog callback\n dialogSectors\n .on(\"show\", () => {\n sectorsModalScrollbar();\n if (window.matchMedia(\"(min-width: 640px)\").matches) {\n disableBodyScroll(dialogSectorsEl);\n }\n })\n .on(\"hide\", () => {\n if (window.matchMedia(\"(min-width: 640px)\").matches) {\n enableBodyScroll(dialogSectorsEl);\n }\n dialogSectorsEl.querySelector(\".dialog-wrap .image img\").src = \"\";\n dialogSectorsEl.querySelector(\".dialog-wrap .text--wrap\").innerHTML =\n \"\";\n Scrollbar.destroy(modalScroller);\n });\n\n var sectorsModalButtons = container.querySelectorAll(\".sectors--item\");\n sectorsModalButtons.forEach((btn) => {\n btn.onclick = (event) => {\n event.preventDefault();\n\n LoadingShow(btn);\n\n let image = btn.querySelector(\".modal .image\").getAttribute(\"data-img\");\n let text = btn.querySelector(\".modal .text\").innerHTML;\n\n dialogSectorsEl.querySelector(\".dialog-wrap .image\").dataset.img =\n image;\n dialogSectorsEl.querySelector(\".dialog-wrap .text--wrap\").innerHTML =\n text;\n\n preloader(\"#sectors-dialog .image\").then(() => {\n dialogSectorsEl.querySelector(\".dialog-wrap .image img\").src =\n dialogSectorsEl.querySelector(\".dialog-wrap .image\").dataset.img;\n dialogSectors.show();\n LoadingHide(btn);\n });\n };\n });\n }\n\n if (container.querySelector(\"#search-result\")) {\n FiltersAndPagination();\n }\n\n // Accordion\n if (container.querySelector(\".accordion-list\")) {\n container.querySelectorAll(\".accordion-list\").forEach((list, i) => {\n var accordions = list.querySelectorAll(\".accordion-item\");\n\n accordions.forEach((accordion, i) => {\n if (accordion.classList.contains(\"open\")) {\n fadeIn(accordion.querySelector(\".accordion-content\"));\n jobControl(accordion);\n }\n\n accordion\n .querySelector(\".accordion-title\")\n .addEventListener(\"click\", function () {\n if (list.classList.contains(\"close-all\")) {\n if (accordion.classList.contains(\"open\")) {\n fadeOut(accordion.querySelector(\".accordion-content\"));\n accordion.classList.remove(\"open\");\n } else {\n accordions.forEach((acc) => {\n fadeOut(acc.querySelector(\".accordion-content\"));\n acc.classList.remove(\"open\");\n });\n fadeIn(accordion.querySelector(\".accordion-content\"));\n accordion.classList.add(\"open\");\n jobControl(accordion);\n }\n } else {\n accordion.classList.toggle(\"open\");\n }\n });\n });\n });\n }\n\n thomDropdown(container);\n\n // Privacy Dialog\n var dialogPrivacyEl = document.getElementById(\"privacy-dialog\");\n var dialogPrivacy = new A11yDialog(dialogPrivacyEl);\n var dialogPrivacyScroller = dialogPrivacyEl.querySelector(\".dialog-text\");\n\n dialogPrivacy\n .on(\"show\", () => {\n disableBodyScroll(dialogPrivacyEl);\n Scrollbar.init(dialogPrivacyScroller, {\n alwaysShowTracks: false,\n delegateTo: dialogPrivacyEl,\n });\n })\n .on(\"hide\", () => {\n dialogPrivacyEl.querySelector(\".dialog-text\").innerHTML = \"\";\n Scrollbar.destroy(dialogPrivacyScroller);\n enableBodyScroll(dialogPrivacyEl);\n });\n\n var ajaxModalButtons = document.querySelectorAll(\"[rel='ajax:modal']\");\n ajaxModalButtons.forEach((btn) => {\n btn.onclick = (event) => {\n event.preventDefault();\n LoadingShow(document.querySelector(\".wrapper\"));\n var page = btn.getAttribute(\"href\");\n\n let xhttp = new XMLHttpRequest();\n\n xhttp.onload = function () {\n var resp = this.responseText;\n var parser = new DOMParser();\n var xmlDoc = parser.parseFromString(resp, \"text/html\");\n var tds = xmlDoc.querySelector(\".privacy--text\");\n\n dialogPrivacyEl.querySelector(\".dialog-text\").innerHTML = tds.innerHTML;\n\n dialogPrivacy.show();\n\n LoadingHide(document.querySelector(\".wrapper\"));\n };\n\n xhttp.open(\"GET\", page);\n xhttp.send();\n };\n });\n\n // Dialog Gallery single image/video\n document.querySelectorAll(\".lg-btn\").forEach((btn) => {\n lightGallery(btn, {\n licenseKey: \"EB342F23-EEA8-48C2-B726-0CFCE5A4AECF\",\n plugins: [lgVideo],\n mode: \"lg-fade\",\n zoom: false,\n selector: \"this\",\n counter: false,\n download: false,\n getCaptionFromTitleOrAlt: false,\n zoomFromOrigin: false,\n hideBarsDelay: 3000,\n vimeoPlayerParams: {\n byline: 0,\n portrait: 0,\n dnt: true,\n },\n youTubePlayerParams: {\n modestbranding: 1,\n showinfo: 0,\n controls: 0,\n rel: 0,\n },\n });\n });\n\n // Dialog gallery multiple images\n if (container.querySelector(\".open-gallery\")) {\n let galleryButtons = container.querySelectorAll(\".open-gallery\");\n\n galleryButtons.forEach((btn) => {\n let gallery = document.getElementById(btn.getAttribute(\"data-gallery\"));\n\n let imagesCarousels = container.querySelectorAll(\".images-carousel\");\n if (imagesCarousels) {\n gallery.addEventListener(\"lgBeforeOpen\", () => {\n [...imagesCarousels].forEach((slider) => {\n slider.swiper.keyboard.disable();\n });\n });\n\n gallery.addEventListener(\"lgBeforeClose\", () => {\n [...imagesCarousels].forEach((slider) => {\n slider.swiper.keyboard.enable();\n });\n });\n }\n\n lightGallery(gallery, {\n mode: \"lg-fade\",\n plugins: [lgVideo],\n licenseKey: \"EB342F23-EEA8-48C2-B726-0CFCE5A4AECF\",\n selector: \"img\",\n counter: false,\n download: false,\n getCaptionFromTitleOrAlt: false,\n mobileSettings: {\n showCloseIcon: true,\n },\n vimeoPlayerParams: {\n byline: 0,\n portrait: 0,\n dnt: true,\n },\n youTubePlayerParams: {\n modestbranding: 1,\n showinfo: 0,\n controls: 0,\n rel: 0,\n },\n });\n\n btn.addEventListener(\"click\", function (e) {\n e.preventDefault();\n gallery.querySelector(\"img\").click();\n });\n });\n }\n\n let forms = container.querySelectorAll(\".thom-form\");\n document.querySelector(\".thom-form:not(#newsletterForm)\")\n ? document.querySelector(\".grecaptcha-badge\").classList.remove(\"hide\")\n : document.querySelector(\".grecaptcha-badge\").classList.add(\"hide\");\n if (forms) {\n forms.forEach((form) => {\n let validateForm = new Pristine(form, defaultPristineConfig);\n\n if (form.querySelector('.thom-form-selectfile')) {\n let inputContainer = form.querySelector('.thom-form-selectfile');\n var inputFile = null;\n var inputFileLabel = '';\n var inputFileLabelVal = '';\n\n inputFile = inputContainer.querySelector('.thom-form-selectfile__input_file');\n inputFileLabel = inputContainer.querySelector('.thom-form-selectfile__label');\n inputFileLabelVal = inputFileLabel.innerHTML;\n\n inputFile.onchange = function(e) {\n var fileName = '';\n if (this.files && this.files.length > 1) {\n fileName = (\n this.getAttribute('data-multiple-caption') || ''\n ).replace('{count}', this.files.length);\n }\n else if (e.target.value) {\n fileName = e.target.value.split('\\\\').pop();\n }\n\n if (fileName) {\n inputFileLabel.querySelector('span').innerHTML = fileName;\n }\n else {\n inputFileLabel.innerHTML = inputFileLabelVal;\n }\n }\n\n // Firefox bug fix\n inputFile.onfocus = function() {\n inputFile.classList.add('has-focus')\n }\n inputFile.onblur = function() {\n inputFile.classList.remove('has-focus')\n }\n }\n\n form.addEventListener(\"submit\", function (e) {\n e.preventDefault();\n\n LoadingShow(document.querySelector(\".wrapper\"));\n\n let valid = validateForm.validate(); // returns true or false\n\n if (form.querySelector(\".GoogleCaptchaToken\")) {\n var rSiteKey = form.querySelector(\"button[type=submit]\").dataset\n .sitekey;\n var rAction = form.querySelector(\"button[type=submit]\").dataset\n .action;\n // console.log(rSiteKey)\n grecaptcha.ready(function () {\n // console.log('grecaptcha.ready')\n grecaptcha\n .execute(rSiteKey, { action: rAction })\n .then(function (token) {\n // Add your logic to submit to your backend server here.\n // Response Form\n // console.log(token)\n form.querySelector(\".GoogleCaptchaToken\").value = token;\n FormSubmit(valid);\n });\n });\n } else {\n FormSubmit(valid);\n }\n\n let FormSubmit = (valid) => {\n if (valid) {\n let formData = new FormData(form);\n // console.log(Array.from(formData));\n fetch(form.getAttribute(\"action\"), {\n method: form.getAttribute(\"method\"),\n body: formData,\n })\n .then((response) => {\n // The API call was successful!\n if (response.ok) {\n return response.json();\n } else {\n return Promise.reject(response);\n }\n })\n .then(function (data) {\n // console.log(data)\n if (data.Status) {\n if (\n data.Url !== undefined &&\n data.Url !== null &&\n data.Url !== \"\"\n ) {\n window.location.href = data.Url;\n } else {\n if (data.Message) {\n MyThomFormResponseAction(data.Title, data.Message);\n }\n }\n LoadingHide(document.querySelector(\".wrapper\"));\n formReset(form);\n } else {\n if (data.Message) {\n MyThomFormResponseAction(data.Title, data.Message);\n }\n LoadingHide(document.querySelector(\".wrapper\"));\n }\n\n return true;\n })\n .catch(function (err) {\n // There was an error\n console.warn(\"Something went wrong.\", err);\n form\n .querySelector(\".thom-form__error\")\n .classList.remove(\"visuallyhidden\");\n form.classList.remove(\"loading\");\n });\n } else {\n form\n .querySelector(\".thom-form__error\")\n .classList.remove(\"visuallyhidden\");\n LoadingHide(document.querySelector(\".wrapper\"));\n }\n };\n });\n });\n }\n\n let alertButtons = document.querySelectorAll(\"[data-alert]\");\n [...alertButtons].forEach((button) => {\n button.addEventListener(\"click\", function (e) {\n e.preventDefault();\n var text = button.getAttribute(\"data-alert\");\n MyThomFormResponseAction(\"\", text);\n });\n });\n};\n\n// Back button and barba history\nif (history.scrollRestoration) {\n history.scrollRestoration = \"manual\";\n}\nlet scrollPosY = [0];\n\n/* CONTENT \nLOADED */\ndocument.addEventListener(\"DOMContentLoaded\", () => {\n barba.init({\n // We don't want \"synced transition\"\n // because both content are not visible at the same time\n // and we don't need next content is available to start the page transition\n // sync: true,\n // requestError: (trigger, action, url, response) => {\n // console.log(response)\n // },\n // logLevel: 'debug',\n // debug: true,\n timeout: 9000,\n prefetchIgnore: true,\n prevent: ({ el }) => el.hasAttribute(\"data-alert\"),\n transitions: [\n {\n // NB: `data` was not used.\n // But usually, it's safer (and more efficient)\n // to pass the right container as a paramater to the function\n // and get DOM elements directly from it\n async leave(data) {\n // console.log('transitions leave')\n // Not needed with async/await or promises\n // const done = this.async();\n await pageTransitionIn(data);\n // No more needed as we \"await\" for pageTransition\n // And i we change the transition duration, no need to update the delay…\n // await delay(1000)\n\n // Not needed with async/await or promises\n // done()\n\n // Loading screen is hiding everything, time to remove old content!\n data.current.container.remove();\n },\n\n async enter(data) {\n // console.log('transitions enter')\n await pageTransitionOut(\n data.next.container,\n data,\n data.next.namespace\n );\n },\n // Variations for didactical purpose…\n // Better browser support than async/await\n // enter({ next }) {\n // return pageTransitionOut(next.container);\n // },\n // More concise way\n // enter: ({ next }) => pageTransitionOut(next.container),\n\n async once(data) {\n // console.log('transitions once')\n // Navbar\n // console.log(data.next.container)\n await pageTransitionIn(data);\n await pageTransitionOut(document, data, data.next.namespace);\n\n await navbar(document);\n // await contentAnimation(data.next.container);\n },\n\n async afterLeave(data) {\n // Kill scrolltrigger instande\n let tlChildren = gsap.globalTimeline.getChildren();\n if (tlChildren) {\n tlChildren.forEach((child) => {\n child.kill();\n child = null;\n });\n }\n\n // Inject scripts on page\n const js = data.next.container.querySelectorAll(\"script\");\n [].forEach.call(js, function (script) {\n // console.log(script);\n window.eval(script.innerHTML);\n });\n\n // Menu Change\n document.body.classList.remove(\"navbar--opened\");\n enableBodyScroll(document);\n var newBody = data.next.html;\n var parser = new DOMParser();\n var doc = parser.parseFromString(newBody, \"text/html\");\n var newMenu = doc.querySelector(\".navbar .nav\").innerHTML;\n document.querySelector(\".navbar .nav\").innerHTML = newMenu;\n },\n },\n ],\n });\n});\n\nlet pageTransition = document.querySelector(\".pageTransition\");\nlet pageTransitionBlu = pageTransition.querySelector(\".blu-screen\");\nlet pageTransitionLoaderLogo = pageTransition.querySelector(\n \".pageTransitionLoaderLogo\"\n);\n\nfunction pageTransitionIn(data) {\n // console.log('page Transition In');\n // console.log(data);\n // GSAP methods can be chained and return directly a promise\n // but here, a simple tween is enough\n return gsap\n .timeline()\n .add(\"start\") // Use a label to sync screen and content animation\n .set(\n pageTransition,\n {\n yPercent: 0,\n opacity: 1,\n },\n \"start\"\n )\n .to(\n pageTransitionBlu,\n {\n duration: 0.35,\n opacity: 1,\n transformOrigin: \"top left\",\n ease: \"power2.out\",\n onStart: () => {\n pageTransitionLoaderLogo.classList.add(\"active\");\n },\n },\n \"start\"\n );\n // .to(pageTransitionWhite, {\n // duration: 0.8,\n // yPercent: 0,\n // transformOrigin: 'top left',\n // ease: 'power3.out',\n // }, 0.3, 'start')\n // .to(pageTransitionLoader, {\n // duration: 0.35,\n // opacity: 1,\n // ease: 'power1'\n // }, .1, 'start')\n}\n// Function to add and remove the page transition screen\nfunction pageTransitionOut(container, data, namespace) {\n // console.log('page Transition Out')\n\n if (data && data.trigger !== \"back\") {\n scrollPosY.push(barba.history.current.scroll.y);\n }\n\n if (data.trigger !== \"back\") {\n window.scrollTo(0, 0, \"instant\");\n } else {\n window.scrollTo(0, scrollPosY.pop());\n }\n\n if (timelineInterval) {\n clearInterval(timelineInterval);\n }\n\n // GSAP methods can be chained and return directly a promise\n return contentAnimation(container, data, namespace);\n}\n// Function to animate the content of each page\nfunction contentAnimation(container, data, namespace) {\n (async () => {\n // console.log('content Animation')\n\n let startMyApp = await App(container, data);\n let hideLoading = await pageTransitionLoadingHide(data);\n return {\n startMyApp,\n hideLoading,\n };\n })();\n}\n// Hide page transition Loading\nfunction pageTransitionLoadingHide(data) {\n // console.log(data)\n // pageTransition.classList.remove('show');\n\n gsap\n .timeline()\n .add(\"end\") // Use a label to sync screen and content animation\n /*\n .to(pageTransitionLoader, {\n duration: 0.4,\n opacity: 0,\n ease: 'power1'\n }, 'end')\n */\n .to(\n pageTransitionBlu,\n {\n duration: 0.4,\n opacity: 0,\n // transformOrigin: 'top left',\n ease: \"power2.out\",\n onStart: () => {\n if (data.trigger !== \"back\") {\n setTimeout(function () {\n window.scrollTo(0, 0, \"instant\");\n }, 10);\n }\n },\n onComplete: () => {\n // console.log('onComplete')\n // gsap.set(pageTransitionLoader, {\n // opacity: 0\n // })\n pageTransitionLoaderLogo.classList.remove(\"active\");\n\n // gsap.set(pageTransitionWhite, {\n // yPercent: -100\n // })\n // gsap.set(pageTransitionBlu, {\n // opacity: 0\n // })\n gsap.set(\n pageTransition,\n {\n yPercent: -100,\n opacity: 0,\n pointerEvents: \"none\",\n },\n \"end\"\n );\n },\n },\n 0.1,\n \"end\"\n );\n // .to(pageTransitionWhite, {\n // duration: 0.8,\n // yPercent: 100,\n // transformOrigin: 'top left',\n // ease: 'power3.out',\n\n // }, .1, 'end')\n}\n","// THOM Dropdown\n// import mCustomScrollbar from \"malihu-custom-scrollbar-plugin\";\n// import mousewheel from \"jquery-mousewheel\";\n\nconst thomDropdown = (container) => {\n\t/* MOBILE Action */\n\tvar init = function (elem) {\n\t\telem.querySelector('.label').onclick = (e) => {\n\t\t\te.preventDefault();\n\t\t\tcontainer.querySelectorAll('.thom-dropdown').forEach((dropdown) => {\n\t\t\t\tif(dropdown != elem){\n\t\t\t\t\tdropdown.classList.remove('is-open')\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\telem.classList.contains('is-open') ? elem.classList.remove('is-open') : elem.classList.add('is-open');\n\n\t\t\tscrollbar(elem);\n\t\t\t// return false;\n\t\t}\n\n\t\tdocument.addEventListener(\"click\", (e) => {\n\t\t\t// Check if the filter list parent element exist\n\t\t\tconst isClosest = e.target.closest('.thom-dropdown');\n\t\t\t// If `isClosest` equals falsy & popup has the class `show`\n\t\t\t// then hide the popup\n\t\t\tif (!isClosest) {\n\t\t\t\tcontainer.querySelectorAll('.thom-dropdown').forEach((dropdown) => {\n\t\t\t\t\tif(dropdown.classList.contains('is-open')){\n\t\t\t\t\t\tdropdown.classList.remove('is-open')\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\n\t\tif(elem.classList.contains('replaceVal')){\n\t\t\telem.querySelectorAll('.options--item').forEach((item) => {\n\t\t\t\titem.onclick = (e) => {\n\t\t\t\t\te.preventDefault();\n\t\t\t\t\telem.querySelector('.label--item').innerHTML = item.innerHTML;\n\t\t\t\t\telem.classList.remove('is-open');\n\t\t\t\t}\n\t\t\t})\n\t\t}\n\t}\n\n\tvar scrollbar = function (elem) {\n\t\tvar elems = elem.querySelectorAll('.options--item');\n\t\tvar elems_n = elems.length;\n\t\tvar elems_H = 0;\n\t\tvar elems_max = elem.dataset.max;\n\n\t\tif (elems_n > elems_max) {\n\t\t\tif (elems.length > elems_max) {\n\t\t\t\tfor(var i = 0; i < elems_n; i++){\n\t\t\t\t\telems_H += elems[i].offsetHeight;\n\t\t\t\t\t\n\t\t\t\t\tif (i == elems_max - 1) {\n\t\t\t\t\t\telem.querySelector('.scroller').style.height = elems_H + 'px';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tlet dropdown = container.getElementsByClassName('thom-dropdown');\n\tfor( var i = 0; i <= dropdown.length; i++) {\n\t\tvar _ = dropdown[i];\n\t\tif (_) {\n\t\t\tinit(_);\n\t\t}\n\t}\n}\nexport {thomDropdown};\n","\nconst formReset = (form) => {\n form.querySelector('.thom-form__error').classList.add('visuallyhidden');\n form.reset();\n};\n\nexport { formReset };\n\n"],"sourceRoot":""}