@remit/web-client-dist 0.0.697 → 0.0.699
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-BQx5RRpb.js → BriefPane-CVojVy4N.js} +1 -1
- package/assets/{CalendarEventEditor-B3bVY-Oc.js → CalendarEventEditor-BcGWIsNu.js} +1 -1
- package/assets/{CalendarEventPopup-D6PNfUfu.js → CalendarEventPopup-MzsWR5GB.js} +1 -1
- package/assets/{CalendarLoadFailed-Cm6trTQZ.js → CalendarLoadFailed-Bq0_jt4H.js} +1 -1
- package/assets/{CalendarQuickCreate-B_n983kv.js → CalendarQuickCreate-m3dyD7gG.js} +1 -1
- package/assets/{CalendarSession-BosFoHg2.js → CalendarSession-D2sxMFYX.js} +1 -1
- package/assets/{CollectionPane-BzktgIp0.js → CollectionPane-BykvWdR8.js} +1 -1
- package/assets/{DesktopChrome-GxTHTvqD.js → DesktopChrome-D8EtAdwf.js} +1 -1
- package/assets/{DropdownMenu-C2J8u8zN.js → DropdownMenu-BuKAMdhw.js} +1 -1
- package/assets/{EmptyState-BJU14tbt.js → EmptyState-DEGumQTC.js} +1 -1
- package/assets/{ErrorState-BTHOmsYP.js → ErrorState-g7-Y1uhe.js} +1 -1
- package/assets/{FullCompose-DiZNltCL.js → FullCompose-CN22d_2q.js} +1 -1
- package/assets/{LabelApplyTrigger-P8IoLKME.js → LabelApplyTrigger-Ds7qPw1w.js} +1 -1
- package/assets/{MailShell-tKLYT5hn.js → MailShell-DemzOx8u.js} +1 -1
- package/assets/{MailViewChrome-CLgaFbe-.js → MailViewChrome-pi6cPv-J.js} +1 -1
- package/assets/MailboxPane-DGJQyeZU.js +135 -0
- package/assets/{MessageBody-jG4Dhul6.js → MessageBody-Lnqqwldl.js} +1 -1
- package/assets/MessageToolbar-HTPVoP6C.js +1 -0
- package/assets/{NavMenuButton-CLp6InRG.js → NavMenuButton-BWwWmGhg.js} +1 -1
- package/assets/{OnboardingWizard-BSlPpmI5.js → OnboardingWizard-C9TeAtWU.js} +1 -1
- package/assets/{OutboxPane-B6UfixBP.js → OutboxPane-dfNu0jGv.js} +1 -1
- package/assets/{ReportLink-BELrQR40.js → ReportLink-qkDHdkiE.js} +1 -1
- package/assets/_calendarObjectId-DbDEB7MM.js +1 -0
- package/assets/_labelId-DeoXHX88.js +1 -0
- package/assets/_mailboxId-BGYGT6QY.js +1 -0
- package/assets/_messageId-Bqhz_qdo.js +1 -0
- package/assets/_messageId-DNugF3h5.js +1 -0
- package/assets/_messageId-DXnZth67.js +1 -0
- package/assets/_messageId-DtLyjaix.js +1 -0
- package/assets/_outboxMessageId-CphlQb-y.js +1 -0
- package/assets/_recurrenceId-De3orc9t.js +1 -0
- package/assets/{_slotId-DQqfctAf.js → _slotId-Cl3N41sT.js} +1 -1
- package/assets/_threadId-BJhKtdZn.js +1 -0
- package/assets/_threadId-Bjt3wKzI.js +1 -0
- package/assets/_threadId-Cp8WdX2x.js +1 -0
- package/assets/_threadId-LaejKsjM.js +1 -0
- package/assets/_view._date-CjV2fY7h.js +1 -0
- package/assets/{account-service-status-DsLvRU-X.js → account-service-status-CHNkQEDe.js} +1 -1
- package/assets/{accounts-D0rPQMGH.js → accounts-BLUtQMSv.js} +1 -1
- package/assets/{advanced-q_hG98BB.js → advanced-Cbpc8AqG.js} +1 -1
- package/assets/{agenda-time-D0yU-H44.js → agenda-time-BwFncCBt.js} +1 -1
- package/assets/{app-chrome-BfyGOiSA.js → app-chrome-CGYf2rTW.js} +1 -1
- package/assets/{appearance-DM1k2Ta7.js → appearance-Pwj-DY3o.js} +1 -1
- package/assets/{avatar-Bq7beWCy.js → avatar-CVmRGlvx.js} +1 -1
- package/assets/{badge-BB80tGxy.js → badge-CDOouHHB.js} +1 -1
- package/assets/{bottom-sheet-DKF_Dkid.js → bottom-sheet-Bl-_mC2x.js} +1 -1
- package/assets/{brief-8diVJSZ9.js → brief-0MZHMWP6.js} +1 -1
- package/assets/brief-Cm-kx12Z.js +1 -0
- package/assets/{calendar-BqFIadRy.js → calendar-BDEdchBU.js} +1 -1
- package/assets/{calendar-Ds9kgvU8.js → calendar-BHWGBart.js} +1 -1
- package/assets/{calendar-event-popup-Cr_LW8IP.js → calendar-event-popup-O-JrsyRu.js} +1 -1
- package/assets/{calendar-event-sidebar-B_eR1h5J.js → calendar-event-sidebar-BUwhXGT2.js} +1 -1
- package/assets/{calendar-failure-note-C4gNXDQV.js → calendar-failure-note-_XD99AnH.js} +1 -1
- package/assets/{calendar-guests-Cay9Ub8h.js → calendar-guests-BVwUAczN.js} +1 -1
- package/assets/{calendar-suggestion-EosZrXZC.js → calendar-suggestion-DnD4hQ5U.js} +1 -1
- package/assets/calendars-DmhTUU22.js +1 -0
- package/assets/{card-CLJYKox8.js → card-D8MhhaRw.js} +1 -1
- package/assets/{checkbox-CYOm-zGr.js → checkbox-DQCA_mSq.js} +1 -1
- package/assets/{chevron-down-De4wQzka.js → chevron-down-DeNyJr8d.js} +1 -1
- package/assets/{chevron-left-CUHU8UT9.js → chevron-left-Co8HGTow.js} +1 -1
- package/assets/{circle-check-DlR8I4Hf.js → circle-check-BoVmBAEX.js} +1 -1
- package/assets/{circle-check-big-CMsxQSjY.js → circle-check-big-DSc97Qaj.js} +1 -1
- package/assets/{circle-question-mark-DhNa_A16.js → circle-question-mark-DuTpeMvV.js} +1 -1
- package/assets/{classification-BgDJ1gwK.js → classification-9tqOMgRd.js} +1 -1
- package/assets/{clock-Dds4zv6u.js → clock--ouhjt6L.js} +1 -1
- package/assets/{cloud-off-BYulqayx.js → cloud-off-DEwqlx6S.js} +1 -1
- package/assets/compose._-_outboxMessageId_-BAzIb9up.js +1 -0
- package/assets/compose._-_outboxMessageId_-C8ETLKa8.js +1 -0
- package/assets/compose._-_outboxMessageId_-CAFZwe5_.js +1 -0
- package/assets/compose._-_outboxMessageId_-CS88venz.js +1 -0
- package/assets/compose._-_outboxMessageId_-CVS1GWS6.js +1 -0
- package/assets/{config-import-VTZQj3gU.js → config-import-B-pJhKeZ.js} +1 -1
- package/assets/{confirm-dialog-XvccFJdE.js → confirm-dialog-BdT5xj08.js} +1 -1
- package/assets/{copy-BokIobZ4.js → copy-CCCumQLf.js} +1 -1
- package/assets/{credential-steps-O1OzlOow.js → credential-steps-BIgbwjRe.js} +1 -1
- package/assets/{download-DEuAIIIQ.js → download-BrsKwaQk.js} +1 -1
- package/assets/{draft-BEiHkDpm.js → draft-B-aWKHzd.js} +1 -1
- package/assets/edit-Cn1GEm6M.js +1 -0
- package/assets/edit-sXk685Tf.js +1 -0
- package/assets/{external-link-L7NXOTeQ.js → external-link-D__EDlgs.js} +1 -1
- package/assets/{file-braces-BN8-S---.js → file-braces-BtzbF80p.js} +1 -1
- package/assets/filters-B0cQUlmN.js +1 -0
- package/assets/flagged-BH8DBC_m.js +1 -0
- package/assets/{flagged-B-j-3yRr.js → flagged-DHdIwzxj.js} +1 -1
- package/assets/folder-failure-BphZCUyZ.js +1 -0
- package/assets/{folder-input-B0q8wLhf.js → folder-input-C_5R00h6.js} +1 -1
- package/assets/folders-DlGCVINx.js +1 -0
- package/assets/{help-copy-DUjzIPXf.js → help-copy-Cy9gka_E.js} +1 -1
- package/assets/{import-DLM5VFnJ.js → import-D8rex9A_.js} +1 -1
- package/assets/index-1RsOqxw1.js +1 -0
- package/assets/index-BON2Uz34.js +1 -0
- package/assets/index-Bc1xPJmS.js +1 -0
- package/assets/index-Bqhz_qdo.js +1 -0
- package/assets/index-C2US5ZnK.js +222 -0
- package/assets/index-CPXeIqob.js +1 -0
- package/assets/index-D4tg2bgX.js +1 -0
- package/assets/index-DEDbYXlC.js +1 -0
- package/assets/index-DNugF3h5.js +1 -0
- package/assets/index-Da8RbG-l.js +1 -0
- package/assets/index-Dq3u3q5n.js +1 -0
- package/assets/index-G-mQoWoq.js +1 -0
- package/assets/index-SJfI-AF0.js +1 -0
- package/assets/{index-Caon2n2j.js → index-v9nM8Dsp.js} +4 -4
- package/assets/{kbd-jzPSd-a2.js → kbd-C052hWKm.js} +1 -1
- package/assets/{label-chip-DtBVyALF.js → label-chip-D_oZixyY.js} +1 -1
- package/assets/labels--8vbvW8D.js +1 -0
- package/assets/list-pages-BCUbyyea.js +1 -0
- package/assets/{mail-BzFJWQZy.js → mail-Cqr91KmH.js} +1 -1
- package/assets/mail-DTcPvSJ6.js +1 -0
- package/assets/{menu-Bh94jr77.js → menu-CEGeda9s.js} +1 -1
- package/assets/{nav-link-ed0mFCCx.js → nav-link-Df_MDzvJ.js} +1 -1
- package/assets/new-B_AuEYbG.js +1 -0
- package/assets/onboarding-B2cpYesO.js +1 -0
- package/assets/{onboarding-completion-qKzJSmsI.js → onboarding-completion-2pWLyByk.js} +1 -1
- package/assets/outbox-BOxaEnp0.js +1 -0
- package/assets/{pencil-BDbmS56C.js → pencil-C1yBZXUb.js} +1 -1
- package/assets/{people-eWwwIt4_.js → people-BTPHUD8U.js} +1 -1
- package/assets/{plus-D5-2sA5v.js → plus-DY_LOTJC.js} +1 -1
- package/assets/{popover-menu-DhcuKv1N.js → popover-menu-D4kT-xqh.js} +1 -1
- package/assets/{refresh-cw-Cu9_I3cT.js → refresh-cw-CY0SJjI-.js} +1 -1
- package/assets/{reply-CXuSMyqp.js → reply-CijQsg4o.js} +1 -1
- package/assets/{rich-text-Ds4rQc2o.js → rich-text-CY6eh-tS.js} +1 -1
- package/assets/{rich-text-spellcheck-worker-provider-ChKzrvjg.js → rich-text-spellcheck-worker-provider-BoNiweeq.js} +1 -1
- package/assets/{rotate-ccw-hQhPZwrx.js → rotate-ccw-CfAs8Xij.js} +1 -1
- package/assets/{roving-focus-DZX7IpN4.js → roving-focus-C0jnB7ie.js} +1 -1
- package/assets/{row-actions-BDfQKXdD.js → row-actions-gLlnd0fC.js} +1 -1
- package/assets/{search-mirror-B2xnwy77.js → search-mirror-B_HO5zGq.js} +1 -1
- package/assets/{search-scope-B-3MTDpD.js → search-scope-7jHRUZbg.js} +1 -1
- package/assets/{search-token-index-BYKMNlJD.js → search-token-index-BymL-AGz.js} +1 -1
- package/assets/{sections-DpRVKuXF.js → sections-FtpeSpRq.js} +1 -1
- package/assets/{segmented-control-BwvsufVp.js → segmented-control-CMV1-H2S.js} +1 -1
- package/assets/{select-TYdrgtW5.js → select-DhVwx5IO.js} +1 -1
- package/assets/{senders-vh4OQfD0.js → senders-ZFBTlEw_.js} +1 -1
- package/assets/settings-aaApx7r_.js +1 -0
- package/assets/{settings-screen-DTYVWAkg.js → settings-screen-zihVEeS9.js} +1 -1
- package/assets/{shield-check-C-tOrPEx.js → shield-check-CvFo5QUy.js} +1 -1
- package/assets/spam-CN0HeRYz.js +1 -0
- package/assets/{suggest-list-BCqr1j26.js → suggest-list-DJUWGfG3.js} +1 -1
- package/assets/{suggested-vips--pG2iuOT.js → suggested-vips-DNc6wPf9.js} +1 -1
- package/assets/suggestion._suggestionId-DCu4Y3bg.js +1 -0
- package/assets/{switch-CyAtRlCz.js → switch-Bza9700F.js} +1 -1
- package/assets/task._calendarTaskId-B9lXR7O6.js +1 -0
- package/assets/{undo-2-D1IMLq7c.js → undo-2-BHa76eIs.js} +1 -1
- package/assets/{useCalendarData-DFG3pzeG.js → useCalendarData-AQi5DlI1.js} +1 -1
- package/assets/{useCalendarScheduling-B_INtO-h.js → useCalendarScheduling-BzXa0l-K.js} +1 -1
- package/assets/useCalendarSuggestions-CJGnqdiK.js +1 -0
- package/assets/{useCalendarTasks-b_UNFPQH.js → useCalendarTasks-BBv_7Q0J.js} +1 -1
- package/assets/{useClassificationSettings-DBRecrmp.js → useClassificationSettings-Dh7qfWbF.js} +1 -1
- package/assets/{useCollectionThreads-DgofDKen.js → useCollectionThreads-B1vimpsO.js} +1 -1
- package/assets/{useDebouncedValue-CFZ4EPXW.js → useDebouncedValue-C3FljUyl.js} +1 -1
- package/assets/{useFilters-DHWZEIQe.js → useFilters-BoddpA09.js} +1 -1
- package/assets/{useInfiniteQuery-B-vOuANs.js → useInfiniteQuery-Dd0GYAxg.js} +1 -1
- package/assets/{useJunkMailboxIds-CW7aI25D.js → useJunkMailboxIds-D3M8TbeX.js} +1 -1
- package/assets/useLabels-DnF0cYWq.js +1 -0
- package/assets/{useLayoutTier-BNUKvwJD.js → useLayoutTier-lXeQo_2w.js} +1 -1
- package/assets/{useMediaQuery-Hy81MQ2M.js → useMediaQuery-BaUDTtu8.js} +1 -1
- package/assets/{useMessageBodyContent-CpTD2HGg.js → useMessageBodyContent-DwHmQdO9.js} +1 -1
- package/assets/{useQueries-DPH-PeHV.js → useQueries-B-1XtDe8.js} +1 -1
- package/assets/{useRefreshControl-DdbTrGxq.js → useRefreshControl-CJGMdQve.js} +1 -1
- package/assets/{useResultFolderIndex-BVyfzXH5.js → useResultFolderIndex-D_NiyNtK.js} +1 -1
- package/assets/{useSignature-W9HBbZ_n.js → useSignature-cMh39FpD.js} +1 -1
- package/assets/{warnings-B2sNE31D.js → warnings-DzSQHNtz.js} +1 -1
- package/index.html +2 -2
- package/package.json +1 -1
- package/assets/MailboxPane-BxNCkl6s.js +0 -135
- package/assets/MessageToolbar-DeDUhCvg.js +0 -1
- package/assets/_calendarObjectId-BiaBDCEt.js +0 -1
- package/assets/_labelId-DLeWLaow.js +0 -1
- package/assets/_mailboxId-DWvQ-9gi.js +0 -1
- package/assets/_messageId-BB9xOwfs.js +0 -1
- package/assets/_messageId-C2YSZxRF.js +0 -1
- package/assets/_messageId-CPvSvBZB.js +0 -1
- package/assets/_messageId-DbVH08AL.js +0 -1
- package/assets/_outboxMessageId-BFgW_k_u.js +0 -1
- package/assets/_recurrenceId-96pqeQMh.js +0 -1
- package/assets/_threadId-Bm7b75jN.js +0 -1
- package/assets/_threadId-CCwEReI2.js +0 -1
- package/assets/_threadId-Db39B53v.js +0 -1
- package/assets/_threadId-Dht02PUZ.js +0 -1
- package/assets/_view._date-BQeaBjoE.js +0 -1
- package/assets/brief-CFBkxoDK.js +0 -1
- package/assets/calendars-52NaEZbX.js +0 -1
- package/assets/compose._-_outboxMessageId_-BY1Sf-7o.js +0 -1
- package/assets/compose._-_outboxMessageId_-ByGI1c-o.js +0 -1
- package/assets/compose._-_outboxMessageId_-CvOAO1iL.js +0 -1
- package/assets/compose._-_outboxMessageId_-EZpX9L3H.js +0 -1
- package/assets/compose._-_outboxMessageId_-urlj3DLH.js +0 -1
- package/assets/edit-B9dhadKH.js +0 -1
- package/assets/edit-vn6fIBd6.js +0 -1
- package/assets/filters-VSaDpnX3.js +0 -1
- package/assets/flagged-BZJepVc-.js +0 -1
- package/assets/folder-failure-CqkVSsrb.js +0 -1
- package/assets/folders-CTNX9Hcm.js +0 -1
- package/assets/index-B--m5QrT.js +0 -1
- package/assets/index-BuawSiTp.js +0 -1
- package/assets/index-C2YSZxRF.js +0 -1
- package/assets/index-CO1X8-aP.js +0 -1
- package/assets/index-CPvSvBZB.js +0 -1
- package/assets/index-ChWo5_90.js +0 -1
- package/assets/index-DGb7Ls8y.js +0 -1
- package/assets/index-DLRo9M2D.js +0 -1
- package/assets/index-DemsYVll.js +0 -1
- package/assets/index-Dylwxpr-.js +0 -1
- package/assets/index-YwusJB4d.js +0 -1
- package/assets/index-Zfii_-4V.js +0 -1
- package/assets/index-fsuIswbe.js +0 -213
- package/assets/labels-CUXsONgB.js +0 -1
- package/assets/mail-BodKXw3C.js +0 -1
- package/assets/new-DlRrHbU8.js +0 -1
- package/assets/onboarding-8O2rW7qq.js +0 -1
- package/assets/outbox-nrXvnMTk.js +0 -1
- package/assets/settings-MlHARJWl.js +0 -1
- package/assets/spam-CecFwFHS.js +0 -1
- package/assets/suggestion._suggestionId-DiMWWP0r.js +0 -1
- package/assets/task._calendarTaskId-D-wpEifQ.js +0 -1
- package/assets/useCalendarSuggestions-DXbA0boT.js +0 -1
- package/assets/useLabels-k1VKuQrr.js +0 -1
package/assets/brief-CFBkxoDK.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r,O as i}from"./index-fsuIswbe.js";import{a as m}from"./MailShell-tKLYT5hn.js";import{B as o}from"./BriefPane-BQx5RRpb.js";import"./nav-link-ed0mFCCx.js";import{a as p}from"./search-token-index-BYKMNlJD.js";import"./reply-CXuSMyqp.js";import{u as e}from"./search-mirror-B2xnwy77.js";import"./useMessageBodyContent-CpTD2HGg.js";import"./FullCompose-DiZNltCL.js";import"./index-Caon2n2j.js";import"./useSignature-W9HBbZ_n.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CFZ4EPXW.js";import"./suggest-list-BCqr1j26.js";import"./sections-DpRVKuXF.js";import"./useMediaQuery-Hy81MQ2M.js";import"./chevron-down-De4wQzka.js";import"./ErrorState-BTHOmsYP.js";import"./confirm-dialog-XvccFJdE.js";import"./search-scope-B-3MTDpD.js";import"./app-chrome-BfyGOiSA.js";import"./MessageToolbar-DeDUhCvg.js";import"./MessageBody-jG4Dhul6.js";import"./kbd-jzPSd-a2.js";import"./roving-focus-DZX7IpN4.js";import"./useQueries-DPH-PeHV.js";import"./useJunkMailboxIds-CW7aI25D.js";import"./badge-BB80tGxy.js";import"./undo-2-D1IMLq7c.js";import"./DropdownMenu-C2J8u8zN.js";import"./refresh-cw-Cu9_I3cT.js";import"./popover-menu-DhcuKv1N.js";import"./mail-BzFJWQZy.js";import"./download-DEuAIIIQ.js";import"./avatar-Bq7beWCy.js";import"./EmptyState-BJU14tbt.js";import"./circle-question-mark-DhNa_A16.js";import"./useFilters-DHWZEIQe.js";import"./select-TYdrgtW5.js";import"./plus-D5-2sA5v.js";import"./calendar-suggestion-EosZrXZC.js";import"./useCalendarSuggestions-DXbA0boT.js";import"./agenda-time-D0yU-H44.js";import"./calendar-format-BwCpz-JZ.js";import"./calendar-Ds9kgvU8.js";import"./calendar-failure-note-C4gNXDQV.js";import"./checkbox-CYOm-zGr.js";import"./clock-Dds4zv6u.js";import"./segmented-control-BwvsufVp.js";import"./useLayoutTier-BNUKvwJD.js";import"./menu-Bh94jr77.js";import"./folder-input-B0q8wLhf.js";import"./label-chip-DtBVyALF.js";import"./useLabels-k1VKuQrr.js";import"./cloud-off-BYulqayx.js";import"./LabelApplyTrigger-P8IoLKME.js";import"./useRefreshControl-DdbTrGxq.js";import"./circle-check-big-CMsxQSjY.js";import"./wizard-selection-zWa1qc6-.js";function fr(){const t=p();return e({to:"/mail/brief"}),r.jsx(o,{thread:t,children:r.jsx(m,{phone:r.jsx(o.Phone,{}),list:r.jsx(o.List,{}),reading:r.jsx(i,{}),intelligence:r.jsx(o.Intelligence,{}),hasThread:!!t})})}export{fr as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as N,j as e,r as i,ar as C,d as j,B as v,T as A,e as P,aW as K,a as W,aX as X,f as S,aB as E,aY as Y,aZ as J,a_ as q,s as O,a$ as F,at as ee,b0 as se,b1 as ae,b2 as te,u as ne,af as re}from"./index-fsuIswbe.js";import{U as k,c as ie,u as $,a as de,b as oe}from"./useCalendarSuggestions-DXbA0boT.js";import{S as le}from"./select-TYdrgtW5.js";import{C as T,a as z,b as D,c as M}from"./card-CLJYKox8.js";import{P as ce}from"./plus-D5-2sA5v.js";import{u as me}from"./useCalendarScheduling-B_INtO-h.js";import{C as ue}from"./calendar-guests-Cay9Ub8h.js";import{f as w,E as he}from"./ErrorState-BTHOmsYP.js";import{C as _}from"./confirm-dialog-XvccFJdE.js";import{B as U}from"./badge-BB80tGxy.js";import{R as pe}from"./refresh-cw-Cu9_I3cT.js";import{C as xe}from"./copy-BokIobZ4.js";import{a as fe}from"./sections-DpRVKuXF.js";import{S as be}from"./settings-screen-DTYVWAkg.js";import"./useQueries-DPH-PeHV.js";import"./chevron-down-De4wQzka.js";import"./useDebouncedValue-CFZ4EPXW.js";import"./calendar-event-popup-Cr_LW8IP.js";import"./pencil-BDbmS56C.js";import"./circle-question-mark-DhNa_A16.js";import"./avatar-Bq7beWCy.js";import"./chevron-left-CUHU8UT9.js";import"./menu-Bh94jr77.js";const L={name:"calendar-plus",size:24,node:[["path",{d:"M16 18h6",key:"987eiv"}],["path",{d:"M16 2v3",key:"otl347"}],["path",{d:"M19 15v6",key:"10aioa"}],["path",{d:"M21 11.5V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h8.3",key:"jgwkxf"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M8 2v3",key:"1ioesn"}]]};L.node;const ge=N(L);const H={name:"link-2",size:24,node:[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]};H.node;const ve=N(H);const B={name:"pause",size:24,node:[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]};B.node;const je=N(B);const G={name:"play",size:24,node:[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]};G.node;const ye=N(G);const Z={name:"save",size:24,node:[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]};Z.node;const Ce=N(Z),Ne=s=>({title:`Delete ${s}?`,description:`This removes ${s} and every event in it, and any subscription address stops working. It cannot be undone.`}),Se=s=>s.normalize("NFKD").replace(/[̀-ͯ]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,64),I=Intl.supportedValuesOf("timeZone");function Q({id:s,value:n,disabled:t,onChange:a}){const r=n===k||I.includes(n)?I:[n,...I];return e.jsxs(le,{id:s,value:n,disabled:t,onChange:d=>a(d.target.value),children:[e.jsx("option",{value:k,children:"None (read as UTC)"}),r.map(d=>e.jsx("option",{value:d,children:d},d))]})}function ke({isBusy:s,problem:n,onCreate:t}){const[a,r]=i.useState(""),[d,l]=i.useState(void 0),[h,c]=i.useState(k),o=i.useId(),m=i.useId(),f=i.useId(),x=i.useId(),b=d??Se(a),u=a.trim()!==""&&b.trim()!=="";return e.jsxs(T,{className:"max-w-xl",role:"region","aria-labelledby":o,children:[e.jsx(z,{children:e.jsx(D,{id:o,children:"New calendar"})}),e.jsx(M,{children:e.jsxs("form",{className:"space-y-3",onSubmit:p=>{p.preventDefault(),u&&t({displayName:a.trim(),urlSegment:b.trim(),timezone:h}).then(g=>{g&&(r(""),l(void 0),c(k))})},children:[e.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{htmlFor:m,className:"text-xs font-medium text-fg-muted",children:"Name"}),e.jsx(C,{id:m,value:a,maxLength:140,disabled:s,onChange:p=>r(p.target.value)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{htmlFor:f,className:"text-xs font-medium text-fg-muted",children:"Address"}),e.jsx(C,{id:f,value:b,maxLength:64,disabled:s,onChange:p=>l(p.target.value)})]}),e.jsxs("div",{className:"space-y-1 sm:col-span-2",children:[e.jsx("label",{htmlFor:x,className:"text-xs font-medium text-fg-muted",children:"Time zone"}),e.jsx(Q,{id:x,value:h,disabled:s,onChange:c})]})]}),e.jsx("p",{className:"text-xs text-fg-muted",children:"The address names the calendar for CalDAV clients and cannot be changed later. The name and zone can."}),n!==""&&e.jsxs(j,{tone:"danger",variant:"soft",children:[e.jsx("p",{className:"font-medium",children:"The calendar was not added."}),e.jsx("p",{className:"mt-0.5 break-words",children:n})]}),e.jsx(v,{type:"submit",variant:"primary",size:"sm",disabled:s||!u,icon:e.jsx(ce,{className:"size-3.5"}),children:s?"Adding…":"Add calendar"})]})})]})}function we(){const{senders:s,defaultSenderId:n,setDefaultSender:t}=me(),[a,r]=i.useState("");return s.length===0?null:e.jsxs("section",{"aria-labelledby":"calendar-default-sender",className:"space-y-2 rounded-sm border border-line bg-surface p-4",children:[e.jsx("h2",{id:"calendar-default-sender",className:"text-sm font-semibold",children:"Invitations: default sender"}),e.jsx("p",{className:"text-sm text-fg-muted",children:"Invitations, updates and cancellations go out from this account unless you pick another on the event."}),e.jsx(ue,{label:"Default sender",senders:s,value:n??"",onChange:d=>{r(""),t(d).catch(l=>r(w(l)))}}),a!==""&&e.jsxs("p",{role:"alert",className:"text-sm text-danger",children:["Couldn't save the default sender: ",a," ",e.jsx("a",{href:ie(a),target:"_blank",rel:"noreferrer",className:"font-medium text-accent hover:underline",children:"Report an issue"})]})]})}function Ie({calendarName:s,timezone:n,isBusy:t,problem:a,onSave:r,onDelete:d}){const[l,h]=i.useState(s),[c,o]=i.useState(n),[m,f]=i.useState(!1),x=i.useId(),b=i.useId(),u=l.trim(),p=u!==s||c!==n,g=Ne(s);return e.jsxs(e.Fragment,{children:[e.jsxs("form",{className:"space-y-3",onSubmit:y=>{y.preventDefault(),!(!p||u==="")&&r({displayName:u,timezone:c})},children:[e.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{htmlFor:x,className:"text-xs font-medium text-fg-muted",children:"Name"}),e.jsx(C,{id:x,value:l,maxLength:140,disabled:t,onChange:y=>h(y.target.value)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{htmlFor:b,className:"text-xs font-medium text-fg-muted",children:"Time zone"}),e.jsx(Q,{id:b,value:c,disabled:t,onChange:o})]})]}),a!==""&&e.jsxs(j,{tone:"danger",variant:"soft",children:[e.jsxs("p",{className:"font-medium",children:[s," was not changed."]}),e.jsx("p",{className:"mt-0.5 break-words",children:a})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx(v,{type:"submit",variant:"secondary",size:"sm",disabled:t||!p||u==="",icon:e.jsx(Ce,{className:"size-3.5"}),children:"Save changes"}),e.jsx(v,{type:"button",variant:"danger",size:"sm",disabled:t,icon:e.jsx(A,{className:"size-3.5"}),onClick:()=>f(!0),children:"Delete calendar"})]})]}),e.jsx(_,{isOpen:m,title:g.title,description:g.description,confirmLabel:"Delete calendar",destructive:!0,onConfirm:()=>{f(!1),d()},onCancel:()=>f(!1)})]})}const Fe="/feeds/calendar/",Te=".ics",ze=(s,n)=>`webcal://${s}${Fe}${n}${Te}`;function De(s){const n=P(),[t,a]=i.useState(""),r=K({path:{calendarId:s}}),d=W({...X({path:{calendarId:s}}),meta:O(404,403),retry:!1}),l=()=>{n.invalidateQueries({queryKey:r})},h=i.useRef(()=>{}),c=S({...Y(),meta:E,onMutate:()=>{h.current()},onSuccess:()=>{a(""),l()}}),o=S({...J(),meta:E,gcTime:0,onMutate:()=>{c.reset()},onSuccess:V=>{a(ze(window.location.host,V.feedToken)),l()}});h.current=o.reset;const{mutate:m,reset:f}=o,{mutate:x}=c,b=i.useCallback(()=>{m({path:{calendarId:s}})},[s,m]),u=i.useCallback(()=>{x({path:{calendarId:s}})},[s,x]),p=i.useCallback(()=>{a(""),f()},[f]),{refetch:g}=d,y=i.useCallback(()=>{g()},[g]);return{state:Me(d),mintedUrl:t,isBusy:o.isPending||c.isPending,actionError:o.error??c.error,mint:b,revoke:u,dismissMinted:p,retry:y}}function Me(s){return s.error?q(s.error)?{status:"absent"}:{status:"unreadable",error:s.error}:s.isPending?{status:"loading"}:s.data?{status:"active",createdAt:s.data.createdAt,rotatedAt:s.data.rotatedAt}:{status:"absent"}}const Ee=s=>({title:`Replace the address for ${s}?`,description:"Every client already subscribed to the current address stops updating and has to be pointed at the new one. The new address is shown once."}),Re=s=>({title:`Stop sharing ${s}?`,description:"The address stops working immediately and every client subscribed to it stops updating. Sharing again mints a different address."});function Ae({calendarName:s,url:n,onDismiss:t}){const[a,r]=i.useState(!1),[d,l]=i.useState(!1),h=i.useRef(0);i.useEffect(()=>()=>window.clearTimeout(h.current),[]);const c=()=>{navigator.clipboard.writeText(n).then(()=>{l(!1),r(!0),h.current=window.setTimeout(()=>r(!1),2e3)}).catch(()=>l(!0))};return e.jsxs("div",{className:"mt-3 space-y-2 rounded-sm border border-accent-2/40 bg-accent-2/10 px-3 py-2.5",children:[e.jsx("p",{className:"text-sm font-medium text-fg",children:"Subscribe with this address. It is shown once and cannot be read back."}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center",children:[e.jsx("input",{readOnly:!0,value:n,"aria-label":`Subscription address for ${s}`,onFocus:o=>o.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"}),e.jsx(v,{variant:"primary",size:"sm",icon:a?e.jsx(ee,{className:"size-3.5"}):e.jsx(xe,{className:"size-3.5"}),onClick:c,children:a?"Copied":"Copy address"})]}),d&&e.jsx(j,{tone:"warning",variant:"soft",children:"The address could not be copied to the clipboard. Select it above and copy it by hand before leaving this page."}),e.jsx("p",{className:"text-xs text-fg-muted",children:"Anyone holding this address can read every event in this calendar, without signing in. Rotate it if it reaches the wrong person."}),e.jsx(v,{variant:"ghost",size:"sm",onClick:t,children:"I've saved it"})]})}function Pe({createdAt:s,rotatedAt:n,isBusy:t,onRotate:a,onRevoke:r}){return e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(U,{tone:"positive",children:"shared"}),e.jsxs("span",{className:"text-xs text-fg-muted",children:["Address created ",F(s,"medium"),n>0?`, last replaced ${F(n,"medium")}`:""]})]}),e.jsx("p",{className:"text-sm text-fg-muted",children:"The address itself is not stored in readable form, so it cannot be shown again. Replace it if you no longer know where it went."}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx(v,{variant:"secondary",size:"sm",disabled:t,icon:e.jsx(pe,{className:"size-3.5"}),onClick:a,children:"Replace address"}),e.jsx(v,{variant:"danger",size:"sm",disabled:t,icon:e.jsx(A,{className:"size-3.5"}),onClick:r,children:"Stop sharing"})]})]})}function Oe({calendarName:s,details:n,state:t,mintedUrl:a,isBusy:r,actionError:d,onMint:l,onRevoke:h,onDismissMinted:c,onRetry:o}){const[m,f]=i.useState("none"),x=i.useId(),b=()=>{const p=m;f("none"),p==="rotate"&&l(),p==="revoke"&&h()},u=m==="revoke"?Re(s):Ee(s);return e.jsxs(T,{className:"max-w-xl",role:"region","aria-labelledby":x,children:[e.jsx(z,{children:e.jsx(D,{id:x,children:s})}),e.jsxs(M,{children:[n&&e.jsx("div",{className:"mb-4 border-b border-line pb-4",children:n}),t.status==="loading"&&a===""&&e.jsx("div",{className:"h-12 animate-pulse rounded-sm bg-surface-sunken","aria-busy":"true","aria-label":`Loading the subscription address for ${s}`}),t.status==="unreadable"&&a===""&&e.jsx(he,{variant:"inline",title:`Couldn't read whether ${s} is shared`,error:t.error,onRetry:o}),t.status==="absent"&&a===""&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-sm text-fg-muted",children:"Give this calendar a secret address and Apple Calendar, Google Calendar, Outlook and Thunderbird can subscribe to it read-only. Nobody signs in — the address is the credential, so treat it like a password."}),e.jsx(v,{variant:"primary",size:"sm",disabled:r,icon:e.jsx(ve,{className:"size-3.5"}),onClick:l,children:r?"Creating…":"Create subscription address"})]}),t.status==="active"&&e.jsx(Pe,{createdAt:t.createdAt,rotatedAt:t.rotatedAt,isBusy:r,onRotate:()=>f("rotate"),onRevoke:()=>f("revoke")}),d!=null&&e.jsxs(j,{tone:"danger",variant:"soft",className:"mt-3",children:[e.jsxs("p",{className:"font-medium",children:["The subscription address for ",s," was not changed."]}),e.jsx("p",{className:"mt-0.5 break-words",children:w(d)})]}),a!==""&&e.jsx(Ae,{calendarName:s,url:a,onDismiss:c})]}),e.jsx(_,{isOpen:m!=="none",title:u.title,description:u.description,confirmLabel:m==="revoke"?"Stop sharing":"Replace address",destructive:!0,onConfirm:b,onCancel:()=>f("none")})]})}function $e({calendarId:s,calendarName:n,details:t}){const a=De(s);return e.jsx(Oe,{calendarName:n,details:t,state:a.state,mintedUrl:a.mintedUrl,isBusy:a.isBusy,actionError:a.actionError,onMint:a.mint,onRevoke:a.revoke,onDismissMinted:a.dismissMinted,onRetry:a.retry})}function _e({calendarId:s,calendarName:n,timezone:t,subscription:a}){const{updateCalendar:r,deleteCalendar:d,isWriting:l}=$(),[h,c]=i.useState(""),o=m=>c(m.kind==="refused"?m.message:"");return e.jsx($e,{calendarId:s,calendarName:n,details:e.jsxs(e.Fragment,{children:[a,e.jsx(Ie,{calendarName:n,timezone:t,isBusy:l,problem:h,onSave:m=>{c(""),r(s,m).then(o)},onDelete:()=>{c(""),d(s).then(o)}},`${n}\0${t}`)]})})}const Ue="Subscribe to a calendar";function Le({isBusy:s,error:n,onSubscribe:t}){const a=i.useId(),r=i.useId(),d=i.useId(),[l,h]=i.useState(""),[c,o]=i.useState(""),m=l.trim()!==""&&c.trim()!=="",f=x=>{x.preventDefault(),m&&t({displayName:l,url:c},()=>{h(""),o("")})};return e.jsxs(T,{className:"max-w-xl",role:"region","aria-labelledby":a,children:[e.jsx(z,{children:e.jsx(D,{id:a,children:Ue})}),e.jsx(M,{children:e.jsxs("form",{className:"space-y-3",onSubmit:f,children:[e.jsx("p",{className:"text-sm text-fg-muted",children:"Paste the secret iCal address from Google Calendar, a published Outlook calendar or any other feed. It shows here read-only and refreshes on its own."}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{htmlFor:r,className:"text-sm font-medium text-fg",children:"Calendar name"}),e.jsx(C,{id:r,value:l,onChange:x=>h(x.target.value),placeholder:"Team rota",autoComplete:"off"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{htmlFor:d,className:"text-sm font-medium text-fg",children:"Calendar address"}),e.jsx(C,{id:d,value:c,onChange:x=>o(x.target.value),placeholder:"https://calendar.google.com/calendar/ical/…/basic.ics",autoComplete:"off",spellCheck:!1,inputMode:"url"}),e.jsx("p",{className:"text-xs text-fg-muted",children:"For Google Calendar the address is the password to the calendar. Reader never shows it in full again."})]}),e.jsx(v,{type:"submit",variant:"primary",size:"sm",disabled:!m||s,icon:e.jsx(ge,{className:"size-3.5"}),children:s?"Subscribing…":"Subscribe"}),n!=null&&e.jsxs(j,{tone:"danger",variant:"soft",children:[e.jsx("p",{className:"font-medium",children:"The calendar was not added."}),e.jsx("p",{className:"mt-0.5 break-words",children:w(n)})]})]})})]})}const He=s=>URL.canParse(s)?new URL(s).host:"an iCalendar feed";function Be({calendarName:s,subscriptionUrl:n,enabled:t,fetchedAt:a,error:r,isBusy:d,actionError:l,onSetEnabled:h}){return e.jsxs("div",{className:"mb-4 space-y-2",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(U,{tone:t?"positive":"neutral",children:t?"subscribed":"paused"}),e.jsxs("span",{className:"text-xs text-fg-muted",children:["Read-only, from ",He(n),a>0?`. Last updated ${F(a,"medium")}`:""]})]}),r!==""&&e.jsxs(j,{tone:"warning",variant:"soft",children:[e.jsxs("p",{className:"font-medium",children:[s," was not refreshed."]}),e.jsx("p",{className:"mt-0.5 break-words",children:r})]}),e.jsx("p",{className:"text-sm text-fg-muted",children:t?"Events are read from the feed on a schedule and cannot be edited here.":"Updates are paused. The events already here stay until you resume or remove the calendar."}),e.jsx(v,{variant:"secondary",size:"sm",disabled:d,icon:t?e.jsx(je,{className:"size-3.5"}):e.jsx(ye,{className:"size-3.5"}),onClick:()=>h(!t),children:t?"Pause updates":"Resume updates"}),l!=null&&e.jsxs(j,{tone:"danger",variant:"soft",children:[e.jsxs("p",{className:"font-medium",children:["Updates for ",s," were not changed."]}),e.jsx("p",{className:"mt-0.5 break-words",children:w(l)})]})]})}const R=O(400,404),Ge=()=>`subscribed-${crypto.randomUUID().slice(0,8)}`;function Ze(){const s=P(),n=de(),t=()=>{s.invalidateQueries({queryKey:te()}),n()},a=S({...se(),meta:R,onSuccess:t}),r=S({...ae(),meta:R,onSuccess:t}),{mutate:d}=a,l=i.useCallback((o,m)=>{d({body:{urlSegment:Ge(),displayName:o.displayName.trim(),subscriptionUrl:o.url.trim()}},{onSuccess:m})},[d]),{mutate:h}=r,c=i.useCallback((o,m)=>{h({path:{calendarId:o},body:{subscriptionEnabled:m}})},[h]);return{subscribe:l,isSubscribing:a.isPending,subscribeError:a.error,setEnabled:c,togglingCalendarId:r.isPending?r.variables?.path.calendarId??"":"",toggleFailure:{calendarId:r.variables?.path.calendarId??"",error:r.error}}}const Qe=e.jsxs("div",{className:"space-y-3",children:[e.jsx("p",{children:"Each calendar has a name, a time zone its floating times are read in, and an address CalDAV clients reach it by. The address is fixed when the calendar is added; the name and zone can change. Deleting a calendar deletes every event in it. The default calendar is where accepted invitations land, so it cannot be deleted."}),e.jsx("p",{children:"A subscription address lets Apple Calendar, Google Calendar, Outlook and Thunderbird show a calendar from here, read-only and kept up to date."}),e.jsx("p",{children:"Those clients never sign in, so the address itself is the credential. Anyone who has it can read the calendar; nobody who has it can change anything."}),e.jsx("p",{children:"Only a hash of the address is stored, so it is shown once and cannot be looked up later. Replacing it breaks every subscription built on the old one, which is how a shared address is taken back."}),e.jsx("p",{children:"Subscribing works the other way round: paste another calendar's iCal address and its events show here, read-only, refreshed on a schedule."})]});function fs(){const s=ne(),n=re(),t=fe(),[a,r]=i.useState(!0),{calendars:d,collections:l,timeZoneByCalendarId:h,isLoading:c}=oe(),o=Ze(),{createCalendar:m,isWriting:f}=$(),[x,b]=i.useState("");return e.jsx(be,{items:n,activeId:"calendars",title:"Calendars",description:"Add, rename and delete calendars, subscribe to a calendar feed, and share one with any client that can subscribe to a URL.",help:Qe,helpOpen:a,onToggleHelp:()=>r(u=>!u),onSelect:t,onBackToMail:()=>{s({to:"/mail"})},children:c?e.jsx("div",{className:"h-24 animate-pulse rounded-sm border border-line bg-surface","aria-busy":"true","aria-label":"Loading calendars"}):e.jsxs("div",{className:"space-y-4",children:[e.jsx(we,{}),d.map(u=>{const p=l.find(g=>g.calendarId===u.id);return e.jsx(_e,{calendarId:u.id,calendarName:u.name,timezone:h[u.id]??"",subscription:p?.source==="Subscribed"&&e.jsx(Be,{calendarName:p.displayName,subscriptionUrl:p.subscriptionUrl,enabled:p.subscriptionEnabled,fetchedAt:p.subscriptionFetchedAt,error:p.subscriptionError,isBusy:o.togglingCalendarId===u.id,actionError:o.toggleFailure.calendarId===u.id?o.toggleFailure.error:void 0,onSetEnabled:g=>o.setEnabled(u.id,g)})},u.id)}),e.jsx(Le,{isBusy:o.isSubscribing,error:o.subscribeError,onSubscribe:o.subscribe}),e.jsx(ke,{isBusy:f,problem:x,onCreate:u=>(b(""),m(u).then(p=>p.kind==="written"?!0:(b(p.message),!1)))})]})})}export{fs as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as o}from"./FullCompose-DiZNltCL.js";import"./index-fsuIswbe.js";import"./index-Caon2n2j.js";import"./useMessageBodyContent-CpTD2HGg.js";import"./reply-CXuSMyqp.js";import"./nav-link-ed0mFCCx.js";import"./useMediaQuery-Hy81MQ2M.js";import"./useSignature-W9HBbZ_n.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CFZ4EPXW.js";import"./suggest-list-BCqr1j26.js";import"./sections-DpRVKuXF.js";import"./chevron-down-De4wQzka.js";import"./ErrorState-BTHOmsYP.js";import"./confirm-dialog-XvccFJdE.js";const x=o;export{x as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as o}from"./FullCompose-DiZNltCL.js";import"./index-fsuIswbe.js";import"./index-Caon2n2j.js";import"./useMessageBodyContent-CpTD2HGg.js";import"./reply-CXuSMyqp.js";import"./nav-link-ed0mFCCx.js";import"./useMediaQuery-Hy81MQ2M.js";import"./useSignature-W9HBbZ_n.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CFZ4EPXW.js";import"./suggest-list-BCqr1j26.js";import"./sections-DpRVKuXF.js";import"./chevron-down-De4wQzka.js";import"./ErrorState-BTHOmsYP.js";import"./confirm-dialog-XvccFJdE.js";const x=o;export{x as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as o}from"./FullCompose-DiZNltCL.js";import"./index-fsuIswbe.js";import"./index-Caon2n2j.js";import"./useMessageBodyContent-CpTD2HGg.js";import"./reply-CXuSMyqp.js";import"./nav-link-ed0mFCCx.js";import"./useMediaQuery-Hy81MQ2M.js";import"./useSignature-W9HBbZ_n.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CFZ4EPXW.js";import"./suggest-list-BCqr1j26.js";import"./sections-DpRVKuXF.js";import"./chevron-down-De4wQzka.js";import"./ErrorState-BTHOmsYP.js";import"./confirm-dialog-XvccFJdE.js";const x=o;export{x as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as o}from"./FullCompose-DiZNltCL.js";import"./index-fsuIswbe.js";import"./index-Caon2n2j.js";import"./useMessageBodyContent-CpTD2HGg.js";import"./reply-CXuSMyqp.js";import"./nav-link-ed0mFCCx.js";import"./useMediaQuery-Hy81MQ2M.js";import"./useSignature-W9HBbZ_n.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CFZ4EPXW.js";import"./suggest-list-BCqr1j26.js";import"./sections-DpRVKuXF.js";import"./chevron-down-De4wQzka.js";import"./ErrorState-BTHOmsYP.js";import"./confirm-dialog-XvccFJdE.js";const x=o;export{x as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as o}from"./FullCompose-DiZNltCL.js";import"./index-fsuIswbe.js";import"./index-Caon2n2j.js";import"./useMessageBodyContent-CpTD2HGg.js";import"./reply-CXuSMyqp.js";import"./nav-link-ed0mFCCx.js";import"./useMediaQuery-Hy81MQ2M.js";import"./useSignature-W9HBbZ_n.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CFZ4EPXW.js";import"./suggest-list-BCqr1j26.js";import"./sections-DpRVKuXF.js";import"./chevron-down-De4wQzka.js";import"./ErrorState-BTHOmsYP.js";import"./confirm-dialog-XvccFJdE.js";const x=o;export{x as component};
|
package/assets/edit-B9dhadKH.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{fy as o,j as i}from"./index-fsuIswbe.js";import{a as m}from"./CalendarEventEditor-B3bVY-Oc.js";import"./draft-BEiHkDpm.js";import"./agenda-time-D0yU-H44.js";import"./calendar-guests-Cay9Ub8h.js";import"./calendar-event-popup-Cr_LW8IP.js";import"./useCalendarSuggestions-DXbA0boT.js";import"./ErrorState-BTHOmsYP.js";import"./useQueries-DPH-PeHV.js";import"./pencil-BDbmS56C.js";import"./circle-question-mark-DhNa_A16.js";import"./useCalendarData-DFG3pzeG.js";import"./useCalendarTasks-b_UNFPQH.js";import"./useCalendarScheduling-B_INtO-h.js";import"./useDebouncedValue-CFZ4EPXW.js";import"./calendar-format-BwCpz-JZ.js";import"./nav-link-ed0mFCCx.js";import"./useMediaQuery-Hy81MQ2M.js";import"./calendar-Ds9kgvU8.js";import"./reply-CXuSMyqp.js";import"./CalendarQuickCreate-B_n983kv.js";import"./CalendarSession-BosFoHg2.js";import"./calendar-event-sidebar-B_eR1h5J.js";import"./select-TYdrgtW5.js";import"./chevron-down-De4wQzka.js";import"./confirm-dialog-XvccFJdE.js";function w(){const{calendarObjectId:r,recurrenceId:t}=o.useParams();return i.jsx(m,{calendarObjectId:r,recurrenceId:t})}export{w as component};
|
package/assets/edit-vn6fIBd6.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{fv as o,j as r}from"./index-fsuIswbe.js";import{a as i}from"./CalendarEventEditor-B3bVY-Oc.js";import"./draft-BEiHkDpm.js";import"./agenda-time-D0yU-H44.js";import"./calendar-guests-Cay9Ub8h.js";import"./calendar-event-popup-Cr_LW8IP.js";import"./useCalendarSuggestions-DXbA0boT.js";import"./ErrorState-BTHOmsYP.js";import"./useQueries-DPH-PeHV.js";import"./pencil-BDbmS56C.js";import"./circle-question-mark-DhNa_A16.js";import"./useCalendarData-DFG3pzeG.js";import"./useCalendarTasks-b_UNFPQH.js";import"./useCalendarScheduling-B_INtO-h.js";import"./useDebouncedValue-CFZ4EPXW.js";import"./calendar-format-BwCpz-JZ.js";import"./nav-link-ed0mFCCx.js";import"./useMediaQuery-Hy81MQ2M.js";import"./calendar-Ds9kgvU8.js";import"./reply-CXuSMyqp.js";import"./CalendarQuickCreate-B_n983kv.js";import"./CalendarSession-BosFoHg2.js";import"./calendar-event-sidebar-B_eR1h5J.js";import"./select-TYdrgtW5.js";import"./chevron-down-De4wQzka.js";import"./confirm-dialog-XvccFJdE.js";function w(){const{calendarObjectId:t}=o.useParams();return r.jsx(i,{calendarObjectId:t})}export{w as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b5 as ee,j as e,L as B,ag as oe,p as ce,b6 as de,b7 as me,r as m,ar as H,B as I,b8 as ue,b9 as J,ba as xe,bb as pe,aS as fe,e as he,f as ge,bc as be,bd as je,be as ve,aE as Ne,T as ye,az as te,aA as se,a as ae,Y as Ce,bf as Se,_ as Fe,$ as we,bg as ke,bh as Ie,u as Me,af as Re,bi as Ee,c as Oe}from"./index-fsuIswbe.js";import{E as K,f as De}from"./ErrorState-BTHOmsYP.js";import{u as Le}from"./useMediaQuery-Hy81MQ2M.js";import{a as Ae,u as Te}from"./useLabels-k1VKuQrr.js";import{C as ze,A as $e,a as Pe,b as Be,N as E,p as Ue,u as _e,r as He,c as ne,S as Q,d as Ke,n as qe,f as Je,e as Qe,g as Ve,h as Ge,i as We,j as Ye}from"./useFilters-DHWZEIQe.js";import{L as ie}from"./label-chip-DtBVyALF.js";import{S as V}from"./segmented-control-BwvsufVp.js";import{S as Xe}from"./select-TYdrgtW5.js";import{C as q}from"./circle-check-DlR8I4Hf.js";import{B as Ze}from"./bottom-sheet-DKF_Dkid.js";import{B as et}from"./badge-BB80tGxy.js";import{a as tt}from"./sections-DpRVKuXF.js";import{S as st}from"./settings-screen-DTYVWAkg.js";import"./suggest-list-BCqr1j26.js";import"./plus-D5-2sA5v.js";import"./chevron-down-De4wQzka.js";import"./avatar-Bq7beWCy.js";import"./chevron-left-CUHU8UT9.js";import"./menu-Bh94jr77.js";import"./circle-question-mark-DhNa_A16.js";function at({preview:t}){const s=ee(t);if(t.status==="loading")return e.jsxs("p",{className:"flex items-center gap-2 text-xs text-fg-muted","aria-live":"polite",children:[e.jsx(B,{className:"size-3.5 animate-spin","aria-hidden":"true"}),s]});if(t.status==="error")return e.jsxs("p",{className:"flex items-center gap-2 text-xs text-danger",role:"alert",children:[e.jsx(oe,{className:"size-3.5 shrink-0","aria-hidden":"true"}),s]});const a=t.count===0;return e.jsxs("p",{className:ce("flex items-center gap-2 text-xs",t.stale?"text-fg-subtle":a?"text-fg-muted":"font-medium text-fg"),"aria-live":"polite",children:[t.stale&&e.jsx(B,{className:"size-3.5 animate-spin","aria-hidden":"true"}),s]})}const nt=[{value:"all",label:J("all")},{value:"any",label:J("any")}],G=[{value:"once",label:"Just once"},{value:"standing",label:"Keep doing this"},{value:"until",label:"Until a date"}],W="__filter_create_label__";function it({folders:t,value:s,delimiter:a="/",onChangeMove:n,onCreateFolder:u}){const[x,g]=m.useState(!1),[p,f]=m.useState(),[h,b]=m.useState([]),d=m.useMemo(()=>{const y=new Set(t.map(v=>v.id));return[...t,...h.filter(v=>!y.has(v.id))]},[t,h]),l=m.useMemo(()=>{if(u)return async(y,v,i)=>{const o=await u(y,v,i);return b(w=>w.some(M=>M.id===o.id)?w:[...w,o]),o}},[u]),C=d.find(y=>y.id===s),S=d.find(y=>y.id===p),j=y=>{const v=pe(y.path,a);return v.map((i,o)=>{const w=v.slice(0,o+1).join(a);return d.find(M=>M.path===w)?.label??i}).join(" / ")},N=()=>{g(!1),f(void 0)};return x?e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"flex h-72 min-h-0 overflow-hidden rounded-md border border-line bg-surface",children:e.jsx(xe,{folders:d,selectedId:p,delimiter:a,onSelect:f,onCreateFolder:l,onCancel:N,labels:{createPending:"Waiting for the mail server to confirm the folder…"}})}),S?e.jsx(I,{variant:"primary",onClick:()=>{n?.(S.id),N()},className:"w-full",children:e.jsx("span",{className:"truncate",children:`Move matches to ${j(S)}`})}):e.jsx("p",{className:"text-2xs text-fg-subtle",children:"Tap a folder to open it, or make a new one where you want it."}),e.jsx(I,{variant:"ghost",size:"sm",onClick:N,className:"w-full",children:"Cancel"})]}):e.jsxs("div",{className:"rounded-md border border-line bg-surface-sunken p-3",children:[e.jsx("p",{className:"text-sm font-medium text-fg",children:C?j(C):"No folder yet"}),e.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-3",children:[e.jsx(I,{variant:"ghost",size:"sm",className:"px-0",onClick:()=>{f(s),g(!0)},children:"Choose a folder"}),C&&e.jsx(I,{variant:"ghost",size:"sm",className:"px-0",onClick:()=>n?.(""),children:"Don't move matches"})]})]})}function rt({labels:t,value:s,onChangeLabel:a,onCreateLabel:n}){const[u,x]=m.useState(!1),[g,p]=m.useState(""),[f,h]=m.useState(!1),[b,d]=m.useState(),[l,C]=m.useState([]),S=m.useMemo(()=>{const i=new Set(t.map(o=>o.id));return[...t,...l.filter(o=>!i.has(o.id))]},[t,l]),j=S.find(i=>i.id===s),N=i=>{if(i===W){d(void 0),x(!0);return}a?.(i)},y=()=>{if(!n)return;const i=g.trim();i!==""&&(h(!0),d(void 0),n(i).then(o=>{C(w=>w.some(M=>M.id===o.id)?w:[...w,o]),a?.(o.id),x(!1),p(""),h(!1)}).catch(o=>{d(o instanceof Error?o.message:"Couldn't create that label. Please try again."),h(!1)}))},v=()=>{x(!1),p(""),d(void 0)};return e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(Xe,{"aria-label":"Label to apply",value:s,onChange:i=>N(i.target.value),className:"flex-1",children:[e.jsx("option",{value:"",children:"No label"}),S.map(i=>e.jsx("option",{value:i.id,children:i.name},i.id)),n&&e.jsx("option",{value:W,children:"+ New label…"})]}),j&&e.jsx(ie,{label:{...j,labelId:j.id}})]}),u&&e.jsxs("div",{className:"space-y-2 rounded-md border border-line bg-surface-sunken p-2",children:[e.jsx(H,{value:g,onChange:i=>p(i.target.value),placeholder:"Label name","aria-label":"New label name",disabled:f,autoFocus:!0,onKeyDown:i=>{i.key==="Enter"&&(i.preventDefault(),y()),i.key==="Escape"&&(i.preventDefault(),v())}}),b&&e.jsx("p",{className:"text-2xs text-danger",role:"alert",children:b}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(I,{variant:"primary",size:"sm",onClick:y,disabled:f||g.trim()==="",children:f?"Creating…":"Create label"}),e.jsx(I,{variant:"ghost",size:"sm",onClick:v,disabled:f,children:"Cancel"})]})]})]})}function lt({rule:t,folders:s,delimiter:a,labels:n=[],preview:u,notice:x,clauseFields:g,persisted:p=!1,clauseSuggestions:f,clauseEdit:h,onStartAddClause:b,onStartEditClause:d,onRemoveClause:l,onChangeDraftField:C,onChangeDraftValue:S,onSubmitClause:j,onCancelClause:N,onChangeMatchOperator:y,onChangeMove:v,onCreateFolder:i,onChangeLabel:o,onCreateLabel:w,onChangeScope:M,onChangeName:O,onChangeUntil:$,onCommit:A,onCancel:D}){const P=t.clauses.length>=2,T=de(t.matchOperator),L=me(t,u),F=t.scope==="standing"||t.scope==="until",z=p?G.filter(k=>k.value!=="once"):G;return e.jsxs("div",{className:"flex min-h-0 flex-col",children:[e.jsxs("div",{className:"border-b border-line px-5 py-3",children:[e.jsx("h2",{className:"text-sm font-semibold text-fg",children:"Filter rule"}),e.jsx("p",{className:"mt-0.5 text-xs text-fg-muted",children:"These chips are the whole rule — what you see is what applies."})]}),e.jsxs("div",{className:"min-h-0 flex-1 space-y-5 overflow-y-auto px-5 py-4",children:[x,e.jsxs("section",{className:"space-y-3",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[t.clauses.map((k,U)=>e.jsxs(m.Fragment,{children:[U>0&&e.jsx("span",{className:"text-2xs font-medium uppercase text-fg-subtle",children:T}),e.jsx(ze,{clause:k,onEdit:()=>d?.(k.id),onRemove:()=>l?.(k.id)})]},k.id)),!h&&e.jsx($e,{label:"Add clause",onClick:b})]}),h&&e.jsx(Pe,{draft:h.draft,mode:h.mode,fields:g,suggestions:f,onChangeField:C,onChangeValue:S,onSubmit:j,onCancel:N}),P&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-xs text-fg-muted",children:"Match"}),e.jsx(V,{name:"match-operator",size:"sm","aria-label":"Match operator",options:nt,value:t.matchOperator,onChange:k=>y?.(k)})]})]}),e.jsxs("section",{className:"space-y-2",children:[e.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"Move matches to"}),e.jsx(it,{folders:s,value:t.moveMailboxId,delimiter:a,onChangeMove:v,onCreateFolder:i})]}),e.jsxs("section",{className:"space-y-2",children:[e.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"Apply a label"}),e.jsx(rt,{labels:n,value:t.labelId??"",onChangeLabel:o,onCreateLabel:w})]}),e.jsxs("section",{className:"space-y-2",children:[e.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"How long"}),e.jsx(V,{name:"rule-scope",size:"sm","aria-label":"Rule scope",options:z,value:t.scope,onChange:k=>M?.(k)}),F&&e.jsx(H,{value:t.name??"",onChange:k=>O?.(k.target.value),placeholder:"Name this rule (e.g. Receipts)","aria-label":"Rule name",className:"w-full"}),t.scope==="until"&&e.jsxs("div",{className:"flex items-center gap-2 text-xs text-fg-muted",children:[e.jsx("span",{children:"Until"}),e.jsx(H,{type:"date",value:t.until??"",onChange:k=>$?.(k.target.value),"aria-label":"Expiry date",className:"flex-1"})]})]}),e.jsx("div",{className:"border-t border-line pt-3",children:e.jsx(at,{preview:u})})]}),e.jsxs("div",{className:"space-y-2 border-t border-line px-5 py-3",children:[L&&e.jsx("p",{className:"text-xs text-fg-subtle",role:"status",children:L}),e.jsx(I,{variant:"primary",onClick:A,disabled:L!==void 0,className:"w-full",children:ue(t.scope)}),e.jsx(I,{variant:"ghost",onClick:D,className:"w-full",children:"Not now"})]})]})}const ot=t=>{const s=fe(t);return s!==void 0&&s>=400&&s<500};function Y({title:t,error:s,onRetry:a,reportHref:n}){return e.jsxs("div",{className:"space-y-1",children:[e.jsx(K,{variant:"inline",title:t,error:s,onRetry:ot(s)?void 0:a}),e.jsx("a",{href:n(De(s)),target:"_blank",rel:"noreferrer",className:"text-xs text-accent hover:underline",children:"Report an issue"})]})}const ct=(t,s)=>{const a=he(),n=ge({...je(),onSuccess:()=>{t&&(a.invalidateQueries({queryKey:Be(t)}),s&&a.invalidateQueries({queryKey:be({path:{accountId:t,filterId:s}})}))}}),{mutate:u}=n;return{updateFilter:m.useCallback(g=>{!t||!s||u({path:{accountId:t,filterId:s},body:g})},[t,s,u]),isPending:n.isPending,isSuccess:n.isSuccess,isError:n.isError,error:n.error,reset:n.reset}},dt=t=>({clauses:t.literalClauses.map((a,n)=>({id:`clause-${n}`,field:a.field,value:a.value})),matchOperator:t.matchOperator==="And"?"all":"any",moveMailboxId:t.actionMailboxId!==E?t.actionMailboxId:void 0,labelId:t.actionLabelId!==E?t.actionLabelId:void 0,scope:t.scope==="Temporary"?"until":"standing",until:t.scope==="Temporary"?mt(t.expiresAt):void 0,name:t.name}),mt=t=>{if(!t)return"";const s=Date.parse(t);if(Number.isNaN(s))return"";const a=new Date(s),n=u=>String(u).padStart(2,"0");return`${a.getFullYear()}-${n(a.getMonth()+1)}-${n(a.getDate())}`},X=t=>JSON.stringify({clauses:t.clauses.map(s=>[s.field,s.value]),operator:t.matchOperator,move:t.moveMailboxId??null,label:t.labelId??null}),re=(t,s)=>X(t)!==X(s),Z=t=>JSON.stringify({scope:t.scope==="until"?"until":"standing",until:t.scope==="until"?t.until??"":""}),le=(t,s)=>Z(t)!==Z(s),ut=(t,s)=>{const a={},n=(t.name??"").trim();return n!==(s.name??"").trim()&&(a.name=n),re(t,s)&&(a.matchOperator=t.matchOperator==="all"?"And":"Or",a.literalClauses=t.clauses.map(u=>({field:u.field,value:u.value})),a.actionMailboxId=t.moveMailboxId??E,a.actionLabelId=t.labelId??E),le(t,s)&&(a.scope=t.scope==="until"?"Temporary":"Standing",t.scope==="until"&&(a.expiresAt=Ue(t.until??""))),a};function xt({accountId:t,filter:s,folders:a,delimiter:n,labels:u,onClose:x}){const g=m.useMemo(()=>dt(s),[s]),[p,f]=m.useState(g),[h,b]=m.useState(),[d,l]=m.useState(!1),C=m.useRef(0),{count:S}=_e(t,He(p)),j=ct(t,s.filterId),N=ne(t),{createFolderIn:y}=ve(t),{createLabel:v}=Ae(t),i=async c=>{const r=await v(c);return{id:r.labelId,name:r.name,color:r.color}},o=()=>b({mode:"add",draft:{field:Q[0],value:""}}),w=c=>{const r=p.clauses.find(R=>R.id===c);r&&b({mode:"edit",clauseId:c,draft:{field:r.field,value:r.value}})},M=c=>b(r=>r&&{...r,draft:{...r.draft,field:c}}),O=c=>b(r=>r&&{...r,draft:{...r.draft,value:c}}),$=()=>{if(!h)return;const c=h.draft.field,r=qe(c,h.draft.value);r!==""&&(f(R=>h.mode==="edit"&&h.clauseId?{...R,clauses:R.clauses.map(_=>_.id===h.clauseId?{id:_.id,field:c,value:r}:_)}:(C.current+=1,{...R,clauses:[...R.clauses,{id:`new-${C.current}`,field:c,value:r}]})),b(void 0))},A=c=>f(r=>({...r,clauses:r.clauses.filter(R=>R.id!==c)})),D=c=>f(r=>({...r,matchOperator:c})),P=c=>f(r=>({...r,moveMailboxId:c||void 0})),T=c=>f(r=>({...r,labelId:c||void 0})),L=c=>f(r=>({...r,name:c})),F=c=>f(r=>({...r,scope:c,until:c==="until"?r.until:void 0})),z=c=>f(r=>({...r,until:c})),k=()=>{const c=re(p,g)||le(p,g),r=ut(p,g);if(Object.keys(r).length===0){x();return}l(c),j.updateFilter(r)},U=()=>N.start(Ke(p));return N.isStarting||N.isRunning||N.isDone?e.jsx(gt,{progress:N.progress,isDone:N.isDone,onClose:x}):j.isPending?e.jsx(pt,{}):j.isError?e.jsx(bt,{onRetry:j.reset,onClose:x}):j.isSuccess?d?e.jsx(ht,{preview:ee(S),blocked:S.status!=="ready"||S.stale===!0,onReapply:U,onClose:x}):e.jsx(ft,{onClose:x}):e.jsx(lt,{rule:p,folders:a,delimiter:n,labels:u,preview:S,clauseFields:Q,persisted:!0,clauseEdit:h,onStartAddClause:o,onStartEditClause:w,onRemoveClause:A,onChangeDraftField:M,onChangeDraftValue:O,onSubmitClause:$,onCancelClause:()=>b(void 0),onChangeMatchOperator:D,onChangeMove:P,onCreateFolder:y,onChangeLabel:T,onCreateLabel:i,onChangeName:L,onChangeScope:F,onChangeUntil:z,onCommit:k,onCancel:x})}function pt(){return e.jsxs("div",{className:"flex flex-col items-center gap-3 px-5 py-10 text-center",children:[e.jsx(B,{className:"size-8 animate-spin text-accent-2"}),e.jsx("p",{className:"text-sm font-medium text-fg",children:"Saving changes…"})]})}function ft({onClose:t}){return e.jsxs("div",{className:"flex flex-col items-center gap-3 px-5 py-8 text-center",children:[e.jsx(q,{className:"size-8 text-positive"}),e.jsx("p",{className:"text-sm font-medium text-fg",children:"Filter updated"}),e.jsx(I,{variant:"primary",onClick:t,className:"mt-2",children:"Done"})]})}function ht({preview:t,blocked:s,onReapply:a,onClose:n}){return e.jsxs("div",{className:"flex flex-col items-center gap-3 px-5 py-8 text-center",children:[e.jsx(q,{className:"size-8 text-positive"}),e.jsx("p",{className:"text-sm font-medium text-fg",children:"Rule saved"}),e.jsxs("p",{className:"max-w-xs text-xs text-fg-muted",children:["New mail follows the rule automatically. ",t," — move the mail already in your mailbox too?"]}),e.jsxs("div",{className:"mt-2 flex gap-2",children:[e.jsx(I,{variant:"primary",onClick:a,disabled:s,children:"Move existing mail"}),e.jsx(I,{variant:"ghost",onClick:n,children:"Not now"})]})]})}function gt({progress:t,isDone:s,onClose:a}){const n=t.state==="Failed";return e.jsxs("div",{className:"flex flex-col items-center gap-3 px-5 py-8 text-center",children:[s?n?e.jsx("span",{className:"text-sm font-semibold text-danger",children:"Move failed"}):e.jsx(q,{className:"size-8 text-positive"}):e.jsx(B,{className:"size-8 animate-spin text-accent-2"}),!s&&e.jsx("p",{className:"text-sm font-medium text-fg",children:"Moving existing mail…"}),s&&!n&&e.jsxs("div",{className:"text-sm text-fg",children:[e.jsx("p",{className:"font-medium",children:"Done"}),e.jsxs("p",{className:"mt-1 text-xs text-fg-muted",children:[t.appliedCount," of ",t.matchedCount," moved",t.failedCount>0?` · ${t.failedCount} failed`:"","."]})]}),s&&n&&e.jsx("p",{className:"max-w-xs text-xs text-fg-muted",children:t.errorMessage||"Something went wrong. Please try again."}),s&&e.jsx(I,{variant:"primary",onClick:a,className:"mt-2",children:"Done"})]})}function bt({onRetry:t,onClose:s}){return e.jsxs("div",{className:"flex flex-col items-center gap-3 px-5 py-8 text-center",children:[e.jsx("p",{className:"text-sm font-medium text-danger",children:"Couldn't save changes"}),e.jsx("p",{className:"max-w-xs text-xs text-fg-muted",children:"Please try again."}),e.jsxs("div",{className:"mt-2 flex gap-2",children:[e.jsx(I,{variant:"primary",onClick:t,children:"Try again"}),e.jsx(I,{variant:"ghost",onClick:s,children:"Not now"})]})]})}function jt({accountId:t,filter:s,folders:a,delimiter:n,labels:u,onClose:x}){const g=Le(),p=e.jsx(xt,{accountId:t,filter:s,folders:a,delimiter:n,labels:u,onClose:x});return g?e.jsx(Ne,{open:!0,onClose:x,title:"Filter rule",children:p}):e.jsx(Ze,{open:!0,onClose:x,label:"Filter rule",dismissLabel:"Dismiss filter rule",children:p})}const vt=t=>{switch(t.kind){case"queuing":case"running":return"Running over the inbox…";case"done":return t.matched===0?"Done. Nothing in the inbox matched.":`Done. Filed ${t.applied} of ${t.matched} matching messages in the inbox.`;case"failed":return}};function Nt({filters:t,mailboxName:s,labelById:a,onEdit:n,onDelete:u,deletingFilterId:x,onToggle:g,togglingFilterId:p,onRunNow:f,runFilterId:h,runStatus:b,now:d=Date.now()}){return t.length===0?e.jsx("p",{className:"py-6 text-sm text-fg-muted",children:"No filters yet. Select a few messages in the inbox and choose Organize to make one."}):e.jsx("ul",{className:"divide-y divide-line rounded-md border border-line",children:t.map(l=>{const C=Je(l,d),S=C==="Expired",j=C==="Disabled",N=j?Qe(l):void 0,y=l.actionMailboxId!==E?s(l.actionMailboxId):void 0,v=l.actionLabelId!==E?a.get(l.actionLabelId):void 0,i=Ve(l.expiresAt),o=h===l.filterId?b:void 0,w=o?.kind==="queuing"||o?.kind==="running",M=o?vt(o):void 0,O=C==="Active"&&(l.actionMailboxId!==E||l.actionLabelId!==E);return e.jsxs("li",{className:"flex items-start gap-3 px-3 py-2.5",children:[e.jsxs("button",{type:"button",onClick:()=>n(l.filterId),"aria-label":`Edit filter ${l.name}`,className:"min-w-0 flex-1 rounded-sm text-left hover:opacity-80",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:`truncate text-sm font-medium ${S||j?"text-fg-muted":"text-fg"}`,children:l.name}),e.jsx(et,{tone:S?"neutral":j?"warning":"positive",dot:!0,children:C})]}),e.jsxs("p",{className:"mt-0.5 text-xs text-fg-subtle",children:[y?`Moves matches to ${y}`:"No move action",l.scope==="Temporary"&&i?S?` · expired ${i}`:` · until ${i}`:l.scope==="Standing"?" · always":""]}),N&&e.jsx("p",{className:"mt-0.5 text-xs text-warning",children:N}),M&&e.jsx("p",{role:"status",className:"mt-0.5 text-xs text-fg-muted",children:M}),v&&e.jsx("div",{className:"mt-1.5 flex flex-wrap gap-1.5",children:e.jsx(ie,{label:{labelId:v.id,name:v.name,color:v.color}})})]}),O&&e.jsx(I,{variant:"ghost",size:"sm",onClick:()=>f(l.filterId),disabled:w,"aria-label":`Run now: filter ${l.name}`,children:w?"Running…":"Run now"}),!S&&e.jsx(I,{variant:"ghost",size:"sm",onClick:()=>g(l.filterId,j),disabled:p===l.filterId,"aria-label":`${j?"Turn on":"Turn off"} filter ${l.name}`,children:j?"Turn on":"Turn off"}),e.jsx(I,{variant:"ghost",size:"sm",icon:e.jsx(ye,{className:"size-4 text-danger"}),onClick:()=>u(l.filterId),disabled:x===l.filterId,"aria-label":`Delete filter ${l.name}`})]},l.filterId)})})}function yt(t){return te(se({title:`Filter toggle: ${t}`,errorMessage:t}))}function Ct(t){return te(se({title:`Filter run now: ${t}`,errorMessage:t}))}const St=t=>{if(t.failure)return{kind:"failed",error:t.failure.error};if(t.isStarting)return{kind:"queuing"};if(t.isDone)return t.progress.state==="Failed"?{kind:"failed",error:new Error(t.progress.errorMessage||"The run over the inbox failed.")}:{kind:"done",matched:t.progress.matchedCount,applied:t.progress.appliedCount};if(t.isRunning)return{kind:"running"}},Ft=e.jsxs("div",{className:"space-y-3",children:[e.jsxs("p",{children:["Filters are the standing rules Organize creates. A"," ",e.jsx("strong",{children:"Standing"})," filter keeps working on new mail; a"," ",e.jsx("strong",{children:"Temporary"})," one stops on its own at the date you picked."]}),e.jsx("p",{children:"An expired filter isn't deleted the instant it lapses — it stays here, marked Expired, so you can see what it did and when it stopped."}),e.jsx("p",{children:"A filter that can't do its job turns itself off and says why, for example when its folder no longer exists. Turn it back on once that is fixed."})]});function wt({account:t,openFilterId:s}){const a=t.accountId,{filters:n,isPending:u,isError:x,error:g,refetch:p}=Ge(a),{deleteFilter:f,deletingFilterId:h}=We(a),b=Ye(a),d=ne(a),{startForFilter:l}=d,[C,S]=m.useState(),j=m.useCallback(F=>{S(F),l(F)},[l]),N=St(d),[y,v]=m.useState(s),{data:i}=ae({...Ce({path:{accountId:a}}),staleTime:1/0}),o=Se(),w=m.useMemo(()=>Fe(t.folderAppointments),[t.folderAppointments]),M=m.useCallback(F=>{const z=i?.items.find(k=>k.mailboxId===F);if(z)return we(z,w.get(F),o)},[i?.items,w,o]),O=m.useMemo(()=>ke({mailboxes:i?.items??[],folderAppointments:t.folderAppointments,translator:o}),[i?.items,t.folderAppointments,o]),$=Ie(i?.items??[]),{labels:A}=Te(a),D=m.useMemo(()=>A.map(F=>({id:F.labelId,name:F.name,color:F.color})),[A]),P=m.useMemo(()=>new Map(D.map(F=>[F.id,F])),[D]),T=n.find(F=>F.filterId===y),L=n.find(F=>F.filterId===C)?.name;return e.jsxs("section",{className:"space-y-2",children:[e.jsx("h2",{className:"text-sm font-semibold text-fg",children:t.email}),T&&e.jsx(jt,{accountId:a,filter:T,folders:O,delimiter:$,labels:D,onClose:()=>v(void 0)}),u?e.jsx("div",{className:"h-16 animate-pulse rounded-md border border-line bg-surface","aria-busy":"true","aria-label":`Loading filters for ${t.email}`}):x?e.jsx(K,{variant:"inline",title:`Couldn't load filters for ${t.email}`,error:g,onRetry:()=>{p()}}):e.jsxs(e.Fragment,{children:[b.isError&&e.jsx(Y,{title:b.enabling?"Couldn't turn the filter on":"Couldn't turn the filter off",error:b.error,onRetry:b.retry,reportHref:yt}),C&&N?.kind==="failed"&&e.jsx(Y,{title:`Couldn't run ${L??"the filter"} over the inbox`,error:N.error,onRetry:d.failure?.kind==="statusUnreadable"?d.refreshStatus:()=>j(C),reportHref:Ct}),e.jsx(Nt,{filters:n,mailboxName:M,labelById:P,onEdit:v,onDelete:f,deletingFilterId:h,onToggle:b.toggleFilter,togglingFilterId:b.togglingFilterId,onRunNow:j,runFilterId:C,runStatus:N})]})]})}function Qt(){const t=Me(),s=Re(),a=tt(),[n,u]=m.useState(!0),x=Ee.useSearch({select:d=>d.filterId}),{data:g,isPending:p,isError:f,error:h,refetch:b}=ae(Oe());return e.jsx(st,{items:s,activeId:"filters",title:"Filters",description:"Standing and temporary rules created by Organize, per account.",help:Ft,helpOpen:n,onToggleHelp:()=>u(d=>!d),onSelect:a,onBackToMail:()=>{t({to:"/mail"})},children:p?e.jsx("div",{className:"h-24 animate-pulse rounded-sm border border-line bg-surface","aria-busy":"true","aria-label":"Loading accounts"}):f?e.jsx(K,{title:"Couldn't load accounts",error:h,onRetry:()=>{b()}}):g.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:g.accounts.map(d=>e.jsx(wt,{account:d,openFilterId:x},d.accountId))})})}export{wt as AccountFilters,Qt as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o,O as i}from"./index-fsuIswbe.js";import{a as m}from"./MailShell-tKLYT5hn.js";import{C as t,S as p}from"./CollectionPane-BzktgIp0.js";import"./nav-link-ed0mFCCx.js";import{a as e}from"./search-token-index-BYKMNlJD.js";import"./reply-CXuSMyqp.js";import{u as a}from"./search-mirror-B2xnwy77.js";import"./useMessageBodyContent-CpTD2HGg.js";import"./FullCompose-DiZNltCL.js";import"./index-Caon2n2j.js";import"./useSignature-W9HBbZ_n.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CFZ4EPXW.js";import"./suggest-list-BCqr1j26.js";import"./sections-DpRVKuXF.js";import"./useMediaQuery-Hy81MQ2M.js";import"./chevron-down-De4wQzka.js";import"./ErrorState-BTHOmsYP.js";import"./confirm-dialog-XvccFJdE.js";import"./search-scope-B-3MTDpD.js";import"./app-chrome-BfyGOiSA.js";import"./useCollectionThreads-DgofDKen.js";import"./useQueries-DPH-PeHV.js";import"./useInfiniteQuery-B-vOuANs.js";import"./MessageToolbar-DeDUhCvg.js";import"./MessageBody-jG4Dhul6.js";import"./kbd-jzPSd-a2.js";import"./roving-focus-DZX7IpN4.js";import"./useJunkMailboxIds-CW7aI25D.js";import"./badge-BB80tGxy.js";import"./undo-2-D1IMLq7c.js";import"./DropdownMenu-C2J8u8zN.js";import"./refresh-cw-Cu9_I3cT.js";import"./popover-menu-DhcuKv1N.js";import"./mail-BzFJWQZy.js";import"./download-DEuAIIIQ.js";import"./avatar-Bq7beWCy.js";import"./EmptyState-BJU14tbt.js";import"./circle-question-mark-DhNa_A16.js";import"./useFilters-DHWZEIQe.js";import"./select-TYdrgtW5.js";import"./plus-D5-2sA5v.js";import"./calendar-suggestion-EosZrXZC.js";import"./useCalendarSuggestions-DXbA0boT.js";import"./agenda-time-D0yU-H44.js";import"./calendar-format-BwCpz-JZ.js";import"./calendar-Ds9kgvU8.js";import"./calendar-failure-note-C4gNXDQV.js";import"./checkbox-CYOm-zGr.js";import"./clock-Dds4zv6u.js";import"./segmented-control-BwvsufVp.js";import"./useLayoutTier-BNUKvwJD.js";import"./menu-Bh94jr77.js";import"./folder-input-B0q8wLhf.js";import"./label-chip-DtBVyALF.js";import"./useLabels-k1VKuQrr.js";import"./cloud-off-BYulqayx.js";import"./MailViewChrome-CLgaFbe-.js";import"./wizard-selection-zWa1qc6-.js";function xo(){const r=e();return a({to:"/mail/flagged"}),o.jsx(t,{collection:p,title:"Starred",thread:r,children:o.jsx(m,{phone:o.jsx(t.Phone,{}),list:o.jsx(t.List,{}),reading:o.jsx(i,{}),intelligence:o.jsx(t.Intelligence,{}),hasThread:!!r})})}export{xo as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const t=e=>{if(e.syncStatus!=="failed")return;const r=e.syncFailureReason.trim();return r.length===0?"The last change to this folder failed.":`The mail server refused the last change: ${r}`};export{t as f};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e,B as y,T as B,ba as Y,r as c,aE as W,X,aJ as he,ar as J,F as xe,bj as Q,bk as fe,at as pe,d as z,bl as ge,bm as be,e as Z,a4 as ee,k as se,bn as ve,bo as je,aI as ye,a3 as Ne,bp as ke,bq as _,br as Ce,bs as we,bt as te,bu as Se,bv as H,be as ae,bf as re,bg as Ie,$ as q,_ as ne,L as K,bw as G,ag as Me,bx as Ee,u as Ae,af as De,a as ie,c as Oe,Y as Fe,f as V,s as Re,by as Te,bz as $e,bA as Pe,bB as Le,bC as ze,bD as _e}from"./index-fsuIswbe.js";import{F as Be}from"./folder-input-B0q8wLhf.js";import{f as qe}from"./folder-failure-CqkVSsrb.js";import{a as Ke}from"./sections-DpRVKuXF.js";import{S as Qe}from"./settings-screen-DTYVWAkg.js";import{E as oe}from"./ErrorState-BTHOmsYP.js";import{S as He}from"./select-TYdrgtW5.js";import{P as Ge}from"./pencil-BDbmS56C.js";import"./avatar-Bq7beWCy.js";import"./badge-BB80tGxy.js";import"./chevron-left-CUHU8UT9.js";import"./menu-Bh94jr77.js";import"./circle-question-mark-DhNa_A16.js";import"./chevron-down-De4wQzka.js";const Ve=({label:s,onRename:t,onDelete:r,deleteBlockedReason:l,renameLabel:d=m=>`Rename ${m}`,deleteLabel:a=m=>`Delete ${m}`})=>{const m=l?`${a(s)} — ${l}`:a(s);return e.jsxs("span",{className:"flex shrink-0 items-center gap-0.5 pr-2",children:[e.jsx(y,{variant:"ghost",size:"sm",icon:e.jsx(Ge,{className:"size-3.5"}),"aria-label":d(s),onClick:t}),e.jsx("span",{title:l,children:e.jsx(y,{variant:"ghost",size:"sm",icon:e.jsx(B,{className:"size-3.5"}),"aria-label":m,disabled:l!==void 0,onClick:r})})]})},Ue=({folders:s,onRename:t,onDelete:r,onCreateFolder:l,delimiter:d,labels:a})=>{const m=new Map(s.map(o=>[o.id,o]));return e.jsx(Y,{folders:s,onCreateFolder:l,delimiter:d,labels:{treeAriaLabel:"Your folders",optionLabel:o=>o.label,...a},rowFailure:o=>m.get(o.id)?.failure,rowActions:o=>{const i=m.get(o.id);return i?e.jsx(Ve,{label:i.label,deleteBlockedReason:i.deleteBlockedReason,renameLabel:a?.rename,deleteLabel:a?.remove,onRename:()=>t(i),onDelete:()=>r(i)}):null}})},Ye=({open:s,folderLabel:t,defaultLabel:r,name:l,onNameChange:d,onSubmit:a,onClose:m,pending:o=!1,error:i})=>{const h=c.useId(),p=`Rename ${t}`;return s?e.jsxs(W,{open:s,onClose:m,title: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:p}),e.jsx(y,{variant:"ghost",size:"sm",icon:e.jsx(X,{className:"size-3.5"}),onClick:m,"aria-label":"Cancel"})]}),e.jsxs("div",{className:"space-y-3 px-5 py-4",children:[e.jsxs("div",{children:[e.jsx(he,{htmlFor:h,children:"Folder name"}),e.jsx(J,{id:h,value:l,placeholder:r,onChange:g=>d(g.target.value),onKeyDown:g=>{g.key==="Enter"&&(g.preventDefault(),a())}})]}),e.jsxs("p",{className:"text-xs text-fg-muted",children:["Shown everywhere in Remit. Leave it blank to use"," ",e.jsx("span",{className:"font-medium text-fg",children:r}),"."]}),i&&e.jsx("p",{className:"text-xs text-danger",role:"alert",children:i})]}),e.jsxs("footer",{className:"flex items-center justify-end gap-2 border-t border-line px-5 py-3",children:[e.jsx(y,{variant:"secondary",size:"sm",onClick:m,children:"Cancel"}),e.jsx(y,{variant:"primary",size:"sm",onClick:a,disabled:o,children:o?"Saving…":"Save name"})]})]}):null},We=["inbox","drafts","sent","archive","junk","trash"],U="",Xe={mailboxId:null,source:"None"};function Je(s){const t=s.messageCount===1?"msg":"msgs";return`${Q(s.providerPath,s.hierarchyDelimiter)} · ${s.messageCount} ${t}`}const le=s=>`${s} ${s===1?"message":"messages"}`,Ze=(s,t)=>s==="Appointed"?"Chosen by you":s==="Flagged"?`The mail server marks it as ${t}`:s==="Reserved"?"The account's own INBOX":"Matched by name, not confirmed";function es({role:s,folders:t,appointment:r,displayName:l,onAppoint:d,onRename:a}){const[m,o]=c.useState(l),i=c.useRef(null),h=c.useRef(!1),p=c.useId(),{mailboxId:g,source:v,staleFolderPath:j}=r,u=t.find(N=>N.mailboxId===g)??null,f=ge(s),O=u!=null&&m.trim()!==l.trim();c.useEffect(()=>{!h.current||v==="Proposed"||(h.current=!1,i.current?.focus())},[v]);const M=(()=>{if(v==="None"){const N=s==="trash"?" Deleting mail needs one.":"";return e.jsx("span",{id:p,className:"pl-[7.5rem] text-xs text-fg-muted",children:`Not set — pick the folder this account uses for ${f}.${N}`})}return v==="Stale"||!u?null:e.jsx("span",{id:p,className:"truncate pl-[7.5rem] text-2xs text-fg-subtle",title:u.providerPath,children:`${Ze(v,f)} · ${u.providerPath} · ${le(u.messageCount)}`})})(),w=s==="trash"?" Deleting mail is stopped until you pick another one.":u?` reader is using ${Q(u.providerPath,u.hierarchyDelimiter)} instead.`:"",D=`The folder you chose for ${f}${j?` — ${j} —`:""} is gone from the mail server.${w}`;return e.jsxs("div",{className:"flex flex-col gap-1 border-b border-line px-row-inset py-2.5 last:border-b-0",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:"flex w-28 shrink-0 items-center gap-2 text-sm font-medium text-fg",children:[fe(s),f]}),e.jsxs(He,{ref:i,className:"w-56 shrink-0",value:u?.mailboxId??U,"aria-label":`Folder for ${f}`,"aria-describedby":M||v==="Stale"?p:void 0,onChange:N=>d(s,N.target.value),children:[!u&&e.jsx("option",{value:U,disabled:!0,children:"Choose a folder"}),t.map(N=>e.jsx("option",{value:N.mailboxId,children:Je(N)},N.mailboxId))]}),v==="Proposed"&&u&&e.jsx(y,{variant:"secondary",size:"sm",className:"shrink-0",onClick:()=>{h.current=!0,d(s,u.mailboxId)},children:`Set as ${f}`}),u&&e.jsxs(e.Fragment,{children:[e.jsx(J,{className:"flex-1",value:m,placeholder:f,"aria-label":`Display name for ${f}`,onChange:N=>o(N.target.value)}),O&&e.jsx(y,{variant:"ghost",size:"sm",className:"shrink-0",icon:e.jsx(pe,{className:"size-4"}),"aria-label":"Save display name",onClick:()=>a(u.mailboxId,m)})]})]}),M,v==="Stale"&&e.jsx(z,{tone:"warning",variant:"soft",className:"ml-[7.5rem]",children:e.jsxs("span",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("span",{id:p,className:"flex-1",children:D}),e.jsx(y,{variant:"secondary",size:"sm",className:"shrink-0",onClick:()=>i.current?.focus(),children:"Pick a folder"})]})})]})}function ss(){return e.jsxs("div",{className:"space-y-3",children:[e.jsx("p",{children:"Each canonical role — Inbox, Drafts, Sent, Archive, Spam, Trash — points at one of your account's real folders. Pick the one that actually holds the mail; the message counts tell real folders from empty look-alikes."}),e.jsx("p",{children:`Appointing a folder to a role here doesn't touch any other role, and doesn't move or rename anything on the server — it just tells Remit which folder to treat as e.g. "Drafts" everywhere (sidebar, unread badges, the compose flow).`}),e.jsxs("p",{children:[e.jsx("strong",{className:"text-fg",children:"Your folders"})," is the account's real hierarchy. Open a folder to see what's inside it, make a new one where you're looking, and rename or delete any of them from its row."]})]})}function ts({accountEmail:s,folders:t,appointments:r,displayNames:l={},onAppoint:d,onRename:a}){const m=new Set(Object.values(r).map(i=>i.mailboxId).filter(i=>i!=null)),o=t.filter(i=>!m.has(i.mailboxId));return e.jsxs("section",{className:"space-y-3",children:[e.jsxs("header",{className:"space-y-1",children:[e.jsxs("h2",{className:"text-sm font-semibold text-fg",children:["Folder roles — ",s]}),e.jsx("p",{className:"text-xs text-fg-muted",children:"Each row says where its answer came from — your choice, the mail server's own flag, or a name reader matched."})]}),e.jsx("div",{className:"rounded-sm border border-line bg-surface",children:We.map(i=>{const h=r[i]??Xe;return e.jsx(es,{role:i,folders:t,appointment:h,displayName:h.mailboxId?l[h.mailboxId]??"":"",onAppoint:d,onRename:a},i)})}),o.length>0&&e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("h3",{className:"text-xs font-medium text-fg-muted",children:"Other folders"}),e.jsx("ul",{className:"rounded-sm border border-line bg-surface",children:o.map(i=>e.jsxs("li",{className:"flex items-center gap-2 border-b border-line px-row-inset py-2 text-sm text-fg last:border-b-0",children:[e.jsx(xe,{className:"size-4 shrink-0 text-fg-subtle"}),e.jsx("span",{className:"truncate",children:Q(i.providerPath,i.hierarchyDelimiter)}),e.jsx("span",{className:"ml-auto shrink-0 text-2xs text-fg-subtle",children:le(i.messageCount)})]},i.mailboxId))})]})]})}const as=12e4,rs=2e3,ns="This folder is no longer in the account's folder list, so nothing was deleted.",ce=(s,t)=>{const r=s.find(l=>l.mailboxId===t);if(!r)throw new Error(ns);return r},is=(s,t)=>ce(s,t).lastSyncedAt??0;async function os({readMailboxes:s,mailboxId:t,since:r,signal:l,segmentMs:d=as,pollIntervalMs:a=rs,delay:m=be,now:o=Date.now}){const i=o()+d;for(;;){l?.throwIfAborted();const h=ce(await s(),t);if((h.lastSyncedAt??0)>r)return{status:"fresh",messageCount:h.messagesTotal};if(o()>=i)return{status:"pending"};await m(a,l)}}const de=50,ls=s=>s instanceof Error?s.message:"Something went wrong.",P=s=>s.then(t=>({ok:!0,value:t}),t=>({ok:!1,error:ls(t)})),cs=async(s,t,r,l)=>{const d=[];let a;for(let m=0;m<de;m+=1){if(l.aborted)return d;const{data:o}=await te({path:{mailboxId:s},query:{order:"desc",continuationToken:a},throwOnError:!0});for(const i of o.items)if(!t.has(i.messageId)&&!d.includes(i.messageId)&&(d.push(i.messageId),d.length>=r))return d;if(!o.continuationToken)break;a=o.continuationToken}return d},ds=async(s,t)=>{let r=0,l;for(let d=0;d<de;d+=1){if(t.aborted)return r;const{data:a}=await te({path:{mailboxId:s},query:{order:"desc",continuationToken:l},throwOnError:!0});if(r+=a.items.length,!a.continuationToken)break;l=a.continuationToken}return r};function ms({accountId:s,mailboxId:t,onDeleted:r}){const l=Z(),[d,a]=c.useState("idle"),[m,o]=c.useState(null),[i,h]=c.useState(),[p,g]=c.useState(),v=c.useRef(null),j=c.useRef(void 0),u=c.useCallback(()=>{l.invalidateQueries({queryKey:ee({path:{accountId:s}})}),l.invalidateQueries({queryKey:se()})},[l,s]),f=c.useCallback(async()=>{a("deleting");const k=await P(ve({path:{accountId:s,mailboxId:t},throwOnError:!0}));if(!k.ok){h(k.error),a("error");return}u(),a("done"),r()},[s,t,u,r]),O=c.useCallback(()=>je({path:{accountId:s},throwOnError:!0}).then(({data:k})=>k.items.find(S=>S.mailboxId===t)?.messageCount??0),[s,t]),M=c.useCallback(()=>l.fetchQuery({...ye({path:{accountId:s}}),staleTime:0}).then(k=>k.mailboxes??[]),[l,s]),w=c.useCallback(async()=>{const k=new AbortController;v.current=k;const{signal:S}=k;a("checking"),h(void 0);const I=j.current!==void 0,C=await P((async()=>(I||(S.throwIfAborted(),j.current=is(await M(),t),S.throwIfAborted(),g(Date.now()),await Ne({path:{accountId:s},throwOnError:!0})),os({readMailboxes:M,mailboxId:t,since:j.current??0,signal:S})))());return S.aborted?(a("idle"),j.current=void 0,{status:"failed"}):C.ok?C.value.status==="pending"?(a("check-stalled"),{status:"pending"}):(j.current=void 0,C.value.messageCount>0?(a("idle"),u(),{status:"blocked",messageCount:C.value.messageCount}):(await f(),{status:"deleted"})):(j.current=void 0,h(C.error),a("error"),{status:"failed"})},[s,t,M,f,u]),D=c.useCallback(()=>{v.current?.abort()},[]),N=c.useCallback(async k=>{const S=new AbortController;v.current=S;const{signal:I}=S;a("moving"),h(void 0);const C=await P(O());if(I.aborted)return;if(!C.ok){h(C.error),a("error");return}let x=ke(C.value);o(x);const E=new Set;for(;;){if(I.aborted)return;const n=await P(cs(t,E,Se,I));if(I.aborted)return;if(!n.ok){x=_(x,n.error),o(x),h(n.error),a("error");return}const b=n.value;if(b.length===0)break;const F=await P(Ce({body:{messageIds:b,destinationMailboxId:k},throwOnError:!0}));if(I.aborted)return;if(!F.ok){x=_(x,F.error),o(x),h(F.error),a("error");return}for(const $ of b)E.add($);x=we(x,b.length),o(x)}const A=await P(ds(t,I));if(!I.aborted){if(!A.ok){x=_(x,A.error),o(x),h(A.error),a("error");return}if(A.value>0){const n=`${A.value} ${A.value===1?"email is":"emails are"} still syncing. Re-open delete to finish removing this folder.`;x=_(x,n),o(x),h(n),a("error"),u();return}await f()}},[t,O,f,u]),R=c.useCallback(()=>{v.current?.abort(),v.current=null,j.current=void 0,a("idle"),o(null),h(void 0),g(void 0)},[]);return{phase:d,progress:m,errorMessage:i,checkStartedAt:p,deleteMailbox:f,deleteIfEmpty:w,moveThenDelete:N,cancel:D,reset:R}}const L=s=>`${s} ${s===1?"email":"emails"}`;function us({open:s,accountId:t,folder:r,mailboxes:l,appointments:d,onClose:a}){const[m,o]=c.useState(()=>H(r.messageCount)),[i,h]=c.useState(),[p,g]=c.useState(),{createFolderIn:v}=ae(t),j=re(),{phase:u,progress:f,errorMessage:O,checkStartedAt:M,deleteMailbox:w,deleteIfEmpty:D,moveThenDelete:N,cancel:R,reset:k}=ms({accountId:t,mailboxId:r.mailboxId,onDeleted:a}),[S,I]=c.useState("0:00"),C=u==="checking"||u==="check-stalled";c.useEffect(()=>{if(!C||M===void 0)return;const T=()=>I(Ee(Date.now()-M));T();const ue=setInterval(T,1e3);return()=>clearInterval(ue)},[C,M]),c.useEffect(()=>{s&&(o(H(r.messageCount)),h(void 0),k())},[s,k]),c.useEffect(()=>{s&&g(void 0)},[s]),c.useEffect(()=>R,[R]);const x=c.useCallback(()=>{R(),a()},[R,a]),E=c.useCallback(async()=>{const T=await D();T.status==="blocked"&&(h(T.messageCount),o("choose-fate"))},[D]),A=c.useMemo(()=>Ie({mailboxes:l,folderAppointments:d,excludeMailboxId:r.mailboxId,translator:j}),[l,d,r.mailboxId,j]),n=A.find(T=>T.id===p),b=c.useMemo(()=>q(r,ne(d).get(r.mailboxId),j),[r,d,j]);if(!s)return null;const F=`Delete ${b}`,$=i??r.messageCount,me=u==="moving"?e.jsxs("div",{className:"flex flex-col items-center gap-3 px-5 py-10 text-center",children:[e.jsx(K,{className:"size-8 animate-spin text-accent-2"}),e.jsx("p",{className:"text-sm font-medium text-fg",children:"Moving emails…"}),e.jsx("p",{className:"text-xs text-fg-muted",role:"status","aria-live":"polite",children:f?G(f):"Moved 0 of 0"})]}):u==="checking"?e.jsxs("div",{className:"flex flex-col items-center gap-3 px-5 py-10 text-center",children:[e.jsx(K,{className:"size-8 animate-spin text-accent-2"}),e.jsx("p",{className:"text-sm font-medium text-fg",children:"Checking the folder on the mail server…"}),e.jsx("p",{className:"text-xs text-fg-muted",role:"status","aria-live":"polite",children:`Waiting ${S}. Nothing is deleted until the server answers.`})]}):u==="check-stalled"?e.jsxs("div",{className:"space-y-4 px-5 py-4",children:[e.jsx(z,{tone:"warning",variant:"soft",children:`The mail server hasn't reported back on this folder yet — ${S} so far. Nothing has been deleted.`}),e.jsx("p",{className:"text-xs text-fg-muted",children:"A sync covers the whole account, so a busy mailbox can take a while to come round to this folder."}),e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsx(y,{variant:"secondary",size:"sm",onClick:x,children:"Cancel"}),e.jsx(y,{size:"sm",onClick:()=>E(),children:"Keep waiting"})]})]}):u==="deleting"||u==="done"?e.jsxs("div",{className:"flex flex-col items-center gap-3 px-5 py-10 text-center",children:[e.jsx(K,{className:"size-8 animate-spin text-accent-2"}),e.jsx("p",{className:"text-sm font-medium text-fg",children:"Deleting folder…"})]}):u==="error"?e.jsxs("div",{className:"space-y-4 px-5 py-4",children:[e.jsx(z,{tone:"danger",variant:"soft",children:O??"Something went wrong. Please try again."}),f&&e.jsxs("p",{className:"text-xs text-fg-muted",children:[G(f),". Already-moved emails stay moved — re-open delete to continue with the rest."]}),e.jsx("div",{className:"flex justify-end",children:e.jsx(y,{variant:"secondary",size:"sm",onClick:x,children:"Close"})})]}):m==="confirm-empty"?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"space-y-3 px-5 py-4 text-sm text-fg-muted",children:e.jsxs("p",{children:["Delete ",e.jsx("strong",{className:"text-fg",children:b}),"? This folder is empty and will be removed from the server."]})}),e.jsxs("footer",{className:"flex items-center justify-end gap-2 border-t border-line px-5 py-3",children:[e.jsx(y,{variant:"secondary",size:"sm",onClick:x,children:"Cancel"}),e.jsx(y,{variant:"danger",size:"sm",icon:e.jsx(B,{className:"size-3.5"}),onClick:()=>E(),children:"Delete folder"})]})]}):m==="choose-fate"?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"space-y-3 px-5 py-4 text-sm text-fg-muted",children:[i!==void 0&&e.jsx(z,{tone:"warning",variant:"soft",children:`This folder is not empty: the mail server reports ${L(i)} in it. Nothing was deleted.`}),e.jsxs("p",{children:[e.jsx("strong",{className:"text-fg",children:b})," holds"," ",L($),". What should happen to them?"]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("button",{type:"button",onClick:()=>o("confirm-delete-all"),className:"flex w-full items-center gap-3 rounded-sm border border-line px-3 py-2.5 text-left hover:bg-surface-raised",children:[e.jsx(B,{className:"size-4 shrink-0 text-danger"}),e.jsxs("span",{className:"flex-1",children:[e.jsx("span",{className:"block text-sm font-medium text-fg",children:"Delete them with the folder"}),e.jsx("span",{className:"block text-xs text-fg-muted",children:"The emails are removed from the server and can't be recovered."})]})]}),e.jsxs("button",{type:"button",onClick:()=>o("pick-destination"),className:"flex w-full items-center gap-3 rounded-sm border border-line px-3 py-2.5 text-left hover:bg-surface-raised",children:[e.jsx(Be,{className:"size-4 shrink-0 text-accent-2"}),e.jsxs("span",{className:"flex-1",children:[e.jsx("span",{className:"block text-sm font-medium text-fg",children:"Move them to another folder"}),e.jsx("span",{className:"block text-xs text-fg-muted",children:"Keep the emails, then delete the emptied folder."})]})]})]})]}),e.jsx("footer",{className:"flex items-center justify-end gap-2 border-t border-line px-5 py-3",children:e.jsx(y,{variant:"secondary",size:"sm",onClick:x,children:"Cancel"})})]}):m==="confirm-delete-all"?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"space-y-3 px-5 py-4 text-sm text-fg-muted",children:e.jsxs("p",{children:["Delete ",e.jsx("strong",{className:"text-fg",children:b})," and its"," ",L($),"? The messages are removed from the server with the folder and can't be recovered."]})}),e.jsxs("footer",{className:"flex items-center justify-end gap-2 border-t border-line px-5 py-3",children:[e.jsx(y,{variant:"secondary",size:"sm",onClick:()=>o("choose-fate"),children:"Back"}),e.jsx(y,{variant:"danger",size:"sm",icon:e.jsx(B,{className:"size-3.5"}),onClick:()=>w(),children:"Delete folder and emails"})]})]}):e.jsxs("div",{className:"flex h-[26rem] flex-col",children:[e.jsxs("p",{className:"px-5 pt-4 text-sm text-fg-muted",children:["Move the ",L($)," in"," ",e.jsx("strong",{className:"text-fg",children:b})," to:"]}),e.jsx("div",{className:"flex min-h-0 flex-1 overflow-hidden",children:e.jsx(Y,{folders:A,selectedId:p,delimiter:l[0]?.hierarchyDelimiter??"/",onSelect:g,onCreateFolder:v,onCancel:()=>{g(void 0),o("choose-fate")},labels:{filterPlaceholder:"Move emails to…"}})}),n&&e.jsx("footer",{className:"shrink-0 border-t border-line p-2",children:e.jsx(y,{variant:"danger",onClick:()=>N(n.id),className:"h-11 w-full font-semibold",children:e.jsx("span",{className:"truncate",children:`Move ${L($)} to ${n.label}`})})})]});return e.jsxs(W,{open:s,onClose:x,title:F,children:[e.jsxs("header",{className:"flex items-center gap-2 border-b border-line px-5 py-3",children:[e.jsx(Me,{className:"size-4 shrink-0 text-danger"}),e.jsx("span",{className:"flex-1 text-sm font-semibold text-fg",children:F}),e.jsx(y,{variant:"ghost",size:"sm",icon:e.jsx(X,{className:"size-3.5"}),onClick:x,"aria-label":"Cancel"})]}),me]})}function hs({account:s}){const t=Z(),r=s.accountId,l=re(),{data:d,isPending:a,isError:m,error:o,refetch:i}=ie(Fe({path:{accountId:r}})),{createFolderIn:h}=ae(r),p=V({...Te(),meta:Re(409),onSuccess:()=>{t.invalidateQueries({queryKey:se()})}}),g=V({...$e(),onSuccess:()=>{t.invalidateQueries({queryKey:ee({path:{accountId:r}})})}}),[v,j]=c.useState(),[u,f]=c.useState(),[O,M]=c.useState(""),w=c.useMemo(()=>d?.items??[],[d]),D=c.useMemo(()=>ne(s.folderAppointments),[s.folderAppointments]),N=c.useMemo(()=>w.map(n=>({id:n.mailboxId,label:q(n,D.get(n.mailboxId),l),path:n.fullPath,deleteBlockedReason:Pe(n,w,s.folderAppointments).message,failure:qe(n)})),[w,D,l,s.folderAppointments]),R=(n,b)=>{p.mutate({path:{accountId:r,role:_e[n]},body:{mailboxId:b}})},k=(n,b)=>{const F=b.trim();g.mutate({path:{accountId:r,mailboxId:n},body:{displayNameOverride:F===""?null:F}})};if(a)return e.jsx("div",{className:"h-24 animate-pulse rounded-sm border border-line bg-surface","aria-busy":"true","aria-label":`Loading folders for ${s.email}`});if(m)return e.jsx(oe,{variant:"inline",title:`Couldn't load folders for ${s.email}`,error:o,onRetry:()=>{i()}});const S=w.map(n=>({mailboxId:n.mailboxId,providerPath:n.fullPath,hierarchyDelimiter:n.hierarchyDelimiter,messageCount:n.messageCount})),I={};for(const n of s.folderAppointments){const b=Le[n.role];b&&(I[b]={mailboxId:n.mailboxId??null,source:n.source,staleFolderPath:n.staleAppointmentPath})}const C={};for(const n of w)n.displayNameOverride&&(C[n.mailboxId]=n.displayNameOverride);const x=n=>w.find(b=>b.mailboxId===n),E=x(u),A=x(v);return e.jsxs("div",{className:"space-y-4",children:[(p.isError||g.isError)&&e.jsx(z,{tone:"danger",variant:"soft",children:ze(p.error)?"That folder is still being created on the mail server — wait for it to finish, then try again.":"Couldn't save that change. Please try again."}),e.jsx(ts,{accountEmail:s.email,folders:S,appointments:I,displayNames:C,onAppoint:R,onRename:k}),e.jsxs("section",{className:"space-y-1.5",children:[e.jsxs("h3",{className:"text-sm font-semibold text-fg",children:["Your folders — ",s.email]}),e.jsx("div",{className:"flex h-[28rem] flex-col overflow-hidden rounded-sm border border-line bg-surface",children:e.jsx(Ue,{folders:N,delimiter:w[0]?.hierarchyDelimiter??"/",onCreateFolder:h,onRename:n=>{f(n.id),M(x(n.id)?.displayNameOverride?.trim()??"")},onDelete:n=>j(n.id),labels:{treeAriaLabel:`All folders for ${s.email}`}})})]}),E&&e.jsx(Ye,{open:!0,folderLabel:q(E,D.get(E.mailboxId),l),defaultLabel:q({fullPath:E.fullPath,hierarchyDelimiter:E.hierarchyDelimiter},D.get(E.mailboxId),l),name:O,onNameChange:M,pending:g.isPending,error:g.isError?"Couldn't save that name. Please try again.":void 0,onSubmit:()=>{const n=O.trim();g.mutate({path:{accountId:r,mailboxId:E.mailboxId},body:{displayNameOverride:n===""?null:n}},{onSuccess:()=>f(void 0)})},onClose:()=>f(void 0)}),A&&e.jsx(us,{open:!0,accountId:r,folder:A,mailboxes:w,appointments:s.folderAppointments,onClose:()=>j(void 0)})]})}function Ms(){const s=Ae(),t=De(),r=Ke(),[l,d]=c.useState(!0),{data:a,isPending:m,isError:o,error:i,refetch:h}=ie(Oe());return e.jsx(Qe,{items:t,activeId:"folders",title:"Folder roles",description:"Appoint which real folder fills each canonical role, per account.",help:e.jsx(ss,{}),helpOpen:l,onToggleHelp:()=>d(p=>!p),onSelect:r,onBackToMail:()=>{s({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(oe,{title:"Couldn't load accounts",error:i,onRetry:()=>{h()}}):a.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:a.accounts.map(p=>e.jsx(hs,{account:p},p.accountId))})})}export{Ms as component};
|
package/assets/index-B--m5QrT.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-fsuIswbe.js";import{O as t}from"./OutboxPane-B6UfixBP.js";import"./MessageBody-jG4Dhul6.js";import"./kbd-jzPSd-a2.js";import"./search-scope-B-3MTDpD.js";import"./app-chrome-BfyGOiSA.js";import"./nav-link-ed0mFCCx.js";import"./useMediaQuery-Hy81MQ2M.js";import"./reply-CXuSMyqp.js";import"./useMessageBodyContent-CpTD2HGg.js";import"./outbox-status-BlKn6P0x.js";import"./NavMenuButton-CLp6InRG.js";import"./menu-Bh94jr77.js";import"./roving-focus-DZX7IpN4.js";import"./circle-check-big-CMsxQSjY.js";import"./clock-Dds4zv6u.js";import"./row-actions-BDfQKXdD.js";import"./rotate-ccw-hQhPZwrx.js";function P(){return o.jsx(t.Reading,{})}export{P as component};
|
package/assets/index-BuawSiTp.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-fsuIswbe.js";import{C as t}from"./CollectionPane-BzktgIp0.js";import"./useCollectionThreads-DgofDKen.js";import"./useQueries-DPH-PeHV.js";import"./useInfiniteQuery-B-vOuANs.js";import"./MessageToolbar-DeDUhCvg.js";import"./MessageBody-jG4Dhul6.js";import"./kbd-jzPSd-a2.js";import"./search-scope-B-3MTDpD.js";import"./app-chrome-BfyGOiSA.js";import"./nav-link-ed0mFCCx.js";import"./useMediaQuery-Hy81MQ2M.js";import"./reply-CXuSMyqp.js";import"./useMessageBodyContent-CpTD2HGg.js";import"./roving-focus-DZX7IpN4.js";import"./chevron-down-De4wQzka.js";import"./search-token-index-BYKMNlJD.js";import"./useLabels-k1VKuQrr.js";import"./index-Caon2n2j.js";import"./useSignature-W9HBbZ_n.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CFZ4EPXW.js";import"./suggest-list-BCqr1j26.js";import"./sections-DpRVKuXF.js";import"./useJunkMailboxIds-CW7aI25D.js";import"./badge-BB80tGxy.js";import"./undo-2-D1IMLq7c.js";import"./DropdownMenu-C2J8u8zN.js";import"./refresh-cw-Cu9_I3cT.js";import"./popover-menu-DhcuKv1N.js";import"./ErrorState-BTHOmsYP.js";import"./mail-BzFJWQZy.js";import"./download-DEuAIIIQ.js";import"./avatar-Bq7beWCy.js";import"./EmptyState-BJU14tbt.js";import"./circle-question-mark-DhNa_A16.js";import"./useFilters-DHWZEIQe.js";import"./select-TYdrgtW5.js";import"./plus-D5-2sA5v.js";import"./calendar-suggestion-EosZrXZC.js";import"./useCalendarSuggestions-DXbA0boT.js";import"./agenda-time-D0yU-H44.js";import"./calendar-format-BwCpz-JZ.js";import"./calendar-Ds9kgvU8.js";import"./calendar-failure-note-C4gNXDQV.js";import"./checkbox-CYOm-zGr.js";import"./clock-Dds4zv6u.js";import"./segmented-control-BwvsufVp.js";import"./useLayoutTier-BNUKvwJD.js";import"./menu-Bh94jr77.js";import"./folder-input-B0q8wLhf.js";import"./confirm-dialog-XvccFJdE.js";import"./label-chip-DtBVyALF.js";import"./cloud-off-BYulqayx.js";import"./MailViewChrome-CLgaFbe-.js";import"./wizard-selection-zWa1qc6-.js";function mo(){return o.jsx(t.Reading,{})}export{mo as component};
|
package/assets/index-C2YSZxRF.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-fsuIswbe.js";import{M as r}from"./MailboxPane-BxNCkl6s.js";import"./useInfiniteQuery-B-vOuANs.js";import"./MessageToolbar-DeDUhCvg.js";import"./MessageBody-jG4Dhul6.js";import"./kbd-jzPSd-a2.js";import"./search-scope-B-3MTDpD.js";import"./app-chrome-BfyGOiSA.js";import"./nav-link-ed0mFCCx.js";import"./useMediaQuery-Hy81MQ2M.js";import"./reply-CXuSMyqp.js";import"./useMessageBodyContent-CpTD2HGg.js";import"./roving-focus-DZX7IpN4.js";import"./chevron-down-De4wQzka.js";import"./search-token-index-BYKMNlJD.js";import"./useQueries-DPH-PeHV.js";import"./useLabels-k1VKuQrr.js";import"./index-Caon2n2j.js";import"./useSignature-W9HBbZ_n.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CFZ4EPXW.js";import"./suggest-list-BCqr1j26.js";import"./sections-DpRVKuXF.js";import"./useJunkMailboxIds-CW7aI25D.js";import"./badge-BB80tGxy.js";import"./undo-2-D1IMLq7c.js";import"./DropdownMenu-C2J8u8zN.js";import"./refresh-cw-Cu9_I3cT.js";import"./popover-menu-DhcuKv1N.js";import"./ErrorState-BTHOmsYP.js";import"./mail-BzFJWQZy.js";import"./download-DEuAIIIQ.js";import"./avatar-Bq7beWCy.js";import"./EmptyState-BJU14tbt.js";import"./circle-question-mark-DhNa_A16.js";import"./useFilters-DHWZEIQe.js";import"./select-TYdrgtW5.js";import"./plus-D5-2sA5v.js";import"./calendar-suggestion-EosZrXZC.js";import"./useCalendarSuggestions-DXbA0boT.js";import"./agenda-time-D0yU-H44.js";import"./calendar-format-BwCpz-JZ.js";import"./calendar-Ds9kgvU8.js";import"./calendar-failure-note-C4gNXDQV.js";import"./checkbox-CYOm-zGr.js";import"./clock-Dds4zv6u.js";import"./segmented-control-BwvsufVp.js";import"./useLayoutTier-BNUKvwJD.js";import"./menu-Bh94jr77.js";import"./folder-input-B0q8wLhf.js";import"./confirm-dialog-XvccFJdE.js";import"./label-chip-DtBVyALF.js";import"./cloud-off-BYulqayx.js";import"./useRefreshControl-DdbTrGxq.js";import"./circle-check-big-CMsxQSjY.js";import"./LabelApplyTrigger-P8IoLKME.js";import"./MailViewChrome-CLgaFbe-.js";import"./NavMenuButton-CLp6InRG.js";import"./shield-check-C-tOrPEx.js";import"./bottom-sheet-DKF_Dkid.js";import"./circle-check-DlR8I4Hf.js";function so(){return o.jsx(r.Reading,{})}export{so as component};
|
package/assets/index-CO1X8-aP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-fsuIswbe.js";import{C as t}from"./CollectionPane-BzktgIp0.js";import"./useCollectionThreads-DgofDKen.js";import"./useQueries-DPH-PeHV.js";import"./useInfiniteQuery-B-vOuANs.js";import"./MessageToolbar-DeDUhCvg.js";import"./MessageBody-jG4Dhul6.js";import"./kbd-jzPSd-a2.js";import"./search-scope-B-3MTDpD.js";import"./app-chrome-BfyGOiSA.js";import"./nav-link-ed0mFCCx.js";import"./useMediaQuery-Hy81MQ2M.js";import"./reply-CXuSMyqp.js";import"./useMessageBodyContent-CpTD2HGg.js";import"./roving-focus-DZX7IpN4.js";import"./chevron-down-De4wQzka.js";import"./search-token-index-BYKMNlJD.js";import"./useLabels-k1VKuQrr.js";import"./index-Caon2n2j.js";import"./useSignature-W9HBbZ_n.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CFZ4EPXW.js";import"./suggest-list-BCqr1j26.js";import"./sections-DpRVKuXF.js";import"./useJunkMailboxIds-CW7aI25D.js";import"./badge-BB80tGxy.js";import"./undo-2-D1IMLq7c.js";import"./DropdownMenu-C2J8u8zN.js";import"./refresh-cw-Cu9_I3cT.js";import"./popover-menu-DhcuKv1N.js";import"./ErrorState-BTHOmsYP.js";import"./mail-BzFJWQZy.js";import"./download-DEuAIIIQ.js";import"./avatar-Bq7beWCy.js";import"./EmptyState-BJU14tbt.js";import"./circle-question-mark-DhNa_A16.js";import"./useFilters-DHWZEIQe.js";import"./select-TYdrgtW5.js";import"./plus-D5-2sA5v.js";import"./calendar-suggestion-EosZrXZC.js";import"./useCalendarSuggestions-DXbA0boT.js";import"./agenda-time-D0yU-H44.js";import"./calendar-format-BwCpz-JZ.js";import"./calendar-Ds9kgvU8.js";import"./calendar-failure-note-C4gNXDQV.js";import"./checkbox-CYOm-zGr.js";import"./clock-Dds4zv6u.js";import"./segmented-control-BwvsufVp.js";import"./useLayoutTier-BNUKvwJD.js";import"./menu-Bh94jr77.js";import"./folder-input-B0q8wLhf.js";import"./confirm-dialog-XvccFJdE.js";import"./label-chip-DtBVyALF.js";import"./cloud-off-BYulqayx.js";import"./MailViewChrome-CLgaFbe-.js";import"./wizard-selection-zWa1qc6-.js";function mo(){return o.jsx(t.Reading,{})}export{mo as component};
|
package/assets/index-CPvSvBZB.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./index-fsuIswbe.js";import{B as o}from"./BriefPane-BQx5RRpb.js";import"./MessageToolbar-DeDUhCvg.js";import"./MessageBody-jG4Dhul6.js";import"./kbd-jzPSd-a2.js";import"./search-scope-B-3MTDpD.js";import"./app-chrome-BfyGOiSA.js";import"./nav-link-ed0mFCCx.js";import"./useMediaQuery-Hy81MQ2M.js";import"./reply-CXuSMyqp.js";import"./useMessageBodyContent-CpTD2HGg.js";import"./roving-focus-DZX7IpN4.js";import"./chevron-down-De4wQzka.js";import"./search-token-index-BYKMNlJD.js";import"./useQueries-DPH-PeHV.js";import"./useLabels-k1VKuQrr.js";import"./index-Caon2n2j.js";import"./useSignature-W9HBbZ_n.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CFZ4EPXW.js";import"./suggest-list-BCqr1j26.js";import"./sections-DpRVKuXF.js";import"./useJunkMailboxIds-CW7aI25D.js";import"./badge-BB80tGxy.js";import"./undo-2-D1IMLq7c.js";import"./DropdownMenu-C2J8u8zN.js";import"./refresh-cw-Cu9_I3cT.js";import"./popover-menu-DhcuKv1N.js";import"./ErrorState-BTHOmsYP.js";import"./mail-BzFJWQZy.js";import"./download-DEuAIIIQ.js";import"./avatar-Bq7beWCy.js";import"./EmptyState-BJU14tbt.js";import"./circle-question-mark-DhNa_A16.js";import"./useFilters-DHWZEIQe.js";import"./select-TYdrgtW5.js";import"./plus-D5-2sA5v.js";import"./calendar-suggestion-EosZrXZC.js";import"./useCalendarSuggestions-DXbA0boT.js";import"./agenda-time-D0yU-H44.js";import"./calendar-format-BwCpz-JZ.js";import"./calendar-Ds9kgvU8.js";import"./calendar-failure-note-C4gNXDQV.js";import"./checkbox-CYOm-zGr.js";import"./clock-Dds4zv6u.js";import"./segmented-control-BwvsufVp.js";import"./useLayoutTier-BNUKvwJD.js";import"./menu-Bh94jr77.js";import"./folder-input-B0q8wLhf.js";import"./confirm-dialog-XvccFJdE.js";import"./label-chip-DtBVyALF.js";import"./cloud-off-BYulqayx.js";import"./LabelApplyTrigger-P8IoLKME.js";import"./useRefreshControl-DdbTrGxq.js";import"./circle-check-big-CMsxQSjY.js";import"./wizard-selection-zWa1qc6-.js";function mr(){return r.jsx(o.Reading,{})}export{mr as component};
|
package/assets/index-ChWo5_90.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-fsuIswbe.js";import{C as r}from"./CollectionPane-BzktgIp0.js";import"./useCollectionThreads-DgofDKen.js";import"./useQueries-DPH-PeHV.js";import"./useInfiniteQuery-B-vOuANs.js";import"./MessageToolbar-DeDUhCvg.js";import"./MessageBody-jG4Dhul6.js";import"./kbd-jzPSd-a2.js";import"./search-scope-B-3MTDpD.js";import"./app-chrome-BfyGOiSA.js";import"./nav-link-ed0mFCCx.js";import"./useMediaQuery-Hy81MQ2M.js";import"./reply-CXuSMyqp.js";import"./useMessageBodyContent-CpTD2HGg.js";import"./roving-focus-DZX7IpN4.js";import"./chevron-down-De4wQzka.js";import"./search-token-index-BYKMNlJD.js";import"./useLabels-k1VKuQrr.js";import"./index-Caon2n2j.js";import"./useSignature-W9HBbZ_n.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CFZ4EPXW.js";import"./suggest-list-BCqr1j26.js";import"./sections-DpRVKuXF.js";import"./useJunkMailboxIds-CW7aI25D.js";import"./badge-BB80tGxy.js";import"./undo-2-D1IMLq7c.js";import"./DropdownMenu-C2J8u8zN.js";import"./refresh-cw-Cu9_I3cT.js";import"./popover-menu-DhcuKv1N.js";import"./ErrorState-BTHOmsYP.js";import"./mail-BzFJWQZy.js";import"./download-DEuAIIIQ.js";import"./avatar-Bq7beWCy.js";import"./EmptyState-BJU14tbt.js";import"./circle-question-mark-DhNa_A16.js";import"./useFilters-DHWZEIQe.js";import"./select-TYdrgtW5.js";import"./plus-D5-2sA5v.js";import"./calendar-suggestion-EosZrXZC.js";import"./useCalendarSuggestions-DXbA0boT.js";import"./agenda-time-D0yU-H44.js";import"./calendar-format-BwCpz-JZ.js";import"./calendar-Ds9kgvU8.js";import"./calendar-failure-note-C4gNXDQV.js";import"./checkbox-CYOm-zGr.js";import"./clock-Dds4zv6u.js";import"./segmented-control-BwvsufVp.js";import"./useLayoutTier-BNUKvwJD.js";import"./menu-Bh94jr77.js";import"./folder-input-B0q8wLhf.js";import"./confirm-dialog-XvccFJdE.js";import"./label-chip-DtBVyALF.js";import"./cloud-off-BYulqayx.js";import"./MailViewChrome-CLgaFbe-.js";import"./wizard-selection-zWa1qc6-.js";function mo(){return o.jsx(r.Reading,{})}export{mo as component};
|
package/assets/index-DGb7Ls8y.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{fu as o,j as r}from"./index-fsuIswbe.js";import{C as m}from"./CalendarEventPopup-D6PNfUfu.js";import"./useCalendarSuggestions-DXbA0boT.js";import"./ErrorState-BTHOmsYP.js";import"./useQueries-DPH-PeHV.js";import"./useCalendarData-DFG3pzeG.js";import"./useCalendarTasks-b_UNFPQH.js";import"./calendar-format-BwCpz-JZ.js";import"./nav-link-ed0mFCCx.js";import"./useMediaQuery-Hy81MQ2M.js";import"./calendar-Ds9kgvU8.js";import"./reply-CXuSMyqp.js";import"./CalendarSession-BosFoHg2.js";import"./calendar-event-popup-Cr_LW8IP.js";import"./pencil-BDbmS56C.js";import"./calendar-guests-Cay9Ub8h.js";import"./circle-question-mark-DhNa_A16.js";import"./confirm-dialog-XvccFJdE.js";function b(){const{calendarObjectId:t}=o.useParams();return r.jsx(m,{calendarObjectId:t})}export{b as component};
|
package/assets/index-DLRo9M2D.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-fsuIswbe.js";import{M as i}from"./MailboxPane-BxNCkl6s.js";import"./useInfiniteQuery-B-vOuANs.js";import"./MessageToolbar-DeDUhCvg.js";import"./MessageBody-jG4Dhul6.js";import"./kbd-jzPSd-a2.js";import"./search-scope-B-3MTDpD.js";import"./app-chrome-BfyGOiSA.js";import"./nav-link-ed0mFCCx.js";import"./useMediaQuery-Hy81MQ2M.js";import"./reply-CXuSMyqp.js";import"./useMessageBodyContent-CpTD2HGg.js";import"./roving-focus-DZX7IpN4.js";import"./chevron-down-De4wQzka.js";import"./search-token-index-BYKMNlJD.js";import"./useQueries-DPH-PeHV.js";import"./useLabels-k1VKuQrr.js";import"./index-Caon2n2j.js";import"./useSignature-W9HBbZ_n.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CFZ4EPXW.js";import"./suggest-list-BCqr1j26.js";import"./sections-DpRVKuXF.js";import"./useJunkMailboxIds-CW7aI25D.js";import"./badge-BB80tGxy.js";import"./undo-2-D1IMLq7c.js";import"./DropdownMenu-C2J8u8zN.js";import"./refresh-cw-Cu9_I3cT.js";import"./popover-menu-DhcuKv1N.js";import"./ErrorState-BTHOmsYP.js";import"./mail-BzFJWQZy.js";import"./download-DEuAIIIQ.js";import"./avatar-Bq7beWCy.js";import"./EmptyState-BJU14tbt.js";import"./circle-question-mark-DhNa_A16.js";import"./useFilters-DHWZEIQe.js";import"./select-TYdrgtW5.js";import"./plus-D5-2sA5v.js";import"./calendar-suggestion-EosZrXZC.js";import"./useCalendarSuggestions-DXbA0boT.js";import"./agenda-time-D0yU-H44.js";import"./calendar-format-BwCpz-JZ.js";import"./calendar-Ds9kgvU8.js";import"./calendar-failure-note-C4gNXDQV.js";import"./checkbox-CYOm-zGr.js";import"./clock-Dds4zv6u.js";import"./segmented-control-BwvsufVp.js";import"./useLayoutTier-BNUKvwJD.js";import"./menu-Bh94jr77.js";import"./folder-input-B0q8wLhf.js";import"./confirm-dialog-XvccFJdE.js";import"./label-chip-DtBVyALF.js";import"./cloud-off-BYulqayx.js";import"./useRefreshControl-DdbTrGxq.js";import"./circle-check-big-CMsxQSjY.js";import"./LabelApplyTrigger-P8IoLKME.js";import"./MailViewChrome-CLgaFbe-.js";import"./NavMenuButton-CLp6InRG.js";import"./shield-check-C-tOrPEx.js";import"./bottom-sheet-DKF_Dkid.js";import"./circle-check-DlR8I4Hf.js";function so(){return o.jsx(i.Reading,{})}export{so as component};
|
package/assets/index-DemsYVll.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{fx as t,j as m}from"./index-fsuIswbe.js";import{C as p}from"./CalendarEventPopup-D6PNfUfu.js";import"./useCalendarSuggestions-DXbA0boT.js";import"./ErrorState-BTHOmsYP.js";import"./useQueries-DPH-PeHV.js";import"./useCalendarData-DFG3pzeG.js";import"./useCalendarTasks-b_UNFPQH.js";import"./calendar-format-BwCpz-JZ.js";import"./nav-link-ed0mFCCx.js";import"./useMediaQuery-Hy81MQ2M.js";import"./calendar-Ds9kgvU8.js";import"./reply-CXuSMyqp.js";import"./CalendarSession-BosFoHg2.js";import"./calendar-event-popup-Cr_LW8IP.js";import"./pencil-BDbmS56C.js";import"./calendar-guests-Cay9Ub8h.js";import"./circle-question-mark-DhNa_A16.js";import"./confirm-dialog-XvccFJdE.js";function b(){const{calendarObjectId:r,recurrenceId:o}=t.useParams();return m.jsx(p,{calendarObjectId:r,recurrenceId:o})}export{b as component};
|
package/assets/index-Dylwxpr-.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./index-fsuIswbe.js";import{B as o}from"./BriefPane-BQx5RRpb.js";import"./MessageToolbar-DeDUhCvg.js";import"./MessageBody-jG4Dhul6.js";import"./kbd-jzPSd-a2.js";import"./search-scope-B-3MTDpD.js";import"./app-chrome-BfyGOiSA.js";import"./nav-link-ed0mFCCx.js";import"./useMediaQuery-Hy81MQ2M.js";import"./reply-CXuSMyqp.js";import"./useMessageBodyContent-CpTD2HGg.js";import"./roving-focus-DZX7IpN4.js";import"./chevron-down-De4wQzka.js";import"./search-token-index-BYKMNlJD.js";import"./useQueries-DPH-PeHV.js";import"./useLabels-k1VKuQrr.js";import"./index-Caon2n2j.js";import"./useSignature-W9HBbZ_n.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CFZ4EPXW.js";import"./suggest-list-BCqr1j26.js";import"./sections-DpRVKuXF.js";import"./useJunkMailboxIds-CW7aI25D.js";import"./badge-BB80tGxy.js";import"./undo-2-D1IMLq7c.js";import"./DropdownMenu-C2J8u8zN.js";import"./refresh-cw-Cu9_I3cT.js";import"./popover-menu-DhcuKv1N.js";import"./ErrorState-BTHOmsYP.js";import"./mail-BzFJWQZy.js";import"./download-DEuAIIIQ.js";import"./avatar-Bq7beWCy.js";import"./EmptyState-BJU14tbt.js";import"./circle-question-mark-DhNa_A16.js";import"./useFilters-DHWZEIQe.js";import"./select-TYdrgtW5.js";import"./plus-D5-2sA5v.js";import"./calendar-suggestion-EosZrXZC.js";import"./useCalendarSuggestions-DXbA0boT.js";import"./agenda-time-D0yU-H44.js";import"./calendar-format-BwCpz-JZ.js";import"./calendar-Ds9kgvU8.js";import"./calendar-failure-note-C4gNXDQV.js";import"./checkbox-CYOm-zGr.js";import"./clock-Dds4zv6u.js";import"./segmented-control-BwvsufVp.js";import"./useLayoutTier-BNUKvwJD.js";import"./menu-Bh94jr77.js";import"./folder-input-B0q8wLhf.js";import"./confirm-dialog-XvccFJdE.js";import"./label-chip-DtBVyALF.js";import"./cloud-off-BYulqayx.js";import"./LabelApplyTrigger-P8IoLKME.js";import"./useRefreshControl-DdbTrGxq.js";import"./circle-check-big-CMsxQSjY.js";import"./wizard-selection-zWa1qc6-.js";function mr(){return r.jsx(o.Reading,{})}export{mr as component};
|
package/assets/index-YwusJB4d.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-fsuIswbe.js";import{C as r}from"./CollectionPane-BzktgIp0.js";import"./useCollectionThreads-DgofDKen.js";import"./useQueries-DPH-PeHV.js";import"./useInfiniteQuery-B-vOuANs.js";import"./MessageToolbar-DeDUhCvg.js";import"./MessageBody-jG4Dhul6.js";import"./kbd-jzPSd-a2.js";import"./search-scope-B-3MTDpD.js";import"./app-chrome-BfyGOiSA.js";import"./nav-link-ed0mFCCx.js";import"./useMediaQuery-Hy81MQ2M.js";import"./reply-CXuSMyqp.js";import"./useMessageBodyContent-CpTD2HGg.js";import"./roving-focus-DZX7IpN4.js";import"./chevron-down-De4wQzka.js";import"./search-token-index-BYKMNlJD.js";import"./useLabels-k1VKuQrr.js";import"./index-Caon2n2j.js";import"./useSignature-W9HBbZ_n.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CFZ4EPXW.js";import"./suggest-list-BCqr1j26.js";import"./sections-DpRVKuXF.js";import"./useJunkMailboxIds-CW7aI25D.js";import"./badge-BB80tGxy.js";import"./undo-2-D1IMLq7c.js";import"./DropdownMenu-C2J8u8zN.js";import"./refresh-cw-Cu9_I3cT.js";import"./popover-menu-DhcuKv1N.js";import"./ErrorState-BTHOmsYP.js";import"./mail-BzFJWQZy.js";import"./download-DEuAIIIQ.js";import"./avatar-Bq7beWCy.js";import"./EmptyState-BJU14tbt.js";import"./circle-question-mark-DhNa_A16.js";import"./useFilters-DHWZEIQe.js";import"./select-TYdrgtW5.js";import"./plus-D5-2sA5v.js";import"./calendar-suggestion-EosZrXZC.js";import"./useCalendarSuggestions-DXbA0boT.js";import"./agenda-time-D0yU-H44.js";import"./calendar-format-BwCpz-JZ.js";import"./calendar-Ds9kgvU8.js";import"./calendar-failure-note-C4gNXDQV.js";import"./checkbox-CYOm-zGr.js";import"./clock-Dds4zv6u.js";import"./segmented-control-BwvsufVp.js";import"./useLayoutTier-BNUKvwJD.js";import"./menu-Bh94jr77.js";import"./folder-input-B0q8wLhf.js";import"./confirm-dialog-XvccFJdE.js";import"./label-chip-DtBVyALF.js";import"./cloud-off-BYulqayx.js";import"./MailViewChrome-CLgaFbe-.js";import"./wizard-selection-zWa1qc6-.js";function mo(){return o.jsx(r.Reading,{})}export{mo as component};
|
package/assets/index-Zfii_-4V.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t,ad as o}from"./index-fsuIswbe.js";const n=()=>t.jsx(o,{to:"/settings/accounts"});export{n as component};
|