System.register([],function(t,i){"use strict";return{execute:function(){t("N",class{drawer;icon=null;constructor(t){this.drawer=t,this.init()}get $(){return window.jQuery}init(){this.icon=this.$(".adt-notification-icon"),this.icon&&this.icon.length&&this.bindEvents()}bindEvents(){this.icon?.on("click",t=>{t.preventDefault(),this.drawer.toggle()})}updateBadgeCount(t){const i=this.icon?.find(".adt-notification-icon__badge");t>0?i.length?i.text(t).show():this.icon?.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>`):i?.remove()}})}}});
