{"version":3,"sources":["js.cookie.js","accordion.js","button-group.js","common.js","contact-form-7.js","cookie-policy.js","map.js","owl.js","theme.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACnKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC1CA;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC7EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC3CA;AACA;AACA;AACA","file":"../application.js","sourcesContent":["/*!\n * JavaScript Cookie v2.2.1\n * https://github.com/js-cookie/js-cookie\n *\n * Copyright 2006, 2015 Klaus Hartl & Fagner Brack\n * Released under the MIT license\n */\n;(function (factory) {\n\tvar registeredInModuleLoader;\n\tif (typeof define === 'function' && define.amd) {\n\t\tdefine(factory);\n\t\tregisteredInModuleLoader = true;\n\t}\n\tif (typeof exports === 'object') {\n\t\tmodule.exports = factory();\n\t\tregisteredInModuleLoader = true;\n\t}\n\tif (!registeredInModuleLoader) {\n\t\tvar OldCookies = window.Cookies;\n\t\tvar api = window.Cookies = factory();\n\t\tapi.noConflict = function () {\n\t\t\twindow.Cookies = OldCookies;\n\t\t\treturn api;\n\t\t};\n\t}\n}(function () {\n\tfunction extend () {\n\t\tvar i = 0;\n\t\tvar result = {};\n\t\tfor (; i < arguments.length; i++) {\n\t\t\tvar attributes = arguments[ i ];\n\t\t\tfor (var key in attributes) {\n\t\t\t\tresult[key] = attributes[key];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}\n\n\tfunction decode (s) {\n\t\treturn s.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);\n\t}\n\n\tfunction init (converter) {\n\t\tfunction api() {}\n\n\t\tfunction set (key, value, attributes) {\n\t\t\tif (typeof document === 'undefined') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tattributes = extend({\n\t\t\t\tpath: '/'\n\t\t\t}, api.defaults, attributes);\n\n\t\t\tif (typeof attributes.expires === 'number') {\n\t\t\t\tattributes.expires = new Date(new Date() * 1 + attributes.expires * 864e+5);\n\t\t\t}\n\n\t\t\t// We're using \"expires\" because \"max-age\" is not supported by IE\n\t\t\tattributes.expires = attributes.expires ? attributes.expires.toUTCString() : '';\n\n\t\t\ttry {\n\t\t\t\tvar result = JSON.stringify(value);\n\t\t\t\tif (/^[\\{\\[]/.test(result)) {\n\t\t\t\t\tvalue = result;\n\t\t\t\t}\n\t\t\t} catch (e) {}\n\n\t\t\tvalue = converter.write ?\n\t\t\t\tconverter.write(value, key) :\n\t\t\t\tencodeURIComponent(String(value))\n\t\t\t\t\t.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);\n\n\t\t\tkey = encodeURIComponent(String(key))\n\t\t\t\t.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent)\n\t\t\t\t.replace(/[\\(\\)]/g, escape);\n\n\t\t\tvar stringifiedAttributes = '';\n\t\t\tfor (var attributeName in attributes) {\n\t\t\t\tif (!attributes[attributeName]) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tstringifiedAttributes += '; ' + attributeName;\n\t\t\t\tif (attributes[attributeName] === true) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// Considers RFC 6265 section 5.2:\n\t\t\t\t// ...\n\t\t\t\t// 3. If the remaining unparsed-attributes contains a %x3B (\";\")\n\t\t\t\t// character:\n\t\t\t\t// Consume the characters of the unparsed-attributes up to,\n\t\t\t\t// not including, the first %x3B (\";\") character.\n\t\t\t\t// ...\n\t\t\t\tstringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n\t\t\t}\n\n\t\t\treturn (document.cookie = key + '=' + value + stringifiedAttributes);\n\t\t}\n\n\t\tfunction get (key, json) {\n\t\t\tif (typeof document === 'undefined') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar jar = {};\n\t\t\t// To prevent the for loop in the first place assign an empty array\n\t\t\t// in case there are no cookies at all.\n\t\t\tvar cookies = document.cookie ? document.cookie.split('; ') : [];\n\t\t\tvar i = 0;\n\n\t\t\tfor (; i < cookies.length; i++) {\n\t\t\t\tvar parts = cookies[i].split('=');\n\t\t\t\tvar cookie = parts.slice(1).join('=');\n\n\t\t\t\tif (!json && cookie.charAt(0) === '\"') {\n\t\t\t\t\tcookie = cookie.slice(1, -1);\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tvar name = decode(parts[0]);\n\t\t\t\t\tcookie = (converter.read || converter)(cookie, name) ||\n\t\t\t\t\t\tdecode(cookie);\n\n\t\t\t\t\tif (json) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcookie = JSON.parse(cookie);\n\t\t\t\t\t\t} catch (e) {}\n\t\t\t\t\t}\n\n\t\t\t\t\tjar[name] = cookie;\n\n\t\t\t\t\tif (key === name) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} catch (e) {}\n\t\t\t}\n\n\t\t\treturn key ? jar[key] : jar;\n\t\t}\n\n\t\tapi.set = set;\n\t\tapi.get = function (key) {\n\t\t\treturn get(key, false /* read as raw */);\n\t\t};\n\t\tapi.getJSON = function (key) {\n\t\t\treturn get(key, true /* read as json */);\n\t\t};\n\t\tapi.remove = function (key, attributes) {\n\t\t\tset(key, '', extend(attributes, {\n\t\t\t\texpires: -1\n\t\t\t}));\n\t\t};\n\n\t\tapi.defaults = {};\n\n\t\tapi.withConverter = init;\n\n\t\treturn api;\n\t}\n\n\treturn init(function () {});\n}));\n","$(function() {\n\n accordionLineOffsets();\n\n\n var launch;\n window.onresize = function() {\n clearTimeout(launch);\n launch = setTimeout(accordionLineOffsets, 100);\n };\n\n // $('.his-accordion').on('shown.bs.collapse', accordionLineOffsets);\n // $('.his-accordion').on('hidden.bs.collapse', accordionLineOffsets);\n\n});\n\n\n\n\n\nfunction accordionLineOffsets() {\n\n // calculate line offset for first and last card\n\n $('.his-accordion__card--first').each(function() {\n var $this = $(this),\n line = $this.find('.his-accordion__connection'),\n point = $this.find('.his-accordion__point'),\n offset = point.offset().top - $this.offset().top + 4;\n\n line.css('top', offset);\n });\n\n $('.his-accordion__card--last').each(function() {\n var $this = $(this),\n line = $this.find('.his-accordion__connection'),\n point = $this.find('.his-accordion__point'),\n offset = point.offset().top - $this.offset().top + 4;\n\n line.css('height', offset);\n });\n\n}","","$(function() {\n\n setTimeout(function() {\n if (location.hash) {\n /* we need to scroll to the top of the window first, because the browser will always jump to the anchor first before JavaScript is ready, thanks Stack Overflow: http://stackoverflow.com/a/3659116 */\n window.scrollTo(0, 0);\n var scrollTarget = '#' + location.hash.split('#')[1];\n smoothScrollTo($(scrollTarget));\n }\n }, 1);\n \n // taken from: https://css-tricks.com/snippets/jquery/smooth-scrolling/\n $('a.scroll[href*=\"#\"]:not([href=\"#\"])').click(function() {\n if (location.pathname.replace(/^\\//,'') == this.pathname.replace(/^\\//,'') && location.hostname == this.hostname) {\n smoothScrollTo($(this.hash));\n return false;\n }\n });\n \n function smoothScrollTo(scrollTarget) {\n scrollTarget = scrollTarget.length ? scrollTarget : $('[name=' + this.hash.slice(1) +']');\n \n if (scrollTarget.length) {\n $('html,body').animate(\n {\n scrollTop: scrollTarget.offset().top - 66\n }, \n 1000, \n function(){\n $(scrollTarget).find('div.collapse').addClass('show');\n }\n );\n }\n }\n\n});","$(function () {\n function fileDownload() {\n window.open(atob($('#modalFormDownload').data('index')));\n Cookies.set('file-download-granted', true, { expires: 1 });\n }\n\n if ($('.wpcf7').length == 1 && $('.modal-form-dowload').length == 1) {\n document.addEventListener( 'wpcf7invalid', function( event ) {\n console.log('Invalid');\n }, false );\n document.addEventListener( 'wpcf7spam', function( event ) {\n console.log('Spam');\n }, false );\n document.addEventListener( 'wpcf7mailfailed', function( event ) {\n fileDownload();\n console.log('Mail fail');\n }, false );\n document.addEventListener( 'wpcf7mailsent', function( event ) {\n fileDownload();\n console.log('Mail sent');\n }, false ); \n }\n\n $('#modalFormDownload').on('show.bs.modal', function(e) {\n if (! $('#modalFormDownload').data('index')) {\n e.preventDefault();\n alert('Si รจ everificato un errore nel download del file. Contattare support@lelanet.it per ulteriori informazioni. Grazie.');\n return;\n }\n\n if (Cookies.get('file-download-granted')) {\n e.preventDefault();\n fileDownload();\n }\n });\n});","$(function () {\n var $body = $('body');\n\n if (! Cookies.get('cookies-accepted')) {\n setTimeout(function() {\n $body.addClass('cookie--opened');\n }, 1000);\n }\n\n $('.cookie-policy__close').on('click', function(e) {\n e.preventDefault();\n Cookies.set('cookies-accepted', true, { expires: 7 });\n $body.removeClass('cookie--opened');\n });\n});","/*\n(function( $ ) {\n\n 'use strict';\n\n // Map Markers\n var mapMarkers = [{\n address: \"217 Summit Boulevard, Birmingham, AL 35243\",\n html: \"Alabama Office
217 Summit Boulevard, Birmingham, AL 35243\",\n icon: {\n image: \"img/pin.png\",\n iconsize: [26, 46],\n iconanchor: [12, 46]\n }\n },{\n address: \"645 E. Shaw Avenue, Fresno, CA 93710\",\n html: \"California Office
645 E. Shaw Avenue, Fresno, CA 93710\",\n icon: {\n image: \"img/pin.png\",\n iconsize: [26, 46],\n iconanchor: [12, 46]\n }\n },{\n address: \"New York, NY 10017\",\n html: \"New York Office
New York, NY 10017\",\n icon: {\n image: \"img/pin.png\",\n iconsize: [26, 46],\n iconanchor: [12, 46]\n }\n }];\n\n // Map Initial Location\n var initLatitude = 40.75198;\n var initLongitude = -73.96978;\n\n // Map Extended Settings\n var mapSettings = {\n controls: {\n panControl: true,\n zoomControl: true,\n mapTypeControl: true,\n scaleControl: true,\n streetViewControl: true,\n overviewMapControl: true\n },\n scrollwheel: false,\n markers: mapMarkers,\n latitude: initLatitude,\n longitude: initLongitude,\n zoom: 4\n };\n\n var map = $('#googlemaps').gMap(mapSettings);\n\n var mapRef = $('#googlemaps').data('gMap.reference');\n\n // Styles from https://snazzymaps.com/\n var styles = [{\"featureType\":\"water\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#e9e9e9\"},{\"lightness\":17}]},{\"featureType\":\"landscape\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#f5f5f5\"},{\"lightness\":20}]},{\"featureType\":\"road.highway\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"color\":\"#ffffff\"},{\"lightness\":17}]},{\"featureType\":\"road.highway\",\"elementType\":\"geometry.stroke\",\"stylers\":[{\"color\":\"#ffffff\"},{\"lightness\":29},{\"weight\":0.2}]},{\"featureType\":\"road.arterial\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#ffffff\"},{\"lightness\":18}]},{\"featureType\":\"road.local\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#ffffff\"},{\"lightness\":16}]},{\"featureType\":\"poi\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#f5f5f5\"},{\"lightness\":21}]},{\"featureType\":\"poi.park\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#dedede\"},{\"lightness\":21}]},{\"elementType\":\"labels.text.stroke\",\"stylers\":[{\"visibility\":\"on\"},{\"color\":\"#ffffff\"},{\"lightness\":16}]},{\"elementType\":\"labels.text.fill\",\"stylers\":[{\"saturation\":36},{\"color\":\"#333333\"},{\"lightness\":40}]},{\"elementType\":\"labels.icon\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"transit\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#f2f2f2\"},{\"lightness\":19}]},{\"featureType\":\"administrative\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"color\":\"#fefefe\"},{\"lightness\":20}]},{\"featureType\":\"administrative\",\"elementType\":\"geometry.stroke\",\"stylers\":[{\"color\":\"#fefefe\"},{\"lightness\":17},{\"weight\":1.2}]}];\n\n var styledMap = new google.maps.StyledMapType(styles, {\n name: 'Styled Map'\n });\n\n mapRef.mapTypes.set('map_style', styledMap);\n mapRef.setMapTypeId('map_style');\n\n // Redraw Map On Resize\n $(window).afterResize(function(){\n $('#googlemaps').gMap(mapSettings);\n var mapRef = $('#googlemaps').data('gMap.reference');\n\n mapRef.mapTypes.set('map_style', styledMap);\n mapRef.setMapTypeId('map_style');\n });\n\n}).apply( this, [ jQuery ]);\n*/","$(document).ready( function() {\n \n $('.image-text .owl-carousel.manual').owlCarousel({\n 'items': 2\n });\n\n $('.owl-carousel.manual').owlCarousel({\n 'autoplay':true,\n 'responsive' : {\n 0 : {'items' : 1},\n 480 : {'items': 2},\n 768 : {'items' : 3},\n 991 : {'items' : 4}\n }\n });\n \n \n /*\n $('.owl-carousel.owl--dots').owlCarousel({\n dots: true,\n nav: false,\n responsive:{\n 0:{\n items:1\n },\n 600:{\n items:2\n }\n }\n });\n $('.owl-carousel.owl--nav').owlCarousel({\n dots: false,\n nav: true,\n responsive:{\n 0:{\n items:1\n },\n 600:{\n items:2\n }\n }\n });\n */\n});","$.extend(theme.PluginParallax.defaults, {\n parallaxHeight: '150%',\n speed: 1.2\n});"]}