<\/div><\/div><\/div><\/div><\/div>');n&&t.find(".modal-body").prepend($("
").text(n).html());t.modal({show:!1}).on("hidden.bs.modal",function(){t.remove()});return t.modal("show"),t}function hideProgressModal(){$("#progressmodal").modal("hide")}function toggleExpander(n){var t=$(n).find(".arrowToggle");t.hasClass("glyphicon-triangle-right")?(t.removeClass("glyphicon-triangle-right"),t.addClass("glyphicon-triangle-bottom")):(t.removeClass("glyphicon-triangle-bottom"),t.addClass("glyphicon-triangle-right"))}function showToast(n,t,i,r){var u=$("#toast"),e,f;if(u.length==0?($(n).append('
'+t+"<\/div>"),u=$("#toast")):(u.text(t),e="alert-"+i,u.hasClass(e)||(u.removeClass("alert-warning"),u.removeClass("alert-danger"),u.addClass(e))),f=1e4,typeof r!="undefined")switch(r){case"fast":f=2500;break;case"med":f=5e3;break;case"slow":f=2e4;break;default:f=1e4}u.fadeIn();u.fadeOut(f,null)}function hideToast(){var n=$("#toast");n.length>0&&n.hide()}function showErrorToast(n,t,i){showToast(n,t,"danger",i)}function showSuccessToast(n,t,i){showToast(n,t,"warning",i)}function showErrorSnackbar(n,t,i){return new Snackbar(n,"alert alert-danger",t,i)}function showInfoSnackbar(n,t,i){return new Snackbar(n,"alert alert-info",t,i)}function showSuccessSnackbar(n,t,i){return new Snackbar(n,"alert alert-success",t,i)}function showWarningSnackbar(n,t,i){return new Snackbar(n,"alert alert-warning",t,i)}function showSnackbar(n,t,i){return new Snackbar(n,"alert-snackbar",t,i)}function hideSnackbar(){$(".snackbar").each(function(){this.setAttribute("class","snackbar ready");var n=$(this);setTimeout(function(){n.remove()},250)})}function toggleDatePickers(){Modernizr.inputtypes.date||$('input[type="date"]').each(function(){$(this).attr("data-provide","datepicker");var n=$(this).attr("data-bind");$(this).attr("data-bind",n.replace("dateString","bootstrapDateString"));$(this).attr("format","mm/dd/yyyy")})}function ajaxRequest(n,t,i,r,u,f){return $.ajax({type:n,datatype:"JSON",data:i,url:t,cache:!1,success:function(n){r!=null&&typeof r=="function"&&r(n)},error:function(n){u!=null&&typeof u=="function"?u(n):showErrorToast(".headerBar",localizedStrings.GenericError)},complete:function(n,t){f!=null&&typeof f=="function"&&f(n,t)}})}function ajaxRequestNoBody(n,t,i,r,u){return $.ajax({type:n,datatype:"JSON",url:t,cache:!1,success:function(n){i!=null&&typeof i=="function"&&i(n)},error:function(n){r!=null&&typeof r=="function"?r(n):($("#toast:visible").length==0&&($(".headerBar").length!=0?showErrorToast(".headerBar",localizedStrings.GenericError):showErrorToast("#mainNavbar",localizedStrings.GenericError)),$(".progressOverlay").length!=0&&hideProgressOverlay($(".progressOverlay").parent()))},complete:function(n,t){u!=null&&typeof u=="function"&&u(n,t)}})}function ajaxRequestJSON(n,t,i,r,u,f){return $.ajax({type:n,datatype:"JSON",contentType:"application/json; charset=utf-8",data:i,url:t,cache:!1,success:function(n){r!=null&&typeof r=="function"&&r(n)},error:function(n){u!=null&&typeof u=="function"?u(n):($("#toast:visible").length==0&&($(".headerBar").length!=0?showErrorToast(".headerBar",localizedStrings.GenericError):showErrorToast("#mainNavbar",localizedStrings.GenericError)),$(".progressOverlay").length!=0&&hideProgressOverlay($(".progressOverlay").parent()))},complete:function(n,t){f!=null&&typeof f=="function"&&f(n,t)}})}function ajaxPostAntiForge(n,t){var i={__RequestVerificationToken:$("input[name='__RequestVerificationToken']").val()};return $.extend(t,i),$.ajax({type:"POST",datatype:"json",url:n,data:t})}function ajaxPromiseJson(n,t){var i=t?JSON.stringify(t):null;return new Promise(function(t,r){var u=new XMLHttpRequest;u.open("POST",n);u.setRequestHeader("Content-type","application/json");u.onload=function(){u.status==200?t(u.response):r(Error(u.statusText))};u.onerror=function(){r(Error("Network Error"))};typeof cartFunctions!="undefined"&&cartFunctions.getCartID()!==""&&u.setRequestHeader("CartID",cartFunctions.getCartID());u.send(i)}).then(JSON.parse)}function ajaxPromise(n,t){var u=new Headers,f,i,r;u.append("Content-Type","application/json");typeof cartFunctions!="undefined"&&cartFunctions.getCartID()!==""&&u.append("CartID",cartFunctions.getCartID());f={method:"POST",headers:u,mode:"same-origin",credentials:"same-origin"};i=t||{};for(r in f)i.hasOwnProperty(r)||(i[r]=f[r]);return fetch(n,i)}function CheckBoxState(n,t,i,r){var u=this;u.Name=ko.observable(n);u.Checked=ko.observable(t);u.ColumnId=ko.observable(i);u.ID=ko.observable(r)}function storeValue(n,t){var i=!t||t.length===0;Modernizr.localstorage?i?localStorage.removeItem(n):localStorage.setItem(n,t):i?docCookies.hasItem(n)&&docCookies.removeItem(n):docCookies.setItem(n,t)}function retrieveValue(n){return Modernizr.localstorage?localStorage.getItem(n):docCookies.getItem(n)}function storeValueExpiration(n,t,i){var u=!t||t.length===0,r;i||(i=moment().add(20,"minutes"));r=JSON.stringify({data:t,expireAt:i});Modernizr.localstorage?u?localStorage.removeItem(n):localStorage.setItem(n,r):u?docCookies.hasItem(n)&&docCookies.removeItem(n):docCookies.setItem(n,r)}function retrieveValueExpiration(n){var i,t;return(i=Modernizr.localstorage?localStorage.getItem(n):docCookies.getItem(n),!i)?null:(t=JSON.parse(i),typeof t.expireAt=="undefined")?retrieveValue(n):moment().isAfter(moment(t.expireAt))?(storeValue(n,null),null):t.data}function urlContent(n){var t=$('meta[name="root"]').prop("content");return t.slice(-1)!=="/"&&(t+="/"),t+n.replace(/^\//,"")}function recursivedateMapper(n){$.each(n,function(n,t){if(ko.isObservable(t)){var i=moment(t(),moment.ISO_8601);i.isValid()&&t(i)}ko.isObservable(t)&&t.push!=undefined&&$.each(t(),function(n,t){recursivedateMapper(t)})})}function asyncComputed(n,t){var i=ko.observable(),r;return i.inProgress=ko.observable(!1),i.tracker=ko.computed(function(){r&&r.reject();var u=n.call(t);u&&typeof u.done=="function"?(i(null),i.inProgress(!0),r=$.Deferred().done(function(n){i(n)}),u.always(function(){i.inProgress(!1)}).done(r.resolve)):i(u)}),i}function asyncComputedKnockout(n,t){var i=ko.observable(),r;return i.inProgress=ko.observable(!1),i.tracker=ko.computed(function(){r&&r.reject();var u=n.call(t);u&&typeof u.done=="function"?(i(null),i.inProgress(!0),r=$.Deferred().done(function(n){i(ko.mapping.fromJS(n))}),u.always(function(){i.inProgress(!1)}).done(r.resolve)):i(u)}),i}function Club(n,t){var i=this;i.clubId=n;i.clubName=t;i.displayName=ko.computed(function(){return i.clubId!=0?i.clubId+" - "+i.clubName:i.clubName})}function formatDateTime(n,t){var r=ko.unwrap(n),u=moment.isMoment(r)?r:moment(r),e=u.clone(),i=e.startOf("day").diff(moment().startOf("day"),"days"),f;return f=i>=-1&&i<0?t?localizedStrings.DateMomentYesterdayWithTime:localizedStrings.DateMomentYesterday:i>=0&&i<1?t?localizedStrings.DateMomentTodayWithTime:localizedStrings.DateMomentToday:i>=1&&i<2?t?localizedStrings.DateMomentTomorrowWithTime:localizedStrings.DateMomentTomorrow:i>=2&&i<7?t?localizedStrings.DateMomentUpcomingWeekWithTime:localizedStrings.DateMomentUpcomingWeek:moment().isSame(u,"year")?t?localizedStrings.DateMomentThisYearWithTime:localizedStrings.DateMomentThisYear:t?localizedStrings.DateMomentAllOtherWithTime:localizedStrings.DateMomentAllOther,u.format(f)}function formatMonth(n){var t=ko.unwrap(n),r=moment.isMoment(t)?t:moment(t,ShortDate),u=r.clone(),i;switch(moment.locale()){case"es":i="MMMM [de] YYYY";break;default:i="MMMM YYYY"}return r.format(i)}function formatTime(n){var t=ko.unwrap(n),i=moment.isMoment(t)?t:moment(t);return i.format("LT")}function formatTimeRange(n,t){var r=ko.unwrap(n),u=ko.unwrap(t),i=moment.isMoment(r)?r:moment(r),f=moment.isMoment(u)?u:moment(u),e,o;switch(moment.locale()){case"es":e=i.format("A")==f.format("A")?i.format("hh:mm"):i.format("LT");break;default:e=i.format("A")==f.format("A")?i.format("h:mm"):i.format("LT")}return o=f.format("LT"),e+" – "+o}function formatDateTimeRange(n,t,i,r){var e,o,u,f;return(e=t&&t()&&!moment({hour:0}).isSame(t())?" "+t().format("LT"):"",o=r&&r()&&!moment({hour:23,minute:59}).isSame(r())?" "+r().format("LT"):"",e&&!o?o=" "+moment({hour:23,minute:59}).format("LT"):!e&&o&&(e=" "+moment({hour:0}).format("LT")),n()&&i())?(u=n(),f=i(),e||o?u.isSame(f,"day")?formatDateTime(u,!1)+e+" – "+o:u.format("MMM D, YYYY")+e+" – "+f.format("MMM D, YYYY")+o:u.isSame(f,"day")?formatDateTime(u,!1):u.isSame(f,"month")?u.format("MMMM D")+" – "+f.format("D, YYYY"):u.isSame(f,"year")?u.format("MMM D")+" – "+f.format("MMM D, YYYY"):u.format("MMM D, YYYY")+" – "+f.format("MMM D, YYYY")):n()?localizedStrings.AfterFilter.dotNetFormat(n().format("MMM D, YYYY")+e):i()?localizedStrings.BeforeFilter.dotNetFormat(i().format("MMM D, YYYY")+o):""}function getFriendlyList(n){var i,t;if(n.length==0)return"";for(i="",t=0;tg)for(var p=0,s=1,nt=t.split(" "),v=a,w=d,p=0;s<=nt.length;s++)tt=nt.slice(p,s).join(" "),w.data=tt,it=v.getComputedTextLength(),it>g&&(w.data=nt.slice(p,s-1).join(" "),p=s-1,s--,v=document.createElementNS("http://www.w3.org/2000/svg","tspan"),w=document.createTextNode(""),v.appendChild(w),u.appendChild(v),r.push(v));h=document.createElementNS("http://www.w3.org/2000/svg","tspan");y=document.createElementNS("http://www.w3.org/2000/svg","a");y.setAttribute("class","text-uppercase tour-link");y.appendChild(document.createTextNode("Got it"));h.appendChild(y);u.appendChild(h);b=function(){var u=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,v=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,a,w,s,p;e.setAttribute("height",v);e.setAttribute("width",u);var f=n.getBoundingClientRect(),t=f.left+f.width/2,y=f.top+f.height/2,c=Math.sqrt(Math.pow(f.width,2)+Math.pow(f.height,2))/2+10;for(o.setAttribute("r",c),o.setAttribute("cy",y),o.setAttribute("cx",t),i.setAttribute("width",u),i.setAttribute("height",v),i.setAttribute("viewBox","0 0 "+u+" "+v),l.setAttribute("width",u),l.setAttribute("height",v),a=0,ko.utils.arrayForEach(r,function(n){var t=n.getComputedTextLength();t>a&&(a=t)}),w=t>=u/2?t-c-15-a:t+c+15,s=0;s=u/2?t-c-15-p:t+c+15+a-p);h.setAttribute("y",y+25*r.length)};b();window.addEventListener("resize",b);y.onclick=function(){window.removeEventListener("resize",b);$(i).remove();$(f).remove()}}function ScheduledHour(n,t,i,r,u,f,e,o,s){var h=this;h.startTime=ko.protectedObservable(moment.isMoment(n)?n:n?moment(n):null).extend({required:{params:!0,message:localizedStrings.StartTimeRequired}});h.endTime=ko.protectedObservable(moment.isMoment(t)?t:t?moment(t):null).extend({required:{params:!0,message:localizedStrings.EndTimeRequired},validation:{validator:function(n,t){var i=moment(n,DateStrings),u,r;return i==null||!i.isValid()?!0:i.hour()==0&&i.minute()==0?!0:(u=ko.unwrap(t),r=moment(u,DateStrings),r==null||!r.isValid())?!0:r.hour()i.hour()?!1:r.minute()0||!!navigator.userAgent.match(/Trident.*rv\:11\./)?!0:!1}function swal(){var t={title:"",text:"",type:null,allowOutsideClick:!1,showCancelButton:!1,showConfirmButton:!0,closeOnConfirm:!0,closeOnCancel:!0,confirmButtonText:"OK",confirmButtonClass:"btn-primary",cancelButtonText:"Cancel",cancelButtonClass:"btn-default",containerClass:"",titleClass:"",textClass:"",html:!1,imageUrl:null,imageSize:null,timer:null},n=_.extend({},t);switch(typeof arguments[0]){case"string":n.title=arguments[0];n.text=arguments[1]||"";n.type=arguments[2]||"";break;case"object":if(arguments[0].title===undefined)return window.console.error('Missing "title" argument!'),!1;n.title=arguments[0].title;n.text=arguments[0].text||t.text;n.type=arguments[0].type||t.type;n.allowOutsideClick=arguments[0].allowOutsideClick||t.allowOutsideClick;n.showCancelButton=arguments[0].showCancelButton!==undefined?arguments[0].showCancelButton:t.showCancelButton;n.showConfirmButton=arguments[0].showConfirmButton!==undefined?arguments[0].showConfirmButton:t.showConfirmButton;n.closeOnConfirm=arguments[0].closeOnConfirm!==undefined?arguments[0].closeOnConfirm:t.closeOnConfirm;n.closeOnCancel=arguments[0].closeOnCancel!==undefined?arguments[0].closeOnCancel:t.closeOnCancel;n.timer=arguments[0].timer||t.timer;n.html=arguments[0].html||t.html;n.confirmButtonText=t.showCancelButton?"Confirm":t.confirmButtonText;n.confirmButtonText=arguments[0].confirmButtonText||t.confirmButtonText;n.confirmButtonClass=arguments[0].confirmButtonClass||(arguments[0].type?"btn-"+arguments[0].type:null)||t.confirmButtonClass;n.cancelButtonText=arguments[0].cancelButtonText||t.cancelButtonText;n.cancelButtonClass=arguments[0].cancelButtonClass||t.cancelButtonClass;n.containerClass=arguments[0].containerClass||t.containerClass;n.titleClass=arguments[0].titleClass||t.titleClass;n.textClass=arguments[0].textClass||t.textClass;n.imageUrl=arguments[0].imageUrl||t.imageUrl;n.imageSize=arguments[0].imageSize||t.imageSize;n.doneFunction=arguments[1]||null;break;default:return window.console.error('Unexpected type of argument! Expected "string" or "object", got '+typeof arguments[0]),!1}showConfirmDialog({showCancel:n.showCancelButton,headerText:n.title,bodyText:n.text,confirmText:n.confirmButtonText,cancelText:n.cancelButtonText,confirmCallback:function(){typeof n.doneFunction=="function"&&n.doneFunction(!0)},cancelCallback:function(){typeof n.doneFunction=="function"&&n.doneFunction(!1)}})}function ArrayFromObjectIndex(n,t){return _.map(t,function(t){return t[n]})}function smallerOfTwoArrays(n,t){var i=this,r,u;return i.chargeCodes_In=!0,r=[],n.length!=t.length?(u=n.length-t.length>t.length,u?(i.chargeCodes_In=!0,_.intersection(n,t).forEach(function(n){r.push(n)})):(i.chargeCodes_In=!1,_.difference(n,t).forEach(function(n){r.push(n)})),goal=[i.chargeCodes_In,r]):[i.chargeCodes_In,""]}function getIncludeAndExclude(n,t,i){var r=ko.unwrap(n).slice(),u=[],f,o,e;return typeof i!="function"&&(i=function(n){return n}),f=_.map(ko.unwrap(t),i),o=_.reject(r,function(n){return f.indexOf(i(n))!==-1}),r=_.filter(r,function(n){return f.indexOf(i(n))!==-1}),Array.prototype.push.apply(u,o),e=r.length>u.length,{includeIds:e?"":_.map(r,i).join(","),excludeIds:e?_.map(u,i).join(","):""}}function dateTimeToISOForRequest(n,t){var i=moment.isMoment(n)?n:moment(n,DateStrings);return t?i.toISOString():i.format("YYYY-MM-DD")}function showThemedOptionPrompt(n){var i={showCancel:!1,showClose:!1,headerText:"",bodyTemplate:null,bodyViewModel:{},bodyText:"",glyphicon:"",footerTemplate:null,cancelText:localizedStrings.Cancel,cancelCallback:null,actionOptions:[]},t=$.extend({},i),r,v,s,h,u,y,g,p,nt,w,c,f,b,l,tt,a,e,k,o,it,d;t.showCancel=n.showCancel!==undefined?ko.unwrap(n.showCancel):i.showCancel;t.showClose=n.showClose!==undefined?ko.unwrap(n.showClose):i.showClose;t.headerText=n.headerText!==undefined?ko.unwrap(n.headerText):i.headerText;t.bodyTemplate=n.bodyTemplate!==undefined?ko.unwrap(n.bodyTemplate):i.bodyTemplate;t.bodyViewModel=n.bodyViewModel!==undefined?ko.unwrap(n.bodyViewModel):i.bodyViewModel;t.bodyText=n.bodyText!==undefined?ko.unwrap(n.bodyText):i.bodyText;t.glyphicon=n.glyphicon!==undefined?ko.unwrap(n.glyphicon):i.glyphicon;t.footerTemplate=n.footerTemplate!==undefined?ko.unwrap(n.footerTemplate):i.footerTemplate;t.cancelText=n.cancelText!==undefined?ko.unwrap(n.cancelText):i.cancelText;t.cancelCallback=n.cancelCallback!==undefined?ko.unwrap(n.cancelCallback):i.cancelCallback;t.actionOptions=n.actionOptions!==undefined?ko.unwrap(n.actionOptions):i.actionOptions;r=document.createElement("div");r.setAttribute("class","modal fade");v=document.createElement("div");v.setAttribute("class","modal-dialog");r.appendChild(v);s=document.createElement("div");s.setAttribute("class","modal-content");v.appendChild(s);h=document.createElement("div");h.setAttribute("class","modal-header");s.appendChild(h);t.showClose&&(u=document.createElement("button"),u.setAttribute("type","button"),u.setAttribute("class","close"),u.setAttribute("data-dismiss","modal"),u.setAttribute("aria-label","Close"),h.appendChild(u),y=document.createElement("span"),y.setAttribute("aria-hidden","true"),u.appendChild(y),g=document.createTextNode("×"),y.appendChild(g));p=document.createElement("h4");p.setAttribute("class","modal-title");h.appendChild(p);nt=document.createTextNode(t.headerText);p.appendChild(nt);w=document.createElement("div");w.setAttribute("class","modal-body");s.appendChild(w);c=document.createElement("div");c.setAttribute("class","panel panel-primary");w.appendChild(c);f=document.createElement("div");f.setAttribute("class","panel-body");c.appendChild(f);t.bodyTemplate?f.setAttribute("data-bind","template: { name: '"+t.bodyTemplate+"' }"):(t.glyphicon&&(b=document.createElement("span"),b.setAttribute("class","promptIcon glyphicon "+t.glyphicon),f.appendChild(b)),l=document.createElement("span"),l.setAttribute("class","promptBody"),tt=t.bodyText.split("\n"),$.each(tt,function(n,t){l.appendChild(document.createTextNode(t));l.appendChild(document.createElement("br"))}),f.appendChild(l));a=document.createElement("div");a.setAttribute("class","panel-footer");c.appendChild(a);e=document.createElement("div");e.setAttribute("class","btn-toolbar pull-right");a.appendChild(e);k=document.createElement("div");k.setAttribute("class","clearfix");a.appendChild(k);t.footerTemplate?e.setAttribute("data-bind","template: { name: '"+t.footerTemplate+"' }"):($.each(t.actionOptions,function(n,t){var i=document.createElement("button"),r;i.setAttribute("type","button");i.setAttribute("class",t.buttonClass?"btn "+t.buttonClass:"btn btn-primary");i.setAttribute("data-bind","click: function() {onAction("+n+");}, hasFocus: isSelected");e.appendChild(i);r=document.createTextNode(t.actionText);i.appendChild(r)}),t.showCancel&&(o=document.createElement("button"),o.setAttribute("type","button"),o.setAttribute("class","btn btn-default"),o.setAttribute("data-bind","click: onCancel, hasFocus: isSelected"),e.appendChild(o),it=document.createTextNode(t.cancelText),o.appendChild(it)));document.body.appendChild(r);t.bodyTemplate&&ko.applyBindings(t.bodyViewModel,f);d={isSelected:ko.observable(!1),onAction:function(n){$(r).modal("hide");typeof t.actionOptions[n].onClick=="function"&&t.actionOptions[n].onClick()},onCancel:function(){$(r).modal("hide");typeof t.cancelCallback=="function"&&t.cancelCallback()},canConfirm:t.canConfirm};ko.applyBindings(d,e);$(r).on("hidden.bs.modal",function(){$(r).remove()});$(r).on("shown.bs.modal",function(){d.isSelected(!0)});$(r).modal({backdrop:"static",keyboard:!1})}function getQueryString(n,t){return Object.keys(n).filter(function(t){return typeof n[t]=="boolean"||typeof n[t]=="number"||!!n[t]&&(!Array.isArray(n[t])||n[t].length>0)}).map(function(i){var u,r,f;if(Array.isArray(n[i])){u=[];for(r in n[i])n[i].hasOwnProperty(r)&&(f=t?"".concat(t,".",i,"[",r,"]"):"".concat(i,"[",r,"]"),typeof n[i]=="object"?u.push(getQueryString(n[i][r],f)):u.push(encodeURIComponent(f)+"="+encodeURIComponent(n[i][r])));return u.join("&")}return typeof n[i]=="object"?getQueryString(n[i],t?t+"."+i:i):encodeURIComponent(t?t+"."+i:i)+"="+encodeURIComponent(n[i])}).join("&")}function getFlagEmoji(n){"use strict";return n.toUpperCase().replace(/./g,function(n){return String.fromCodePoint(127397+n.charCodeAt())})}function forgotPasswordViewModel(){var n=this;n.phase=ko.observable(1);n.clubId=ko.observable().extend({required:{message:localizedStrings.SiteNumberRequired},number:{message:localizedStrings.SiteNumberInvalid}});n.userName=ko.observable().extend({required:{message:localizedStrings.UserNameRequired}});n.email=ko.observable().extend({required:{message:localizedStrings.EmailRequired},email:{message:localizedStrings.EmailInvalid}});n.answer=ko.observable().extend({required:{onlyIf:n.phase()>1,message:localizedStrings.SecurityAnswerRequired}});n.securityQuestion=ko.observable();n.repGroup=ko.validation.group([n.clubId,n.userName,n.email]);n.answerGroup=ko.validation.group(n.answer);n.validationErrors=ko.pureComputed(function(){var t=ko.observableArray();return n.repGroup.forEach(function(n){ko.validation.utils.isValidatable(n)&&!n.isValid()&&n.isModified()&&t.push(n.error())}),n.answerGroup.forEach(function(n){ko.validation.utils.isValidatable(n)&&!n.isValid()&&n.isModified()&&t.push(n.error())}),t()});n.submitStep1=function(){if(n.repGroup().length>0){n.repGroup.showAllMessages();return}showLoadingPanel();ajaxRequest("POST",urlContent("/Account/SecurityQuestion"),{clubId:n.clubId(),userName:n.userName(),email:n.email()}).done(function(t){t.success?(n.securityQuestion(t.question),n.phase(2)):$(".passwordNotFound").fadeIn()}).always(hideLoadingPanel)};n.submitStep2=function(){if(n.answerGroup().length>0){n.answerGroup.showAllMessages();return}showLoadingPanel();ajaxPostAntiForge(urlContent("/Account/ForgotPassword"),{clubId:n.clubId(),userName:n.userName(),answer:n.answer()}).done(function(t){t?n.phase(3):$(".wrongAnswer").fadeIn()}).always(hideLoadingPanel)}}function showLoadingPanel(){$(".alert-danger").fadeOut();$(".loadingPanel").slideDown()}function hideLoadingPanel(){$(".loadingPanel").slideUp()}function validationSummaryViewModel(n){var t=this;t.validationErrors=n.errors;t.validationErrorCount=ko.pureComputed(function(){return t.validationErrors().length==1?localizedStrings.ValidationErrorCountSingular:localizedStrings.ValidationErrorCountPlural.dotNetFormat(t.validationErrors().length)});t.errorText=function(n){return n?typeof n.message=="undefined"?n:ko.unwrap(n.message):""};t.hasActionText=function(n){return n?typeof n.actionText=="undefined"?!1:!0:!1}}String.prototype.dotNetFormat||(String.prototype.dotNetFormat=function(){var n=arguments;return this.replace(/{(\d+)}/g,function(t,i){return typeof n[i]!="undefined"?n[i]:t})});var docCookies={getItem:function(n){return n?decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(n).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null:null},setItem:function(n,t,i,r,u,f){if(!n||/^(?:expires|max\-age|path|domain|secure)$/i.test(n))return!1;var e="";if(i)switch(i.constructor){case Number:e=i===Infinity?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+i;break;case String:e="; expires="+i;break;case Date:e="; expires="+i.toUTCString()}return document.cookie=encodeURIComponent(n)+"="+encodeURIComponent(t)+e+(u?"; domain="+u:"")+(r?"; path="+r:"")+(f?"; secure":""),!0},removeItem:function(n,t,i){return this.hasItem(n)?(document.cookie=encodeURIComponent(n)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(i?"; domain="+i:"")+(t?"; path="+t:""),!0):!1},hasItem:function(n){return n?new RegExp("(?:^|;\\s*)"+encodeURIComponent(n).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie):!1},keys:function(){for(var n=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),i=n.length,t=0;t-1;i-=1)if(n[i]&&t(n[i],i,n))break}function r(n,t){return bt.call(n,t)}function t(n,t){return r(n,t)&&n[t]}function c(n,t){for(var i in n)if(r(n,i)&&t(n[i],i))break}function nt(n,t,i,u){return t&&c(t,function(t,f){(i||!r(n,f))&&(u&&typeof t!="string"?(n[f]||(n[f]={}),nt(n[f],t,i,u)):n[f]=t)}),n}function u(n,t){return function(){return t.apply(n,arguments)}}function rt(){return document.getElementsByTagName("script")}function at(n){throw n;}function vt(t){if(!t)return t;var i=n;return o(t.split("."),function(n){i=i[n]}),i}function h(n,t,i,r){var u=new Error(t+"\nhttp://requirejs.org/docs/errors.html#"+n);return u.requireType=n,u.requireModules=r,i&&(u.originalError=i),u}function ni(f){function vi(n){for(var i,t=0;n[t];t+=1)if(i=n[t],i===".")n.splice(t,1),t-=1;else if(i==="..")if(t===1&&(n[2]===".."||n[0]===".."))break;else t>0&&(n.splice(t-1,2),t-=2)}function it(n,i,r){var p,w,f,s,e,h,c,o,b,a,k,u=i&&i.split("/"),d=u,v=l.map,y=v&&v["*"];if(n&&n.charAt(0)==="."&&(i?(d=t(l.pkgs,i)?u=[i]:u.slice(0,u.length-1),n=d.concat(n.split("/")),vi(n),w=t(l.pkgs,p=n[0]),n=n.join("/"),w&&n===p+"/"+w.main&&(n=p)):n.indexOf("./")===0&&(n=n.substring(2))),r&&v&&(u||y)){for(s=n.split("/"),e=s.length;e>0;e-=1){if(c=s.slice(0,e).join("/"),u)for(h=u.length;h>0;h-=1)if(f=t(v,u.slice(0,h).join("/")),f&&(f=t(f,c),f)){o=f;b=e;break}if(o)break;!a&&y&&t(y,c)&&(a=t(y,c),k=e)}!o&&a&&(o=a,b=k);o&&(s.splice(0,b,o),n=s.join("/"))}return n}function fi(n){e&&o(rt(),function(t){if(t.getAttribute("data-requiremodule")===n&&t.getAttribute("data-requirecontext")===s.contextName)return t.parentNode.removeChild(t),!0})}function ni(n){var i=t(l.paths,n);if(i&&y(i)&&i.length>1)return fi(n),i.shift(),s.require.undef(n),s.require([n]),!0}function ei(n){var i,t=n?n.indexOf("!"):-1;return t>-1&&(i=n.substring(0,t),n=n.substring(t+1,n.length)),[i,n]}function k(n,i,r,u){var a,h,l,o,f=null,c=i?i.name:null,y=n,v=!0,e="";return n||(v=!1,n="_@r"+(li+=1)),o=ei(n),f=o[0],n=o[1],f&&(f=it(f,c,u),h=t(w,f)),n&&(f?e=h&&h.normalize?h.normalize(n,function(n){return it(n,c,u)}):it(n,c,u):(e=it(n,c,u),o=ei(e),f=o[0],e=o[1],r=!0,a=s.nameToUrl(e))),l=f&&!h&&!r?"_unnormalized"+(ai+=1):"",{prefix:f,name:e,parentMap:i,unnormalized:!!l,url:a,originalName:y,isDefine:v,id:(f?f+"!"+e:e)+l}}function et(n){var r=n.id,i=t(p,r);return i||(i=p[r]=new s.Module(n)),i}function ht(n,i,u){var e=n.id,f=t(p,e);if(r(w,e)&&(!f||f.defineEmitComplete))i==="defined"&&u(w[e]);else if(f=et(n),f.error&&i==="error")u(f.error);else f.on(i,u)}function d(n,r){var f=n.requireModules,u=!1;if(r)r(n);else if(o(f,function(i){var r=t(p,i);r&&(r.error=n,r.events.error&&(u=!0,r.emit("error",n)))}),!u)i.onError(n)}function ti(){g.length&&(dt.apply(tt,[tt.length-1,0].concat(g)),g=[])}function ii(n){delete p[n];delete bt[n]}function oi(n,i,r){var u=n.map.id;n.error?n.emit("error",n.error):(i[u]=!0,o(n.depMaps,function(u,f){var e=u.id,o=t(p,e);!o||n.depMatched[f]||r[e]||(t(i,e)?(n.defineDep(f,w[e]),n.check()):oi(o,i,r))}),r[u]=!0)}function ri(){var n,t,r,a,v=l.waitSeconds*1e3,u=v&&s.startTime+v<(new Date).getTime(),i=[],y=[],f=!1,p=!0;if(!lt){if(lt=!0,c(bt,function(r){if((n=r.map,t=n.id,r.enabled)&&(n.isDefine||y.push(r),!r.error))if(!r.inited&&u)ni(t)?(a=!0,f=!0):(i.push(t),fi(t));else if(!r.inited&&r.fetched&&n.isDefine&&(f=!0,!n.prefix))return p=!1}),u&&i.length)return r=h("timeout","Load timeout for modules: "+i,null,i),r.contextName=s.contextName,d(r);p&&o(y,function(n){oi(n,{},{})});(!u||a)&&f&&(e||st)&&!pt&&(pt=setTimeout(function(){pt=0;ri()},50));lt=!1}}function ui(n){r(w,n[0])||et(k(n[0],null,!0)).init(n[1],n[2])}function si(n,t,i,r){n.detachEvent&&!ct?r&&n.detachEvent(r,t):n.removeEventListener(i,t,!1)}function hi(n){var t=n.currentTarget||n.srcElement;return si(t,s.onScriptLoad,"load","onreadystatechange"),si(t,s.onScriptError,"error"),{node:t,id:t&&t.getAttribute("data-requiremodule")}}function ci(){var n;for(ti();tt.length;){if(n=tt.shift(),n[0]===null)return d(h("mismatch","Mismatched anonymous define() module: "+n[n.length-1]));ui(n)}}var lt,yt,s,ut,pt,l={waitSeconds:7,baseUrl:"./",paths:{},pkgs:{},shim:{},config:{}},p={},bt={},kt={},tt=[],w={},ot={},li=1,ai=1;return ut={require:function(n){return n.require?n.require:n.require=s.makeRequire(n.map)},exports:function(n){return n.usingExports=!0,n.map.isDefine?n.exports?n.exports:n.exports=w[n.map.id]={}:void 0},module:function(n){return n.module?n.module:n.module={id:n.map.id,uri:n.map.url,config:function(){var i,r=t(l.pkgs,n.map.id);return i=r?t(l.config,n.map.id+"/"+r.main):t(l.config,n.map.id),i||{}},exports:w[n.map.id]}}},yt=function(n){this.events=t(kt,n.id)||{};this.map=n;this.shim=t(l.shim,n.id);this.depExports=[];this.depMaps=[];this.depMatched=[];this.pluginMaps={};this.depCount=0},yt.prototype={init:function(n,t,i,r){if(r=r||{},!this.inited){if(this.factory=t,i)this.on("error",i);else this.events.error&&(i=u(this,function(n){this.emit("error",n)}));this.depMaps=n&&n.slice(0);this.errback=i;this.inited=!0;this.ignore=r.ignore;r.enabled||this.enabled?this.enable():this.check()}},defineDep:function(n,t){this.depMatched[n]||(this.depMatched[n]=!0,this.depCount-=1,this.depExports[n]=t)},fetch:function(){if(!this.fetched){this.fetched=!0;s.startTime=(new Date).getTime();var n=this.map;if(this.shim)s.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],u(this,function(){return n.prefix?this.callPlugin():this.load()}));else return n.prefix?this.callPlugin():this.load()}},load:function(){var n=this.map.url;ot[n]||(ot[n]=!0,s.load(this.map.id,n))},check:function(){if(this.enabled&&!this.enabling){var t,r,u=this.map.id,e=this.depExports,n=this.exports,f=this.factory;if(this.inited){if(this.error)this.emit("error",this.error);else if(!this.defining){if(this.defining=!0,this.depCount<1&&!this.defined){if(v(f)){if(this.events.error&&this.map.isDefine||i.onError!==at)try{n=s.execCb(u,f,e,n)}catch(o){t=o}else n=s.execCb(u,f,e,n);if(this.map.isDefine&&(r=this.module,r&&r.exports!==undefined&&r.exports!==this.exports?n=r.exports:n===undefined&&this.usingExports&&(n=this.exports)),t)return t.requireMap=this.map,t.requireModules=this.map.isDefine?[this.map.id]:null,t.requireType=this.map.isDefine?"define":"require",d(this.error=t)}else n=f;if(this.exports=n,this.map.isDefine&&!this.ignore&&(w[u]=n,i.onResourceLoad))i.onResourceLoad(s,this.map,this.depMaps);ii(u);this.defined=!0}this.defining=!1;this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else this.fetch()}},callPlugin:function(){var n=this.map,f=n.id,e=k(n.prefix);this.depMaps.push(e);ht(e,"defined",u(this,function(e){var o,a,v,y=this.map.name,g=this.map.parentMap?this.map.parentMap.name:null,w=s.makeRequire(n.parentMap,{enableBuildCallback:!0});if(this.map.unnormalized){if(e.normalize&&(y=e.normalize(y,function(n){return it(n,g,!0)})||""),a=k(n.prefix+"!"+y,this.map.parentMap),ht(a,"defined",u(this,function(n){this.init([],function(){return n},null,{enabled:!0,ignore:!0})})),v=t(p,a.id),v){if(this.depMaps.push(a),this.events.error)v.on("error",u(this,function(n){this.emit("error",n)}));v.enable()}return}o=u(this,function(n){this.init([],function(){return n},null,{enabled:!0})});o.error=u(this,function(n){this.inited=!0;this.error=n;n.requireModules=[f];c(p,function(n){n.map.id.indexOf(f+"_unnormalized")===0&&ii(n.map.id)});d(n)});o.fromText=u(this,function(t,u){var e=n.name,c=k(e),a=b;u&&(t=u);a&&(b=!1);et(c);r(l.config,f)&&(l.config[e]=l.config[f]);try{i.exec(t)}catch(v){return d(h("fromtexteval","fromText eval for "+f+" failed: "+v,v,[f]))}a&&(b=!0);this.depMaps.push(c);s.completeLoad(e);w([e],o)});e.load(n.name,w,o,l)}));s.enable(e,this);this.pluginMaps[e.id]=e},enable:function(){bt[this.map.id]=this;this.enabled=!0;this.enabling=!0;o(this.depMaps,u(this,function(n,i){var f,e,o;if(typeof n=="string"){if(n=k(n,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[i]=n,o=t(ut,n.id),o){this.depExports[i]=o(this);return}this.depCount+=1;ht(n,"defined",u(this,function(n){this.defineDep(i,n);this.check()}));this.errback&&ht(n,"error",u(this,this.errback))}f=n.id;e=p[f];r(ut,f)||!e||e.enabled||s.enable(n,this)}));c(this.pluginMaps,u(this,function(n){var i=t(p,n.id);i&&!i.enabled&&s.enable(n,this)}));this.enabling=!1;this.check()},on:function(n,t){var i=this.events[n];i||(i=this.events[n]=[]);i.push(t)},emit:function(n,t){o(this.events[n],function(n){n(t)});n==="error"&&delete this.events[n]}},s={config:l,contextName:f,registry:p,defined:w,urlFetched:ot,defQueue:tt,Module:yt,makeModuleMap:k,nextTick:i.nextTick,onError:d,configure:function(n){n.baseUrl&&n.baseUrl.charAt(n.baseUrl.length-1)!=="/"&&(n.baseUrl+="/");var t=l.pkgs,i=l.shim,r={paths:!0,config:!0,map:!0};c(n,function(n,t){r[t]?t==="map"?(l.map||(l.map={}),nt(l[t],n,!0,!0)):nt(l[t],n,!0):l[t]=n});n.shim&&(c(n.shim,function(n,t){y(n)&&(n={deps:n});(n.exports||n.init)&&!n.exportsFn&&(n.exportsFn=s.makeShimExports(n));i[t]=n}),l.shim=i);n.packages&&(o(n.packages,function(n){var i;n=typeof n=="string"?{name:n}:n;i=n.location;t[n.name]={name:n.name,location:i||n.name,main:(n.main||"main").replace(wt,"").replace(ft,"")}}),l.pkgs=t);c(p,function(n,t){n.inited||n.map.unnormalized||(n.map=k(t))});(n.deps||n.callback)&&s.require(n.deps||[],n.callback)},makeShimExports:function(t){function i(){var i;return t.init&&(i=t.init.apply(n,arguments)),i||t.exports&&vt(t.exports)}return i},makeRequire:function(n,u){function o(t,e,c){var l,y,a;return(u.enableBuildCallback&&e&&v(e)&&(e.__requireJsBuild=!0),typeof t=="string")?v(e)?d(h("requireargs","Invalid require call"),c):n&&r(ut,t)?ut[t](p[n.id]):i.get?i.get(s,t,n,o):(y=k(t,n,!1,!0),l=y.id,!r(w,l))?d(h("notloaded",'Module name "'+l+'" has not been loaded yet for context: '+f+(n?"":". Use require([])"))):w[l]:(ci(),s.nextTick(function(){ci();a=et(k(null,n));a.skipMap=u.skipMap;a.init(t,e,c,{enabled:!0});ri()}),o)}return u=u||{},nt(o,{isBrowser:e,toUrl:function(t){var r,i=t.lastIndexOf("."),u=t.split("/")[0],f=u==="."||u==="..";return i!==-1&&(!f||i>1)&&(r=t.substring(i,t.length),t=t.substring(0,i)),s.nameToUrl(it(t,n&&n.id,!0),r,!0)},defined:function(t){return r(w,k(t,n,!1,!0).id)},specified:function(t){return t=k(t,n,!1,!0).id,r(w,t)||r(p,t)}}),n||(o.undef=function(i){ti();var u=k(i,n,!0),r=t(p,i);delete w[i];delete ot[u.url];delete kt[i];r&&(r.events.defined&&(kt[i]=r.events),ii(i))}),o},enable:function(n){var i=t(p,n.id);i&&et(n).enable()},completeLoad:function(n){var u,i,f,e=t(l.shim,n)||{},o=e.exports;for(ti();tt.length;){if(i=tt.shift(),i[0]===null){if(i[0]=n,u)break;u=!0}else i[0]===n&&(u=!0);ui(i)}if(f=t(p,n),!u&&!r(w,n)&&f&&!f.inited)if(!l.enforceDefine||o&&vt(o))ui([n,e.deps||[],e.exportsFn]);else return ni(n)?void 0:d(h("nodefine","No define call for "+n,null,[n]));ri()},nameToUrl:function(n,r,u){var a,v,e,p,o,s,c,f,h;if(i.jsExtRegExp.test(n))f=n+(r||"");else{for(a=l.paths,v=l.pkgs,o=n.split("/"),s=o.length;s>0;s-=1)if(c=o.slice(0,s).join("/"),e=t(v,c),h=t(a,c),h){y(h)&&(h=h[0]);o.splice(0,s,h);break}else if(e){p=n===e.name?e.location+"/"+e.main:e.location;o.splice(0,s,p);break}f=o.join("/");f+=r||(/\?/.test(f)||u?"":".js");f=(f.charAt(0)==="/"||f.match(/^[\w\+\.\-]+:/)?"":l.baseUrl)+f}return l.urlArgs?f+((f.indexOf("?")===-1?"?":"&")+l.urlArgs):f},load:function(n,t){i.load(s,n,t)},execCb:function(n,t,i,r){return t.apply(r,i)},onScriptLoad:function(n){if(n.type==="load"||gt.test((n.currentTarget||n.srcElement).readyState)){a=null;var t=hi(n);s.completeLoad(t.id)}},onScriptError:function(n){var t=hi(n);if(!ni(t.id))return d(h("scripterror","Script error for: "+t.id,n,[t.id]))}},s.require=s.makeRequire(),s}function ti(){return a&&a.readyState==="interactive"?a:(lt(rt(),function(n){if(n.readyState==="interactive")return a=n}),a)}var i,tt,l,p,k,d,a,it,f,ut,yt=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,pt=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,ft=/\.js$/,wt=/^\.\//,et=Object.prototype,ot=et.toString,bt=et.hasOwnProperty,kt=Array.prototype,dt=kt.splice,e=!!(typeof window!="undefined"&&navigator&&window.document),st=!e&&typeof importScripts!="undefined",gt=e&&navigator.platform==="PLAYSTATION 3"?/^complete$/:/^(complete|loaded)$/,ht="_",ct=typeof opera!="undefined"&&opera.toString()==="[object Opera]",w={},s={},g=[],b=!1;if(typeof define=="undefined"){if(typeof requirejs!="undefined"){if(v(requirejs))return;s=requirejs;requirejs=undefined}typeof require=="undefined"||v(require)||(s=require,require=undefined);i=requirejs=function(n,r,u,f){var o,e,s=ht;return y(n)||typeof n=="string"||(e=n,y(r)?(n=r,r=u,u=f):n=[]),e&&e.context&&(s=e.context),o=t(w,s),o||(o=w[s]=i.s.newContext(s)),e&&o.configure(e),o.require(n,r,u)};i.config=function(n){return i(n)};i.nextTick=typeof setTimeout!="undefined"?function(n){setTimeout(n,4)}:function(n){n()};require||(require=i);i.version="2.1.6";i.jsExtRegExp=/^\/|:|\?|\.js$/;i.isBrowser=e;tt=i.s={contexts:w,newContext:ni};i({});o(["toUrl","undef","defined","specified"],function(n){i[n]=function(){var t=w[ht];return t.require[n].apply(t,arguments)}});e&&(l=tt.head=document.getElementsByTagName("head")[0],p=document.getElementsByTagName("base")[0],p&&(l=tt.head=p.parentNode));i.onError=at;i.load=function(n,t,i){var u=n&&n.config||{},r;if(e)return r=u.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script"),r.type=u.scriptType||"text/javascript",r.charset="utf-8",r.async=!0,r.setAttribute("data-requirecontext",n.contextName),r.setAttribute("data-requiremodule",t),!r.attachEvent||r.attachEvent.toString&&r.attachEvent.toString().indexOf("[native code")<0||ct?(r.addEventListener("load",n.onScriptLoad,!1),r.addEventListener("error",n.onScriptError,!1)):(b=!0,r.attachEvent("onreadystatechange",n.onScriptLoad)),r.src=i,it=r,p?l.insertBefore(r,p):l.appendChild(r),it=null,r;if(st)try{importScripts(i);n.completeLoad(t)}catch(f){n.onError(h("importscripts","importScripts failed for "+t+" at "+i,f,[t]))}};e&<(rt(),function(n){return l||(l=n.parentNode),k=n.getAttribute("data-main"),k?(f=k,s.baseUrl||(d=f.split("/"),f=d.pop(),ut=d.length?d.join("/")+"/":"./",s.baseUrl=ut),f=f.replace(ft,""),i.jsExtRegExp.test(f)&&(f=k),s.deps=s.deps?s.deps.concat(f):[f],!0):void 0});define=function(n,t,i){var r,u;typeof n!="string"&&(i=t,t=n,n=null);y(t)||(i=t,t=null);!t&&v(i)&&(t=[],i.length&&(i.toString().replace(yt,"").replace(pt,function(n,i){t.push(i)}),t=(i.length===1?["require"]:["require","exports","module"]).concat(t)));b&&(r=it||ti(),r&&(n||(n=r.getAttribute("data-requiremodule")),u=w[r.getAttribute("data-requirecontext")]));(u?u.defQueue:g).push([n,t,i])};define.amd={jQuery:!0};i.exec=function(n){return eval(n)};i(s)}})(this);ko.components.register("validation-summary",{viewModel:validationSummaryViewModel,template:{require:"text!Templates/ValidationSummary.html"}});