@remit/web-client-dist 0.0.645 → 0.0.646
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-CmPRoEDf.js → BriefPane-NTEZn5iT.js} +1 -1
- package/assets/{CalendarComposePane-DqJOMVmP.js → CalendarComposePane-CTOr6Y9H.js} +1 -1
- package/assets/{CalendarComposeSeed-D0NGKut1.js → CalendarComposeSeed-DnC9M3Bc.js} +1 -1
- package/assets/{CalendarShell-iJpBRfM0.js → CalendarShell-DFdIYCjl.js} +1 -1
- package/assets/{EmptyState-DujlHZ5y.js → EmptyState-iJkDD5wT.js} +1 -1
- package/assets/{ErrorState-BVI-jO5V.js → ErrorState-DBbVLnRy.js} +1 -1
- package/assets/{FlaggedPane-BAOdwEWL.js → FlaggedPane-BKPeEpex.js} +1 -1
- package/assets/{FullCompose-Bi7k3jvU.js → FullCompose-DVarPVpc.js} +1 -1
- package/assets/{MailListHeader-GdiBejNL.js → MailListHeader-BF_0ASsH.js} +1 -1
- package/assets/{MailNav-c5Pb-xMM.js → MailNav-BIKpkzZO.js} +1 -1
- package/assets/{MailShell-DrmERVdx.js → MailShell-2Uz12rUT.js} +1 -1
- package/assets/{MailViewChrome-gm2yTDEG.js → MailViewChrome-D3QfNfHi.js} +1 -1
- package/assets/{MailboxPane-Dvp-DTKa.js → MailboxPane-BW8Oo31r.js} +1 -1
- package/assets/{NavMenuButton-BUju-0zI.js → NavMenuButton-BDbMyjBe.js} +1 -1
- package/assets/{OnboardingWizard-D7OM_-SY.js → OnboardingWizard-DXfD69y4.js} +1 -1
- package/assets/{OpenCalendarEvent-CzjPMTD7.js → OpenCalendarEvent-DQxup_5A.js} +1 -1
- package/assets/{OutboxPane-BH-XzR-F.js → OutboxPane-51AmIoV1.js} +1 -1
- package/assets/_calendarObjectId-DJ80udMy.js +1 -0
- package/assets/_mailboxId-C9UW9W4T.js +1 -0
- package/assets/_messageId-1d6VRzrV.js +1 -0
- package/assets/_messageId-D9MRmCiH.js +1 -0
- package/assets/_messageId-DKygSbee.js +1 -0
- package/assets/_outboxMessageId-CeDsl4kP.js +1 -0
- package/assets/_recurrenceId-Dbda2nYB.js +1 -0
- package/assets/_threadId-BeZ5Vxp6.js +1 -0
- package/assets/_threadId-BtM_kvlj.js +1 -0
- package/assets/_threadId-Der4olFj.js +1 -0
- package/assets/{_view._date-B0fX-9gG.js → _view._date-DsHOBJGZ.js} +1 -1
- package/assets/{accounts-upLCPjpO.js → accounts-AqojvJPO.js} +1 -1
- package/assets/{advanced-CZGc2-M4.js → advanced-B6LXVBZn.js} +1 -1
- package/assets/{appearance-CAH6XmGD.js → appearance-hDHe0sCR.js} +1 -1
- package/assets/{attendee-row-Dsfh28CP.js → attendee-row-D056H7on.js} +1 -1
- package/assets/{avatar-ByMZanCG.js → avatar-KiM5ncyR.js} +1 -1
- package/assets/{bell-off-CrtI26Ps.js → bell-off-aDzc6-uu.js} +1 -1
- package/assets/{bottom-sheet-Do1Kqt6C.js → bottom-sheet-CyaTcIno.js} +1 -1
- package/assets/brief-C5rFb2wO.js +1 -0
- package/assets/{brief-BO_TTqAz.js → brief-w0GjdNJg.js} +1 -1
- package/assets/{browser-ponyfill-CsF7HmcD.js → browser-ponyfill-BxYoyQUR.js} +1 -1
- package/assets/{bug-VhkClwO6.js → bug-Dz6mFK2v.js} +1 -1
- package/assets/{calendar-Zn-TH_hc.js → calendar-6scIQiwU.js} +1 -1
- package/assets/{calendar-clash-strip-DI7zlMfA.js → calendar-clash-strip-4uWwSJgT.js} +1 -1
- package/assets/{calendar-format-D-j3MVfj.js → calendar-format-B3u8XeCh.js} +1 -1
- package/assets/{calendar-report-BLLDZVuM.js → calendar-report-DcwY6HH-.js} +1 -1
- package/assets/{calendar-suggestion-CmSBYNKY.js → calendar-suggestion-D1-lMf3B.js} +1 -1
- package/assets/{calendars-DJROUOur.js → calendars-1qdVhrw6.js} +1 -1
- package/assets/{card-C2-ECsTy.js → card-CPp6hN7Y.js} +1 -1
- package/assets/{checkbox-DukR_YLD.js → checkbox-FDumPklc.js} +1 -1
- package/assets/chevron-left-DCZx9oDN.js +1 -0
- package/assets/{circle-check-BQ1ugGru.js → circle-check-Bcrk6K1k.js} +1 -1
- package/assets/{circle-check-big-DwiFNQIV.js → circle-check-big-CFRFqxT6.js} +1 -1
- package/assets/{circle-help-D-hOmab_.js → circle-help-cF1gR2q7.js} +1 -1
- package/assets/{clock-CtbA5tRe.js → clock-CMYYJ0a3.js} +1 -1
- package/assets/compose._-_outboxMessageId_-BO_7_qza.js +1 -0
- package/assets/compose._-_outboxMessageId_-C8mE4Dmv.js +1 -0
- package/assets/compose._-_outboxMessageId_-D0dLVmgz.js +1 -0
- package/assets/compose._-_outboxMessageId_-Z5XM3aWq.js +1 -0
- package/assets/{config-import-DeH39Owt.js → config-import-B5ShP2v6.js} +1 -1
- package/assets/{confirm-dialog-D5_3GRL0.js → confirm-dialog-DP653uUK.js} +1 -1
- package/assets/{copy-BwOq7xiy.js → copy-CIm_o4Mr.js} +1 -1
- package/assets/{credential-steps-Bb4Uifur.js → credential-steps-DpKvw37C.js} +1 -1
- package/assets/{download-Bhhu1YYz.js → download-13r0ltdh.js} +1 -1
- package/assets/{file-json-B7hJq2fl.js → file-json-YH4c3ZTR.js} +1 -1
- package/assets/{filters-C5L3Mrn5.js → filters-dukwnLt3.js} +1 -1
- package/assets/flagged-BFmI2rSm.js +1 -0
- package/assets/{flagged-Dr49oMVf.js → flagged-C0QU0Pz_.js} +1 -1
- package/assets/{folders-BjWpYCVj.js → folders-BlohuMsA.js} +1 -1
- package/assets/{help-copy-DdF1Jz8I.js → help-copy-CBHMrKUf.js} +1 -1
- package/assets/{import-DuAuwbVD.js → import-3YvqTmkU.js} +1 -1
- package/assets/index-1d6VRzrV.js +1 -0
- package/assets/index-B0s4iZrX.js +1 -0
- package/assets/index-BUYn5SAl.js +1 -0
- package/assets/index-Bn7jIKxB.js +1 -0
- package/assets/{index-DCxO9BXL.js → index-Cgq4hxti.js} +4 -4
- package/assets/index-Cy7peBCe.js +1 -0
- package/assets/index-DKygSbee.js +1 -0
- package/assets/index-DwDnm88d.js +1 -0
- package/assets/{index-1tDGC9Zd.js → index-DyXh0uZR.js} +4 -4
- package/assets/{index-BX4FQOci.js → index-aC5-hvDE.js} +1 -1
- package/assets/index-rIsTYCqN.js +1 -0
- package/assets/index-wZGBzbmC.js +1 -0
- package/assets/{kbd-GocZSdkd.js → kbd-BZqsDz_U.js} +1 -1
- package/assets/{labels-CEutrviP.js → labels-BIaU1vWQ.js} +1 -1
- package/assets/{mail-BgWv0vDi.js → mail-B7zN4zHx.js} +1 -1
- package/assets/{mail-DZ7qS6U7.js → mail-D-devbMY.js} +1 -1
- package/assets/{map-pin-BnpFBW0x.js → map-pin-xN7wT2-l.js} +1 -1
- package/assets/{menu-DGZU5xhL.js → menu-Cp4H-jyN.js} +1 -1
- package/assets/minus-DL9Mw3nM.js +1 -0
- package/assets/{new-s6RGtnEB.js → new-KA2ie897.js} +1 -1
- package/assets/onboarding-CjzRDnvm.js +1 -0
- package/assets/{onboarding-completion-BjIwQr_e.js → onboarding-completion-CwuHJfhv.js} +1 -1
- package/assets/outbox-Cy9JZikZ.js +1 -0
- package/assets/{pane-header-SxqJYaFK.js → pane-header-DidbhnoI.js} +1 -1
- package/assets/{pencil-T1qdJn7-.js → pencil-DqDMjiQE.js} +1 -1
- package/assets/{popover-menu-CkmMQ09c.js → popover-menu-2PYa43as.js} +1 -1
- package/assets/{refresh-cw-DjAWVCmD.js → refresh-cw-DWAbkoT3.js} +1 -1
- package/assets/{rich-text-Pdcy5Nwp.js → rich-text-D9n_7aOO.js} +1 -1
- package/assets/{rich-text-spellcheck-worker-provider-BuQNj49L.js → rich-text-spellcheck-worker-provider-BbFToiMX.js} +1 -1
- package/assets/{rotate-ccw-C-CXkNLR.js → rotate-ccw-cBgqjisw.js} +1 -1
- package/assets/{roving-focus-6Ps1GOii.js → roving-focus-lihtPwbC.js} +1 -1
- package/assets/{row-actions-OrYFIAtn.js → row-actions-CfL_K-t9.js} +1 -1
- package/assets/{search-mirror-YFw9jfWx.js → search-mirror-DhqKXhMJ.js} +1 -1
- package/assets/{search-token-index-BYIEE9IJ.js → search-token-index-Bkj6PIXs.js} +1 -1
- package/assets/{sections-BdXt9HLF.js → sections-wK3DX2yg.js} +1 -1
- package/assets/{senders-BIAb37Ko.js → senders-B9DfZ-ZD.js} +1 -1
- package/assets/settings-Cr283p3E.js +1 -0
- package/assets/{settings-screen-DjFylkGU.js → settings-screen-pRDnJYvp.js} +1 -1
- package/assets/{shield-check-C4Gngb6A.js → shield-check-D1Sajk90.js} +1 -1
- package/assets/{suggested-vips-nfO6P5mD.js → suggested-vips-DpmmsrLE.js} +1 -1
- package/assets/{suggestion._suggestionId-3dfrCKPh.js → suggestion._suggestionId-DQy5Hr1g.js} +1 -1
- package/assets/{undo-2-C18vJveD.js → undo-2-C8HhV7-9.js} +1 -1
- package/assets/{useCalendarData-p4YQcdqv.js → useCalendarData-C2ICAesb.js} +1 -1
- package/assets/{useCalendarFreeBusy-q8dkV9bU.js → useCalendarFreeBusy-xzt10efX.js} +1 -1
- package/assets/{useCalendarWrites-Bs29dmIW.js → useCalendarWrites-BqWuIv6N.js} +1 -1
- package/assets/{useCalendars-Cv33CAIM.js → useCalendars-B-DdrqSn.js} +1 -1
- package/assets/{useDebouncedValue-Csd1G8YB.js → useDebouncedValue-BnDpBnRn.js} +1 -1
- package/assets/{useFilters-CDR_zY2Q.js → useFilters-Ctb8KI_h.js} +1 -1
- package/assets/{useLabels-DCtXet6O.js → useLabels-Cae2UsI0.js} +1 -1
- package/assets/{useLayoutTier-ChEDcGRs.js → useLayoutTier-ob5yzPuz.js} +1 -1
- package/assets/{useMessageBodyContent-JZVMduqC.js → useMessageBodyContent-BAKTxkDn.js} +1 -1
- package/assets/{useQueries-ChVROEOd.js → useQueries-DWGt2_77.js} +1 -1
- package/assets/{useRefreshControl-BTnBFCED.js → useRefreshControl-DcMVjO86.js} +1 -1
- package/assets/{useResultFolderIndex-DuWveF-w.js → useResultFolderIndex-Dt4mGDHa.js} +1 -1
- package/assets/useSearchTokenContext-DdCG0VLu.js +84 -0
- package/assets/{useSemanticSearch-DpG2fIPV.js → useSemanticSearch-CEWP6FrA.js} +1 -1
- package/assets/{useSignature-CoMYaLJ6.js → useSignature-DdekzCf5.js} +1 -1
- package/index.html +1 -1
- package/package.json +1 -1
- package/assets/_calendarObjectId-JQFhShY3.js +0 -1
- package/assets/_mailboxId-ibPkJnks.js +0 -1
- package/assets/_messageId-9mieoYZp.js +0 -1
- package/assets/_messageId-gxQl69_8.js +0 -1
- package/assets/_messageId-rb96fbF2.js +0 -1
- package/assets/_outboxMessageId-CRt4ifV5.js +0 -1
- package/assets/_recurrenceId-TfRLpR4w.js +0 -1
- package/assets/_threadId-CuiJw_E0.js +0 -1
- package/assets/_threadId-DskB68HC.js +0 -1
- package/assets/_threadId-PucA6Oye.js +0 -1
- package/assets/brief-qW8YBA6-.js +0 -1
- package/assets/chevron-left-CZ7ZcFtx.js +0 -1
- package/assets/compose._-_outboxMessageId_-BNsXnM1h.js +0 -1
- package/assets/compose._-_outboxMessageId_-D-SHd2f7.js +0 -1
- package/assets/compose._-_outboxMessageId_-D8RmP7m1.js +0 -1
- package/assets/compose._-_outboxMessageId_-Dy-fiD4o.js +0 -1
- package/assets/flagged-BQ7l0e9H.js +0 -1
- package/assets/index-9mieoYZp.js +0 -1
- package/assets/index-BiDQZUCX.js +0 -1
- package/assets/index-BoR5pWZ3.js +0 -1
- package/assets/index-CikHdpIY.js +0 -1
- package/assets/index-D5Ze1vTC.js +0 -1
- package/assets/index-D7cwKFoc.js +0 -1
- package/assets/index-E3xi8Ymb.js +0 -1
- package/assets/index-Hi4Wx7e6.js +0 -1
- package/assets/index-rb96fbF2.js +0 -1
- package/assets/minus-BXvTd_hw.js +0 -1
- package/assets/onboarding-CT8Njgje.js +0 -1
- package/assets/outbox-BMXFKkUe.js +0 -1
- package/assets/settings-BC3Qouz8.js +0 -1
- package/assets/useSearchTokenContext-BjZLxeZU.js +0 -84
package/assets/index-CikHdpIY.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-1tDGC9Zd.js";import{O as t}from"./OutboxPane-BH-XzR-F.js";import"./roving-focus-6Ps1GOii.js";import"./useSearchTokenContext-BjZLxeZU.js";import"./kbd-GocZSdkd.js";import"./useMessageBodyContent-JZVMduqC.js";import"./search-scope-B5-OK3Cq.js";import"./circle-check-big-DwiFNQIV.js";import"./clock-CtbA5tRe.js";import"./row-actions-OrYFIAtn.js";import"./rotate-ccw-C-CXkNLR.js";import"./pane-header-SxqJYaFK.js";import"./NavMenuButton-BUju-0zI.js";import"./menu-DGZU5xhL.js";import"./outbox-status-BlKn6P0x.js";import"./search-query-Cr_ZXBCp.js";function d(){return o.jsx(t.Reading,{})}export{d as component};
|
package/assets/index-D5Ze1vTC.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-1tDGC9Zd.js";import{F as r}from"./FlaggedPane-BAOdwEWL.js";import"./useSearchTokenContext-BjZLxeZU.js";import"./kbd-GocZSdkd.js";import"./useMessageBodyContent-JZVMduqC.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-GdiBejNL.js";import"./roving-focus-6Ps1GOii.js";import"./search-token-index-BYIEE9IJ.js";import"./useQueries-ChVROEOd.js";import"./popover-menu-CkmMQ09c.js";import"./mail-BgWv0vDi.js";import"./avatar-ByMZanCG.js";import"./index-DCxO9BXL.js";import"./useSignature-CoMYaLJ6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Csd1G8YB.js";import"./sections-BdXt9HLF.js";import"./EmptyState-DujlHZ5y.js";import"./ErrorState-BVI-jO5V.js";import"./undo-2-C18vJveD.js";import"./download-Bhhu1YYz.js";import"./useCalendarFreeBusy-q8dkV9bU.js";import"./calendar-format-D-j3MVfj.js";import"./useCalendars-Cv33CAIM.js";import"./map-pin-BnpFBW0x.js";import"./calendar-suggestion-CmSBYNKY.js";import"./attendee-row-Dsfh28CP.js";import"./minus-BXvTd_hw.js";import"./clock-CtbA5tRe.js";import"./calendar-clash-strip-DI7zlMfA.js";import"./bell-off-CrtI26Ps.js";import"./shield-check-C4Gngb6A.js";import"./calendar-report-BLLDZVuM.js";import"./useFilters-CDR_zY2Q.js";import"./checkbox-DukR_YLD.js";import"./confirm-dialog-D5_3GRL0.js";import"./useLayoutTier-ChEDcGRs.js";import"./menu-DGZU5xhL.js";import"./MailViewChrome-gm2yTDEG.js";import"./refresh-cw-DjAWVCmD.js";import"./wizard-selection-DxUM65kM.js";function S(){return o.jsx(r.Reading,{})}export{S as component};
|
package/assets/index-D7cwKFoc.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t,an as o}from"./index-1tDGC9Zd.js";const n=()=>t.jsx(o,{to:"/settings/accounts"});export{n as component};
|
package/assets/index-E3xi8Ymb.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{eY as o,j as r}from"./index-1tDGC9Zd.js";import{O as m}from"./OpenCalendarEvent-CzjPMTD7.js";import"./CalendarComposePane-DqJOMVmP.js";import"./calendar-format-D-j3MVfj.js";import"./useQueries-ChVROEOd.js";import"./useCalendars-Cv33CAIM.js";import"./calendar-clash-strip-DI7zlMfA.js";import"./attendee-row-Dsfh28CP.js";import"./avatar-ByMZanCG.js";import"./minus-BXvTd_hw.js";import"./clock-CtbA5tRe.js";import"./map-pin-BnpFBW0x.js";import"./mail-BgWv0vDi.js";import"./pencil-T1qdJn7-.js";import"./useCalendarWrites-Bs29dmIW.js";import"./ErrorState-BVI-jO5V.js";import"./useCalendarData-p4YQcdqv.js";import"./calendar-report-BLLDZVuM.js";import"./calendar-subscription-B-aAc2Gy.js";function I(){const{calendarObjectId:t}=o.useParams();return r.jsx(m,{calendarObjectId:t})}export{I as component};
|
package/assets/index-Hi4Wx7e6.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-1tDGC9Zd.js";import{F as r}from"./FlaggedPane-BAOdwEWL.js";import"./useSearchTokenContext-BjZLxeZU.js";import"./kbd-GocZSdkd.js";import"./useMessageBodyContent-JZVMduqC.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-GdiBejNL.js";import"./roving-focus-6Ps1GOii.js";import"./search-token-index-BYIEE9IJ.js";import"./useQueries-ChVROEOd.js";import"./popover-menu-CkmMQ09c.js";import"./mail-BgWv0vDi.js";import"./avatar-ByMZanCG.js";import"./index-DCxO9BXL.js";import"./useSignature-CoMYaLJ6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Csd1G8YB.js";import"./sections-BdXt9HLF.js";import"./EmptyState-DujlHZ5y.js";import"./ErrorState-BVI-jO5V.js";import"./undo-2-C18vJveD.js";import"./download-Bhhu1YYz.js";import"./useCalendarFreeBusy-q8dkV9bU.js";import"./calendar-format-D-j3MVfj.js";import"./useCalendars-Cv33CAIM.js";import"./map-pin-BnpFBW0x.js";import"./calendar-suggestion-CmSBYNKY.js";import"./attendee-row-Dsfh28CP.js";import"./minus-BXvTd_hw.js";import"./clock-CtbA5tRe.js";import"./calendar-clash-strip-DI7zlMfA.js";import"./bell-off-CrtI26Ps.js";import"./shield-check-C4Gngb6A.js";import"./calendar-report-BLLDZVuM.js";import"./useFilters-CDR_zY2Q.js";import"./checkbox-DukR_YLD.js";import"./confirm-dialog-D5_3GRL0.js";import"./useLayoutTier-ChEDcGRs.js";import"./menu-DGZU5xhL.js";import"./MailViewChrome-gm2yTDEG.js";import"./refresh-cw-DjAWVCmD.js";import"./wizard-selection-DxUM65kM.js";function Q(){return o.jsx(r.Reading,{})}export{Q as component};
|
package/assets/index-rb96fbF2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./index-1tDGC9Zd.js";import{B as o}from"./BriefPane-CmPRoEDf.js";import"./useSearchTokenContext-BjZLxeZU.js";import"./kbd-GocZSdkd.js";import"./useMessageBodyContent-JZVMduqC.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-GdiBejNL.js";import"./roving-focus-6Ps1GOii.js";import"./search-token-index-BYIEE9IJ.js";import"./useQueries-ChVROEOd.js";import"./popover-menu-CkmMQ09c.js";import"./mail-BgWv0vDi.js";import"./avatar-ByMZanCG.js";import"./index-DCxO9BXL.js";import"./useSignature-CoMYaLJ6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Csd1G8YB.js";import"./sections-BdXt9HLF.js";import"./EmptyState-DujlHZ5y.js";import"./ErrorState-BVI-jO5V.js";import"./undo-2-C18vJveD.js";import"./download-Bhhu1YYz.js";import"./useCalendarFreeBusy-q8dkV9bU.js";import"./calendar-format-D-j3MVfj.js";import"./useCalendars-Cv33CAIM.js";import"./map-pin-BnpFBW0x.js";import"./calendar-suggestion-CmSBYNKY.js";import"./attendee-row-Dsfh28CP.js";import"./minus-BXvTd_hw.js";import"./clock-CtbA5tRe.js";import"./calendar-clash-strip-DI7zlMfA.js";import"./bell-off-CrtI26Ps.js";import"./shield-check-C4Gngb6A.js";import"./calendar-report-BLLDZVuM.js";import"./useFilters-CDR_zY2Q.js";import"./checkbox-DukR_YLD.js";import"./confirm-dialog-D5_3GRL0.js";import"./useLayoutTier-ChEDcGRs.js";import"./menu-DGZU5xhL.js";import"./useRefreshControl-BTnBFCED.js";import"./circle-check-big-DwiFNQIV.js";import"./refresh-cw-DjAWVCmD.js";import"./useSemanticSearch-DpG2fIPV.js";import"./useLabels-DCtXet6O.js";import"./search-query-Cr_ZXBCp.js";import"./wizard-selection-DxUM65kM.js";function W(){return r.jsx(o.Reading,{})}export{W as component};
|
package/assets/minus-BXvTd_hw.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e}from"./index-1tDGC9Zd.js";const a=e("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);export{a as M};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{q as i,h as n,u as a,r as m,j as s}from"./index-1tDGC9Zd.js";import{O as p}from"./OnboardingWizard-D7OM_-SY.js";import{c}from"./onboarding-completion-BjIwQr_e.js";import"./checkbox-DukR_YLD.js";import"./minus-BXvTd_hw.js";import"./kbd-GocZSdkd.js";import"./credential-steps-Bb4Uifur.js";import"./card-C2-ECsTy.js";import"./account-form-helpers-DhckT_PN.js";import"./mail-BgWv0vDi.js";import"./file-json-B7hJq2fl.js";function E(){const o=i(),t=n(),e=a(),r=m.useCallback(l=>{c({queryClient:t,recordCompleted:()=>o.recordEvent("onboarding.completed"),navigateToInbox:()=>{window.location.assign("/mail")}})},[o,t]);return s.jsx(p,{skipWelcome:!1,onComplete:r,onImportConfig:()=>{e({to:"/import"})}})}export{E as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o,O as i}from"./index-1tDGC9Zd.js";import{a as m}from"./MailShell-DrmERVdx.js";import{u as p,O as t}from"./OutboxPane-BH-XzR-F.js";import{u as s}from"./search-mirror-YFw9jfWx.js";import"./FullCompose-Bi7k3jvU.js";import"./ErrorState-BVI-jO5V.js";import"./index-DCxO9BXL.js";import"./useMessageBodyContent-JZVMduqC.js";import"./useSignature-CoMYaLJ6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Csd1G8YB.js";import"./sections-BdXt9HLF.js";import"./confirm-dialog-D5_3GRL0.js";import"./roving-focus-6Ps1GOii.js";import"./useSearchTokenContext-BjZLxeZU.js";import"./kbd-GocZSdkd.js";import"./search-scope-B5-OK3Cq.js";import"./circle-check-big-DwiFNQIV.js";import"./clock-CtbA5tRe.js";import"./row-actions-OrYFIAtn.js";import"./rotate-ccw-C-CXkNLR.js";import"./pane-header-SxqJYaFK.js";import"./NavMenuButton-BUju-0zI.js";import"./menu-DGZU5xhL.js";import"./outbox-status-BlKn6P0x.js";import"./search-query-Cr_ZXBCp.js";function w(){const r=p();return s({to:"/mail/outbox"}),o.jsx(t,{outboxMessageId:r,children:o.jsx(m,{phone:o.jsx(t.Phone,{}),list:o.jsx(t.List,{}),reading:o.jsx(i,{})})})}export{w as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t,O as o}from"./index-1tDGC9Zd.js";const n=()=>t.jsx(o,{});export{n as component};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import{r as h,j as a,ct as Y,t as b,I as X,h as Z,at as J,i as ee,av as te,cO as se,bS as re,ab as ne,a0 as ae,X as oe,d6 as _,d7 as I,C as ie,cn as ce}from"./index-1tDGC9Zd.js";import{K as A}from"./kbd-GocZSdkd.js";import{B as le,b as de}from"./useMessageBodyContent-JZVMduqC.js";import{i as ue}from"./search-scope-B5-OK3Cq.js";const me='"Geist Variable", "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',k={light:{fg:"oklch(0.3 0.025 235)",canvas:"oklch(0.96 0.015 90)",accent:"oklch(0.55 0.14 150)"},dark:{fg:"oklch(0.88 0.02 90)",canvas:"oklch(0.22 0.025 220)",accent:"oklch(0.78 0.16 150)"}},fe={background:!1,spacing:!1},he="16px",ge=()=>`html{padding:0}body{padding:${he};box-sizing:border-box}`,pe=()=>"html{overflow:hidden}body{overflow-x:auto}",be=/prefers-color-scheme\s*:\s*dark|color-scheme\s*:\s*[^;}"']*\bdark\b/i,ye='<meta name="viewport" content="width=device-width, initial-scale=1">',xe=e=>{const t=e?k.dark:k.light;return`
|
|
2
|
-
/* Plain-email base: UI font-stack + theme-aware colors (#424) */
|
|
3
|
-
html, body {
|
|
4
|
-
font-family: ${me};
|
|
5
|
-
font-size: 14px;
|
|
6
|
-
line-height: 1.6;
|
|
7
|
-
color: ${t.fg};
|
|
8
|
-
background-color: ${t.canvas};
|
|
9
|
-
margin: 0;
|
|
10
|
-
padding: 0;
|
|
11
|
-
}
|
|
12
|
-
/* Strip author unreadable text colors and element backgrounds, scoped to body
|
|
13
|
-
descendants so the themed html/body surface above survives this reset. */
|
|
14
|
-
body * {
|
|
15
|
-
color: inherit !important;
|
|
16
|
-
background-color: transparent !important;
|
|
17
|
-
}
|
|
18
|
-
a, a:visited {
|
|
19
|
-
color: ${t.accent} !important;
|
|
20
|
-
text-decoration: underline;
|
|
21
|
-
}
|
|
22
|
-
`},E="invert(0.92) hue-rotate(180deg)",N=`img,picture,video,svg,canvas,[style*='background-image'],[background]{filter:${E}}`,we=(e,t,s)=>{const r=e?k.dark.canvas:k.light.canvas;return s?e?t?`html,body{margin:0;background-color:${r};color-scheme:dark light}`:`html{margin:0;background-color:#ffffff;filter:${E}}body{margin:0}${N}`:"html,body{margin:0;background-color:#ffffff;color-scheme:light}":e?t?`html,body{margin:0;background-color:${r};color-scheme:dark light}`:`html{margin:0;background-color:${r}}body{margin:0;filter:${E}}${N}`:`html,body{margin:0;background-color:${r};color-scheme:light}`},ve=(e,t,s,r=fe)=>{const n=t==="plain"?xe(s):we(s,be.test(e),r.background),o=r.spacing?"":ge();return`${ye}<style>${n}</style>${e}<style>${pe()}${o}</style>`},ke=5e4,Ae="allow-same-origin allow-popups allow-popups-to-escape-sandbox",Se=(e,t,s)=>Math.min(Math.ceil(Math.max(e,t)),s),Ee=new Set(["Enter","Escape","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End"]),Ne=e=>e===" "?!1:e.length===1?!0:Ee.has(e),S=e=>{if(e.metaKey||e.ctrlKey||e.altKey||!Ne(e.key))return;const t=e.currentTarget??e.target,s=t?.defaultView?.parent;!s||s===t?.defaultView||s.dispatchEvent(new KeyboardEvent("keydown",{key:e.key,code:e.code,shiftKey:e.shiftKey,bubbles:!0,cancelable:!0}))},C=({html:e,variant:t="framed",isDark:s=!1,declares:r,className:n})=>{const o=h.useRef(null),[d,g]=h.useState(0),i=h.useMemo(()=>ve(e,t,s,r),[e,t,s,r]);return h.useEffect(()=>{const c=o.current;if(!c)return;const u=()=>{const l=c.contentDocument;if(!l?.body)return;const x=l.documentElement,w=Se(l.body.scrollHeight,x?.scrollHeight??0,ke);g(y=>y===w?y:w)};let m,f;const p=()=>{u(),m?.disconnect(),m=void 0,f?.removeEventListener("keydown",S),f?.removeEventListener("load",u,!0),f=void 0;const l=c.contentDocument;l?.body&&(m=new ResizeObserver(u),m.observe(l.body),l.documentElement&&m.observe(l.documentElement),l.addEventListener("load",u,!0),l.fonts?.ready.then(u),l.addEventListener("keydown",S),f=l)};return c.addEventListener("load",p),()=>{c.removeEventListener("load",p),f?.removeEventListener("keydown",S),f?.removeEventListener("load",u,!0),m?.disconnect()}},[]),a.jsx("iframe",{ref:o,title:"Email content",sandbox:Ae,srcDoc:i,className:n,style:{width:"100%",border:"none",display:"block",height:d===0?"1px":`${d}px`,colorScheme:"normal"}})},Ce=(e,t)=>{const r=e==="newsletter"||e==="marketing"||t;return{framed:r,isPlain:!r}},Te=()=>`
|
|
23
|
-
/* Zero the UA default body margin and clamp the document to the iframe width so
|
|
24
|
-
wide author markup can't push the body (and the page) past the viewport. */
|
|
25
|
-
html, body {
|
|
26
|
-
margin: 0;
|
|
27
|
-
padding: 0;
|
|
28
|
-
max-width: 100%;
|
|
29
|
-
}
|
|
30
|
-
body {
|
|
31
|
-
overflow-wrap: anywhere;
|
|
32
|
-
word-break: break-word;
|
|
33
|
-
}
|
|
34
|
-
/* Media never wider than the frame; keep aspect ratio when width is capped. */
|
|
35
|
-
img, video, iframe, svg, canvas {
|
|
36
|
-
max-width: 100% !important;
|
|
37
|
-
height: auto;
|
|
38
|
-
}
|
|
39
|
-
/* Fixed-width author tables (\`<table width="600">\`) collapse to fit. */
|
|
40
|
-
table {
|
|
41
|
-
max-width: 100% !important;
|
|
42
|
-
table-layout: auto;
|
|
43
|
-
}
|
|
44
|
-
/* Cells carry the fixed widths in real newsletters (\`<td width="600">\`);
|
|
45
|
-
cap them too or the table can't actually shrink. */
|
|
46
|
-
td, th {
|
|
47
|
-
max-width: 100% !important;
|
|
48
|
-
}
|
|
49
|
-
/* \`max-width\` alone can't beat an inline \`min-width\`; zeroing the min lets
|
|
50
|
-
flex / grid / table children actually collapse to the clamped width. */
|
|
51
|
-
* {
|
|
52
|
-
min-width: 0;
|
|
53
|
-
}
|
|
54
|
-
/* An author \`nowrap\` assumes a viewport as wide as the line. The frame is the
|
|
55
|
-
pane's width whatever the mail is, so a pinned paragraph turns reading one
|
|
56
|
-
sentence into a sideways drag — and inside an author \`overflow:hidden\` it is
|
|
57
|
-
cut mid-character with nothing left to scroll at all. Flowing text wraps. The
|
|
58
|
-
\`i\` flag is load-bearing: Outlook and older generators emit \`WHITE-SPACE:
|
|
59
|
-
NOWRAP\`, and an attribute value match is case-sensitive without it. */
|
|
60
|
-
[nowrap]:not(pre, code, pre *, code *),
|
|
61
|
-
[style*="nowrap" i]:not(pre, code, pre *, code *) {
|
|
62
|
-
white-space: normal !important;
|
|
63
|
-
}
|
|
64
|
-
/* Long unbroken strings (URLs, tokens) wrap instead of forcing a wide line. */
|
|
65
|
-
pre, code {
|
|
66
|
-
white-space: pre-wrap;
|
|
67
|
-
overflow-wrap: anywhere;
|
|
68
|
-
word-break: break-word;
|
|
69
|
-
}
|
|
70
|
-
/* Preformatted text keeps its spacing even where a nowrap is declared — on the
|
|
71
|
-
block or on a span inside it. \`normal\` would collapse the runs of spaces that
|
|
72
|
-
are the entire content of a \`pre\`, and the un-important rule above cannot
|
|
73
|
-
defend an inline style, so this wraps to \`pre-wrap\` instead of unwrapping. */
|
|
74
|
-
:is(pre, code, pre *, code *):is([nowrap], [style*="nowrap" i]) {
|
|
75
|
-
white-space: pre-wrap !important;
|
|
76
|
-
}
|
|
77
|
-
`,je=e=>{const t=new Map;for(const s of e){if(!s.contentId||s.contentUrl.length===0)continue;const r=s.contentId.replace(/^<|>$/g,"");t.set(r,s.contentUrl)}return s=>t.get(s.replace(/^<|>$/g,""))},Le=/^(none|transparent|inherit|initial|unset)\s*$/i,O=e=>{const t=[],s=/<style[^>]*>([\s\S]*?)<\/style>/gi;let r;for(r=s.exec(e);r!==null;)t.push(r[1]),r=s.exec(e);return t},Re=e=>{const t=/background(?:-color)?\s*:\s*([^;}\n]+)/gi;let s;for(s=t.exec(e);s!==null;){const r=s[1].trim();if(!Le.test(r))return!0;s=t.exec(e)}return!1},_e=e=>{if(/\bstyle\s*=\s*["'][^"']*background/i.test(e)||/\bbgcolor\s*=/i.test(e))return!0;for(const t of O(e))if(Re(t))return!0;return!1},Ie=new Set(["auto","none","initial","inherit","unset","revert","revert-layer"]),Oe=new RegExp(`(?<![-\\w])(?:padding|margin)(?:-(top|right|bottom|left|block|inline)(?:-(?:start|end))?)?\\s*:\\s*([^;}"']+)`,"gi"),$e=new Set(["top","bottom","block"]),$=e=>e.replace(/\/\*[\s\S]*?\*\//g,""),T=e=>{const t=e.toLowerCase();if(!t||Ie.has(t)||t.startsWith("-"))return!1;const s=/^\+?(\d*\.?\d+)[a-z%]*$/.exec(t);return s?Number.parseFloat(s[1])!==0:!0},Be=e=>{const t=e.split(/\s+/).filter(Boolean);return t.length<2?t:t.length<4?[t[1]]:[t[1],t[3]]},Me=(e,t)=>{if(e&&$e.has(e))return!1;const s=t.replace(/!\s*important/gi,"").trim();return s?e?s.split(/\s+/).some(T):Be(s).some(T):!1},j=e=>{for(const t of $(e).matchAll(Oe))if(Me(t[1],t[2]))return!0;return!1},B=new Set(["blockquote"]),De=e=>e.replace(/<!--[\s\S]*?-->/g,""),ze=e=>{const t=[],s=/<([a-zA-Z][\w:-]*)((?:"[^"]*"|'[^']*'|[^>"'])*)>/g,r=/\bstyle\s*=\s*(?:"([^"]*)"|'([^']*)')/gi;for(const[,n,o]of e.matchAll(s))for(const d of o.matchAll(r))t.push({tag:n.toLowerCase(),style:d[1]??d[2]??""});return t},Pe=e=>[...$(e).matchAll(/([^{}]*)\{([^{}]*)\}/g)].map(t=>({selector:t[1].trim(),body:t[2]})),Ke=e=>{const t=e.trim().split(/[\s>+~]+/).pop()??"";return(/^[a-zA-Z][\w-]*/.exec(t)?.[0]??"").toLowerCase()},Fe=e=>e.split(",").every(t=>B.has(Ke(t))),He=e=>{const t=O(e),s=De(e);if(/\bcellpadding\s*=\s*["']?(?!0["'\s>])\d/i.test(s))return!0;for(const{tag:r,style:n}of ze(s))if(!B.has(r)&&j(n))return!0;for(const r of t)for(const n of Pe(r))if(!Fe(n.selector)&&j(n.body))return!0;return!1},Ge=["script","iframe","object","embed","form","input","button","textarea","select","meta","link","base"],Ue=["onerror","onload","onclick","onmouseover","onmouseout","onfocus","onblur","onsubmit","onkeydown","onkeyup","formaction","xlink:href","data-bind"],We="data:image/svg+xml,"+encodeURIComponent(`
|
|
78
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100">
|
|
79
|
-
<rect fill="#f0f0f0" width="100" height="100"/>
|
|
80
|
-
<text x="50" y="50" text-anchor="middle" dy=".3em" fill="#999" font-size="12">
|
|
81
|
-
Image blocked
|
|
82
|
-
</text>
|
|
83
|
-
</svg>
|
|
84
|
-
`),Ve=e=>e.replace(/url\s*\([^)]*\)/gi,"none").replace(/expression\s*\([^)]*\)/gi,"").replace(/-moz-binding\s*:[^;]*/gi,""),Qe=e=>e.replace(/@import[^;]*;/gi,"/* @import blocked */").replace(/url\s*\([^)]*\)/gi,"none").replace(/expression\s*\([^)]*\)/gi,"").replace(/-moz-binding\s*:[^;]*/gi,""),qe=(e={})=>{const t=Y(),s={FORBID_TAGS:Ge,FORBID_ATTR:Ue,ALLOW_DATA_ATTR:!1,ALLOW_UNKNOWN_PROTOCOLS:!1};return t.addHook("afterSanitizeAttributes",r=>{if(e.allowExternalImages||(r.tagName==="IMG"&&r.removeAttribute("srcset"),r.tagName==="SOURCE"&&(r.removeAttribute("srcset"),r.removeAttribute("src")),r.tagName==="VIDEO"&&r.removeAttribute("poster")),r.tagName==="IMG"){const n=r.getAttribute("src")||"";if(n.startsWith("data:"))return;if(n.startsWith("cid:")){const d=n.slice(4).replace(/^<|>$/g,""),g=e.resolveCid?.(d);g&&(r.setAttribute("src",g),r.classList.add("inline-content"));return}e.allowExternalImages||(r.setAttribute("data-blocked-src",n),r.setAttribute("src",We),r.setAttribute("alt","[Blocked image]"),r.classList.add("blocked-image"))}if(r.tagName==="A"){const n=r.getAttribute("href")||"";if(/^(javascript|data):/i.test(n)){r.removeAttribute("href");return}r.setAttribute("target","_blank"),r.setAttribute("rel","noopener noreferrer nofollow"),r.classList.add("external-link")}if(r.hasAttribute("style")){const n=r.getAttribute("style")||"";r.setAttribute("style",Ve(n))}}),t.addHook("uponSanitizeElement",(r,n)=>{if(n.tagName==="style"){const o=r.textContent||"";r.textContent=Qe(o)}}),r=>{const n=_e(r),o=He(r),d=t.sanitize(r,s);return{html:`<style>${Te()}</style>${d}`,hasAuthorBackground:n,hasAuthorSpacing:o}}},L=()=>a.jsx("p",{className:"text-fg-muted text-sm italic",children:"This message has no body content."}),Et=({className:e,children:t})=>a.jsx("div",{className:b("[&_.message-body-frame]:-mx-2 lg:[&_.message-body-frame]:-mx-4",e),children:t}),Ye=({html:e,text:t,isDark:s=!1,category:r,allowImages:n=!1,resolveCid:o,className:d,renderBlockedNotice:g})=>{const i=h.useMemo(()=>!e||typeof document>"u"?null:qe({allowExternalImages:n,resolveCid:o})(e),[e,n,o]),c=i?.html??null,{framed:u,isPlain:m}=Ce(r,i?.hasAuthorBackground??!1),f=h.useMemo(()=>({background:i?.hasAuthorBackground??!1,spacing:i?.hasAuthorSpacing??!1}),[i?.hasAuthorBackground,i?.hasAuthorSpacing]),p=h.useMemo(()=>!c||n?0:(c.match(/data-blocked-src/g)||[]).length,[c,n]);return!c&&!t?a.jsx("div",{className:b("message-body",d),children:a.jsx(L,{})}):a.jsxs("div",{className:b("message-body",d),children:[p>0&&a.jsx("div",{children:g?.(p)}),c?a.jsx("div",{className:"message-body-frame",children:u?a.jsx("div",{className:"w-full max-w-full",children:a.jsx(C,{html:c,variant:"framed",isDark:s,declares:f})}):a.jsx("div",{className:"max-w-full lg:max-w-2xl",children:a.jsx(C,{html:c,variant:m?"plain":"framed",isDark:s,declares:f})})}):t?a.jsx("pre",{className:"email-text whitespace-pre-wrap text-sm leading-relaxed",children:t}):a.jsx(L,{})]})};function Nt({message:e="Select a thread to read",icon:t,showHints:s=!0,className:r}){return a.jsxs("div",{className:b("flex flex-1 flex-col items-center justify-center text-center",r),children:[t??a.jsx(X,{className:"size-10 text-fg-subtle"}),a.jsx("p",{className:"mt-3 text-sm text-fg-muted",children:e}),s&&a.jsxs("p",{className:"text-2xs text-fg-subtle",children:[a.jsx(A,{children:"j"})," / ",a.jsx(A,{children:"k"})," to move, ",a.jsx(A,{children:"Enter"})," to open"]})]})}function M(e){const t=[];let s=-1,r=!1;for(let n=0;n<e.length;n++){const o=e[n];if(o==='"'){r=!r,s<0&&(s=n);continue}if(!r&&/\s/.test(o)){s>=0&&t.push({raw:e.slice(s,n),start:s,end:n}),s=-1;continue}s<0&&(s=n)}return s>=0&&t.push({raw:e.slice(s),start:s,end:e.length}),t}const Xe=e=>{if(!e.startsWith('"'))return e;const t=e.slice(1);return t.endsWith('"')?t.slice(0,-1):t};function Ze(e){const t=e.indexOf(":");if(t<=0)return;const s=e.slice(t+1);return{name:e.slice(0,t).toLowerCase(),value:Xe(s),rawValue:s}}const Je=e=>/[\s"]/.test(e),et=e=>Je(e)?`"${e.replace(/"/g,"")}"`:e,Ct=(e,t)=>`${e}:${et(t)}`,D=(e,t=Date.now())=>({value:e,setAt:t}),tt=(e,t,s,r)=>{if(e.addressId!==t)return e;const n={...e.flags??{}};return s?n.trusted=D(!0,r):delete n.trusted,{...e,flags:n}},st=(e,t,s,r)=>{const n=o=>o.map(d=>tt(d,t,s,r));return{...e,envelope:{...e.envelope,from:n(e.envelope.from),to:n(e.envelope.to),cc:n(e.envelope.cc),bcc:n(e.envelope.bcc),replyTo:n(e.envelope.replyTo)}}},rt=({messageId:e})=>{const t=Z(),{pushError:s}=J(),{mutate:r,isPending:n,error:o,reset:d}=ee({...re(),onMutate:async i=>{const c=i.path.addressId,m=i.body.flags?.trusted?.value===!0,f=se({path:{messageId:e}});await t.cancelQueries({queryKey:f});const p=t.getQueriesData({queryKey:f}).filter(l=>l[1]!==void 0).map(([l,x])=>({queryKey:l,data:x}));return t.setQueriesData({queryKey:f},l=>l&&st(l,c,m)),{describePrefix:f,previous:p}},onError:(i,c,u)=>{if(u)for(const m of u.previous)t.setQueryData(m.queryKey,m.data);s(te("Couldn't trust sender","The change wasn't saved.",i))},onSettled:(i,c,u,m)=>{m&&t.invalidateQueries({queryKey:m.describePrefix})}});return{toggleTrusted:(i,c)=>{r({path:{addressId:i},body:{flags:{trusted:D(!c)}}})},isPending:n,error:o,reset:d}},nt=()=>{const[e,t]=h.useState(()=>typeof document<"u"&&document.documentElement.classList.contains("dark"));return h.useEffect(()=>{const s=document.documentElement,r=new MutationObserver(()=>{t(s.classList.contains("dark"))});return r.observe(s,{attributes:!0,attributeFilter:["class"]}),()=>r.disconnect()},[]),e},at=(e,t)=>{const s=`${e} image${e>1?"s":""}`;return t?`${s} hidden — you blocked this sender`:`${s} blocked for privacy`},ot=({blockedImageCount:e,canAlwaysTrust:t,isTrustPending:s,isSenderBlocked:r,onLoadOnce:n,onAlwaysTrust:o})=>a.jsxs("div",{"data-testid":"blocked-images-notice",className:"mb-3 flex items-center justify-between rounded-md bg-surface-sunken/50 px-3 py-2 text-sm",children:[a.jsx("span",{className:"text-fg-muted",children:at(e,r)}),!r&&a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("button",{type:"button",onClick:n,className:"text-accent hover:underline",children:"Load once"}),t&&a.jsx("button",{type:"button",onClick:o,"aria-busy":s,className:"text-accent hover:underline aria-busy:opacity-50",children:s?"Trusting…":"Always trust"})]})]}),it=(e,t)=>{switch(e){case"auth":return{title:"Your session expired",detail:"Sign in again to reload the message body. Other parts of the app may also stop responding until you do."};case"body-missing":return{title:"Message body is missing in storage",detail:"A sync failure may have left this message without its body bytes. Contact support, or run the reconcile script to refetch from the upstream IMAP server."};case"content-type-mismatch":return{title:"Couldn't load message body",detail:"The server returned an unexpected content type for this part. The message body has not been rendered to keep you safe."};case"spa-shell-leak":return{title:"Couldn't load message body",detail:"The server returned the app shell instead of the message body. This is an infrastructure bug — please report it."};case"not-ready":return{title:"Message body is still syncing",detail:"This message's body hasn't finished downloading from the mail server yet. It should appear shortly — reopen the message to try again."};default:return{title:"Couldn't load message body",detail:t}}},ct=e=>e instanceof le?e.reason:"generic",lt=e=>e instanceof Error?e.message:typeof e=="string"?e:"An unexpected error occurred while loading the message body.",dt=({error:e,onRetry:t})=>{const s=ct(e),r=lt(e),{title:n,detail:o}=it(s,r),[d,g]=h.useState(!1),{Account:i}=ne();return d?null:a.jsxs("div",{role:"alert","data-testid":"message-body-error-banner","data-reason":s,className:"flex items-start gap-2 rounded-md border border-danger/40 bg-danger-soft px-3 py-2 text-sm",children:[a.jsx(ae,{className:"size-4 shrink-0 text-danger mt-0.5","aria-hidden":"true"}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"font-medium text-danger",children:n}),a.jsx("p",{className:"text-fg-muted mt-1 break-words",children:o})]}),a.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[s==="auth"&&a.jsx(i,{children:({signOut:c})=>a.jsx("button",{type:"button",onClick:()=>c(),className:"text-sm font-medium text-accent hover:underline",children:"Sign in again"})}),t&&a.jsx("button",{type:"button",onClick:t,className:"text-sm font-medium text-accent hover:underline",children:"Retry"}),a.jsx("button",{type:"button",onClick:()=>g(!0),"aria-label":"Dismiss message body error",className:"rounded-md p-1 text-fg-muted hover:bg-surface-raised hover:text-fg transition-colors",children:a.jsx(oe,{className:"size-4","aria-hidden":"true"})})]})]})},ut=()=>a.jsxs("div",{className:"animate-pulse space-y-2",role:"status","aria-label":"Loading message body",children:[a.jsx("div",{className:"h-4 bg-surface-sunken rounded w-full"}),a.jsx("div",{className:"h-4 bg-surface-sunken rounded w-11/12"}),a.jsx("div",{className:"h-4 bg-surface-sunken rounded w-3/4"}),a.jsx("div",{className:"h-4 bg-surface-sunken rounded w-5/6"})]}),R=()=>a.jsx("p",{className:"text-fg-muted text-sm italic",children:"This message has no body content."}),Tt=({bodyParts:e,html:t,text:s,isTrusted:r=!1,isBlocked:n=!1,messageId:o,fromAddressId:d,category:g,className:i})=>{const[c,u]=h.useState(!1),[m,f]=h.useState(o);m!==o&&(f(o),u(!1));const p=!n&&(r||c),l=nt(),{toggleTrusted:x,isPending:w}=rt({messageId:o??""}),y=!!e&&e.length>0,{picked:z,data:v,isLoading:P,isError:K,error:F,refetch:H}=de({messageId:o,bodyParts:e,enabled:y}),G=h.useMemo(()=>je(e??[]),[e]),U=y&&v?.kind==="html"?v.body:t,W=y&&v?.kind==="text"?v.body:s;if(y){if(P)return a.jsx("div",{className:b("message-body",i),children:a.jsx(ut,{})});if(K)return a.jsx("div",{className:b("message-body",i),children:a.jsx(dt,{error:F,onRetry:()=>H()})});if(!z)return a.jsx("div",{className:b("message-body",i),children:a.jsx(R,{})})}else if(!t&&!s)return a.jsx("div",{className:b("message-body",i),children:a.jsx(R,{})});const V=!!(d&&o),Q=()=>{!d||w||(u(!0),x(d,!1))};return a.jsx(Ye,{className:i,html:U,text:W,isDark:l,category:g,allowImages:p,resolveCid:G,renderBlockedNotice:q=>a.jsx(ot,{blockedImageCount:q,canAlwaysTrust:V,isTrustPending:w,isSenderBlocked:n,onLoadOnce:()=>u(!0),onAlwaysTrust:Q})})},mt=Object.values(_).map(e=>({value:e,label:I[e]})),ft={unclassified:"uncategorized"},ht=[{name:"from",label:"Sender",values:"contact"},{name:"subject",label:"Subject",values:"text"},{name:"category",label:"Category",values:"fixed",options:mt},{name:"is",label:"State",values:"fixed",options:[{value:"unread",label:"Unread"},{value:"read",label:"Read"},{value:"starred",label:"Starred"}]},{name:"has",label:"Contents",values:"fixed",options:[{value:"attachment",label:"Has attachment"}]},{name:"in",label:"Folder",values:"mailbox"},{name:"account",label:"Account",values:"account"},{name:"after",label:"Sent on or after",values:"date"},{name:"before",label:"Sent before",values:"date"}],gt=new Map(ht.map(e=>[e.name,e])),jt=e=>gt.get(e.toLowerCase()),pt=/^\d{4}-\d{2}-\d{2}$/;function bt(e,t,s){if(!pt.test(s))return;const r=Date.parse(`${s}T00:00:00Z`);if(!Number.isNaN(r))return{type:e,raw:t,value:s,epochSeconds:Math.floor(r/1e3)}}function yt(e){const t=e.toLowerCase(),s=ft[t];return s||Object.values(_).find(n=>n===t)}function xt(e,t){switch(t.toLowerCase()){case"unread":return{type:"isUnread",raw:e};case"read":return{type:"isRead",raw:e};case"starred":case"flagged":return{type:"isStarred",raw:e};default:return}}function wt(e,t){const s=Ze(e);if(!s||s.value.length===0)return;const{name:r,value:n}=s;switch(r){case"from":return{type:"from",raw:e,value:n};case"subject":return{type:"subject",raw:e,value:n};case"category":{const o=yt(n);return o?{type:"category",raw:e,value:n,category:o}:void 0}case"is":return xt(e,n);case"has":return n.toLowerCase()==="attachment"?{type:"hasAttachment",raw:e}:void 0;case"before":case"after":return bt(r,e,n);case"in":{const o=t.mailboxesByName?.get(n.toLowerCase());return o?{type:"in",raw:e,value:n,mailboxId:o}:void 0}case"account":{const o=t.accountsByName?.get(n.toLowerCase());return o?{type:"account",raw:e,value:n,accountId:o}:void 0}default:return}}function Lt(e,t={}){const s=[],r=[];for(const n of M(e)){const o=wt(n.raw,t);o?s.push(o):r.push(n.raw)}return{freeText:r.join(" "),tokens:s}}function Rt(e,t){return M(e).filter(s=>s.raw!==t.raw).map(s=>s.raw).join(" ")}function _t(e){switch(e.type){case"from":return`From: ${e.value}`;case"subject":return`Subject: ${e.value}`;case"category":return`Category: ${I[e.category]}`;case"hasAttachment":return"Has attachment";case"isUnread":return"Unread";case"isRead":return"Read";case"isStarred":return"Starred";case"before":return`Before ${e.value}`;case"after":return`After ${e.value}`;case"in":return`In: ${e.value}`;case"account":return`Account: ${e.value}`}}function It(){const{mailboxNameIndex:e,accountNameIndex:t}=ie(),s=ce();return{...ue(s)?{}:{mailboxesByName:e},accountsByName:t}}export{Et as M,Nt as R,ht as S,Ye as a,rt as b,Tt as c,jt as d,M as e,Ze as f,Ct as g,Lt as p,Rt as r,_t as s,It as u};
|