{"size": 499, "ext": "js", "max_stars_repo_path": "Samples/cattr/Pages/Home/Details/DetailsPage.js", "max_stars_repo_name": "Natnael123/fuse-samples", "max_stars_repo_stars_event_min_datetime": "2016-02-01T14:11:28.000Z", "max_stars_repo_stars_event_max_datetime": "2018-05-23T14:29:36.000Z", "max_issues_repo_path": "Samples/cattr/Pages/Home/Details/DetailsPage.js", "max_issues_repo_name": "Natnael123/fuse-samples", "max_issues_repo_issues_event_min_datetime": "2016-02-15T23:34:16.000Z", "max_issues_repo_issues_event_max_datetime": "2018-05-03T10:40:10.000Z", "max_forks_repo_path": "Samples/cattr/Pages/Home/Details/DetailsPage.js", "max_forks_repo_name": "Natnael123/fuse-samples", "max_forks_repo_forks_event_min_datetime": "2016-02-01T14:58:02.000Z", "max_forks_repo_forks_event_max_datetime": "2018-05-18T20:03:47.000Z"}
{"max_stars_count": 196, "max_issues_count": 34, "max_forks_count": 181, "avg_line_length": 18.4814814815, "max_line_length": 46, "alphanum_fraction": 0.7114228457}
var Observable = require("FuseJS/Observable");
var Backend = require("Backend.js");

var isDialogShowing = Observable(false);

function bookDate() {
	isDialogShowing.value = true;
}

function closeDialog() {
	isDialogShowing.value = false;
}

module.exports = {
	pet: this.CurrentPet.map(function(name) {
		var pet = Backend.getPet(name);
		if (pet) {
			pet.mainPicture = pet.pictures[0];
		}
		return pet;
	}),

	isDialogShowing: isDialogShowing,

	bookDate: bookDate,
	closeDialog: closeDialog
};