import{r as i,h as e}from"./p-846bd001.js";import{f as n}from"./p-65879f9e.js";const o=class{constructor(e){i(this,e),this.type=void 0,this.name=void 0,this.resolveTime=void 0,this.input=void 0,this.output=void 0,this.createdAt=void 0,this.lines=void 0}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:"object"==typeof this.input?JSON.stringify(this.input):this.input})),e("ion-col",null,e("h3",null,"Output"),e("fireenjin-json-viewer",{innerHTML:"object"==typeof this.output?JSON.stringify(this.output):this.output}))))))}};o.style="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}";export{o as fireenjin_log_item}