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