{{#let (activity-feed-fetcher filter=(members-event-filter post=@postId excludedEvents=this.getEventTypes) pageSize=this.pageSize) as |eventsFetcher|}} {{#if eventsFetcher.isError}}

There was an error loading events

{{#if eventsFetcher.errorMessage}} {{eventsFetcher.errorMessage}} {{/if}}
{{/if}} {{#if (and (not eventsFetcher.data) (not eventsFetcher.isLoading))}}
{{#if (eq this.eventType "sent")}} {{svg-jar "empty-sent"}}

No members have received your email yet

Once someone receives your email, you'll be able to see the member activity here.

{{else if (eq this.eventType "opened")}} {{svg-jar "empty-opened"}}

No members have opened your email yet

Once someone opens your email, you'll be able to see the member activity here.

{{else if (eq this.eventType "clicked")}} {{svg-jar "empty-clicked"}}

No members have clicked in your email yet

Once someone clicks in your email, you'll be able to see the member activity here.

{{else if (eq this.eventType "feedback")}} {{svg-jar "empty-feedback"}}

No members have responded with feedback yet

Once someone has responded with feedback, you'll be able to see the member activity here.

{{else if (eq this.eventType "conversion")}} {{svg-jar "empty-conversion"}}

No members have signed up or upgraded yet

Once someone has signed up or upgraded, you'll be able to see the member activity here.

{{/if}}
{{else}}
{{#each eventsFetcher.data as |event|}} {{#let (parse-member-event event) as |parsedEvent|}}
{{parsedEvent.subject}}
{{svg-jar parsedEvent.icon }} {{capitalize-first-letter parsedEvent.action}} {{#if parsedEvent.info}} {{parsedEvent.info}} {{/if}} {{#if (eq this.eventType "clicked")}} {{#if (and parsedEvent.description parsedEvent.url) }} {{parsedEvent.description}} {{/if}} {{/if}}
{{#if (eq this.eventType "conversion")}}
{{#if parsedEvent.source}} {{#if parsedEvent.source.url}} {{parsedEvent.source.name}} {{else}} {{parsedEvent.source.name}} {{/if}} {{else}} {{/if}}
{{/if}}
{{moment-from-now parsedEvent.timestamp}}
{{/let}} {{/each}} {{#if (compute (fn this.areStubsNeeded eventsFetcher))}} {{#let (compute (fn this.getAmountOfStubs eventsFetcher)) as |stubs|}} {{#each stubs}}
{{/each}} {{/let}} {{/if}}
{{#if @linkQuery}} {{svg-jar "filter"}} See members {{else}}
{{/if}}
{{#if (compute (fn this.isPaginationNotNeeded eventsFetcher))}} Showing {{eventsFetcher.totalEvents}} in total {{else}} Showing {{eventsFetcher.previousEvents}}-{{eventsFetcher.shownEvents}} of {{eventsFetcher.totalEvents}}
{{/if}}
{{#if (eq @eventType 'feedback')}}
{{/if}} {{/if}} {{/let}}