import{r as i,d as o,h as t,H as n}from"./p-03169580.js";const l="floodteam-item-site h3,floodteam-item-site ion-text{display:block;text-indent:10px}floodteam-item-site ion-label{margin-top:5px;margin-bottom:0px;text-transform:capitalize}floodteam-item-site ion-grid ion-chip{padding:0px 15px;--background:transparent;--color:var(--ion-text-color);opacity:0.5}floodteam-item-site ion-chip ion-icon{height:15px;width:15px;color:var(--ion-text-color)}floodteam-item-site ion-grid,floodteam-item-site ion-grid ion-row,floodteam-item-site ion-grid ion-row ion-col{padding:0;margin:0}";let e=class{constructor(t){i(this,t);this.floodteamOpenSiteEditModal=o(this,"floodteamOpenSiteEditModal",7);this.detail=true;this.disabled=false}openTab(i,o){i.stopPropagation();i.preventDefault();this.floodteamOpenSiteEditModal.emit({site:this.site,selectedTab:o})}render(){var i,o,l,e,s,d,a,r,h;return t(n,null,t("ion-item",{detail:this.detail,href:this.href,disabled:this.disabled},t("ion-label",null,t("h3",null,((i=this.site)===null||i===void 0?void 0:i.name)?this.site.name:"Common"),t("ion-grid",null,t("ion-row",null,t("ion-col",{size:"3"},t("ion-chip",{onClick:i=>this.openTab(i,"photos")},t("ion-icon",{name:"images"}),t("ion-label",null,((l=(o=this.site)===null||o===void 0?void 0:o.photos)===null||l===void 0?void 0:l.length)?this.site.photos.length:0))),t("ion-col",{size:"3"},t("ion-chip",{onClick:i=>this.openTab(i,"info")},t("ion-icon",{name:"construct"}),t("ion-label",null,((s=(e=this.site)===null||e===void 0?void 0:e.equipment)===null||s===void 0?void 0:s.length)?this.site.equipment.length:0))),t("ion-col",{size:"3"},t("ion-chip",{onClick:i=>this.openTab(i,"info")},t("ion-icon",{name:"reader"}),t("ion-label",null,((a=(d=this.site)===null||d===void 0?void 0:d.services)===null||a===void 0?void 0:a.length)?this.site.services.length:0))),t("ion-col",{size:"3"},t("ion-chip",{onClick:i=>this.openTab(i,"dots")},t("ion-icon",{name:"ellipse"}),t("ion-label",null,((h=(r=this.site)===null||r===void 0?void 0:r.dots)===null||h===void 0?void 0:h.length)?this.site.dots.length:0))))))))}};e.style=l;export{e as floodteam_item_site};
//# sourceMappingURL=p-9219b007.entry.js.map