@remit/web-client-dist 0.0.679 → 0.0.681
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.
- package/assets/BriefPane-Ct5mLFno.js +1 -0
- package/assets/CalendarEventEditor-BDZOuAkE.js +1 -0
- package/assets/CalendarEventPopup-Cd49o1aV.js +1 -0
- package/assets/{CalendarLoadFailed-DL8u-JFQ.js → CalendarLoadFailed--QaS7mCJ.js} +1 -1
- package/assets/CalendarQuickCreate-BYHJja5o.js +1 -0
- package/assets/{CalendarSession-BMeYMexj.js → CalendarSession-CS_x_fs5.js} +1 -1
- package/assets/DesktopChrome-DGlb8cny.js +1 -0
- package/assets/{DropdownMenu-pEN-d7K3.js → DropdownMenu-T79mAX3f.js} +1 -1
- package/assets/{EmptyState-CP5Vn2LS.js → EmptyState-CA538vCg.js} +1 -1
- package/assets/{ErrorState-BmfRU6e6.js → ErrorState-DD3UfsN8.js} +1 -1
- package/assets/{FlaggedPane-CGZ_AxBh.js → FlaggedPane-DLqwSIp0.js} +1 -1
- package/assets/{FullCompose-YhsG0MQv.js → FullCompose-DnUwBsN_.js} +1 -1
- package/assets/LabelApplyTrigger-Ox3K3UZo.js +1 -0
- package/assets/MailShell-DVTROO5Y.js +1 -0
- package/assets/MailViewChrome-BXIIRW1m.js +1 -0
- package/assets/MailboxPane-ZTGfkp9r.js +135 -0
- package/assets/MessageBody-Bn9CiLsL.js +84 -0
- package/assets/MessageToolbar-bKPOSy0d.js +1 -0
- package/assets/NavMenuButton-DS-H9eDz.js +1 -0
- package/assets/{OnboardingWizard-DADGyMEc.js → OnboardingWizard-BpOpo7pG.js} +1 -1
- package/assets/OutboxPane-D90GSWPB.js +1 -0
- package/assets/_calendarObjectId-DLrseFHy.js +1 -0
- package/assets/_mailboxId-ChbfZSu5.js +1 -0
- package/assets/_messageId-C3xB5mTr.js +1 -0
- package/assets/_messageId-DkZ9lbs8.js +1 -0
- package/assets/_messageId-sIYPsGs_.js +1 -0
- package/assets/_outboxMessageId-p9gMPFrF.js +1 -0
- package/assets/_recurrenceId-Dr6Hnp4i.js +1 -0
- package/assets/_threadId-CZDsH_MT.js +1 -0
- package/assets/_threadId-H8aKyGzF.js +1 -0
- package/assets/_threadId-KqET2q-N.js +1 -0
- package/assets/_view-CtgngRpB.css +1 -0
- package/assets/_view._date-FIQ-o-2N.js +1 -0
- package/assets/{account-service-status-DbTLkFuz.js → account-service-status-6nrumJJk.js} +1 -1
- package/assets/accounts-BzG1i3mT.js +1 -0
- package/assets/advanced-BNNZ1epf.js +1 -0
- package/assets/agenda-time-C_THqiEa.js +1 -0
- package/assets/app-chrome-Cb3lBdOZ.js +1 -0
- package/assets/appearance-BihwpGRs.js +1 -0
- package/assets/{avatar-CxJjt5__.js → avatar-COUm7SBG.js} +1 -1
- package/assets/badge-C-N2Sfyc.js +1 -0
- package/assets/{bottom-sheet-BX4KSkk6.js → bottom-sheet-DDC7O5sx.js} +1 -1
- package/assets/{brief-BudFNiO7.js → brief-Bs9H-S4e.js} +1 -1
- package/assets/brief-DJ5051HC.js +1 -0
- package/assets/calendar-BR-28-ej.js +1 -0
- package/assets/{calendar-D6a4XfwP.js → calendar-BYyDHpZa.js} +1 -1
- package/assets/calendar-event-popup-Clle6FA1.js +1 -0
- package/assets/{calendar-event-sidebar-DhwwreFW.js → calendar-event-sidebar-CPgDwmOs.js} +1 -1
- package/assets/{calendar-failure-note-CJWF9Bm9.js → calendar-failure-note-C9fIL_8K.js} +1 -1
- package/assets/{calendar-guests-D5tYwBA8.js → calendar-guests-DEOe1juO.js} +1 -1
- package/assets/calendar-suggestion-DVjK0aSt.js +1 -0
- package/assets/calendars-DaDEW0oA.js +1 -0
- package/assets/{card-BsZT3k9v.js → card-MWxaP_DH.js} +1 -1
- package/assets/{checkbox-C3Yttn2a.js → checkbox-jLurGcNS.js} +1 -1
- package/assets/chevron-down-B3lcZAVN.js +1 -0
- package/assets/chevron-left-B-i0rFYx.js +1 -0
- package/assets/{circle-check-Doz35Q_M.js → circle-check-QqmhC0RV.js} +1 -1
- package/assets/{circle-check-big-D9Wjhdx-.js → circle-check-big-ChJ8pH-b.js} +1 -1
- package/assets/{circle-help-B5DNH9Yv.js → circle-help-C9O6dqh6.js} +1 -1
- package/assets/{clock-D8iwoylV.js → clock-CNuf0kus.js} +1 -1
- package/assets/{cloud-off-B3IezOXr.js → cloud-off-C48CGroa.js} +1 -1
- package/assets/compose._-_outboxMessageId_-7cX9IraZ.js +1 -0
- package/assets/compose._-_outboxMessageId_-B4dAIiSz.js +1 -0
- package/assets/compose._-_outboxMessageId_-B8Bi18pS.js +1 -0
- package/assets/compose._-_outboxMessageId_-T4c20e76.js +1 -0
- package/assets/{config-import-CwIr-NJ5.js → config-import-BAWkCcKm.js} +1 -1
- package/assets/{confirm-dialog-DhdN2rki.js → confirm-dialog-CjHvZbGT.js} +1 -1
- package/assets/{copy-CtEwcw6R.js → copy-Ixy5ZR35.js} +1 -1
- package/assets/credential-steps-CREMZs9P.js +1 -0
- package/assets/{download-vcht0JNA.js → download-DCGyf3W_.js} +1 -1
- package/assets/draft-H1bLeWg_.js +1 -0
- package/assets/edit-BX860zdz.js +1 -0
- package/assets/edit-DvrV6duf.js +1 -0
- package/assets/{external-link-D5RMYJCY.js → external-link-kBeg4Rkl.js} +1 -1
- package/assets/{file-json-d4ZS8Wws.js → file-json-CxV9Z8Xk.js} +1 -1
- package/assets/filters-BqpcwwPd.js +1 -0
- package/assets/{flagged-BfctmA4r.js → flagged-Bjcd8w-O.js} +1 -1
- package/assets/flagged-DXwt3SZW.js +1 -0
- package/assets/folder-input-CmDkygvp.js +1 -0
- package/assets/folders-CeYrerQG.js +1 -0
- package/assets/{help-copy-PBpM2Nt-.js → help-copy-DLhRgp5W.js} +1 -1
- package/assets/import-yc3QynRF.js +1 -0
- package/assets/index-44Nd6hoS.js +1 -0
- package/assets/index-BafgExsO.js +1 -0
- package/assets/index-C3xB5mTr.js +1 -0
- package/assets/{index-CNLnhDIy.css → index-CMNnsfzR.css} +1 -1
- package/assets/index-D4ibfGR2.js +1 -0
- package/assets/index-D8uIyhWM.js +1 -0
- package/assets/index-DXydIDl3.js +1 -0
- package/assets/index-D_t--guV.js +1 -0
- package/assets/{index-D9rVZImU.js → index-DjF679iU.js} +11 -11
- package/assets/index-PazExuj-.js +1 -0
- package/assets/index-X3HUQEvM.js +213 -0
- package/assets/index-rv5AdzRX.js +1 -0
- package/assets/index-sIYPsGs_.js +1 -0
- package/assets/{kbd-Ba8uOP5b.js → kbd-DiYloCGE.js} +1 -1
- package/assets/label-chip-tLLbdHoz.js +1 -0
- package/assets/labels-DwqUITi6.js +1 -0
- package/assets/mail-CDuFGyaA.js +1 -0
- package/assets/mail-DxkYnpSf.js +1 -0
- package/assets/{menu-B9EpNfSt.js → menu-v-YxaQQ_.js} +1 -1
- package/assets/new-BrQZmpeT.js +1 -0
- package/assets/onboarding-DLvfj4LK.js +1 -0
- package/assets/{onboarding-completion-epwWc7r3.js → onboarding-completion-BG60cd5s.js} +1 -1
- package/assets/outbox-CZQb6qAX.js +1 -0
- package/assets/{pencil-CnNCN6P1.js → pencil-BnBK7tmS.js} +1 -1
- package/assets/people-OwHrHrdJ.js +1 -0
- package/assets/plus-GnqfNmfx.js +1 -0
- package/assets/{popover-menu-2YIsUsHr.js → popover-menu-J56UZVjI.js} +1 -1
- package/assets/{refresh-cw-Cr0O1tfh.js → refresh-cw-3jpeaUi7.js} +1 -1
- package/assets/reply-Bs_YhRF4.js +1 -0
- package/assets/{rich-text-BlVMVJea.js → rich-text-Bd-wRHu1.js} +3 -3
- package/assets/rich-text-spellcheck-worker-provider-Bnm0BFqL.js +1 -0
- package/assets/{rotate-ccw-fZQtnzhi.js → rotate-ccw-D8SF2xHr.js} +1 -1
- package/assets/{roving-focus-Di2-_Bi5.js → roving-focus-nxbliQos.js} +1 -1
- package/assets/{row-actions-FzEmQlCI.js → row-actions-YYjMjrwp.js} +1 -1
- package/assets/{search-mirror-Rg0rkpEY.js → search-mirror-DgYKzQ_z.js} +1 -1
- package/assets/search-scope-D_Xp19lV.js +1 -0
- package/assets/search-token-index-BIZzLNv9.js +1 -0
- package/assets/{sections-DPhyxq2e.js → sections-CRDaS4nn.js} +1 -1
- package/assets/segmented-control-DFN0EF39.js +1 -0
- package/assets/select-DaBof-xM.js +1 -0
- package/assets/senders-BReSWLlj.js +1 -0
- package/assets/settings-DXQ3zZlR.js +1 -0
- package/assets/settings-screen-DU3TjNi2.js +1 -0
- package/assets/{shield-check-DPCURbcU.js → shield-check-DZBDPqGc.js} +1 -1
- package/assets/{sparkles-CKGM5ogH.js → sparkles-DrZ81rOU.js} +1 -1
- package/assets/suggest-list-Bl5m8GjB.js +1 -0
- package/assets/{suggested-vips-CEDSSHCK.js → suggested-vips-CjpCfM-Q.js} +1 -1
- package/assets/suggestion._suggestionId-KbtftShf.js +1 -0
- package/assets/{task._calendarTaskId-COR3DmT4.js → task._calendarTaskId-CJNNC87Y.js} +1 -1
- package/assets/{undo-2-91d41Gxr.js → undo-2-DT3EdJen.js} +1 -1
- package/assets/{useCalendarData-D4cVUO0c.js → useCalendarData-CDMAl9sB.js} +1 -1
- package/assets/{useCalendarScheduling-BjOsYgtF.js → useCalendarScheduling-J13iQDXH.js} +1 -1
- package/assets/useCalendarSuggestions-BLiBIz-1.js +1 -0
- package/assets/{useCalendarTasks-vU39_Pqu.js → useCalendarTasks-DClcdx9Q.js} +1 -1
- package/assets/{useDebouncedValue-CCQodc3r.js → useDebouncedValue-CiTDV7kX.js} +1 -1
- package/assets/useFilters-D_mEdyEH.js +1 -0
- package/assets/useLabels-Beg-UxxE.js +1 -0
- package/assets/useLayoutTier-B5_piqNJ.js +1 -0
- package/assets/{useMediaQuery-eKKtffrD.js → useMediaQuery-9NJJDrX6.js} +1 -1
- package/assets/useMessageBodyContent-Dhtu6I6l.js +3 -0
- package/assets/useQueries-BO8eIXDf.js +1 -0
- package/assets/useRefreshControl-c8RtcGU3.js +1 -0
- package/assets/{useResultFolderIndex-Cn4PEyDR.js → useResultFolderIndex-CJrt60fl.js} +1 -1
- package/assets/useSignature-ZAeHuLA5.js +1 -0
- package/assets/{warnings-D0W4PYa1.js → warnings-CN1cP32K.js} +3 -3
- package/index.html +2 -2
- package/package.json +1 -1
- package/assets/BriefPane-IZ_xj1Lk.js +0 -1
- package/assets/CalendarEventEditor-DUg5gUNR.js +0 -1
- package/assets/CalendarEventPopup-BbBoaCKG.js +0 -1
- package/assets/CalendarQuickCreate-DVjhHPuJ.js +0 -1
- package/assets/DesktopChrome-CKI3QDy9.js +0 -1
- package/assets/LabelApplyTrigger-19lK6vLg.js +0 -1
- package/assets/MailShell-C3h8o0Po.js +0 -1
- package/assets/MailViewChrome-bMtbpNoZ.js +0 -1
- package/assets/MailboxPane-BO_DmR1T.js +0 -1
- package/assets/MessageBody-Dw2SMxor.js +0 -84
- package/assets/MessageToolbar-C4ylsZ_k.js +0 -1
- package/assets/NavMenuButton-BLH-0IxV.js +0 -1
- package/assets/OutboxPane-DuQ45_dm.js +0 -1
- package/assets/_calendarObjectId-Bu1gEdx4.js +0 -1
- package/assets/_mailboxId-DfmkdvY1.js +0 -1
- package/assets/_messageId-C16gKcH0.js +0 -1
- package/assets/_messageId-_anK-ruA.js +0 -1
- package/assets/_messageId-uhJG8cXc.js +0 -1
- package/assets/_outboxMessageId-CaSX9ZOS.js +0 -1
- package/assets/_recurrenceId-C3Qcwwvr.js +0 -1
- package/assets/_threadId-CstWlugv.js +0 -1
- package/assets/_threadId-DXKO9oGh.js +0 -1
- package/assets/_threadId-DwOOZ66z.js +0 -1
- package/assets/_view._date-Cp0fmpb2.js +0 -1
- package/assets/accounts-gJO9pQry.js +0 -1
- package/assets/advanced-UrNGfD9P.js +0 -1
- package/assets/appearance-BbURt4Vo.js +0 -1
- package/assets/brief-D2JSdiJk.js +0 -1
- package/assets/calendar-BlTUf0bx.js +0 -1
- package/assets/calendar-event-popup-BuR0xhCL.js +0 -1
- package/assets/calendar-suggestion-DRPyaTm4.js +0 -1
- package/assets/calendars-tQGYwNBq.js +0 -1
- package/assets/compose._-_outboxMessageId_-BPU3iogA.js +0 -1
- package/assets/compose._-_outboxMessageId_-BgVnlkG4.js +0 -1
- package/assets/compose._-_outboxMessageId_-BnsIRMLA.js +0 -1
- package/assets/compose._-_outboxMessageId_-CpaquYol.js +0 -1
- package/assets/credential-steps-dUNvV52R.js +0 -1
- package/assets/draft-Cn-cGLa8.js +0 -1
- package/assets/edit-B-28N5ki.js +0 -1
- package/assets/edit-OALDWD3A.js +0 -1
- package/assets/filters-DrX3DsrZ.js +0 -1
- package/assets/flagged-CU6IaMWI.js +0 -1
- package/assets/folders-0XOIE3da.js +0 -1
- package/assets/import-BTQvBLt4.js +0 -1
- package/assets/index-BHtOQW8x.js +0 -1
- package/assets/index-BoRZwOaB.js +0 -1
- package/assets/index-C0jxJ9rz.js +0 -1
- package/assets/index-C15-ASoN.js +0 -1
- package/assets/index-C16gKcH0.js +0 -1
- package/assets/index-DefW0u5m.js +0 -1
- package/assets/index-Dg1Qx5Zn.js +0 -1
- package/assets/index-IUjWbCxV.js +0 -1
- package/assets/index-JcHkcLZl.js +0 -349
- package/assets/index-fTiw_j5r.js +0 -1
- package/assets/index-uhJG8cXc.js +0 -1
- package/assets/labels-7qLNnQ4p.js +0 -1
- package/assets/mail-DfXdcXsx.js +0 -1
- package/assets/new-CQLfecpu.js +0 -1
- package/assets/onboarding-u4F7mHOL.js +0 -1
- package/assets/outbox-CQ-KfDPo.js +0 -1
- package/assets/people-Bp5zi0j-.js +0 -1
- package/assets/reply-Dh35Hqag.js +0 -1
- package/assets/rich-text-spellcheck-worker-provider-Bh7g2S3c.js +0 -1
- package/assets/search-scope-UI1H6AzA.js +0 -1
- package/assets/search-token-index-DKhKuetV.js +0 -1
- package/assets/senders-iDSnpdnW.js +0 -1
- package/assets/settings-C4JJ05jn.js +0 -1
- package/assets/settings-screen-B4Stef9n.js +0 -1
- package/assets/suggestion._suggestionId-B9utmB_0.js +0 -1
- package/assets/useCalendarSuggestions-DVLnDR0Q.js +0 -1
- package/assets/useFilters-bWTIYb6Z.js +0 -1
- package/assets/useLabels-ymrfdmw5.js +0 -1
- package/assets/useLayoutTier-BUzxktUV.js +0 -1
- package/assets/useMessageBodyContent-BwiAK6tQ.js +0 -1
- package/assets/useQueries-eyXujaLS.js +0 -1
- package/assets/useRefreshControl-DMEs8u4b.js +0 -1
- package/assets/useSignature-bFJVFu89.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as o}from"./index-X3HUQEvM.js";import{F as r}from"./FlaggedPane-DLqwSIp0.js";import"./MessageToolbar-bKPOSy0d.js";import"./MessageBody-Bn9CiLsL.js";import"./kbd-DiYloCGE.js";import"./search-scope-D_Xp19lV.js";import"./app-chrome-Cb3lBdOZ.js";import"./reply-Bs_YhRF4.js";import"./useMediaQuery-9NJJDrX6.js";import"./useMessageBodyContent-Dhtu6I6l.js";import"./roving-focus-nxbliQos.js";import"./chevron-down-B3lcZAVN.js";import"./search-token-index-BIZzLNv9.js";import"./useQueries-BO8eIXDf.js";import"./index-DjF679iU.js";import"./useSignature-ZAeHuLA5.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CiTDV7kX.js";import"./suggest-list-Bl5m8GjB.js";import"./sections-CRDaS4nn.js";import"./badge-C-N2Sfyc.js";import"./undo-2-DT3EdJen.js";import"./DropdownMenu-T79mAX3f.js";import"./popover-menu-J56UZVjI.js";import"./ErrorState-DD3UfsN8.js";import"./mail-CDuFGyaA.js";import"./download-DCGyf3W_.js";import"./avatar-COUm7SBG.js";import"./EmptyState-CA538vCg.js";import"./calendar-suggestion-DVjK0aSt.js";import"./useCalendarSuggestions-BLiBIz-1.js";import"./agenda-time-C_THqiEa.js";import"./sparkles-DrZ81rOU.js";import"./plus-GnqfNmfx.js";import"./calendar-format-BwCpz-JZ.js";import"./calendar-BYyDHpZa.js";import"./calendar-failure-note-C9fIL_8K.js";import"./checkbox-jLurGcNS.js";import"./clock-CNuf0kus.js";import"./segmented-control-DFN0EF39.js";import"./shield-check-DZBDPqGc.js";import"./useLayoutTier-B5_piqNJ.js";import"./menu-v-YxaQQ_.js";import"./useFilters-D_mEdyEH.js";import"./select-DaBof-xM.js";import"./folder-input-CmDkygvp.js";import"./confirm-dialog-CjHvZbGT.js";import"./label-chip-tLLbdHoz.js";import"./cloud-off-C48CGroa.js";import"./MailViewChrome-BXIIRW1m.js";import"./refresh-cw-3jpeaUi7.js";import"./wizard-selection-zWa1qc6-.js";function oo(){return o.jsx(r.Reading,{})}export{oo as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as o}from"./index-X3HUQEvM.js";import{F as r}from"./FlaggedPane-DLqwSIp0.js";import"./MessageToolbar-bKPOSy0d.js";import"./MessageBody-Bn9CiLsL.js";import"./kbd-DiYloCGE.js";import"./search-scope-D_Xp19lV.js";import"./app-chrome-Cb3lBdOZ.js";import"./reply-Bs_YhRF4.js";import"./useMediaQuery-9NJJDrX6.js";import"./useMessageBodyContent-Dhtu6I6l.js";import"./roving-focus-nxbliQos.js";import"./chevron-down-B3lcZAVN.js";import"./search-token-index-BIZzLNv9.js";import"./useQueries-BO8eIXDf.js";import"./index-DjF679iU.js";import"./useSignature-ZAeHuLA5.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CiTDV7kX.js";import"./suggest-list-Bl5m8GjB.js";import"./sections-CRDaS4nn.js";import"./badge-C-N2Sfyc.js";import"./undo-2-DT3EdJen.js";import"./DropdownMenu-T79mAX3f.js";import"./popover-menu-J56UZVjI.js";import"./ErrorState-DD3UfsN8.js";import"./mail-CDuFGyaA.js";import"./download-DCGyf3W_.js";import"./avatar-COUm7SBG.js";import"./EmptyState-CA538vCg.js";import"./calendar-suggestion-DVjK0aSt.js";import"./useCalendarSuggestions-BLiBIz-1.js";import"./agenda-time-C_THqiEa.js";import"./sparkles-DrZ81rOU.js";import"./plus-GnqfNmfx.js";import"./calendar-format-BwCpz-JZ.js";import"./calendar-BYyDHpZa.js";import"./calendar-failure-note-C9fIL_8K.js";import"./checkbox-jLurGcNS.js";import"./clock-CNuf0kus.js";import"./segmented-control-DFN0EF39.js";import"./shield-check-DZBDPqGc.js";import"./useLayoutTier-B5_piqNJ.js";import"./menu-v-YxaQQ_.js";import"./useFilters-D_mEdyEH.js";import"./select-DaBof-xM.js";import"./folder-input-CmDkygvp.js";import"./confirm-dialog-CjHvZbGT.js";import"./label-chip-tLLbdHoz.js";import"./cloud-off-C48CGroa.js";import"./MailViewChrome-BXIIRW1m.js";import"./refresh-cw-3jpeaUi7.js";import"./wizard-selection-zWa1qc6-.js";function oo(){return o.jsx(r.Reading,{})}export{oo as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s,
|
|
1
|
+
import{j as s,p as t}from"./index-X3HUQEvM.js";function x({className:e,...n}){return s.jsx("kbd",{className:t("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),...n})}export{x as K};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as l,p as n}from"./index-X3HUQEvM.js";const a={Default:"bg-fg-subtle",Red:"bg-red-500",Orange:"bg-orange-500",Yellow:"bg-yellow-500",Green:"bg-green-500",Teal:"bg-teal-500",Blue:"bg-blue-500",Purple:"bg-purple-500",Gray:"bg-gray-500"},c=["Default","Red","Orange","Yellow","Green","Teal","Blue","Purple","Gray"],o=e=>Object.hasOwn(a,e);function g({label:e,onRemove:s,className:t}){const r=o(e.color)?a[e.color]:a.Default;return l.jsxs("span",{className:n("inline-flex items-center gap-1 rounded-full bg-surface-sunken px-2 py-0.5 text-2xs font-medium text-fg-muted shrink-0",t),children:[l.jsx("span",{className:n("size-1.5 shrink-0 rounded-full",r)}),l.jsx("span",{className:"truncate",children:e.name}),s&&l.jsx("button",{type:"button",onClick:()=>s(e.labelId),"aria-label":`Remove label ${e.name}`,className:"ml-0.5 rounded-full text-fg-subtle hover:text-fg",children:"×"})]})}export{g as L,a,o as i,c as l};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as f,j as e,ak as h,B as b,T as y,u as N,az as C,a as L,c as I,aB as D,d as S}from"./index-X3HUQEvM.js";import{L as w,l as g}from"./label-chip-tLLbdHoz.js";import{S as v}from"./select-DaBof-xM.js";import{a as $,b as E,c as k,u as R}from"./useLabels-Beg-UxxE.js";import{S as T}from"./settings-screen-DU3TjNi2.js";import{E as j}from"./ErrorState-DD3UfsN8.js";import{C as B}from"./confirm-dialog-CjHvZbGT.js";import"./chevron-down-B3lcZAVN.js";import"./avatar-COUm7SBG.js";import"./badge-C-N2Sfyc.js";import"./chevron-left-B-i0rFYx.js";import"./menu-v-YxaQQ_.js";import"./circle-help-C9O6dqh6.js";function O({labels:i,onRename:l,onRecolor:n,onDelete:u,deletingLabelId:r}){const[m,o]=f.useState(),[c,d]=f.useState("");if(i.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 s=t=>{const a=c.trim();a!==""&&l(t,a),o(void 0)};return e.jsx("ul",{className:"divide-y divide-line rounded-md border border-line",children:i.map(t=>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:[m===t.labelId?e.jsx(h,{autoFocus:!0,value:c,onChange:a=>d(a.target.value),onBlur:()=>s(t.labelId),onKeyDown:a=>{a.key==="Enter"&&(a.preventDefault(),s(t.labelId)),a.key==="Escape"&&(a.preventDefault(),o(void 0))},"aria-label":`Rename label ${t.name}`}):e.jsx("button",{type:"button",onClick:()=>{o(t.labelId),d(t.name)},"aria-label":`Rename label ${t.name}`,className:"flex items-center gap-2 rounded-sm text-left hover:opacity-80",children:e.jsx(w,{label:t})}),e.jsx("p",{className:"mt-0.5 text-xs text-fg-subtle",children:t.filterCount===0?"Not used in any filter":`Used in ${t.filterCount} ${t.filterCount===1?"filter":"filters"}`})]}),e.jsx(v,{"aria-label":`Color for ${t.name}`,value:t.color,onChange:a=>n(t.labelId,a.target.value),className:"w-28 shrink-0",children:g.map(a=>e.jsx("option",{value:a,children:a},a))}),e.jsx(b,{variant:"ghost",size:"sm",icon:e.jsx(y,{className:"size-4 text-danger"}),onClick:()=>u(t),disabled:r===t.labelId,"aria-label":`Delete label ${t.name}`})]},t.labelId))})}const P=(i,l)=>{if(l===0)return{title:`Delete the "${i}" label?`};const n=l===1?"filter":"filters";return{title:`Delete the "${i}" label?`,description:`This also deletes ${l} ${n} that ${l===1?"applies":"apply"} it — they can't be recovered.`}},H=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 z({accountId:i}){const{createLabel:l,isPending:n,isError:u}=R(i),[r,m]=f.useState(""),[o,c]=f.useState("Default"),d=()=>{const s=r.trim();s!==""&&l(s,o).then(()=>{m(""),c("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:r,onChange:s=>m(s.target.value),placeholder:"e.g. Receipts","aria-label":"Label name",onKeyDown:s=>{s.key==="Enter"&&(s.preventDefault(),d())}})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("span",{className:"text-xs text-fg-muted",children:"Color"}),e.jsx(v,{value:o,onChange:s=>c(s.target.value),"aria-label":"Label color",className:"w-28",children:g.map(s=>e.jsx("option",{value:s,children:s},s))})]}),e.jsx(b,{variant:"primary",onClick:d,disabled:n||r.trim()==="",children:n?"Creating…":"Create label"})]}),u&&e.jsx(S,{tone:"danger",variant:"soft",children:"Couldn't create that label. Please try again."})]})}function U({account:i}){const l=i.accountId,{labels:n,isPending:u,isError:r,error:m,refetch:o}=$(l),{updateLabel:c}=E(l),{deleteLabel:d,deletingLabelId:s}=k(l),[t,a]=f.useState();return e.jsxs("section",{className:"space-y-2",children:[e.jsx("h2",{className:"text-sm font-semibold text-fg",children:i.email}),u?e.jsx("div",{className:"h-16 animate-pulse rounded-md border border-line bg-surface","aria-busy":"true","aria-label":`Loading labels for ${i.email}`}):r?e.jsx(j,{variant:"inline",title:`Couldn't load labels for ${i.email}`,error:m,onRetry:()=>{o()}}):e.jsx(O,{labels:n,onRename:(p,x)=>c(p,{name:x}),onRecolor:(p,x)=>c(p,{color:x}),onDelete:a,deletingLabelId:s}),e.jsx(z,{accountId:l}),t&&(()=>{const p=P(t.name,t.filterCount);return e.jsx(B,{isOpen:!0,title:p.title,description:p.description,confirmLabel:"Delete label",destructive:!0,isBusy:s===t.labelId,onConfirm:()=>{d(t.labelId),a(void 0)},onCancel:()=>a(void 0)})})()]})}function Z(){const i=N(),l=C(),[n,u]=f.useState(!0),{data:r,isPending:m,isError:o,error:c,refetch:d}=L(I()),s=t=>{const a=D[t];a&&i({to:a})};return e.jsx(T,{items:l,activeId:"labels",title:"Labels",description:"Mark mail without moving it, per account.",help:H,helpOpen:n,onToggleHelp:()=>u(t=>!t),onSelect:s,onBackToMail:()=>{i({to:"/mail"})},children:m?e.jsx("div",{className:"h-24 animate-pulse rounded-sm border border-line bg-surface","aria-busy":"true","aria-label":"Loading accounts"}):o?e.jsx(j,{title:"Couldn't load accounts",error:c,onRetry:()=>{d()}}):r.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:r.accounts.map(t=>e.jsx(U,{account:t},t.accountId))})})}export{Z as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as e}from"./index-X3HUQEvM.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{b as Me,j as e,r as p,n as Ee,o as Pe,D as Le,X as Te,p as I,C as Fe,S as oe,q as Q,t as re,v as ie,F as Ae,T as ze,w as De,M as _e,x as Be,y as Ke,I as Qe,B as E,z as le,E as qe,G as He,H as ce,e as B,J as ue,K as de,N as $e,P as Ve,Q as Ue,R as me,a as xe,U as We,V as Ge,W as z,Y as Ye,Z as Je,_ as Xe,$ as Ze,a0 as es,a1 as ss,a2 as ts,a3 as as,a4 as ns,u as os,c as rs,a5 as is,O as ls}from"./index-X3HUQEvM.js";import{u as cs,l as O,a as D,m as q,b as us,c as ds,N as C,d as ms,e as xs,i as fs,f as ps}from"./reply-Bs_YhRF4.js";import{A as hs,S as fe,a as gs,c as bs,L as vs,b as ys,D as js,d as Ns}from"./DesktopChrome-DGlb8cny.js";import{u as K,a as Ss}from"./useMessageBodyContent-Dhtu6I6l.js";import{P as Cs}from"./pencil-BnBK7tmS.js";import{c as Is,s as ws,M as Os}from"./MailShell-DVTROO5Y.js";import{u as ks,a as Rs,R as Ms,s as Es,i as Ps,H as Ls,M as Ts}from"./useRefreshControl-c8RtcGU3.js";import{K as Fs,B as As,S as zs,u as Ds,s as _s,b as Bs,a as Ks,c as Qs,d as qs}from"./search-token-index-BIZzLNv9.js";import{u as Hs}from"./sections-CRDaS4nn.js";import{u as pe}from"./search-scope-D_Xp19lV.js";import{M as $s}from"./menu-v-YxaQQ_.js";import{B as he,u as Vs}from"./useResultFolderIndex-CJrt60fl.js";import{u as ge}from"./useQueries-BO8eIXDf.js";import{f as Us}from"./folder-failure-CqkVSsrb.js";import{i as Ws}from"./outbox-status-BlKn6P0x.js";import{u as Gs}from"./roving-focus-nxbliQos.js";import{C as Ys,A as Js}from"./account-service-status-6nrumJJk.js";import{S as Xs}from"./sparkles-DrZ81rOU.js";import{C as H}from"./chevron-down-B3lcZAVN.js";import{u as Zs}from"./index-DjF679iU.js";import{u as be,i as et}from"./useLayoutTier-B5_piqNJ.js";import{u as st}from"./useDebouncedValue-CiTDV7kX.js";import{E as tt}from"./ErrorState-DD3UfsN8.js";import{K as $}from"./kbd-DiYloCGE.js";import"./useMediaQuery-9NJJDrX6.js";import"./avatar-COUm7SBG.js";import"./popover-menu-J56UZVjI.js";import"./shield-check-DZBDPqGc.js";import"./mail-CDuFGyaA.js";import"./app-chrome-Cb3lBdOZ.js";import"./FullCompose-DnUwBsN_.js";import"./confirm-dialog-CjHvZbGT.js";import"./circle-check-big-ChJ8pH-b.js";import"./refresh-cw-3jpeaUi7.js";import"./useSignature-ZAeHuLA5.js";import"./account-form-helpers-DhckT_PN.js";import"./suggest-list-Bl5m8GjB.js";const at=Me("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 nt({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(Cs,{className:"size-6"})})}const ot=({isOpen:s,onClose:t})=>{const a=p.useRef(null);return Ee({id:"shortcuts",open:s,answers:{back:t}}),Pe(a,s),s?e.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[e.jsx(Le,{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:I("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(Te,{className:"size-5"})})]}),e.jsx("div",{className:"grid gap-x-8 gap-y-6 sm:grid-cols-2",children:Fs.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,c)=>e.jsxs(p.Fragment,{children:[c>0&&o.keys[0]==="g"&&e.jsx("span",{className:"text-2xs text-fg-subtle",children:"then"}),e.jsx($,{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($,{children:"Esc"})," to close"]})})]})]}):null},rt="button:not([disabled]), a[href]",P="outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-surface-sunken";function it({active:s,dimmed:t,indent:a}){return I("flex w-full items-center gap-2 rounded-md px-2 py-1 text-left text-sm transition-colors",P,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 lt({icon:s,label:t,count:a,active:n,failure:o}){return e.jsxs(e.Fragment,{children:[s&&e.jsx("span",{className:I("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:I("text-2xs tabular-nums",n?"text-accent-2":"text-fg-subtle"),children:a})]})}function w({icon:s,label:t,count:a,active:n,dimmed:o,indent:r,navId:c,linkComponent:u,ariaLabel:x,title:d,failure:h,onClick:y}){const g=it({active:n,dimmed:o,indent:r}),l=e.jsx(lt,{icon:s,label:t,count:a,active:n,failure:h}),v=x??t,m=h?`${v} — ${h}`:v,f=h?`${d??t} — ${h}`:d;return c&&u?u({navId:c,className:g,ariaLabel:m,title:f,onClick:y,children:l}):e.jsx("button",{type:"button",onClick:y,className:g,"aria-label":h?m:x,title:f,children:l})}const V={inbox:0,flagged:1,drafts:2,sent:3,archive:4,all:5,junk:6,trash:7};function ct(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(Ke,{className:"size-4"});case"sent":return e.jsx(ie,{className:"size-4"});case"archive":return e.jsx(Be,{className:"size-4"});case"all":return e.jsx(_e,{className:"size-4"});case"junk":return e.jsx(De,{className:"size-4"});case"trash":return e.jsx(ze,{className:"size-4"})}}const U=s=>s.role!=null,A=8,W="remit.nav.folders.open.",G="remit.nav.account.open.";function Y(s,t,a){if(typeof localStorage>"u")return a;const n=localStorage.getItem(s+t);return n===null?a:n!=="0"}function J(s,t,a){typeof localStorage>"u"||localStorage.setItem(s+t,a?"1":"0")}function ut({account:s,selectedNavId:t,onSelectNav:a,linkComponent:n}){const[o,r]=p.useState(()=>Y(G,s.id,!0)),[c,u]=p.useState(()=>Y(W,s.id,!0)),[x,d]=p.useState(!1),h=()=>{r(i=>{const j=!i;return J(G,s.id,j),j})},y=()=>{u(i=>{const j=!i;return J(W,s.id,j),j})},g=s.mailboxes.filter(U).sort((i,j)=>V[i.role]-V[j.role]),l=s.mailboxes.filter(i=>!U(i)),v=x||l.length<=A?l:l.slice(0,A),m=l.length-v.length,f=s.status??"ready",b=s.syncedServices!==void 0&&!s.syncedServices.includes("Mail"),N=f==="ready"&&g.length===0&&l.length===0;return e.jsxs("div",{className:"mt-3",children:[e.jsxs("button",{type:"button",onClick:h,"aria-expanded":o,className:I("flex w-full items-center gap-1.5 px-2 pb-1 text-left transition-colors hover:text-fg",P,s.muted&&"opacity-55"),children:[o?e.jsx(H,{className:"size-3 shrink-0 text-fg-subtle"}):e.jsx(Q,{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(As,{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:[f==="loading"&&e.jsx("div",{className:"px-2 py-1 text-sm text-fg-muted",children:"Loading…"}),f==="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"}),f==="ready"&&e.jsxs(e.Fragment,{children:[g.map(i=>e.jsx(w,{navId:i.id,linkComponent:n,icon:ct(i.role),label:i.name,ariaLabel:i.name,title:i.fullPath??i.name,failure:i.failure,count:i.unseen,active:t===i.id,dimmed:s.muted,onClick:()=>a?.(i.id)},i.id)),s.outboxPending!==void 0&&e.jsx(w,{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")}),l.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("button",{type:"button",onClick:y,"aria-expanded":c,className:I("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",P),children:[c?e.jsx(H,{className:"size-3 shrink-0"}):e.jsx(Q,{className:"size-3 shrink-0"}),e.jsx("span",{className:"flex-1",children:"Folders"}),e.jsx("span",{className:"tabular-nums opacity-70",children:l.length})]}),c&&e.jsxs(e.Fragment,{children:[v.map(i=>e.jsx(w,{navId:i.id,linkComponent:n,icon:e.jsx(Ae,{className:"size-4"}),label:i.name,ariaLabel:i.name,title:i.fullPath??i.name,failure:i.failure,count:i.unseen,active:t===i.id,dimmed:s.muted,onClick:()=>a?.(i.id)},i.id)),(m>0||x)&&l.length>A&&e.jsx("button",{type:"button",onClick:()=>d(i=>!i),className:I("ml-7 flex items-center px-2 py-1 text-2xs font-medium text-accent transition-colors hover:underline",P),children:x?"Show less":`Show all (${l.length})`})]})]})]})]})]})}function dt({accounts:s,selectedNavId:t,briefUnseen:a,onSelectNav:n,variant:o="desktop",linkComponent:r,calendarNav:c="hidden"}){const u=p.useRef(null);Gs({containerRef:u,itemSelector:rt});const x=o==="drawer",d=e.jsxs("nav",{ref:x?u:void 0,className:x?"px-2 py-2":"flex-1 overflow-y-auto px-2 py-2","aria-label":"Mailboxes",children:[e.jsx(w,{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")}),c==="shown"&&e.jsx(w,{navId:"calendar",linkComponent:r,icon:e.jsx(Fe,{className:"size-4"}),label:"Calendar",ariaLabel:"Calendar",active:t==="calendar",onClick:()=>n?.("calendar")}),e.jsx(w,{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(ut,{account:h,selectedNavId:t,onSelectNav:n,linkComponent:r},h.id))]});return x?d:e.jsx("aside",{ref:u,className:"flex h-full w-full flex-col bg-surface-sunken",children:d})}function mt(){const s=pe();if(!s)return null;const t=s.showNavPane?!s.navCollapsed:!1;return e.jsx(E,{variant:"ghost",size:"sm",icon:e.jsx($s,{className:"size-4"}),onClick:s.toggleNav,"aria-label":t?"Hide folders":"Show folders","aria-expanded":t,title:"Folders",className:"shrink-0"})}const xt={global:"Search all mail",pending:"Search mail",scoped:"Search this folder"};function ft({search:s,onCompose:t,onReportBug:a,onOpenSettings:n,settingsAttention:o,composeShortcut:r,refreshControl:c,account:u}){return e.jsx(hs,{leading:e.jsx(mt,{}),search:e.jsx(zs,{value:s.value,onChange:s.onChange,onClear:s.onClear,onClearQuery:s.onClearQuery,chips:s.chips,onRemoveChip:s.onRemoveChip,placeholder:xt[s.scope]}),actions:e.jsxs(e.Fragment,{children:[e.jsx(E,{variant:"ghost",size:"sm",icon:e.jsx(at,{className:"size-4"}),title:r?`Compose (${r})`:"Compose","aria-label":"Compose",onClick:t}),e.jsx(E,{variant:"ghost",size:"sm",icon:e.jsx(he,{className:"size-4"}),title:"Report a bug","aria-label":"Report a bug",onClick:a}),e.jsx(E,{variant:"ghost",size:"sm",icon:e.jsx(le,{label:o,children:e.jsx(fe,{className:"size-4"})}),title:"Settings","aria-label":o?`Settings — ${o}`:"Settings",onClick:n}),c,u]})})}function pt(){const{pathname:s}=cs(),t=qe({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 ht(){const s=He(),t=D({select:d=>q(d.location.pathname)}),a=D({select:d=>us(d.location.search)}),[n,o]=p.useState(a),r=st(n,200),[c,u]=p.useState(t);if(c!==t){const d=ws(c,t,a);u(t),d!==void 0&&o(d)}const x=p.useCallback(d=>{u(q(s.state.location.pathname)),o(d)},[s]);return{searchInput:n,committedQuery:Is(n,r),viewKey:t,setSearchInput:x}}const gt=()=>{const s=K();return ds()?null:e.jsx(nt,{onCompose:s})};function X({accounts:s}){const{searchInput:t,onSearchChange:a,onSearchClear:n,onSearchClearQuery:o,resultFolderIndex:r}=ce(),c=B(),u=Hs(),x=K(),{scope:d,clearScope:h}=Ds(s),y=ue(),g=d.kind==="scoped"?[{id:d.chip.id,label:d.chip.label,tone:"scope"}]:void 0,l=p.useMemo(()=>s.map(N=>N.accountId),[s]),{hasNewMail:v}=ks(),{state:m,errorMessage:f,refresh:b}=Rs(l,{onSettled:()=>$e(c,Ve(r.keys()))});return e.jsx(ft,{search:{value:t,scope:d.kind,chips:g,onChange:a,onClear:n,onClearQuery:o,onRemoveChip:h},onCompose:x,onReportBug:de,onOpenSettings:()=>u("accounts"),settingsAttention:y,composeShortcut:_s("compose"),refreshControl:e.jsx(Ms,{state:m,onRefresh:b,label:"Refresh all accounts",errorMessage:f,hasUpdate:v(l)}),account:e.jsx(gs,{})})}function bt(){return e.jsxs("button",{type:"button",onClick:de,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(he,{className:"size-4 shrink-0"}),e.jsx("span",{className:"flex-1 truncate text-left",children:"Report a bug"})]})}const Z=s=>/^\d/.test(s),vt=(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 yt(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,c)=>vt(z(r,void 0,a),z(c,void 0,a))),{system:n,labels:o}}function jt(s,t,a){const n=Ye(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:Us(s)}}function ee({accounts:s,onMailboxSelect:t,variant:a="desktop"}){const n=B(),o=pt(),{onSearchChange:r}=ce(),{t:c}=Ue("mail",{useSuspense:!1}),u=p.useCallback((m,f)=>c(m,{defaultValue:f}),[c]),x=ge({queries:s.map(m=>({...me({path:{accountId:m.accountId}}),staleTime:1/0}))}),{data:d}=xe(We()),h=p.useMemo(()=>(d?.items??[]).filter(m=>Ws(m.status)).length,[d?.items]),y=p.useMemo(()=>s.map((m,f)=>{const b=x[f],N=b?.data?.items??[],i=Ge(m.folderAppointments),{system:j,labels:L}=yt(N,i,u),T=b?.isError?"error":b?.isLoading?"loading":"ready";return{id:m.accountId,label:m.email,email:m.email,muted:!!m.muted,outboxPending:h,status:T,onRetry:()=>b?.refetch(),mailboxes:[...j,...L].map(k=>jt(k,i.get(k.mailboxId),u))}}),[s,x,h,u]),g=m=>{n.invalidateQueries({queryKey:Je({path:{mailboxId:m},query:{order:"desc"}})})},l=({navId:m,className:f,ariaLabel:b,title:N,children:i,onClick:j})=>m==="brief"?e.jsx(C,{to:"/mail/brief",search:{q:void 0},activeOptions:{includeSearch:!1},onClick:()=>j?.(),className:f,"aria-label":b,title:N,children:i}):m==="calendar"?e.jsx(C,{to:"/calendar",onClick:()=>j?.(),className:f,"aria-label":b,title:N,children:i}):m==="outbox"?e.jsx(C,{to:"/mail/outbox",search:{q:void 0},onClick:()=>j?.(),className:f,"aria-label":b,title:N,children:i}):m==="flagged"?e.jsx(C,{to:"/mail/flagged",search:{q:void 0},onClick:()=>j?.(),className:f,"aria-label":b,title:N,children:i}):m==="settings"?e.jsx(C,{to:"/settings/accounts",onClick:()=>j?.(),className:f,"aria-label":b,title:N,children:i}):e.jsx(C,{to:"/mail/$mailboxId",params:{mailboxId:m},search:{q:void 0},onClick:()=>{g(m),j?.()},className:f,"aria-label":b,title:N,children:i}),v=()=>{r(""),t?.()};return e.jsx(dt,{accounts:y,selectedNavId:o,onSelectNav:v,linkComponent:l,variant:a})}function Nt({accounts:s,onMailboxSelect:t}){const n=pe()?.showNavPane??!0,o=ue();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(C,{to:"/settings/accounts",onClick:t,children:[e.jsx(le,{label:o,children:e.jsx(fe,{className:"size-4 shrink-0"})}),e.jsx("span",{className:"flex-1 truncate text-left",children:"Settings"})]}),e.jsx(bt,{}),e.jsx(bs,{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(vs,{className:"size-4 shrink-0"}),e.jsx("span",{className:"flex-1 truncate text-left",children:"Sign out"})]})})]})]})}function St(s){const t=ge({queries:s.map(a=>({...me({path:{accountId:a.accountId}}),staleTime:1/0}))});return p.useMemo(()=>Bs(t.map(a=>a.data?.items??[])),[t])}const ve="remit:intelligence-open";function Ct(){try{return localStorage.getItem(ve)!=="closed"}catch{return!0}}function It(s){try{localStorage.setItem(ve,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 c=s.filter(u=>u!=="sidebar");return c.length>0?c.includes("intelligence"):a&&n&&t}const wt=()=>{const s=be(),t=ms(),a=xs(),n=t.find(fs),o=Ks(),[r,c]=p.useState(Ct),u=o?`${o.threadId}/${o.messageId??""}`:null,[x,d]=p.useState(null),h={panels:t,prefersOpen:r,isDesktop:s==="desktop",hasThread:o!==void 0,openMessage:u},y=se({...h,raisedFor:x}),g=se({...h,raisedFor:null}),l=p.useCallback((b,N)=>{a([...b?["intelligence"]:[],...N?[N]:[]])},[a]),v=p.useCallback(b=>{l(g,b)},[g,l]),m=p.useCallback(()=>{if(y&&!g){d(null);return}const b=!y;It(b),c(b),d(null),l(b,n)},[g,y,n,l]),f=p.useCallback(()=>{d(u)},[u]);return{openOverlay:n,intelligenceOpen:y,showOverlay:v,toggleIntelligence:m,raiseIntelligence:f}};var R={exports:{}},te;function Ot(){if(te)return R.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:c}=n;if(!(typeof c=="number"&&c>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${c}\` (${typeof c})`);const u=[],x=t[Symbol.iterator]();let d=!1,h=!1,y=0,g=0;const l=()=>{if(d)return;const v=x.next(),m=g;if(g++,v.done){h=!0,y===0&&o(u);return}y++,Promise.resolve(v.value).then(f=>a(f,m)).then(f=>{u[m]=f,y--,l()},f=>{d=!0,r(f)})};for(let v=0;v<c&&(l(),!h);v++);});return R.exports=s,R.exports.default=s,R.exports}var kt=Ot();const Rt=Xe(kt),Mt=900*1e3,Et=30,Pt=(s,t)=>{if(!s)return t;const a=Number.parseInt(s,10);return Number.isFinite(a)&&a>0?a:t},Lt=30*1e3,Tt=s=>Math.max(Pt(s,Et)*1e3,Lt),ye=Tt(ns().mailboxPollIntervalSeconds),M=(s=Date.now(),t=ye)=>Ps(s)?Math.min(Ls,t):t,Ft=5,_=new Set,At=(s,t,a=Mt)=>s.filter(n=>{const o=n.lastSyncAt;return o==null?!0:t-o>a}).map(n=>n.accountId),zt=(s,t,a=ye)=>s-t>=a,Dt=(s,t)=>s.filter(a=>!t.has(a)),ae=(s,t)=>{if(_.delete(s),ss(t)||ts(t,{softError:!0})){as(t,{softError:!0});return}console.warn("[remit] background mailbox sync failed",{accountId:s,error:t})},ne=(s,t)=>Ze({path:{accountId:s},throwOnError:!0}).then(()=>{t.invalidateQueries({queryKey:es({path:{accountId:s}})})}),_t=s=>{const t=B(),a=p.useRef(s);a.current=s;const n=s.map(o=>o.accountId).join(",");p.useEffect(()=>{const o=Date.now(),c=At(a.current,o).filter(u=>!_.has(u));if(c.length!==0)for(const u of c)_.add(u),ne(u,t).catch(x=>{ae(u,x)})},[n,t]),p.useEffect(()=>{let o=Date.now(),r;const c=new Set,u=()=>{o=Date.now();const g=Dt(a.current.map(l=>l.accountId),c);for(const l of g)c.add(l);Rt(g,l=>ne(l,t).catch(v=>{ae(l,v)}).finally(()=>{c.delete(l)}),{concurrency:Ft})},x=()=>{if(document.visibilityState==="visible"){u(),r=setTimeout(x,M());return}},d=()=>{if(document.visibilityState!=="visible")return;r!==void 0&&clearTimeout(r);const g=Date.now(),l=M(g);if(zt(g,o,l)){u(),r=setTimeout(x,l);return}r=setTimeout(x,o+l-g)},h=()=>{document.visibilityState==="visible"&&(r!==void 0&&clearTimeout(r),o=Date.now(),r=setTimeout(x,M()))};r=setTimeout(x,M()),document.addEventListener("visibilitychange",d);const y=Es(h);return()=>{r!==void 0&&clearTimeout(r),document.removeEventListener("visibilitychange",d),y()}},[n,t])};function Sa(){const s=os(),t=be(),a=et(t),{openOverlay:n,intelligenceOpen:o,showOverlay:r,toggleIntelligence:c,raiseIntelligence:u}=wt(),x=n==="shortcuts",d=n==="nav",{searchInput:h,committedQuery:y,viewKey:g,setSearchInput:l}=ht(),{data:v,isLoading:m,isError:f,error:b,refetch:N}=xe({...rs(),staleTime:1/0}),i=!!(v&&(v.accounts?.length??0)===0);p.useEffect(()=>{i&&s({to:"/onboarding",replace:!0})},[i,s]),Zs({enabled:!x,bindings:[{key:"?",action:"help",handler:()=>r("shortcuts"),noModifiers:!1,preventDefault:!0}]});const j=K(),L=Ss(),T=D({select:F=>ps(F.matches)?.list==="mailbox"}),k=p.useMemo(()=>({compose:j}),[j]);Qs({enabled:!T&&!L,handlers:k});const je=p.useCallback(()=>{l("")},[l]),Ne=p.useCallback(()=>{l("")},[l]),S=v?.accounts??[],Se=p.useMemo(()=>S.map(F=>F.accountId),[S]),Ce=St(S),Ie=Vs(S).index,we=p.useMemo(()=>qs(S),[S]);_t(S);const Oe=p.useCallback(()=>{n==="nav"&&r(void 0)},[n,r]),ke={accounts:S,mailboxNameIndex:Ce,accountNameIndex:we,resultFolderIndex:Ie,searchQuery:y,searchInput:h,searchViewKey:g,onSearchChange:l,onSearchClear:je,onSearchClearQuery:Ne,intelligenceOpen:o,onToggleIntelligence:c,onRaiseIntelligence:u},Re={isSinglePane:a,isLoading:m||i,intelligenceOpen:o,nav:e.jsx(Nt,{accounts:S,onMailboxSelect:Oe}),topBar:a?void 0:e.jsx(X,{accounts:S}),appBar:t==="phone"?void 0:e.jsx(Ns,{}),overlay:a?e.jsx(gt,{}):void 0,navOpen:d,onOpenNav:()=>r("nav"),onCloseNav:()=>r(void 0)};return e.jsx(is.Provider,{value:ke,children:e.jsxs(Ts,{accountIds:Se,children:[e.jsx(ys,{children:f?e.jsx(js,{topBar:e.jsx(X,{accounts:S}),children:e.jsx("div",{className:"flex h-full items-center justify-center bg-canvas p-4",children:e.jsx(tt,{title:"Couldn't load your account",error:b,onRetry:()=>{N()}})})}):e.jsx(Os,{chrome:Re,children:e.jsx(ls,{})})}),e.jsx(ot,{isOpen:x,onClose:()=>r(void 0)})]})})}export{Sa as component,ce as useMailContext};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e}from"./index-
|
|
1
|
+
import{b as e}from"./index-X3HUQEvM.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{C as o}from"./CalendarEventEditor-BDZOuAkE.js";import"./index-X3HUQEvM.js";import"./draft-H1bLeWg_.js";import"./agenda-time-C_THqiEa.js";import"./calendar-guests-DEOe1juO.js";import"./calendar-event-popup-Clle6FA1.js";import"./useCalendarSuggestions-BLiBIz-1.js";import"./ErrorState-DD3UfsN8.js";import"./useQueries-BO8eIXDf.js";import"./pencil-BnBK7tmS.js";import"./circle-help-C9O6dqh6.js";import"./useCalendarData-CDMAl9sB.js";import"./useCalendarTasks-DClcdx9Q.js";import"./useCalendarScheduling-J13iQDXH.js";import"./useDebouncedValue-CiTDV7kX.js";import"./calendar-format-BwCpz-JZ.js";import"./reply-Bs_YhRF4.js";import"./useMediaQuery-9NJJDrX6.js";import"./calendar-BYyDHpZa.js";import"./CalendarQuickCreate-BYHJja5o.js";import"./CalendarSession-CS_x_fs5.js";import"./calendar-event-sidebar-CPgDwmOs.js";import"./select-DaBof-xM.js";import"./chevron-down-B3lcZAVN.js";import"./confirm-dialog-CjHvZbGT.js";const q=o;export{q as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as i,e as n,u as a,r as m,j as p}from"./index-X3HUQEvM.js";import{O as s}from"./OnboardingWizard-BpOpo7pG.js";import{c}from"./onboarding-completion-BG60cd5s.js";import"./credential-steps-CREMZs9P.js";import"./select-DaBof-xM.js";import"./chevron-down-B3lcZAVN.js";import"./badge-C-N2Sfyc.js";import"./card-MWxaP_DH.js";import"./account-form-helpers-DhckT_PN.js";import"./mail-CDuFGyaA.js";import"./file-json-CxV9Z8Xk.js";import"./kbd-DiYloCGE.js";import"./checkbox-jLurGcNS.js";function k(){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 p.jsx(s,{skipWelcome:!1,onComplete:r,onImportConfig:()=>{e({to:"/import"})}})}export{k as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{k as o}from"./index-X3HUQEvM.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-X3HUQEvM.js";import{a as m}from"./MailShell-DVTROO5Y.js";import{u as p,O as t}from"./OutboxPane-D90GSWPB.js";import"./reply-Bs_YhRF4.js";import{u as s}from"./search-mirror-DgYKzQ_z.js";import"./useMessageBodyContent-Dhtu6I6l.js";import"./FullCompose-DnUwBsN_.js";import"./index-DjF679iU.js";import"./useSignature-ZAeHuLA5.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CiTDV7kX.js";import"./suggest-list-Bl5m8GjB.js";import"./sections-CRDaS4nn.js";import"./useMediaQuery-9NJJDrX6.js";import"./chevron-down-B3lcZAVN.js";import"./ErrorState-DD3UfsN8.js";import"./confirm-dialog-CjHvZbGT.js";import"./search-scope-D_Xp19lV.js";import"./app-chrome-Cb3lBdOZ.js";import"./MessageBody-Bn9CiLsL.js";import"./kbd-DiYloCGE.js";import"./outbox-status-BlKn6P0x.js";import"./NavMenuButton-DS-H9eDz.js";import"./menu-v-YxaQQ_.js";import"./roving-focus-nxbliQos.js";import"./circle-check-big-ChJ8pH-b.js";import"./clock-CNuf0kus.js";import"./row-actions-YYjMjrwp.js";import"./rotate-ccw-D8SF2xHr.js";function B(){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{B as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a}from"./index-
|
|
1
|
+
import{b as a}from"./index-X3HUQEvM.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as D,e as I,f as O,bw as E,bx as T,by as A,bz as R,bA as F,bB as z,bC as L,bD as v,r as c,j as e,ax as k,B as m,X as M,al as U,bE as b,bF as B,am as H,bG as _,d as g,bH as G,bI as C,bJ as w,u as Q,az as W,aB as Y}from"./index-X3HUQEvM.js";import{C as q}from"./copy-Ixy5ZR35.js";import{D as K,a as h,b as $}from"./DropdownMenu-T79mAX3f.js";import{S as J}from"./settings-screen-DU3TjNi2.js";import"./avatar-COUm7SBG.js";import"./badge-C-N2Sfyc.js";import"./chevron-left-B-i0rFYx.js";import"./menu-v-YxaQQ_.js";import"./circle-help-C9O6dqh6.js";const X=D("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),V=async({action:s,person:t},r)=>{const n={userId:t.userId};if(s==="SignOut"){const{data:a}=await F({path:n,body:{stepUpToken:r},throwOnError:!0});return{person:a,resetUrl:void 0}}if(s==="ResetPassword"){const{data:a}=await z({path:n,body:{stepUpToken:r},throwOnError:!0});return{person:a.person,resetUrl:a.resetUrl}}const{data:o}=await L({path:n,body:{status:s==="Disable"?"Disabled":"Active",stepUpToken:r},throwOnError:!0});return{person:o,resetUrl:void 0}},Z=s=>{const t=I();return O({meta:E,gcTime:0,mutationFn:async r=>{const{data:n}=await R({body:{password:s,action:r.action,userId:r.person.userId},throwOnError:!0});return V(r,n.stepUpToken)},onSuccess:({person:r})=>{t.setQueryData(T(),n=>n&&{people:A(n.people,r)})}})},ee="That is not your password. Try again.",se="Five wrong passwords in 15 minutes. Wait 15 minutes, then try again.";function te({action:s,person:t,onCancel:r,onDone:n,onFailed:o}){const a=v(s,t.email),[l,p]=c.useState(""),[u,x]=c.useState(null),i=Z(l),d=()=>{i.isPending||r()},P=f=>{f.preventDefault(),!(i.isPending||l==="")&&(x(null),i.mutate({action:s,person:t},{onSuccess:n,onError:y=>{const j=b(y);if(j.kind==="wrongPassword"){p(""),x(ee);return}if(j.kind==="locked"){p(""),x(se);return}if(j.kind==="signedOut"){r(),B();return}o(y)}}))};return e.jsx(k,{open:!0,onClose:d,title:a.title,children:e.jsxs("form",{onSubmit:P,children:[e.jsxs("header",{className:"flex items-center gap-2 border-b border-line px-5 py-3",children:[e.jsx("span",{className:"flex-1 text-sm font-semibold text-fg",children:a.title}),e.jsx(m,{variant:"ghost",size:"sm",icon:e.jsx(M,{className:"size-3.5"}),onClick:d,"aria-label":"Close"})]}),e.jsxs("div",{className:"space-y-4 px-5 py-4 text-sm text-fg-muted",children:[e.jsx("p",{children:a.body}),e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("label",{htmlFor:"people-step-up-password",className:"text-xs font-medium text-fg",children:"Your password"}),e.jsx(U,{id:"people-step-up-password",autoComplete:"current-password",value:l,onChange:f=>{p(f.target.value),x(null)},"aria-invalid":u!==null,"aria-describedby":"people-step-up-hint",required:!0}),e.jsx("p",{id:"people-step-up-hint",className:"text-xs",children:u?e.jsx("span",{className:"text-danger",role:"alert",children:u}):"Confirm with your own password. It counts for this one action."})]})]}),e.jsxs("footer",{className:"flex items-center justify-end gap-2 border-t border-line px-5 py-3",children:[e.jsx(m,{variant:"secondary",size:"sm",onClick:d,children:"Cancel"}),e.jsx(m,{type:"submit",variant:a.destructive?"danger":"primary",size:"sm",disabled:l==="","aria-busy":i.isPending,children:a.confirmLabel})]})]})})}const ne=()=>{};function re({email:s,resetUrl:t,onDone:r}){const[n,o]=c.useState(!1),[a,l]=c.useState(!1),p=()=>{navigator.clipboard.writeText(t).then(()=>{l(!1),o(!0)}).catch(()=>l(!0))};return e.jsxs(k,{open:!0,onClose:ne,title:`Reset link for ${s}`,children:[e.jsxs("header",{className:"border-b border-line px-5 py-3 text-sm font-semibold text-fg",children:["Reset link for ",s]}),e.jsxs("div",{className:"space-y-4 px-5 py-4 text-sm text-fg-muted",children:[e.jsx("p",{children:"They are signed out everywhere. Give them this link, by message or in person. It works once, for 24 hours."}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center",children:[e.jsx(m,{variant:"primary",size:"sm",icon:n?e.jsx(H,{className:"size-3.5"}):e.jsx(q,{className:"size-3.5"}),onClick:p,children:n?"Copied":"Copy"}),e.jsx("input",{readOnly:!0,tabIndex:-1,value:t,"aria-label":`Reset link for ${s}`,onFocus:u=>u.currentTarget.select(),className:"min-w-0 flex-1 rounded-sm border border-line bg-surface px-2 py-1.5 font-mono text-xs text-fg sm:order-first"})]}),a&&e.jsx("p",{className:"text-xs text-danger",role:"alert",children:"Copying did not work in this browser. Select the link and copy it by hand."}),e.jsx("p",{children:"You see this link only now. Close this window and it is gone. Make a new one if it gets lost."})]}),e.jsx("footer",{className:"flex justify-end border-t border-line px-5 py-3",children:e.jsx(m,{variant:"secondary",size:"sm",onClick:r,children:"Done"})})]})}const N="The list of people did not load";function S({href:s}){return e.jsx("a",{href:s,target:"_blank",rel:"noreferrer",className:"font-medium text-accent hover:underline",children:"Report an issue"})}function ae({failure:s}){const t=c.useRef(null);return c.useEffect(()=>{t.current?.focus()},[]),e.jsx("div",{ref:t,tabIndex:-1,className:"outline-none",children:e.jsxs(g,{tone:"danger",children:[e.jsx("p",{className:"font-medium",children:s.title}),e.jsx("p",{className:"mt-1 text-fg-muted",children:s.reason}),e.jsx("p",{className:"mt-1",children:e.jsx(S,{href:C(s.title,s.error)})})]})})}function oe({person:s,onPick:t}){const r=s.status==="Disabled";return e.jsxs(K,{trigger:e.jsxs(e.Fragment,{children:[e.jsx(X,{className:"size-4","aria-hidden":"true"}),e.jsxs("span",{className:"sr-only",children:["Actions for ",s.email]})]}),children:[e.jsx(h,{onClick:()=>t("SignOut"),children:"Sign out everywhere"}),e.jsx(h,{onClick:()=>t("ResetPassword"),children:"Reset password"}),e.jsx($,{}),r?e.jsx(h,{onClick:()=>t("Enable"),children:"Enable"}):e.jsx(h,{onClick:()=>t("Disable"),disabled:s.isCaller,destructive:!s.isCaller,children:e.jsxs("span",{className:"flex flex-col",children:[e.jsx("span",{children:"Disable"}),s.isCaller&&e.jsx("span",{className:"text-xs text-fg-subtle",children:"Not your own account"})]})})]})}function ie({people:s,onPick:t}){const r=new Date;return e.jsx("div",{className:"overflow-x-auto rounded-sm border border-line bg-surface",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"border-b border-line text-xs text-fg-muted",children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",className:"px-3 py-2 font-medium",children:"Email"}),e.jsx("th",{scope:"col",className:"px-3 py-2 font-medium",children:"Created"}),e.jsx("th",{scope:"col",className:"px-3 py-2 font-medium",children:"Last sign-in"}),e.jsx("th",{scope:"col",className:"px-3 py-2 font-medium",children:"Sessions"}),e.jsx("th",{scope:"col",className:"px-3 py-2 font-medium",children:"Status"}),e.jsx("th",{scope:"col",className:"w-12 px-1 py-2",children:e.jsx("span",{className:"sr-only",children:"Actions"})})]})}),e.jsx("tbody",{children:s.map(n=>e.jsxs("tr",{className:"border-b border-line last:border-b-0",children:[e.jsxs("td",{className:"px-3 py-1 text-fg",children:[n.email,n.isCaller&&e.jsx("span",{className:"text-fg-muted",children:" (you)"})]}),e.jsx("td",{className:"px-3 py-1 text-fg-muted",children:w(n.createdAt,r)}),e.jsx("td",{className:"px-3 py-1 text-fg-muted",children:w(n.lastSignInAt,r)}),e.jsx("td",{className:"px-3 py-1 tabular-nums text-fg-muted",children:n.sessionCount}),e.jsx("td",{className:n.status==="Disabled"?"px-3 py-1 text-danger":"px-3 py-1 text-fg-muted",children:n.status}),e.jsx("td",{className:"px-1 py-1",children:e.jsx(oe,{person:n,onPick:o=>t(o,n)})})]},n.userId))})]})})}function le(){const s=_(),[t,r]=c.useState(null),[n,o]=c.useState(null),[a,l]=c.useState(null);if(s.isPending)return e.jsx("div",{className:"h-24 animate-pulse rounded-sm border border-line bg-surface","aria-busy":"true","aria-label":"Loading people"});if(s.unavailable)return e.jsx(g,{tone:"info",children:"This server has no People page. It shows on a self-hosted server once self sign-up is turned off."});if(s.isError)return b(s.error).kind==="signedOut"?null:e.jsxs(g,{tone:"danger",children:[e.jsxs("p",{className:"font-medium",children:[N,"."]}),e.jsx("p",{className:"mt-1 text-fg-muted",children:G(s.error)}),e.jsxs("p",{className:"mt-2 flex items-center gap-3",children:[e.jsx(m,{variant:"secondary",size:"sm",onClick:()=>{s.refetch()},children:"Try again"}),e.jsx(S,{href:C(N,s.error)})]})]});const p=(i,d)=>{o(null),r({action:i,person:d})},u=i=>{i.resetUrl&&t&&l({email:t.person.email,resetUrl:i.resetUrl}),r(null)},x=i=>{if(!t)return;const d=b(i);o({title:v(t.action,t.person.email).failedTitle,reason:d.kind==="failed"?d.reason:"Something went wrong. Nothing changed. Try again.",error:i}),r(null)};return e.jsxs("div",{className:"space-y-4",children:[n&&e.jsx(ae,{failure:n}),e.jsx(ie,{people:s.data.people,onPick:p}),t&&e.jsx(te,{action:t.action,person:t.person,onCancel:()=>r(null),onDone:u,onFailed:x}),a&&e.jsx(re,{email:a.email,resetUrl:a.resetUrl,onDone:()=>l(null)})]})}const ce=e.jsxs("div",{className:"space-y-3",children:[e.jsx("p",{children:"Anyone signed in here can manage every account. Each action asks for your own password first, and is recorded with who took it and from where."}),e.jsx("p",{children:"Disabling an account signs that person out within 15 minutes and stops their calendar feed links. Their mail stays. You cannot disable your own account, so one account always stays on."}),e.jsx("p",{children:"A reset link works once, for 24 hours, and is shown only once. Making one stops the old password at once."}),e.jsxs("p",{children:["The person who runs this server can turn all sign-in off with"," ",e.jsx("code",{children:"remit sign-in off"}),", and recover an account from the host with"," ",e.jsx("code",{children:"remit people enable"})," or ",e.jsx("code",{children:"remit people reset"}),"."]})]});function ge(){const s=Q(),t=W(),[r,n]=c.useState(!0);return e.jsx(J,{items:t,activeId:"people",title:"People",description:"Everyone with an account on this server.",help:ce,helpOpen:r,onToggleHelp:()=>n(o=>!o),onSelect:o=>{const a=Y[o];a&&s({to:a})},onBackToMail:()=>{s({to:"/mail"})},children:e.jsx(le,{})})}export{ge as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as e}from"./index-X3HUQEvM.js";const a=e("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);export{a as P};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as y,r as f,
|
|
1
|
+
import{b as y,r as f,n as E,bV as P,j as a,p as b,B as R}from"./index-X3HUQEvM.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 p=x.getBoundingClientRect(),w={width:p.right-p.left,height:p.bottom-p.top},m=k(h,w,n);s(l=>l?.left===m.left&&l.top===m.top?l:{position:"fixed",left:m.left,top:m.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:p,panelRef:w,getAnchor:m}=z("popover-menu");return o.length===0&&!d?null:a.jsxs("div",{ref:p,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:m,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{b as e}from"./index-
|
|
1
|
+
import{b as e}from"./index-X3HUQEvM.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as L,p as c,G as _,c1 as k,c2 as M,r as i,u as l,c3 as P,E as d,c4 as F,c5 as h,c6 as O}from"./index-X3HUQEvM.js";import{u as j}from"./useMediaQuery-9NJJDrX6.js";const w="outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-surface",G="outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",U={nav:{base:c("flex w-full items-center gap-2 rounded-md px-2 py-1 text-sm transition-colors",w),rest:"text-fg-muted hover:bg-surface hover:text-fg",current:"bg-accent-2-soft font-medium text-accent-2"},row:{base:c("relative flex w-full items-start text-left transition-colors",G),rest:"hover:bg-surface-sunken",current:"bg-accent-2-soft"},inline:{base:c("rounded-sm underline-offset-2 transition-colors hover:underline",w),rest:"text-accent hover:text-accent-hover",current:"font-medium text-accent"}};function V(e){return e!==void 0&&e!==!1&&e!=="false"}function X({variant:e="nav",current:t,"aria-current":s,className:n,children:r,ref:o,...a}){const u=t??s,g=U[e];return L.jsx("a",{ref:o,"aria-current":u,className:c(g.base,V(u)?g.current:g.rest,n),...a,children:r})}function Y(e){const t=_({warn:e?.router===void 0}),s=e?.router||t;return k(s.stores.__store,M(e,s))}function T(e){const t=_();return k(t.stores.location,M(e,t))}const I=["intelligence","sidebar","nav","shortcuts"],q=["nav","shortcuts"],S=e=>q.includes(e);function ae(e,t){return[...e.filter(s=>!S(s)),...t?[t]:[]]}const K=P(I);function b(e){const t=new Set(e.split(",").map(s=>K.safeParse(s)).filter(s=>s.success).map(s=>s.data));return I.filter(s=>t.has(s))}function p(e){return I.filter(t=>e.includes(t)).join(",")}function ie(){const e=T({select:t=>p(b(t.hash))});return i.useMemo(()=>b(e),[e])}const W=(e,t)=>!S(e)&&t;function Q(e){return(t="")=>p(b(t).filter(s=>W(s,e)))}function f(){const e=j();return i.useMemo(()=>Q(e),[e])}function ue(){const e=l();return i.useCallback(t=>{e({search:!0,hash:p(t),replace:!0,hashScrollIntoView:!1})},[e])}const E="/mail/brief",D="/mail/$mailboxId",A="/mail/outbox",B="/mail/flagged";function z(e){for(const t of e){if(t.routeId===E)return{list:"brief"};if(t.routeId===B)return{list:"flagged"};if(t.routeId===A)return{list:"outbox"};if(t.routeId===D)return{list:"mailbox",mailboxId:t.params?.mailboxId}}}function le(e){const t=e.split(/[?#]/)[0].split("/").filter(Boolean);if(t[0]!=="mail")return"";const s=t[1];return s?s==="brief"?E:s==="flagged"?B:s==="outbox"?A:H(s):""}function ce(e){if(typeof e!="object"||e===null)return"";const{q:t}=e;return typeof t=="string"?t:""}function H(e){return`${D}:${e}`}function de(e,t){return e===t?!0:e.startsWith(`${t}/`)}function J(e){const t=e.split(/[?#]/)[0].split("/").filter(Boolean);return t[0]==="mail"&&t.length>2}function m(){const e=Y({select:n=>z(n.matches)?.list}),s=d({from:"/mail/$mailboxId",shouldThrow:!1})?.mailboxId;return i.useMemo(()=>({list:e,mailboxId:s}),[e,s])}function fe(){const{pathname:e}=T();return J(e)}function me(){const e=l(),t=f(),{list:s,mailboxId:n}=m();return i.useCallback(()=>{const r=a=>a,o=t;if(s==="flagged"){e({to:"/mail/flagged",search:r,hash:o});return}if(s==="outbox"){e({to:"/mail/outbox",search:r,hash:o});return}if(s==="mailbox"&&n){e({to:"/mail/$mailboxId",params:{mailboxId:n},search:r,hash:o});return}e({to:"/mail/brief",search:r,hash:o})},[e,t,s,n])}const Z=F(X);function ge({fragment:e,...t}){const s=f();return L.jsx(Z,{...t,hash:e??s})}const ee=["reply","reply-all","forward"],te=P(ee),x="/mail/brief/$threadId/$messageId/$mode/{-$outboxMessageId}",v="/mail/flagged/$threadId/$messageId/$mode/{-$outboxMessageId}",y="/mail/$mailboxId/$threadId/$messageId/$mode/{-$outboxMessageId}";function N(){const e=d({from:x,shouldThrow:!1}),t=d({from:v,shouldThrow:!1}),s=d({from:y,shouldThrow:!1});return e??t??s}function se(){const e=h({from:x,shouldThrow:!1}),t=h({from:v,shouldThrow:!1}),s=h({from:y,shouldThrow:!1});return(e??t??s)?.body}const R=e=>t=>e===void 0?O(t):{...O(t),body:e.body};function $(){const e=N(),t=se();return i.useMemo(()=>{if(!e)return;const s=te.safeParse(e.mode);return s.success?{kind:"reply",mode:s.data,threadId:e.threadId,sourceMessageId:e.messageId,outboxMessageId:e.outboxMessageId,seed:t===void 0?void 0:{body:t}}:{kind:"unknown",segment:e.mode}},[e,t])}function he(){return $()?.kind==="reply"}function C(e,t,s,n){return e==="flagged"?{to:v,params:{...s,outboxMessageId:n}}:e==="mailbox"&&t?{to:y,params:{...s,mailboxId:t,outboxMessageId:n}}:{to:x,params:{...s,outboxMessageId:n}}}function ne(e,t){if(e?.kind==="reply"&&e.threadId===t.threadId&&e.sourceMessageId===t.messageId)return e.outboxMessageId}function be(){const e=l(),t=f(),{list:s,mailboxId:n}=m(),r=$();return i.useCallback((o,a)=>{e({...C(s,n,o,a===void 0?ne(r,o):void 0),search:R(a),hash:t})},[e,t,s,n,r])}function Ie(e,t,s){if(!(!t||!s))return n=>e({threadId:t,messageId:s,mode:n})}function pe(){const e=l(),{list:t,mailboxId:s}=m(),n=$();return i.useCallback(r=>{n?.kind==="reply"&&e({...C(t,s,{threadId:n.threadId,messageId:n.sourceMessageId,mode:n.mode},r),search:R(void 0),hash:!0,replace:!0})},[e,t,s,n])}function xe(){const e=l(),t=f(),{list:s,mailboxId:n}=m(),r=N();return i.useCallback(()=>{if(!r)return;const o=R(void 0),a=t,u={threadId:r.threadId,messageId:r.messageId};if(s==="flagged"){e({to:"/mail/flagged/$threadId/$messageId",params:u,search:o,hash:a});return}if(s==="mailbox"&&n){e({to:"/mail/$mailboxId/$threadId/$messageId",params:{...u,mailboxId:n},search:o,hash:a});return}e({to:"/mail/brief/$threadId/$messageId",params:u,search:o,hash:a})},[e,t,s,n,r])}export{ge as N,Y as a,ce as b,fe as c,ie as d,ue as e,z as f,f as g,he as h,S as i,m as j,me as k,de as l,le as m,be as n,pe as o,ae as p,xe as q,Ie as r,$ as s,T as u};
|