PageSourceSearch

https://getsendstack.com/build/assets/Table.61e3fd9a.js

js getsendstack.com collected 2026-10-05 04:10:29 UTC 5,467 bytes, 1 lines download raw bytes

1import{h as D,i as j,u as L,c as a,b as o,l as M,t as _,j as s,F as r,k as N,e as c,a as x,w as l,g as n,o as e,n as g,L as p,f as h,q as k}from"./app.51fed9fe.js";import{_ as v}from"./LocalTime.ddee3a0b.js";import{J as $}from"./ConfirmationModal.3acca77b.js";import{_ as V}from"./SecondaryButton.2b5f9f0b.js";import{J as B}from"./DangerButton.9fe2f4dc.js";import E from"./TableEmptyState.c86ed9f0.js";import{a as i}from"./enums.ea6c81e5.js";import"./_commonjsHelpers.2cf1d77b.js";/* empty css            */import"./Modal.6fffec74.js";import"./plugin-vue_export-helper.21dcd24c.js";import"./MailIcon.53ed0ad5.js";const F={class:"flex flex-col"},J={class:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"},q={class:"py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8"},T={class:"shadow overflow-hidden border border-gray-200 sm:rounded-lg"},A={class:"p-6 text-gray-600"},R={key:0,class:"min-w-full border-0 border-gray-200 divide-y divide-gray-200"},z={class:"bg-gray-50"},U=o("th",{scope:"col",class:"px-6 py-3 text-left text-sm font-medium text-gray-500"}," Name ",-1),G=o("th",{scope:"col",class:"px-6 py-3 text-left text-sm font-medium text-gray-500"}," Status ",-1),H=o("th",{scope:"col",class:"px-6 py-3 text-left text-sm font-medium text-gray-500"}," # Recipients ",-1),I={scope:"col",class:"px-6 py-3 text-left text-sm font-medium text-gray-500"},K=n(" Sent At "),O=n(" Last Updated "),P=o("th",{scope:"col",class:"relative px-6 py-3"},[o("span",{class:"sr-only"},"Edit")],-1),Q={class:"px-6 py-4 whitespace-nowrap text-sm font-medium"},W={key:0,class:"text-gray-900"},X={key:0,class:"text-gray-900"},Y={key:1,class:"text-gray-400"},Z={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},tt={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},et=n("\u2013"),st={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},ot=n("Never"),at={class:"px-6 py-4 whitespace-nowrap text-right text-sm font-medium space-x-2 flex justify-end"},nt=n(" View "),dt=n(" Edit "),it=n(" Copy "),lt=["onClick"],rt={key:1,class:"flex items-center px-2 py-0.5 rounded text-xs font-semibold bg-gray-100 text-gray-700"},ut=n(" Cancel Scheduling "),ct=n(" Confirm Action "),_t=n(" Do you really want to permanently delete the mail"),ht=n("? "),mt=n(" Cancel "),pt=n(" Delete "),Mt=D({__name:"Table",props:{mails:null,filteredStatus:null,title:null,subtitle:null},setup(m){const u=j(null),b=L({});function w(d){u.value=d}function C(){var d;b.delete(route("mails.destroy",(d=u.value)==null?void 0:d.uuid),{preserveScroll:!0}),u.value=null}function S(d){return d.status===i.sent?route("mails.show",d.uuid):route("mails.edit",d.uuid)}return(d,f)=>(e(),a("div",F,[o("div",J,[o("div",q,[o("div",T,[M(d.$slots,"filter"),o("p",A,_(m.subtitle),1),m.mails.length>0?(e(),a("table",R,[o("thead",z,[o("tr",null,[U,G,H,o("th",I,[m.filteredStatus===s(i).sent?(e(),a(r,{key:0},[K],64)):(e(),a(r,{key:1},[O],64))]),P])]),o("tbody",null,[(e(!0),a(r,null,N(m.mails,(t,y)=>(e(),a("tr",{class:g(["border-b border-gray-200",y%2===0?"bg-white":"bg-brand-100 bg-opacity-10"]),key:t.id},[o("td",Q,[t.status===s(i).scheduled?(e(),a("span",W,_(t.subject),1)):(e(),c(s(p),{key:1,href:S(t)},{default:l(()=>[t.subject?(e(),a("span",X,_(t.subject),1)):(e(),a("span",Y," No subject "))]),_:2},1032,["href"]))]),o("td",Z,_(t.status_name),1),o("td",tt,[t.status===s(i).sent?(e(),a(r,{key:0},[n(_(t.sent_to_number_of_subscribers),1)],64)):(e(),a(r,{key:1},[et],64))]),o("td",st,[m.filteredStatus===s(i).sent?(e(),c(v,{key:0,datetime:new Date(t.sent_at)},null,8,["datetime"])):(e(),a(r,{key:1},[t.last_modified_at?(e(),c(v,{key:0,relative:"",datetime:new Date(t.last_modified_at)},null,8,["datetime"])):(e(),a(r,{key:1},[ot],64))],64))]),o("td",at,[t.status!==s(i).queued&&t.status!==s(i).sending&&t.status!==s(i).scheduled?(e(),a(r,{key:0},[t.status===s(i).sent?(e(),c(s(p),{key:0,href:d.route("mails.show",t.uuid),class:"text-brand-400 hover:text-brand-500","data-test":"mailViewLink"},{default:l(()=>[nt]),_:2},1032,["href"])):h("",!0),t.status!==s(i).sent?(e(),c(s(p),{key:1,href:d.route("mails.edit",t.uuid),class:"text-brand-400 hover:text-brand-500","data-test":"mailEditLink"},{default:l(()=>[dt]),_:2},1032,["href"])):h("",!0),x(s(p),{method:"post",as:"button",href:d.route("mails.duplicate",t.uuid),class:"text-brand-400 hover:text-brand-500","data-test":"mailCopyLink"},{default:l(()=>[it]),_:2},1032,["href"]),o("a",{href:"",onClick:k(ft=>w(t),["prevent"]),class:"text-red-600 hover:text-red-900","data-test":"mailDeleteLink"}," Delete ",8,lt)],64)):h("",!0),t.status===s(i).queued||t.status===s(i).sending?(e(),a("div",rt," Sending ")):h("",!0),t.status===s(i).scheduled?(e(),c(s(p),{key:2,method:"delete",as:"button",title:"Cancel Scheduling",href:d.route("mails.unschedule",t.uuid),class:"text-red-600 hover:text-red-900"},{default:l(()=>[ut]),_:2},1032,["href"])):h("",!0)])],2))),128))])])):(e(),c(E,{key:1}))])])]),x($,{show:u.value,onClose:f[1]||(f[1]=t=>u.value=null)},{title:l(()=>[ct]),content:l(()=>{var t,y;return[_t,(t=u.value)!=null&&t.subject?(e(),a(r,{key:0},[n(' "'+_((y=u.value)==null?void 0:y.subject)+'"',1)],64)):h("",!0),ht]}),footer:l(()=>[x(V,{type:"button",onClick:f[0]||(f[0]=t=>u.value=null)},{default:l(()=>[mt]),_:1}),x(B,{class:g(["ml-2",{"opacity-25":s(b).processing}]),"data-test":"confirmDeleteMail",onClick:k(C,["prevent"]),disabled:s(b).processing},{default:l(()=>[pt]),_:1},8,["onClick","class","disabled"])]),_:1},8,["show"])]))}});
1export{Mt 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.