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