{"version":3,"sources":["nag.js"],"names":["$","window","document","undefined","Math","self","Function","fn","nag","parameters","returnedValue","$allModules","this","moduleSelector","selector","time","Date","getTime","performance","query","arguments","methodInvoked","queryArguments","slice","call","each","module","settings","isPlainObject","extend","className","error","namespace","eventNamespace","moduleNamespace","$module","$context","find","close","context","element","instance","data","requestAnimationFrame","mozRequestAnimationFrame","webkitRequestAnimationFrame","msRequestAnimationFrame","callback","setTimeout","initialize","verbose","on","dismiss","detachable","parent","detach","prependTo","displayTime","hide","show","destroy","removeData","off","should","is","debug","animation","fadeIn","duration","easing","slideDown","slideUp","onHide","remove","event","storageMethod","storage","set","key","value","stopImmediatePropagation","preventDefault","persist","get","toString","storageOptions","options","expires","domain","path","clear","localStorage","setItem","sessionStorage","cookie","noCookieStorage","storedValue","getItem","removeItem","removeCookie","noStorage","setting","name","internal","silent","log","prototype","bind","console","info","apply","message","currentTime","executionTime","previousTime","push","Name","Arguments","Element","Execution Time","clearTimeout","timer","display","title","totalTime","index","group","table","length","groupCollapsed","groupEnd","invoke","passedArguments","maxDepth","found","response","object","split","depth","camelCaseValue","charAt","toUpperCase","method","isFunction","isArray","bottom","fixed","speed","easeOutQuad","x","t","b","c","d","jQuery"],"mappings":";;;;;;;;;CAUC,SAAWA,EAAGC,EAAQC,EAAUC,GAEjC,YAEAF,GAA2B,mBAAVA,IAAyBA,EAAOG,MAAQA,KACrDH,EACgB,mBAARI,OAAuBA,KAAKD,MAAQA,KAC1CC,KACAC,SAAS,iBAGfN,EAAEO,GAAGC,IAAM,SAASC,GAClB,GAUEC,GATAC,EAAiBX,EAAEY,MACnBC,EAAiBF,EAAYG,UAAY,GAEzCC,GAAiB,GAAIC,OAAOC,UAC5BC,KAEAC,EAAiBC,UAAU,GAC3BC,EAAkC,gBAATF,GACzBG,KAAoBC,MAAMC,KAAKJ,UAAW,EAoZ5C,OAjZAT,GACGc,KAAK,WACJ,GAkCEC,GAjCAC,EAAsB3B,EAAE4B,cAAcnB,GAClCT,EAAE6B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,GAEb7H,IAAkBP,EACxBO,GAAiBA,EAAe6H,GAE1BA,IAAapI,IACnBO,EAAgB6H,GAEXD,IAIRjH,GACEoB,IAAatC,GACduB,EAAOuB,aAETvB,EAAOyG,OAAOhH,KAGXsB,IAAatC,GACdsC,EAAS0F,OAAO,WAElBzG,EAAOuB,gBAKLvC,IAAkBP,EACtBO,EACAE,MAINZ,EAAEO,GAAGC,IAAImB,UAEP2E,KAAc,MAEdE,QAAc,EACdvC,OAAc,EACdf,SAAc,EACdhC,aAAc,EAEdc,UAAc,MAGdkD,SAAc,EAGdzB,YAAc,EAEdS,WACEP,KAAO,QACPD,KAAO,SAGTnB,SAAgB,EAChBc,YAAgB,EAEhBkC,QAAgB,GAChBC,QAAgB,EAChBC,KAAgB,IAGhBd,cAAgB,SAGhBG,IAAgB,MAChBC,MAAgB,UAEhBhD,OACEgE,gBAAkB,4DAClBK,UAAkB,yFAClB0C,OAAkB,yCAGpBhH,WACEmH,OAAS,SACTC,MAAS,SAGXpI,UACEwB,MAAQ,eAGV6G,MAAgB,IAChB9E,OAAgB,cAEhBG,OAAQ,cAKVxE,EAAE6B,OAAQ7B,EAAEqE,QACV+E,YAAa,SAAUC,EAAGC,EAAGC,EAAGC,EAAGC,GACjC,OAAQD,GAAIF,GAAGG,IAAIH,EAAE,GAAKC,MAI1BG,OAAQzJ,OAAQC","file":"nag.min.js","sourcesContent":["/*!\n * # Semantic UI 2.2.6 - Nag\n * http://github.com/semantic-org/semantic-ui/\n *\n *\n * Released under the MIT license\n * http://opensource.org/licenses/MIT\n *\n */\n\n;(function ($, window, document, undefined) {\n\n\"use strict\";\n\nwindow = (typeof window != 'undefined' && window.Math == Math)\n ? window\n : (typeof self != 'undefined' && self.Math == Math)\n ? self\n : Function('return this')()\n;\n\n$.fn.nag = function(parameters) {\n var\n $allModules = $(this),\n moduleSelector = $allModules.selector || '',\n\n time = new Date().getTime(),\n performance = [],\n\n query = arguments[0],\n methodInvoked = (typeof query == 'string'),\n queryArguments = [].slice.call(arguments, 1),\n returnedValue\n ;\n $allModules\n .each(function() {\n var\n settings = ( $.isPlainObject(parameters) )\n ? $.extend(true, {}, $.fn.nag.settings, parameters)\n : $.extend({}, $.fn.nag.settings),\n\n className = settings.className,\n selector = settings.selector,\n error = settings.error,\n namespace = settings.namespace,\n\n eventNamespace = '.' + namespace,\n moduleNamespace = namespace + '-module',\n\n $module = $(this),\n\n $close = $module.find(selector.close),\n $context = (settings.context)\n ? $(settings.context)\n : $('body'),\n\n element = this,\n instance = $module.data(moduleNamespace),\n\n moduleOffset,\n moduleHeight,\n\n contextWidth,\n contextHeight,\n contextOffset,\n\n yOffset,\n yPosition,\n\n timer,\n module,\n\n requestAnimationFrame = window.requestAnimationFrame\n || window.mozRequestAnimationFrame\n || window.webkitRequestAnimationFrame\n || window.msRequestAnimationFrame\n || function(callback) { setTimeout(callback, 0); }\n ;\n module = {\n\n initialize: function() {\n module.verbose('Initializing element');\n\n $module\n .on('click' + eventNamespace, selector.close, module.dismiss)\n .data(moduleNamespace, module)\n ;\n\n if(settings.detachable && $module.parent()[0] !== $context[0]) {\n $module\n .detach()\n .prependTo($context)\n ;\n }\n\n if(settings.displayTime > 0) {\n setTimeout(module.hide, settings.displayTime);\n }\n module.show();\n },\n\n destroy: function() {\n module.verbose('Destroying instance');\n $module\n .removeData(moduleNamespace)\n .off(eventNamespace)\n ;\n },\n\n show: function() {\n if( module.should.show() && !$module.is(':visible') ) {\n module.debug('Showing nag', settings.animation.show);\n if(settings.animation.show == 'fade') {\n $module\n .fadeIn(settings.duration, settings.easing)\n ;\n }\n else {\n $module\n .slideDown(settings.duration, settings.easing)\n ;\n }\n }\n },\n\n hide: function() {\n module.debug('Showing nag', settings.animation.hide);\n if(settings.animation.show == 'fade') {\n $module\n .fadeIn(settings.duration, settings.easing)\n ;\n }\n else {\n $module\n .slideUp(settings.duration, settings.easing)\n ;\n }\n },\n\n onHide: function() {\n module.debug('Removing nag', settings.animation.hide);\n $module.remove();\n if (settings.onHide) {\n settings.onHide();\n }\n },\n\n dismiss: function(event) {\n if(settings.storageMethod) {\n module.storage.set(settings.key, settings.value);\n }\n module.hide();\n event.stopImmediatePropagation();\n event.preventDefault();\n },\n\n should: {\n show: function() {\n if(settings.persist) {\n module.debug('Persistent nag is set, can show nag');\n return true;\n }\n if( module.storage.get(settings.key) != settings.value.toString() ) {\n module.debug('Stored value is not set, can show nag', module.storage.get(settings.key));\n return true;\n }\n module.debug('Stored value is set, cannot show nag', module.storage.get(settings.key));\n return false;\n }\n },\n\n get: {\n storageOptions: function() {\n var\n options = {}\n ;\n if(settings.expires) {\n options.expires = settings.expires;\n }\n if(settings.domain) {\n options.domain = settings.domain;\n }\n if(settings.path) {\n options.path = settings.path;\n }\n return options;\n }\n },\n\n clear: function() {\n module.storage.remove(settings.key);\n },\n\n storage: {\n set: function(key, value) {\n var\n options = module.get.storageOptions()\n ;\n if(settings.storageMethod == 'localstorage' && window.localStorage !== undefined) {\n window.localStorage.setItem(key, value);\n module.debug('Value stored using local storage', key, value);\n }\n else if(settings.storageMethod == 'sessionstorage' && window.sessionStorage !== undefined) {\n window.sessionStorage.setItem(key, value);\n module.debug('Value stored using session storage', key, value);\n }\n else if($.cookie !== undefined) {\n $.cookie(key, value, options);\n module.debug('Value stored using cookie', key, value, options);\n }\n else {\n module.error(error.noCookieStorage);\n return;\n }\n },\n get: function(key, value) {\n var\n storedValue\n ;\n if(settings.storageMethod == 'localstorage' && window.localStorage !== undefined) {\n storedValue = window.localStorage.getItem(key);\n }\n else if(settings.storageMethod == 'sessionstorage' && window.sessionStorage !== undefined) {\n storedValue = window.sessionStorage.getItem(key);\n }\n // get by cookie\n else if($.cookie !== undefined) {\n storedValue = $.cookie(key);\n }\n else {\n module.error(error.noCookieStorage);\n }\n if(storedValue == 'undefined' || storedValue == 'null' || storedValue === undefined || storedValue === null) {\n storedValue = undefined;\n }\n return storedValue;\n },\n remove: function(key) {\n var\n options = module.get.storageOptions()\n ;\n if(settings.storageMethod == 'localstorage' && window.localStorage !== undefined) {\n window.localStorage.removeItem(key);\n }\n else if(settings.storageMethod == 'sessionstorage' && window.sessionStorage !== undefined) {\n window.sessionStorage.removeItem(key);\n }\n // store by cookie\n else if($.cookie !== undefined) {\n $.removeCookie(key, options);\n }\n else {\n module.error(error.noStorage);\n }\n }\n },\n\n setting: function(name, value) {\n module.debug('Changing setting', name, value);\n if( $.isPlainObject(name) ) {\n $.extend(true, settings, name);\n }\n else if(value !== undefined) {\n if($.isPlainObject(settings[name])) {\n $.extend(true, settings[name], value);\n }\n else {\n settings[name] = value;\n }\n }\n else {\n return settings[name];\n }\n },\n internal: function(name, value) {\n if( $.isPlainObject(name) ) {\n $.extend(true, module, name);\n }\n else if(value !== undefined) {\n module[name] = value;\n }\n else {\n return module[name];\n }\n },\n debug: function() {\n if(!settings.silent && settings.debug) {\n if(settings.performance) {\n module.performance.log(arguments);\n }\n else {\n module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');\n module.debug.apply(console, arguments);\n }\n }\n },\n verbose: function() {\n if(!settings.silent && settings.verbose && settings.debug) {\n if(settings.performance) {\n module.performance.log(arguments);\n }\n else {\n module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');\n module.verbose.apply(console, arguments);\n }\n }\n },\n error: function() {\n if(!settings.silent) {\n module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');\n module.error.apply(console, arguments);\n }\n },\n performance: {\n log: function(message) {\n var\n currentTime,\n executionTime,\n previousTime\n ;\n if(settings.performance) {\n currentTime = new Date().getTime();\n previousTime = time || currentTime;\n executionTime = currentTime - previousTime;\n time = currentTime;\n performance.push({\n 'Name' : message[0],\n 'Arguments' : [].slice.call(message, 1) || '',\n 'Element' : element,\n 'Execution Time' : executionTime\n });\n }\n clearTimeout(module.performance.timer);\n module.performance.timer = setTimeout(module.performance.display, 500);\n },\n display: function() {\n var\n title = settings.name + ':',\n totalTime = 0\n ;\n time = false;\n clearTimeout(module.performance.timer);\n $.each(performance, function(index, data) {\n totalTime += data['Execution Time'];\n });\n title += ' ' + totalTime + 'ms';\n if(moduleSelector) {\n title += ' \\'' + moduleSelector + '\\'';\n }\n if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {\n console.groupCollapsed(title);\n if(console.table) {\n console.table(performance);\n }\n else {\n $.each(performance, function(index, data) {\n console.log(data['Name'] + ': ' + data['Execution Time']+'ms');\n });\n }\n console.groupEnd();\n }\n performance = [];\n }\n },\n invoke: function(query, passedArguments, context) {\n var\n object = instance,\n maxDepth,\n found,\n response\n ;\n passedArguments = passedArguments || queryArguments;\n context = element || context;\n if(typeof query == 'string' && object !== undefined) {\n query = query.split(/[\\. ]/);\n maxDepth = query.length - 1;\n $.each(query, function(depth, value) {\n var camelCaseValue = (depth != maxDepth)\n ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)\n : query\n ;\n if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {\n object = object[camelCaseValue];\n }\n else if( object[camelCaseValue] !== undefined ) {\n found = object[camelCaseValue];\n return false;\n }\n else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {\n object = object[value];\n }\n else if( object[value] !== undefined ) {\n found = object[value];\n return false;\n }\n else {\n module.error(error.method, query);\n return false;\n }\n });\n }\n if ( $.isFunction( found ) ) {\n response = found.apply(context, passedArguments);\n }\n else if(found !== undefined) {\n response = found;\n }\n if($.isArray(returnedValue)) {\n returnedValue.push(response);\n }\n else if(returnedValue !== undefined) {\n returnedValue = [returnedValue, response];\n }\n else if(response !== undefined) {\n returnedValue = response;\n }\n return found;\n }\n };\n\n if(methodInvoked) {\n if(instance === undefined) {\n module.initialize();\n }\n module.invoke(query);\n }\n else {\n if(instance !== undefined) {\n instance.invoke('destroy');\n }\n module.initialize();\n }\n })\n ;\n\n return (returnedValue !== undefined)\n ? returnedValue\n : this\n ;\n};\n\n$.fn.nag.settings = {\n\n name : 'Nag',\n\n silent : false,\n debug : false,\n verbose : false,\n performance : true,\n\n namespace : 'Nag',\n\n // allows cookie to be overridden\n persist : false,\n\n // set to zero to require manually dismissal, otherwise hides on its own\n displayTime : 0,\n\n animation : {\n show : 'slide',\n hide : 'slide'\n },\n\n context : false,\n detachable : false,\n\n expires : 30,\n domain : false,\n path : '/',\n\n // type of storage to use\n storageMethod : 'cookie',\n\n // value to store in dismissed localstorage/cookie\n key : 'nag',\n value : 'dismiss',\n\n error: {\n noCookieStorage : '$.cookie is not included. A storage solution is required.',\n noStorage : 'Neither $.cookie or store is defined. A storage solution is required for storing state',\n method : 'The method you called is not defined.'\n },\n\n className : {\n bottom : 'bottom',\n fixed : 'fixed'\n },\n\n selector : {\n close : '.close.icon'\n },\n\n speed : 500,\n easing : 'easeOutQuad',\n\n onHide: function() {}\n\n};\n\n// Adds easing\n$.extend( $.easing, {\n easeOutQuad: function (x, t, b, c, d) {\n return -c *(t/=d)*(t-2) + b;\n }\n});\n\n})( jQuery, window, document );\n"]}