(function(c){"object"===typeof exports&&"undefined"!==typeof module?module.exports=c(require("jquery"),require("pnotify")):"function"===typeof define&&define.amd?define("pnotify.reference",["jquery","pnotify"],c):c(jQuery,PNotify)})(function(c,d){d.prototype.options.reference={putThing:!1,labels:{text:"Spin Around"}};d.prototype.modules.reference={thingElem:null,init:function(b,a){var d=this;a.putThing&&(this.thingElem=c('<button style="float:right;" class="btn btn-default" type="button" disabled><i class="'+
b.styles.athing+'" />&nbsp;'+a.labels.text+"</button>").appendTo(b.container),b.container.append('<div style="clear: right; line-height: 0;" />'),b.elem.on({mouseenter:function(b){d.thingElem.prop("disabled",!1)},mouseleave:function(b){d.thingElem.prop("disabled",!0)}}),this.thingElem.on("click",function(){var a=0,c=setInterval(function(){a+=10;360==a&&(a=0,clearInterval(c));b.elem.css({"-moz-transform":"rotate("+a+"deg)","-webkit-transform":"rotate("+a+"deg)","-o-transform":"rotate("+a+"deg)","-ms-transform":"rotate("+
a+"deg)",filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation="+a/360*4+")"})},20)}))},update:function(b,a,c){a.putThing&&this.thingElem?this.thingElem.show():!a.putThing&&this.thingElem&&this.thingElem.hide();this.thingElem&&this.thingElem.find("i").attr("class",b.styles.athing)},beforeOpen:function(b,a){},afterOpen:function(b,a){},beforeClose:function(b,a){},afterClose:function(b,a){},beforeDestroy:function(b,a){},afterDestroy:function(b,a){}};c.extend(d.styling.jqueryui,{athing:"ui-icon ui-icon-refresh"});
c.extend(d.styling.bootstrap2,{athing:"icon-refresh"});c.extend(d.styling.bootstrap3,{athing:"glyphicon glyphicon-refresh"});c.extend(d.styling.fontawesome,{athing:"fa fa-refresh"})});
