@remit/web-client-dist 0.0.676 → 0.0.678

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 (187) hide show
  1. package/assets/{BriefPane-Cfl-uWfm.js → BriefPane-DZbE8ZNv.js} +1 -1
  2. package/assets/{CalendarEventEditor-COnJXvRd.js → CalendarEventEditor-LUplTbrz.js} +1 -1
  3. package/assets/{CalendarEventPopup-CqHE2vrc.js → CalendarEventPopup-CQaPJg2s.js} +1 -1
  4. package/assets/{CalendarLoadFailed-CxL15r1A.js → CalendarLoadFailed-DGqiWK7A.js} +1 -1
  5. package/assets/CalendarQuickCreate-DqIwACsh.js +1 -0
  6. package/assets/{CalendarSession-BKwK9s2o.js → CalendarSession-DGGQfwLi.js} +1 -1
  7. package/assets/DesktopChrome-Dl4YzJrV.js +1 -0
  8. package/assets/DropdownMenu-CowSyQUa.js +1 -0
  9. package/assets/{EmptyState-BUOSmldo.js → EmptyState-DcHnaG2R.js} +1 -1
  10. package/assets/{ErrorState-KjDYblD5.js → ErrorState-DcP5ZTMN.js} +1 -1
  11. package/assets/{FlaggedPane-Dw-wR4tp.js → FlaggedPane-CuevlxSV.js} +1 -1
  12. package/assets/{FullCompose-Djp_h4BT.js → FullCompose-BdpPcB8J.js} +1 -1
  13. package/assets/LabelApplyTrigger-c7ugtEyT.js +1 -0
  14. package/assets/MailShell-C7RoeX76.js +1 -0
  15. package/assets/{MailViewChrome-yffBJjbO.js → MailViewChrome-CQnNS9Dt.js} +1 -1
  16. package/assets/{MailboxPane-DUCZVAx6.js → MailboxPane-GqjbzfQ9.js} +1 -1
  17. package/assets/{MessageBody-C89PSL_p.js → MessageBody-B3Z3zu18.js} +4 -4
  18. package/assets/MessageToolbar-DpBF7XWc.js +1 -0
  19. package/assets/NavMenuButton-d1WErbNE.js +1 -0
  20. package/assets/{OnboardingWizard-Cvqq2aP_.js → OnboardingWizard-CPxEO5Gn.js} +1 -1
  21. package/assets/{OutboxPane-ce4uTAzW.js → OutboxPane-CnWjm3Kz.js} +1 -1
  22. package/assets/_calendarObjectId-BNxfdsFq.js +1 -0
  23. package/assets/_mailboxId-5uzJGGTA.js +1 -0
  24. package/assets/_messageId-CtUY7QaK.js +1 -0
  25. package/assets/_messageId-CyMtXqvK.js +1 -0
  26. package/assets/_messageId-jb0nvtAH.js +1 -0
  27. package/assets/_outboxMessageId-CRuHx4Az.js +1 -0
  28. package/assets/_recurrenceId-Dcdvy3HK.js +1 -0
  29. package/assets/_threadId-B17WzUu-.js +1 -0
  30. package/assets/_threadId-Djcejxjj.js +1 -0
  31. package/assets/_threadId-TLGn2UeF.js +1 -0
  32. package/assets/_view._date-DLGnjbKh.js +1 -0
  33. package/assets/{account-service-status-oYDwuPLn.js → account-service-status-BrL78Bwl.js} +1 -1
  34. package/assets/accounts-DKPcRgRU.js +1 -0
  35. package/assets/advanced-BjXiUDtl.js +1 -0
  36. package/assets/appearance-MzTWiLTR.js +1 -0
  37. package/assets/{avatar-uWJajuSb.js → avatar-B4KRzyzS.js} +1 -1
  38. package/assets/{bottom-sheet-Bc0vwv2J.js → bottom-sheet-B5OEKAh2.js} +1 -1
  39. package/assets/brief-C-5GXXj6.js +1 -0
  40. package/assets/{brief-bdXCpAmW.js → brief-ChnlqLdX.js} +1 -1
  41. package/assets/{calendar-event-popup-DsPmxVye.js → calendar-event-popup-Dbcz3Zb_.js} +1 -1
  42. package/assets/{calendar-event-sidebar-soFGsDRR.js → calendar-event-sidebar-D_7uvmvT.js} +1 -1
  43. package/assets/{calendar-failure-note-BtZLcaiZ.js → calendar-failure-note-BJCyTf1U.js} +1 -1
  44. package/assets/{calendar-guests-BR4hC59z.js → calendar-guests-BCC1uGzd.js} +1 -1
  45. package/assets/{calendar-tMekVEGW.js → calendar-miAZmlW9.js} +1 -1
  46. package/assets/calendar-mwWH-7s8.js +1 -0
  47. package/assets/{calendar-suggestion-8jcpefeR.js → calendar-suggestion-BppH-3oL.js} +1 -1
  48. package/assets/{calendars-bLB0g-E-.js → calendars-D9ZEiowB.js} +1 -1
  49. package/assets/{card-CPL-TrL1.js → card-WB75jB_w.js} +1 -1
  50. package/assets/{checkbox-CGG1nAhQ.js → checkbox-BXzuviQP.js} +1 -1
  51. package/assets/{circle-check-i3jeyeTf.js → circle-check-Bifl6wEJ.js} +1 -1
  52. package/assets/{circle-check-big-BsCwNdJZ.js → circle-check-big-BrmrabN6.js} +1 -1
  53. package/assets/{circle-help-CVWHf1ow.js → circle-help-Cyj92MDS.js} +1 -1
  54. package/assets/{clock-NnulNCOv.js → clock-A6ewTncv.js} +1 -1
  55. package/assets/cloud-off-CsGOr1Gn.js +1 -0
  56. package/assets/compose._-_outboxMessageId_-C6-fUwE2.js +1 -0
  57. package/assets/compose._-_outboxMessageId_-CSKV8YnZ.js +1 -0
  58. package/assets/compose._-_outboxMessageId_-Djp_aqSn.js +1 -0
  59. package/assets/compose._-_outboxMessageId_-DspXe17c.js +1 -0
  60. package/assets/{config-import-DmOMXQ5W.js → config-import-DTjV5c_Y.js} +1 -1
  61. package/assets/{confirm-dialog-q8tbS_22.js → confirm-dialog-9Q6aXOb5.js} +1 -1
  62. package/assets/{copy-LUCWJAE6.js → copy-DjyWdtW5.js} +1 -1
  63. package/assets/{credential-steps-DVglyUgf.js → credential-steps-BoiX5zy2.js} +1 -1
  64. package/assets/{download-SQdHw0Vd.js → download-CtoLQ9Ox.js} +1 -1
  65. package/assets/{draft-Y5XWTm_J.js → draft-CdiiJR8n.js} +1 -1
  66. package/assets/edit-D9g3EW1R.js +1 -0
  67. package/assets/edit-DkOWaaHs.js +1 -0
  68. package/assets/{external-link-BDqA_mVy.js → external-link-Dn2gWGrg.js} +1 -1
  69. package/assets/{file-json-DQGozYSr.js → file-json-B4YU26EQ.js} +1 -1
  70. package/assets/filters--HZZoQYr.js +1 -0
  71. package/assets/flagged-CVmpEd-z.js +1 -0
  72. package/assets/{flagged-CyMautVT.js → flagged-CjfnRBYq.js} +1 -1
  73. package/assets/{folders-DtchKvEA.js → folders-BEv1OKE6.js} +1 -1
  74. package/assets/{help-copy-B2iT8EG_.js → help-copy-CQIBCXJf.js} +1 -1
  75. package/assets/{import-DqNA5XIM.js → import-DhvqQyGM.js} +1 -1
  76. package/assets/index-4XPoPWhu.js +349 -0
  77. package/assets/index-B4YQCeZ5.js +1 -0
  78. package/assets/index-B8TxM1Ri.js +1 -0
  79. package/assets/{index-DZb7rV9A.js → index-BNUBjW43.js} +4 -4
  80. package/assets/index-BqN9osrB.js +1 -0
  81. package/assets/index-CA4e3svh.js +1 -0
  82. package/assets/{index-Cr6oUxXl.css → index-CNLnhDIy.css} +1 -1
  83. package/assets/index-ChXNLMBw.js +1 -0
  84. package/assets/index-Cm4__-V6.js +1 -0
  85. package/assets/index-CtUY7QaK.js +1 -0
  86. package/assets/index-CyMtXqvK.js +1 -0
  87. package/assets/index-DDMaQQcI.js +1 -0
  88. package/assets/index-aTwfTj57.js +1 -0
  89. package/assets/{kbd-CDJCJUnp.js → kbd-D0eWE7Kp.js} +1 -1
  90. package/assets/labels-DlSg6Q8z.js +1 -0
  91. package/assets/mail-CmiK10Kq.js +1 -0
  92. package/assets/{menu-CcLh9Whg.js → menu-D06KWsdQ.js} +1 -1
  93. package/assets/new-B_n0KCot.js +1 -0
  94. package/assets/onboarding-DVJYsyGv.js +1 -0
  95. package/assets/{onboarding-completion-DoF3_MyG.js → onboarding-completion-DnXMA7VE.js} +1 -1
  96. package/assets/outbox-_8AzSWX1.js +1 -0
  97. package/assets/{pencil-LSmMSKiW.js → pencil-CA6DIP59.js} +1 -1
  98. package/assets/people-BAjwQQiz.js +1 -0
  99. package/assets/{popover-menu-fjlAfNO1.js → popover-menu-BT-fkOr5.js} +1 -1
  100. package/assets/{refresh-cw-5OKnYRBy.js → refresh-cw-BERt5E10.js} +1 -1
  101. package/assets/{reply-DvdgFS16.js → reply-FoVQqDdv.js} +1 -1
  102. package/assets/{rich-text-BBwYPM6F.js → rich-text-C9TR28N2.js} +1 -1
  103. package/assets/{rich-text-spellcheck-worker-provider-Bk8cqxyg.js → rich-text-spellcheck-worker-provider-DjdTU9LK.js} +1 -1
  104. package/assets/{rotate-ccw-CENCKp2Z.js → rotate-ccw-C-agNTCI.js} +1 -1
  105. package/assets/{roving-focus-FWOr5tBU.js → roving-focus-Cj3j6dFs.js} +1 -1
  106. package/assets/{row-actions-DA6zLLAB.js → row-actions-C7JJUiqN.js} +1 -1
  107. package/assets/{search-mirror-Dri4pWEq.js → search-mirror-B5Imt12Z.js} +1 -1
  108. package/assets/{search-token-index-B1HU1d2-.js → search-token-index-C7o7PQIx.js} +1 -1
  109. package/assets/{sections-Rf3k05-_.js → sections-DiFHIPo4.js} +1 -1
  110. package/assets/senders-BpChah6o.js +1 -0
  111. package/assets/settings-kL8Y1zKC.js +1 -0
  112. package/assets/{settings-screen-DBP3ABLE.js → settings-screen-ZYutaKzZ.js} +1 -1
  113. package/assets/shield-check-DDrlOAO3.js +1 -0
  114. package/assets/{sparkles-Bcn4ZRhZ.js → sparkles-MrqvyWps.js} +1 -1
  115. package/assets/{suggested-vips-D-8cU8GT.js → suggested-vips-ODDnv-D2.js} +1 -1
  116. package/assets/{suggestion._suggestionId-D6z0CuYD.js → suggestion._suggestionId-DZhG3YlZ.js} +1 -1
  117. package/assets/{task._calendarTaskId-BYRN0yW3.js → task._calendarTaskId-BfaZmOEn.js} +1 -1
  118. package/assets/{undo-2-Bdx8L5xj.js → undo-2-C6aYHE3s.js} +1 -1
  119. package/assets/{useCalendarData-DXhaM_NM.js → useCalendarData-C3WbLJaC.js} +2 -2
  120. package/assets/{useCalendarScheduling-BpjmrzdY.js → useCalendarScheduling-CjI7T1o-.js} +1 -1
  121. package/assets/{useCalendarSuggestions-D3Jza1d7.js → useCalendarSuggestions-D6k1REyo.js} +1 -1
  122. package/assets/{useCalendarTasks-D_NZ0GM6.js → useCalendarTasks-DNBYBsvN.js} +1 -1
  123. package/assets/{useDebouncedValue-BTZsNKEh.js → useDebouncedValue-B0BMCu3v.js} +1 -1
  124. package/assets/{useFilters-CIuC8WLg.js → useFilters-C_nA08Aa.js} +1 -1
  125. package/assets/{useLabels-BZFMPVjT.js → useLabels-Dn9qgr5w.js} +1 -1
  126. package/assets/useLayoutTier-DtUqYCCh.js +1 -0
  127. package/assets/{useMediaQuery-DiQ0fGER.js → useMediaQuery-a7SamL-l.js} +1 -1
  128. package/assets/useMessageBodyContent-ClVl7CBj.js +1 -0
  129. package/assets/useQueries-XPiXhlQX.js +1 -0
  130. package/assets/{useRefreshControl-B6YIG0w2.js → useRefreshControl-C9tPndY1.js} +1 -1
  131. package/assets/{useResultFolderIndex-6TeGdWgp.js → useResultFolderIndex-koSvRw-H.js} +1 -1
  132. package/assets/{useSignature-BkzkUbjz.js → useSignature-rM5axmpY.js} +1 -1
  133. package/assets/{warnings-BdQvV6Kc.js → warnings-De2eUHBy.js} +4 -4
  134. package/index.html +2 -2
  135. package/package.json +1 -1
  136. package/assets/AppFrame-DSPG81Mk.js +0 -1
  137. package/assets/CalendarQuickCreate-DxgU3bNP.js +0 -1
  138. package/assets/LabelApplyTrigger-oS5sxATE.js +0 -1
  139. package/assets/MailShell-LIuV2C3h.js +0 -1
  140. package/assets/MessageToolbar-UJadqHyA.js +0 -1
  141. package/assets/NavMenuButton-B-goW-G5.js +0 -1
  142. package/assets/_calendarObjectId-lcrg9Fhc.js +0 -1
  143. package/assets/_mailboxId-BzKo-TnK.js +0 -1
  144. package/assets/_messageId-C7U0TsBv.js +0 -1
  145. package/assets/_messageId-CGB3gt7C.js +0 -1
  146. package/assets/_messageId-D2Qjacn6.js +0 -1
  147. package/assets/_outboxMessageId-FUbJ3RF8.js +0 -1
  148. package/assets/_recurrenceId-DpQOCGAd.js +0 -1
  149. package/assets/_threadId-BmZ2vl5z.js +0 -1
  150. package/assets/_threadId-Bs84eLjr.js +0 -1
  151. package/assets/_threadId-DySupNzi.js +0 -1
  152. package/assets/_view._date-DYujYKtx.js +0 -1
  153. package/assets/accounts-DhSbRlEm.js +0 -1
  154. package/assets/advanced-B50NfkTy.js +0 -1
  155. package/assets/appearance-CYNOlHLz.js +0 -1
  156. package/assets/brief-DPWE6nMF.js +0 -1
  157. package/assets/calendar-7SdvLY_h.js +0 -1
  158. package/assets/compose._-_outboxMessageId_-Be8c22eR.js +0 -1
  159. package/assets/compose._-_outboxMessageId_-BuomqJqQ.js +0 -1
  160. package/assets/compose._-_outboxMessageId_-Bv9hyiuT.js +0 -1
  161. package/assets/compose._-_outboxMessageId_-CvUr9awX.js +0 -1
  162. package/assets/edit-DMorYaTV.js +0 -1
  163. package/assets/edit-Dr5FEVcd.js +0 -1
  164. package/assets/filters-DFLdTFEB.js +0 -1
  165. package/assets/flagged-CCXBAY09.js +0 -1
  166. package/assets/index-BaEsIFAV.js +0 -1
  167. package/assets/index-Biz6TlId.js +0 -1
  168. package/assets/index-BkMAx0hv.js +0 -1
  169. package/assets/index-CL_fwLHN.js +0 -349
  170. package/assets/index-CZYy2P_j.js +0 -1
  171. package/assets/index-CqsCZrgd.js +0 -1
  172. package/assets/index-CvDZvwnj.js +0 -1
  173. package/assets/index-D2Qjacn6.js +0 -1
  174. package/assets/index-DoTwMLuw.js +0 -1
  175. package/assets/index-DrtbTKeC.js +0 -1
  176. package/assets/index-wVOTkeaF.js +0 -1
  177. package/assets/labels-rv-5Xb0f.js +0 -1
  178. package/assets/mail-SW3rbFnq.js +0 -1
  179. package/assets/new-Zmtsd7wU.js +0 -1
  180. package/assets/onboarding-BbZUe6dp.js +0 -1
  181. package/assets/outbox-ZJk7VidB.js +0 -1
  182. package/assets/senders-ikMjTlbx.js +0 -1
  183. package/assets/settings-Bk7jziSO.js +0 -1
  184. package/assets/shield-check-CdR23I2B.js +0 -1
  185. package/assets/useLayoutTier-DrLg7_rq.js +0 -1
  186. package/assets/useMessageBodyContent-D-LJBFh4.js +0 -1
  187. package/assets/useQueries-hChzM5ru.js +0 -1
@@ -1 +0,0 @@
1
- import{j as o}from"./index-CL_fwLHN.js";import{M as i}from"./MailboxPane-DUCZVAx6.js";import"./MessageBody-C89PSL_p.js";import"./kbd-CDJCJUnp.js";import"./search-scope-UI1H6AzA.js";import"./reply-DvdgFS16.js";import"./useMediaQuery-DiQ0fGER.js";import"./useMessageBodyContent-D-LJBFh4.js";import"./useRefreshControl-B6YIG0w2.js";import"./circle-check-big-BsCwNdJZ.js";import"./refresh-cw-5OKnYRBy.js";import"./useQueries-hChzM5ru.js";import"./MessageToolbar-UJadqHyA.js";import"./roving-focus-FWOr5tBU.js";import"./search-token-index-B1HU1d2-.js";import"./EmptyState-BUOSmldo.js";import"./ErrorState-KjDYblD5.js";import"./popover-menu-fjlAfNO1.js";import"./avatar-uWJajuSb.js";import"./index-DZb7rV9A.js";import"./useSignature-BkzkUbjz.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-BTZsNKEh.js";import"./sections-Rf3k05-_.js";import"./undo-2-Bdx8L5xj.js";import"./download-SQdHw0Vd.js";import"./calendar-suggestion-8jcpefeR.js";import"./sparkles-Bcn4ZRhZ.js";import"./useCalendarSuggestions-D3Jza1d7.js";import"./calendar-format-BwCpz-JZ.js";import"./calendar-failure-note-BtZLcaiZ.js";import"./checkbox-CGG1nAhQ.js";import"./clock-NnulNCOv.js";import"./shield-check-CdR23I2B.js";import"./calendar-tMekVEGW.js";import"./useLayoutTier-DrLg7_rq.js";import"./menu-CcLh9Whg.js";import"./useFilters-CIuC8WLg.js";import"./confirm-dialog-q8tbS_22.js";import"./MailViewChrome-yffBJjbO.js";import"./LabelApplyTrigger-oS5sxATE.js";import"./useLabels-BZFMPVjT.js";import"./NavMenuButton-B-goW-G5.js";import"./bottom-sheet-Bc0vwv2J.js";import"./circle-help-CVWHf1ow.js";import"./circle-check-i3jeyeTf.js";function W(){return o.jsx(i.Reading,{})}export{W as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-CL_fwLHN.js";import{O as t}from"./OutboxPane-ce4uTAzW.js";import"./roving-focus-FWOr5tBU.js";import"./MessageBody-C89PSL_p.js";import"./kbd-CDJCJUnp.js";import"./search-scope-UI1H6AzA.js";import"./reply-DvdgFS16.js";import"./useMediaQuery-DiQ0fGER.js";import"./useMessageBodyContent-D-LJBFh4.js";import"./circle-check-big-BsCwNdJZ.js";import"./clock-NnulNCOv.js";import"./row-actions-DA6zLLAB.js";import"./rotate-ccw-CENCKp2Z.js";import"./NavMenuButton-B-goW-G5.js";import"./menu-CcLh9Whg.js";import"./outbox-status-BlKn6P0x.js";function d(){return o.jsx(t.Reading,{})}export{d as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-CL_fwLHN.js";import{F as r}from"./FlaggedPane-Dw-wR4tp.js";import"./MessageBody-C89PSL_p.js";import"./kbd-CDJCJUnp.js";import"./search-scope-UI1H6AzA.js";import"./reply-DvdgFS16.js";import"./useMediaQuery-DiQ0fGER.js";import"./useMessageBodyContent-D-LJBFh4.js";import"./MessageToolbar-UJadqHyA.js";import"./roving-focus-FWOr5tBU.js";import"./search-token-index-B1HU1d2-.js";import"./useQueries-hChzM5ru.js";import"./EmptyState-BUOSmldo.js";import"./ErrorState-KjDYblD5.js";import"./popover-menu-fjlAfNO1.js";import"./avatar-uWJajuSb.js";import"./index-DZb7rV9A.js";import"./useSignature-BkzkUbjz.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-BTZsNKEh.js";import"./sections-Rf3k05-_.js";import"./undo-2-Bdx8L5xj.js";import"./download-SQdHw0Vd.js";import"./calendar-suggestion-8jcpefeR.js";import"./sparkles-Bcn4ZRhZ.js";import"./useCalendarSuggestions-D3Jza1d7.js";import"./calendar-format-BwCpz-JZ.js";import"./calendar-failure-note-BtZLcaiZ.js";import"./checkbox-CGG1nAhQ.js";import"./clock-NnulNCOv.js";import"./shield-check-CdR23I2B.js";import"./calendar-tMekVEGW.js";import"./useLayoutTier-DrLg7_rq.js";import"./menu-CcLh9Whg.js";import"./useFilters-CIuC8WLg.js";import"./confirm-dialog-q8tbS_22.js";import"./MailViewChrome-yffBJjbO.js";import"./refresh-cw-5OKnYRBy.js";import"./wizard-selection-zWa1qc6-.js";function M(){return o.jsx(r.Reading,{})}export{M as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-CL_fwLHN.js";import{M as r}from"./MailboxPane-DUCZVAx6.js";import"./MessageBody-C89PSL_p.js";import"./kbd-CDJCJUnp.js";import"./search-scope-UI1H6AzA.js";import"./reply-DvdgFS16.js";import"./useMediaQuery-DiQ0fGER.js";import"./useMessageBodyContent-D-LJBFh4.js";import"./useRefreshControl-B6YIG0w2.js";import"./circle-check-big-BsCwNdJZ.js";import"./refresh-cw-5OKnYRBy.js";import"./useQueries-hChzM5ru.js";import"./MessageToolbar-UJadqHyA.js";import"./roving-focus-FWOr5tBU.js";import"./search-token-index-B1HU1d2-.js";import"./EmptyState-BUOSmldo.js";import"./ErrorState-KjDYblD5.js";import"./popover-menu-fjlAfNO1.js";import"./avatar-uWJajuSb.js";import"./index-DZb7rV9A.js";import"./useSignature-BkzkUbjz.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-BTZsNKEh.js";import"./sections-Rf3k05-_.js";import"./undo-2-Bdx8L5xj.js";import"./download-SQdHw0Vd.js";import"./calendar-suggestion-8jcpefeR.js";import"./sparkles-Bcn4ZRhZ.js";import"./useCalendarSuggestions-D3Jza1d7.js";import"./calendar-format-BwCpz-JZ.js";import"./calendar-failure-note-BtZLcaiZ.js";import"./checkbox-CGG1nAhQ.js";import"./clock-NnulNCOv.js";import"./shield-check-CdR23I2B.js";import"./calendar-tMekVEGW.js";import"./useLayoutTier-DrLg7_rq.js";import"./menu-CcLh9Whg.js";import"./useFilters-CIuC8WLg.js";import"./confirm-dialog-q8tbS_22.js";import"./MailViewChrome-yffBJjbO.js";import"./LabelApplyTrigger-oS5sxATE.js";import"./useLabels-BZFMPVjT.js";import"./NavMenuButton-B-goW-G5.js";import"./bottom-sheet-Bc0vwv2J.js";import"./circle-help-CVWHf1ow.js";import"./circle-check-i3jeyeTf.js";function W(){return o.jsx(r.Reading,{})}export{W as component};
@@ -1 +0,0 @@
1
- import{j as t,ad as o}from"./index-CL_fwLHN.js";const n=()=>t.jsx(o,{to:"/settings/accounts"});export{n as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-CL_fwLHN.js";import{F as r}from"./FlaggedPane-Dw-wR4tp.js";import"./MessageBody-C89PSL_p.js";import"./kbd-CDJCJUnp.js";import"./search-scope-UI1H6AzA.js";import"./reply-DvdgFS16.js";import"./useMediaQuery-DiQ0fGER.js";import"./useMessageBodyContent-D-LJBFh4.js";import"./MessageToolbar-UJadqHyA.js";import"./roving-focus-FWOr5tBU.js";import"./search-token-index-B1HU1d2-.js";import"./useQueries-hChzM5ru.js";import"./EmptyState-BUOSmldo.js";import"./ErrorState-KjDYblD5.js";import"./popover-menu-fjlAfNO1.js";import"./avatar-uWJajuSb.js";import"./index-DZb7rV9A.js";import"./useSignature-BkzkUbjz.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-BTZsNKEh.js";import"./sections-Rf3k05-_.js";import"./undo-2-Bdx8L5xj.js";import"./download-SQdHw0Vd.js";import"./calendar-suggestion-8jcpefeR.js";import"./sparkles-Bcn4ZRhZ.js";import"./useCalendarSuggestions-D3Jza1d7.js";import"./calendar-format-BwCpz-JZ.js";import"./calendar-failure-note-BtZLcaiZ.js";import"./checkbox-CGG1nAhQ.js";import"./clock-NnulNCOv.js";import"./shield-check-CdR23I2B.js";import"./calendar-tMekVEGW.js";import"./useLayoutTier-DrLg7_rq.js";import"./menu-CcLh9Whg.js";import"./useFilters-CIuC8WLg.js";import"./confirm-dialog-q8tbS_22.js";import"./MailViewChrome-yffBJjbO.js";import"./refresh-cw-5OKnYRBy.js";import"./wizard-selection-zWa1qc6-.js";function N(){return o.jsx(r.Reading,{})}export{N as component};
@@ -1 +0,0 @@
1
- import{fP as o,j as r}from"./index-CL_fwLHN.js";import{C as m}from"./CalendarEventPopup-CqHE2vrc.js";import"./confirm-dialog-q8tbS_22.js";import"./calendar-event-popup-DsPmxVye.js";import"./pencil-LSmMSKiW.js";import"./useCalendarSuggestions-D3Jza1d7.js";import"./ErrorState-KjDYblD5.js";import"./useQueries-hChzM5ru.js";import"./calendar-guests-BR4hC59z.js";import"./circle-help-CVWHf1ow.js";import"./useCalendarTasks-D_NZ0GM6.js";import"./useCalendarData-DXhaM_NM.js";import"./calendar-format-BwCpz-JZ.js";import"./reply-DvdgFS16.js";import"./useMediaQuery-DiQ0fGER.js";import"./calendar-tMekVEGW.js";import"./CalendarSession-BKwK9s2o.js";function v(){const{calendarObjectId:t}=o.useParams();return r.jsx(m,{calendarObjectId:t})}export{v as component};
@@ -1 +0,0 @@
1
- import{r as f,j as e,au as h,bf as y,at as b,bG as g,d as v,T as N,u as C,a as L,c as I,aK as D,aM as S,B as w}from"./index-CL_fwLHN.js";import{C as E}from"./confirm-dialog-q8tbS_22.js";import{E as j}from"./ErrorState-KjDYblD5.js";import{S as $}from"./settings-screen-DBP3ABLE.js";import{a as T,b as k,c as R,u as O}from"./useLabels-BZFMPVjT.js";import"./avatar-uWJajuSb.js";import"./menu-CcLh9Whg.js";import"./circle-help-CVWHf1ow.js";function B({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 P=(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 G({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 H({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(B,{labels:n,onRename:(p,x)=>o(p,{name:x}),onRecolor:(p,x)=>o(p,{color:x}),onDelete:s,deletingLabelId:t}),e.jsx(G,{accountId:i}),a&&(()=>{const p=P(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 q(){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(H,{account:t},t.accountId))})})}export{q as component};
@@ -1 +0,0 @@
1
- import{b as B,r as f,j as e,o as C,p as Ee,q as Le,D as Ae,X as Fe,C as Te,S as oe,t as q,v as H,w as re,x as ie,F as ze,T as De,y as _e,M as Be,z as Ke,E as Qe,I as qe,G as le,d as P,H as ce,J as He,K as Ve,N as $e,P as ue,f as K,Q as de,R as me,U as Ue,V as We,W as Ge,Y as xe,a as fe,Z as Ye,_ as Je,$ as z,a0 as Xe,a1 as Ze,a2 as es,a3 as ss,a4 as ts,a5 as as,a6 as ns,a7 as os,a8 as rs,u as is,c as ls,a9 as cs,O as us}from"./index-CL_fwLHN.js";import{E as ds}from"./ErrorState-KjDYblD5.js";import{K as ms,B as xs,S as fs,u as ps,s as hs,b as gs,a as bs,c as vs,d as ys}from"./search-token-index-B1HU1d2-.js";import{K as V}from"./kbd-CDJCJUnp.js";import{u as js,l as O,a as D,m as $,b as Ns,c as Ss,N as w,d as Cs,e as ws,i as Is,f as Os}from"./reply-DvdgFS16.js";import{A as ks}from"./AppFrame-DSPG81Mk.js";import{P as Ms}from"./pencil-LSmMSKiW.js";import{u as Q,a as Rs}from"./useMessageBodyContent-D-LJBFh4.js";import{c as Ps,s as Es,M as Ls}from"./MailShell-LIuV2C3h.js";import{u as As,a as Fs,R as Ts,s as zs,i as Ds,H as _s,M as Bs}from"./useRefreshControl-B6YIG0w2.js";import{M as Ks}from"./menu-CcLh9Whg.js";import{B as pe,u as Qs}from"./useResultFolderIndex-6TeGdWgp.js";import{A as qs}from"./avatar-uWJajuSb.js";import{u as Hs,P as Vs,a as $s,b as Us}from"./popover-menu-fjlAfNO1.js";import{u as Ws}from"./sections-Rf3k05-_.js";import{u as Gs}from"./roving-focus-FWOr5tBU.js";import{C as Ys,A as Js}from"./account-service-status-oYDwuPLn.js";import{S as Xs}from"./sparkles-Bcn4ZRhZ.js";import{u as he}from"./useQueries-hChzM5ru.js";import{f as Zs}from"./folder-failure-CqkVSsrb.js";import{i as et}from"./outbox-status-BlKn6P0x.js";import{u as st}from"./index-DZb7rV9A.js";import{u as ge,i as tt}from"./useLayoutTier-DrLg7_rq.js";import{u as at}from"./useDebouncedValue-BTZsNKEh.js";import"./search-scope-UI1H6AzA.js";import"./useMediaQuery-DiQ0fGER.js";import"./FullCompose-Djp_h4BT.js";import"./confirm-dialog-q8tbS_22.js";import"./circle-check-big-BsCwNdJZ.js";import"./refresh-cw-5OKnYRBy.js";import"./useSignature-BkzkUbjz.js";import"./account-form-helpers-DhckT_PN.js";const be=B("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 ve=B("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 nt=B("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 ot({email:s,onSignOut:t}){const a=f.useRef(null),{open:n,setOpen:o,containerRef:r,panelRef:i,getAnchor:u}=Hs("account-menu",()=>a.current?.focus());f.useEffect(()=>{if(!n)return;const d=requestAnimationFrame(()=>i.current?.querySelector('[role="menuitem"]')?.focus());return()=>cancelAnimationFrame(d)},[n,i]);const m=s??"Account";return e.jsxs("div",{ref:r,className:"relative",children:[e.jsx("button",{ref:a,type:"button","aria-label":"Account","aria-haspopup":"menu","aria-expanded":n,onClick:()=>o(d=>!d),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:e.jsx(qs,{name:m,email:s??void 0,size:"sm"})}),e.jsx(Vs,{open:n,align:"end",panelRef:i,getAnchor:u,children:e.jsxs($s,{ref:i,label:m,children:[s&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"truncate px-4 py-2 text-xs text-fg-muted",title:s,"data-testid":"account-menu-email",children:s}),e.jsx("hr",{className:"my-1 h-px border-0 bg-line"})]}),e.jsx(Us,{label:"Sign out",icon:e.jsx(be,{className:"size-4"}),onSelect:()=>{o(!1),a.current?.focus(),t()}})]})})]})}function rt({leading:s,search:t,actions:a,className:n}){return e.jsxs("header",{className:C("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:[s&&e.jsx("div",{className:"flex shrink-0 items-center gap-1",children:s}),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:t})}),a&&e.jsx("div",{className:"flex shrink-0 items-center gap-1",children:a})]})}function it({onCompose:s}){return e.jsx("button",{type:"button",onClick:s,"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(var(--app-tab-bar, 0px) + env(safe-area-inset-bottom, 0px) + 1rem)"},children:e.jsx(Ms,{className:"size-6"})})}const lt=({isOpen:s,onClose:t})=>{const a=f.useRef(null);return Ee({id:"shortcuts",open:s,answers:{back:t}}),Le(a,s),s?e.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[e.jsx(Ae,{label:"Dismiss keyboard shortcuts",onDismiss:t,className:"backdrop-blur-sm"}),e.jsxs("div",{ref:a,role:"dialog","aria-modal":"true","aria-label":"Keyboard shortcuts",tabIndex:-1,className:C("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:t,className:"p-1 text-fg-muted transition-colors hover:text-fg","aria-label":"Close",children:e.jsx(Fe,{className:"size-5"})})]}),e.jsx("div",{className:"grid gap-x-8 gap-y-6 sm:grid-cols-2",children:ms.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(o=>e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsx("span",{className:"text-sm",children:o.description}),e.jsx("span",{className:"flex shrink-0 items-center gap-1",children:o.keys.map((r,i)=>e.jsxs(f.Fragment,{children:[i>0&&o.keys[0]==="g"&&e.jsx("span",{className:"text-2xs text-fg-subtle",children:"then"}),e.jsx(V,{children:r})]},r))})]},`${o.action}-${o.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(V,{children:"Esc"})," to close"]})})]})]}):null},ct="button:not([disabled]), a[href]",E="outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-surface-sunken";function ut({active:s,dimmed:t,indent:a}){return C("flex w-full items-center gap-2 rounded-md px-2 py-1 text-left text-sm transition-colors",E,a&&"pl-7",s?"bg-accent-2-soft font-medium text-accent-2":"text-fg-muted hover:bg-surface hover:text-fg",t&&"opacity-55")}function dt({icon:s,label:t,count:a,active:n,failure:o}){return e.jsxs(e.Fragment,{children:[s&&e.jsx("span",{className:C("shrink-0",n?"text-accent-2":"text-fg-subtle"),children:s}),e.jsx("span",{className:"flex-1 truncate",children:t}),o&&e.jsx(re,{className:"size-3.5 shrink-0 text-danger","aria-hidden":"true"}),a!=null&&a>0&&e.jsx("span",{className:C("text-2xs tabular-nums",n?"text-accent-2":"text-fg-subtle"),children:a})]})}function I({icon:s,label:t,count:a,active:n,dimmed:o,indent:r,navId:i,linkComponent:u,ariaLabel:m,title:d,failure:h,onClick:y}){const g=ut({active:n,dimmed:o,indent:r}),c=e.jsx(dt,{icon:s,label:t,count:a,active:n,failure:h}),v=m??t,x=h?`${v} — ${h}`:v,p=h?`${d??t} — ${h}`:d;return i&&u?u({navId:i,className:g,ariaLabel:x,title:p,onClick:y,children:c}):e.jsx("button",{type:"button",onClick:y,className:g,"aria-label":h?x:m,title:p,children:c})}const U={inbox:0,flagged:1,drafts:2,sent:3,archive:4,all:5,junk:6,trash:7};function mt(s){switch(s){case"inbox":return e.jsx(qe,{className:"size-4"});case"flagged":return e.jsx(oe,{className:"size-4"});case"drafts":return e.jsx(Qe,{className:"size-4"});case"sent":return e.jsx(ie,{className:"size-4"});case"archive":return e.jsx(Ke,{className:"size-4"});case"all":return e.jsx(Be,{className:"size-4"});case"junk":return e.jsx(_e,{className:"size-4"});case"trash":return e.jsx(De,{className:"size-4"})}}const W=s=>s.role!=null,T=8,G="remit.nav.folders.open.",Y="remit.nav.account.open.";function J(s,t,a){if(typeof localStorage>"u")return a;const n=localStorage.getItem(s+t);return n===null?a:n!=="0"}function X(s,t,a){typeof localStorage>"u"||localStorage.setItem(s+t,a?"1":"0")}function xt({account:s,selectedNavId:t,onSelectNav:a,linkComponent:n}){const[o,r]=f.useState(()=>J(Y,s.id,!0)),[i,u]=f.useState(()=>J(G,s.id,!0)),[m,d]=f.useState(!1),h=()=>{r(l=>{const j=!l;return X(Y,s.id,j),j})},y=()=>{u(l=>{const j=!l;return X(G,s.id,j),j})},g=s.mailboxes.filter(W).sort((l,j)=>U[l.role]-U[j.role]),c=s.mailboxes.filter(l=>!W(l)),v=m||c.length<=T?c:c.slice(0,T),x=c.length-v.length,p=s.status??"ready",b=s.syncedServices!==void 0&&!s.syncedServices.includes("Mail"),N=p==="ready"&&g.length===0&&c.length===0;return e.jsxs("div",{className:"mt-3",children:[e.jsxs("button",{type:"button",onClick:h,"aria-expanded":o,className:C("flex w-full items-center gap-1.5 px-2 pb-1 text-left transition-colors hover:text-fg",E,s.muted&&"opacity-55"),children:[o?e.jsx(q,{className:"size-3 shrink-0 text-fg-subtle"}):e.jsx(H,{className:"size-3 shrink-0 text-fg-subtle"}),e.jsx("span",{className:"truncate text-2xs font-semibold uppercase tracking-wider text-fg-subtle",children:s.label}),s.muted&&e.jsxs(e.Fragment,{children:[e.jsx(xs,{className:"size-3 shrink-0 text-fg-subtle"}),e.jsx("span",{className:"text-2xs text-fg-subtle",children:"muted"})]}),b&&e.jsxs(e.Fragment,{children:[e.jsx(Ys,{className:"size-3 shrink-0 text-fg-subtle"}),e.jsx("span",{className:"text-2xs text-fg-subtle",children:Js.Mail})]})]}),o&&e.jsxs(e.Fragment,{children:[p==="loading"&&e.jsx("div",{className:"px-2 py-1 text-sm text-fg-muted",children:"Loading…"}),p==="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(re,{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"})}),s.onRetry&&e.jsx("button",{type:"button",onClick:s.onRetry,className:"shrink-0 text-sm font-medium text-accent hover:underline",children:"Retry"})]}),N&&e.jsx("div",{className:"px-2 py-1 text-sm text-fg-muted",children:"No mailboxes"}),p==="ready"&&e.jsxs(e.Fragment,{children:[g.map(l=>e.jsx(I,{navId:l.id,linkComponent:n,icon:mt(l.role),label:l.name,ariaLabel:l.name,title:l.fullPath??l.name,failure:l.failure,count:l.unseen,active:t===l.id,dimmed:s.muted,onClick:()=>a?.(l.id)},l.id)),s.outboxPending!==void 0&&e.jsx(I,{navId:"outbox",linkComponent:n,icon:e.jsx(ie,{className:"size-4"}),label:"Outbox",ariaLabel:"Outbox",count:s.outboxPending>0?s.outboxPending:void 0,active:t==="outbox",dimmed:s.muted,onClick:()=>a?.("outbox")}),c.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("button",{type:"button",onClick:y,"aria-expanded":i,className:C("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",E),children:[i?e.jsx(q,{className:"size-3 shrink-0"}):e.jsx(H,{className:"size-3 shrink-0"}),e.jsx("span",{className:"flex-1",children:"Folders"}),e.jsx("span",{className:"tabular-nums opacity-70",children:c.length})]}),i&&e.jsxs(e.Fragment,{children:[v.map(l=>e.jsx(I,{navId:l.id,linkComponent:n,icon:e.jsx(ze,{className:"size-4"}),label:l.name,ariaLabel:l.name,title:l.fullPath??l.name,failure:l.failure,count:l.unseen,active:t===l.id,dimmed:s.muted,onClick:()=>a?.(l.id)},l.id)),(x>0||m)&&c.length>T&&e.jsx("button",{type:"button",onClick:()=>d(l=>!l),className:C("ml-7 flex items-center px-2 py-1 text-2xs font-medium text-accent transition-colors hover:underline",E),children:m?"Show less":`Show all (${c.length})`})]})]})]})]})]})}function ft({accounts:s,selectedNavId:t,briefUnseen:a,onSelectNav:n,variant:o="desktop",linkComponent:r,calendarNav:i="hidden"}){const u=f.useRef(null);Gs({containerRef:u,itemSelector:ct});const m=o==="drawer",d=e.jsxs("nav",{ref:m?u:void 0,className:m?"px-2 py-2":"flex-1 overflow-y-auto px-2 py-2","aria-label":"Mailboxes",children:[e.jsx(I,{navId:"brief",linkComponent:r,icon:e.jsx(Xs,{className:"size-4"}),label:"Daily brief",ariaLabel:"Daily brief",count:a,active:t==="brief",onClick:()=>n?.("brief")}),i==="shown"&&e.jsx(I,{navId:"calendar",linkComponent:r,icon:e.jsx(Te,{className:"size-4"}),label:"Calendar",ariaLabel:"Calendar",active:t==="calendar",onClick:()=>n?.("calendar")}),e.jsx(I,{navId:"flagged",linkComponent:r,icon:e.jsx(oe,{className:"size-4"}),label:"Starred",ariaLabel:"Starred",active:t==="flagged",onClick:()=>n?.("flagged")}),s.length===0?e.jsx("div",{className:"px-2 py-4 text-center text-sm text-fg-muted",children:"No accounts configured"}):s.map(h=>e.jsx(xt,{account:h,selectedNavId:t,onSelectNav:n,linkComponent:r},h.id))]});return m?d:e.jsx("aside",{ref:u,className:"flex h-full w-full flex-col bg-surface-sunken",children:d})}function pt(){const s=le();if(!s)return null;const t=s.showNavPane?!s.navCollapsed:!1;return e.jsx(P,{variant:"ghost",size:"sm",icon:e.jsx(Ks,{className:"size-4"}),onClick:s.toggleNav,"aria-label":t?"Hide folders":"Show folders","aria-expanded":t,title:"Folders",className:"shrink-0"})}const ht={global:"Search all mail",pending:"Search mail",scoped:"Search this folder"};function gt({search:s,onCompose:t,onReportBug:a,onOpenSettings:n,settingsAttention:o,composeShortcut:r,refreshControl:i,account:u}){return e.jsx(rt,{leading:e.jsx(pt,{}),search:e.jsx(fs,{value:s.value,onChange:s.onChange,onClear:s.onClear,onClearQuery:s.onClearQuery,chips:s.chips,onRemoveChip:s.onRemoveChip,placeholder:ht[s.scope]}),actions:e.jsxs(e.Fragment,{children:[e.jsx(P,{variant:"ghost",size:"sm",icon:e.jsx(nt,{className:"size-4"}),title:r?`Compose (${r})`:"Compose","aria-label":"Compose",onClick:t}),e.jsx(P,{variant:"ghost",size:"sm",icon:e.jsx(pe,{className:"size-4"}),title:"Report a bug","aria-label":"Report a bug",onClick:a}),e.jsx(P,{variant:"ghost",size:"sm",icon:e.jsx(ce,{label:o,children:e.jsx(ve,{className:"size-4"})}),title:"Settings","aria-label":o?`Settings — ${o}`:"Settings",onClick:n}),i,u]})})}function bt(){const{pathname:s}=js(),t=He({from:"/mail/$mailboxId",shouldThrow:!1});return O(s,"/settings")?"settings":O(s,"/calendar")?"calendar":O(s,"/mail/outbox")?"outbox":O(s,"/mail/flagged")?"flagged":O(s,"/mail/brief")?"brief":t?.mailboxId??""}function vt(){const s=Ve(),t=D({select:d=>$(d.location.pathname)}),a=D({select:d=>Ns(d.location.search)}),[n,o]=f.useState(a),r=at(n,200),[i,u]=f.useState(t);if(i!==t){const d=Es(i,t,a);u(t),d!==void 0&&o(d)}const m=f.useCallback(d=>{u($(s.state.location.pathname)),o(d)},[s]);return{searchInput:n,committedQuery:Ps(n,r),viewKey:t,setSearchInput:m}}const yt=()=>{const s=Q();return Ss()?null:e.jsx(it,{onCompose:s})},ye=({children:s})=>{const{Account:t}=$e();return e.jsx(t,{children:s})},jt=()=>e.jsx(ye,{children:({email:s,signOut:t})=>e.jsx(ot,{email:s,onSignOut:t})});function Nt({accounts:s}){const{searchInput:t,onSearchChange:a,onSearchClear:n,onSearchClearQuery:o,resultFolderIndex:r}=ue(),i=K(),u=Ws(),m=Q(),{scope:d,clearScope:h}=ps(s),y=de(),g=d.kind==="scoped"?[{id:d.chip.id,label:d.chip.label,tone:"scope"}]:void 0,c=f.useMemo(()=>s.map(N=>N.accountId),[s]),{hasNewMail:v}=As(),{state:x,errorMessage:p,refresh:b}=Fs(c,{onSettled:()=>Ue(i,We(r.keys()))});return e.jsx(gt,{search:{value:t,scope:d.kind,chips:g,onChange:a,onClear:n,onClearQuery:o,onRemoveChip:h},onCompose:m,onReportBug:me,onOpenSettings:()=>u("accounts"),settingsAttention:y,composeShortcut:hs("compose"),refreshControl:e.jsx(Ts,{state:x,onRefresh:b,label:"Refresh all accounts",errorMessage:p,hasUpdate:v(c)}),account:e.jsx(jt,{})})}function St(){return e.jsxs("button",{type:"button",onClick:me,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(pe,{className:"size-4 shrink-0"}),e.jsx("span",{className:"flex-1 truncate text-left",children:"Report a bug"})]})}const Z=s=>/^\d/.test(s),Ct=(s,t)=>{const a=Z(s),n=Z(t);return a&&!n?-1:!a&&n?1:s.localeCompare(t,void 0,{sensitivity:"base",numeric:!0})};function wt(s,t,a){const n=[],o=[];for(const r of s)t.has(r.mailboxId)?n.push(r):o.push(r);return o.sort((r,i)=>Ct(z(r,void 0,a),z(i,void 0,a))),{system:n,labels:o}}function It(s,t,a){const n=Xe(t)&&s.unseenCount>0;return{id:s.mailboxId,name:z(s,t,a),unseen:n?s.unseenCount:void 0,role:t,fullPath:s.fullPath,failure:Zs(s)}}function ee({accounts:s,onMailboxSelect:t,variant:a="desktop"}){const n=K(),o=bt(),{onSearchChange:r}=ue(),{t:i}=Ge("mail",{useSuspense:!1}),u=f.useCallback((x,p)=>i(x,{defaultValue:p}),[i]),m=he({queries:s.map(x=>({...xe({path:{accountId:x.accountId}}),staleTime:1/0}))}),{data:d}=fe(Ye()),h=f.useMemo(()=>(d?.items??[]).filter(x=>et(x.status)).length,[d?.items]),y=f.useMemo(()=>s.map((x,p)=>{const b=m[p],N=b?.data?.items??[],l=Je(x.folderAppointments),{system:j,labels:L}=wt(N,l,u),A=b?.isError?"error":b?.isLoading?"loading":"ready";return{id:x.accountId,label:x.email,email:x.email,muted:!!x.muted,outboxPending:h,status:A,onRetry:()=>b?.refetch(),mailboxes:[...j,...L].map(k=>It(k,l.get(k.mailboxId),u))}}),[s,m,h,u]),g=x=>{n.invalidateQueries({queryKey:Ze({path:{mailboxId:x},query:{order:"desc"}})})},c=({navId:x,className:p,ariaLabel:b,title:N,children:l,onClick:j})=>x==="brief"?e.jsx(w,{to:"/mail/brief",search:{q:void 0},activeOptions:{includeSearch:!1},onClick:()=>j?.(),className:p,"aria-label":b,title:N,children:l}):x==="calendar"?e.jsx(w,{to:"/calendar",onClick:()=>j?.(),className:p,"aria-label":b,title:N,children:l}):x==="outbox"?e.jsx(w,{to:"/mail/outbox",search:{q:void 0},onClick:()=>j?.(),className:p,"aria-label":b,title:N,children:l}):x==="flagged"?e.jsx(w,{to:"/mail/flagged",search:{q:void 0},onClick:()=>j?.(),className:p,"aria-label":b,title:N,children:l}):x==="settings"?e.jsx(w,{to:"/settings/accounts",onClick:()=>j?.(),className:p,"aria-label":b,title:N,children:l}):e.jsx(w,{to:"/mail/$mailboxId",params:{mailboxId:x},search:{q:void 0},onClick:()=>{g(x),j?.()},className:p,"aria-label":b,title:N,children:l}),v=()=>{r(""),t?.()};return e.jsx(ft,{accounts:y,selectedNavId:o,onSelectNav:v,linkComponent:c,variant:a})}function Ot({accounts:s,onMailboxSelect:t}){const n=le()?.showNavPane??!0,o=de();return n?e.jsx(ee,{accounts:s}):e.jsxs("div",{className:"flex h-full flex-col",children:[e.jsx("div",{className:"flex-1 overflow-y-auto",children:e.jsx(ee,{accounts:s,onMailboxSelect:t,variant:"drawer"})}),e.jsxs("div",{className:"border-t border-line px-2 py-2",children:[e.jsxs(w,{to:"/settings/accounts",onClick:t,children:[e.jsx(ce,{label:o,children:e.jsx(ve,{className:"size-4 shrink-0"})}),e.jsx("span",{className:"flex-1 truncate text-left",children:"Settings"})]}),e.jsx(St,{}),e.jsx(ye,{children:({signOut:r})=>e.jsxs("button",{type:"button",onClick:()=>{t?.(),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(be,{className:"size-4 shrink-0"}),e.jsx("span",{className:"flex-1 truncate text-left",children:"Sign out"})]})})]})]})}function kt(s){const t=he({queries:s.map(a=>({...xe({path:{accountId:a.accountId}}),staleTime:1/0}))});return f.useMemo(()=>gs(t.map(a=>a.data?.items??[])),[t])}const je="remit:intelligence-open";function Mt(){try{return localStorage.getItem(je)!=="closed"}catch{return!0}}function Rt(s){try{localStorage.setItem(je,s?"open":"closed")}catch{}}function se({panels:s,prefersOpen:t,isDesktop:a,hasThread:n,raisedFor:o,openMessage:r}){if(o!==null&&o===r)return!0;const i=s.filter(u=>u!=="sidebar");return i.length>0?i.includes("intelligence"):a&&n&&t}const Pt=()=>{const s=ge(),t=Cs(),a=ws(),n=t.find(Is),o=bs(),[r,i]=f.useState(Mt),u=o?`${o.threadId}/${o.messageId??""}`:null,[m,d]=f.useState(null),h={panels:t,prefersOpen:r,isDesktop:s==="desktop",hasThread:o!==void 0,openMessage:u},y=se({...h,raisedFor:m}),g=se({...h,raisedFor:null}),c=f.useCallback((b,N)=>{a([...b?["intelligence"]:[],...N?[N]:[]])},[a]),v=f.useCallback(b=>{c(g,b)},[g,c]),x=f.useCallback(()=>{if(y&&!g){d(null);return}const b=!y;Rt(b),i(b),d(null),c(b,n)},[g,y,n,c]),p=f.useCallback(()=>{d(u)},[u]);return{openOverlay:n,intelligenceOpen:y,showOverlay:v,toggleIntelligence:x,raiseIntelligence:p}};var M={exports:{}},te;function Et(){if(te)return M.exports;te=1;const s=(t,a,n)=>new Promise((o,r)=>{if(n=Object.assign({concurrency:1/0},n),typeof a!="function")throw new TypeError("Mapper function is required");const{concurrency:i}=n;if(!(typeof i=="number"&&i>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${i}\` (${typeof i})`);const u=[],m=t[Symbol.iterator]();let d=!1,h=!1,y=0,g=0;const c=()=>{if(d)return;const v=m.next(),x=g;if(g++,v.done){h=!0,y===0&&o(u);return}y++,Promise.resolve(v.value).then(p=>a(p,x)).then(p=>{u[x]=p,y--,c()},p=>{d=!0,r(p)})};for(let v=0;v<i&&(c(),!h);v++);});return M.exports=s,M.exports.default=s,M.exports}var Lt=Et();const At=es(Lt),Ft=900*1e3,Tt=30,zt=(s,t)=>{if(!s)return t;const a=Number.parseInt(s,10);return Number.isFinite(a)&&a>0?a:t},Dt=30*1e3,_t=s=>Math.max(zt(s,Tt)*1e3,Dt),Ne=_t(rs().mailboxPollIntervalSeconds),R=(s=Date.now(),t=Ne)=>Ds(s)?Math.min(_s,t):t,Bt=5,_=new Set,Kt=(s,t,a=Ft)=>s.filter(n=>{const o=n.lastSyncAt;return o==null?!0:t-o>a}).map(n=>n.accountId),Qt=(s,t,a=Ne)=>s-t>=a,qt=(s,t)=>s.filter(a=>!t.has(a)),ae=(s,t)=>{if(_.delete(s),as(t)||ns(t,{softError:!0})){os(t,{softError:!0});return}console.warn("[remit] background mailbox sync failed",{accountId:s,error:t})},ne=(s,t)=>ss({path:{accountId:s},throwOnError:!0}).then(()=>{t.invalidateQueries({queryKey:ts({path:{accountId:s}})})}),Ht=s=>{const t=K(),a=f.useRef(s);a.current=s;const n=s.map(o=>o.accountId).join(",");f.useEffect(()=>{const o=Date.now(),i=Kt(a.current,o).filter(u=>!_.has(u));if(i.length!==0)for(const u of i)_.add(u),ne(u,t).catch(m=>{ae(u,m)})},[n,t]),f.useEffect(()=>{let o=Date.now(),r;const i=new Set,u=()=>{o=Date.now();const g=qt(a.current.map(c=>c.accountId),i);for(const c of g)i.add(c);At(g,c=>ne(c,t).catch(v=>{ae(c,v)}).finally(()=>{i.delete(c)}),{concurrency:Bt})},m=()=>{if(document.visibilityState==="visible"){u(),r=setTimeout(m,R());return}},d=()=>{if(document.visibilityState!=="visible")return;r!==void 0&&clearTimeout(r);const g=Date.now(),c=R(g);if(Qt(g,o,c)){u(),r=setTimeout(m,c);return}r=setTimeout(m,o+c-g)},h=()=>{document.visibilityState==="visible"&&(r!==void 0&&clearTimeout(r),o=Date.now(),r=setTimeout(m,R()))};r=setTimeout(m,R()),document.addEventListener("visibilitychange",d);const y=zs(h);return()=>{r!==void 0&&clearTimeout(r),document.removeEventListener("visibilitychange",d),y()}},[n,t])};function Sa(){const s=is(),t=ge(),a=tt(t),{openOverlay:n,intelligenceOpen:o,showOverlay:r,toggleIntelligence:i,raiseIntelligence:u}=Pt(),m=n==="shortcuts",d=n==="nav",{searchInput:h,committedQuery:y,viewKey:g,setSearchInput:c}=vt(),{data:v,isLoading:x,isError:p,error:b,refetch:N}=fe({...ls(),staleTime:1/0}),l=!!(v&&(v.accounts?.length??0)===0);f.useEffect(()=>{l&&s({to:"/onboarding",replace:!0})},[l,s]),st({enabled:!m,bindings:[{key:"?",action:"help",handler:()=>r("shortcuts"),noModifiers:!1,preventDefault:!0}]});const j=Q(),L=Rs(),A=D({select:F=>Os(F.matches)?.list==="mailbox"}),k=f.useMemo(()=>({compose:j}),[j]);vs({enabled:!A&&!L,handlers:k});const Se=f.useCallback(()=>{c("")},[c]),Ce=f.useCallback(()=>{c("")},[c]),S=v?.accounts??[],we=f.useMemo(()=>S.map(F=>F.accountId),[S]),Ie=kt(S),Oe=Qs(S).index,ke=f.useMemo(()=>ys(S),[S]);Ht(S);const Me=f.useCallback(()=>{n==="nav"&&r(void 0)},[n,r]),Re={accounts:S,mailboxNameIndex:Ie,accountNameIndex:ke,resultFolderIndex:Oe,searchQuery:y,searchInput:h,searchViewKey:g,onSearchChange:c,onSearchClear:Se,onSearchClearQuery:Ce,intelligenceOpen:o,onToggleIntelligence:i,onRaiseIntelligence:u},Pe={isSinglePane:a,isLoading:x||l,intelligenceOpen:o,nav:e.jsx(Ot,{accounts:S,onMailboxSelect:Me}),topBar:a?void 0:e.jsx(Nt,{accounts:S}),overlay:a?e.jsx(yt,{}):void 0,navOpen:d,onOpenNav:()=>r("nav"),onCloseNav:()=>r(void 0)};return e.jsx(cs.Provider,{value:Re,children:e.jsxs(Bs,{accountIds:we,children:[e.jsx(ks,{children:p?e.jsx("div",{className:"flex h-full items-center justify-center bg-canvas p-4",children:e.jsx(ds,{title:"Couldn't load your account",error:b,onRetry:()=>{N()}})}):e.jsx(Ls,{chrome:Pe,children:e.jsx(us,{})})}),e.jsx(lt,{isOpen:m,onClose:()=>r(void 0)})]})})}export{Sa as component,ue as useMailContext};
@@ -1 +0,0 @@
1
- import{C as o}from"./CalendarEventEditor-COnJXvRd.js";import"./index-CL_fwLHN.js";import"./confirm-dialog-q8tbS_22.js";import"./calendar-event-popup-DsPmxVye.js";import"./pencil-LSmMSKiW.js";import"./useCalendarSuggestions-D3Jza1d7.js";import"./ErrorState-KjDYblD5.js";import"./useQueries-hChzM5ru.js";import"./calendar-event-sidebar-soFGsDRR.js";import"./calendar-guests-BR4hC59z.js";import"./circle-help-CVWHf1ow.js";import"./useCalendarData-DXhaM_NM.js";import"./useCalendarTasks-D_NZ0GM6.js";import"./draft-Y5XWTm_J.js";import"./useCalendarScheduling-BpjmrzdY.js";import"./useDebouncedValue-BTZsNKEh.js";import"./calendar-format-BwCpz-JZ.js";import"./reply-DvdgFS16.js";import"./useMediaQuery-DiQ0fGER.js";import"./calendar-tMekVEGW.js";import"./CalendarQuickCreate-DxgU3bNP.js";import"./CalendarSession-BKwK9s2o.js";const h=o;export{h as component};
@@ -1 +0,0 @@
1
- import{n,f as i,u as a,r as m,j as s}from"./index-CL_fwLHN.js";import{O as p}from"./OnboardingWizard-Cvqq2aP_.js";import{c}from"./onboarding-completion-DoF3_MyG.js";import"./checkbox-CGG1nAhQ.js";import"./kbd-CDJCJUnp.js";import"./credential-steps-DVglyUgf.js";import"./card-CPL-TrL1.js";import"./account-form-helpers-DhckT_PN.js";import"./file-json-DQGozYSr.js";function O(){const o=n(),e=i(),t=a(),r=m.useCallback(l=>{c({queryClient:e,recordCompleted:()=>o.recordEvent("onboarding.completed"),navigateToInbox:()=>{window.location.assign("/mail")}})},[o,e]);return s.jsx(p,{skipWelcome:!1,onComplete:r,onImportConfig:()=>{t({to:"/import"})}})}export{O as component};
@@ -1 +0,0 @@
1
- import{j as o,O as i}from"./index-CL_fwLHN.js";import{a as m}from"./MailShell-LIuV2C3h.js";import{u as p,O as t}from"./OutboxPane-ce4uTAzW.js";import"./reply-DvdgFS16.js";import{u as s}from"./search-mirror-Dri4pWEq.js";import"./useMessageBodyContent-D-LJBFh4.js";import"./FullCompose-Djp_h4BT.js";import"./ErrorState-KjDYblD5.js";import"./index-DZb7rV9A.js";import"./useSignature-BkzkUbjz.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-BTZsNKEh.js";import"./sections-Rf3k05-_.js";import"./useMediaQuery-DiQ0fGER.js";import"./confirm-dialog-q8tbS_22.js";import"./roving-focus-FWOr5tBU.js";import"./MessageBody-C89PSL_p.js";import"./kbd-CDJCJUnp.js";import"./search-scope-UI1H6AzA.js";import"./circle-check-big-BsCwNdJZ.js";import"./clock-NnulNCOv.js";import"./row-actions-DA6zLLAB.js";import"./rotate-ccw-CENCKp2Z.js";import"./NavMenuButton-B-goW-G5.js";import"./menu-CcLh9Whg.js";import"./outbox-status-BlKn6P0x.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 +0,0 @@
1
- import{j as e,o as S,f as I,r as c,bH as A,a as C,g as k,bI as P,bJ as L,d as N,X as M,u as O,aK as T,au as $,bK as q,aM as K,bL as R,bM as D,S as G}from"./index-CL_fwLHN.js";import{E}from"./ErrorState-KjDYblD5.js";import{K as f}from"./kbd-CDJCJUnp.js";import{a as V,S as Q}from"./settings-screen-DBP3ABLE.js";import{u as _}from"./useDebouncedValue-BTZsNKEh.js";import{s as B}from"./help-copy-B2iT8EG_.js";import"./avatar-uWJajuSb.js";import"./menu-CcLh9Whg.js";import"./circle-help-CVWHf1ow.js";function F({options:t,active:r,onSelect:m}){return e.jsx("div",{role:"tablist",className:S("flex shrink-0 gap-1 overflow-x-auto border-b border-line p-2","lg:w-44 lg:flex-col lg:gap-0 lg:overflow-visible lg:border-r lg:border-b-0 lg:py-2 lg:pr-2 lg:pl-3"),children:t.map(n=>{const d=n.id===r;return e.jsxs("button",{type:"button",role:"tab","aria-selected":d,onClick:()=>m(n.id),className:S("flex min-h-11 shrink-0 items-center gap-2 rounded-md px-3 text-left text-sm transition-colors lg:min-h-0 lg:px-2 lg:py-1",d?"bg-accent-2-soft font-medium text-accent-2":"text-fg-muted hover:bg-surface-sunken hover:text-fg"),children:[e.jsx("span",{className:"flex-1 truncate",children:n.label}),e.jsx("span",{className:S("text-2xs tabular-nums",d?"text-accent-2":"text-fg-subtle"),children:n.count??"—"})]},n.id)})})}const v={vip:"VIPs",muted:"Muted",blocked:"Blocked"};function H({query:t,onCount:r}){const{data:m,isPending:n,isError:d,error:b}=C(R()),g=I(),i=k({...P(),onSettled:()=>{g.invalidateQueries({queryKey:D()})}}),l=m?.suggestions??[],p=t.trim().toLowerCase(),u=p?l.filter(a=>(a.displayName??"").toLowerCase().includes(p)||a.normalizedEmail.toLowerCase().includes(p)):l;return c.useEffect(()=>{r?.(u.length,l.length)},[r,u.length,l.length]),n?e.jsx("div",{className:"px-row-inset py-3 text-sm text-fg-subtle animate-pulse",children:"Loading VIP suggestions…"}):d?e.jsx("div",{className:"px-row-inset py-3",children:e.jsx(E,{variant:"inline",title:"Couldn't load VIP suggestions",error:b})}):l.length===0?e.jsxs("div",{className:"px-row-inset py-5 text-sm text-fg-subtle",children:["No VIP suggestions yet. As you reply to senders, they'll appear here. Press ",e.jsx(f,{children:"v"})," on any message to promote a sender to VIP."]}):u.length===0?e.jsxs("p",{className:"px-row-inset py-5 text-sm text-fg-subtle",children:["No VIPs match “",t,"”."]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"px-row-inset py-1 text-2xs font-semibold uppercase tracking-wider text-fg-subtle",children:"Suggested — promote to VIP"}),u.map(a=>e.jsx(V,{name:a.displayName??a.normalizedEmail,email:a.normalizedEmail,meta:a.replyCount>0?`${a.inboundCount} received · you replied ${a.replyCount}×`:`${a.inboundCount} received · you've never replied`,trailing:e.jsx(N,{variant:"ghost",size:"sm",icon:e.jsx(G,{className:"size-3.5"}),"aria-busy":i.isPending,onClick:()=>{i.isPending||i.mutate({path:{addressId:a.addressId},body:{flags:{vip:{value:!0,setAt:Date.now(),setBy:"user"}}}})},children:"Add VIP"})},a.addressId))]})}function J({group:t,query:r,onCount:m}){const n=_(r.trim(),300),d=I(),[b,g]=c.useState(null),i=n.length>=2,l=A({query:{q:n,limit:50}}),{data:p,isPending:u,isError:a,error:j}=C({...l,enabled:i}),x=k({...P(),onSuccess:()=>{d.invalidateQueries({queryKey:l.queryKey})}}),h=(p?.items??[]).filter(s=>t==="muted"?s.flags?.muted?.value??!1:s.flags?.blocked?.value??!1);return c.useEffect(()=>{m?.(i?h.length:0,null)},[m,i,h.length]),i?u?e.jsx("div",{className:"px-row-inset py-3 text-sm text-fg-subtle animate-pulse",children:"Searching…"}):a?e.jsx("div",{className:"px-row-inset py-3",children:e.jsx(E,{variant:"inline",title:"Search failed",error:j})}):h.length===0?e.jsxs("p",{className:"px-row-inset py-5 text-sm text-fg-subtle",children:["No ",v[t].toLowerCase()," senders matching “",n,"”."]}):e.jsx(e.Fragment,{children:h.map(s=>{const o=t==="muted"?s.flags?.muted:s.flags?.blocked,y=o?[`${t}`,o.setAt&&L(o.setAt,{month:"short",year:"numeric"})||null,o.reason?`— ${o.reason}`:null].filter(Boolean).join(" "):t,w=x.isPending&&x.variables?.path.addressId===s.addressId,z=x.isError&&b===s.addressId;return e.jsx(V,{name:s.displayName??s.normalizedEmail,email:s.normalizedEmail,danger:t==="blocked",meta:y,trailing:z?e.jsx(N,{variant:"secondary",size:"sm",onClick:()=>{g(s.addressId),x.mutate({path:{addressId:s.addressId},body:{flags:{[t]:{value:!1,setAt:Date.now()}}}})},children:"Retry"}):e.jsx(N,{variant:"ghost",size:"sm",icon:e.jsx(M,{className:"size-3.5"}),"aria-busy":w,"aria-label":`Remove ${t} flag`,onClick:()=>{w||(g(s.addressId),x.mutate({path:{addressId:s.addressId},body:{flags:{[t]:{value:!1,setAt:Date.now()}}}}))}})},s.addressId)})}):e.jsxs("div",{className:"px-row-inset py-5 text-sm text-fg-subtle space-y-2",children:[e.jsxs("p",{children:["Type 2+ characters to search ",v[t].toLowerCase()," ","senders by name or address."]}),e.jsxs("p",{className:"text-2xs text-fg-subtle",children:["Note: a dedicated flagged-address list endpoint is in the backlog. Press ",e.jsx(f,{children:"m"})," on any message to mute its sender; ",e.jsx(f,{children:"b"})," to block."]})]})}function ne(){const t=O(),[r,m]=c.useState("vip"),[n,d]=c.useState(""),[b,g]=c.useState(!0),[i,l]=c.useState(0),[p,u]=c.useState({vip:0,muted:null,blocked:null}),a=c.useCallback((s,o)=>{l(s),u(y=>({...y,vip:o}))},[]),j=c.useCallback((s,o)=>{l(s),u(y=>({...y,[r]:s}))},[r]),x=p[r],h=s=>{const o=K[s];o&&t({to:o})};return e.jsx(Q,{items:T,activeId:"senders",title:"Senders & Rules",description:"Per-sender preferences — set with one key from any message, managed here.",flush:!0,help:B,helpOpen:b,onToggleHelp:()=>g(s=>!s),onSelect:h,onBackToMail:()=>{t({to:"/mail"})},children:e.jsxs("div",{className:"flex min-h-0 flex-1 flex-col lg:flex-row",children:[e.jsx(F,{active:r,onSelect:s=>{m(s),d("")},options:["vip","muted","blocked"].map(s=>({id:s,label:v[s],count:p[s]}))}),e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[e.jsx("div",{className:"border-b border-line px-row-inset py-2",children:e.jsx($,{icon:e.jsx(q,{className:"size-4"}),placeholder:`Filter ${v[r].toLowerCase()} by name or address`,className:"h-8 max-w-sm",value:n,onChange:s=>d(s.target.value)})}),e.jsx("div",{className:"min-h-0 flex-1 divide-y divide-line overflow-y-auto",children:r==="vip"?e.jsx(H,{query:n,onCount:a}):e.jsx(J,{group:r,query:n,onCount:j})}),e.jsxs("footer",{className:"flex items-center justify-between border-t border-line px-row-inset py-1 text-2xs text-fg-subtle",children:[e.jsx("span",{children:x!=null?`${i} of ${x} flagged senders`:`${i} flagged senders`}),e.jsxs("span",{children:[e.jsx(f,{children:"j"})," ",e.jsx(f,{children:"k"})," navigate · ",e.jsx(f,{children:"⌫"})," remove flag"]})]})]})]})})}export{J as SearchGroupPane,ne as component};
@@ -1 +0,0 @@
1
- import{j as t,O as o}from"./index-CL_fwLHN.js";const n=()=>t.jsx(o,{});export{n as component};
@@ -1 +0,0 @@
1
- import{b as e}from"./index-CL_fwLHN.js";const d=e("CloudOff",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5.782 5.782A7 7 0 0 0 9 19h8.5a4.5 4.5 0 0 0 1.307-.193",key:"yfwify"}],["path",{d:"M21.532 16.5A4.5 4.5 0 0 0 17.5 10h-1.79A7.008 7.008 0 0 0 10 5.07",key:"jlfiyv"}]]);const h=e("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);export{d as C,h as S};
@@ -1 +0,0 @@
1
- import"./index-CL_fwLHN.js";import{a as s,D as e}from"./useMediaQuery-DiQ0fGER.js";const i=768,a=t=>t!=="desktop",p=()=>{const t=s(`(min-width: ${i}px)`);return s(e)?"desktop":t?"tablet":"phone"};export{a as i,p as u};
@@ -1 +0,0 @@
1
- import{r as a,u as P,cB as O,J as p,n as U,N as B,f as N,a as $,d5 as D,cW as L}from"./index-CL_fwLHN.js";import{g as F,j as _,k as v}from"./reply-DvdgFS16.js";const E="/mail/brief/compose/{-$outboxMessageId}",w="/mail/flagged/compose/{-$outboxMessageId}",S="/mail/outbox/compose/{-$outboxMessageId}",R="/mail/$mailboxId/compose/{-$outboxMessageId}";function T(){const e=p({from:E,shouldThrow:!1}),t=p({from:w,shouldThrow:!1}),s=p({from:S,shouldThrow:!1}),r=p({from:R,shouldThrow:!1});return e??t??s??r}function te(){return T()!==void 0}function se(){return T()?.outboxMessageId}function K(e,t,s){return e==="flagged"?{to:w,params:{outboxMessageId:s}}:e==="outbox"?{to:S,params:{outboxMessageId:s}}:e==="mailbox"&&t?{to:R,params:{mailboxId:t,outboxMessageId:s}}:{to:E,params:{outboxMessageId:s}}}function b(){const e=P(),t=F(),{list:s,mailboxId:r}=_();return a.useCallback((o,n)=>{e({...K(s,r,o),search:O,hash:n?.keepPanels?!0:t,replace:n?.replace??!1})},[e,t,s,r])}function re(){const e=b();return a.useCallback(()=>e(void 0),[e])}function oe(){const e=b();return a.useCallback(t=>e(t),[e])}function ne(){const e=b();return a.useCallback(t=>e(t,{replace:!0,keepPanels:!0}),[e])}function ae(){return v()}const Q=new Set(["rfc822","global"]),q=e=>e.mediaType.toUpperCase()==="MESSAGE"&&Q.has(e.mediaSubtype.toLowerCase()),k=(e,t)=>e.partPath.startsWith(`${t}.`),I=e=>{const t=e.filter(q);return e.filter(s=>!t.some(r=>k(s,r.partPath)))},ce=(e,t)=>e.filter(s=>k(s,t)),W=e=>{const t=I(e).filter(o=>!o.isMultipart&&o.disposition!=="attachment"&&o.mediaType==="TEXT"&&o.contentUrl.length>0),s=t.find(o=>o.mediaSubtype.toUpperCase()==="HTML");if(s)return{kind:"html",contentUrl:s.contentUrl};const r=t.find(o=>o.mediaSubtype.toUpperCase()==="PLAIN");return r?{kind:"text",contentUrl:r.contentUrl}:null},g={all:["messages"],detail:e=>[...g.all,"detail",e],body:e=>[...g.detail(e),"body"]};class f extends Error{reason;status;retryAfterSeconds;constructor(t,s,r,o){super(s),this.name="BodyFetchError",this.reason=t,this.status=r,this.retryAfterSeconds=o}}const G=e=>{const t=Number.parseInt(e??"",10);return!Number.isFinite(t)||t<=0?1:Math.min(t,30)},X=8,H="x-remit-403-reason",Y=(e,t)=>{const s=t?.trim()??"";return e===401?"auth":e===403?s.length>0?"auth":"body-missing":e===404?"body-missing":"generic"},j=(e,t)=>(t??"").toLowerCase().startsWith("text/html")?/<div\s+id=["']root["']/i.test(e):!1,z=(e,t)=>{const s=(t??"").toLowerCase();return!!(e==="text"&&s.startsWith("text/html"))},J=async(e,t,s=async()=>null)=>{const r={},o=await s();o&&(r.Authorization=`Bearer ${o}`);const n=await L(e,{headers:r});if(n.status===202)throw new f("not-ready","Message body is still syncing",202,G(n.headers.get("Retry-After")));if(!n.ok){const l=n.headers.get(H),h=Y(n.status,l);throw new f(h,`Failed to load message body (${n.status} ${n.statusText})`,n.status)}const c=n.headers.get("content-type");if(z(t,c))throw new f("content-type-mismatch",`Refusing to render message body — expected ${t}, got Content-Type ${c}`);const m=await n.text();if(j(m,c))throw new f("spa-shell-leak","Refusing to render message body — response looks like the SPA shell (CloudFront 403/404 fallback leaked through to /content/*)");return m},V=async(e,t)=>(t.isRetryAfterNotReady&&await e.refetchDescribeMessage(),e.fetchContent(t.contentUrl,t.kind)),ie=({messageId:e,bodyParts:t,enabled:s=!0})=>{const r=t?W(t):null,o=U(),{getToken:n}=B(),c=a.useRef(null),m=N(),l=a.useRef(!1),h=a.useRef(null),C=e&&r?`${e}:${r.contentUrl}`:null;h.current!==C&&(h.current=C,l.current=!1);const i=$({queryKey:e?[...g.body(e),r?.contentUrl??null]:["messages","body","noop"],queryFn:()=>{if(!r)throw new Error("No renderable body part");if(!e)throw new Error("No messageId");const d=l.current;return l.current=!1,V({fetchContent:(u,x)=>J(u,x,n),refetchDescribeMessage:()=>m.refetchQueries({queryKey:D({path:{messageId:e}})})},{contentUrl:r.contentUrl,kind:r.kind,isRetryAfterNotReady:d})},enabled:s&&!!e&&!!r,staleTime:300*1e3,gcTime:1800*1e3,retry:(d,u)=>u instanceof f&&u.reason==="not-ready"?d<X:d<1,retryDelay:(d,u)=>u instanceof f&&u.reason==="not-ready"?(l.current=!0,(u.retryAfterSeconds??1)*1e3):1e3,meta:{softError:!0}}),y=i.isLoading&&!!r,A=t!==void 0&&r===null;a.useEffect(()=>{y&&(c.current=performance.now())},[y]),a.useEffect(()=>{i.isSuccess&&c.current!==null&&(o.recordTiming("message.body.load",Math.round(performance.now()-c.current)),c.current=null)},[i.isSuccess,o]);const M=i.data&&r?{kind:r.kind,body:i.data}:void 0;return{picked:r,data:M,isLoading:y,hasNoRenderablePart:A,isError:i.isError,error:i.error,refetch:i.refetch}};export{f as B,te as a,ie as b,Y as c,se as d,ne as e,ae as f,oe as g,ce as h,q as i,I as o,re as u};
@@ -1 +0,0 @@
1
- import{d6 as Q,d7 as y,d8 as S,d9 as w,da as C,f as k,db as q,dc as x,r as p,dd as M,de as H,df as L,dg as P,dh as O,di as B,dj as A}from"./index-CL_fwLHN.js";function R(r,e){const s=new Set(e);return r.filter(t=>!s.has(t))}function T(r,e,s){const t=r.slice(0);return t[e]=s,t}var j=class extends Q{#i;#e;#n;#r;#s;#t;#o;#u;#h;#a=[];constructor(r,e,s){super(),this.#i=r,this.#r=s,this.#n=[],this.#s=[],this.#e=[],this.setQueries(e)}onSubscribe(){this.listeners.size===1&&this.#s.forEach(r=>{r.subscribe(e=>{this.#f(r,e)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(r=>{r.destroy()})}setQueries(r,e){this.#n=r,this.#r=e,y.batch(()=>{const s=this.#s,t=this.#d(this.#n);t.forEach(o=>o.observer.setOptions(o.defaultedQueryOptions));const i=t.map(o=>o.observer),n=i.map(o=>o.getCurrentResult()),u=s.length!==i.length,c=i.some((o,f)=>o!==s[f]),d=u||c,b=d?!0:n.some((o,f)=>{const g=this.#e[f];return!g||!S(o,g)});!d&&!b||(d&&(this.#a=t,this.#s=i),this.#e=n,this.hasListeners()&&(d&&(R(s,i).forEach(o=>{o.destroy()}),R(i,s).forEach(o=>{o.subscribe(f=>{this.#f(o,f)})})),this.#p()))})}getCurrentResult(){return this.#e}getQueries(){return this.#s.map(r=>r.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(r,e){const s=this.#d(r),t=s.map(n=>n.observer.getOptimisticResult(n.defaultedQueryOptions)),i=s.map(n=>n.defaultedQueryOptions.queryHash);return[t,n=>this.#l(n??t,e,i),()=>this.#c(t,s)]}#c(r,e){return e.map((s,t)=>{const i=r[t];return s.defaultedQueryOptions.notifyOnChangeProps?i:s.observer.trackResult(i,n=>{e.forEach(u=>{u.observer.trackProp(n)})})})}#l(r,e,s){if(e){const t=this.#h,i=s!==void 0&&t!==void 0&&(t.length!==s.length||s.some((n,u)=>n!==t[u]));return(!this.#t||this.#e!==this.#u||i||e!==this.#o)&&(this.#o=e,this.#u=this.#e,s!==void 0&&(this.#h=s),this.#t=w(this.#t,e(r))),this.#t}return r}#b(){return this.#r?.combine!==void 0&&this.#s.some((r,e)=>r.options.suspense&&this.#e[e]?.data===void 0)}#d(r){const e=new Map;this.#s.forEach(t=>{const i=t.options.queryHash;if(!i)return;const n=e.get(i);n?n.push(t):e.set(i,[t])});const s=[];return r.forEach(t=>{const i=this.#i.defaultQueryOptions(t),u=e.get(i.queryHash)?.shift()??new C(this.#i,i);s.push({defaultedQueryOptions:i,observer:u})}),s}#f(r,e){const s=this.#s.indexOf(r);s!==-1&&(this.#e=T(this.#e,s,e),this.#p())}#p(){if(this.hasListeners()){const r=this.#c(this.#e,this.#a),e=this.#b(),s=this.#t,t=e?s:this.#l(r,this.#r?.combine);(e||s!==t)&&y.batch(()=>{this.listeners.forEach(i=>{i(this.#e)})})}}};function I({queries:r,...e},s){const t=k(),i=q(),n=x(),u=p.useMemo(()=>r.map(h=>{const a=t.defaultQueryOptions(h);return a._optimisticResults=i?"isRestoring":"optimistic",a}),[r,t,i]);u.forEach(h=>{M(h);const a=t.getQueryCache().get(h.queryHash);H(h,n,a)}),L(n);const[c]=p.useState(()=>new j(t,u,e)),[d,b,o]=c.getOptimisticResult(u,e.combine),f=!i&&e.subscribed!==!1;p.useSyncExternalStore(p.useCallback(h=>f?c.subscribe(y.batchCalls(h)):P,[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),p.useEffect(()=>{c.setQueries(u,e)},[u,e,c]);const m=d.some((h,a)=>O(u[a],h))?d.flatMap((h,a)=>{const l=u[a];if(l&&O(l,h)){const E=new C(t,l);return B(l,E,n)}return[]}):[];if(m.length>0)throw Promise.all(m);const v=d.find((h,a)=>{const l=u[a];return l&&A({result:h,errorResetBoundary:n,throwOnError:l.throwOnError,query:t.getQueryCache().get(l.queryHash),suspense:l.suspense})});if(v?.error)throw v.error;return b(o())}export{I as u};