import{a as Y}from"./chunk-TSJBRZ4K.js";import{a as O}from"./chunk-CQJD2QP4.js";import{a as B}from"./chunk-V5O2TXLS.js";import{b as $}from"./chunk-KVG6CKMN.js";import{a as P}from"./chunk-Q6YQJFNJ.js";import"./chunk-W45AUQWS.js";import{b as j}from"./chunk-SPNVV2KO.js";import"./chunk-BGV4AOSB.js";import"./chunk-2SZ4MB2K.js";import"./chunk-N7PC5CHF.js";import"./chunk-ZTKV4AIV.js";import{c as V}from"./chunk-5JDCLYZA.js";import{j as k}from"./chunk-YJYOGSOO.js";import"./chunk-73IMXZSJ.js";import{oa as M}from"./chunk-KVTHJWZA.js";import{Ab as w,Bc as E,Ic as f,Jc as T,Kc as I,Ob as h,Sb as n,Tb as r,Ub as p,Yb as D,aa as g,hb as o,ic as L,jc as y,na as S,qa as v,u,va as C,vc as a,wa as _,wc as m,xc as c}from"./chunk-FWZCAEAJ.js";import{a as x,b}from"./chunk-CWTPBX7D.js";function F(i,e){if(i&1){let A=D();n(0,"div",1)(1,"h1",2),a(2),r(),n(3,"scrollable-toolbar"),p(4,"back-button"),n(5,"div")(6,"button",3),L("click",function(){let s=C(A),l=y();return _(l.onDelete(s.id))}),p(7,"bi",4),a(8),f(9,"tr"),r()()(),n(10,"div",5)(11,"span",6),a(12),f(13,"date"),r(),n(14,"span",7),a(15),r(),n(16,"span",7),a(17),r()(),p(18,"hr"),n(19,"div",8)(20,"pre",9),a(21),r()()()}i&2&&(o(2),c('Dead Letter "',e.id,'"'),o(6),c(" ",T(9,6,"DELETE")," "),o(4),m(I(13,8,e.createdAt,"dd.MM.YYYY HH:mm:ss:SSS")),o(3),m(e.queue),o(2),m(e.exchange),o(4),m(e.body))}function H(i,e){i&1&&p(0,"app-spinner-row")}var te=(()=>{let e=class e{constructor(){this.deadLettersService=S(Y),this.idParam$=O(),this.deadLetter=V(this.idParam$.pipe(g(t=>this.deadLettersService.getSingle$(t)),u(t=>b(x({},t),{body:JSON.stringify(JSON.parse(t.body),null,2)}))))}onDelete(t){this.deadLettersService.delete$(t).subscribe()}};e.\u0275fac=function(d){return new(d||e)},e.\u0275cmp=v({type:e,selectors:[["app-dead-letter-view"]],standalone:!0,features:[E],decls:2,vars:1,consts:[["class","d-flex flex-column gap-3"],[1,"d-flex","flex-column","gap-3"],[1,"my-0"],[1,"btn","btn-sm","btn-danger",3,"click"],["name","trash"],[1,"d-flex","flex-wrap","gap-2","mb-4"],[1,"badge","text-bg-primary"],[1,"badge","text-bg-secondary"],[1,"json-box"],["id","json-data"]],template:function(d,s){if(d&1&&w(0,F,22,11,"div",0)(1,H,1,0),d&2){let l;h(0,(l=s.deadLetter())?0:1,l)}},dependencies:[k,j,P,$,B,M],styles:[".json-box[_ngcontent-%COMP%]{padding:15px;background-color:#000;border-radius:5px}#json-data[_ngcontent-%COMP%]{margin-bottom:0}"]});let i=e;return i})();export{te as DeadLetterViewComponent};
