@remit/web-client-dist 0.0.328 → 0.0.330

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 (99) hide show
  1. package/assets/BriefPane-C1eqvaCk.js +1 -0
  2. package/assets/{ErrorState-CKNYdF-I.js → ErrorState-Xgz5SZ1i.js} +1 -1
  3. package/assets/FlaggedPane-CHjYkYPa.js +1 -0
  4. package/assets/MailListHeader-XjtEHsNb.js +52 -0
  5. package/assets/{MailViewChrome-B9zM-POS.js → MailViewChrome-DzdQIg9X.js} +1 -1
  6. package/assets/{MailboxPane-23eq6GhD.js → MailboxPane-zOiUq9W3.js} +1 -1
  7. package/assets/{NavMenuButton-BPDEzSgb.js → NavMenuButton-DoGvk8wx.js} +1 -1
  8. package/assets/{OnboardingWizard-SVEwC-an.js → OnboardingWizard-C2iCTPCo.js} +1 -1
  9. package/assets/{OutboxPane-BRme9HCT.js → OutboxPane-CAD8JF4k.js} +1 -1
  10. package/assets/_mailboxId-Btckx8tp.js +1 -0
  11. package/assets/_messageId-BDYmbwt3.js +1 -0
  12. package/assets/_messageId-DfrVM9nA.js +1 -0
  13. package/assets/_messageId-Dzj1PERE.js +1 -0
  14. package/assets/_outboxMessageId-DgEN5BZl.js +1 -0
  15. package/assets/_threadId-CR-7fZw6.js +1 -0
  16. package/assets/_threadId-DgpxvW8b.js +1 -0
  17. package/assets/_threadId-WgMhSWLQ.js +1 -0
  18. package/assets/{account-form-helpers-C9JjxdDc.js → account-form-helpers-Buy_HBYK.js} +1 -1
  19. package/assets/{accounts-O7eu7L5x.js → accounts-BzJANMcx.js} +1 -1
  20. package/assets/{advanced-BMzMZLdx.js → advanced-3PVpC1JX.js} +1 -1
  21. package/assets/{appearance-BxDHABny.js → appearance-irISnZrI.js} +1 -1
  22. package/assets/{avatar-D_hCvF7M.js → avatar-sJ32b2ZB.js} +1 -1
  23. package/assets/{bottom-sheet-W4iNuDQY.js → bottom-sheet-Du7lm3N2.js} +1 -1
  24. package/assets/brief-CzT_8oMU.js +1 -0
  25. package/assets/{brief-CJch99Kj.js → brief-qI-Ns5Ua.js} +1 -1
  26. package/assets/{browser-ponyfill-DupWnSix.js → browser-ponyfill-IzUT47To.js} +1 -1
  27. package/assets/{circle-check-BSUrU5Rs.js → circle-check-B0efcy-K.js} +1 -1
  28. package/assets/{circle-check-big-wQtrx0rR.js → circle-check-big-D3RJmZBi.js} +1 -1
  29. package/assets/{circle-help-MkNqCKuM.js → circle-help-DNaIbW9w.js} +1 -1
  30. package/assets/{clock-D54LVwMy.js → clock-CAIXj_wn.js} +1 -1
  31. package/assets/{confirm-dialog-CN94p4G5.js → confirm-dialog-tg4IO863.js} +1 -1
  32. package/assets/{download-A0ToeXiC.js → download-CZYAEXR3.js} +1 -1
  33. package/assets/{filters-DLu0nhTj.js → filters-D_4-GKkF.js} +1 -1
  34. package/assets/{flagged-BpkspqCO.js → flagged-Cao7LXlK.js} +1 -1
  35. package/assets/flagged-DgBNfl93.js +1 -0
  36. package/assets/{folders-Cy3_pevU.js → folders-DdNR5vUs.js} +1 -1
  37. package/assets/index-BIP9pzjX.js +1 -0
  38. package/assets/{index-BaROPbqc.js → index-B_E2UDsv.js} +61 -61
  39. package/assets/index-C7lRyAZj.js +1 -0
  40. package/assets/index-DDYDIsO2.js +1 -0
  41. package/assets/index-DarLHUir.js +1 -0
  42. package/assets/index-DfrVM9nA.js +1 -0
  43. package/assets/index-DgcxbW2K.js +1 -0
  44. package/assets/index-Dzj1PERE.js +1 -0
  45. package/assets/index-T_2lKmJ5.js +1 -0
  46. package/assets/{kbd-Di4l9V4B.js → kbd-BCoy2IeN.js} +1 -1
  47. package/assets/{labels-bjojUaId.js → labels-DEWxeP4-.js} +1 -1
  48. package/assets/mail-K056GElV.js +1 -0
  49. package/assets/{menu-DyqIlmZ5.js → menu-CyQNIqgm.js} +1 -1
  50. package/assets/{move-options-B6WdWCEB.js → move-options-BDhHrsb6.js} +1 -1
  51. package/assets/{nav-link-DGeg_A0i.js → nav-link-D2neGN8U.js} +1 -1
  52. package/assets/{onboarding-D2qmE7OP.js → onboarding-gCMR_L2A.js} +1 -1
  53. package/assets/outbox-CyCx1pkU.js +1 -0
  54. package/assets/{pencil-C78Gnl2t.js → pencil-BTDLG6o9.js} +1 -1
  55. package/assets/{rich-text-Cvtr2svM.js → rich-text-6u8XzJZ0.js} +1 -1
  56. package/assets/{rotate-ccw-C4tmxgLV.js → rotate-ccw-CJ6ZyB3Y.js} +1 -1
  57. package/assets/{row-actions-DVJABhbt.js → row-actions-D5tHz-Kt.js} +1 -1
  58. package/assets/{search-scope-D-McGL_G.js → search-scope-5RASGpum.js} +1 -1
  59. package/assets/{search-token-index-BdYhqwX4.js → search-token-index-C4Fe_kHI.js} +1 -1
  60. package/assets/{search-view-F08CdgMv.js → search-view-DMyiUtsQ.js} +1 -1
  61. package/assets/{senders-CwPxrNAE.js → senders-bpUhaM6M.js} +1 -1
  62. package/assets/settings-CVQVSphQ.js +1 -0
  63. package/assets/{settings-screen-B_7AEjqA.js → settings-screen-t6UPYsh-.js} +1 -1
  64. package/assets/{shield-check-CcD3SAku.js → shield-check-CdGNmVbB.js} +1 -1
  65. package/assets/{suggested-vips-nX4XzTyj.js → suggested-vips-MyOxkJXk.js} +1 -1
  66. package/assets/{use-match-media-CqaSQ78Q.js → use-match-media-oLZSDQbf.js} +1 -1
  67. package/assets/{useDebouncedValue-2B3cmoJq.js → useDebouncedValue-BFQNA4LE.js} +1 -1
  68. package/assets/{useFilters--2L0e4Ru.js → useFilters-Ch0Rz-QY.js} +1 -1
  69. package/assets/{useLabels-D2xVhPbL.js → useLabels-C_RuDPDr.js} +1 -1
  70. package/assets/{useRefreshControl-Dzj3HLkc.js → useRefreshControl-B5Wc-mkG.js} +1 -1
  71. package/assets/useSearchMirror-4nvtBo0Y.js +1 -0
  72. package/assets/{useSearchTokenContext-Byqr6rJk.js → useSearchTokenContext-DFAPyUzs.js} +2 -2
  73. package/assets/useSemanticSearch-DpJZep87.js +1 -0
  74. package/assets/{useSignature-BK72rcNJ.js → useSignature-CUY9s-pk.js} +1 -1
  75. package/index.html +1 -1
  76. package/package.json +1 -1
  77. package/assets/BriefPane-D3qeMrbX.js +0 -1
  78. package/assets/FlaggedPane-dEMZZUCG.js +0 -1
  79. package/assets/MailListHeader-Cvqgaxpp.js +0 -52
  80. package/assets/_mailboxId-BsWuArvT.js +0 -1
  81. package/assets/_messageId-B5l9wKso.js +0 -1
  82. package/assets/_messageId-BgqwVQSG.js +0 -1
  83. package/assets/_outboxMessageId-BeYOBPKJ.js +0 -1
  84. package/assets/_threadId-BzXQShx9.js +0 -1
  85. package/assets/_threadId-CKfD7Brx.js +0 -1
  86. package/assets/brief-J7XCu-b8.js +0 -1
  87. package/assets/flagged-C3Cy1IIZ.js +0 -1
  88. package/assets/index-BB70q4FE.js +0 -1
  89. package/assets/index-BgqwVQSG.js +0 -1
  90. package/assets/index-CAUiaQ8R.js +0 -1
  91. package/assets/index-CZGMeYU5.js +0 -1
  92. package/assets/index-Cs4pZupt.js +0 -1
  93. package/assets/index-D2NyO5n9.js +0 -1
  94. package/assets/index-DYPEKr-i.js +0 -1
  95. package/assets/mail-C4QawnsD.js +0 -1
  96. package/assets/outbox-CnPSjqM-.js +0 -1
  97. package/assets/settings-BJhuGxuA.js +0 -1
  98. package/assets/useSearchMirror-Cqj8Y9tc.js +0 -1
  99. package/assets/useThreadRow-Dcri3LGA.js +0 -1
@@ -1 +0,0 @@
1
- import{a3 as m,j as o,a0 as p}from"./index-BaROPbqc.js";import{a}from"./search-view-F08CdgMv.js";import{M as r}from"./MailboxPane-23eq6GhD.js";import{u as e}from"./useSearchMirror-Cqj8Y9tc.js";import"./nav-link-DGeg_A0i.js";import{u as s}from"./MailListHeader-Cvqgaxpp.js";import"./useSearchTokenContext-Byqr6rJk.js";import"./kbd-Di4l9V4B.js";import"./use-match-media-CqaSQ78Q.js";import"./enums-CCxx0t2v.js";import"./search-scope-D-McGL_G.js";import"./useRefreshControl-Dzj3HLkc.js";import"./circle-check-big-wQtrx0rR.js";import"./search-token-index-BdYhqwX4.js";import"./layout-breakpoints-BWjiUQKh.js";import"./MailViewChrome-B9zM-POS.js";import"./avatar-D_hCvF7M.js";import"./account-form-helpers-C9JjxdDc.js";import"./menu-DyqIlmZ5.js";import"./ErrorState-CKNYdF-I.js";import"./useFilters--2L0e4Ru.js";import"./confirm-dialog-CN94p4G5.js";import"./format-De9HZKjg.js";import"./NavMenuButton-BPDEzSgb.js";import"./useLabels-D2xVhPbL.js";import"./useThreadRow-Dcri3LGA.js";import"./search-query-Cr_ZXBCp.js";import"./shield-check-CcD3SAku.js";import"./bottom-sheet-W4iNuDQY.js";import"./circle-help-MkNqCKuM.js";import"./circle-check-BSUrU5Rs.js";import"./move-options-B6WdWCEB.js";import"./intelligence-pref-C6lFpj6U.js";import"./useSignature-BK72rcNJ.js";import"./useDebouncedValue-2B3cmoJq.js";import"./download-A0ToeXiC.js";import"./clock-D54LVwMy.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-BaROPbqc.js";import{M as r}from"./MailboxPane-23eq6GhD.js";import"./useSearchTokenContext-Byqr6rJk.js";import"./kbd-Di4l9V4B.js";import"./use-match-media-CqaSQ78Q.js";import"./enums-CCxx0t2v.js";import"./search-scope-D-McGL_G.js";import"./useRefreshControl-Dzj3HLkc.js";import"./circle-check-big-wQtrx0rR.js";import"./search-token-index-BdYhqwX4.js";import"./layout-breakpoints-BWjiUQKh.js";import"./MailListHeader-Cvqgaxpp.js";import"./account-form-helpers-C9JjxdDc.js";import"./avatar-D_hCvF7M.js";import"./useSignature-BK72rcNJ.js";import"./useDebouncedValue-2B3cmoJq.js";import"./useFilters--2L0e4Ru.js";import"./ErrorState-CKNYdF-I.js";import"./format-De9HZKjg.js";import"./nav-link-DGeg_A0i.js";import"./download-A0ToeXiC.js";import"./shield-check-CcD3SAku.js";import"./move-options-B6WdWCEB.js";import"./confirm-dialog-CN94p4G5.js";import"./clock-D54LVwMy.js";import"./menu-DyqIlmZ5.js";import"./MailViewChrome-B9zM-POS.js";import"./NavMenuButton-BPDEzSgb.js";import"./useLabels-D2xVhPbL.js";import"./useThreadRow-Dcri3LGA.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-W4iNuDQY.js";import"./circle-help-MkNqCKuM.js";import"./circle-check-BSUrU5Rs.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-BaROPbqc.js";import{B as o}from"./BriefPane-D3qeMrbX.js";import"./useSearchTokenContext-Byqr6rJk.js";import"./kbd-Di4l9V4B.js";import"./use-match-media-CqaSQ78Q.js";import"./enums-CCxx0t2v.js";import"./search-scope-D-McGL_G.js";import"./MailListHeader-Cvqgaxpp.js";import"./search-token-index-BdYhqwX4.js";import"./layout-breakpoints-BWjiUQKh.js";import"./account-form-helpers-C9JjxdDc.js";import"./avatar-D_hCvF7M.js";import"./useSignature-BK72rcNJ.js";import"./useDebouncedValue-2B3cmoJq.js";import"./useFilters--2L0e4Ru.js";import"./ErrorState-CKNYdF-I.js";import"./format-De9HZKjg.js";import"./nav-link-DGeg_A0i.js";import"./download-A0ToeXiC.js";import"./shield-check-CcD3SAku.js";import"./move-options-B6WdWCEB.js";import"./confirm-dialog-CN94p4G5.js";import"./clock-D54LVwMy.js";import"./menu-DyqIlmZ5.js";import"./useRefreshControl-Dzj3HLkc.js";import"./circle-check-big-wQtrx0rR.js";import"./useLabels-D2xVhPbL.js";import"./useThreadRow-Dcri3LGA.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-BaROPbqc.js";import{O as t}from"./OutboxPane-BRme9HCT.js";import"./useSearchTokenContext-Byqr6rJk.js";import"./kbd-Di4l9V4B.js";import"./use-match-media-CqaSQ78Q.js";import"./enums-CCxx0t2v.js";import"./search-scope-D-McGL_G.js";import"./circle-check-big-wQtrx0rR.js";import"./clock-D54LVwMy.js";import"./row-actions-DVJABhbt.js";import"./rotate-ccw-C4tmxgLV.js";import"./NavMenuButton-BPDEzSgb.js";import"./menu-DyqIlmZ5.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-BaROPbqc.js";const n=o;export{n as component};
@@ -1 +0,0 @@
1
- import{a0 as o}from"./index-BaROPbqc.js";const n=o;export{n as component};
@@ -1 +0,0 @@
1
- import{j as r,a0 as i}from"./index-BaROPbqc.js";import{a as m}from"./search-view-F08CdgMv.js";import{B as o}from"./BriefPane-D3qeMrbX.js";import{u as p}from"./useSearchMirror-Cqj8Y9tc.js";import"./nav-link-DGeg_A0i.js";import{u as e}from"./MailListHeader-Cvqgaxpp.js";import"./useSearchTokenContext-Byqr6rJk.js";import"./kbd-Di4l9V4B.js";import"./use-match-media-CqaSQ78Q.js";import"./enums-CCxx0t2v.js";import"./search-scope-D-McGL_G.js";import"./useRefreshControl-Dzj3HLkc.js";import"./circle-check-big-wQtrx0rR.js";import"./search-token-index-BdYhqwX4.js";import"./layout-breakpoints-BWjiUQKh.js";import"./useLabels-D2xVhPbL.js";import"./useFilters--2L0e4Ru.js";import"./useThreadRow-Dcri3LGA.js";import"./search-query-Cr_ZXBCp.js";import"./account-form-helpers-C9JjxdDc.js";import"./avatar-D_hCvF7M.js";import"./useSignature-BK72rcNJ.js";import"./useDebouncedValue-2B3cmoJq.js";import"./ErrorState-CKNYdF-I.js";import"./format-De9HZKjg.js";import"./download-A0ToeXiC.js";import"./shield-check-CcD3SAku.js";import"./move-options-B6WdWCEB.js";import"./confirm-dialog-CN94p4G5.js";import"./clock-D54LVwMy.js";import"./menu-DyqIlmZ5.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-BaROPbqc.js";import{a as e}from"./search-view-F08CdgMv.js";import{F as t}from"./FlaggedPane-dEMZZUCG.js";import{u as p}from"./useSearchMirror-Cqj8Y9tc.js";import"./useSearchTokenContext-Byqr6rJk.js";import"./kbd-Di4l9V4B.js";import"./use-match-media-CqaSQ78Q.js";import"./enums-CCxx0t2v.js";import"./search-scope-D-McGL_G.js";import"./MailListHeader-Cvqgaxpp.js";import"./search-token-index-BdYhqwX4.js";import"./layout-breakpoints-BWjiUQKh.js";import"./account-form-helpers-C9JjxdDc.js";import"./avatar-D_hCvF7M.js";import"./useSignature-BK72rcNJ.js";import"./useDebouncedValue-2B3cmoJq.js";import"./useFilters--2L0e4Ru.js";import"./ErrorState-CKNYdF-I.js";import"./format-De9HZKjg.js";import"./nav-link-DGeg_A0i.js";import"./download-A0ToeXiC.js";import"./shield-check-CcD3SAku.js";import"./move-options-B6WdWCEB.js";import"./confirm-dialog-CN94p4G5.js";import"./clock-D54LVwMy.js";import"./menu-DyqIlmZ5.js";import"./MailViewChrome-B9zM-POS.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 o}from"./index-BaROPbqc.js";import{M as i}from"./MailboxPane-23eq6GhD.js";import"./useSearchTokenContext-Byqr6rJk.js";import"./kbd-Di4l9V4B.js";import"./use-match-media-CqaSQ78Q.js";import"./enums-CCxx0t2v.js";import"./search-scope-D-McGL_G.js";import"./useRefreshControl-Dzj3HLkc.js";import"./circle-check-big-wQtrx0rR.js";import"./search-token-index-BdYhqwX4.js";import"./layout-breakpoints-BWjiUQKh.js";import"./MailListHeader-Cvqgaxpp.js";import"./account-form-helpers-C9JjxdDc.js";import"./avatar-D_hCvF7M.js";import"./useSignature-BK72rcNJ.js";import"./useDebouncedValue-2B3cmoJq.js";import"./useFilters--2L0e4Ru.js";import"./ErrorState-CKNYdF-I.js";import"./format-De9HZKjg.js";import"./nav-link-DGeg_A0i.js";import"./download-A0ToeXiC.js";import"./shield-check-CcD3SAku.js";import"./move-options-B6WdWCEB.js";import"./confirm-dialog-CN94p4G5.js";import"./clock-D54LVwMy.js";import"./menu-DyqIlmZ5.js";import"./MailViewChrome-B9zM-POS.js";import"./NavMenuButton-BPDEzSgb.js";import"./useLabels-D2xVhPbL.js";import"./useThreadRow-Dcri3LGA.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-W4iNuDQY.js";import"./circle-help-MkNqCKuM.js";import"./circle-check-BSUrU5Rs.js";import"./intelligence-pref-C6lFpj6U.js";function I(){return o.jsx(i.Reading,{})}export{I as component};
@@ -1 +0,0 @@
1
- import{j as r}from"./index-BaROPbqc.js";import{B as o}from"./BriefPane-D3qeMrbX.js";import"./useSearchTokenContext-Byqr6rJk.js";import"./kbd-Di4l9V4B.js";import"./use-match-media-CqaSQ78Q.js";import"./enums-CCxx0t2v.js";import"./search-scope-D-McGL_G.js";import"./MailListHeader-Cvqgaxpp.js";import"./search-token-index-BdYhqwX4.js";import"./layout-breakpoints-BWjiUQKh.js";import"./account-form-helpers-C9JjxdDc.js";import"./avatar-D_hCvF7M.js";import"./useSignature-BK72rcNJ.js";import"./useDebouncedValue-2B3cmoJq.js";import"./useFilters--2L0e4Ru.js";import"./ErrorState-CKNYdF-I.js";import"./format-De9HZKjg.js";import"./nav-link-DGeg_A0i.js";import"./download-A0ToeXiC.js";import"./shield-check-CcD3SAku.js";import"./move-options-B6WdWCEB.js";import"./confirm-dialog-CN94p4G5.js";import"./clock-D54LVwMy.js";import"./menu-DyqIlmZ5.js";import"./useRefreshControl-Dzj3HLkc.js";import"./circle-check-big-wQtrx0rR.js";import"./useLabels-D2xVhPbL.js";import"./useThreadRow-Dcri3LGA.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-BaROPbqc.js";import{O as t}from"./OutboxPane-BRme9HCT.js";import"./useSearchTokenContext-Byqr6rJk.js";import"./kbd-Di4l9V4B.js";import"./use-match-media-CqaSQ78Q.js";import"./enums-CCxx0t2v.js";import"./search-scope-D-McGL_G.js";import"./circle-check-big-wQtrx0rR.js";import"./clock-D54LVwMy.js";import"./row-actions-DVJABhbt.js";import"./rotate-ccw-C4tmxgLV.js";import"./NavMenuButton-BPDEzSgb.js";import"./menu-DyqIlmZ5.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 r}from"./index-BaROPbqc.js";import{B as o}from"./BriefPane-D3qeMrbX.js";import"./useSearchTokenContext-Byqr6rJk.js";import"./kbd-Di4l9V4B.js";import"./use-match-media-CqaSQ78Q.js";import"./enums-CCxx0t2v.js";import"./search-scope-D-McGL_G.js";import"./MailListHeader-Cvqgaxpp.js";import"./search-token-index-BdYhqwX4.js";import"./layout-breakpoints-BWjiUQKh.js";import"./account-form-helpers-C9JjxdDc.js";import"./avatar-D_hCvF7M.js";import"./useSignature-BK72rcNJ.js";import"./useDebouncedValue-2B3cmoJq.js";import"./useFilters--2L0e4Ru.js";import"./ErrorState-CKNYdF-I.js";import"./format-De9HZKjg.js";import"./nav-link-DGeg_A0i.js";import"./download-A0ToeXiC.js";import"./shield-check-CcD3SAku.js";import"./move-options-B6WdWCEB.js";import"./confirm-dialog-CN94p4G5.js";import"./clock-D54LVwMy.js";import"./menu-DyqIlmZ5.js";import"./useRefreshControl-Dzj3HLkc.js";import"./circle-check-big-wQtrx0rR.js";import"./useLabels-D2xVhPbL.js";import"./useThreadRow-Dcri3LGA.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-BaROPbqc.js";import{F as r}from"./FlaggedPane-dEMZZUCG.js";import"./useSearchTokenContext-Byqr6rJk.js";import"./kbd-Di4l9V4B.js";import"./use-match-media-CqaSQ78Q.js";import"./enums-CCxx0t2v.js";import"./search-scope-D-McGL_G.js";import"./MailListHeader-Cvqgaxpp.js";import"./search-token-index-BdYhqwX4.js";import"./layout-breakpoints-BWjiUQKh.js";import"./account-form-helpers-C9JjxdDc.js";import"./avatar-D_hCvF7M.js";import"./useSignature-BK72rcNJ.js";import"./useDebouncedValue-2B3cmoJq.js";import"./useFilters--2L0e4Ru.js";import"./ErrorState-CKNYdF-I.js";import"./format-De9HZKjg.js";import"./nav-link-DGeg_A0i.js";import"./download-A0ToeXiC.js";import"./shield-check-CcD3SAku.js";import"./move-options-B6WdWCEB.js";import"./confirm-dialog-CN94p4G5.js";import"./clock-D54LVwMy.js";import"./menu-DyqIlmZ5.js";import"./MailViewChrome-B9zM-POS.js";function w(){return o.jsx(r.Reading,{})}export{w as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-BaROPbqc.js";import{M as r}from"./MailboxPane-23eq6GhD.js";import"./useSearchTokenContext-Byqr6rJk.js";import"./kbd-Di4l9V4B.js";import"./use-match-media-CqaSQ78Q.js";import"./enums-CCxx0t2v.js";import"./search-scope-D-McGL_G.js";import"./useRefreshControl-Dzj3HLkc.js";import"./circle-check-big-wQtrx0rR.js";import"./search-token-index-BdYhqwX4.js";import"./layout-breakpoints-BWjiUQKh.js";import"./MailListHeader-Cvqgaxpp.js";import"./account-form-helpers-C9JjxdDc.js";import"./avatar-D_hCvF7M.js";import"./useSignature-BK72rcNJ.js";import"./useDebouncedValue-2B3cmoJq.js";import"./useFilters--2L0e4Ru.js";import"./ErrorState-CKNYdF-I.js";import"./format-De9HZKjg.js";import"./nav-link-DGeg_A0i.js";import"./download-A0ToeXiC.js";import"./shield-check-CcD3SAku.js";import"./move-options-B6WdWCEB.js";import"./confirm-dialog-CN94p4G5.js";import"./clock-D54LVwMy.js";import"./menu-DyqIlmZ5.js";import"./MailViewChrome-B9zM-POS.js";import"./NavMenuButton-BPDEzSgb.js";import"./useLabels-D2xVhPbL.js";import"./useThreadRow-Dcri3LGA.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-W4iNuDQY.js";import"./circle-help-MkNqCKuM.js";import"./circle-check-BSUrU5Rs.js";import"./intelligence-pref-C6lFpj6U.js";function H(){return o.jsx(r.Reading,{})}export{H as component};
@@ -1 +0,0 @@
1
- import{j as t,a8 as o}from"./index-BaROPbqc.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-BaROPbqc.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-BdYhqwX4.js";import{u as se}from"./search-scope-D-McGL_G.js";import{P as Et}from"./pencil-C78Gnl2t.js";import{M as Ot,s as Rt,c as At}from"./search-view-F08CdgMv.js";import{u as zt,a as Lt,R as Pt,M as Dt}from"./useRefreshControl-Dzj3HLkc.js";import{M as Ft}from"./menu-DyqIlmZ5.js";import{A as Tt}from"./avatar-D_hCvF7M.js";import{i as Bt}from"./outbox-status-CPfNHfUQ.js";import{N as z}from"./nav-link-DGeg_A0i.js";import{E as _t}from"./ErrorState-CKNYdF-I.js";import{K as ae}from"./kbd-Di4l9V4B.js";import{u as Kt}from"./useDebouncedValue-2B3cmoJq.js";import{w as ne}from"./intelligence-pref-C6lFpj6U.js";import"./use-match-media-CqaSQ78Q.js";import"./layout-breakpoints-BWjiUQKh.js";import"./circle-check-big-wQtrx0rR.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-BaROPbqc.js";import{a as m}from"./search-view-F08CdgMv.js";import{O as t}from"./OutboxPane-BRme9HCT.js";import{u as a}from"./useSearchMirror-Cqj8Y9tc.js";import"./nav-link-DGeg_A0i.js";import"./useSearchTokenContext-Byqr6rJk.js";import"./kbd-Di4l9V4B.js";import"./use-match-media-CqaSQ78Q.js";import"./enums-CCxx0t2v.js";import"./search-scope-D-McGL_G.js";import"./circle-check-big-wQtrx0rR.js";import"./clock-D54LVwMy.js";import"./row-actions-DVJABhbt.js";import"./rotate-ccw-C4tmxgLV.js";import"./NavMenuButton-BPDEzSgb.js";import"./menu-DyqIlmZ5.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};
@@ -1 +0,0 @@
1
- import{j as t,a0 as o}from"./index-BaROPbqc.js";const n=()=>t.jsx(o,{});export{n as component};
@@ -1 +0,0 @@
1
- import{p as h,o as y,W as v,r as p}from"./index-BaROPbqc.js";import{u as x}from"./search-scope-D-McGL_G.js";import{b as I}from"./search-view-F08CdgMv.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 +0,0 @@
1
- import{s as C,ae as I,ag as E,bE as k,bF as A,r as x,j as p,bG as f,bH as R,bI as j,o as O,x as S,bJ as D,bK as Q}from"./index-BaROPbqc.js";import{aq as _,ar as q,as as w,at as z,au as N}from"./MailListHeader-Cvqgaxpp.js";import{a as P}from"./useLabels-D2xVhPbL.js";import{M as B}from"./enums-CCxx0t2v.js";import{u as F,s as G}from"./search-scope-D-McGL_G.js";import{n as U}from"./search-query-Cr_ZXBCp.js";import{u as K,p as H}from"./useSearchTokenContext-Byqr6rJk.js";const J=e=>{const{mailboxId:s,messages:i}=e,o=C(),{pushError:l}=I(),{mutateAsync:n,isPending:a}=E({...A(),onError:(r,u)=>{l({title:u.body.action==="Remove"?"Couldn't remove label":"Couldn't apply label",detail:k(r),error:r})},onSettled:(r,u,d)=>{_(o,q(w(d.body.messageIds??[],i??[],s)))}});return{applyLabel:x.useCallback((r,u,d)=>{r.length!==0&&z(r,m=>n({body:{messageIds:m,labelId:u,action:d}}))},[n]),isPending:a}};function ne({accountId:e,mailboxId:s,messageIds:i}){const{labels:o}=P(e),{applyLabel:l}=J({mailboxId:s}),n=x.useMemo(()=>o.map(a=>({key:a.labelId,label:a.name,icon:p.jsx("span",{className:`size-2.5 rounded-full ${R(a.color)?f[a.color]:f.Default}`}),onSelect:()=>l(i,a.labelId,"Apply")})),[o,i,l]);return n.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:n,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 V=20,$=new Set(Object.values(B)),W=e=>e!==void 0&&$.has(e)?e:void 0,X=e=>{if(e.some(s=>s.type==="isUnread"))return!1;if(e.some(s=>s.type==="isRead"))return!0};function re({mailboxId:e,filterCategory:s}={}){const{searchQuery:i}=O(),o=K(),l=F({select:t=>t.matches}),n=U(i),{freeText:a,tokens:c}=H(n,o),r=a.length>0,u=c.find(t=>t.type==="category"),d=W(s)??u?.category,m=c.some(t=>t.type==="hasAttachment")?!0:void 0,b=c.some(t=>t.type==="isStarred")?!0:void 0,y=X(c),g=c.find(t=>t.type==="after"),h=c.find(t=>t.type==="before"),T=c.find(t=>t.type==="in"),v=G({matches:l,callerMailboxId:e,inTokenMailboxId:T?.mailboxId}),{data:M,isLoading:L}=S({...D({query:{query:a,mailboxId:v,limit:V,...d!==void 0?{category:d}:{},...m!==void 0?{hasAttachment:m}:{},...b!==void 0?{hasStars:b}:{},...y!==void 0?{isRead:y}:{},...g?{sentDateFrom:g.epochSeconds}:{},...h?{sentDateTo:h.epochSeconds}:{}}}),enabled:r,staleTime:6e4});return{hits:M?.items??[],isLoading:r&&L}}const ie=(e,s)=>{const{data:i}=S({...Q({path:{threadId:e??""}}),enabled:!!e}),o=i?.items??[],l=s?o.find(a=>a.messageId===s):void 0,n=o.length>0?o[o.length-1]:void 0;return l??n};export{ne as L,re as a,ie as u};