import{r as i,B as n,h as t}from"./p-03169580.js";const a="";let l=class{constructor(n){i(this,n)}onSearchInput(i){this.query=i.target.value}componentDidLoad(){if(!(n===null||n===void 0?void 0:n.isBrowser))return}render(){return[t("ion-content",{class:"ion-padding"},t("floodteam-title-bar",null,t("ion-router-link",{href:"/campaigns"},"Campaigns"),t("ion-buttons",{slot:"end"},t("ion-button",{fill:"solid",color:"primary",href:"/campaigns/new"},"Add"))),t("div",{class:"ion-padding"},t("fireenjin-search-bar",{ref:i=>this.filterBarEl=i,paginationEl:this.paginationEl,filters:null})),t("fireenjin-pagination",{ref:i=>this.paginationEl=i,gridEl:({result:i})=>t("floodteam-snapshot-card",{href:`/campaigns/${i.id}`,buttonText:"View Campaign"},t("ion-label",null,t("h2",null,i.name?i.name:""))),listEl:({result:i})=>t("ion-item",{href:`/campaigns/${i.id}`,detail:true},t("ion-label",null,t("h2",null,i.name?i.name:""," "))),endpoint:"listCampaigns",limit:24,resultsKey:"campaigns",query:this.query})),t("floodteam-navigation-footer",null)]}};l.style=a;export{l as app_campaign_list};
//# sourceMappingURL=p-7aa0b20c.entry.js.map