1(self.webpackChunk_aboutdotme_client=self.webpackChunk_aboutdotme_client||[]).push([[6893],{62250(e){const t=/@/;e.exports=function(e){let s=e;const n={};return t.test(s)?n.email_address=s:(s.indexOf("about.me")>-1&&(s=s.replace(/^.*about\.me\/?/,"")),n.user_name=s),n}},60275(e,t,s){const n=s(43485),i=s(49324),o=s(31914).auth,a=s(40175).create("account hint"),r=n.View.extend({displayName:"AccountHintView",template:i,templateContext(){return this.options.account_hints},initialize(){},ui:{account_hints:".account_hints",send_pw:".send-pw-reset-email",cancel:".cancel-button",facebook:".facebook",twitter:".twitter",google:".google",buttons:".button"},events:{"click @ui.send_pw":"sendPwResetEmail","click @ui.cancel":"close","click @ui.facebook":"onClickFacebook","click @ui.twitter":"onClickTwitter","click @ui.google":"onClickGoogle"},onRender(){this.ui.buttons.eq(0).addClass("dark primary"),this.ui.buttons.eq(1).addClass("light secondary")},sendPwResetEmail(){a("sendPwResetEmail"),this.trigger("send:password:reset:email")},onClickFacebook(){o.trigger("onDialogClickFacebook")},onClickTwitter(){o.trigger("onDialogClickTwitter")},onClickGoogle(){o.trigger("onDialogClickGoogle")},close(){this.trigger("close")}});e.exports=r},15477(e,t,s){const n=s(2067),i=s(19842),o=s(11659),a=s(96669),r=s(92977),l=s(62250),c=s(32023),u=s(40175).create("forgotpassword","find account"),d=n.FormView.extend({displayName:"FindAccountView",className:"find-account",template:i,ui:{identifier:".identifier",cancel:".cancel"},events:{"click @ui.cancel":"close"},initialize(){this.identity_input=new n.Element({el:".identifier",type:"text",className:"input large fullwidth",value:this.options.identifier||"",error_class:"error glyph-attention",display_errors:!1,validator(e){return e?e.indexOf("@")>-1?c.email_address.apply(this,arguments):void 0:"Please enter your username, about.me link, or email address."}}),this.submitButton=new n.Element({type:"submit",label:"Search",loading_label:"Searchingâ¦",className:"button large dark primary fullwidth"}),this.buttonset=new n.Element({el:".buttonset",type:"buttonset",buttons:[this.submitButton,{type:"button",label:"Cancel",className:"button cancel large light tertiary fullwidth"}]}),this.model=new n.Form({elements:[this.identity_input,this.buttonset]}
1),this.listenTo(this.identity_input,"change:value",(e,t)=>{this.identity_input.unset("error")}),this.on("before:form:submit",()=>{u("before:form:submit"),this.identity_input.set("display_errors",!0)},this)},onAttach(){r.isNot("touch")&&this.$("input").first().select()},onFormSubmit(){this.submitButton.set({disabled:!0,loading:!0});const e=this.identity_input.get("value"),{email_address:t,user_name:s}=l(e);if(s)o.ajax({url:`${a.NODE_API}/password/find_account`,type:"POST",data:{user_name:s},dataType:"json"}).done(e=>{this.trigger("find_account:success",{user_name:s},e)}).fail(e=>{u("failed to fetch user account hint"),404===e.status?this.identity_input.set("error","Sorry, we couldnât find that account. Please check your entry and try again."):this.identity_input.set("error","Error. Please try again later.")}).always(()=>{this.submitButton.set({disabled:!1,loading:!1})});else{const e={email_address:t},s={};this.trigger("send:password:reset:email",e,s)}},close(){this.trigger("close")}});e.exports=d},16893(e,t,s){const n=s(43485),i=s(25473),o=s(11659),a=s(96669),r=s(89359),l=s(15477),c=s(60275),u=s(35458),d=s(40175).create("forgotpassword"),p=n.View.extend({displayName:"ForgotPasswordModal",styles:u,template:i.template(""),behaviors:()=>({DialogBehavior:r.Behavior.config({glyph:"person",title:"Find your account",close_button:!1,className:u.scope})}),initialize(){this.addRegion("region",{el:this.el})},onAttach(){this.showFindAccountView()},showFindAccountView(){d("showing FindAccountView"),this.child_view=new l({identifier:this.options.identifier}),this.showChildView("region",this.child_view),this.listenTo(this.child_view,"find_account:success",this.onFindAccountSuccess),this.listenTo(this.child_view,"send:password:reset:email",this.sendPasswordResetEmail),this.listenTo(this.child_view,"close",this.destroy)},onFindAccountSuccess(e,t){this.setModalTitle("Good news, we found your account!"),this.child_view=new c({account_hints:t}),this.showChildView("region",this.child_view),this.child_view.triggerMethod("attach"),this.listenTo(this.child_view,"close",this.destroy),this.listenTo(this.child_view,"send:password:reset:email",()=>{this.sendPasswordResetEmail(e,t)})},setModalTitle(e){this.dialog&&this.dialog.model.set("title",e)},sendPasswordResetEmail(e,t){d(`we should send a pw reset email for ${e}`),o.ajax({type:"POST",url:`${a.NODE_API}/password/send_reset_email`,data:e,dataType:"json"}).done(e=>{this.showSuccess(t.email),this.trigger("close")}).fail(()=>{this.showFatalError(),this.trigger("close")})},showSuccess(e){let t="If an account is found associated with your email address, we will email a link to reset your password.";e&&(t=`We have emailed a link to ${e} to reset your password.`),r.banner(t,{duration:1e4})},showFatalError(){r.error("There was a problem resetting your password. Please try again later.")}});e.exports=p},32023(e,t,s){const{isEmail:n}=s(7519),i=/^[a-z0-9_\-.]+$/i,o=/^[a-z0-9'_\-.]+$/i,a=new RegExp("\\s"),r=/[\t\r\n]/,l=new RegExp("\\.\\.","i"),c=new RegExp("__","i"),u=new RegExp("--","i"),d=new RegExp("^[a-z]","i"),p=new RegExp("[a-z0-9]$","i"),h=new RegExp("\\.$"),g=new RegExp("^\\."),m=new RegExp("[A-Z]+"),w=new RegExp("[a-z]+"),b=new RegExp("[0-9]+"),_=/[!"#$%&'()*+,-.:;<=>?@[\\\]^_`{|}~]+/,f={first_name:e=>e?e.length>32?"Your first name cannot be longer than 32 characters.":void 0:"A first name is required.",last_name(e){if(e)return e.length>32?"Your last name cannot be longer than 32 characters.":void 0},google_last_name:e=>e?e.length>32?"Your last name cannot be longer than 32 characters.":void 0:"A last name is required.",user_name:e=>e?d.test(e)?a.test(e)?"Your username may not include spaces.":i.test(e)?e.length<3?"Your username must be at least 3 characters.":e.length>32?"Your username cannot be longer than 32 characters.":p.test(e)?l.test(e)?"Your username may not include consecutive periods.":c.test(e)?"Your username may not include consecutive underscores.":u.test(e)?"Your username may not include consecutive dashes.":void 0:"Your username must end with a letter or a number.":"Your username must be alphanumeric.":"Your username must start with a letter.":"A username is required.",google_username:e=>e?o.test(e)?e.length<1?"Your username must be at least 1 character.":e.length>64?"Your username cannot be longer than 64 characters.":g.test(e)?"Your username may not start with a period.":h.test(e)?"Your username may not end with a period.":l.test(e)?"Your username may not include consecutive periods.":void 0:"Your username may only include letters (a-z), numbers (0-9), dashes (-), underscores (_), apostrophes ('), and periods (.).":"A username is required.",email_address:e=>e?n(e)?void 0:"Please enter a valid email address.":"An email address is required.",password:e=>e?e.length<8?"Your password must be at least 8 characters long.":e.length>128?"Your password must be 128 characters or less.":m.test(e)?w.test(e)?b.test(e)?_.test(e)?r.test(e)?"Your password may not include non-space whitespace.":void 0:"Your password must contain at least 1 special character.":"Your password must contain at least 1 number.":"Your password must contain at least 1 lowercase letter.":"Your password must contain at least 1 capital letter.":"A password is required.",location(e){}};e.exports=f},9704(e,t,s){var n=s(71354),i=s(76314)(n);
1i.push([e.id,".forgot_password-scope-MUal_ .instructions{text-align:center}.forgot_password-scope-MUal_ .identifier label{text-align:center}.forgot_password-scope-MUal_ .identifier input{text-align:center}.forgot_password-scope-MUal_ .account-hints{border:1px solid #ccc;border-radius:5px;margin-bottom:0;padding:20px}","",{version:3,sources:["webpack://./forgot_password.less","webpack://./src/module/forgot_password/forgot_password.less"],names:[],mappings:"AAAA,2CAEQ,iBCAR,CDFA,+CAOY,iBCFZ,CDLA,+CAUY,iBCFZ,CDRA,4CAeQ,qBAAA,CACA,iBAAA,CAEA,eAAA,CADA,YCHR",sourcesContent:[":local(.scope) {\n .instructions {\n text-align: center;\n }\n\n .identifier {\n label {\n text-align: center;\n }\n input {\n text-align: center;\n }\n }\n\n .account-hints {\n border: 1px solid #ccc;\n border-radius: 5px;\n padding: 20px;\n margin-bottom: 0;\n }\n}\n",":local(.scope) .instructions {\n text-align: center;\n}\n:local(.scope) .identifier label {\n text-align: center;\n}\n:local(.scope) .identifier input {\n text-align: center;\n}\n:local(.scope) .account-hints {\n border: 1px solid #ccc;\n border-radius: 5px;\n padding: 20px;\n margin-bottom: 0;\n}\n/*# sourceMappingURL=forgot_password.css.map */"],sourceRoot:""}]),i.locals={scope:"forgot_password-scope-MUal_"},e.exports=i},35458(e,t,s){var n=s(9704),i=s(86756);"string"==typeof n&&(n=[[e.id,n,""]]),e.exports=n.locals||{},e.exports._getContent=function(){return n},e.exports._getCss=function(){return n.toString()},e.exports._insertCss=function(e){return i(n,e)}},49324(e,t,s){var n=s(4523);e.exports=function(e){var t,s="";Array.prototype.join;return s+='<fieldset class="account-hints">\n ',e.user_name&&(s+='\n <p>Username:<br><strong class="text nowrap">'+(null==(t=e.user_name)?"":n.escape(t))+"</strong></p>\n "),s+="\n\n ",e.email&&(s+="\n <p>Email address",e.email.includes("*")&&(s+=" hint"),s+=':<br><strong class="text nowrap">'+(null==(t=e.email)?"":n.escape(t))+"</strong></p>\n "),s+="\n\n ",s+="\n ",e.social_signup&&"twitter"!==e.social_signup&&(s+='\n <p>You signed up with <span class="text capitalize">'+(null==(t=e.social_signup)?"":n.escape(t))+"</span>.</p>\n "),s+='\n</fieldset>\n<fieldset class="dialog-buttons">\n\n ',"facebook"===e.social_signup?s+='\n <button type="button" class="button fullwidth large social-button facebook">\n Log in with Facebook\n </button>\n ':"twitter"===e.social_signup&&e["https://github.com/aboutdotme/main/issues/6357"]?s+='\n <button type="button" class="button fullwidth large social-button twitter">\n Log in with Twitter\n </button>\n ':"google"===e.social_signup&&(s+='\n <button type="button" class="button fullwidth large social-button google">\n Log in with Google\n </button>\n '),s+='\n\n <button type="button" class="button large fullwidth send-pw-reset-email">\n <span class="default-text">Send password reset email</span>\n <span class="loading-text">Sendingâ¦</span>\n </button>\n\n <a href="https://support.about.me/hc/en-us/articles/18773130654487-How-do-I-delete-my-page#h_01HE8MW3H2GH56J0W3JW24NAF9" class="button large fullwidth">I donât have access to this email</a>\n\n <button type="button" class="button large light tertiary fullwidth cancel-button">Cancel</button>\n\n</fieldset>\n'}},19842(e,t,s){s(4523);e.exports=function(e){var t="";Array.prototype.join;return t+='<p class="instructions">Enter your username, about.me link, <span class="text nowrap">or email address.</span></p>\n<fieldset class="identifier"></fieldset>\n<fieldset class="dialog-buttons buttonset"></fieldset>\n'}}}]); 2//# sourceMappingURL=14d1e45e.bundle.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.