text: /*!
   * Remark (http://getbootstrapadmin.com/remark)
   * Copyright 2015 amazingsurge
   * Licensed under the Themeforest Standard Licenses
   */
  !function(document,window,$){"use strict";window.AppCalendar=App.extend({handlePagination:function(){function isEnd(obj){var $prevObj=obj.prev(),$nextObj=obj.next();"Previous"===$prevObj.find("a").attr("aria-label")?($prevObj.addClass("disabled"),$next.removeClass("disabled")):"Next"===$nextObj.find("a").attr("aria-label")?($nextObj.addClass("disabled"),$prev.removeClass("disabled")):($next.removeClass("disabled"),$prev.removeClass("disabled"))}var $allPage=$(".panel-footer .pagination li").not(".panel-footer .pagination li:first-child").not(".panel-footer .pagination li:last-child"),$prev=$(".panel-footer .pagination li").first(),$next=$(".panel-footer .pagination li").last();$allPage.on("click",function(){$(this).siblings("li").removeClass("active"),$(this).addClass("active"),isEnd($(this))}),$prev.on("click",function(){var $prevPage=$allPage.filter(".active").prev();"disabled"!==$(this).attr("class")&&($prevPage.addClass("active"),$prevPage.siblings("li").removeClass("active"),isEnd($prevPage))}),$next.on("click",function(){var $nextPage=$allPage.filter(".active").next();"disabled"!==$(this).attr("class")&&($nextPage.addClass("active"),$nextPage.siblings("li").removeClass("active"),isEnd($nextPage))})},handleChart:function(){var scoreChart=function(data){var scoreChart=new Chartist.Line(data,{labels:["SUN","MON","TUE","WED","THU","FRI","SAT"],series:[{name:"series-1",data:[.8,1.5,.8,2.7,2.4,3.9,1.1]},{name:"series-2",data:[2.2,3,2.7,3.6,1.5,1,2.9]}]},{lineSmooth:Chartist.Interpolation.simple({divisor:100}),fullWidth:!0,chartPadding:{right:25},series:{"series-1":{showArea:!1},"series-2":{showArea:!1}},axisX:{showGrid:!1},axisY:{scaleMinSpace:40},plugins:[Chartist.plugins.tooltip()],low:0,height:250});scoreChart.on("draw",function(data){if("point"===data.type){var parent=new Chartist.Svg(data.element._node.parentNode);parent.elem("line",{x1:data.x,y1:data.y,x2:data.x+.01,y2:data.y,"class":"ct-point-content"})}})},barChart=function(data){var barChart=new Chartist.Bar(data,{labels:["Damon","Jimmy","Jhon","Alex","Lucy","Peter","Chris"],series:[[3.3,3.5,2.5,2,3.7,2.7,1.9],[2,4,3.5,2.7,3.3,3.5,2.5]]},{axisX:{showGrid:!1},axisY:{showGrid:!1,scaleMinSpace:30},height:210,seriesBarDistance:24});barChart.on("draw",function(data){if("bar"===data.type){var parent=new Chartist.Svg(data.element._node.parentNode);parent.elem("line",{x1:data.x1,x2:data.x2,y1:data.y2,y2:0,"class":"ct-bar-fill"}),data.element.attr({style:"stroke-width: 20px"})}})};$(document).on("slidePanel::afterLoad",function(){scoreChart(".trends-chart"),barChart(".member-chart")})},handleSelective:function(){function getNum(num){return Math.ceil(Math.random()*(num+1))}function getMember(){return member[getNum(member.length-1)-1]}function isSame(items){var _items=items,_member=getMember();return-1===_items.indexOf(_member)?_member:isSame(_items)}function pushMember(num){for(var items=[],i=0;num>i;i++)items.push(isSame(items));self.items=items}function setItems(membersNum){var num=getNum(membersNum-1);pushMember(num)}var self=this,member=[{id:"uid_1",name:"Herman Beck",avatar:"../../../global/portraits/1.jpg"},{id:"uid_2",name:"Mary Adams",avatar:"../../../global/portraits/2.jpg"},{id:"uid_3",name:"Caleb Richards",avatar:"../../../global/portraits/3.jpg"},{id:"uid_4",name:"June Lane",avatar:"../../../global/portraits/4.jpg"},{id:"uid_5",name:"June Lane",avatar:"../../../global/portraits/5.jpg"},{id:"uid_6",name:"June Lane",avatar:"../../../global/portraits/6.jpg"},{id:"uid_7",name:"June Lane",avatar:"../../../global/portraits/7.jpg"}];$('[data-plugin="jquery-selective"]').each(function(){setItems(member.length);var items=self.items;$(this).selective({namespace:"addMember",local:member,selected:items,buildFromHtml:!1,tpl:{optionValue:function(data){return data.id},frame:function(){return'<div class="'+this.namespace+'">'+this.options.tpl.items.call(this)+'<div class="'+this.namespace+'-trigger">'+this.options.tpl.triggerButton.call(this)+'<div class="'+this.namespace+'-trigger-dropdown">'+this.options.tpl.list.call(this)+"</div></div></div>"},triggerButton:function(){return'<div class="'+this.namespace+'-trigger-button"><i class="wb-plus"></i></div>'},listItem:function(data){return'<li class="'+this.namespace+'-list-item"><img class="avatar" src="'+data.avatar+'">'+data.name+"</li>"},item:function(data){return'<li class="'+this.namespace+'-item"><img class="avatar" src="'+data.avatar+'" title="'+data.name+'">'+this.options.tpl.itemRemove.call(this)+"</li>"},itemRemove:function(){return'<span class="'+this.namespace+'-remove"><i class="wb-minus-circle"></i></span>'},option:function(data){return'<option value="'+this.options.tpl.optionValue.call(this,data)+'">'+data.name+"</option>"}}})})},run:function(){this.items=[],this.handlePagination(),this.handleChart(),this.handleSelective()}}),$(document).ready(function(){AppCalendar.run()})}(document,window,jQuery);