From bfe2b6ca48dd99d93d801fcbe9ae00e5219539e5 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sun, 26 Jul 2015 22:56:45 +0100 Subject: [PATCH] Elixir fixes --- package.json | 2 +- .../dist/js/{all-dc1fd8781c.js => all-d557ec2d69.js} | 9 +++++---- public/build/rev-manifest.json | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) rename public/build/dist/js/{all-dc1fd8781c.js => all-d557ec2d69.js} (78%) diff --git a/package.json b/package.json index ff932e82..035abab3 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "dependencies": { "bower": "~1.4.1", "gulp": "~3.9.0", - "laravel-elixir": "~3.0.0", + "laravel-elixir": "~3.0.3", "laravel-elixir-jshint": "~0.1.7" }, "private": true diff --git a/public/build/dist/js/all-dc1fd8781c.js b/public/build/dist/js/all-d557ec2d69.js similarity index 78% rename from public/build/dist/js/all-dc1fd8781c.js rename to public/build/dist/js/all-d557ec2d69.js index a47986f6..1447dfd6 100644 --- a/public/build/dist/js/all-dc1fd8781c.js +++ b/public/build/dist/js/all-d557ec2d69.js @@ -12,8 +12,9 @@ weekdays:s,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekday switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,s){return t.call(e,n,i,s)};case 4:return function(n,i,s,a){return t.call(e,n,i,s,a)}}return Ae(t,e)}function Q(t){function e(){var t=l?o:this;if(s){var p=c(s);Wn.apply(p,arguments)}if((a||u)&&(p||(p=c(arguments)),a&&Wn.apply(p,a),u&&p.length=y&&o===t,d=[];if(l){var c=a(i);c?(o=e,i=c):l=!1}for(;++s-1:void 0});return s.pop(),a.pop(),y&&(d(s),d(a)),o}function nt(t,e,n,i,s){(Zn(e)?Xt:li)(e,function(e,a){var o,r,l=e,d=t[a];if(e&&((r=Zn(e))||di(e))){for(var u=i.length;u--;)if(o=i[u]==e){d=s[u];break}if(!o){var c;n&&(l=n(d,e),(c="undefined"!=typeof l)&&(d=l)),c||(d=r?Zn(d)?d:[]:di(d)?d:{}),i.push(e),s.push(d),c||nt(d,e,n,i,s)}}else n&&(l=n(d,e),"undefined"==typeof l&&(l=e)),"undefined"!=typeof l&&(d=l);t[a]=d})}function it(t,e){return t+jn(Gn()*(e-t+1))}function st(n,i,s){var o=-1,l=lt(),c=n?n.length:0,h=[],f=!i&&c>=y&&l===t,p=s||f?r():h;if(f){var m=a(p);l=e,p=m}for(;++o3&&"function"==typeof e[n-2])var i=X(e[--n-1],e[n--],2);else n>2&&"function"==typeof e[n-1]&&(i=e[--n]);for(var s=c(arguments,1,n),a=-1,o=r(),l=r();++an?qn(0,a+n):n)||0,Zn(t)?o=s(t,e,n)>-1:"number"==typeof a?o=(Wt(t)?t.indexOf(e,n):s(t,e,n))>-1:li(t,function(t){return++i>=n?!(o=t===e):void 0}),o}function Ut(t,e,n){var i=!0;e=p.createCallback(e,n,3);var s=-1,a=t?t.length:0;if("number"==typeof a)for(;++sa&&(a=l)}else e=null==e&&Wt(t)?i:p.createCallback(e,n,3),Xt(t,function(t,n,i){var o=e(t,n,i);o>s&&(s=o,a=t)});return a}function ee(t,e,n){var s=1/0,a=s;if("function"!=typeof e&&n&&n[e]===t&&(e=null),null==e&&Zn(t))for(var o=-1,r=t.length;++ol&&(a=l)}else e=null==e&&Wt(t)?i:p.createCallback(e,n,3),Xt(t,function(t,n,i){var o=e(t,n,i);s>o&&(s=o,a=t)});return a}function ne(t,e,n,i){if(!t)return n;var s=arguments.length<3;e=p.createCallback(e,i,4);var a=-1,o=t.length;if("number"==typeof o)for(s&&(n=t[++a]);++ai?qn(0,s+i):i||0}else if(i){var a=Ye(e,n);return e[a]===n?a:-1}return t(e,n,i)}function ye(t,e,n){var i=0,s=t?t.length:0;if("number"!=typeof e&&null!=e){var a=s;for(e=p.createCallback(e,n,3);a--&&e(t[a],a,t);)i++}else i=null==e||n?1:e||i;return c(t,0,Un(qn(0,s-i),s))}function ve(){for(var n=[],i=-1,s=arguments.length,o=r(),l=lt(),c=l===t,h=r();++i=y&&a(i?n[i]:h)))}var p=n[0],m=-1,_=p?p.length:0,g=[];t:for(;++m<_;){var v=o[0];if(f=p[m],(v?e(v,f):l(h,f))<0){for(i=s,(v||h).push(f);--i;)if(v=o[i],(v?e(v,f):l(n[i],f))<0)continue t;g.push(f)}}for(;s--;)v=o[s],v&&u(v);return d(o),d(h),g}function Me(t,e,n){var i=0,s=t?t.length:0;if("number"!=typeof e&&null!=e){var a=s;for(e=p.createCallback(e,n,3);a--&&e(t[a],a,t);)i++}else if(i=e,null==i||n)return t?t[s-1]:f;return c(t,qn(0,s-i))}function Le(t,e,n){var i=t?t.length:0;for("number"==typeof n&&(i=(0>n?qn(0,i+n):Un(n,i-1))+1);i--;)if(t[i]===e)return i;return-1}function we(t){for(var e=arguments,n=0,i=e.length,s=t?t.length:0;++ns;){var o=s+a>>>1;n(t[o])1?arguments:arguments[0],e=-1,n=t?te(fi(t,"length")):0,i=pn(0>n?0:n);++e2?ot(t,17,c(arguments,2),null,e):ot(t,1,null,null,e)}function We(t){for(var e=arguments.length>1?tt(arguments,!0,!1,1):Mt(t),n=-1,i=e.length;++n2?ot(e,19,c(arguments,2),null,t):ot(e,3,null,null,t)}function Oe(){for(var t=arguments,e=t.length;e--;)if(!St(t[e]))throw new bn;return function(){for(var e=arguments,n=t.length;n--;)e=[t[n].apply(this,e)];return e[0]}}function $e(t,e){return e="number"==typeof e?e:+e||t.length,ot(t,4,null,null,null,e)}function He(t,e,n){var i,s,a,o,r,l,d,u=0,c=!1,h=!0;if(!St(t))throw new bn;if(e=qn(0,e)||0,n===!0){var p=!0;h=!1}else Ct(n)&&(p=n.leading,c="maxWait"in n&&(qn(e,n.maxWait)||0),h="trailing"in n?n.trailing:h);var m=function(){var n=e-(mi()-o);if(0>=n){s&&Cn(s);var c=d;s=l=d=f,c&&(u=mi(),a=t.apply(r,i),l||s||(i=r=null))}else l=Fn(m,n)},_=function(){l&&Cn(l),s=l=d=f,(h||c!==e)&&(u=mi(),a=t.apply(r,i),l||s||(i=r=null))};return function(){if(i=arguments,o=mi(),r=this,d=h&&(l||!p),c===!1)var n=p&&!l;else{s||p||(u=o);var f=c-(o-u),g=0>=f;g?(s&&(s=Cn(s)),u=o,a=t.apply(r,i)):s||(s=Fn(_,f))}return g&&l?l=Cn(l):l||e===c||(l=Fn(m,e)),n&&(g=!0,a=t.apply(r,i)),!g||l||s||(i=r=null),a}}function Ne(t){if(!St(t))throw new bn;var e=c(arguments,1);return Fn(function(){t.apply(f,e)},1)}function ze(t,e){if(!St(t))throw new bn;var n=c(arguments,2);return Fn(function(){t.apply(f,n)},e)}function Ie(t,e){if(!St(t))throw new bn;var n=function(){var i=n.cache,s=e?e.apply(this,arguments):g+arguments[0];return An.call(i,s)?i[s]:i[s]=t.apply(this,arguments)};return n.cache={},n}function Re(t){var e,n;if(!St(t))throw new bn;return function(){return e?n:(e=!0,n=t.apply(this,arguments),t=null,n)}}function Be(t){return ot(t,16,c(arguments,1))}function qe(t){return ot(t,32,null,c(arguments,1))}function Ue(t,e,n){var i=!0,s=!0;if(!St(t))throw new bn;return n===!1?i=!1:Ct(n)&&(i="leading"in n?n.leading:i,s="trailing"in n?n.trailing:s),B.leading=i,B.maxWait=e,B.trailing=s,He(t,e,B)}function Ve(t,e){return ot(e,16,[t])}function Ge(t){return function(){return t}}function Je(t,e,n){var i=typeof t;if(null==t||"function"==i)return X(t,e,n);if("object"!=i)return en(t);var s=ti(t),a=s[0],o=t[a];return 1!=s.length||o!==o||Ct(o)?function(e){for(var n=s.length,i=!1;n--&&(i=et(e[s[n]],t[s[n]],null,!0)););return i}:function(t){var e=t[a];return o===e&&(0!==o||1/o==1/e)}}function Xe(t){return null==t?"":wn(t).replace(si,rt)}function Qe(t){return t}function Ze(t,e,n){var i=!0,s=e&&Mt(e);e&&(n||s.length)||(null==n&&(n=e),a=m,e=t,t=p,s=Mt(e)),n===!1?i=!1:Ct(n)&&"chain"in n&&(i=n.chain);var a=t,o=St(a);Xt(s,function(n){var s=t[n]=e[n];o&&(a.prototype[n]=function(){var e=this.__chain__,n=this.__wrapped__,o=[n];Wn.apply(o,arguments);var r=s.apply(t,o);if(i||e){if(n===r&&Ct(r))return this;r=new a(r),r.__chain__=e}return r})})}function Ke(){return n._=Yn,this}function tn(){}function en(t){return function(e){return e[t]}}function nn(t,e,n){var i=null==t,s=null==e;if(null==n&&("boolean"==typeof t&&s?(n=t,t=1):s||"boolean"!=typeof e||(n=e,s=!0)),i&&s&&(e=1),t=+t||0,s?(e=t,t=0):e=+e||0,n||t%1||e%1){var a=Gn();return Un(t+a*(e-t+parseFloat("1e-"+((a+"").length-1))),e)}return it(t,e)}function sn(t,e){if(t){var n=t[e];return St(n)?t[e]():n}}function an(t,e,n){var i=p.templateSettings;t=wn(t||""),n=oi({},n,i);var s,a=oi({},n.imports,i.imports),r=ti(a),l=Rt(a),d=0,u=n.interpolate||S,c="__p += '",h=Ln((n.escape||S).source+"|"+u.source+"|"+(u===D?T:S).source+"|"+(n.evaluate||S).source+"|$","g");t.replace(h,function(e,n,i,a,r,l){return i||(i=a),c+=t.slice(d,l).replace(j,o),n&&(c+="' +\n__e("+n+") +\n'"),r&&(s=!0,c+="';\n"+r+";\n__p += '"),i&&(c+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),d=l+e.length,e}),c+="';\n";var m=n.variable,_=m;_||(m="obj",c="with ("+m+") {\n"+c+"\n}\n"),c=(s?c.replace(L,""):c).replace(w,"$1").replace(b,"$1;"),c="function("+m+") {\n"+(_?"":m+" || ("+m+" = {});\n")+"var __t, __p = '', __e = _.escape"+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+c+"return __p\n}";var g="\n/*\n//# sourceURL="+(n.sourceURL||"/lodash/template/source["+E++ +"]")+"\n*/";try{var y=gn(r,"return "+c+g).apply(f,l)}catch(v){throw v.source=c,v}return e?y(e):(y.source=c,y)}function on(t,e,n){t=(t=+t)>-1?t:0;var i=-1,s=pn(t);for(e=X(e,n,1);++i/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:D,variable:"",imports:{_:p}},Nn||(J=function(){function t(){}return function(e){if(Ct(e)){t.prototype=e;var i=new t;t.prototype=null}return i||n.Object()}}());var Qn=Hn?function(t,e){q.value=e,Hn(t,"__bindData__",q),q.value=null}:tn,Zn=zn||function(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Dn.call(t)==W||!1},Kn=function(t){var e,n=t,i=[];if(!n)return i;if(!U[typeof t])return i;for(e in n)An.call(n,e)&&i.push(e);return i},ti=Bn?function(t){return Ct(t)?Bn(t):[]}:Kn,ei={"&":"&","<":"<",">":">",'"':""","'":"'"},ni=wt(ei),ii=Ln("("+ti(ni).join("|")+")","g"),si=Ln("["+ti(ei).join("")+"]","g"),ai=function(t,e,n){var i,s=t,a=s;if(!s)return a;var o=arguments,r=0,l="number"==typeof n?2:o.length;if(l>3&&"function"==typeof o[l-2])var d=X(o[--l-1],o[l--],2);else l>2&&"function"==typeof o[l-1]&&(d=o[--l]);for(;++r/g,x=RegExp("^["+M+"]*0+(?=.$)"),S=/($^)/,C=/\bthis\b/,j=/['\n\r\t\u2028\u2029\\]/g,P=["Array","Boolean","Date","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],E=0,A="[object Arguments]",W="[object Array]",F="[object Boolean]",O="[object Date]",$="[object Function]",H="[object Number]",N="[object Object]",z="[object RegExp]",I="[object String]",R={};R[$]=!1,R[A]=R[W]=R[F]=R[O]=R[H]=R[N]=R[z]=R[I]=!0;var B={leading:!1,maxWait:0,trailing:!1},q={configurable:!1,enumerable:!1,value:null,writable:!1},U={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},V={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},G=U[typeof window]&&window||this,J=U[typeof exports]&&exports&&!exports.nodeType&&exports,X=U[typeof module]&&module&&!module.nodeType&&module,Q=X&&X.exports===J&&J,Z=U[typeof global]&&global;!Z||Z.global!==Z&&Z.window!==Z||(G=Z);var K=h();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(G._=K,define(function(){return K})):J&&X?Q?(X.exports=K)._=K:J._=K:G._=K}.call(this),function(t,e){"use strict";"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():t.autosize=e()}(this,function(){function t(t){function e(){var e=window.getComputedStyle(t,null);"vertical"===e.resize?t.style.resize="none":"both"===e.resize&&(t.style.resize="horizontal"),t.style.wordWrap="break-word";var a=t.style.width;t.style.width="0px",t.offsetWidth,t.style.width=a,i="none"!==e.maxHeight?parseFloat(e.maxHeight):!1,s="content-box"===e.boxSizing?-(parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)):parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth),n()}function n(){var e=t.style.height,n=document.documentElement.scrollTop,a=document.body.scrollTop;t.style.height="auto";var o=t.scrollHeight+s;if(i!==!1&&o>i?(o=i,"scroll"!==t.style.overflowY&&(t.style.overflowY="scroll")):"hidden"!==t.style.overflowY&&(t.style.overflowY="hidden"),t.style.height=o+"px",document.documentElement.scrollTop=n,document.body.scrollTop=a,e!==t.style.height){var r=document.createEvent("Event");r.initEvent("autosize.resized",!0,!1),t.dispatchEvent(r)}}if(t&&t.nodeName&&"TEXTAREA"===t.nodeName&&!t.hasAttribute("data-autosize-on")){var i,s;"onpropertychange"in t&&"oninput"in t&&t.addEventListener("keyup",n),window.addEventListener("resize",n),t.addEventListener("input",n),t.addEventListener("autosize.update",n),t.addEventListener("autosize.destroy",function(e){window.removeEventListener("resize",n),t.removeEventListener("input",n),t.removeEventListener("keyup",n),t.removeEventListener("autosize.destroy"),Object.keys(e).forEach(function(n){t.style[n]=e[n]}),t.removeAttribute("data-autosize-on")}.bind(t,{height:t.style.height,overflow:t.style.overflow,overflowY:t.style.overflowY,wordWrap:t.style.wordWrap,resize:t.style.resize})),t.setAttribute("data-autosize-on",!0),t.style.overflow="hidden",t.style.overflowY="hidden",e()}}return"function"!=typeof window.getComputedStyle?function(t){return t}:function(e){return e&&e.length?Array.prototype.forEach.call(e,t):e&&e.nodeName&&t(e),e}}),function(){var t,e=window.Messenger;t=window.Messenger=function(){return t._call.apply(this,arguments)},window.Messenger.noConflict=function(){return window.Messenger=e,t}}(),window.Messenger._=function(){if(window._)return window._;var t=Array.prototype,e=Object.prototype,n=Function.prototype,i=(t.push,t.slice),s=(t.concat,e.toString),a=(e.hasOwnProperty,t.forEach),o=(t.map,t.reduce,t.reduceRight,t.filter),r=(t.every,t.some,t.indexOf,t.lastIndexOf,Array.isArray,Object.keys),l=n.bind,d={},u={},c=d.each=d.forEach=function(t,e,n){if(null!=t)if(a&&t.forEach===a)t.forEach(e,n);else if(t.length===+t.length){for(var i=0,s=t.length;s>i;i++)if(e.call(n,t[i],i,t)===u)return}else for(var o in t)if(d.has(t,o)&&e.call(n,t[o],o,t)===u)return};d.result=function(t,e){if(null==t)return null;var n=t[e];return d.isFunction(n)?n.call(t):n},d.once=function(t){var e,n=!1;return function(){return n?e:(n=!0,e=t.apply(this,arguments),t=null,e)}};var h=0;return d.uniqueId=function(t){var e=++h+"";return t?t+e:e},d.filter=d.select=function(t,e,n){var i=[];return null==t?i:o&&t.filter===o?t.filter(e,n):(c(t,function(t,s,a){e.call(n,t,s,a)&&(i[i.length]=t)}),i)},c(["Arguments","Function","String","Number","Date","RegExp"],function(t){d["is"+t]=function(e){return s.call(e)=="[object "+t+"]"}}),d.defaults=function(t){return c(i.call(arguments,1),function(e){if(e)for(var n in e)null==t[n]&&(t[n]=e[n])}),t},d.extend=function(t){return c(i.call(arguments,1),function(e){if(e)for(var n in e)t[n]=e[n]}),t},d.keys=r||function(t){if(t!==Object(t))throw new TypeError("Invalid object");var e=[];for(var n in t)d.has(t,n)&&(e[e.length]=n);return e},d.bind=function(t,e){if(t.bind===l&&l)return l.apply(t,i.call(arguments,1));var n=i.call(arguments,2);return function(){return t.apply(e,n.concat(i.call(arguments)))}},d.isObject=function(t){return t===Object(t)},d}(),window.Messenger.Events=function(){if(window.Backbone&&Backbone.Events)return Backbone.Events;var t=function(){var t=/\s+/,e=function(e,n,i,s){if(!i)return!0;if("object"==typeof i)for(var a in i)e[n].apply(e,[a,i[a]].concat(s));else{if(!t.test(i))return!0;for(var o=i.split(t),r=0,l=o.length;l>r;r++)e[n].apply(e,[o[r]].concat(s))}},n=function(t,e){var n,i=-1,s=t.length;switch(e.length){case 0:for(;++il;l++)if(t=r[l],s=this._events[t]){if(o=[],n||i)for(u=0,c=s.length;c>u;u++)a=s[u],(n&&n!==a.callback&&n!==a.callback._callback||i&&i!==a.context)&&o.push(a);this._events[t]=o}return this},trigger:function(t){if(!this._events)return this;var i=Array.prototype.slice.call(arguments,1);if(!e(this,"trigger",t,i))return this;var s=this._events[t],a=this._events.all;return s&&n(s,i),a&&n(a,arguments),this},listenTo:function(t,e,n){var i=this._listeners||(this._listeners={}),s=t._listenerId||(t._listenerId=_.uniqueId("l"));return i[s]=t,t.on(e,"object"==typeof e?this:n,this),this},stopListening:function(t,e,n){var i=this._listeners;if(i){if(t)t.off(e,"object"==typeof e?this:n,this),e||n||delete i[t._listenerId];else{"object"==typeof e&&(n=this);for(var s in i)i[s].off(e,n,this);this._listeners={}}return this}}};return i.bind=i.on,i.unbind=i.off,i};return t()}(),function(){var t,e,n,i,s,a,o,r,l,d,u,c={}.hasOwnProperty,h=function(t,e){function n(){this.constructor=t}for(var i in e)c.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},f=[].slice,p=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e; -return-1};t=jQuery,a=null!=(l=window._)?l:window.Messenger._,i=null!=(d="undefined"!=typeof Backbone&&null!==Backbone?Backbone.Events:void 0)?d:window.Messenger.Events,n=function(){function e(e){t.extend(this,i),a.isObject(e)&&(e.el&&this.setElement(e.el),this.model=e.model),this.initialize.apply(this,arguments)}return e.prototype.setElement=function(e){return this.$el=t(e),this.el=this.$el[0]},e.prototype.delegateEvents=function(t){var e,n,i,s,o,r,l;if(t||(t=a.result(this,"events"))){this.undelegateEvents(),e=/^(\S+)\s*(.*)$/,l=[];for(i in t){if(o=t[i],a.isFunction(o)||(o=this[t[i]]),!o)throw new Error('Method "'+t[i]+'" does not exist');s=i.match(e),n=s[1],r=s[2],o=a.bind(o,this),n+=".delegateEvents"+this.cid,l.push(""===r?this.jqon(n,o):this.jqon(n,r,o))}return l}},e.prototype.jqon=function(t,e,n){var i;return null!=this.$el.on?(i=this.$el).on.apply(i,arguments):(null==n&&(n=e,e=void 0),null!=e?this.$el.delegate(e,t,n):this.$el.bind(t,n))},e.prototype.jqoff=function(t){var e;return null!=this.$el.off?(e=this.$el).off.apply(e,arguments):(this.$el.undelegate(),this.$el.unbind(t))},e.prototype.undelegateEvents=function(){return this.jqoff(".delegateEvents"+this.cid)},e.prototype.remove=function(){return this.undelegateEvents(),this.$el.remove()},e}(),o=function(e){function n(){return n.__super__.constructor.apply(this,arguments)}return h(n,e),n.prototype.defaults={hideAfter:10,scroll:!0,closeButtonText:"×"},n.prototype.initialize=function(e){return null==e&&(e={}),this.shown=!1,this.rendered=!1,this.messenger=e.messenger,this.options=t.extend({},this.options,e,this.defaults)},n.prototype.show=function(){var t;return this.rendered||this.render(),this.$message.removeClass("messenger-hidden"),t=this.shown,this.shown=!0,t?void 0:this.trigger("show")},n.prototype.hide=function(){var t;if(this.rendered)return this.$message.addClass("messenger-hidden"),t=this.shown,this.shown=!1,t?this.trigger("hide"):void 0},n.prototype.cancel=function(){return this.hide()},n.prototype.update=function(e){var n,i=this;return a.isString(e)&&(e={message:e}),t.extend(this.options,e),this.lastUpdate=new Date,this.rendered=!1,this.events=null!=(n=this.options.events)?n:{},this.render(),this.actionsToEvents(),this.delegateEvents(),this.checkClickable(),this.options.hideAfter?(this.$message.addClass("messenger-will-hide-after"),null!=this._hideTimeout&&clearTimeout(this._hideTimeout),this._hideTimeout=setTimeout(function(){return i.hide()},1e3*this.options.hideAfter)):this.$message.removeClass("messenger-will-hide-after"),this.options.hideOnNavigate?(this.$message.addClass("messenger-will-hide-on-navigate"),null!=("undefined"!=typeof Backbone&&null!==Backbone?Backbone.history:void 0)&&Backbone.history.on("route",function(){return i.hide()})):this.$message.removeClass("messenger-will-hide-on-navigate"),this.trigger("update",this)},n.prototype.scrollTo=function(){return this.options.scroll?t.scrollTo(this.$el,{duration:400,offset:{left:0,top:-20}}):void 0},n.prototype.timeSinceUpdate=function(){return this.lastUpdate?new Date-this.lastUpdate:null},n.prototype.actionsToEvents=function(){var t,e,n,i,s=this;n=this.options.actions,i=[];for(e in n)t=n[e],i.push(this.events['click [data-action="'+e+'"] a']=function(t){return function(n){return n.preventDefault(),n.stopPropagation(),s.trigger("action:"+e,t,n),t.action.call(s,n,s)}}(t));return i},n.prototype.checkClickable=function(){var t,e,n,i;n=this.events,i=[];for(e in n)t=n[e],i.push("click"===e?this.$message.addClass("messenger-clickable"):void 0);return i},n.prototype.undelegateEvents=function(){var t;return n.__super__.undelegateEvents.apply(this,arguments),null!=(t=this.$message)?t.removeClass("messenger-clickable"):void 0},n.prototype.parseActions=function(){var e,n,i,s,a,o;n=[],a=this.options.actions;for(s in a)e=a[s],i=t.extend({},e),i.name=s,null==(o=i.label)&&(i.label=s),n.push(i);return n},n.prototype.template=function(e){var n,i,s,a,o,r,l,d,u,c,h=this;for(o=t("
"),e.showCloseButton&&(s=t('