var __spreadArray=this&&this.__spreadArray||function(t,n){for(var e=0,r=n.length,i=t.length;e<r;e++,i++)t[i]=n[e];return t};System.register(["./p-6c8594d0.system.js"],(function(t){"use strict";var n,e,r,i,o;return{setters:[function(t){n=t.a;e=t.f;r=t.r;i=t.h;o=t.H}],execute:function(){var s=function(t,n,e){var r=t.get(n);if(!r){t.set(n,[e])}else if(!r.includes(e)){r.push(e)}};var a=function(t,n){var e;return function(){var r=[];for(var i=0;i<arguments.length;i++){r[i]=arguments[i]}if(e){clearTimeout(e)}e=setTimeout((function(){e=0;t.apply(void 0,r)}),n)}};var u=function(t){return!("isConnected"in t)||t.isConnected};var f=a((function(t){for(var n=0,e=t.keys();n<e.length;n++){var r=e[n];t.set(r,t.get(r).filter(u))}}),2e3);var c=function(t){var r=t.on;var i=new Map;if(typeof n==="function"){r("dispose",(function(){i.clear()}));r("get",(function(t){var e=n();if(e){s(i,t,e)}}));r("set",(function(t){var n=i.get(t);if(n){i.set(t,n.filter(e))}f(i)}));r("reset",(function(){i.forEach((function(t){return t.forEach(e)}));f(i)}))}};var l=function(t,n){if(n===void 0){n=function(t,n){return t!==n}}var e=new Map(Object.entries(t!==null&&t!==void 0?t:{}));var r={dispose:[],get:[],set:[],reset:[]};var i=function(){e=new Map(Object.entries(t!==null&&t!==void 0?t:{}));r.reset.forEach((function(t){return t()}))};var o=function(){r.dispose.forEach((function(t){return t()}));i()};var s=function(t){r.get.forEach((function(n){return n(t)}));return e.get(t)};var a=function(t,i){var o=e.get(t);if(n(i,o,t)){e.set(t,i);r.set.forEach((function(n){return n(t,i,o)}))}};var u=typeof Proxy==="undefined"?{}:new Proxy(t,{get:function(t,n){return s(n)},ownKeys:function(t){return Array.from(e.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(t,n){return e.has(n)},set:function(t,n,e){a(n,e);return true}});var f=function(t,n){r[t].push(n);return function(){p(r[t],n)}};var c=function(n,e){var r=f("set",(function(t,r){if(t===n){e(r)}}));var i=f("reset",(function(){return e(t[n])}));return function(){r();i()}};var l=function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return t.forEach((function(t){if(t.set){f("set",t.set)}if(t.get){f("get",t.get)}if(t.reset){f("reset",t.reset)}}))};var v=function(t){var n=e.get(t);r.set.forEach((function(e){return e(t,n,n)}))};return{state:u,get:s,set:a,on:f,onChange:c,use:l,dispose:o,reset:i,forceUpdate:v}};var p=function(t,n){var e=t.indexOf(n);if(e>=0){t[e]=t[t.length-1];t.length--}};var v=function(t,n){var e=l(t,n);c(e);return e};var h={items:[]};var d=function(){function t(){var t=v(h).state;this._state=t}Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:false,configurable:true});t.prototype.closeCurrent=function(){var t=__spreadArray([],this._state.items);t.shift();this._state.items=t};t.prototype.clearNotifications=function(){this._state.items=[]};t.prototype.showErrorNotification=function(t,n){this.pushNotification(t,n!==null&&n!==void 0?n:0,"danger")};t.prototype.showInfoNotification=function(t,n){this.pushNotification(t,n!==null&&n!==void 0?n:0,"info")};t.prototype.showWarningNotification=function(t,n){this.pushNotification(t,n!==null&&n!==void 0?n:0,"warning")};t.prototype.showSuccessNotification=function(t,n){this.pushNotification(t,n!==null&&n!==void 0?n:0,"success")};t.prototype.pushNotification=function(t,n,e){var r=__spreadArray([],this._state.items);r.push({details:t,type:e,priority:n});this._state.items=r.sort((function(t,n){return n.priority-t.priority}))};return t}();var y=new d;var g=t("ap_ben_notifications_section",function(){function t(t){r(this,t)}t.prototype.disconnectedCallback=function(){y.clearNotifications()};t.prototype.render=function(){var t=y.state.items;if(t.length<=0)return i(o,null);var n=t[0];var e="alert alert-"+n.type;return i("div",{class:e,role:"alert"},i("div",{class:"d-flex"},i("p",{class:"mb-0 flex-grow-1"},i("strong",null,t[0].details.title)),i("button",{onClick:this.handleClose,type:"button",class:"close pb-1","aria-label":"Close"},i("span",{"aria-hidden":"true"},"×"))),i("p",{class:"mb-0 mt-1"},t[0].details.description))};t.prototype.handleClose=function(){y.closeCurrent()};return t}())}}}));