PageSourceSearch

https://www.karispizza.fi/assets/SupportMailPage-310295bc.js

js karispizza.fi collected 2026-10-03 02:48:07 UTC 20,261 bytes, 1 lines download raw bytes

1import{j as e}from"./vendor-radix-08a60bdd.js";import{r as s}from"./vendor-react-9016e4a2.js";import{s as a,x as t,y as r,W as l,B as i,I as n}from"./index-06245da3.js";import{ak as o,bh as c,bG as d,bH as m,R as u,a$ as p,O as x,aa as g,bI as h,aE as f,y as j,bJ as b,bK as y,bL as _,ay as w,n as v}from"./vendor-icons-f2656d21.js";import"./vendor-supabase-36eb0853.js";import"./vendor-capacitor-43d743f6.js";import"./vendor-motion-a26fe6c4.js";const N={async listAccounts(){const{data:e,error:s}=await a.from("support_mail_accounts").select("id, email_address, display_name, is_active, last_synced_at, last_run_at, last_run_scanned, last_run_inserted, last_error, signature_html").order("email_address");if(s)throw s;return e??[]},async listAliases(){const{data:e,error:s}=await a.from("support_mail_messages").select("alias_address").not("alias_address","is",null).order("received_at",{ascending:!1}).limit(1e3);if(s)throw s;return[...new Set((e??[]).map(e=>e.alias_address))].sort()},async listMessages({alias:e,category:s="inbox",unreadOnly:t,search:r,limit:l=50,offset:i=0}={}){let n=a.from("support_mail_messages").select("id, account_id, subject, from_address, from_name, to_address, alias_address, category, summary, received_at, has_attachments, is_read, translated_lang").order("received_at",{ascending:!1}).range(i,i+l);if(n="reports"===s?n.in("category",["dmarc","system"]):n.eq("category",s),e&&(n=n.eq("alias_address",e)),t&&(n=n.eq("is_read",!1)),r?.trim()){const e=r.trim().replaceAll("%","\\%").replaceAll(","," ");n=n.or(`subject.ilike.%${e}%,from_address.ilike.%${e}%,summary.ilike.%${e}%`)}const{data:o,error:c}=await n;if(c)throw c;const d=o??[];return{messages:d.slice(0,l),hasMore:d.length>l}},async unreadCount(){const{count:e,error:s}=await a.from("support_mail_messages").select("id",{count:"exact",head:!0}).eq("is_read",!1).eq("category","inbox");if(s)throw s;return e??0},async setRead(e,s){const{error:t}=await a.from("support_mail_messages").update({is_read:s}).eq("id",e);if(t)throw t},async getContent(e){const{data:s,error:t}=await a.functions.invoke("zoho-mail-sync",{body:{action:"content",message_id:e}});if(t)throw t;if(s?.error)throw new Error(s.error);return s?.content??""},async triggerSync(){const{data:e,error:s}=await a.functions.invoke("zoho-mail-sync",{body:{}});if(s)throw s;if(e?.error)throw new Error(e.error);return e},async translate(e,s="tr"){const{data:t,error:r}=await a.functions.invoke("zoho-mail-sync",{body:{action:"translate",message_id:e,target_lang:s}});if(r)throw r;if(t?.error)throw new Error(t.error);return t},async translateText(e,s="fi"){const{data:t,error:r}=await a.functions.invoke("zoho-mail-sync",{body:{action:"translate_text",text:e,target_lang:s}});if(r)throw r;if(t?.error)throw new Error(t.error);return t},async sendReply({fromEmail:e,to:s,subject:t,html:r}){const{data:l,error:i}=await a.functions.invoke("zoho-mail-sync",{body:{action:"send",from_email:e,to:s,subject:t,html:r}});if(i)throw i;if(l?.error)throw new Error(l.error);return l}},k="__all__",M=["[email protected]","[email protected]","[email protected]","[email protected]","[email protected]"],z="h-9 rounded-md border border-zinc-700 bg-zinc-900 px-2 text-sm text-zinc-200 focus:outline-none focus:ring-1 focus:ring-orange-500",S="w-full rounded-md border border-zinc-700 bg-zinc-900 px-3 py-2 text-sm text-zinc-200 focus:outline-none focus:ring-1 focus:ring-orange-500",C=e=>{if(!e)return"";const s=new Date(e),a=new Date;return s.toDateString()===a.toDateString()?s.toLocaleTimeString("fi-FI",{hour:"2-digit",minute:"2-digit"}):s.toLocaleDateString("fi-FI",{day:"numeric",month:"numeric"})},T=e=>e?new Date(e).toLocaleString("fi-FI",{dateStyle:"short",timeStyle:"short"}):"—",$=e=>String(e??"").replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;"),F=({html:a})=>{const t=s.useRef(null);return e.jsx("iframe",{ref:t,title:"mail-body",sandbox:"allow-same-origin allow-popups allow-popups-to-escape-sandbox",onLoad:()=>{try{const e=t.current?.contentDocument?.body?.scrollHeight;e&&(t.current.style.height=`${Math.min(e+32,4e3)}px`)}catch{}},srcDoc:`<base target="_blank"><style>body{font-family:system-ui,sans-serif;font-size:14px;margin:16px;background:#fff;color:#111;word-break:break-word}img{max-width:100%;height:auto}</style>${a}`,className:"w-full rounded-md bg-white",style:{height:"320px",border:0}})},E=()=>{const{t:a}=t(),{toast:E}=r(),[A,R]=s.useState([]),[D,L]=s.useState([]),[I,q]=s.useState([]),[H,O]=s.useState(!1),[Q,B]=s.useState(!0),[P,G]=s.useState(!1),[J,K]=s.useState("inbox"),[U,W]=s.useState(k),[V,X]=s.useState(!1),[Y,Z]=s.useState(""),[ee,se]=s.useState(""),[ae,te]=s.useState(null),[re,le]=s.useState(null),[ie,ne]=s.useState(null),[oe,ce]=s.useState(null),[de,me]=s.useState(!1),[ue,pe]=s.useState(!1),[xe,ge]=s.useState(null),[he,fe]=s.useState(!1),[je,be]=s.useState(!1),ye=s.useRef(null),[_e,we]=s.useState(null),ve=s.useRef(0),Ne=s.useCallback(()=>{N.unreadCount().then(we).catch(e=>l({category:"support_mail",code:"unread_count_failed",summary:e.message,error:e}))},[]),ke=s.useCallback(async()=>{try{const[e,s]=await Promise.all([N.listAccounts(),N.listAliases()]);R(e),L(s)}catch(e){l({category:"support_mail",code:"accounts_load_failed",summary:e.message,error:e})}},[]),Me=s.useCallback(async(e=0,s=!0)=>{s&&B(!0);try{const{messages:a,hasMore:t}=await N.listMessages({alias:U===k?void 0:U,category:J,unreadOnly:"inbox"===J&&V,search:Y,limit:50,offset:e});q(e=>s?a:[...e,...a]),O(t),s&&Ne()}catch(t){l({category:"support_mail",code:"messages_load_failed",summary:t.message,error:t}),E({title:a("supportMail.loadFailed"),description:t.message,variant:"destructive"})}finally{B(!1)}},[U,J,V,Y,a,E,Ne]);s.useEffect(()=>{ke()},[ke]),s.useEffect(()=>{Me(0,!0)},[Me]);const ze=e=>{const s=(e?.subject||"").replace(/^((re|ynt|vs|sv|aw|fwd|vl)\s*:\s
1*)+/i,"").trim();e||te(null),ge({fromEmail:e?.alias_address||"[email protected]",to:e?.from_address||"",subject:e&&s?`Re: ${s}`:"",draft:"",finalText:null,includeQuote:!!e,includeSignature:!0,original:e||null,originalHtml:e&&re||""})},Se=A.find(e=>e.signature_html)?.signature_html||"",Ce=async e=>{if(xe?.draft?.trim()){fe(!0);try{const s=await N.translateText(xe.draft.trim(),e);ge(e=>({...e,finalText:s.translated}))}catch(s){l({category:"support_mail",code:"draft_translate_failed",summary:s.message,error:s}),E({title:a("supportMail.translateFailed"),description:s.message,variant:"destructive"})}finally{fe(!1)}}},Te=_e??("inbox"===J?I.filter(e=>!e.is_read).length:0),$e=A.filter(e=>e.last_error),Fe=xe&&xe.to&&xe.subject&&(xe.finalText??xe.draft??"").trim(),Ee=!(!ae&&!xe),Ae=[...new Set([xe?.fromEmail,...M,...D])].filter(Boolean),Re=[{key:"inbox",label:a("supportMail.tabInbox"),icon:o},{key:"sent",label:a("supportMail.tabSent"),icon:c},{key:"reports",label:a("supportMail.tabReports"),icon:d}];return e.jsxs("div",{className:"p-3 md:p-5 flex flex-col gap-3 h-[calc(100vh-5rem)] min-h-[520px]",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 shrink-0",children:[e.jsxs("h1",{className:"text-xl font-bold flex items-center gap-2",children:[e.jsx(o,{className:"w-5 h-5 text-orange-500"}),a("supportMail.title"),Te>0&&e.jsx("span",{className:"text-xs font-semibold bg-orange-600 text-white rounded-full px-2 py-0.5",children:Te})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(i,{variant:"outline",size:"sm",onClick:()=>ze(null),children:[e.jsx(m,{className:"w-4 h-4 mr-1.5"})," ",a("supportMail.newMessage")]}),e.jsx(i,{size:"sm",onClick:async()=>{G(!0);try{const e=await N.triggerSync();if(!1===e?.configured)E({title:a("supportMail.notConfigured"),description:(e.missing_secrets||[]).join(", "),variant:"destructive"});else{const s=(e?.accounts||[]).reduce((e,s)=>e+(s.inserted||0)+(s.sent_inserted||0),0);E({title:a("supportMail.syncDone"),description:a("supportMail.syncNew",{count:s})})}await Promise.all([ke(),Me(0,!0)])}catch(e){l({category:"support_mail",code:"sync_failed",summary:e.message,error:e}),E({title:a("supportMail.syncFailed"),description:e.message,variant:"destructive"})}finally{G(!1)}},disabled:P,className:"bg-orange-600 hover:bg-orange-700",children:e.jsx(u,{className:"w-4 h-4 "+(P?"animate-spin":"")})})]})]}),$e.length>0&&e.jsx("div",{className:"rounded-lg border border-amber-500/30 bg-amber-500/5 p-2.5 text-xs text-amber-400 shrink-0",children:$e.map(s=>e.jsxs("div",{className:"truncate",title:s.last_error,children:[e.jsx(p,{className:"w-3.5 h-3.5 inline mr-1"}),s.email_address,": ",s.last_error]},s.id))}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2 shrink-0",children:[e.jsx("div",{className:"flex items-center rounded-lg border border-zinc-800 p-0.5 bg-zinc-900/50",children:Re.map(({key:s,label:a,icon:t})=>e.jsxs("button",{onClick:()=>{K(s),te(null),ge(null)},className:"flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-md transition-colors "+(J===s?"bg-zinc-800 text-orange-500 font-semibold":"text-muted-foreground hover:text-foreground"),children:[e.jsx(t,{className:"w-4 h-4"})," ",a]},s))}),e.jsxs("select",{value:U,onChange:e=>W(e.target.value),className:z,children:[e.jsx("option",{value:k,children:a("supportMail.allAccounts")}),D.map(s=>e.jsx("option",{value:s,children:s},s))]}),e.jsx("form",{onSubmit:e=>{e.preventDefault(),Z(ee)},className:"flex items-center",children:e.jsx(n,{value:ee,onChange:e=>se(e.target.value),placeholder:a("supportMail.searchPlaceholder"),className:"h-9 w-44 md:w-56"})}),"inbox"===J&&e.jsxs(i,{variant:V?"default":"outline",size:"sm",onClick:()=>X(e=>!e),children:[e.jsx(x,{className:"w-4 h-4 mr-1"})," ",a("supportMail.unreadOnly")]})]}),e.jsxs("div",{className:"flex flex-1 min-h-0 rounded-xl border border-zinc-800 overflow-hidden bg-zinc-950",children:[e.jsx("div",{className:(Ee?"hidden md:flex":"flex")+" flex-col w-full md:w-[340px] lg:w-[380px] md:border-r border-zinc-800 shrink-0",children:e.jsxs("div",{className:"flex-1 overflow-y-auto",children:[Q?e.jsxs("div",{className:"flex items-center justify-center gap-2 p-8 text-sm text-muted-foreground",children:[e.jsx(g,{className:"w-4 h-4 animate-spin"})," ",a("supportMail.loading")]}):0===I.length?e.jsx("div",{className:"p-8 text-center text-sm text-muted-foreground",children:a("supportMail.empty")}):I.map(s=>{const a="sent"===J?s.to_address:s.from_name||s.from_address,t=ae?.id===s.id;return e.jsxs("button",{onClick:()=>(async e=>{const s=++ve.current;te(e),ge(null),le(null),ne(null),ce(null),pe(!1),me(!1),ye.current?.scrollTo?.({top:0}),e.is_read||"sent"===e.category||(N.setRead(e.id,!0).catch(e=>l({category:"support_mail",code:"set_read_failed",summary:e.message,error:e})),q(s=>s.map(s=>s.id===e.id?{...s,is_read:!0}:s)),"inbox"===e.category&&we(e=>null==e?e:Math.max(0,e-1)));try{const a=await N.getContent(e.id);s===ve.current&&le(a)}catch(a){if(s!==ve.current)return;l({category:"support_mail",code:"content_load_failed",summary:a.message,error:a,context:{message_id:e.id}}),ne(a.message)}})(s),className:"w-full text-left px-3 py-2.5 border-b border-zinc-800/60 transition-colors "+(t?"bg-zinc-800/70":"hover:bg-zinc-900/70"),children:[e.jsxs("div",{className:"flex items-center gap-2",children:[!s.is_read&&"sent"!==s.category&&e.jsx("span",{className:"w-2 h-2 rounded-full bg-orange-500 shrink-0"}),e.jsx("span",{className:"truncate text-sm "+(s.is_read?"text-muted-foreground":"font-semibold"),title:a,children:a}),e.jsx("span",{className:"ml-auto text-[11px] text-muted-foreground shrink-0",children:C(s.received_at)})]}),e.jsxs("div",{className:"truncate text-sm mt-0.5 "+(s.is_read?"text-muted-foreground":""),title:s.subject,children:[s.has_attachments&&e.jsx(h,{className:"w-3 h-3 inline mr-1 opacity-60"}),s.subject||"—"]}),e.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[e.jsx("span",{className:"truncate text-xs text-muted-foreground
1/70",children:s.summary||""}),s.alias_address&&e.jsx("span",{className:"ml-auto shrink-0 text-[10px] text-muted-foreground/60 bg-zinc-800/80 rounded px-1.5 py-0.5",children:s.alias_address.split("@")[0]})]})]},s.id)}),H&&!Q&&e.jsxs("button",{onClick:()=>Me(I.length,!1),className:"w-full py-2.5 text-xs text-muted-foreground hover:text-foreground flex items-center justify-center gap-1",children:[e.jsx(f,{className:"w-3.5 h-3.5"})," ",a("supportMail.loadMore")]})]})}),e.jsx("div",{ref:ye,className:(Ee?"flex":"hidden md:flex")+" flex-col flex-1 min-w-0 overflow-y-auto",children:ae||xe?e.jsxs(e.Fragment,{children:[e.jsxs("button",{onClick:()=>{te(null),ge(null)},className:"md:hidden flex items-center gap-1.5 px-3 py-2 text-sm text-muted-foreground border-b border-zinc-800",children:[e.jsx(j,{className:"w-4 h-4"})," ",a("supportMail.back")]}),ae&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"px-4 pt-4 pb-3 border-b border-zinc-800/60",children:[e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsx("h2",{className:"text-base font-semibold leading-snug min-w-0",title:ae.subject,children:ae.subject||"—"}),e.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:["sent"!==ae.category&&!xe&&e.jsxs(i,{size:"sm",onClick:()=>ze(ae),className:"bg-orange-600 hover:bg-orange-700 h-8",children:[e.jsx(b,{className:"w-4 h-4 mr-1"})," ",a("supportMail.reply")]}),e.jsx(i,{variant:ue?"default":"outline",size:"sm",className:"h-8",disabled:de||null===re,onClick:async()=>{if(oe)pe(e=>!e);else{me(!0);try{const e=await N.translate(ae.id,"tr");ce(e.translated),pe(!0)}catch(e){l({category:"support_mail",code:"translate_failed",summary:e.message,error:e,context:{message_id:ae?.id}}),E({title:a("supportMail.translateFailed"),description:e.message,variant:"destructive"})}finally{me(!1)}}},title:a(ue?"supportMail.showOriginalBtn":"supportMail.translate"),children:de?e.jsx(g,{className:"w-4 h-4 animate-spin"}):e.jsx(y,{className:"w-4 h-4"})}),"sent"!==ae.category&&e.jsx(i,{variant:"ghost",size:"sm",className:"h-8",title:a("supportMail.markUnread"),onClick:()=>{N.setRead(ae.id,!1).catch(e=>l({category:"support_mail",code:"set_unread_failed",summary:e.message,error:e})),q(e=>e.map(e=>e.id===ae.id?{...e,is_read:!1}:e)),"inbox"===ae.category&&we(e=>null==e?e:e+1),te(null),ge(null)},children:e.jsx(_,{className:"w-4 h-4"})}),e.jsx(i,{variant:"ghost",size:"sm",className:"h-8 hidden md:inline-flex",onClick:()=>{te(null),ge(null)},children:e.jsx(w,{className:"w-4 h-4"})})]})]}),e.jsxs("p",{className:"text-xs text-muted-foreground mt-1 truncate",children:[ae.from_name?`${ae.from_name} <${ae.from_address}>`:ae.from_address," → ",ae.to_address||ae.alias_address," · ",T(ae.received_at)]})]}),e.jsx("div",{className:"p-4",children:ue&&oe?e.jsxs("div",{className:"rounded-lg border border-orange-500/25 bg-orange-500/5 p-4",children:[e.jsxs("div",{className:"text-xs font-semibold text-orange-500 mb-2 flex items-center gap-1.5",children:[e.jsx(y,{className:"w-3.5 h-3.5"})," ",a("supportMail.translatedLabel")]}),e.jsx("p",{className:"text-[15px] leading-relaxed whitespace-pre-wrap",children:oe})]}):ie?e.jsxs("div",{className:"text-sm text-red-400 flex items-center gap-2",children:[e.jsx(p,{className:"w-4 h-4"})," ",a("supportMail.contentFailed"),": ",ie]}):null===re?e.jsxs("div",{className:"flex items-center gap-2 p-4 text-sm text-muted-foreground",children:[e.jsx(g,{className:"w-4 h-4 animate-spin"})," ",a("supportMail.loading")]}):re?e.jsx(F,{html:re}):e.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-wrap",children:ae.summary||a("supportMail.noContent")})})]}),xe&&e.jsxs("div",{className:"px-4 pb-4 space-y-3 "+(ae?"border-t border-zinc-800/60 pt-4":"pt-4"),children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h3",{className:"text-sm font-semibold flex items-center gap-1.5",children:xe.original?e.jsxs(e.Fragment,{children:[e.jsx(b,{className:"w-4 h-4 text-orange-500"})," ",a("supportMail.replyTitle")]}):e.jsxs(e.Fragment,{children:[e.jsx(m,{className:"w-4 h-4 text-orange-500"})," ",a("supportMail.newMessage")]})}),e.jsx(i,{variant:"ghost",size:"sm",className:"h-7",onClick:()=>ge(null),disabled:je,children:e.jsx(w,{className:"w-4 h-4"})})]}
1),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-[190px_1fr] gap-2",children:[e.jsx("select",{value:xe.fromEmail,onChange:e=>ge(s=>({...s,fromEmail:e.target.value})),className:z,title:a("supportMail.replyFrom"),children:Ae.map(s=>e.jsx("option",{value:s,children:s},s))}),e.jsx(n,{value:xe.to,onChange:e=>ge(s=>({...s,to:e.target.value})),placeholder:a("supportMail.replyToLbl"),className:"h-9"})]}),e.jsx(n,{value:xe.subject,onChange:e=>ge(s=>({...s,subject:e.target.value})),placeholder:a("supportMail.replySubject"),className:"h-9"}),e.jsx("textarea",{value:xe.draft,onChange:e=>ge(s=>({...s,draft:e.target.value})),rows:5,autoFocus:!0,placeholder:a("supportMail.replyBodyPlaceholder"),className:S}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs(i,{variant:"outline",size:"sm",disabled:he||!xe.draft.trim(),onClick:()=>Ce("fi"),children:[he?e.jsx(g,{className:"w-4 h-4 mr-1.5 animate-spin"}):e.jsx(y,{className:"w-4 h-4 mr-1.5"}),a("supportMail.translateToFi")]}),e.jsxs(i,{variant:"outline",size:"sm",disabled:he||!xe.draft.trim(),onClick:()=>Ce("en"),children:[e.jsx(y,{className:"w-4 h-4 mr-1.5"})," ",a("supportMail.translateToEn")]}),null===xe.finalText&&e.jsx("span",{className:"text-xs text-muted-foreground",children:a("supportMail.sendAsIsHint")})]}),null!==xe.finalText&&e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"text-xs font-medium text-orange-500 flex items-center gap-1.5",children:[e.jsx(v,{className:"w-3.5 h-3.5"})," ",a("supportMail.finalTextLabel")]}),e.jsx("textarea",{value:xe.finalText,onChange:e=>ge(s=>({...s,finalText:e.target.value})),rows:5,className:`${S} border-orange-500/40`})]}),e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-xs text-muted-foreground",children:[xe.original&&e.jsxs("label",{className:"flex items-center gap-1.5 cursor-pointer select-none",children:[e.jsx("input",{type:"checkbox",checked:xe.includeQuote,onChange:e=>ge(s=>({...s,includeQuote:e.target.checked})),className:"accent-orange-600"}),a("supportMail.includeQuote")]}),Se&&e.jsxs("label",{className:"flex items-center gap-1.5 cursor-pointer select-none",children:[e.jsx("input",{type:"checkbox",checked:xe.includeSignature,onChange:e=>ge(s=>({...s,includeSignature:e.target.checked})),className:"accent-orange-600"}),a("supportMail.includeSignature")]})]}),e.jsx(i,{onClick:async()=>{const e=(xe.finalText??xe.draft).trim();if(xe?.to&&xe?.subject&&e){be(!0);try{const s=e.split(/\n{2,}/).map(e=>`<p>${$(e).replaceAll("\n","<br>")}</p>`).join(""),t=xe.includeQuote&&xe.original?`\n<br><div style="border-left:2px solid #cccccc;padding-left:12px;color:#555555;font-size:13px">\n<p>${$(T(xe.original.received_at))} ${$(xe.original.from_address||"")} kirjoitti:</p>\n${xe.originalHtml||`<p>${$(xe.original.summary||"")}</p>`}\n</div>`:"",r=`<div style="font-family:system-ui,sans-serif;font-size:15px;color:#1a1a1a;line-height:1.6">${s}${xe.includeSignature&&Se?Se:""}${t}</div>`,l=await N.sendReply({fromEmail:xe.fromEmail,to:xe.to,subject:xe.subject,html:r});E({title:a("supportMail.sentOk"),description:`${xe.to} · ${l?.transport||""}`}),ge(null),Me(0,!0)}catch(s){l({category:"support_mail",code:"send_failed",summary:s.message,error:s}),E({title:a("supportMail.sendFailed"),description:s.message,variant:"destructive"})}finally{be(!1)}}},disabled:je||!Fe,className:"bg-orange-600 hover:bg-orange-700",children:je?e.jsxs(e.Fragment,{children:[e.jsx(g,{className:"w-4 h-4 mr-2 animate-spin"})," ",a("supportMail.sending")]}):e.jsxs(e.Fragment,{children:[e.jsx(c,{className:"w-4 h-4 mr-2"})," ",null!==xe.finalText?a("supportMail.sendTranslated"):a("supportMail.send")]})})]}),xe.includeSignature&&Se&&e.jsx("div",{className:"rounded-md bg-white p-3",dangerouslySetInnerHTML:{__html:Se}})]})]}):e.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-muted-foreground",children:[e.jsx(x,{className:"w-10 h-10 opacity-30"}),e.jsx("p",{className:"text-sm",children:a("supportMail.selectMessage")})]})})]})]})};export{E 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.