import{r as i,B as l,h as n}from"./p-a89095f5.js";import{s as o}from"./p-188ef7e9.js";import"./p-d7f93824.js";import"./p-2a0c7fc9.js";import"./p-86bd3473.js";import"./p-65879f9e.js";import"./p-60cf0cc2.js";const e=class{constructor(l){i(this,l),this.query=void 0}onSearchInput(i){this.query=i.target.value}componentDidLoad(){}render(){var i,l,e,t,s,a;return[n("ion-content",{class:"ion-padding"},n("div",{class:"ion-padding"},n("fireenjin-search-bar",{ref:i=>this.filterBarEl=i,paginationEl:this.paginationEl,filters:(null===(i=null==o?void 0:o.claims)||void 0===i?void 0:i.tester)||(null===(l=null==o?void 0:o.claims)||void 0===l?void 0:l.admin)?[{name:"tags",label:"Tags",icon:"pricetags",multiple:!0,options:[{label:"Imported",value:"imported"}]},{name:"locationId",label:"Location",icon:"business",options:(null===(e=null==o?void 0:o.locations)||void 0===e?void 0:e.length)?o.locations.map((i=>({label:i.name,value:i.id}))):[],value:(null===(t=null==o?void 0:o.claims)||void 0===t?void 0:t.tester)&&(null===(a=null===(s=null==o?void 0:o.profile)||void 0===s?void 0:s.location)||void 0===a?void 0:a.id)?o.profile.location.id:null}]:null}),n("fireenjin-pagination",{ref:i=>this.paginationEl=i,name:"equipment",resultsKey:"equipment",disableVirtualScroll:!0,removeDuplicates:!0,listEl:({result:i})=>n("ion-item",{href:`/equipment/${i.id}`,detail:!0,lines:"full"},n("ion-grid",null,n("ion-row",{class:"ion-align-items-center ion-justify-content-between"},n("ion-col",null,n("ion-label",null,n("h2",null,i.name||"No name"," ")))))),endpoint:"listEquipment",limit:20,display:"list",query:this.query}))),n("floodteam-navigation-footer",null,n("floodteam-title-bar",{back:"/dashboard"},n("ion-breadcrumbs",null,n("ion-breadcrumb",{href:"/equipment"},n("ion-icon",{class:"ft-icon-style",slot:"start",name:"hammer"}),"Equipment")),n("ion-buttons",{slot:"end"},n("ion-button",{fill:"solid",color:"primary",href:"/equipment/new"},"Add"))))]}};e.style="";export{e as app_equipment_list}