@remit/web-client-dist 0.0.315 → 0.0.316

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 (81) hide show
  1. package/assets/{BriefPane-UBjV3kAo.js → BriefPane-BACYfxaV.js} +1 -1
  2. package/assets/{ErrorState-bFPcHMNG.js → ErrorState-Ac1XAPCM.js} +1 -1
  3. package/assets/{FlaggedPane-T0VjfKl2.js → FlaggedPane-iZ4axBTx.js} +1 -1
  4. package/assets/{MailListHeader-C2XMv19y.js → MailListHeader-jNuNyHYb.js} +3 -3
  5. package/assets/{MailViewChrome-C6m_pDnZ.js → MailViewChrome-CHnYGWwc.js} +1 -1
  6. package/assets/{MailboxPane-BU8zCLD6.js → MailboxPane-6piSntRU.js} +1 -1
  7. package/assets/{NavMenuButton-Bc0ya-6h.js → NavMenuButton-P-nxjoa1.js} +1 -1
  8. package/assets/{OnboardingWizard-6m2T8a81.js → OnboardingWizard-K--OkzB5.js} +1 -1
  9. package/assets/{OutboxPane-B64cQ2E1.js → OutboxPane-CWApp9HS.js} +1 -1
  10. package/assets/_mailboxId-0NAAIaP_.js +1 -0
  11. package/assets/_messageId-COQbeR3_.js +1 -0
  12. package/assets/_threadId-DjsO2j_n.js +1 -0
  13. package/assets/{account-form-helpers-CDUMl54m.js → account-form-helpers-CN4yASL9.js} +1 -1
  14. package/assets/{accounts-Csv5z9Pb.js → accounts-KoUWZUsB.js} +1 -1
  15. package/assets/{advanced-BPYBoHzx.js → advanced-CyVVGZ8c.js} +1 -1
  16. package/assets/{appearance-AvqrMQ0z.js → appearance-Hv0oiXJb.js} +1 -1
  17. package/assets/{avatar-CkV43qNd.js → avatar-Droh8iME.js} +1 -1
  18. package/assets/{bottom-sheet-CSAuySol.js → bottom-sheet-BY_BOziX.js} +1 -1
  19. package/assets/{brief-B292MGUz.js → brief-BbFNqHmT.js} +1 -1
  20. package/assets/brief-mhFox7Nc.js +1 -0
  21. package/assets/{browser-ponyfill-EroWIxM4.js → browser-ponyfill-CAWdgFdx.js} +1 -1
  22. package/assets/{circle-check-C1aqHG_v.js → circle-check-BfjgPOK5.js} +1 -1
  23. package/assets/{circle-check-big-CCL6N41e.js → circle-check-big-CrTwR6Vm.js} +1 -1
  24. package/assets/{circle-help-DBmWdT_j.js → circle-help-DRa2QHXX.js} +1 -1
  25. package/assets/{clock-CBOpHqJt.js → clock-BGvZh9pY.js} +1 -1
  26. package/assets/{confirm-dialog-gTN2dcdp.js → confirm-dialog-pNglWv-n.js} +1 -1
  27. package/assets/{download-e6r8RHJO.js → download-e1C3A9DH.js} +1 -1
  28. package/assets/{filters-DWPLjAW_.js → filters-Bt5dvC-s.js} +1 -1
  29. package/assets/{flagged-DfUTut30.js → flagged-Cos2_0uc.js} +1 -1
  30. package/assets/flagged-O4Rz3hvl.js +1 -0
  31. package/assets/{folders-B5O7MvMk.js → folders-QKKoOBkP.js} +1 -1
  32. package/assets/index-BuNQr2yG.js +1 -0
  33. package/assets/index-COQbeR3_.js +1 -0
  34. package/assets/index-CczdNVf9.js +1 -0
  35. package/assets/{index-DiRuAyHr.js → index-D62yniYt.js} +4 -4
  36. package/assets/index-Dh5LD3hd.js +1 -0
  37. package/assets/index-Dx5x9bIE.js +1 -0
  38. package/assets/index-pD7-Xt3B.js +1 -0
  39. package/assets/{kbd-Ck8m_jWP.js → kbd-Cta_1-aF.js} +1 -1
  40. package/assets/{labels-gRJasT-_.js → labels-BoNgpC2g.js} +1 -1
  41. package/assets/{mail-DQ4G6-6G.js → mail-KEX2KamG.js} +1 -1
  42. package/assets/{menu-DsDiLJbw.js → menu-DNAC6FDU.js} +1 -1
  43. package/assets/{move-options-DxlogUsy.js → move-options-CQCBMuR1.js} +1 -1
  44. package/assets/{onboarding-BPjXE00k.js → onboarding-Dwq3qFjM.js} +1 -1
  45. package/assets/outbox-D7bzb3Pm.js +1 -0
  46. package/assets/{pencil-BgGG2KqT.js → pencil-C8CcgpNc.js} +1 -1
  47. package/assets/{rich-text-ZMeTtbCM.js → rich-text-Cte072QK.js} +1 -1
  48. package/assets/{rotate-ccw-zMf97sS0.js → rotate-ccw-Vn0Oo9Gp.js} +1 -1
  49. package/assets/{row-actions-TrSHoo_D.js → row-actions-CswKVO5a.js} +1 -1
  50. package/assets/{search-scope-DJwbffIz.js → search-scope-C5ExEpmN.js} +1 -1
  51. package/assets/{search-token-index-cTe1CL2O.js → search-token-index-B1LLTHay.js} +1 -1
  52. package/assets/{search-view-D4TA8cJz.js → search-view-DTASvdKS.js} +1 -1
  53. package/assets/{senders-DhOVgXHi.js → senders-D_65ELsL.js} +1 -1
  54. package/assets/settings-Ctv0zLOe.js +1 -0
  55. package/assets/{settings-screen-Cyi6AWJq.js → settings-screen-Darph0Ng.js} +1 -1
  56. package/assets/{shield-check-D79TXoi7.js → shield-check-C-Tj-8DY.js} +1 -1
  57. package/assets/{suggested-vips-MN_YceT0.js → suggested-vips-B80zaPH8.js} +1 -1
  58. package/assets/{useDebouncedValue-yaYbAyts.js → useDebouncedValue-BAiPjTqT.js} +1 -1
  59. package/assets/{useFilters-BEEaWifb.js → useFilters-0Y2tQp85.js} +1 -1
  60. package/assets/{useLabels-CCPzRB-4.js → useLabels-BKwqrgSZ.js} +1 -1
  61. package/assets/{useMediaQuery-BdTbWPMJ.js → useMediaQuery-ClhYa5oE.js} +1 -1
  62. package/assets/{useRefreshControl-CAZ6vgao.js → useRefreshControl-D9rPpfPT.js} +1 -1
  63. package/assets/{useSearchMirror-BlFU9LhB.js → useSearchMirror-BTHJ0X_p.js} +1 -1
  64. package/assets/{useSearchTokenContext-C1W1J3dC.js → useSearchTokenContext-CZOmDShO.js} +1 -1
  65. package/assets/{useSemanticSearch-D_O-Fl32.js → useSemanticSearch-j2zC1JO3.js} +1 -1
  66. package/assets/{useSignature-DHSw00HY.js → useSignature-CHlAGDsv.js} +1 -1
  67. package/index.html +1 -1
  68. package/package.json +1 -1
  69. package/assets/_mailboxId-DmcIPbDX.js +0 -1
  70. package/assets/_messageId-DYT-kkKi.js +0 -1
  71. package/assets/_threadId-CZXedbw1.js +0 -1
  72. package/assets/brief-mpl7lfdv.js +0 -1
  73. package/assets/flagged-DS5J3piH.js +0 -1
  74. package/assets/index-BCub0rZ5.js +0 -1
  75. package/assets/index-COFYryXv.js +0 -1
  76. package/assets/index-CPWJFJAN.js +0 -1
  77. package/assets/index-DTjmSgyE.js +0 -1
  78. package/assets/index-DYT-kkKi.js +0 -1
  79. package/assets/index-ISnRPeaJ.js +0 -1
  80. package/assets/outbox-D32D_T_T.js +0 -1
  81. package/assets/settings-CBI0jIp1.js +0 -1
@@ -1 +1 @@
1
- import{c as C,r as j,j as e,b as f,B as i,X as N,az as S}from"./index-DiRuAyHr.js";import{A as w}from"./avatar-CkV43qNd.js";import{M as B}from"./menu-DsDiLJbw.js";import{C as v}from"./circle-help-DBmWdT_j.js";const h=C("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);function F({items:l,activeId:t,title:c,description:n,children:r,help:s,helpOpen:d=!0,flush:o,onSelect:k,onToggleHelp:u,onBackToMail:m}){const[y,x]=j.useState(!1),[b,z]=j.useState(!1),p=!!s&&d,g=e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"px-3 pt-3 pb-1 text-2xs font-semibold uppercase tracking-wider text-fg-subtle",children:"Settings"}),e.jsx("nav",{className:"flex-1 overflow-y-auto px-2 py-1",children:l.map(a=>e.jsxs("button",{type:"button",onClick:()=>{k?.(a.id),x(!1)},className:f("flex min-h-11 w-full items-center gap-2 rounded-md px-2 py-1 text-left text-sm transition-colors lg:min-h-0",a.id===t?"bg-accent-2-soft font-medium text-accent-2":"text-fg-muted hover:bg-surface hover:text-fg"),children:[a.icon&&e.jsx("span",{className:f("shrink-0",a.id===t?"text-accent-2":"text-fg-subtle"),children:a.icon}),a.label]},a.id))})]});return e.jsxs("div",{className:"safe-area-frame flex h-dvh w-full overflow-hidden bg-canvas font-sans text-fg",children:[e.jsxs("aside",{className:"hidden w-60 shrink-0 flex-col border-r border-line bg-surface-sunken lg:flex",children:[e.jsx("div",{className:"flex h-pane-header shrink-0 items-center border-b border-line px-2",children:e.jsxs("button",{type:"button",onClick:m,className:"flex w-full items-center gap-2 rounded-md px-2 py-1 text-left text-sm text-fg-muted hover:bg-surface hover:text-fg",children:[e.jsx(h,{className:"size-4 text-fg-subtle"}),"Back to mail"]})}),g]}),y&&e.jsxs("div",{className:"fixed inset-0 z-50 flex lg:hidden",children:[e.jsx("button",{type:"button","aria-label":"Close menu",className:"absolute inset-0 bg-canvas/60",onClick:()=>x(!1)}),e.jsxs("aside",{className:"safe-area-frame relative flex w-72 max-w-[85%] flex-col border-r border-line bg-surface-sunken",children:[e.jsxs("div",{className:"flex h-pane-header shrink-0 items-center justify-between border-b border-line px-2",children:[e.jsxs("button",{type:"button",onClick:()=>{m?.(),x(!1)},className:"flex items-center gap-2 rounded-md px-2 py-1 text-left text-sm text-fg-muted hover:bg-surface hover:text-fg",children:[e.jsx(h,{className:"size-4 text-fg-subtle"}),"Back to mail"]}),e.jsx(i,{variant:"ghost",size:"sm",icon:e.jsx(N,{className:"size-4"}),onClick:()=>x(!1),"aria-label":"Close menu"})]}),g]})]}),e.jsxs("main",{className:"flex min-w-0 flex-1 flex-col",children:[e.jsxs("header",{className:"flex h-pane-header shrink-0 items-center gap-3 border-b border-line px-3 lg:px-5",children:[m&&e.jsx(i,{variant:"ghost",size:"sm",icon:e.jsx(h,{className:"size-4"}),className:"-ml-1 lg:hidden",onClick:m,"aria-label":"Back to mail"}),e.jsx(i,{variant:"ghost",size:"sm",icon:e.jsx(B,{className:"size-4"}),className:"lg:hidden",onClick:()=>x(!0),"aria-label":"Open settings menu"}),e.jsx("h1",{className:"text-md font-semibold text-fg",children:c}),n&&e.jsx("p",{className:"hidden min-w-0 truncate text-xs text-fg-subtle lg:block",children:n}),s&&e.jsx(i,{variant:"ghost",size:"sm",icon:e.jsx(v,{className:"size-4"}),className:"ml-auto lg:hidden",onClick:()=>z(a=>!a),"aria-label":"Tips","aria-expanded":b}),s&&!p&&e.jsx(i,{variant:"ghost",size:"sm",icon:e.jsx(v,{className:"size-4"}),className:"hidden ml-auto lg:inline-flex",onClick:u,"aria-label":"Show tips"})]}),s&&b&&e.jsx("div",{className:"border-b border-line bg-surface-sunken px-row-inset py-3 text-xs leading-relaxed text-fg-muted lg:hidden",children:s}),o?e.jsx("div",{className:"flex min-h-0 flex-1 flex-col",children:r}):e.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto",children:e.jsx("div",{className:"max-w-2xl px-3 py-5 lg:px-5",children:e.jsx("div",{className:"space-y-5",children:r})})})]}),p&&e.jsxs("aside",{className:"hidden w-64 shrink-0 flex-col border-l border-line bg-surface-sunken lg:flex",children:[e.jsxs("header",{className:"flex h-pane-header shrink-0 items-center justify-between border-b border-line px-row-inset",children:[e.jsx("span",{className:"text-2xs font-semibold uppercase tracking-wider text-fg-subtle",children:"Tips & tricks"}),e.jsx(i,{variant:"ghost",size:"sm",icon:e.jsx(N,{className:"size-3.5"}),onClick:u,"aria-label":"Collapse tips"})]}),e.jsx("div",{className:"flex-1 overflow-y-auto px-row-inset py-3 text-xs leading-relaxed text-fg-muted",children:s})]})]})}function R({name:l,email:t,meta:c,caption:n,danger:r,trailing:s}){return e.jsxs("div",{className:"flex items-center gap-3 px-row-inset py-2 hover:bg-surface-sunken",children:[e.jsx("span",{className:f(r&&"rounded-full ring-2 ring-danger/40"),children:e.jsx(w,{name:l,email:t,size:"sm"})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex flex-col gap-0 sm:flex-row sm:items-baseline sm:gap-2",children:[e.jsx("span",{className:"truncate text-sm font-medium text-fg",children:l}),e.jsx("span",{className:"truncate text-2xs text-fg-subtle",children:t})]}),e.jsxs("div",{className:"text-xs text-fg-subtle",children:[c,n&&e.jsxs("span",{className:"text-fg-muted",children:[" · ",n]})]})]}),s&&e.jsx("div",{className:"shrink-0",children:s})]})}const O={healthy:{tone:"positive",label:"healthy"},error:{tone:"danger",label:"error"},muted:{tone:"neutral",label:"muted"}};function X({label:l,email:t,connector:c,syncLabel:n,state:r,errorDetail:s,trailing:d}){const o=O[r];return e.jsxs("div",{className:f("rounded-sm border border-line bg-surface",r==="muted"&&"opacity-65"),children:[e.jsxs("div",{className:"flex flex-col gap-3 px-row-inset py-3 sm:flex-row sm:items-center",children:[e.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[e.jsx(w,{name:l,email:t,size:"md"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"truncate text-sm font-semibold text-fg",children:l}),e.jsx(S,{tone:o.tone,dot:!0,children:o.label})]}),e.jsxs("div",{className:"truncate text-xs text-fg-subtle",children:[t," · ",c," · ",n]})]})]}),d&&e.jsx("div",{className:"shrink-0",children:d})]}),s&&e.jsx("div",{className:"border-t border-line px-row-inset py-2",children:e.jsx("code",{className:"block rounded-xs bg-danger-soft px-2 py-1 text-2xs text-danger",children:s})})]})}export{X as A,F as S,R as a};
1
+ import{c as C,r as j,j as e,b as f,B as i,X as N,az as S}from"./index-D62yniYt.js";import{A as w}from"./avatar-Droh8iME.js";import{M as B}from"./menu-DNAC6FDU.js";import{C as v}from"./circle-help-DRa2QHXX.js";const h=C("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);function F({items:l,activeId:t,title:c,description:n,children:r,help:s,helpOpen:d=!0,flush:o,onSelect:k,onToggleHelp:u,onBackToMail:m}){const[y,x]=j.useState(!1),[b,z]=j.useState(!1),p=!!s&&d,g=e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"px-3 pt-3 pb-1 text-2xs font-semibold uppercase tracking-wider text-fg-subtle",children:"Settings"}),e.jsx("nav",{className:"flex-1 overflow-y-auto px-2 py-1",children:l.map(a=>e.jsxs("button",{type:"button",onClick:()=>{k?.(a.id),x(!1)},className:f("flex min-h-11 w-full items-center gap-2 rounded-md px-2 py-1 text-left text-sm transition-colors lg:min-h-0",a.id===t?"bg-accent-2-soft font-medium text-accent-2":"text-fg-muted hover:bg-surface hover:text-fg"),children:[a.icon&&e.jsx("span",{className:f("shrink-0",a.id===t?"text-accent-2":"text-fg-subtle"),children:a.icon}),a.label]},a.id))})]});return e.jsxs("div",{className:"safe-area-frame flex h-dvh w-full overflow-hidden bg-canvas font-sans text-fg",children:[e.jsxs("aside",{className:"hidden w-60 shrink-0 flex-col border-r border-line bg-surface-sunken lg:flex",children:[e.jsx("div",{className:"flex h-pane-header shrink-0 items-center border-b border-line px-2",children:e.jsxs("button",{type:"button",onClick:m,className:"flex w-full items-center gap-2 rounded-md px-2 py-1 text-left text-sm text-fg-muted hover:bg-surface hover:text-fg",children:[e.jsx(h,{className:"size-4 text-fg-subtle"}),"Back to mail"]})}),g]}),y&&e.jsxs("div",{className:"fixed inset-0 z-50 flex lg:hidden",children:[e.jsx("button",{type:"button","aria-label":"Close menu",className:"absolute inset-0 bg-canvas/60",onClick:()=>x(!1)}),e.jsxs("aside",{className:"safe-area-frame relative flex w-72 max-w-[85%] flex-col border-r border-line bg-surface-sunken",children:[e.jsxs("div",{className:"flex h-pane-header shrink-0 items-center justify-between border-b border-line px-2",children:[e.jsxs("button",{type:"button",onClick:()=>{m?.(),x(!1)},className:"flex items-center gap-2 rounded-md px-2 py-1 text-left text-sm text-fg-muted hover:bg-surface hover:text-fg",children:[e.jsx(h,{className:"size-4 text-fg-subtle"}),"Back to mail"]}),e.jsx(i,{variant:"ghost",size:"sm",icon:e.jsx(N,{className:"size-4"}),onClick:()=>x(!1),"aria-label":"Close menu"})]}),g]})]}),e.jsxs("main",{className:"flex min-w-0 flex-1 flex-col",children:[e.jsxs("header",{className:"flex h-pane-header shrink-0 items-center gap-3 border-b border-line px-3 lg:px-5",children:[m&&e.jsx(i,{variant:"ghost",size:"sm",icon:e.jsx(h,{className:"size-4"}),className:"-ml-1 lg:hidden",onClick:m,"aria-label":"Back to mail"}),e.jsx(i,{variant:"ghost",size:"sm",icon:e.jsx(B,{className:"size-4"}),className:"lg:hidden",onClick:()=>x(!0),"aria-label":"Open settings menu"}),e.jsx("h1",{className:"text-md font-semibold text-fg",children:c}),n&&e.jsx("p",{className:"hidden min-w-0 truncate text-xs text-fg-subtle lg:block",children:n}),s&&e.jsx(i,{variant:"ghost",size:"sm",icon:e.jsx(v,{className:"size-4"}),className:"ml-auto lg:hidden",onClick:()=>z(a=>!a),"aria-label":"Tips","aria-expanded":b}),s&&!p&&e.jsx(i,{variant:"ghost",size:"sm",icon:e.jsx(v,{className:"size-4"}),className:"hidden ml-auto lg:inline-flex",onClick:u,"aria-label":"Show tips"})]}),s&&b&&e.jsx("div",{className:"border-b border-line bg-surface-sunken px-row-inset py-3 text-xs leading-relaxed text-fg-muted lg:hidden",children:s}),o?e.jsx("div",{className:"flex min-h-0 flex-1 flex-col",children:r}):e.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto",children:e.jsx("div",{className:"max-w-2xl px-3 py-5 lg:px-5",children:e.jsx("div",{className:"space-y-5",children:r})})})]}),p&&e.jsxs("aside",{className:"hidden w-64 shrink-0 flex-col border-l border-line bg-surface-sunken lg:flex",children:[e.jsxs("header",{className:"flex h-pane-header shrink-0 items-center justify-between border-b border-line px-row-inset",children:[e.jsx("span",{className:"text-2xs font-semibold uppercase tracking-wider text-fg-subtle",children:"Tips & tricks"}),e.jsx(i,{variant:"ghost",size:"sm",icon:e.jsx(N,{className:"size-3.5"}),onClick:u,"aria-label":"Collapse tips"})]}),e.jsx("div",{className:"flex-1 overflow-y-auto px-row-inset py-3 text-xs leading-relaxed text-fg-muted",children:s})]})]})}function R({name:l,email:t,meta:c,caption:n,danger:r,trailing:s}){return e.jsxs("div",{className:"flex items-center gap-3 px-row-inset py-2 hover:bg-surface-sunken",children:[e.jsx("span",{className:f(r&&"rounded-full ring-2 ring-danger/40"),children:e.jsx(w,{name:l,email:t,size:"sm"})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex flex-col gap-0 sm:flex-row sm:items-baseline sm:gap-2",children:[e.jsx("span",{className:"truncate text-sm font-medium text-fg",children:l}),e.jsx("span",{className:"truncate text-2xs text-fg-subtle",children:t})]}),e.jsxs("div",{className:"text-xs text-fg-subtle",children:[c,n&&e.jsxs("span",{className:"text-fg-muted",children:[" · ",n]})]})]}),s&&e.jsx("div",{className:"shrink-0",children:s})]})}const O={healthy:{tone:"positive",label:"healthy"},error:{tone:"danger",label:"error"},muted:{tone:"neutral",label:"muted"}};function X({label:l,email:t,connector:c,syncLabel:n,state:r,errorDetail:s,trailing:d}){const o=O[r];return e.jsxs("div",{className:f("rounded-sm border border-line bg-surface",r==="muted"&&"opacity-65"),children:[e.jsxs("div",{className:"flex flex-col gap-3 px-row-inset py-3 sm:flex-row sm:items-center",children:[e.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[e.jsx(w,{name:l,email:t,size:"md"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"truncate text-sm font-semibold text-fg",children:l}),e.jsx(S,{tone:o.tone,dot:!0,children:o.label})]}),e.jsxs("div",{className:"truncate text-xs text-fg-subtle",children:[t," · ",c," · ",n]})]})]}),d&&e.jsx("div",{className:"shrink-0",children:d})]}),s&&e.jsx("div",{className:"border-t border-line px-row-inset py-2",children:e.jsx("code",{className:"block rounded-xs bg-danger-soft px-2 py-1 text-2xs text-danger",children:s})})]})}export{X as A,F as S,R as a};
@@ -1 +1 @@
1
- import{c as e}from"./index-DiRuAyHr.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-D62yniYt.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,a5 as e}from"./index-DiRuAyHr.js";const o=()=>t.jsx(e,{to:"/settings/senders",replace:!0});export{o as component};
1
+ import{j as t,a5 as e}from"./index-D62yniYt.js";const o=()=>t.jsx(e,{to:"/settings/senders",replace:!0});export{o as component};
@@ -1 +1 @@
1
- import{r as o}from"./index-DiRuAyHr.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-D62yniYt.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,ad as b,cN as E,w as C,cO as x,cw as F,cP as N,q as O,cQ as P,cR as D,cS as L,cT as w}from"./index-DiRuAyHr.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,J=15e3,R=e=>{const t=Math.max(0,e),r=T*2**t;return Math.min(r,J)},_=(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:R(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:_(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(),k=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:k(e.matchOperator),literalClauses:a}},U=e=>e.anchorMessageId!==void 0||!e.literalClauses.some(t=>t.field==="HasWords"),q=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}},j=(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(F()),{mutateAsync:i}=a,n=q(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:j(s,n),matchedIds:s.previewedSignature===n?s.matchedIds??[]:[]}:{count:{status:"error",reason:N},matchedIds:[]}},A=e=>D({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({...P(),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,ad as b,cN as E,w as C,cO as x,cw as F,cP as N,q as O,cQ as P,cR as D,cS as L,cT as w}from"./index-D62yniYt.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,J=15e3,R=e=>{const t=Math.max(0,e),r=T*2**t;return Math.min(r,J)},_=(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:R(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:_(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(),k=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:k(e.matchOperator),literalClauses:a}},U=e=>e.anchorMessageId!==void 0||!e.literalClauses.some(t=>t.field==="HasWords"),q=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}},j=(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(F()),{mutateAsync:i}=a,n=q(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:j(s,n),matchedIds:s.previewedSignature===n?s.matchedIds??[]:[]}:{count:{status:"error",reason:N},matchedIds:[]}},A=e=>D({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({...P(),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{w as L,bL as d,q as n,ad as l,bM as p,r as o,bN as y,bO as c,bP as g}from"./index-DiRuAyHr.js";const u=e=>y({path:{accountId:e}}),f=e=>{const r=L({...d({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({...p(),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({...c(),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{w as L,bL as d,q as n,ad as l,bM as p,r as o,bN as y,bO as c,bP as g}from"./index-D62yniYt.js";const u=e=>y({path:{accountId:e}}),f=e=>{const r=L({...d({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({...p(),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({...c(),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{r as s}from"./index-DiRuAyHr.js";const r=1024,c=`(min-width: ${r}px) and (not ((orientation: portrait) and (pointer: coarse)))`,d=e=>{const[o,n]=s.useState(()=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches);return s.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const t=window.matchMedia(e),a=i=>n(i.matches);return n(t.matches),t.addEventListener("change",a),()=>t.removeEventListener("change",a)},[e]),o},m=()=>d(c);export{c as D,d as a,m as u};
1
+ import{r as s}from"./index-D62yniYt.js";const r=1024,c=`(min-width: ${r}px) and (not ((orientation: portrait) and (pointer: coarse)))`,d=e=>{const[o,n]=s.useState(()=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches);return s.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const t=window.matchMedia(e),a=i=>n(i.matches);return n(t.matches),t.addEventListener("change",a),()=>t.removeEventListener("change",a)},[e]),o},m=()=>d(c);export{c as D,d as a,m as u};
@@ -1 +1 @@
1
- import{j as E,e as T,b as j,B as D,r as i,t as C,aD as R,q as P,n as K,a0 as Q,P as A,N as $,Q as z,R as B}from"./index-DiRuAyHr.js";import{C as G}from"./circle-check-big-CCL6N41e.js";import{R as H}from"./search-token-index-cTe1CL2O.js";function oe({state:e,onRefresh:t,label:s,errorMessage:a,hasUpdate:n,size:u="sm",className:c}){const o=e==="refreshing",f=e==="error",h=e==="success",g=f?E.jsx(T,{className:"size-4 text-danger"}):h?E.jsx(G,{className:"size-4 text-positive"}):E.jsx(H,{className:j("size-4",o&&"animate-spin")}),y=f?`${s} — failed: ${a??"try again"}`:o?`${s} — refreshing`:h?`${s} — up to date`:n?`${s} — new mail`:s;return E.jsxs("div",{className:"relative inline-flex",children:[E.jsx(D,{variant:"ghost",size:u,icon:g,onClick:t,disabled:o,"aria-label":y,"aria-busy":o||void 0,title:f?a:s,className:c}),e==="idle"&&n&&E.jsx("span",{"aria-hidden":"true",className:"absolute right-1 top-1 size-1.5 rounded-full bg-accent-2"})]})}const U=new Set(["discovering_mailboxes","syncing_inbox","syncing_others"]);function N(e){return!!e&&U.has(e)}const _=3e3,W=_*2,M={syncing:!1,resolved:!1,synced:0,total:0};function ie(e,t){const s=e.join(","),[a,n]=i.useState(!1),[u,c]=i.useState(!1);i.useEffect(()=>{n(!1),c(!1)},[s,t]),i.useEffect(()=>{if(!t)return;const r=setTimeout(()=>c(!0),W);return()=>clearTimeout(r)},[s,t]);const o=C({queries:e.map(r=>({...R({path:{accountId:r}}),enabled:t&&!a,refetchInterval:_,meta:{softError:!0}}))}),f=o.every(r=>r.isSuccess||r.isError),h=o.length===0||f||u;let g=!1,y=0,w=0;for(const r of o)if(N(r.data?.syncPhase)){g=!0;for(const l of r.data?.mailboxes??[])y+=l.messagesSynced,w+=l.messagesTotal}const S=t&&h&&!g;return i.useEffect(()=>{S&&n(!0)},[S]),!t||!h?M:{syncing:g,resolved:!0,synced:y,total:w}}const k=6e4,I=new Set(["sent","drafts","trash","archive"]),v=(e,t)=>{const s=new Map;for(const a of e){const n=t.get(a.mailboxId)?.role;n&&I.has(n)||s.set(a.mailboxId,a.messagesTotal)}return s},X=(e,t)=>{for(const[s,a]of t)if(a>(e.get(s)??0))return!0;return!1},q=i.createContext(null),J=()=>{const e=i.useContext(q);if(!e)throw new Error("useMailFreshness must be used inside <MailFreshnessProvider>");return e};function ce({accountIds:e,children:t}){const s=P(),{resultFolderIndex:a}=K(),n=i.useRef(new Map),u=i.useRef(new Set),[c,o]=i.useState(new Set),f=C({queries:e.map(r=>({...R({path:{accountId:r}}),refetchInterval:k,staleTime:k,meta:{softError:!0}}))}),h=f.map(r=>r.dataUpdatedAt).join(","),g=e.join(",");i.useEffect(()=>{let r=!1;const l=new Set(c);e.forEach((d,x)=>{const p=f[x]?.data;if(!p)return;const m=v(p.mailboxes??[],a);if(!u.current.has(d)){u.current.add(d),n.current.set(d,m);return}if(l.has(d))return;const O=n.current.get(d)??new Map;X(O,m)&&(l.add(d),r=!0)}),r&&o(l)},[g,h]);const y=i.useCallback(r=>r.some(l=>c.has(l)),[c]),w=i.useCallback(r=>{o(l=>{if(r.every(x=>!l.has(x)))return l;const d=new Set(l);for(const x of r)d.delete(x);return d});for(const l of r){const d=s.getQueryData(R({path:{accountId:l}}).queryKey);n.current.set(l,v(d?.mailboxes??[],a)),u.current.add(l)}},[s,a]),S=i.useMemo(()=>({hasNewMail:y,acknowledge:w}),[y,w]);return E.jsx(q.Provider,{value:S,children:t})}const V=2e3,Y=45e3,Z=e=>new Promise(t=>setTimeout(t,e)),b=e=>e instanceof Error&&e.message?e.message:"Something went wrong",ee=e=>{z(e,{softError:!0})&&B(e)},F=e=>e.reduce((t,s)=>Math.max(t,s.lastSyncedAt??0),0),L=(e,t)=>e.fetchQuery({...R({path:{accountId:t}}),staleTime:0}),se=async(e,t,s,a)=>{let n=!1;for(;;){const u=await L(e,t).then(f=>({ok:!0,data:f})).catch(f=>({ok:!1,error:f}));if(!u.ok)return{accountId:t,message:b(u.error)};const{syncPhase:c,mailboxes:o}=u.data;if(N(c))n=!0;else if(n||F(o??[])>s)return c==="error"?{accountId:t,message:"Sync failed for this account"}:void 0;if(Date.now()>=a)return{accountId:t,message:"Refresh is taking longer than usual"};await Z(V)}},te=async(e,t,s,a)=>{const n=await L(e,s).then(o=>({ok:!0,maxLastSynced:F(o.mailboxes??[])})).catch(o=>({ok:!1,error:o}));if(!n.ok)return{accountId:s,enqueued:!1,ok:!1,message:b(n.error)};const u=await $({path:{accountId:s},throwOnError:!0}).then(()=>({ok:!0})).catch(o=>({ok:!1,error:o}));if(!u.ok)return ee(u.error),{accountId:s,enqueued:!1,ok:!1,message:b(u.error)};t.recordEvent("sync.triggered");const c=await se(e,s,n.maxLastSynced,a);return c?{accountId:s,enqueued:!0,ok:!1,message:c.message}:{accountId:s,enqueued:!0,ok:!0}},ue=(e,t={})=>{const s=P(),a=Q(),{acknowledge:n}=J(),[u,c]=i.useState("idle"),[o,f]=i.useState(),h=i.useRef(0),g=i.useRef(e);g.current=e;const y=i.useRef(t);y.current=t,i.useEffect(()=>{if(u!=="success")return;const S=setTimeout(()=>c("idle"),2e3);return()=>clearTimeout(S)},[u]);const w=i.useCallback(()=>{const S=g.current;if(S.length===0){c("error"),f("Nothing to refresh yet");return}const r=++h.current;c("refreshing"),f(void 0),(async()=>{const l=Date.now()+Y,d=await Promise.all(S.map(m=>te(s,a,m,l)));if(h.current!==r)return;const x=d.filter(m=>m.enqueued).map(m=>m.accountId);for(const m of x)s.invalidateQueries({queryKey:A({path:{accountId:m}})});x.length>0&&(y.current.onSettled?.(),n(x));const p=d.filter(m=>!m.ok);p.length===0?c("success"):(c("error"),f(p[0]?.message))})()},[n,s,a]);return{state:u,errorMessage:o,refresh:w}};export{ce as M,oe as R,ue as a,ie as b,N as i,J as u};
1
+ import{j as E,e as T,b as j,B as D,r as i,t as C,aD as R,q as P,n as K,a0 as Q,P as A,N as $,Q as z,R as B}from"./index-D62yniYt.js";import{C as G}from"./circle-check-big-CrTwR6Vm.js";import{R as H}from"./search-token-index-B1LLTHay.js";function oe({state:e,onRefresh:t,label:s,errorMessage:a,hasUpdate:n,size:u="sm",className:c}){const o=e==="refreshing",f=e==="error",h=e==="success",g=f?E.jsx(T,{className:"size-4 text-danger"}):h?E.jsx(G,{className:"size-4 text-positive"}):E.jsx(H,{className:j("size-4",o&&"animate-spin")}),y=f?`${s} — failed: ${a??"try again"}`:o?`${s} — refreshing`:h?`${s} — up to date`:n?`${s} — new mail`:s;return E.jsxs("div",{className:"relative inline-flex",children:[E.jsx(D,{variant:"ghost",size:u,icon:g,onClick:t,disabled:o,"aria-label":y,"aria-busy":o||void 0,title:f?a:s,className:c}),e==="idle"&&n&&E.jsx("span",{"aria-hidden":"true",className:"absolute right-1 top-1 size-1.5 rounded-full bg-accent-2"})]})}const U=new Set(["discovering_mailboxes","syncing_inbox","syncing_others"]);function N(e){return!!e&&U.has(e)}const _=3e3,W=_*2,M={syncing:!1,resolved:!1,synced:0,total:0};function ie(e,t){const s=e.join(","),[a,n]=i.useState(!1),[u,c]=i.useState(!1);i.useEffect(()=>{n(!1),c(!1)},[s,t]),i.useEffect(()=>{if(!t)return;const r=setTimeout(()=>c(!0),W);return()=>clearTimeout(r)},[s,t]);const o=C({queries:e.map(r=>({...R({path:{accountId:r}}),enabled:t&&!a,refetchInterval:_,meta:{softError:!0}}))}),f=o.every(r=>r.isSuccess||r.isError),h=o.length===0||f||u;let g=!1,y=0,w=0;for(const r of o)if(N(r.data?.syncPhase)){g=!0;for(const l of r.data?.mailboxes??[])y+=l.messagesSynced,w+=l.messagesTotal}const S=t&&h&&!g;return i.useEffect(()=>{S&&n(!0)},[S]),!t||!h?M:{syncing:g,resolved:!0,synced:y,total:w}}const k=6e4,I=new Set(["sent","drafts","trash","archive"]),v=(e,t)=>{const s=new Map;for(const a of e){const n=t.get(a.mailboxId)?.role;n&&I.has(n)||s.set(a.mailboxId,a.messagesTotal)}return s},X=(e,t)=>{for(const[s,a]of t)if(a>(e.get(s)??0))return!0;return!1},q=i.createContext(null),J=()=>{const e=i.useContext(q);if(!e)throw new Error("useMailFreshness must be used inside <MailFreshnessProvider>");return e};function ce({accountIds:e,children:t}){const s=P(),{resultFolderIndex:a}=K(),n=i.useRef(new Map),u=i.useRef(new Set),[c,o]=i.useState(new Set),f=C({queries:e.map(r=>({...R({path:{accountId:r}}),refetchInterval:k,staleTime:k,meta:{softError:!0}}))}),h=f.map(r=>r.dataUpdatedAt).join(","),g=e.join(",");i.useEffect(()=>{let r=!1;const l=new Set(c);e.forEach((d,x)=>{const p=f[x]?.data;if(!p)return;const m=v(p.mailboxes??[],a);if(!u.current.has(d)){u.current.add(d),n.current.set(d,m);return}if(l.has(d))return;const O=n.current.get(d)??new Map;X(O,m)&&(l.add(d),r=!0)}),r&&o(l)},[g,h]);const y=i.useCallback(r=>r.some(l=>c.has(l)),[c]),w=i.useCallback(r=>{o(l=>{if(r.every(x=>!l.has(x)))return l;const d=new Set(l);for(const x of r)d.delete(x);return d});for(const l of r){const d=s.getQueryData(R({path:{accountId:l}}).queryKey);n.current.set(l,v(d?.mailboxes??[],a)),u.current.add(l)}},[s,a]),S=i.useMemo(()=>({hasNewMail:y,acknowledge:w}),[y,w]);return E.jsx(q.Provider,{value:S,children:t})}const V=2e3,Y=45e3,Z=e=>new Promise(t=>setTimeout(t,e)),b=e=>e instanceof Error&&e.message?e.message:"Something went wrong",ee=e=>{z(e,{softError:!0})&&B(e)},F=e=>e.reduce((t,s)=>Math.max(t,s.lastSyncedAt??0),0),L=(e,t)=>e.fetchQuery({...R({path:{accountId:t}}),staleTime:0}),se=async(e,t,s,a)=>{let n=!1;for(;;){const u=await L(e,t).then(f=>({ok:!0,data:f})).catch(f=>({ok:!1,error:f}));if(!u.ok)return{accountId:t,message:b(u.error)};const{syncPhase:c,mailboxes:o}=u.data;if(N(c))n=!0;else if(n||F(o??[])>s)return c==="error"?{accountId:t,message:"Sync failed for this account"}:void 0;if(Date.now()>=a)return{accountId:t,message:"Refresh is taking longer than usual"};await Z(V)}},te=async(e,t,s,a)=>{const n=await L(e,s).then(o=>({ok:!0,maxLastSynced:F(o.mailboxes??[])})).catch(o=>({ok:!1,error:o}));if(!n.ok)return{accountId:s,enqueued:!1,ok:!1,message:b(n.error)};const u=await $({path:{accountId:s},throwOnError:!0}).then(()=>({ok:!0})).catch(o=>({ok:!1,error:o}));if(!u.ok)return ee(u.error),{accountId:s,enqueued:!1,ok:!1,message:b(u.error)};t.recordEvent("sync.triggered");const c=await se(e,s,n.maxLastSynced,a);return c?{accountId:s,enqueued:!0,ok:!1,message:c.message}:{accountId:s,enqueued:!0,ok:!0}},ue=(e,t={})=>{const s=P(),a=Q(),{acknowledge:n}=J(),[u,c]=i.useState("idle"),[o,f]=i.useState(),h=i.useRef(0),g=i.useRef(e);g.current=e;const y=i.useRef(t);y.current=t,i.useEffect(()=>{if(u!=="success")return;const S=setTimeout(()=>c("idle"),2e3);return()=>clearTimeout(S)},[u]);const w=i.useCallback(()=>{const S=g.current;if(S.length===0){c("error"),f("Nothing to refresh yet");return}const r=++h.current;c("refreshing"),f(void 0),(async()=>{const l=Date.now()+Y,d=await Promise.all(S.map(m=>te(s,a,m,l)));if(h.current!==r)return;const x=d.filter(m=>m.enqueued).map(m=>m.accountId);for(const m of x)s.invalidateQueries({queryKey:A({path:{accountId:m}})});x.length>0&&(y.current.onSettled?.(),n(x));const p=d.filter(m=>!m.ok);p.length===0?c("success"):(c("error"),f(p[0]?.message))})()},[n,s,a]);return{state:u,errorMessage:o,refresh:w}};export{ce as M,oe as R,ue as a,ie as b,N as i,J as u};
@@ -1 +1 @@
1
- import{o as h,n as y,V as v,r as p}from"./index-DiRuAyHr.js";import{u as x}from"./search-scope-DJwbffIz.js";import{b as I}from"./search-view-D4TA8cJz.js";function q(o){const a=h(),{searchInput:c,searchQuery:e}=y(),{q:i=""}=v({from:"/mail"}),n=x({select:m=>m.location.pathname}),s=p.useRef(i);s.current=i;const{to:r}=o,t="params"in o?o.params.mailboxId:void 0,l=t?`/mail/${t}`:r;p.useEffect(()=>{if(!I({searchInput:c,committedQuery:e,urlQuery:s.current,pathname:n,listPath:l}))return;const d=!!e&&s.current!==e,u=f=>({...f,q:e||void 0,...d?{selectedMessageId:void 0,selectedThreadId:void 0,selectedMailboxId:void 0}:{}});if(!d){a({to:".",search:u,replace:!0});return}if(r==="/mail/$mailboxId"){if(!t)return;a({to:r,params:{mailboxId:t},search:u,replace:!0});return}a({to:r,search:u,replace:!0})},[c,e,a,r,t,l,n])}export{q as u};
1
+ import{o as h,n as y,V as v,r as p}from"./index-D62yniYt.js";import{u as x}from"./search-scope-C5ExEpmN.js";import{b as I}from"./search-view-DTASvdKS.js";function q(o){const a=h(),{searchInput:c,searchQuery:e}=y(),{q:i=""}=v({from:"/mail"}),n=x({select:m=>m.location.pathname}),s=p.useRef(i);s.current=i;const{to:r}=o,t="params"in o?o.params.mailboxId:void 0,l=t?`/mail/${t}`:r;p.useEffect(()=>{if(!I({searchInput:c,committedQuery:e,urlQuery:s.current,pathname:n,listPath:l}))return;const d=!!e&&s.current!==e,u=f=>({...f,q:e||void 0,...d?{selectedMessageId:void 0,selectedThreadId:void 0,selectedMailboxId:void 0}:{}});if(!d){a({to:".",search:u,replace:!0});return}if(r==="/mail/$mailboxId"){if(!t)return;a({to:r,params:{mailboxId:t},search:u,replace:!0});return}a({to:r,search:u,replace:!0})},[c,e,a,r,t,l,n])}export{q as u};
@@ -1,4 +1,4 @@
1
- import{c2 as X,r as f,j as a,b as B,I as Y,a0 as Z,m as P,q as W,w as J,cp as H,co as ee,ab as te,ad as se,ae as re,b8 as ne,e as ae,X as oe,J as C,n as ie}from"./index-DiRuAyHr.js";import{K as L}from"./kbd-Ck8m_jWP.js";import{M as Q}from"./enums-CCxx0t2v.js";import{u as ce,i as le}from"./search-scope-DJwbffIz.js";const de=(e,t)=>{const r=e==="newsletter"||e==="marketing"||t;return{framed:r,isPlain:!r}},ue=()=>`
1
+ import{c2 as X,r as f,j as a,b as B,I as Y,a0 as Z,m as P,q as W,w as J,cp as H,co as ee,ab as te,ad as se,ae as re,b8 as ne,e as ae,X as oe,J as C,n as ie}from"./index-D62yniYt.js";import{K as L}from"./kbd-Cta_1-aF.js";import{M as Q}from"./enums-CCxx0t2v.js";import{u as ce,i as le}from"./search-scope-C5ExEpmN.js";const de=(e,t)=>{const r=e==="newsletter"||e==="marketing"||t;return{framed:r,isPlain:!r}},ue=()=>`
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{q as L,ab as C,ad as I,bF as k,bG as E,r as x,j as p,bH as h,bI as A,bJ as j,n as R,w as Q,bK as q}from"./index-DiRuAyHr.js";import{ap as D,aq as O,ar as _,as as z,at as N}from"./MailListHeader-C2XMv19y.js";import{a as P}from"./useLabels-CCPzRB-4.js";import{M as w}from"./enums-CCxx0t2v.js";import{u as F,s as G}from"./search-scope-DJwbffIz.js";import{n as U}from"./search-query-Cr_ZXBCp.js";import{u as B,p as K}from"./useSearchTokenContext-C1W1J3dC.js";const H=t=>{const{mailboxId:s,messages:i}=t,l=L(),{pushError:c}=C(),{mutateAsync:r,isPending:a}=I({...E(),onError:(o,u)=>{c({title:u.body.action==="Remove"?"Couldn't remove label":"Couldn't apply label",detail:k(o),error:o})},onSettled:(o,u,m)=>{D(l,O(_(m.body.messageIds??[],i??[],s)))}});return{applyLabel:x.useCallback((o,u,m)=>{o.length!==0&&z(o,d=>r({body:{messageIds:d,labelId:u,action:m}}))},[r]),isPending:a}};function oe({accountId:t,mailboxId:s,messageIds:i}){const{labels:l}=P(t),{applyLabel:c}=H({mailboxId:s}),r=x.useMemo(()=>l.map(a=>({key:a.labelId,label:a.name,icon:p.jsx("span",{className:`size-2.5 rounded-full ${A(a.color)?h[a.color]:h.Default}`}),onSelect:()=>c(i,a.labelId,"Apply")})),[l,i,c]);return r.length===0?null:p.jsx(N,{triggerLabel:"Apply label to selected messages",triggerIcon:p.jsx(j,{className:"size-4 text-fg-subtle"}),triggerText:"Apply label",items:r,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 J=20,V=new Set(Object.values(w)),$=t=>t!==void 0&&V.has(t)?t:void 0,W=t=>{if(t.some(s=>s.type==="isUnread"))return!1;if(t.some(s=>s.type==="isRead"))return!0};function ne({mailboxId:t,filterCategory:s}={}){const{searchQuery:i}=R(),l=B(),c=F({select:e=>e.matches}),r=U(i),{freeText:a,tokens:n}=K(r,l),o=a.length>0,u=n.find(e=>e.type==="category"),m=$(s)??u?.category,d=n.some(e=>e.type==="hasAttachment")?!0:void 0,b=n.some(e=>e.type==="isStarred")?!0:void 0,y=W(n),f=n.find(e=>e.type==="after"),g=n.find(e=>e.type==="before"),S=n.find(e=>e.type==="in"),M=G({matches:c,callerMailboxId:t,inTokenMailboxId:S?.mailboxId}),{data:T,isLoading:v}=Q({...q({query:{query:a,mailboxId:M,limit:J,...m!==void 0?{category:m}:{},...d!==void 0?{hasAttachment:d}:{},...b!==void 0?{hasStars:b}:{},...y!==void 0?{isRead:y}:{},...f?{sentDateFrom:f.epochSeconds}:{},...g?{sentDateTo:g.epochSeconds}:{}}}),enabled:o,staleTime:6e4});return{hits:T?.items??[],isLoading:o&&v}}export{oe as L,ne as u};
1
+ import{q as L,ab as C,ad as I,bF as k,bG as E,r as x,j as p,bH as h,bI as A,bJ as j,n as R,w as Q,bK as q}from"./index-D62yniYt.js";import{ap as D,aq as O,ar as _,as as z,at as N}from"./MailListHeader-jNuNyHYb.js";import{a as P}from"./useLabels-BKwqrgSZ.js";import{M as w}from"./enums-CCxx0t2v.js";import{u as F,s as G}from"./search-scope-C5ExEpmN.js";import{n as U}from"./search-query-Cr_ZXBCp.js";import{u as B,p as K}from"./useSearchTokenContext-CZOmDShO.js";const H=t=>{const{mailboxId:s,messages:i}=t,l=L(),{pushError:c}=C(),{mutateAsync:r,isPending:a}=I({...E(),onError:(o,u)=>{c({title:u.body.action==="Remove"?"Couldn't remove label":"Couldn't apply label",detail:k(o),error:o})},onSettled:(o,u,m)=>{D(l,O(_(m.body.messageIds??[],i??[],s)))}});return{applyLabel:x.useCallback((o,u,m)=>{o.length!==0&&z(o,d=>r({body:{messageIds:d,labelId:u,action:m}}))},[r]),isPending:a}};function oe({accountId:t,mailboxId:s,messageIds:i}){const{labels:l}=P(t),{applyLabel:c}=H({mailboxId:s}),r=x.useMemo(()=>l.map(a=>({key:a.labelId,label:a.name,icon:p.jsx("span",{className:`size-2.5 rounded-full ${A(a.color)?h[a.color]:h.Default}`}),onSelect:()=>c(i,a.labelId,"Apply")})),[l,i,c]);return r.length===0?null:p.jsx(N,{triggerLabel:"Apply label to selected messages",triggerIcon:p.jsx(j,{className:"size-4 text-fg-subtle"}),triggerText:"Apply label",items:r,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 J=20,V=new Set(Object.values(w)),$=t=>t!==void 0&&V.has(t)?t:void 0,W=t=>{if(t.some(s=>s.type==="isUnread"))return!1;if(t.some(s=>s.type==="isRead"))return!0};function ne({mailboxId:t,filterCategory:s}={}){const{searchQuery:i}=R(),l=B(),c=F({select:e=>e.matches}),r=U(i),{freeText:a,tokens:n}=K(r,l),o=a.length>0,u=n.find(e=>e.type==="category"),m=$(s)??u?.category,d=n.some(e=>e.type==="hasAttachment")?!0:void 0,b=n.some(e=>e.type==="isStarred")?!0:void 0,y=W(n),f=n.find(e=>e.type==="after"),g=n.find(e=>e.type==="before"),S=n.find(e=>e.type==="in"),M=G({matches:c,callerMailboxId:t,inTokenMailboxId:S?.mailboxId}),{data:T,isLoading:v}=Q({...q({query:{query:a,mailboxId:M,limit:J,...m!==void 0?{category:m}:{},...d!==void 0?{hasAttachment:d}:{},...b!==void 0?{hasStars:b}:{},...y!==void 0?{isRead:y}:{},...f?{sentDateFrom:f.epochSeconds}:{},...g?{sentDateTo:g.epochSeconds}:{}}}),enabled:o,staleTime:6e4});return{hits:T?.items??[],isLoading:o&&v}}export{oe as L,ne as u};
@@ -1 +1 @@
1
- import{q as g,ab as f,w as p,W as m,r,ad as y,ae as T,$ as E,af as d}from"./index-DiRuAyHr.js";const i={html:"",plainText:""},C=e=>{const u=g(),{pushError:o}=f(),{data:n}=p({...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({...d(),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{C as u};
1
+ import{q as g,ab as f,w as p,W as m,r,ad as y,ae as T,$ as E,af as d}from"./index-D62yniYt.js";const i={html:"",plainText:""},C=e=>{const u=g(),{pushError:o}=f(),{data:n}=p({...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({...d(),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{C as u};
package/index.html CHANGED
@@ -38,7 +38,7 @@
38
38
  } catch (_) {}
39
39
  })();
40
40
  </script>
41
- <script type="module" crossorigin src="/assets/index-DiRuAyHr.js"></script>
41
+ <script type="module" crossorigin src="/assets/index-D62yniYt.js"></script>
42
42
  <link rel="stylesheet" crossorigin href="/assets/index-qflIxZzw.css">
43
43
  </head>
44
44
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/web-client-dist",
3
- "version": "0.0.315",
3
+ "version": "0.0.316",
4
4
  "description": "Built Remit web client — static assets and the default runtime config.",
5
5
  "files": [
6
6
  "**/*"
@@ -1 +0,0 @@
1
- import{a1 as m,j as o,_ as p}from"./index-DiRuAyHr.js";import{a as e}from"./search-view-D4TA8cJz.js";import{M as r}from"./MailboxPane-BU8zCLD6.js";import{u as a}from"./useSearchMirror-BlFU9LhB.js";import"./search-scope-DJwbffIz.js";import"./useSearchTokenContext-C1W1J3dC.js";import"./kbd-Ck8m_jWP.js";import"./enums-CCxx0t2v.js";import"./useRefreshControl-CAZ6vgao.js";import"./circle-check-big-CCL6N41e.js";import"./search-token-index-cTe1CL2O.js";import"./useMediaQuery-BdTbWPMJ.js";import"./MailListHeader-C2XMv19y.js";import"./account-form-helpers-CDUMl54m.js";import"./avatar-CkV43qNd.js";import"./useSignature-DHSw00HY.js";import"./useDebouncedValue-yaYbAyts.js";import"./ErrorState-bFPcHMNG.js";import"./format-De9HZKjg.js";import"./download-e6r8RHJO.js";import"./shield-check-D79TXoi7.js";import"./move-options-DxlogUsy.js";import"./useFilters-BEEaWifb.js";import"./confirm-dialog-gTN2dcdp.js";import"./clock-CBOpHqJt.js";import"./menu-DsDiLJbw.js";import"./MailViewChrome-C6m_pDnZ.js";import"./NavMenuButton-Bc0ya-6h.js";import"./useLabels-CCPzRB-4.js";import"./useSemanticSearch-D_O-Fl32.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-CSAuySol.js";import"./circle-help-DBmWdT_j.js";import"./circle-check-C1aqHG_v.js";import"./intelligence-pref-C6lFpj6U.js";function H(){const{mailboxId:t}=m.useParams(),{selectedMessageId:i}=m.useSearch();return a({to:"/mail/$mailboxId",params:{mailboxId:t}}),o.jsx(r,{mailboxId:t,selectedMessageId:i,children:o.jsx(e,{phone:o.jsx(r.Phone,{}),list:o.jsx(r.List,{}),reading:o.jsx(p,{}),intelligence:o.jsx(r.Intelligence,{}),hasThread:!!i})})}export{H as component};
@@ -1 +0,0 @@
1
- import{j as r}from"./index-DiRuAyHr.js";import{B as o}from"./BriefPane-UBjV3kAo.js";import"./useSearchTokenContext-C1W1J3dC.js";import"./kbd-Ck8m_jWP.js";import"./enums-CCxx0t2v.js";import"./search-scope-DJwbffIz.js";import"./MailListHeader-C2XMv19y.js";import"./search-token-index-cTe1CL2O.js";import"./useMediaQuery-BdTbWPMJ.js";import"./account-form-helpers-CDUMl54m.js";import"./avatar-CkV43qNd.js";import"./useSignature-DHSw00HY.js";import"./useDebouncedValue-yaYbAyts.js";import"./ErrorState-bFPcHMNG.js";import"./format-De9HZKjg.js";import"./download-e6r8RHJO.js";import"./shield-check-D79TXoi7.js";import"./move-options-DxlogUsy.js";import"./useFilters-BEEaWifb.js";import"./confirm-dialog-gTN2dcdp.js";import"./clock-CBOpHqJt.js";import"./menu-DsDiLJbw.js";import"./useRefreshControl-CAZ6vgao.js";import"./circle-check-big-CCL6N41e.js";import"./useLabels-CCPzRB-4.js";import"./useSemanticSearch-D_O-Fl32.js";import"./search-query-Cr_ZXBCp.js";function y(){return r.jsx(o.Reading,{})}export{y as component};
@@ -1 +0,0 @@
1
- import{_ as o}from"./index-DiRuAyHr.js";const n=o;export{n as component};
@@ -1 +0,0 @@
1
- import{z as m,r as a,j as r,_ as p}from"./index-DiRuAyHr.js";import{a as n}from"./search-view-D4TA8cJz.js";import{B as t}from"./BriefPane-UBjV3kAo.js";import{u as d}from"./useSearchMirror-BlFU9LhB.js";import"./search-token-index-cTe1CL2O.js";import"./search-scope-DJwbffIz.js";import"./useSearchTokenContext-C1W1J3dC.js";import"./kbd-Ck8m_jWP.js";import"./enums-CCxx0t2v.js";import"./MailListHeader-C2XMv19y.js";import"./account-form-helpers-CDUMl54m.js";import"./avatar-CkV43qNd.js";import"./useSignature-DHSw00HY.js";import"./useDebouncedValue-yaYbAyts.js";import"./useMediaQuery-BdTbWPMJ.js";import"./ErrorState-bFPcHMNG.js";import"./format-De9HZKjg.js";import"./download-e6r8RHJO.js";import"./shield-check-D79TXoi7.js";import"./move-options-DxlogUsy.js";import"./useFilters-BEEaWifb.js";import"./confirm-dialog-gTN2dcdp.js";import"./clock-CBOpHqJt.js";import"./menu-DsDiLJbw.js";import"./useRefreshControl-CAZ6vgao.js";import"./circle-check-big-CCL6N41e.js";import"./useLabels-CCPzRB-4.js";import"./useSemanticSearch-D_O-Fl32.js";import"./search-query-Cr_ZXBCp.js";function h(){const o=m({from:"/mail/brief/$threadId",shouldThrow:!1}),s=m({from:"/mail/brief/$threadId/$messageId",shouldThrow:!1}),i=o?.threadId,e=s?.messageId;return a.useMemo(()=>i?{threadId:i,messageId:e}:void 0,[i,e])}function F(){const o=h();return d({to:"/mail/brief"}),r.jsx(t,{thread:o,children:r.jsx(n,{phone:r.jsx(t.Phone,{}),list:r.jsx(t.List,{}),reading:r.jsx(p,{}),intelligence:r.jsx(t.Intelligence,{}),hasThread:!!o})})}export{F as component};
@@ -1 +0,0 @@
1
- import{a2 as i,j as o,_ as e}from"./index-DiRuAyHr.js";import{a as m}from"./search-view-D4TA8cJz.js";import{F as t}from"./FlaggedPane-T0VjfKl2.js";import{u as p}from"./useSearchMirror-BlFU9LhB.js";import"./search-scope-DJwbffIz.js";import"./useSearchTokenContext-C1W1J3dC.js";import"./kbd-Ck8m_jWP.js";import"./enums-CCxx0t2v.js";import"./MailListHeader-C2XMv19y.js";import"./search-token-index-cTe1CL2O.js";import"./useMediaQuery-BdTbWPMJ.js";import"./account-form-helpers-CDUMl54m.js";import"./avatar-CkV43qNd.js";import"./useSignature-DHSw00HY.js";import"./useDebouncedValue-yaYbAyts.js";import"./ErrorState-bFPcHMNG.js";import"./format-De9HZKjg.js";import"./download-e6r8RHJO.js";import"./shield-check-D79TXoi7.js";import"./move-options-DxlogUsy.js";import"./useFilters-BEEaWifb.js";import"./confirm-dialog-gTN2dcdp.js";import"./clock-CBOpHqJt.js";import"./menu-DsDiLJbw.js";import"./MailViewChrome-C6m_pDnZ.js";function b(){const{selectedMessageId:r}=i.useSearch();return p({to:"/mail/flagged"}),o.jsx(t,{selectedMessageId:r,children:o.jsx(m,{phone:o.jsx(t.Phone,{}),list:o.jsx(t.List,{}),reading:o.jsx(e,{}),intelligence:o.jsx(t.Intelligence,{}),hasThread:!!r})})}export{b as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-DiRuAyHr.js";import{M as i}from"./MailboxPane-BU8zCLD6.js";import"./useSearchTokenContext-C1W1J3dC.js";import"./kbd-Ck8m_jWP.js";import"./enums-CCxx0t2v.js";import"./search-scope-DJwbffIz.js";import"./useRefreshControl-CAZ6vgao.js";import"./circle-check-big-CCL6N41e.js";import"./search-token-index-cTe1CL2O.js";import"./useMediaQuery-BdTbWPMJ.js";import"./MailListHeader-C2XMv19y.js";import"./account-form-helpers-CDUMl54m.js";import"./avatar-CkV43qNd.js";import"./useSignature-DHSw00HY.js";import"./useDebouncedValue-yaYbAyts.js";import"./ErrorState-bFPcHMNG.js";import"./format-De9HZKjg.js";import"./download-e6r8RHJO.js";import"./shield-check-D79TXoi7.js";import"./move-options-DxlogUsy.js";import"./useFilters-BEEaWifb.js";import"./confirm-dialog-gTN2dcdp.js";import"./clock-CBOpHqJt.js";import"./menu-DsDiLJbw.js";import"./MailViewChrome-C6m_pDnZ.js";import"./NavMenuButton-Bc0ya-6h.js";import"./useLabels-CCPzRB-4.js";import"./useSemanticSearch-D_O-Fl32.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-CSAuySol.js";import"./circle-help-DBmWdT_j.js";import"./circle-check-C1aqHG_v.js";import"./intelligence-pref-C6lFpj6U.js";function G(){return o.jsx(i.Reading,{})}export{G as component};
@@ -1 +0,0 @@
1
- import{j as t,a5 as o}from"./index-DiRuAyHr.js";const n=()=>t.jsx(o,{to:"/settings/accounts"});export{n as component};
@@ -1 +0,0 @@
1
- import{j as r}from"./index-DiRuAyHr.js";import{B as o}from"./BriefPane-UBjV3kAo.js";import"./useSearchTokenContext-C1W1J3dC.js";import"./kbd-Ck8m_jWP.js";import"./enums-CCxx0t2v.js";import"./search-scope-DJwbffIz.js";import"./MailListHeader-C2XMv19y.js";import"./search-token-index-cTe1CL2O.js";import"./useMediaQuery-BdTbWPMJ.js";import"./account-form-helpers-CDUMl54m.js";import"./avatar-CkV43qNd.js";import"./useSignature-DHSw00HY.js";import"./useDebouncedValue-yaYbAyts.js";import"./ErrorState-bFPcHMNG.js";import"./format-De9HZKjg.js";import"./download-e6r8RHJO.js";import"./shield-check-D79TXoi7.js";import"./move-options-DxlogUsy.js";import"./useFilters-BEEaWifb.js";import"./confirm-dialog-gTN2dcdp.js";import"./clock-CBOpHqJt.js";import"./menu-DsDiLJbw.js";import"./useRefreshControl-CAZ6vgao.js";import"./circle-check-big-CCL6N41e.js";import"./useLabels-CCPzRB-4.js";import"./useSemanticSearch-D_O-Fl32.js";import"./search-query-Cr_ZXBCp.js";function z(){return r.jsx(o.Reading,{})}export{z as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-DiRuAyHr.js";import{O as t}from"./OutboxPane-B64cQ2E1.js";import"./useSearchTokenContext-C1W1J3dC.js";import"./kbd-Ck8m_jWP.js";import"./enums-CCxx0t2v.js";import"./search-scope-DJwbffIz.js";import"./circle-check-big-CCL6N41e.js";import"./clock-CBOpHqJt.js";import"./row-actions-TrSHoo_D.js";import"./rotate-ccw-zMf97sS0.js";import"./NavMenuButton-Bc0ya-6h.js";import"./menu-DsDiLJbw.js";import"./format-De9HZKjg.js";import"./outbox-status-CPfNHfUQ.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 r}from"./index-DiRuAyHr.js";import{B as o}from"./BriefPane-UBjV3kAo.js";import"./useSearchTokenContext-C1W1J3dC.js";import"./kbd-Ck8m_jWP.js";import"./enums-CCxx0t2v.js";import"./search-scope-DJwbffIz.js";import"./MailListHeader-C2XMv19y.js";import"./search-token-index-cTe1CL2O.js";import"./useMediaQuery-BdTbWPMJ.js";import"./account-form-helpers-CDUMl54m.js";import"./avatar-CkV43qNd.js";import"./useSignature-DHSw00HY.js";import"./useDebouncedValue-yaYbAyts.js";import"./ErrorState-bFPcHMNG.js";import"./format-De9HZKjg.js";import"./download-e6r8RHJO.js";import"./shield-check-D79TXoi7.js";import"./move-options-DxlogUsy.js";import"./useFilters-BEEaWifb.js";import"./confirm-dialog-gTN2dcdp.js";import"./clock-CBOpHqJt.js";import"./menu-DsDiLJbw.js";import"./useRefreshControl-CAZ6vgao.js";import"./circle-check-big-CCL6N41e.js";import"./useLabels-CCPzRB-4.js";import"./useSemanticSearch-D_O-Fl32.js";import"./search-query-Cr_ZXBCp.js";function y(){return r.jsx(o.Reading,{})}export{y as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-DiRuAyHr.js";import{F as r}from"./FlaggedPane-T0VjfKl2.js";import"./useSearchTokenContext-C1W1J3dC.js";import"./kbd-Ck8m_jWP.js";import"./enums-CCxx0t2v.js";import"./search-scope-DJwbffIz.js";import"./MailListHeader-C2XMv19y.js";import"./search-token-index-cTe1CL2O.js";import"./useMediaQuery-BdTbWPMJ.js";import"./account-form-helpers-CDUMl54m.js";import"./avatar-CkV43qNd.js";import"./useSignature-DHSw00HY.js";import"./useDebouncedValue-yaYbAyts.js";import"./ErrorState-bFPcHMNG.js";import"./format-De9HZKjg.js";import"./download-e6r8RHJO.js";import"./shield-check-D79TXoi7.js";import"./move-options-DxlogUsy.js";import"./useFilters-BEEaWifb.js";import"./confirm-dialog-gTN2dcdp.js";import"./clock-CBOpHqJt.js";import"./menu-DsDiLJbw.js";import"./MailViewChrome-C6m_pDnZ.js";function q(){return o.jsx(r.Reading,{})}export{q as component};
@@ -1 +0,0 @@
1
- import{j as o,_ as r}from"./index-DiRuAyHr.js";import{a as i}from"./search-view-D4TA8cJz.js";import{O as t}from"./OutboxPane-B64cQ2E1.js";import{u as m}from"./useSearchMirror-BlFU9LhB.js";import"./search-scope-DJwbffIz.js";import"./useSearchTokenContext-C1W1J3dC.js";import"./kbd-Ck8m_jWP.js";import"./enums-CCxx0t2v.js";import"./circle-check-big-CCL6N41e.js";import"./clock-CBOpHqJt.js";import"./row-actions-TrSHoo_D.js";import"./rotate-ccw-zMf97sS0.js";import"./NavMenuButton-Bc0ya-6h.js";import"./menu-DsDiLJbw.js";import"./format-De9HZKjg.js";import"./outbox-status-CPfNHfUQ.js";import"./search-query-Cr_ZXBCp.js";function P(){return m({to:"/mail/outbox"}),o.jsx(t,{children:o.jsx(i,{phone:o.jsx(t.Phone,{}),list:o.jsx(t.List,{}),reading:o.jsx(r,{})})})}export{P as component};
@@ -1 +0,0 @@
1
- import{j as t,_ as o}from"./index-DiRuAyHr.js";const n=()=>t.jsx(o,{});export{n as component};