@remit/web-client-dist 0.0.569 → 0.0.571
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-C4qdevvj.js → BriefPane-C-AXD_S1.js} +1 -1
- package/assets/{CalendarComposePane-DYTk75gD.js → CalendarComposePane-ZInEcl83.js} +1 -1
- package/assets/{CalendarComposeSeed-DHxzgOBp.js → CalendarComposeSeed-BXablasw.js} +1 -1
- package/assets/{CalendarShell-urPv2Ap7.js → CalendarShell-D8PXYY5k.js} +1 -1
- package/assets/{EmptyState-DW9m2lvX.js → EmptyState-BdQOG7lh.js} +1 -1
- package/assets/{ErrorState-BRKdts_G.js → ErrorState-yTshApcZ.js} +1 -1
- package/assets/{FlaggedPane-DJzefBDR.js → FlaggedPane-DBMd-f82.js} +1 -1
- package/assets/{FullCompose-Da6so-wh.js → FullCompose-DFM5SSTD.js} +1 -1
- package/assets/MailListHeader-DixjeKWo.js +7 -0
- package/assets/{MailNav-DtB-SFXW.js → MailNav-B16LaKDW.js} +1 -1
- package/assets/{MailShell-ChH4WH5p.js → MailShell-D2tbOLnz.js} +1 -1
- package/assets/{MailViewChrome-DUkQ3XCS.js → MailViewChrome-B2e9uACs.js} +1 -1
- package/assets/{MailboxPane-AlIsjTqd.js → MailboxPane-CfT2HmEK.js} +1 -1
- package/assets/{NavMenuButton-Cd-vQTHA.js → NavMenuButton-DbwB8-EE.js} +1 -1
- package/assets/{OnboardingWizard-BrSKsD27.js → OnboardingWizard-BwDNIpbV.js} +1 -1
- package/assets/{OpenCalendarEvent-OnyM5Gmr.js → OpenCalendarEvent-Cp3Xxt88.js} +1 -1
- package/assets/{OutboxPane-DCvckDm-.js → OutboxPane-CW2jpqSm.js} +1 -1
- package/assets/_calendarObjectId-Bhzj_LOc.js +1 -0
- package/assets/_mailboxId-7CeQdqXt.js +1 -0
- package/assets/_messageId-9yyd8JQa.js +1 -0
- package/assets/_messageId-BjT0iqtE.js +1 -0
- package/assets/_messageId-DIrX2-NC.js +1 -0
- package/assets/_outboxMessageId-5Hilxc-o.js +1 -0
- package/assets/_recurrenceId-9zc7QOUi.js +1 -0
- package/assets/_threadId-BLPnJQ1O.js +1 -0
- package/assets/_threadId-Cj-AqWpe.js +1 -0
- package/assets/_threadId-DmnNT1YW.js +1 -0
- package/assets/{_view._date-JHbRwoWF.js → _view._date-vmYhsMe2.js} +1 -1
- package/assets/{accounts-B7u97VqP.js → accounts-B5b2n325.js} +1 -1
- package/assets/{advanced-CPfvy6Af.js → advanced-V_8Vc7Op.js} +1 -1
- package/assets/{appearance-Br9Kr3ss.js → appearance-B0Z3Sg7A.js} +1 -1
- package/assets/{attachment-file-C4FSwgIv.js → attachment-file-D1lRTIpJ.js} +1 -1
- package/assets/{attendee-row-D6gUCjbn.js → attendee-row-BY_sZYga.js} +1 -1
- package/assets/{avatar-DQ2Za_b5.js → avatar-Dc7q-vE0.js} +1 -1
- package/assets/{bottom-sheet-DeTeDdhV.js → bottom-sheet-Dj78OKpl.js} +1 -1
- package/assets/{brief-C4ZJVvSI.js → brief-Di6IdjaO.js} +1 -1
- package/assets/brief-pYORS2EQ.js +1 -0
- package/assets/{browser-ponyfill-DJl-hvK0.js → browser-ponyfill-Lmz1LgWx.js} +1 -1
- package/assets/{bug-D4vthdmR.js → bug-BCJlsHb-.js} +1 -1
- package/assets/{calendar-DETOK5EU.js → calendar-Cdtx6qRv.js} +1 -1
- package/assets/{calendar-color-CnMzTK_9.js → calendar-color-CREaSNOF.js} +1 -1
- package/assets/{calendar-event-chip-RDM5bPZZ.js → calendar-event-chip-PRMkWtmn.js} +1 -1
- package/assets/{calendars-D07uwzeX.js → calendars-BfHi1c8f.js} +1 -1
- package/assets/{card-DB95JOXm.js → card-Blb5LxlW.js} +1 -1
- package/assets/chevron-left-B5q2zkoV.js +1 -0
- package/assets/{circle-check-DTL_gl9V.js → circle-check-DQceIvPw.js} +1 -1
- package/assets/{circle-check-big-w157yjgs.js → circle-check-big-DrsWjtbF.js} +1 -1
- package/assets/{circle-help-D2hLsX4d.js → circle-help-C90h4Gxl.js} +1 -1
- package/assets/{clock-BAt8YXWX.js → clock-DJx8eT0h.js} +1 -1
- package/assets/compose._-_outboxMessageId_-Bx3jTrEX.js +1 -0
- package/assets/compose._-_outboxMessageId_-CCL9Z9Rr.js +1 -0
- package/assets/compose._-_outboxMessageId_-J5Xr0VYM.js +1 -0
- package/assets/compose._-_outboxMessageId_-OYQ8wE-O.js +1 -0
- package/assets/{config-import-qvff-XOD.js → config-import-zWUhkyrx.js} +1 -1
- package/assets/{confirm-dialog-DmMkRipf.js → confirm-dialog-BnvctSkU.js} +1 -1
- package/assets/{copy-BRGwXYIX.js → copy-CPegVmmX.js} +1 -1
- package/assets/{credential-steps-AWLHMdlu.js → credential-steps-03ZiFb9S.js} +1 -1
- package/assets/{download-BRMxQZ9H.js → download-DCjKcyoD.js} +1 -1
- package/assets/{file-json-t63BljCM.js → file-json-Bp9PxrXB.js} +1 -1
- package/assets/{filters-BTt3lCAB.js → filters-Cz6ACP3x.js} +1 -1
- package/assets/{flagged-DUGVCsxq.js → flagged-CVe-xaZ6.js} +1 -1
- package/assets/flagged-bqIrcL0D.js +1 -0
- package/assets/{folders-D9quIn8u.js → folders-D0RCMVTd.js} +1 -1
- package/assets/{help-copy-BJma-HMH.js → help-copy-Xy5HlVm9.js} +1 -1
- package/assets/{import-CZZBWvTv.js → import-DntPPUzf.js} +1 -1
- package/assets/index-4TyPLW-n.js +1 -0
- package/assets/index-9yyd8JQa.js +1 -0
- package/assets/index-BjT0iqtE.js +1 -0
- package/assets/index-BpsjtF88.js +1 -0
- package/assets/index-C-j9H2jQ.js +1 -0
- package/assets/index-CfHR_Ae8.js +1 -0
- package/assets/index-CmmqbTph.js +1 -0
- package/assets/{index-BstTD6DD.js → index-Dy5D6YkV.js} +4 -4
- package/assets/{index-s6tBUhDn.js → index-DyF2fU1Q.js} +1 -1
- package/assets/{index-COXmbPoi.js → index-ELhtBEwQ.js} +4 -4
- package/assets/index-drC6ZRdd.js +1 -0
- package/assets/index-iaeEYdB7.js +1 -0
- package/assets/{kbd-D6gO0HEI.js → kbd-6xrqVw1K.js} +1 -1
- package/assets/{labels-XYM303bf.js → labels-eMbeaPk4.js} +1 -1
- package/assets/{mail-BV5VD-Ar.js → mail-1kAZ-hEc.js} +1 -1
- package/assets/{mail-7UArrUpq.js → mail-w8cRSHpe.js} +1 -1
- package/assets/{map-pin-LNJtyvro.js → map-pin-pA2YiBQX.js} +1 -1
- package/assets/{menu-gXDy9USt.js → menu-BBzSZjBL.js} +1 -1
- package/assets/{new-D_pe05i6.js → new-a4cb6vhA.js} +1 -1
- package/assets/onboarding-B6cLhnyh.js +1 -0
- package/assets/{onboarding-completion-Bpw8967t.js → onboarding-completion-DPHalyAM.js} +1 -1
- package/assets/outbox-BMQSynaj.js +1 -0
- package/assets/{pencil-BQZnwNLu.js → pencil-DWkVPRF_.js} +1 -1
- package/assets/{refresh-cw-ZsadNdnS.js → refresh-cw-N6rrepD7.js} +1 -1
- package/assets/{rich-text-DzYAidk-.js → rich-text-CIfc5KKH.js} +1 -1
- package/assets/{rich-text-spellcheck-worker-provider-Bc5w98Dp.js → rich-text-spellcheck-worker-provider-B-dYPpIy.js} +1 -1
- package/assets/{rotate-ccw-M23y8ejM.js → rotate-ccw-Cq64A4JR.js} +1 -1
- package/assets/{roving-focus-DRUyjNlS.js → roving-focus-BOWQw34Y.js} +1 -1
- package/assets/{row-actions-DXchPOTt.js → row-actions-CHU1lTnr.js} +1 -1
- package/assets/{search-mirror-CZpxvipk.js → search-mirror-D__KCGFD.js} +1 -1
- package/assets/{search-token-index-B8GTncCY.js → search-token-index-RpS46UX-.js} +1 -1
- package/assets/{sections-DCf8ouIL.js → sections-DpPFeJvC.js} +1 -1
- package/assets/{senders-CXRiHhmT.js → senders-BzofDilD.js} +1 -1
- package/assets/{settings-screen-c-ew_2vr.js → settings-screen-CEtuw85p.js} +1 -1
- package/assets/settings-t8hjTuQb.js +1 -0
- package/assets/{shield-check-tsdxv3RF.js → shield-check-C-xWv7tn.js} +1 -1
- package/assets/{suggested-vips-B-ZJ_oSz.js → suggested-vips-D-TCsoQ_.js} +1 -1
- package/assets/{useCalendarData-DGI79lVd.js → useCalendarData-tBA8O6aY.js} +1 -1
- package/assets/{useCalendars-BTLkNtty.js → useCalendars-DmOIJuzJ.js} +1 -1
- package/assets/{useDebouncedValue-nhypL9_o.js → useDebouncedValue-cgYnkNgs.js} +1 -1
- package/assets/{useFilters-DorOGFhJ.js → useFilters-toZUnuEV.js} +1 -1
- package/assets/{useLabels-CUd5gWwV.js → useLabels-CuITaMaj.js} +1 -1
- package/assets/{useLayoutTier-wxSo1nDc.js → useLayoutTier-BiCLmmpl.js} +1 -1
- package/assets/{useMessageBodyContent-D8al5oah.js → useMessageBodyContent-Dqn8BKJN.js} +1 -1
- package/assets/{useQueries-BycE_mig.js → useQueries-BuVSZIL7.js} +1 -1
- package/assets/{useRefreshControl-DIWeCjZ5.js → useRefreshControl-BY8dJRFq.js} +1 -1
- package/assets/{useResultFolderIndex-jR4vl6Wy.js → useResultFolderIndex-Bh5N3vbq.js} +1 -1
- package/assets/useSearchTokenContext-BDaT1iE0.js +84 -0
- package/assets/{useSemanticSearch-C2nf4lR9.js → useSemanticSearch-Cr2T-SJl.js} +1 -1
- package/assets/{useSignature-WkO_w4sf.js → useSignature-Do1zcP6k.js} +1 -1
- package/assets/{window-jws2aQZO.js → window-BeKH_DgL.js} +1 -1
- package/index.html +1 -1
- package/package.json +1 -1
- package/assets/MailListHeader-CtLJO_kX.js +0 -7
- package/assets/_calendarObjectId-BTNDF6Go.js +0 -1
- package/assets/_mailboxId-DdOnexSL.js +0 -1
- package/assets/_messageId-BJI9HI_Y.js +0 -1
- package/assets/_messageId-DBf1JHiD.js +0 -1
- package/assets/_messageId-VgUm24uu.js +0 -1
- package/assets/_outboxMessageId-_ZBaATuU.js +0 -1
- package/assets/_recurrenceId-C83vhhhO.js +0 -1
- package/assets/_threadId-BKiZCs6r.js +0 -1
- package/assets/_threadId-CxJHY37y.js +0 -1
- package/assets/_threadId-DZiwTD8V.js +0 -1
- package/assets/brief-BUv_Vayt.js +0 -1
- package/assets/chevron-left-BGyOlrhE.js +0 -1
- package/assets/compose._-_outboxMessageId_-BLfWiKmz.js +0 -1
- package/assets/compose._-_outboxMessageId_-C2-ZvUCw.js +0 -1
- package/assets/compose._-_outboxMessageId_-CjcPajfp.js +0 -1
- package/assets/compose._-_outboxMessageId_-NBmfRz6x.js +0 -1
- package/assets/flagged-CPTPXLqu.js +0 -1
- package/assets/index-BESinRwS.js +0 -1
- package/assets/index-BJI9HI_Y.js +0 -1
- package/assets/index-BWinfpFM.js +0 -1
- package/assets/index-BbLX1tpD.js +0 -1
- package/assets/index-CWf3j_Bd.js +0 -1
- package/assets/index-D8UvRySx.js +0 -1
- package/assets/index-DBf1JHiD.js +0 -1
- package/assets/index-DOT9iKNA.js +0 -1
- package/assets/index-ef9ZOerK.js +0 -1
- package/assets/onboarding-Bes4tj0x.js +0 -1
- package/assets/outbox-DlE7p5GU.js +0 -1
- package/assets/settings-ejtLzHlz.js +0 -1
- package/assets/useSearchTokenContext-Q-PYaS79.js +0 -84
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as o}from"./FullCompose-Da6so-wh.js";import"./index-BstTD6DD.js";import"./ErrorState-BRKdts_G.js";import"./index-COXmbPoi.js";import"./useMessageBodyContent-D8al5oah.js";import"./useSignature-WkO_w4sf.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-nhypL9_o.js";import"./sections-DCf8ouIL.js";import"./confirm-dialog-DmMkRipf.js";const c=o;export{c as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as o}from"./FullCompose-Da6so-wh.js";import"./index-BstTD6DD.js";import"./ErrorState-BRKdts_G.js";import"./index-COXmbPoi.js";import"./useMessageBodyContent-D8al5oah.js";import"./useSignature-WkO_w4sf.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-nhypL9_o.js";import"./sections-DCf8ouIL.js";import"./confirm-dialog-DmMkRipf.js";const c=o;export{c as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as o}from"./FullCompose-Da6so-wh.js";import"./index-BstTD6DD.js";import"./ErrorState-BRKdts_G.js";import"./index-COXmbPoi.js";import"./useMessageBodyContent-D8al5oah.js";import"./useSignature-WkO_w4sf.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-nhypL9_o.js";import"./sections-DCf8ouIL.js";import"./confirm-dialog-DmMkRipf.js";const c=o;export{c as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as o}from"./FullCompose-Da6so-wh.js";import"./index-BstTD6DD.js";import"./ErrorState-BRKdts_G.js";import"./index-COXmbPoi.js";import"./useMessageBodyContent-D8al5oah.js";import"./useSignature-WkO_w4sf.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-nhypL9_o.js";import"./sections-DCf8ouIL.js";import"./confirm-dialog-DmMkRipf.js";const c=o;export{c as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o,O as i}from"./index-BstTD6DD.js";import{a as m}from"./MailShell-ChH4WH5p.js";import{F as r}from"./FlaggedPane-DJzefBDR.js";import{d as p}from"./search-token-index-B8GTncCY.js";import{u as e}from"./search-mirror-CZpxvipk.js";import"./FullCompose-Da6so-wh.js";import"./ErrorState-BRKdts_G.js";import"./index-COXmbPoi.js";import"./useMessageBodyContent-D8al5oah.js";import"./useSignature-WkO_w4sf.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-nhypL9_o.js";import"./sections-DCf8ouIL.js";import"./confirm-dialog-DmMkRipf.js";import"./useSearchTokenContext-Q-PYaS79.js";import"./kbd-D6gO0HEI.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-CtLJO_kX.js";import"./roving-focus-DRUyjNlS.js";import"./attachment-file-C4FSwgIv.js";import"./mail-BV5VD-Ar.js";import"./avatar-DQ2Za_b5.js";import"./EmptyState-DW9m2lvX.js";import"./download-BRMxQZ9H.js";import"./calendar-event-chip-RDM5bPZZ.js";import"./calendar-color-CnMzTK_9.js";import"./map-pin-LNJtyvro.js";import"./attendee-row-D6gUCjbn.js";import"./clock-BAt8YXWX.js";import"./useLayoutTier-wxSo1nDc.js";import"./shield-check-tsdxv3RF.js";import"./useFilters-DorOGFhJ.js";import"./useQueries-BycE_mig.js";import"./menu-gXDy9USt.js";import"./MailViewChrome-DUkQ3XCS.js";import"./refresh-cw-ZsadNdnS.js";import"./wizard-selection-DxUM65kM.js";function N(){const t=p();return e({to:"/mail/flagged"}),o.jsx(r,{thread:t,children:o.jsx(m,{phone:o.jsx(r.Phone,{}),list:o.jsx(r.List,{}),reading:o.jsx(i,{}),intelligence:o.jsx(r.Intelligence,{}),hasThread:!!t})})}export{N as component};
|
package/assets/index-BESinRwS.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./index-BstTD6DD.js";import{B as o}from"./BriefPane-C4qdevvj.js";import"./useSearchTokenContext-Q-PYaS79.js";import"./kbd-D6gO0HEI.js";import"./useMessageBodyContent-D8al5oah.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-CtLJO_kX.js";import"./roving-focus-DRUyjNlS.js";import"./search-token-index-B8GTncCY.js";import"./useLayoutTier-wxSo1nDc.js";import"./useQueries-BycE_mig.js";import"./attachment-file-C4FSwgIv.js";import"./mail-BV5VD-Ar.js";import"./avatar-DQ2Za_b5.js";import"./index-COXmbPoi.js";import"./useSignature-WkO_w4sf.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-nhypL9_o.js";import"./sections-DCf8ouIL.js";import"./EmptyState-DW9m2lvX.js";import"./ErrorState-BRKdts_G.js";import"./download-BRMxQZ9H.js";import"./calendar-event-chip-RDM5bPZZ.js";import"./calendar-color-CnMzTK_9.js";import"./map-pin-LNJtyvro.js";import"./attendee-row-D6gUCjbn.js";import"./clock-BAt8YXWX.js";import"./shield-check-tsdxv3RF.js";import"./useFilters-DorOGFhJ.js";import"./confirm-dialog-DmMkRipf.js";import"./menu-gXDy9USt.js";import"./useRefreshControl-DIWeCjZ5.js";import"./circle-check-big-w157yjgs.js";import"./refresh-cw-ZsadNdnS.js";import"./useSemanticSearch-C2nf4lR9.js";import"./useLabels-CUd5gWwV.js";import"./search-query-Cr_ZXBCp.js";import"./wizard-selection-DxUM65kM.js";function M(){return r.jsx(o.Reading,{})}export{M as component};
|
package/assets/index-BJI9HI_Y.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-BstTD6DD.js";import{F as r}from"./FlaggedPane-DJzefBDR.js";import"./useSearchTokenContext-Q-PYaS79.js";import"./kbd-D6gO0HEI.js";import"./useMessageBodyContent-D8al5oah.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-CtLJO_kX.js";import"./roving-focus-DRUyjNlS.js";import"./search-token-index-B8GTncCY.js";import"./useLayoutTier-wxSo1nDc.js";import"./useQueries-BycE_mig.js";import"./attachment-file-C4FSwgIv.js";import"./mail-BV5VD-Ar.js";import"./avatar-DQ2Za_b5.js";import"./index-COXmbPoi.js";import"./useSignature-WkO_w4sf.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-nhypL9_o.js";import"./sections-DCf8ouIL.js";import"./EmptyState-DW9m2lvX.js";import"./ErrorState-BRKdts_G.js";import"./download-BRMxQZ9H.js";import"./calendar-event-chip-RDM5bPZZ.js";import"./calendar-color-CnMzTK_9.js";import"./map-pin-LNJtyvro.js";import"./attendee-row-D6gUCjbn.js";import"./clock-BAt8YXWX.js";import"./shield-check-tsdxv3RF.js";import"./useFilters-DorOGFhJ.js";import"./confirm-dialog-DmMkRipf.js";import"./menu-gXDy9USt.js";import"./MailViewChrome-DUkQ3XCS.js";import"./refresh-cw-ZsadNdnS.js";import"./wizard-selection-DxUM65kM.js";function H(){return o.jsx(r.Reading,{})}export{H as component};
|
package/assets/index-BWinfpFM.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-BstTD6DD.js";import{F as r}from"./FlaggedPane-DJzefBDR.js";import"./useSearchTokenContext-Q-PYaS79.js";import"./kbd-D6gO0HEI.js";import"./useMessageBodyContent-D8al5oah.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-CtLJO_kX.js";import"./roving-focus-DRUyjNlS.js";import"./search-token-index-B8GTncCY.js";import"./useLayoutTier-wxSo1nDc.js";import"./useQueries-BycE_mig.js";import"./attachment-file-C4FSwgIv.js";import"./mail-BV5VD-Ar.js";import"./avatar-DQ2Za_b5.js";import"./index-COXmbPoi.js";import"./useSignature-WkO_w4sf.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-nhypL9_o.js";import"./sections-DCf8ouIL.js";import"./EmptyState-DW9m2lvX.js";import"./ErrorState-BRKdts_G.js";import"./download-BRMxQZ9H.js";import"./calendar-event-chip-RDM5bPZZ.js";import"./calendar-color-CnMzTK_9.js";import"./map-pin-LNJtyvro.js";import"./attendee-row-D6gUCjbn.js";import"./clock-BAt8YXWX.js";import"./shield-check-tsdxv3RF.js";import"./useFilters-DorOGFhJ.js";import"./confirm-dialog-DmMkRipf.js";import"./menu-gXDy9USt.js";import"./MailViewChrome-DUkQ3XCS.js";import"./refresh-cw-ZsadNdnS.js";import"./wizard-selection-DxUM65kM.js";function I(){return o.jsx(r.Reading,{})}export{I as component};
|
package/assets/index-BbLX1tpD.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t,ao as o}from"./index-BstTD6DD.js";const n=()=>t.jsx(o,{to:"/settings/accounts"});export{n as component};
|
package/assets/index-CWf3j_Bd.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-BstTD6DD.js";import{O as t}from"./OutboxPane-DCvckDm-.js";import"./roving-focus-DRUyjNlS.js";import"./useSearchTokenContext-Q-PYaS79.js";import"./kbd-D6gO0HEI.js";import"./useMessageBodyContent-D8al5oah.js";import"./search-scope-B5-OK3Cq.js";import"./circle-check-big-w157yjgs.js";import"./clock-BAt8YXWX.js";import"./row-actions-DXchPOTt.js";import"./rotate-ccw-M23y8ejM.js";import"./NavMenuButton-Cd-vQTHA.js";import"./menu-gXDy9USt.js";import"./outbox-status-BlKn6P0x.js";import"./search-query-Cr_ZXBCp.js";function c(){return o.jsx(t.Reading,{})}export{c as component};
|
package/assets/index-D8UvRySx.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-BstTD6DD.js";import{M as i}from"./MailboxPane-AlIsjTqd.js";import"./useSearchTokenContext-Q-PYaS79.js";import"./kbd-D6gO0HEI.js";import"./useMessageBodyContent-D8al5oah.js";import"./search-scope-B5-OK3Cq.js";import"./useRefreshControl-DIWeCjZ5.js";import"./circle-check-big-w157yjgs.js";import"./refresh-cw-ZsadNdnS.js";import"./useQueries-BycE_mig.js";import"./MailListHeader-CtLJO_kX.js";import"./roving-focus-DRUyjNlS.js";import"./search-token-index-B8GTncCY.js";import"./useLayoutTier-wxSo1nDc.js";import"./attachment-file-C4FSwgIv.js";import"./mail-BV5VD-Ar.js";import"./avatar-DQ2Za_b5.js";import"./index-COXmbPoi.js";import"./useSignature-WkO_w4sf.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-nhypL9_o.js";import"./sections-DCf8ouIL.js";import"./EmptyState-DW9m2lvX.js";import"./ErrorState-BRKdts_G.js";import"./download-BRMxQZ9H.js";import"./calendar-event-chip-RDM5bPZZ.js";import"./calendar-color-CnMzTK_9.js";import"./map-pin-LNJtyvro.js";import"./attendee-row-D6gUCjbn.js";import"./clock-BAt8YXWX.js";import"./shield-check-tsdxv3RF.js";import"./useFilters-DorOGFhJ.js";import"./confirm-dialog-DmMkRipf.js";import"./menu-gXDy9USt.js";import"./MailViewChrome-DUkQ3XCS.js";import"./NavMenuButton-Cd-vQTHA.js";import"./useLabels-CUd5gWwV.js";import"./useSemanticSearch-C2nf4lR9.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-DeTeDdhV.js";import"./circle-help-D2hLsX4d.js";import"./circle-check-DTL_gl9V.js";function S(){return o.jsx(i.Reading,{})}export{S as component};
|
package/assets/index-DBf1JHiD.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./index-BstTD6DD.js";import{B as o}from"./BriefPane-C4qdevvj.js";import"./useSearchTokenContext-Q-PYaS79.js";import"./kbd-D6gO0HEI.js";import"./useMessageBodyContent-D8al5oah.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-CtLJO_kX.js";import"./roving-focus-DRUyjNlS.js";import"./search-token-index-B8GTncCY.js";import"./useLayoutTier-wxSo1nDc.js";import"./useQueries-BycE_mig.js";import"./attachment-file-C4FSwgIv.js";import"./mail-BV5VD-Ar.js";import"./avatar-DQ2Za_b5.js";import"./index-COXmbPoi.js";import"./useSignature-WkO_w4sf.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-nhypL9_o.js";import"./sections-DCf8ouIL.js";import"./EmptyState-DW9m2lvX.js";import"./ErrorState-BRKdts_G.js";import"./download-BRMxQZ9H.js";import"./calendar-event-chip-RDM5bPZZ.js";import"./calendar-color-CnMzTK_9.js";import"./map-pin-LNJtyvro.js";import"./attendee-row-D6gUCjbn.js";import"./clock-BAt8YXWX.js";import"./shield-check-tsdxv3RF.js";import"./useFilters-DorOGFhJ.js";import"./confirm-dialog-DmMkRipf.js";import"./menu-gXDy9USt.js";import"./useRefreshControl-DIWeCjZ5.js";import"./circle-check-big-w157yjgs.js";import"./refresh-cw-ZsadNdnS.js";import"./useSemanticSearch-C2nf4lR9.js";import"./useLabels-CUd5gWwV.js";import"./search-query-Cr_ZXBCp.js";import"./wizard-selection-DxUM65kM.js";function L(){return r.jsx(o.Reading,{})}export{L as component};
|
package/assets/index-DOT9iKNA.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-BstTD6DD.js";import{M as r}from"./MailboxPane-AlIsjTqd.js";import"./useSearchTokenContext-Q-PYaS79.js";import"./kbd-D6gO0HEI.js";import"./useMessageBodyContent-D8al5oah.js";import"./search-scope-B5-OK3Cq.js";import"./useRefreshControl-DIWeCjZ5.js";import"./circle-check-big-w157yjgs.js";import"./refresh-cw-ZsadNdnS.js";import"./useQueries-BycE_mig.js";import"./MailListHeader-CtLJO_kX.js";import"./roving-focus-DRUyjNlS.js";import"./search-token-index-B8GTncCY.js";import"./useLayoutTier-wxSo1nDc.js";import"./attachment-file-C4FSwgIv.js";import"./mail-BV5VD-Ar.js";import"./avatar-DQ2Za_b5.js";import"./index-COXmbPoi.js";import"./useSignature-WkO_w4sf.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-nhypL9_o.js";import"./sections-DCf8ouIL.js";import"./EmptyState-DW9m2lvX.js";import"./ErrorState-BRKdts_G.js";import"./download-BRMxQZ9H.js";import"./calendar-event-chip-RDM5bPZZ.js";import"./calendar-color-CnMzTK_9.js";import"./map-pin-LNJtyvro.js";import"./attendee-row-D6gUCjbn.js";import"./clock-BAt8YXWX.js";import"./shield-check-tsdxv3RF.js";import"./useFilters-DorOGFhJ.js";import"./confirm-dialog-DmMkRipf.js";import"./menu-gXDy9USt.js";import"./MailViewChrome-DUkQ3XCS.js";import"./NavMenuButton-Cd-vQTHA.js";import"./useLabels-CUd5gWwV.js";import"./useSemanticSearch-C2nf4lR9.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-DeTeDdhV.js";import"./circle-help-D2hLsX4d.js";import"./circle-check-DTL_gl9V.js";function Q(){return o.jsx(r.Reading,{})}export{Q as component};
|
package/assets/index-ef9ZOerK.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{eI as o,j as r}from"./index-BstTD6DD.js";import{O as m}from"./OpenCalendarEvent-OnyM5Gmr.js";import"./CalendarComposePane-DYTk75gD.js";import"./window-jws2aQZO.js";import"./ErrorState-BRKdts_G.js";import"./calendar-color-CnMzTK_9.js";import"./attendee-row-D6gUCjbn.js";import"./avatar-DQ2Za_b5.js";import"./clock-BAt8YXWX.js";import"./map-pin-LNJtyvro.js";import"./mail-BV5VD-Ar.js";import"./pencil-BQZnwNLu.js";import"./useCalendars-BTLkNtty.js";import"./useCalendarData-DGI79lVd.js";import"./useQueries-BycE_mig.js";function R(){const{calendarObjectId:t}=o.useParams();return r.jsx(m,{calendarObjectId:t})}export{R as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{q as n,h as i,u as a,r as m,j as s}from"./index-BstTD6DD.js";import{O as p}from"./OnboardingWizard-BrSKsD27.js";import{c}from"./onboarding-completion-Bpw8967t.js";import"./kbd-D6gO0HEI.js";import"./credential-steps-AWLHMdlu.js";import"./card-DB95JOXm.js";import"./account-form-helpers-DhckT_PN.js";import"./mail-BV5VD-Ar.js";import"./file-json-t63BljCM.js";function O(){const o=n(),e=i(),t=a(),r=m.useCallback(l=>{c({queryClient:e,recordCompleted:()=>o.recordEvent("onboarding.completed"),navigateToInbox:()=>{window.location.assign("/mail")}})},[o,e]);return s.jsx(p,{skipWelcome:!1,onComplete:r,onImportConfig:()=>{t({to:"/import"})}})}export{O as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o,O as i}from"./index-BstTD6DD.js";import{a as m}from"./MailShell-ChH4WH5p.js";import{u as p,O as t}from"./OutboxPane-DCvckDm-.js";import{u as s}from"./search-mirror-CZpxvipk.js";import"./FullCompose-Da6so-wh.js";import"./ErrorState-BRKdts_G.js";import"./index-COXmbPoi.js";import"./useMessageBodyContent-D8al5oah.js";import"./useSignature-WkO_w4sf.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-nhypL9_o.js";import"./sections-DCf8ouIL.js";import"./confirm-dialog-DmMkRipf.js";import"./roving-focus-DRUyjNlS.js";import"./useSearchTokenContext-Q-PYaS79.js";import"./kbd-D6gO0HEI.js";import"./search-scope-B5-OK3Cq.js";import"./circle-check-big-w157yjgs.js";import"./clock-BAt8YXWX.js";import"./row-actions-DXchPOTt.js";import"./rotate-ccw-M23y8ejM.js";import"./NavMenuButton-Cd-vQTHA.js";import"./menu-gXDy9USt.js";import"./outbox-status-BlKn6P0x.js";import"./search-query-Cr_ZXBCp.js";function v(){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{v as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t,O as o}from"./index-BstTD6DD.js";const n=()=>t.jsx(o,{});export{n as component};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import{cq as V,r as g,j as a,t as b,I as Q,h as q,au as Y,i as X,aw as Z,cG as J,bP as ee,ac as te,a0 as se,X as re,c$ as R,d0 as _,C as ne,ck as ae}from"./index-BstTD6DD.js";import{K as k}from"./kbd-D6gO0HEI.js";import{B as oe,b as ie}from"./useMessageBodyContent-D8al5oah.js";import{i as ce}from"./search-scope-B5-OK3Cq.js";const le=(e,t)=>{const r=e==="newsletter"||e==="marketing"||t;return{framed:r,isPlain:!r}},de=()=>`
|
|
2
|
-
/* Zero the UA default body margin and clamp the document to the iframe width so
|
|
3
|
-
wide author markup can't push the body (and the page) past the viewport. */
|
|
4
|
-
html, body {
|
|
5
|
-
margin: 0;
|
|
6
|
-
padding: 0;
|
|
7
|
-
max-width: 100%;
|
|
8
|
-
}
|
|
9
|
-
body {
|
|
10
|
-
overflow-wrap: anywhere;
|
|
11
|
-
word-break: break-word;
|
|
12
|
-
}
|
|
13
|
-
/* Media never wider than the frame; keep aspect ratio when width is capped. */
|
|
14
|
-
img, video, iframe, svg, canvas {
|
|
15
|
-
max-width: 100% !important;
|
|
16
|
-
height: auto;
|
|
17
|
-
}
|
|
18
|
-
/* Fixed-width author tables (\`<table width="600">\`) collapse to fit. */
|
|
19
|
-
table {
|
|
20
|
-
max-width: 100% !important;
|
|
21
|
-
table-layout: auto;
|
|
22
|
-
}
|
|
23
|
-
/* Cells carry the fixed widths in real newsletters (\`<td width="600">\`);
|
|
24
|
-
cap them too or the table can't actually shrink. */
|
|
25
|
-
td, th {
|
|
26
|
-
max-width: 100% !important;
|
|
27
|
-
}
|
|
28
|
-
/* \`max-width\` alone can't beat an inline \`min-width\`; zeroing the min lets
|
|
29
|
-
flex / grid / table children actually collapse to the clamped width. */
|
|
30
|
-
* {
|
|
31
|
-
min-width: 0;
|
|
32
|
-
}
|
|
33
|
-
/* An author \`nowrap\` assumes a viewport as wide as the line. The frame is the
|
|
34
|
-
pane's width whatever the mail is, so a pinned paragraph turns reading one
|
|
35
|
-
sentence into a sideways drag — and inside an author \`overflow:hidden\` it is
|
|
36
|
-
cut mid-character with nothing left to scroll at all. Flowing text wraps. The
|
|
37
|
-
\`i\` flag is load-bearing: Outlook and older generators emit \`WHITE-SPACE:
|
|
38
|
-
NOWRAP\`, and an attribute value match is case-sensitive without it. */
|
|
39
|
-
[nowrap]:not(pre, code, pre *, code *),
|
|
40
|
-
[style*="nowrap" i]:not(pre, code, pre *, code *) {
|
|
41
|
-
white-space: normal !important;
|
|
42
|
-
}
|
|
43
|
-
/* Long unbroken strings (URLs, tokens) wrap instead of forcing a wide line. */
|
|
44
|
-
pre, code {
|
|
45
|
-
white-space: pre-wrap;
|
|
46
|
-
overflow-wrap: anywhere;
|
|
47
|
-
word-break: break-word;
|
|
48
|
-
}
|
|
49
|
-
/* Preformatted text keeps its spacing even where a nowrap is declared — on the
|
|
50
|
-
block or on a span inside it. \`normal\` would collapse the runs of spaces that
|
|
51
|
-
are the entire content of a \`pre\`, and the un-important rule above cannot
|
|
52
|
-
defend an inline style, so this wraps to \`pre-wrap\` instead of unwrapping. */
|
|
53
|
-
:is(pre, code, pre *, code *):is([nowrap], [style*="nowrap" i]) {
|
|
54
|
-
white-space: pre-wrap !important;
|
|
55
|
-
}
|
|
56
|
-
`,ue=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,""))},me=/^(none|transparent|inherit|initial|unset)\s*$/i,B=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},fe=e=>{const t=/background(?:-color)?\s*:\s*([^;}\n]+)/gi;let s;for(s=t.exec(e);s!==null;){const r=s[1].trim();if(!me.test(r))return!0;s=t.exec(e)}return!1},he=e=>{if(/\bstyle\s*=\s*["'][^"']*background/i.test(e)||/\bbgcolor\s*=/i.test(e))return!0;for(const t of B(e))if(fe(t))return!0;return!1},ge=new Set(["auto","none","initial","inherit","unset","revert","revert-layer"]),pe=new RegExp(`(?<![-\\w])(?:padding|margin)(?:-(top|right|bottom|left|block|inline)(?:-(?:start|end))?)?\\s*:\\s*([^;}"']+)`,"gi"),be=new Set(["top","bottom","block"]),I=e=>e.replace(/\/\*[\s\S]*?\*\//g,""),E=e=>{const t=e.toLowerCase();if(!t||ge.has(t)||t.startsWith("-"))return!1;const s=/^\+?(\d*\.?\d+)[a-z%]*$/.exec(t);return s?Number.parseFloat(s[1])!==0:!0},ye=e=>{const t=e.split(/\s+/).filter(Boolean);return t.length<2?t:t.length<4?[t[1]]:[t[1],t[3]]},xe=(e,t)=>{if(e&&be.has(e))return!1;const s=t.replace(/!\s*important/gi,"").trim();return s?e?s.split(/\s+/).some(E):ye(s).some(E):!1},T=e=>{for(const t of I(e).matchAll(pe))if(xe(t[1],t[2]))return!0;return!1},M=new Set(["blockquote"]),we=e=>e.replace(/<!--[\s\S]*?-->/g,""),ve=e=>{const t=[],s=/<([a-zA-Z][\w:-]*)((?:"[^"]*"|'[^']*'|[^>"'])*)>/g,r=/\bstyle\s*=\s*(?:"([^"]*)"|'([^']*)')/gi;for(const[,n,o]of e.matchAll(s))for(const l of o.matchAll(r))t.push({tag:n.toLowerCase(),style:l[1]??l[2]??""});return t},ke=e=>[...I(e).matchAll(/([^{}]*)\{([^{}]*)\}/g)].map(t=>({selector:t[1].trim(),body:t[2]})),Se=e=>{const t=e.trim().split(/[\s>+~]+/).pop()??"";return(/^[a-zA-Z][\w-]*/.exec(t)?.[0]??"").toLowerCase()},Ae=e=>e.split(",").every(t=>M.has(Se(t))),Ee=e=>{const t=B(e),s=we(e);if(/\bcellpadding\s*=\s*["']?(?!0["'\s>])\d/i.test(s))return!0;for(const{tag:r,style:n}of ve(s))if(!M.has(r)&&T(n))return!0;for(const r of t)for(const n of ke(r))if(!Ae(n.selector)&&T(n.body))return!0;return!1},Te=["script","iframe","object","embed","form","input","button","textarea","select","meta","link","base"],Ce=["onerror","onload","onclick","onmouseover","onmouseout","onfocus","onblur","onsubmit","onkeydown","onkeyup","formaction","xlink:href","data-bind"],Ne="data:image/svg+xml,"+encodeURIComponent(`
|
|
57
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100">
|
|
58
|
-
<rect fill="#f0f0f0" width="100" height="100"/>
|
|
59
|
-
<text x="50" y="50" text-anchor="middle" dy=".3em" fill="#999" font-size="12">
|
|
60
|
-
Image blocked
|
|
61
|
-
</text>
|
|
62
|
-
</svg>
|
|
63
|
-
`),je=e=>e.replace(/url\s*\([^)]*\)/gi,"none").replace(/expression\s*\([^)]*\)/gi,"").replace(/-moz-binding\s*:[^;]*/gi,""),Le=e=>e.replace(/@import[^;]*;/gi,"/* @import blocked */").replace(/url\s*\([^)]*\)/gi,"none").replace(/expression\s*\([^)]*\)/gi,"").replace(/-moz-binding\s*:[^;]*/gi,""),Re=(e={})=>{const t=V(),s={FORBID_TAGS:Te,FORBID_ATTR:Ce,ALLOW_DATA_ATTR:!1,ALLOW_UNKNOWN_PROTOCOLS:!1};return t.addHook("afterSanitizeAttributes",r=>{if(r.tagName==="IMG"){const n=r.getAttribute("src")||"";if(n.startsWith("data:"))return;if(n.startsWith("cid:")){const l=n.slice(4).replace(/^<|>$/g,""),m=e.resolveCid?.(l);m&&(r.setAttribute("src",m),r.classList.add("inline-content"));return}e.allowExternalImages||(r.setAttribute("data-blocked-src",n),r.setAttribute("src",Ne),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",je(n))}}),t.addHook("uponSanitizeElement",(r,n)=>{if(n.tagName==="style"){const o=r.textContent||"";r.textContent=Le(o)}}),r=>{const n=he(r),o=Ee(r),l=t.sanitize(r,s);return{html:`<style>${de()}</style>${l}`,hasAuthorBackground:n,hasAuthorSpacing:o}}},_e='"Geist Variable", "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',v={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)"}},Be={background:!1,spacing:!1},Ie="16px",Me=()=>`html{padding:0}body{padding:${Ie};box-sizing:border-box}`,Oe=()=>"html{overflow:hidden}body{overflow-x:auto}",$e=/prefers-color-scheme\s*:\s*dark|color-scheme\s*:\s*[^;}"']*\bdark\b/i,De='<meta name="viewport" content="width=device-width, initial-scale=1">',ze=e=>{const t=e?v.dark:v.light;return`
|
|
64
|
-
/* Plain-email base: UI font-stack + theme-aware colors (#424) */
|
|
65
|
-
html, body {
|
|
66
|
-
font-family: ${_e};
|
|
67
|
-
font-size: 14px;
|
|
68
|
-
line-height: 1.6;
|
|
69
|
-
color: ${t.fg};
|
|
70
|
-
background-color: ${t.canvas};
|
|
71
|
-
margin: 0;
|
|
72
|
-
padding: 0;
|
|
73
|
-
}
|
|
74
|
-
/* Strip author unreadable text colors and element backgrounds, scoped to body
|
|
75
|
-
descendants so the themed html/body surface above survives this reset. */
|
|
76
|
-
body * {
|
|
77
|
-
color: inherit !important;
|
|
78
|
-
background-color: transparent !important;
|
|
79
|
-
}
|
|
80
|
-
a, a:visited {
|
|
81
|
-
color: ${t.accent} !important;
|
|
82
|
-
text-decoration: underline;
|
|
83
|
-
}
|
|
84
|
-
`},A="invert(0.92) hue-rotate(180deg)",C=`img,picture,video,svg,canvas,[style*='background-image'],[background]{filter:${A}}`,Pe=(e,t,s)=>{const r=e?v.dark.canvas:v.light.canvas;return s?e?t?`html,body{margin:0;background-color:${r};color-scheme:dark light}`:`html{margin:0;background-color:#ffffff;filter:${A}}body{margin:0}${C}`:"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:${A}}${C}`:`html,body{margin:0;background-color:${r};color-scheme:light}`},Ke=(e,t,s,r=Be)=>{const n=t==="plain"?ze(s):Pe(s,$e.test(e),r.background),o=r.spacing?"":Me();return`${De}<style>${n}</style>${e}<style>${Oe()}${o}</style>`},Fe=5e4,He="allow-same-origin allow-popups allow-popups-to-escape-sandbox",Ge=(e,t,s)=>Math.min(Math.ceil(Math.max(e,t)),s),Ue=new Set(["Enter","Escape","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End"]),We=e=>e===" "?!1:e.length===1?!0:Ue.has(e),S=e=>{if(e.metaKey||e.ctrlKey||e.altKey||!We(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}))},N=({html:e,variant:t="framed",isDark:s=!1,declares:r,className:n})=>{const o=g.useRef(null),[l,m]=g.useState(0),d=g.useMemo(()=>Ke(e,t,s,r),[e,t,s,r]);return g.useEffect(()=>{const c=o.current;if(!c)return;const f=()=>{const i=c.contentDocument;if(!i?.body)return;const x=i.documentElement,y=Ge(i.body.scrollHeight,x?.scrollHeight??0,Fe);m(w=>w===y?w:y)};let u,h;const p=()=>{f(),u?.disconnect(),u=void 0,h?.removeEventListener("keydown",S),h?.removeEventListener("load",f,!0),h=void 0;const i=c.contentDocument;i?.body&&(u=new ResizeObserver(f),u.observe(i.body),i.documentElement&&u.observe(i.documentElement),i.addEventListener("load",f,!0),i.fonts?.ready.then(f),i.addEventListener("keydown",S),h=i)};return c.addEventListener("load",p),()=>{c.removeEventListener("load",p),h?.removeEventListener("keydown",S),h?.removeEventListener("load",f,!0),u?.disconnect()}},[]),a.jsx("iframe",{ref:o,title:"Email content",sandbox:He,srcDoc:d,className:n,style:{width:"100%",border:"none",display:"block",height:l===0?"1px":`${l}px`,colorScheme:"normal"}})},j=()=>a.jsx("p",{className:"text-fg-muted text-sm italic",children:"This message has no body content."}),vt=({className:e,children:t})=>a.jsx("div",{className:b("[&_.message-body-frame]:-mx-2 lg:[&_.message-body-frame]:-mx-4",e),children:t}),Ve=({html:e,text:t,isDark:s=!1,category:r,allowImages:n=!1,resolveCid:o,className:l,renderBlockedNotice:m})=>{const d=g.useMemo(()=>!e||typeof document>"u"?null:Re({allowExternalImages:n,resolveCid:o})(e),[e,n,o]),c=d?.html??null,{framed:f,isPlain:u}=le(r,d?.hasAuthorBackground??!1),h=g.useMemo(()=>({background:d?.hasAuthorBackground??!1,spacing:d?.hasAuthorSpacing??!1}),[d?.hasAuthorBackground,d?.hasAuthorSpacing]),p=g.useMemo(()=>!c||n?0:(c.match(/data-blocked-src/g)||[]).length,[c,n]);return!c&&!t?a.jsx("div",{className:b("message-body",l),children:a.jsx(j,{})}):a.jsxs("div",{className:b("message-body",l),children:[p>0&&a.jsx("div",{children:m?.(p)}),c?a.jsx("div",{className:"message-body-frame",children:f?a.jsx("div",{className:"w-full max-w-full",children:a.jsx(N,{html:c,variant:"framed",isDark:s,declares:h})}):a.jsx("div",{className:"max-w-full lg:max-w-2xl",children:a.jsx(N,{html:c,variant:u?"plain":"framed",isDark:s,declares:h})})}):t?a.jsx("pre",{className:"email-text whitespace-pre-wrap text-sm leading-relaxed",children:t}):a.jsx(j,{})]})};function kt({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(Q,{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(k,{children:"j"})," / ",a.jsx(k,{children:"k"})," to move, ",a.jsx(k,{children:"Enter"})," to open"]})]})}function O(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 Qe=e=>{if(!e.startsWith('"'))return e;const t=e.slice(1);return t.endsWith('"')?t.slice(0,-1):t};function qe(e){const t=e.indexOf(":");if(t<=0)return;const s=e.slice(t+1);return{name:e.slice(0,t).toLowerCase(),value:Qe(s),rawValue:s}}const Ye=e=>/[\s"]/.test(e),Xe=e=>Ye(e)?`"${e.replace(/"/g,"")}"`:e,St=(e,t)=>`${e}:${Xe(t)}`,$=(e,t=Date.now())=>({value:e,setAt:t}),Ze=(e,t,s,r)=>{if(e.addressId!==t)return e;const n={...e.flags??{}};return s?n.trusted=$(!0,r):delete n.trusted,{...e,flags:n}},Je=(e,t,s,r)=>{const n=o=>o.map(l=>Ze(l,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)}}},et=({messageId:e})=>{const t=q(),{pushError:s}=Y(),{mutate:r,isPending:n,error:o,reset:l}=X({...ee(),onMutate:async d=>{const c=d.path.addressId,u=d.body.flags?.trusted?.value===!0,h=J({path:{messageId:e}});await t.cancelQueries({queryKey:h});const p=t.getQueriesData({queryKey:h}).filter(i=>i[1]!==void 0).map(([i,x])=>({queryKey:i,data:x}));return t.setQueriesData({queryKey:h},i=>i&&Je(i,c,u)),{describePrefix:h,previous:p}},onError:(d,c,f)=>{if(f)for(const u of f.previous)t.setQueryData(u.queryKey,u.data);s(Z("Couldn't trust sender","The change wasn't saved.",d))},onSettled:(d,c,f,u)=>{u&&t.invalidateQueries({queryKey:u.describePrefix})}});return{toggleTrusted:(d,c)=>{r({path:{addressId:d},body:{flags:{trusted:$(!c)}}})},isPending:n,error:o,reset:l}},tt=()=>{const[e,t]=g.useState(()=>typeof document<"u"&&document.documentElement.classList.contains("dark"));return g.useEffect(()=>{const s=document.documentElement,r=new MutationObserver(()=>{t(s.classList.contains("dark"))});return r.observe(s,{attributes:!0,attributeFilter:["class"]}),()=>r.disconnect()},[]),e},st=({blockedImageCount:e,canAlwaysTrust:t,isTrustPending:s,onLoadOnce:r,onAlwaysTrust:n})=>a.jsxs("div",{className:"mb-3 flex items-center justify-between rounded-md bg-surface-sunken/50 px-3 py-2 text-sm",children:[a.jsxs("span",{className:"text-fg-muted",children:[e," image",e>1?"s":""," blocked for privacy"]}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("button",{type:"button",onClick:r,className:"text-accent hover:underline",children:"Load once"}),t&&a.jsx("button",{type:"button",onClick:n,"aria-busy":s,className:"text-accent hover:underline aria-busy:opacity-50",children:s?"Trusting…":"Always trust"})]})]}),rt=(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}}},nt=e=>e instanceof oe?e.reason:"generic",at=e=>e instanceof Error?e.message:typeof e=="string"?e:"An unexpected error occurred while loading the message body.",ot=({error:e,onRetry:t})=>{const s=nt(e),r=at(e),{title:n,detail:o}=rt(s,r),[l,m]=g.useState(!1),{Account:d}=te();return l?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(se,{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(d,{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:()=>m(!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(re,{className:"size-4","aria-hidden":"true"})})]})]})},it=()=>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"})]}),L=()=>a.jsx("p",{className:"text-fg-muted text-sm italic",children:"This message has no body content."}),At=({bodyParts:e,html:t,text:s,isTrusted:r=!1,messageId:n,fromAddressId:o,category:l,className:m})=>{const[d,c]=g.useState(!1),f=r||d,u=tt(),{toggleTrusted:h,isPending:p}=et({messageId:n??""}),i=!!e&&e.length>0,{picked:x,data:y,isLoading:w,isError:D,error:z,refetch:P}=ie({messageId:n,bodyParts:e,enabled:i}),K=g.useMemo(()=>ue(e??[]),[e]),F=i&&y?.kind==="html"?y.body:t,H=i&&y?.kind==="text"?y.body:s;if(i){if(w)return a.jsx("div",{className:b("message-body",m),children:a.jsx(it,{})});if(D)return a.jsx("div",{className:b("message-body",m),children:a.jsx(ot,{error:z,onRetry:()=>P()})});if(!x)return a.jsx("div",{className:b("message-body",m),children:a.jsx(L,{})})}else if(!t&&!s)return a.jsx("div",{className:b("message-body",m),children:a.jsx(L,{})});const G=!!(o&&n),U=()=>{!o||p||(c(!0),h(o,!1))};return a.jsx(Ve,{className:m,html:F,text:H,isDark:u,category:l,allowImages:f,resolveCid:K,renderBlockedNotice:W=>a.jsx(st,{blockedImageCount:W,canAlwaysTrust:G,isTrustPending:p,onLoadOnce:()=>c(!0),onAlwaysTrust:U})})},ct=Object.values(R).map(e=>({value:e,label:_[e]})),lt={unclassified:"uncategorized"},dt=[{name:"from",label:"Sender",values:"contact"},{name:"subject",label:"Subject",values:"text"},{name:"category",label:"Category",values:"fixed",options:ct},{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"}],ut=new Map(dt.map(e=>[e.name,e])),Et=e=>ut.get(e.toLowerCase()),mt=/^\d{4}-\d{2}-\d{2}$/;function ft(e,t,s){if(!mt.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 ht(e){const t=e.toLowerCase(),s=lt[t];return s||Object.values(R).find(n=>n===t)}function gt(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 pt(e,t){const s=qe(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=ht(n);return o?{type:"category",raw:e,value:n,category:o}:void 0}case"is":return gt(e,n);case"has":return n.toLowerCase()==="attachment"?{type:"hasAttachment",raw:e}:void 0;case"before":case"after":return ft(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 Tt(e,t={}){const s=[],r=[];for(const n of O(e)){const o=pt(n.raw,t);o?s.push(o):r.push(n.raw)}return{freeText:r.join(" "),tokens:s}}function Ct(e,t){return O(e).filter(s=>s.raw!==t.raw).map(s=>s.raw).join(" ")}function Nt(e){switch(e.type){case"from":return`From: ${e.value}`;case"subject":return`Subject: ${e.value}`;case"category":return`Category: ${_[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 jt(){const{mailboxNameIndex:e,accountNameIndex:t}=ne(),s=ae();return{...ce(s)?{}:{mailboxesByName:e},accountsByName:t}}export{vt as M,kt as R,dt as S,Ve as a,et as b,At as c,Et as d,O as e,qe as f,St as g,Tt as p,Ct as r,Nt as s,jt as u};
|