//>>built
define("dojox/calendar/MobileHorizontalRenderer",["dojo/_base/declare","dojo/dom-style","dijit/_WidgetBase","dijit/_TemplatedMixin","dojox/calendar/_RendererMixin","dojo/text!./templates/MobileHorizontalRenderer.html"],function(_1,_2,_3,_4,_5,_6){
return _1("dojox.calendar.MobileHorizontalRenderer",[_3,_4,_5],{templateString:_6,_orientation:"horizontal",mobile:true,visibilityLimits:{resizeStartHandle:50,resizeEndHandle:-1,summaryLabel:15,startTimeLabel:32,endTimeLabel:30},_displayValue:"inline",arrowPadding:12,_isElementVisible:function(_7,_8,_9,_a){
var d;
var _b=this.isLeftToRight();
if(_7=="startTimeLabel"){
if(this.labelContainer&&(_b&&_9||!_b&&_8)){
_2.set(this.labelContainer,"marginRight",this.arrowPadding+"px");
}else{
_2.set(this.labelContainer,"marginRight",0);
}
if(this.labelContainer&&(!_b&&_9||_b&&_8)){
_2.set(this.labelContainer,"marginLeft",this.arrowPadding+"px");
}else{
_2.set(this.labelContainer,"marginLeft",0);
}
}
switch(_7){
case "startTimeLabel":
d=this.item.startTime;
if(this.item.allDay||this.owner.isStartOfDay(d)){
return false;
}
break;
case "endTimeLabel":
d=this.item.endTime;
if(this.item.allDay||this.owner.isStartOfDay(d)){
return false;
}
break;
}
return this.inherited(arguments);
},postCreate:function(){
this.inherited(arguments);
this._applyAttributes();
}});
});
require({cache:{"url:dojox/calendar/templates/MobileHorizontalRenderer.html":"<div class=\"dojoxCalendarEvent dojoxCalendarHorizontal\" onselectstart=\"return false;\">\n\t<div class=\"bg\" ></div>\n\t<div style=\"position:absolute;left:2px;bottom:2px\"><span data-dojo-attach-point=\"beforeIcon\" class=\"beforeIcon\">◄</span></div>\t\n\t<div data-dojo-attach-point=\"labelContainer\" class=\"labels\">\t\t\n\t\t<span data-dojo-attach-point=\"startTimeLabel\" class=\"startTime\"></span>\n\t\t<span data-dojo-attach-point=\"summaryLabel\" class=\"summary\"></span>\n\t\t<span  data-dojo-attach-point=\"endTimeLabel\" class=\"endTime\"></span>\n\t</div>\n\t<div style=\"position:absolute;right:2px;bottom:2px\"><span data-dojo-attach-point=\"afterIcon\" class=\"afterIcon\">►</span></div>\n\t<div data-dojo-attach-point=\"moveHandle\" class=\"moveHandle\" ></div>\t\n\t<div data-dojo-attach-point=\"resizeStartHandle\" class=\"resizeHandle resizeStartHandle\"><div></div></div>\t\n\t<div data-dojo-attach-point=\"resizeEndHandle\" class=\"resizeHandle resizeEndHandle\"><div></div></div>\t\n</div>\n"}});
