PageSourceSearch

https://ddinternational.org/build/assets/Index-Cx3VJ_n0.js

js ddinternational.org collected 2026-10-07 23:00:48 UTC 4,621 bytes, 1 lines download raw bytes

1import{k as E,q as L,g as b,a,b as e,h as O,d as u,t as o,w as r,l as c,e as m,o as f,c as R,i as w,F as V}from"./app-CNKgUzaW.js";import{_ as N}from"./AdminLayout-YjeX94ZU.js";import{s as l,a as B}from"./index-CrCIWHVB.js";import{s as y}from"./index--9dLFLch.js";import{s as $}from"./index-qmv8aCmz.js";import{s as q}from"./index-vfRulL0w.js";import{u as z}from"./useFormatters-Dq7GKB1-.js";import{u as T}from"./useTableQuery-Ue_S8MmD.js";/* empty css            */import"./index-CgfGZUh-.js";import"./index-CEppecSx.js";import"./index-BPH3tE-z.js";import"./index-BafwodOj.js";import"./NotificationBell-DHw8UgMI.js";import"./index-1wqQM50o.js";import"./index-DzviG8GF.js";import"./index-D22kglcl.js";import"./index-D63QnEKA.js";import"./index-B_AtUfEK.js";import"./index-BKERpy5p.js";import"./index-CGXP3aZr.js";import"./index-DIA4pxQs.js";import"./index-g-gd8TMT.js";import"./index-C0qc0oZN.js";import"./index-BhdopTl-.js";import"./index-qJvbz6Qh.js";import"./index-ClOoB_UX.js";const Q={class:"flex justify-between items-center mb-6"},A={class:"text-2xl font-bold text-primary"},M={class:"mb-4"},I={key:0,class:"text-red-500 text-xs ml-1"},ye=Object.assign({layout:N},{__name:"Index",props:{emails:Object,filters:Object},setup(n){const{t,formatDate:v}=z(),h=n,d=E(h.filters?.status||null),{rows:g,first:_,sortField:P,sortOrder:F,applyFilters:x,onPage:S,onSort:k}=T(()=>route("admin.mass-emails.index"),h.filters,()=>({status:d.value||void 0})),C=[{label:t("Brouillon","Draft"),value:"draft"},{label:t("En file","Queued"),value:"queued"},{label:t("Envoi en cours","Sending"),value:"sending"},{label:t("Complété","Completed"),value:"completed"}],D={draft:t("Brouillon","Draft"),queued:t("En file","Queued"),sending:t("Envoi en cours","Sending"),completed:t("Complété","Completed"),failed:t("Échoué","Failed")};L(d,x);function j(i){return{draft:"warn",queued:"info",sending:"info",completed:"success",failed:"danger"}[i]||"secondary"}return(i,p)=>(f(),b(V,null,[a(e(O),{title:e(t)("Courriels de masse","Mass Emails")},null,8,["title"]),u("div",null,[u("div",Q,[u("h1",A,o(e(t)("Courriels de masse","Mass Emails")),1),a(e(c),{href:i.route("admin.mass-emails.create")},{default:r(()=>[a(e(y),{label:e(t)("Nouveau courriel","New email"),icon:"pi pi-plus"},null,8,["label"])]),_:1},8,["href"])]),u("div",M,[a(e(q),{modelValue:d.value,"onUpdate:modelValue":p[0]||(p[0]=s=>d.value=s),options:C,optionLabel:"label",optionValue:"value",placeholder:e(t)("Filtrer par statut","Filter by status"),showClear:"",class:"w-48"},null,8,["modelValue","placeholder"])]),a(e(B),{value:n.emails.data,paginator:"",rows:e(g),totalRecords:n.emails.meta?.total||n.emails.total,first:e(_),lazy:"",onPage:e(S),onSort:e(k),sortField:e(P),sortOrder:e(F),removableSort:"",rowsPerPageOptions:[10,25,50],paginatorTemplate:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown CurrentPageReport",currentPageReportTemplate:"{first}-{last} / {totalRecords}",size:"small",stripedRows:"",scrollable:"",scrollDirection:"horizontal"},{default:r(()=>[a(e(l),{field:"subject",header:e(t)("Sujet","Subject"),sortable:"",style:{"white-space":"nowrap"}},{body:r(({data:s})=>[a(e(c),{href:i.route("admin.mass-emails.show",s.id),class:"text-secondary hover:underline font-medium"},{default:r(()=>[m(o(s.subject),1)]),_:2},1032,["href"])]),_:1},8,["header"]),a(e(l),{header:e(t)("Statut","Status"),sortable:"",sortField:"status",style:{"white-space":"nowrap"}},{body:r(({data:s})=>[a(e($),{value:D[s.status]||s.status,severity:j(s.status)},null,8,["value","severity"])]),_:1},8,["header"]),a(e(l),{header:e(t)("Actions","Actions"),style:{"white-space":"nowrap",width:"60px"}},{body:r(({data:s})=>[s.status==="draft"?(f(),R(e(c),{key:0,href:i.route("admin.mass-emails.edit",s.id)},{default:r(()=>[a(e(y),{icon:"pi pi-pencil",severity:"warn",size:"small"})]),_:1},8,["href"])):w("",!0)]),_:1},8,["header"]),a(e(l),{header:e(t)("Destinataires","Recipients"),style:{"white-space":"nowrap"}},{body:r(({data:s})=>[m(o(s.sent_count||0)+" / "+o(s.total_recipients||0)+" ",1),s.failed_count?(f(),b("span",I,"("+o(s.failed_count)+" "+o(e(t)("échoués","failed"))+")",1)):w("",!0)]),_:1},8,["header"]),a(e(l),{header:e(t)("Envoyé par","Sent by"),style:{"white-space":"nowrap"}},{body:r(({data:s})=>[m(o(s.sender?.name),1)]),_:1},8,["header"]),a(e(l),{header:e(t)("Date","Date"),sortable:"",sortField:"created_at",style:{"white-space":"nowrap"}},{body:r(({data:s})=>[m(o(e(v)(s.created_at)),1)]),_:1},8,["header"])]),_:1},8,["value","rows","totalRecords","first","onPage","onSort","sortField","
1sortOrder"])])],64))}});export{ye as default};

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.