import{r as i,e as t,B as n,h as a}from"./p-a89095f5.js";import{s as o}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 s=class{constructor(n){i(this,n),this.fireenjinTrigger=t(this,"fireenjinTrigger",7),this.fireenjinSubmit=t(this,"fireenjinSubmit",7),this.eventIconMap={alert:"notifications",notion:"./assets/svg/notion.svg"},this.query=void 0}onSearchInput(i){this.query=i.target.value}componentDidLoad(){}render(){var i;return[a("ion-content",{class:"ion-padding"},a("div",{class:"ion-padding"},a("fireenjin-search-bar",{ref:i=>this.filterBarEl=i,paginationEl:this.paginationEl}),a("fireenjin-pagination",{ref:i=>this.paginationEl=i,name:"materials",resultsKey:"materials",disableVirtualScroll:!0,removeDuplicates:!0,listEl:({result:i})=>a("ion-item",{href:`/materials/${i.id}`,detail:!0,lines:"full"},a("ion-grid",null,a("ion-row",{class:"ion-align-items-center ion-justify-content-between"},a("ion-col",null,a("ion-label",null,a("h2",null,i.name)))))),display:"list",endpoint:"listMaterials",limit:20,query:this.query}))),a("floodteam-navigation-footer",null,a("floodteam-title-bar",{back:"/dashboard"},a("ion-breadcrumbs",null,a("ion-breadcrumb",{onClick:()=>this.fireenjinTrigger.emit({name:"pin",payload:{icon:"flash",href:"/materials",name:"Materials"}})},a("ion-icon",{color:(null===(i=((null==o?void 0:o.pins)||[]).map((i=>null==i?void 0:i.href)))||void 0===i?void 0:i.includes("/materials"))?"primary":null,slot:"start",name:"pin"}),"Materials")),a("ion-buttons",{slot:"end"},a("ion-button",{fill:"solid",color:"primary",href:"/materials/new"},"Add"))))]}};s.style="";export{s as app_material_list}