@remit/web-client-dist 0.0.329 → 0.0.331

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 (103) hide show
  1. package/assets/BriefPane-B4OnBw7A.js +1 -0
  2. package/assets/{ErrorState-CzVRekaj.js → ErrorState-9wFdKXpo.js} +1 -1
  3. package/assets/FlaggedPane-VNYPSCvj.js +1 -0
  4. package/assets/MailListHeader-CA5lvtZs.js +52 -0
  5. package/assets/{MailViewChrome-BUsgxqXW.js → MailViewChrome-D-68x2uE.js} +1 -1
  6. package/assets/{MailboxPane-CqHZRWpk.js → MailboxPane-BWOjvlNs.js} +1 -1
  7. package/assets/{NavMenuButton-CLIGmcnp.js → NavMenuButton-cseqHrgr.js} +1 -1
  8. package/assets/{OnboardingWizard-BjqUPTrN.js → OnboardingWizard-DAdN9w-x.js} +1 -1
  9. package/assets/{OutboxPane-BttDTEiM.js → OutboxPane-VocIZWXW.js} +1 -1
  10. package/assets/_mailboxId-BYy5x0wE.js +1 -0
  11. package/assets/_messageId-0tY_nYQ1.js +1 -0
  12. package/assets/_messageId-C7Dc1hnG.js +1 -0
  13. package/assets/_messageId-C8LAzwtA.js +1 -0
  14. package/assets/_outboxMessageId-BHx_kFyq.js +1 -0
  15. package/assets/_threadId-BpoqHy6Q.js +1 -0
  16. package/assets/_threadId-Dcpkewj-.js +1 -0
  17. package/assets/_threadId-QRWabVsi.js +1 -0
  18. package/assets/{account-form-helpers-D3BmrOtk.js → account-form-helpers-COfJkI9V.js} +1 -1
  19. package/assets/{accounts-BCJcVJMA.js → accounts-CZ83UwON.js} +1 -1
  20. package/assets/{advanced-DTlPeWfG.js → advanced-CIk7-tvi.js} +1 -1
  21. package/assets/{appearance-CvjOQyT-.js → appearance-DamZUddD.js} +1 -1
  22. package/assets/{avatar-BaI4pwX1.js → avatar-BvDbtKy6.js} +1 -1
  23. package/assets/{bottom-sheet-hxzJ8dsp.js → bottom-sheet-0UhJ47Gv.js} +1 -1
  24. package/assets/brief-CAe8f7q6.js +1 -0
  25. package/assets/{brief-BoSR0o3w.js → brief-JcrOpUjt.js} +1 -1
  26. package/assets/{browser-ponyfill-VD1oW-Yx.js → browser-ponyfill-CU-pwafu.js} +1 -1
  27. package/assets/{circle-check-DwqsdvSv.js → circle-check-Bxbx7HfB.js} +1 -1
  28. package/assets/{circle-check-big-dKcwkkHZ.js → circle-check-big-CjzecMB6.js} +1 -1
  29. package/assets/{circle-help-xXiA5uCy.js → circle-help-BK_hzj_i.js} +1 -1
  30. package/assets/{clock-PKLYWi-Z.js → clock-B1X_i57Q.js} +1 -1
  31. package/assets/{confirm-dialog-CNtS-ofA.js → confirm-dialog-Dh8sRH0e.js} +1 -1
  32. package/assets/{download-CdHAEhpF.js → download-CZ0V6I3x.js} +1 -1
  33. package/assets/{filters-mjAb27fM.js → filters-CdfgcLH2.js} +1 -1
  34. package/assets/flagged-5fgl4f2w.js +1 -0
  35. package/assets/{flagged-ed3sNTxR.js → flagged-DZMd8zSP.js} +1 -1
  36. package/assets/{folders-BUABNsk3.js → folders-CWWWGsQ5.js} +1 -1
  37. package/assets/index-B3m_6Q-7.js +1 -0
  38. package/assets/index-C7Dc1hnG.js +1 -0
  39. package/assets/index-C8LAzwtA.js +1 -0
  40. package/assets/index-CHntB8XM.js +1 -0
  41. package/assets/index-DIEk2vzA.js +1 -0
  42. package/assets/index-DdWkZUge.js +1 -0
  43. package/assets/index-DgAf2bQz.js +1 -0
  44. package/assets/index-DuJrRaFE.js +1 -0
  45. package/assets/{index-DUmy4dAt.js → index-tka6wZr_.js} +61 -61
  46. package/assets/{kbd-ZwFtVenb.js → kbd-Dt_vzEGr.js} +1 -1
  47. package/assets/{labels-VFREJRVy.js → labels-DIFvP3py.js} +1 -1
  48. package/assets/mail-O6_yrku3.js +1 -0
  49. package/assets/{menu--KUkZ_qm.js → menu-DAXEVDbj.js} +1 -1
  50. package/assets/{move-options-no92VJ_6.js → move-options-MgiRekSU.js} +1 -1
  51. package/assets/{nav-link-BNOG4p36.js → nav-link-CBO_nghm.js} +1 -1
  52. package/assets/{onboarding-Xfopwu7x.js → onboarding-BY09gnzV.js} +1 -1
  53. package/assets/outbox-CvxSD7ed.js +1 -0
  54. package/assets/{pencil-HMl3G0Nq.js → pencil-B5Es_aSh.js} +1 -1
  55. package/assets/rich-text-DmHS1zFG.js +29 -0
  56. package/assets/rich-text-spellcheck-words-C1Zx88ZY.js +1 -0
  57. package/assets/rich-text-spellcheck-worker-C399ph5r.js +1 -0
  58. package/assets/rich-text-spellcheck-worker-provider-CYQ5Q4f9.js +1 -0
  59. package/assets/{rotate-ccw-BGsIm2za.js → rotate-ccw-Bez3srEV.js} +1 -1
  60. package/assets/{row-actions-B_xPLliI.js → row-actions-Bqp5HmTh.js} +1 -1
  61. package/assets/{search-scope-C067nTlg.js → search-scope-By6SdCOd.js} +1 -1
  62. package/assets/{search-token-index-DnLe4VlS.js → search-token-index-Bw0eYLiL.js} +1 -1
  63. package/assets/{search-view-DrM1GpjF.js → search-view-Cv6MXaNP.js} +1 -1
  64. package/assets/{senders-ChArrWrQ.js → senders-FBv_d32p.js} +1 -1
  65. package/assets/settings-C-JiUEpC.js +1 -0
  66. package/assets/{settings-screen-D-2-s5YM.js → settings-screen-ClWEZnOS.js} +1 -1
  67. package/assets/{shield-check-BanN6jve.js → shield-check-C78q6yIg.js} +1 -1
  68. package/assets/{suggested-vips-DVPOXeTj.js → suggested-vips-BFYmT1iv.js} +1 -1
  69. package/assets/{use-match-media-Bro6bqz1.js → use-match-media-BrJFrufZ.js} +1 -1
  70. package/assets/{useDebouncedValue-BLNE_op6.js → useDebouncedValue-DiRlxnWS.js} +1 -1
  71. package/assets/{useFilters-DL6piWYB.js → useFilters-Cafs9rMu.js} +1 -1
  72. package/assets/{useLabels-wWpLbrY0.js → useLabels-Dg_FXfB1.js} +1 -1
  73. package/assets/{useRefreshControl-IFhiGJ9D.js → useRefreshControl-BHJbdmbT.js} +1 -1
  74. package/assets/useSearchMirror-Df_I-_ih.js +1 -0
  75. package/assets/{useSearchTokenContext-CZgI6mWz.js → useSearchTokenContext-B60LlfMs.js} +2 -2
  76. package/assets/useSemanticSearch-ocRX-T7M.js +1 -0
  77. package/assets/{useSignature-Qknwuq_2.js → useSignature-BboURLQ5.js} +1 -1
  78. package/index.html +1 -1
  79. package/package.json +1 -1
  80. package/assets/BriefPane-BQXNleTu.js +0 -1
  81. package/assets/FlaggedPane-CpZ2OcAe.js +0 -1
  82. package/assets/MailListHeader-4AXtZpJh.js +0 -52
  83. package/assets/_mailboxId-BsIJ5Qw5.js +0 -1
  84. package/assets/_messageId-C31FR9YI.js +0 -1
  85. package/assets/_messageId-CneQEKP9.js +0 -1
  86. package/assets/_outboxMessageId-LJ-b0Bec.js +0 -1
  87. package/assets/_threadId-BWscYtJo.js +0 -1
  88. package/assets/_threadId-BkNHmpCT.js +0 -1
  89. package/assets/brief-ktYSYjs0.js +0 -1
  90. package/assets/flagged-CSN_JZPp.js +0 -1
  91. package/assets/index-BR4_kYTA.js +0 -1
  92. package/assets/index-CAzOXl8W.js +0 -1
  93. package/assets/index-Chctq97r.js +0 -1
  94. package/assets/index-CneQEKP9.js +0 -1
  95. package/assets/index-D8AjAH7I.js +0 -1
  96. package/assets/index-DC5aSwUJ.js +0 -1
  97. package/assets/index-EaqnUHk6.js +0 -1
  98. package/assets/mail-DlChE-xq.js +0 -1
  99. package/assets/outbox-D_eo85RF.js +0 -1
  100. package/assets/rich-text-Ddj-I29Y.js +0 -29
  101. package/assets/settings-Do-rJEIv.js +0 -1
  102. package/assets/useSearchMirror-B6ug5uo6.js +0 -1
  103. package/assets/useThreadRow-Bnc-PwcT.js +0 -1
@@ -1 +0,0 @@
1
- import{a3 as m,j as o,a0 as p}from"./index-DUmy4dAt.js";import{a}from"./search-view-DrM1GpjF.js";import{M as r}from"./MailboxPane-CqHZRWpk.js";import{u as e}from"./useSearchMirror-B6ug5uo6.js";import"./nav-link-BNOG4p36.js";import{u as s}from"./MailListHeader-4AXtZpJh.js";import"./useSearchTokenContext-CZgI6mWz.js";import"./kbd-ZwFtVenb.js";import"./use-match-media-Bro6bqz1.js";import"./enums-CCxx0t2v.js";import"./search-scope-C067nTlg.js";import"./useRefreshControl-IFhiGJ9D.js";import"./circle-check-big-dKcwkkHZ.js";import"./search-token-index-DnLe4VlS.js";import"./layout-breakpoints-BWjiUQKh.js";import"./MailViewChrome-BUsgxqXW.js";import"./avatar-BaI4pwX1.js";import"./account-form-helpers-D3BmrOtk.js";import"./menu--KUkZ_qm.js";import"./ErrorState-CzVRekaj.js";import"./useFilters-DL6piWYB.js";import"./confirm-dialog-CNtS-ofA.js";import"./format-De9HZKjg.js";import"./NavMenuButton-CLIGmcnp.js";import"./useLabels-wWpLbrY0.js";import"./useThreadRow-Bnc-PwcT.js";import"./search-query-Cr_ZXBCp.js";import"./shield-check-BanN6jve.js";import"./bottom-sheet-hxzJ8dsp.js";import"./circle-help-xXiA5uCy.js";import"./circle-check-DwqsdvSv.js";import"./move-options-no92VJ_6.js";import"./intelligence-pref-C6lFpj6U.js";import"./useSignature-Qknwuq_2.js";import"./useDebouncedValue-BLNE_op6.js";import"./download-CdHAEhpF.js";import"./clock-PKLYWi-Z.js";function Q(){const{mailboxId:t}=m.useParams(),i=s();return e({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-DUmy4dAt.js";import{M as r}from"./MailboxPane-CqHZRWpk.js";import"./useSearchTokenContext-CZgI6mWz.js";import"./kbd-ZwFtVenb.js";import"./use-match-media-Bro6bqz1.js";import"./enums-CCxx0t2v.js";import"./search-scope-C067nTlg.js";import"./useRefreshControl-IFhiGJ9D.js";import"./circle-check-big-dKcwkkHZ.js";import"./search-token-index-DnLe4VlS.js";import"./layout-breakpoints-BWjiUQKh.js";import"./MailListHeader-4AXtZpJh.js";import"./account-form-helpers-D3BmrOtk.js";import"./avatar-BaI4pwX1.js";import"./useSignature-Qknwuq_2.js";import"./useDebouncedValue-BLNE_op6.js";import"./useFilters-DL6piWYB.js";import"./ErrorState-CzVRekaj.js";import"./format-De9HZKjg.js";import"./nav-link-BNOG4p36.js";import"./download-CdHAEhpF.js";import"./shield-check-BanN6jve.js";import"./move-options-no92VJ_6.js";import"./confirm-dialog-CNtS-ofA.js";import"./clock-PKLYWi-Z.js";import"./menu--KUkZ_qm.js";import"./MailViewChrome-BUsgxqXW.js";import"./NavMenuButton-CLIGmcnp.js";import"./useLabels-wWpLbrY0.js";import"./useThreadRow-Bnc-PwcT.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-hxzJ8dsp.js";import"./circle-help-xXiA5uCy.js";import"./circle-check-DwqsdvSv.js";import"./intelligence-pref-C6lFpj6U.js";function I(){return o.jsx(r.Reading,{})}export{I as component};
@@ -1 +0,0 @@
1
- import{j as r}from"./index-DUmy4dAt.js";import{B as o}from"./BriefPane-BQXNleTu.js";import"./useSearchTokenContext-CZgI6mWz.js";import"./kbd-ZwFtVenb.js";import"./use-match-media-Bro6bqz1.js";import"./enums-CCxx0t2v.js";import"./search-scope-C067nTlg.js";import"./MailListHeader-4AXtZpJh.js";import"./search-token-index-DnLe4VlS.js";import"./layout-breakpoints-BWjiUQKh.js";import"./account-form-helpers-D3BmrOtk.js";import"./avatar-BaI4pwX1.js";import"./useSignature-Qknwuq_2.js";import"./useDebouncedValue-BLNE_op6.js";import"./useFilters-DL6piWYB.js";import"./ErrorState-CzVRekaj.js";import"./format-De9HZKjg.js";import"./nav-link-BNOG4p36.js";import"./download-CdHAEhpF.js";import"./shield-check-BanN6jve.js";import"./move-options-no92VJ_6.js";import"./confirm-dialog-CNtS-ofA.js";import"./clock-PKLYWi-Z.js";import"./menu--KUkZ_qm.js";import"./useRefreshControl-IFhiGJ9D.js";import"./circle-check-big-dKcwkkHZ.js";import"./useLabels-wWpLbrY0.js";import"./useThreadRow-Bnc-PwcT.js";import"./search-query-Cr_ZXBCp.js";function A(){return r.jsx(o.Reading,{})}export{A as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-DUmy4dAt.js";import{O as t}from"./OutboxPane-BttDTEiM.js";import"./useSearchTokenContext-CZgI6mWz.js";import"./kbd-ZwFtVenb.js";import"./use-match-media-Bro6bqz1.js";import"./enums-CCxx0t2v.js";import"./search-scope-C067nTlg.js";import"./circle-check-big-dKcwkkHZ.js";import"./clock-PKLYWi-Z.js";import"./row-actions-B_xPLliI.js";import"./rotate-ccw-BGsIm2za.js";import"./NavMenuButton-CLIGmcnp.js";import"./menu--KUkZ_qm.js";import"./format-De9HZKjg.js";import"./outbox-status-CPfNHfUQ.js";import"./search-query-Cr_ZXBCp.js";function R(){return o.jsx(t.Reading,{})}export{R as component};
@@ -1 +0,0 @@
1
- import{a0 as o}from"./index-DUmy4dAt.js";const n=o;export{n as component};
@@ -1 +0,0 @@
1
- import{a0 as o}from"./index-DUmy4dAt.js";const n=o;export{n as component};
@@ -1 +0,0 @@
1
- import{j as r,a0 as i}from"./index-DUmy4dAt.js";import{a as m}from"./search-view-DrM1GpjF.js";import{B as o}from"./BriefPane-BQXNleTu.js";import{u as p}from"./useSearchMirror-B6ug5uo6.js";import"./nav-link-BNOG4p36.js";import{u as e}from"./MailListHeader-4AXtZpJh.js";import"./useSearchTokenContext-CZgI6mWz.js";import"./kbd-ZwFtVenb.js";import"./use-match-media-Bro6bqz1.js";import"./enums-CCxx0t2v.js";import"./search-scope-C067nTlg.js";import"./useRefreshControl-IFhiGJ9D.js";import"./circle-check-big-dKcwkkHZ.js";import"./search-token-index-DnLe4VlS.js";import"./layout-breakpoints-BWjiUQKh.js";import"./useLabels-wWpLbrY0.js";import"./useFilters-DL6piWYB.js";import"./useThreadRow-Bnc-PwcT.js";import"./search-query-Cr_ZXBCp.js";import"./account-form-helpers-D3BmrOtk.js";import"./avatar-BaI4pwX1.js";import"./useSignature-Qknwuq_2.js";import"./useDebouncedValue-BLNE_op6.js";import"./ErrorState-CzVRekaj.js";import"./format-De9HZKjg.js";import"./download-CdHAEhpF.js";import"./shield-check-BanN6jve.js";import"./move-options-no92VJ_6.js";import"./confirm-dialog-CNtS-ofA.js";import"./clock-PKLYWi-Z.js";import"./menu--KUkZ_qm.js";function D(){const t=e();return p({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{D as component};
@@ -1 +0,0 @@
1
- import{a4 as i,j as o,a0 as m}from"./index-DUmy4dAt.js";import{a as e}from"./search-view-DrM1GpjF.js";import{F as t}from"./FlaggedPane-CpZ2OcAe.js";import{u as p}from"./useSearchMirror-B6ug5uo6.js";import"./useSearchTokenContext-CZgI6mWz.js";import"./kbd-ZwFtVenb.js";import"./use-match-media-Bro6bqz1.js";import"./enums-CCxx0t2v.js";import"./search-scope-C067nTlg.js";import"./MailListHeader-4AXtZpJh.js";import"./search-token-index-DnLe4VlS.js";import"./layout-breakpoints-BWjiUQKh.js";import"./account-form-helpers-D3BmrOtk.js";import"./avatar-BaI4pwX1.js";import"./useSignature-Qknwuq_2.js";import"./useDebouncedValue-BLNE_op6.js";import"./useFilters-DL6piWYB.js";import"./ErrorState-CzVRekaj.js";import"./format-De9HZKjg.js";import"./nav-link-BNOG4p36.js";import"./download-CdHAEhpF.js";import"./shield-check-BanN6jve.js";import"./move-options-no92VJ_6.js";import"./confirm-dialog-CNtS-ofA.js";import"./clock-PKLYWi-Z.js";import"./menu--KUkZ_qm.js";import"./MailViewChrome-BUsgxqXW.js";function v(){const{selectedMessageId:r}=i.useSearch();return p({to:"/mail/flagged"}),o.jsx(t,{selectedMessageId:r,children:o.jsx(e,{phone:o.jsx(t.Phone,{}),list:o.jsx(t.List,{}),reading:o.jsx(m,{}),intelligence:o.jsx(t.Intelligence,{}),hasThread:!!r})})}export{v as component};
@@ -1 +0,0 @@
1
- import{j as r}from"./index-DUmy4dAt.js";import{B as o}from"./BriefPane-BQXNleTu.js";import"./useSearchTokenContext-CZgI6mWz.js";import"./kbd-ZwFtVenb.js";import"./use-match-media-Bro6bqz1.js";import"./enums-CCxx0t2v.js";import"./search-scope-C067nTlg.js";import"./MailListHeader-4AXtZpJh.js";import"./search-token-index-DnLe4VlS.js";import"./layout-breakpoints-BWjiUQKh.js";import"./account-form-helpers-D3BmrOtk.js";import"./avatar-BaI4pwX1.js";import"./useSignature-Qknwuq_2.js";import"./useDebouncedValue-BLNE_op6.js";import"./useFilters-DL6piWYB.js";import"./ErrorState-CzVRekaj.js";import"./format-De9HZKjg.js";import"./nav-link-BNOG4p36.js";import"./download-CdHAEhpF.js";import"./shield-check-BanN6jve.js";import"./move-options-no92VJ_6.js";import"./confirm-dialog-CNtS-ofA.js";import"./clock-PKLYWi-Z.js";import"./menu--KUkZ_qm.js";import"./useRefreshControl-IFhiGJ9D.js";import"./circle-check-big-dKcwkkHZ.js";import"./useLabels-wWpLbrY0.js";import"./useThreadRow-Bnc-PwcT.js";import"./search-query-Cr_ZXBCp.js";function C(){return r.jsx(o.Reading,{})}export{C as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-DUmy4dAt.js";import{O as t}from"./OutboxPane-BttDTEiM.js";import"./useSearchTokenContext-CZgI6mWz.js";import"./kbd-ZwFtVenb.js";import"./use-match-media-Bro6bqz1.js";import"./enums-CCxx0t2v.js";import"./search-scope-C067nTlg.js";import"./circle-check-big-dKcwkkHZ.js";import"./clock-PKLYWi-Z.js";import"./row-actions-B_xPLliI.js";import"./rotate-ccw-BGsIm2za.js";import"./NavMenuButton-CLIGmcnp.js";import"./menu--KUkZ_qm.js";import"./format-De9HZKjg.js";import"./outbox-status-CPfNHfUQ.js";import"./search-query-Cr_ZXBCp.js";function d(){return o.jsx(t.Reading,{})}export{d as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-DUmy4dAt.js";import{F as r}from"./FlaggedPane-CpZ2OcAe.js";import"./useSearchTokenContext-CZgI6mWz.js";import"./kbd-ZwFtVenb.js";import"./use-match-media-Bro6bqz1.js";import"./enums-CCxx0t2v.js";import"./search-scope-C067nTlg.js";import"./MailListHeader-4AXtZpJh.js";import"./search-token-index-DnLe4VlS.js";import"./layout-breakpoints-BWjiUQKh.js";import"./account-form-helpers-D3BmrOtk.js";import"./avatar-BaI4pwX1.js";import"./useSignature-Qknwuq_2.js";import"./useDebouncedValue-BLNE_op6.js";import"./useFilters-DL6piWYB.js";import"./ErrorState-CzVRekaj.js";import"./format-De9HZKjg.js";import"./nav-link-BNOG4p36.js";import"./download-CdHAEhpF.js";import"./shield-check-BanN6jve.js";import"./move-options-no92VJ_6.js";import"./confirm-dialog-CNtS-ofA.js";import"./clock-PKLYWi-Z.js";import"./menu--KUkZ_qm.js";import"./MailViewChrome-BUsgxqXW.js";function w(){return o.jsx(r.Reading,{})}export{w as component};
@@ -1 +0,0 @@
1
- import{j as r}from"./index-DUmy4dAt.js";import{B as o}from"./BriefPane-BQXNleTu.js";import"./useSearchTokenContext-CZgI6mWz.js";import"./kbd-ZwFtVenb.js";import"./use-match-media-Bro6bqz1.js";import"./enums-CCxx0t2v.js";import"./search-scope-C067nTlg.js";import"./MailListHeader-4AXtZpJh.js";import"./search-token-index-DnLe4VlS.js";import"./layout-breakpoints-BWjiUQKh.js";import"./account-form-helpers-D3BmrOtk.js";import"./avatar-BaI4pwX1.js";import"./useSignature-Qknwuq_2.js";import"./useDebouncedValue-BLNE_op6.js";import"./useFilters-DL6piWYB.js";import"./ErrorState-CzVRekaj.js";import"./format-De9HZKjg.js";import"./nav-link-BNOG4p36.js";import"./download-CdHAEhpF.js";import"./shield-check-BanN6jve.js";import"./move-options-no92VJ_6.js";import"./confirm-dialog-CNtS-ofA.js";import"./clock-PKLYWi-Z.js";import"./menu--KUkZ_qm.js";import"./useRefreshControl-IFhiGJ9D.js";import"./circle-check-big-dKcwkkHZ.js";import"./useLabels-wWpLbrY0.js";import"./useThreadRow-Bnc-PwcT.js";import"./search-query-Cr_ZXBCp.js";function A(){return r.jsx(o.Reading,{})}export{A as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-DUmy4dAt.js";import{M as r}from"./MailboxPane-CqHZRWpk.js";import"./useSearchTokenContext-CZgI6mWz.js";import"./kbd-ZwFtVenb.js";import"./use-match-media-Bro6bqz1.js";import"./enums-CCxx0t2v.js";import"./search-scope-C067nTlg.js";import"./useRefreshControl-IFhiGJ9D.js";import"./circle-check-big-dKcwkkHZ.js";import"./search-token-index-DnLe4VlS.js";import"./layout-breakpoints-BWjiUQKh.js";import"./MailListHeader-4AXtZpJh.js";import"./account-form-helpers-D3BmrOtk.js";import"./avatar-BaI4pwX1.js";import"./useSignature-Qknwuq_2.js";import"./useDebouncedValue-BLNE_op6.js";import"./useFilters-DL6piWYB.js";import"./ErrorState-CzVRekaj.js";import"./format-De9HZKjg.js";import"./nav-link-BNOG4p36.js";import"./download-CdHAEhpF.js";import"./shield-check-BanN6jve.js";import"./move-options-no92VJ_6.js";import"./confirm-dialog-CNtS-ofA.js";import"./clock-PKLYWi-Z.js";import"./menu--KUkZ_qm.js";import"./MailViewChrome-BUsgxqXW.js";import"./NavMenuButton-CLIGmcnp.js";import"./useLabels-wWpLbrY0.js";import"./useThreadRow-Bnc-PwcT.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-hxzJ8dsp.js";import"./circle-help-xXiA5uCy.js";import"./circle-check-DwqsdvSv.js";import"./intelligence-pref-C6lFpj6U.js";function H(){return o.jsx(r.Reading,{})}export{H as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-DUmy4dAt.js";import{M as i}from"./MailboxPane-CqHZRWpk.js";import"./useSearchTokenContext-CZgI6mWz.js";import"./kbd-ZwFtVenb.js";import"./use-match-media-Bro6bqz1.js";import"./enums-CCxx0t2v.js";import"./search-scope-C067nTlg.js";import"./useRefreshControl-IFhiGJ9D.js";import"./circle-check-big-dKcwkkHZ.js";import"./search-token-index-DnLe4VlS.js";import"./layout-breakpoints-BWjiUQKh.js";import"./MailListHeader-4AXtZpJh.js";import"./account-form-helpers-D3BmrOtk.js";import"./avatar-BaI4pwX1.js";import"./useSignature-Qknwuq_2.js";import"./useDebouncedValue-BLNE_op6.js";import"./useFilters-DL6piWYB.js";import"./ErrorState-CzVRekaj.js";import"./format-De9HZKjg.js";import"./nav-link-BNOG4p36.js";import"./download-CdHAEhpF.js";import"./shield-check-BanN6jve.js";import"./move-options-no92VJ_6.js";import"./confirm-dialog-CNtS-ofA.js";import"./clock-PKLYWi-Z.js";import"./menu--KUkZ_qm.js";import"./MailViewChrome-BUsgxqXW.js";import"./NavMenuButton-CLIGmcnp.js";import"./useLabels-wWpLbrY0.js";import"./useThreadRow-Bnc-PwcT.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-hxzJ8dsp.js";import"./circle-help-xXiA5uCy.js";import"./circle-check-DwqsdvSv.js";import"./intelligence-pref-C6lFpj6U.js";function I(){return o.jsx(i.Reading,{})}export{I as component};
@@ -1 +0,0 @@
1
- import{j as t,a8 as o}from"./index-DUmy4dAt.js";const n=()=>t.jsx(o,{to:"/settings/accounts"});export{n as component};
@@ -1 +0,0 @@
1
- import{c as P,r as i,u as Pe,j as e,S as De,a as pe,b as M,C as ee,d as te,e as Fe,f as ge,F as Te,g as Be,X as be,T as _e,O as Ke,M as Ve,A as qe,h as Qe,I as He,i as ye,B as T,k as U,l as ve,m as $e,n as We,o as je,p as Y,q as Se,s as Ne,t as Ue,v as G,w as J,x as ke,y as Ye,z as Ge,D as Je,E as $,G as Xe,H as Ze,J as et,K as tt,L as st,N as at,P as nt,Q as rt,R as ot,U as it,V as lt,W as ct,Y as ut,Z as dt,_ as mt,$ as xt,a0 as ht}from"./index-DUmy4dAt.js";import{B as ft,S as pt,D as gt,a as bt,b as yt,u as vt,s as jt,K as St,c as Nt,d as kt,e as Ct,f as wt,g as Mt,i as It}from"./search-token-index-DnLe4VlS.js";import{u as se}from"./search-scope-C067nTlg.js";import{P as Et}from"./pencil-HMl3G0Nq.js";import{M as Ot,s as Rt,c as At}from"./search-view-DrM1GpjF.js";import{u as zt,a as Lt,R as Pt,M as Dt}from"./useRefreshControl-IFhiGJ9D.js";import{M as Ft}from"./menu--KUkZ_qm.js";import{A as Tt}from"./avatar-BaI4pwX1.js";import{i as Bt}from"./outbox-status-CPfNHfUQ.js";import{N as z}from"./nav-link-BNOG4p36.js";import{E as _t}from"./ErrorState-CzVRekaj.js";import{K as ae}from"./kbd-ZwFtVenb.js";import{u as Kt}from"./useDebouncedValue-BLNE_op6.js";import{w as ne}from"./intelligence-pref-C6lFpj6U.js";import"./use-match-media-Bro6bqz1.js";import"./layout-breakpoints-BWjiUQKh.js";import"./circle-check-big-dKcwkkHZ.js";const Vt=P("BookmarkPlus",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}],["line",{x1:"12",x2:"12",y1:"7",y2:"13",key:"1cppfj"}],["line",{x1:"15",x2:"9",y1:"10",y2:"10",key:"1gty7f"}]]);const Ce=P("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]);const qt=P("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);const we=P("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);const Me=P("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);const Qt=P("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]),Ht="button:not([disabled]), a[href]",O="outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-surface-sunken";function $t({active:t,dimmed:s,indent:a}){return M("flex w-full items-center gap-2 rounded-md px-2 py-1 text-left text-sm transition-colors",O,a&&"pl-7",t?"bg-accent-2-soft font-medium text-accent-2":"text-fg-muted hover:bg-surface hover:text-fg",s&&"opacity-55")}function Wt({icon:t,label:s,count:a,active:n}){return e.jsxs(e.Fragment,{children:[t&&e.jsx("span",{className:M("shrink-0",n?"text-accent-2":"text-fg-subtle"),children:t}),e.jsx("span",{className:"flex-1 truncate",children:s}),a!=null&&a>0&&e.jsx("span",{className:M("text-2xs tabular-nums",n?"text-accent-2":"text-fg-subtle"),children:a})]})}function L({icon:t,label:s,count:a,active:n,dimmed:r,indent:o,navId:l,linkComponent:m,ariaLabel:x,title:p,onClick:b}){const u=$t({active:n,dimmed:r,indent:o}),h=e.jsx(Wt,{icon:t,label:s,count:a,active:n});return l&&m?m({navId:l,className:u,ariaLabel:x??s,title:p,onClick:b,children:h}):e.jsx("button",{type:"button",onClick:b,className:u,"aria-label":x,title:p,children:h})}const re={inbox:0,flagged:1,drafts:2,sent:3,archive:4,all:5,junk:6,trash:7};function Ut(t){switch(t){case"inbox":return e.jsx(He,{className:"size-4"});case"flagged":return e.jsx(pe,{className:"size-4"});case"drafts":return e.jsx(Qe,{className:"size-4"});case"sent":return e.jsx(ge,{className:"size-4"});case"archive":return e.jsx(qe,{className:"size-4"});case"all":return e.jsx(Ve,{className:"size-4"});case"junk":return e.jsx(Ke,{className:"size-4"});case"trash":return e.jsx(_e,{className:"size-4"})}}const oe=t=>t.role!=null,H=8,ie="remit.nav.folders.open.",le="remit.nav.account.open.";function ce(t,s,a){if(typeof localStorage>"u")return a;const n=localStorage.getItem(t+s);return n===null?a:n!=="0"}function ue(t,s,a){typeof localStorage>"u"||localStorage.setItem(t+s,a?"1":"0")}function Yt({query:t,onSelect:s,onRemove:a}){return e.jsxs("div",{className:"group flex w-full items-center gap-1 rounded-md pr-1 hover:bg-surface",children:[e.jsxs("button",{type:"button",onClick:s,className:M("flex min-w-0 flex-1 items-center gap-2 px-2 py-1 text-left text-sm text-fg-muted transition-colors hover:text-fg",O),children:[e.jsx(Be,{className:"size-4 shrink-0 text-fg-subtle"}),e.jsx("span",{className:"min-w-0 flex-1 truncate",children:t})]}),a&&e.jsx("button",{type:"button",onClick:a,"aria-label":`Remove saved search: ${t}`,className:M("shrink-0 rounded-full p-1 text-fg-subtle opacity-0 transition-opacity hover:bg-surface-sunken hover:text-fg group-hover:opacity-100 focus-visible:opacity-100",O),children:e.jsx(be,{className:"size-3.5"})})]})}function Gt({savedSearches:t,saveableQuery:s,onSelectSavedSearch:a,onRemoveSavedSearch:n,onSaveCurrentSearch:r}){return t.length===0&&!s?null:e.jsxs("div",{className:"mt-3",children:[e.jsx("div",{className:"px-2 pb-1 text-2xs font-semibold uppercase tracking-wider text-fg-subtle",children:"Saved searches"}),s&&e.jsxs("button",{type:"button",onClick:r,className:M("flex w-full items-center gap-2 rounded-md px-2 py-1 text-left text-sm text-accent transition-colors hover:bg-surface",O),children:[e.jsx(Vt,{className:"size-4 shrink-0"}),e.jsxs("span",{className:"min-w-0 flex-1 truncate",children:["Save “",s,"”"]})]}),t.map(o=>e.jsx(Yt,{query:o,onSelect:()=>a?.(o),onRemove:n?()=>n(o):void 0},o))]})}function Jt({account:t,selectedNavId:s,onSelectNav:a,linkComponent:n}){const[r,o]=i.useState(()=>ce(le,t.id,!0)),[l,m]=i.useState(()=>ce(ie,t.id,!0)),[x,p]=i.useState(!1),b=()=>{o(c=>{const v=!c;return ue(le,t.id,v),v})},u=()=>{m(c=>{const v=!c;return ue(ie,t.id,v),v})},h=t.mailboxes.filter(oe).sort((c,v)=>re[c.role]-re[v.role]),f=t.mailboxes.filter(c=>!oe(c)),y=x||f.length<=H?f:f.slice(0,H),S=f.length-y.length,g=t.status??"ready",R=g==="ready"&&h.length===0&&f.length===0;return e.jsxs("div",{className:"mt-3",children:[e.jsxs("button",{type:"button",onClick:b,"aria-expanded":r,className:M("flex w-full items-center gap-1.5 px-2 pb-1 text-left transition-colors hover:text-fg",O,t.muted&&"opacity-55"),children:[r?e.jsx(ee,{className:"size-3 shrink-0 text-fg-subtle"}):e.jsx(te,{className:"size-3 shrink-0 text-fg-subtle"}),e.jsx("span",{className:"truncate text-2xs font-semibold uppercase tracking-wider text-fg-subtle",children:t.label}),t.muted&&e.jsxs(e.Fragment,{children:[e.jsx(ft,{className:"size-3 shrink-0 text-fg-subtle"}),e.jsx("span",{className:"text-2xs text-fg-subtle",children:"muted"})]})]}),r&&e.jsxs(e.Fragment,{children:[g==="loading"&&e.jsx("div",{className:"px-2 py-1 text-sm text-fg-muted",children:"Loading…"}),g==="error"&&e.jsxs("div",{role:"alert",className:"mx-2 my-1 flex items-start gap-2 rounded-md border border-danger/40 bg-danger-soft px-2 py-1.5 text-sm",children:[e.jsx(Fe,{className:"mt-0.5 size-4 shrink-0 text-danger","aria-hidden":"true"}),e.jsx("div",{className:"min-w-0 flex-1",children:e.jsx("p",{className:"font-medium text-danger",children:"Couldn't load mailboxes"})}),t.onRetry&&e.jsx("button",{type:"button",onClick:t.onRetry,className:"shrink-0 text-sm font-medium text-accent hover:underline",children:"Retry"})]}),R&&e.jsx("div",{className:"px-2 py-1 text-sm text-fg-muted",children:"No mailboxes"}),g==="ready"&&e.jsxs(e.Fragment,{children:[h.map(c=>e.jsx(L,{navId:c.id,linkComponent:n,icon:Ut(c.role),label:c.name,ariaLabel:c.name,title:c.fullPath??c.name,count:c.unseen,active:s===c.id,dimmed:t.muted,onClick:()=>a?.(c.id)},c.id)),t.outboxPending!==void 0&&e.jsx(L,{navId:"outbox",linkComponent:n,icon:e.jsx(ge,{className:"size-4"}),label:"Outbox",ariaLabel:"Outbox",count:t.outboxPending>0?t.outboxPending:void 0,active:s==="outbox",dimmed:t.muted,onClick:()=>a?.("outbox")}),f.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("button",{type:"button",onClick:u,"aria-expanded":l,className:M("mt-1 flex w-full items-center gap-1 px-2 py-1 text-left text-2xs font-semibold uppercase tracking-wider text-fg-subtle transition-colors hover:text-fg",O),children:[l?e.jsx(ee,{className:"size-3 shrink-0"}):e.jsx(te,{className:"size-3 shrink-0"}),e.jsx("span",{className:"flex-1",children:"Folders"}),e.jsx("span",{className:"tabular-nums opacity-70",children:f.length})]}),l&&e.jsxs(e.Fragment,{children:[y.map(c=>e.jsx(L,{navId:c.id,linkComponent:n,icon:e.jsx(Te,{className:"size-4"}),label:c.name,ariaLabel:c.name,title:c.fullPath??c.name,count:c.unseen,active:s===c.id,dimmed:t.muted,onClick:()=>a?.(c.id)},c.id)),(S>0||x)&&f.length>H&&e.jsx("button",{type:"button",onClick:()=>p(c=>!c),className:M("ml-7 flex items-center px-2 py-1 text-2xs font-medium text-accent transition-colors hover:underline",O),children:x?"Show less":`Show all (${f.length})`})]})]})]})]})]})}function Xt({accounts:t,selectedNavId:s,briefUnseen:a,onSelectNav:n,variant:r="desktop",linkComponent:o,calendarNav:l="hidden",savedSearches:m=[],saveableQuery:x,onSelectSavedSearch:p,onRemoveSavedSearch:b,onSaveCurrentSearch:u}){const h=i.useRef(null);Pe({containerRef:h,itemSelector:Ht});const f=r==="drawer",y=e.jsxs("nav",{ref:f?h:void 0,className:f?"px-2 py-2":"flex-1 overflow-y-auto px-2 py-2","aria-label":"Mailboxes",children:[e.jsx(L,{navId:"brief",linkComponent:o,icon:e.jsx(De,{className:"size-4"}),label:"Daily brief",ariaLabel:"Daily brief",count:a,active:s==="brief",onClick:()=>n?.("brief")}),l==="shown"&&e.jsx(L,{navId:"calendar",linkComponent:o,icon:e.jsx(qt,{className:"size-4"}),label:"Calendar",ariaLabel:"Calendar",active:s==="calendar",onClick:()=>n?.("calendar")}),e.jsx(L,{navId:"flagged",linkComponent:o,icon:e.jsx(pe,{className:"size-4"}),label:"Starred",ariaLabel:"Starred",active:s==="flagged",onClick:()=>n?.("flagged")}),e.jsx(Gt,{savedSearches:m,saveableQuery:x,onSelectSavedSearch:p,onRemoveSavedSearch:b,onSaveCurrentSearch:u}),t.length===0?e.jsx("div",{className:"px-2 py-4 text-center text-sm text-fg-muted",children:"No accounts configured"}):t.map(S=>e.jsx(Jt,{account:S,selectedNavId:s,onSelectNav:n,linkComponent:o},S.id))]});return f?y:e.jsx("aside",{ref:h,className:"flex h-full w-full flex-col bg-surface-sunken",children:y})}function Zt({leading:t,search:s,actions:a,className:n}){return e.jsxs("header",{className:M("flex min-h-pane-header w-full shrink-0 items-center gap-2 border-b border-line bg-canvas px-row-inset py-1",n),children:[t&&e.jsx("div",{className:"flex shrink-0 items-center gap-1",children:t}),e.jsx("div",{className:"flex min-w-0 flex-1 justify-start",children:e.jsx("div",{className:"w-full max-w-xs transition-[max-width] duration-150 ease-out focus-within:max-w-lg",children:s})}),a&&e.jsx("div",{className:"flex shrink-0 items-center gap-1",children:a})]})}function es(){const t=ye();if(!t)return null;const s=t.showNavPane?!t.navCollapsed:!1;return e.jsx(T,{variant:"ghost",size:"sm",icon:e.jsx(Ft,{className:"size-4"}),onClick:t.toggleNav,"aria-label":s?"Hide folders":"Show folders","aria-expanded":s,title:"Folders",className:"shrink-0"})}const ts={global:"Search all mail",pending:"Search mail",scoped:"Search this folder"};function ss({search:t,onCompose:s,onReportBug:a,onOpenSettings:n,composeShortcut:r,refreshControl:o,account:l}){return e.jsx(Zt,{leading:e.jsx(es,{}),search:e.jsx(pt,{value:t.value,onChange:t.onChange,onClear:t.onClear,onClearQuery:t.onClearQuery,chips:t.chips,onRemoveChip:t.onRemoveChip,placeholder:ts[t.scope]}),actions:e.jsxs(e.Fragment,{children:[e.jsx(T,{variant:"ghost",size:"sm",icon:e.jsx(Qt,{className:"size-4"}),title:r?`Compose (${r})`:"Compose","aria-label":"Compose",onClick:s}),e.jsx(T,{variant:"ghost",size:"sm",icon:e.jsx(Ce,{className:"size-4"}),title:"Report a bug","aria-label":"Report a bug",onClick:a}),e.jsx(T,{variant:"ghost",size:"sm",icon:e.jsx(Me,{className:"size-4"}),title:"Settings","aria-label":"Settings",onClick:n}),o,l]})})}const as=()=>{const{state:t,openCompose:s}=U(),a=ve(),n=i.useCallback(()=>{s({mode:"new"})},[s]),o=!!a.search?.selectedMessageId||$e(a.pathname);return!a.pathname.startsWith("/mail")||t.isOpen||o?null:e.jsx("button",{type:"button",onClick:n,"aria-label":"Compose new message",className:"lg:hidden fixed right-4 z-30 h-14 w-14 rounded-full bg-accent text-accent-fg shadow-lg flex items-center justify-center hover:opacity-90 active:scale-95 transition-all",style:{bottom:"calc(env(safe-area-inset-bottom, 0) + 1rem)"},children:e.jsx(Et,{className:"size-6"})})},Ie=({children:t})=>{const{Account:s}=We();return e.jsx(s,{children:t})},ns=({email:t,onSignOut:s})=>{const a=t??"Account";return e.jsxs(gt,{trigger:e.jsx(Tt,{name:a,email:t??void 0,size:"sm"}),align:"right",children:[t&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"px-3 py-2 text-xs text-fg-muted truncate",title:t,"data-testid":"account-menu-email",children:t}),e.jsx(bt,{})]}),e.jsxs(yt,{onClick:s,children:[e.jsx(we,{className:"size-4"}),"Sign out"]})]})},rs=()=>e.jsx(Ie,{children:({email:t,signOut:s})=>e.jsx(ns,{email:t,onSignOut:s})});function os({accounts:t}){const{searchInput:s,onSearchChange:a,onSearchClear:n,onSearchClearQuery:r}=je(),o=Y(),{openCompose:l}=U(),m=i.useCallback(()=>{l({mode:"new"})},[l]),{scope:x,clearScope:p}=vt(t),b=x.kind==="scoped"?[{id:x.chip.id,label:x.chip.label,tone:"scope"}]:void 0,u=i.useMemo(()=>t.map(g=>g.accountId),[t]),{hasNewMail:h}=zt(),{state:f,errorMessage:y,refresh:S}=Lt(u);return e.jsx(ss,{search:{value:s,scope:x.kind,chips:b,onChange:a,onClear:n,onClearQuery:r,onRemoveChip:p},onCompose:m,onReportBug:Se,onOpenSettings:()=>o({to:"/settings/accounts"}),composeShortcut:jt("compose"),refreshControl:e.jsx(Pt,{state:f,onRefresh:S,label:"Refresh all accounts",errorMessage:y,hasUpdate:h(u)}),account:e.jsx(rs,{})})}const X="remit.savedSearches",is=25;function _(){try{const t=localStorage.getItem(X);if(!t)return[];const s=JSON.parse(t);return Array.isArray(s)?s.filter(a=>typeof a=="string"):[]}catch{return[]}}function ls(t){const s=t.trim();if(!s)return _();const a=[s,..._().filter(n=>n!==s)].slice(0,is);try{localStorage.setItem(X,JSON.stringify(a))}catch{return a}return a}function cs(t){const s=_().filter(a=>a!==t);try{localStorage.setItem(X,JSON.stringify(s))}catch{return s}return s}const de=t=>/^\d/.test(t),us=(t,s)=>{const a=de(t),n=de(s);return a&&!n?-1:!a&&n?1:t.localeCompare(s,void 0,{sensitivity:"base",numeric:!0})};function ds(t,s,a){const n=[],r=[];for(const o of t)s.has(o.mailboxId)?n.push(o):r.push(o);return r.sort((o,l)=>us($(o,void 0,a),$(l,void 0,a))),{system:n,labels:r}}function ms(t,s,a){const n=Xe(s)&&t.unseenCount>0;return{id:t.mailboxId,name:$(t,s,a),unseen:n?t.unseenCount:void 0,role:s,fullPath:t.fullPath}}function xs(){const t=ve(),s=Je({strict:!1});return t.pathname.startsWith("/settings")?"settings":t.pathname.startsWith("/mail/outbox")?"outbox":t.pathname.startsWith("/mail/flagged")?"flagged":t.pathname.startsWith("/mail/brief")?"brief":s.mailboxId?s.mailboxId:""}function me({accounts:t,onMailboxSelect:s,variant:a="desktop"}){const n=Ne(),r=Y(),o=xs(),{searchInput:l,onSearchChange:m}=je(),[x,p]=i.useState(_),{t:b}=Ue("mail",{useSuspense:!1}),u=i.useCallback((d,N)=>b(d,{defaultValue:N}),[b]),h=G({queries:t.map(d=>({...J({path:{accountId:d.accountId}}),staleTime:1/0}))}),{data:f}=ke(Ye()),y=i.useMemo(()=>(f?.items??[]).filter(d=>Bt(d.status)).length,[f?.items]),S=i.useMemo(()=>t.map((d,N)=>{const k=h[N],I=k?.data?.items??[],w=Ge(d.folderAppointments),{system:E,labels:Q}=ds(I,w,u),C=k?.isError?"error":k?.isLoading?"loading":"ready";return{id:d.accountId,label:d.email,email:d.email,muted:!!d.muted,outboxPending:y,status:C,onRetry:()=>k?.refetch(),mailboxes:[...E,...Q].map(D=>ms(D,w.get(D.mailboxId),u))}}),[t,h,y,u]),g=d=>{n.invalidateQueries({queryKey:Ze({path:{mailboxId:d},query:{order:"desc"}})})},R=({navId:d,className:N,ariaLabel:k,title:I,children:w,onClick:E})=>d==="brief"?e.jsx(z,{to:"/mail/brief",search:{q:void 0},activeOptions:{includeSearch:!1},onClick:()=>E?.(),className:N,"aria-label":k,title:I,children:w}):d==="outbox"?e.jsx(z,{to:"/mail/outbox",search:{q:void 0},onClick:()=>E?.(),className:N,"aria-label":k,title:I,children:w}):d==="flagged"?e.jsx(z,{to:"/mail/flagged",search:{q:void 0,selectedMessageId:void 0},onClick:()=>E?.(),className:N,"aria-label":k,title:I,children:w}):d==="settings"?e.jsx(z,{to:"/settings/accounts",onClick:()=>E?.(),className:N,"aria-label":k,title:I,children:w}):e.jsx(z,{to:"/mail/$mailboxId",params:{mailboxId:d},search:{q:void 0},onClick:()=>{g(d),E?.()},className:N,"aria-label":k,title:I,children:w}),c=()=>{m(""),s?.()},v=l.trim(),A=v.length>0&&!x.includes(v)?v:void 0,K=i.useCallback(()=>{A&&p(ls(A))},[A]),V=i.useCallback(d=>{p(cs(d))},[]),q=i.useCallback(d=>{m(d),r({to:"/mail/brief",search:{q:d}}),s?.()},[m,r,s]);return e.jsx(Xt,{accounts:S,selectedNavId:o,onSelectNav:c,linkComponent:R,variant:a,savedSearches:x,saveableQuery:A,onSaveCurrentSearch:K,onSelectSavedSearch:q,onRemoveSavedSearch:V})}function hs(){return e.jsxs("button",{type:"button",onClick:Se,className:"flex w-full items-center gap-2 rounded-md px-2 py-1 text-sm text-fg-muted transition-colors hover:bg-surface hover:text-fg",children:[e.jsx(Ce,{className:"size-4 shrink-0"}),e.jsx("span",{className:"flex-1 truncate text-left",children:"Report a bug"})]})}function fs({accounts:t,onMailboxSelect:s}){return ye()?.showNavPane??!0?e.jsx(me,{accounts:t}):e.jsxs("div",{className:"flex h-full flex-col",children:[e.jsx("div",{className:"flex-1 overflow-y-auto",children:e.jsx(me,{accounts:t,onMailboxSelect:s,variant:"drawer"})}),e.jsxs("div",{className:"border-t border-line px-2 py-2",children:[e.jsxs(z,{to:"/settings/accounts",onClick:s,children:[e.jsx(Me,{className:"size-4 shrink-0"}),e.jsx("span",{className:"flex-1 truncate text-left",children:"Settings"})]}),e.jsx(hs,{}),e.jsx(Ie,{children:({signOut:r})=>e.jsxs("button",{type:"button",onClick:()=>{s?.(),r()},className:"flex min-h-11 w-full items-center gap-2 rounded-md px-2 py-1 text-sm text-fg-muted transition-colors hover:bg-surface hover:text-fg","data-testid":"sign-out-button",children:[e.jsx(we,{className:"size-4 shrink-0"}),e.jsx("span",{className:"flex-1 truncate text-left",children:"Sign out"})]})})]})]})}const ps=({isOpen:t,onClose:s})=>{const a=i.useCallback(n=>{n.key==="Escape"&&(n.preventDefault(),s())},[s]);return i.useEffect(()=>{if(t)return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[t,a]),t?e.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[e.jsx(et,{label:"Dismiss keyboard shortcuts",onDismiss:s,className:"backdrop-blur-sm"}),e.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"Keyboard shortcuts",className:tt("relative z-10 max-h-[85vh] w-full max-w-2xl overflow-y-auto","rounded-lg border border-line bg-surface shadow-lg","p-6"),children:[e.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[e.jsx("h2",{className:"text-lg font-semibold",children:"Keyboard shortcuts"}),e.jsx("button",{type:"button",onClick:s,className:"p-1 text-fg-muted transition-colors hover:text-fg","aria-label":"Close",children:e.jsx(be,{className:"size-5"})})]}),e.jsx("div",{className:"grid gap-x-8 gap-y-6 sm:grid-cols-2",children:St.map(n=>e.jsxs("div",{children:[e.jsx("h3",{className:"mb-3 text-sm font-medium text-fg-muted",children:n.title}),e.jsx("div",{className:"space-y-2",children:n.hints.map(r=>e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsx("span",{className:"text-sm",children:r.description}),e.jsx("span",{className:"flex shrink-0 items-center gap-1",children:r.keys.map((o,l)=>e.jsxs(i.Fragment,{children:[l>0&&r.keys[0]==="g"&&e.jsx("span",{className:"text-2xs text-fg-subtle",children:"then"}),e.jsx(ae,{children:o})]},o))})]},`${r.action}-${r.keys.join("+")}`))})]},n.title))}),e.jsx("div",{className:"mt-6 border-t border-line pt-4",children:e.jsxs("p",{className:"text-center text-xs text-fg-muted",children:["Press ",e.jsx(ae,{children:"Esc"})," to close"]})})]})]}):null};function gs(t){const s=G({queries:t.map(a=>({...J({path:{accountId:a.accountId}}),staleTime:1/0}))});return i.useMemo(()=>Nt(s.map(a=>a.data?.items??[])),[s])}const bs=t=>t.map(s=>s.data?.items??[]);function ys(t){const s=G({queries:t.map(a=>({...J({path:{accountId:a.accountId}}),staleTime:1/0})),combine:bs});return i.useMemo(()=>st(t.map((a,n)=>({folderAppointments:a.folderAppointments,mailboxes:s[n]??[]}))),[t,s])}var F={exports:{}},xe;function vs(){if(xe)return F.exports;xe=1;const t=(s,a,n)=>new Promise((r,o)=>{if(n=Object.assign({concurrency:1/0},n),typeof a!="function")throw new TypeError("Mapper function is required");const{concurrency:l}=n;if(!(typeof l=="number"&&l>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${l}\` (${typeof l})`);const m=[],x=s[Symbol.iterator]();let p=!1,b=!1,u=0,h=0;const f=()=>{if(p)return;const y=x.next(),S=h;if(h++,y.done){b=!0,u===0&&r(m);return}u++,Promise.resolve(y.value).then(g=>a(g,S)).then(g=>{m[S]=g,u--,f()},g=>{p=!0,o(g)})};for(let y=0;y<l&&(f(),!b);y++);});return F.exports=t,F.exports.default=t,F.exports}var js=vs();const Ss=at(js),Ns=900*1e3,ks=300,Cs=(t,s)=>{if(!t)return s;const a=Number.parseInt(t,10);return Number.isFinite(a)&&a>0?a:s},ws=60*1e3,Ms=t=>Math.max(Cs(t,ks)*1e3,ws),B=Ms(lt().mailboxPollIntervalSeconds),Is=5,W=new Set,Es=(t,s,a=Ns)=>t.filter(n=>{const r=n.lastSyncAt;return r==null?!0:s-r>a}).map(n=>n.accountId),Os=(t,s,a=B)=>t-s>=a,Rs=(t,s)=>t.filter(a=>!s.has(a)),he=(t,s)=>{if(W.delete(t),ot(s,{softError:!0})){it(s);return}console.warn("[remit] background mailbox sync failed",{accountId:t,error:s})},fe=(t,s)=>nt({path:{accountId:t},throwOnError:!0}).then(()=>{s.invalidateQueries({queryKey:rt({path:{accountId:t}})})}),As=t=>{const s=Ne(),a=i.useRef(t);a.current=t;const n=t.map(r=>r.accountId).join(",");i.useEffect(()=>{const r=Date.now(),l=Es(a.current,r).filter(m=>!W.has(m));if(l.length!==0)for(const m of l)W.add(m),fe(m,s).catch(x=>{he(m,x)})},[n,s]),i.useEffect(()=>{let r=Date.now(),o;const l=new Set,m=()=>{r=Date.now();const b=Rs(a.current.map(u=>u.accountId),l);for(const u of b)l.add(u);Ss(b,u=>fe(u,s).catch(h=>{he(u,h)}).finally(()=>{l.delete(u)}),{concurrency:Is})},x=()=>{if(document.visibilityState==="visible"){m(),o=setTimeout(x,B);return}},p=()=>{document.visibilityState==="visible"&&Os(Date.now(),r)&&(o!==void 0&&clearTimeout(o),m(),o=setTimeout(x,B))};return o=setTimeout(x,B),document.addEventListener("visibilitychange",p),()=>{o!==void 0&&clearTimeout(o),document.removeEventListener("visibilitychange",p)}},[n,s])};function Gs(){const{q:t=""}=ct({from:"/mail"}),s=Y(),a=kt(),n=It(a),[r,o]=i.useState(!1),[l,m]=i.useState(!1),[x,p]=i.useState(!1),b=i.useCallback(j=>{p(j),ne(j)},[]),[u,h]=i.useState(t),f=Kt(u,200),y=At(u,f),S=se({select:j=>j.location.pathname}),g=se({select:j=>ut(j.matches)}),[R,c]=i.useState(g);if(R!==g){const j=Rt(R,g,t);c(g),j!==void 0&&h(j)}const{data:v,isLoading:A,isError:K,error:V,refetch:q}=ke({...dt(),staleTime:1/0}),d=!!(v&&(v.accounts?.length??0)===0);i.useEffect(()=>{d&&s({to:"/onboarding",replace:!0})},[d,s]),Ct({enabled:!r,bindings:[{key:"?",handler:()=>o(!0),noModifiers:!1,preventDefault:!0}]});const{openCompose:N}=U(),k=i.useMemo(()=>({compose:()=>N({mode:"new"})}),[N]);wt({enabled:!mt(S),handlers:k});const I=i.useCallback(j=>{h(j)},[]),w=i.useCallback(()=>{h("")},[]),E=i.useCallback(()=>{h("")},[]),Q=i.useCallback(()=>{p(j=>{const Z=!j;return ne(Z),Z})},[]),C=v?.accounts??[],D=i.useMemo(()=>C.map(j=>j.accountId),[C]),Ee=gs(C),Oe=ys(C),Re=i.useMemo(()=>Mt(C),[C]);As(C);const Ae=i.useCallback(()=>{m(!1)},[]),ze={accounts:C,mailboxNameIndex:Ee,accountNameIndex:Re,resultFolderIndex:Oe,searchQuery:y,searchInput:u,searchViewKey:g,onSearchChange:I,onSearchClear:w,onSearchClearQuery:E,intelligenceOpen:x,onToggleIntelligence:Q,onSetIntelligenceOpen:b},Le={isSinglePane:n,isLoading:A||d,intelligenceOpen:x,nav:e.jsx(fs,{accounts:C,onMailboxSelect:Ae}),topBar:n?void 0:e.jsx(os,{accounts:C}),overlay:n?e.jsx(as,{}):void 0,navOpen:l,onOpenNav:()=>m(!0),onCloseNav:()=>m(!1)};return e.jsx(xt.Provider,{value:ze,children:e.jsxs(Dt,{accountIds:D,children:[K?e.jsx("div",{className:"flex h-full items-center justify-center bg-canvas p-4",children:e.jsx(_t,{title:"Couldn't load your account",error:V,onRetry:()=>{q()}})}):e.jsx(Ot,{chrome:Le,children:e.jsx(ht,{})}),e.jsx(ps,{isOpen:r,onClose:()=>o(!1)})]})})}export{Gs as component,je as useMailContext};
@@ -1 +0,0 @@
1
- import{D as i,j as o,a0 as s}from"./index-DUmy4dAt.js";import{a as m}from"./search-view-DrM1GpjF.js";import{O as t}from"./OutboxPane-BttDTEiM.js";import{u as a}from"./useSearchMirror-B6ug5uo6.js";import"./nav-link-BNOG4p36.js";import"./useSearchTokenContext-CZgI6mWz.js";import"./kbd-ZwFtVenb.js";import"./use-match-media-Bro6bqz1.js";import"./enums-CCxx0t2v.js";import"./search-scope-C067nTlg.js";import"./circle-check-big-dKcwkkHZ.js";import"./clock-PKLYWi-Z.js";import"./row-actions-B_xPLliI.js";import"./rotate-ccw-BGsIm2za.js";import"./NavMenuButton-CLIGmcnp.js";import"./menu--KUkZ_qm.js";import"./format-De9HZKjg.js";import"./outbox-status-CPfNHfUQ.js";import"./search-query-Cr_ZXBCp.js";function e(){return i({from:"/mail/outbox/draft/$outboxMessageId",shouldThrow:!1})?.outboxMessageId}function w(){const r=e();return a({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(s,{})})})}export{w as component};