@remit/web-client-dist 0.0.539 → 0.0.540
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-Co0mZE8s.js +1 -0
- package/assets/{CalendarComposePane-tQ70DMF5.js → CalendarComposePane-hyJoj3Dg.js} +1 -1
- package/assets/{CalendarComposeSeed-BDYrBoOn.js → CalendarComposeSeed-Bu50x2dX.js} +1 -1
- package/assets/{CalendarShell-NLYcQtjI.js → CalendarShell-ePD1_Op3.js} +1 -1
- package/assets/{EmptyState-kUDfGSa-.js → EmptyState-BdCkP5AQ.js} +1 -1
- package/assets/{ErrorState-VDo7BEXi.js → ErrorState-DnP3nuQj.js} +1 -1
- package/assets/{FlaggedPane-D797wNm2.js → FlaggedPane-DbUZLTPm.js} +1 -1
- package/assets/{FullCompose-zR5425gW.js → FullCompose-D4Ylza8j.js} +1 -1
- package/assets/MailListHeader-ClE-7KOR.js +7 -0
- package/assets/MailNav-CuDBo5CI.js +1 -0
- package/assets/{MailShell-tZFfzwz5.js → MailShell-CLSYew2Y.js} +1 -1
- package/assets/MailViewChrome-X5GzZKQ3.js +1 -0
- package/assets/{MailboxPane-BopLrNNz.js → MailboxPane-CtJKtVAL.js} +1 -1
- package/assets/{NavMenuButton-CfCIoTCV.js → NavMenuButton-B4aMX12x.js} +1 -1
- package/assets/{OnboardingWizard-2mTY55FL.js → OnboardingWizard-X4pJoFv_.js} +1 -1
- package/assets/{OpenCalendarEvent-V_qj0EjB.js → OpenCalendarEvent-CMXC6E_2.js} +2 -2
- package/assets/OutboxPane-BN2ai2Ty.js +1 -0
- package/assets/_calendarObjectId-BzQGYl8-.js +1 -0
- package/assets/_mailboxId-Bn8WT0ZN.js +1 -0
- package/assets/_messageId-BMbtR72L.js +1 -0
- package/assets/_messageId-BNyb2SsV.js +1 -0
- package/assets/_messageId-DL8bDkYM.js +1 -0
- package/assets/_outboxMessageId-SkMpKi6o.js +1 -0
- package/assets/_recurrenceId-CmlMpqt0.js +1 -0
- package/assets/_threadId-2Ox0DKuz.js +1 -0
- package/assets/_threadId-Djg6bm0t.js +1 -0
- package/assets/_threadId-z4FVWVHh.js +1 -0
- package/assets/_view._date-0dtfzomM.js +1 -0
- package/assets/{accounts-NoIrbDGD.js → accounts-CvaziCq1.js} +1 -1
- package/assets/{advanced-CDSXEaTr.js → advanced-CaQQy_06.js} +2 -2
- package/assets/{appearance-DWg9Fev-.js → appearance-dxexmUHm.js} +1 -1
- package/assets/{attachment-file-BqkgTk5V.js → attachment-file-C3DTeisQ.js} +1 -1
- package/assets/{attendee-row-Cv_RoZCD.js → attendee-row-Bwi60s_V.js} +1 -1
- package/assets/{avatar-5AJpJDbh.js → avatar-AY5Dt8LE.js} +1 -1
- package/assets/{bottom-sheet-CelNqy1y.js → bottom-sheet-BZe_vbzK.js} +1 -1
- package/assets/brief-CJjG3b0J.js +1 -0
- package/assets/{brief-DBM3Ph9C.js → brief-CNGFr6Yg.js} +1 -1
- package/assets/{browser-ponyfill-CpwZ1QuB.js → browser-ponyfill-DIQ8Qdh5.js} +1 -1
- package/assets/{bug-DnU8bYv9.js → bug-WnLM0UgD.js} +1 -1
- package/assets/calendar-TWRaZed0.js +1 -0
- package/assets/{calendar-color-CHnffHyS.js → calendar-color-BUARZfus.js} +1 -1
- package/assets/{calendar-event-chip-C9NOIAJ7.js → calendar-event-chip-B_u69f-N.js} +1 -1
- package/assets/{calendars-DnRJcpuO.js → calendars-nOS6Mu0n.js} +1 -1
- package/assets/{card-BIo-eYcK.js → card-DBGV_PZ3.js} +1 -1
- package/assets/chevron-left-BXRLj25s.js +1 -0
- package/assets/{circle-check-DYx-rw9M.js → circle-check-BaVTT40A.js} +1 -1
- package/assets/{circle-check-big-CiGlGCl1.js → circle-check-big-CwfmVnh7.js} +1 -1
- package/assets/{circle-help-D_5w7LgQ.js → circle-help-06qHvAfU.js} +1 -1
- package/assets/{clock-BkwpZS6T.js → clock-Gwq7g-Da.js} +1 -1
- package/assets/compose._-_outboxMessageId_-CNcRwOLx.js +1 -0
- package/assets/compose._-_outboxMessageId_-DEEfCLUm.js +1 -0
- package/assets/compose._-_outboxMessageId_-DI46oyMt.js +1 -0
- package/assets/compose._-_outboxMessageId_-hMD1LVkx.js +1 -0
- package/assets/{config-import-CHkWlsTW.js → config-import-DoWT_EAS.js} +1 -1
- package/assets/{confirm-dialog-Bay01642.js → confirm-dialog-DZ4aQF6g.js} +1 -1
- package/assets/{copy-8LApphug.js → copy-DkKuWm0c.js} +1 -1
- package/assets/{credential-steps-tHE5fDmz.js → credential-steps-CeZHdxc5.js} +1 -1
- package/assets/{download-oST1Pv8p.js → download-CqKKAIJQ.js} +1 -1
- package/assets/{file-json-DnRKjKiP.js → file-json-B6rzD3H8.js} +1 -1
- package/assets/{filters-Buglze8m.js → filters-BDwe7gyO.js} +1 -1
- package/assets/{flagged-CJjphuiU.js → flagged-DViv6u3y.js} +1 -1
- package/assets/flagged-FVu2M4u5.js +1 -0
- package/assets/folders-BAxlPwUC.js +1 -0
- package/assets/{format-CWO8MVm7.js → format-BsQsuUpr.js} +1 -1
- package/assets/{help-copy-BwQIRzP8.js → help-copy-DYgs4s85.js} +1 -1
- package/assets/{import-otv52wgG.js → import-FvKvFVYS.js} +1 -1
- package/assets/index-7FxszuC7.js +1 -0
- package/assets/index-B8FdP0Ot.js +1 -0
- package/assets/index-BJUYN-vQ.js +1 -0
- package/assets/index-BNyb2SsV.js +1 -0
- package/assets/index-BXa9_Hwn.js +1 -0
- package/assets/{index-DsRBPRBB.js → index-C0a6bCN0.js} +4 -4
- package/assets/index-CA_WtXUl.js +1 -0
- package/assets/index-CSI7q7DF.js +1 -0
- package/assets/index-DK1XTIMy.js +294 -0
- package/assets/index-DiRqYk6B.js +1 -0
- package/assets/index-snPkdxft.js +1 -0
- package/assets/{index-DDXWq0c8.js → index-xV4B4tT5.js} +1 -1
- package/assets/{kbd-B9nU8EDr.js → kbd-CbXV7QgV.js} +1 -1
- package/assets/{labels-DBHZvdEr.js → labels-DVdKMlHI.js} +1 -1
- package/assets/mail-CDLlzsEu.js +1 -0
- package/assets/{mail-B-HBRveP.js → mail-CX_M3ZaK.js} +1 -1
- package/assets/{map-pin--HA8ooZj.js → map-pin-BzCex3C5.js} +1 -1
- package/assets/{menu-CL8oYhg5.js → menu-DgMXeepJ.js} +1 -1
- package/assets/{new-jRPRW8fh.js → new-BFOK0ukg.js} +1 -1
- package/assets/{onboarding-completion-DZv9f55o.js → onboarding-completion-CIviocRF.js} +1 -1
- package/assets/onboarding-jQimuk32.js +1 -0
- package/assets/outbox-Uv5os5yF.js +1 -0
- package/assets/{pencil-D0RtlkgQ.js → pencil-Bgw9e7_w.js} +1 -1
- package/assets/{refresh-cw-aknANAyZ.js → refresh-cw-CcuDPV5k.js} +1 -1
- package/assets/{rich-text-Bpmt0Q2Q.js → rich-text-BISD3Im3.js} +15 -15
- package/assets/{rich-text-spellcheck-worker-provider-CAEYgLim.js → rich-text-spellcheck-worker-provider-CVz99GW3.js} +1 -1
- package/assets/{rotate-ccw-ANFMG0Un.js → rotate-ccw-AlfAgfGe.js} +1 -1
- package/assets/roving-focus-DRROh6Uy.js +1 -0
- package/assets/{row-actions-CT3DvHHR.js → row-actions-ChjDHolx.js} +1 -1
- package/assets/{search-mirror-w8o3KYuJ.js → search-mirror-D1cqqKK8.js} +1 -1
- package/assets/{search-token-index-dunAqY2l.js → search-token-index-C_NIqH3k.js} +1 -1
- package/assets/{sections-CpLvdf_Q.js → sections-zx6jtsQS.js} +1 -1
- package/assets/{senders-DGhCm9Cq.js → senders-C4vP8Blp.js} +1 -1
- package/assets/settings-BsFT0_yG.js +1 -0
- package/assets/{settings-screen-n7380RZQ.js → settings-screen-CwZLzFGs.js} +1 -1
- package/assets/{shield-check-BqYHKvFE.js → shield-check-D9IpX20s.js} +1 -1
- package/assets/{suggested-vips-BAvZjSyo.js → suggested-vips-Jx4WWEj-.js} +1 -1
- package/assets/{useCalendarData-D1EN840n.js → useCalendarData-CatARR-y.js} +1 -1
- package/assets/{useCalendars-DH8nOZcd.js → useCalendars-Ds-INSYh.js} +1 -1
- package/assets/{useDebouncedValue-Dv0WkGIF.js → useDebouncedValue-iy6rCsVF.js} +1 -1
- package/assets/{useFilters-DS_Q_iog.js → useFilters-57vaVKZX.js} +1 -1
- package/assets/{useLabels-j2kudmYw.js → useLabels-C0KPaiKA.js} +1 -1
- package/assets/{useLayoutTier-CCGjVGyC.js → useLayoutTier-CpATB7iR.js} +1 -1
- package/assets/{useMessageBodyContent-CRGA_hjE.js → useMessageBodyContent-gGJsjfrN.js} +1 -1
- package/assets/{useQueries-djG1CrNB.js → useQueries-Dma0EVTG.js} +1 -1
- package/assets/{useRefreshControl-Bi0R4fuK.js → useRefreshControl-CismNnoG.js} +1 -1
- package/assets/{useResultFolderIndex-BCGAB_OB.js → useResultFolderIndex-BgwS9t8-.js} +1 -1
- package/assets/{useSearchTokenContext-9o7ruLw5.js → useSearchTokenContext-DvDS9ZrS.js} +3 -3
- package/assets/{useSemanticSearch-DYgnPGVP.js → useSemanticSearch-Bz8fpUyP.js} +1 -1
- package/assets/{useSignature--ONyUwiW.js → useSignature-B0sAF12W.js} +1 -1
- package/assets/{window--WwoSABt.js → window-m4jdj4Aj.js} +1 -1
- package/index.html +1 -1
- package/package.json +1 -1
- package/assets/BriefPane-Ip1tU4Q2.js +0 -1
- package/assets/MailListHeader-BNe_s60T.js +0 -7
- package/assets/MailNav-Bqn1DFhd.js +0 -1
- package/assets/MailViewChrome-B1fzfXtB.js +0 -1
- package/assets/OutboxPane-DlPDtcBL.js +0 -1
- package/assets/_calendarObjectId-CZ_xnOwy.js +0 -1
- package/assets/_mailboxId-DLTSNNdz.js +0 -1
- package/assets/_messageId-B4E9VsGl.js +0 -1
- package/assets/_messageId-CWNpxM_O.js +0 -1
- package/assets/_messageId-CdX9aQBn.js +0 -1
- package/assets/_outboxMessageId-nFK7r3Fh.js +0 -1
- package/assets/_recurrenceId-Dn5opwOe.js +0 -1
- package/assets/_threadId-DliBCvhK.js +0 -1
- package/assets/_threadId-QAbbdkCV.js +0 -1
- package/assets/_threadId-cDiMLExB.js +0 -1
- package/assets/_view._date-AOhQ7-Uc.js +0 -1
- package/assets/brief-D4AeeAY5.js +0 -1
- package/assets/calendar-Ckcu_24O.js +0 -1
- package/assets/chevron-left-K8Bg0uJl.js +0 -1
- package/assets/compose._-_outboxMessageId_-BMcDZaSg.js +0 -1
- package/assets/compose._-_outboxMessageId_-CXIL2PE5.js +0 -1
- package/assets/compose._-_outboxMessageId_-D_3HrLmE.js +0 -1
- package/assets/compose._-_outboxMessageId_-opDIhYx3.js +0 -1
- package/assets/flagged-CBQpNBN6.js +0 -1
- package/assets/folders-CNPLhb4H.js +0 -1
- package/assets/index-B9v6nYHl.js +0 -1
- package/assets/index-BiRvhN4V.js +0 -1
- package/assets/index-BmbIB1oc.js +0 -1
- package/assets/index-Bry1TMaW.js +0 -1
- package/assets/index-CWNpxM_O.js +0 -1
- package/assets/index-CdX9aQBn.js +0 -1
- package/assets/index-ClEohi1R.js +0 -1
- package/assets/index-CmthVe78.js +0 -1
- package/assets/index-CrPVnwJ1.js +0 -294
- package/assets/index-R-8APqxR.js +0 -1
- package/assets/mail-B9aZ_UMX.js +0 -1
- package/assets/onboarding-BWnBpp6S.js +0 -1
- package/assets/outbox-D_lL10Ql.js +0 -1
- package/assets/settings-DXWuEuQC.js +0 -1
package/assets/brief-D4AeeAY5.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r,O as i}from"./index-CrPVnwJ1.js";import{a as m}from"./MailShell-tZFfzwz5.js";import{B as o}from"./BriefPane-Ip1tU4Q2.js";import{d as p}from"./search-token-index-dunAqY2l.js";import{u as e}from"./search-mirror-w8o3KYuJ.js";import"./FullCompose-zR5425gW.js";import"./ErrorState-VDo7BEXi.js";import"./index-DsRBPRBB.js";import"./useMessageBodyContent-CRGA_hjE.js";import"./useSignature--ONyUwiW.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Dv0WkGIF.js";import"./sections-CpLvdf_Q.js";import"./format-CWO8MVm7.js";import"./confirm-dialog-Bay01642.js";import"./useSearchTokenContext-9o7ruLw5.js";import"./kbd-B9nU8EDr.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-BNe_s60T.js";import"./attachment-file-BqkgTk5V.js";import"./mail-B-HBRveP.js";import"./avatar-5AJpJDbh.js";import"./EmptyState-kUDfGSa-.js";import"./download-oST1Pv8p.js";import"./calendar-event-chip-C9NOIAJ7.js";import"./calendar-color-CHnffHyS.js";import"./map-pin--HA8ooZj.js";import"./attendee-row-Cv_RoZCD.js";import"./clock-BkwpZS6T.js";import"./useLayoutTier-CCGjVGyC.js";import"./shield-check-BqYHKvFE.js";import"./useFilters-DS_Q_iog.js";import"./useQueries-djG1CrNB.js";import"./menu-CL8oYhg5.js";import"./useRefreshControl-Bi0R4fuK.js";import"./circle-check-big-CiGlGCl1.js";import"./refresh-cw-aknANAyZ.js";import"./useSemanticSearch-DYgnPGVP.js";import"./useLabels-j2kudmYw.js";import"./search-query-Cr_ZXBCp.js";import"./wizard-selection-DxUM65kM.js";function W(){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{W as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as g,a as x,b as h,r as i,p as O,c as j,d as y,j as e,O as C}from"./index-CrPVnwJ1.js";import{C as N}from"./CalendarShell-NLYcQtjI.js";import{M as P}from"./MailNav-Bqn1DFhd.js";import{E}from"./ErrorState-VDo7BEXi.js";import{i as S,u as b}from"./useLayoutTier-CCGjVGyC.js";import"./useQueries-djG1CrNB.js";import"./outbox-status-BlKn6P0x.js";import"./bug-DnU8bYv9.js";function G(){const t=g(),c=S(b()),a=x(),r=h(),l=a.includes("nav"),n=i.useCallback(v=>{r(O(a,v?"nav":void 0))},[a,r]),{data:s,isLoading:u,isError:p,error:f,refetch:m}=j({...y(),staleTime:1/0}),o=!!(s&&(s.accounts?.length??0)===0);i.useEffect(()=>{o&&t({to:"/onboarding",replace:!0})},[o,t]);const d=s?.accounts??[];return p?e.jsx("div",{className:"flex h-full items-center justify-center bg-canvas p-4",children:e.jsx(E,{title:"Couldn't load your account",error:f,onRetry:()=>{m()}})}):e.jsx(N,{chrome:{isSinglePane:c,isLoading:u||o,nav:e.jsx(P,{accounts:d,onMailboxSelect:()=>n(!1)}),navOpen:l,onOpenNav:()=>n(!0),onCloseNav:()=>n(!1)},children:e.jsx(C,{})})}export{G as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e}from"./index-CrPVnwJ1.js";const t=e("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);export{t as C};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as o}from"./FullCompose-zR5425gW.js";import"./index-CrPVnwJ1.js";import"./ErrorState-VDo7BEXi.js";import"./index-DsRBPRBB.js";import"./useMessageBodyContent-CRGA_hjE.js";import"./useSignature--ONyUwiW.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Dv0WkGIF.js";import"./sections-CpLvdf_Q.js";import"./format-CWO8MVm7.js";import"./confirm-dialog-Bay01642.js";const C=o;export{C as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as o}from"./FullCompose-zR5425gW.js";import"./index-CrPVnwJ1.js";import"./ErrorState-VDo7BEXi.js";import"./index-DsRBPRBB.js";import"./useMessageBodyContent-CRGA_hjE.js";import"./useSignature--ONyUwiW.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Dv0WkGIF.js";import"./sections-CpLvdf_Q.js";import"./format-CWO8MVm7.js";import"./confirm-dialog-Bay01642.js";const C=o;export{C as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as o}from"./FullCompose-zR5425gW.js";import"./index-CrPVnwJ1.js";import"./ErrorState-VDo7BEXi.js";import"./index-DsRBPRBB.js";import"./useMessageBodyContent-CRGA_hjE.js";import"./useSignature--ONyUwiW.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Dv0WkGIF.js";import"./sections-CpLvdf_Q.js";import"./format-CWO8MVm7.js";import"./confirm-dialog-Bay01642.js";const C=o;export{C as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as o}from"./FullCompose-zR5425gW.js";import"./index-CrPVnwJ1.js";import"./ErrorState-VDo7BEXi.js";import"./index-DsRBPRBB.js";import"./useMessageBodyContent-CRGA_hjE.js";import"./useSignature--ONyUwiW.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Dv0WkGIF.js";import"./sections-CpLvdf_Q.js";import"./format-CWO8MVm7.js";import"./confirm-dialog-Bay01642.js";const C=o;export{C as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o,O as i}from"./index-CrPVnwJ1.js";import{a as m}from"./MailShell-tZFfzwz5.js";import{F as r}from"./FlaggedPane-D797wNm2.js";import{d as p}from"./search-token-index-dunAqY2l.js";import{u as e}from"./search-mirror-w8o3KYuJ.js";import"./FullCompose-zR5425gW.js";import"./ErrorState-VDo7BEXi.js";import"./index-DsRBPRBB.js";import"./useMessageBodyContent-CRGA_hjE.js";import"./useSignature--ONyUwiW.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Dv0WkGIF.js";import"./sections-CpLvdf_Q.js";import"./format-CWO8MVm7.js";import"./confirm-dialog-Bay01642.js";import"./useSearchTokenContext-9o7ruLw5.js";import"./kbd-B9nU8EDr.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-BNe_s60T.js";import"./attachment-file-BqkgTk5V.js";import"./mail-B-HBRveP.js";import"./avatar-5AJpJDbh.js";import"./EmptyState-kUDfGSa-.js";import"./download-oST1Pv8p.js";import"./calendar-event-chip-C9NOIAJ7.js";import"./calendar-color-CHnffHyS.js";import"./map-pin--HA8ooZj.js";import"./attendee-row-Cv_RoZCD.js";import"./clock-BkwpZS6T.js";import"./useLayoutTier-CCGjVGyC.js";import"./shield-check-BqYHKvFE.js";import"./useFilters-DS_Q_iog.js";import"./useQueries-djG1CrNB.js";import"./menu-CL8oYhg5.js";import"./MailViewChrome-B1fzfXtB.js";import"./refresh-cw-aknANAyZ.js";import"./wizard-selection-DxUM65kM.js";function N(){const t=p();return e({to:"/mail/flagged"}),o.jsx(r,{thread:t,children:o.jsx(m,{phone:o.jsx(r.Phone,{}),list:o.jsx(r.List,{}),reading:o.jsx(i,{}),intelligence:o.jsx(r.Intelligence,{}),hasThread:!!t})})}export{N as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e,f as j,a2 as B,bo as Y,r as c,aH as W,X,aO as he,ay as Z,a0 as xe,aR as K,bp as fe,ax as pe,aA as ge,B as z,aQ as be,bq as ve,h as J,M as ee,o as se,br as ye,bs as je,aN as Ne,K as ke,bt as Ce,bu as _,bv as we,bw as Se,bx as te,by as Me,bz as q,bf as ae,bl as re,bm as Ie,ae as G,ad as ne,L as H,bA as Q,bB as Ee,aq as Ae,bC as De,u as Oe,c as ie,d as Te,aK as Re,aM as Fe,G as Pe,i as V,s as $e,bD as Le,bE as ze,bF as _e,aV as Be,bG as Ge,bH as He}from"./index-CrPVnwJ1.js";import{P as Ke}from"./pencil-D0RtlkgQ.js";import{S as qe}from"./settings-screen-n7380RZQ.js";import{E as oe}from"./ErrorState-VDo7BEXi.js";import"./avatar-5AJpJDbh.js";import"./chevron-left-K8Bg0uJl.js";import"./menu-CL8oYhg5.js";import"./circle-help-D_5w7LgQ.js";const Qe=({label:s,onRename:t,onDelete:a,deleteBlockedReason:o,renameLabel:m=u=>`Rename ${u}`,deleteLabel:r=u=>`Delete ${u}`})=>{const u=o?`${r(s)} — ${o}`:r(s);return e.jsxs("span",{className:"flex shrink-0 items-center gap-0.5 pr-2",children:[e.jsx(j,{variant:"ghost",size:"sm",icon:e.jsx(Ke,{className:"size-3.5"}),"aria-label":m(s),onClick:t}),e.jsx("span",{title:o,children:e.jsx(j,{variant:"ghost",size:"sm",icon:e.jsx(B,{className:"size-3.5"}),"aria-label":u,disabled:o!==void 0,onClick:a})})]})},Ve=({folders:s,onRename:t,onDelete:a,onCreateFolder:o,delimiter:m,labels:r})=>{const u=new Map(s.map(l=>[l.id,l]));return e.jsx(Y,{folders:s,onCreateFolder:o,delimiter:m,labels:{treeAriaLabel:"Your folders",optionLabel:l=>l.label,...r},rowActions:l=>{const i=u.get(l.id);return i?e.jsx(Qe,{label:i.label,deleteBlockedReason:i.deleteBlockedReason,renameLabel:r?.rename,deleteLabel:r?.remove,onRename:()=>t(i),onDelete:()=>a(i)}):null}})},Ue=({open:s,folderLabel:t,defaultLabel:a,name:o,onNameChange:m,onSubmit:r,onClose:u,pending:l=!1,error:i})=>{const d=c.useId(),p=`Rename ${t}`;return s?e.jsxs(W,{open:s,onClose:u,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(j,{variant:"ghost",size:"sm",icon:e.jsx(X,{className:"size-3.5"}),onClick:u,"aria-label":"Cancel"})]}),e.jsxs("div",{className:"space-y-3 px-5 py-4",children:[e.jsxs("div",{children:[e.jsx(he,{htmlFor:d,children:"Folder name"}),e.jsx(Z,{id:d,value:o,placeholder:a,onChange:g=>m(g.target.value),onKeyDown:g=>{g.key==="Enter"&&(g.preventDefault(),r())}})]}),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:a}),"."]}),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(j,{variant:"secondary",size:"sm",onClick:u,children:"Cancel"}),e.jsx(j,{variant:"primary",size:"sm",onClick:r,disabled:l,children:l?"Saving…":"Save name"})]})]}):null},Ye=["inbox","drafts","sent","archive","junk","trash"],U="",We={mailboxId:null,source:"None"};function Xe(s){const t=s.messageCount===1?"msg":"msgs";return`${K(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 Je({role:s,folders:t,appointment:a,displayName:o,onAppoint:m,onRename:r}){const[u,l]=c.useState(o),i=c.useRef(null),d=c.useRef(!1),p=c.useId(),{mailboxId:g,source:v,staleFolderPath:y}=a,h=t.find(N=>N.mailboxId===g)??null,f=be(s),O=h!=null&&u.trim()!==o.trim();c.useEffect(()=>{!d.current||v==="Proposed"||(d.current=!1,i.current?.focus())},[v]);const I=(()=>{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"||!h?null:e.jsx("span",{id:p,className:"truncate pl-[7.5rem] text-2xs text-fg-subtle",title:h.providerPath,children:`${Ze(v,f)} · ${h.providerPath} · ${le(h.messageCount)}`})})(),w=s==="trash"?" Deleting mail is stopped until you pick another one.":h?` reader is using ${K(h.providerPath,h.hierarchyDelimiter)} instead.`:"",D=`The folder you chose for ${f}${y?` — ${y} —`:""} 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(pe,{ref:i,className:"w-56 shrink-0",value:h?.mailboxId??U,"aria-label":`Folder for ${f}`,"aria-describedby":I||v==="Stale"?p:void 0,onChange:N=>m(s,N.target.value),children:[!h&&e.jsx("option",{value:U,disabled:!0,children:"Choose a folder"}),t.map(N=>e.jsx("option",{value:N.mailboxId,children:Xe(N)},N.mailboxId))]}),v==="Proposed"&&h&&e.jsx(j,{variant:"secondary",size:"sm",className:"shrink-0",onClick:()=>{d.current=!0,m(s,h.mailboxId)},children:`Set as ${f}`}),h&&e.jsxs(e.Fragment,{children:[e.jsx(Z,{className:"flex-1",value:u,placeholder:f,"aria-label":`Display name for ${f}`,onChange:N=>l(N.target.value)}),O&&e.jsx(j,{variant:"ghost",size:"sm",className:"shrink-0",icon:e.jsx(ge,{className:"size-4"}),"aria-label":"Save display name",onClick:()=>r(h.mailboxId,u)})]})]}),I,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(j,{variant:"secondary",size:"sm",className:"shrink-0",onClick:()=>i.current?.focus(),children:"Pick a folder"})]})})]})}function es(){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 ss({accountEmail:s,folders:t,appointments:a,displayNames:o={},onAppoint:m,onRename:r}){const u=new Set(Object.values(a).map(i=>i.mailboxId).filter(i=>i!=null)),l=t.filter(i=>!u.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:Ye.map(i=>{const d=a[i]??We;return e.jsx(Je,{role:i,folders:t,appointment:d,displayName:d.mailboxId?o[d.mailboxId]??"":"",onAppoint:m,onRename:r},i)})}),l.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:l.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:K(i.providerPath,i.hierarchyDelimiter)}),e.jsx("span",{className:"ml-auto shrink-0 text-2xs text-fg-subtle",children:le(i.messageCount)})]},i.mailboxId))})]})]})}const ts=12e4,as=2e3,rs="This folder is no longer in the account's folder list, so nothing was deleted.",ce=(s,t)=>{const a=s.find(o=>o.mailboxId===t);if(!a)throw new Error(rs);return a},ns=(s,t)=>ce(s,t).lastSyncedAt??0;async function is({readMailboxes:s,mailboxId:t,since:a,signal:o,segmentMs:m=ts,pollIntervalMs:r=as,delay:u=ve,now:l=Date.now}){const i=l()+m;for(;;){o?.throwIfAborted();const d=ce(await s(),t);if((d.lastSyncedAt??0)>a)return{status:"fresh",messageCount:d.messagesTotal};if(l()>=i)return{status:"pending"};await u(r,o)}}const de=50,os=s=>s instanceof Error?s.message:"Something went wrong.",$=s=>s.then(t=>({ok:!0,value:t}),t=>({ok:!1,error:os(t)})),ls=async(s,t,a,o)=>{const m=[];let r;for(let u=0;u<de;u+=1){if(o.aborted)return m;const{data:l}=await te({path:{mailboxId:s},query:{order:"desc",continuationToken:r},throwOnError:!0});for(const i of l.items)if(!i.isDeleted&&!t.has(i.messageId)&&!m.includes(i.messageId)&&(m.push(i.messageId),m.length>=a))return m;if(!l.continuationToken)break;r=l.continuationToken}return m},cs=async(s,t)=>{let a=0,o;for(let m=0;m<de;m+=1){if(t.aborted)return a;const{data:r}=await te({path:{mailboxId:s},query:{order:"desc",continuationToken:o},throwOnError:!0});for(const u of r.items)u.isDeleted||(a+=1);if(!r.continuationToken)break;o=r.continuationToken}return a};function ds({accountId:s,mailboxId:t,onDeleted:a}){const o=J(),[m,r]=c.useState("idle"),[u,l]=c.useState(null),[i,d]=c.useState(),[p,g]=c.useState(),v=c.useRef(null),y=c.useRef(void 0),h=c.useCallback(()=>{o.invalidateQueries({queryKey:ee({path:{accountId:s}})}),o.invalidateQueries({queryKey:se()})},[o,s]),f=c.useCallback(async()=>{r("deleting");const k=await $(ye({path:{accountId:s,mailboxId:t},throwOnError:!0}));if(!k.ok){d(k.error),r("error");return}h(),r("done"),a()},[s,t,h,a]),O=c.useCallback(()=>je({path:{accountId:s},throwOnError:!0}).then(({data:k})=>k.items.find(S=>S.mailboxId===t)?.messageCount??0),[s,t]),I=c.useCallback(()=>o.fetchQuery({...Ne({path:{accountId:s}}),staleTime:0}).then(k=>k.mailboxes??[]),[o,s]),w=c.useCallback(async()=>{const k=new AbortController;v.current=k;const{signal:S}=k;r("checking"),d(void 0);const M=y.current!==void 0,C=await $((async()=>(M||(S.throwIfAborted(),y.current=ns(await I(),t),S.throwIfAborted(),g(Date.now()),await ke({path:{accountId:s},throwOnError:!0})),is({readMailboxes:I,mailboxId:t,since:y.current??0,signal:S})))());return S.aborted?(r("idle"),y.current=void 0,{status:"failed"}):C.ok?C.value.status==="pending"?(r("check-stalled"),{status:"pending"}):(y.current=void 0,C.value.messageCount>0?(r("idle"),h(),{status:"blocked",messageCount:C.value.messageCount}):(await f(),{status:"deleted"})):(y.current=void 0,d(C.error),r("error"),{status:"failed"})},[s,t,I,f,h]),D=c.useCallback(()=>{v.current?.abort()},[]),N=c.useCallback(async k=>{const S=new AbortController;v.current=S;const{signal:M}=S;r("moving"),d(void 0);const C=await $(O());if(M.aborted)return;if(!C.ok){d(C.error),r("error");return}let x=Ce(C.value);l(x);const E=new Set;for(;;){if(M.aborted)return;const n=await $(ls(t,E,Me,M));if(M.aborted)return;if(!n.ok){x=_(x,n.error),l(x),d(n.error),r("error");return}const b=n.value;if(b.length===0)break;const T=await $(we({body:{messageIds:b,destinationMailboxId:k},throwOnError:!0}));if(M.aborted)return;if(!T.ok){x=_(x,T.error),l(x),d(T.error),r("error");return}for(const P of b)E.add(P);x=Se(x,b.length),l(x)}const A=await $(cs(t,M));if(!M.aborted){if(!A.ok){x=_(x,A.error),l(x),d(A.error),r("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),l(x),d(n),r("error"),h();return}await f()}},[t,O,f,h]),R=c.useCallback(()=>{v.current?.abort(),v.current=null,y.current=void 0,r("idle"),l(null),d(void 0),g(void 0)},[]);return{phase:m,progress:u,errorMessage:i,checkStartedAt:p,deleteMailbox:f,deleteIfEmpty:w,moveThenDelete:N,cancel:D,reset:R}}const L=s=>`${s} ${s===1?"email":"emails"}`;function ms({open:s,accountId:t,folder:a,mailboxes:o,appointments:m,onClose:r}){const[u,l]=c.useState(()=>q(a.messageCount)),[i,d]=c.useState(),[p,g]=c.useState(),{createFolderIn:v}=ae(t),y=re(),{phase:h,progress:f,errorMessage:O,checkStartedAt:I,deleteMailbox:w,deleteIfEmpty:D,moveThenDelete:N,cancel:R,reset:k}=ds({accountId:t,mailboxId:a.mailboxId,onDeleted:r}),[S,M]=c.useState("0:00"),C=h==="checking"||h==="check-stalled";c.useEffect(()=>{if(!C||I===void 0)return;const F=()=>M(De(Date.now()-I));F();const ue=setInterval(F,1e3);return()=>clearInterval(ue)},[C,I]),c.useEffect(()=>{s&&(l(q(a.messageCount)),d(void 0),k())},[s,k]),c.useEffect(()=>{s&&g(void 0)},[s]),c.useEffect(()=>R,[R]);const x=c.useCallback(()=>{R(),r()},[R,r]),E=c.useCallback(async()=>{const F=await D();F.status==="blocked"&&(d(F.messageCount),l("choose-fate"))},[D]),A=c.useMemo(()=>Ie({mailboxes:o,folderAppointments:m,excludeMailboxId:a.mailboxId,translator:y}),[o,m,a.mailboxId,y]),n=A.find(F=>F.id===p),b=c.useMemo(()=>G(a,ne(m).get(a.mailboxId),y),[a,m,y]);if(!s)return null;const T=`Delete ${b}`,P=i??a.messageCount,me=h==="moving"?e.jsxs("div",{className:"flex flex-col items-center gap-3 px-5 py-10 text-center",children:[e.jsx(H,{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?Q(f):"Moved 0 of 0"})]}):h==="checking"?e.jsxs("div",{className:"flex flex-col items-center gap-3 px-5 py-10 text-center",children:[e.jsx(H,{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.`})]}):h==="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(j,{variant:"secondary",size:"sm",onClick:x,children:"Cancel"}),e.jsx(j,{size:"sm",onClick:()=>E(),children:"Keep waiting"})]})]}):h==="deleting"||h==="done"?e.jsxs("div",{className:"flex flex-col items-center gap-3 px-5 py-10 text-center",children:[e.jsx(H,{className:"size-8 animate-spin text-accent-2"}),e.jsx("p",{className:"text-sm font-medium text-fg",children:"Deleting folder…"})]}):h==="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:[Q(f),". Already-moved emails stay moved — re-open delete to continue with the rest."]}),e.jsx("div",{className:"flex justify-end",children:e.jsx(j,{variant:"secondary",size:"sm",onClick:x,children:"Close"})})]}):u==="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(j,{variant:"secondary",size:"sm",onClick:x,children:"Cancel"}),e.jsx(j,{variant:"danger",size:"sm",icon:e.jsx(B,{className:"size-3.5"}),onClick:()=>E(),children:"Delete folder"})]})]}):u==="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(P),". What should happen to them?"]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("button",{type:"button",onClick:()=>l("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:()=>l("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(Ee,{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(j,{variant:"secondary",size:"sm",onClick:x,children:"Cancel"})})]}):u==="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(P),"? 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(j,{variant:"secondary",size:"sm",onClick:()=>l("choose-fate"),children:"Back"}),e.jsx(j,{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(P)," 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:o[0]?.hierarchyDelimiter??"/",onSelect:g,onCreateFolder:v,onCancel:()=>{g(void 0),l("choose-fate")},labels:{filterPlaceholder:"Move emails to…"}})}),n&&e.jsx("footer",{className:"shrink-0 border-t border-line p-2",children:e.jsx(j,{variant:"danger",onClick:()=>N(n.id),className:"h-11 w-full font-semibold",children:e.jsx("span",{className:"truncate",children:`Move ${L(P)} to ${n.label}`})})})]});return e.jsxs(W,{open:s,onClose:x,title:T,children:[e.jsxs("header",{className:"flex items-center gap-2 border-b border-line px-5 py-3",children:[e.jsx(Ae,{className:"size-4 shrink-0 text-danger"}),e.jsx("span",{className:"flex-1 text-sm font-semibold text-fg",children:T}),e.jsx(j,{variant:"ghost",size:"sm",icon:e.jsx(X,{className:"size-3.5"}),onClick:x,"aria-label":"Cancel"})]}),me]})}function us({account:s}){const t=J(),a=s.accountId,o=re(),{data:m,isPending:r,isError:u,error:l,refetch:i}=ie(Pe({path:{accountId:a}})),{createFolderIn:d}=ae(a),p=V({...Le(),meta:$e(409),onSuccess:()=>{t.invalidateQueries({queryKey:se()})}}),g=V({...ze(),onSuccess:()=>{t.invalidateQueries({queryKey:ee({path:{accountId:a}})})}}),[v,y]=c.useState(),[h,f]=c.useState(),[O,I]=c.useState(""),w=c.useMemo(()=>m?.items??[],[m]),D=c.useMemo(()=>ne(s.folderAppointments),[s.folderAppointments]),N=c.useMemo(()=>w.map(n=>({id:n.mailboxId,label:G(n,D.get(n.mailboxId),o),path:n.fullPath,deleteBlockedReason:_e(n,w,s.folderAppointments).message})),[w,D,o,s.folderAppointments]),R=(n,b)=>{p.mutate({path:{accountId:a,role:He[n]},body:{mailboxId:b}})},k=(n,b)=>{const T=b.trim();g.mutate({path:{accountId:a,mailboxId:n},body:{displayNameOverride:T===""?null:T}})};if(r)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(u)return e.jsx(oe,{variant:"inline",title:`Couldn't load folders for ${s.email}`,error:l,onRetry:()=>{i()}});const S=w.map(n=>({mailboxId:n.mailboxId,providerPath:n.fullPath,hierarchyDelimiter:n.hierarchyDelimiter,messageCount:n.messageCount})),M={};for(const n of s.folderAppointments){const b=Be[n.role];b&&(M[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(h),A=x(v);return e.jsxs("div",{className:"space-y-4",children:[(p.isError||g.isError)&&e.jsx(z,{tone:"danger",variant:"soft",children:Ge(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(ss,{accountEmail:s.email,folders:S,appointments:M,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(Ve,{folders:N,delimiter:w[0]?.hierarchyDelimiter??"/",onCreateFolder:d,onRename:n=>{f(n.id),I(x(n.id)?.displayNameOverride?.trim()??"")},onDelete:n=>y(n.id),labels:{treeAriaLabel:`All folders for ${s.email}`}})})]}),E&&e.jsx(Ue,{open:!0,folderLabel:G(E,D.get(E.mailboxId),o),defaultLabel:G({fullPath:E.fullPath,hierarchyDelimiter:E.hierarchyDelimiter},D.get(E.mailboxId),o),name:O,onNameChange:I,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:a,mailboxId:E.mailboxId},body:{displayNameOverride:n===""?null:n}},{onSuccess:()=>f(void 0)})},onClose:()=>f(void 0)}),A&&e.jsx(ms,{open:!0,accountId:a,folder:A,mailboxes:w,appointments:s.folderAppointments,onClose:()=>y(void 0)})]})}function js(){const s=Oe(),[t,a]=c.useState(!0),{data:o,isPending:m,isError:r,error:u,refetch:l}=ie(Te()),i=d=>{const p=Fe[d];p&&s({to:p})};return e.jsx(qe,{items:Re,activeId:"folders",title:"Folder roles",description:"Appoint which real folder fills each canonical role, per account.",help:e.jsx(es,{}),helpOpen:t,onToggleHelp:()=>a(d=>!d),onSelect:i,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"}):r?e.jsx(oe,{title:"Couldn't load accounts",error:u,onRetry:()=>{l()}}):o.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:o.accounts.map(d=>e.jsx(us,{account:d},d.accountId))})})}export{js as component};
|
package/assets/index-B9v6nYHl.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-CrPVnwJ1.js";import{O as t}from"./OutboxPane-DlPDtcBL.js";import"./useSearchTokenContext-9o7ruLw5.js";import"./kbd-B9nU8EDr.js";import"./useMessageBodyContent-CRGA_hjE.js";import"./search-scope-B5-OK3Cq.js";import"./circle-check-big-CiGlGCl1.js";import"./clock-BkwpZS6T.js";import"./row-actions-CT3DvHHR.js";import"./rotate-ccw-ANFMG0Un.js";import"./NavMenuButton-CfCIoTCV.js";import"./menu-CL8oYhg5.js";import"./format-CWO8MVm7.js";import"./outbox-status-BlKn6P0x.js";import"./search-query-Cr_ZXBCp.js";function c(){return o.jsx(t.Reading,{})}export{c as component};
|
package/assets/index-BiRvhN4V.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-CrPVnwJ1.js";import{M as r}from"./MailboxPane-BopLrNNz.js";import"./useSearchTokenContext-9o7ruLw5.js";import"./kbd-B9nU8EDr.js";import"./useMessageBodyContent-CRGA_hjE.js";import"./search-scope-B5-OK3Cq.js";import"./useRefreshControl-Bi0R4fuK.js";import"./circle-check-big-CiGlGCl1.js";import"./refresh-cw-aknANAyZ.js";import"./useQueries-djG1CrNB.js";import"./search-token-index-dunAqY2l.js";import"./useLayoutTier-CCGjVGyC.js";import"./MailListHeader-BNe_s60T.js";import"./attachment-file-BqkgTk5V.js";import"./mail-B-HBRveP.js";import"./avatar-5AJpJDbh.js";import"./index-DsRBPRBB.js";import"./useSignature--ONyUwiW.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Dv0WkGIF.js";import"./sections-CpLvdf_Q.js";import"./format-CWO8MVm7.js";import"./EmptyState-kUDfGSa-.js";import"./ErrorState-VDo7BEXi.js";import"./download-oST1Pv8p.js";import"./calendar-event-chip-C9NOIAJ7.js";import"./calendar-color-CHnffHyS.js";import"./map-pin--HA8ooZj.js";import"./attendee-row-Cv_RoZCD.js";import"./clock-BkwpZS6T.js";import"./shield-check-BqYHKvFE.js";import"./useFilters-DS_Q_iog.js";import"./confirm-dialog-Bay01642.js";import"./menu-CL8oYhg5.js";import"./MailViewChrome-B1fzfXtB.js";import"./NavMenuButton-CfCIoTCV.js";import"./useLabels-j2kudmYw.js";import"./useSemanticSearch-DYgnPGVP.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-CelNqy1y.js";import"./circle-help-D_5w7LgQ.js";import"./circle-check-DYx-rw9M.js";function Q(){return o.jsx(r.Reading,{})}export{Q as component};
|
package/assets/index-BmbIB1oc.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-CrPVnwJ1.js";import{M as i}from"./MailboxPane-BopLrNNz.js";import"./useSearchTokenContext-9o7ruLw5.js";import"./kbd-B9nU8EDr.js";import"./useMessageBodyContent-CRGA_hjE.js";import"./search-scope-B5-OK3Cq.js";import"./useRefreshControl-Bi0R4fuK.js";import"./circle-check-big-CiGlGCl1.js";import"./refresh-cw-aknANAyZ.js";import"./useQueries-djG1CrNB.js";import"./search-token-index-dunAqY2l.js";import"./useLayoutTier-CCGjVGyC.js";import"./MailListHeader-BNe_s60T.js";import"./attachment-file-BqkgTk5V.js";import"./mail-B-HBRveP.js";import"./avatar-5AJpJDbh.js";import"./index-DsRBPRBB.js";import"./useSignature--ONyUwiW.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Dv0WkGIF.js";import"./sections-CpLvdf_Q.js";import"./format-CWO8MVm7.js";import"./EmptyState-kUDfGSa-.js";import"./ErrorState-VDo7BEXi.js";import"./download-oST1Pv8p.js";import"./calendar-event-chip-C9NOIAJ7.js";import"./calendar-color-CHnffHyS.js";import"./map-pin--HA8ooZj.js";import"./attendee-row-Cv_RoZCD.js";import"./clock-BkwpZS6T.js";import"./shield-check-BqYHKvFE.js";import"./useFilters-DS_Q_iog.js";import"./confirm-dialog-Bay01642.js";import"./menu-CL8oYhg5.js";import"./MailViewChrome-B1fzfXtB.js";import"./NavMenuButton-CfCIoTCV.js";import"./useLabels-j2kudmYw.js";import"./useSemanticSearch-DYgnPGVP.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-CelNqy1y.js";import"./circle-help-D_5w7LgQ.js";import"./circle-check-DYx-rw9M.js";function S(){return o.jsx(i.Reading,{})}export{S as component};
|
package/assets/index-Bry1TMaW.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t,am as o}from"./index-CrPVnwJ1.js";const n=()=>t.jsx(o,{to:"/settings/accounts"});export{n as component};
|
package/assets/index-CWNpxM_O.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-CrPVnwJ1.js";import{F as r}from"./FlaggedPane-D797wNm2.js";import"./useSearchTokenContext-9o7ruLw5.js";import"./kbd-B9nU8EDr.js";import"./useMessageBodyContent-CRGA_hjE.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-BNe_s60T.js";import"./search-token-index-dunAqY2l.js";import"./useLayoutTier-CCGjVGyC.js";import"./useQueries-djG1CrNB.js";import"./attachment-file-BqkgTk5V.js";import"./mail-B-HBRveP.js";import"./avatar-5AJpJDbh.js";import"./index-DsRBPRBB.js";import"./useSignature--ONyUwiW.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Dv0WkGIF.js";import"./sections-CpLvdf_Q.js";import"./format-CWO8MVm7.js";import"./EmptyState-kUDfGSa-.js";import"./ErrorState-VDo7BEXi.js";import"./download-oST1Pv8p.js";import"./calendar-event-chip-C9NOIAJ7.js";import"./calendar-color-CHnffHyS.js";import"./map-pin--HA8ooZj.js";import"./attendee-row-Cv_RoZCD.js";import"./clock-BkwpZS6T.js";import"./shield-check-BqYHKvFE.js";import"./useFilters-DS_Q_iog.js";import"./confirm-dialog-Bay01642.js";import"./menu-CL8oYhg5.js";import"./MailViewChrome-B1fzfXtB.js";import"./refresh-cw-aknANAyZ.js";import"./wizard-selection-DxUM65kM.js";function H(){return o.jsx(r.Reading,{})}export{H as component};
|
package/assets/index-CdX9aQBn.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./index-CrPVnwJ1.js";import{B as o}from"./BriefPane-Ip1tU4Q2.js";import"./useSearchTokenContext-9o7ruLw5.js";import"./kbd-B9nU8EDr.js";import"./useMessageBodyContent-CRGA_hjE.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-BNe_s60T.js";import"./search-token-index-dunAqY2l.js";import"./useLayoutTier-CCGjVGyC.js";import"./useQueries-djG1CrNB.js";import"./attachment-file-BqkgTk5V.js";import"./mail-B-HBRveP.js";import"./avatar-5AJpJDbh.js";import"./index-DsRBPRBB.js";import"./useSignature--ONyUwiW.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Dv0WkGIF.js";import"./sections-CpLvdf_Q.js";import"./format-CWO8MVm7.js";import"./EmptyState-kUDfGSa-.js";import"./ErrorState-VDo7BEXi.js";import"./download-oST1Pv8p.js";import"./calendar-event-chip-C9NOIAJ7.js";import"./calendar-color-CHnffHyS.js";import"./map-pin--HA8ooZj.js";import"./attendee-row-Cv_RoZCD.js";import"./clock-BkwpZS6T.js";import"./shield-check-BqYHKvFE.js";import"./useFilters-DS_Q_iog.js";import"./confirm-dialog-Bay01642.js";import"./menu-CL8oYhg5.js";import"./useRefreshControl-Bi0R4fuK.js";import"./circle-check-big-CiGlGCl1.js";import"./refresh-cw-aknANAyZ.js";import"./useSemanticSearch-DYgnPGVP.js";import"./useLabels-j2kudmYw.js";import"./search-query-Cr_ZXBCp.js";import"./wizard-selection-DxUM65kM.js";function L(){return r.jsx(o.Reading,{})}export{L as component};
|
package/assets/index-ClEohi1R.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{eo as o,j as r}from"./index-CrPVnwJ1.js";import{O as m}from"./OpenCalendarEvent-V_qj0EjB.js";import"./CalendarComposePane-tQ70DMF5.js";import"./window--WwoSABt.js";import"./ErrorState-VDo7BEXi.js";import"./calendar-color-CHnffHyS.js";import"./attendee-row-Cv_RoZCD.js";import"./avatar-5AJpJDbh.js";import"./clock-BkwpZS6T.js";import"./map-pin--HA8ooZj.js";import"./mail-B-HBRveP.js";import"./pencil-D0RtlkgQ.js";import"./useCalendars-DH8nOZcd.js";import"./useCalendarData-D1EN840n.js";import"./useQueries-djG1CrNB.js";function R(){const{calendarObjectId:t}=o.useParams();return r.jsx(m,{calendarObjectId:t})}export{R as component};
|
package/assets/index-CmthVe78.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./index-CrPVnwJ1.js";import{B as o}from"./BriefPane-Ip1tU4Q2.js";import"./useSearchTokenContext-9o7ruLw5.js";import"./kbd-B9nU8EDr.js";import"./useMessageBodyContent-CRGA_hjE.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-BNe_s60T.js";import"./search-token-index-dunAqY2l.js";import"./useLayoutTier-CCGjVGyC.js";import"./useQueries-djG1CrNB.js";import"./attachment-file-BqkgTk5V.js";import"./mail-B-HBRveP.js";import"./avatar-5AJpJDbh.js";import"./index-DsRBPRBB.js";import"./useSignature--ONyUwiW.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Dv0WkGIF.js";import"./sections-CpLvdf_Q.js";import"./format-CWO8MVm7.js";import"./EmptyState-kUDfGSa-.js";import"./ErrorState-VDo7BEXi.js";import"./download-oST1Pv8p.js";import"./calendar-event-chip-C9NOIAJ7.js";import"./calendar-color-CHnffHyS.js";import"./map-pin--HA8ooZj.js";import"./attendee-row-Cv_RoZCD.js";import"./clock-BkwpZS6T.js";import"./shield-check-BqYHKvFE.js";import"./useFilters-DS_Q_iog.js";import"./confirm-dialog-Bay01642.js";import"./menu-CL8oYhg5.js";import"./useRefreshControl-Bi0R4fuK.js";import"./circle-check-big-CiGlGCl1.js";import"./refresh-cw-aknANAyZ.js";import"./useSemanticSearch-DYgnPGVP.js";import"./useLabels-j2kudmYw.js";import"./search-query-Cr_ZXBCp.js";import"./wizard-selection-DxUM65kM.js";function M(){return r.jsx(o.Reading,{})}export{M as component};
|