1(self.webpackChunk_aboutdotme_client=self.webpackChunk_aboutdotme_client||[]).push([[8694],{24673(t,e,s){const n=s(25473),o=s(43485),i=s(2067),l=s(54594),a=s(20116),r=s(16851),c=s(76174),u=s(31914),p=s(92977),h=s(32023),d=s(40175).create("signup","location"),m=u.signup,g=u.metrics_signup,b=i.FormView.extend({displayName:"LocationView",className:"step inset",template:l,styles:a,templateContext(){return{user:this.user.serialize()}},initialize(t){this.user=t.user,this.view_model=t.view_model,n.bindAll(this,"onError"),this.location_input=new i.Element({el:".location",type:"text",className:"input large fullwidth",placeholder:"Location",related_model:this.user,related_key:"locations.0.location",validator:h.location}),this.buttonset=new i.Element({el:".buttonset",type:"buttonset",buttons:[{type:"submit",label:"Next",loading_label:"Next",className:"button large dark primary glyph-angle-right-after fullwidth"}]}),this.button=this.buttonset.get("buttons").first(),this.model=new i.Form({elements:[this.location_input,this.buttonset]}
1)},onAttach(){p.isNot("touch")&&this.$("input").first().focus()},onFormSubmit(){d("onFormSubmit"),d(this.location_input.value),this.button.set({disabled:!0,loading:!0});const t={source:"user",location:this.location_input.get("value")};this.user.get("locations").reset(t),this.user.get("locations").save().done(()=>{m.request("step:next")}).fail(this.onError)},onError(t){if(this.button.set({disabled:!1,loading:!1}),(t&&t.type)===c.MISSING_PARAM)this.first_input.set("error","A first name is required.");else r(t)}}),f=o.MnObject.extend({initialize(t){this.region=t.region,this.user=t.user,g.trigger("show:step:location"),this.region.show(new b({user:this.user}))}});t.exports=f},6234(t,e,s){var n=s(71354),o=s(76314)(n);o.push([t.id,"@media only screen and (min-width:641px){.step.location-scope-zpXup{min-height:460px}}","",{version:3,sources:["webpack://./location.less","webpack://./src/page/signup/steps/location/location.less"],names:[],mappings:"AAGI,yCAAA,2BAEI,gBCFN,CACF",sourcesContent:["@import (reference) '~module/styles/variables.less';\n\n.step:local(.scope) {\n @media @not-mobile {\n // taller to accommodate height of location dropdown\n min-height: 460px;\n }\n}\n","@media only screen and (min-width: 641px) {\n .step:local(.scope) {\n min-height: 460px;\n }\n}\n/*# sourceMappingURL=location.css.map */"],sourceRoot:""}]),o.locals={scope:"location-scope-zpXup"},t.exports=o},20116(t,e,s){var n=s(6234),o=s(86756);"string"==typeof n&&(n=[[t.id,n,""]]),t.exports=n.locals||{},t.exports._getContent=function(){return n},t.exports._getCss=function(){return n.toString()},t.exports._insertCss=function(t){return o(n,t)}},54594(t,e,s){var n=s(4523);t.exports=function(t){var e,s="";Array.prototype.join;return s+='<section class="title">\n <h1 class="glyph-location">Where are you, '+(null==(e=t.user.display_first_name)?"":n.escape(e))+'?</h1>\n</section>\n<section class="step-content">\n <fieldset class="location"></fieldset>\n</section>\n<section class="step-actions">\n <fieldset class="buttonset"></fieldset>\n</section>\n'}}}]); 2//# sourceMappingURL=a6956e32.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.