define("controllers/Property/PropertyFollow",["require","ControllerObjects","Application"],function(e){return function(t){function r(e){g.call("bubble",e)}function o(e){y.update(e),n()}function n(){if(!y.$dom)throw"No state.$dom";if(!y.get("propertyAddressItem"))throw"No state.data.propertyAddressItem";d=y.get("propertyAddressItem").status.isFollowed,m.showFavorite.get({$dom:y.$dom,data:y.get("propertyAddressItem")})}function s(e){l=e.$dom;var t={propertyAddressID:y.get("propertyAddressItem").id,propertyID:y.get("propertyAddressItem").propertyID?y.get("propertyAddressItem").propertyID:0,listingID:y.get("propertyAddressItem").listing?y.get("propertyAddressItem").listing.id:null};b.done(function(){l.btnFollow.click(function(e){c&&c.registrationStatus&&!c.registrationStatus.registered?r({type:"account.mode"}):d?m.unFollow.get({data:t,success:function(e){e.data&&(d=!1,l.btnFollow.text("Notify Me of Price Changes").addClass("btn-notify-off"))}}):m.follow.get({data:t,success:function(e){e.data&&(d=!0,l.btnFollow.text("Turn off notifications").removeClass("btn-notify-off"))}})})})}function i(){w.uninit()}function a(e,t){w.event(e,t)}var l,d,c,p=e("ControllerObjects"),u=e("Application"),f=new p.Unique(t),g=new p.Callbacks,w=new p.ChildControllerManager,y=new p.StateManager(w,{}),m={showFavorite:new p.Getter({namespace:f.get(),success:s,template:{url:"controllers/Property/PropertyFollow.html",dom:["btnFollow"]}}),follow:new p.Getter({type:Boolean,webService:"/service/PropertyAddresses/Follow",namespace:f.get(),success:s,cache:{expire:0}}),unFollow:new p.Getter({type:Boolean,webService:"/service/PropertyAddresses/Unfollow",namespace:f.get(),success:s,cache:{expire:0}})},b=function(){var e=$.Deferred();return u.getCurrentUser(function(t){c=t.user,e.resolve()},!0),e}();return{update:o,restore:function(e){y.restore(e,n)},uninit:i,getState:y.getState.bind(y),register:g.register.bind(g),event:a}}}); Type 316/316L stainless is 304/304L modified with the addition of Molybdenum. "Bed":"Beds"}:null},getBaths:function(e,t){var r;return e&&(r={raw:{full:e,half:t||0},string:e.toString(),label:"Baths"},t&&t>0&&(r.string+=1==t? Homesnap.templates["controllers/MyAgent/Form.html"] = '{{#with data}}
stainless steel true bar tolerances
Mortgage & Affordability expand_more
{{> hsLoadingGraphic}}