!function(t){var e={events:[],detailedWidthBreakpoint:550,onEventClick:null,onPreviousMonthStart:null,onNextMonthStart:null,onCurrentMonthStart:null,onLoadStart:null,onLoadEnd:null},n={start:null,end:null,title:"",url:"","class":"",color:"",data:{}},a={init:function(a){return this.each(function(){var s=t(this),o=s.data("equinox");if(!o){for(var d=t.extend({},e,a),i=moment(),v=[],u=0;ud.events[u].end.valueOf()||(d.events[u].allDay=r(d.events[u].start,d.events[u].end),d.events[u].daySpan=l(d.events[u].start,d.events[u].end),v.push(d.events[u])));d.events.sort(function(t,e){return t.start.valueOf()-e.start.valueOf()});for(var c=[],u=0;u'),s=t('
');s.append('
'+e.format("MMMM YYYY")+"
"),s.append('
'),t(".calendar-actions",s).append(' '),t(".calendar-actions",s).append(' '),t(".calendar-actions",s).append(' '),a.append(s);for(var r=t('
'),v=t('
'),u=0;u<7;u++)t(".days-container",v).append('
'+moment().day(u).format("dddd")+"
");r.append(v);var c=moment(e).startOf("month").startOf("week"),f=[];for(var u in n){if(parseInt(u.substr(1))>=c.unix())break;for(var p=0;pc.valueOf()&&(n[u][p].daysLeft=l(c,n[u][p].end)-(i(n[u][p].end)?1:0),f.push(n[u][p]))}var h=!1,m=e.daysInMonth(),y=moment();for(u=0;!h;u++){for(var g=t('
'),x=[[]],M=moment(c),p=0;p<7;p++){if(M.day(p),0===p)for(var S=0;S');for(var p=0;p
    '),S=0;S<7;S++)if("reserved"!==x[p][S])if(x[p][S]){var O=t('
  • ');x[p][S].daySpan-(i(x[p][S].end)?1:0)>x[p][S].daysLeft&&O.addClass("continuation"),x[p][S].daysLeft>7-S&&O.addClass("continued"),O.append(d(x[p][S])),t("ul",b).append(O),x[p][S].daysLeft>7-S?(x[p][S].daysLeft-=7-S,f.push(x[p][S])):delete x[p][S].daysLeft}else t("ul",b).append('
  • ');t(".week-events",g).append(b)}g.append('
    ');for(var p=0;p<7;p++){c.day(p);for(var q=[],S=0;S');i.append('
    '+(1===e.date()?e.format("MMM "):"")+e.date()+"
    "),i.append('
      ');for(var l=0,v=a.shift(),u=0;u'),v=a.shift(),u--;else{if(n[u].daySpan>=2)continue;var c=t('
    • ');c.append(d(n[u])),t(".date-events",i).append(c)}l++}return i},d=function(e){var n=t('");return n.data("event-id",e.id),n.append(''+e.start.format(0===e.start.minutes()?"ha":"h:mma")+""),n.append(''+e.title+""),n},r=function(t,e){return e.diff(t)%moment.duration(1,"days").asMilliseconds()===0},i=function(t){return"00:00:00.000"===t.format("HH:mm:ss.SSS")},l=function(t,e){var n=moment(t).startOf("day"),a=moment(e).startOf("day");return a.diff(n)/moment.duration(1,"days").asMilliseconds()+1}}(jQuery);