@remit/web-client-dist 0.0.641 → 0.0.643

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 (168) hide show
  1. package/assets/BriefPane-CqQSh_ja.js +1 -0
  2. package/assets/CalendarComposePane-C9l0zjP2.js +1 -0
  3. package/assets/{CalendarComposeSeed-Ddue6yGg.js → CalendarComposeSeed-CJm8rCY9.js} +1 -1
  4. package/assets/{CalendarShell-ay8jVvby.js → CalendarShell-Dew68lMD.js} +1 -1
  5. package/assets/{EmptyState-DxT13qcR.js → EmptyState-VLl0Xg-2.js} +1 -1
  6. package/assets/{ErrorState-CHxEHbvf.js → ErrorState-DmeOZx31.js} +1 -1
  7. package/assets/FlaggedPane-h6xyDnuf.js +1 -0
  8. package/assets/{FullCompose-DkV5Z3KV.js → FullCompose-C4K-ff_q.js} +1 -1
  9. package/assets/MailListHeader-BrXXf1Yp.js +7 -0
  10. package/assets/{MailNav-DBY9OW6Y.js → MailNav-3iRwz5bx.js} +1 -1
  11. package/assets/{MailShell-LEDBmXGr.js → MailShell-C7XYJEOC.js} +1 -1
  12. package/assets/{MailViewChrome-7gtXtr7X.js → MailViewChrome-7Gh2Vw-t.js} +1 -1
  13. package/assets/{MailboxPane-sccwyPwa.js → MailboxPane-0KW8VAei.js} +1 -1
  14. package/assets/{NavMenuButton-C3UDJB1v.js → NavMenuButton-B4_xZcAo.js} +1 -1
  15. package/assets/{OnboardingWizard-DWrpEauO.js → OnboardingWizard-Dyv1Jm6j.js} +1 -1
  16. package/assets/OpenCalendarEvent-7dAQjmZ0.js +2 -0
  17. package/assets/{OutboxPane-oxeCJEiZ.js → OutboxPane--7u1PWnp.js} +1 -1
  18. package/assets/_calendarObjectId-DZ45RvvI.js +1 -0
  19. package/assets/_mailboxId-mXLMaQIT.js +1 -0
  20. package/assets/_messageId-2G79mDVH.js +1 -0
  21. package/assets/_messageId-BproZqyb.js +1 -0
  22. package/assets/_messageId-Yux53ec8.js +1 -0
  23. package/assets/_outboxMessageId-CUrOyyD-.js +1 -0
  24. package/assets/_recurrenceId-7sRPMrJQ.js +1 -0
  25. package/assets/_threadId-BVoqj3ta.js +1 -0
  26. package/assets/_threadId-DClBqCRh.js +1 -0
  27. package/assets/_threadId-wGJAHiFc.js +1 -0
  28. package/assets/_view._date-C-6t0plG.js +1 -0
  29. package/assets/{accounts-D080vGx7.js → accounts-BBm2Fri5.js} +1 -1
  30. package/assets/{advanced-CkUEORb7.js → advanced-C7IVSlq-.js} +1 -1
  31. package/assets/{appearance-C7pPonlu.js → appearance-DHQkzl84.js} +1 -1
  32. package/assets/{attendee-row-t7d1gEVn.js → attendee-row-BVnfl4Ln.js} +1 -1
  33. package/assets/{avatar-C2R7xqlA.js → avatar-DD62C_eL.js} +1 -1
  34. package/assets/{bell-off-CD1iuAQA.js → bell-off-CsR58N8X.js} +1 -1
  35. package/assets/{bottom-sheet-DZ2d0h_L.js → bottom-sheet-BG2Fi0Lb.js} +1 -1
  36. package/assets/{brief-BVo4rf_J.js → brief-BkicXAec.js} +1 -1
  37. package/assets/brief-BmBsP3Eb.js +1 -0
  38. package/assets/{browser-ponyfill-BdQcytd0.js → browser-ponyfill-vr6sMZpU.js} +2 -2
  39. package/assets/{bug-DI9j6s_O.js → bug-BXkTcnP3.js} +1 -1
  40. package/assets/{calendar-0_V8JbUq.js → calendar-Bif9hwZM.js} +1 -1
  41. package/assets/{calendar-clash-strip-AV6ir0kb.js → calendar-clash-strip-CkUcFznp.js} +1 -1
  42. package/assets/calendar-format-C1OfWDS9.js +1 -0
  43. package/assets/calendar-report-BY6VcRI-.js +1 -0
  44. package/assets/calendar-suggestion-DSoR-sUT.js +1 -0
  45. package/assets/{calendars-Dav4B8o3.js → calendars-DxQTaSZf.js} +1 -1
  46. package/assets/{card-hG_Il7pd.js → card-DggbFcQC.js} +1 -1
  47. package/assets/{checkbox-B_JY_6mN.js → checkbox-DNsJWnQ9.js} +1 -1
  48. package/assets/chevron-left-DVuaPYD9.js +1 -0
  49. package/assets/{circle-check-Cmp8Rqlz.js → circle-check-DPWZDhPO.js} +1 -1
  50. package/assets/{circle-check-big-B9Ca4u10.js → circle-check-big-CM7pZZbV.js} +1 -1
  51. package/assets/{circle-help-Cmc2Km1C.js → circle-help-BtRmVPpF.js} +1 -1
  52. package/assets/{clock-DC78l7yK.js → clock-B3HY3HEG.js} +1 -1
  53. package/assets/compose._-_outboxMessageId_-93yCdWlT.js +1 -0
  54. package/assets/compose._-_outboxMessageId_-BuD2Nqen.js +1 -0
  55. package/assets/compose._-_outboxMessageId_-CjOo7QgX.js +1 -0
  56. package/assets/compose._-_outboxMessageId_-m9wrDxnm.js +1 -0
  57. package/assets/{config-import-hoC0Y2SG.js → config-import-Fo3m7cZ7.js} +1 -1
  58. package/assets/{confirm-dialog-CCDHX_6Q.js → confirm-dialog-CgLhcr4g.js} +1 -1
  59. package/assets/{copy-B0aWQGDa.js → copy-7B_A7tMm.js} +1 -1
  60. package/assets/{credential-steps-uXZK9Zmr.js → credential-steps-CnFqc5oP.js} +1 -1
  61. package/assets/{download-D3fQ48lB.js → download-BG6KV76e.js} +1 -1
  62. package/assets/{file-json-CCQAXfEc.js → file-json-DKDhkzal.js} +1 -1
  63. package/assets/{filters-DjsJshjt.js → filters-BjhC4ukE.js} +1 -1
  64. package/assets/{flagged-DU9q4oil.js → flagged-BwEn5mqI.js} +1 -1
  65. package/assets/flagged-CtubMGA7.js +1 -0
  66. package/assets/{folders-EdBrFHzG.js → folders-QYetOmXD.js} +1 -1
  67. package/assets/{help-copy-BFATWnBQ.js → help-copy-XLWHUTq9.js} +1 -1
  68. package/assets/{import-wN7xkLN8.js → import-BLX36zo9.js} +1 -1
  69. package/assets/index-2G79mDVH.js +1 -0
  70. package/assets/index-B52QS6i2.js +1 -0
  71. package/assets/{index-DY5mGxwG.js → index-BUTEicLk.js} +1 -1
  72. package/assets/{index-C5Dozv2m.css → index-BtYEmjxr.css} +1 -1
  73. package/assets/index-CvXSZNRB.js +1 -0
  74. package/assets/index-Cw1nSElr.js +1 -0
  75. package/assets/{index-DE-NAKWZ.js → index-DOsp5wL9.js} +4 -4
  76. package/assets/index-DU7GET4S.js +1 -0
  77. package/assets/{index-DKo99WG1.js → index-DdgwCJ4v.js} +40 -40
  78. package/assets/index-RK66HQoS.js +1 -0
  79. package/assets/index-Yux53ec8.js +1 -0
  80. package/assets/index-dAmO05_k.js +1 -0
  81. package/assets/index-vr5V5mez.js +1 -0
  82. package/assets/{kbd-xYIrsDlz.js → kbd-DKvs5BdK.js} +1 -1
  83. package/assets/{labels-CToNdujY.js → labels-CW2ReWm4.js} +1 -1
  84. package/assets/{mail-CFqLOB4w.js → mail-BJPu5dwh.js} +1 -1
  85. package/assets/{mail-DxfGucaQ.js → mail-CRm24o3R.js} +1 -1
  86. package/assets/map-pin-CAgVIQRt.js +1 -0
  87. package/assets/{menu-u9D-cJXQ.js → menu-DeD_0Sd1.js} +1 -1
  88. package/assets/minus-0VqQt5wq.js +1 -0
  89. package/assets/{new-DarKu0Ji.js → new-CRtnsWv2.js} +1 -1
  90. package/assets/onboarding-50LVQxkR.js +1 -0
  91. package/assets/{onboarding-completion-DK9cy93Q.js → onboarding-completion-D4p2yV8X.js} +1 -1
  92. package/assets/outbox-jzPfnLIS.js +1 -0
  93. package/assets/{pane-header-DmEVnHem.js → pane-header-DCDDVSaQ.js} +1 -1
  94. package/assets/{pencil-hPJlTnvS.js → pencil-DxSaFuJ4.js} +1 -1
  95. package/assets/{popover-menu-BDeljNyh.js → popover-menu-4krm3dWT.js} +1 -1
  96. package/assets/{refresh-cw-DNbEUXcm.js → refresh-cw-C_o59REw.js} +1 -1
  97. package/assets/{rich-text-CQJUj3SY.js → rich-text-CdLRrg6I.js} +14 -14
  98. package/assets/{rich-text-spellcheck-worker-provider-YjewF802.js → rich-text-spellcheck-worker-provider-DAgr-VNc.js} +1 -1
  99. package/assets/{rotate-ccw-DFe52ITT.js → rotate-ccw-C7hQnwfM.js} +1 -1
  100. package/assets/{roving-focus-DWecg5C9.js → roving-focus-wLsuSVCZ.js} +1 -1
  101. package/assets/{row-actions-Cp8U_ugi.js → row-actions-CsDIFX2Z.js} +1 -1
  102. package/assets/{search-mirror-CjZ7cATA.js → search-mirror-7ZjhpyaP.js} +1 -1
  103. package/assets/{search-token-index-DL0AoAlj.js → search-token-index-Dbim5YtJ.js} +1 -1
  104. package/assets/{sections-DDBMQxXz.js → sections-BHPkRjh5.js} +1 -1
  105. package/assets/{senders-Di3Hbnh-.js → senders-CNBlWIiG.js} +1 -1
  106. package/assets/settings-Cb-LOzr3.js +1 -0
  107. package/assets/{settings-screen-v6xny9wU.js → settings-screen-CIUyvyDm.js} +1 -1
  108. package/assets/{shield-check-BgoZBruM.js → shield-check-D6xreYrB.js} +1 -1
  109. package/assets/{suggested-vips-C6Pc81iu.js → suggested-vips-Da8IuYnJ.js} +1 -1
  110. package/assets/suggestion._suggestionId-CjvTvFz8.js +1 -0
  111. package/assets/{undo-2-nUyUEATC.js → undo-2-BVpzm_lb.js} +1 -1
  112. package/assets/useCalendarData-D9NX1A9R.js +1 -0
  113. package/assets/useCalendarFreeBusy-B6fKe2s-.js +1 -0
  114. package/assets/{useCalendarWrites-qcdW_JmG.js → useCalendarWrites-DUx11oF3.js} +1 -1
  115. package/assets/{useCalendars-sfh2BICi.js → useCalendars-BLmllCqQ.js} +1 -1
  116. package/assets/{useDebouncedValue-Bq8RVLfv.js → useDebouncedValue-DvXNnDTh.js} +1 -1
  117. package/assets/{useFilters-zXsB3pIM.js → useFilters-C3B6gyy8.js} +1 -1
  118. package/assets/{useLabels-xQerI8AK.js → useLabels-BY5yOSXl.js} +1 -1
  119. package/assets/{useLayoutTier-C1kzvb61.js → useLayoutTier-CbC-hQRr.js} +1 -1
  120. package/assets/{useMessageBodyContent-BRyDdu_J.js → useMessageBodyContent-DRTP4wa0.js} +1 -1
  121. package/assets/{useQueries-CY9FUcC8.js → useQueries-B9KsAw6v.js} +1 -1
  122. package/assets/{useRefreshControl-DKJ_Eyfn.js → useRefreshControl-BQetpFZ3.js} +1 -1
  123. package/assets/{useResultFolderIndex-BFXa90Ay.js → useResultFolderIndex-IoXcSy-p.js} +1 -1
  124. package/assets/{useSearchTokenContext-C0_GGpQj.js → useSearchTokenContext-DMIJPqzA.js} +1 -1
  125. package/assets/{useSemanticSearch-lVNhyaIe.js → useSemanticSearch-BTlz1ruP.js} +1 -1
  126. package/assets/{useSignature-CR4J3Q1V.js → useSignature-Cbp58mOz.js} +1 -1
  127. package/index.html +2 -2
  128. package/package.json +1 -1
  129. package/assets/BriefPane-D1p8nleB.js +0 -1
  130. package/assets/CalendarComposePane-FU6MwnAy.js +0 -1
  131. package/assets/FlaggedPane-CJ__xJpf.js +0 -1
  132. package/assets/MailListHeader-BZRxmnIb.js +0 -7
  133. package/assets/OpenCalendarEvent-B1DYETG7.js +0 -2
  134. package/assets/_calendarObjectId-DpUi-YzJ.js +0 -1
  135. package/assets/_mailboxId-DW6pvCIw.js +0 -1
  136. package/assets/_messageId-BAQFECvK.js +0 -1
  137. package/assets/_messageId-BVnDwNl2.js +0 -1
  138. package/assets/_messageId-Bvuxe_8r.js +0 -1
  139. package/assets/_outboxMessageId-BjD8wilW.js +0 -1
  140. package/assets/_recurrenceId-DBx4vqgw.js +0 -1
  141. package/assets/_threadId-B5nqfV-L.js +0 -1
  142. package/assets/_threadId-CazI55hb.js +0 -1
  143. package/assets/_threadId-DUn5RY_Y.js +0 -1
  144. package/assets/_view._date-Bpb6TKNU.js +0 -1
  145. package/assets/brief-CH-e1O9N.js +0 -1
  146. package/assets/calendar-format-CyOmp12n.js +0 -1
  147. package/assets/calendar-report-rx459ZNk.js +0 -1
  148. package/assets/calendar-suggestion-OndzGSan.js +0 -1
  149. package/assets/chevron-left-D3r7M2xH.js +0 -1
  150. package/assets/compose._-_outboxMessageId_-Bt9J2-qp.js +0 -1
  151. package/assets/compose._-_outboxMessageId_-C1FaW9o1.js +0 -1
  152. package/assets/compose._-_outboxMessageId_-D5zB1ABW.js +0 -1
  153. package/assets/compose._-_outboxMessageId_-R5L6KgB1.js +0 -1
  154. package/assets/flagged-Q3VMHIjI.js +0 -1
  155. package/assets/index-B3qUW5A0.js +0 -1
  156. package/assets/index-BAQFECvK.js +0 -1
  157. package/assets/index-BUYR1pAl.js +0 -1
  158. package/assets/index-Bvuxe_8r.js +0 -1
  159. package/assets/index-CxIBpGfW.js +0 -1
  160. package/assets/index-D9CK5EEZ.js +0 -1
  161. package/assets/index-DFpWp13S.js +0 -1
  162. package/assets/index-EsGaYQlh.js +0 -1
  163. package/assets/index-p4X-Ys_z.js +0 -1
  164. package/assets/minus-Bnr4gKCE.js +0 -1
  165. package/assets/onboarding-DRQo7PkQ.js +0 -1
  166. package/assets/outbox-BJK9d-c1.js +0 -1
  167. package/assets/settings-CFMotOQ7.js +0 -1
  168. package/assets/useCalendarData-4YBnFK2x.js +0 -1
@@ -0,0 +1 @@
1
+ import{j as r}from"./index-DdgwCJ4v.js";import{B as o}from"./BriefPane-CqQSh_ja.js";import"./useSearchTokenContext-DMIJPqzA.js";import"./kbd-DKvs5BdK.js";import"./useMessageBodyContent-DRTP4wa0.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-BrXXf1Yp.js";import"./roving-focus-wLsuSVCZ.js";import"./search-token-index-Dbim5YtJ.js";import"./useQueries-B9KsAw6v.js";import"./popover-menu-4krm3dWT.js";import"./mail-CRm24o3R.js";import"./avatar-DD62C_eL.js";import"./index-DOsp5wL9.js";import"./useSignature-Cbp58mOz.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-DvXNnDTh.js";import"./sections-BHPkRjh5.js";import"./EmptyState-VLl0Xg-2.js";import"./ErrorState-DmeOZx31.js";import"./undo-2-BVpzm_lb.js";import"./download-BG6KV76e.js";import"./useCalendarFreeBusy-B6fKe2s-.js";import"./calendar-format-C1OfWDS9.js";import"./useCalendars-BLmllCqQ.js";import"./map-pin-CAgVIQRt.js";import"./calendar-suggestion-DSoR-sUT.js";import"./attendee-row-BVnfl4Ln.js";import"./minus-0VqQt5wq.js";import"./clock-B3HY3HEG.js";import"./calendar-clash-strip-CkUcFznp.js";import"./bell-off-CsR58N8X.js";import"./shield-check-D6xreYrB.js";import"./calendar-report-BY6VcRI-.js";import"./useFilters-C3B6gyy8.js";import"./checkbox-DNsJWnQ9.js";import"./confirm-dialog-CgLhcr4g.js";import"./useLayoutTier-CbC-hQRr.js";import"./menu-DeD_0Sd1.js";import"./useRefreshControl-BQetpFZ3.js";import"./circle-check-big-CM7pZZbV.js";import"./refresh-cw-C_o59REw.js";import"./useSemanticSearch-BTlz1ruP.js";import"./useLabels-BY5yOSXl.js";import"./search-query-Cr_ZXBCp.js";import"./wizard-selection-DxUM65kM.js";function W(){return r.jsx(o.Reading,{})}export{W as component};
@@ -0,0 +1 @@
1
+ import{j as r}from"./index-DdgwCJ4v.js";import{B as o}from"./BriefPane-CqQSh_ja.js";import"./useSearchTokenContext-DMIJPqzA.js";import"./kbd-DKvs5BdK.js";import"./useMessageBodyContent-DRTP4wa0.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-BrXXf1Yp.js";import"./roving-focus-wLsuSVCZ.js";import"./search-token-index-Dbim5YtJ.js";import"./useQueries-B9KsAw6v.js";import"./popover-menu-4krm3dWT.js";import"./mail-CRm24o3R.js";import"./avatar-DD62C_eL.js";import"./index-DOsp5wL9.js";import"./useSignature-Cbp58mOz.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-DvXNnDTh.js";import"./sections-BHPkRjh5.js";import"./EmptyState-VLl0Xg-2.js";import"./ErrorState-DmeOZx31.js";import"./undo-2-BVpzm_lb.js";import"./download-BG6KV76e.js";import"./useCalendarFreeBusy-B6fKe2s-.js";import"./calendar-format-C1OfWDS9.js";import"./useCalendars-BLmllCqQ.js";import"./map-pin-CAgVIQRt.js";import"./calendar-suggestion-DSoR-sUT.js";import"./attendee-row-BVnfl4Ln.js";import"./minus-0VqQt5wq.js";import"./clock-B3HY3HEG.js";import"./calendar-clash-strip-CkUcFznp.js";import"./bell-off-CsR58N8X.js";import"./shield-check-D6xreYrB.js";import"./calendar-report-BY6VcRI-.js";import"./useFilters-C3B6gyy8.js";import"./checkbox-DNsJWnQ9.js";import"./confirm-dialog-CgLhcr4g.js";import"./useLayoutTier-CbC-hQRr.js";import"./menu-DeD_0Sd1.js";import"./useRefreshControl-BQetpFZ3.js";import"./circle-check-big-CM7pZZbV.js";import"./refresh-cw-C_o59REw.js";import"./useSemanticSearch-BTlz1ruP.js";import"./useLabels-BY5yOSXl.js";import"./search-query-Cr_ZXBCp.js";import"./wizard-selection-DxUM65kM.js";function W(){return r.jsx(o.Reading,{})}export{W as component};
@@ -0,0 +1 @@
1
+ import{eW as o,j as r}from"./index-DdgwCJ4v.js";import{O as m}from"./OpenCalendarEvent-7dAQjmZ0.js";import"./CalendarComposePane-C9l0zjP2.js";import"./calendar-format-C1OfWDS9.js";import"./useQueries-B9KsAw6v.js";import"./useCalendars-BLmllCqQ.js";import"./calendar-clash-strip-CkUcFznp.js";import"./attendee-row-BVnfl4Ln.js";import"./avatar-DD62C_eL.js";import"./minus-0VqQt5wq.js";import"./clock-B3HY3HEG.js";import"./map-pin-CAgVIQRt.js";import"./mail-CRm24o3R.js";import"./pencil-DxSaFuJ4.js";import"./useCalendarWrites-DUx11oF3.js";import"./ErrorState-DmeOZx31.js";import"./useCalendarData-D9NX1A9R.js";import"./calendar-report-BY6VcRI-.js";import"./calendar-subscription-B-aAc2Gy.js";function I(){const{calendarObjectId:t}=o.useParams();return r.jsx(m,{calendarObjectId:t})}export{I as component};
@@ -0,0 +1 @@
1
+ import{j as o}from"./index-DdgwCJ4v.js";import{F as r}from"./FlaggedPane-h6xyDnuf.js";import"./useSearchTokenContext-DMIJPqzA.js";import"./kbd-DKvs5BdK.js";import"./useMessageBodyContent-DRTP4wa0.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-BrXXf1Yp.js";import"./roving-focus-wLsuSVCZ.js";import"./search-token-index-Dbim5YtJ.js";import"./useQueries-B9KsAw6v.js";import"./popover-menu-4krm3dWT.js";import"./mail-CRm24o3R.js";import"./avatar-DD62C_eL.js";import"./index-DOsp5wL9.js";import"./useSignature-Cbp58mOz.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-DvXNnDTh.js";import"./sections-BHPkRjh5.js";import"./EmptyState-VLl0Xg-2.js";import"./ErrorState-DmeOZx31.js";import"./undo-2-BVpzm_lb.js";import"./download-BG6KV76e.js";import"./useCalendarFreeBusy-B6fKe2s-.js";import"./calendar-format-C1OfWDS9.js";import"./useCalendars-BLmllCqQ.js";import"./map-pin-CAgVIQRt.js";import"./calendar-suggestion-DSoR-sUT.js";import"./attendee-row-BVnfl4Ln.js";import"./minus-0VqQt5wq.js";import"./clock-B3HY3HEG.js";import"./calendar-clash-strip-CkUcFznp.js";import"./bell-off-CsR58N8X.js";import"./shield-check-D6xreYrB.js";import"./calendar-report-BY6VcRI-.js";import"./useFilters-C3B6gyy8.js";import"./checkbox-DNsJWnQ9.js";import"./confirm-dialog-CgLhcr4g.js";import"./useLayoutTier-CbC-hQRr.js";import"./menu-DeD_0Sd1.js";import"./MailViewChrome-7Gh2Vw-t.js";import"./refresh-cw-C_o59REw.js";import"./wizard-selection-DxUM65kM.js";function S(){return o.jsx(r.Reading,{})}export{S as component};
@@ -1 +1 @@
1
- import{j as n,t as s}from"./index-DKo99WG1.js";function x({className:e,...t}){return n.jsx("kbd",{className:s("inline-flex h-4 min-w-4 items-center justify-center rounded-xs border border-line bg-surface-sunken px-1 font-sans text-2xs text-fg-muted",e),...t})}export{x as K};
1
+ import{j as n,t as s}from"./index-DdgwCJ4v.js";function x({className:e,...t}){return n.jsx("kbd",{className:s("inline-flex h-4 min-w-4 items-center justify-center rounded-xs border border-line bg-surface-sunken px-1 font-sans text-2xs text-fg-muted",e),...t})}export{x as K};
@@ -1 +1 @@
1
- import{r as f,j as e,az as h,bs as y,ay as b,bQ as g,f as v,a3 as N,u as C,c as L,d as I,aP as D,aR as S,B as w}from"./index-DKo99WG1.js";import{C as E}from"./confirm-dialog-CCDHX_6Q.js";import{S as $}from"./settings-screen-v6xny9wU.js";import{E as j}from"./ErrorState-CHxEHbvf.js";import{a as T,b as k,c as R,u as O}from"./useLabels-xQerI8AK.js";import"./avatar-C2R7xqlA.js";import"./chevron-left-D3r7M2xH.js";import"./menu-u9D-cJXQ.js";import"./circle-help-Cmc2Km1C.js";function P({labels:l,onRename:i,onRecolor:n,onDelete:m,deletingLabelId:c}){const[u,r]=f.useState(),[o,d]=f.useState("");if(l.length===0)return e.jsx("p",{className:"py-6 text-sm text-fg-muted",children:"No labels yet. Create one below, then use it in a filter or apply it to mail directly."});const t=a=>{const s=o.trim();s!==""&&i(a,s),r(void 0)};return e.jsx("ul",{className:"divide-y divide-line rounded-md border border-line",children:l.map(a=>e.jsxs("li",{className:"flex items-center gap-3 px-3 py-2.5",children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[u===a.labelId?e.jsx(h,{autoFocus:!0,value:o,onChange:s=>d(s.target.value),onBlur:()=>t(a.labelId),onKeyDown:s=>{s.key==="Enter"&&(s.preventDefault(),t(a.labelId)),s.key==="Escape"&&(s.preventDefault(),r(void 0))},"aria-label":`Rename label ${a.name}`}):e.jsx("button",{type:"button",onClick:()=>{r(a.labelId),d(a.name)},"aria-label":`Rename label ${a.name}`,className:"flex items-center gap-2 rounded-sm text-left hover:opacity-80",children:e.jsx(y,{label:a})}),e.jsx("p",{className:"mt-0.5 text-xs text-fg-subtle",children:a.filterCount===0?"Not used in any filter":`Used in ${a.filterCount} ${a.filterCount===1?"filter":"filters"}`})]}),e.jsx(b,{"aria-label":`Color for ${a.name}`,value:a.color,onChange:s=>n(a.labelId,s.target.value),className:"w-28 shrink-0",children:g.map(s=>e.jsx("option",{value:s,children:s},s))}),e.jsx(v,{variant:"ghost",size:"sm",icon:e.jsx(N,{className:"size-4 text-danger"}),onClick:()=>m(a),disabled:c===a.labelId,"aria-label":`Delete label ${a.name}`})]},a.labelId))})}const B=(l,i)=>{if(i===0)return{title:`Delete the "${l}" label?`};const n=i===1?"filter":"filters";return{title:`Delete the "${l}" label?`,description:`This also deletes ${i} ${n} that ${i===1?"applies":"apply"} it — they can't be recovered.`}},_=e.jsxs("div",{className:"space-y-3",children:[e.jsx("p",{children:"Labels mark mail without moving it — a message can carry any number of them alongside whichever folder it lives in."}),e.jsx("p",{children:"Use a label in a filter's action to have new (and existing) mail label itself automatically, or apply one to a selection directly from the mailbox."}),e.jsx("p",{children:"Deleting a label removes it from every message, and deletes every filter that applies it — the confirmation names how many."})]});function H({accountId:l}){const{createLabel:i,isPending:n,isError:m}=O(l),[c,u]=f.useState(""),[r,o]=f.useState("Default"),d=()=>{const t=c.trim();t!==""&&i(t,r).then(()=>{u(""),o("Default")})};return e.jsxs("div",{className:"space-y-2 rounded-sm border border-line bg-surface p-3",children:[e.jsx("p",{className:"text-sm font-medium text-fg",children:"New label"}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end",children:[e.jsxs("div",{className:"flex-1 space-y-1",children:[e.jsx("span",{className:"text-xs text-fg-muted",children:"Name"}),e.jsx(h,{value:c,onChange:t=>u(t.target.value),placeholder:"e.g. Receipts","aria-label":"Label name",onKeyDown:t=>{t.key==="Enter"&&(t.preventDefault(),d())}})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("span",{className:"text-xs text-fg-muted",children:"Color"}),e.jsx(b,{value:r,onChange:t=>o(t.target.value),"aria-label":"Label color",className:"w-28",children:g.map(t=>e.jsx("option",{value:t,children:t},t))})]}),e.jsx(v,{variant:"primary",onClick:d,disabled:n||c.trim()==="",children:n?"Creating…":"Create label"})]}),m&&e.jsx(w,{tone:"danger",variant:"soft",children:"Couldn't create that label. Please try again."})]})}function z({account:l}){const i=l.accountId,{labels:n,isPending:m,isError:c,error:u,refetch:r}=T(i),{updateLabel:o}=k(i),{deleteLabel:d,deletingLabelId:t}=R(i),[a,s]=f.useState();return e.jsxs("section",{className:"space-y-2",children:[e.jsx("h2",{className:"text-sm font-semibold text-fg",children:l.email}),m?e.jsx("div",{className:"h-16 animate-pulse rounded-md border border-line bg-surface","aria-busy":"true","aria-label":`Loading labels for ${l.email}`}):c?e.jsx(j,{variant:"inline",title:`Couldn't load labels for ${l.email}`,error:u,onRetry:()=>{r()}}):e.jsx(P,{labels:n,onRename:(p,x)=>o(p,{name:x}),onRecolor:(p,x)=>o(p,{color:x}),onDelete:s,deletingLabelId:t}),e.jsx(H,{accountId:i}),a&&(()=>{const p=B(a.name,a.filterCount);return e.jsx(E,{isOpen:!0,title:p.title,description:p.description,confirmLabel:"Delete label",destructive:!0,isBusy:t===a.labelId,onConfirm:()=>{d(a.labelId),s(void 0)},onCancel:()=>s(void 0)})})()]})}function J(){const l=C(),[i,n]=f.useState(!0),{data:m,isPending:c,isError:u,error:r,refetch:o}=L(I()),d=t=>{const a=S[t];a&&l({to:a})};return e.jsx($,{items:D,activeId:"labels",title:"Labels",description:"Mark mail without moving it, per account.",help:_,helpOpen:i,onToggleHelp:()=>n(t=>!t),onSelect:d,onBackToMail:()=>{l({to:"/mail"})},children:c?e.jsx("div",{className:"h-24 animate-pulse rounded-sm border border-line bg-surface","aria-busy":"true","aria-label":"Loading accounts"}):u?e.jsx(j,{title:"Couldn't load accounts",error:r,onRetry:()=>{o()}}):m.accounts.length===0?e.jsx("p",{className:"py-12 text-sm text-fg-muted",children:"No accounts configured."}):e.jsx("div",{className:"space-y-8",children:m.accounts.map(t=>e.jsx(z,{account:t},t.accountId))})})}export{J as component};
1
+ import{r as f,j as e,az as h,bs as y,ay as b,bQ as g,f as v,a3 as N,u as C,c as L,d as I,aP as D,aR as S,B as w}from"./index-DdgwCJ4v.js";import{C as E}from"./confirm-dialog-CgLhcr4g.js";import{S as $}from"./settings-screen-CIUyvyDm.js";import{E as j}from"./ErrorState-DmeOZx31.js";import{a as T,b as k,c as R,u as O}from"./useLabels-BY5yOSXl.js";import"./avatar-DD62C_eL.js";import"./chevron-left-DVuaPYD9.js";import"./menu-DeD_0Sd1.js";import"./circle-help-BtRmVPpF.js";function P({labels:l,onRename:i,onRecolor:n,onDelete:m,deletingLabelId:c}){const[u,r]=f.useState(),[o,d]=f.useState("");if(l.length===0)return e.jsx("p",{className:"py-6 text-sm text-fg-muted",children:"No labels yet. Create one below, then use it in a filter or apply it to mail directly."});const t=a=>{const s=o.trim();s!==""&&i(a,s),r(void 0)};return e.jsx("ul",{className:"divide-y divide-line rounded-md border border-line",children:l.map(a=>e.jsxs("li",{className:"flex items-center gap-3 px-3 py-2.5",children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[u===a.labelId?e.jsx(h,{autoFocus:!0,value:o,onChange:s=>d(s.target.value),onBlur:()=>t(a.labelId),onKeyDown:s=>{s.key==="Enter"&&(s.preventDefault(),t(a.labelId)),s.key==="Escape"&&(s.preventDefault(),r(void 0))},"aria-label":`Rename label ${a.name}`}):e.jsx("button",{type:"button",onClick:()=>{r(a.labelId),d(a.name)},"aria-label":`Rename label ${a.name}`,className:"flex items-center gap-2 rounded-sm text-left hover:opacity-80",children:e.jsx(y,{label:a})}),e.jsx("p",{className:"mt-0.5 text-xs text-fg-subtle",children:a.filterCount===0?"Not used in any filter":`Used in ${a.filterCount} ${a.filterCount===1?"filter":"filters"}`})]}),e.jsx(b,{"aria-label":`Color for ${a.name}`,value:a.color,onChange:s=>n(a.labelId,s.target.value),className:"w-28 shrink-0",children:g.map(s=>e.jsx("option",{value:s,children:s},s))}),e.jsx(v,{variant:"ghost",size:"sm",icon:e.jsx(N,{className:"size-4 text-danger"}),onClick:()=>m(a),disabled:c===a.labelId,"aria-label":`Delete label ${a.name}`})]},a.labelId))})}const B=(l,i)=>{if(i===0)return{title:`Delete the "${l}" label?`};const n=i===1?"filter":"filters";return{title:`Delete the "${l}" label?`,description:`This also deletes ${i} ${n} that ${i===1?"applies":"apply"} it — they can't be recovered.`}},_=e.jsxs("div",{className:"space-y-3",children:[e.jsx("p",{children:"Labels mark mail without moving it — a message can carry any number of them alongside whichever folder it lives in."}),e.jsx("p",{children:"Use a label in a filter's action to have new (and existing) mail label itself automatically, or apply one to a selection directly from the mailbox."}),e.jsx("p",{children:"Deleting a label removes it from every message, and deletes every filter that applies it — the confirmation names how many."})]});function H({accountId:l}){const{createLabel:i,isPending:n,isError:m}=O(l),[c,u]=f.useState(""),[r,o]=f.useState("Default"),d=()=>{const t=c.trim();t!==""&&i(t,r).then(()=>{u(""),o("Default")})};return e.jsxs("div",{className:"space-y-2 rounded-sm border border-line bg-surface p-3",children:[e.jsx("p",{className:"text-sm font-medium text-fg",children:"New label"}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end",children:[e.jsxs("div",{className:"flex-1 space-y-1",children:[e.jsx("span",{className:"text-xs text-fg-muted",children:"Name"}),e.jsx(h,{value:c,onChange:t=>u(t.target.value),placeholder:"e.g. Receipts","aria-label":"Label name",onKeyDown:t=>{t.key==="Enter"&&(t.preventDefault(),d())}})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("span",{className:"text-xs text-fg-muted",children:"Color"}),e.jsx(b,{value:r,onChange:t=>o(t.target.value),"aria-label":"Label color",className:"w-28",children:g.map(t=>e.jsx("option",{value:t,children:t},t))})]}),e.jsx(v,{variant:"primary",onClick:d,disabled:n||c.trim()==="",children:n?"Creating…":"Create label"})]}),m&&e.jsx(w,{tone:"danger",variant:"soft",children:"Couldn't create that label. Please try again."})]})}function z({account:l}){const i=l.accountId,{labels:n,isPending:m,isError:c,error:u,refetch:r}=T(i),{updateLabel:o}=k(i),{deleteLabel:d,deletingLabelId:t}=R(i),[a,s]=f.useState();return e.jsxs("section",{className:"space-y-2",children:[e.jsx("h2",{className:"text-sm font-semibold text-fg",children:l.email}),m?e.jsx("div",{className:"h-16 animate-pulse rounded-md border border-line bg-surface","aria-busy":"true","aria-label":`Loading labels for ${l.email}`}):c?e.jsx(j,{variant:"inline",title:`Couldn't load labels for ${l.email}`,error:u,onRetry:()=>{r()}}):e.jsx(P,{labels:n,onRename:(p,x)=>o(p,{name:x}),onRecolor:(p,x)=>o(p,{color:x}),onDelete:s,deletingLabelId:t}),e.jsx(H,{accountId:i}),a&&(()=>{const p=B(a.name,a.filterCount);return e.jsx(E,{isOpen:!0,title:p.title,description:p.description,confirmLabel:"Delete label",destructive:!0,isBusy:t===a.labelId,onConfirm:()=>{d(a.labelId),s(void 0)},onCancel:()=>s(void 0)})})()]})}function J(){const l=C(),[i,n]=f.useState(!0),{data:m,isPending:c,isError:u,error:r,refetch:o}=L(I()),d=t=>{const a=S[t];a&&l({to:a})};return e.jsx($,{items:D,activeId:"labels",title:"Labels",description:"Mark mail without moving it, per account.",help:_,helpOpen:i,onToggleHelp:()=>n(t=>!t),onSelect:d,onBackToMail:()=>{l({to:"/mail"})},children:c?e.jsx("div",{className:"h-24 animate-pulse rounded-sm border border-line bg-surface","aria-busy":"true","aria-label":"Loading accounts"}):u?e.jsx(j,{title:"Couldn't load accounts",error:r,onRetry:()=>{o()}}):m.accounts.length===0?e.jsx("p",{className:"py-12 text-sm text-fg-muted",children:"No accounts configured."}):e.jsx("div",{className:"space-y-8",children:m.accounts.map(t=>e.jsx(z,{account:t},t.accountId))})})}export{J as component};
@@ -1 +1 @@
1
- import{e as ee,r as u,j as t,t as D,v as te,f as N,w as se,x as M,y as O,z as ne,A as oe,C as ae,h as Q,D as re,E as ie,F as ce,G as le,H as ue,J as de,X as me,K as pe,a as he,b as fe,M as xe,N as ge,P as be,Q as ve,R as ye,S as Se,T as je,u as Ce,c as Ne,d as Ie,U as we,O as Me,V as Pe}from"./index-DKo99WG1.js";import{S as Re,u as Ee,s as Oe,K as Te,b as ke,a as Le,c as Ae,d as Fe}from"./search-token-index-DL0AoAlj.js";import{P as De}from"./pencil-hPJlTnvS.js";import{u as R,a as Qe}from"./useMessageBodyContent-BRyDdu_J.js";import{c as Ke,s as _e,M as ze}from"./MailShell-LEDBmXGr.js";import{u as Be,a as He,R as Ve,s as qe,i as $e,H as Ge,M as Ue}from"./useRefreshControl-DKJ_Eyfn.js";import{M as We}from"./menu-u9D-cJXQ.js";import{B as Ye}from"./bug-DI9j6s_O.js";import{L as Je,S as Xe,A as Ze,M as et}from"./MailNav-DBY9OW6Y.js";import{A as tt}from"./avatar-C2R7xqlA.js";import{u as st,P as nt,a as ot,b as at}from"./popover-menu-BDeljNyh.js";import{u as rt}from"./sections-DDBMQxXz.js";import{E as it}from"./ErrorState-CHxEHbvf.js";import{K as T}from"./kbd-xYIrsDlz.js";import{u as ct}from"./index-DE-NAKWZ.js";import{u as K,i as lt}from"./useLayoutTier-C1kzvb61.js";import{u as ut}from"./useQueries-CY9FUcC8.js";import{u as dt}from"./useResultFolderIndex-BFXa90Ay.js";import{u as mt}from"./useDebouncedValue-Bq8RVLfv.js";import"./search-scope-B5-OK3Cq.js";import"./FullCompose-DkV5Z3KV.js";import"./confirm-dialog-CCDHX_6Q.js";import"./circle-check-big-B9Ca4u10.js";import"./refresh-cw-DNbEUXcm.js";import"./roving-focus-DWecg5C9.js";import"./bell-off-CD1iuAQA.js";import"./folder-failure-CqkVSsrb.js";import"./outbox-status-BlKn6P0x.js";import"./useSignature-CR4J3Q1V.js";import"./account-form-helpers-DhckT_PN.js";const pt=ee("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"}]]);function ht({email:e,onSignOut:s}){const n=u.useRef(null),{open:a,setOpen:o,containerRef:r,panelRef:i,getAnchor:d}=st("account-menu",()=>n.current?.focus());u.useEffect(()=>{if(!a)return;const c=requestAnimationFrame(()=>i.current?.querySelector('[role="menuitem"]')?.focus());return()=>cancelAnimationFrame(c)},[a,i]);const m=e??"Account";return t.jsxs("div",{ref:r,className:"relative",children:[t.jsx("button",{ref:n,type:"button","aria-label":"Account","aria-haspopup":"menu","aria-expanded":a,onClick:()=>o(c=>!c),className:"inline-flex min-h-11 min-w-11 items-center justify-center rounded-md p-1.5 text-fg-muted transition-colors hover:bg-surface-raised hover:text-fg",children:t.jsx(tt,{name:m,email:e??void 0,size:"sm"})}),t.jsx(nt,{open:a,align:"end",panelRef:i,getAnchor:d,children:t.jsxs(ot,{ref:i,label:m,children:[e&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"truncate px-4 py-2 text-xs text-fg-muted",title:e,"data-testid":"account-menu-email",children:e}),t.jsx("hr",{className:"my-1 h-px border-0 bg-line"})]}),t.jsx(at,{label:"Sign out",icon:t.jsx(Je,{className:"size-4"}),onSelect:()=>{o(!1),n.current?.focus(),s()}})]})})]})}function ft({leading:e,search:s,actions:n,className:a}){return t.jsxs("header",{className:D("flex min-h-pane-header w-full shrink-0 items-center gap-2 border-b border-line bg-canvas px-row-inset py-1",a),children:[e&&t.jsx("div",{className:"flex shrink-0 items-center gap-1",children:e}),t.jsx("div",{className:"flex min-w-0 flex-1 justify-start",children:t.jsx("div",{className:"w-full max-w-xs transition-[max-width] duration-150 ease-out focus-within:max-w-lg",children:s})}),n&&t.jsx("div",{className:"flex shrink-0 items-center gap-1",children:n})]})}function xt({onCompose:e}){return t.jsx("button",{type:"button",onClick:e,"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:t.jsx(De,{className:"size-6"})})}function gt(){const e=te();if(!e)return null;const s=e.showNavPane?!e.navCollapsed:!1;return t.jsx(N,{variant:"ghost",size:"sm",icon:t.jsx(We,{className:"size-4"}),onClick:e.toggleNav,"aria-label":s?"Hide folders":"Show folders","aria-expanded":s,title:"Folders",className:"shrink-0"})}const bt={global:"Search all mail",pending:"Search mail",scoped:"Search this folder"};function vt({search:e,onCompose:s,onReportBug:n,onOpenSettings:a,composeShortcut:o,refreshControl:r,account:i}){return t.jsx(ft,{leading:t.jsx(gt,{}),search:t.jsx(Re,{value:e.value,onChange:e.onChange,onClear:e.onClear,onClearQuery:e.onClearQuery,chips:e.chips,onRemoveChip:e.onRemoveChip,placeholder:bt[e.scope]}),actions:t.jsxs(t.Fragment,{children:[t.jsx(N,{variant:"ghost",size:"sm",icon:t.jsx(pt,{className:"size-4"}),title:o?`Compose (${o})`:"Compose","aria-label":"Compose",onClick:s}),t.jsx(N,{variant:"ghost",size:"sm",icon:t.jsx(Ye,{className:"size-4"}),title:"Report a bug","aria-label":"Report a bug",onClick:n}),t.jsx(N,{variant:"ghost",size:"sm",icon:t.jsx(Xe,{className:"size-4"}),title:"Settings","aria-label":"Settings",onClick:a}),r,i]})})}function yt(){const e=se(),s=M({select:c=>O(c.location.pathname)}),n=M({select:c=>ne(c.location.search)}),[a,o]=u.useState(n),r=mt(a,200),[i,d]=u.useState(s);if(i!==s){const c=_e(i,s,n);d(s),c!==void 0&&o(c)}const m=u.useCallback(c=>{d(O(e.state.location.pathname)),o(c)},[e]);return{searchInput:a,committedQuery:Ke(a,r),viewKey:s,setSearchInput:m}}const St=()=>{const e=R();return oe()?null:t.jsx(xt,{onCompose:e})},jt=()=>t.jsx(Ze,{children:({email:e,signOut:s})=>t.jsx(ht,{email:e,onSignOut:s})});function Ct({accounts:e}){const{searchInput:s,onSearchChange:n,onSearchClear:a,onSearchClearQuery:o,resultFolderIndex:r}=ae(),i=Q(),d=rt(),m=R(),{scope:c,clearScope:x}=Ee(e),f=c.kind==="scoped"?[{id:c.chip.id,label:c.chip.label,tone:"scope"}]:void 0,p=u.useMemo(()=>e.map(b=>b.accountId),[e]),{hasNewMail:l}=Be(),{state:h,errorMessage:y,refresh:g}=He(p,{onSettled:()=>ie(i,ce(r.keys()))});return t.jsx(vt,{search:{value:s,scope:c.kind,chips:f,onChange:n,onClear:a,onClearQuery:o,onRemoveChip:x},onCompose:m,onReportBug:re,onOpenSettings:()=>d("accounts"),composeShortcut:Oe("compose"),refreshControl:t.jsx(Ve,{state:h,onRefresh:g,label:"Refresh all accounts",errorMessage:y,hasUpdate:l(p)}),account:t.jsx(jt,{})})}const Nt=({isOpen:e,onClose:s})=>{const n=u.useRef(null);return le({id:"shortcuts",open:e,answers:{back:s}}),ue(n,e),e?t.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[t.jsx(de,{label:"Dismiss keyboard shortcuts",onDismiss:s,className:"backdrop-blur-sm"}),t.jsxs("div",{ref:n,role:"dialog","aria-modal":"true","aria-label":"Keyboard shortcuts",tabIndex:-1,className:D("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:[t.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[t.jsx("h2",{className:"text-lg font-semibold",children:"Keyboard shortcuts"}),t.jsx("button",{type:"button",onClick:s,className:"p-1 text-fg-muted transition-colors hover:text-fg","aria-label":"Close",children:t.jsx(me,{className:"size-5"})})]}),t.jsx("div",{className:"grid gap-x-8 gap-y-6 sm:grid-cols-2",children:Te.map(a=>t.jsxs("div",{children:[t.jsx("h3",{className:"mb-3 text-sm font-medium text-fg-muted",children:a.title}),t.jsx("div",{className:"space-y-2",children:a.hints.map(o=>t.jsxs("div",{className:"flex items-center justify-between gap-4",children:[t.jsx("span",{className:"text-sm",children:o.description}),t.jsx("span",{className:"flex shrink-0 items-center gap-1",children:o.keys.map((r,i)=>t.jsxs(u.Fragment,{children:[i>0&&o.keys[0]==="g"&&t.jsx("span",{className:"text-2xs text-fg-subtle",children:"then"}),t.jsx(T,{children:r})]},r))})]},`${o.action}-${o.keys.join("+")}`))})]},a.title))}),t.jsx("div",{className:"mt-6 border-t border-line pt-4",children:t.jsxs("p",{className:"text-center text-xs text-fg-muted",children:["Press ",t.jsx(T,{children:"Esc"})," to close"]})})]})]}):null};function It(e){const s=ut({queries:e.map(n=>({...pe({path:{accountId:n.accountId}}),staleTime:1/0}))});return u.useMemo(()=>ke(s.map(n=>n.data?.items??[])),[s])}const _="remit:intelligence-open";function wt(){try{return localStorage.getItem(_)!=="closed"}catch{return!0}}function Mt(e){try{localStorage.setItem(_,e?"open":"closed")}catch{}}function k({panels:e,prefersOpen:s,isDesktop:n,hasThread:a,raisedFor:o,openMessage:r}){return o!==null&&o===r?!0:e.length>0?e.includes("intelligence"):n&&a&&s}const Pt=()=>{const e=K(),s=he(),n=fe(),a=s.find(xe),o=Le(),[r,i]=u.useState(wt),d=o?`${o.threadId}/${o.messageId??""}`:null,[m,c]=u.useState(null),x={panels:s,prefersOpen:r,isDesktop:e==="desktop",hasThread:o!==void 0,openMessage:d},f=k({...x,raisedFor:m}),p=k({...x,raisedFor:null}),l=u.useCallback((b,S)=>{n([...b?["intelligence"]:[],...S?[S]:[]])},[n]),h=u.useCallback(b=>{l(p,b)},[p,l]),y=u.useCallback(()=>{if(f&&!p){c(null);return}const b=!f;Mt(b),i(b),c(null),l(b,a)},[p,f,a,l]),g=u.useCallback(()=>{c(d)},[d]);return{openOverlay:a,intelligenceOpen:f,showOverlay:h,toggleIntelligence:y,raiseIntelligence:g}};var j={exports:{}},L;function Rt(){if(L)return j.exports;L=1;const e=(s,n,a)=>new Promise((o,r)=>{if(a=Object.assign({concurrency:1/0},a),typeof n!="function")throw new TypeError("Mapper function is required");const{concurrency:i}=a;if(!(typeof i=="number"&&i>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${i}\` (${typeof i})`);const d=[],m=s[Symbol.iterator]();let c=!1,x=!1,f=0,p=0;const l=()=>{if(c)return;const h=m.next(),y=p;if(p++,h.done){x=!0,f===0&&o(d);return}f++,Promise.resolve(h.value).then(g=>n(g,y)).then(g=>{d[y]=g,f--,l()},g=>{c=!0,r(g)})};for(let h=0;h<i&&(l(),!x);h++);});return j.exports=e,j.exports.default=e,j.exports}var Et=Rt();const Ot=ge(Et),Tt=900*1e3,kt=30,Lt=(e,s)=>{if(!e)return s;const n=Number.parseInt(e,10);return Number.isFinite(n)&&n>0?n:s},At=30*1e3,Ft=e=>Math.max(Lt(e,kt)*1e3,At),z=Ft(je().mailboxPollIntervalSeconds),C=(e=Date.now(),s=z)=>$e(e)?Math.min(Ge,s):s,Dt=5,P=new Set,Qt=(e,s,n=Tt)=>e.filter(a=>{const o=a.lastSyncAt;return o==null?!0:s-o>n}).map(a=>a.accountId),Kt=(e,s,n=z)=>e-s>=n,_t=(e,s)=>e.filter(n=>!s.has(n)),A=(e,s)=>{if(P.delete(e),ye(s,{softError:!0},"nobody")){Se(s);return}console.warn("[remit] background mailbox sync failed",{accountId:e,error:s})},F=(e,s)=>be({path:{accountId:e},throwOnError:!0}).then(()=>{s.invalidateQueries({queryKey:ve({path:{accountId:e}})})}),zt=e=>{const s=Q(),n=u.useRef(e);n.current=e;const a=e.map(o=>o.accountId).join(",");u.useEffect(()=>{const o=Date.now(),i=Qt(n.current,o).filter(d=>!P.has(d));if(i.length!==0)for(const d of i)P.add(d),F(d,s).catch(m=>{A(d,m)})},[a,s]),u.useEffect(()=>{let o=Date.now(),r;const i=new Set,d=()=>{o=Date.now();const p=_t(n.current.map(l=>l.accountId),i);for(const l of p)i.add(l);Ot(p,l=>F(l,s).catch(h=>{A(l,h)}).finally(()=>{i.delete(l)}),{concurrency:Dt})},m=()=>{if(document.visibilityState==="visible"){d(),r=setTimeout(m,C());return}},c=()=>{if(document.visibilityState!=="visible")return;r!==void 0&&clearTimeout(r);const p=Date.now(),l=C(p);if(Kt(p,o,l)){d(),r=setTimeout(m,l);return}r=setTimeout(m,o+l-p)},x=()=>{document.visibilityState==="visible"&&(r!==void 0&&clearTimeout(r),o=Date.now(),r=setTimeout(m,C()))};r=setTimeout(m,C()),document.addEventListener("visibilitychange",c);const f=qe(x);return()=>{r!==void 0&&clearTimeout(r),document.removeEventListener("visibilitychange",c),f()}},[a,s])};function bs(){const e=Ce(),s=K(),n=lt(s),{openOverlay:a,intelligenceOpen:o,showOverlay:r,toggleIntelligence:i,raiseIntelligence:d}=Pt(),m=a==="shortcuts",c=a==="nav",{searchInput:x,committedQuery:f,viewKey:p,setSearchInput:l}=yt(),{data:h,isLoading:y,isError:g,error:b,refetch:S}=Ne({...Ie(),staleTime:1/0}),I=!!(h&&(h.accounts?.length??0)===0);u.useEffect(()=>{I&&e({to:"/onboarding",replace:!0})},[I,e]),ct({enabled:!m,bindings:[{key:"?",action:"help",handler:()=>r("shortcuts"),noModifiers:!1,preventDefault:!0}]});const E=R(),B=Qe(),H=M({select:w=>Pe(w.matches)?.list==="mailbox"}),V=u.useMemo(()=>({compose:E}),[E]);Ae({enabled:!H&&!B,handlers:V});const q=u.useCallback(()=>{l("")},[l]),$=u.useCallback(()=>{l("")},[l]),v=h?.accounts??[],G=u.useMemo(()=>v.map(w=>w.accountId),[v]),U=It(v),W=dt(v).index,Y=u.useMemo(()=>Fe(v),[v]);zt(v);const J=u.useCallback(()=>{a==="nav"&&r(void 0)},[a,r]),X={accounts:v,mailboxNameIndex:U,accountNameIndex:Y,resultFolderIndex:W,searchQuery:f,searchInput:x,searchViewKey:p,onSearchChange:l,onSearchClear:q,onSearchClearQuery:$,intelligenceOpen:o,onToggleIntelligence:i,onRaiseIntelligence:d},Z={isSinglePane:n,isLoading:y||I,intelligenceOpen:o,nav:t.jsx(et,{accounts:v,onMailboxSelect:J}),topBar:n?void 0:t.jsx(Ct,{accounts:v}),overlay:n?t.jsx(St,{}):void 0,navOpen:c,onOpenNav:()=>r("nav"),onCloseNav:()=>r(void 0)};return t.jsx(we.Provider,{value:X,children:t.jsxs(Ue,{accountIds:G,children:[g?t.jsx("div",{className:"flex h-full items-center justify-center bg-canvas p-4",children:t.jsx(it,{title:"Couldn't load your account",error:b,onRetry:()=>{S()}})}):t.jsx(ze,{chrome:Z,children:t.jsx(Me,{})}),t.jsx(Nt,{isOpen:m,onClose:()=>r(void 0)})]})})}export{bs as component,ae as useMailContext};
1
+ import{e as ee,r as u,j as t,t as D,v as te,f as N,w as se,x as M,y as O,z as ne,A as oe,C as ae,h as Q,D as re,E as ie,F as ce,G as le,H as ue,J as de,X as me,K as pe,a as he,b as fe,M as xe,N as ge,P as be,Q as ve,R as ye,S as Se,T as je,u as Ce,c as Ne,d as Ie,U as we,O as Me,V as Pe}from"./index-DdgwCJ4v.js";import{S as Re,u as Ee,s as Oe,K as Te,b as ke,a as Le,c as Ae,d as Fe}from"./search-token-index-Dbim5YtJ.js";import{P as De}from"./pencil-DxSaFuJ4.js";import{u as R,a as Qe}from"./useMessageBodyContent-DRTP4wa0.js";import{c as Ke,s as _e,M as ze}from"./MailShell-C7XYJEOC.js";import{u as Be,a as He,R as Ve,s as qe,i as $e,H as Ge,M as Ue}from"./useRefreshControl-BQetpFZ3.js";import{M as We}from"./menu-DeD_0Sd1.js";import{B as Ye}from"./bug-BXkTcnP3.js";import{L as Je,S as Xe,A as Ze,M as et}from"./MailNav-3iRwz5bx.js";import{A as tt}from"./avatar-DD62C_eL.js";import{u as st,P as nt,a as ot,b as at}from"./popover-menu-4krm3dWT.js";import{u as rt}from"./sections-BHPkRjh5.js";import{E as it}from"./ErrorState-DmeOZx31.js";import{K as T}from"./kbd-DKvs5BdK.js";import{u as ct}from"./index-DOsp5wL9.js";import{u as K,i as lt}from"./useLayoutTier-CbC-hQRr.js";import{u as ut}from"./useQueries-B9KsAw6v.js";import{u as dt}from"./useResultFolderIndex-IoXcSy-p.js";import{u as mt}from"./useDebouncedValue-DvXNnDTh.js";import"./search-scope-B5-OK3Cq.js";import"./FullCompose-C4K-ff_q.js";import"./confirm-dialog-CgLhcr4g.js";import"./circle-check-big-CM7pZZbV.js";import"./refresh-cw-C_o59REw.js";import"./roving-focus-wLsuSVCZ.js";import"./bell-off-CsR58N8X.js";import"./folder-failure-CqkVSsrb.js";import"./outbox-status-BlKn6P0x.js";import"./useSignature-Cbp58mOz.js";import"./account-form-helpers-DhckT_PN.js";const pt=ee("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"}]]);function ht({email:e,onSignOut:s}){const n=u.useRef(null),{open:a,setOpen:o,containerRef:r,panelRef:i,getAnchor:d}=st("account-menu",()=>n.current?.focus());u.useEffect(()=>{if(!a)return;const c=requestAnimationFrame(()=>i.current?.querySelector('[role="menuitem"]')?.focus());return()=>cancelAnimationFrame(c)},[a,i]);const m=e??"Account";return t.jsxs("div",{ref:r,className:"relative",children:[t.jsx("button",{ref:n,type:"button","aria-label":"Account","aria-haspopup":"menu","aria-expanded":a,onClick:()=>o(c=>!c),className:"inline-flex min-h-11 min-w-11 items-center justify-center rounded-md p-1.5 text-fg-muted transition-colors hover:bg-surface-raised hover:text-fg",children:t.jsx(tt,{name:m,email:e??void 0,size:"sm"})}),t.jsx(nt,{open:a,align:"end",panelRef:i,getAnchor:d,children:t.jsxs(ot,{ref:i,label:m,children:[e&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"truncate px-4 py-2 text-xs text-fg-muted",title:e,"data-testid":"account-menu-email",children:e}),t.jsx("hr",{className:"my-1 h-px border-0 bg-line"})]}),t.jsx(at,{label:"Sign out",icon:t.jsx(Je,{className:"size-4"}),onSelect:()=>{o(!1),n.current?.focus(),s()}})]})})]})}function ft({leading:e,search:s,actions:n,className:a}){return t.jsxs("header",{className:D("flex min-h-pane-header w-full shrink-0 items-center gap-2 border-b border-line bg-canvas px-row-inset py-1",a),children:[e&&t.jsx("div",{className:"flex shrink-0 items-center gap-1",children:e}),t.jsx("div",{className:"flex min-w-0 flex-1 justify-start",children:t.jsx("div",{className:"w-full max-w-xs transition-[max-width] duration-150 ease-out focus-within:max-w-lg",children:s})}),n&&t.jsx("div",{className:"flex shrink-0 items-center gap-1",children:n})]})}function xt({onCompose:e}){return t.jsx("button",{type:"button",onClick:e,"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:t.jsx(De,{className:"size-6"})})}function gt(){const e=te();if(!e)return null;const s=e.showNavPane?!e.navCollapsed:!1;return t.jsx(N,{variant:"ghost",size:"sm",icon:t.jsx(We,{className:"size-4"}),onClick:e.toggleNav,"aria-label":s?"Hide folders":"Show folders","aria-expanded":s,title:"Folders",className:"shrink-0"})}const bt={global:"Search all mail",pending:"Search mail",scoped:"Search this folder"};function vt({search:e,onCompose:s,onReportBug:n,onOpenSettings:a,composeShortcut:o,refreshControl:r,account:i}){return t.jsx(ft,{leading:t.jsx(gt,{}),search:t.jsx(Re,{value:e.value,onChange:e.onChange,onClear:e.onClear,onClearQuery:e.onClearQuery,chips:e.chips,onRemoveChip:e.onRemoveChip,placeholder:bt[e.scope]}),actions:t.jsxs(t.Fragment,{children:[t.jsx(N,{variant:"ghost",size:"sm",icon:t.jsx(pt,{className:"size-4"}),title:o?`Compose (${o})`:"Compose","aria-label":"Compose",onClick:s}),t.jsx(N,{variant:"ghost",size:"sm",icon:t.jsx(Ye,{className:"size-4"}),title:"Report a bug","aria-label":"Report a bug",onClick:n}),t.jsx(N,{variant:"ghost",size:"sm",icon:t.jsx(Xe,{className:"size-4"}),title:"Settings","aria-label":"Settings",onClick:a}),r,i]})})}function yt(){const e=se(),s=M({select:c=>O(c.location.pathname)}),n=M({select:c=>ne(c.location.search)}),[a,o]=u.useState(n),r=mt(a,200),[i,d]=u.useState(s);if(i!==s){const c=_e(i,s,n);d(s),c!==void 0&&o(c)}const m=u.useCallback(c=>{d(O(e.state.location.pathname)),o(c)},[e]);return{searchInput:a,committedQuery:Ke(a,r),viewKey:s,setSearchInput:m}}const St=()=>{const e=R();return oe()?null:t.jsx(xt,{onCompose:e})},jt=()=>t.jsx(Ze,{children:({email:e,signOut:s})=>t.jsx(ht,{email:e,onSignOut:s})});function Ct({accounts:e}){const{searchInput:s,onSearchChange:n,onSearchClear:a,onSearchClearQuery:o,resultFolderIndex:r}=ae(),i=Q(),d=rt(),m=R(),{scope:c,clearScope:x}=Ee(e),f=c.kind==="scoped"?[{id:c.chip.id,label:c.chip.label,tone:"scope"}]:void 0,p=u.useMemo(()=>e.map(b=>b.accountId),[e]),{hasNewMail:l}=Be(),{state:h,errorMessage:y,refresh:g}=He(p,{onSettled:()=>ie(i,ce(r.keys()))});return t.jsx(vt,{search:{value:s,scope:c.kind,chips:f,onChange:n,onClear:a,onClearQuery:o,onRemoveChip:x},onCompose:m,onReportBug:re,onOpenSettings:()=>d("accounts"),composeShortcut:Oe("compose"),refreshControl:t.jsx(Ve,{state:h,onRefresh:g,label:"Refresh all accounts",errorMessage:y,hasUpdate:l(p)}),account:t.jsx(jt,{})})}const Nt=({isOpen:e,onClose:s})=>{const n=u.useRef(null);return le({id:"shortcuts",open:e,answers:{back:s}}),ue(n,e),e?t.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[t.jsx(de,{label:"Dismiss keyboard shortcuts",onDismiss:s,className:"backdrop-blur-sm"}),t.jsxs("div",{ref:n,role:"dialog","aria-modal":"true","aria-label":"Keyboard shortcuts",tabIndex:-1,className:D("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:[t.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[t.jsx("h2",{className:"text-lg font-semibold",children:"Keyboard shortcuts"}),t.jsx("button",{type:"button",onClick:s,className:"p-1 text-fg-muted transition-colors hover:text-fg","aria-label":"Close",children:t.jsx(me,{className:"size-5"})})]}),t.jsx("div",{className:"grid gap-x-8 gap-y-6 sm:grid-cols-2",children:Te.map(a=>t.jsxs("div",{children:[t.jsx("h3",{className:"mb-3 text-sm font-medium text-fg-muted",children:a.title}),t.jsx("div",{className:"space-y-2",children:a.hints.map(o=>t.jsxs("div",{className:"flex items-center justify-between gap-4",children:[t.jsx("span",{className:"text-sm",children:o.description}),t.jsx("span",{className:"flex shrink-0 items-center gap-1",children:o.keys.map((r,i)=>t.jsxs(u.Fragment,{children:[i>0&&o.keys[0]==="g"&&t.jsx("span",{className:"text-2xs text-fg-subtle",children:"then"}),t.jsx(T,{children:r})]},r))})]},`${o.action}-${o.keys.join("+")}`))})]},a.title))}),t.jsx("div",{className:"mt-6 border-t border-line pt-4",children:t.jsxs("p",{className:"text-center text-xs text-fg-muted",children:["Press ",t.jsx(T,{children:"Esc"})," to close"]})})]})]}):null};function It(e){const s=ut({queries:e.map(n=>({...pe({path:{accountId:n.accountId}}),staleTime:1/0}))});return u.useMemo(()=>ke(s.map(n=>n.data?.items??[])),[s])}const _="remit:intelligence-open";function wt(){try{return localStorage.getItem(_)!=="closed"}catch{return!0}}function Mt(e){try{localStorage.setItem(_,e?"open":"closed")}catch{}}function k({panels:e,prefersOpen:s,isDesktop:n,hasThread:a,raisedFor:o,openMessage:r}){return o!==null&&o===r?!0:e.length>0?e.includes("intelligence"):n&&a&&s}const Pt=()=>{const e=K(),s=he(),n=fe(),a=s.find(xe),o=Le(),[r,i]=u.useState(wt),d=o?`${o.threadId}/${o.messageId??""}`:null,[m,c]=u.useState(null),x={panels:s,prefersOpen:r,isDesktop:e==="desktop",hasThread:o!==void 0,openMessage:d},f=k({...x,raisedFor:m}),p=k({...x,raisedFor:null}),l=u.useCallback((b,S)=>{n([...b?["intelligence"]:[],...S?[S]:[]])},[n]),h=u.useCallback(b=>{l(p,b)},[p,l]),y=u.useCallback(()=>{if(f&&!p){c(null);return}const b=!f;Mt(b),i(b),c(null),l(b,a)},[p,f,a,l]),g=u.useCallback(()=>{c(d)},[d]);return{openOverlay:a,intelligenceOpen:f,showOverlay:h,toggleIntelligence:y,raiseIntelligence:g}};var j={exports:{}},L;function Rt(){if(L)return j.exports;L=1;const e=(s,n,a)=>new Promise((o,r)=>{if(a=Object.assign({concurrency:1/0},a),typeof n!="function")throw new TypeError("Mapper function is required");const{concurrency:i}=a;if(!(typeof i=="number"&&i>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${i}\` (${typeof i})`);const d=[],m=s[Symbol.iterator]();let c=!1,x=!1,f=0,p=0;const l=()=>{if(c)return;const h=m.next(),y=p;if(p++,h.done){x=!0,f===0&&o(d);return}f++,Promise.resolve(h.value).then(g=>n(g,y)).then(g=>{d[y]=g,f--,l()},g=>{c=!0,r(g)})};for(let h=0;h<i&&(l(),!x);h++);});return j.exports=e,j.exports.default=e,j.exports}var Et=Rt();const Ot=ge(Et),Tt=900*1e3,kt=30,Lt=(e,s)=>{if(!e)return s;const n=Number.parseInt(e,10);return Number.isFinite(n)&&n>0?n:s},At=30*1e3,Ft=e=>Math.max(Lt(e,kt)*1e3,At),z=Ft(je().mailboxPollIntervalSeconds),C=(e=Date.now(),s=z)=>$e(e)?Math.min(Ge,s):s,Dt=5,P=new Set,Qt=(e,s,n=Tt)=>e.filter(a=>{const o=a.lastSyncAt;return o==null?!0:s-o>n}).map(a=>a.accountId),Kt=(e,s,n=z)=>e-s>=n,_t=(e,s)=>e.filter(n=>!s.has(n)),A=(e,s)=>{if(P.delete(e),ye(s,{softError:!0},"nobody")){Se(s);return}console.warn("[remit] background mailbox sync failed",{accountId:e,error:s})},F=(e,s)=>be({path:{accountId:e},throwOnError:!0}).then(()=>{s.invalidateQueries({queryKey:ve({path:{accountId:e}})})}),zt=e=>{const s=Q(),n=u.useRef(e);n.current=e;const a=e.map(o=>o.accountId).join(",");u.useEffect(()=>{const o=Date.now(),i=Qt(n.current,o).filter(d=>!P.has(d));if(i.length!==0)for(const d of i)P.add(d),F(d,s).catch(m=>{A(d,m)})},[a,s]),u.useEffect(()=>{let o=Date.now(),r;const i=new Set,d=()=>{o=Date.now();const p=_t(n.current.map(l=>l.accountId),i);for(const l of p)i.add(l);Ot(p,l=>F(l,s).catch(h=>{A(l,h)}).finally(()=>{i.delete(l)}),{concurrency:Dt})},m=()=>{if(document.visibilityState==="visible"){d(),r=setTimeout(m,C());return}},c=()=>{if(document.visibilityState!=="visible")return;r!==void 0&&clearTimeout(r);const p=Date.now(),l=C(p);if(Kt(p,o,l)){d(),r=setTimeout(m,l);return}r=setTimeout(m,o+l-p)},x=()=>{document.visibilityState==="visible"&&(r!==void 0&&clearTimeout(r),o=Date.now(),r=setTimeout(m,C()))};r=setTimeout(m,C()),document.addEventListener("visibilitychange",c);const f=qe(x);return()=>{r!==void 0&&clearTimeout(r),document.removeEventListener("visibilitychange",c),f()}},[a,s])};function bs(){const e=Ce(),s=K(),n=lt(s),{openOverlay:a,intelligenceOpen:o,showOverlay:r,toggleIntelligence:i,raiseIntelligence:d}=Pt(),m=a==="shortcuts",c=a==="nav",{searchInput:x,committedQuery:f,viewKey:p,setSearchInput:l}=yt(),{data:h,isLoading:y,isError:g,error:b,refetch:S}=Ne({...Ie(),staleTime:1/0}),I=!!(h&&(h.accounts?.length??0)===0);u.useEffect(()=>{I&&e({to:"/onboarding",replace:!0})},[I,e]),ct({enabled:!m,bindings:[{key:"?",action:"help",handler:()=>r("shortcuts"),noModifiers:!1,preventDefault:!0}]});const E=R(),B=Qe(),H=M({select:w=>Pe(w.matches)?.list==="mailbox"}),V=u.useMemo(()=>({compose:E}),[E]);Ae({enabled:!H&&!B,handlers:V});const q=u.useCallback(()=>{l("")},[l]),$=u.useCallback(()=>{l("")},[l]),v=h?.accounts??[],G=u.useMemo(()=>v.map(w=>w.accountId),[v]),U=It(v),W=dt(v).index,Y=u.useMemo(()=>Fe(v),[v]);zt(v);const J=u.useCallback(()=>{a==="nav"&&r(void 0)},[a,r]),X={accounts:v,mailboxNameIndex:U,accountNameIndex:Y,resultFolderIndex:W,searchQuery:f,searchInput:x,searchViewKey:p,onSearchChange:l,onSearchClear:q,onSearchClearQuery:$,intelligenceOpen:o,onToggleIntelligence:i,onRaiseIntelligence:d},Z={isSinglePane:n,isLoading:y||I,intelligenceOpen:o,nav:t.jsx(et,{accounts:v,onMailboxSelect:J}),topBar:n?void 0:t.jsx(Ct,{accounts:v}),overlay:n?t.jsx(St,{}):void 0,navOpen:c,onOpenNav:()=>r("nav"),onCloseNav:()=>r(void 0)};return t.jsx(we.Provider,{value:X,children:t.jsxs(Ue,{accountIds:G,children:[g?t.jsx("div",{className:"flex h-full items-center justify-center bg-canvas p-4",children:t.jsx(it,{title:"Couldn't load your account",error:b,onRetry:()=>{S()}})}):t.jsx(ze,{chrome:Z,children:t.jsx(Me,{})}),t.jsx(Nt,{isOpen:m,onClose:()=>r(void 0)})]})})}export{bs as component,ae as useMailContext};
@@ -1 +1 @@
1
- import{e}from"./index-DKo99WG1.js";const a=e("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);export{a as M};
1
+ import{e}from"./index-DdgwCJ4v.js";const a=e("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);export{a as M};
@@ -0,0 +1 @@
1
+ import{e as c}from"./index-DdgwCJ4v.js";const a=c("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);const r=c("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);export{a as G,r as M};
@@ -1 +1 @@
1
- import{e}from"./index-DKo99WG1.js";const n=e("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);export{n as M};
1
+ import{e}from"./index-DdgwCJ4v.js";const n=e("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);export{n as M};
@@ -0,0 +1 @@
1
+ import{e}from"./index-DdgwCJ4v.js";const a=e("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);export{a as M};
@@ -1 +1 @@
1
- import{r as i,j as c}from"./index-DKo99WG1.js";import{e as y,u as g,C as E,c as b}from"./CalendarComposePane-FU6MwnAy.js";import{u as x}from"./CalendarComposeSeed-Ddue6yGg.js";import{u as I,f as T,U as k,d as w}from"./useCalendars-sfh2BICi.js";import{a as N}from"./useCalendarWrites-qcdW_JmG.js";import{u as S,n as j}from"./calendar-format-CyOmp12n.js";import"./calendar-clash-strip-AV6ir0kb.js";import"./ErrorState-CHxEHbvf.js";import"./useQueries-CY9FUcC8.js";function A({onClose:n}){const{date:m}=S(),a=x(),{calendars:u,timeZoneByCalendarId:f}=I(),d=u.filter(e=>!e.readOnly),{createEvent:p,isWriting:C}=N(),[D,r]=i.useState(""),[t,l]=i.useState(()=>{const e=y(a?.date??m,"");return a?{...e,allDay:a.allDay,startTime:a.allDay?"":a.startTime,endDate:a.endDate,endTime:a.allDay?"":a.endTime}:e}),h=g(t),s=d[0]?.id??"";i.useEffect(()=>{s!==""&&l(e=>e.calendarId===""?{...e,calendarId:s}:e)},[s]);const v=()=>{const e=b(t,{clock:w(),anchor:T(f[t.calendarId]??k)});if(!e.ok){r(e.problem);return}p(e.input).then(o=>{if(o.kind==="written"){r(""),n();return}r(o.kind==="conflict"?"This calendar changed while you were writing. Close the form and try again.":o.message)})};return c.jsx(E,{title:"New event",subtitle:t.date,calendars:d,draft:t,onChange:l,problem:D,saveLabel:"Add",isSaving:C,clashes:h,onSave:v,onCancel:n})}function _(){const{closeEvent:n}=j();return c.jsx(A,{onClose:n})}export{_ as component};
1
+ import{r as i,j as c}from"./index-DdgwCJ4v.js";import{e as y,u as g,C as E,c as b}from"./CalendarComposePane-C9l0zjP2.js";import{u as x}from"./CalendarComposeSeed-CJm8rCY9.js";import{u as I,f as T,U as k,d as w}from"./useCalendars-BLmllCqQ.js";import{a as N}from"./useCalendarWrites-DUx11oF3.js";import{u as S,n as j}from"./calendar-format-C1OfWDS9.js";import"./calendar-clash-strip-CkUcFznp.js";import"./ErrorState-DmeOZx31.js";import"./useQueries-B9KsAw6v.js";function A({onClose:n}){const{date:m}=S(),a=x(),{calendars:u,timeZoneByCalendarId:f}=I(),d=u.filter(e=>!e.readOnly),{createEvent:p,isWriting:C}=N(),[D,r]=i.useState(""),[t,l]=i.useState(()=>{const e=y(a?.date??m,"");return a?{...e,allDay:a.allDay,startTime:a.allDay?"":a.startTime,endDate:a.endDate,endTime:a.allDay?"":a.endTime}:e}),h=g(t),s=d[0]?.id??"";i.useEffect(()=>{s!==""&&l(e=>e.calendarId===""?{...e,calendarId:s}:e)},[s]);const v=()=>{const e=b(t,{clock:w(),anchor:T(f[t.calendarId]??k)});if(!e.ok){r(e.problem);return}p(e.input).then(o=>{if(o.kind==="written"){r(""),n();return}r(o.kind==="conflict"?"This calendar changed while you were writing. Close the form and try again.":o.message)})};return c.jsx(E,{title:"New event",subtitle:t.date,calendars:d,draft:t,onChange:l,problem:D,saveLabel:"Add",isSaving:C,clashes:h,onSave:v,onCancel:n})}function _(){const{closeEvent:n}=j();return c.jsx(A,{onClose:n})}export{_ as component};
@@ -0,0 +1 @@
1
+ import{q as i,h as n,u as a,r as m,j as s}from"./index-DdgwCJ4v.js";import{O as p}from"./OnboardingWizard-Dyv1Jm6j.js";import{c}from"./onboarding-completion-D4p2yV8X.js";import"./checkbox-DNsJWnQ9.js";import"./minus-0VqQt5wq.js";import"./kbd-DKvs5BdK.js";import"./credential-steps-CnFqc5oP.js";import"./card-DggbFcQC.js";import"./account-form-helpers-DhckT_PN.js";import"./mail-CRm24o3R.js";import"./file-json-DKDhkzal.js";function E(){const o=i(),t=n(),e=a(),r=m.useCallback(l=>{c({queryClient:t,recordCompleted:()=>o.recordEvent("onboarding.completed"),navigateToInbox:()=>{window.location.assign("/mail")}})},[o,t]);return s.jsx(p,{skipWelcome:!1,onComplete:r,onImportConfig:()=>{e({to:"/import"})}})}export{E as component};
@@ -1 +1 @@
1
- import{o}from"./index-DKo99WG1.js";async function n(e){e.recordCompleted(),await e.queryClient.refetchQueries({queryKey:o()}),e.navigateToInbox()}export{n as c};
1
+ import{o}from"./index-DdgwCJ4v.js";async function n(e){e.recordCompleted(),await e.queryClient.refetchQueries({queryKey:o()}),e.navigateToInbox()}export{n as c};
@@ -0,0 +1 @@
1
+ import{j as o,O as i}from"./index-DdgwCJ4v.js";import{a as m}from"./MailShell-C7XYJEOC.js";import{u as p,O as t}from"./OutboxPane--7u1PWnp.js";import{u as s}from"./search-mirror-7ZjhpyaP.js";import"./FullCompose-C4K-ff_q.js";import"./ErrorState-DmeOZx31.js";import"./index-DOsp5wL9.js";import"./useMessageBodyContent-DRTP4wa0.js";import"./useSignature-Cbp58mOz.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-DvXNnDTh.js";import"./sections-BHPkRjh5.js";import"./confirm-dialog-CgLhcr4g.js";import"./roving-focus-wLsuSVCZ.js";import"./useSearchTokenContext-DMIJPqzA.js";import"./kbd-DKvs5BdK.js";import"./search-scope-B5-OK3Cq.js";import"./circle-check-big-CM7pZZbV.js";import"./clock-B3HY3HEG.js";import"./row-actions-CsDIFX2Z.js";import"./rotate-ccw-C7hQnwfM.js";import"./pane-header-DCDDVSaQ.js";import"./NavMenuButton-B4_xZcAo.js";import"./menu-DeD_0Sd1.js";import"./outbox-status-BlKn6P0x.js";import"./search-query-Cr_ZXBCp.js";function w(){const r=p();return s({to:"/mail/outbox"}),o.jsx(t,{outboxMessageId:r,children:o.jsx(m,{phone:o.jsx(t.Phone,{}),list:o.jsx(t.List,{}),reading:o.jsx(i,{})})})}export{w as component};
@@ -1 +1 @@
1
- import{j as r,t as a}from"./index-DKo99WG1.js";function o({title:e,leading:s,children:n,className:t}){return r.jsxs("header",{className:a("flex h-pane-header shrink-0 items-center gap-2 border-b border-line px-row-inset",t),children:[s,e!==void 0&&r.jsx("h1",{className:"min-w-0 flex-1 truncate text-sm font-semibold text-fg",children:e}),n]})}export{o as P};
1
+ import{j as r,t as a}from"./index-DdgwCJ4v.js";function o({title:e,leading:s,children:n,className:t}){return r.jsxs("header",{className:a("flex h-pane-header shrink-0 items-center gap-2 border-b border-line px-row-inset",t),children:[s,e!==void 0&&r.jsx("h1",{className:"min-w-0 flex-1 truncate text-sm font-semibold text-fg",children:e}),n]})}export{o as P};
@@ -1 +1 @@
1
- import{e as a}from"./index-DKo99WG1.js";const c=a("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);export{c as P};
1
+ import{e as a}from"./index-DdgwCJ4v.js";const c=a("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);export{c as P};
@@ -1 +1 @@
1
- import{e as y,r as f,G as E,bY as P,j as a,t as b,f as R}from"./index-DKo99WG1.js";const j=y("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),g=4,v=8;function k(e,t,n){const o=Math.max(v,window.innerWidth-t.width-v),r=n==="end"?e.right-t.width:e.left,s=Math.min(Math.max(r,v),o),c=e.bottom+g,i=e.top-g-t.height,d=c+t.height<=window.innerHeight-v||i<v?c:i;return{left:s,top:d}}function L(e,t,n,o){const[r,s]=f.useState(null),c=f.useRef(o);return c.current=o,f.useLayoutEffect(()=>{if(!t){s(null);return}const i=()=>{const x=e.current,h=c.current();if(!x||!h)return;const m=x.getBoundingClientRect(),w={width:m.right-m.left,height:m.bottom-m.top},p=k(h,w,n);s(l=>l?.left===p.left&&l.top===p.top?l:{position:"fixed",left:p.left,top:p.top})};i(),window.addEventListener("resize",i),window.addEventListener("scroll",i,!0);const u=e.current;let d=null;return u&&typeof ResizeObserver<"u"&&(d=new ResizeObserver(i),d.observe(u)),()=>{d?.disconnect(),window.removeEventListener("resize",i),window.removeEventListener("scroll",i,!0)}},[t,n,e]),r}function z(e,t){const[n,o]=f.useState(!1),r=f.useRef(null),s=f.useRef(null);return E({id:e,open:n,answers:{back:()=>{o(!1),t?.()}}}),f.useEffect(()=>{if(!n)return;const c=i=>{const u=i.target;r.current?.contains(u)||s.current?.contains(u)||o(!1)};return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[n]),{open:n,setOpen:o,containerRef:r,panelRef:s,getAnchor:()=>r.current?.getBoundingClientRect()??null}}function M({open:e,align:t="start",getAnchor:n,panelRef:o,children:r}){const s=L(o,e,t,n);return e?P.createPortal(a.jsx("div",{className:"z-50",style:s??{position:"fixed",visibility:"hidden"},children:r}),document.body):null}function N({label:e,children:t,className:n,ref:o,onKeyDown:r,"data-testid":s}){return a.jsx("div",{ref:o,role:"menu","aria-label":e,tabIndex:-1,onKeyDown:r,"data-testid":s,className:b("z-50 flex max-h-[60dvh] min-w-44 flex-col overflow-y-auto overscroll-contain rounded-md border border-line bg-surface py-1 shadow-lg outline-none",n),children:t})}function O({label:e,icon:t,onSelect:n,className:o,lang:r,"data-testid":s}){return a.jsxs("button",{type:"button",role:"menuitem",lang:r,onClick:n,"data-testid":s,className:b("flex min-h-11 items-center gap-3 px-4 py-2.5 text-left text-sm text-fg transition-colors hover:bg-surface-sunken",o),children:[t&&a.jsx("span",{className:"shrink-0 text-fg-subtle",children:t}),e]})}function A({triggerLabel:e,triggerIcon:t,triggerText:n,items:o,align:r="end",touch:s=!0,className:c,triggerClassName:i,nested:u=!1,children:d}){const{open:x,setOpen:h,containerRef:m,panelRef:w,getAnchor:p}=z("popover-menu");return o.length===0&&!d?null:a.jsxs("div",{ref:m,className:b("relative",c),...u?{role:"none"}:{},children:[a.jsx(R,{variant:"ghost",size:"sm",icon:t??a.jsx(j,{className:"size-5"}),onClick:()=>h(l=>!l),"aria-label":e,"aria-haspopup":"menu","aria-expanded":x,...u?{role:"menuitem"}:{},className:b(s&&"min-h-11 min-w-11 px-0",i),children:n}),a.jsx(M,{open:x,align:r,panelRef:w,getAnchor:p,children:a.jsxs(N,{ref:w,children:[o.map(l=>a.jsx(O,{label:l.label,icon:l.icon,onSelect:()=>{h(!1),l.onSelect()}},l.key)),d]})})]})}export{j as E,M as P,N as a,O as b,A as c,z as u};
1
+ import{e as y,r as f,G as E,bY as P,j as a,t as b,f as R}from"./index-DdgwCJ4v.js";const j=y("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),g=4,v=8;function k(e,t,n){const o=Math.max(v,window.innerWidth-t.width-v),r=n==="end"?e.right-t.width:e.left,s=Math.min(Math.max(r,v),o),c=e.bottom+g,i=e.top-g-t.height,d=c+t.height<=window.innerHeight-v||i<v?c:i;return{left:s,top:d}}function L(e,t,n,o){const[r,s]=f.useState(null),c=f.useRef(o);return c.current=o,f.useLayoutEffect(()=>{if(!t){s(null);return}const i=()=>{const x=e.current,h=c.current();if(!x||!h)return;const m=x.getBoundingClientRect(),w={width:m.right-m.left,height:m.bottom-m.top},p=k(h,w,n);s(l=>l?.left===p.left&&l.top===p.top?l:{position:"fixed",left:p.left,top:p.top})};i(),window.addEventListener("resize",i),window.addEventListener("scroll",i,!0);const u=e.current;let d=null;return u&&typeof ResizeObserver<"u"&&(d=new ResizeObserver(i),d.observe(u)),()=>{d?.disconnect(),window.removeEventListener("resize",i),window.removeEventListener("scroll",i,!0)}},[t,n,e]),r}function z(e,t){const[n,o]=f.useState(!1),r=f.useRef(null),s=f.useRef(null);return E({id:e,open:n,answers:{back:()=>{o(!1),t?.()}}}),f.useEffect(()=>{if(!n)return;const c=i=>{const u=i.target;r.current?.contains(u)||s.current?.contains(u)||o(!1)};return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[n]),{open:n,setOpen:o,containerRef:r,panelRef:s,getAnchor:()=>r.current?.getBoundingClientRect()??null}}function M({open:e,align:t="start",getAnchor:n,panelRef:o,children:r}){const s=L(o,e,t,n);return e?P.createPortal(a.jsx("div",{className:"z-50",style:s??{position:"fixed",visibility:"hidden"},children:r}),document.body):null}function N({label:e,children:t,className:n,ref:o,onKeyDown:r,"data-testid":s}){return a.jsx("div",{ref:o,role:"menu","aria-label":e,tabIndex:-1,onKeyDown:r,"data-testid":s,className:b("z-50 flex max-h-[60dvh] min-w-44 flex-col overflow-y-auto overscroll-contain rounded-md border border-line bg-surface py-1 shadow-lg outline-none",n),children:t})}function O({label:e,icon:t,onSelect:n,className:o,lang:r,"data-testid":s}){return a.jsxs("button",{type:"button",role:"menuitem",lang:r,onClick:n,"data-testid":s,className:b("flex min-h-11 items-center gap-3 px-4 py-2.5 text-left text-sm text-fg transition-colors hover:bg-surface-sunken",o),children:[t&&a.jsx("span",{className:"shrink-0 text-fg-subtle",children:t}),e]})}function A({triggerLabel:e,triggerIcon:t,triggerText:n,items:o,align:r="end",touch:s=!0,className:c,triggerClassName:i,nested:u=!1,children:d}){const{open:x,setOpen:h,containerRef:m,panelRef:w,getAnchor:p}=z("popover-menu");return o.length===0&&!d?null:a.jsxs("div",{ref:m,className:b("relative",c),...u?{role:"none"}:{},children:[a.jsx(R,{variant:"ghost",size:"sm",icon:t??a.jsx(j,{className:"size-5"}),onClick:()=>h(l=>!l),"aria-label":e,"aria-haspopup":"menu","aria-expanded":x,...u?{role:"menuitem"}:{},className:b(s&&"min-h-11 min-w-11 px-0",i),children:n}),a.jsx(M,{open:x,align:r,panelRef:w,getAnchor:p,children:a.jsxs(N,{ref:w,children:[o.map(l=>a.jsx(O,{label:l.label,icon:l.icon,onSelect:()=>{h(!1),l.onSelect()}},l.key)),d]})})]})}export{j as E,M as P,N as a,O as b,A as c,z as u};
@@ -1 +1 @@
1
- import{e}from"./index-DKo99WG1.js";const t=e("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);export{t as R};
1
+ import{e}from"./index-DdgwCJ4v.js";const t=e("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);export{t as R};