{"version":3,"sources":["bootstrap-notify.min.js","sidebar.js","notify-helpers.js"],"names":[],"mappings":"AAAA;AACA;ACDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACpFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"master-f94e3c9c6c.js","sourcesContent":["/* Project: Bootstrap Growl = v3.1.3 | Description: Turns standard Bootstrap alerts into \"Growl-like\" notifications. | Author: Mouse0270 aka Robert McIntosh | License: MIT License | Website: https://github.com/mouse0270/bootstrap-growl */\r\n!function (t) { \"function\" == typeof define && define.amd ? define([\"jquery\"], t) : t(\"object\" == typeof exports ? require(\"jquery\") : jQuery) }(function (t) { function e(e, i, n) { var i = { content: { message: \"object\" == typeof i ? i.message : i, title: i.title ? i.title : \"\", icon: i.icon ? i.icon : \"\", url: i.url ? i.url : \"#\", target: i.target ? i.target : \"-\" } }; n = t.extend(!0, {}, i, n), this.settings = t.extend(!0, {}, s, n), this._defaults = s, \"-\" == this.settings.content.target && (this.settings.content.target = this.settings.url_target), this.animations = { start: \"webkitAnimationStart oanimationstart MSAnimationStart animationstart\", end: \"webkitAnimationEnd oanimationend MSAnimationEnd animationend\" }, \"number\" == typeof this.settings.offset && (this.settings.offset = { x: this.settings.offset, y: this.settings.offset }), this.init() } var s = { element: \"body\", position: null, type: \"info\", allow_dismiss: !0, newest_on_top: !1, showProgressbar: !1, placement: { from: \"top\", align: \"right\" }, offset: 20, spacing: 10, z_index: 1031, delay: 5e3, timer: 1e3, url_target: \"_blank\", mouse_over: null, animate: { enter: \"animated fadeInDown\", exit: \"animated fadeOutUp\" }, onShow: null, onShown: null, onClose: null, onClosed: null, icon_type: \"class\", template: '
{1} {2}
' }; String.format = function () { for (var t = arguments[0], e = 1; e < arguments.length; e++)t = t.replace(RegExp(\"\\\\{\" + (e - 1) + \"\\\\}\", \"gm\"), arguments[e]); return t }, t.extend(e.prototype, { init: function () { var t = this; this.buildNotify(), this.settings.content.icon && this.setIcon(), \"#\" != this.settings.content.url && this.styleURL(), this.placement(), this.bind(), this.notify = { $ele: this.$ele, update: function (e, s) { var i = {}; \"string\" == typeof e ? i[e] = s : i = e; for (var e in i) switch (e) { case \"type\": this.$ele.removeClass(\"alert-\" + t.settings.type), this.$ele.find('[data-notify=\"progressbar\"] > .progress-bar').removeClass(\"progress-bar-\" + t.settings.type), t.settings.type = i[e], this.$ele.addClass(\"alert-\" + i[e]).find('[data-notify=\"progressbar\"] > .progress-bar').addClass(\"progress-bar-\" + i[e]); break; case \"icon\": var n = this.$ele.find('[data-notify=\"icon\"]'); \"class\" == t.settings.icon_type.toLowerCase() ? n.removeClass(t.settings.content.icon).addClass(i[e]) : (n.is(\"img\") || n.find(\"img\"), n.attr(\"src\", i[e])); break; case \"progress\": var a = t.settings.delay - t.settings.delay * (i[e] / 100); this.$ele.data(\"notify-delay\", a), this.$ele.find('[data-notify=\"progressbar\"] > div').attr(\"aria-valuenow\", i[e]).css(\"width\", i[e] + \"%\"); break; case \"url\": this.$ele.find('[data-notify=\"url\"]').attr(\"href\", i[e]); break; case \"target\": this.$ele.find('[data-notify=\"url\"]').attr(\"target\", i[e]); break; default: this.$ele.find('[data-notify=\"' + e + '\"]').html(i[e]) }var o = this.$ele.outerHeight() + parseInt(t.settings.spacing) + parseInt(t.settings.offset.y); t.reposition(o) }, close: function () { t.close() } } }, buildNotify: function () { var e = this.settings.content; this.$ele = t(String.format(this.settings.template, this.settings.type, e.title, e.message, e.url, e.target)), this.$ele.attr(\"data-notify-position\", this.settings.placement.from + \"-\" + this.settings.placement.align), this.settings.allow_dismiss || this.$ele.find('[data-notify=\"dismiss\"]').css(\"display\", \"none\"), (this.settings.delay <= 0 && !this.settings.showProgressbar || !this.settings.showProgressbar) && this.$ele.find('[data-notify=\"progressbar\"]').remove() }, setIcon: function () { \"class\" == this.settings.icon_type.toLowerCase() ? this.$ele.find('[data-notify=\"icon\"]').addClass(this.settings.content.icon) : this.$ele.find('[data-notify=\"icon\"]').is(\"img\") ? this.$ele.find('[data-notify=\"icon\"]').attr(\"src\", this.settings.content.icon) : this.$ele.find('[data-notify=\"icon\"]').append('\"Notify') }, styleURL: function () { this.$ele.find('[data-notify=\"url\"]').css({ backgroundImage: \"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)\", height: \"100%\", left: \"0px\", position: \"absolute\", top: \"0px\", width: \"100%\", zIndex: this.settings.z_index + 1 }), this.$ele.find('[data-notify=\"dismiss\"]').css({ position: \"absolute\", right: \"10px\", top: \"5px\", zIndex: this.settings.z_index + 2 }) }, placement: function () { var e = this, s = this.settings.offset.y, i = { display: \"inline-block\", margin: \"0px auto\", position: this.settings.position ? this.settings.position : \"body\" === this.settings.element ? \"fixed\" : \"absolute\", transition: \"all .5s ease-in-out\", zIndex: this.settings.z_index }, n = !1, a = this.settings; switch (t('[data-notify-position=\"' + this.settings.placement.from + \"-\" + this.settings.placement.align + '\"]:not([data-closing=\"true\"])').each(function () { return s = Math.max(s, parseInt(t(this).css(a.placement.from)) + parseInt(t(this).outerHeight()) + parseInt(a.spacing)) }), 1 == this.settings.newest_on_top && (s = this.settings.offset.y), i[this.settings.placement.from] = s + \"px\", this.settings.placement.align) { case \"left\": case \"right\": i[this.settings.placement.align] = this.settings.offset.x + \"px\"; break; case \"center\": i.left = 0, i.right = 0 }this.$ele.css(i).addClass(this.settings.animate.enter), t.each(Array(\"webkit\", \"moz\", \"o\", \"ms\", \"\"), function (t, s) { e.$ele[0].style[s + \"AnimationIterationCount\"] = 1 }), t(this.settings.element).append(this.$ele), 1 == this.settings.newest_on_top && (s = parseInt(s) + parseInt(this.settings.spacing) + this.$ele.outerHeight(), this.reposition(s)), t.isFunction(e.settings.onShow) && e.settings.onShow.call(this.$ele), this.$ele.one(this.animations.start, function () { n = !0 }).one(this.animations.end, function () { t.isFunction(e.settings.onShown) && e.settings.onShown.call(this) }), setTimeout(function () { n || t.isFunction(e.settings.onShown) && e.settings.onShown.call(this) }, 600) }, bind: function () { var e = this; if (this.$ele.find('[data-notify=\"dismiss\"]').on(\"click\", function () { e.close() }), this.$ele.mouseover(function () { t(this).data(\"data-hover\", \"true\") }).mouseout(function () { t(this).data(\"data-hover\", \"false\") }), this.$ele.data(\"data-hover\", \"false\"), this.settings.delay > 0) { e.$ele.data(\"notify-delay\", e.settings.delay); var s = setInterval(function () { var t = parseInt(e.$ele.data(\"notify-delay\")) - e.settings.timer; if (\"false\" === e.$ele.data(\"data-hover\") && \"pause\" == e.settings.mouse_over || \"pause\" != e.settings.mouse_over) { var i = (e.settings.delay - t) / e.settings.delay * 100; e.$ele.data(\"notify-delay\", t), e.$ele.find('[data-notify=\"progressbar\"] > div').attr(\"aria-valuenow\", i).css(\"width\", i + \"%\") } t <= -e.settings.timer && (clearInterval(s), e.close()) }, e.settings.timer) } }, close: function () { var e = this, s = parseInt(this.$ele.css(this.settings.placement.from)), i = !1; this.$ele.data(\"closing\", \"true\").addClass(this.settings.animate.exit), e.reposition(s), t.isFunction(e.settings.onClose) && e.settings.onClose.call(this.$ele), this.$ele.one(this.animations.start, function () { i = !0 }).one(this.animations.end, function () { t(this).remove(), t.isFunction(e.settings.onClosed) && e.settings.onClosed.call(this) }), setTimeout(function () { i || (e.$ele.remove(), e.settings.onClosed && e.settings.onClosed(e.$ele)) }, 600) }, reposition: function (e) { var s = this, i = '[data-notify-position=\"' + this.settings.placement.from + \"-\" + this.settings.placement.align + '\"]:not([data-closing=\"true\"])', n = this.$ele.nextAll(i); 1 == this.settings.newest_on_top && (n = this.$ele.prevAll(i)), n.each(function () { t(this).css(s.settings.placement.from, e), e = parseInt(e) + parseInt(s.settings.spacing) + t(this).outerHeight() }) } }), t.notify = function (t, s) { var i = new e(this, t, s); return i.notify }, t.notifyDefaults = function (e) { return s = t.extend(!0, {}, s, e) }, t.notifyClose = function (e) { \"undefined\" == typeof e || \"all\" == e ? t(\"[data-notify]\").find('[data-notify=\"dismiss\"]').trigger(\"click\") : t('[data-notify-position=\"' + e + '\"]').find('[data-notify=\"dismiss\"]').trigger(\"click\") } });","var resizeTeller = 0;\r\nvar minWidthPercent = 20;\r\nvar maxWidthPercent = 80;\r\nvar sidebarLeft;\r\n\r\nfunction getScreenSize() {\r\n var breedte = $(window).outerWidth(true);\r\n\r\n if (breedte < 450) {\r\n return 'smartphone';\r\n } else if (breedte < 992) {\r\n return 'tablet';\r\n } else {\r\n return 'desktop';\r\n }\r\n}\r\n\r\nfunction closeSidebar() {\r\n if (sidebarLeft.hasClass('focus')) {\r\n toggleSidebar();\r\n }\r\n}\r\n\r\nfunction toggleSidebar() {\r\n sidebarLeft.toggleClass('focus');\r\n}\r\n\r\nfunction resizeSidebar(direction) {\r\n if (sidebarLeft.hasClass('gone')) {\r\n sidebarLeft.removeClass('gone');\r\n $('.content').removeClass('content-full');\r\n $('.content-item').removeClass('content-item-full');\r\n\r\n return;\r\n }\r\n\r\n var width = sidebarLeft.width();\r\n var parentWidth = sidebarLeft.offsetParent().width();\r\n var currentPercent = Math.round(100 * width / parentWidth);\r\n var newWidth = currentPercent + direction * 5;\r\n newWidth = Math.min(Math.max(newWidth, minWidthPercent), maxWidthPercent);\r\n\r\n sidebarLeft.width(newWidth + '%');\r\n $('.content').width(100 - newWidth + '%');\r\n\r\n resizeTeller += direction;\r\n}\r\n\r\nfunction decreaseSidebar() {\r\n var scherm = getScreenSize();\r\n\r\n if (scherm !== 'desktop') {\r\n return closeSidebar();\r\n }\r\n\r\n if (resizeTeller > 0) {\r\n resizeSidebar(-1);\r\n } else {\r\n sidebarLeft.toggleClass('gone');\r\n $('.content').toggleClass('content-full');\r\n $('.content-item').toggleClass('content-item-full');\r\n }\r\n}\r\n\r\nfunction increaseSidebar() {\r\n var scherm = getScreenSize();\r\n\r\n if (scherm !== 'desktop') {\r\n return toggleSidebar();\r\n }\r\n\r\n resizeSidebar(1);\r\n}\r\n\r\n$(document).ready(function () {\r\n sidebarLeft = $('.sidebar-left');\r\n\r\n $('#logo .toggle-sidebar').on('click', function (e) {\r\n e.stopPropagation();\r\n decreaseSidebar();\r\n });\r\n\r\n $('#topmenu .resize-sidebar').on('click', increaseSidebar);\r\n});\r\n","function handleError() {\r\n notify('danger');\r\n\r\n console.error(arguments, this);\r\n\r\n if (arguments[0] instanceof Error) {\r\n throw arguments[0];\r\n }\r\n}\r\n\r\n$.notifyDefaults({\r\n z_index: 10001,\r\n delay: 4000,\r\n placement: {\r\n from: 'top',\r\n align: 'center'\r\n }\r\n});\r\n\r\nfunction notify(type, message, options) {\r\n options = options || {};\r\n\r\n var currentWidth = $(window).width();\r\n var breakpoint = 992;\r\n var notificationLocation = currentWidth > breakpoint ? 'top' : 'bottom';\r\n\r\n return $.notify({\r\n message: message || defaultErrorMessage\r\n }, {\r\n type: type || 'warning', // 'info', 'success', 'warning', 'danger'\r\n delay: options.delay || 4000,\r\n placement: {\r\n from: notificationLocation\r\n }\r\n });\r\n}\r\n"]}