import{r as e,B as n,h as t}from"./p-03169580.js";const o="";let l=class{constructor(n){e(this,n)}onSearchInput(e){this.query=e.target.value}componentDidLoad(){if(!(n===null||n===void 0?void 0:n.isBrowser))return}render(){return[t("ion-content",{class:"ion-padding"},t("floodteam-title-bar",null,t("ion-router-link",{href:"/phonenumbers"},"Phone Numbers"),t("ion-buttons",{slot:"end"},t("ion-button",{fill:"solid",color:"primary",href:"/phonenumbers/new"},"Add"))),t("div",{class:"ion-padding"},t("fireenjin-search-bar",{ref:e=>this.filterBarEl=e,paginationEl:this.paginationEl,filters:null})),t("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"}]}}),t("fireenjin-pagination",{ref:e=>this.paginationEl=e,gridEl:({result:e})=>t("floodteam-snapshot-card",{href:`/phonenumber/${e.id}`,buttonText:"View PhoneNumber"},t("ion-label",null,t("h2",null,e.id?e.id:""))),listEl:({result:e})=>t("ion-item",{href:`/phonenumber/${e.id}`,detail:true},t("ion-label",null,t("h2",null,e.id?e.id:""))),endpoint:"listPhoneNumbers",limit:24,resultsKey:"phoneNumbers",query:this.query})),t("floodteam-navigation-footer",null)]}};l.style=o;export{l as app_phone_number_list};
//# sourceMappingURL=p-9d6f08bc.entry.js.map