PageSourceSearch

https://www.dealuge.com/chunk-5EM77YGW.js

js dealuge.com collected 2026-10-07 04:25:33 UTC 5,915 bytes, 1 lines download raw bytes

1import{a as A}from"./chunk-YPQQLNCV.js";import{a as F}from"./chunk-3J6SAL5C.js";import"./chunk-6BIA5B3H.js";import{a as I,b as k}from"./chunk-INNX2QMV.js";import"./chunk-ONHQZQPF.js";import{d as S,k as N}from"./chunk-YSP35I5P.js";import{h as L,i as T}from"./chunk-HLRFQHDM.js";import"./chunk-ION3RBN6.js";import"./chunk-UNIIRSLK.js";import"./chunk-JQWWV4KW.js";import{b as D,e as j,p as B}from"./chunk-ZCE2KRI6.js";import"./chunk-3ZAI3XHG.js";import"./chunk-H45DSVML.js";import{_ as O}from"./chunk-NV2DIQX2.js";import"./chunk-WTEDO376.js";import{na as E}from"./chunk-MRPJO2VL.js";import{Cc as a,Dc as s,Ec as f,Gc as y,K as M,Pb as d,Pc as P,Rb as c,Ub as v,Uc as C,Vb as w,Wb as g,Wc as _,Xb as n,Yb as i,Zb as p,cb as m,ea as x,lc as h,nc as u,sb as b,wa as r}from"./chunk-W6NCBO4V.js";import"./chunk-4CLCTAJ7.js";var z=o=>["/newsletter/campaigns",o],K=(o,t)=>t.id;function R(o,t){o&1&&(n(0,"p",7),a(1,"Aucune campagne newsletter pour le moment."),i())}function U(o,t){if(o&1&&(a(0),C(1,"date")),o&2){let e=u().$implicit;f(" ",_(1,1,e.queuedAt,"short")," ")}}function V(o,t){o&1&&a(0," \u2014 ")}function G(o,t){if(o&1&&(a(0),C(1,"date")),o&2){let e=u().$implicit;f(" ",_(1,1,e.sentAt,"short")," ")}}function H(o,t){o&1&&a(0," \u2014 ")}function J(o,t){if(o&1&&(n(0,"tr")(1,"td"),a(2),i(),n(3,"td"),a(4),i(),n(5,"td"),a(6),i(),n(7,"td"),a(8),i(),n(9,"td"),a(10),C(11,"date"),i(),n(12,"td"),d(13,U,2,4)(14,V,1,0),i(),n(15,"td"),d(16,G,2,4)(17,H,1,0),i(),n(18,"td",11)(19,"a",12),a(20," Voir "),i()()()),o&2){let e=t.$implicit;m(2),s(e.id),m(2),s(e.name),m(2),s(e.subject),m(2),s(e.template),m(2),s(_(11,8,e.createdAt,"short")),m(3),c(e.queuedAt?13:14),m(3),c(e.sentAt?16:17),m(3),g("routerLink",P(11,z,e.id))}}function Q(o,t){if(o&1&&(n(0,"div",8)(1,"table")(2,"thead")(3,"tr")(4,"th"),a(5,"ID"),i(),n(6,"th"),a(7,"Nom"),i(),n(8,"th"),a(9,"Sujet"),i(),n(10,"th"),a(11,"Template"),i(),n(12,"th"),a(13,"Cr\xE9\xE9e le"),i(),n(14,"th"),a(15,"Mise en file"),i(),n(16,"th"),a(17,"Envoy\xE9e"),i(),p(18,"th"),i()(),n(19,"tbody"),v(20,J,21,13,"tr",null,K),i()()()),o&2){let e=u();m(20),w(e.items())}}var $=class o{service=x(F);snackbar=x(I);loading=r(!1);items=r([]);total=r(0);limit=r(20);offset=r(0);ngOnInit(){this.loadCampaigns()}loadCampaigns(t=this.offset()){this.loading.set(!0),this.offset.set(t),this.service.listCampaigns(this.limit(),t).pipe(M(()=>this.loading.set(!1))).subscribe({next:e=>{this.items.set(e.items),this.total.set(e.total),this.limit.set(e.limit),this.offset.set(e.offset)},error:e=>{this.snackbar.open(this.getErrorMessage(e),"OK",{duration:5e3})}})}nextPage(){let t=this.offset()+this.limit();t<this.total()&&this.loadCampaigns(t)}previousPage(){this.loadCampaigns(Math.max(this.offset()-this.limit(),0))}getErrorMessage(t){return typeof t=="object"&&t!==null&&"error"in t&&typeof t.error=="object"&&t.error!==null&&"message"in t.error&&typeof t.error.message=="string"?t.error.message:typeof t=="object"&&t!==null&&"message"in t&&typeof t.message=="string"?t.message:"Une erreur est survenue."}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=b({type:o,selectors:[["app-newsletter-campaign-list"]],decls:24,vars:7,consts:[[1,"newsletter-campaign-page"],[1,"newsletter-campaign-card"],[1,"page-header"],[1,"section-title"],["svgIcon","notifications"],["mat-flat-button","","routerLink","/newsletter/campaign-form"],["svgIcon","add"],[1,"empty"],[1,"table-wrapper"],[1,"pagination"],["mat-stroked-button","","type","button",3,"click","disabled"],[1,"row-actions"],["mat-stroked-button","",3,"routerLink"]],template:function(e,l){e&1&&(n(0,"section",0),p(1,"app-newsletter-campaign-nav"),n(2,"mat-card",1)(3,"mat-card-content")(4,"div",2)(5,"div",3),p(6,"mat-icon",4),n(7,"div")(8,"h1"),a(9,"Campagnes newsletter"),i(),n(10,"p"),a(11),i()()(),n(12,"a",5),p(13,"mat-icon",6),a(14," Nouvelle campagne "),i()(),d(15,R,2,0,"p",7)(16,Q,22,0,"div",8),n(17,"div",9)(18,"button",10),h("click",function(){return l.previousPage()}),a(19," Pr\xE9c\xE9dent "),i(),n(20,"span"),a(21),i(),n(22,"button",10),h("click",function(){return l.nextPage()}),a(23," Suivant "),i()()()()()),e&2&&(m(11),f("",l.total()," campagne(s)"),m(4),c(l.items().length===0&&!l.loading()?15:16),m(3),g("disabled",l.offset()===0||l.loading()),m(3),y(" ",l.offset()+1," - ",l.offset()+l.items().length," sur ",l.total()," "),m(),g("disabled",l.offset()+l.limit()>=l.total()||l.loading()))},dependencies:[A,O,N,S,B,D,j,T,L,k,E],styles:["[_nghost-%COMP%]{display:block}.newsletter-campaign-page[_ngcontent-%COMP%]{padding:24px 16px}.newsletter-campaign-card[_ngcontent-%COMP%]{width:100%;max-width:1120px;margin:0 auto;border-radius:16px}.page-header[_ngcontent-%COMP%], .section-title[_ngcontent-%COMP%], .pagination[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px}.page-header[_ngcontent-%COMP%]{justify-content:space-between;margin-bottom:24px}.section-title[_ngcontent-%COMP%]{align-items:flex-start}.section-title[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:40px;height:40px;font-size:40px}h1[_ngcontent-%COMP%], p[_ngcontent-%COMP%]{margin:0}.section-title[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .empty[_ngcontent-%COMP%]{opacity:.8}.table-wrapper[_ngcontent-%COMP%]{width:100%;overflow-x:auto}table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:12px 8px;text-align:left;border-bottom:1px solid rgba(0,0,0,.08);vertical-align:middle}th[_ngcontent-%COMP%]{font-weight:600;opacity:.8}.row-actions[_ngcontent-%COMP%]{text-align:right}.pagination[_ngcontent-%COMP%]{justify-content:flex-end;margin-top:24px}@media(max-width:768px){.newsletter-campaign-page[_ngcontent-%COMP%]{padding:16px 8px}.page-header[_ngcontent-%COMP%], .pagination[_ngcontent-%COMP%]{align-items:stretch;flex-direction:column}a[mat-flat-button][_ngcontent-%COMP%], button[_ngcontent-%COMP%]{width:100%}}"]})};export{$ as NewsletterCampaignListComponent};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.