import{r as n,B as i,h as a}from"./p-f8363b1b.js";const t=class{constructor(i){n(this,i)}onSearchInput(n){this.query=n.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:n=>this.filterBarEl=n,paginationEl:this.paginationEl,filters:null})),a("fireenjin-pagination",{ref:n=>this.paginationEl=n,gridEl:({result:n})=>a("floodteam-snapshot-card",{href:`/campaigns/${n.id}`,buttonText:"View Campaign"},a("ion-label",null,a("h2",null,n.name?n.name:""))),listEl:({result:n})=>a("ion-item",{href:`/campaigns/${n.id}`,detail:!0},a("ion-label",null,a("h2",null,n.name?n.name:""," "))),endpoint:"listCampaigns",resultsKey:"campaigns",query:this.query})),a("floodteam-navigation-footer",null)]}};t.style="";export{t as app_campaign_list}