1(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-53f877e0","chunk-27031b3f"],{"0d36":function(t,e,o){"use strict";var i=o("1a39"),s=o.n(i);s.a},"1a39":function(t,e,o){},"258c":function(t,e,o){},"2b8c":function(t,e,o){},"61de":function(t,e,o){"use strict";var i=o("258c"),s=o.n(i);s.a},"7edd":function(t,e,o){"use strict";o.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"header__wrapper white-bg",class:{"page-layout":"page"===t.layout}},[i("div",{staticClass:"container is-fluid"},[i("div",{staticClass:"header__inner"},[i("div",{staticClass:"random-words"},[i("router-link",{attrs:{to:"/explore"}},[t._v("Explore")])],1),i("div",{staticClass:"random-words"},[i("router-link",{attrs:{to:"/fundraiser"}},[t._v("\n "+t._s(t.volunteerText||"Volunteer")+"\n ")])],1),i("div",{staticClass:"user-space__search"},[i("div",{staticClass:"user-space__search-wrapper"},[i("div",{staticClass:"user-space__search-trigger",on:{click:function(e){t.showSearchBar=!t.showSearchBar}}},[i("Icons",{attrs:{iconwidth:"24px",iconheight:"24px",icon:"search",color:"#999999"}})],1)])]),i("div",{staticClass:"logo__wrapper"},[t.generic?i("div",{staticClass:"logo__slider"},[i("flickity",{attrs:{options:t.flickityOptions}},t._l(t.headerLogos,function(t,e){return i("div",{key:e,staticClass:"logo__slide"},[i("img",{class:"logo__slide-img logo__slide-img-"+e,attrs:{src:t}})])}),0)],1):i("div",{staticClass:"logo"},[i("router-link",{attrs:{to:"/"}},[i("img",{staticClass:"logo",attrs:{src:o("880a"),alt:"logo",width:"300",height:"53"}})])],1)]),i("div",{staticClass:"logo__wrapper centered"},[t.generic?i("div",{staticClass:"logo__slider"},[i("flickity",{attrs:{options:t.flickityOptions}},t._l(t.headerLogos,function(t,e){return i("div",{key:e,staticClass:"logo__slide"},[i("img",{class:"logo__slide-img logo__slide-img-"+e,attrs:{src:t}})])}),0)],1):i("div",{staticClass:"logo"},[i("router-link",{attrs:{to:"/"}},[i("img",{staticClass:"logo",attrs:{src:o("880a"),alt:"logo",width:"300",height:"53"}})])],1)]),i("div",{staticClass:"user-space__logged--in modal-trigger",class:{"login-highlight":t.loggedIn}},[i("LogInModal",{attrs:{layout:"app-header",register:!1}})],1),i("div",{staticClass:"max-good",class:{active:t.showingMaxGoodSites},on:{click:function(e){return t.toggleOtherMaxGoodSites()}}},[i("span",{staticClass:"small"},[t._v("Powered by ")]),i("div",{staticClass:"max-good__submenu-wrapper"},[i("img",{attrs:{src:o("ebf7"),width:"150",height:"18",alt:""}}),i("ul",{staticClass:"other-max-good-sites"},[i("li",[i("span",{staticClass:"other-sites-arrow",class:{turn:t.showingMaxGoodSites}},[i("Icons",{attrs:{iconwidth:"24px",iconheight:"24px",icon:"chevron-down",color:"#999999"}})],1),i("ul",{staticClass:"sub",class:{active:t.showingMaxGoodSites}},t._l(t.maxGoodSites,function(e){return i("li",[i("a",{attrs:{href:e.href,target:"_blank"}},[t._v(t._s(e.name))])])}),0)])])])])])])])},s=[],a=o("59ea"),n=o("d4b5"),r=o("b056"),l={name:"AppHeader",components:{Icons:a["default"],LogInModal:n["default"],Flickity:r["a"]},props:["layout","generic","volunteerText"],data:function(){var t="/";return{showSearchBar:!1,showingMaxGoodSites:!1,maxGoodSites:[{name:"Volunteerathon",href:"#"},{name:"Quitathon",href:"#"},{name:"Loseathon",href:"#"},{name:"Give it up for Good",href:"#"},{name:"Vacation for Good",href:"#"},{name:"Waterathon",href:"#"},{name:"Christmas for Good",href:"#"},{name:"MLK Day for Good",href:"#"},{name:"The Lent Site",href:"#"},{name:"Valentines for Good",href:"#"},{name:"Fools for Good",href:"#"},{name:"Resolutions for Good",href:"#"},{name:"Run for good",href:"#"},{name:"Bike for Good",href:"#"},{name:"Walk for Good",href:"#"},{name:"Birthdays for Good",href:"#"},{name:"Polar Plunge for Good",href:"#"},{name:"Bake for Good",href:"#"}],headerLogos:["".concat(t,"img/other-sites/max-good.png"),"".concat(t,"img/other-sites/optionsforgood.png"),"".concat(t,"img/other-sites/calendarforgood.png"),"".concat(t,"img/other-sites/forthepoor.png"),"".concat(t,"img/other-sites/volunteerathon.png"),"".concat(t,"img/other-sites/quitathon.jpg"),"".concat(t,"img/other-sites/give-it-up-for-good.png"),"".concat(t,"img/other-sites/run-for-good.png"),"".concat(t,"img/other-sites/charitable-columbus.png"),"".concat(t,"img/other-sites/st-patricks-sharing.png")],flickityOptions:{pageDots:!1,wrapAround:!0}}},methods:{toggleOtherMaxGoodSites:function(){this.showingMaxGoodSites=!this.showingMaxGoodSites}},computed:{loggedIn:function(){return this.$store.state.user.loggedIn}}},c=l,d=(o("61de"),o("0d36"),o("2877")),u=Object(d["a"])(c,i,s,!1,null,"925fa688",null);e["default"]=u.exports},"880a":function(t,e,o){t.exports=o.p+"img/quitathon.d630cae2.png"},"8ca8":function(t,e,o){"use strict";var i=o("2b8c"),s=o.n(i);s.a},d4b5:function(t,e,o){"use strict";o.r(e);var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;
1return o("div",[o("div",{staticClass:"modal",class:{"is-active":t.showingLoginModal},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.validateSubmit()}}},[o("div",{staticClass:"modal-background",on:{click:function(e){return t.closeLoginBox()}}}),o("div",{staticClass:"modal-content donate-view donate-view__wrapper inner-close small-modal"},[o("h1",{staticClass:"title-centered"},[t._t("heading",[t.loggedIn?o("span",[t._v("Your account")]):t._e(),t.loggedIn||t.register?t._e():o("span",[t._v("Login")]),!t.loggedIn&&t.register?o("span",[t._v("Register")]):t._e()])],2),t._t("intro",[t.loggedIn?t._e():o("p",{staticClass:"is-centered"},[t._v("Please log in with your email and password:")])]),o("div",{staticClass:"centered"},[t.loggedIn?o("p",[t._v("You are logged in as "+t._s(t.nickname||t.user.firstName))]):t._e(),t.loggedIn?o("UserManagementLinks",{attrs:{layout:"header"},on:{"goto:account":function(e){return t.closeLoginBox()}}}):t._e(),t.loggedIn?o("div",{on:{click:function(e){return t.logUserOut()}}},[o("a",[t._v("Log Out »")])]):t._e()],1),o("transition",{attrs:{name:"slide-fade",mode:"out-in"}},[t.loggedIn?t._e():o("div",[o("form",{on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.validateSubmit()}}},[t.requireName?o("InputName",{attrs:{label:"Email (for the receipt):",required:!0},on:{"input:valid":function(e){return t.validateAllFields()},"input:invalid":function(e){return t.validateAllFields()},"input:first":function(e){t.form.firstname=e,t.errorMessage=""},"input:last":function(e){t.form.lastname=e,t.errorMessage=""}}}):t._e(),o("InputEmail",{attrs:{label:"Email",required:!0},on:{"input:valid":function(e){return t.validateAllFields()},"input:invalid":function(e){return t.validateAllFields()},"input:email":function(e){return t.setEmail(e)}}}),o("InputPassword",{attrs:{label:"Password",required:!0,duplicate:t.register,"provide-feedback":t.register,"error-message":t.errorMessage},on:{"input:valid":function(e){return t.validateAllFields()},"input:invalid":function(e){return t.validateAllFields()},"input:password":function(e){t.form.password=e,t.errorMessage=""},"input:passwordConfirmation":function(e){t.form.passwordConfirmation=e,t.errorMessage=""}}})],1),o("div",{staticClass:"columns form-column__wrapper form-column__extra-padded input-line password-input-wrapper"},[o("div",{staticClass:"column is-5 form-column__label-column input-label"}),o("div",{staticClass:"column is-5 form-column__input-column"},[o("ModalForgetPassword",{key:t.forgetPasswordEmail,attrs:{email:t.forgetPasswordEmail}})],1)]),o("div",{staticClass:"columns is-centered"},[o("div",{staticClass:"form-submit-wrapper",on:{click:function(e){return e.preventDefault(),t.loginOrRegister()}}},[o("button",{staticClass:"button is-large is-danger",attrs:{disabled:t.submitButtonDisabled}},[t._v("Submit")])])]),o("SocialLogin",[o("div",{staticClass:"social-login-wrapper columns is-centered",attrs:{slot:"header"},slot:"header"},[o("p",{staticClass:"is-centered"},[t._v("Or with one of the following services:")])])])],1)]),o("button",{staticClass:"modal-close is-large",attrs:{"aria-label":"close"},on:{click:function(e){return e.preventDefault(),t.closeLoginBox()}}})],2)]),"social-signup"===t.layout?o("div",[o("SocialLogin",{attrs:{"show-only":t.showOnly}})],1):t._e(),"app-header"===t.layout?o("div",[t.loggedIn?t._e():o("div",[o("span",{on:{click:function(e){return t.openLoginBox()}}},[o("a",[t._v("Login")])]),t._v("\n |\n "),o("span",{on:{click:function(e){return t.openLoginBox()}}},[o("a",[t._v("Register")])])]),t.loggedIn?o("div",{on:{click:function(e){return t.openLoginBox()}}},[t._t("logged",[o("a",[t._v(t._s(t.nickname||t.user.firstName)+" »")])])],2):t._e()]):t._e(),t.layout?t._e():o("div",[t.loggedIn?t._e():o("div",{staticClass:"trigger"},[o("span",{on:{click:function(e){return t.openLoginBox()}}},[t._t("trigger")],2)]),t._t("intro")],2)])},s=[],a=o("59ea"),n=o("e401"),r=o("c5da"),l=o("cb63"),c=o("9e7a"),d=o("3542"),u=o("bfbb"),g={props:["layout","login","signup","showOnly","display","requireName","register"],components:{Icons:a["default"],InputEmail:r["default"],InputName:l["a"],InputPassword:c["default"],ModalForgetPassword:n["a"],SocialLogin:d["a"],UserManagementLinks:function(){return o.e("chunk-0efcc408").then(o.bind(null,"e421"))}},data:function(){return{showingLoginModal:this.display||!1,errorMessage:"",welcomeMessage:"",submitButtonDisabled:!0,form:{},forgetPasswordEmail:"",timeout:null}},computed:{loggedIn:function(){return this.$store.state.user.loggedIn},nickname:function(){return this.$store.state.user.nickname},user:function(){return this.$store.state.user}},methods:{setEmail:function(t){this.form.email=t,this.forgetPasswordEmail=t},openLoginBox:function(){this.showingLoginModal=!0},closeLoginBox:function(){this.showingLoginModal=!1,clearTimeout(this.timeout),this.$emit("modal:close")},logUserOut:function(){this.$store.commit("LOG_OFF",{status:!1}),this.closeLoginBox()},validateSubmit:function(){this.submitButtonDisabled||this.logUserIn()},loginOrRegister:function(){this.register?this.closeLoginBox():this.logUserIn()},validateAllFields:function(){var t=u["f"](this.form.firstname)&&u["f"](this.form.lastname),e=u["g"](this.form.password)&&!this.register||u["g"](this.form.password)&&this.form.password===this.form.passwordConfirmation;e&&u["d"](this.form.email)&&(t&&this.requireName||!this.requireName)?this.submitButtonDisabled=!1:this.submitButtonDisabled=!0},logUserIn:function(){var t=this;if(!this.submitButtonDisabled)return this.submitButtonDisabled=!0,this.$store.dispatch("AUTHENTICATE_USER",{email:this.form.email,password:this.form.password}).then(function(e){e?(t.welcomeMessage="You are logged in, ".concat(t.nickname),t.$emit("modal:logged"),t.timeout=setTimeout(function(){t.showingLoginModal=!1},6e3)):(t.validateAllFields(),t.errorMessage="Wrong password or email does not exist")}).catch(function(t){console.log("error: ",t)})}},watch:{display:function(t){t&&(this.showingLoginModal=t)}}},m=g,f=(o("8ca8"),o("2877")),h=Object(f["a"])(m,i,s,!1,null,"817aea5e",null);e["default"]=h.exports},ebf7:function(t,e,o){t.exports=o.p+"img/max-good-logo-150x18.4f47e4cf.png"}}]); 2//# sourceMappingURL=chunk-53f877e0.d342851d.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.