import{r as t,B as e,h as n}from"./p-03169580.js";const o="";let i=class{constructor(e){t(this,e)}onSearchInput(t){this.query=t.target.value}componentDidLoad(){if(!(e===null||e===void 0?void 0:e.isBrowser))return}render(){return[n("ion-content",{class:"ion-padding"},n("floodteam-title-bar",null,n("ion-router-link",{href:"/moisturecontents"},"MC Readings"),n("ion-buttons",{slot:"end"},n("ion-button",{fill:"solid",color:"primary",href:"/moisturecontents/new"},"Add"))),n("div",{class:"ion-padding"},n("fireenjin-search-bar",{ref:t=>this.filterBarEl=t,paginationEl:this.paginationEl,filters:null})),n("fireenjin-filter-bar",{paginationEl:this.paginationEl,modeToggle:true,filter:{label:"Filter By",controls:[{name:"locationId",label:"Location",endpoint:"listLocations",icon:"business",resultsKey:"locations"}]},sort:{header:"Sort By",value:"createdAt:desc",options:[{label:"Created At",value:"createdAt:desc"},{label:"Name",value:"name"}]}}),n("fireenjin-pagination",{ref:t=>this.paginationEl=t,gridEl:({result:t})=>n("floodteam-snapshot-card",{href:`/moisturecontent/${t.id}`,buttonText:"View MoistureContent"},n("ion-label",null,n("h2",null,t.id?t.id:""))),listEl:({result:t})=>n("ion-item",{href:`/moisturecontent/${t.id}`,detail:true},n("ion-label",null,n("h2",null,t.id?t.id:""))),endpoint:"listMoistureContents",limit:20,resultsKey:"moistureContents",query:this.query})),n("floodteam-navigation-footer",null)]}};i.style=o;export{i as app_moisture_content_list};
//# sourceMappingURL=p-fa44742c.entry.js.map