Yosemite.Toggle=function(){};Yosemite.Toggle.prototype={defaultConfig:{opened:!0},init:function(){this.open=ko.observable(this.opened)},toggle:function(){this.open(!this.open())}};Yosemite.Confirm=function(){};Yosemite.Confirm.prototype={defaultConfig:{message:"Are you sure you want to perform this action ?"},afterInit:function(){this.element.click($.proxy(this.clicked,this))},clicked:function(){return confirm(this.message)}};Yosemite.Newsletter=function(){};Yosemite.Newsletter.prototype={subscribe:function(){this.submit("true")},unsubscribe:function(){this.submit("false")},submit:function(n){$("",{type:"hidden",name:"subscribing",value:n}).prependTo(this.element);this.element.submit()},trackAndRedirect:function(n){Yosemite.tracker.trackEvent(n,"Newsletter","Subscription",null,null,!1)}};Yosemite.Authentication=function(){this.forgot=!1};Yosemite.Authentication.prototype={forgotPassword:function(){!this.forgot&&this.forgotPasswordUrl&&$.get(this.forgotPasswordUrl,$.proxy(function(n){this.forgot=!0;this.element.after(n)},this))}}