!function(){function t(t,i,n){return(i=function(t){var i=function(t,i){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,i||"default");if("object"!=typeof e)return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==typeof i?i:i+""}(i))in t?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n,t}System.register([],function(i,n){"use strict";return{execute:function(){i("N",class{constructor(i){t(this,"drawer",void 0),t(this,"icon",null),this.drawer=i,this.init()}get $(){return window.jQuery}init(){this.icon=this.$(".adt-notification-icon"),this.icon&&this.icon.length&&this.bindEvents()}bindEvents(){var t;null===(t=this.icon)||void 0===t||t.on("click",t=>{t.preventDefault(),this.drawer.toggle()})}updateBadgeCount(t){var i;const n=null===(i=this.icon)||void 0===i?void 0:i.find(".adt-notification-icon__badge");var e;t>0?n.length?n.text(t).show():null===(e=this.icon)||void 0===e||e.append(`<span class="adt-notification-icon__badge adt-tw-absolute adt-tw-top-0 adt-tw-right-0 adt-tw-flex adt-tw-items-center adt-tw-justify-center adt-tw-min-w-[18px] adt-tw-h-[18px] adt-tw-px-1 adt-tw-bg-red-600 adt-tw-text-white adt-tw-rounded-full adt-tw-text-[10px] adt-tw-font-semibold adt-tw-leading-none">${t}</span>`):null==n||n.remove()}})}}})}();
