(function(){"use strict";function e(e,t){this.MobileWidget(e,t)}e.prototype={next:function(){this._showNextItem("next")},previous:function(){this._showNextItem("previous")},openCalendar:function(e){var t=new u8.Base.Uri($(e.srcElement).attr("data-url"));var i=this._currentItem$().attr("data-date");t.set("agendaDate",i);u8.application.navigate(t.toString_())},_showNextItem:function(e){var t=this._currentItem$();var i=e=="next"?t.next(".item"):t.prev(".item");if(i.length==0){return}t.hide();i.show();$(this.parent.element).widgets("create-visible")},_currentItem$:function(){return $(".item:visible",this.element)}};e.makeClass({name:"CalendarTile",deriveFrom:u8.Mobile.Widgets.MobileWidget})})();