1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`4182ab339d039ffabebd471a71804e77a4b59832`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`bc977703-8ed9-4ac9-8ea9-7394e661fd6b`,e._sentryDebugIdIdentifier=`sentry-dbid-bc977703-8ed9-4ac9-8ea9-7394e661fd6b`)}catch{}})();import"./rolldown-runtime-lonLf6EV.js";import{c as e,s as t}from"./vendor-pdf-C3hlokKf.js";import{t as n}from"./api-error-DJcmxRo4.js";import{t as r}from"./circle-check-big-xz-YkquP.js";import{t as i}from"./circle-x-Crdhb3uG.js";import{t as a}from"./hash-95T58aXG.js";import{t as o}from"./mail-wZmpZd_-.js";import{t as s}from"./badge-DN3tDxfy.js";import{i as c}from"./startOfDay-lY6-2suT.js";import{t as l}from"./isSameDay-D4zrqNsJ.js";import{n as u,r as d,t as f}from"./subDays-BWAdiM7v.js";import{t as p}from"./intlFormatDistance-DUnhwAmn.js";import{t as m}from"./isSameYear-0GaLRRzV.js";var h=1;function g(e,t){return t instanceof n&&(t.status===403||t.status===404)?!1:e<h}function _(e,t){return m(c(t?.in||e,e),d(t?.in||e))}function v(e,t){return l(c(t?.in||e,e),f(d(t?.in||e),1))}e();var y=t(),b=/^(?<name>[^<]+)<[^<>]+>$/;function x(e){if(typeof e!=`string`)return;let t=e.trim();return t&&t.toLowerCase()!==`nil`?t:void 0}function S(e){let{communication_metadata:t,origin:n,recipient:r}=e;try{let e=JSON.parse(r.replaceAll(`'`,`"`)),t=e.name&&e.email?`${e.name} (${e.email})`:e.name??e.email;if(t)return t}catch{}return x(t?.recipient_name)||(n===`whatsapp_group`?x(t?.whatsapp_group_name)??`Group ${String(t?.whatsapp_group_id)}`:n===`slack`?x(t?.display_name)??r:n===`email`&&(b.exec(r)?.groups?.name)?.trim().replaceAll(/['"]/g,``)||r)}function C(e,t=`sm`){let n=t===`sm`?`w-3.5 h-3.5`:`w-4 h-4`;switch(e){case`email`:return(0,y.jsx)(o,{className:n});case`whatsapp`:case`whatsapp_group`:return(0,y.jsx)(`img`,{src:`/tool_icons/whatsapp-outline-icon.svg`,alt:`WhatsApp`,className:`${n} dark:brightness-0 dark:invert ${t===`md`?`opacity-70`:``}`});case`slack`:return(0,y.jsx)(a,{className:n});default:return(0,y.jsx)(o,{className:n})}}function w(e,t){switch(e){case`delivered`:case`sent`:return(0,y.jsxs)(s,{variant:`secondary`,className:`h-4 border-0 bg-green-100 px-1.5 text-xs text-green-800 dark:bg-green-900 dark:text-green-200`,children:[(0,y.jsx)(r,{className:`mr-0.5 size-2.5`}),t(`delivered`)]});case`failed`:return(0,y.jsxs)(s,{variant:`secondary`,className:`h-4 border-0 bg-red-100 px-1.5 text-xs text-red-800 dark:bg-red-900 dark:text-red-200`,children:[(0,y.jsx)(i,{className:`mr-0.5 size-2.5`}),t(`failed`)]});default:return null}}function T(e,t){if(u(e)||v(e)){let n=p(e,new Date,{unit:`day`,locale:t});return n.charAt(0).toUpperCase()+n.slice(1)}return new Intl.DateTimeFormat(t,{month:`long`,day:`numeric`,year:_(e)?void 0:`numeric`}).format(e)}export{v as a,w as i,S as n,g as o,C as r,T as t};
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.