!function(n,t){"use strict";var i;i=function(i,r){var h,c,u,o,f,s,e;return s=0,e=0,u=0,o={},f=[],c=0,h=function(t,i){this.options={speed:1,boost:0};for(u in i)this.options[u]=i[u];if((this.options.speed<0||this.options.speed>1)&&(this.options.speed=1),t||(t="paraxify"),n.getElementsByClassName(t.replace(".","")))this.photos=n.getElementsByClassName(t.replace(".",""));else{if(n.querySelector(t)===!1)throw new Error("The elements you're trying to select don't exist.");this.photos=querySelector(t)}o=this.options;f=this.photos;this._init(this)},h.prototype={update:function(){for(e=t.innerHeight,u=0;u<f.length;)f[u].style.backgroundPosition="center center",f[u].url=t.getComputedStyle(f[u],!1).backgroundImage.replace(/url\((['"])?(.*?)\1\)/gi,"$2").split(",")[0],f[u].img||(f[u].img=new Image),f[u].url!==f[u].img.src&&(this._check(u),f[u].img.src=f[u].url),u++;this._animate()},_init:function(){this.update();t.onscroll=function(){this._animate()}.bind(this);t.onresize=function(){this.update()}.bind(this)},_check:function(n){var r,i;i=f[n];i.ok=!0;i.bgSize=t.getComputedStyle(i,!1).backgroundSize;r=e;f[n].img.onload=function(){if(""===i.bgSize||"auto"===i.bgSize){if(this.height<i.offsetHeight)throw i.ok=!1,new Error("The image "+i.url+" ("+this.height+"px) is too short for that container ("+i.offsetHeight+"px).");r=this.height;this.height<e&&(r+=(e-i.offsetHeight)*o.speed)}else if("cover"===i.bgSize){if(e<i.offsetHeight)throw i.ok=!1,new Error("The container ("+i.offsetHeight+"px) can't be bigger than the image ("+e+"px).");}else"cover"===t.getComputedStyle(i,!1).backgroundSize,this._check(n);i.diff=-(r-i.offsetHeight)*o.speed;i.diff=i.diff-i.offsetHeight*o.boost}},_visible:function(n){return s+e>f[n].offsetTop&&s<f[n].offsetTop+f[n].offsetHeight?!0:!1},_animate:function(){var r,i;for(s=void 0!==t.pageYOffset?t.pageYOffset:(n.documentElement||n.body.parentNode||n.body).scrollTop,u=0;u<f.length;)this._check(u),f[u].ok&&"fixed"===t.getComputedStyle(f[u],!1).backgroundAttachment&&this._visible(u)?(r=(s-f[u].offsetTop+e)/(f[u].offsetHeight+e),i=f[u].diff*(r-.5),"cover"!==f[u].bgSize&&(i+=(e-f[u].img.height)/2),i=Math.round(100*i)/100):i="center",f[u].style.backgroundPosition="center "+i+"px",u++}},new h(i,r)};t.paraxify=i}(document,window,0);!function(n,t,i){"use strict";n.fn.scrollUp=function(t){n.data(i.body,"scrollUp")||(n.data(i.body,"scrollUp",!0),n.fn.scrollUp.init(t))};n.fn.scrollUp.init=function(r){var o,s,e,l,a,h,f,u=n.fn.scrollUp.settings=n.extend({},n.fn.scrollUp.defaults,r),c=!1;switch(f=u.scrollTrigger?n(u.scrollTrigger):n("<a/>",{id:u.scrollName,href:"#top"}),u.scrollTitle&&f.attr("title",u.scrollTitle),f.appendTo("body"),u.scrollImg||u.scrollTrigger||f.html(u.scrollText),f.css({display:"none",position:"fixed",zIndex:u.zIndex}),u.activeOverlay&&n("<div/>",{id:u.scrollName+"-active"}).css({position:"absolute",top:u.scrollDistance+"px",width:"100%",borderTop:"1px dotted"+u.activeOverlay,zIndex:u.zIndex}).appendTo("body"),u.animation){case"fade":o="fadeIn";s="fadeOut";e=u.animationSpeed;break;case"slide":o="slideDown";s="slideUp";e=u.animationSpeed;break;default:o="show";s="hide";e=0}l="top"===u.scrollFrom?u.scrollDistance:n(i).height()-n(t).height()-u.scrollDistance;a=n(t).scroll(function(){n(t).scrollTop()>l?c||(f[o](e),c=!0):c&&(f[s](e),c=!1)});u.scrollTarget?"number"==typeof u.scrollTarget?h=u.scrollTarget:"string"==typeof u.scrollTarget&&(h=Math.floor(n(u.scrollTarget).offset().top)):h=0;f.click(function(t){t.preventDefault();n("html, body").animate({scrollTop:h},u.scrollSpeed,u.easingType)})};n.fn.scrollUp.defaults={scrollName:"scrollUp",scrollDistance:300,scrollFrom:"top",scrollSpeed:300,easingType:"linear",animation:"fade",animationSpeed:200,scrollTrigger:!1,scrollTarget:!1,scrollText:"Scroll to top",scrollTitle:!1,scrollImg:!1,activeOverlay:!1,zIndex:2147483647};n.fn.scrollUp.destroy=function(r){n.removeData(i.body,"scrollUp");n("#"+n.fn.scrollUp.settings.scrollName).remove();n("#"+n.fn.scrollUp.settings.scrollName+"-active").remove();n.fn.jquery.split(".")[1]>=7?n(t).off("scroll",r):n(t).unbind("scroll",r)};n.scrollUp=n.fn.scrollUp}(jQuery,window,document),function(n,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():n.Blazy=t()}(this,function(){function r(r){if(!document.querySelectorAll){var f=document.createStyleSheet();document.querySelectorAll=function(n,t,i,r,u){for(u=document.all,t=[],n=n.replace(/\[for\b/gi,"[htmlFor").split(","),i=n.length;i--;){for(f.addRule(n[i],"k:v"),r=u.length;r--;)u[r].currentStyle.k&&t.push(u[r]);f.removeRule(0)}return t}}h=!0;u=[];t={};n=r||{};n.error=n.error||!1;n.offset=n.offset||100;n.success=n.success||!1;n.selector=n.selector||".b-lazy";n.separator=n.separator||"|";n.container=n.container?document.querySelectorAll(n.container):!1;n.errorClass=n.errorClass||"b-error";n.breakpoints=n.breakpoints||!1;n.successClass=n.successClass||"b-loaded";n.src=c=n.src||"data-src";w=1<window.devicePixelRatio;t.top=0-n.offset;t.left=0-n.offset;i=p(v,25);l=p(y,50);y();s(n.breakpoints,function(n){if(n.width>=window.screen.width)return c=n.src,!1});a()}function a(){k(n.selector);h&&(h=!1,n.container&&s(n.container,function(n){e(n,"scroll",i)}),e(window,"resize",l),e(window,"resize",i),e(window,"scroll",i));v()}function v(){for(var o,e,i=0;i<f;i++)o=u[i],e=o.getBoundingClientRect(),(e.right>=t.left&&e.bottom>=t.top&&e.left<=t.right&&e.top<=t.bottom||-1!==(" "+o.className+" ").indexOf(" "+n.successClass+" "))&&(r.prototype.load(o),u.splice(i,1),f--,i--);0===f&&r.prototype.destroy()}function b(t,i){var r;if(i||0<t.offsetWidth&&0<t.offsetHeight)if(r=t.getAttribute(c)||t.getAttribute(n.src),r){var r=r.split(n.separator),u=r[w&&1<r.length?1:0],r=new Image;s(n.breakpoints,function(n){t.removeAttribute(n.src)});t.removeAttribute(n.src);r.onerror=function(){n.error&&n.error(t,"invalid");t.className=t.className+" "+n.errorClass};r.onload=function(){"img"===t.nodeName.toLowerCase()?t.src=u:t.style.backgroundImage='url("'+u+'")';t.className=t.className+" "+n.successClass;n.success&&n.success(t)};r.src=u}else n.error&&n.error(t,"missing"),t.className=t.className+" "+n.errorClass}function k(n){n=document.querySelectorAll(n);for(var t=f=n.length;t--;u.unshift(n[t]));}function y(){t.bottom=(window.innerHeight||document.documentElement.clientHeight)+n.offset;t.right=(window.innerWidth||document.documentElement.clientWidth)+n.offset}function e(n,t,i){n.attachEvent?n.attachEvent&&n.attachEvent("on"+t,i):n.addEventListener(t,i,!1)}function o(n,t,i){n.detachEvent?n.detachEvent&&n.detachEvent("on"+t,i):n.removeEventListener(t,i,!1)}function s(n,t){if(n&&t)for(var r=n.length,i=0;i<r&&!1!==t(n[i],i);i++);}function p(n,t){var i=0;return function(){var r=+new Date;r-i<t||(i=r,n.apply(u,arguments))}}var c,n,t,u,f,w,h,i,l;return r.prototype.revalidate=function(){a()},r.prototype.load=function(t,i){-1===(" "+t.className+" ").indexOf(" "+n.successClass+" ")&&b(t,i)},r.prototype.destroy=function(){n.container&&s(n.container,function(n){o(n,"scroll",i)});o(window,"scroll",i);o(window,"resize",i);o(window,"resize",l);f=0;u.length=0;h=!0},r}),function(){"use strict";angular.module("easyweddings.homepage",["easyWeddingsApp","localytics.directives"]).config(["$resourceProvider",function(n){n.defaults.stripTrailingSlashes=!1}])}(),function(){"use strict";angular.module("easyweddings.homepage").directive("imageloaded",[function(){return{restrict:"A",link:function(n,t,i){var r=i.loadedclass;t.bind("load",function(){angular.element(t).addClass(r)})}}}])}(),function(){"use strict";function n(n){function i(){return n(t+"blogs/ew-ask-sam-homepage-feed/",{},{get:{method:"GET"}})}function r(){return n(t+"blogs/ew-blogs-homepage-feed/",{},{get:{method:"GET"}})}function u(){return n(t+"blogs/ew-articles-homepage-feed/",{},{get:{method:"GET"}})}function f(){return n(t+"real-weddings/real-weddings-homepage-feed/",{},{get:{method:"GET",isArray:!0}})}function e(){return n(t+"blogs/ew-parallax-feed/",{},{query:{method:"GET",isArray:!0}})}var t="https://www.easyweddings.com.au/";return{latestBlogSvc:r,latestArticleSvc:u,latestRealWeddingSvc:f,latestAskSamSvc:i,latestFeedSvc:e}}angular.module("easyweddings.homepage").service("homepageSvc",n);n.$inject=["$resource","config"]}(),function(){"use strict";function n(n,t,i,r,u,f,e){function s(){if(n.EWLoginUserDetails&&n.EWLoginUserDetails!=="undefined"){window.SessionID=n.EWLoginUserDetails.replace("LoginUserApiSessionId=","");var t={sessionId:window.SessionID};r.SessionID=window.SessionID;e.get(t,function(n){o.hasSetupRegistry=n.hasSetupRegistry})}}function h(n,t){return Math.floor(Math.random()*(t-n+1))+n}i.ewConfig=r;var o=this;o.dynamicCss="homepageVar"+h(1,3);o.regionEnable=!1;o.hasSetupRegistry=!1;s();o.secureUrl=function(n){return n===undefined||n===null?n:n.replace("http:","https:")};o.homepageRealWedding=u.latestRealWeddingSvc().get(function(){},function(){console.log("Error occurred fetching latest real wedding.")});o.homepageFeed=u.latestFeedSvc().query(function(){},function(){console.log("Error occurred fetching latest news feed.")})}angular.module("easyweddings.homepage").controller("homepageCtrl",n);n.$inject=["$cookies","$log","$window","config","homepageSvc","ewUserExtendedProfileService","ewUserRegistryService"]}(),function(n){"use strict";function t(t,i,r){return t==0&&n.cookie("EWUserStay",!1,{path:"/"}),t==1&&(n.cookie("EWUserStay",!1,{expires:365,path:"/"}),n.cookie("EWUserStayCulture",i,{expires:365,path:"/"}),window.location.replace(r)+"?go=true"),t==2&&n.cookie("EWUserStay",!0,{expires:365,path:"/"}),!0}function i(i,r,u){n("#ew-options").flagStrap({countries:{AU:"Australia",GB:"United Kingdom"},buttonSize:"btn-sm",buttonType:"btn-sm",labelMargin:"10px",scrollable:!1,scrollableHeight:"350px"});n("#ew-country-welcome-pop").modal("show");n("#au_flag").show();n(".btnContinue").click(function(){var i=n("select[id^='flagstrap']").find(":selected").val();i=="GB"?t(1,u,r):i=="AU"&&t(2)})}n(document).on("ready",function(){var t=paraxify(".paraxify");n("body").addClass("show-navbar-ew-scroll");n.scrollUp({scrollName:"scrollUp",scrollDistance:500,scrollFrom:"top",scrollSpeed:300,easingType:"linear",animation:"fade",animationSpeed:200,scrollText:"",zIndex:2147483647}),function(){var n=new Blazy}();n("#popupGeneric").on("hidden.bs.modal",function(){n.cookie("EWUserStay")||n.cookie("EWUserStay",!0,{path:"/"})});n("#ew-country-welcome-pop").on("hidden.bs.modal",function(){n.cookie("EWUserStay")||n.cookie("EWUserStay",!0,{path:"/"})});(function(){var r=!1,t="";if(t=n("body").attr("data-app-culture")?n("body").attr("data-app-culture"):"en-AU",n.cookie("EWUserStay")){if(r=n.cookie("EWUserStay"),r=="true")return!0;r=="false"&&GetCultureSpecificEWUri&&(t=n.cookie("EWUserStayCulture"),GetCultureSpecificEWUri(window.ewConfig.remoteServiceBaseURL,t,function(n){window.location.replace(n.WebsiteUri)}))}else if(GetClientLocation)GetClientLocation(window.ewConfig.remoteServiceBaseURL,function(n){if(n!=null&&n.CountryCode!=null&&(n.CountryCode=="AU"||n.CountryCode=="GB")&&t.indexOf(n.CountryCode)<0)t="en-"+n.CountryCode,GetCultureSpecificEWUri&&GetCultureSpecificEWUri(window.ewConfig.remoteServiceBaseURL,t,function(r){i&&i(n.Country,r.WebsiteUri,t)});else return!0});else return!0})()})}(jQuery)