var d=Object.defineProperty;var s=(n,t,i)=>t in n?d(n,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[t]=i;var e=(n,t,i)=>s(n,typeof t!="symbol"?t+"":t,i);function r(){import.meta.url,import("_").catch(()=>1),(async function*(){})().next()}class w{constructor(t){e(this,"drawer");e(this,"icon",null);this.drawer=t,this.init()}get $(){return window.jQuery}init(){this.icon=this.$(".adt-notification-icon"),this.icon&&this.icon.length&&this.bindEvents()}bindEvents(){var t;(t=this.icon)==null||t.on("click",i=>{i.preventDefault(),this.drawer.toggle()})}updateBadgeCount(t){var a,o;const i=(a=this.icon)==null?void 0:a.find(".adt-notification-icon__badge");t>0?i.length?i.text(t).show():(o=this.icon)==null||o.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">'.concat(t,"</span>")):i==null||i.remove()}}export{w as N,r as __vite_legacy_guard};
