import{r as i,B as n,h as o}from"./p-f8363b1b.js";import{s as l}from"./p-02e053de.js";import"./p-a93a14c5.js";import"./p-ccb7d102.js";import"./p-86bd3473.js";import"./p-5717491f.js";import"./p-60cf0cc2.js";const e=class{constructor(n){i(this,n)}componentDidLoad(){}render(){var i,n,e,t,r,s;return[o("ion-content",{class:"ion-padding"},o("floodteam-title-bar",null,o("ion-router-link",{href:"/inventory"},"Inventory"),o("ion-buttons",{slot:"end"},o("ion-button",{fill:"solid",color:"primary",href:"/inventory/new"},"Add"))),o("fireenjin-search-bar",{paginationEl:this.paginationEl,filters:(null===(i=null==l?void 0:l.claims)||void 0===i?void 0:i.tester)||(null===(n=null==l?void 0:l.claims)||void 0===n?void 0:n.admin)?[{name:"tags",label:"Tags",icon:"pricetags",multiple:!0,options:[{label:"Imported",value:"imported"}]},{name:"locationId",label:"Location",icon:"business",options:(null===(e=null==l?void 0:l.locations)||void 0===e?void 0:e.length)?l.locations.map((i=>({label:i.name,value:i.id}))):[],value:(null===(t=null==l?void 0:l.claims)||void 0===t?void 0:t.tester)&&(null===(s=null===(r=null==l?void 0:l.profile)||void 0===r?void 0:r.location)||void 0===s?void 0:s.id)?l.profile.location.id:null}]:null}),o("fireenjin-pagination",{ref:i=>this.paginationEl=i,listEl:({result:i})=>o("ion-item",{href:`/inventory/${i.id}`,detail:!0},o("ion-label",null,o("h2",null,i.name?i.name:""," "))),endpoint:"listInventories",limit:20,resultsKey:"inventories",name:"inventories"}))]}};e.style="";export{e as app_inventory_list}