import{B as e}from"./p-7062880e.js";const t=new class{async postTrackEventAsync(t){return e.instance.url("benefits/track-event").post(t).res()}},n=new class{async trackAppLoadedAsync(){return this.trackEventAsync("appLoaded")}async trackPageViewedAsync(e){return this.trackEventAsync({pageViewed:e})}async trackBenefitLinkClickedAsync({benefitId:e,benefit:t}){return this.trackEventAsync({benefitSelected:{benefitId:e,attachment:"link",category:t.category,subtitle:t.subtitle,title:t.title}})}async trackBenefitAttachmentClickedAsync({benefitId:e,benefit:t}){return this.trackEventAsync({benefitSelected:{benefitId:e,attachment:"document",category:t.category,subtitle:t.subtitle,title:t.title}})}async trackEventAsync(e){try{await t.postTrackEventAsync({event:e})}catch(e){return}}};export{n as b}