PageSourceSearch

https://bikebook.co.uk/_next/static/chunks/pages/admin/message-activity-c0baf2efba77b57a.js

js bikebook.co.uk collected 2026-09-24 09:50:35 UTC 25,985 bytes, 2 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a1a712a3-0368-449c-a0cb-09bcb43e5c2a",e._sentryDebugIdIdentifier="sentry-dbid-a1a712a3-0368-449c-a0cb-09bcb43e5c2a")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4417],{9171:(e,n,s)=>{"use strict";s.d(n,{IG:()=>a,KZ:()=>l,kB:()=>r,tm:()=>o}),s(68093);var t=s(1950),i=s.n(t);function l(e){return i()(e).format((Number.isInteger(e),"\xa30,0.00"))}function a(e){return i()(e/100).format("0.0%")}function r(e,n){return i()(e).format(n)}function o(e){return i()(e).format("0.0 b")}},11228:(e,n,s)=>{"use strict";s.d(n,{J:()=>o,d:()=>r});var t=s(99668),i=s(29911),l=s(81278),a=s.n(l);function r(e){return async n=>{let[s,i]=a().asPath.split("?"),l=new URLSearchParams(i||"");null!==e?l.set("message_template_id",e.toString()):l.delete("message_template_id");let r=l.toString()?"".concat(s,"?").concat(l.toString()):s;return n(t.A.actions.setEditMessageTemplateId(e)),a().replace(r,void 0,{shallow:!0}),new Promise(e=>{let n=s=>{s===r&&(a().events.off("routeChangeComplete",n),e(null))};a().events.on("routeChangeComplete",n)})}}function o(){return async e=>{e(t.A.actions.setRefreshToken((0,i.A)()))}}},15086:(e,n,s)=>{"use strict";s.d(n,{A:()=>a});var t=s(6029),i=s(35197),l=s(6688);s(55729);let a=e=>{let{title:n,icon:s,actions:a,breakAtPx:r=960,sx:o={}}=e;return(0,t.jsxs)(i.A,{sx:{width:"100%",minHeight:"48px",borderBottom:"1px solid rgb(232, 234, 237)",display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",columnGap:1,rowGap:.5,py:"6px",background:"white",position:"sticky",top:0,zIndex:1e3,px:{xs:2,sm:3},...null!=r&&{["@media (max-width: ".concat(r,"px)")]:{}},...o},children:["string"==typeof n?(0,t.jsxs)(l.A,{variant:"h6",sx:{fontWeight:"700",display:"flex",justifyContent:"flex-start",gap:1,alignItems:"center"},children:[s&&s,n]}):(0,t.jsxs)(i.A,{sx:{display:"flex",alignSelf:"stretch",alignItems:"center",gap:1},children:[s&&s,n]}),(0,t.jsx)(i.A,{sx:{py:"2px",display:"flex",gap:1,flexWrap:"wrap","& button":{textWrap:"nowrap"},["@media (max-width: ".concat(r,"px)")]:{}},children:a&&a})]})}},40912:(e,n,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/message-activity",function(){return s(45549)}])},45549:(e,n,s)=>{"use strict";s.r(n),s.d(n,{default:()=>ej});var t=s(6029),i=s(75155),l=s(43613),a=s(60942),r=s(72091),o=s(35197),c=s(74312),d=s.n(c),u=s(81278),m=s.n(u),h=s(84473),g=s(46889);function p(e){return async n=>{let[s,t]=m().asPath.split("?"),i=new URLSearchParams(t||"");null!==e?i.set("message_instance_id",e.toString()):i.delete("message_instance_id");let l=i.toString()?"".concat(s,"?").concat(i.toString()):s;return n(g.A.actions.setEditMessageInstanceId(e)),m().replace(l,void 0,{shallow:!0}),new Promise(e=>{let n=s=>{s===l&&(m().events.off("routeChangeComplete",n),e(null))};m().events.on("routeChangeComplete",n)})}}var x=s(8013),v=s(55729),b=s(80956),f=s(76521),y=s(90944);let j={Queued:{email:"Your API request has been authorized and will be processed.",sms:"Your API request has been authorized and will be processed."},Sent:{email:"Your email was sent from our sending servers. We are now waiting for a response from the receiving servers.",sms:"Your SMS was sent from our sending servers and the downstream carrier has accepted the message."},Delivered:{email:"Your email was successfully delivered with no errors.",sms:"MailerSend has received a delivery receipt from the downstream carrier confirming successful delivery to the carrier or handset (when available)."},Failed:{email:"Message delivery failed.",sms:"The message could not be sent or the delivery receipt received from the downstream carrier indicated the message was not deliverable."},Undelivered:{email:null,sms:"The downstream carrier reported that the message could not be delivered to the recipient's handset."},SoftBounced:{email:"Your email was not delivered because it soft bounced. A soft bounce is a temporary rejection by a re
1ceiving recipient's server. This may happen because the recipient's inbox is full.",sms:null},HardBounced:{email:"Your message was not delivered. The message was returned to our servers because the recipient's address is invalid. A hard bounce may occur because the domain name does not exist or because the recipient is unknown.",sms:null},Junk:{email:"Your message was sent to your recipient's junk folder.",sms:null},Opened:{email:"The recipient received your message and opened it. Opens tracking is only available if you enabled it in your domain settings.",sms:null},Clicked:{email:"The recipient clicked a link that's in your message. Likewise, clicks tracking is only available if you enabled it in your domain settings.",sms:null},Unsubscribed:{email:"Your message was rejected because the recipient's email address is in your Suppression list.",sms:null},SpamComplaints:{email:"Your message was rejected because the recipient's email address is in your Suppression list.",sms:null},Processed:{email:null,sms:"Our servers have processed your request and your SMS has been passed to our sending servers."}},A=(e,n)=>"messages.status.".concat(e.toLowerCase(),".").concat(n),w={Queued:{color:"#919EAB",labelKey:"messages.status.queued.label",getDescription:e=>A("Queued",e)},Processing:{color:"rgb(168, 117, 255)",labelKey:"messages.status.processing.label",getDescription:e=>A("Processing",e)},Pending:{color:"rgb(168, 117, 255)",labelKey:"messages.status.pending.label",getDescription:e=>A("Pending",e)},Sent:{color:"#454F5B",labelKey:"messages.status.sent.label",getDescription:e=>A("Sent",e)},Delivered:{color:"#00AB55",labelKey:"messages.status.delivered.label",getDescription:e=>A("Delivered",e)},Failed:{color:"#FF4842",labelKey:"messages.status.failed.label",getDescription:e=>A("Failed",e)},Undelivered:{color:"#FF4842",labelKey:"messages.status.undelivered.label",getDescription:e=>A("Undelivered",e)},Cancelled:{color:"#919EAB",labelKey:"messages.status.cancelled.label",getDescription:e=>A("Cancelled",e)},SoftBounced:{color:"#FF4842",labelKey:"messages.status.softbounced.label",getDescription:e=>A("SoftBounced",e)},HardBounced:{color:"#FF4842",labelKey:"messages.status.hardbounced.label",getDescription:e=>A("HardBounced",e)},Junk:{color:"#FF4842",labelKey:"messages.status.junk.label",getDescription:e=>A("Junk",e)},Opened:{color:"#3fb1b2",labelKey:"messages.status.opened.label",getDescription:e=>A("Opened",e)},Clicked:{color:"rgb(168, 117, 255)",labelKey:"messages.status.clicked.label",getDescription:e=>A("Clicked",e)},Unsubscribed:{color:"#FF4842",labelKey:"messages.status.unsubscribed.label",getDescription:e=>A("Unsubscribed",e)},SpamComplaints:{color:"#FF4842",labelKey:"messages.status.spamcomplaints.label",getDescription:e=>A("SpamComplaints",e)},Processed:{color:"#00AB55",labelKey:"messages.status.processed.label",getDescription:e=>A("Processed",e)}},S=function(e,n){let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(("Queued"===e||"Sent"===e)&&null==n)return"Created";let t=("Sent"===e||"Failed"===e)&&n?n:e;return s&&"Clicked"===t&&(t="Opened"),t},_=e=>{var n;return null!=(n=w[e])?n:null},I=(e,n)=>{var s;return null==(s=_(e))?void 0:s.getDescription(n)},N=(e,n)=>e in j?j[e][n]:null,C=e=>(null==e?void 0:e.toLowerCase())==="sms"?"sms":"email",P=e=>{let n,s,l,a,r,o,c,d,u,m=(0,i.c)(25),{status:h,activityStatus:g,highLevelOnly:p,channel:x}=e,v=void 0!==p&&p,{t:j}=(0,y.WD)();if(m[0]!==g||m[1]!==x||m[2]!==v||m[3]!==h||m[4]!==j){o=Symbol.for("react.early_return_sentinel");e:{let e=C(x),i=S(h,g,v);if("Created"===i){let e,n;m[12]!==j?(e=j("messages.status.created","Created"),m[12]=j,m[13]=e):e=m[13],m[14]!==e?(n=(0,t.jsx)(f.A,{variant:"ghost",color:"#454F5B",colorOverride:"#454F5B",children:e}),m[14]=e,m[15]=n):n=m[15],o=n;break e}let d=_(i);if(null==d){o=(0,t.jsx)(f.A,{variant:"ghost",color:"#919EAB",colorOverride:"#919EAB",children:i});break e}let u=I(i,e),p=N(i,e);c=null!=u?j(u,null!=p?p:i):null!=p?p:void 0,n=f.A,s="ghost",l=d.color,a=d.color,r=j(d.labelKey,i)}m[0]=g,m[1]=x,m[2]=v,m[3]=h,m[4]=j,m[5]=n,m[6]=s,m[7]=l,m[8]=a,m[9]=r,m[10]=o,m[11]=c}else n=m[5],s=m[6],l=m[7],a=m[8],r=m[9],o=m[10],c=m[11];if(o!==Symbol.for("react.early_return_sentinel"))return o;m[16]!==n||m[17]!==s||m[18]!==l||m[19]!==a||m[20]!==r?(d=(0,t.jsx)(n,{variant:s,color:l,colorOverride:a,children:r}),m[16]=n,m[17]=s,m[18]=l,m[19]=a,m[20]=r,m[21]=d):d=m[21];let A=d;return null==c||""===c?A:(m[22]!==A||m[23]!==c?(u=(0,t.jsx)(b.A,{title:c,children:A}),m[22]=A,m[23]=c,m[24]=u):u=m[24],u)};var k=s(12482),T=s(16932),D=s(75119),M=s(95051),E=s(63860),F=s(6688),W=s(46232),B=s(11228),K=s(91933),O=s(59850),L=s(45686),R=s(59033),q=s(59556),H=s(
158772),z=s(63048),G=s(78967),V=s(57741),U=s(19548),Y=s(98348),J=s(39298),Q=s(54956),X=s(22008),Z=s(28389),$=s(45305),ee=s(46831),en=s(80803),es=s(66094);let et=()=>{var e,n,s,l,a,c,m,h,g;let{t:j}=(0,y.WD)(),A=(0,u.useRouter)(),w=(0,x.jL)(),[S,_]=(0,v.useState)(!1),{editMessageInstanceId:et}=(0,x.GV)(e=>e.messageInstance),{mutateAsync:ei,isPending:el,isPending:ea}=((e,n)=>{let s,t=(0,i.c)(2);t[0]!==e?(s=(e=>{let n=["resendMessage"],{mutation:s,axios:t}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:n}}:{mutation:{mutationKey:n},axios:void 0};return{mutationFn:e=>{let{id:n}=null!=e?e:{};return D.A.post("/v2/MessageInstance/ResendMessage/".concat(n),void 0,t)},...s}})(e),t[0]=e,t[1]=s):s=t[1];let l=s;return(0,T.n)(l,n)})(),{data:er,isPending:eo,refetch:ec,isRefetching:ed}=function(e,n,s){let t=((e,n)=>{var s;let{query:t,axios:i}=null!=n?n:{};return{queryKey:null!=(s=null==t?void 0:t.queryKey)?s:["/v2/MessageInstance/GetMessageInstance/".concat(e)],queryFn:n=>{let s,{signal:t}=n;return s={signal:t,...i},D.A.get("/v2/MessageInstance/GetMessageInstance/".concat(e),s)},enabled:!!e,staleTime:0,...t}})(e,n),i=(0,k.I)(t,void 0);return i.queryKey=t.queryKey,i}(et,{query:{enabled:null!=et,gcTime:0,staleTime:0,queryKey:["message-instance-"+et]}}),eu=null==er?void 0:er.data,em=()=>{w(p(null)),_(!1)};(0,v.useEffect)(()=>{var e;(null==A||null==(e=A.query)?void 0:e.message_instance_id)&&!et&&w(p(Number(A.query.message_instance_id)))},[null==A||null==(e=A.query)?void 0:e.message_instance_id]);let eh=async()=>{await ei({id:et}).then(e=>{_(!1),w((0,ee.kw)("success",j("messages.resendSuccess"))),w(p(e.data.messageInstanceId))}).catch(e=>{w((0,ee.kw)("error",j("messages.resendError")))})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(M.A,{open:null!=et,onClose:em,fullWidth:!0,fullScreen:!0,isLoading:eo,maxWidth:"lg",title:"".concat(null==eu?void 0:eu.channel," ").concat(j("messages.activity")),actions:[{content:j("vocab.refreshData"),side:"right",buttonProps:{startIcon:(0,t.jsx)(K.S,{}),variant:"outlined",color:"inherit",loading:ed,onClick:()=>ec()}},{content:j("messages.sendAgain"),side:"right",buttonProps:{startIcon:(0,t.jsx)(O.n,{}),color:"tertiary",variant:"contained",loading:ed,onClick:()=>_(!0)}}],keepMounted:!1,disablePortal:!1,children:[(0,t.jsx)(en.A,{severity:"info",alertKey:"message-instance-info",sx:{mb:3},children:j("messages.instanceDescription")}),(0,t.jsxs)(E.A,{container:!0,spacing:3,children:[(0,t.jsx)(E.A,{size:{xs:12,md:8},children:(0,t.jsxs)(r.A,{spacing:3,sx:{p:0},children:[(0,t.jsxs)(r.A,{direction:{xs:"column",md:"row"},spacing:1,children:[(0,t.jsx)(F.A,{variant:"body2",sx:{fontWeight:"700",minWidth:"170px"},children:j("messages.subject")}),(0,t.jsx)(F.A,{variant:"body2",children:null==eu?void 0:eu.emailSubject})]}),(0,t.jsxs)(r.A,{direction:{xs:"column",md:"row"},spacing:1,children:[(0,t.jsx)(F.A,{variant:"body2",sx:{fontWeight:"700",minWidth:"170px"},children:j("messages.from")}),(null==eu?void 0:eu.channel)==="Email"&&(0,t.jsxs)(F.A,{variant:"body2",children:[null==eu?void 0:eu.senderName," (",null==eu?void 0:eu.senderEmail,")"]}),(null==eu?void 0:eu.channel)==="SMS"&&(0,t.jsxs)(F.A,{variant:"body2",children:[null==eu?void 0:eu.senderName," ",(null==eu?void 0:eu.senderPhoneNumber)&&"(".concat(null==eu?void 0:eu.senderPhoneNumber,")")]})]}),(0,t.jsxs)(r.A,{direction:{xs:"column",md:"row"},spacing:1,children:[(0,t.jsx)(F.A,{variant:"body2",sx:{fontWeight:"700",minWidth:"170px"},children:j("messages.to")}),(0,t.jsx)(F.A,{variant:"body2",children:null==eu?void 0:eu.recipient})]}),(0,t.jsxs)(r.A,{direction:{xs:"column",md:"row"},spacing:1,children:[(0,t.jsx)(F.A,{variant:"body2",sx:{fontWeight:"700",minWidth:"170px"},children:j("messages.status")}),(0,t.jsxs)(r.A,{spacing:1,children:[(0,t.jsx)(F.A,{variant:"body2",children:(null==eu?void 0:eu.instanceStatus)&&(0,t.jsx)(P,{status:null==eu?void 0:eu.instanceStatus,activityStatus:null==eu?void 0:eu.latestActivityStatus,channel:null==eu?void 0:eu.channel,highLevelOnly:!0})}),(null==eu?void 0:eu.cancelledReason)&&(0,t.jsx)(F.A,{variant:"caption",color:"text.secondary",children:null==eu?void 0:eu.cancelledReason}),(null==eu?void 0:eu.errorMessage)&&(0,t.jsxs)(F.A,{variant:"caption",color:"text.secondary",sx:{dis
1play:"flex",alignItems:"center",gap:1},children:[null==eu?void 0:eu.errorMessage,(0,t.jsx)(b.A,{title:(0,t.jsxs)(r.A,{children:[(0,t.jsx)(F.A,{variant:"caption",children:j("messages.errorDescription")}),(0,t.jsx)(F.A,{variant:"caption",children:j("messages.hardBounceDescription")}),(0,t.jsx)(F.A,{variant:"caption",children:j("messages.softBounceDescription")})]}),children:(0,t.jsx)(L.R,{size:16})})]})]})]}),(null==eu?void 0:eu.jobId)&&(0,t.jsxs)(r.A,{direction:{xs:"column",md:"row"},spacing:1,alignItems:{xs:"flex-start",md:"center"},children:[(0,t.jsx)(F.A,{variant:"body2",sx:{fontWeight:"700",minWidth:"170px"},children:j("vocab.job")}),(0,t.jsxs)(W.A,{size:"small",variant:"outlined",color:"inherit",sx:{textTransform:"none"},startIcon:(0,t.jsx)(R.B,{}),onClick:()=>{em(),w((0,Z.uQ)(eu.jobId))},children:["#",null==eu?void 0:eu.jobNumber," | ",null==eu||null==(n=eu.customer)?void 0:n.firstName," ",null==eu||null==(s=eu.customer)?void 0:s.lastName]})]}),(null==eu?void 0:eu.invoiceId)&&(0,t.jsxs)(r.A,{direction:{xs:"column",md:"row"},spacing:1,alignItems:{xs:"flex-start",md:"center"},children:[(0,t.jsx)(F.A,{variant:"body2",sx:{fontWeight:"700",minWidth:"170px"},children:j("vocab.invoice")}),(0,t.jsxs)(W.A,{size:"small",variant:"outlined",color:"inherit",sx:{textTransform:"none"},startIcon:(0,t.jsx)(q.q,{}),onClick:()=>{em(),w((0,$.EditInvoice)(eu.invoiceId))},children:["#",null==eu?void 0:eu.invoiceNumber," | ",null==eu||null==(l=eu.customer)?void 0:l.firstName," ",null==eu||null==(a=eu.customer)?void 0:a.lastName]})]}),(0,t.jsxs)(r.A,{direction:{xs:"column",md:"row"},spacing:1,children:[(0,t.jsx)(F.A,{variant:"body2",sx:{fontWeight:"700",minWidth:"170px"},children:j("vocab.template")}),(null==eu?void 0:eu.messageTemplateId)&&(0,t.jsx)(W.A,{size:"small",variant:"outlined",color:"inherit",sx:{textTransform:"none"},startIcon:(0,t.jsx)(H.M,{}),onClick:()=>{em(),w((0,B.d)(eu.messageTemplateId))},children:null==eu?void 0:eu.messageTemplateName})]}),(null==eu||null==(c=eu.attachments)?void 0:c.length)!=null&&(null==eu||null==(m=eu.attachments)?void 0:m.length)>0&&(0,t.jsxs)(r.A,{direction:{xs:"column",md:"row"},spacing:1,children:[(0,t.jsx)(F.A,{variant:"body2",sx:{fontWeight:"700",minWidth:"170px"},children:j("vocab.attachments")}),(0,t.jsx)(r.A,{direction:"column",spacing:1,children:null==eu||null==(h=eu.attachments)?void 0:h.map(e=>{var n;return(0,t.jsx)(W.A,{size:"small",variant:"outlined",color:"inherit",sx:{textTransform:"none"},startIcon:(0,t.jsx)(z.Z,{}),onClick:()=>{window.open("https://api.bikebook.co.uk"+e.url,"_blank")},children:e.friendlyName||(null==(n=e.name)?void 0:n.split("/").pop())},e.name)})})]}),(0,t.jsxs)(r.A,{spacing:2,children:[(0,t.jsxs)(F.A,{variant:"h6",sx:{fontWeight:"700",display:"flex",alignItems:"center",gap:1},children:[j("messages.content")," ",(null==eu?void 0:eu.channel)==="SMS"&&"(".concat(null!=(g=null==eu?void 0:eu.smsSegmentCount)?g:1," ").concat(j("messages.segments"),")"),(null==eu?void 0:eu.channel)==="SMS"&&(0,t.jsx)(b.A,{title:j("messages.smsSegmentsTooltip"),placement:"top",children:(0,t.jsx)(L.R,{size:20})})]}),(null==eu?void 0:eu.channel)==="SMS"&&(0,t.jsx)(o.A,{sx:{maxHeight:"600px",overflow:"auto",p:2,background:"#F5F5F5",borderRadius:"4px"},children:(null==eu?void 0:eu.content)&&(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:null==eu?void 0:eu.content}})}),(null==eu?void 0:eu.channel)==="Email"&&(0,t.jsx)(o.A,{sx:{maxHeight:"600px",overflow:"auto"},children:(null==eu?void 0:eu.content)&&(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:null==eu?void 0:eu.content}})})]})]})}),(0,t.jsx)(E.A,{size:{xs:12,md:4},children:(0,t.jsxs)(r.A,{spacing:3,sx:{p:0},children:[(0,t.jsx)(F.A,{variant:"h6",sx:{mb:3,fontWeight:"700"},children:j("messages.latestEvents")}),(0,t.jsx)(G.A,{position:"right",sx:{justifyContent:"flex-start"},children:(()=>{var e;let n=null,s=function(e){let s=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(!e)return null;let i=d().utc(e).local();return n&&i.isSame(n,"day")?null:(n=i,(0,t.jsxs)(V.A,{sx:{minHeight:"48px"}
1,children:[(0,t.jsx)(U.A,{sx:{flex:"unset",pl:0,width:"65px"},children:(0,t.jsx)(F.A,{variant:"subtitle2",fontWeight:"bold",children:(0,es.Gl)(i,es.LN.NUMERIC_DAY_SHORT_MONTH)})}),(0,t.jsxs)(Y.A,{children:[(0,t.jsx)(J.A,{sx:{background:"#ebebeb"}}),s&&(0,t.jsx)(Q.A,{})]}),(0,t.jsx)(X.A,{})]}))};return(0,t.jsxs)(t.Fragment,{children:[null==eu||null==(e=eu.activities)?void 0:e.map((e,n)=>(0,t.jsxs)(v.Fragment,{children:[s(e.timestamp),(0,t.jsxs)(V.A,{children:[(0,t.jsx)(U.A,{color:"text.secondary",sx:{flex:"unset",pl:0,width:"65px"},children:(0,t.jsx)(F.A,{variant:"caption",children:(0,es.Gl)(d().utc(e.timestamp).local(),es.LN.TIME_SECONDS)})}),(0,t.jsxs)(Y.A,{children:[(0,t.jsx)(J.A,{}),(0,t.jsx)(Q.A,{})]}),(0,t.jsx)(X.A,{children:(0,t.jsxs)(r.A,{spacing:1,children:[(0,t.jsx)(o.A,{children:(0,t.jsx)(P,{status:null==eu?void 0:eu.instanceStatus,activityStatus:e.status,channel:null==eu?void 0:eu.channel})}),(0,t.jsx)(F.A,{variant:"caption",color:"text.secondary",children:(()=>{let n=C(null==eu?void 0:eu.channel),s=e.status,t=I(s,n),i=N(s,n);return null!=t?j(t,null!=i?i:s):i})()})]})})]})]},n)),(null==eu?void 0:eu.errorDateTime)&&(0,t.jsxs)(t.Fragment,{children:[s(eu.errorDateTime),(0,t.jsxs)(V.A,{children:[(0,t.jsx)(U.A,{color:"text.secondary",sx:{flex:"unset",pl:0,width:"65px"},children:(0,t.jsx)(F.A,{variant:"caption",children:(0,es.Gl)(d().utc(eu.errorDateTime).local(),es.LN.TIME_SECONDS)})}),(0,t.jsxs)(Y.A,{children:[(0,t.jsx)(J.A,{}),(0,t.jsx)(Q.A,{})]}),(0,t.jsx)(X.A,{children:(0,t.jsxs)(r.A,{spacing:1,children:[(0,t.jsx)(o.A,{children:(0,t.jsx)(f.A,{variant:"ghost",color:"#FF4842",colorOverride:"#FF4842",children:j("messages.failed")})}),(0,t.jsx)(F.A,{variant:"caption",color:"text.secondary",children:eu.errorMessage})]})})]})]}),s(null==eu?void 0:eu.created,!1),(0,t.jsxs)(V.A,{children:[(0,t.jsx)(U.A,{color:"text.secondary",sx:{flex:"unset",pl:0,width:"65px"},children:(0,t.jsx)(F.A,{variant:"caption",children:(0,es.Gl)(d().utc(null==eu?void 0:eu.created).local(),es.LN.TIME_SECONDS)})}),(0,t.jsx)(Y.A,{children:(0,t.jsx)(J.A,{})}),(0,t.jsx)(X.A,{children:(0,t.jsxs)(r.A,{spacing:1,children:[(0,t.jsx)(o.A,{children:(0,t.jsx)(f.A,{variant:"ghost",color:"#454F5B",colorOverride:"#454F5B",children:j("messages.status.created")})}),(0,t.jsx)(F.A,{variant:"caption",color:"text.secondary",children:j("messages.status.created.description")})]})})]})]})})()})]})})]})]}),(0,t.jsx)(M.A,{open:S,onClose:()=>_(!1),fullWidth:!0,maxWidth:"sm",title:j("messages.resend.confirmTitle"),subheader:j("messages.resend.confirmDescription",{recipient:null==eu?void 0:eu.recipient}),actions:[{content:j("vocab.close"),side:"left",buttonProps:{onClick:()=>{_(!1)}}},{content:j("messages.resend.confirm"),side:"right",buttonProps:{color:"tertiary",loading:el,onClick:()=>{eh()}}}],keepMounted:!1,disablePortal:!1})]})},ei=()=>{let e,n,s,l,a,o,c,d,m,g=(0,i.c)(13),v=(0,x.jL)();(0,u.useRouter)();let b=(0,x.GV)(el);g[0]!==v?(e=(e,n)=>{if("BUTTON"!==n.target.tagName&&"svg"!==n.target.tagName&&"path"!==n.target.tagName&&e.row.messageInstanceId)return void v(p(e.row.messageInstanceId))},g[0]=v,g[1]=e):e=g[1];let f=e;return g[2]===Symbol.for("react.memo_cache_sentinel")?(n={mt:3},g[2]=n):n=g[2],g[3]===Symbol.for("react.memo_cache_sentinel")?(s={border:"none"},g[3]=s):s=g[3],g[4]===Symbol.for("react.memo_cache_sentinel")?(l={right:["action"]},g[4]=l):l=g[4],g[5]===Symbol.for("react.memo_cache_sentinel")?(a=[{field:"InstanceStatus",type:"string",headerName:"Status",placeholder:"10",numeric:!1,width:130,disablePadding:!0,getPropValue:eo},{field:"BusinessName",type:"string",headerName:"Business",placeholder:"10",numeric:!1,disablePadding:!0,getPropValue:ec},{field:"Recipient",type:"string",headerName:"Recipient",placeholder:"10",width:250,numeric:!1,disablePadding:!0,getPropValue:ed},{field:"EmailSubject",type:"string",headerName:"Subject",placeholder:"10",numeric:!1,disablePadding:!0,getPropValue:eu},{field:"Job.JobNumber",type:"string",headerName:"Job",placeholder:"10",filterable:!1,numeric:!1,width:100,disablePadding:!0,getPropValue:em},{field:"Invoice.InvoiceNumber",type:"string",headerName:"Invoice",placeholder:"10",filterable:!1,numeric:!1,width:100,disablePadding:!0,getPropValue:eh},{field:"MessageTemplateName",type:"string",headerName:"Template",placeholder:"10",numeric:!1,disablePadding:!0,getPropValue:eg},{field:"Channel",type:"string",headerName:"Channel",placeholder:"10",numeric:!1,width:100,disablePadding:!0,getPropValue:ep},{field:"SenderEmail",type:"string",headerName:"Sender",placeholder:"10",numeric:!1,hide:!0,disablePadding:!0,getPropValue:ex},{field:"Sent",type:"string",headerName:"Sent On",placeholder:"10",numeric:!1,disablePadding:!0,getPropValue:ev},{field:"Created",type:"string",headerName:"Created On",placeholder:"10",numeric:!1,disablePadding:!0,getPropValue:eb}],g[5]=a):a=g[5],g[6]===Symbol.for("react.memo_cache_sentinel")?(o={field:"Created",sort:"desc"},g[6]=o):o=g[6],g[7]!==f||g[8]!==b?(c=(0,t.jsx)(h.A,{objectName:"MessageInstance",defaultPageSize:20,tableId:"message-instance-table-admin",style:s,checkboxSelection:!1,refreshDataToken:b,onRowClick:f,detailPanelEnabled:!0,disableHeaderFilters:!0,getDetailPanelContent:ea,mergePropertyId:"messageInstanceId",pinnedColumns:l,getRowClassName:er,columns:a,defaultDensity:"standard",url:"/v2/MessageInstance/AdminSearch",disableExport:!0,defaultSortModel:o,customNoRowsText:"No message activity found."}),g[7]=f,g[8]=b,g[9]=c):c=g[9],g[10]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)(et,{}
1),g[10]=d):d=g[10],g[11]!==c?(m=(0,t.jsxs)(r.A,{spacing:3,sx:n,children:[c,d]}),g[11]=c,g[12]=m):m=g[12],m};function el(e){return e.messageTemplate.refreshToken}function ea(e){return e.row.content?(0,t.jsx)(o.A,{sx:{p:2,maxHeight:"500px",overflow:"auto",width:"100%",display:"flex",justifyContent:"center"},children:e.row.content&&(0,t.jsx)("div",{style:{width:"100%"},dangerouslySetInnerHTML:{__html:e.row.content}})}):null}function er(e){return"mui-data-grid-clickable"}function eo(e){return(0,t.jsx)(P,{status:e.instanceStatus,activityStatus:e.latestActivityStatus,channel:e.channel,highLevelOnly:!0})}function ec(e){return null!=e.businessName?e.businessName:"-"}function ed(e){return e.customer,e.recipient}function eu(e){return null!=e.emailSubject?e.emailSubject:"-"}function em(e){return null!=e.jobId?"#".concat(e.jobNumber):"-"}function eh(e){return null!=e.invoiceNumber?"#".concat(e.invoiceNumber):"-"}function eg(e){return null!=e.messageTemplateName?e.messageTemplateName:"-"}function ep(e){return null!=e.channel?e.channel:"-"}function ex(e){return null!=e.senderEmail?e.senderEmail:"-"}function ev(e){return null!=e.sent?(0,es.Gl)(d()(e.sent),es.LN.NUMERIC_DATE_TIME):"-"}function eb(e){return null!=e.created?(0,es.Gl)(d()(e.created),es.LN.NUMERIC_DATE_TIME):"-"}var ef=s(15086),ey=s(89783);let ej=()=>{let e,n,s=(0,i.c)(2);return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(ef.A,{title:"Message Activity",icon:(0,t.jsx)(a.L,{size:20})}),s[0]=e):e=s[0],s[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsxs)(ey.A,{children:[e,(0,t.jsx)(l.A,{maxWidth:"xl",children:(0,t.jsx)(ei,{})})]}),s[1]=n):n=s[1],n}},80803:(e,n,s)=>{"use strict";s.d(n,{A:()=>c});var t=s(6029),i=s(75155),l=s(95344),a=s(22350),r=s(29040);s(55729);var o=s(32195);let c=e=>{let n,s,c,d,u,m,h,g,p,x,v,b,f,y,j,A,w,S=(0,i.c)(35);S[0]!==e?({alertKey:c,severity:h,children:d,variant:x,sx:g,preventClose:m,additionalActions:s,wrapper:n,wrapperProps:p,...u}=e,S[0]=e,S[1]=n,S[2]=s,S[3]=c,S[4]=d,S[5]=u,S[6]=m,S[7]=h,S[8]=g,S[9]=p,S[10]=x):(n=S[1],s=S[2],c=S[3],d=S[4],u=S[5],m=S[6],h=S[7],g=S[8],p=S[9],x=S[10]),S[11]!==g?(v=void 0===g?{}:g,S[11]=g,S[12]=v):v=S[12];let _=v;S[13]!==p?(b=void 0===p?{}:p,S[13]=p,S[14]=b):b=S[14];let I=b,[N,C]=(0,o.A)("ha_"+c,!0);if(void 0===c)throw Error("key is required for HidableAlert");if(!N)return null;let P=s&&s;S[15]!==m||S[16]!==C?(f=!m&&(0,t.jsx)(l.A,{color:"primary",size:"small",onClick:()=>{C(!1)},children:(0,t.jsx)(r.X,{})}),S[15]=m,S[16]=C,S[17]=f):f=S[17],S[18]!==P||S[19]!==f?(y=(0,t.jsxs)(t.Fragment,{children:[P,f]}),S[18]=P,S[19]=f,S[20]=y):y=S[20],S[21]===Symbol.for("react.memo_cache_sentinel")?(j={whiteSpace:"nowrap"},S[21]=j):j=S[21],S[22]!==_?(A={"& .MuiButtonBase-root":j,..._},S[22]=_,S[23]=A):A=S[23],S[24]!==d||S[25]!==u||S[26]!==h||S[27]!==y||S[28]!==A||S[29]!==x?(w=(0,t.jsx)(a.A,{severity:h,variant:x,action:y,sx:A,...u,children:d}),S[24]=d,S[25]=u,S[26]=h,S[27]=y,S[28]=A,S[29]=x,S[30]=w):w=S[30];let k=w;if(n){let e;return S[31]!==n||S[32]!==k||S[33]!==I?(e=(0,t.jsx)(n,{...I,children:k}),S[31]=n,S[32]=k,S[33]=I,S[34]=e):e=S[34],e}return k}}},e=>{e.O(0,[1474,8600,9664,3652,7874,3834,2179,4100,6593,636,8792],()=>e(e.s=40912)),_N_E=e.O()}]);
2//# sourceMappingURL=message-activity-c0baf2efba77b57a.js.map

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.