{"version":3,"file":"app.js","sources":["webpack:///app.js"],"sourcesContent":["!function(e){function t(t){for(var n,o,i=t[0],c=t[1],l=t[2],u=0,d=[];u0?window.innerWidth:screen.width)<1170?document.body.classList.add(\"mini-sidebar\"):(document.body.classList.remove(\"mini-sidebar\"),document.querySelector(\".navbar-brand span\").classList.remove(\"d-none\")))},t}());e((function(){j.init()}))}).call(this,s(2))},322:function(e,t,s){\"use strict\";(function(e){var n=this&&this.__awaiter||function(e,t,s,n){return new(s||(s=Promise))((function(r,a){function o(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof s?t:new s((function(e){e(t)}))).then(o,i)}c((n=n.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var s,n,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:i(0),throw:i(1),return:i(2)},\"function\"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function i(a){return function(i){return function(a){if(s)throw new TypeError(\"Generator is already executing.\");for(;o;)try{if(s=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]\\n
').concat(e.Message,'
\\n ').concat(t.format(\"DD/MM/YYYY HH:mm\"),\"\\n \"),a=document.createElement(\"div\");a.innerHTML=r;var o=a.firstChild;s.notificationListContainer.appendChild(o),o.addEventListener(\"click\",(function(t){return s.markAsReadAndPerformAction(t,e)}))})),[2]}}))}))},t.prototype.markAsReadAndPerformAction=function(e,t){return n(this,void 0,void 0,(function(){var s;return r(this,(function(n){switch(n.label){case 0:return e.preventDefault(),(s=document.querySelector(\"#notification-item-\".concat(t.NotificationId))).classList.contains(\"unread\")?[4,fetch(this.notifications.dataset.readItemUri,{method:\"POST\",body:JSON.stringify({notificationId:t.NotificationId}),headers:{Accept:\"application/json\",\"Content-Type\":\"application/json\",RequestVerificationToken:this.notifications.dataset.afToken},mode:\"same-origin\",cache:\"no-cache\",credentials:\"same-origin\",redirect:\"follow\",referrerPolicy:\"no-referrer\"})]:[3,2];case 1:n.sent(),s.classList.add(\"read\"),s.classList.remove(\"unread\"),n.label=2;case 2:return i.ToastHelper.showSuccessToast(\"Make something happen here\"),[2]}}))}))},t}();t.TopNav=j}).call(this,s(2))},344:function(e,t,s){}});"],"mappings":"AAAA","sourceRoot":""}