import{r as t,B as e,h as n}from"./p-846bd001.js";const o=class{constructor(e){t(this,e),this.paginationEl=void 0,this.query=void 0}onSearchInput(t){this.query=t.target.value}componentDidLoad(){}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:!0,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:!0},n("ion-label",null,n("h2",null,t.id?t.id:""))),endpoint:"listMoistureContents",limit:20,resultsKey:"moistureContents",query:this.query,name:"moistureContents"})),n("floodteam-navigation-footer",null)]}};o.style="";export{o as app_moisture_content_list}