@remit/web-client-dist 0.0.478 → 0.0.480

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.
Files changed (110) hide show
  1. package/assets/{BriefPane-CMc4-wv_.js → BriefPane-BdEJNwsV.js} +1 -1
  2. package/assets/{ErrorState-BcyRwbIN.js → ErrorState-CTL91fuE.js} +1 -1
  3. package/assets/{FlaggedPane-BZKIcHxA.js → FlaggedPane-BzZh6Wsv.js} +1 -1
  4. package/assets/{FullCompose-UKLwHyv3.js → FullCompose-Bms4BHPg.js} +1 -1
  5. package/assets/{MailListHeader-Cdtnj0jT.js → MailListHeader-C43KDg07.js} +1 -1
  6. package/assets/{MailShell-XDr7KkBs.js → MailShell-C4fIrI6z.js} +1 -1
  7. package/assets/{MailViewChrome-Cn3RNMMH.js → MailViewChrome-q-U1DZjL.js} +1 -1
  8. package/assets/{MailboxPane-BsMUFuiN.js → MailboxPane-CuD0jr-f.js} +1 -1
  9. package/assets/{NavMenuButton-CjKep6MW.js → NavMenuButton-DOvsxgZN.js} +1 -1
  10. package/assets/{OnboardingWizard-byDMvbcJ.js → OnboardingWizard-B2FfSB3u.js} +1 -1
  11. package/assets/{OutboxPane-DcgweAhv.js → OutboxPane-D4OIAjU0.js} +1 -1
  12. package/assets/_mailboxId-CGgM6mBc.js +1 -0
  13. package/assets/_messageId-BJjLs2Pn.js +1 -0
  14. package/assets/_messageId-CJPzxEBL.js +1 -0
  15. package/assets/_messageId-oldJdeMi.js +1 -0
  16. package/assets/_outboxMessageId-Dw64siEo.js +1 -0
  17. package/assets/_threadId-8mCoRk5S.js +1 -0
  18. package/assets/_threadId-BYjLDO0i.js +1 -0
  19. package/assets/_threadId-DKCfh1r1.js +1 -0
  20. package/assets/{accounts-Bffz--an.js → accounts-BBPhIw_K.js} +1 -1
  21. package/assets/{advanced-DaX7_Yaq.js → advanced-RxcOnjlG.js} +1 -1
  22. package/assets/{appearance-DnoUT4gp.js → appearance-CP_hVZW-.js} +1 -1
  23. package/assets/{attachment-file-C-5puG1c.js → attachment-file-DdbHhRnT.js} +1 -1
  24. package/assets/{avatar-D9pWXscp.js → avatar-D2QoGusZ.js} +1 -1
  25. package/assets/{bottom-sheet-CZLmXFST.js → bottom-sheet-BfbE1fYC.js} +1 -1
  26. package/assets/{brief-YoQ_8l6q.js → brief-BmtI16ta.js} +1 -1
  27. package/assets/brief-Yjq6y5en.js +1 -0
  28. package/assets/{browser-ponyfill-Bu29uxjn.js → browser-ponyfill-pt-5A_uQ.js} +1 -1
  29. package/assets/{bug-DbVRCgM8.js → bug-B7DVX1LH.js} +1 -1
  30. package/assets/{circle-check-8tM9N-yQ.js → circle-check-CUFp0EuL.js} +1 -1
  31. package/assets/{circle-check-big-DtZbqpU_.js → circle-check-big-D3ITahtH.js} +1 -1
  32. package/assets/{circle-help-Dl0r63ve.js → circle-help-DZ6iiqLn.js} +1 -1
  33. package/assets/{clock-B9Zu46gp.js → clock-7DhaUrXH.js} +1 -1
  34. package/assets/compose._-_outboxMessageId_-B4LakFkh.js +1 -0
  35. package/assets/compose._-_outboxMessageId_-BDbqrjuz.js +1 -0
  36. package/assets/compose._-_outboxMessageId_-DHyEHb2d.js +1 -0
  37. package/assets/compose._-_outboxMessageId_-dFeZ1y61.js +1 -0
  38. package/assets/{confirm-dialog-CZ9HqXs6.js → confirm-dialog-7y6SUiP7.js} +1 -1
  39. package/assets/{download-wy1q_sCs.js → download-CaoEFcgo.js} +1 -1
  40. package/assets/{filters-BRvvt6eZ.js → filters-B9cCiScu.js} +1 -1
  41. package/assets/flagged-CHpBIWk4.js +1 -0
  42. package/assets/{flagged-ChU4HfJi.js → flagged-bFbPg-JE.js} +1 -1
  43. package/assets/{folders-CE5ADy0s.js → folders-D0K_eYip.js} +1 -1
  44. package/assets/{format-D9KtIZkM.js → format-DOYPebpW.js} +1 -1
  45. package/assets/{help-copy-Dy93VhQF.js → help-copy-DpxyOl08.js} +1 -1
  46. package/assets/{index-1nBbj76O.js → index--jDmBhH5.js} +10 -10
  47. package/assets/index-B1Nn5IhQ.js +1 -0
  48. package/assets/index-C6t9WhW9.js +1 -0
  49. package/assets/index-CIFoV-8J.js +1 -0
  50. package/assets/index-CJEAB-UH.js +1 -0
  51. package/assets/index-CJPzxEBL.js +1 -0
  52. package/assets/{index-CF8wCpsR.js → index-D5iR33Kk.js} +4 -4
  53. package/assets/{index-OWhz0EKb.css → index-DNl2PEHq.css} +1 -1
  54. package/assets/index-DTrDTcq8.js +1 -0
  55. package/assets/index-DvbCYnGX.js +1 -0
  56. package/assets/index-oldJdeMi.js +1 -0
  57. package/assets/{kbd-CjoKCZlQ.js → kbd-faCJijM9.js} +1 -1
  58. package/assets/{labels-CoGn010J.js → labels-ao1q8Nf_.js} +1 -1
  59. package/assets/{mail-CTkdHXE8.js → mail-CVui7-1b.js} +1 -1
  60. package/assets/{mail-BQyYggPS.js → mail-DRJYwhBZ.js} +1 -1
  61. package/assets/{menu-BRxf3MOY.js → menu-CW3Mzpax.js} +1 -1
  62. package/assets/{onboarding-BsRZ7FKd.js → onboarding-CziuxS3m.js} +1 -1
  63. package/assets/outbox-CIYCDg-G.js +1 -0
  64. package/assets/{pencil-kgT3vzIy.js → pencil-DKKAE-bd.js} +1 -1
  65. package/assets/{rich-text-CmaEin_v.js → rich-text-Cj936CB8.js} +1 -1
  66. package/assets/{rich-text-spellcheck-worker-provider-C7RIFTHM.js → rich-text-spellcheck-worker-provider-_InIfkuv.js} +1 -1
  67. package/assets/{rotate-ccw-CUjD_yUV.js → rotate-ccw-Dhr2W02W.js} +1 -1
  68. package/assets/{row-actions-CPyc0mre.js → row-actions-ClLhsNPW.js} +1 -1
  69. package/assets/{search-mirror-Cl_kfDtk.js → search-mirror-BDwx47ks.js} +1 -1
  70. package/assets/{search-token-index-DN5sIZdt.js → search-token-index-CFFpLJvA.js} +1 -1
  71. package/assets/{senders-C0z86VHz.js → senders-Cssai4ku.js} +1 -1
  72. package/assets/settings-DWzmbjx4.js +1 -0
  73. package/assets/{settings-screen-DJIIxtec.js → settings-screen-C9UiB_xP.js} +1 -1
  74. package/assets/{shield-check-CgdlgjUJ.js → shield-check-Cj8mYi62.js} +1 -1
  75. package/assets/{suggested-vips-C7gJ0ozP.js → suggested-vips-BtvoU3i0.js} +1 -1
  76. package/assets/{useDebouncedValue-SHE3vTGp.js → useDebouncedValue-CjmnuaOp.js} +1 -1
  77. package/assets/{useFilters-Bi97Yxeg.js → useFilters-BqbHYPYY.js} +1 -1
  78. package/assets/{useLabels-D_JMC445.js → useLabels-BjdBxeXq.js} +1 -1
  79. package/assets/{useMessageBodyContent-DI_sMQgg.js → useMessageBodyContent-C0DuC9W1.js} +1 -1
  80. package/assets/{useQueries-DOH9m15W.js → useQueries-DSOBb7ot.js} +1 -1
  81. package/assets/{useRefreshControl-CeYkmVQh.js → useRefreshControl-CSvzy86_.js} +1 -1
  82. package/assets/{useSearchTokenContext-9WMfDKRC.js → useSearchTokenContext-R8A5fR2H.js} +1 -1
  83. package/assets/{useSemanticSearch-D4A0Z6iv.js → useSemanticSearch-CwlN7Eas.js} +1 -1
  84. package/assets/{useSignature-CACU1iWm.js → useSignature-CgXgknZQ.js} +1 -1
  85. package/index.html +2 -2
  86. package/package.json +1 -1
  87. package/assets/_mailboxId-BZE-093w.js +0 -1
  88. package/assets/_messageId-Cn43ozTk.js +0 -1
  89. package/assets/_messageId-DKYzA8kH.js +0 -1
  90. package/assets/_messageId-w8lGzwin.js +0 -1
  91. package/assets/_outboxMessageId-65a5Iapf.js +0 -1
  92. package/assets/_threadId-C1hoMcmn.js +0 -1
  93. package/assets/_threadId-CWmZOO_N.js +0 -1
  94. package/assets/_threadId-zMhlRdt5.js +0 -1
  95. package/assets/brief-C3HM5lTE.js +0 -1
  96. package/assets/compose._-_outboxMessageId_-CIa_fuf7.js +0 -1
  97. package/assets/compose._-_outboxMessageId_-DE4ubPkt.js +0 -1
  98. package/assets/compose._-_outboxMessageId_-YrYOO7lU.js +0 -1
  99. package/assets/compose._-_outboxMessageId_-lOH27cw2.js +0 -1
  100. package/assets/flagged-B3MCgm1A.js +0 -1
  101. package/assets/index-17MBbqLf.js +0 -1
  102. package/assets/index-2IHzR4tU.js +0 -1
  103. package/assets/index-Bt5CzSdb.js +0 -1
  104. package/assets/index-C5sBx8Zi.js +0 -1
  105. package/assets/index-Cn43ozTk.js +0 -1
  106. package/assets/index-DKYzA8kH.js +0 -1
  107. package/assets/index-Djxf70X9.js +0 -1
  108. package/assets/index-sVWku36x.js +0 -1
  109. package/assets/outbox-B7gz3xPu.js +0 -1
  110. package/assets/settings-CYBJjz3S.js +0 -1
@@ -1 +1 @@
1
- import{c as e}from"./index-1nBbj76O.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};
1
+ import{c as e}from"./index--jDmBhH5.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};
@@ -1 +1 @@
1
- import{j as t,ac as e}from"./index-1nBbj76O.js";const o=()=>t.jsx(e,{to:"/settings/senders",replace:!0});export{o as component};
1
+ import{j as t,ac as e}from"./index--jDmBhH5.js";const o=()=>t.jsx(e,{to:"/settings/senders",replace:!0});export{o as component};
@@ -1 +1 @@
1
- import{r as o}from"./index-1nBbj76O.js";const n=(e,t)=>{const[r,u]=o.useState(e);return o.useEffect(()=>{const s=setTimeout(()=>u(e),t);return()=>clearTimeout(s)},[e,t]),r};export{n as u};
1
+ import{r as o}from"./index--jDmBhH5.js";const n=(e,t)=>{const[r,u]=o.useState(e);return o.useEffect(()=>{const s=setTimeout(()=>u(e),t);return()=>clearTimeout(s)},[e,t]),r};export{n as u};
@@ -1 +1 @@
1
- import{r as m,ak as b,dN as E,D as C,dO as x,dw as D,dP as F,w as O,dQ as N,dR as P,dS as L,dT as w}from"./index-1nBbj76O.js";const B=(e,t)=>{if(e.state==="Expired")return"Expired";if(e.scope!=="Temporary"||!e.expiresAt)return"Active";const r=Date.parse(e.expiresAt);return Number.isNaN(r)?"Active":r<=t?"Expired":"Active"},K=e=>{if(!e)return;const t=Date.parse(e);if(!Number.isNaN(t))return new Date(t).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})},M=(e,t=new Date)=>{if(!e)return;const r=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(!r)return;const[,a,i,n]=r,s=new Date(Number(a),Number(i)-1,Number(n),23,59,59,0);if(Number.isNaN(s.getTime()))return;const o=-t.getTimezoneOffset(),d=o>=0?"+":"-",l=Math.abs(o),c=String(Math.floor(l/60)).padStart(2,"0"),f=String(l%60).padStart(2,"0"),u=p=>String(p).padStart(2,"0");return`${s.getFullYear()}-${u(s.getMonth()+1)}-${u(s.getDate())}T${u(s.getHours())}:${u(s.getMinutes())}:${u(s.getSeconds())}${d}${c}:${f}`},h="None",V=e=>!e.literalClauses.some(t=>t.field==="HasWords"),y=e=>({...e.anchorMessageId?{anchorMessageId:e.anchorMessageId}:{},matchOperator:e.matchOperator,literalClauses:e.literalClauses,actionLabelId:e.labelId??h,actionMailboxId:e.moveMailboxId??h}),G=({mode:e,ruleScope:t})=>t==="standing"?"standing":t==="until"?"temporary":e==="selected"?"just-these":"all-like-these",X=({mode:e,ruleScope:t,anchorMessageId:r,clauses:a,matchOperator:i,moveMailboxId:n,until:s})=>({...e==="similar"&&r?{anchorMessageId:r}:{},matchOperator:i==="all"?"And":"Or",literalClauses:a.map(o=>({field:o.field,value:o.value})),moveMailboxId:n,expiresAt:t==="until"?M(s??""):void 0}),S=(e,t,r)=>({name:r,scope:t==="standing"?"Standing":"Temporary",...t==="temporary"&&e.expiresAt?{expiresAt:e.expiresAt}:{},matchOperator:e.matchOperator,literalClauses:e.literalClauses,actionLabelId:e.labelId??h,actionMailboxId:e.moveMailboxId??h,...e.anchorMessageId?{anchorMessageId:e.anchorMessageId}:{}}),z=new Set(["Complete","Failed"]),v=e=>e!==void 0&&z.has(e),T=1e3,k=15e3,J=e=>{const t=Math.max(0,e),r=T*2**t;return Math.min(r,k)},R=(e,t,r)=>{if(e)return{kind:r?"restartFailed":"startFailed",error:e};if(t)return{kind:"statusUnreadable",error:t}},Y=e=>{const[t,r]=m.useState(),a=b({...E(),onSuccess:g=>r(g.organizeJobId)}),{mutate:i}=a,n=C({...x({path:{accountId:e??"",organizeJobId:t??""}}),enabled:!!e&&!!t,refetchInterval:g=>{const I=g.state.data?.state;return v(I)?!1:J(g.state.dataUpdateCount)}}),s=m.useCallback(g=>{e&&i({path:{accountId:e},body:y(g)})},[e,i]),{refetch:o}=n,d=m.useCallback(()=>{o()},[o]),l=n.data,c=a.isPending?void 0:l,f=c?.state??a.data?.state,u=v(c?.state),p={state:f,matchedCount:c?.matchedCount??0,appliedCount:c?.appliedCount??0,failedCount:c?.failedCount??0,errorMessage:c?.errorMessage??""};return{start:s,refreshStatus:d,progress:p,isStarting:a.isPending,isRunning:!!t&&!u,isDone:u,failure:R(a.error,n.error,!!l)}},Z=["From","Subject","HasWords","ListId","FromDomain"],_=e=>{const t=e.trim(),r=t.match(/<([^>]+)>/);return(r?r[1]:t).trim().toLowerCase()},ee=(e,t)=>e==="ListId"?_(t):t.trim(),$=e=>e==="all"?"And":"Or",Q=(e,t)=>{const r=e.widen!==void 0&&!e.widen.inactive,a=e.clauses.map(i=>({field:i.field,value:i.value}));return{...r&&t?{anchorMessageId:t}:{},matchOperator:$(e.matchOperator),literalClauses:a}},U=e=>e.anchorMessageId!==void 0||!e.literalClauses.some(t=>t.field==="HasWords"),j=e=>JSON.stringify({anchor:e.anchorMessageId??null,operator:e.matchOperator,clauses:e.literalClauses.map(t=>`${t.field} ${t.value}`)}),te=(e,t)=>{const r=Q(e,t);return{...r.anchorMessageId?{anchorMessageId:r.anchorMessageId}:{},matchOperator:r.matchOperator,literalClauses:r.literalClauses,moveMailboxId:e.moveMailboxId,labelId:e.labelId,expiresAt:e.scope==="until"?M(e.until??""):void 0}},q=(e,t)=>e.error!==void 0&&e.errorSignature===t?{status:"error",reason:e.error}:e.count===void 0?{status:"loading"}:e.previewedSignature===t?{status:"ready",count:e.count}:{status:"ready",count:e.count,stale:!0},H=350,re=(e,t,r)=>{const a=b(D()),{mutateAsync:i}=a,n=j(t),[s,o]=m.useState(()=>({})),d=m.useRef(t);d.current=t;const l=m.useRef(n),c=U(t);return m.useEffect(()=>{if(!e||!c||n===s.previewedSignature||n===s.errorSignature)return;const f=setTimeout(()=>{const u=n;l.current=u,i({path:{accountId:e},body:y({...d.current})}).then(p=>{l.current===u&&o({count:p.matchedCount,matchedIds:p.messageIds,previewedSignature:u})}).catch(p=>{l.current===u&&o(g=>({...g,error:p instanceof Error?p.message:"Couldn't count matches.",errorSignature:u}))})},H);return()=>clearTimeout(f)},[e,c,n,s.previewedSignature,s.errorSignature,i]),c?{count:q(s,n),matchedIds:s.previewedSignature===n?s.matchedIds??[]:[]}:{count:{status:"error",reason:F},matchedIds:[]}},A=e=>P({path:{accountId:e}}),se=e=>{const t=C({...L({path:{accountId:e??""}}),enabled:!!e});return{filters:t.data?.items??[],isPending:t.isPending,isError:t.isError,error:t.error,refetch:t.refetch}},ae=e=>{const t=O(),r=b({...N(),onSuccess:()=>{e&&t.invalidateQueries({queryKey:A(e)})}}),{mutate:a,mutateAsync:i}=r,n=m.useCallback((o,d,l)=>{e&&a({path:{accountId:e},body:S(o,d,l)})},[e,a]),s=m.useCallback(async(o,d,l)=>e?i({path:{accountId:e},body:S(o,d,l)}).then(()=>!0,()=>!1):!1,[e,i]);return{createFilter:n,createFilterAsync:s,isPending:r.isPending,isSuccess:r.isSuccess,isError:r.isError,error:r.error,reset:r.reset}},ne=e=>{const t=O(),r=b({...w(),onSuccess:()=>{e&&t.invalidateQueries({queryKey:A(e)})}}),{mutate:a}=r;return{deleteFilter:m.useCallback(n=>{e&&a({path:{accountId:e,filterId:n}})},[e,a]),isPending:r.isPending,deletingFilterId:r.isPending?r.variables?.path.filterId:void 0}};export{h as N,Z as S,Y as a,A as b,te as c,K as d,se as e,B as f,ne as g,y as h,ae as i,X as j,V as k,ee as n,G as o,M as p,Q as r,re as u};
1
+ import{r as m,ak as b,dN as E,D as C,dO as x,dw as D,dP as F,w as O,dQ as N,dR as P,dS as L,dT as w}from"./index--jDmBhH5.js";const B=(e,t)=>{if(e.state==="Expired")return"Expired";if(e.scope!=="Temporary"||!e.expiresAt)return"Active";const r=Date.parse(e.expiresAt);return Number.isNaN(r)?"Active":r<=t?"Expired":"Active"},K=e=>{if(!e)return;const t=Date.parse(e);if(!Number.isNaN(t))return new Date(t).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})},M=(e,t=new Date)=>{if(!e)return;const r=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(!r)return;const[,a,i,n]=r,s=new Date(Number(a),Number(i)-1,Number(n),23,59,59,0);if(Number.isNaN(s.getTime()))return;const o=-t.getTimezoneOffset(),d=o>=0?"+":"-",l=Math.abs(o),c=String(Math.floor(l/60)).padStart(2,"0"),f=String(l%60).padStart(2,"0"),u=p=>String(p).padStart(2,"0");return`${s.getFullYear()}-${u(s.getMonth()+1)}-${u(s.getDate())}T${u(s.getHours())}:${u(s.getMinutes())}:${u(s.getSeconds())}${d}${c}:${f}`},h="None",V=e=>!e.literalClauses.some(t=>t.field==="HasWords"),y=e=>({...e.anchorMessageId?{anchorMessageId:e.anchorMessageId}:{},matchOperator:e.matchOperator,literalClauses:e.literalClauses,actionLabelId:e.labelId??h,actionMailboxId:e.moveMailboxId??h}),G=({mode:e,ruleScope:t})=>t==="standing"?"standing":t==="until"?"temporary":e==="selected"?"just-these":"all-like-these",X=({mode:e,ruleScope:t,anchorMessageId:r,clauses:a,matchOperator:i,moveMailboxId:n,until:s})=>({...e==="similar"&&r?{anchorMessageId:r}:{},matchOperator:i==="all"?"And":"Or",literalClauses:a.map(o=>({field:o.field,value:o.value})),moveMailboxId:n,expiresAt:t==="until"?M(s??""):void 0}),S=(e,t,r)=>({name:r,scope:t==="standing"?"Standing":"Temporary",...t==="temporary"&&e.expiresAt?{expiresAt:e.expiresAt}:{},matchOperator:e.matchOperator,literalClauses:e.literalClauses,actionLabelId:e.labelId??h,actionMailboxId:e.moveMailboxId??h,...e.anchorMessageId?{anchorMessageId:e.anchorMessageId}:{}}),z=new Set(["Complete","Failed"]),v=e=>e!==void 0&&z.has(e),T=1e3,k=15e3,J=e=>{const t=Math.max(0,e),r=T*2**t;return Math.min(r,k)},R=(e,t,r)=>{if(e)return{kind:r?"restartFailed":"startFailed",error:e};if(t)return{kind:"statusUnreadable",error:t}},Y=e=>{const[t,r]=m.useState(),a=b({...E(),onSuccess:g=>r(g.organizeJobId)}),{mutate:i}=a,n=C({...x({path:{accountId:e??"",organizeJobId:t??""}}),enabled:!!e&&!!t,refetchInterval:g=>{const I=g.state.data?.state;return v(I)?!1:J(g.state.dataUpdateCount)}}),s=m.useCallback(g=>{e&&i({path:{accountId:e},body:y(g)})},[e,i]),{refetch:o}=n,d=m.useCallback(()=>{o()},[o]),l=n.data,c=a.isPending?void 0:l,f=c?.state??a.data?.state,u=v(c?.state),p={state:f,matchedCount:c?.matchedCount??0,appliedCount:c?.appliedCount??0,failedCount:c?.failedCount??0,errorMessage:c?.errorMessage??""};return{start:s,refreshStatus:d,progress:p,isStarting:a.isPending,isRunning:!!t&&!u,isDone:u,failure:R(a.error,n.error,!!l)}},Z=["From","Subject","HasWords","ListId","FromDomain"],_=e=>{const t=e.trim(),r=t.match(/<([^>]+)>/);return(r?r[1]:t).trim().toLowerCase()},ee=(e,t)=>e==="ListId"?_(t):t.trim(),$=e=>e==="all"?"And":"Or",Q=(e,t)=>{const r=e.widen!==void 0&&!e.widen.inactive,a=e.clauses.map(i=>({field:i.field,value:i.value}));return{...r&&t?{anchorMessageId:t}:{},matchOperator:$(e.matchOperator),literalClauses:a}},U=e=>e.anchorMessageId!==void 0||!e.literalClauses.some(t=>t.field==="HasWords"),j=e=>JSON.stringify({anchor:e.anchorMessageId??null,operator:e.matchOperator,clauses:e.literalClauses.map(t=>`${t.field} ${t.value}`)}),te=(e,t)=>{const r=Q(e,t);return{...r.anchorMessageId?{anchorMessageId:r.anchorMessageId}:{},matchOperator:r.matchOperator,literalClauses:r.literalClauses,moveMailboxId:e.moveMailboxId,labelId:e.labelId,expiresAt:e.scope==="until"?M(e.until??""):void 0}},q=(e,t)=>e.error!==void 0&&e.errorSignature===t?{status:"error",reason:e.error}:e.count===void 0?{status:"loading"}:e.previewedSignature===t?{status:"ready",count:e.count}:{status:"ready",count:e.count,stale:!0},H=350,re=(e,t,r)=>{const a=b(D()),{mutateAsync:i}=a,n=j(t),[s,o]=m.useState(()=>({})),d=m.useRef(t);d.current=t;const l=m.useRef(n),c=U(t);return m.useEffect(()=>{if(!e||!c||n===s.previewedSignature||n===s.errorSignature)return;const f=setTimeout(()=>{const u=n;l.current=u,i({path:{accountId:e},body:y({...d.current})}).then(p=>{l.current===u&&o({count:p.matchedCount,matchedIds:p.messageIds,previewedSignature:u})}).catch(p=>{l.current===u&&o(g=>({...g,error:p instanceof Error?p.message:"Couldn't count matches.",errorSignature:u}))})},H);return()=>clearTimeout(f)},[e,c,n,s.previewedSignature,s.errorSignature,i]),c?{count:q(s,n),matchedIds:s.previewedSignature===n?s.matchedIds??[]:[]}:{count:{status:"error",reason:F},matchedIds:[]}},A=e=>P({path:{accountId:e}}),se=e=>{const t=C({...L({path:{accountId:e??""}}),enabled:!!e});return{filters:t.data?.items??[],isPending:t.isPending,isError:t.isError,error:t.error,refetch:t.refetch}},ae=e=>{const t=O(),r=b({...N(),onSuccess:()=>{e&&t.invalidateQueries({queryKey:A(e)})}}),{mutate:a,mutateAsync:i}=r,n=m.useCallback((o,d,l)=>{e&&a({path:{accountId:e},body:S(o,d,l)})},[e,a]),s=m.useCallback(async(o,d,l)=>e?i({path:{accountId:e},body:S(o,d,l)}).then(()=>!0,()=>!1):!1,[e,i]);return{createFilter:n,createFilterAsync:s,isPending:r.isPending,isSuccess:r.isSuccess,isError:r.isError,error:r.error,reset:r.reset}},ne=e=>{const t=O(),r=b({...w(),onSuccess:()=>{e&&t.invalidateQueries({queryKey:A(e)})}}),{mutate:a}=r;return{deleteFilter:m.useCallback(n=>{e&&a({path:{accountId:e,filterId:n}})},[e,a]),isPending:r.isPending,deletingFilterId:r.isPending?r.variables?.path.filterId:void 0}};export{h as N,Z as S,Y as a,A as b,te as c,K as d,se as e,B as f,ne as g,y as h,ae as i,X as j,V as k,ee as n,G as o,M as p,Q as r,re as u};
@@ -1 +1 @@
1
- import{D as L,c2 as p,w as n,ak as l,c3 as d,r as o,c4 as c,c5 as y,c6 as g}from"./index-1nBbj76O.js";const u=e=>c({path:{accountId:e}}),f=e=>{const r=L({...p({path:{accountId:e??""}}),enabled:!!e});return{labels:r.data?.items??[],isPending:r.isPending,isError:r.isError,error:r.error,refetch:r.refetch}},m=e=>{const r=n(),t=l({...d(),onSuccess:()=>{e&&r.invalidateQueries({queryKey:u(e)})}}),{mutateAsync:s}=t;return{createLabel:o.useCallback((a,i="Default")=>e?s({path:{accountId:e},body:{name:a,color:i}}):Promise.reject(new Error("No account")),[e,s]),isPending:t.isPending,isError:t.isError,error:t.error,reset:t.reset}},h=e=>{const r=n(),t=l({...y(),onSuccess:()=>{e&&r.invalidateQueries({queryKey:u(e)})}}),{mutate:s}=t;return{updateLabel:o.useCallback((a,i)=>{e&&s({path:{accountId:e,labelId:a},body:i})},[e,s]),isPending:t.isPending,updatingLabelId:t.isPending?t.variables?.path.labelId:void 0}},C=e=>{const r=n(),t=l({...g(),onSuccess:()=>{e&&r.invalidateQueries({queryKey:u(e)})}}),{mutate:s}=t;return{deleteLabel:o.useCallback(a=>{e&&s({path:{accountId:e,labelId:a}})},[e,s]),isPending:t.isPending,deletingLabelId:t.isPending?t.variables?.path.labelId:void 0}};export{f as a,h as b,C as c,m as u};
1
+ import{D as L,c2 as p,w as n,ak as l,c3 as d,r as o,c4 as c,c5 as y,c6 as g}from"./index--jDmBhH5.js";const u=e=>c({path:{accountId:e}}),f=e=>{const r=L({...p({path:{accountId:e??""}}),enabled:!!e});return{labels:r.data?.items??[],isPending:r.isPending,isError:r.isError,error:r.error,refetch:r.refetch}},m=e=>{const r=n(),t=l({...d(),onSuccess:()=>{e&&r.invalidateQueries({queryKey:u(e)})}}),{mutateAsync:s}=t;return{createLabel:o.useCallback((a,i="Default")=>e?s({path:{accountId:e},body:{name:a,color:i}}):Promise.reject(new Error("No account")),[e,s]),isPending:t.isPending,isError:t.isError,error:t.error,reset:t.reset}},h=e=>{const r=n(),t=l({...y(),onSuccess:()=>{e&&r.invalidateQueries({queryKey:u(e)})}}),{mutate:s}=t;return{updateLabel:o.useCallback((a,i)=>{e&&s({path:{accountId:e,labelId:a},body:i})},[e,s]),isPending:t.isPending,updatingLabelId:t.isPending?t.variables?.path.labelId:void 0}},C=e=>{const r=n(),t=l({...g(),onSuccess:()=>{e&&r.invalidateQueries({queryKey:u(e)})}}),{mutate:s}=t;return{deleteLabel:o.useCallback(a=>{e&&s({path:{accountId:e,labelId:a}})},[e,s]),isPending:t.isPending,deletingLabelId:t.isPending?t.variables?.path.labelId:void 0}};export{f as a,h as b,C as c,m as u};
@@ -1 +1 @@
1
- import{l as h,r as c,ce as M,a1 as S,cd as O,c0 as B,a7 as P,t as U,w as D,D as N,cA as $,cB as F}from"./index-1nBbj76O.js";const w="/mail/brief/compose/{-$outboxMessageId}",R="/mail/flagged/compose/{-$outboxMessageId}",E="/mail/outbox/compose/{-$outboxMessageId}",k="/mail/$mailboxId/compose/{-$outboxMessageId}";function T(){const e=h({from:w,shouldThrow:!1}),t=h({from:R,shouldThrow:!1}),r=h({from:E,shouldThrow:!1}),s=h({from:k,shouldThrow:!1});return e??t??r??s}function z(){return T()!==void 0}function Y(){return T()?.outboxMessageId}function L(e,t,r){return e==="flagged"?{to:R,params:{outboxMessageId:r}}:e==="outbox"?{to:E,params:{outboxMessageId:r}}:e==="mailbox"&&t?{to:k,params:{mailboxId:t,outboxMessageId:r}}:{to:w,params:{outboxMessageId:r}}}function b(){const e=S(),t=O(),{list:r,mailboxId:s}=B();return c.useCallback((n,o)=>{e({...L(r,s,n),search:a=>a,hash:o?.keepPanels?!0:t,replace:o?.replace??!1})},[e,t,r,s])}function j(){const e=b();return c.useCallback(()=>e(void 0),[e])}function J(){const e=b();return c.useCallback(t=>e(t),[e])}function V(){const e=b();return c.useCallback(t=>e(t,{replace:!0,keepPanels:!0}),[e])}function Z(){return M()}const v=e=>{const t=e.filter(n=>!n.isMultipart&&n.disposition!=="attachment"&&n.mediaType==="TEXT"&&n.contentUrl.length>0),r=t.find(n=>n.mediaSubtype.toUpperCase()==="HTML");if(r)return{kind:"html",contentUrl:r.contentUrl};const s=t.find(n=>n.mediaSubtype.toUpperCase()==="PLAIN");return s?{kind:"text",contentUrl:s.contentUrl}:null},g={all:["messages"],detail:e=>[...g.all,"detail",e],body:e=>[...g.detail(e),"body"]};class f extends Error{reason;status;retryAfterSeconds;constructor(t,r,s,n){super(r),this.name="BodyFetchError",this.reason=t,this.status=s,this.retryAfterSeconds=n}}const _=e=>{const t=Number.parseInt(e??"",10);return!Number.isFinite(t)||t<=0?1:Math.min(t,30)},K=8,Q="x-remit-403-reason",q=(e,t)=>{const r=t?.trim()??"";return e===401?"auth":e===403?r.length>0?"auth":"body-missing":e===404?"body-missing":"generic"},I=(e,t)=>(t??"").toLowerCase().startsWith("text/html")?/<div\s+id=["']root["']/i.test(e):!1,X=(e,t)=>{const r=(t??"").toLowerCase();return!!(e==="text"&&r.startsWith("text/html"))},G=async(e,t,r=async()=>null)=>{const s={},n=await r();n&&(s.Authorization=`Bearer ${n}`);const o=await F(e,{headers:s});if(o.status===202)throw new f("not-ready","Message body is still syncing",202,_(o.headers.get("Retry-After")));if(!o.ok){const l=o.headers.get(Q),m=q(o.status,l);throw new f(m,`Failed to load message body (${o.status} ${o.statusText})`,o.status)}const a=o.headers.get("content-type");if(X(t,a))throw new f("content-type-mismatch",`Refusing to render message body — expected ${t}, got Content-Type ${a}`);const y=await o.text();if(I(y,a))throw new f("spa-shell-leak","Refusing to render message body — response looks like the SPA shell (CloudFront 403/404 fallback leaked through to /content/*)");return y},H=async(e,t)=>(t.isRetryAfterNotReady&&await e.refetchDescribeMessage(),e.fetchContent(t.contentUrl,t.kind)),ee=({messageId:e,bodyParts:t,enabled:r=!0})=>{const s=t?v(t):null,n=P(),{getToken:o}=U(),a=c.useRef(null),y=D(),l=c.useRef(!1),m=c.useRef(null),C=e&&s?`${e}:${s.contentUrl}`:null;m.current!==C&&(m.current=C,l.current=!1);const i=N({queryKey:e?[...g.body(e),s?.contentUrl??null]:["messages","body","noop"],queryFn:()=>{if(!s)throw new Error("No renderable body part");if(!e)throw new Error("No messageId");const d=l.current;return l.current=!1,H({fetchContent:(u,x)=>G(u,x,o),refetchDescribeMessage:()=>y.refetchQueries({queryKey:$({path:{messageId:e}})})},{contentUrl:s.contentUrl,kind:s.kind,isRetryAfterNotReady:d})},enabled:r&&!!e&&!!s,staleTime:300*1e3,gcTime:1800*1e3,retry:(d,u)=>u instanceof f&&u.reason==="not-ready"?d<K:d<1,retryDelay:(d,u)=>u instanceof f&&u.reason==="not-ready"?(l.current=!0,(u.retryAfterSeconds??1)*1e3):1e3,meta:{softError:!0}}),p=i.isLoading&&!!s;c.useEffect(()=>{p&&(a.current=performance.now())},[p]),c.useEffect(()=>{i.isSuccess&&a.current!==null&&(n.recordTiming("message.body.load",Math.round(performance.now()-a.current)),a.current=null)},[i.isSuccess,n]);const A=i.data&&s?{kind:s.kind,body:i.data}:void 0;return{picked:s,data:A,isLoading:p,isError:i.isError,error:i.error,refetch:i.refetch}};export{f as B,z as a,Y as b,J as c,ee as d,V as e,Z as f,q as g,j as u};
1
+ import{l as h,r as c,ce as M,a1 as S,cd as O,c0 as B,a7 as P,t as U,w as D,D as N,cA as $,cB as F}from"./index--jDmBhH5.js";const w="/mail/brief/compose/{-$outboxMessageId}",R="/mail/flagged/compose/{-$outboxMessageId}",E="/mail/outbox/compose/{-$outboxMessageId}",k="/mail/$mailboxId/compose/{-$outboxMessageId}";function T(){const e=h({from:w,shouldThrow:!1}),t=h({from:R,shouldThrow:!1}),r=h({from:E,shouldThrow:!1}),s=h({from:k,shouldThrow:!1});return e??t??r??s}function z(){return T()!==void 0}function Y(){return T()?.outboxMessageId}function L(e,t,r){return e==="flagged"?{to:R,params:{outboxMessageId:r}}:e==="outbox"?{to:E,params:{outboxMessageId:r}}:e==="mailbox"&&t?{to:k,params:{mailboxId:t,outboxMessageId:r}}:{to:w,params:{outboxMessageId:r}}}function b(){const e=S(),t=O(),{list:r,mailboxId:s}=B();return c.useCallback((n,o)=>{e({...L(r,s,n),search:a=>a,hash:o?.keepPanels?!0:t,replace:o?.replace??!1})},[e,t,r,s])}function j(){const e=b();return c.useCallback(()=>e(void 0),[e])}function J(){const e=b();return c.useCallback(t=>e(t),[e])}function V(){const e=b();return c.useCallback(t=>e(t,{replace:!0,keepPanels:!0}),[e])}function Z(){return M()}const v=e=>{const t=e.filter(n=>!n.isMultipart&&n.disposition!=="attachment"&&n.mediaType==="TEXT"&&n.contentUrl.length>0),r=t.find(n=>n.mediaSubtype.toUpperCase()==="HTML");if(r)return{kind:"html",contentUrl:r.contentUrl};const s=t.find(n=>n.mediaSubtype.toUpperCase()==="PLAIN");return s?{kind:"text",contentUrl:s.contentUrl}:null},g={all:["messages"],detail:e=>[...g.all,"detail",e],body:e=>[...g.detail(e),"body"]};class f extends Error{reason;status;retryAfterSeconds;constructor(t,r,s,n){super(r),this.name="BodyFetchError",this.reason=t,this.status=s,this.retryAfterSeconds=n}}const _=e=>{const t=Number.parseInt(e??"",10);return!Number.isFinite(t)||t<=0?1:Math.min(t,30)},K=8,Q="x-remit-403-reason",q=(e,t)=>{const r=t?.trim()??"";return e===401?"auth":e===403?r.length>0?"auth":"body-missing":e===404?"body-missing":"generic"},I=(e,t)=>(t??"").toLowerCase().startsWith("text/html")?/<div\s+id=["']root["']/i.test(e):!1,X=(e,t)=>{const r=(t??"").toLowerCase();return!!(e==="text"&&r.startsWith("text/html"))},G=async(e,t,r=async()=>null)=>{const s={},n=await r();n&&(s.Authorization=`Bearer ${n}`);const o=await F(e,{headers:s});if(o.status===202)throw new f("not-ready","Message body is still syncing",202,_(o.headers.get("Retry-After")));if(!o.ok){const l=o.headers.get(Q),m=q(o.status,l);throw new f(m,`Failed to load message body (${o.status} ${o.statusText})`,o.status)}const a=o.headers.get("content-type");if(X(t,a))throw new f("content-type-mismatch",`Refusing to render message body — expected ${t}, got Content-Type ${a}`);const y=await o.text();if(I(y,a))throw new f("spa-shell-leak","Refusing to render message body — response looks like the SPA shell (CloudFront 403/404 fallback leaked through to /content/*)");return y},H=async(e,t)=>(t.isRetryAfterNotReady&&await e.refetchDescribeMessage(),e.fetchContent(t.contentUrl,t.kind)),ee=({messageId:e,bodyParts:t,enabled:r=!0})=>{const s=t?v(t):null,n=P(),{getToken:o}=U(),a=c.useRef(null),y=D(),l=c.useRef(!1),m=c.useRef(null),C=e&&s?`${e}:${s.contentUrl}`:null;m.current!==C&&(m.current=C,l.current=!1);const i=N({queryKey:e?[...g.body(e),s?.contentUrl??null]:["messages","body","noop"],queryFn:()=>{if(!s)throw new Error("No renderable body part");if(!e)throw new Error("No messageId");const d=l.current;return l.current=!1,H({fetchContent:(u,x)=>G(u,x,o),refetchDescribeMessage:()=>y.refetchQueries({queryKey:$({path:{messageId:e}})})},{contentUrl:s.contentUrl,kind:s.kind,isRetryAfterNotReady:d})},enabled:r&&!!e&&!!s,staleTime:300*1e3,gcTime:1800*1e3,retry:(d,u)=>u instanceof f&&u.reason==="not-ready"?d<K:d<1,retryDelay:(d,u)=>u instanceof f&&u.reason==="not-ready"?(l.current=!0,(u.retryAfterSeconds??1)*1e3):1e3,meta:{softError:!0}}),p=i.isLoading&&!!s;c.useEffect(()=>{p&&(a.current=performance.now())},[p]),c.useEffect(()=>{i.isSuccess&&a.current!==null&&(n.recordTiming("message.body.load",Math.round(performance.now()-a.current)),a.current=null)},[i.isSuccess,n]);const A=i.data&&s?{kind:s.kind,body:i.data}:void 0;return{picked:s,data:A,isLoading:p,isError:i.isError,error:i.error,refetch:i.refetch}};export{f as B,z as a,Y as b,J as c,ee as d,V as e,Z as f,q as g,j as u};
@@ -1 +1 @@
1
- import{cC as Q,cD as y,cE as w,cF as S,cG as C,w as k,cH as M,cI as q,r as p,cJ as x,cK as H,cL as L,cM as P,cN as v,cO as B,cP as A}from"./index-1nBbj76O.js";function R(r,e){const s=new Set(e);return r.filter(t=>!s.has(t))}function I(r,e,s){const t=r.slice(0);return t[e]=s,t}var T=class extends Q{#i;#e;#n;#r;#s;#t;#o;#u;#h;#c=[];constructor(r,e,s){super(),this.#i=r,this.#r=s,this.#n=[],this.#s=[],this.#e=[],this.setQueries(e)}onSubscribe(){this.listeners.size===1&&this.#s.forEach(r=>{r.subscribe(e=>{this.#d(r,e)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(r=>{r.destroy()})}setQueries(r,e){this.#n=r,this.#r=e,y.batch(()=>{const s=this.#s,t=this.#f(this.#n);t.forEach(o=>o.observer.setOptions(o.defaultedQueryOptions));const i=t.map(o=>o.observer),n=i.map(o=>o.getCurrentResult()),u=s.length!==i.length,a=i.some((o,d)=>o!==s[d]),f=u||a,b=f?!0:n.some((o,d)=>{const g=this.#e[d];return!g||!w(o,g)});!f&&!b||(f&&(this.#c=t,this.#s=i),this.#e=n,this.hasListeners()&&(f&&(R(s,i).forEach(o=>{o.destroy()}),R(i,s).forEach(o=>{o.subscribe(d=>{this.#d(o,d)})})),this.#p()))})}getCurrentResult(){return this.#e}getQueries(){return this.#s.map(r=>r.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(r,e){const s=this.#f(r),t=s.map(n=>n.observer.getOptimisticResult(n.defaultedQueryOptions)),i=s.map(n=>n.defaultedQueryOptions.queryHash);return[t,n=>this.#l(n??t,e,i),()=>this.#a(t,s)]}#a(r,e){return e.map((s,t)=>{const i=r[t];return s.defaultedQueryOptions.notifyOnChangeProps?i:s.observer.trackResult(i,n=>{e.forEach(u=>{u.observer.trackProp(n)})})})}#l(r,e,s){if(e){const t=this.#h,i=s!==void 0&&t!==void 0&&(t.length!==s.length||s.some((n,u)=>n!==t[u]));return(!this.#t||this.#e!==this.#u||i||e!==this.#o)&&(this.#o=e,this.#u=this.#e,s!==void 0&&(this.#h=s),this.#t=S(this.#t,e(r))),this.#t}return r}#b(){return this.#r?.combine!==void 0&&this.#s.some((r,e)=>r.options.suspense&&this.#e[e]?.data===void 0)}#f(r){const e=new Map;this.#s.forEach(t=>{const i=t.options.queryHash;if(!i)return;const n=e.get(i);n?n.push(t):e.set(i,[t])});const s=[];return r.forEach(t=>{const i=this.#i.defaultQueryOptions(t),u=e.get(i.queryHash)?.shift()??new C(this.#i,i);s.push({defaultedQueryOptions:i,observer:u})}),s}#d(r,e){const s=this.#s.indexOf(r);s!==-1&&(this.#e=I(this.#e,s,e),this.#p())}#p(){if(this.hasListeners()){const r=this.#a(this.#e,this.#c),e=this.#b(),s=this.#t,t=e?s:this.#l(r,this.#r?.combine);(e||s!==t)&&y.batch(()=>{this.listeners.forEach(i=>{i(this.#e)})})}}};function D({queries:r,...e},s){const t=k(),i=M(),n=q(),u=p.useMemo(()=>r.map(h=>{const c=t.defaultQueryOptions(h);return c._optimisticResults=i?"isRestoring":"optimistic",c}),[r,t,i]);u.forEach(h=>{x(h);const c=t.getQueryCache().get(h.queryHash);H(h,n,c)}),L(n);const[a]=p.useState(()=>new T(t,u,e)),[f,b,o]=a.getOptimisticResult(u,e.combine),d=!i&&e.subscribed!==!1;p.useSyncExternalStore(p.useCallback(h=>d?a.subscribe(y.batchCalls(h)):P,[a,d]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),p.useEffect(()=>{a.setQueries(u,e)},[u,e,a]);const m=f.some((h,c)=>v(u[c],h))?f.flatMap((h,c)=>{const l=u[c];if(l&&v(l,h)){const E=new C(t,l);return B(l,E,n)}return[]}):[];if(m.length>0)throw Promise.all(m);const O=f.find((h,c)=>{const l=u[c];return l&&A({result:h,errorResetBoundary:n,throwOnError:l.throwOnError,query:t.getQueryCache().get(l.queryHash),suspense:l.suspense})});if(O?.error)throw O.error;return b(o())}export{D as u};
1
+ import{cC as Q,cD as y,cE as w,cF as S,cG as C,w as k,cH as M,cI as q,r as p,cJ as x,cK as H,cL as L,cM as P,cN as v,cO as B,cP as A}from"./index--jDmBhH5.js";function R(r,e){const s=new Set(e);return r.filter(t=>!s.has(t))}function I(r,e,s){const t=r.slice(0);return t[e]=s,t}var T=class extends Q{#i;#e;#n;#r;#s;#t;#o;#u;#h;#c=[];constructor(r,e,s){super(),this.#i=r,this.#r=s,this.#n=[],this.#s=[],this.#e=[],this.setQueries(e)}onSubscribe(){this.listeners.size===1&&this.#s.forEach(r=>{r.subscribe(e=>{this.#d(r,e)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(r=>{r.destroy()})}setQueries(r,e){this.#n=r,this.#r=e,y.batch(()=>{const s=this.#s,t=this.#f(this.#n);t.forEach(o=>o.observer.setOptions(o.defaultedQueryOptions));const i=t.map(o=>o.observer),n=i.map(o=>o.getCurrentResult()),u=s.length!==i.length,a=i.some((o,d)=>o!==s[d]),f=u||a,b=f?!0:n.some((o,d)=>{const g=this.#e[d];return!g||!w(o,g)});!f&&!b||(f&&(this.#c=t,this.#s=i),this.#e=n,this.hasListeners()&&(f&&(R(s,i).forEach(o=>{o.destroy()}),R(i,s).forEach(o=>{o.subscribe(d=>{this.#d(o,d)})})),this.#p()))})}getCurrentResult(){return this.#e}getQueries(){return this.#s.map(r=>r.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(r,e){const s=this.#f(r),t=s.map(n=>n.observer.getOptimisticResult(n.defaultedQueryOptions)),i=s.map(n=>n.defaultedQueryOptions.queryHash);return[t,n=>this.#l(n??t,e,i),()=>this.#a(t,s)]}#a(r,e){return e.map((s,t)=>{const i=r[t];return s.defaultedQueryOptions.notifyOnChangeProps?i:s.observer.trackResult(i,n=>{e.forEach(u=>{u.observer.trackProp(n)})})})}#l(r,e,s){if(e){const t=this.#h,i=s!==void 0&&t!==void 0&&(t.length!==s.length||s.some((n,u)=>n!==t[u]));return(!this.#t||this.#e!==this.#u||i||e!==this.#o)&&(this.#o=e,this.#u=this.#e,s!==void 0&&(this.#h=s),this.#t=S(this.#t,e(r))),this.#t}return r}#b(){return this.#r?.combine!==void 0&&this.#s.some((r,e)=>r.options.suspense&&this.#e[e]?.data===void 0)}#f(r){const e=new Map;this.#s.forEach(t=>{const i=t.options.queryHash;if(!i)return;const n=e.get(i);n?n.push(t):e.set(i,[t])});const s=[];return r.forEach(t=>{const i=this.#i.defaultQueryOptions(t),u=e.get(i.queryHash)?.shift()??new C(this.#i,i);s.push({defaultedQueryOptions:i,observer:u})}),s}#d(r,e){const s=this.#s.indexOf(r);s!==-1&&(this.#e=I(this.#e,s,e),this.#p())}#p(){if(this.hasListeners()){const r=this.#a(this.#e,this.#c),e=this.#b(),s=this.#t,t=e?s:this.#l(r,this.#r?.combine);(e||s!==t)&&y.batch(()=>{this.listeners.forEach(i=>{i(this.#e)})})}}};function D({queries:r,...e},s){const t=k(),i=M(),n=q(),u=p.useMemo(()=>r.map(h=>{const c=t.defaultQueryOptions(h);return c._optimisticResults=i?"isRestoring":"optimistic",c}),[r,t,i]);u.forEach(h=>{x(h);const c=t.getQueryCache().get(h.queryHash);H(h,n,c)}),L(n);const[a]=p.useState(()=>new T(t,u,e)),[f,b,o]=a.getOptimisticResult(u,e.combine),d=!i&&e.subscribed!==!1;p.useSyncExternalStore(p.useCallback(h=>d?a.subscribe(y.batchCalls(h)):P,[a,d]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),p.useEffect(()=>{a.setQueries(u,e)},[u,e,a]);const m=f.some((h,c)=>v(u[c],h))?f.flatMap((h,c)=>{const l=u[c];if(l&&v(l,h)){const E=new C(t,l);return B(l,E,n)}return[]}):[];if(m.length>0)throw Promise.all(m);const O=f.find((h,c)=>{const l=u[c];return l&&A({result:h,errorResetBoundary:n,throwOnError:l.throwOnError,query:t.getQueryCache().get(l.queryHash),suspense:l.suspense})});if(O?.error)throw O.error;return b(o())}export{D as u};
@@ -1 +1 @@
1
- import{j as E,e as W,b as Q,B as $,r as o,aK as R,w as N,v as B,a7 as U,Y as z,Z as G,_ as I,$ as X}from"./index-1nBbj76O.js";import{C as V}from"./circle-check-big-DtZbqpU_.js";import{R as Y,i as Z,t as J}from"./search-token-index-DN5sIZdt.js";import{u as L}from"./useQueries-DOH9m15W.js";function Se({state:e,onRefresh:s,label:t,errorMessage:r,hasUpdate:a,size:u="sm",className:c}){const i=e==="refreshing",n=e==="error",h=e==="success",y=n?E.jsx(W,{className:"size-4 text-danger"}):h?E.jsx(V,{className:"size-4 text-positive"}):E.jsx(Y,{className:Q("size-4",i&&"animate-spin")}),w=n?`${t} — failed: ${r??"try again"}`:i?`${t} — refreshing`:h?`${t} — up to date`:a?`${t} — new mail`:t;return E.jsxs("div",{className:"relative inline-flex",children:[E.jsx($,{variant:"ghost",size:u,icon:y,onClick:s,disabled:i,"aria-label":w,"aria-busy":i||void 0,title:n?r:t,className:c}),e==="idle"&&a&&E.jsx("span",{"aria-hidden":"true",className:"absolute right-1 top-1 size-1.5 rounded-full bg-accent-2"})]})}const ee=new Set(["discovering_mailboxes","syncing_inbox","syncing_others"]);function P(e){return!!e&&ee.has(e)}const F=3e3,te=F*2,T={syncing:!1,resolved:!1,synced:0,total:0};function we(e,s){const t=e.join(","),[r,a]=o.useState(!1),[u,c]=o.useState(!1);o.useEffect(()=>{a(!1),c(!1)},[t,s]),o.useEffect(()=>{if(!s)return;const m=setTimeout(()=>c(!0),te);return()=>clearTimeout(m)},[t,s]);const i=L({queries:e.map(m=>({...R({path:{accountId:m}}),enabled:s&&!r,refetchInterval:F,meta:{softError:!0}}))}),n=i.every(m=>m.isSuccess||m.isError),h=i.length===0||n||u;let y=!1,w=0,S=0;for(const m of i)if(P(m.data?.syncPhase)){y=!0;for(const l of m.data?.mailboxes??[])w+=l.messagesSynced,S+=l.messagesTotal}const x=s&&h&&!y;return o.useEffect(()=>{x&&a(!0)},[x]),!s||!h?T:{syncing:y,resolved:!0,synced:w,total:S}}const se=180*1e3,xe=30*1e3;let q=0;const v=new Set,ne=(e=Date.now())=>{q=e+se;for(const s of v)s()},pe=(e=Date.now())=>e<q,Ee=e=>(v.add(e),()=>{v.delete(e)}),_=6e4,re=new Set(["sent","drafts","trash","archive"]),C=(e,s)=>{const t=new Map;for(const r of e){const a=s.get(r.mailboxId)?.role;a&&re.has(a)||t.set(r.mailboxId,r.messagesTotal)}return t},j=(e,s)=>{const t=[];for(const[r,a]of s)a>(e.get(r)??0)&&t.push(r);return t},oe=(e,s)=>j(e,s).length>0,D=o.createContext(null),ae=()=>{const e=o.useContext(D);if(!e)throw new Error("useMailFreshness must be used inside <MailFreshnessProvider>");return e};function be({accountIds:e,children:s}){const t=N(),{resultFolderIndex:r}=B(),a=o.useRef(new Map),u=o.useRef(new Set),c=o.useRef(new Map),[i,n]=o.useState(new Set),h=L({queries:e.map(l=>({...R({path:{accountId:l}}),refetchInterval:_,staleTime:_,meta:{softError:!0}}))}),y=h.map(l=>l.dataUpdatedAt).join(","),w=e.join(",");o.useEffect(()=>{let l=!1;const f=new Set(i);e.forEach((d,p)=>{const b=h[p]?.data;if(!b)return;const g=C(b.mailboxes??[],r),k=c.current.get(d);if(c.current.set(d,g),k){const A=j(k,g);A.length>0&&Z(t,J(A))}if(!u.current.has(d)){u.current.add(d),a.current.set(d,g);return}if(f.has(d))return;const K=a.current.get(d)??new Map;oe(K,g)&&(f.add(d),l=!0)}),l&&n(f)},[w,y]);const S=o.useCallback(l=>l.some(f=>i.has(f)),[i]),x=o.useCallback(l=>{n(f=>{if(l.every(p=>!f.has(p)))return f;const d=new Set(f);for(const p of l)d.delete(p);return d});for(const f of l){const d=t.getQueryData(R({path:{accountId:f}}).queryKey);a.current.set(f,C(d?.mailboxes??[],r)),u.current.add(f)}},[t,r]),m=o.useMemo(()=>({hasNewMail:S,acknowledge:x}),[S,x]);return E.jsx(D.Provider,{value:m,children:s})}const ie=2e3,ce=45e3,ue=e=>new Promise(s=>setTimeout(s,e)),M=e=>e instanceof Error&&e.message?e.message:"Something went wrong",le=e=>{I(e,{softError:!0},"user")&&X(e)},O=(e,s)=>e.fetchQuery({...R({path:{accountId:s}}),staleTime:0}),H=e=>e.mailboxes?.find(s=>s.fullPath?.toUpperCase()==="INBOX")?.lastSyncedAt??0,fe=async({accountId:e,readStatus:s,baselineLastSyncAt:t,baselineInboxSyncedAt:r=0,onInboxSynced:a,deadline:u,pollMs:c=ie})=>{let i=!1;for(;;){const n=await s().then(S=>({ok:!0,data:S})).catch(S=>({ok:!1,error:S}));if(!n.ok)return{accountId:e,message:M(n.error)};const{syncPhase:h,lastSyncAt:y}=n.data;if((y??0)>t&&!P(h))return h==="error"?{accountId:e,message:"Sync failed for this account"}:void 0;if(!i&&H(n.data)>r&&(i=!0,a?.()),Date.now()>=u)return{accountId:e,message:"Refresh is taking longer than usual"};await ue(c)}},de=async(e,s,t,r,a)=>{const u=await O(e,t).then(n=>({ok:!0,lastSyncAt:n.lastSyncAt??0,inboxSyncedAt:H(n)})).catch(n=>({ok:!1,error:n}));if(!u.ok)return{accountId:t,enqueued:!1,ok:!1,message:M(u.error)};const c=await z({path:{accountId:t},throwOnError:!0}).then(()=>({ok:!0})).catch(n=>({ok:!1,error:n}));if(!c.ok)return le(c.error),{accountId:t,enqueued:!1,ok:!1,message:M(c.error)};s.recordEvent("sync.triggered");const i=await fe({accountId:t,readStatus:()=>O(e,t),baselineLastSyncAt:u.lastSyncAt,baselineInboxSyncedAt:u.inboxSyncedAt,onInboxSynced:()=>a(t),deadline:r});return i?{accountId:t,enqueued:!0,ok:!1,message:i.message}:{accountId:t,enqueued:!0,ok:!0}},Re=(e,s={})=>{const t=N(),r=U(),{acknowledge:a}=ae(),[u,c]=o.useState("idle"),[i,n]=o.useState(),h=o.useRef(0),y=o.useRef(e);y.current=e;const w=o.useRef(s);w.current=s,o.useEffect(()=>{if(u!=="success")return;const x=setTimeout(()=>c("idle"),2e3);return()=>clearTimeout(x)},[u]);const S=o.useCallback(()=>{const x=y.current;if(x.length===0){c("error"),n("Nothing to refresh yet");return}const m=++h.current;c("refreshing"),n(void 0),ne();const l=f=>{h.current===m&&(t.invalidateQueries({queryKey:G({path:{accountId:f}})}),w.current.onSettled?.())};(async()=>{const f=Date.now()+ce,d=await Promise.all(x.map(g=>de(t,r,g,f,l)));if(h.current!==m)return;const p=d.filter(g=>g.enqueued).map(g=>g.accountId);for(const g of p)l(g);p.length>0&&a(p);const b=d.filter(g=>!g.ok);b.length===0?c("success"):(c("error"),n(b[0]?.message))})()},[a,t,r]);return{state:u,errorMessage:i,refresh:S}};export{xe as H,be as M,Se as R,Re as a,P as b,we as c,pe as i,Ee as s,ae as u};
1
+ import{j as E,e as W,b as Q,B as $,r as o,aK as R,w as N,v as B,a7 as U,Y as z,Z as G,_ as I,$ as X}from"./index--jDmBhH5.js";import{C as V}from"./circle-check-big-D3ITahtH.js";import{R as Y,i as Z,t as J}from"./search-token-index-CFFpLJvA.js";import{u as L}from"./useQueries-DSOBb7ot.js";function Se({state:e,onRefresh:s,label:t,errorMessage:r,hasUpdate:a,size:u="sm",className:c}){const i=e==="refreshing",n=e==="error",h=e==="success",y=n?E.jsx(W,{className:"size-4 text-danger"}):h?E.jsx(V,{className:"size-4 text-positive"}):E.jsx(Y,{className:Q("size-4",i&&"animate-spin")}),w=n?`${t} — failed: ${r??"try again"}`:i?`${t} — refreshing`:h?`${t} — up to date`:a?`${t} — new mail`:t;return E.jsxs("div",{className:"relative inline-flex",children:[E.jsx($,{variant:"ghost",size:u,icon:y,onClick:s,disabled:i,"aria-label":w,"aria-busy":i||void 0,title:n?r:t,className:c}),e==="idle"&&a&&E.jsx("span",{"aria-hidden":"true",className:"absolute right-1 top-1 size-1.5 rounded-full bg-accent-2"})]})}const ee=new Set(["discovering_mailboxes","syncing_inbox","syncing_others"]);function P(e){return!!e&&ee.has(e)}const F=3e3,te=F*2,T={syncing:!1,resolved:!1,synced:0,total:0};function we(e,s){const t=e.join(","),[r,a]=o.useState(!1),[u,c]=o.useState(!1);o.useEffect(()=>{a(!1),c(!1)},[t,s]),o.useEffect(()=>{if(!s)return;const m=setTimeout(()=>c(!0),te);return()=>clearTimeout(m)},[t,s]);const i=L({queries:e.map(m=>({...R({path:{accountId:m}}),enabled:s&&!r,refetchInterval:F,meta:{softError:!0}}))}),n=i.every(m=>m.isSuccess||m.isError),h=i.length===0||n||u;let y=!1,w=0,S=0;for(const m of i)if(P(m.data?.syncPhase)){y=!0;for(const l of m.data?.mailboxes??[])w+=l.messagesSynced,S+=l.messagesTotal}const x=s&&h&&!y;return o.useEffect(()=>{x&&a(!0)},[x]),!s||!h?T:{syncing:y,resolved:!0,synced:w,total:S}}const se=180*1e3,xe=30*1e3;let q=0;const v=new Set,ne=(e=Date.now())=>{q=e+se;for(const s of v)s()},pe=(e=Date.now())=>e<q,Ee=e=>(v.add(e),()=>{v.delete(e)}),_=6e4,re=new Set(["sent","drafts","trash","archive"]),C=(e,s)=>{const t=new Map;for(const r of e){const a=s.get(r.mailboxId)?.role;a&&re.has(a)||t.set(r.mailboxId,r.messagesTotal)}return t},j=(e,s)=>{const t=[];for(const[r,a]of s)a>(e.get(r)??0)&&t.push(r);return t},oe=(e,s)=>j(e,s).length>0,D=o.createContext(null),ae=()=>{const e=o.useContext(D);if(!e)throw new Error("useMailFreshness must be used inside <MailFreshnessProvider>");return e};function be({accountIds:e,children:s}){const t=N(),{resultFolderIndex:r}=B(),a=o.useRef(new Map),u=o.useRef(new Set),c=o.useRef(new Map),[i,n]=o.useState(new Set),h=L({queries:e.map(l=>({...R({path:{accountId:l}}),refetchInterval:_,staleTime:_,meta:{softError:!0}}))}),y=h.map(l=>l.dataUpdatedAt).join(","),w=e.join(",");o.useEffect(()=>{let l=!1;const f=new Set(i);e.forEach((d,p)=>{const b=h[p]?.data;if(!b)return;const g=C(b.mailboxes??[],r),k=c.current.get(d);if(c.current.set(d,g),k){const A=j(k,g);A.length>0&&Z(t,J(A))}if(!u.current.has(d)){u.current.add(d),a.current.set(d,g);return}if(f.has(d))return;const K=a.current.get(d)??new Map;oe(K,g)&&(f.add(d),l=!0)}),l&&n(f)},[w,y]);const S=o.useCallback(l=>l.some(f=>i.has(f)),[i]),x=o.useCallback(l=>{n(f=>{if(l.every(p=>!f.has(p)))return f;const d=new Set(f);for(const p of l)d.delete(p);return d});for(const f of l){const d=t.getQueryData(R({path:{accountId:f}}).queryKey);a.current.set(f,C(d?.mailboxes??[],r)),u.current.add(f)}},[t,r]),m=o.useMemo(()=>({hasNewMail:S,acknowledge:x}),[S,x]);return E.jsx(D.Provider,{value:m,children:s})}const ie=2e3,ce=45e3,ue=e=>new Promise(s=>setTimeout(s,e)),M=e=>e instanceof Error&&e.message?e.message:"Something went wrong",le=e=>{I(e,{softError:!0},"user")&&X(e)},O=(e,s)=>e.fetchQuery({...R({path:{accountId:s}}),staleTime:0}),H=e=>e.mailboxes?.find(s=>s.fullPath?.toUpperCase()==="INBOX")?.lastSyncedAt??0,fe=async({accountId:e,readStatus:s,baselineLastSyncAt:t,baselineInboxSyncedAt:r=0,onInboxSynced:a,deadline:u,pollMs:c=ie})=>{let i=!1;for(;;){const n=await s().then(S=>({ok:!0,data:S})).catch(S=>({ok:!1,error:S}));if(!n.ok)return{accountId:e,message:M(n.error)};const{syncPhase:h,lastSyncAt:y}=n.data;if((y??0)>t&&!P(h))return h==="error"?{accountId:e,message:"Sync failed for this account"}:void 0;if(!i&&H(n.data)>r&&(i=!0,a?.()),Date.now()>=u)return{accountId:e,message:"Refresh is taking longer than usual"};await ue(c)}},de=async(e,s,t,r,a)=>{const u=await O(e,t).then(n=>({ok:!0,lastSyncAt:n.lastSyncAt??0,inboxSyncedAt:H(n)})).catch(n=>({ok:!1,error:n}));if(!u.ok)return{accountId:t,enqueued:!1,ok:!1,message:M(u.error)};const c=await z({path:{accountId:t},throwOnError:!0}).then(()=>({ok:!0})).catch(n=>({ok:!1,error:n}));if(!c.ok)return le(c.error),{accountId:t,enqueued:!1,ok:!1,message:M(c.error)};s.recordEvent("sync.triggered");const i=await fe({accountId:t,readStatus:()=>O(e,t),baselineLastSyncAt:u.lastSyncAt,baselineInboxSyncedAt:u.inboxSyncedAt,onInboxSynced:()=>a(t),deadline:r});return i?{accountId:t,enqueued:!0,ok:!1,message:i.message}:{accountId:t,enqueued:!0,ok:!0}},Re=(e,s={})=>{const t=N(),r=U(),{acknowledge:a}=ae(),[u,c]=o.useState("idle"),[i,n]=o.useState(),h=o.useRef(0),y=o.useRef(e);y.current=e;const w=o.useRef(s);w.current=s,o.useEffect(()=>{if(u!=="success")return;const x=setTimeout(()=>c("idle"),2e3);return()=>clearTimeout(x)},[u]);const S=o.useCallback(()=>{const x=y.current;if(x.length===0){c("error"),n("Nothing to refresh yet");return}const m=++h.current;c("refreshing"),n(void 0),ne();const l=f=>{h.current===m&&(t.invalidateQueries({queryKey:G({path:{accountId:f}})}),w.current.onSettled?.())};(async()=>{const f=Date.now()+ce,d=await Promise.all(x.map(g=>de(t,r,g,f,l)));if(h.current!==m)return;const p=d.filter(g=>g.enqueued).map(g=>g.accountId);for(const g of p)l(g);p.length>0&&a(p);const b=d.filter(g=>!g.ok);b.length===0?c("success"):(c("error"),n(b[0]?.message))})()},[a,t,r]);return{state:u,errorMessage:i,refresh:S}};export{xe as H,be as M,Se as R,Re as a,P as b,we as c,pe as i,Ee as s,ae as u};
@@ -1,4 +1,4 @@
1
- import{ck as V,r as g,j as a,b,I as Q,w as Y,ai as q,ak as X,al as Z,cA as J,bx as ee,t as te,e as se,X as re,bN as R,v as ne,c0 as ae}from"./index-1nBbj76O.js";import{K as k}from"./kbd-CjoKCZlQ.js";import{B as oe,d as ie}from"./useMessageBodyContent-DI_sMQgg.js";import{i as ce}from"./search-scope-DTcpOp3S.js";const le=(e,t)=>{const r=e==="newsletter"||e==="marketing"||t;return{framed:r,isPlain:!r}},de=()=>`
1
+ import{ck as V,r as g,j as a,b,I as Q,w as Y,ai as q,ak as X,al as Z,cA as J,bx as ee,t as te,e as se,X as re,bN as R,v as ne,c0 as ae}from"./index--jDmBhH5.js";import{K as k}from"./kbd-faCJijM9.js";import{B as oe,d as ie}from"./useMessageBodyContent-C0DuC9W1.js";import{i as ce}from"./search-scope-DTcpOp3S.js";const le=(e,t)=>{const r=e==="newsletter"||e==="marketing"||t;return{framed:r,isPlain:!r}},de=()=>`
2
2
  /* Zero the UA default body margin and clamp the document to the iframe width so
3
3
  wide author markup can't push the body (and the page) past the viewport. */
4
4
  html, body {
@@ -1 +1 @@
1
- import{w as T,ai as I,ak as k,bK as C,bY as A,r as v,j as p,bZ as h,b_ as E,b$ as w,v as D,c0 as j,D as z,c1 as Q,bN as R}from"./index-1nBbj76O.js";import{P as _}from"./attachment-file-C-5puG1c.js";import{am as N,an as O}from"./MailListHeader-Cdtnj0jT.js";import{i as P,t as q}from"./search-token-index-DN5sIZdt.js";import{a as B}from"./useLabels-D_JMC445.js";import{n as U}from"./search-query-Cr_ZXBCp.js";import{s as F}from"./search-scope-DTcpOp3S.js";import{u as G,p as H}from"./useSearchTokenContext-9WMfDKRC.js";const ne=e=>{const t=new Set;for(const a of e)a&&t.add(a);return t.size>1?{accountId:void 0,restriction:"spansAccounts",moveDisabledHint:"Move only works within one account — clear selection or pick messages from a single account"}:{accountId:t.size===1?[...t][0]:void 0,restriction:void 0,moveDisabledHint:void 0}},K=e=>{const{mailboxId:t,messages:a}=e,c=T(),{pushError:l}=I(),{mutateAsync:i,isPending:o}=k({...A(),onError:(n,u)=>{l({title:u.body.action==="Remove"?"Couldn't remove label":"Couldn't apply label",detail:C(n),error:n})},onSettled:(n,u,d)=>{P(c,q(N(d.body.messageIds??[],a??[],t)))}});return{applyLabel:v.useCallback((n,u,d)=>{n.length!==0&&O(n,m=>i({body:{messageIds:m,labelId:u,action:d}}))},[i]),isPending:o}};function re({accountId:e,mailboxId:t,messageIds:a}){const{labels:c}=B(e),{applyLabel:l}=K({mailboxId:t}),i=v.useMemo(()=>c.map(o=>({key:o.labelId,label:o.name,icon:p.jsx("span",{className:`size-2.5 rounded-full ${E(o.color)?h[o.color]:h.Default}`}),onSelect:()=>l(a,o.labelId,"Apply")})),[c,a,l]);return i.length===0?null:p.jsx(_,{triggerLabel:"Apply label to selected messages",triggerIcon:p.jsx(w,{className:"size-4 text-fg-subtle"}),triggerText:"Apply label",items:i,align:"start",nested:!0,touch:!1,triggerClassName:"min-h-11 w-full justify-start gap-3 px-4 py-2.5 text-sm font-normal text-fg"})}const $=20,V=new Set(Object.values(R)),Y=e=>e!==void 0&&V.has(e)?e:void 0,Z=e=>{if(e.some(t=>t.type==="isUnread"))return!1;if(e.some(t=>t.type==="isRead"))return!0};function ie({mailboxId:e,filterCategory:t}={}){const{searchQuery:a}=D(),c=G(),l=j(),i=U(a),{freeText:o,tokens:r}=H(i,c),n=o.length>0,u=r.find(s=>s.type==="category"),d=Y(t)??u?.category,m=r.some(s=>s.type==="hasAttachment")?!0:void 0,b=r.some(s=>s.type==="isStarred")?!0:void 0,f=Z(r),y=r.find(s=>s.type==="after"),g=r.find(s=>s.type==="before"),S=r.find(s=>s.type==="in"),x=F({browsed:l,callerMailboxId:e,inTokenMailboxId:S?.mailboxId}),{data:L,isLoading:M}=z({...Q({query:{query:o,mailboxId:x,limit:$,...d!==void 0?{category:d}:{},...m!==void 0?{hasAttachment:m}:{},...b!==void 0?{hasStars:b}:{},...f!==void 0?{isRead:f}:{},...y?{sentDateFrom:y.epochSeconds}:{},...g?{sentDateTo:g.epochSeconds}:{}}}),enabled:n,staleTime:6e4});return{hits:L?.items??[],isLoading:n&&M}}export{re as L,ne as r,ie as u};
1
+ import{w as T,ai as I,ak as k,bK as C,bY as A,r as v,j as p,bZ as h,b_ as E,b$ as w,v as D,c0 as j,D as z,c1 as Q,bN as R}from"./index--jDmBhH5.js";import{P as _}from"./attachment-file-DdbHhRnT.js";import{am as N,an as O}from"./MailListHeader-C43KDg07.js";import{i as P,t as q}from"./search-token-index-CFFpLJvA.js";import{a as B}from"./useLabels-BjdBxeXq.js";import{n as U}from"./search-query-Cr_ZXBCp.js";import{s as F}from"./search-scope-DTcpOp3S.js";import{u as G,p as H}from"./useSearchTokenContext-R8A5fR2H.js";const ne=e=>{const t=new Set;for(const a of e)a&&t.add(a);return t.size>1?{accountId:void 0,restriction:"spansAccounts",moveDisabledHint:"Move only works within one account — clear selection or pick messages from a single account"}:{accountId:t.size===1?[...t][0]:void 0,restriction:void 0,moveDisabledHint:void 0}},K=e=>{const{mailboxId:t,messages:a}=e,c=T(),{pushError:l}=I(),{mutateAsync:i,isPending:o}=k({...A(),onError:(n,u)=>{l({title:u.body.action==="Remove"?"Couldn't remove label":"Couldn't apply label",detail:C(n),error:n})},onSettled:(n,u,d)=>{P(c,q(N(d.body.messageIds??[],a??[],t)))}});return{applyLabel:v.useCallback((n,u,d)=>{n.length!==0&&O(n,m=>i({body:{messageIds:m,labelId:u,action:d}}))},[i]),isPending:o}};function re({accountId:e,mailboxId:t,messageIds:a}){const{labels:c}=B(e),{applyLabel:l}=K({mailboxId:t}),i=v.useMemo(()=>c.map(o=>({key:o.labelId,label:o.name,icon:p.jsx("span",{className:`size-2.5 rounded-full ${E(o.color)?h[o.color]:h.Default}`}),onSelect:()=>l(a,o.labelId,"Apply")})),[c,a,l]);return i.length===0?null:p.jsx(_,{triggerLabel:"Apply label to selected messages",triggerIcon:p.jsx(w,{className:"size-4 text-fg-subtle"}),triggerText:"Apply label",items:i,align:"start",nested:!0,touch:!1,triggerClassName:"min-h-11 w-full justify-start gap-3 px-4 py-2.5 text-sm font-normal text-fg"})}const $=20,V=new Set(Object.values(R)),Y=e=>e!==void 0&&V.has(e)?e:void 0,Z=e=>{if(e.some(t=>t.type==="isUnread"))return!1;if(e.some(t=>t.type==="isRead"))return!0};function ie({mailboxId:e,filterCategory:t}={}){const{searchQuery:a}=D(),c=G(),l=j(),i=U(a),{freeText:o,tokens:r}=H(i,c),n=o.length>0,u=r.find(s=>s.type==="category"),d=Y(t)??u?.category,m=r.some(s=>s.type==="hasAttachment")?!0:void 0,b=r.some(s=>s.type==="isStarred")?!0:void 0,f=Z(r),y=r.find(s=>s.type==="after"),g=r.find(s=>s.type==="before"),S=r.find(s=>s.type==="in"),x=F({browsed:l,callerMailboxId:e,inTokenMailboxId:S?.mailboxId}),{data:L,isLoading:M}=z({...Q({query:{query:o,mailboxId:x,limit:$,...d!==void 0?{category:d}:{},...m!==void 0?{hasAttachment:m}:{},...b!==void 0?{hasStars:b}:{},...f!==void 0?{isRead:f}:{},...y?{sentDateFrom:y.epochSeconds}:{},...g?{sentDateTo:g.epochSeconds}:{}}}),enabled:n,staleTime:6e4});return{hits:L?.items??[],isLoading:n&&M}}export{re as L,ne as r,ie as u};
@@ -1 +1 @@
1
- import{w as g,ai as p,D as f,a2 as m,r,ak as y,al as T,a6 as E,am as x}from"./index-1nBbj76O.js";const i={html:"",plainText:""},d=e=>{const u=g(),{pushError:o}=p(),{data:n}=f({...m(),staleTime:1/0}),l=r.useMemo(()=>{if(!e||!n)return i;const t=n.accounts.find(s=>s.accountId===e);return t?{html:t.signatureHtml??"",plainText:t.signaturePlainText??""}:i},[e,n]),a=y({...x(),onSuccess:()=>{u.invalidateQueries({queryKey:E()})},onError:t=>{o(T("Couldn't save signature","The signature wasn't saved.",t))}}),c=r.useCallback((t,s)=>{e&&a.mutate({path:{accountId:e},body:{signatureHtml:t,signaturePlainText:s}})},[e,a]);return{signature:l,setSignature:c,isSaving:a.isPending}};export{d as u};
1
+ import{w as g,ai as p,D as f,a2 as m,r,ak as y,al as T,a6 as E,am as x}from"./index--jDmBhH5.js";const i={html:"",plainText:""},d=e=>{const u=g(),{pushError:o}=p(),{data:n}=f({...m(),staleTime:1/0}),l=r.useMemo(()=>{if(!e||!n)return i;const t=n.accounts.find(s=>s.accountId===e);return t?{html:t.signatureHtml??"",plainText:t.signaturePlainText??""}:i},[e,n]),a=y({...x(),onSuccess:()=>{u.invalidateQueries({queryKey:E()})},onError:t=>{o(T("Couldn't save signature","The signature wasn't saved.",t))}}),c=r.useCallback((t,s)=>{e&&a.mutate({path:{accountId:e},body:{signatureHtml:t,signaturePlainText:s}})},[e,a]);return{signature:l,setSignature:c,isSaving:a.isPending}};export{d as u};
package/index.html CHANGED
@@ -38,8 +38,8 @@
38
38
  } catch (_) {}
39
39
  })();
40
40
  </script>
41
- <script type="module" crossorigin src="/assets/index-1nBbj76O.js"></script>
42
- <link rel="stylesheet" crossorigin href="/assets/index-OWhz0EKb.css">
41
+ <script type="module" crossorigin src="/assets/index--jDmBhH5.js"></script>
42
+ <link rel="stylesheet" crossorigin href="/assets/index-DNl2PEHq.css">
43
43
  </head>
44
44
  <body>
45
45
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/web-client-dist",
3
- "version": "0.0.478",
3
+ "version": "0.0.480",
4
4
  "description": "Built Remit web client — static assets and the default runtime config.",
5
5
  "files": [
6
6
  "**/*"
@@ -1 +0,0 @@
1
- import{a8 as m,j as o,a5 as p}from"./index-1nBbj76O.js";import{a}from"./MailShell-XDr7KkBs.js";import{M as r}from"./MailboxPane-BsMUFuiN.js";import{f as e}from"./search-token-index-DN5sIZdt.js";import{u as s}from"./search-mirror-Cl_kfDtk.js";import"./FullCompose-UKLwHyv3.js";import"./ErrorState-BcyRwbIN.js";import"./index-CF8wCpsR.js";import"./useMessageBodyContent-DI_sMQgg.js";import"./useSignature-CACU1iWm.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-SHE3vTGp.js";import"./format-D9KtIZkM.js";import"./confirm-dialog-CZ9HqXs6.js";import"./useSearchTokenContext-9WMfDKRC.js";import"./kbd-CjoKCZlQ.js";import"./search-scope-DTcpOp3S.js";import"./useRefreshControl-CeYkmVQh.js";import"./circle-check-big-DtZbqpU_.js";import"./useQueries-DOH9m15W.js";import"./MailListHeader-Cdtnj0jT.js";import"./attachment-file-C-5puG1c.js";import"./mail-BQyYggPS.js";import"./avatar-D9pWXscp.js";import"./download-wy1q_sCs.js";import"./shield-check-CgdlgjUJ.js";import"./useFilters-Bi97Yxeg.js";import"./clock-B9Zu46gp.js";import"./menu-BRxf3MOY.js";import"./MailViewChrome-Cn3RNMMH.js";import"./NavMenuButton-CjKep6MW.js";import"./useLabels-D_JMC445.js";import"./useSemanticSearch-D4A0Z6iv.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-CZLmXFST.js";import"./circle-help-Dl0r63ve.js";import"./circle-check-8tM9N-yQ.js";function Q(){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{Q as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-1nBbj76O.js";import{F as r}from"./FlaggedPane-BZKIcHxA.js";import"./useSearchTokenContext-9WMfDKRC.js";import"./kbd-CjoKCZlQ.js";import"./useMessageBodyContent-DI_sMQgg.js";import"./search-scope-DTcpOp3S.js";import"./MailListHeader-Cdtnj0jT.js";import"./search-token-index-DN5sIZdt.js";import"./useQueries-DOH9m15W.js";import"./attachment-file-C-5puG1c.js";import"./mail-BQyYggPS.js";import"./avatar-D9pWXscp.js";import"./index-CF8wCpsR.js";import"./useSignature-CACU1iWm.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-SHE3vTGp.js";import"./format-D9KtIZkM.js";import"./ErrorState-BcyRwbIN.js";import"./download-wy1q_sCs.js";import"./shield-check-CgdlgjUJ.js";import"./useFilters-Bi97Yxeg.js";import"./confirm-dialog-CZ9HqXs6.js";import"./clock-B9Zu46gp.js";import"./menu-BRxf3MOY.js";import"./MailViewChrome-Cn3RNMMH.js";import"./wizard-selection-B1bng5Jq.js";function w(){return o.jsx(r.Reading,{})}export{w as component};
@@ -1 +0,0 @@
1
- import{j as r}from"./index-1nBbj76O.js";import{B as o}from"./BriefPane-CMc4-wv_.js";import"./useSearchTokenContext-9WMfDKRC.js";import"./kbd-CjoKCZlQ.js";import"./useMessageBodyContent-DI_sMQgg.js";import"./search-scope-DTcpOp3S.js";import"./MailListHeader-Cdtnj0jT.js";import"./search-token-index-DN5sIZdt.js";import"./useQueries-DOH9m15W.js";import"./attachment-file-C-5puG1c.js";import"./mail-BQyYggPS.js";import"./avatar-D9pWXscp.js";import"./index-CF8wCpsR.js";import"./useSignature-CACU1iWm.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-SHE3vTGp.js";import"./format-D9KtIZkM.js";import"./ErrorState-BcyRwbIN.js";import"./download-wy1q_sCs.js";import"./shield-check-CgdlgjUJ.js";import"./useFilters-Bi97Yxeg.js";import"./confirm-dialog-CZ9HqXs6.js";import"./clock-B9Zu46gp.js";import"./menu-BRxf3MOY.js";import"./useRefreshControl-CeYkmVQh.js";import"./circle-check-big-DtZbqpU_.js";import"./useLabels-D_JMC445.js";import"./useSemanticSearch-D4A0Z6iv.js";import"./search-query-Cr_ZXBCp.js";import"./wizard-selection-B1bng5Jq.js";function C(){return r.jsx(o.Reading,{})}export{C as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-1nBbj76O.js";import{M as r}from"./MailboxPane-BsMUFuiN.js";import"./useSearchTokenContext-9WMfDKRC.js";import"./kbd-CjoKCZlQ.js";import"./useMessageBodyContent-DI_sMQgg.js";import"./search-scope-DTcpOp3S.js";import"./useRefreshControl-CeYkmVQh.js";import"./circle-check-big-DtZbqpU_.js";import"./search-token-index-DN5sIZdt.js";import"./useQueries-DOH9m15W.js";import"./MailListHeader-Cdtnj0jT.js";import"./attachment-file-C-5puG1c.js";import"./mail-BQyYggPS.js";import"./avatar-D9pWXscp.js";import"./index-CF8wCpsR.js";import"./useSignature-CACU1iWm.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-SHE3vTGp.js";import"./format-D9KtIZkM.js";import"./ErrorState-BcyRwbIN.js";import"./download-wy1q_sCs.js";import"./shield-check-CgdlgjUJ.js";import"./useFilters-Bi97Yxeg.js";import"./confirm-dialog-CZ9HqXs6.js";import"./clock-B9Zu46gp.js";import"./menu-BRxf3MOY.js";import"./MailViewChrome-Cn3RNMMH.js";import"./NavMenuButton-CjKep6MW.js";import"./useLabels-D_JMC445.js";import"./useSemanticSearch-D4A0Z6iv.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-CZLmXFST.js";import"./circle-help-Dl0r63ve.js";import"./circle-check-8tM9N-yQ.js";function H(){return o.jsx(r.Reading,{})}export{H as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-1nBbj76O.js";import{O as t}from"./OutboxPane-DcgweAhv.js";import"./useSearchTokenContext-9WMfDKRC.js";import"./kbd-CjoKCZlQ.js";import"./useMessageBodyContent-DI_sMQgg.js";import"./search-scope-DTcpOp3S.js";import"./circle-check-big-DtZbqpU_.js";import"./clock-B9Zu46gp.js";import"./row-actions-CPyc0mre.js";import"./rotate-ccw-CUjD_yUV.js";import"./NavMenuButton-CjKep6MW.js";import"./menu-BRxf3MOY.js";import"./format-D9KtIZkM.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{a5 as o}from"./index-1nBbj76O.js";const n=o;export{n as component};
@@ -1 +0,0 @@
1
- import{a5 as o}from"./index-1nBbj76O.js";const n=o;export{n as component};
@@ -1 +0,0 @@
1
- import{a5 as o}from"./index-1nBbj76O.js";const n=o;export{n as component};
@@ -1 +0,0 @@
1
- import{j as r,a5 as i}from"./index-1nBbj76O.js";import{a as m}from"./MailShell-XDr7KkBs.js";import{B as o}from"./BriefPane-CMc4-wv_.js";import{f as p}from"./search-token-index-DN5sIZdt.js";import{u as e}from"./search-mirror-Cl_kfDtk.js";import"./FullCompose-UKLwHyv3.js";import"./ErrorState-BcyRwbIN.js";import"./index-CF8wCpsR.js";import"./useMessageBodyContent-DI_sMQgg.js";import"./useSignature-CACU1iWm.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-SHE3vTGp.js";import"./format-D9KtIZkM.js";import"./confirm-dialog-CZ9HqXs6.js";import"./useSearchTokenContext-9WMfDKRC.js";import"./kbd-CjoKCZlQ.js";import"./search-scope-DTcpOp3S.js";import"./MailListHeader-Cdtnj0jT.js";import"./attachment-file-C-5puG1c.js";import"./mail-BQyYggPS.js";import"./avatar-D9pWXscp.js";import"./download-wy1q_sCs.js";import"./shield-check-CgdlgjUJ.js";import"./useFilters-Bi97Yxeg.js";import"./useQueries-DOH9m15W.js";import"./clock-B9Zu46gp.js";import"./menu-BRxf3MOY.js";import"./useRefreshControl-CeYkmVQh.js";import"./circle-check-big-DtZbqpU_.js";import"./useLabels-D_JMC445.js";import"./useSemanticSearch-D4A0Z6iv.js";import"./search-query-Cr_ZXBCp.js";import"./wizard-selection-B1bng5Jq.js";function G(){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{G as component};
@@ -1 +0,0 @@
1
- import{F as o}from"./FullCompose-UKLwHyv3.js";import"./index-1nBbj76O.js";import"./ErrorState-BcyRwbIN.js";import"./index-CF8wCpsR.js";import"./useMessageBodyContent-DI_sMQgg.js";import"./useSignature-CACU1iWm.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-SHE3vTGp.js";import"./format-D9KtIZkM.js";import"./confirm-dialog-CZ9HqXs6.js";const c=o;export{c as component};
@@ -1 +0,0 @@
1
- import{F as o}from"./FullCompose-UKLwHyv3.js";import"./index-1nBbj76O.js";import"./ErrorState-BcyRwbIN.js";import"./index-CF8wCpsR.js";import"./useMessageBodyContent-DI_sMQgg.js";import"./useSignature-CACU1iWm.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-SHE3vTGp.js";import"./format-D9KtIZkM.js";import"./confirm-dialog-CZ9HqXs6.js";const c=o;export{c as component};
@@ -1 +0,0 @@
1
- import{F as o}from"./FullCompose-UKLwHyv3.js";import"./index-1nBbj76O.js";import"./ErrorState-BcyRwbIN.js";import"./index-CF8wCpsR.js";import"./useMessageBodyContent-DI_sMQgg.js";import"./useSignature-CACU1iWm.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-SHE3vTGp.js";import"./format-D9KtIZkM.js";import"./confirm-dialog-CZ9HqXs6.js";const c=o;export{c as component};
@@ -1 +0,0 @@
1
- import{F as o}from"./FullCompose-UKLwHyv3.js";import"./index-1nBbj76O.js";import"./ErrorState-BcyRwbIN.js";import"./index-CF8wCpsR.js";import"./useMessageBodyContent-DI_sMQgg.js";import"./useSignature-CACU1iWm.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-SHE3vTGp.js";import"./format-D9KtIZkM.js";import"./confirm-dialog-CZ9HqXs6.js";const c=o;export{c as component};
@@ -1 +0,0 @@
1
- import{j as o,a5 as i}from"./index-1nBbj76O.js";import{a as m}from"./MailShell-XDr7KkBs.js";import{F as r}from"./FlaggedPane-BZKIcHxA.js";import{f as p}from"./search-token-index-DN5sIZdt.js";import{u as e}from"./search-mirror-Cl_kfDtk.js";import"./FullCompose-UKLwHyv3.js";import"./ErrorState-BcyRwbIN.js";import"./index-CF8wCpsR.js";import"./useMessageBodyContent-DI_sMQgg.js";import"./useSignature-CACU1iWm.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-SHE3vTGp.js";import"./format-D9KtIZkM.js";import"./confirm-dialog-CZ9HqXs6.js";import"./useSearchTokenContext-9WMfDKRC.js";import"./kbd-CjoKCZlQ.js";import"./search-scope-DTcpOp3S.js";import"./MailListHeader-Cdtnj0jT.js";import"./attachment-file-C-5puG1c.js";import"./mail-BQyYggPS.js";import"./avatar-D9pWXscp.js";import"./download-wy1q_sCs.js";import"./shield-check-CgdlgjUJ.js";import"./useFilters-Bi97Yxeg.js";import"./useQueries-DOH9m15W.js";import"./clock-B9Zu46gp.js";import"./menu-BRxf3MOY.js";import"./MailViewChrome-Cn3RNMMH.js";import"./wizard-selection-B1bng5Jq.js";function z(){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{z as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-1nBbj76O.js";import{M as r}from"./MailboxPane-BsMUFuiN.js";import"./useSearchTokenContext-9WMfDKRC.js";import"./kbd-CjoKCZlQ.js";import"./useMessageBodyContent-DI_sMQgg.js";import"./search-scope-DTcpOp3S.js";import"./useRefreshControl-CeYkmVQh.js";import"./circle-check-big-DtZbqpU_.js";import"./search-token-index-DN5sIZdt.js";import"./useQueries-DOH9m15W.js";import"./MailListHeader-Cdtnj0jT.js";import"./attachment-file-C-5puG1c.js";import"./mail-BQyYggPS.js";import"./avatar-D9pWXscp.js";import"./index-CF8wCpsR.js";import"./useSignature-CACU1iWm.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-SHE3vTGp.js";import"./format-D9KtIZkM.js";import"./ErrorState-BcyRwbIN.js";import"./download-wy1q_sCs.js";import"./shield-check-CgdlgjUJ.js";import"./useFilters-Bi97Yxeg.js";import"./confirm-dialog-CZ9HqXs6.js";import"./clock-B9Zu46gp.js";import"./menu-BRxf3MOY.js";import"./MailViewChrome-Cn3RNMMH.js";import"./NavMenuButton-CjKep6MW.js";import"./useLabels-D_JMC445.js";import"./useSemanticSearch-D4A0Z6iv.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-CZLmXFST.js";import"./circle-help-Dl0r63ve.js";import"./circle-check-8tM9N-yQ.js";function G(){return o.jsx(r.Reading,{})}export{G as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-1nBbj76O.js";import{O as t}from"./OutboxPane-DcgweAhv.js";import"./useSearchTokenContext-9WMfDKRC.js";import"./kbd-CjoKCZlQ.js";import"./useMessageBodyContent-DI_sMQgg.js";import"./search-scope-DTcpOp3S.js";import"./circle-check-big-DtZbqpU_.js";import"./clock-B9Zu46gp.js";import"./row-actions-CPyc0mre.js";import"./rotate-ccw-CUjD_yUV.js";import"./NavMenuButton-CjKep6MW.js";import"./menu-BRxf3MOY.js";import"./format-D9KtIZkM.js";import"./outbox-status-BlKn6P0x.js";import"./search-query-Cr_ZXBCp.js";function c(){return o.jsx(t.Reading,{})}export{c as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-1nBbj76O.js";import{F as r}from"./FlaggedPane-BZKIcHxA.js";import"./useSearchTokenContext-9WMfDKRC.js";import"./kbd-CjoKCZlQ.js";import"./useMessageBodyContent-DI_sMQgg.js";import"./search-scope-DTcpOp3S.js";import"./MailListHeader-Cdtnj0jT.js";import"./search-token-index-DN5sIZdt.js";import"./useQueries-DOH9m15W.js";import"./attachment-file-C-5puG1c.js";import"./mail-BQyYggPS.js";import"./avatar-D9pWXscp.js";import"./index-CF8wCpsR.js";import"./useSignature-CACU1iWm.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-SHE3vTGp.js";import"./format-D9KtIZkM.js";import"./ErrorState-BcyRwbIN.js";import"./download-wy1q_sCs.js";import"./shield-check-CgdlgjUJ.js";import"./useFilters-Bi97Yxeg.js";import"./confirm-dialog-CZ9HqXs6.js";import"./clock-B9Zu46gp.js";import"./menu-BRxf3MOY.js";import"./MailViewChrome-Cn3RNMMH.js";import"./wizard-selection-B1bng5Jq.js";function y(){return o.jsx(r.Reading,{})}export{y as component};
@@ -1 +0,0 @@
1
- import{j as t,ac as o}from"./index-1nBbj76O.js";const n=()=>t.jsx(o,{to:"/settings/accounts"});export{n as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-1nBbj76O.js";import{F as r}from"./FlaggedPane-BZKIcHxA.js";import"./useSearchTokenContext-9WMfDKRC.js";import"./kbd-CjoKCZlQ.js";import"./useMessageBodyContent-DI_sMQgg.js";import"./search-scope-DTcpOp3S.js";import"./MailListHeader-Cdtnj0jT.js";import"./search-token-index-DN5sIZdt.js";import"./useQueries-DOH9m15W.js";import"./attachment-file-C-5puG1c.js";import"./mail-BQyYggPS.js";import"./avatar-D9pWXscp.js";import"./index-CF8wCpsR.js";import"./useSignature-CACU1iWm.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-SHE3vTGp.js";import"./format-D9KtIZkM.js";import"./ErrorState-BcyRwbIN.js";import"./download-wy1q_sCs.js";import"./shield-check-CgdlgjUJ.js";import"./useFilters-Bi97Yxeg.js";import"./confirm-dialog-CZ9HqXs6.js";import"./clock-B9Zu46gp.js";import"./menu-BRxf3MOY.js";import"./MailViewChrome-Cn3RNMMH.js";import"./wizard-selection-B1bng5Jq.js";function w(){return o.jsx(r.Reading,{})}export{w as component};
@@ -1 +0,0 @@
1
- import{j as r}from"./index-1nBbj76O.js";import{B as o}from"./BriefPane-CMc4-wv_.js";import"./useSearchTokenContext-9WMfDKRC.js";import"./kbd-CjoKCZlQ.js";import"./useMessageBodyContent-DI_sMQgg.js";import"./search-scope-DTcpOp3S.js";import"./MailListHeader-Cdtnj0jT.js";import"./search-token-index-DN5sIZdt.js";import"./useQueries-DOH9m15W.js";import"./attachment-file-C-5puG1c.js";import"./mail-BQyYggPS.js";import"./avatar-D9pWXscp.js";import"./index-CF8wCpsR.js";import"./useSignature-CACU1iWm.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-SHE3vTGp.js";import"./format-D9KtIZkM.js";import"./ErrorState-BcyRwbIN.js";import"./download-wy1q_sCs.js";import"./shield-check-CgdlgjUJ.js";import"./useFilters-Bi97Yxeg.js";import"./confirm-dialog-CZ9HqXs6.js";import"./clock-B9Zu46gp.js";import"./menu-BRxf3MOY.js";import"./useRefreshControl-CeYkmVQh.js";import"./circle-check-big-DtZbqpU_.js";import"./useLabels-D_JMC445.js";import"./useSemanticSearch-D4A0Z6iv.js";import"./search-query-Cr_ZXBCp.js";import"./wizard-selection-B1bng5Jq.js";function C(){return r.jsx(o.Reading,{})}export{C as component};
@@ -1 +0,0 @@
1
- import{j as r}from"./index-1nBbj76O.js";import{B as o}from"./BriefPane-CMc4-wv_.js";import"./useSearchTokenContext-9WMfDKRC.js";import"./kbd-CjoKCZlQ.js";import"./useMessageBodyContent-DI_sMQgg.js";import"./search-scope-DTcpOp3S.js";import"./MailListHeader-Cdtnj0jT.js";import"./search-token-index-DN5sIZdt.js";import"./useQueries-DOH9m15W.js";import"./attachment-file-C-5puG1c.js";import"./mail-BQyYggPS.js";import"./avatar-D9pWXscp.js";import"./index-CF8wCpsR.js";import"./useSignature-CACU1iWm.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-SHE3vTGp.js";import"./format-D9KtIZkM.js";import"./ErrorState-BcyRwbIN.js";import"./download-wy1q_sCs.js";import"./shield-check-CgdlgjUJ.js";import"./useFilters-Bi97Yxeg.js";import"./confirm-dialog-CZ9HqXs6.js";import"./clock-B9Zu46gp.js";import"./menu-BRxf3MOY.js";import"./useRefreshControl-CeYkmVQh.js";import"./circle-check-big-DtZbqpU_.js";import"./useLabels-D_JMC445.js";import"./useSemanticSearch-D4A0Z6iv.js";import"./search-query-Cr_ZXBCp.js";import"./wizard-selection-B1bng5Jq.js";function D(){return r.jsx(o.Reading,{})}export{D as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-1nBbj76O.js";import{M as i}from"./MailboxPane-BsMUFuiN.js";import"./useSearchTokenContext-9WMfDKRC.js";import"./kbd-CjoKCZlQ.js";import"./useMessageBodyContent-DI_sMQgg.js";import"./search-scope-DTcpOp3S.js";import"./useRefreshControl-CeYkmVQh.js";import"./circle-check-big-DtZbqpU_.js";import"./search-token-index-DN5sIZdt.js";import"./useQueries-DOH9m15W.js";import"./MailListHeader-Cdtnj0jT.js";import"./attachment-file-C-5puG1c.js";import"./mail-BQyYggPS.js";import"./avatar-D9pWXscp.js";import"./index-CF8wCpsR.js";import"./useSignature-CACU1iWm.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-SHE3vTGp.js";import"./format-D9KtIZkM.js";import"./ErrorState-BcyRwbIN.js";import"./download-wy1q_sCs.js";import"./shield-check-CgdlgjUJ.js";import"./useFilters-Bi97Yxeg.js";import"./confirm-dialog-CZ9HqXs6.js";import"./clock-B9Zu46gp.js";import"./menu-BRxf3MOY.js";import"./MailViewChrome-Cn3RNMMH.js";import"./NavMenuButton-CjKep6MW.js";import"./useLabels-D_JMC445.js";import"./useSemanticSearch-D4A0Z6iv.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-CZLmXFST.js";import"./circle-help-Dl0r63ve.js";import"./circle-check-8tM9N-yQ.js";function H(){return o.jsx(i.Reading,{})}export{H as component};
@@ -1 +0,0 @@
1
- import{j as o,a5 as i}from"./index-1nBbj76O.js";import{a as m}from"./MailShell-XDr7KkBs.js";import{u as p,O as t}from"./OutboxPane-DcgweAhv.js";import{u as s}from"./search-mirror-Cl_kfDtk.js";import"./FullCompose-UKLwHyv3.js";import"./ErrorState-BcyRwbIN.js";import"./index-CF8wCpsR.js";import"./useMessageBodyContent-DI_sMQgg.js";import"./useSignature-CACU1iWm.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-SHE3vTGp.js";import"./format-D9KtIZkM.js";import"./confirm-dialog-CZ9HqXs6.js";import"./useSearchTokenContext-9WMfDKRC.js";import"./kbd-CjoKCZlQ.js";import"./search-scope-DTcpOp3S.js";import"./circle-check-big-DtZbqpU_.js";import"./clock-B9Zu46gp.js";import"./row-actions-CPyc0mre.js";import"./rotate-ccw-CUjD_yUV.js";import"./NavMenuButton-CjKep6MW.js";import"./menu-BRxf3MOY.js";import"./outbox-status-BlKn6P0x.js";import"./search-query-Cr_ZXBCp.js";function q(){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{q as component};
@@ -1 +0,0 @@
1
- import{j as t,a5 as o}from"./index-1nBbj76O.js";const n=()=>t.jsx(o,{});export{n as component};