@remit/web-client-dist 0.0.532 → 0.0.534
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{BriefPane-B-DbKb34.js → BriefPane-CZHgZOeE.js} +1 -1
- package/assets/{CalendarComposePane-qouJ2ac1.js → CalendarComposePane-KQDDixVS.js} +1 -1
- package/assets/{CalendarComposeSeed-C-Fjb-DN.js → CalendarComposeSeed-BQXg7hiq.js} +1 -1
- package/assets/{CalendarShell-CvwKFWY4.js → CalendarShell-DeAE3xG-.js} +1 -1
- package/assets/{EmptyState-CbLe8RyH.js → EmptyState-CAygw2df.js} +1 -1
- package/assets/{ErrorState-DeHr3dTk.js → ErrorState-CBn3eXC4.js} +1 -1
- package/assets/{FlaggedPane-C8ICa9mB.js → FlaggedPane-CPYQEhYe.js} +1 -1
- package/assets/{FullCompose-CjmuKjm2.js → FullCompose-BhjY2rBc.js} +1 -1
- package/assets/MailListHeader-ahpW-KQm.js +7 -0
- package/assets/{MailNav-B3ulC_0x.js → MailNav-CYKM837T.js} +1 -1
- package/assets/{MailShell-OfaD4UcO.js → MailShell-C2alwzhI.js} +1 -1
- package/assets/{MailViewChrome-CdYPg7kW.js → MailViewChrome-3whe0H0O.js} +1 -1
- package/assets/MailboxPane-Do_cXk5b.js +1 -0
- package/assets/{NavMenuButton-DEpXlqD-.js → NavMenuButton-BDkzI82f.js} +1 -1
- package/assets/{OnboardingWizard-0WVEm1SL.js → OnboardingWizard-eL5tltsQ.js} +1 -1
- package/assets/{OpenCalendarEvent-D_-F4qAI.js → OpenCalendarEvent-Czzt5HyA.js} +1 -1
- package/assets/{OutboxPane-DAPpYoE_.js → OutboxPane-Cpqm5cXU.js} +1 -1
- package/assets/_calendarObjectId-BomDVIta.js +1 -0
- package/assets/_mailboxId-DvT7tlXv.js +1 -0
- package/assets/_messageId-BnwCrPKR.js +1 -0
- package/assets/_messageId-HEX7i7Db.js +1 -0
- package/assets/_messageId-PRD2Y87U.js +1 -0
- package/assets/_outboxMessageId-DPtl3hhF.js +1 -0
- package/assets/_recurrenceId-BSjmkvUl.js +1 -0
- package/assets/_threadId-2_lvahdM.js +1 -0
- package/assets/_threadId-BE2sMdgt.js +1 -0
- package/assets/_threadId-nPqEgYUv.js +1 -0
- package/assets/{_view._date-Bg-jBWJ2.js → _view._date-DtY_pDLH.js} +1 -1
- package/assets/{accounts-BNI_QMwv.js → accounts-DGl_f2TX.js} +1 -1
- package/assets/{advanced-AWE93czY.js → advanced-DT38-BYK.js} +3 -3
- package/assets/{appearance-DAI7zZuL.js → appearance-CyTsIBnr.js} +1 -1
- package/assets/{attachment-file-B1bTtN7l.js → attachment-file-Dk4liWRC.js} +1 -1
- package/assets/{attendee-row-B4trWaMp.js → attendee-row-3wK_2c95.js} +1 -1
- package/assets/{avatar-BeXqEG8p.js → avatar-D9DseVRI.js} +1 -1
- package/assets/{bottom-sheet-CbN20e5D.js → bottom-sheet-BCZMocAw.js} +1 -1
- package/assets/brief-Bq_2Wi1e.js +1 -0
- package/assets/{brief-Cw2xFjmS.js → brief-DtQ5tvgz.js} +1 -1
- package/assets/{browser-ponyfill-wX3nkieC.js → browser-ponyfill-CngSpPfr.js} +1 -1
- package/assets/{bug-GWDqtP-7.js → bug-D2WNwvnj.js} +1 -1
- package/assets/{calendar-Mnp3Neao.js → calendar-CxGr5eM5.js} +1 -1
- package/assets/{calendar-color-CkDge1Jd.js → calendar-color-Cb66dLon.js} +1 -1
- package/assets/{calendar-event-chip-D7Csrx0j.js → calendar-event-chip-CGUxx2YM.js} +1 -1
- package/assets/{calendars-CVfRnpqj.js → calendars-DE9bdLV7.js} +1 -1
- package/assets/{card-CIAdkzXA.js → card-D_xwnrF4.js} +1 -1
- package/assets/chevron-left-Vm4yWDnh.js +1 -0
- package/assets/{circle-check-B9V_jnPt.js → circle-check-CpgoQK4W.js} +1 -1
- package/assets/{circle-check-big-BqKDZ3Q_.js → circle-check-big-ClQtus59.js} +1 -1
- package/assets/{circle-help-BxPqzlGX.js → circle-help-BswI1R-U.js} +1 -1
- package/assets/{clock-VKZRK796.js → clock-DVJtDwwB.js} +1 -1
- package/assets/compose._-_outboxMessageId_-Bg-HCHsY.js +1 -0
- package/assets/compose._-_outboxMessageId_-DXSi0hVR.js +1 -0
- package/assets/compose._-_outboxMessageId_-DqsWpy2a.js +1 -0
- package/assets/compose._-_outboxMessageId_-Dr5bUTNl.js +1 -0
- package/assets/config-import-CEKP7Ilr.js +1 -0
- package/assets/{confirm-dialog-jQWOUr73.js → confirm-dialog-9cRrTBos.js} +1 -1
- package/assets/{copy-Dhu6Zdn5.js → copy-BvnD0ojH.js} +1 -1
- package/assets/{credential-steps-BMoVlEPM.js → credential-steps-CytBMkrH.js} +1 -1
- package/assets/{download-2kd2WUv5.js → download-CW_n6fZz.js} +1 -1
- package/assets/{file-json-ND_vvGBa.js → file-json-BK6EOY18.js} +1 -1
- package/assets/{filters-BCMnnaCv.js → filters-epXOW6vF.js} +1 -1
- package/assets/flagged-C3M8MbNb.js +1 -0
- package/assets/{flagged-CJbDq0uf.js → flagged-DPN50F5x.js} +1 -1
- package/assets/{folders-V-dVJDus.js → folders-DXWLkKcS.js} +1 -1
- package/assets/{format-B7kZHooA.js → format-DeaY-xDg.js} +1 -1
- package/assets/{help-copy-DK-7D875.js → help-copy-BOiu283m.js} +1 -1
- package/assets/{import-CYKzb0bY.js → import-bzouZIk1.js} +1 -1
- package/assets/index-1wjxJezQ.js +1 -0
- package/assets/{index-kBWsgSL1.js → index-B5JTY2vS.js} +4 -4
- package/assets/index-BIiGkNBC.js +1 -0
- package/assets/index-BTXYtXM8.js +1 -0
- package/assets/{index-DqU4XTfz.js → index-BpyFI6Q9.js} +1 -1
- package/assets/index-C5LkCGbb.js +1 -0
- package/assets/{index-8kDZ5Nbh.js → index-CQW0AMqF.js} +4 -4
- package/assets/index-CeAUuTwQ.js +1 -0
- package/assets/{index-SEZpqOSx.css → index-CfknJLRp.css} +1 -1
- package/assets/index-CrYdJDfJ.js +1 -0
- package/assets/index-DUKdh8gT.js +1 -0
- package/assets/index-HEX7i7Db.js +1 -0
- package/assets/index-PRD2Y87U.js +1 -0
- package/assets/{kbd-D4H0AykE.js → kbd-Dfi50KQp.js} +1 -1
- package/assets/{labels-Djr_Imjn.js → labels-CPKaHopG.js} +1 -1
- package/assets/{mail-z5ZuLbER.js → mail-CE7fThih.js} +1 -1
- package/assets/{mail-CD3qDEly.js → mail-DPliu4qu.js} +1 -1
- package/assets/{map-pin-CIJo6NcM.js → map-pin-CeUmMCAe.js} +1 -1
- package/assets/{menu-CSDPUHfq.js → menu-Ci1f8doM.js} +1 -1
- package/assets/{new-DqkOmr0J.js → new-D5MBpSF8.js} +1 -1
- package/assets/onboarding-C-bR1gQc.js +1 -0
- package/assets/{onboarding-completion-BqXlNejL.js → onboarding-completion-DZaCqjgC.js} +1 -1
- package/assets/outbox-BH1uNPbN.js +1 -0
- package/assets/{pencil-Cd4AX53X.js → pencil-Dkt3jubu.js} +1 -1
- package/assets/{refresh-cw-CM0dlacw.js → refresh-cw-BPFRJip0.js} +1 -1
- package/assets/{rich-text-Byz0zxtB.js → rich-text-WNP160M0.js} +1 -1
- package/assets/{rich-text-spellcheck-worker-provider-B1O4OBdp.js → rich-text-spellcheck-worker-provider-3TibMMim.js} +1 -1
- package/assets/{rotate-ccw-MeJyarjq.js → rotate-ccw-DiT8olz-.js} +1 -1
- package/assets/{row-actions-dL-6MXJt.js → row-actions-CoYHOVEd.js} +1 -1
- package/assets/{search-mirror-DXSTVIAm.js → search-mirror-DPLZ2lNl.js} +1 -1
- package/assets/{search-token-index-DwVhD_Ps.js → search-token-index-gvvWsRT3.js} +1 -1
- package/assets/{sections-CHQnT1gv.js → sections-tgbhEzd_.js} +1 -1
- package/assets/{senders-Dd0COHGM.js → senders-CEnQI4br.js} +1 -1
- package/assets/settings-CNqauyAX.js +1 -0
- package/assets/{settings-screen-DhflM5kF.js → settings-screen-GyOQZ0rG.js} +1 -1
- package/assets/shield-check-D7N8PkiB.js +1 -0
- package/assets/{suggested-vips-D3sW9iSx.js → suggested-vips-W-hauJZG.js} +1 -1
- package/assets/{useCalendarData-ZpdXYEEI.js → useCalendarData-CX580hMg.js} +1 -1
- package/assets/{useCalendars-DwzgQIxe.js → useCalendars-DG1ighll.js} +1 -1
- package/assets/{useDebouncedValue-F9ry5FbT.js → useDebouncedValue-DktbrkQM.js} +1 -1
- package/assets/{useFilters-065zdrD3.js → useFilters-B0VI8Jol.js} +1 -1
- package/assets/{useLabels-CSIOGq7q.js → useLabels-BNwr5Fjw.js} +1 -1
- package/assets/{useLayoutTier-BC3fixIj.js → useLayoutTier-lP0kb8sF.js} +1 -1
- package/assets/{useMessageBodyContent-Ddc3tsxr.js → useMessageBodyContent-DmtjPPy_.js} +1 -1
- package/assets/{useQueries-C4FyFPIS.js → useQueries-BACFpwbf.js} +1 -1
- package/assets/{useRefreshControl-jDwAAVSL.js → useRefreshControl-BF5G_03E.js} +1 -1
- package/assets/{useResultFolderIndex-jZoBKfBv.js → useResultFolderIndex-pMtp4zIQ.js} +1 -1
- package/assets/{useSearchTokenContext-CtTpZfrh.js → useSearchTokenContext-dtXTONDy.js} +1 -1
- package/assets/{useSemanticSearch-D8FXnEuv.js → useSemanticSearch-DtVLJ6Lc.js} +1 -1
- package/assets/{useSignature-ahrQ6zYZ.js → useSignature-CXgzk0Ax.js} +1 -1
- package/assets/{window-CgA4ilXA.js → window-LnX_LqdI.js} +1 -1
- package/index.html +2 -2
- package/package.json +1 -1
- package/assets/MailListHeader-DwBQmyCm.js +0 -7
- package/assets/MailboxPane-TByVBODS.js +0 -1
- package/assets/_calendarObjectId-phVd51fB.js +0 -1
- package/assets/_mailboxId-3b_mLzhV.js +0 -1
- package/assets/_messageId-CJqr5kX5.js +0 -1
- package/assets/_messageId-DZ7xcogg.js +0 -1
- package/assets/_messageId-rUt2EvGA.js +0 -1
- package/assets/_outboxMessageId-CLlKwpsf.js +0 -1
- package/assets/_recurrenceId-Dk0s89DA.js +0 -1
- package/assets/_threadId-Cs3angzT.js +0 -1
- package/assets/_threadId-Gtf7VLmY.js +0 -1
- package/assets/_threadId-LMvh3OOU.js +0 -1
- package/assets/brief-BPfDlJbu.js +0 -1
- package/assets/chevron-left-B3DPKF-6.js +0 -1
- package/assets/compose._-_outboxMessageId_-CDnIxTKC.js +0 -1
- package/assets/compose._-_outboxMessageId_-CGVoX0Px.js +0 -1
- package/assets/compose._-_outboxMessageId_-DYCA6X-7.js +0 -1
- package/assets/compose._-_outboxMessageId_-Dj0u96Vj.js +0 -1
- package/assets/config-import-Drv-f-ck.js +0 -1
- package/assets/flagged-CjRHlM4t.js +0 -1
- package/assets/index-6rrwNlJV.js +0 -1
- package/assets/index-CJqr5kX5.js +0 -1
- package/assets/index-CTv9GIuU.js +0 -1
- package/assets/index-CmoVszGA.js +0 -1
- package/assets/index-DHpmlJ6O.js +0 -1
- package/assets/index-DLlZK0wP.js +0 -1
- package/assets/index-DPoS_wXz.js +0 -1
- package/assets/index-DZ7xcogg.js +0 -1
- package/assets/index-DuJvR6zK.js +0 -1
- package/assets/onboarding-D6dchlX9.js +0 -1
- package/assets/outbox-YiSjcqJD.js +0 -1
- package/assets/settings-BKWXi2gA.js +0 -1
- package/assets/shield-check-yirJ7LBD.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r,a1 as Is,bU as ks,bV as Ts,cK as js,B as ct,f as te,U as ws,t as Ne,g as Pt,r as c,Y as Ms,Z as Rs,bo as Es,h as Tt,c as ut,ac as Os,i as jt,cL as As,cB as Ns,I as zs,a6 as Fs,a2 as $t,bO as Ds,bi as Ls,cM as _s,cN as Ps,as as Bt,aX as $s,aY as Bs,q as wt,m as Ws,M as Wt,bl as Ks,G as Vs,bm as qs,bn as Hs,cO as Us,o as Qs,cP as Js,cz as Gs,s as Ys,cQ as Xs,cR as Zs,ch as Kt,cS as Vt,C as qt,ah as en,cT as tn,cU as sn,aj as nn,bx as on}from"./index-kBWsgSL1.js";import{u as rn,p as an,R as ln}from"./useSearchTokenContext-CtTpZfrh.js";import{u as cn,a as un,R as dn}from"./useRefreshControl-jDwAAVSL.js";import{C as Ht,a as Ut,c as Qt,j as hn,M as fn,t as Jt,u as mn,b as gn,d as Gt,e as Yt,f as pn,g as xn,h as bn,r as vn,n as Sn,i as yn,k as Cn,l as In,m as kn,o as Tn,S as jn,p as wn,D as Mn,q as Rn,s as En,v as Xt,w as On,x as An,y as Nn,z as zn,A as Fn,B as Zt,E as Dn,F as Ln,G as _n,H as Pn,I as $n,J as Bn,K as Wn,L as Kn,N as Vn,O as qn,P as zt,Q as Ft,R as Hn,T as Un,U as Qn,V as Jn,W as Gn,X as Yn,Y as Xn,Z as Zn,_ as eo,$ as to,a0 as so,a1 as no,a2 as es,a3 as ts,a4 as ss,a5 as oo,a6 as io,a7 as ro,a8 as ao,a9 as lo,aa as co,ab as uo,ac as ho}from"./MailListHeader-DwBQmyCm.js";import{S as fo,M as mo,a as go,u as po,b as xo}from"./MailViewChrome-CdYPg7kW.js";import{A as Mt}from"./avatar-BeXqEG8p.js";import{c as Qe,d as bo,e as ns}from"./format-B7kZHooA.js";import{c as vo,f as So,a as yo,u as Co}from"./useMessageBodyContent-Ddc3tsxr.js";import{g as Je,i as Io,t as ko,h as To,j as jo,k as wo,l as Mo}from"./search-token-index-DwVhD_Ps.js";import{N as Ro}from"./NavMenuButton-DEpXlqD-.js";import{C as Eo}from"./confirm-dialog-jQWOUr73.js";import{f as Oo}from"./ErrorState-DeHr3dTk.js";import{a as Ao}from"./useLabels-CSIOGq7q.js";import{L as No,r as zo,t as Fo,s as Do,u as Lo}from"./useSemanticSearch-D8FXnEuv.js";import{S as dt}from"./shield-check-yirJ7LBD.js";import{B as _o}from"./bottom-sheet-CbN20e5D.js";import{C as Po}from"./circle-help-BxPqzlGX.js";import{C as $o}from"./circle-check-B9V_jnPt.js";import{u as Bo}from"./useLayoutTier-BC3fixIj.js";import{n as Wo}from"./search-query-Cr_ZXBCp.js";import{u as Ko}from"./sections-CHQnT1gv.js";const Vo=e=>e.toLocaleString(),qo=(e,o)=>{if(e.kind==="unknown")return`Results for “${o}”`;const t=e.value===1?"result":"results";return`${Vo(e.value)} ${t} for “${o}”`};function Ho({query:e,count:o}){return r.jsxs("div",{className:"flex items-center gap-2 border-b border-line bg-surface-sunken/30 px-3 py-2",children:[r.jsx(Is,{className:"size-4 text-fg-muted","aria-hidden":"true"}),r.jsx("span",{className:"text-sm text-fg-muted",children:qo(o,e)})]})}const Uo=({children:e,onRefresh:o,isRefreshing:t})=>ks(Ts)?e:r.jsx(js,{onRefresh:o,isPullable:!t,children:e}),Qo=e=>e===1?"message":"messages";function Jo({count:e,onReview:o,onDismiss:t,actionLabel:s="Review & rescue"}){return r.jsx(ct,{tone:"info",variant:"soft",onDismiss:t,children:r.jsxs("div",{className:"flex flex-col gap-2",children:[r.jsxs("p",{className:"flex items-start gap-2 text-sm text-fg",children:[r.jsx(dt,{className:"mt-0.5 size-4 shrink-0 text-positive","aria-hidden":!0}),r.jsxs("span",{children:[r.jsx("span",{className:"font-semibold text-fg",children:`${e} ${Qo(e)} here`})," ","may not be spam — they're from senders we can verify."]})]}),r.jsx(te,{variant:"primary",size:"sm",onClick:o,className:"self-start",children:s})]})})}const Go=(e,o)=>e==="vip"?"vip":e==="unknown"&&o==="md"?"unknown-pill":"hidden",os=({senderTrust:e,size:o="sm",className:t})=>{const s=Go(e,o);return s==="vip"?r.jsx(ws,{className:Ne("text-warning shrink-0",o==="sm"&&"size-3.5",o==="md"&&"size-4",t),"aria-label":"VIP sender","data-testid":"sender-trust-vip"}):s==="unknown-pill"?r.jsx("span",{className:Ne("inline-flex items-center rounded border border-dashed border-fg-subtle/40 font-medium uppercase tracking-wide text-fg-muted/80 shrink-0","px-2 py-0.5 text-xs",t),title:"First message from this sender","aria-label":"First message from this sender","data-testid":"sender-trust-unknown",children:"new"}):null};function Yo({candidate:e,selected:o,onToggle:t,hideSender:s=!1}){const{senderName:n,senderAddress:i,subject:l,snippet:a,trustReason:u,trustSubReason:d,senderTrust:h}=e;return r.jsxs("label",{className:Ne("flex w-full cursor-pointer items-start gap-3 px-3 py-2.5 text-left transition-colors",s&&"pl-11",o?"bg-positive/10":"bg-surface hover:bg-surface-sunken"),children:[r.jsx(Ht,{className:"mt-0.5",checked:o,onChange:t,"aria-label":`${o?"Deselect":"Select"} ${s?l:`message from ${n}`}`}),!s&&r.jsx(Mt,{name:n,email:i,size:"sm"}),r.jsxs("span",{className:"min-w-0 flex-1",children:[!s&&r.jsxs("span",{className:"flex items-center gap-1.5",children:[r.jsx("span",{className:"truncate text-sm font-medium text-fg",children:n}),h&&r.jsx(os,{senderTrust:h,size:"sm"}),r.jsx("span",{className:"truncate text-2xs text-fg-subtle",children:i})]}),r.jsx("span",{className:"block truncate text-sm text-fg-muted",children:l}),r.jsx("span",{className:"block line-clamp-1 text-xs text-fg-subtle",children:a}),!s&&r.jsxs("span",{className:"mt-1.5 flex flex-wrap items-center gap-1.5",children:[r.jsxs(Pt,{tone:"positive",children:[r.jsx(dt,{className:"size-3","aria-hidden":!0}),u]}),r.jsx("span",{className:"text-2xs text-fg-subtle",children:d})]})]})]})}const Xo=e=>{const o=new Map,t=[];for(const s of e){const n=(s.senderAddress||s.senderName).toLowerCase(),i=o.get(n);if(i){i.messages.push(s);continue}o.set(n,{key:n,senderName:s.senderName,senderAddress:s.senderAddress,trustReason:s.trustReason,trustSubReason:s.trustSubReason,senderTrust:s.senderTrust,messages:[s]}),t.push(n)}return t.map(s=>o.get(s)).sort((s,n)=>n.messages.length-s.messages.length)},Zo=(e,o)=>{const t=e.messages.filter(s=>o.has(s.id)).length;return t===0?"none":t===e.messages.length?"all":"some"},Dt=e=>e===1?"message":"messages";function ei({group:e,selected:o,onToggleGroup:t,onToggleMessage:s}){const[n,i]=c.useState(!1),l=Zo(e,o),a=e.messages.length,u=n?Ms:Rs;return r.jsxs("div",{className:Ne(l!=="none"?"bg-positive/10":"bg-surface"),children:[r.jsxs("div",{className:"flex w-full items-start gap-3 px-3 py-2.5",children:[r.jsx(Ht,{className:"mt-0.5",checked:l==="all",indeterminate:l==="some",onChange:()=>t(e,l!=="all"),"aria-label":`${l==="all"?"Deselect":"Select"} all ${a} ${Dt(a)} from ${e.senderName}`}),r.jsx(Mt,{name:e.senderName,email:e.senderAddress,size:"sm"}),r.jsxs("div",{className:"min-w-0 flex-1",children:[r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx("span",{className:"truncate text-sm font-medium text-fg",children:e.senderName}),e.senderTrust&&r.jsx(os,{senderTrust:e.senderTrust,size:"sm"}),r.jsx("span",{className:"truncate text-2xs text-fg-subtle",children:e.senderAddress})]}),r.jsxs("div",{className:"mt-1.5 flex flex-wrap items-center gap-1.5",children:[r.jsxs(Pt,{tone:"positive",children:[r.jsx(dt,{className:"size-3","aria-hidden":!0}),e.trustReason]}),r.jsx("span",{className:"text-2xs text-fg-subtle",children:e.trustSubReason})]})]}),r.jsxs("button",{type:"button",onClick:()=>i(d=>!d),"aria-expanded":n,className:"flex shrink-0 items-center gap-1 rounded-md px-1.5 py-1 text-2xs text-fg-muted transition-colors hover:bg-surface-sunken hover:text-fg",children:[`${a} ${Dt(a)}`,r.jsx(u,{className:"size-3.5","aria-hidden":!0})]})]}),n&&r.jsx("div",{className:"divide-y divide-line border-t border-line",children:e.messages.map(d=>r.jsx(Yo,{candidate:d,selected:o.has(d.id),onToggle:()=>s(d.id),hideSender:!0},d.id))})]})}const Rt=e=>e===1?"message":"messages",ti=(e,o)=>`Moves ${e===1?"this message":`these ${e} ${Rt(e)}`} out of Spam to ${o} now. Nothing later.`,kt=(e,o)=>e.find(t=>t.id===o)?.label??"Inbox";function si(){return r.jsx(ct,{tone:"info",variant:"soft",children:r.jsx("p",{className:"text-2xs text-fg-muted",children:"We list a message here only when we can confirm the sender is who they say — usually someone you've emailed before, write to often, or a service that consistently checks out. We never guess from words in the subject. Anything we can't confirm stays in Spam."})})}function ni({candidates:e,selected:o,onToggle:t,onToggleGroup:s,onSelectAll:n,onSelectNone:i,onContinue:l,onCancel:a}){const[u,d]=c.useState(!1),h=o.size,g=c.useMemo(()=>Xo(e),[e]);return r.jsxs("div",{className:"flex min-h-0 flex-col",children:[r.jsxs("div",{className:"px-row-inset pb-2 pt-1",children:[r.jsxs("div",{className:"flex items-start justify-between gap-2",children:[r.jsxs("h2",{className:"flex items-center gap-2 text-sm font-semibold text-fg",children:[r.jsx(dt,{className:"size-4 text-positive","aria-hidden":!0}),"Rescue from Spam"]}),r.jsx(te,{variant:"ghost",size:"sm",icon:r.jsx(Po,{className:"size-3.5"}),onClick:()=>d(m=>!m),className:"-mr-1.5 -mt-0.5",children:"Why these?"})]}),r.jsx("p",{className:"mt-1 text-2xs text-fg-subtle",children:"These look safe — from senders we can verify. Uncheck any sender that belongs in Spam, or open a sender to pick individual messages."}),u&&r.jsx("div",{className:"mt-2",children:r.jsx(si,{})})]}),r.jsxs("div",{className:"flex items-center justify-between px-row-inset pb-1.5",children:[r.jsx("span",{className:"text-2xs font-medium text-fg-muted",children:`${h} of ${e.length} selected · ${g.length} ${g.length===1?"sender":"senders"}`}),r.jsxs("span",{className:"flex gap-1",children:[r.jsx(te,{variant:"ghost",size:"sm",onClick:n,children:"Select all"}),r.jsx(te,{variant:"ghost",size:"sm",onClick:i,children:"Select none"})]})]}),r.jsx("div",{className:"min-h-0 flex-1 divide-y divide-line overflow-y-auto border-y border-line",children:g.map(m=>r.jsx(ei,{group:m,selected:o,onToggleGroup:s,onToggleMessage:t},m.key))}),r.jsxs("div",{className:"space-y-2 border-t border-line bg-surface px-row-inset py-3",children:[r.jsx(te,{variant:"primary",onClick:l,className:"h-11 w-full font-semibold",children:`Continue with ${h} ${Rt(h)}`}),r.jsx(te,{variant:"ghost",onClick:a,className:"h-11 w-full",children:"Cancel"})]})]})}function oi({count:e,folders:o,delimiter:t,destination:s,onPick:n,onMove:i,onBack:l}){const[a,u]=c.useState(!1);return r.jsxs("div",{className:"flex min-h-0 flex-col",children:[r.jsxs("div",{className:"px-row-inset pb-2 pt-1",children:[r.jsx("h2",{className:"text-sm font-semibold text-fg",children:"Where should they go?"}),r.jsx("p",{className:"mt-1 text-2xs text-fg-subtle",children:"Pick a folder, then we move them out of Spam."})]}),r.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto px-row-inset py-2",children:a?r.jsx("div",{className:"flex min-h-0 flex-1 overflow-hidden rounded-xl border border-line bg-surface",children:r.jsx(Es,{folders:o,selectedId:s,delimiter:t,onSelect:n,onCancel:()=>u(!1)})}):r.jsxs("div",{className:"rounded-xl border border-line bg-surface-sunken p-3",children:[r.jsx("p",{className:"text-2xs text-fg-subtle",children:"Destination"}),r.jsx("p",{className:"mt-0.5 text-sm font-medium text-fg",children:kt(o,s)}),r.jsx(te,{variant:"ghost",size:"sm",onClick:()=>u(!0),className:"mt-2 px-0",children:"Move to a different folder"})]})}),r.jsxs("div",{className:"space-y-2 border-t border-line bg-surface px-row-inset py-3",children:[r.jsx("p",{className:"text-2xs text-fg-subtle",children:ti(e,kt(o,s))}),r.jsx(te,{variant:"primary",onClick:i,className:"h-11 w-full font-semibold",children:`Move ${e} out of Spam`}),r.jsx(te,{variant:"ghost",onClick:l,className:"h-11 w-full",children:"Back"})]})]})}function ii({count:e,destinationLabel:o,onClose:t}){return r.jsxs("div",{className:"flex min-h-0 flex-col",children:[r.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-3 px-row-inset py-10 text-center",children:[r.jsx($o,{className:"size-10 text-positive","aria-hidden":!0}),r.jsx("p",{className:"text-base font-semibold text-fg",children:`Moved ${e} ${Rt(e)} out of Spam.`}),r.jsx("p",{className:"text-2xs text-fg-subtle",children:`You'll find them in ${o}.`})]}),r.jsx("div",{className:"border-t border-line bg-surface px-row-inset py-3",children:r.jsx(te,{variant:"primary",onClick:t,className:"h-11 w-full font-semibold",children:"Done"})})]})}function ri({open:e,candidates:o,defaultDestinationId:t,availableFolders:s,delimiter:n,onConfirmMove:i,onCancel:l}){const[a,u]=c.useState("review"),[d,h]=c.useState(()=>e?new Set(o.map(k=>k.id)):new Set),[g,m]=c.useState(t),[p,y]=c.useState(0),S=c.useRef(!1);c.useEffect(()=>{e&&!S.current&&(u("review"),h(new Set(o.map(k=>k.id))),m(t),y(0)),S.current=e},[e,o,t]);const I=d.size,b=k=>{h(T=>{const R=new Set(T);return R.has(k)?R.delete(k):R.add(k),R})},x=(k,T)=>{h(R=>{const F=new Set(R);for(const L of k.messages)T?F.add(L.id):F.delete(L.id);return F})},w=()=>{const k=Array.from(d);y(k.length),i(k,g),u("done")};return r.jsxs(_o,{open:e,onClose:l,dismissLabel:"Close rescue",children:[a==="review"&&r.jsx(ni,{candidates:o,selected:d,onToggle:b,onToggleGroup:x,onSelectAll:()=>h(new Set(o.map(k=>k.id))),onSelectNone:()=>h(new Set),onContinue:()=>u("destination"),onCancel:l}),a==="destination"&&r.jsx(oi,{count:I,folders:s,delimiter:n,destination:g,onPick:m,onMove:w,onBack:()=>u("review")}),a==="done"&&r.jsx(ii,{count:p,destinationLabel:kt(s,g),onClose:l})]})}function ai(e){const o=e.toAddresses.join(", ");return{id:e.outboxMessageId,accountId:e.accountId,fromName:e.fromName??e.fromAddress??"Me",fromEmail:e.fromAddress??"",subject:e.subject??"(No subject)",snippet:o?`To: ${o}`:"(No recipients)",timeLabel:Qe(e.updatedAt),isRead:!0}}function li(e){return{id:e.messageId,accountId:e.accountId,fromName:e.fromName??e.fromEmail??"Unknown",fromEmail:e.fromEmail??"",subject:e.subject??"(No subject)",snippet:e.snippet??"",timeLabel:Qe(e.sentDate),isRead:e.isRead,hasAttachment:e.hasAttachment,starred:e.hasStars===!0}}function ci({outboxMessages:e,accountId:o,imapThreads:t}){const s=e.filter(l=>l.status==="draft"&&l.accountId===o).map(ai),n=t.map(li),i=[];return s.length>0&&i.push({id:"remit-drafts",label:"Not yet sent (Remit)",threads:s}),n.length>0&&i.push({id:"imap-drafts",label:"On the server",threads:n}),i}const ui=({label:e,count:o})=>r.jsxs("div",{className:"sticky top-0 z-10 flex items-baseline justify-between border-b border-line bg-surface-sunken px-row-inset py-1",children:[r.jsx("span",{className:"text-2xs font-semibold uppercase tracking-wider text-fg-subtle",children:e}),r.jsx("span",{className:"text-2xs text-fg-subtle tabular-nums",children:o})]}),di=({row:e,isSelected:o,onOpen:t,onDelete:s,isDeleting:n})=>r.jsxs("button",{type:"button",onClick:()=>t(e.id),className:Ne("group",Qt({active:o})),children:[r.jsx(Fs,{className:"size-7 shrink-0 text-fg-muted mt-0.5"}),r.jsx(Ut,{thread:e}),r.jsx("div",{className:"flex items-center gap-1 shrink-0",children:r.jsx("button",{type:"button",onClick:i=>{i.stopPropagation(),s(e.id)},disabled:n,className:"p-1.5 rounded-md text-fg-muted hover:text-danger hover:bg-surface-raised transition-colors opacity-0 group-hover:opacity-100 focus:opacity-100",title:"Delete draft",children:r.jsx($t,{className:"size-3.5"})})})]}),hi=({row:e,isSelected:o,onOpen:t})=>{const s=!e.isRead;return r.jsxs("button",{type:"button",onClick:()=>t(e.id),className:Ne("group",Qt({active:o})),children:[s&&r.jsx("span",{className:"absolute left-1.5 top-1/2 size-1.5 -translate-y-1/2 rounded-full bg-accent"}),r.jsx(Mt,{name:e.fromName,email:e.fromEmail,size:"sm"}),r.jsx(Ut,{thread:e})]})};function fi({accountId:e,selectedMessageId:o,imapThreads:t,title:s,unreadCount:n}){const i=vo(),l=So(),a=Je(),u=Tt(),{data:d}=ut(Os()),h=c.useMemo(()=>ci({outboxMessages:d?.items??[],accountId:e,imapThreads:t}),[d?.items,e,t]),g=jt({...Ns(),onSuccess:()=>{u.invalidateQueries({queryKey:As()})}}),m=S=>{g.mutate({path:{outboxMessageId:S}})},p=S=>{const I=t.find(b=>b.messageId===S)?.threadId;I&&a({threadId:I,messageId:S})},y=h.length===0;return r.jsxs("section",{className:"flex h-full w-full flex-col bg-surface",children:[r.jsxs("header",{className:"flex h-pane-header shrink-0 items-center gap-2 border-b border-line px-row-inset",children:[r.jsx(Ro,{}),r.jsx("h1",{className:"min-w-0 flex-1 truncate text-sm font-semibold text-fg",children:s}),(n??0)>0&&r.jsxs("span",{className:"shrink-0 text-2xs text-fg-subtle tabular-nums",children:[n," unread"]})]}),r.jsx("div",{className:"flex-1 overflow-y-auto",children:y?r.jsxs("div",{className:"flex flex-col items-center justify-center h-full gap-2 text-center px-4",children:[r.jsx(zs,{className:"size-8 text-fg-subtle"}),r.jsx("p",{className:"text-sm font-medium text-fg",children:"No drafts"}),r.jsx("p",{className:"text-xs text-fg-subtle",children:"Messages you start composing will appear here."})]}):h.map(S=>r.jsxs("div",{children:[S.label&&r.jsx(ui,{label:S.label,count:S.threads.length}),r.jsx("div",{className:"divide-y divide-line",children:S.threads.map(I=>S.id==="remit-drafts"?r.jsx(di,{row:I,isSelected:I.id===i,onOpen:l,onDelete:m,isDeleting:g.isPending},I.id):r.jsx(hi,{row:I,isSelected:I.id===o,onOpen:p},I.id))})]},S.id))})]})}const is=e=>e===1?"1 message":`${ns(e)} messages`,mi=e=>({title:"Empty Trash?",description:`${is(e)} ${e===1?"is":"are"} erased from the mail server and cannot be restored.`,confirmLabel:"Empty Trash"}),gi=(e,o={})=>{const{trashFolderLabel:t,staleFolderLabel:s}=o;if(e==="unconfirmed"){const n=bo(0,"unconfirmed",{trashFolderLabel:t});return{headline:n.title,body:n.description,actionLabel:n.confirmLabel}}return e==="stale"?{headline:"Nothing was emptied.",body:s?`The folder you chose for Trash — ${s} — is gone from the mail server.`:"The folder you chose for Trash is gone from the mail server.",actionLabel:"Pick another folder"}:{headline:"Nothing was emptied.",body:"No folder on this account is set as Trash.",actionLabel:"Pick a folder"}};function pi({messageCount:e,isEmptying:o,deletedCount:t,refusalReason:s,trashFolderLabel:n,staleFolderLabel:i,onEmpty:l,onRepair:a,children:u}){const[d,h]=c.useState(!1);if(e<1&&s===void 0&&t===void 0)return r.jsx(r.Fragment,{children:u});const g=s?gi(s,{trashFolderLabel:n,staleFolderLabel:i}):void 0,m=mi(e);return r.jsxs("div",{className:"relative flex h-full min-h-0 flex-col",children:[r.jsx("div",{className:"shrink-0 px-row-inset pt-2",children:r.jsxs("div",{className:"flex flex-col gap-2 rounded-md border border-line px-3 py-2",children:[r.jsxs("div",{className:"flex items-center justify-end gap-2",children:[t!==void 0&&r.jsx("p",{className:"mr-auto text-2xs text-fg-subtle",role:"status",children:`${is(t)} erased from the mail server.`}),r.jsx(te,{variant:"ghost",size:"sm",icon:r.jsx($t,{className:"size-3.5","aria-hidden":!0}),disabled:o||e<1,"aria-busy":o,onClick:()=>h(!0),children:o?"Emptying…":"Empty Trash"})]}),g&&r.jsx(ct,{tone:"warning",variant:"soft",children:r.jsxs("div",{className:"flex flex-col gap-2",children:[r.jsx("p",{className:"font-semibold text-fg",children:g.headline}),r.jsx("p",{className:"text-sm",children:g.body}),r.jsx(te,{variant:"primary",size:"sm",className:"self-start",onClick:a,children:g.actionLabel})]})})]})}),r.jsx("div",{className:"min-h-0 flex-1",children:u}),r.jsx(Eo,{isOpen:d,title:m.title,description:m.description,confirmLabel:m.confirmLabel,destructive:!0,onConfirm:()=>{h(!1),l()},onCancel:()=>h(!1)})]})}function xi(e,o,t){const s=new Array(e);return new Proxy(s,{get(n,i,l){if(typeof i=="string"){const a=i.charCodeAt(0);if(a>=48&&a<=57){const u=+i;if(Number.isInteger(u)&&u>=0&&u<e){let d=n[u];if(!d){const h=o[u*2];d=n[u]={index:u,key:t(u),start:h,size:o[u*2+1],end:h+o[u*2+1],lane:0}}return d}}if(i==="length")return e}return Reflect.get(n,i,l)}})}function Pe(e,o,t){let s=t.initialDeps??[],n,i=!0;function l(){const a=e();return(a.length!==s.length||a.some((d,h)=>s[h]!==d))&&(s=a,n=o(...a),t?.onChange&&!(i&&t.skipInitialOnChange)&&t.onChange(n),i=!1),n}return l.updateDeps=a=>{s=a},l}function Lt(e,o){if(e===void 0)throw new Error("Unexpected undefined");return e}const bi=(e,o)=>Math.abs(e-o)<1.01,vi=(e,o,t)=>{let s;return function(...n){e.clearTimeout(s),s=e.setTimeout(()=>o.apply(this,n),t)}};let Ue;const Ct=()=>{if(Ue!==void 0)return Ue;if(typeof navigator>"u")return Ue=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return Ue=!0;const e=navigator.maxTouchPoints;return Ue=navigator.platform==="MacIntel"&&e!==void 0&&e>0},_t=e=>{const{offsetWidth:o,offsetHeight:t}=e;return{width:o,height:t}},Si=e=>e,yi=e=>{const o=Math.max(e.startIndex-e.overscan,0),s=Math.min(e.endIndex+e.overscan,e.count-1)-o+1,n=new Array(s);for(let i=0;i<s;i++)n[i]=o+i;return n},Ci=(e,o)=>{const t=e.scrollElement;if(!t)return;const s=e.targetWindow;if(!s)return;const n=l=>{const{width:a,height:u}=l;o({width:Math.round(a),height:Math.round(u)})};if(n(_t(t)),!s.ResizeObserver)return()=>{};const i=new s.ResizeObserver(l=>{const a=()=>{const u=l[0];if(u?.borderBoxSize){const d=u.borderBoxSize[0];if(d){n({width:d.inlineSize,height:d.blockSize});return}}n(_t(t))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()});return i.observe(t,{box:"border-box"}),()=>{i.unobserve(t)}},lt={passive:!0},Ii=typeof window>"u"?!0:"onscrollend"in window,ki=(e,o,t)=>{const s=e.scrollElement;if(!s)return;const n=e.targetWindow;if(!n)return;const i=e.options.useScrollendEvent&&Ii;let l=0;const a=i?null:vi(n,()=>o(l,!1),e.options.isScrollingResetDelay),u=g=>()=>{l=t(s),a?.(),o(l,g)},d=u(!0),h=u(!1);return s.addEventListener("scroll",d,lt),i&&s.addEventListener("scrollend",h,lt),()=>{s.removeEventListener("scroll",d),i&&s.removeEventListener("scrollend",h)}},Ti=(e,o)=>ki(e,o,t=>{const{horizontal:s,isRtl:n}=e.options;return s?t.scrollLeft*(n&&-1||1):t.scrollTop}),ji=(e,o,t)=>{if(t.options.useCachedMeasurements){const s=t.indexFromElement(e),n=t.options.getItemKey(s);return t.itemSizeCache.get(n)??t.options.estimateSize(s)}if(o?.borderBoxSize){const s=o.borderBoxSize[0];if(s)return Math.round(s[t.options.horizontal?"inlineSize":"blockSize"])}if(!o){const s=t.indexFromElement(e),n=t.options.getItemKey(s),i=t.itemSizeCache.get(n);if(i!==void 0)return i}return e[t.options.horizontal?"offsetWidth":"offsetHeight"]},wi=(e,{adjustments:o=0,behavior:t},s)=>{var n,i;(i=(n=s.scrollElement)==null?void 0:n.scrollTo)==null||i.call(n,{[s.options.horizontal?"left":"top"]:e+o,behavior:t})},Mi=wi;class Ri{constructor(o){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._flatMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this.elementsCache=new Map,this.now=()=>{var t,s,n;return((n=(s=(t=this.targetWindow)==null?void 0:t.performance)==null?void 0:s.now)==null?void 0:n.call(s))??Date.now()},this.observer=(()=>{let t=null;const s=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(n=>{n.forEach(i=>{const l=()=>{const a=i.target,u=this.indexFromElement(a);if(!a.isConnected){this.observer.unobserve(a);for(const[d,h]of this.elementsCache)if(h===a){this.elementsCache.delete(d);break}return}this.shouldMeasureDuringScroll(u)&&this.resizeItem(u,this.options.measureElement(a,i,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()})}));return{disconnect:()=>{var n;(n=s())==null||n.disconnect(),t=null},observe:n=>{var i;return(i=s())==null?void 0:i.observe(n,{box:"border-box"})},unobserve:n=>{var i;return(i=s())==null?void 0:i.unobserve(n)}}})(),this.range=null,this.setOptions=t=>{var s,n;const i={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Si,rangeExtractor:yi,onChange:()=>{},measureElement:ji,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(const m in t){const p=t[m];p!==void 0&&(i[m]=p)}const l=this.options;let a=null,u=null,d=!1;if(l!==void 0&&l.enabled&&i.enabled&&i.anchorTo==="end"&&this.scrollElement!==null){const m=l.count,p=i.count,y=this.getMeasurements(),S=m>0?((s=y[0])==null?void 0:s.key)??l.getItemKey(0):null,I=m>0?((n=y[m-1])==null?void 0:n.key)??l.getItemKey(m-1):null;if(p!==m||m>0&&p>0&&(i.getItemKey(0)!==S||i.getItemKey(p-1)!==I)){d=!0;const w=m>0?this.getVirtualItemForOffset(this.getScrollOffset())??y[0]:null;w&&(a=[w.key,this.getScrollOffset()-w.start]);const k=i.followOnAppend===!0?"auto":i.followOnAppend||null;k&&p>m&&this.isAtEnd(l.scrollEndThreshold)&&(m===0||i.getItemKey(p-1)!==I)&&(u=k)}}this.options=i,d&&(this.pendingMin=0,this.itemSizeCacheVersion++);let h=!1,g=0;if(a&&this.scrollOffset!==null){const[m,p]=a,y=this.getMeasurements(),{count:S,getItemKey:I}=this.options;let b=0;for(;b<S&&I(b)!==m;)b++;if(b<S){const x=y[b];if(x){const w=x.start+p;w!==this.scrollOffset&&(g=w-this.scrollOffset,this.scrollOffset=w,h=!0)}}}(h||u)&&(this.pendingScrollAnchor=[h?a[0]:null,h?a[1]:0,u,g])},this.notify=t=>{var s,n;(n=(s=this.options).onChange)==null||n.call(s,this,t)},this.maybeNotify=Pe(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const s=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==s){if(this.cleanup(),!s){this.maybeNotify();return}if(this.scrollElement=s,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,l)=>{if(l&&this._intendedScrollOffset===null&&i===this.scrollOffset)return;this._intendedScrollOffset!==null&&Math.abs(i-this._intendedScrollOffset)<1.5&&(i=this._intendedScrollOffset),this._intendedScrollOffset=null,this.scrollAdjustments=0;const a=this.getScrollOffset();this.scrollDirection=l?a===i?this.scrollDirection:a<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=l,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){const i=this.scrollElement,l=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},a=()=>{this._iosTouching=!1,!(!Ct()||this.targetWindow==null)&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};i.addEventListener("touchstart",l,lt),i.addEventListener("touchend",a,lt),this.unsubs.push(()=>{i.removeEventListener("touchstart",l),i.removeEventListener("touchend",a),this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}const n=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,n&&this.scrollElement&&this.options.enabled){const[i,l,a,u]=n;i!==null&&!a&&(Ct()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?u!==0&&(this._iosDeferredAdjustment+=u):this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),a&&this.scrollToEnd({behavior:a})}},this._flushIosDeferredIfReady=()=>{if(this._iosDeferredAdjustment===0||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;const t=this.getScrollOffset(),s=this.getMaxScrollOffset();if(t<0||t>s)return;const n=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(t,{adjustments:this.scrollAdjustments+=n,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=Pe(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(t,s,n,i,l,a,u,d)=>(this.prevLanes!==void 0&&this.prevLanes!==a&&(this.lanesChangedFlag=!0),this.prevLanes=a,this.pendingMin=null,{count:t,paddingStart:s,scrollMargin:n,getItemKey:i,enabled:l,lanes:a,laneAssignmentMode:u,gap:d}),{key:!1}),this.getMeasurements=Pe(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:t,paddingStart:s,scrollMargin:n,getItemKey:i,enabled:l,lanes:a,laneAssignmentMode:u,gap:d},h)=>{const g=this.itemSizeCache;if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>t)for(const b of this.laneAssignments.keys())b>=t&&this.laneAssignments.delete(b);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(b=>{this.itemSizeCache.set(b.key,b.size)}));const m=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===t&&(this.lanesSettling=!1),a===1){const b=t*2;let x=this._flatMeasurements;if(!x||x.length<b){const T=new Float64Array(b);x&&m>0&&T.set(x.subarray(0,m*2)),x=T,this._flatMeasurements=x}let w;if(m===0)w=s+n;else{const T=m-1;w=x[T*2]+x[T*2+1]+d}for(let T=m;T<t;T++){const R=i(T),F=g.get(R),L=typeof F=="number"?F:this.options.estimateSize(T);x[T*2]=w,x[T*2+1]=L,w+=L+d}const k=xi(t,x,i);return this.measurementsCache=k,k}const p=this.measurementsCache.slice(0,m),y=new Array(a).fill(void 0),S=new Float64Array(a);let I=0;for(let b=0;b<m;b++){const x=p[b];x&&(y[x.lane]===void 0&&I++,y[x.lane]=b,S[x.lane]=x.end)}for(let b=m;b<t;b++){const x=i(b),w=this.laneAssignments.get(b);let k,T;const R=u==="estimate"||g.has(x);if(w!==void 0&&this.options.lanes>1){k=w;const O=y[k],A=O!==void 0?p[O]:void 0;T=A?A.end+d:s+n}else if(I===a){let O=0,A=S[0],me=y[0];for(let z=1;z<a;z++){const oe=S[z];(oe<A||oe===A&&y[z]<me)&&(O=z,A=oe,me=y[z])}k=O,T=A+d,R&&this.laneAssignments.set(b,k)}else k=b%this.options.lanes,T=s+n,R&&this.laneAssignments.set(b,k);const F=g.get(x),L=typeof F=="number"?F:this.options.estimateSize(b),G=T+L;p[b]={index:b,start:T,size:L,end:G,key:x,lane:k},y[k]===void 0&&I++,y[k]=b,S[k]=G}return this.measurementsCache=p,p},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Pe(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,s,n,i)=>t.length===0||s===0?(this.range=null,null):(this.range=Oi(t,s,n,i,i===1&&this._flatMeasurements!=null?this._flatMeasurements:null),this.range),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Pe(()=>{let t=null,s=null;const n=this.calculateRange();return n&&(t=n.startIndex,s=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,s]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,s]},(t,s,n,i,l)=>i===null||l===null?[]:t({startIndex:i,endIndex:l,overscan:s,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{const s=this.options.indexAttribute,n=t.getAttribute(s);return n?parseInt(n,10):(console.warn(`Missing attribute name '${s}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=t=>{var s;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const n=this.scrollState.index??((s=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:s.index);if(n!==void 0&&this.range){const i=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),l=Math.max(0,n-i),a=Math.min(this.options.count-1,n+i);return t>=l&&t<=a}return!0},this.measureElement=t=>{if(!t){this.elementsCache.forEach((l,a)=>{l.isConnected||(this.observer.unobserve(l),this.elementsCache.delete(a))});return}const s=this.indexFromElement(t),n=this.options.getItemKey(s),i=this.elementsCache.get(n);i!==t&&(i&&this.observer.unobserve(i),this.observer.observe(t),this.elementsCache.set(n,t)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(s)&&this.resizeItem(s,this.options.measureElement(t,void 0,this))},this.resizeItem=(t,s)=>{var n,i;if(t<0||t>=this.options.count)return;let l,a,u;const d=this._flatMeasurements;if(this.options.lanes===1&&d!==null)u=this.options.getItemKey(t),a=d[t*2],l=d[t*2+1];else{const m=this.measurementsCache[t];if(!m)return;u=m.key,a=m.start,l=m.size}const h=this.itemSizeCache.get(u)??l,g=s-h;if(g!==0){const m=this.options.anchorTo==="end"&&((n=this.scrollState)==null?void 0:n.behavior)!=="smooth"&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,p=m?this.getTotalSize():0,y=((i=this.scrollState)==null?void 0:i.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[t]??{index:t,key:u,start:a,size:l,end:a+l,lane:0},g,this):a<this.getScrollOffset()+this.scrollAdjustments&&(!this.itemSizeCache.has(u)||this.scrollDirection!=="backward"));(this.pendingMin===null||t<this.pendingMin)&&(this.pendingMin=t),this.itemSizeCache.set(u,s),this.itemSizeCacheVersion++,m?this.applyScrollAdjustment(this.getTotalSize()-p):y&&this.applyScrollAdjustment(g),this.notify(!1)}},this.getVirtualItems=Pe(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,s)=>{const n=[];for(let i=0,l=t.length;i<l;i++){const a=t[i],u=s[a];n.push(u)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const s=this.getMeasurements();if(s.length===0)return;const n=this._flatMeasurements,i=this.options.lanes===1&&n!=null,l=rs(0,s.length-1,i?a=>n[a*2]:a=>Lt(s[a]).start,t);return Lt(s[l])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const t=this.scrollElement.document.documentElement;return this.options.horizontal?t.scrollWidth-this.scrollElement.innerWidth:t.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(t=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=t,this.getOffsetForAlignment=(t,s,n=0)=>{if(!this.scrollElement)return 0;const i=this.getSize(),l=this.getScrollOffset();s==="auto"&&(s=t>=l+i?"end":"start"),s==="center"?t+=(n-i)/2:s==="end"&&(t-=i);const a=this.getMaxScrollOffset();return Math.max(Math.min(a,t),0)},this.getOffsetForIndex=(t,s="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const n=this.getSize(),i=this.getScrollOffset(),l=this.measurementsCache[t];if(!l)return;if(s==="auto")if(l.end>=i+n-this.options.scrollPaddingEnd)s="end";else if(l.start<=i+this.options.scrollPaddingStart)s="start";else return[i,s];if(s==="end"&&t===this.options.count-1)return[this.getMaxScrollOffset(),s];const a=s==="end"?l.end+this.options.scrollPaddingEnd:l.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,s,l.size),s]},this.scrollToOffset=(t,{align:s="start",behavior:n="auto"}={})=>{const i=this.getOffsetForAlignment(t,s),l=this.now();this.scrollState={index:null,align:s,behavior:n,startedAt:l,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(t,{align:s="auto",behavior:n="auto"}={})=>{t=Math.max(0,Math.min(t,this.options.count-1));const i=this.getOffsetForIndex(t,s);if(!i)return;const[l,a]=i,u=this.now();this.scrollState={index:t,align:a,behavior:n,startedAt:u,lastTargetOffset:l,stableFrames:0},this._scrollToOffset(l,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(t,{behavior:s="auto"}={})=>{const n=this.getScrollOffset()+t,i=this.now();this.scrollState={index:null,align:"start",behavior:s,startedAt:i,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:t="auto"}={})=>{if(this.options.count>0){this.scrollToIndex(this.options.count-1,{align:"end",behavior:t});return}this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:t})},this.getTotalSize=()=>{var t;const s=this.getMeasurements();let n;if(s.length===0)n=this.options.paddingStart;else if(this.options.lanes===1){const i=s.length-1,l=this._flatMeasurements;l!=null?n=l[i*2]+l[i*2+1]:n=((t=s[i])==null?void 0:t.end)??0}else{const i=Array(this.options.lanes).fill(null);let l=s.length-1;for(;l>=0&&i.some(a=>a===null);){const a=s[l];i[a.lane]===null&&(i[a.lane]=a.end),l--}n=Math.max(...i.filter(a=>a!==null))}return Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{const t=[];if(this.itemSizeCache.size===0)return t;const s=this.getMeasurements();for(const n of s)n&&this.itemSizeCache.has(n.key)&&t.push({index:n.index,key:n.key,start:n.start,size:n.size,end:n.end,lane:n.lane});return t},this._scrollToOffset=(t,{adjustments:s,behavior:n})=>{this._intendedScrollOffset=t+(s??0),this.options.scrollToFn(t,{behavior:n,adjustments:s},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(o)}applyScrollAdjustment(o,t){o!==0&&(Ct()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?this._iosDeferredAdjustment+=o:(this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:t}),this.scrollOffset!==null&&(this.scrollOffset+=this.scrollAdjustments,this.scrollAdjustments=0)))}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const s=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,n=s?s[0]:this.scrollState.lastTargetOffset,i=1,l=n!==this.scrollState.lastTargetOffset;if(!l&&bi(n,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=i){this.getScrollOffset()!==n&&this._scrollToOffset(n,{adjustments:void 0,behavior:"auto"}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,l){const a=this.getSize()||600,u=Math.abs(n-this.getScrollOffset()),d=this.scrollState.behavior==="smooth"&&u>a;this.scrollState.lastTargetOffset=n,d||(this.scrollState.behavior="auto"),this._scrollToOffset(n,{adjustments:void 0,behavior:d?"smooth":"auto"})}this.scheduleScrollReconcile()}}const rs=(e,o,t,s)=>{for(;e<=o;){const n=(e+o)/2|0,i=t(n);if(i<s)e=n+1;else if(i>s)o=n-1;else return n}return e>0?e-1:0};function Ei(e,o,t){let s=0;for(;s<=o;){const n=(s+o)/2|0,i=e[n*2];if(i<t)s=n+1;else if(i>t)o=n-1;else return n}return s>0?s-1:0}function Oi(e,o,t,s,n){const i=e.length-1;if(e.length<=s)return{startIndex:0,endIndex:i};if(s===1&&n!==null){const d=Ei(n,i,t);let h=d;const g=t+o;for(;h<i&&n[h*2]+n[h*2+1]<g;)h++;return{startIndex:d,endIndex:h}}let a=rs(0,i,d=>e[d].start,t),u=a;if(s===1)for(;u<i&&e[u].end<t+o;)u++;else if(s>1){const d=Array(s).fill(0);for(;u<i&&d.some(g=>g<t+o);){const g=e[u];d[g.lane]=g.end,u++}const h=Array(s).fill(t+o);for(;a>=0&&h.some(g=>g>=t);){const g=e[a];h[g.lane]=g.start,a--}a=Math.max(0,a-a%s),u=Math.min(i,u+(s-1-u%s))}return{startIndex:a,endIndex:u}}const It=typeof document<"u"?c.useLayoutEffect:c.useEffect;function Ai({useFlushSync:e=!0,directDomUpdates:o=!1,directDomUpdatesMode:t="transform",...s}){const n=c.useReducer(d=>d+1,0)[1],i=c.useRef({enabled:o,mode:t,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});i.current.enabled=o,i.current.mode=t;const l=d=>{const h=i.current;if(!h.enabled||!h.container)return;const g=d.getTotalSize();if(g!==h.lastSize){h.lastSize=g;const b=d.options.horizontal?"width":"height";h.container.style[b]=`${g}px`}const m=!!d.options.horizontal,p=h.mode==="transform",y=m?"left":"top",S=d.options.scrollMargin,I=d.getVirtualItems();for(const b of I){const x=b.start-S,w=d.elementsCache.get(b.key);w&&h.lastPositions.get(w)!==x&&(h.lastPositions.set(w,x),p?w.style.transform=m?`translate3d(${x}px, 0, 0)`:`translate3d(0, ${x}px, 0)`:w.style[y]=`${x}px`)}},a={...s,onChange:(d,h)=>{var g;const m=i.current;let p=!0;if(m.enabled){l(d);const y=d.range,S=m.prevRange;p=!S||S.isScrolling!==d.isScrolling||S.startIndex!==y?.startIndex||S.endIndex!==y?.endIndex,p&&(m.prevRange=y?{startIndex:y.startIndex,endIndex:y.endIndex,isScrolling:d.isScrolling}:null)}p&&(e&&h?Ds.flushSync(n):n()),(g=s.onChange)==null||g.call(s,d,h)}},[u]=c.useState(()=>{const d=new Ri(a);return Object.assign(d,{containerRef:h=>{const g=i.current;if(g.container=h,g.lastSize=null,h&&g.enabled){const m=d.getTotalSize();g.lastSize=m;const p=d.options.horizontal?"width":"height";h.style[p]=`${m}px`}}})});return u.setOptions(a),It(()=>u._didMount(),[]),It(()=>u._willUpdate()),It(()=>{l(u)}),u}function Ni(e){return Ai({observeElementRect:Ci,observeElementOffset:Ti,scrollToFn:Mi,...e})}const Et=e=>e.query?`matching "${e.query}"`:e.from?`from "${e.from}"`:"matching your search",zi=e=>`Select all ${Et(e)}`,Fi=(e,o)=>`All ${ns(o)} ${Et(e)} selected`,Di=({verb:e,confirmingDelete:o,hasSelection:t,junkMailboxId:s,currentMailboxId:n,deletableMessageId:i})=>{if(o)return{kind:"withheld"};if(e==="junk"){const l=hn(s,n);if(l!==void 0)return{kind:"unavailable",reason:l}}return t?{kind:"openWizard"}:e!=="delete"||i===void 0?{kind:"declined"}:{kind:"confirmDelete",messageId:i}},Li=(e,o,t)=>e==="BACK"&&o&&t===void 0,_i=(e,o)=>({id:e.messageId,accountId:e.accountId,mailboxId:e.mailboxId,threadId:e.threadId,fromName:e.fromName??e.fromEmail??"Unknown",fromEmail:e.fromEmail??"",subject:e.subject??"(No subject)",snippet:e.snippet??"",timeLabel:Qe(e.sentDate),isRead:e.isRead,hasAttachment:e.hasAttachment,starred:e.hasStars===!0,trust:e.senderTrust,category:Jt(e.category),messageCount:o,suspicious:e.authenticity?.dkimMismatch===!0,labels:e.labels}),Pi=({thread:e,mailboxId:o,isSelected:t,isFocused:s,isTabStop:n,onFocusRow:i,isChecked:l,onToggleCheck:a,onRowSelect:u,messageCount:d,isMultiSelectMode:h,onLongPress:g,isDesktop:m,density:p})=>r.jsx(fn,{thread:_i(e,d),link:{mailboxId:o,threadId:e.threadId},inListbox:!0,active:t,focused:s,isTabStop:n,density:p,isDesktop:m,onFocusRow:i,selection:{isChecked:l,onToggleCheck:a,onRowSelect:u,isMultiSelectMode:h,onLongPress:g}}),$i=c.memo(Pi),Bi=e=>{const o=e.authenticity?.dkimMismatch===!0;return{id:e.messageId,accountId:e.accountId,fromName:e.fromName??e.fromEmail??"Unknown",fromEmail:e.fromEmail??"",subject:e.subject??"(No subject)",snippet:e.snippet??"",timeLabel:Qe(e.sentDate),isRead:e.isRead,hasAttachment:e.hasAttachment,starred:e.hasStars===!0,trust:e.senderTrust,category:Jt(e.category),suspicious:o}},Wi=({thread:e,mailboxId:o,isSelected:t,isFocused:s,isTabStop:n,onFocusRow:i,isChecked:l,onToggleCheck:a,onRowSelect:u,isMultiSelectMode:d,onLongPress:h,isDesktop:g,onDelete:m,onToggleRead:p,density:y})=>{const[S,I]=c.useState("none"),b=Je(),x=c.useCallback(F=>{navigator.vibrate?.(10),F==="trailing"?m(e.messageId):p(e.messageId,e.isRead),I("none")},[m,p,e.messageId,e.isRead]),w=c.useCallback(()=>{h(e.messageId)},[h,e.messageId]),k=c.useCallback(()=>{a(e.messageId)},[a,e.messageId]),T=c.useCallback(()=>{b({threadId:e.threadId,messageId:e.messageId})},[b,e.threadId,e.messageId]),R=mn(e.messageId,u);return g||d?r.jsx($i,{thread:e,mailboxId:o,isSelected:t,isFocused:s,isTabStop:n,onFocusRow:i,isChecked:l,onToggleCheck:a,onRowSelect:u,isMultiSelectMode:d,onLongPress:h,isDesktop:g,density:y}):r.jsx("div",{role:"presentation",onPointerDownCapture:R.onMouseDown,onClickCapture:R.claimClick,onContextMenu:R.onContextMenu,children:r.jsx(fo,{thread:Bi(e),selectionMode:!1,checked:!1,active:t,peek:S,onPeek:I,onToggleCheck:k,onLongPress:w,onOpen:T,onAct:x})})},Ki=72,Vi=32,qi=5,as="remit:list-density",Hi=()=>{try{const e=localStorage.getItem(as);if(e==="compact"||e==="comfortable")return e}catch{}return"comfortable"},Ui=(e,o,t)=>zo(e.filter(s=>o.has(s.messageId)).map(s=>s.accountId??t)).moveDisabledHint,Qi=({mailboxId:e,threads:o,selectedMessageId:t,isLoading:s,isError:n=!1,error:i,onRetry:l,searchQuery:a,searchPredicate:u,resultCount:d={kind:"unknown"},onDeleteMessages:h,isDeleting:g=!1,isMoving:m=!1,onLoadMore:p,hasMore:y=!1,isLoadingMore:S=!1,accountId:I,listTitle:b,listMeta:x,listFilter:w,listScopeLabel:k,onTriageContextChange:T,commandsRef:R,hideHeader:F=!1})=>{const L=c.useRef(null),G=Je(),O=Ls(),A=_s(),{verb:me,start:z,startFromSearch:oe}=A,Ce=Ps(),ge=!!a?.trim(),_=gn(),{labels:$e}=Ao(I),{pushError:re}=Bt(),[M,Ie]=c.useState(t),[ze,P]=c.useState(),K=c.useCallback(f=>{P(v=>v===f?v:void 0),Ie(f)},[]),[se,Y]=c.useState(Hi),pe=c.useCallback(()=>{Y(f=>{const v=f==="comfortable"?"compact":"comfortable";try{localStorage.setItem(as,v)}catch{}return v})},[]),{toggleReadFor:ke}=Gt({mailboxId:e}),{junkMailboxId:ae}=Yt(I),Te=Xt(ae,e),Fe=c.useMemo(()=>[{accountId:I,mailboxId:e}],[I,e]),{outcome:le,staleFolderLabel:Be,guessedMailboxId:$}=pn(Fe),{selectedIds:N,selectedCount:ce,hasSelection:B,isSelected:De,toggle:X,select:je,clearSelection:we,selectRange:ie,setAnchor:V,selectAll:Q,toggleAll:We,intersectWith:Ge}=xn(),Me=En(ce,O),[E,Le]=c.useState(null),Re=ge&&!!u,Ye=`${e}|${JSON.stringify(u??{})}`,j=bn({mailboxId:e,accountId:I,enabled:Re,predicateKey:Ye,searchQuery:u??{}}),ft=c.useCallback((f,v,fe)=>{const U=vn(f,v,fe,le);U&&re(U)},[re,le]),Ke=j.phase.kind,Ee=j.clear,q=c.useCallback(()=>{Ke==="escalated"&&Ee(),we()},[we,Ee,Ke]),[ue,Xe]=c.useState(null),xe=c.useRef(null),de=c.useRef(!1),Oe=c.useRef(null),be=!s&&o.length>0,ve=Ni({count:o.length,getScrollElement:()=>L.current,estimateSize:()=>se==="compact"?Vi:Ki,overscan:qi}),Se=t?o.findIndex(f=>f.messageId===t):-1,Z=M?o.findIndex(f=>f.messageId===M):-1,ee=c.useCallback(f=>{if(f<0||f>=o.length)return;const v=o[f];if(Me){X(v.messageId);return}xe.current=v.messageId,de.current=!1,P(v.messageId),Ie(v.messageId)},[o,Me,X]),Ze=c.useCallback(()=>{if(o.length===0)return;const f=Z<0?0:Math.min(Z+1,o.length-1);ee(f)},[o.length,Z,ee]),Ve=c.useCallback(()=>{if(o.length===0)return;const f=Z<=0?0:Z-1;ee(f)},[o.length,Z,ee]),qe=c.useCallback(()=>ee(0),[ee]),ye=c.useCallback(()=>ee(o.length-1),[ee,o.length]),Ae=c.useCallback(()=>{M&&X(M)},[M,X]),D=c.useMemo(()=>o.map(f=>f.messageId),[o]),mt=c.useMemo(()=>{const f=[];for(const v of o)N.has(v.messageId)&&f.push({id:v.messageId,sender:v.fromName??v.fromEmail??"Unknown",email:v.fromEmail??"",subject:v.subject??"(No subject)",date:Qe(v.sentDate),accountId:I});return f},[o,N,I]),gt=c.useCallback((f,v)=>v.shiftKey?(ie(D,f,M),!0):v.metaKey||v.ctrlKey?(X(f),!0):(q(),V(f),!1),[D,M,ie,X,q,V]),et=c.useCallback(f=>{!h||f.length===0||(Oe.current=M??null,Le(f))},[h,M]),ne=c.useCallback(f=>{const v=Sn(D,M,f);v!==void 0&&(ie(D,v),xe.current=v,de.current=!1,P(void 0),Ie(v))},[D,M,ie]),tt=c.useCallback(()=>ne(-1),[ne]),st=c.useCallback(()=>ne(1),[ne]),nt=c.useCallback(()=>{D.length>0&&Q(D)},[D,Q]),ot=c.useCallback(f=>{const v=Di({verb:f,confirmingDelete:E!==null,hasSelection:B,junkMailboxId:ae,currentMailboxId:e,deletableMessageId:h?M:void 0});return v.kind==="openWizard"?(z(f),!0):v.kind==="confirmDelete"?(et([v.messageId]),!0):v.kind==="unavailable"?(re({severity:"warning",title:v.reason}),!0):v.kind==="withheld"},[E,h,B,ae,e,z,M,et,re]),he=c.useCallback((f,v)=>{const fe=o.find(U=>U.messageId===f)?.threadId;fe&&G({threadId:fe,messageId:f},{replace:v?.replace})},[G,o]),it=c.useCallback(()=>{M&&he(M)},[M,he]),pt=c.useCallback(f=>he(f,{replace:!0}),[he]);yn({keyboardFocusedMessageId:ze,openMessageId:t,enabled:O&&ce===0,open:pt});const _e=j.phase.kind==="escalated"?{scope:Et(u??{}),total:j.phase.total,searchQuery:u??{},run:f=>j.runAction(f),stop:j.stop}:void 0,rt=c.useCallback(f=>{if(f.length===0){Le(null);return}const v=new Set(f),fe=o.findIndex(J=>v.has(J.messageId));let U;for(let J=fe+1;J<o.length;J++)if(!v.has(o[J].messageId)){U=o[J].messageId;break}if(U===void 0){for(let J=fe-1;J>=0;J--)if(!v.has(o[J].messageId)){U=o[J].messageId;break}}h?.(f),q(),Oe.current=null,Le(null),U!==void 0&&(xe.current=U,de.current=!1,K(U),O&&he(U,{replace:!0})),O||Xe(Cn("delete",f.length,le))},[o,h,q,he,O,K,le]),xt=c.useCallback(()=>{const f=Oe.current;Oe.current=null,Le(null),f!==null&&(xe.current=f,de.current=!1,K(f))},[K]),He=c.useMemo(()=>Ui(o,N,I),[I,N,o]),bt=c.useCallback(()=>{if(_e){oe();return}z("organize")},[_e,oe,z]),at=c.useCallback(f=>{h?.([f])},[h]),vt=c.useCallback((f,v)=>{ke([f],!v)},[ke]),C=c.useCallback(f=>{O||je(f)},[O,je]),H=c.useCallback(()=>{if(j.isRunning||j.phase.kind==="counting"){j.stop();return}q()},[j,q]),W=c.useCallback(()=>{j.clear()},[j]);c.useEffect(()=>{if(de.current||!O&&t)return;const f=Z>=0?Z:Se;f>=0&&ve.scrollToIndex(f,{align:"auto"})},[Z,Se,ve,O,t]),c.useEffect(()=>{t&&(de.current=!1,K(t))},[t,K]),c.useEffect(()=>{M&&(o.some(f=>f.messageId===M)||K(o[0]?.messageId))},[o,M,K]),c.useEffect(()=>{T?.({focusedMessageId:M,selectedIds:Array.from(N),hasList:be})},[M,N,be,T]);const Ot=c.useRef(T);Ot.current=T,c.useEffect(()=>()=>Ot.current?.({focusedMessageId:void 0,selectedIds:[],hasList:!1}),[]),c.useEffect(()=>{j.phase.kind!=="idle"||j.isRunning||Ge(o.map(f=>f.messageId))},[o,Ge,j.phase,j.isRunning]);const At=c.useRef(e);c.useEffect(()=>{At.current!==e&&(At.current=e,q())},[e,q]),In({shouldBlockFn:({action:f})=>Li(f,B,Ce)?(q(),!0):!1,enableBeforeUnload:!1,disabled:!B||Ce!==void 0}),c.useEffect(()=>{const f=L.current;if(!f||!y||!p)return;const v=()=>{if(S)return;const{scrollTop:fe,scrollHeight:U,clientHeight:J}=f;fe+J>=U-200&&p()};return f.addEventListener("scroll",v,{passive:!0}),v(),()=>f.removeEventListener("scroll",v)},[y,S,p]),c.useEffect(()=>{const f=xe.current;if(!f)return;const v=L.current?.querySelector(`[data-message-id="${f}"]`);v&&(xe.current=null,v.focus({preventScroll:!0}))}),c.useEffect(()=>{if(R){if(!be){R.current=null;return}return R.current={focusNext:Ze,focusPrevious:Ve,focusFirst:qe,focusLast:ye,openFocused:it,toggleSelect:Ae,extendSelectDown:st,extendSelectUp:tt,selectAll:nt,clearSelection:()=>B?(q(),!0):!1,requestVerb:ot,toggleDensity:pe},()=>{R.current=null}}},[R,be,Ze,Ve,qe,ye,it,Ae,st,tt,nt,B,q,ot,pe]);const Nt=s?"loading":n?"error":o.length===0?"empty":"ready",us=n?Oo(i):void 0,ds=c.useCallback(()=>{const f=$s(Bs());window.open(f,"_blank","noopener,noreferrer")},[]),hs=[{id:"inbox",threads:[]}],St=D.length>0&&D.every(f=>N.has(f)),fs=Re&&y&&St&&!g&&!m&&j.phase.kind==="idle"&&!j.isRunning,ms=g||m||j.isRunning,yt=j.phase.kind==="escalated"?j.phase.total:ce,gs=j.runningAction?kn(j.runningAction.kind,j.progress?.done??0,j.progress?.total??yt):j.phase.kind==="counting"?"Counting matches…":j.phase.kind==="escalated"?Fi(u??{},j.phase.total):void 0,ps=j.phase.kind!=="escalated"&&D.length>0?{checked:St,indeterminate:ce>0&&!St,onChange:()=>We(D)}:void 0,xs=j.runningAction?{value:j.progress?.done??0,max:j.progress?.total??yt,tone:Tn(j.runningAction.kind)}:void 0,bs=(j.phase.kind==="counting"?{tone:"info",text:"",action:{label:"Stop",onClick:j.stop}}:j.phase.kind==="escalated"&&!j.isRunning?{tone:"info",text:"",action:{label:"Clear selection",onClick:W}}:fs?{tone:"info",text:"",action:{label:zi(u??{}),onClick:j.escalate}}:void 0)??(He?{tone:"warning",text:He}:void 0),vs=r.jsx(jn,{title:_.title||b,navSlot:_.navSlot,titleMeta:_.titleMeta,searchSlot:_.searchSlot,searchField:_.searchField,idleSlot:_.makeFilterSlot,count:yt,onCancel:H,onDelete:()=>z("delete"),onMove:()=>z("move"),onOrganize:bt,onJunk:Te?()=>z("junk"):void 0,onMarkRead:()=>z("markRead"),overflowSlot:I&&e&&ce>0&&$e.length>0?r.jsx(No,{accountId:I,mailboxId:e,messageIds:Array.from(N)}):void 0,isBusy:ms,isCounting:j.phase.kind==="counting",selectAll:ps,statusLabel:gs,progress:xs,notice:bs}),Ss=wn(D,M),ys=c.useCallback(f=>{de.current=!0,K(f)},[K]),Cs=r.jsxs(r.Fragment,{children:[ge&&a&&r.jsx(Ho,{query:a,count:d}),r.jsxs("div",{ref:L,role:"listbox","aria-multiselectable":!0,"aria-label":b,className:"flex-1 overflow-y-auto",children:[r.jsx("div",{role:"presentation",className:"relative w-full",style:{height:`${ve.getTotalSize()}px`},children:ve.getVirtualItems().map(f=>{const v=o[f.index];return r.jsx("div",{role:"presentation","data-index":f.index,ref:ve.measureElement,className:Ne("absolute left-0 top-0 w-full border-b border-line",j.isRunning&&"pointer-events-none opacity-50"),style:{transform:`translateY(${f.start}px)`},children:r.jsx(Wi,{thread:v,mailboxId:e,isSelected:t===v.messageId,isFocused:M===v.messageId,isTabStop:Ss===v.messageId,onFocusRow:ys,isChecked:De(v.messageId),onToggleCheck:X,onRowSelect:gt,isMultiSelectMode:Me,onLongPress:C,isDesktop:O,onDelete:at,onToggleRead:vt,density:se})},f.key)})}),S&&r.jsx(mo,{})]})]});return r.jsxs(r.Fragment,{children:[ue&&!O&&r.jsx(ct,{tone:"success",variant:"soft",className:"m-2 rounded-md",onDismiss:()=>Xe(null),children:ue}),r.jsx(go,{listTitle:b,listMeta:x,sections:hs,flatList:!0,listState:_.searchResults?"ready":Nt,searchQuery:ge?a:void 0,listFilter:w,listScopeLabel:k,errorMessage:us,onRetry:l,onReportError:ds,density:se,selectedThreadId:t,onSelectThread:f=>he(f),isDesktop:O,hideHeader:F,selectionBar:vs,listBody:_.searchResults??(Nt==="ready"?Cs:void 0)}),r.jsx(Mn,{isOpen:E!==null,messageIds:E??[],outcome:le,accountId:I,trashFolderLabel:b,staleFolderLabel:Be,guessedMailboxId:$,isDeleting:g,onConfirm:rt,onCancel:xt}),r.jsx(Rn,{verb:me,accountId:I,mailboxId:e,selection:mt,selectionRestriction:He?"spansAccounts":void 0,escalated:_e,escalatedProgress:j.progress,onFinished:q,onRunEnded:ft})]})},Ji=e=>Wt({path:{accountId:e}}),Gi=e=>{const o=Tt(),t=wt(),s=jt({...Ws(),onSuccess:()=>{t.recordEvent("sync.triggered"),o.invalidateQueries({queryKey:Ji(e)})}});return{trigger:()=>{s.mutate({path:{accountId:e}})},triggerAsync:()=>s.mutateAsync({path:{accountId:e}}),isPending:s.isPending,error:s.error,reset:s.reset}},Yi=({accountId:e,children:o})=>{const{triggerAsync:t,isPending:s}=Gi(e);return r.jsx(Uo,{onRefresh:t,isRefreshing:s,children:o})};function Xi({accountId:e,currentMailboxId:o,candidates:t,onMove:s,children:n}){const[i,l]=c.useState(!1),a=wt(),u=Ks(),{inboxMailboxId:d}=On(e),h=An(e),{data:g}=ut({...Vs({path:{accountId:e}}),staleTime:1/0}),m=c.useMemo(()=>qs({mailboxes:g?.items??[],folderAppointments:h,currentMailboxId:o,translator:u}),[g?.items,h,o,u]),p=c.useMemo(()=>d||(m.find(x=>x.label.toLowerCase()==="inbox")?.id??m.find(x=>!x.isCurrent)?.id??""),[d,m]),y=c.useRef(!1);c.useEffect(()=>{y.current||(y.current=!0,Nn(a,t.length))},[a,t.length]);const S=c.useCallback(()=>{zn(a,t.length),l(!0)},[a,t.length]),I=c.useCallback((b,x)=>{Fn(a,{selected:b.length,total:t.length,toInbox:x===d}),s(b,x)},[a,t.length,d,s]);return r.jsxs("div",{className:"relative flex h-full min-h-0 flex-col",children:[r.jsx("div",{className:"shrink-0 px-row-inset pt-2",children:r.jsx(Jo,{count:t.length,onReview:S})}),r.jsx("div",{className:"min-h-0 flex-1",children:n}),r.jsx(ri,{open:i,candidates:t,defaultDestinationId:p,availableFolders:m,delimiter:Hs(g?.items??[]),onConfirmMove:I,onCancel:()=>l(!1)})]})}const Zi=(e,o,t,s)=>`${e??""}|${o}|${t??""}|${s??""}`,er=({accountId:e,mailboxId:o})=>{const t=Tt(),{pushError:s}=Bt(),{requestAppointment:n}=Us(),{trashByAccount:i}=Zt(),l=e?i.get(e):void 0,a=Zi(e,o,l?.mailboxId,l?.source),[u,d]=c.useState({scope:a});u.scope!==a&&d({scope:a});const h=u.scope===a?u:void 0,g=c.useCallback(()=>t.getQueryData(Qs())?.accounts.find(T=>T.accountId===e)?.folderAppointments.find(T=>T.role==="Trash")?.mailboxId??o,[t,e,o]),m=c.useRef(void 0),{mutateAsync:p,isPending:y}=jt({...Xs(),meta:Ys(409),onMutate:()=>(m.current=a,{scope:a,listMailboxId:g()}),onSuccess:(x,w,k)=>{k.scope===a&&d({scope:a,deletedCount:x.deletedCount})},onError:(x,w,k)=>{const T=Js(x);if(!T){s({title:"Couldn't empty Trash",detail:Gs(x),error:x});return}k?.scope===a&&d({scope:a,refusal:T})},onSettled:(x,w,k,T)=>{m.current===T?.scope&&(m.current=void 0),Io(t,ko([T?.listMailboxId??o])),e&&t.invalidateQueries({queryKey:Wt({path:{accountId:e}})})}}),S=c.useCallback(()=>e?(d({scope:a}),p({path:{accountId:e}}).then(()=>{},()=>{})):Promise.resolve(),[e,a,p]),I=c.useCallback(()=>{S()},[S]),b=c.useCallback(()=>{const x=h?.refusal;x&&n({accountId:x.accountId,role:x.role,reason:x.reason,action:{kind:"emptyTrash"},onAppointed:S})},[h,n,S]);return{emptyTrash:I,isEmptying:y&&m.current===a,deletedCount:h?.deletedCount,refusal:h?.refusal,repair:b}},tr="We can verify this sender";function sr(e){const{data:o}=ut({...Zs({path:{mailboxId:e??""},query:{senderTrust:["vip","wellknown"],dkimMismatch:!1,results:!0,limit:500}}),enabled:!!e,staleTime:6e4});return{candidates:(o?.items??[]).map(s=>({id:s.messageId,senderName:s.fromName||s.fromEmail||"Unknown sender",senderAddress:s.fromEmail??"",subject:s.subject||"(no subject)",snippet:s.snippet??"",trustReason:tr,trustSubReason:Dn(s.senderTrust),senderTrust:s.senderTrust}))}}const nr=6e4,or=({mailboxId:e,criteria:o,enabled:t})=>{const s={...o,count:!0,results:!1},{data:n}=ut({queryKey:Kt({path:{mailboxId:e},query:s}),queryFn:async()=>{const{data:i}=await Vt({path:{mailboxId:e},query:s,throwOnError:!0});return i},enabled:t,staleTime:nr});return t?Fo(n?.count):{kind:"unknown"}},ir=e=>{const o=new Set,t=[];for(const s of e)o.has(s.threadMessageId)||(o.add(s.threadMessageId),t.push(s));return t},rr=50,ls=c.createContext(null);function ht(){const e=c.useContext(ls);if(!e)throw new Error("MailboxPane.* must be used inside <MailboxPane>");return e}function ar({mailboxId:e,thread:o,children:t}){const s=Je(),n=To(),i=Ko(),l=o?.threadId,a=o?.messageId,u=wt(),{accounts:d,searchQuery:h,onToggleIntelligence:g}=qt(),m=rn(),p=Wo(h),y=p.length>0,{freeText:S,tokens:I}=an(p,m),[b,x]=c.useState("all"),[w,k]=c.useState(new Set),T=c.useMemo(()=>({category:b,attributes:w}),[b,w]),R=c.useMemo(()=>Ln(T),[T]),F=y||_n(T),{params:L,residual:G}=Pn(I,R),O={order:"desc",...S?{query:S}:{},...L,...R},A={...O,limit:rr},me={category:A.category,unread:A.unread,starred:A.starred,attachments:A.attachments},z=F?Kt({path:{mailboxId:e},query:A}):en({path:{mailboxId:e},query:{order:"desc"}}),{data:oe,isLoading:Ce,isError:ge,error:_,refetch:$e,fetchNextPage:re,hasNextPage:M,isFetchingNextPage:Ie}=po({queryKey:z,queryFn:async({pageParam:C})=>{if(F){const{data:W}=await Vt({path:{mailboxId:e},query:{...A,continuationToken:C},throwOnError:!0});return W}const{data:H}=await on({path:{mailboxId:e},query:{order:"desc",continuationToken:C},throwOnError:!0});return H},initialPageParam:void 0,getNextPageParam:C=>C.continuationToken,placeholderData:(C,H)=>ho(H?.queryKey,me)?C:void 0}),ze=or({mailboxId:e,criteria:O,enabled:Do({hasSearchQuery:y,freeText:S,residualTokenCount:G.length})}),{accountId:P,isLoading:K}=$n(e),se=jo({accounts:d}),Y=Bn(Wn(ir(oe?.pages.flatMap(C=>C.items??[])??[])),G,P),pe=c.useCallback(C=>{x(C)},[]),ke=c.useCallback(C=>{k(H=>{const W=new Set(H);return W.has(C)?W.delete(C):W.add(C),W})},[]),ae=c.useCallback(()=>{x("all"),k(new Set)},[]),Te=Kn(b),Fe=Te?{label:Te,reach:G.length>0?"loaded-pages":Vn(A),onClear:ae}:void 0,le=l?Y.find(C=>C.messageId===a)??Y.find(C=>C.threadId===l):void 0,Be=qn(l,a),$=le??Be,N=a??$?.messageId,ce=c.useMemo(()=>{if(l)return{threadId:l,mailboxId:$?.mailboxId??e,subject:$?.subject,messageId:N,authenticity:$?.authenticity}},[l,$,N,e]),B=c.useCallback(C=>{N&&C.includes(N)&&n()},[N,n]),{deleteMessages:De,isPending:X}=zt({mailboxId:e,onAfterOptimisticRemove:B}),{moveMessages:je,isPending:we}=Ft({mailboxId:e,accountId:P,onAfterOptimisticRemove:B}),ie=c.useRef(null),V=Hn(),{listCommandsRef:Q,onTriageContextChange:We,focusedMessageId:Ge,selectedIds:Me}=V,E=Y.find(C=>C.messageId===Ge)??$,Le=wo({accounts:d})??null,Re=Un({thread:$,isOpen:!0,mailboxId:e,accountId:P,onAfterOptimisticRemove:B}),{draftsMailboxId:Ye}=Qn(P),j=Ye!==void 0&&Ye===e,{archiveMailboxId:ft}=Jn(P),Ke=Gn(),Ee=tn(),q=c.useMemo(()=>sn(Ee,l,N),[Ee,l,N]),ue=c.useMemo(()=>{if(E)return C=>Ee({threadId:E.threadId,messageId:E.messageId,mode:C})},[Ee,E]),Xe=yo(),xe=nn(),de=Co(),Oe=c.useCallback(C=>C?Ke(C):[],[Ke]),{toggleStar:be}=Yn({threadId:E?.threadId??"",mailboxId:e}),{toggleReadFor:ve}=Gt({mailboxId:e,accountId:P}),{junkMailboxId:Se}=Yt(P),Z=Se!=null&&Se===e,ee=Xt(Se,e),{candidates:Ze}=sr(Z?Se:void 0),{moveMessages:Ve}=Ft({mailboxId:e,threadId:E?.threadId,accountId:P,onAfterOptimisticRemove:B}),{deleteMessages:qe}=zt({mailboxId:e,threadId:E?.threadId,onAfterOptimisticRemove:B}),{addressId:ye,address:Ae}=Xn(E),{updateFlags:D}=Zn({addressId:ye,senderEmail:E?.fromEmail??void 0}),mt=c.useCallback(()=>ue?.("reply"),[ue]),gt=c.useCallback(()=>ue?.("reply-all"),[ue]),et=c.useCallback(()=>ue?.("forward"),[ue]),ne=c.useCallback(()=>Oe(E),[Oe,E]),tt=c.useCallback(()=>{if(Q.current?.requestVerb("delete"))return;const C=ne();C.length>0&&qe(C)},[Q,ne,qe]),st=c.useCallback(()=>{if(Q.current?.requestVerb("junk")||!ee)return;const C=ne();C.length!==0&&(eo(u,{count:C.length,senderTrust:E?.senderTrust??"unknown",wasRescuable:E?to(E):!1}),Ve(C,ee))},[Q,ee,ne,Ve,u,E]),nt=c.useCallback(()=>{if(Me.length>0){const C=!(E?.hasStars??!1),H=new Set(Me);for(const W of Y)H.has(W.messageId)&&W.hasStars!==C&&be(W.messageId,W.hasStars);return}E&&be(E.messageId,E.hasStars)},[Me,Y,E,be]),ot=c.useCallback(()=>{if(Q.current?.requestVerb("markRead"))return;const C=ne();if(C.length===0)return;const H=!(E?.isRead??!1);ve(C,H)},[Q,ne,E,ve]),he=c.useCallback(()=>{if(!ye)return;const C=Ae?.flags?.muted?.value!==!0;D({muted:{value:C}})},[ye,Ae,D]),it=c.useCallback(()=>{if(!ye)return;const C=Ae?.flags?.vip?.value!==!0;D({vip:{value:C}})},[ye,Ae,D]),pt=c.useCallback(()=>{ie.current?.open()},[]),_e=j?"drafts":ft===e?"archive":Se===e?"junk":"inbox",rt=c.useRef("");c.useEffect(()=>{const C=rt.current;rt.current=p,p.length>0&&C.length===0&&u.recordEvent("search.submitted",{mailboxType:_e})},[p,_e,u]);const{goBack:xt,nextMessageId:He,previousMessageId:bt}=so({context:V,orderedIds:Y.map(C=>C.messageId),selectedMessageId:N,enabled:!Xe&&!xe,hasOpenThread:l!==void 0,onClose:n,handlers:{reply:mt,replyAll:gt,forward:et,delete:tt,toggleStar:nt,toggleRead:ot,muteSender:he,blockSender:$?pt:void 0,vipSender:it,markJunk:st,toggleIntelligence:$?()=>ie.current?.toggle():void 0,compose:de,goBrief:()=>i("brief"),goInbox:()=>i("brief"),goSent:()=>i("brief"),goFlagged:()=>i("flagged"),goSettings:()=>i("settings")}}),at=C=>{if(!C)return;const H=Y.find(W=>W.messageId===C);return H?{threadId:H.threadId,messageId:C}:void 0},vt={mailboxId:e,selectedMessageId:N,selectedThread:$,conversation:ce,onOpenThread:s,threads:Y,isLoading:Ce,isError:ge,error:_,mailboxAccountId:P,mailboxAccountLoading:K,mailboxName:se,unreadCount:Le,isDraftsMailbox:j,isSpamFolder:Z,rescueCandidates:Ze,filterCategory:b,filterAttributes:w,onSelectFilterCategory:pe,onToggleFilterAttribute:ke,onClearFilters:ae,listFilter:Fe,onToggleIntelligence:g,intelligenceRef:ie,handleDeselectIfRemoved:B,searchPredicate:y&&G.length===0?A:void 0,resultCount:ze,onDeleteMessages:De,onMoveMessages:je,isDeleting:X,isMoving:we,onLoadMore:re,hasMore:M,isLoadingMore:Ie,onTriageContextChange:We,listCommandsRef:Q,onRetry:()=>$e(),onReply:q,onToolbarDelete:Re.deleteThread,onToolbarStar:Re.toggleStar,isStarred:Re.isStarred,onToolbarMove:Re.moveThread,onBack:xt,nextThread:at(He),previousThread:at(bt)};return r.jsx(ls.Provider,{value:vt,children:t})}function cs(){const{mailboxId:e,selectedMessageId:o,threads:t,isLoading:s,isError:n,error:i,onDeleteMessages:l,onMoveMessages:a,isDeleting:u,isMoving:d,onLoadMore:h,hasMore:g,isLoadingMore:m,mailboxAccountId:p,mailboxName:y,unreadCount:S,isDraftsMailbox:I,isSpamFolder:b,rescueCandidates:x,onTriageContextChange:w,listCommandsRef:k,onRetry:T,filterCategory:R,filterAttributes:F,onSelectFilterCategory:L,onToggleFilterAttribute:G,onClearFilters:O,listFilter:A,searchPredicate:me,resultCount:z}=ht(),{searchQuery:oe,searchInput:Ce,accounts:ge,resultFolderIndex:_}=qt(),$e=Bo(),re=Je(),M=y??"Inbox",Ie=c.useMemo(()=>ao(),[]),{trashMailboxId:ze}=lo(p),P=Mo({accounts:ge}),{trashByAccount:K}=Zt(),se=er({accountId:p,mailboxId:e}),Y=ze!=null&&ze===e,pe=c.useMemo(()=>p?[p]:[],[p]),{hasNewMail:ke}=cn(),{state:ae,errorMessage:Te,refresh:Fe}=un(pe,{onSettled:T}),le=c.useMemo(()=>r.jsx(dn,{state:ae,onRefresh:Fe,label:`Refresh ${M}`,errorMessage:Te,hasUpdate:ke(pe)}),[ae,Fe,M,Te,ke,pe]),Be=c.useMemo(()=>t.map(V=>co(V,_)),[t,_]),{hits:$,isLoading:N}=Lo({mailboxId:e,filterCategory:R}),ce=c.useMemo(()=>uo($,t.map(V=>V.threadId),_),[$,t,_]),B=c.useCallback(V=>{const Q=V.threadId??t.find(We=>We.messageId===V.id)?.threadId;Q&&re({threadId:Q,messageId:V.id},{mailboxId:V.mailboxId??e,query:Ce})},[e,re,Ce,t]);if(I&&p)return r.jsx(fi,{accountId:p,selectedMessageId:o,imapThreads:t,title:y??"Drafts",unreadCount:S??void 0});const De=r.jsx(Qi,{mailboxId:e,threads:t,selectedMessageId:o,isLoading:s,isError:n,error:i,onRetry:T,searchQuery:oe,searchPredicate:me,resultCount:z,onDeleteMessages:l,isDeleting:u,isMoving:d,onLoadMore:h,hasMore:g,isLoadingMore:m,accountId:p,listTitle:M,listFilter:A,listScopeLabel:M,hideHeader:!0,onTriageContextChange:w,commandsRef:k}),X=ge[0]?.accountId,je=$e==="phone"&&X?r.jsx(Yi,{accountId:X,children:De}):De,we=b&&x.length>0&&p?r.jsx(Xi,{accountId:p,currentMailboxId:e,candidates:x,onMove:a,children:je}):je,ie=Y?r.jsx(pi,{messageCount:P,isEmptying:se.isEmptying,deletedCount:se.deletedCount,refusalReason:se.refusal?.reason,trashFolderLabel:y??void 0,staleFolderLabel:p?K.get(p)?.staleFolderPath:void 0,onEmpty:se.emptyTrash,onRepair:se.repair,children:we}):we;return r.jsx(xo,{title:M,unreadCount:S,preset:Ie,selectedCategory:R,activeFilters:F,onSelectCategory:L,onToggleFilter:G,onClearFilters:O,searchResults:Be,searchLoading:s,relatedResults:ce,relatedLoading:N,onSelectSearchResult:B,searchResultsInBody:!0,refreshControl:le,children:ie})}function lr(){const{mailboxId:e,mailboxAccountId:o,mailboxAccountLoading:t,selectedThread:s,conversation:n,onReply:i,onToolbarDelete:l,onToolbarStar:a,isStarred:u,onToolbarMove:d,handleDeselectIfRemoved:h,intelligenceRef:g}=ht(),m=!!n,p=io(n?.threadId);es(g,p);const y=c.useRef(null),{railFits:S,openRail:I}=p;c.useEffect(()=>{if(!S)return;const x=s?.messageId??null;x&&y.current!==x&&s?.authenticity?.dkimMismatch&&(y.current=x,I())},[S,I,s?.messageId,s?.authenticity?.dkimMismatch]);const b=n?r.jsx(ts,{threadId:n.threadId,mailboxId:n.mailboxId,subject:n.subject,selectedMessageId:n.messageId,authenticity:n.authenticity,onOpenIntelligence:p.open,listOnScreen:!0}):r.jsx(ln,{});return r.jsxs(r.Fragment,{children:[r.jsxs("section",{className:"flex h-full w-full min-w-0 flex-col bg-canvas",children:[r.jsx(ro,{hasThread:m,messageId:n?.messageId,intelligenceOpen:p.isShowing,canToggleIntelligence:p.canToggle,onToggleIntelligence:p.toggle,onReply:i?()=>i("reply"):void 0,onReplyAll:i?()=>i("reply-all"):void 0,onForward:i?()=>i("forward"):void 0,onDelete:m?l:void 0,onToggleStar:m?a:void 0,isStarred:u,moveContext:m&&o?{accountId:o,currentMailboxId:e,onMove:d}:void 0,moveContextLoading:t}),r.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:b})]}),r.jsx(ss,{isOpen:p.drawerOpen,onClose:p.closeDrawer,thread:s,mailboxId:e,accountId:o,onAfterOptimisticRemove:h})]})}function cr(){const{mailboxId:e,mailboxAccountId:o,selectedThread:t,onToggleIntelligence:s,handleDeselectIfRemoved:n}=ht();return r.jsx(oo,{onClose:s,thread:t,mailboxId:e,accountId:o,onAfterOptimisticRemove:n})}function ur(){const{mailboxId:e,mailboxAccountId:o,selectedThread:t,conversation:s,onOpenThread:n,onBack:i,nextThread:l,previousThread:a,handleDeselectIfRemoved:u,intelligenceRef:d}=ht(),h=no(s?.threadId??null);return es(d,h),s?r.jsxs(r.Fragment,{children:[r.jsx(ts,{threadId:s.threadId,mailboxId:s.mailboxId,subject:s.subject,selectedMessageId:s.messageId,authenticity:s.authenticity,onBack:i,onOpenIntelligence:h.toggle,onSwipeNext:l?()=>n(l):void 0,onSwipePrevious:a?()=>n(a):void 0,mobileIntelligenceOpen:h.isOpen}),r.jsx(ss,{isOpen:h.isOpen,onClose:h.close,thread:t,mailboxId:e,accountId:o,onAfterOptimisticRemove:u})]}):r.jsx(cs,{})}const zr=Object.assign(ar,{List:cs,Reading:lr,Intelligence:cr,Phone:ur});export{zr as M};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{O as o}from"./index-kBWsgSL1.js";const n=o;export{n as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ai as m,j as o,O as p}from"./index-kBWsgSL1.js";import{a}from"./MailShell-OfaD4UcO.js";import{M as r}from"./MailboxPane-TByVBODS.js";import{d as e}from"./search-token-index-DwVhD_Ps.js";import{u as s}from"./search-mirror-DXSTVIAm.js";import"./FullCompose-CjmuKjm2.js";import"./ErrorState-DeHr3dTk.js";import"./index-8kDZ5Nbh.js";import"./useMessageBodyContent-Ddc3tsxr.js";import"./useSignature-ahrQ6zYZ.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-F9ry5FbT.js";import"./sections-CHQnT1gv.js";import"./format-B7kZHooA.js";import"./confirm-dialog-jQWOUr73.js";import"./useSearchTokenContext-CtTpZfrh.js";import"./kbd-D4H0AykE.js";import"./search-scope-B5-OK3Cq.js";import"./useRefreshControl-jDwAAVSL.js";import"./circle-check-big-BqKDZ3Q_.js";import"./refresh-cw-CM0dlacw.js";import"./useQueries-C4FyFPIS.js";import"./MailListHeader-DwBQmyCm.js";import"./attachment-file-B1bTtN7l.js";import"./mail-z5ZuLbER.js";import"./avatar-BeXqEG8p.js";import"./EmptyState-CbLe8RyH.js";import"./download-2kd2WUv5.js";import"./calendar-event-chip-D7Csrx0j.js";import"./calendar-color-CkDge1Jd.js";import"./map-pin-CIJo6NcM.js";import"./attendee-row-B4trWaMp.js";import"./clock-VKZRK796.js";import"./useLayoutTier-BC3fixIj.js";import"./shield-check-yirJ7LBD.js";import"./useFilters-065zdrD3.js";import"./menu-CSDPUHfq.js";import"./MailViewChrome-CdYPg7kW.js";import"./NavMenuButton-DEpXlqD-.js";import"./useLabels-CSIOGq7q.js";import"./useSemanticSearch-D8FXnEuv.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-CbN20e5D.js";import"./circle-help-BxPqzlGX.js";import"./circle-check-B9V_jnPt.js";function oo(){const{mailboxId:t}=m.useParams(),i=e();return s({to:"/mail/$mailboxId",params:{mailboxId:t}}),o.jsx(r,{mailboxId:t,thread:i,children:o.jsx(a,{phone:o.jsx(r.Phone,{}),list:o.jsx(r.List,{}),reading:o.jsx(p,{}),intelligence:o.jsx(r.Intelligence,{}),hasThread:!!i})})}export{oo as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./index-kBWsgSL1.js";import{B as o}from"./BriefPane-B-DbKb34.js";import"./useSearchTokenContext-CtTpZfrh.js";import"./kbd-D4H0AykE.js";import"./useMessageBodyContent-Ddc3tsxr.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-DwBQmyCm.js";import"./search-token-index-DwVhD_Ps.js";import"./useLayoutTier-BC3fixIj.js";import"./useQueries-C4FyFPIS.js";import"./attachment-file-B1bTtN7l.js";import"./mail-z5ZuLbER.js";import"./avatar-BeXqEG8p.js";import"./index-8kDZ5Nbh.js";import"./useSignature-ahrQ6zYZ.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-F9ry5FbT.js";import"./sections-CHQnT1gv.js";import"./format-B7kZHooA.js";import"./EmptyState-CbLe8RyH.js";import"./ErrorState-DeHr3dTk.js";import"./download-2kd2WUv5.js";import"./calendar-event-chip-D7Csrx0j.js";import"./calendar-color-CkDge1Jd.js";import"./map-pin-CIJo6NcM.js";import"./attendee-row-B4trWaMp.js";import"./clock-VKZRK796.js";import"./shield-check-yirJ7LBD.js";import"./useFilters-065zdrD3.js";import"./confirm-dialog-jQWOUr73.js";import"./menu-CSDPUHfq.js";import"./useRefreshControl-jDwAAVSL.js";import"./circle-check-big-BqKDZ3Q_.js";import"./refresh-cw-CM0dlacw.js";import"./useSemanticSearch-D8FXnEuv.js";import"./useLabels-CSIOGq7q.js";import"./search-query-Cr_ZXBCp.js";import"./wizard-selection-DxUM65kM.js";function L(){return r.jsx(o.Reading,{})}export{L as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-kBWsgSL1.js";import{F as r}from"./FlaggedPane-C8ICa9mB.js";import"./useSearchTokenContext-CtTpZfrh.js";import"./kbd-D4H0AykE.js";import"./useMessageBodyContent-Ddc3tsxr.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-DwBQmyCm.js";import"./search-token-index-DwVhD_Ps.js";import"./useLayoutTier-BC3fixIj.js";import"./useQueries-C4FyFPIS.js";import"./attachment-file-B1bTtN7l.js";import"./mail-z5ZuLbER.js";import"./avatar-BeXqEG8p.js";import"./index-8kDZ5Nbh.js";import"./useSignature-ahrQ6zYZ.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-F9ry5FbT.js";import"./sections-CHQnT1gv.js";import"./format-B7kZHooA.js";import"./EmptyState-CbLe8RyH.js";import"./ErrorState-DeHr3dTk.js";import"./download-2kd2WUv5.js";import"./calendar-event-chip-D7Csrx0j.js";import"./calendar-color-CkDge1Jd.js";import"./map-pin-CIJo6NcM.js";import"./attendee-row-B4trWaMp.js";import"./clock-VKZRK796.js";import"./shield-check-yirJ7LBD.js";import"./useFilters-065zdrD3.js";import"./confirm-dialog-jQWOUr73.js";import"./menu-CSDPUHfq.js";import"./MailViewChrome-CdYPg7kW.js";import"./refresh-cw-CM0dlacw.js";import"./wizard-selection-DxUM65kM.js";function H(){return o.jsx(r.Reading,{})}export{H as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-kBWsgSL1.js";import{M as r}from"./MailboxPane-TByVBODS.js";import"./useSearchTokenContext-CtTpZfrh.js";import"./kbd-D4H0AykE.js";import"./useMessageBodyContent-Ddc3tsxr.js";import"./search-scope-B5-OK3Cq.js";import"./useRefreshControl-jDwAAVSL.js";import"./circle-check-big-BqKDZ3Q_.js";import"./refresh-cw-CM0dlacw.js";import"./useQueries-C4FyFPIS.js";import"./search-token-index-DwVhD_Ps.js";import"./useLayoutTier-BC3fixIj.js";import"./MailListHeader-DwBQmyCm.js";import"./attachment-file-B1bTtN7l.js";import"./mail-z5ZuLbER.js";import"./avatar-BeXqEG8p.js";import"./index-8kDZ5Nbh.js";import"./useSignature-ahrQ6zYZ.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-F9ry5FbT.js";import"./sections-CHQnT1gv.js";import"./format-B7kZHooA.js";import"./EmptyState-CbLe8RyH.js";import"./ErrorState-DeHr3dTk.js";import"./download-2kd2WUv5.js";import"./calendar-event-chip-D7Csrx0j.js";import"./calendar-color-CkDge1Jd.js";import"./map-pin-CIJo6NcM.js";import"./attendee-row-B4trWaMp.js";import"./clock-VKZRK796.js";import"./shield-check-yirJ7LBD.js";import"./useFilters-065zdrD3.js";import"./confirm-dialog-jQWOUr73.js";import"./menu-CSDPUHfq.js";import"./MailViewChrome-CdYPg7kW.js";import"./NavMenuButton-DEpXlqD-.js";import"./useLabels-CSIOGq7q.js";import"./useSemanticSearch-D8FXnEuv.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-CbN20e5D.js";import"./circle-help-BxPqzlGX.js";import"./circle-check-B9V_jnPt.js";function S(){return o.jsx(r.Reading,{})}export{S as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-kBWsgSL1.js";import{O as t}from"./OutboxPane-DAPpYoE_.js";import"./useSearchTokenContext-CtTpZfrh.js";import"./kbd-D4H0AykE.js";import"./useMessageBodyContent-Ddc3tsxr.js";import"./search-scope-B5-OK3Cq.js";import"./circle-check-big-BqKDZ3Q_.js";import"./clock-VKZRK796.js";import"./row-actions-dL-6MXJt.js";import"./rotate-ccw-MeJyarjq.js";import"./NavMenuButton-DEpXlqD-.js";import"./menu-CSDPUHfq.js";import"./format-B7kZHooA.js";import"./outbox-status-BlKn6P0x.js";import"./search-query-Cr_ZXBCp.js";function P(){return o.jsx(t.Reading,{})}export{P as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{eo as t,j as m}from"./index-kBWsgSL1.js";import{O as e}from"./OpenCalendarEvent-D_-F4qAI.js";import"./CalendarComposePane-qouJ2ac1.js";import"./window-CgA4ilXA.js";import"./ErrorState-DeHr3dTk.js";import"./calendar-color-CkDge1Jd.js";import"./attendee-row-B4trWaMp.js";import"./avatar-BeXqEG8p.js";import"./clock-VKZRK796.js";import"./map-pin-CIJo6NcM.js";import"./mail-z5ZuLbER.js";import"./pencil-Cd4AX53X.js";import"./useCalendars-DwzgQIxe.js";import"./useCalendarData-ZpdXYEEI.js";import"./useQueries-C4FyFPIS.js";function E(){const{calendarObjectId:r,recurrenceId:o}=t.useParams();return m.jsx(e,{calendarObjectId:r,recurrenceId:o})}export{E as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{O as o}from"./index-kBWsgSL1.js";const n=o;export{n as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{O as o}from"./index-kBWsgSL1.js";const n=o;export{n as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{O as o}from"./index-kBWsgSL1.js";const n=o;export{n as component};
|
package/assets/brief-BPfDlJbu.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r,O as i}from"./index-kBWsgSL1.js";import{a as m}from"./MailShell-OfaD4UcO.js";import{B as o}from"./BriefPane-B-DbKb34.js";import{d as p}from"./search-token-index-DwVhD_Ps.js";import{u as e}from"./search-mirror-DXSTVIAm.js";import"./FullCompose-CjmuKjm2.js";import"./ErrorState-DeHr3dTk.js";import"./index-8kDZ5Nbh.js";import"./useMessageBodyContent-Ddc3tsxr.js";import"./useSignature-ahrQ6zYZ.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-F9ry5FbT.js";import"./sections-CHQnT1gv.js";import"./format-B7kZHooA.js";import"./confirm-dialog-jQWOUr73.js";import"./useSearchTokenContext-CtTpZfrh.js";import"./kbd-D4H0AykE.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-DwBQmyCm.js";import"./attachment-file-B1bTtN7l.js";import"./mail-z5ZuLbER.js";import"./avatar-BeXqEG8p.js";import"./EmptyState-CbLe8RyH.js";import"./download-2kd2WUv5.js";import"./calendar-event-chip-D7Csrx0j.js";import"./calendar-color-CkDge1Jd.js";import"./map-pin-CIJo6NcM.js";import"./attendee-row-B4trWaMp.js";import"./clock-VKZRK796.js";import"./useLayoutTier-BC3fixIj.js";import"./shield-check-yirJ7LBD.js";import"./useFilters-065zdrD3.js";import"./useQueries-C4FyFPIS.js";import"./menu-CSDPUHfq.js";import"./useRefreshControl-jDwAAVSL.js";import"./circle-check-big-BqKDZ3Q_.js";import"./refresh-cw-CM0dlacw.js";import"./useSemanticSearch-D8FXnEuv.js";import"./useLabels-CSIOGq7q.js";import"./search-query-Cr_ZXBCp.js";import"./wizard-selection-DxUM65kM.js";function W(){const t=p();return e({to:"/mail/brief"}),r.jsx(o,{thread:t,children:r.jsx(m,{phone:r.jsx(o.Phone,{}),list:r.jsx(o.List,{}),reading:r.jsx(i,{}),intelligence:r.jsx(o.Intelligence,{}),hasThread:!!t})})}export{W as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e}from"./index-kBWsgSL1.js";const t=e("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);export{t as C};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as o}from"./FullCompose-CjmuKjm2.js";import"./index-kBWsgSL1.js";import"./ErrorState-DeHr3dTk.js";import"./index-8kDZ5Nbh.js";import"./useMessageBodyContent-Ddc3tsxr.js";import"./useSignature-ahrQ6zYZ.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-F9ry5FbT.js";import"./sections-CHQnT1gv.js";import"./format-B7kZHooA.js";import"./confirm-dialog-jQWOUr73.js";const C=o;export{C as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as o}from"./FullCompose-CjmuKjm2.js";import"./index-kBWsgSL1.js";import"./ErrorState-DeHr3dTk.js";import"./index-8kDZ5Nbh.js";import"./useMessageBodyContent-Ddc3tsxr.js";import"./useSignature-ahrQ6zYZ.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-F9ry5FbT.js";import"./sections-CHQnT1gv.js";import"./format-B7kZHooA.js";import"./confirm-dialog-jQWOUr73.js";const C=o;export{C as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as o}from"./FullCompose-CjmuKjm2.js";import"./index-kBWsgSL1.js";import"./ErrorState-DeHr3dTk.js";import"./index-8kDZ5Nbh.js";import"./useMessageBodyContent-Ddc3tsxr.js";import"./useSignature-ahrQ6zYZ.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-F9ry5FbT.js";import"./sections-CHQnT1gv.js";import"./format-B7kZHooA.js";import"./confirm-dialog-jQWOUr73.js";const C=o;export{C as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as o}from"./FullCompose-CjmuKjm2.js";import"./index-kBWsgSL1.js";import"./ErrorState-DeHr3dTk.js";import"./index-8kDZ5Nbh.js";import"./useMessageBodyContent-Ddc3tsxr.js";import"./useSignature-ahrQ6zYZ.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-F9ry5FbT.js";import"./sections-CHQnT1gv.js";import"./format-B7kZHooA.js";import"./confirm-dialog-jQWOUr73.js";const C=o;export{C as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b1 as y,b2 as b}from"./index-kBWsgSL1.js";const x=e=>new Promise(n=>{n(JSON.parse(e))}),c=["accounts","labels","filters","addressFlags","settings"],l={accounts:"Accounts",labels:"Labels",filters:"Rules & filters",addressFlags:"Senders",settings:"Folders & appearance"},v=["created","updated","unchanged","skipped","rejected"],N={created:"positive",updated:"accent",unchanged:"neutral",skipped:"warning",rejected:"danger"},g=e=>v.includes(e)?e:"rejected",d="unknown",u=e=>c.includes(e)?e:void 0,$=e=>{const n=new Map;return e.forEach((t,a)=>{const s=u(t.section)??d,o=n.get(s)??[];o.push({id:`${s}-${t.key}-${a}`,label:t.key,verdict:g(t.verdict),reason:s===d?t.reason??`This instance does not know the "${t.section}" section, so it cannot say what this entry does.`:t.reason}),n.set(s,o)}),[...c,d].filter(t=>n.has(t)).map(t=>({id:t,title:t===d?"Not recognised":l[t],entries:n.get(t)??[]}))},_=e=>{const n={created:0,updated:0,unchanged:0,skipped:0,rejected:0};for(const i of e)n[g(i.verdict)]+=1;return n},T={NotAnObject:()=>({title:"That is not a Reader config file",explanation:"The file was read, but it is not a configuration document — a Reader config is a JSON object carrying a kind and a schemaVersion.",fix:"Export one from Settings › Advanced on the instance you are moving from, or run remit config save on its host."}),WrongKind:()=>({title:"That is not a Reader config file",explanation:"The file parses as JSON but does not declare itself a Reader configuration, so nothing here can be trusted to mean what it looks like.",fix:"Export one from Settings › Advanced on the instance you are moving from, or run remit config save on its host."}),UnsupportedVersion:e=>({title:"This file was written by a newer Reader",explanation:e.message||"The file declares a schema version this instance does not read, so importing it would drop settings it cannot understand.",fix:"Update this Reader, then import again. The file is unchanged and safe to keep."}),UnknownKeys:e=>({title:"The file contains settings this version does not know",explanation:"An unknown key is refused rather than quietly dropped: losing configuration without saying so is exactly what this feature exists to prevent.",fix:`Update this Reader, or remove the named keys from the file and import again. ${e.message}`}),CredentialPresent:()=>({title:"The file carries a credential",explanation:"A configuration document describes which credential an account needs; it never carries one. Reader refuses the file rather than importing around it — the secret may now be in your backups, your chat history, or a pull request.",fix:"Delete the field from the file and import again, then change that mailbox's password. Exports written by Reader never contain one."}),Malformed:e=>({title:"The file does not match the configuration format",explanation:"Every part of the document has to validate before anything is written, and this one does not.",fix:`Re-export it from the instance you are moving from. ${e.message}`}),duplicate_key:e=>({title:"The file names something twice",explanation:"A configuration names each account, label and filter once, so a document with two of the same key has no single answer to import.",fix:`Remove the duplicate and import again. ${e.message}`}),unknown_label:e=>({title:"A rule points at a label that is not here",explanation:"The file applies a label neither it nor this instance carries, so the rule would land doing nothing.",fix:`Add the label to the file, or create it here first, then import again. ${e.message}`}),unknown_account:e=>({title:"A rule points at an account that is not here",explanation:"The file files mail into a folder on an account it does not carry, so the rule has no destination to bind to.",fix:`Export the configuration again from an instance that holds both, then import that file. ${e.message}`})},k=e=>({title:"The file could not be imported",explanation:e.message||"The import was refused and nothing was written.",fix:"Re-export the configuration from the instance you are moving from and try again. If it keeps failing, report it with the line below."}),w="import_write_failed",S="config_not_empty",A=e=>{const n=y(e);if(n!==void 0&&n!==409)return;const i=e instanceof b?e.body:e;if(typeof i!="object"||i===null)return;const t=i;if(t.code===S)return{message:typeof t.message=="string"?t.message:"",details:typeof t.details=="object"&&t.details!==null?t.details:void 0}},I=e=>{const n=e.errors.find(t=>t.code!==w);return n?{...(T[n.code]??k)(n),raw:`${n.code}: ${n.message}`}:void 0},E=e=>e.errors.find(n=>n.code===w),j=e=>{const n=E(e),i=n?.details?.section,t=i?u(i):void 0,a=new Map;for(const o of e.items){if(g(o.verdict)==="rejected")continue;const r=u(o.section);r&&a.set(r,(a.get(r)??0)+1)}if(n&&e.applied===!1)return c.map(o=>({section:o,title:l[o],state:o===t?"failed":"rolled-back",detail:o===t?n.message??"This section could not be written.":"Nothing was written — the import ran as one transaction and was undone."}));if(!t){const o=i?`The import stopped in "${i}", which this instance does not recognise, so it cannot say whether this section was written.`:"The import stopped without naming where, so it cannot say whether this section was written. Open Settings to see what is here.";return c.map(r=>({section:r,title:l[r],state:"unknown",detail:o}))}const s=c.indexOf(t);return c.map((o,r)=>{const f=l[o];if(o===t)return{section:o,title:f,state:"failed",detail:n?.message??"This section could not be written."};if(r>s)return{section:o,title:f,state:"not-attempted",detail:"Not attempted — the import stopped before this section."};const h=a.get(o)??0;return{section:o,title:f,state:"landed",detail:h===0?"Nothing in the file for this section.":`${h} ${h===1?"entry":"entries"} written.`}})},R="folder_not_found_yet",F=e=>{const n=new Set,i=[];for(const t of e.warnings){if(t.code!==R)continue;const a=t.details?.folderPath;if(!a)continue;const s=t.details?.filter,o=t.details?.accountId,r=`${o??""}:${a}:${s??""}`;n.has(r)||(n.add(r),i.push({path:a,accountId:o,waitingFor:s?`Rule “${s}”`:"A folder role or a folder's own settings"}))}return i},p=2*1024*1024,m=Symbol("not json"),C=async(e,n,i)=>{if(n>p)return{ok:!1,failure:{title:"That file is too large to be a config file",explanation:`${e} is ${Math.round(n/1024)} kB. A Reader configuration is tens of kilobytes; a file this size is something else.`,fix:"Pick the .json file written by Settings › Advanced, or by remit config save.",raw:`${n} bytes > ${p} byte limit`}};let t="";const a=await x(i).catch(s=>(t=s instanceof Error?s.message:String(s),m));return a===m?{ok:!1,failure:{title:"That file is not JSON",explanation:`${e} could not be read as JSON at all, so there is nothing in it to import.`,fix:"Pick the .json file written by Settings › Advanced, or by remit config save.",raw:t}}:typeof a!="object"||a===null||Array.isArray(a)?{ok:!1,failure:{title:"That is not a Reader config file",explanation:`${e} is valid JSON but not a configuration document — a Reader config is a JSON object carrying a kind and a schemaVersion.`,fix:"Export one from Settings › Advanced on the instance you are moving from, or run remit config save on its host.",raw:`expected a JSON object, found ${Array.isArray(a)?"an array":typeof a}`}}:{ok:!0,document:a}},D=e=>`reader-config.${e.toISOString().slice(0,10)}.json`,J=e=>e<1024?`${e} B`:`${Math.round(e/1024)} kB`;export{w as W,A as a,I as b,_ as c,D as e,J as f,$ as g,F as p,C as r,j as s,N as v,E as w};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o,O as i}from"./index-kBWsgSL1.js";import{a as m}from"./MailShell-OfaD4UcO.js";import{F as r}from"./FlaggedPane-C8ICa9mB.js";import{d as p}from"./search-token-index-DwVhD_Ps.js";import{u as e}from"./search-mirror-DXSTVIAm.js";import"./FullCompose-CjmuKjm2.js";import"./ErrorState-DeHr3dTk.js";import"./index-8kDZ5Nbh.js";import"./useMessageBodyContent-Ddc3tsxr.js";import"./useSignature-ahrQ6zYZ.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-F9ry5FbT.js";import"./sections-CHQnT1gv.js";import"./format-B7kZHooA.js";import"./confirm-dialog-jQWOUr73.js";import"./useSearchTokenContext-CtTpZfrh.js";import"./kbd-D4H0AykE.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-DwBQmyCm.js";import"./attachment-file-B1bTtN7l.js";import"./mail-z5ZuLbER.js";import"./avatar-BeXqEG8p.js";import"./EmptyState-CbLe8RyH.js";import"./download-2kd2WUv5.js";import"./calendar-event-chip-D7Csrx0j.js";import"./calendar-color-CkDge1Jd.js";import"./map-pin-CIJo6NcM.js";import"./attendee-row-B4trWaMp.js";import"./clock-VKZRK796.js";import"./useLayoutTier-BC3fixIj.js";import"./shield-check-yirJ7LBD.js";import"./useFilters-065zdrD3.js";import"./useQueries-C4FyFPIS.js";import"./menu-CSDPUHfq.js";import"./MailViewChrome-CdYPg7kW.js";import"./refresh-cw-CM0dlacw.js";import"./wizard-selection-DxUM65kM.js";function N(){const t=p();return e({to:"/mail/flagged"}),o.jsx(r,{thread:t,children:o.jsx(m,{phone:o.jsx(r.Phone,{}),list:o.jsx(r.List,{}),reading:o.jsx(i,{}),intelligence:o.jsx(r.Intelligence,{}),hasThread:!!t})})}export{N as component};
|
package/assets/index-6rrwNlJV.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./index-kBWsgSL1.js";import{B as o}from"./BriefPane-B-DbKb34.js";import"./useSearchTokenContext-CtTpZfrh.js";import"./kbd-D4H0AykE.js";import"./useMessageBodyContent-Ddc3tsxr.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-DwBQmyCm.js";import"./search-token-index-DwVhD_Ps.js";import"./useLayoutTier-BC3fixIj.js";import"./useQueries-C4FyFPIS.js";import"./attachment-file-B1bTtN7l.js";import"./mail-z5ZuLbER.js";import"./avatar-BeXqEG8p.js";import"./index-8kDZ5Nbh.js";import"./useSignature-ahrQ6zYZ.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-F9ry5FbT.js";import"./sections-CHQnT1gv.js";import"./format-B7kZHooA.js";import"./EmptyState-CbLe8RyH.js";import"./ErrorState-DeHr3dTk.js";import"./download-2kd2WUv5.js";import"./calendar-event-chip-D7Csrx0j.js";import"./calendar-color-CkDge1Jd.js";import"./map-pin-CIJo6NcM.js";import"./attendee-row-B4trWaMp.js";import"./clock-VKZRK796.js";import"./shield-check-yirJ7LBD.js";import"./useFilters-065zdrD3.js";import"./confirm-dialog-jQWOUr73.js";import"./menu-CSDPUHfq.js";import"./useRefreshControl-jDwAAVSL.js";import"./circle-check-big-BqKDZ3Q_.js";import"./refresh-cw-CM0dlacw.js";import"./useSemanticSearch-D8FXnEuv.js";import"./useLabels-CSIOGq7q.js";import"./search-query-Cr_ZXBCp.js";import"./wizard-selection-DxUM65kM.js";function M(){return r.jsx(o.Reading,{})}export{M as component};
|
package/assets/index-CJqr5kX5.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./index-kBWsgSL1.js";import{B as o}from"./BriefPane-B-DbKb34.js";import"./useSearchTokenContext-CtTpZfrh.js";import"./kbd-D4H0AykE.js";import"./useMessageBodyContent-Ddc3tsxr.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-DwBQmyCm.js";import"./search-token-index-DwVhD_Ps.js";import"./useLayoutTier-BC3fixIj.js";import"./useQueries-C4FyFPIS.js";import"./attachment-file-B1bTtN7l.js";import"./mail-z5ZuLbER.js";import"./avatar-BeXqEG8p.js";import"./index-8kDZ5Nbh.js";import"./useSignature-ahrQ6zYZ.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-F9ry5FbT.js";import"./sections-CHQnT1gv.js";import"./format-B7kZHooA.js";import"./EmptyState-CbLe8RyH.js";import"./ErrorState-DeHr3dTk.js";import"./download-2kd2WUv5.js";import"./calendar-event-chip-D7Csrx0j.js";import"./calendar-color-CkDge1Jd.js";import"./map-pin-CIJo6NcM.js";import"./attendee-row-B4trWaMp.js";import"./clock-VKZRK796.js";import"./shield-check-yirJ7LBD.js";import"./useFilters-065zdrD3.js";import"./confirm-dialog-jQWOUr73.js";import"./menu-CSDPUHfq.js";import"./useRefreshControl-jDwAAVSL.js";import"./circle-check-big-BqKDZ3Q_.js";import"./refresh-cw-CM0dlacw.js";import"./useSemanticSearch-D8FXnEuv.js";import"./useLabels-CSIOGq7q.js";import"./search-query-Cr_ZXBCp.js";import"./wizard-selection-DxUM65kM.js";function L(){return r.jsx(o.Reading,{})}export{L as component};
|
package/assets/index-CTv9GIuU.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-kBWsgSL1.js";import{F as r}from"./FlaggedPane-C8ICa9mB.js";import"./useSearchTokenContext-CtTpZfrh.js";import"./kbd-D4H0AykE.js";import"./useMessageBodyContent-Ddc3tsxr.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-DwBQmyCm.js";import"./search-token-index-DwVhD_Ps.js";import"./useLayoutTier-BC3fixIj.js";import"./useQueries-C4FyFPIS.js";import"./attachment-file-B1bTtN7l.js";import"./mail-z5ZuLbER.js";import"./avatar-BeXqEG8p.js";import"./index-8kDZ5Nbh.js";import"./useSignature-ahrQ6zYZ.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-F9ry5FbT.js";import"./sections-CHQnT1gv.js";import"./format-B7kZHooA.js";import"./EmptyState-CbLe8RyH.js";import"./ErrorState-DeHr3dTk.js";import"./download-2kd2WUv5.js";import"./calendar-event-chip-D7Csrx0j.js";import"./calendar-color-CkDge1Jd.js";import"./map-pin-CIJo6NcM.js";import"./attendee-row-B4trWaMp.js";import"./clock-VKZRK796.js";import"./shield-check-yirJ7LBD.js";import"./useFilters-065zdrD3.js";import"./confirm-dialog-jQWOUr73.js";import"./menu-CSDPUHfq.js";import"./MailViewChrome-CdYPg7kW.js";import"./refresh-cw-CM0dlacw.js";import"./wizard-selection-DxUM65kM.js";function I(){return o.jsx(r.Reading,{})}export{I as component};
|
package/assets/index-CmoVszGA.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-kBWsgSL1.js";import{M as i}from"./MailboxPane-TByVBODS.js";import"./useSearchTokenContext-CtTpZfrh.js";import"./kbd-D4H0AykE.js";import"./useMessageBodyContent-Ddc3tsxr.js";import"./search-scope-B5-OK3Cq.js";import"./useRefreshControl-jDwAAVSL.js";import"./circle-check-big-BqKDZ3Q_.js";import"./refresh-cw-CM0dlacw.js";import"./useQueries-C4FyFPIS.js";import"./search-token-index-DwVhD_Ps.js";import"./useLayoutTier-BC3fixIj.js";import"./MailListHeader-DwBQmyCm.js";import"./attachment-file-B1bTtN7l.js";import"./mail-z5ZuLbER.js";import"./avatar-BeXqEG8p.js";import"./index-8kDZ5Nbh.js";import"./useSignature-ahrQ6zYZ.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-F9ry5FbT.js";import"./sections-CHQnT1gv.js";import"./format-B7kZHooA.js";import"./EmptyState-CbLe8RyH.js";import"./ErrorState-DeHr3dTk.js";import"./download-2kd2WUv5.js";import"./calendar-event-chip-D7Csrx0j.js";import"./calendar-color-CkDge1Jd.js";import"./map-pin-CIJo6NcM.js";import"./attendee-row-B4trWaMp.js";import"./clock-VKZRK796.js";import"./shield-check-yirJ7LBD.js";import"./useFilters-065zdrD3.js";import"./confirm-dialog-jQWOUr73.js";import"./menu-CSDPUHfq.js";import"./MailViewChrome-CdYPg7kW.js";import"./NavMenuButton-DEpXlqD-.js";import"./useLabels-CSIOGq7q.js";import"./useSemanticSearch-D8FXnEuv.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-CbN20e5D.js";import"./circle-help-BxPqzlGX.js";import"./circle-check-B9V_jnPt.js";function S(){return o.jsx(i.Reading,{})}export{S as component};
|
package/assets/index-DHpmlJ6O.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-kBWsgSL1.js";import{M as r}from"./MailboxPane-TByVBODS.js";import"./useSearchTokenContext-CtTpZfrh.js";import"./kbd-D4H0AykE.js";import"./useMessageBodyContent-Ddc3tsxr.js";import"./search-scope-B5-OK3Cq.js";import"./useRefreshControl-jDwAAVSL.js";import"./circle-check-big-BqKDZ3Q_.js";import"./refresh-cw-CM0dlacw.js";import"./useQueries-C4FyFPIS.js";import"./search-token-index-DwVhD_Ps.js";import"./useLayoutTier-BC3fixIj.js";import"./MailListHeader-DwBQmyCm.js";import"./attachment-file-B1bTtN7l.js";import"./mail-z5ZuLbER.js";import"./avatar-BeXqEG8p.js";import"./index-8kDZ5Nbh.js";import"./useSignature-ahrQ6zYZ.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-F9ry5FbT.js";import"./sections-CHQnT1gv.js";import"./format-B7kZHooA.js";import"./EmptyState-CbLe8RyH.js";import"./ErrorState-DeHr3dTk.js";import"./download-2kd2WUv5.js";import"./calendar-event-chip-D7Csrx0j.js";import"./calendar-color-CkDge1Jd.js";import"./map-pin-CIJo6NcM.js";import"./attendee-row-B4trWaMp.js";import"./clock-VKZRK796.js";import"./shield-check-yirJ7LBD.js";import"./useFilters-065zdrD3.js";import"./confirm-dialog-jQWOUr73.js";import"./menu-CSDPUHfq.js";import"./MailViewChrome-CdYPg7kW.js";import"./NavMenuButton-DEpXlqD-.js";import"./useLabels-CSIOGq7q.js";import"./useSemanticSearch-D8FXnEuv.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-CbN20e5D.js";import"./circle-help-BxPqzlGX.js";import"./circle-check-B9V_jnPt.js";function Q(){return o.jsx(r.Reading,{})}export{Q as component};
|
package/assets/index-DLlZK0wP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{em as o,j as r}from"./index-kBWsgSL1.js";import{O as m}from"./OpenCalendarEvent-D_-F4qAI.js";import"./CalendarComposePane-qouJ2ac1.js";import"./window-CgA4ilXA.js";import"./ErrorState-DeHr3dTk.js";import"./calendar-color-CkDge1Jd.js";import"./attendee-row-B4trWaMp.js";import"./avatar-BeXqEG8p.js";import"./clock-VKZRK796.js";import"./map-pin-CIJo6NcM.js";import"./mail-z5ZuLbER.js";import"./pencil-Cd4AX53X.js";import"./useCalendars-DwzgQIxe.js";import"./useCalendarData-ZpdXYEEI.js";import"./useQueries-C4FyFPIS.js";function R(){const{calendarObjectId:t}=o.useParams();return r.jsx(m,{calendarObjectId:t})}export{R as component};
|
package/assets/index-DPoS_wXz.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-kBWsgSL1.js";import{O as t}from"./OutboxPane-DAPpYoE_.js";import"./useSearchTokenContext-CtTpZfrh.js";import"./kbd-D4H0AykE.js";import"./useMessageBodyContent-Ddc3tsxr.js";import"./search-scope-B5-OK3Cq.js";import"./circle-check-big-BqKDZ3Q_.js";import"./clock-VKZRK796.js";import"./row-actions-dL-6MXJt.js";import"./rotate-ccw-MeJyarjq.js";import"./NavMenuButton-DEpXlqD-.js";import"./menu-CSDPUHfq.js";import"./format-B7kZHooA.js";import"./outbox-status-BlKn6P0x.js";import"./search-query-Cr_ZXBCp.js";function c(){return o.jsx(t.Reading,{})}export{c as component};
|
package/assets/index-DZ7xcogg.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-kBWsgSL1.js";import{F as r}from"./FlaggedPane-C8ICa9mB.js";import"./useSearchTokenContext-CtTpZfrh.js";import"./kbd-D4H0AykE.js";import"./useMessageBodyContent-Ddc3tsxr.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-DwBQmyCm.js";import"./search-token-index-DwVhD_Ps.js";import"./useLayoutTier-BC3fixIj.js";import"./useQueries-C4FyFPIS.js";import"./attachment-file-B1bTtN7l.js";import"./mail-z5ZuLbER.js";import"./avatar-BeXqEG8p.js";import"./index-8kDZ5Nbh.js";import"./useSignature-ahrQ6zYZ.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-F9ry5FbT.js";import"./sections-CHQnT1gv.js";import"./format-B7kZHooA.js";import"./EmptyState-CbLe8RyH.js";import"./ErrorState-DeHr3dTk.js";import"./download-2kd2WUv5.js";import"./calendar-event-chip-D7Csrx0j.js";import"./calendar-color-CkDge1Jd.js";import"./map-pin-CIJo6NcM.js";import"./attendee-row-B4trWaMp.js";import"./clock-VKZRK796.js";import"./shield-check-yirJ7LBD.js";import"./useFilters-065zdrD3.js";import"./confirm-dialog-jQWOUr73.js";import"./menu-CSDPUHfq.js";import"./MailViewChrome-CdYPg7kW.js";import"./refresh-cw-CM0dlacw.js";import"./wizard-selection-DxUM65kM.js";function H(){return o.jsx(r.Reading,{})}export{H as component};
|
package/assets/index-DuJvR6zK.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t,am as o}from"./index-kBWsgSL1.js";const n=()=>t.jsx(o,{to:"/settings/accounts"});export{n as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{q as n,h as i,u as a,r as m,j as s}from"./index-kBWsgSL1.js";import{O as p}from"./OnboardingWizard-0WVEm1SL.js";import{c}from"./onboarding-completion-BqXlNejL.js";import"./kbd-D4H0AykE.js";import"./credential-steps-BMoVlEPM.js";import"./card-CIAdkzXA.js";import"./account-form-helpers-DhckT_PN.js";import"./mail-z5ZuLbER.js";import"./file-json-ND_vvGBa.js";function O(){const o=n(),e=i(),t=a(),r=m.useCallback(l=>{c({queryClient:e,recordCompleted:()=>o.recordEvent("onboarding.completed"),navigateToInbox:()=>{window.location.assign("/mail")}})},[o,e]);return s.jsx(p,{skipWelcome:!1,onComplete:r,onImportConfig:()=>{t({to:"/import"})}})}export{O as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o,O as i}from"./index-kBWsgSL1.js";import{a as m}from"./MailShell-OfaD4UcO.js";import{u as p,O as t}from"./OutboxPane-DAPpYoE_.js";import{u as s}from"./search-mirror-DXSTVIAm.js";import"./FullCompose-CjmuKjm2.js";import"./ErrorState-DeHr3dTk.js";import"./index-8kDZ5Nbh.js";import"./useMessageBodyContent-Ddc3tsxr.js";import"./useSignature-ahrQ6zYZ.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-F9ry5FbT.js";import"./sections-CHQnT1gv.js";import"./format-B7kZHooA.js";import"./confirm-dialog-jQWOUr73.js";import"./useSearchTokenContext-CtTpZfrh.js";import"./kbd-D4H0AykE.js";import"./search-scope-B5-OK3Cq.js";import"./circle-check-big-BqKDZ3Q_.js";import"./clock-VKZRK796.js";import"./row-actions-dL-6MXJt.js";import"./rotate-ccw-MeJyarjq.js";import"./NavMenuButton-DEpXlqD-.js";import"./menu-CSDPUHfq.js";import"./outbox-status-BlKn6P0x.js";import"./search-query-Cr_ZXBCp.js";function v(){const r=p();return s({to:"/mail/outbox"}),o.jsx(t,{outboxMessageId:r,children:o.jsx(m,{phone:o.jsx(t.Phone,{}),list:o.jsx(t.List,{}),reading:o.jsx(i,{})})})}export{v as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t,O as o}from"./index-kBWsgSL1.js";const n=()=>t.jsx(o,{});export{n as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e}from"./index-kBWsgSL1.js";const c=e("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);export{c as S};
|