import{r as i,h as e}from"./p-03169580.js";import{f as n}from"./p-5717491f.js";const o="fireenjin-log-item{display:block}fireenjin-log-item ion-label{margin-top:0}fireenjin-log-item fireenjin-json-viewer{max-height:60px;display:block;overflow:hidden;transition:all ease 0.3s}fireenjin-log-item:hover fireenjin-json-viewer{cursor:pointer;max-height:none}fireenjin-log-item h3{color:var(--ion-color-medium);text-indent:10px}";let t=class{constructor(e){i(this,e)}formatDate(i){return n(new Date(Date.parse(i)),"MM/dd/yyyy @ hh:mm aaa")}render(){return e("ion-item",{lines:this.lines},e("ion-label",{class:"ion-text-wrap"},e("ion-grid",null,e("ion-row",null,e("ion-col",null,e("h2",null,this.type," - ",this.name," ",this.resolveTime?`(${this.resolveTime}ms)`:"")),e("ion-col",{style:{display:"flex",justifyContent:"flex-end"}},e("small",{style:{color:"var(--ion-color-medium)"}},this.formatDate(this.createdAt)))),e("ion-row",null,e("ion-col",null,e("h3",null,"Input"),e("fireenjin-json-viewer",{innerHTML:typeof this.input==="object"?JSON.stringify(this.input):this.input})),e("ion-col",null,e("h3",null,"Output"),e("fireenjin-json-viewer",{innerHTML:typeof this.output==="object"?JSON.stringify(this.output):this.output}))))))}};t.style=o;export{t as fireenjin_log_item};
//# sourceMappingURL=p-37eb2134.entry.js.map