text: "use strict";function dissmissPreloader(){var a=$("#preloader"),b=$("body");b.css("overflow-y","auto"),a.fadeOut("fast")}function trianglesReady(){dissmissPreloader()}function initializeMap(){var a=[{featureType:"administrative",elementType:"labels.text.fill",stylers:[{color:"#444444"}]},{featureType:"landscape",elementType:"all",stylers:[{color:"#f2f2f2"}]},{featureType:"poi",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"all",stylers:[{saturation:-100},{lightness:45}]},{featureType:"road.highway",elementType:"all",stylers:[{visibility:"simplified"}]},{featureType:"road.arterial",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"all",stylers:[{color:"#46bcec"},{visibility:"on"}]}],b=new google.maps.StyledMapType(a,{name:"Styled Map"}),c=new google.maps.LatLng(Wata.googleMaps.lat,Wata.googleMaps.lng),d={zoom:Wata.googleMaps.zoom,center:c,mapTypeControlOptions:{mapTypeIds:[google.maps.MapTypeId.ROADMAP,"map_style"]},scrollwheel:!1,draggable:!1},e=new google.maps.Map(document.getElementById("map-canvas"),d);new google.maps.Marker({position:c,map:e});e.mapTypes.set("map_style",b),e.setMapTypeId("map_style")}!function(){function a(){b=window.innerHeight,c=f.clientHeight,d=b-c,e.style.height=d+"px"}var b,c,d,e=document.getElementById("triangles"),f=document.getElementById("nav");a(),window.addEventListener("resize",a)}(),$(document).ready(function(){$(".scrollspy").scrollSpy(),$(".materialboxed").materialbox(),$(".button-collapse").sideNav({closeOnClick:!0}),ScrollAnimations(),Shuffle.init(),CurrencySwitcher();var a=$(".masonry").masonry({itemSelector:".col"});a.imagesLoaded().progress(function(){a.masonry("layout")});var b=$("form#mc-embedded-subscribe-form");b.ajaxChimp({url:$(this).attr("action"),callback:function(a){var c=a.msg,d=a.result,e="success"===d?1e4:5e3;Materialize.toast(c.replace(/\d - /,""),e,d),"success"===d&&(b.find("input[type=email]").val(""),b.find("label").removeClass("active"))}}),function(){function a(){for(var a=0;j>a;a++)if(0===i[a].value.length)return!1;return!0}function b(){var a=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;return k[0].value.length>0&&a.test(k[0].value)}function c(){a()&&b()?(g.addClass(h),l=!0):(g.removeClass(h),l=!1)}function d(){m.show(),$.ajax({url:e.attr("action"),data:e.serialize(),type:"POST"}).done(function(a){m.hide(),"success"==a?(Materialize.toast(Wata.toastMessages.messageSent,7500,"success"),f.val(""),k.removeClass("valid"),c()):Materialize.toast(Wata.toastMessages.somethingWrong+a,7500,"error")}).error(function(a){m.hide(),Materialize.toast(Wata.toastMessages.somethingWrong+resp,7500,"error")})}var e=$("form#contact-form"),f=e.find("input, textarea"),g=e.find("button[type=submit]"),h="waves-effect waves-light green accent-2 indigo-text text-darken-4",i=$(".required"),j=i.length,k=e.find("input#email"),l=!1,m=$("div#status");e.on("submit",function(c){c.preventDefault(),l?d():(a()||Materialize.toast(Wata.toastMessages.fillInRequiredFields,5e3,"error"),a()&&!b()&&Materialize.toast(Wata.toastMessages.enterValidEmail,5e3,"error"))}),f.on("blur",function(){c()}),k.on("blur",function(){var a=k[0].value.length;!b()&&a>0?k.addClass("invalid").removeClass("valid"):b()&&a>0?k.addClass("valid").removeClass("invalid"):0===a&&k.removeClass("valid invalid")})}(),$("#explore").on("click",function(a){a.preventDefault();var b=$("#services").offset().top+1;$("html, body").animate({scrollTop:b-64},{duration:400,queue:!1,easing:"easeOutCubic"})}),function(){function a(){e.removeClass("enter").addClass("translate").html(""),d.show().css("visibility","hidden"),$(document).scrollTop(b),d.hide().css("visibility","visible").fadeIn(),$("div#shuffle-grid").shuffle("update"),$(".masonry").masonry()}var b,c,d=$("#wrapper"),e=$("#ajax-box"),f=window.matchMedia("only screen and (max-width: 600px)");$("a.ajax-link").on("click",function(g){g.preventDefault(),b=$(document).scrollTop(),e.load($(this).attr("href"),function(b,g,h){return"error"===g?(a(),Materialize.toast(Wata.toastMessages.somethingWrong+h.status+" "+h.statusText,5e3,"error"),!1):(d.fadeOut("fast",function(){window.scrollTo(0,0)}),$(".materialboxed").length&&$(".materialboxed").materialbox(),$("ul.tabs").length&&$("ul.tabs").tabs(),e.addClass("enter"),void setTimeout(function(){e.removeClass("translate enter"),$("#ajax-status").hide(),c=$(".parallax").length,c&&!f.matches?$(".parallax").parallax():c&&f&&$(".parallax img").css({display:"block",height:500})},750))})}),$(document).on("click","#close-ajax",function(b){b.preventDefault(),a()})}(),initializeMap(),$(".activator, .card-title").on("click",function(){$(this).parents(".card").toggleClass("active")});var c=.65*window.innerHeight;$(window).scroll(function(){$(".picture-item:in-viewport("+c+")").addClass("animate"),$(".team .col:in-viewport("+c+")").addClass("animate"),$(".masonry .card:in-viewport("+c+")").addClass("animate")})});var ScrollAnimations=function(){var a,b=new ScrollMagic.Controller,c=$(".services .animated-color"),d=["rgb(26, 35, 126)","rgb(28, 37, 135)","rgb(29, 40, 143)","rgb(31, 42, 152)","rgb(33, 44, 160)","rgb(36, 49, 178)","rgb(38, 52, 186)","rgb(39, 54, 199)","rgb(41, 56, 203)","rgb(43, 58, 211)"],e=new ScrollMagic.Scene({triggerElement:"#services",duration:"75%"}).addTo(b);e.on("progress",function(b){a=Math.floor(10*b.progress),c.css("color",d[a])});var f,g=(new ScrollMagic.Scene({triggerElement:".best-offer"}).setClassToggle(".best-offer","z-depth-4").addTo(b),new ScrollMagic.Scene({triggerElement:"#get-started",duration:"75%"}).addTo(b)),h=$("#get-started"),i=["#f2f2f2","#ededed","#e8e8e8","#e3e3e3","#dedede","#dcdcdc","#d6d6d6","#d3d3d3","#d4d4d4","#cfcfcf"];g.on("progress",function(a){f=Math.floor(10*a.progress),h.css("background-color",i[f])});var j,k=new ScrollMagic.Scene({triggerElement:"#subscribe",duration:"75%"}).addTo(b),l=$("#subscribe");k.on("progress",function(a){j=Math.floor(10*a.progress),l.css("background-color",i[j])})},Shuffle=function(a,b){var c,d,e,f=a("div#shuffle-grid"),g=f.find("img"),h=a("div.filter-options"),i=h.children(),j=a("#all");return d=function(){c=new b(g.get()),c.on("always",e)},e=function(a){f.shuffle({itemSelector:".picture-item"})},i.on("click",function(){var b=a(this),c=b.hasClass("active"),d="all"===b.attr("id"),e=c?"all":b.data("group");return c&&d?!1:(c||a(".filter-options .active").removeClass("active"),c&&!d&&j.addClass("active"),b.toggleClass("active"),d&&j.addClass("active"),void f.shuffle("shuffle",e))}),i=null,{init:d}}(jQuery,window.imagesLoaded),CurrencySwitcher=function(){var a,b=$(".currency-switcher"),c=Wata.currencySwitcher.offers,d=Object.keys(c),e=d.length,f=Wata.currencySwitcher.symbols;b.find("input[type=radio]").on("change",function(){a=this.id;for(var b=0;e>b;b++)$("#"+d[b]).find(".price").text(f[a]+c[d[b]][a])})};