2 lines
461 KiB
JavaScript
2 lines
461 KiB
JavaScript
|
(function(e){function t(t){for(var i,r,o=t[0],c=t[1],u=t[2],f=0,d=[];f<o.length;f++)r=o[f],Object.prototype.hasOwnProperty.call(s,r)&&s[r]&&d.push(s[r][0]),s[r]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);l&&l(t);while(d.length)d.shift()();return a.push.apply(a,u||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],i=!0,o=1;o<n.length;o++){var c=n[o];0!==s[c]&&(i=!1)}i&&(a.splice(t--,1),e=r(r.s=n[0]))}return e}var i={},s={app:0},a=[];function r(t){if(i[t])return i[t].exports;var n=i[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=i,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="";var o=window["webpackJsonp"]=window["webpackJsonp"]||[],c=o.push.bind(o);o.push=t,o=o.slice();for(var u=0;u<o.length;u++)t(o[u]);var l=c;a.push([0,"vendor"]),n()})({0:function(e,t,n){n("1fe4"),n("914e"),n("eb21"),e.exports=n("56d7")},"002e":function(e,t,n){"use strict";var i=n("cd87"),s=n.n(i);s.a},"00f8":function(e,t,n){"use strict";n.r(t);var i=n("3ee2"),s=n("f79f");for(var a in s)"default"!==a&&function(e){n.d(t,e,(function(){return s[e]}))}(a);n("5fd8");var r=n("2877"),o=Object(r["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},"02fe":function(e,t,n){"use strict";var i=n("2d80"),s=n("1bd5");i(t,"__esModule",{value:!0}),t.requestPermission=l,t.show=f,t.listenForNewMessages=p;var a=s(n("2b0b")),r=s(n("78b2")),o=s(n("e76e")),c=s(n("2ef0")),u=!1;function l(e){if("Notification"in window)return"granted"===Notification.permission?(e.$emit("notification.enabled"),void(u=!0)):void("denied"!==Notification.permission&&Notification.requestPermission((function(t){"granted"===t?(e.$emit("notification.enabled"),u=!0):u=!1})));u=!1}function f(e,t,n){if(!u)return!1;var i,s=new Notification(e,{body:t,icon:n.icon});n.ttl&&(0,a.default)((0,r.default)(i=s.close).call(i,s),n.ttl);return s}var d=c.default.throttle(f,2e3);function p(e){e.$on("notification.show",(function(e,t){if(u){var n=(0,o.default)({title:"Kiwi IRC",message:e,icon:"",onclick:null,ttl:1e4},t);if(n.message){var i=d(n.title,n.message,{ttl:n.ttl});i&&"function"===typeof n.onclick&&(i.onclick=n.onclick)}}}))}window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["libs"]||(window._kiwi_exports["libs"]={}),window._kiwi_exports["libs"]["Notifications"],window._kiwi_exports.libs.Notifications=t.default?t.default:t},"0339":function(e,t,n){},"036e":function(e,t,n){"use strict";n.r(t);var i=n("c850"),s=n("96a1");for(var a in s)"default"!==a&&function(e){n.d(t,e,(function(){return s[e]}))}(a);n("a2f2");var r=n("2877"),o=Object(r["a"])(s["default"],i["a"],i["b"],!0,null,"23bc1672",null);t["default"]=o.exports},"040f":function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null})},"0470":function(e,t,n){"use strict";var i=n("2d80"),s=n("1bd5");i(t,"__esModule",{value:!0}),t.default=void 0;var a=s(n("a3e3")),r=c(),o=r;function c(e,t){function n(){n.info.apply(n,arguments)}function i(e){var i=t||n;return i.level>=e}return n.LEVEL_DEBUG=2,n.LEVEL_INFO=1,n.LEVEL_ERROR=0,n.level=n.LEVEL_ERROR,n.debug=function(){if(i(n.LEVEL_DEBUG)){for(var t,s,r=arguments.l
|
||
|
//# sourceMappingURL=app.c8cdefc7.js.map
|