import{r as i,B as o,h as n}from"./p-03169580.js";import{s as l}from"./p-29293869.js";import"./p-59c95c5f.js";import"./p-1930048e.js";const e="";let t=class{constructor(o){i(this,o)}componentDidLoad(){if(!(o===null||o===void 0?void 0:o.isBrowser))return}render(){var i,o,e,t,r,d;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:((e=l===null||l===void 0?void 0:l.locations)===null||e===void 0?void 0:e.length)?l.locations.map((i=>({label:i.name,value:i.id}))):[],value:((t=l===null||l===void 0?void 0:l.claims)===null||t===void 0?void 0:t.tester)&&((d=(r=l===null||l===void 0?void 0:l.profile)===null||r===void 0?void 0:r.location)===null||d===void 0?void 0:d.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"}))]}};t.style=e;export{t as app_inventory_list};
//# sourceMappingURL=p-a83ecc62.entry.js.map