import{r as i,B as n,h as o}from"./p-a89095f5.js";import{s as l}from"./p-9e8ba117.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(n){i(this,n),this.query=void 0}onSearchInput(i){this.query=i.target.value}componentDidLoad(){}render(){var i,n,e,t,s,a;return[o("ion-content",{class:"ion-padding"},o("div",{class:"ion-padding"},o("fireenjin-search-bar",{ref:i=>this.filterBarEl=i,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===(a=null===(s=null==l?void 0:l.profile)||void 0===s?void 0:s.location)||void 0===a?void 0:a.id)?l.profile.location.id:null}]:null}),o("fireenjin-pagination",{ref:i=>this.paginationEl=i,name:"inventories",resultsKey:"inventories",disableVirtualScroll:!0,removeDuplicates:!0,listEl:({result:i})=>o("ion-item",{href:`/inventory/${i.id}`,detail:!0,lines:"full"},o("ion-grid",null,o("ion-row",{class:"ion-align-items-center ion-justify-content-between"},o("ion-col",null,o("ion-label",null,o("h2",null,i.name||"No name"," ")))))),endpoint:"listInventories",limit:20,display:"list",query:this.query}))),o("floodteam-navigation-footer",null,o("floodteam-title-bar",{back:"/dashboard"},o("ion-breadcrumbs",null,o("ion-breadcrumb",{href:"/inventory"},o("ion-icon",{class:"ft-icon-style",slot:"start",name:"barcode-outline"}),"Inventory")),o("ion-buttons",{slot:"end"},o("ion-button",{fill:"solid",color:"primary",href:"/inventory/new"},"Add"))))]}};e.style="";export{e as app_inventory_list}