import{a as ce}from"./chunk-B22Z5HGN.js";import{a as pe}from"./chunk-DUS4LJU5.js";import{a as me}from"./chunk-NZT7EMSF.js";import{A as te,B as ie,D as ne,E as oe,F as re,k as z,l as J,m as K,q as Q,r as U,t as W,u as X,w as Z,y as ee}from"./chunk-R3KWJKU7.js";import"./chunk-CC3PIS5F.js";import{b as q}from"./chunk-SPNVV2KO.js";import{p as le}from"./chunk-BGV4AOSB.js";import"./chunk-2SZ4MB2K.js";import{m as V}from"./chunk-N7PC5CHF.js";import"./chunk-ZTKV4AIV.js";import{cb as Y,db as G}from"./chunk-JIDGXFMJ.js";import{c as F,g as L,h as $,l as j,n as P,z as O}from"./chunk-MTR2L2TG.js";import"./chunk-5JDCLYZA.js";import{j as ae}from"./chunk-YJYOGSOO.js";import"./chunk-73IMXZSJ.js";import{ia as M,oa as k}from"./chunk-KVTHJWZA.js";import{Ab as s,Bc as R,Cc as A,Hb as u,Ic as l,Jc as c,Kc as B,Lc as H,Ob as I,Sb as o,Tb as n,Ub as _,Vb as g,Wb as C,Yb as v,hb as i,ib as E,ic as N,jc as D,mc as h,qa as y,rb as w,va as x,vc as a,wa as S,wc as p}from"./chunk-FWZCAEAJ.js";import"./chunk-CWTPBX7D.js";function de(e,t){if(e&1){let r=v();o(0,"button",16),N("click",function(){x(r);let d=D();return S(d.filter.reset())}),l(1,"tr"),_(2,"bi",17),n()}e&2&&h("ngbTooltip",c(1,1,"CLEAR"))}function se(e,t){e&1&&(o(0,"th",18),a(1),l(2,"tr"),n()),e&2&&(i(),p(c(2,1,"To")))}function fe(e,t){if(e&1&&(o(0,"td",19),a(1),n()),e&2){let r=t.$implicit;i(),p(r.to)}}function ue(e,t){e&1&&(o(0,"th",18),a(1),l(2,"tr"),n()),e&2&&(i(),p(c(2,1,"Subject")))}function be(e,t){if(e&1&&(o(0,"td",19),a(1),n()),e&2){let r=t.$implicit;i(),p(r.subject)}}function _e(e,t){e&1&&(o(0,"th",18),a(1),l(2,"tr"),n()),e&2&&(i(),p(c(2,1,"Body")))}function ge(e,t){if(e&1&&(o(0,"td",19),a(1),l(2,"s_cut"),n()),e&2){let r=t.$implicit;i(),p(H(2,1,r.body,60,"..."))}}function Ce(e,t){e&1&&(o(0,"th",18),a(1),l(2,"tr"),n()),e&2&&(i(),p(c(2,1,"HOME_ORDER_CREATED_AT")))}function Te(e,t){if(e&1&&(o(0,"td",19),a(1),l(2,"date"),n()),e&2){let r=t.$implicit;i(),p(B(2,1,r.createdAt,"dd.MM.YYYY HH:mm:ss:SSS"))}}function xe(e,t){e&1&&_(0,"tr",20)}function Se(e,t){if(e&1){let r=v();o(0,"tr",21),N("click",function(){let m=x(r).$implicit,b=D();return S(b.deadLettersService.single.set(m))}),n()}}var ve=()=>[],Le=(()=>{let t=class t extends pe{constructor(f){super(f),this.deadLettersService=f,this.columnsToDisplay=["to","subject","body","createdAt"]}};t.\u0275fac=function(d){return new(d||t)(E(ce))},t.\u0275cmp=y({type:t,selectors:[["app-all-dead-letters"]],standalone:!0,features:[w,R],decls:27,vars:16,consts:[[1,"d-flex","flex-column","gap-3"],[1,"my-0"],[1,"input-group"],["type","text",1,"form-control","ml-2",3,"formControl","placeholder"],["class","btn btn-outline-secondary","type","button","placement","bottom",3,"ngbTooltip"],[1,"table-responsive"],["ngb-table","","ngb-sort","","ngbSortActive","id","ngbSortDirection","desc",3,"hover","dataSource"],["ngbColumnDef","to"],["ngb-header-cell","","ngb-sort-header","",4,"ngbHeaderCellDef"],["ngb-cell","",4,"ngbCellDef"],["ngbColumnDef","subject"],["ngbColumnDef","body"],["ngbColumnDef","createdAt"],["ngb-header-row","",4,"ngbHeaderRowDef"],["ngb-row","","routerLink","../view",3,"click",4,"ngbRowDef","ngbRowDefColumns"],[3,"hidden"],["type","button","placement","bottom",1,"btn","btn-outline-secondary",3,"ngbTooltip","click"],["name","x-circle-fill"],["ngb-header-cell","","ngb-sort-header",""],["ngb-cell",""],["ngb-header-row",""],["ngb-row","","routerLink","../view",3,"click"]],template:function(d,m){if(d&1&&(o(0,"div",0)(1,"h1",1),a(2),l(3,"tr"),n(),o(4,"form")(5,"div",2),_(6,"input",3),l(7,"tr"),s(8,de,3,3,"button",4),n()(),o(9,"div",5)(10,"table",6),l(11,"async"),g(12,7),s(13,se,3,3,"th",8)(14,fe,2,1,"td",9),C(),g(15,10),s(16,ue,3,3,"th",8)(17,be,2,1,"td",9),C(),g(18,11),s(19,_e,3,3,"th",8)(20,ge,3,5,"td",9),C(),g(21,12),s(22,Ce,3,3,"th",8)(23,Te,3,4,"td",9),C(),s(24,xe,1,0,"tr",13)(25,Se,1,0,"tr",14),n()(),_(26,"app-progress-bar",15),n()),d&2){let b,T;i(2),p(c(3,9,"NAV_TMP_NOTIFICATIONS")),i(4),h("placeholder",c(7,11,"SEARCH")),u("formControl",m.filter),i(2),I(8,((b=m.filter.value==null?null:m.filter.value.length)!==null&&b!==void 0?b:0)>0?8:-1),i(2),u("hover",!0)("dataSource",(T=c(11,13,m.dataSource$))!==null&&T!==void 0?T:A(15,ve)),i(14),u("ngbHeaderRowDef",m.columnsToDisplay),i(),u("ngbRowDefColumns",m.columnsToDisplay),i(),u("hidden",!m.isLoading())}},dependencies:[O,j,F,L,$,P,M,V,k,G,Y,re,oe,U,ee,W,Q,te,X,Z,ie,ne,K,z,J,ae,q,le,me],encapsulation:2,changeDetection:0});let e=t;return e})();export{Le as TmpNotificationsComponent};
