import{r as i,B as o,h as n}from"./p-03169580.js";import{s as l}from"./p-ac5f2e11.js";import"./p-59c95c5f.js";import"./p-c9699503.js";import"./p-bd8b186e.js";import"./p-795b799a.js";import"./p-3a8e6af1.js";const t="";let e=class{constructor(o){i(this,o)}componentDidLoad(){if(!(o===null||o===void 0?void 0:o.isBrowser))return}render(){var i,o,t,e,r,s;return[n("ion-content",{class:"ion-padding"},n("floodteam-title-bar",null,n("ion-router-link",{href:"/inventory"},"Inventory"),n("ion-buttons",{slot:"end"},n("ion-button",{fill:"solid",color:"primary",href:"/inventory/new"},"Add"))),n("fireenjin-search-bar",{paginationEl:this.paginationEl,filters:((i=l===null||l===void 0?void 0:l.claims)===null||i===void 0?void 0:i.tester)||((o=l===null||l===void 0?void 0:l.claims)===null||o===void 0?void 0:o.admin)?[{name:"tags",label:"Tags",icon:"pricetags",multiple:true,options:[{label:"Imported",value:"imported"}]},{name:"locationId",label:"Location",icon:"business",options:((t=l===null||l===void 0?void 0:l.locations)===null||t===void 0?void 0:t.length)?l.locations.map((i=>({label:i.name,value:i.id}))):[],value:((e=l===null||l===void 0?void 0:l.claims)===null||e===void 0?void 0:e.tester)&&((s=(r=l===null||l===void 0?void 0:l.profile)===null||r===void 0?void 0:r.location)===null||s===void 0?void 0:s.id)?l.profile.location.id:null}]:null}),n("fireenjin-pagination",{ref:i=>this.paginationEl=i,listEl:({result:i})=>n("ion-item",{href:`/inventory/${i.id}`,detail:true},n("ion-label",null,n("h2",null,i.name?i.name:""," "))),endpoint:"listInventories",limit:24,resultsKey:"inventories"}))]}};e.style=t;export{e as app_inventory_list};
//# sourceMappingURL=p-9e177c63.entry.js.map