{"version":3,"sources":["map.js","filter.js","contactForm.js","store.js","stores.js","articleSocialShare.js","socialButtons.js","timeline.js"],"names":["Vendd","Scripts","load","MessageBus","subscribe","Plugins","Messages","GoogleMapsLoaded","$","each","i","wrapper","$wrapper","mapOpts","zoom","maxZoom","scrollwheel","mapTypeId","google","maps","MapTypeId","ROADMAP","streetViewControl","mapTypeControl","infoWinOpts","maxWidth","markerOpts","title","LhApp","Context","Site","Name","icon","data","map","markers","markerCluster","create","coordinates","coords","c","cc","_","find","x","lat","lng","push","length","Error","firstLatLng","extend","div","attr","GMaps","addMarkers","reinit","setCenter","setZoom","bounds","LatLngBounds","getPosition","fitBounds","getMarker","position","toString","LatLng","findMarker","search","country","callback","Geocoder","geocode","address","results","status","GeocoderStatus","OK","latLng","geometry","location","closestMarker","lat1","lon1","pi","Math","PI","distances","closest","lat2","dLat","dLon","rLat1","rLat2","a","sin","cos","d","atan2","sqrt","find_closest_marker","removeMarkers","clearMarkers","openedInfoWindow","spot","infoWindow","html","infoWindowOpts","content","InfoWindow","marker","addMarker","event","addListener","close","panTo","panBy","setTimeout","open","mcOptions","gridSize","styles","url","height","width","textSize","textHeight","textColor","MarkerClusterer","trigger","$configuration","configuration","selectedFiltersUrl","document","URL","isAjaxLoad","get","text","remove","model","loading","addClass","removeClass","update","Handlebars","parse","JSON","bind","loopThrough","addClickHandlers","bindModel","FilterProduct","Changed","envelope","message","Failed","publishAsync","GetModel","UpdateQueryString","key","value","window","href","replace","re","RegExp","match","indexOf","pos","substring","separator","hash","split","rangeFilter","$slider","$from","$to","isPagerAjax","connectedList","urlMask","textMaskFrom","textMaskTo","minValue","floor","maxValue","ceil","currentMinValue","currentMaxValue","slider","range","min","max","values","slide","ui","val","stop","queryValueFrom","queryValueTo","undefined","$connectedList","first","config","getConfiguration","filter","Enumerable","From","LoaderData","Filters","Where","Key","DefaultIfEmpty","FirstOrDefault","FromValue","ToValue","control","response","sSelect","change","$this","this","$selected","queryName","queryValue","name","exec","decodeURIComponent","getQueryStringValueByName","hasClass","click","e","preventDefault","on","$submitButton","form","formData","$form","firstName","lastName","email","reCaptchaCode","captchaWidgetId","$captchaElement","$captchaContainer","captchaEnabled","initRecaptcha","sitekey","grecaptcha","render","recaptchaCallback","validateRecaptcha","resetRecaptcha","reset","removeRecaptcha","res","hide","show","onSuccess","success","code","onFailure","checkConsents","checkboxes","el","chkbx","type","source","approved","prop","ConsentsManager","insertConsents","submit","Contact","Submit","cf","stopPropagation","val1","validate","val2","IsConsentsEnabled","keyCode","toLowerCase","fieldName","validationOptions","required","isEmail","consentType","checkboxRequired","validationEngine","fancybox","SubmitSuccess","SubmitFailure","RecaptcaLoaded","Consents","InsertConsents","$page","$partner","$map","opts","$stores","currentState","state","stores","formmodel","storemodel","run","languageId","continent","city","area","postalCode","Store","Controller","initState","Refine","propButton","isEqual","newState","getState","mCustomScrollbar","scrollbarPosition","scrollInertia","theme","mouseWheel","SetCity","SetArea","$list","$partners","partner","coord","SetContinent","SetCountry","parseInt","SetType","target","animate","scrollTop","offset","top","clone","appendTo","UpdateForm","UpdateStores","isElementInViewport","initSocialShare","facebookUrl","twitterUrl","pinterestUrl","googleplusUrl","forwardEmail","linkUrl","origin","append","addthis","init","timelines","eventsMinDistance","updateSlide","timelineComponents","timelineTotWidth","string","translateValue","getTranslateValue","eventsWrapper","wrapperWidth","Number","timelineWrapper","css","translateTimeline","showNewContent","visibleContent","eventsContent","next","prev","selectedDate","newEvent","parent","children","updateFilling","fillingLine","updateVisibleContent","updateOlderEvents","updateTimelinePosition","eventStyle","getComputedStyle","eventLeft","getPropertyValue","timelineWidth","timelineTranslate","totWidth","setTransformValue","timelineNavigation","selectedEvent","filling","eventWidth","scaleValue","eventDate","selectedContent","selectedContentHeight","index","classEnetering","classLeaving","one","updateTimelineBoxNavigation","prevAll","end","nextAll","timeline","timelineStyle","element","property","style","daydiff","second","round","elementInViewport","offsetTop","left","offsetLeft","offsetWidth","offsetHeight","offsetParent","pageYOffset","innerHeight","pageXOffset","innerWidth","checkMQ","querySelector","prevTitle","nextTitle","timelineEvents","events","prevRangeEnd","dateArrays","dateDistances","wasPrevRange","currentRangeStart","currentRangeEnd","singleDate","dateComp","isRange","String","years","Date","distance","newDate","timelineDates","timelineDistances","initDatesAndDistances","pixels","distanceNorm","eq","setDatePosition","totalWidth","last","setTimelineWidth","mq","keyup","which","date","initTimeline"],"mappings":"AAAAA,MAAAC,QAAAC,KAAA,WAgOAF,MAAAG,WAAAC,UAAAJ,MAAAK,QAAAC,SAAAC,iBAAA,aA9NA,WACAC,EAAA,wCAAAC,KAAA,SAAAC,EAAAC,SACA,IAAAC,SAAAJ,EAAAG,SAIAA,QAAAE,QAAA,CACAC,KAAA,GACAC,QAAA,GACAC,aAAA,EACAC,UAAAC,OAAAC,KAAAC,UAAAC,QACAC,mBAAA,EACAC,gBAAA,GAGAZ,QAAAa,YAAA,CACAC,SAAA,KAGAd,QAAAe,WAAA,CACAC,MAAAC,MAAAC,QAAAC,KAAAC,KACAC,KAAApB,SAAAqB,KAAA,WAGAtB,QAAAuB,IAAA,KAEAvB,QAAAwB,QAAA,GAEAxB,QAAAyB,cAAA,KAEAzB,QAAA0B,OAAA,SAAAC,aACA,IAAAC,OAAA,GAQA,GANA/B,EAAA8B,aAAA7B,KAAA,SAAA+B,EAAAC,IACAC,EAAAC,KAAAJ,OAAA,SAAAK,GAAA,OAAAA,EAAAC,MAAAJ,GAAAI,KAAAD,EAAAE,KAAAL,GAAAK,OAEAP,OAAAQ,KAAAN,MAGA,GAAAF,OAAAS,OACA,MAAA,IAAAC,MAAA,kBAEA,IAAAC,YAAAX,OAAA,GAEA1B,QAAA,GACAL,EAAA2C,QAAA,EAAAtC,QAAAF,QAAAE,QAAA,CACAuC,IAAA,IAAAxC,SAAAyC,KAAA,MACA1B,MAAAuB,YAAAvB,MACAkB,IAAAK,YAAAL,IACAC,IAAAI,YAAAJ,MAGAnC,QAAAuB,IAAA,IAAAoB,MAAAzC,SAEAF,QAAA4C,WAAAhB,SAGA5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ACA,IAAAgO,GAAA9B,UACA,UAAA8B,IAAAvF,eAAAX,mBAAAC,iBAAA,UAIA/V,EAAA6H,UAAAoU,MAAA,SAAAzV,OACA,MAAAA,MAAA0V,OAAA3C,kBAAAR,SAAA/Q,IAAA,IACAyO,eAAAX,mBAAAC,iBAAA,QACA,MAAAvP,MAAA0V,OAAA3C,kBAAAR,SAAA/Q,IAAA,KACAyO,eAAAX,mBAAAC,iBAAA,UAIA4C,4BAAA7C,mBAAAQ,gBAAAnU,KAAA,aAAA2T,mBAAAa,cAAAxU,KAAA,cAEA2T,mBAAAa,cAAA3I,GAAA,QAAA,eAAA,SAAAF,GACAqO,KAAAnc,EAAAoN,MAAAjL,KAAA,SAAA8F,OACAjI,EAAAoN,MAAAQ,SAAA,QACAoI,OAAA,OAEAA,OAAA,OAEAF,mBAAAK,cAAAhU,KAAA,gBAAAga,KAAA,MAAAtO,QACA,IAAAiJ,aAAAhB,mBAAAK,cAAAhU,KAAA,aACA4U,SAAA,QAAAf,OAAAc,aAAAE,OAAA,MAAAJ,KAAA,MAAAK,SAAA,KAAAH,aAAAE,OAAA,MAAAH,KAAA,MAAAI,SAAA,KACAK,uBAAAtB,OAAAe,SAAAjB,wBA1EAsG,CAAAzG","file":"scripts-corporate.js","sourcesContent":["Vendd.Scripts.load(function () {\n\n var run = function () {\n $('.x-control.x-map[data-control=\"map\"]').each(function (i, wrapper) {\n var $wrapper = $(wrapper);\n\n var config = {};\n\n wrapper.mapOpts = {\n zoom: 13,\n maxZoom: 17,\n scrollwheel: false,\n mapTypeId: google.maps.MapTypeId.ROADMAP,\n streetViewControl: false,\n mapTypeControl: false\n };\n\n wrapper.infoWinOpts = {\n maxWidth: 440\n };\n\n wrapper.markerOpts = {\n title: LhApp.Context.Site.Name,\n icon: $wrapper.data('marker')\n };\n\n wrapper.map = null;\n\n wrapper.markers = [];\n\n wrapper.markerCluster = null;\n\n wrapper.create = function (coordinates) {\n var coords = [];\n\n $(coordinates).each(function (c, cc) {\n var existsCoord = _.find(coords, function (x) { return x.lat === cc.lat && x.lng == cc.lng });\n if (!existsCoord)\n coords.push(cc);\n });\n\n if (coords.length == 0)\n throw new Error('no coordinates');\n\n var firstLatLng = coords[0];\n\n var mapOpts = {};\n $.extend(true, mapOpts, wrapper.mapOpts, {\n div: '#' + $wrapper.attr('id'),\n title: firstLatLng.title,\n lat: firstLatLng.lat,\n lng: firstLatLng.lng\n });\n\n wrapper.map = new GMaps(mapOpts);\n\n wrapper.addMarkers(coords);\n };\n\n wrapper.reinit = function (coordinates) {\n var coords = [];\n\n $(coordinates).each(function (c, cc) {\n var existsCoord = _.find(coords, function (x) { return x.lat === cc.lat && x.lng == cc.lng });\n if (!existsCoord)\n coords.push(cc);\n });\n\n wrapper.addMarkers(coords);\n };\n\n wrapper.setCenter = function () {\n if (wrapper.markers.length == 0) {\n wrapper.map.setZoom(3);\n return;\n }\n\n if ($(\".contact-page\").length > 0 && wrapper.markers.length == 1) {\n wrapper.map.setZoom(13);\n return;\n }\n\n var bounds = new google.maps.LatLngBounds();\n for (i = 0; i < wrapper.markers.length; i++) {\n bounds.extend(wrapper.markers[i].getPosition());\n }\n wrapper.map.fitBounds(bounds);\n\n if (wrapper.markers.length == 1) {\n wrapper.map.setZoom(13);\n }\n }\n\n wrapper.getMarker = function (coordinates) {\n var marker = _.find(wrapper.markers, function (x) { return x.position.toString() === new google.maps.LatLng(coordinates.lat, coordinates.lng).toString() });\n return marker;\n };\n\n function find_closest_marker(lat1, lon1) {\n var pi = Math.PI;\n var R = 6371; //equatorial radius\n var distances = [];\n var closest = -1;\n\n for (i = 0; i < wrapper.markers.length; i++) {\n var lat2 = wrapper.markers[i].position.lat();\n var lon2 = wrapper.markers[i].position.lng();\n\n var chLat = lat2 - lat1;\n var chLon = lon2 - lon1;\n\n var dLat = chLat * (pi / 180);\n var dLon = chLon * (pi / 180);\n\n var rLat1 = lat1 * (pi / 180);\n var rLat2 = lat2 * (pi / 180);\n\n var a = Math.sin(dLat / 2) * Math.sin(dLat / 2) +\n Math.sin(dLon / 2) * Math.sin(dLon / 2) * Math.cos(rLat1) * Math.cos(rLat2);\n var c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n var d = R * c;\n\n distances[i] = d;\n if (closest == -1 || d < distances[closest]) {\n closest = i;\n }\n }\n\n return wrapper.markers[closest];\n }\n\n wrapper.findMarker = function (search, country, callback) {\n var geocoder = new google.maps.Geocoder();\n geocoder.geocode({ 'address': search + ', ' + (country || 'GR') }, function (results, status) {\n if (status == google.maps.GeocoderStatus.OK) {\n var latLng = results[0].geometry.location;\n var closestMarker = find_closest_marker(latLng.lat(), latLng.lng());\n callback(closestMarker, null);\n } else {\n callback(null, new Error('closest marker not found'));\n }\n });\n };\n\n wrapper.removeMarkers = function () {\n wrapper.markerCluster.clearMarkers();\n wrapper.map.removeMarkers();\n wrapper.markers = [];\n };\n\n wrapper.addMarkers = function (coords) {\n\n var openedInfoWindow;\n\n $(coords).each(function (i, spot) {\n var infoWindow = null;\n if (spot.html && spot.html != '') {\n var infoWindowOpts = {};\n $.extend(true, infoWindowOpts, wrapper.infoWinOpts, {\n content: spot.html\n });\n infoWindow = new google.maps.InfoWindow(infoWindowOpts);\n }\n\n var markerOpts = {};\n $.extend(true, markerOpts, wrapper.markerOpts, {\n title: spot.title,\n lat: spot.lat,\n lng: spot.lng,\n infoWindow: infoWindow\n\n });\n\n var marker = wrapper.map.addMarker(markerOpts);\n wrapper.markers.push(marker);\n\n if ($('.store-locator-page').length > 0 || $('.home-page').length > 0) {\n google.maps.event.addListener(marker, 'click', function () {\n if (typeof openedInfoWindow != 'undefined' && openedInfoWindow) {\n openedInfoWindow.close();\n openedInfoWindow = null;\n }\n wrapper.map.setZoom(17);\n wrapper.map.map.panTo(marker.getPosition());\n wrapper.map.map.setCenter(marker.getPosition());\n wrapper.map.panBy(0, -70);\n setTimeout(function () { infoWindow.open(wrapper.map.map, marker); }, 500);\n openedInfoWindow = infoWindow;\n });\n }\n\n if ($('.contact-page').length > 0) {\n infoWindow.open(wrapper.map.map, marker);\n wrapper.map.panBy(0, -120);\n }\n\n });\n\n if ($('.store-locator-page').length > 0 || $('.home-page').length > 0) {\n var clusterStyles = [\n {\n url: '/themes/templatetheme/images/grouped-markers.png',\n height: 56,\n width: 42,\n textSize: 16,\n textHeight: 47,\n textColor: 'white',\n },\n\n ];\n\n mcOptions = { gridSize: 70, maxZoom: 13, styles: clusterStyles };\n wrapper.markerCluster = new MarkerClusterer(wrapper.map.map, wrapper.markers, mcOptions);\n }\n\n wrapper.setCenter();\n };\n\n wrapper.open = function (marker) {\n google.maps.event.trigger(marker, 'click');\n };\n });\n };\n\n Vendd.MessageBus.subscribe(Vendd.Plugins.Messages.GoogleMapsLoaded, 'mapControl', run);\n});","Vendd.Scripts.load(function () {\n var $wrapper = $('.js-filters-wrapper'),\n wrapper,\n $configuration, configuration,\n selectedFiltersUrl = document.URL,\n isAjaxLoad = $wrapper.data('ajax-load') === \"True\";\n\n if ($wrapper.length < 1)\n return;\n\n wrapper = $wrapper.get(0);\n\n $configuration = $('#configuration', $wrapper);\n configuration = $configuration.text();\n $configuration.remove();\n\n function UpdateQueryString(key, value, url) {\n\n if (!url) url = window.location.href;\n\n // dirty fix for new url rewriter, remove page number to go back to page 1\n url = url.replace(/\\/{1}p{1}[0-9]+/, '');\n\n\n //Vendd.MessageBus.publishAsync(wrapper, new Vendd.FilterProduct.Messages.GetNextFilter());\n\n var re = new RegExp(\"([?|&])\" + key + \"=.*?(&|#|$)\", \"gi\");\n\n if (url.match(re)) {\n if (value)\n var value = url.replace(re, '$1' + key + \"=\" + value + '$2');\n else\n var value = url.replace(re, '$2');\n\n if (value.indexOf('?') == -1) { // convert first paramter separator to query params separator\n var pos = value.indexOf('&');\n if (pos != -1) // has at least one parameter\n value = value.substring(0, pos - 1) + '?' + value.substring(pos + 1, value.length);\n }\n return value;\n }\n else {\n if (value) {\n var separator = url.indexOf('?') !== -1 ? '&' : '?',\n hash = url.split('#');\n url = hash[0] + separator + key + '=' + value;\n if (hash[1]) url += '#' + hash[1];\n return url;\n }\n else\n return url;\n }\n };\n\n function getQueryStringValueByName(name) {\n name = name.replace(/[\\[]/, \"\\\\\\[\").replace(/[\\]]/, \"\\\\\\]\");\n var regexS = \"[\\\\?&]\" + name + \"=([^&#]*)\";\n var regex = new RegExp(regexS);\n var results = regex.exec(window.location.search);\n if (results == null)\n return \"\";\n else\n return decodeURIComponent(results[1].replace(/\\+/g, \" \"));\n };\n\n function removeValueFromCommaSeparatedString(list, value, separator) {\n separator = separator || \",\";\n var values = list.split(separator);\n for (var i = 0; i < values.length; i++) {\n if (values[i] == value.replace(/\\s+/g, '-')) {\n values.splice(i, 1);\n return values.join(separator);\n }\n }\n return list;\n };\n\n function loopThrough() {\n $('.x-control[data-control=\"filter\"][data-type=\"range\"]').each(function (i, rangeFilter) {\n var $wrapper = $(rangeFilter);\n var $slider = $wrapper.find('*[data-slider]');\n var $from = $wrapper.find('input[data-text].from');\n var $to = $wrapper.find('input[data-text].to');\n\n var isPagerAjax = $wrapper.data('ajax');\n var connectedList = $wrapper.data('list');\n\n var urlMask = $slider.data('mask');\n urlMask = urlMask.split('?')[1];\n var textMaskFrom = $from.data('mask');\n var textMaskTo = $to.data('mask');\n\n var minValue = Math.floor($slider.data('min'));\n var maxValue = Math.ceil($slider.data('max'));\n var currentMinValue = Math.floor($slider.data('from'));\n var currentMaxValue = Math.ceil($slider.data('to'));\n\n $slider.slider({\n range: true,\n min: minValue,\n max: maxValue,\n values: [currentMinValue, currentMaxValue],\n slide: function (event, ui) {\n $from.val(textMaskFrom.replace(\"((from))\", ui.values[0]));\n $to.val(textMaskTo.replace(\"((to))\", ui.values[1]));\n },\n stop: function (event, ui) {\n if (isPagerAjax) {\n if (connectedList === undefined)\n throw 'Connected list not declared for filter ' + $wrapper.attr('id');\n\n var $connectedList = $('.x-control[data-control=\"list\"][data-list=\"' + connectedList + '\"]').first();\n\n var config = $connectedList.get(0).getConfiguration();\n\n var filterIdentifier = 'Price';\n\n var filter = $.Enumerable.From(config.LoaderData.Filters)\n .Where(function (x) { return x.Key == filterIdentifier; })\n .DefaultIfEmpty(null).FirstOrDefault();\n\n if (filter === null) {\n throw 'Filter not found on connected list: ' + filterIdentifier;\n }\n if (ui.values[0] === minValue && ui.values[1] === maxValue) {\n filter.FromValue = null;\n filter.ToValue = null;\n }\n else {\n filter.FromValue = ui.values[0];\n filter.ToValue = ui.values[1];\n }\n $connectedList.get(0).load(config);\n }\n else {\n var queryNameFrom = 'price-from';\n var queryValueFrom = ui.values[0];\n var queryNameTo = 'price-to';\n var queryValueTo = ui.values[1];\n selectedFiltersUrl = UpdateQueryString(queryNameFrom, queryValueFrom, selectedFiltersUrl);\n selectedFiltersUrl = UpdateQueryString(queryNameTo, queryValueTo, selectedFiltersUrl);\n\n $('.apply-button', $('.js-filters-wrapper')).addClass('pulse-button');\n\n return false;\n }\n }\n });\n\n if (isPagerAjax) {\n if (connectedList === undefined)\n throw 'Connected list not declared for filter ' + $wrapper.attr('id');\n\n var $list = $('.x-control[data-control=\"list\"][data-list=\"' + connectedList + '\"]').first();\n $list.get(0).bind('dataload', function (control, response) {\n // here load self to get the new minValue && maxValue!\n // as a filter, load self with the query of all the rest filters without the self ones!\n });\n }\n\n $from.val(textMaskFrom.replace(\"((from))\", $slider.slider(\"values\", 0)));\n $to.val(textMaskTo.replace(\"((to))\", $slider.slider(\"values\", 1)));\n\n });\n }\n\n function addClickHandlers() {\n // Single Value Allowed\n $('select', $wrapper).sSelect().change(function () {\n var $this = $(this);\n var $selected = $(\"option:selected\", $this);\n var queryName = $selected.attr(\"data-query\");\n var queryValue = $selected.attr(\"data-value\");\n var items = getQueryStringValueByName(queryName);\n selectedFiltersUrl = UpdateQueryString(queryName, queryValue, selectedFiltersUrl);\n\n if ($wrapper.hasClass('js-auto-submit')) {\n window.location.href = selectedFiltersUrl;\n } else {\n $('.apply-button', $wrapper).addClass('pulse-button')\n }\n\n return false;\n });\n\n $(\".js-apply-filters\").click(function(e) {\n e.preventDefault;\n window.location.href = selectedFiltersUrl;\n });\n\n $(\".js-clear-all\").click(function (e) {\n\t\t\te.preventDefault();\n\t\t\tvar url = this.href;\n var href = url.substring(0,url.indexOf('?'))\n if (href) {\n window.location.href = href;\n }else {\n window.location.href = url;\n }\n });\n\n\n wrapper.open = function () {\n $('.js-filter-toggle-btn', $wrapper).removeClass('icon-plus2').addClass('icon-minus active');\n $('.js-filter-container',$wrapper).addClass('opened');\n };\n\n wrapper.close = function () {\n $('.js-filter-toggle-btn', $wrapper).removeClass('icon-minus active').addClass('icon-plus2');\n $('.js-filter-container',$wrapper).removeClass('opened');\n };\n\n $wrapper.on('click', '.js-filter-toggle-btn', function (e) {\n e.preventDefault();\n var $this = $(this);\n\n if ($this.hasClass('active')) {\n wrapper.close();\n } else {\n wrapper.open();\n }\n });\n }\n\n // if ($(window).width() < 960) {\n // closeExpandedFilters();\n // }\n\n // $(window).resize(_.debounce(function () {\n // initFilterExpander();\n // }, 50));\n\n function initFilterExpander() {\n if ($(window).width() < 960) {\n if (!$wrapper.hasClass('mobile')){\n closeExpandedFilters();\n $wrapper.addClass('mobile');\n }\n } else {\n if ($wrapper.hasClass('mobile')) {\n $('.filter', $wrapper).addClass('expanded').find('.title').removeClass('icon-arrow-down').addClass('icon-arrow-up');\n $wrapper.removeClass('mobile');\n }\n\n }\n }\n\n function closeExpandedFilters() {\n $('.filter.expanded', $wrapper).removeClass('expanded').find('.title').removeClass('icon-arrow-up').addClass('icon-arrow-down');\n $wrapper.addClass('mobile');\n }\n\n function seeMoreToggle(numOfVisible) {\n $('.filters .filter').each(function () {\n if ($(this).find('.twoColumns.wider').children('li').length > numOfVisible) {\n $(this).find(\".show-more\").addClass('visible');\n }\n });\n $(\".filter-toggle-btn\").click(function () {\n if ($(this).hasClass('show-more'))\n $(this).removeClass('show-more icon-arrow-down').addClass('show-less icon-arrow-up').closest('.filter').addClass('show-all');\n else {\n $(this).removeClass('show-less icon-arrow-up').addClass('show-more icon-arrow-down').closest('.filter').removeClass('show-all');\n }\n });\n }\n\n if (isAjaxLoad) {\n\n var model = null;\n wrapper.loading = function loading(loading) {\n if (loading) {\n $wrapper.addClass('x-loading');\n } else {\n $wrapper.removeClass('x-loading');\n };\n };\n\n wrapper.update = function update() {\n wrapper.loading(true);\n\n var html = Vendd.Handlebars.parse(\"filters\", JSON.parse(model));\n wrapper.bind(html, model);\n\n loopThrough();\n addClickHandlers();\n\n wrapper.loading(false);\n };\n\n\n wrapper.bind = function bind(html, bindModel) {\n $wrapper.html(html);\n };\n\n\n Vendd.MessageBus.subscribe(Vendd.FilterProduct.Messages.Changed, wrapper, function (envelope) {\n model = envelope.message.data;\n wrapper.update();\n });\n\n Vendd.MessageBus.subscribe(Vendd.FilterProduct.Messages.Failed, wrapper, function (envelope) {\n wrapper.loading(false);\n });\n\n //Vendd.MessageBus.subscribe(Vendd.FilterProduct.Messages.ShowMessages, wrapper, function (envelope) {\n\n // var messages = envelope.message.data.resultMessages;\n // if (messages.length > 0) {\n // var message = messages.join('\\n');\n // alert(message);\n // }\n //});\n\n Vendd.MessageBus.publishAsync(wrapper, new Vendd.FilterProduct.Messages.GetModel(configuration));\n\n } else {\n\n loopThrough();\n\n addClickHandlers();\n\n // seeMoreToggle(12);\n\n }\n\n});\n\n","Vendd.Scripts.load(function () {\n var $form = $('.x-contact-form'), $submitButton, form, formData;\n\n if ($form.length < 1)\n return;\n\n $submitButton = $('.js-submit-button', $form);\n\n form = $form.get(0);\n\n formData = {\n firstName: \"\",\n lastName: \"\",\n email: \"\",\n message: \"\",\n reCaptchaCode: \"\"\n };\n\n // reCAPTCHA\n var captchaId = \"contactCaptcha\";\n var captchaWidgetId;\n var $captchaElement = $form.find(\"#\" + captchaId);\n var $captchaContainer = $form.find('.recaptcha-container');\n var captchaEnabled = $captchaElement.length > 0 ? true : false;\n\n\n form.initRecaptcha = function () {\n\n if (!captchaEnabled)\n return;\n\n var sitekey = $captchaElement.data(\"sitekey\");\n if (sitekey) {\n captchaEnabled = true;\n captchaWidgetId = grecaptcha.render(captchaId, {\n 'sitekey': sitekey,\n 'callback': form.recaptchaCallback\n });\n }\n };\n\n form.recaptchaCallback = function () {\n form.validateRecaptcha();\n };\n\n form.resetRecaptcha = function () {\n // Website must only verify the user's reCAPTCHA response token (g-recaptcha-response) once. \n // If a verify attempt has been made with a particular token, it cannot be used again. \n // Call grecaptcha.reset() to ask the end user to verify with reCAPTCHA again.\n if (captchaEnabled)\n grecaptcha.reset(captchaWidgetId);\n };\n\n form.removeRecaptcha = function () {\n $captchaElement.remove();\n };\n\n form.validateRecaptcha = function () {\n if (!captchaEnabled)\n return true;\n\n formData.reCaptchaCode = $captchaElement.find('.g-recaptcha-response').val();\n\n var res = false;\n\n if (formData.reCaptchaCode) {\n $captchaContainer.find('.error-recaptcha').hide();\n res = true;\n }\n else {\n $captchaContainer.find('.error-recaptcha').show();\n }\n\n return res;\n };\n\n\n form.loading = function (loading) {\n if (loading) {\n $form.addClass('x-loading');\n } else {\n $form.removeClass('x-loading');\n }\n };\n\n form.onSuccess = function (envelope) {\n form.loading(false);\n\n var data = envelope.message.data;\n\n if (data.success && data.code === \"Contact_OperationSuccesful\") {\n $('.js-error', $form).hide();\n $('.js-content', $form).hide();\n\n $('.js-success', $form).show();\n\n form.removeRecaptcha();\n } else {\n $('.js-error', $form).show();\n form.resetRecaptcha();\n };\n };\n\n form.onFailure = function (envelope) {\n form.loading(false);\n\n $('.js-error', $form).show();\n };\n\n form.checkConsents = function () {\n var data = [];\n\n var checkboxes = $('.form-row.consent.checkbox');\n $.each(checkboxes, function (e, el) {\n var chkbx = $('.checkbox-wrapper input', el);\n data.push({ type: chkbx.attr('id'), source: 'Contact Form', approved: chkbx.prop(\"checked\") });\n });\n\n if (data.length > 0) {\n window.ConsentsManager.insertConsents(data);\n } else {\n form.submit();\n }\n }\n form.submit = function () {\n form.loading(true);\n\n Vendd.MessageBus.publishAsync(form, new Vendd.Contact.Messages.Submit(\n formData.email,\n formData.firstName,\n formData.lastName,\n formData.message,\n false,\n '', '', '', '', '', '',\n formData.reCaptchaCode));\n };\n\n form.reset = function () {\n $('.js-error', $form).hide();\n $('.js-success', $form).hide();\n $('.js-content', $form).show();\n\n $('input[name=\"firstName\"]', $form).val(\"\");\n $('input[name=\"lastName\"]', $form).val(\"\");\n $('input[name=\"email\"]', $form).val(\"\");\n $('input[name=\"message\"]', $form).val(\"\");\n\n cf.reset();\n };\n\n $form.on('click', '.js-submit-button', function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n var val1 = cf.validate();\n var val2 = form.validateRecaptcha();\n\n if (val1 && val2) {\n if (LhApp.Context.IsConsentsEnabled) {\n form.checkConsents();\n } else {\n form.submit();\n }\n }\n });\n\n $form.on('click', '.js-reset-button', function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n form.reset();\n });\n\n $form.on('keyup', 'input[name], textarea[name]', function (e) {\n if (e.keyCode == 13) {\n\n if ($(this).prop(\"tagName\").toLowerCase() === \"textarea\")\n return true;\n\n e.preventDefault();\n e.stopPropagation();\n\n $submitButton.click();\n\n return;\n };\n\n var $this = $(this);\n var fieldName = $this.attr('name');\n\n formData[fieldName] = $this.val();\n\n cf.validate(fieldName);\n });\n\n //init validation options\n var validationOptions = {\n firstName: {\n required: 'firstname-required'\n },\n lastName: {\n required: 'lastname-required'\n },\n email: {\n required: 'email-required',\n isEmail: 'email-invalid'\n },\n message: {\n required: 'message-required'\n }\n };\n\n //add consent validations\n $.each($('div.consent.checkbox[data-required]'), function (e, el) {\n var consentType = $('input', el).attr('name');\n validationOptions[consentType] = {\n checkboxRequired: consentType + '-required'\n };\n });\n\n\n $form.validationEngine(validationOptions);\n var cf = $form.data('validationEngine');\n\n if ($(\".view-terms\", $form).length > 0) {\n $(\".view-terms\", $form).fancybox();\n }\n\n Vendd.MessageBus.subscribe(Vendd.Contact.Messages.SubmitSuccess, form, form.onSuccess);\n Vendd.MessageBus.subscribe(Vendd.Contact.Messages.SubmitFailure, form, form.onFailure);\n Vendd.MessageBus.subscribe(Vendd.Plugins.Messages.RecaptcaLoaded, form, form.initRecaptcha);\n Vendd.MessageBus.subscribe(Vendd.Consents.Messages.InsertConsents, form, form.submit);\n});\n\n","Vendd.Scripts.load(function () {\n\n var showMap = function () {\n var $page = $('.store-page');\n\n if ($page.length < 1)\n return;\n\n var $partner = $('.x-partner-box', $page);\n var $map = $('.x-google-map', $page);\n\n if ($map.length < 1 || $partner.length < 1)\n return;\n\n var opts = {\n lat: $partner.data('latitude'),\n lng: $partner.data('longitude'),\n html: $('.box-info', $partner).html()\n };\n\n $map.get(0).create([opts]);\n };\n\n Vendd.MessageBus.subscribe(Vendd.Plugins.Messages.GoogleMapsLoaded, 'storeMap', showMap);\n});","Vendd.Scripts.load(function () {\n\n var $wrapper = $('.x-store-locator'),\n $form, $stores, $map,\n $submitButton, $resetButton,\n currentState, state,\n wrapper, form, stores, map;\n\n var formmodel = null;\n var storemodel = null;\n\n var run = function () {\n\n if ($wrapper.length < 1)\n return false;\n\n $form = $('.x-store-locator-form', $wrapper);\n $stores = $('.x-store-locator-stores', $wrapper);\n $map = $('.x-google-map', $wrapper);\n\n wrapper = $wrapper.get(0);\n form = $form.get(0);\n stores = $stores.get(0);\n map = $map.get(0);\n\n if (typeof form == 'undefined')\n return false;\n\n currentState = {\n languageId: $wrapper.data('language-id'),\n continent: $('select[name=\"continent\"]', $form).length > 0 ? $('select[name=\"continent\"]', $form).val() : '',\n country: $('select[name=\"country\"]', $form).length > 0 ? $('select[name=\"country\"]', $form).val() : '',\n city: $('select[name=\"city\"]', $form).length > 0 ? $('select[name=\"city\"]', $form).val() : '',\n area: $('select[name=\"area\"]', $form).length > 0 ? $('select[name=\"area\"]', $form).val() : '',\n type: $('input[name=\"type\"]', $form).length > 0 ? $('input[name=\"type\"]:checked', $form).val() : 0,\n postalCode: $('input[name=\"postalCode\"]', $form).length > 0 ? $('input[name=\"postalCode\"]', $form).val() : '',\n search: $('input[name=\"search\"]', $form).val()\n };\n state = $.extend(true, {}, currentState);\n\n Vendd.Store.Controller.initState(currentState);\n\n form.loading = function (loading) {\n if (loading) {\n $form.addClass('x-loading');\n } else {\n $form.removeClass('x-loading');\n };\n };\n\n form.reset = function () {\n document.location = document.location;\n };\n\n form.submit = function () {\n Vendd.MessageBus.publishAsync(wrapper, new Vendd.Store.Messages.Refine(currentState));\n };\n\n form.propButton = function () {\n if (_.isEqual(currentState, state)) {\n $submitButton.addClass('disabled').prop('disabled', true);\n } else {\n $submitButton.removeClass('disabled').prop('disabled', false);\n };\n };\n\n form.bind = function () {\n $submitButton = $('.js-submit', $form);\n $resetButton = $('.js-reset', $form);\n\n form.propButton();\n };\n\n form.update = function () {\n var html = Vendd.Handlebars.parse(\"storeLocatorForm\", formmodel);\n\n $form.html(html);\n\n form.bind();\n\n var newState = Vendd.Store.Controller.getState();\n\n currentState.country = newState.country;\n currentState.city = newState.city;\n currentState.area = newState.area;\n currentState.type = newState.type;\n $('.x-store-locator .form-row .select-wrapper select').sSelect();\n $(\".newList\", $wrapper).mCustomScrollbar({\n scrollbarPosition: \"outside\",\n scrollInertia: 400,\n theme: \"dark-2\",\n mouseWheel: { preventDefault: true }\n });\n\n form.loading(false);\n\n $('.x-store-locator-form select[name=\"city\"]').change(function (e) {\n form.loading(true);\n\n var city = $(this).val();\n\n currentState.city = city;\n\n Vendd.MessageBus.publishAsync(wrapper, new Vendd.Store.Messages.SetCity(city));\n\n });\n\n $('.x-store-locator-form select[name=\"area\"]').change(function (e) {\n form.loading(true);\n\n var area = $(this).val();\n\n currentState.area = area;\n\n Vendd.MessageBus.publishAsync(wrapper, new Vendd.Store.Messages.SetArea(area));\n });\n };\n $('.x-store-locator .form-row .select-wrapper select').sSelect();\n stores.loading = function (loading) {\n if (loading) {\n $stores.addClass('x-loading');\n } else {\n $stores.removeClass('x-loading');\n };\n };\n\n stores.bind = function () {\n var $slider = $('.x-slider', $stores),\n $list = $('.x-partner-list', $stores),\n $partners = $('.x-partner-box', $list),\n coordinates = [];\n\n if ($list.length === 0 || $partners.length === 0) {\n return;\n }\n $.each($partners, function (i, partner) {\n var $partner = $(partner),\n coord = {\n title: $partner.data('name'),\n lat: $partner.data('latitude'),\n lng: $partner.data('longitude'),\n html: $('.box-info', $partner).html()\n };\n\n if (coord.lat !== '' && coord.lng !== '') {\n coordinates.push(coord);\n };\n });\n\n if (map && map.markers && map.markers.length > 0) {\n map.removeMarkers();\n map.addMarkers(coordinates);\n } else {\n if (map && typeof map.create === 'function') {\n if (coordinates.length > 0) {\n map.create(coordinates);\n };\n }\n };\n };\n\n stores.update = function () {\n var html = Vendd.Handlebars.parse(\"storeLocatorStores\", storemodel);\n\n $stores.html(html);\n\n stores.bind();\n\n state = $.extend(true, {}, currentState);\n\n form.propButton();\n\n stores.loading(false);\n };\n\n $form.on('change', 'select[name=\"continent\"]', function (e) {\n form.loading(true);\n\n var continent = $(this).val();\n\n currentState.continent = continent;\n\n Vendd.MessageBus.publishAsync(wrapper, new Vendd.Store.Messages.SetContinent(continent));\n });\n\n $form.on('change', 'select[name=\"country\"]', function (e) {\n form.loading(true);\n\n var country = $(this).val();\n\n currentState.country = country;\n\n Vendd.MessageBus.publishAsync(wrapper, new Vendd.Store.Messages.SetCountry(country));\n });\n\n $('.x-store-locator-form select[name=\"city\"]').change(function (e) {\n form.loading(true);\n\n var city = $(this).val();\n\n currentState.city = city;\n\n Vendd.MessageBus.publishAsync(wrapper, new Vendd.Store.Messages.SetCity(city));\n\n });\n\n $('.x-store-locator-form select[name=\"area\"]').change(function (e) {\n form.loading(true);\n\n var area = $(this).val();\n\n currentState.area = area;\n\n Vendd.MessageBus.publishAsync(wrapper, new Vendd.Store.Messages.SetArea(area));\n });\n\n $form.on('change', 'input[name=\"type\"]', function (e) {\n form.loading(true);\n\n var type = parseInt($('input[name=\"type\"]:checked').val(), 10);\n\n currentState.type = type;\n\n Vendd.MessageBus.publishAsync(wrapper, new Vendd.Store.Messages.SetType(type));\n });\n\n $form.on('keyup', 'input[name=\"postalCode\"]', function (e) {\n e.stopPropagation();\n\n var $this = $(this);\n\n if (e.keyCode == 13) {\n e.preventDefault();\n\n currentState.postalCode = $this.val();\n\n $submitButton.click();\n } else {\n currentState.postalCode = $this.val();\n\n form.propButton();\n };\n });\n\n $form.on('keyup', 'input[name=\"search\"]', function (e) {\n e.stopPropagation();\n\n var $this = $(this);\n\n if (e.keyCode == 13) {\n e.preventDefault();\n\n currentState.search = $this.val();\n\n $submitButton.click();\n } else {\n currentState.search = $this.val();\n\n form.propButton();\n };\n });\n\n $form.on('click', '.js-reset', function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n form.loading(true);\n\n form.reset();\n });\n\n $form.on('click', '.js-submit', function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n stores.loading(true);\n\n form.submit();\n });\n\n $(\".newList\", $wrapper).mCustomScrollbar({\n scrollbarPosition: \"outside\",\n scrollInertia: 400,\n theme: \"dark-2\",\n mouseWheel: { preventDefault: true }\n });\n\n $(\".x-store-locator .x-partner-list\", $wrapper).mCustomScrollbar({\n scrollbarPosition: \"outside\",\n scrollInertia: 400,\n theme: \"dark-2\",\n mouseWheel: { preventDefault: true }\n });\n\n $stores.on('click', '.x-partner-box', function (e) {\n if (e.target.href) {\n return;\n }\n e.preventDefault();\n e.stopPropagation();\n\n var $this = $(this),\n coords, marker;\n\n coords = {\n title: $this.data('name'),\n lat: $this.data('latitude'),\n lng: $this.data('longitude')\n };\n\n marker = $map.get(0).getMarker(coords);\n\n if (marker) {\n $map.get(0).open(marker);\n\n $('html, body').animate({\n scrollTop: $map.offset().top - 50\n }, 500);\n };\n $('.x-partner-box').removeClass('selected');\n $(this).addClass('selected');\n $(\".map-partner-box .x-partner-box\").remove();\n $(this).clone().appendTo(\".map-partner-box\");\n });\n\n $stores.on('click', '.js-more', function (e) {\n e.stopPropagation();\n });\n\n $wrapper.on('click', '.js-back-to-stores', function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n $('html, body').animate({\n scrollTop: $('.inner-area-two > .title-container').offset().top - 10\n }, 500);\n });\n\n return true;\n };\n\n Vendd.MessageBus.subscribe(Vendd.Store.Messages.UpdateForm, wrapper, function (envelope) {\n formmodel = envelope.message.data.model;\n form.update();\n Vendd.MessageBus.publishAsync(wrapper, new Vendd.Store.Messages.Refine(currentState));\n });\n Vendd.MessageBus.subscribe(Vendd.Store.Messages.UpdateStores, wrapper, function (envelope) {\n storemodel = envelope.message.data.model;\n stores.update();\n });\n Vendd.MessageBus.subscribe(Vendd.Plugins.Messages.GoogleMapsLoaded, 'storesMap', function () {\n if (run() && isElementInViewport($wrapper) && !$wrapper.hasClass('loaded')) {\n form.bind();\n stores.bind();\n $wrapper.addClass('loaded');\n } else {\n $(window).on('scroll resize', function () {\n if (run() && isElementInViewport($wrapper) && !$wrapper.hasClass('loaded')) {\n form.bind();\n stores.bind();\n $wrapper.addClass('loaded');\n }\n });\n }\n });\n\n\n});","Vendd.Scripts.load(function () {\n\n initSocialShare = function () {\n\n var $wrappers = $('.js-share-links');\n\n $wrappers.each(function () {\n var $wrapper = $(this);\n $wrapper.attr(\"social-setup\", true);\n\n if ($wrapper.hasClass('initialized')) {\n return;\n } else {\n $wrapper.addClass('initialized');\n }\n var facebookUrl = \"http://api.addthis.com/oexchange/0.8/forward/facebook/offer?pco=tbx32nj-1.0&url={{Url}}\";\n var twitterUrl = \"http://api.addthis.com/oexchange/0.8/forward/twitter/offer?pco=tbx32nj-1.0&url={{Url}}\";\n var pinterestUrl = \"http://api.addthis.com/oexchange/0.8/forward/pinterest_share/offer?pco=tbx32nj-1.0&url={{Url}}\";\n var googleplusUrl = \"http://api.addthis.com/oexchange/0.8/forward/googleplus/offer?pco=tbx32nj-1.0&url={{Url}}\";\n var forwardEmail = \"http://api.addthis.com/oexchange/0.8/forward/email/offer?pco=tbx32nj-1.0&url={{Url}}\";\n\n var linkUrl = window.location.origin + $wrapper.data(\"url\");\n facebookUrl = facebookUrl.replace(\"{{Url}}\", linkUrl);\n twitterUrl = twitterUrl.replace(\"{{Url}}\", linkUrl);\n pinterestUrl = pinterestUrl.replace(\"{{Url}}\", linkUrl);\n googleplusUrl = googleplusUrl.replace(\"{{Url}}\", linkUrl);\n forwardEmail = forwardEmail.replace(\"{{Url}}\", linkUrl);\n\n $wrapper.append($(\"
  • \").append($(\"\").addClass(\"facebook\").attr(\"href\", facebookUrl).attr(\"target\", \"_blank\").append($(\"\").addClass(\"icon\").addClass(\"icon-facebook\").text('facebook'))));\n $wrapper.append($(\"
  • \").append($(\"\").addClass(\"twitter\").attr(\"href\", twitterUrl).attr(\"target\", \"_blank\").append($(\"\").addClass(\"icon\").addClass(\"icon-twitter\").text('twitter'))));\n $wrapper.append($(\"
  • \").append($(\"\").addClass(\"pinterest\").attr(\"href\", pinterestUrl).attr(\"target\", \"_blank\").append($(\"\").addClass(\"icon\").addClass(\"icon-pinterest\").text('pinterest'))));\n $wrapper.append($(\"
  • \").append($(\"\").addClass(\"googleplus\").attr(\"href\", googleplusUrl).attr(\"target\", \"_blank\").append($(\"\").addClass(\"icon\").addClass(\"icon-googleplus\").text('google plus'))));\n $wrapper.append($(\"
  • \").append($(\"\").addClass(\"email\").attr(\"href\", forwardEmail).attr(\"target\", \"_blank\").append($(\"\").addClass(\"icon\").addClass(\"icon-Mail\").text('mail'))));\n\n });\n \n }\n initSocialShare();\n\n});\n","Vendd.Scripts.load(function () {\n\n var $wrapper = $('.js-social-buttons');\n\n if ($wrapper.length < 1) {\n return;\n }\n \n function loadAddThis() {\n if (typeof addthis !== 'undefined') {\n addthis.init();\n }\n }\n\n loadAddThis();\n\n});\n","Vendd.Scripts.load(function () {\n\n\tvar timelines = $('.cd-horizontal-timeline'),\n\teventsMinDistance = 30;\n\n(timelines.length > 0) && initTimeline(timelines);\n\nfunction initTimeline(timelines) {\n\ttimelines.each(function(){\n\t\tvar timeline = $(this), timelineComponents = {};\n\t\t//cache timeline components \n\t\ttimelineComponents.timelineWrapper = timeline.find('.events-wrapper');\n\t\ttimelineComponents.eventsWrapper = timelineComponents.timelineWrapper.children('.events');\n\t\ttimelineComponents.fillingLine = timelineComponents.eventsWrapper.children('.filling-line');\n\t\ttimelineComponents.timelineEvents = timelineComponents.eventsWrapper.find('a');\n\t\ttimelineComponents.timelineNavigation = timeline.find('.cd-timeline-navigation');\n\t\ttimelineComponents.eventsContent = timeline.children('.events-content');\n\n\t\tinitDatesAndDistances(timelineComponents, timelineComponents.timelineEvents);\n\n\t\t//assign a left postion to the single events along the timeline\n\t\tsetDatePosition(timelineComponents, eventsMinDistance);\n\n\t\t//assign a width to the timeline\n\t\tvar timelineTotWidth = setTimelineWidth(timelineComponents, eventsMinDistance);\n\t\t//the timeline has been initialize - show it\n\t\ttimeline.addClass('loaded');\n\n\t\t//detect click on the next arrow\n\t\ttimelineComponents.timelineNavigation.on('click', '.next', function(event){\n\t\t\tevent.preventDefault();\n\t\t\tupdateSlide(timelineComponents, timelineTotWidth, 'next');\n\t\t});\n\t\t//detect click on the prev arrow\n\t\ttimelineComponents.timelineNavigation.on('click', '.prev', function(event){\n\t\t\tevent.preventDefault();\n\t\t\tupdateSlide(timelineComponents, timelineTotWidth, 'prev');\n\t\t});\n\t\t//detect click on the a single event - show new event content\n\t\ttimelineComponents.eventsWrapper.on('click', 'a', function(event){\n\t\t\tevent.preventDefault();\n\t\t\ttimelineComponents.timelineEvents.removeClass('selected');\n\t\t\t$(this).addClass('selected');\n\t\t\tupdateOlderEvents($(this));\n\t\t\tupdateFilling($(this), timelineComponents.fillingLine, timelineTotWidth);\n\t\t\tupdateVisibleContent($(this), timelineComponents.eventsContent);\n\t\t});\n\n\t\t//on swipe, show next/prev event content\n\t\ttimelineComponents.eventsContent.on('swipeleft', function(){\n\t\t\tvar mq = checkMQ();\n\t\t\t( mq == 'mobile' ) && showNewContent(timelineComponents, timelineTotWidth, 'next');\n\t\t});\n\t\ttimelineComponents.eventsContent.on('swiperight', function(){\n\t\t\tvar mq = checkMQ();\n\t\t\t( mq == 'mobile' ) && showNewContent(timelineComponents, timelineTotWidth, 'prev');\n\t\t});\n\n\t\t//keyboard navigation\n\t\t$(document).keyup(function(event){\n\t\t\tif(event.which=='37' && elementInViewport(timeline.get(0)) ) {\n\t\t\t\tshowNewContent(timelineComponents, timelineTotWidth, 'prev');\n\t\t\t} else if( event.which=='39' && elementInViewport(timeline.get(0))) {\n\t\t\t\tshowNewContent(timelineComponents, timelineTotWidth, 'next');\n\t\t\t}\n\t\t});\n\n\t\tupdateTimelineBoxNavigation(timelineComponents.timelineWrapper.find('.selected'),timelineComponents.eventsContent.find('.selected'));\n\n\t\ttimelineComponents.eventsContent.on('click', '.prev, .next', function(e){\n\t\t\tdate = $(this).find('.text').text();\n\t\t\tif ($(this).hasClass('next')) {\n\t\t\t\tstring = 'next';\n\t\t\t}else {\n\t\t\t\tstring = 'prev';\n\t\t\t}\n\t\t\ttimelineComponents.eventsWrapper.find('a[data-date=\"' + date +'\"]').click();\n\t\t\tvar selectedDate = timelineComponents.eventsWrapper.find('.selected'),\n\t\t\tnewEvent = ( string == 'next' ) ? selectedDate.parent('li').next('li').children('a') : selectedDate.parent('li').prev('li').children('a');\n\t\t\tupdateTimelinePosition(string, newEvent, timelineComponents);\n\t\t});\n\t});\n}\n\nfunction updateSlide(timelineComponents, timelineTotWidth, string) {\n\t//retrieve translateX value of timelineComponents.eventsWrapper\n\tvar translateValue = getTranslateValue(timelineComponents.eventsWrapper),\n\t\twrapperWidth = Number(timelineComponents.timelineWrapper.css('width').replace('px', ''));\n\t//translate the timeline to the left('next')/right('prev') \n\t(string == 'next') \n\t\t? translateTimeline(timelineComponents, translateValue - wrapperWidth + eventsMinDistance, wrapperWidth - timelineTotWidth)\n\t\t: translateTimeline(timelineComponents, translateValue + wrapperWidth - eventsMinDistance);\n}\n\nfunction showNewContent(timelineComponents, timelineTotWidth, string) {\n\t//go from one event to the next/previous one\n\tvar visibleContent = timelineComponents.eventsContent.find('.selected'),\n\t\tnewContent = ( string == 'next' ) ? visibleContent.next() : visibleContent.prev();\n\n\tif ( newContent.length > 0 ) { //if there's a next/prev event - show it\n\t\tvar selectedDate = timelineComponents.eventsWrapper.find('.selected'),\n\t\t\tnewEvent = ( string == 'next' ) ? selectedDate.parent('li').next('li').children('a') : selectedDate.parent('li').prev('li').children('a');\n\t\t\n\t\tupdateFilling(newEvent, timelineComponents.fillingLine, timelineTotWidth);\n\t\tupdateVisibleContent(newEvent, timelineComponents.eventsContent);\n\t\tnewEvent.addClass('selected');\n\t\tselectedDate.removeClass('selected');\n\t\tupdateOlderEvents(newEvent);\n\t\tupdateTimelinePosition(string, newEvent, timelineComponents);\n\t}\n}\n\nfunction updateTimelinePosition(string, event, timelineComponents) {\n\t//translate timeline to the left/right according to the position of the selected event\n\tvar eventStyle = window.getComputedStyle(event.get(0), null),\n\t\teventLeft = Number(eventStyle.getPropertyValue(\"left\").replace('px', '')),\n\t\ttimelineWidth = Number(timelineComponents.timelineWrapper.css('width').replace('px', '')),\n\t\ttimelineTotWidth = Number(timelineComponents.eventsWrapper.css('width').replace('px', ''));\n\tvar timelineTranslate = getTranslateValue(timelineComponents.eventsWrapper);\n\n\t\t\tif( (string == 'next' && eventLeft > timelineWidth - timelineTranslate) || (string == 'prev' && eventLeft < - timelineTranslate) ) {\n\t\t\t\ttranslateTimeline(timelineComponents, - eventLeft + timelineWidth/2, timelineWidth - timelineTotWidth);\n\t\t\t}\n}\n\nfunction translateTimeline(timelineComponents, value, totWidth) {\n\tvar eventsWrapper = timelineComponents.eventsWrapper.get(0);\n\tvalue = (value > 0) ? 0 : value; //only negative translate value\n\tvalue = ( !(typeof totWidth === 'undefined') && value < totWidth ) ? totWidth : value; //do not translate more than timeline width\n\tsetTransformValue(eventsWrapper, 'translateX', value+'px');\n\t//update navigation arrows visibility\n\t(value == 0 ) ? timelineComponents.timelineNavigation.find('.prev').addClass('inactive') : timelineComponents.timelineNavigation.find('.prev').removeClass('inactive');\n\t(value == totWidth ) ? timelineComponents.timelineNavigation.find('.next').addClass('inactive') : timelineComponents.timelineNavigation.find('.next').removeClass('inactive');\n}\n\nfunction updateFilling(selectedEvent, filling, totWidth) {\n\t//change .filling-line length according to the selected event\n\tvar eventStyle = window.getComputedStyle(selectedEvent.get(0), null),\n\t\teventLeft = eventStyle.getPropertyValue(\"left\"),\n\t\teventWidth = eventStyle.getPropertyValue(\"width\");\n\teventLeft = Number(eventLeft.replace('px', '')) + Number(eventWidth.replace('px', ''))/2;\n\tvar scaleValue = eventLeft/totWidth;\n\tsetTransformValue(filling.get(0), 'scaleX', scaleValue);\n}\n\nfunction setDatePosition(timelineComponents, min) {\n\t\tvar pixels = 0;\n\t\tfor (i = 0; i < timelineComponents.timelineDates.length; i++) {\n\t\t\t\tvar distanceNorm, eventWidth;\n\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tpixels = min;\n\t\t\t\t} else {\n\t\t\t\t\t\tdistanceNorm = timelineComponents.timelineDistances[i - 1];\n\t\t\t\t\t\teventWidth = timelineComponents.timelineEvents.eq(i - 1).width();\n\t\t\t\t\t\tpixels = pixels + eventWidth + distanceNorm * min;\n\t\t\t\t}\n\t\t\t\ttimelineComponents.timelineEvents.eq(i).css('left', pixels + 'px');\n\t}\n}\n\nfunction setTimelineWidth(timelineComponents, width) {\n\t\tvar totalWidth = 0;\n\t\tfor (i = 0; i < timelineComponents.timelineDates.length; i++) {\n\t\t\t\tvar distanceNorm, eventWidth;\n\t\t\t\tif (i == 0) {\n\t\t\t\t\t\ttotalWidth = width;\n\t\t\t\t} else {\n\t\t\t\t\t\tdistanceNorm = timelineComponents.timelineDistances[i - 1];\n\t\t\t\t\t\teventWidth = timelineComponents.timelineEvents.eq(i - 1).width();\n\t\t\t\t\t\ttotalWidth += eventWidth + distanceNorm * width;\n\t\t\t\t}\n\t\t}\n\n\t\ttotalWidth += timelineComponents.timelineEvents.last().width() + width;\n\n\t\ttimelineComponents.eventsWrapper.css('width', totalWidth + 'px');\n\t\tupdateFilling(timelineComponents.eventsWrapper.find('a.selected'), timelineComponents.fillingLine, totalWidth);\n\tupdateTimelinePosition('next', timelineComponents.eventsWrapper.find('a.selected'), timelineComponents);\n\n\treturn totalWidth;\n}\n\nfunction updateVisibleContent(event, eventsContent) {\n\tvar eventDate = event.data('date'),\n\t\tvisibleContent = eventsContent.find('.selected'),\n\t\tselectedContent = eventsContent.find('[data-date=\"'+ eventDate +'\"]'),\n\t\tselectedContentHeight = selectedContent.height();\n\n\tif (selectedContent.index() > visibleContent.index()) {\n\t\tvar classEnetering = 'selected enter-right',\n\t\t\tclassLeaving = 'leave-left';\n\t} else {\n\t\tvar classEnetering = 'selected enter-left',\n\t\t\tclassLeaving = 'leave-right';\n\t}\n\n\tselectedContent.attr('class', classEnetering);\n\tvisibleContent.attr('class', classLeaving).one('webkitAnimationEnd oanimationend msAnimationEnd animationend', function(){\n\t\tvisibleContent.removeClass('leave-right leave-left');\n\t\tselectedContent.removeClass('enter-left enter-right');\n\t});\n\teventsContent.css('height', selectedContentHeight+'px');\n\n\tupdateTimelineBoxNavigation(event,selectedContent);\n}\n\nfunction updateOlderEvents(event) {\n\tevent.parent('li').prevAll('li').children('a').addClass('older-event').end().end().nextAll('li').children('a').removeClass('older-event');\n}\n\nfunction getTranslateValue(timeline) {\n\tvar timelineStyle = window.getComputedStyle(timeline.get(0), null),\n\t\ttimelineTranslate = timelineStyle.getPropertyValue(\"-webkit-transform\") ||\n\t\t\t\t\t timelineStyle.getPropertyValue(\"-moz-transform\") ||\n\t\t\t\t\t timelineStyle.getPropertyValue(\"-ms-transform\") ||\n\t\t\t\t\t timelineStyle.getPropertyValue(\"-o-transform\") ||\n\t\t\t\t\t timelineStyle.getPropertyValue(\"transform\");\n\n\t\t\tif( timelineTranslate.indexOf('(') >=0 ) {\n\t\t\t\tvar timelineTranslate = timelineTranslate.split('(')[1];\n\t\t\ttimelineTranslate = timelineTranslate.split(')')[0];\n\t\t\ttimelineTranslate = timelineTranslate.split(',');\n\t\t\tvar translateValue = timelineTranslate[4];\n\t\t\t} else {\n\t\t\t\tvar translateValue = 0;\n\t\t\t}\n\n\t\t\treturn Number(translateValue);\n}\n\nfunction setTransformValue(element, property, value) {\n\telement.style[\"-webkit-transform\"] = property+\"(\"+value+\")\";\n\telement.style[\"-moz-transform\"] = property+\"(\"+value+\")\";\n\telement.style[\"-ms-transform\"] = property+\"(\"+value+\")\";\n\telement.style[\"-o-transform\"] = property+\"(\"+value+\")\";\n\telement.style[\"transform\"] = property+\"(\"+value+\")\";\n}\n\n//based on http://stackoverflow.com/questions/542938/how-do-i-get-the-number-of-days-between-two-dates-in-javascript\nfunction initDatesAndDistances(timelineComponents, events) {\n\t\tvar dateArrays = [], dateDistances = [];\n\t\tvar wasPrevRange = false, prevRangeStart, prevRangeEnd;\n\tevents.each(function(index){\n\t\tvar singleDate = $(this),\n\t\t\tdateComp = singleDate.data('date'), isRange = false, currentRangeStart, currentRangeEnd;\n\t\tif (String(dateComp).indexOf(\"-\") > 0) {\n\t\t\t\tisRange = true;\n\t\t\t\tvar years = String(dateComp).replace(/\\s/g, \"\").split('-').map(Number);\n\t\t\t\tif ((years[0] + years[1]) % 2 == 0) {\n\t\t\t\t\t\tdateComp = (years[0] + years[1]) / 2;\n\t\t\t\t} else {\n\t\t\t\t\t\tdateComp = Math.round((years[0] + years[1]) / 2);\n\t\t\t\t}\n\t\t\t\tcurrentRangeStart = new Date(years[0]);\n\t\t\t\tcurrentRangeEnd = new Date(years[1]);\n\t\t}\n\n\t\tvar newDate = new Date(dateComp);\n\n\t\tdateArrays.push(newDate);\n\n\t\tvar distance;\n\t\tif (index > 0) {\n\t\t\t\tif (isRange) {\n\t\t\t\t\t\tif (wasPrevRange) {\n\t\t\t\t\t\t\t\tdistance = daydiff(prevRangeEnd, currentRangeStart);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdistance = daydiff(dateArrays[index - 1], currentRangeStart);\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t\tif (wasPrevRange) {\n\t\t\t\t\t\t\t\tdistance = daydiff(prevRangeEnd, dateArrays[index]);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdistance = daydiff(dateArrays[index - 1], dateArrays[index]);\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (distance == 0)\n\t\t\t\t\t\tdistance = 0.5;\n\t\t\t\telse if (distance > 10) {\n\t\t\t\t\t\tdistance = 10;\n\t\t\t\t}\n\t\t\t\tdateDistances.push(distance);\n\t\t}\n\n\t\twasPrevRange = isRange;\n\t\tprevRangeStart = currentRangeStart;\n\t\tprevRangeEnd = currentRangeEnd;\n\t});\n\ttimelineComponents.timelineDates = dateArrays;\n\ttimelineComponents.timelineDistances = dateDistances;\n}\n\nfunction daydiff(first, second) {\n\t\treturn Math.round((second-first));\n}\n\n/*\n\tHow to tell if a DOM element is visible in the current viewport?\n\thttp://stackoverflow.com/questions/123999/how-to-tell-if-a-dom-element-is-visible-in-the-current-viewport\n*/\nfunction elementInViewport(el) {\n\tvar top = el.offsetTop;\n\tvar left = el.offsetLeft;\n\tvar width = el.offsetWidth;\n\tvar height = el.offsetHeight;\n\n\twhile(el.offsetParent) {\n\t\t\tel = el.offsetParent;\n\t\t\ttop += el.offsetTop;\n\t\t\tleft += el.offsetLeft;\n\t}\n\n\treturn (\n\t\t\ttop < (window.pageYOffset + window.innerHeight) &&\n\t\t\tleft < (window.pageXOffset + window.innerWidth) &&\n\t\t\t(top + height) > window.pageYOffset &&\n\t\t\t(left + width) > window.pageXOffset\n\t);\n}\n\nfunction checkMQ() {\n\t//check if mobile or desktop device\n\treturn window.getComputedStyle(document.querySelector('.cd-horizontal-timeline'), '::before').getPropertyValue('content').replace(/'/g, \"\").replace(/\"/g, \"\");\n}\n\nfunction updateTimelineBoxNavigation(event, selectedContent) {\n\tprev = $(event).parent().prev();\n\tnext = $(event).parent().next();\n\n\tif (prev.length > 0) {\n\t\tprevTitle = prev.data('date');\n\t\tselectedContent.find('.navigation .prev .text').text(prevTitle);\n\t}else {\n\t\tselectedContent.find('.navigation .prev').addClass('hidden');\n\t}\n\n\tif (next.length > 0) {\n\t\tnextTitle = next.data('date');\n\t\tselectedContent.find('.navigation .next .text').text(nextTitle);\n\t}else {\n\t\tselectedContent.find('.navigation .next').addClass('hidden');\n\t}\n\n}\n});\n"]}