text: "use strict";$(function(){function e(){var e=$("#new-event-text").val();""!=e&&($("#external-events").prepend("<a class='list-group-item external-event'>"+e+"</a>"),t())}function t(){$("#external-events .external-event").each(function(){var e={title:$.trim($(this).text())};$(this).data("eventObject",e),$(this).draggable({zIndex:999,revert:!0,revertDuration:0})})}var a=moment().startOf("day"),n=a.format("YYYY-MM"),r=a.clone().subtract(1,"day").format("YYYY-MM-DD"),l=a.format("YYYY-MM-DD"),s=a.clone().add(1,"day").format("YYYY-MM-DD");t();var i=$("#calendar").fullCalendar({header:{left:"prev,next today",center:"title",right:"month,agendaWeek,agendaDay"},buttonIcons:{prev:"fa fa-angle-left",next:"fa fa-angle-right",prevYear:"fa fa-angle-left",nextYear:"fa fa-angle-right"},editable:!0,events:[{title:"All Day Event",start:n+"-01",className:"orange"},{title:"Long Event",start:n+"-07",end:n+"-10",className:"green"},{id:999,title:"Repeating Event",start:n+"-09T16:00:00",className:"blue"},{id:999,title:"Repeating Event",start:n+"-16T16:00:00",className:"orange"},{title:"Conference",start:r,end:s,className:"red"},{title:"Meeting",start:l+"T10:30:00",end:l+"T12:30:00",className:"orange"},{title:"Lunch",start:l+"T12:00:00",className:"red"},{title:"Meeting",start:l+"T14:30:00",className:"green"},{title:"Happy Hour",start:l+"T17:30:00",className:"blue"},{title:"Dinner",start:l+"T20:00:00",className:"orange"},{title:"Birthday Party",start:s+"T07:00:00",className:"red"},{title:"Click for Google",url:"http://google.com/",start:n+"-28",className:"green"}],droppable:!0,selectable:!0,selectHelper:!0,select:function(e,t,a){var n=prompt("Event Title:");n&&i.fullCalendar("renderEvent",{title:n,start:e,end:t,allDay:a},!0),i.fullCalendar("unselect")},drop:function(e,t){var a=$(this).data("eventObject"),n=$.extend({},a);n.start=e,n.allDay=t,$("#calendar").fullCalendar("renderEvent",n,!0),$("#drop-remove").is(":checked")&&$(this).remove()}});$("#new-event").on("click",function(){return e(),!1}),$("#new-event-form").on("submit",function(){return e(),!1})});