webpackJsonp([8,27],{1:function(n,t){"use strict";function r(n){var t="",u,r,f;void 0!=$.cookie("userProfile")&&(r=$.parseJSON($.cookie("userProfile")),t=r.PersonId);null!=t&&""!=t?(localStorage.removeItem("accountpersonID"),localStorage.removeItem("accountProperty"),localStorage.accountpersonID=t,u=[],$.ajax({url:apiUrlGetAccountSummary+"?personId="+t,type:"GET",cache:!1,success:function(r){var f,e;0==r.Status.codeField?(f=r.Accounts,null==f||1!=f.length||f[0].multiplePremisesField||(localStorage.multiAccount=!1,localStorage.removeItem("accountDetailID"),localStorage.accountDetailID=f[0].accountIDField+","+f[0].premiseIDField+","+t,e={accountID:f[0].accountIDField,personID:t,premiseID:f[0].premiseIDField,multiplePremises:f[0].multiplePremisesField,address:f[0].propertyAddressField},u.push(e),localStorage.accountProperty=JSON.stringify(u)),i(n)):null!=n&&n()},error:function(n){initPopupErrorApi(n,$(".wrapper-body .alert_window"))},timeout:apiTimeOut})):(void 0!=$.cookie("userProfile")&&(r=$.parseJSON($.cookie("userProfile")),f=JSON.stringify(r),localStorage.removeItem("accountDetailInfo"),localStorage.accountDetailInfo=f),null!=n&&n())}function i(n){if(void 0!=localStorage.getItem("accountDetailID")&&void 0==localStorage.getItem("accountDetailInfo")){var t=localStorage.getItem("accountDetailID"),i=t.split(",")[0],r=t.split(",")[1],u=t.split(",")[2],f={AccountId:$.trim(i),PremiseId:$.trim(r),PersonId:$.trim(u)};$.ajax({type:"POST",cache:!1,url:apiUrlGetAccountDetails,data:JSON.stringify(f),contentType:"application/json",success:function(t){var f,e;"0"==t.statusField.codeField?((t.accountDetailField.AccountId=i,t.accountDetailField.PersonId=u,t.accountDetailField.PremiseId=r,void 0!=$.cookie("userProfile"))&&(f=JSON.parse($.cookie("userProfile")),t.accountDetailField.personField.firstNameField=f.FirstName,t.accountDetailField.personField.surnameField=f.Surname,t.accountDetailField.personField.emailAddressField=f.Email),void 0!=window.newEmail&&""!==window.newEmail&&window.newEmail!==t.accountDetailField.personField.emailAddressField&&(t.accountDetailField.personField.emailAddressField=window.newEmail),e=JSON.stringify(t.accountDetailField),localStorage.removeItem("accountDetailInfo"),localStorage.accountDetailInfo=e,$(".account-multi__box").addClass("hidden"),null!=n&&n()):($(".alert__content p, .alert__content .lbl").html(t.statusField.messageField),$(".profileAlert").addClass("account-null").removeClass("success change-success profile-success"),$(".alert_window:not(.siteAlert)").show(),$(".cssload-container.overlay").fadeOut())},error:function(n){initPopupErrorApi(n,$(".wrapper-body .alert_window"))},timeout:apiTimeOut})}else null!=n&&n()}function u(n,t){var u=6,r=0,i;return n>1&&(r=(n-1)*u),i=r+u,i>t.length&&(i=t.length),{from:r,to:i}}function f(n){if(0!=$(n).find(".table-custom").length){var t=0;$(n).find(".table-custom .tbbody ul").each(function(){t<$(this).find(".water").width()&&(t=$(this).find(".water").width())});$(n).find(".table-custom .tbbody ul").each(function(n){$(this).find(".water").width(t+15);$(this).addClass("slideInUp").css("animation-delay",.2*n+"s")})}}function e(n){if(void 0!=n){var t=n.toString();return void 0==t.split(".")[1]?t+=".00":t.split(".")[1].length<2&&(t+="0"),t.startsWith("-")?t.replace("-","&pound;")+" in credit":"&pound;"+t}}function o(n,t){for(var r=[],i=0;i<n.length;i++)r.push(n[i].name+":"+n[i].value);$.ajax({type:"POST",cache:!1,url:apiUrlAddOrUpdateCustomerSession,data:JSON.stringify(r),contentType:"application/json",success:function(n){t(n)},error:function(n){console.log(n)}})}t.e=r;t.f=i;t.c=u;t.d=f;t.a=e;t.b=o},102:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i.n(r),f=i(57),e=i(58),o=function(){f.a.initialize();e.a.initialize()};u()(document).ready(function(){o()})},2:function(n){n.exports=jQuery},57:function(n,t,i){"use strict";var u=i(1),r={verifyIfInMoveHomeJourney:function(){(hasURLPage(urlAccount.movein)||hasURLPage(urlAccount.moveout)||hasURLPage(urlAccount.movewithin)||hasURLPage(urlAccount.addremoveproperty)||hasURLPage(urlAccount.enforcedmovewithin)||hasURLPage(urlAccount.enforcedmoveout))&&(null==localStorage.getItem("inMoveHomeJourney")&&(localStorage.removeItem("inMoveHomeJourney"),window.location=urlAccount.movehome),window.history&&window.history.pushState&&$(window).on("popstate",function(){""!==location.hash.split("#!/")[1]&&""===window.location.hash&&(localStorage.removeItem("inMoveHomeJourney"),window.location=urlAccount.movehome)}));localStorage.removeItem("inMoveHomeJourney")},newCustomerBtnRegisterEvent:function(){$(".btn-newcustomer").on("click touch",function(n){n.preventDefault();localStorage.inMoveHomeJourney=!0;window.location=urlAccount.movein})}},f=function(){$(".btn-existingcustomer").on("click touch",function(n){n.preventDefault();$(".movehome-landingpage").addClass("hidden");$(".movehome-existingcustomer").removeClass("hidden");htmlScroll(0,0)});$(".addremoveProperty").on("click touch",function(n){n.preventDefault();isLogined()?(localStorage.moveHomePage="addremoveproperty",localStorage.inMoveHomeJourney=!0,window.location=urlAccount.addremoveproperty):($(".property__box").removeClass("hidden"),$(".property__box .nb-btn-link").on("click touch",function(){localStorage.moveHomePage="addremoveproperty"}))});$(".moveWithinPage").on("click touch",function(n){n.preventDefault();localStorage.moveHomePage="movewithin";isLogined()?($(".cssload-container.overlay").show(),i.i(u.f)(function(){localStorage.inMoveHomeJourney=!0;window.location=isEnforcedMove()?urlAccount.enforcedmovewithin:urlAccount.movewithin})):($(".movehome-loginfind .account-teaser .movewithin").removeClass("hidden"),$(".movehome-existingcustomer").addClass("hidden"),$(".movehome-loginfind").removeClass("hidden"))});$(".moveWithoutPage").on("click touch",function(n){n.preventDefault();localStorage.moveHomePage="moveout";isLogined()?($(".cssload-container.overlay").show(),i.i(u.f)(function(){localStorage.inMoveHomeJourney=!0;window.location=isEnforcedMove()?urlAccount.enforcedmoveout:urlAccount.moveout})):($(".movehome-loginfind .account-teaser .movewithout").removeClass("hidden"),$(".movehome-existingcustomer").addClass("hidden"),$(".movehome-loginfind").removeClass("hidden"))});$(".btn-FindMyAccount").on("click touch",function(n){n.preventDefault();var t=localStorage.getItem("moveHomePage");localStorage.inMoveHomeJourney=!0;"moveout"==t&&(window.location=urlAccount.moveout);"movewithin"==t&&(window.location=urlAccount.movewithin)});$(".btn-moveHomeLogin").on("click touch",function(n){n.preventDefault();window.location=urlAccount.login+"?action=moveHome"});$(".addremovePropertyLogin").on("click touch",function(n){n.preventDefault();localStorage.moveHomePage="addremoveproperty";window.location=urlAccount.login+"?action=addRemoveProperty"})},e=function(){hasURLPage(urlAccount.movehome)&&(isVerified()?($(".movehome-landingpage").addClass("hidden"),$(".movehome-existingcustomer").removeClass("hidden")):($(".movehome-landingpage").removeClass("hidden"),$(".movehome-existingcustomer").addClass("hidden")))},o=function(){var n=window.isVerified();(hasURLPage(urlAccount.movewithin)||hasURLPage(urlAccount.moveout))&&(1==n?($(".move-home .verify").addClass("hidden"),$(".move-home .un-verify").removeClass("hidden")):($(".move-home .verify").removeClass("hidden"),$(".move-home .un-verify").addClass("hidden")),htmlScroll())},s=function(){if(isLogined()&&!isVerified()&&hasURLPage(urlAccount.movehome)&&!hasURLPage(urlAccount.movein))return $(".cssload-container.overlay").show(),void(window.location=urlAccount.verify);hasURLPage(urlAccount.movehome)&&(localStorage.moveHomePage="movehome");hasURLPage(urlAccount.moveout)&&(localStorage.moveHomePage="moveout");hasURLPage(urlAccount.movein)&&(localStorage.moveHomePage="movein");hasURLPage(urlAccount.movewithin)&&(localStorage.moveHomePage="movewithin");hasURLPage(urlAccount.addremoveproperty)&&(localStorage.moveHomePage="addremoveproperty");!isLogined()&&(hasURLPage(urlAccount.moveout)||hasURLPage(urlAccount.movewithin)||hasURLPage(urlAccount.addremoveproperty))&&(localStorage.removeItem("accountDetailID"),localStorage.removeItem("accountDetailInfo"))},h=function(){$("a").on("click touch",function(n){$(this).attr("href")!=urlAccount.movehome||hasURLPage(urlAccount.movein)||!isLogined()||isVerified()||(n.preventDefault(),localStorage.moveHomePage="movehome",$(".cssload-container.overlay").show(),window.location=urlAccount.verify);$(this).attr("href")==urlAccount.movehome&&void 0!=localStorage.getItem("accountLitePending")&&"true"===localStorage.getItem("accountLitePending")&&(n.preventDefault(),$(".cssload-container.overlay").show(),window.location=urlAccount.account);hasURLPage(urlAccount.movehome)&&hasURLPage(urlAccount.moveout)&&hasURLPage(urlAccount.movewithin)&&hasURLPage(urlAccount.addremoveproperty)||(hasURLPage(urlAccount.movehome)&&(localStorage.moveHomePage="movehome"),hasURLPage(urlAccount.movein)?localStorage.moveHomePage="movein":$(this).attr("href")!=urlAccount.movehome&&localStorage.removeItem("moveHomePage"));$(this).attr("href")!=urlAccount.notloggedinmakeapayment||isLogined()?localStorage.removeItem("makePayment"):(n.preventDefault(),n.stopPropagation(),window.location=urlAccount.login+"?action=makePayment",localStorage.makePayment=!0);$(this).hasClass("search-link")?$.cookie("activeSearchPage",!0,{path:"/"}):$.cookie("activeSearchPage",!1,{path:"/"})})};r.initialize=function(){r.verifyIfInMoveHomeJourney();r.newCustomerBtnRegisterEvent();e();f();o();s();h()};t.a=r},58:function(n,t,i){"use strict";function b(n){var t=u.verifyBilling.find(".day").val()+"/"+u.verifyBilling.find(".month").val()+"/"+u.verifyBilling.find(".year").val(),f={UID:u.verifyBilling.find("#UID").val(),Title:"2",FirstName:r().firstname,Surname:r().surname,EmailAddress:r().email,PersonID:n,DateOfBirth:formatDate(t),EbillingFlag:!0};$(".cssload-container.overlay").show();i.i(h.b)([{name:"FirstName",value:r().firstname},{name:"LastName",value:r().surname},{name:"PersonId",value:n},{name:"Region",value:urlAccount.region}],function(){$.ajax({type:"POST",url:apiUrlRegisterCustomer,data:JSON.stringify(f),contentType:"application/json; charset=utf-8",dataType:"json",success:function(){var n=JSON.parse($.cookie("userProfile"));k(n.access_token,n.expires_in,n.refresh_token)},failure:function(n){$(".cssload-container.overlay").fadeOut();$(".moveWithinAlert .alert__content .lbl").html(n);$(".moveWithinAlert").removeClass("go-callus").show()},error:function(n){$(".cssload-container.overlay").fadeOut();$(".moveWithinAlert .alert__content .lbl").html(n.responseJSON.Message);$(".moveWithinAlert").removeClass("go-callus").show()}})})}function k(n,t,i){var r={access_token:n,expires_in:t,refresh_token:i};window.saveUserProfile(r,function(n){localStorage.removeItem("accountDetailInfo");$.cookie("userProfile",null,{path:"/"});$.cookie("userProfile",JSON.stringify(n),{path:"/",secure:!0,HttpOnly:!0});$(".cssload-container.overlay").fadeOut();window.location=urlAccount.account;localStorage.makePayment=!0},function(n){$(".cssload-container.overlay").fadeOut();$(".moveWithinAlert .alert__content .lbl").html(n.responseJSON.Message);$(".moveWithinAlert").removeClass("go-callus").show()})}var h=i(1),u={},f=!1,e=!1,o=!1,c=!1,l=!1,d=function(){$(".moveWithinAlert .nb-btn").on("click touch",function(n){n.preventDefault();$(".moveWithinAlert").hide();$(".moveWithinAlert").hasClass("go-callus")&&(window.location=urlAccount.callus)})},g=function(){$(".account-page.verify .verify-tellus .nb-btn").on("click touch",function(n){n.preventDefault();localStorage.removeItem("accountDetailInfo");localStorage.removeItem("accountDetailID");localStorage.removeItem("accountpersonID");requiredForm(".account-page .verify-tellus")&&($(".cssload-container.overlay").show(),$.ajax({type:"GET",cache:!1,url:apiUrlIsExistingEmail+encodeURIComponent($(".account-page .verify-tellus .email").val()),success:function(n){1==n?window.location=urlAccount.login:($(".account-page .verify-live").removeClass("hidden"),$(".account-page .verify-tellus .nb-btn").parent().addClass("hidden"));$(".cssload-container.overlay").fadeOut()},error:function(n){var t="";void 0!=n.responseJSON?t=n.responseJSON.Message:void 0!=n.responseText&&(t=n.responseText);setTimeout(function(){$(".account-page .verify-tellus .email").parent().find(".form-error").html(t);$(".account-page .verify-tellus .email").parent().removeClass("completed").addClass("error");$(".cssload-container.overlay").fadeOut()},600)}}))})},p=function(n){setTimeout(function(){$(".verify-addressauto .addressauto").val("");$(".verify-addressauto .form-group").removeClass("active completed")},10);null!=n&&($(".verify-info .housenumber").val(n.Premise),$(".verify-info .address").val(n.Thoroughfare),$(".verify-info .address2").val(n.DependentThoroughfare),$(".verify-info .city").val(n.Locality),$(".verify-info .postcode").val(n.PostalCode),$(".verify-info .uprn").val(n.UPRN),$(".verify-addressauto .form-link").addClass("hidden"));requiredForm(".verify-address");$(".verify-address .form-group").each(function(){$(this).find(".form-control").val&&$(this).addClass("active")})},nt=function(){$(".verify-live .addressauto").length>0&&($(".verify-live .addressauto").autocomplete({open:function(){$("ul.ui-menu").width($(this).innerWidth()-6);$(".ui-autocomplete").off("menufocus hover mouseover mouseenter")},change:function(n,t){null===t.item&&($(this).val(""),$(this).parent().find(".form-line").html(""),$(this).parent().removeClass(" active completed error"))},source:function(n,t){initData8(document.getElementById("data8-address-Verifybilling"),t)},minLength:2,select:function(n,t){return n.preventDefault(),$(".verify-addressauto .form-line").html(""),$(".verify-addressauto .form-btn").addClass("hidden"),$(".verify-address .form-btn").addClass("hidden"),$(".verify-info").removeClass("hidden"),$(".verify-dob_nwlaccount").removeClass("hidden"),fillAddress(t.item.selected,p),!1},focus:function(n,t){if($("body").hasClass("ios"))return $(".verify-addressauto .form-line").html(""),$(".verify-addressauto .form-btn").addClass("hidden"),$(".verify-address .form-btn").addClass("hidden"),$(".verify-info").removeClass("hidden"),$(".verify-dob_nwlaccount").removeClass("hidden"),fillAddress(t.item.selected,p),!1}}).data("ui-autocomplete")._renderItem=function(n,t){return n.addClass("postcode-autocomplete"),$("<li>").data("ui-autocomplete-item",t).append("<span data-value='"+t.label+"'>"+t.value+"<\/span>").appendTo(n)})},tt=function(){$(".verify-live .btn-my_noaddress").on("click touch",function(n){n.preventDefault();$(".verify-live .verify-addressauto").addClass("hidden");$(".verify-live .verify-info").removeClass("hidden");$(".verify-live .verify-info .verify-address .housenumber").focus()})},it=function(){$(".verify-info .nb-btn-find_account").on("click touch",function(n){u.verifyBilling.length>0&&(n.preventDefault(),requiredForm(".verify-info")&&(c=""==$(".verify-nwlaccount .nwlnumber").val()||null==$(".verify-nwlaccount .nwlnumber").val(),a()))})},rt=function(){$(".verify-info .verify-address .nb-btn").on("click touch",function(n){n.preventDefault();requiredForm(".verify-info .verify-address")&&($(".verify-info .verify-address .form-btn").addClass("hidden"),$(".verify-info .verify-dob_nwlaccount").removeClass("hidden"))})},s=function(){htmlScroll();o&&(f=!1);l=!1;$(".account-page .verify-movein").addClass("hidden");$(".account-page .verify-bill").addClass("hidden");$(".verify-tellus .form-btn").addClass("hidden");$(".verify-live .verify-addressauto").addClass("hidden");$(".verify-live .verify-info .verify-address .form-btn").addClass("hidden");$(".account-page .verify-customer").removeClass("hidden");$(".account-page .verify-live").removeClass("hidden");$(".verify-live .verify-info").removeClass("hidden");$(".verify-live .verify-dob_nwlaccount").removeClass("hidden")},a=function(n){htmlScroll();$(".account-page .verify-customer").addClass("hidden");$(".account-page .verify-movein").addClass("hidden");$(".account-page .verify-bill").removeClass("hidden");w(n)},v=function(){htmlScroll();$(".account-page .verify-customer").addClass("hidden");$(".account-page .verify-bill").addClass("hidden");$(".account-page .verify-movein").removeClass("hidden")},y=function(n,t,i){$('.account-page .verify-tellus input[name="email"]').length>0&&(window.newEmail=$('.account-page .verify-tellus input[name="email"]').val());var r={personID:i,accountID:n,premiseID:t};u.verifyBilling.length>0?isLogined()?b(i):getAccountInfo(r):(et(),getAccountInfo(r))},r=function(){var i=$(".verify-tellus .firstname").val(),r=$(".verify-tellus .surname").val(),f=$(".verify-tellus .email").val(),n,t;return u.verifyBilling.length>0&&(null!=localStorage.getItem("billingEmailInfoNotRegister")?(n=JSON.parse(localStorage.getItem("billingEmailInfoNotRegister")),i=n.FirstName,r=n.SurName,f=n.EmailAddress):(t=JSON.parse($.cookie("userProfile")),i=t.FirstName,r=t.Surname,f=t.Email)),{firstname:i,surname:r,email:f}},ut=function(){$(".verify-live .btn-next-verify").unbind("click");$(".verify-live .btn-next-verify").on("click touch",function(n){if(n.preventDefault(),requiredForm(".verify-customer"))if(""==$(".verify-nwlaccount .nwlnumber").val()||null==$(".verify-nwlaccount .nwlnumber").val())c=!0,a();else{c=!1;var u=$(".verify-live .day").val()+"/"+$(".verify-live .month").val()+"/"+$(".verify-live .year").val(),t={Region:urlAccount.region,FirstName:r().firstname,Surname:r().surname,AccountId:$(".verify-live .nwlnumber").val(),PostCode:$(".verify-live .postcode").val(),DateOfBirth:formatDate(u),TelephoneNumber:"",EmailAddress:r().email,UPRN:$(".uprn").val()};$(".cssload-container.overlay").show();i.i(h.b)([{name:"FirstName",value:r().firstname},{name:"LastName",value:r().surname}],function(){$.ajax({type:"POST",url:apiUrlValidateCustomer,data:JSON.stringify(t),contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){if(null!=n)if(0==n.statusField.codeField)saveFindMyAccountInfo(t,n.personIDField),y(n.accountIDField,n.premiseIDField,n.personIDField);else{var i=n.statusField.codeField;$(".moveWithinAlert").removeClass("go-callus");$(".moveWithinAlert .alert__content .lbl").html(n.statusField.messageField);localStorage.verifyAfter2th=parseInt(localStorage.getItem("verifyAfter2th"))+1;30==i?localStorage.getItem("verifyAfter2th")<=2?(s(),f=!1):(a("code30"),f=!0,o||(localStorage.verifyAfter2th=1)):(102==i||152==i)&&localStorage.getItem("verifyAfter2th")<=2?(s(),f=!1):$(".moveWithinAlert").addClass("go-callus");$(".moveWithinAlert").show();$(".cssload-container.overlay").fadeOut()}},error:function(n){initPopupErrorApi(n,$(".moveWithinAlert"))}})})}})},w=function(){$(".verify-bill .nb-btn-next").unbind("click");$(".verify-bill .nb-btn-next").on("click touch",function(n){if(n.preventDefault(),f||o)return null==$(".select-payment").val()||"NO"==$(".select-payment").val()?window.location=urlAccount.callus:(v(),f=!0),!1;if(null==$(".select-payment").val()||""==$(".select-payment").val()||"NO"==$(".select-payment").val())return v(),l=!0,!1;l=!1;$(".cssload-container.overlay").show();var u=$(".verify-live .day").val()+"/"+$(".verify-live .month").val()+"/"+$(".verify-live .year").val(),t={Region:urlAccount.region,FirstName:r().firstname,Surname:r().surname,AccountId:$(".verify-live .nwlnumber").val(),PostCode:$(".verify-live .postcode").val(),UPRN:$(".verify-live .uprn").val(),DateOfBirth:formatDate(u),EmailAddress:r().email,PremiseNameNumber:$(".verify-address .housenumber").val(),AccountHolder:"",PaymentMethod:$(".select-payment").val(),MoveInDate:"",TelephoneNumber:""};i.i(h.b)([{name:"FirstName",value:r().firstname},{name:"LastName",value:r().surname}],function(){$.ajax({type:"POST",url:apiUrlForgottenReference,data:JSON.stringify(t),contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){if(null!=n)if(0==n.statusField.codeField)saveFindMyAccountInfo(t,n.personIDField),y(n.accountIDField,n.premiseIDField,n.personIDField);else{var i=n.statusField.codeField;$(".moveWithinAlert").removeClass("go-callus");$(".moveWithinAlert .alert__content .lbl").html(n.statusField.messageField);localStorage.verifyAfter2th=parseInt(localStorage.getItem("verifyAfter2th"))+1;34==i?localStorage.getItem("verifyAfter2th")<=2?(s(),e=!1):(v(),e=!0,o?$(".moveWithinAlert").addClass("go-callus"):localStorage.verifyAfter2th=1):(42==i||52==i||85==i||92==i)&&localStorage.getItem("verifyAfter2th")<=2?(s(),o=!1):$(".moveWithinAlert").addClass("go-callus");$(".cssload-container.overlay").fadeOut();$(".moveWithinAlert").show()}},failure:function(n){$(".cssload-container.overlay").fadeOut();$(".moveWithinAlert .alert__content .lbl").html(n);$(".moveWithinAlert").removeClass("go-callus").show()},error:function(n){$(".cssload-container.overlay").fadeOut();$(".moveWithinAlert .alert__content .lbl").html(n.responseJSON.Message);$(".moveWithinAlert").removeClass("go-callus").show()}})})})},ft=function(){$(".verify-movein .nb-btn-next").unbind("click");$(".verify-movein .nb-btn-next").on("click touch",function(n){var t,a,u;if(n.preventDefault(),t=$(".verify-live .day").val()+"/"+$(".verify-live .month").val()+"/"+$(".verify-live .year").val(),(f||e)&&(t=""),e&&l&&(window.location=urlAccount.callus),(e||f||c)&&("0"==$(".select-month").val()||"0"==$(".select-year").val()))return window.location=urlAccount.callus,!1;a="01/"+$(".select-month").val()+"/"+$(".select-year").val();u={Region:urlAccount.region,FirstName:r().firstname,Surname:r().surname,PostCode:$(".verify-live .postcode").val(),UPRN:$(".verify-live .uprn").val(),EmailAddress:r().email,PremiseNameNumber:$(".verify-address .housenumber").val(),AccountHolder:"",PaymentMethod:$(".select-payment").val(),DateOfBirth:formatDate(t),MoveInDate:formatDate(a),TelephoneNumber:""};$(".cssload-container.overlay").show();i.i(h.b)([{name:"FirstName",value:r().firstname},{name:"LastName",value:r().surname}],function(){$.ajax({type:"POST",url:apiUrlForgottenReference,data:JSON.stringify(u),contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){if(null!=n)if(0==n.statusField.codeField)saveFindMyAccountInfo(u,n.personIDField),y(n.accountIDField,n.premiseIDField,n.personIDField);else{var t=n.statusField.codeField;$(".moveWithinAlert").removeClass("go-callus");$(".moveWithinAlert .alert__content .lbl").html(n.statusField.messageField);localStorage.verifyAfter2th=parseInt(localStorage.getItem("verifyAfter2th"))+1;(34==t||42==t||52==t||85==t||92==t)&&localStorage.getItem("verifyAfter2th")<=2?(s(),(e||f)&&(o=!0)):$(".moveWithinAlert").addClass("go-callus");$(".cssload-container.overlay").fadeOut();$(".moveWithinAlert").show()}},failure:function(n){$(".cssload-container.overlay").fadeOut();$(".moveWithinAlert .alert__content .lbl").html(n);$(".moveWithinAlert").removeClass("go-callus").show()},error:function(n){$(".cssload-container.overlay").fadeOut();$(".moveWithinAlert .alert__content .lbl").html(n.responseJSON.Message);$(".moveWithinAlert").removeClass("go-callus").show()}})})})},et=function(){$(".move-home .verify").addClass("hidden");$(".move-home .un-verify").removeClass("hidden")};u.initialize=function(){if(void 0!=$.cookie("userProfile")){var n=JSON.parse($.cookie("userProfile"));if(void 0!=n.PersonId&&""!==n.PersonId)return}initCountry($(".verify-address .country"),"UK","UK");initPayment($(".verify-bill .select-payment"));initYear($(".verify-movein .select-year"));initMonth($(".verify-movein .select-month"));u.verifyBilling=$(".billing-verify-page");u.verifyAccount=$(".account-page.verify");g();d();tt();it();rt();nt();ut();w();ft()};t.a=u}},[102])