@remit/web-client-dist 0.0.680 → 0.0.682
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/AccountSession-BYJ1unhC.js +1 -0
- package/assets/{BriefPane-CcwdfBlh.js → BriefPane-mADSC2OK.js} +1 -1
- package/assets/{CalendarEventEditor-Cpu5cJxJ.js → CalendarEventEditor-C8_kOvZ3.js} +1 -1
- package/assets/{CalendarEventPopup-ecl1-NSt.js → CalendarEventPopup-7lWwS7jN.js} +1 -1
- package/assets/{CalendarLoadFailed-BbUr2ubu.js → CalendarLoadFailed-DNV1DlXi.js} +1 -1
- package/assets/CalendarQuickCreate-BG0qeW8s.js +1 -0
- package/assets/{CalendarSession-XIbMK3oT.js → CalendarSession-CTmh2tcD.js} +1 -1
- package/assets/DesktopChrome-Bj6-FRYu.js +1 -0
- package/assets/{DropdownMenu-fskbk1FW.js → DropdownMenu-D3gGWitE.js} +1 -1
- package/assets/{EmptyState-CzSAWxdK.js → EmptyState-5XJzmFAK.js} +1 -1
- package/assets/{ErrorState-KWmymUQR.js → ErrorState-Dzdw33-3.js} +1 -1
- package/assets/FlaggedPane-IgqQna9q.js +1 -0
- package/assets/{FullCompose-6pNo7wi4.js → FullCompose-CppNsB88.js} +1 -1
- package/assets/{LabelApplyTrigger-C0GQNIEk.js → LabelApplyTrigger-CSWiFHCu.js} +1 -1
- package/assets/{MailShell--jgEGKni.js → MailShell-DbZolZ7P.js} +1 -1
- package/assets/{MailViewChrome-33SQAjQn.js → MailViewChrome-C47Pffjf.js} +1 -1
- package/assets/{MailboxPane-CvW6x3uh.js → MailboxPane-CBl3PnOT.js} +2 -2
- package/assets/{MessageBody-Ba6dVlG6.js → MessageBody-C2-SQjAb.js} +3 -3
- package/assets/MessageToolbar-2VWnNBpw.js +1 -0
- package/assets/{NavMenuButton-DuV5qIvO.js → NavMenuButton-CN3ovZVQ.js} +1 -1
- package/assets/{OnboardingWizard-BHqhUNht.js → OnboardingWizard-CIAVrjJr.js} +1 -1
- package/assets/OutboxPane-C7vPOisX.js +1 -0
- package/assets/_calendarObjectId-BOWn0Wc1.js +1 -0
- package/assets/_mailboxId-CbT5t4kO.js +1 -0
- package/assets/_messageId-CUzI2YR7.js +1 -0
- package/assets/_messageId-DiJIuK0Z.js +1 -0
- package/assets/_messageId-aGpmi6EA.js +1 -0
- package/assets/_outboxMessageId-D9yNQ74_.js +1 -0
- package/assets/_recurrenceId-BUk6g_uR.js +1 -0
- package/assets/_threadId-BQKxqX_U.js +1 -0
- package/assets/_threadId-DNM46Cj0.js +1 -0
- package/assets/_threadId-DQ9Ns1qA.js +1 -0
- package/assets/{_view._date-BcsaqrBS.js → _view._date-Cb0nAaKf.js} +1 -1
- package/assets/{account-service-status-u9m2wO3G.js → account-service-status-C_MJ-o-p.js} +1 -1
- package/assets/{accounts-GeT0KphS.js → accounts-CahoQhl7.js} +1 -1
- package/assets/advanced-Cf1h5R7s.js +1 -0
- package/assets/{agenda-time-C_tFoNHA.js → agenda-time-ACtN6wfF.js} +1 -1
- package/assets/{app-chrome-CAqI0L8I.js → app-chrome-Dbvu4ieD.js} +1 -1
- package/assets/{appearance-C0uk70LK.js → appearance-BnPvwrqn.js} +1 -1
- package/assets/{avatar-BKCZjVnK.js → avatar-BV5vFJ_r.js} +1 -1
- package/assets/{badge-BmEPIQJj.js → badge-CbfjHXMg.js} +1 -1
- package/assets/{bottom-sheet-CYnEFnuG.js → bottom-sheet-4tvR-sri.js} +1 -1
- package/assets/{brief-CT4sagsk.js → brief-DbMpucTQ.js} +1 -1
- package/assets/brief-DhhQktQG.js +1 -0
- package/assets/calendar-C4YDxHb-.js +1 -0
- package/assets/{calendar-W0j7nrh5.js → calendar-CNIMaOb7.js} +1 -1
- package/assets/{calendar-event-popup-GQy2blc9.js → calendar-event-popup-CYCnsOds.js} +1 -1
- package/assets/{calendar-event-sidebar-BdPLf9Q-.js → calendar-event-sidebar-TTXLpS2C.js} +1 -1
- package/assets/{calendar-failure-note-Cc_-yh_l.js → calendar-failure-note-A4rOKZNb.js} +1 -1
- package/assets/{calendar-guests-DCkwUUaR.js → calendar-guests-BXmTl5jL.js} +1 -1
- package/assets/{calendar-suggestion-w5Buli06.js → calendar-suggestion-cOTOb7Lm.js} +1 -1
- package/assets/{calendars-CN_LOe7f.js → calendars-DNlrofPU.js} +1 -1
- package/assets/{card-BYFKESRL.js → card-f9A3um0u.js} +1 -1
- package/assets/{checkbox-CPr2JwkJ.js → checkbox-BlFhjoed.js} +1 -1
- package/assets/chevron-down-UUw56DjM.js +1 -0
- package/assets/chevron-left-D5-k3mB7.js +1 -0
- package/assets/{circle-check-DyyOWTYB.js → circle-check-BUMxM7Pv.js} +1 -1
- package/assets/{circle-check-big-CVlYwPvW.js → circle-check-big-BP7Pn5eb.js} +1 -1
- package/assets/{circle-help-BSxYNH4r.js → circle-help-B083hm65.js} +1 -1
- package/assets/{clock-DQO0Oi4O.js → clock-8nW9RI8K.js} +1 -1
- package/assets/{cloud-off-CUN7xSDU.js → cloud-off-BRk6zo1b.js} +1 -1
- package/assets/compose._-_outboxMessageId_-CN2ZUrAe.js +1 -0
- package/assets/compose._-_outboxMessageId_-DmK_lXQP.js +1 -0
- package/assets/compose._-_outboxMessageId_-Lkfk9hrZ.js +1 -0
- package/assets/compose._-_outboxMessageId_-uc2TFREe.js +1 -0
- package/assets/{config-import-3qED7KRP.js → config-import-Bk6uFuiN.js} +1 -1
- package/assets/{confirm-dialog-DCFAU3wg.js → confirm-dialog-BXhRj5Sm.js} +1 -1
- package/assets/{copy-CMEksM9b.js → copy-cdXYXbA6.js} +1 -1
- package/assets/{credential-steps-DjMS9JxY.js → credential-steps-B4j2Icsi.js} +1 -1
- package/assets/{download-DpUgrnYE.js → download-D9_dvZ6g.js} +1 -1
- package/assets/{draft-UntYYkEO.js → draft-BIQ0-Lk_.js} +1 -1
- package/assets/edit-DGHa68Jh.js +1 -0
- package/assets/edit-cyEdCEG-.js +1 -0
- package/assets/{external-link-Dp_vrT3U.js → external-link-Ct6hJ8mI.js} +1 -1
- package/assets/{file-json-BXCpWMKO.js → file-json-FJobBXk2.js} +1 -1
- package/assets/{filters-BPOqWe_z.js → filters-BAyEbBhi.js} +1 -1
- package/assets/{flagged-DOHBcWRm.js → flagged-C439b_WS.js} +1 -1
- package/assets/flagged-pJGEDQAe.js +1 -0
- package/assets/{folder-input-v9jv3QvB.js → folder-input-DjxVjldz.js} +1 -1
- package/assets/folders-CIyVw-EH.js +1 -0
- package/assets/{help-copy-BEXklmCF.js → help-copy-YhaxQEIY.js} +1 -1
- package/assets/{import-H021ROti.js → import-af_hbF-p.js} +1 -1
- package/assets/index-BZPylmnf.js +1 -0
- package/assets/{index-KSq98OCk.js → index-BlOq3dK1.js} +4 -4
- package/assets/index-BnrEzeaK.js +1 -0
- package/assets/index-CUzI2YR7.js +1 -0
- package/assets/index-CpjgMzVc.js +1 -0
- package/assets/{index-BVIV7uOn.js → index-D94MOpo0.js} +59 -59
- package/assets/index-D9j5MCr1.js +1 -0
- package/assets/index-DJh02QjC.js +1 -0
- package/assets/index-DiJIuK0Z.js +1 -0
- package/assets/index-aGpmi6EA.js +1 -0
- package/assets/index-g59ADgCj.js +1 -0
- package/assets/index-vFdlNYM0.js +1 -0
- package/assets/{kbd-CD9WJQDD.js → kbd-cd0_OQ1u.js} +1 -1
- package/assets/{label-chip-D6H7mAQZ.js → label-chip-BYIaT-tI.js} +1 -1
- package/assets/{labels-B1aYofac.js → labels-DnNxXAR1.js} +1 -1
- package/assets/{mail-BXDRGUJS.js → mail-4EQRG36P.js} +1 -1
- package/assets/mail-CE3n3sQ0.js +1 -0
- package/assets/{menu-Cul_tOCl.js → menu-C3buEsRL.js} +1 -1
- package/assets/new-CByizl3m.js +1 -0
- package/assets/onboarding-CA8Qn0P1.js +1 -0
- package/assets/{onboarding-completion-C5SxIJff.js → onboarding-completion-BxKBJWb5.js} +1 -1
- package/assets/outbox-wQ86O6i5.js +1 -0
- package/assets/{pencil-D4t_TOKs.js → pencil-Cr6xAk53.js} +1 -1
- package/assets/{people-CBau3oq-.js → people-H9fmtU8R.js} +1 -1
- package/assets/{plus-BSFg3ibr.js → plus-BEkGxsOV.js} +1 -1
- package/assets/{popover-menu-Drk7oRld.js → popover-menu-D1Ggz_nA.js} +1 -1
- package/assets/{refresh-cw-CuoE7FSQ.js → refresh-cw-BDamTi58.js} +1 -1
- package/assets/{reply-DtObeSB2.js → reply-DPVLqPcI.js} +1 -1
- package/assets/{rich-text-Fi0gjjkk.js → rich-text-D3EPlK78.js} +1 -1
- package/assets/{rich-text-spellcheck-worker-provider-uKovGi4E.js → rich-text-spellcheck-worker-provider-DPs4YZHA.js} +1 -1
- package/assets/{rotate-ccw-9KACcb0y.js → rotate-ccw-Dxx7BcD7.js} +1 -1
- package/assets/{roving-focus-WwAX8-VC.js → roving-focus-CJC-AjPO.js} +1 -1
- package/assets/{row-actions-C0oNI3Ia.js → row-actions-uPzTjymf.js} +1 -1
- package/assets/{search-mirror-CQaPpynv.js → search-mirror-C2_MRHKT.js} +1 -1
- package/assets/{search-scope-CuQFKckU.js → search-scope-CdH_SY3a.js} +1 -1
- package/assets/{search-token-index-BXdRQHFC.js → search-token-index-DXiN1835.js} +1 -1
- package/assets/sections-Dm0mEk9W.js +1 -0
- package/assets/security-C1G2I4K2.js +1 -0
- package/assets/{segmented-control-DH-yNZtm.js → segmented-control-D_XxaVb8.js} +1 -1
- package/assets/{select-CU_oR6rc.js → select-CB3Efp6I.js} +1 -1
- package/assets/{senders-OMax5Bsf.js → senders-BPIkrH6Y.js} +1 -1
- package/assets/settings-BjSixogd.js +1 -0
- package/assets/{settings-screen-FlCW-JB0.js → settings-screen-CF0fiL2l.js} +1 -1
- package/assets/{sparkles-D9JSeha5.js → sparkles-rKmhB5Fk.js} +1 -1
- package/assets/{suggest-list-MxpHM4zs.js → suggest-list-Dz1MsIYD.js} +1 -1
- package/assets/{suggested-vips-CUOrJsvn.js → suggested-vips-idJBB-lA.js} +1 -1
- package/assets/{suggestion._suggestionId-BDEu9XtG.js → suggestion._suggestionId-Cn195KCI.js} +1 -1
- package/assets/{task._calendarTaskId-glaP1HGu.js → task._calendarTaskId-CzVuyEtm.js} +1 -1
- package/assets/{undo-2-BLxVGig8.js → undo-2-BAub6h7R.js} +1 -1
- package/assets/{useCalendarData-BHwxEmxu.js → useCalendarData-DQ7oi-nJ.js} +1 -1
- package/assets/{useCalendarScheduling-BPs-bAlU.js → useCalendarScheduling-DAb_8yBj.js} +1 -1
- package/assets/{useCalendarSuggestions-C4O39URl.js → useCalendarSuggestions-BfA31NJY.js} +1 -1
- package/assets/{useCalendarTasks-BYrDBjzg.js → useCalendarTasks-BMPfFFau.js} +1 -1
- package/assets/{useDebouncedValue-CQk7uQJy.js → useDebouncedValue-BQRYh_4T.js} +1 -1
- package/assets/{useFilters-DXcDtC9M.js → useFilters-IsqJ-AEH.js} +1 -1
- package/assets/{useLabels-Ds4FhWUf.js → useLabels-CrZtVj3Y.js} +1 -1
- package/assets/{useLayoutTier-CDh6ugx0.js → useLayoutTier-CIlJuePx.js} +1 -1
- package/assets/{useMediaQuery-DHHct6HU.js → useMediaQuery-CGZfUxdm.js} +1 -1
- package/assets/{useMessageBodyContent-Bz4eLwYW.js → useMessageBodyContent-yhApp3IG.js} +1 -1
- package/assets/{useQueries-CFXMrDWB.js → useQueries-CIIHHroC.js} +1 -1
- package/assets/{useRefreshControl-CmSuQYeT.js → useRefreshControl-MOracVIf.js} +1 -1
- package/assets/{useResultFolderIndex-B-bcuKwK.js → useResultFolderIndex-BjaX8bsI.js} +1 -1
- package/assets/{useSignature-ChD8g6V6.js → useSignature-ClOAemBi.js} +1 -1
- package/assets/{warnings-DuiY0HQB.js → warnings-BRGgf3x_.js} +4 -4
- package/index.html +1 -1
- package/package.json +1 -1
- package/assets/CalendarQuickCreate-DF0Uxv4V.js +0 -1
- package/assets/DesktopChrome-Ciuao7Ro.js +0 -1
- package/assets/FlaggedPane-CMZMZWbM.js +0 -1
- package/assets/MessageToolbar-BB_mPS4p.js +0 -1
- package/assets/OutboxPane-vxvckaxe.js +0 -1
- package/assets/_calendarObjectId-CysTJCDO.js +0 -1
- package/assets/_mailboxId-sUyLlrph.js +0 -1
- package/assets/_messageId-BNOLD_NW.js +0 -1
- package/assets/_messageId-C11dYlL_.js +0 -1
- package/assets/_messageId-sL5uhmsZ.js +0 -1
- package/assets/_outboxMessageId-D8CVGqIw.js +0 -1
- package/assets/_recurrenceId-BZ43TEn7.js +0 -1
- package/assets/_threadId-CKva01mK.js +0 -1
- package/assets/_threadId-Dcu-hZiA.js +0 -1
- package/assets/_threadId-mSRKzdYV.js +0 -1
- package/assets/advanced-A-kGFwE6.js +0 -1
- package/assets/brief-DcVaSAff.js +0 -1
- package/assets/calendar-DEqazg7d.js +0 -1
- package/assets/chevron-down-BI1fWP0V.js +0 -1
- package/assets/chevron-left-BQBw-0xj.js +0 -1
- package/assets/compose._-_outboxMessageId_--bw-JQyQ.js +0 -1
- package/assets/compose._-_outboxMessageId_-9p2UwGZ2.js +0 -1
- package/assets/compose._-_outboxMessageId_-BKX6xXkK.js +0 -1
- package/assets/compose._-_outboxMessageId_-CoRtMIvt.js +0 -1
- package/assets/edit-C5xc8ZMZ.js +0 -1
- package/assets/edit-DY8bOvEH.js +0 -1
- package/assets/flagged-B0gfe6c8.js +0 -1
- package/assets/folders-WZv8o8Yl.js +0 -1
- package/assets/index-B0WA56eY.js +0 -1
- package/assets/index-BNOLD_NW.js +0 -1
- package/assets/index-BQRB4Hbr.js +0 -1
- package/assets/index-BSVI2qk3.js +0 -1
- package/assets/index-BTWqd0y1.js +0 -1
- package/assets/index-C11dYlL_.js +0 -1
- package/assets/index-C9L3Y4ln.js +0 -1
- package/assets/index-CMYDLexx.js +0 -1
- package/assets/index-Ct_bZm5J.js +0 -1
- package/assets/index-cUEB_Vmo.js +0 -1
- package/assets/mail-CzYW0cEP.js +0 -1
- package/assets/new-CdrTfyYm.js +0 -1
- package/assets/onboarding-Bt28IS6_.js +0 -1
- package/assets/outbox-C-QNKevV.js +0 -1
- package/assets/sections-DssOe_S4.js +0 -1
- package/assets/settings-qYifOymR.js +0 -1
- package/assets/shield-check-7IzpHero.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a9 as b,t as w,L as C,j as s,p as g,T as H,v as S,E as _,u as q,r as x,c6 as U,a as K,U as W,H as G,e as J,ag as V,cR as X,f as v,ah as y,cn as Y,co as Z,bM as p,eI as ee}from"./index-BVIV7uOn.js";import{u as se,p as te,R as j,A as ne,l as ae}from"./MessageBody-Ba6dVlG6.js";import{i as oe,s as k}from"./outbox-status-BlKn6P0x.js";import{n as re,P as R,N as ie}from"./NavMenuButton-DuV5qIvO.js";import{g as le,k as ce}from"./reply-DtObeSB2.js";import{g as ue}from"./useMessageBodyContent-Bz4eLwYW.js";import{a as de,u as I,L}from"./roving-focus-WwAX8-VC.js";import{C as T}from"./circle-check-big-CVlYwPvW.js";import{C as A}from"./clock-DQO0Oi4O.js";import{R as xe}from"./row-actions-C0oNI3Ia.js";import{R as fe}from"./rotate-ccw-9KACcb0y.js";const me={queued:{icon:A,label:"Queued",className:"text-warning"},sending:{icon:C,label:"Sending…",className:"text-accent-2",spin:!0},sent:{icon:T,label:"Sent",className:"text-positive"},unfiled:{icon:b,label:"Sent, not filed",className:"text-warning"},failed:{icon:w,label:"Failed",className:"text-danger"},blocked:{icon:b,label:"Blocked",className:"text-warning"}};function O({status:e,iconOnly:t,className:a}){const n=me[e],o=n.icon;return s.jsxs("span",{className:g("inline-flex items-center gap-1.5 text-xs font-medium",n.className,a),children:[s.jsx(o,{className:g("size-4",n.spin&&"animate-spin")}),!t&&n.label]})}const he=(e,t)=>t?"bg-accent-2-soft":e==="failed"?"bg-danger-soft":e==="blocked"||e==="unfiled"?"bg-warning/10":"";function ge({recipients:e,subject:t,time:a,status:n,error:o,selected:l,onSelect:c,onRetry:r,retrying:u,onEdit:i,onDelete:f,deleting:d}){const m=n==="failed"||n==="blocked"||n==="unfiled";return s.jsxs("div",{className:g("flex items-start gap-3 border-b border-line px-4 py-3 transition-colors hover:bg-surface-raised",he(n,l)),children:[s.jsxs("button",{type:"button",...de,onClick:c,className:"flex flex-1 min-w-0 items-start gap-3 text-left",children:[s.jsx("div",{className:"mt-0.5 shrink-0",children:s.jsx(O,{status:n,iconOnly:!0})}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsxs("div",{className:"flex items-center justify-between gap-2",children:[s.jsx("span",{className:"truncate text-sm font-medium",children:e}),s.jsx("span",{className:"shrink-0 text-xs text-fg-muted",children:a})]}),s.jsx("div",{className:"truncate text-sm",children:t||"No subject"}),s.jsxs("div",{className:"mt-1 flex items-center gap-2",children:[s.jsx(O,{status:n}),o&&s.jsxs("span",{className:"truncate text-xs text-fg-muted",children:["— ",o]})]})]})]}),m&&s.jsx("div",{className:"shrink-0",children:s.jsx(xe,{actions:[...n==="failed"&&r?[{label:"Retry sending",iconOnly:!0,icon:s.jsx(fe,{className:"size-3.5"}),busy:u,onClick:r}]:[],...n==="unfiled"?[]:[{label:"Edit as draft",iconOnly:!0,icon:s.jsx(S,{className:"size-3.5"}),onClick:i}]],destructive:{label:"Delete message",iconOnly:!0,icon:s.jsx(H,{className:"size-3.5"}),busy:d,confirm:{prompt:"Delete this message?",confirmLabel:"Delete"},onClick:f}})})]})}function Be(){return _({from:"/mail/outbox/draft/$outboxMessageId",shouldThrow:!1})?.outboxMessageId}function be(){const e=q(),t=le();return x.useCallback(a=>{e({to:"/mail/outbox/draft/$outboxMessageId",params:{outboxMessageId:a},search:U,hash:t})},[e,t])}function pe(){return ce()}function je(e,t){const a=t.trim().toLowerCase();if(a.length===0)return!0;const n=[e.subject,e.fromAddress,e.fromName,...e.toAddresses??[],...e.ccAddresses??[]].filter(o=>typeof o=="string").join(" ").toLowerCase();return a.split(/\s+/).every(o=>o.length===0||n.includes(o))}function Ne(e){return e.tokens.length>0&&e.freeText.trim().length===0}const D={queued:{icon:A,label:"Queued",className:"text-warning"},sending:{icon:C,label:"Sending…",className:"text-accent-2"},sent:{icon:T,label:"Sent",className:"text-positive"},unfiled:{icon:b,label:"Sent, not filed",className:"text-warning"},failed:{icon:w,label:"Failed",className:"text-danger"},blocked:{icon:b,label:"Blocked",className:"text-warning"}},ve=e=>ee(e).toDateString()===new Date().toDateString()?p(e,{hour:"numeric",minute:"2-digit"}):p(e,{month:"short",day:"numeric"}),M=e=>p(e,{dateStyle:"medium",timeStyle:"short"}),ye=e=>{const t=e.toAddresses??[];return t.length===0?"No recipients":t.length===1?t[0]:`${t[0]} +${t.length-1}`},E=(e,t)=>t?"The outbox cannot filter on those terms":e?"No matching outbox messages":"No outbox messages",P=x.createContext(null);function N(){const e=x.useContext(P);if(!e)throw new Error("OutboxPane.* must be used inside <OutboxPane>");return e}function Oe({outboxMessageId:e,children:t}){const a=be(),n=pe(),{data:o,isLoading:l}=K(W()),{searchQuery:c}=G(),r=se(),u=re(c),i=te(u,r),f=u.length>0,d=Ne(i),m=x.useMemo(()=>d?[]:(o?.items??[]).filter(h=>oe(h.status)).filter(h=>je(h,i.freeText)),[o,i.freeText,d]),F=x.useMemo(()=>m.find(h=>h.outboxMessageId===e),[m,e]),$={messages:m,hasQuery:f,unsupportedQuery:d,isLoading:l,selectedMessageId:e,selectedMessage:F,onOpenMessage:a,onCloseMessage:n};return s.jsx(P.Provider,{value:$,children:t})}function Q({message:e,isSelected:t,onSelect:a}){const n=J(),o=ue(),{pushError:l}=V(),c=x.useCallback(()=>{n.invalidateQueries({queryKey:X()})},[n]),r=v({...Y(),onSuccess:c,onError:d=>{l(y("Couldn't resend message","The message wasn't sent.",d))}}),u=v({...Z(),onSuccess:c,onError:d=>{l(y("Couldn't delete message","The message wasn't deleted.",d))}}),i=e.status;if(!D[i])return null;const f=k(e.status);return s.jsx(ge,{recipients:ye(e),subject:e.subject||"",time:ve(e.sentAt??e.updatedAt),status:i,error:f?e.lastError??void 0:void 0,selected:t,onSelect:a,onRetry:i==="failed"?()=>r.mutate({path:{outboxMessageId:e.outboxMessageId}}):void 0,retrying:r.isPending,onEdit:()=>o(e.outboxMessageId),onDelete:()=>u.mutate({path:{outboxMessageId:e.outboxMessageId}}),deleting:u.isPending})}function B({message:e,onBack:t}){const a=e.status,n=D[a],o=n?.icon??S,l=e.sentAt?M(e.sentAt):M(e.updatedAt);return s.jsxs("div",{className:"h-full overflow-y-auto bg-canvas",children:[s.jsxs("div",{className:"border-b border-line p-4",children:[t&&s.jsxs("button",{type:"button",onClick:t,className:"mb-3 inline-flex items-center gap-1 text-sm text-fg-muted hover:text-fg",children:[s.jsx(ne,{className:"size-4"}),s.jsx("span",{children:"Back"})]}),s.jsx("h1",{className:"text-xl font-semibold mb-3",children:e.subject||"(No subject)"}),s.jsxs("div",{className:"space-y-1 text-sm",children:[s.jsxs("div",{className:"flex gap-2",children:[s.jsx("span",{className:"text-fg-muted shrink-0 w-12",children:"From:"}),s.jsx("span",{className:"text-fg",children:e.fromName?`${e.fromName} <${e.fromAddress}>`:e.fromAddress})]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("span",{className:"text-fg-muted shrink-0 w-12",children:"To:"}),s.jsx("span",{className:"text-fg",children:(e.toAddresses??[]).join(", ")})]}),e.ccAddresses&&e.ccAddresses.length>0&&s.jsxs("div",{className:"flex gap-2",children:[s.jsx("span",{className:"text-fg-muted shrink-0 w-12",children:"Cc:"}),s.jsx("span",{className:"text-fg",children:e.ccAddresses.join(", ")})]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("span",{className:"text-fg-muted shrink-0 w-12",children:"Date:"}),s.jsx("span",{className:"text-fg",children:l})]}),n&&s.jsxs("div",{className:"flex items-center gap-2 pt-2",children:[s.jsx(o,{className:g("size-4",n.className,a==="sending"&&"animate-spin")}),s.jsx("span",{className:g("text-xs font-medium",n.className),children:n.label}),k(e.status)&&e.lastError&&s.jsxs("span",{className:"text-xs text-fg-muted",children:["— ",e.lastError]})]})]})]}),s.jsx("div",{className:"p-4",children:s.jsx(ae,{html:e.htmlBody,text:e.textBody})})]})}function Me(){const{messages:e,hasQuery:t,unsupportedQuery:a,isLoading:n,selectedMessageId:o,onOpenMessage:l}=N(),c=x.useRef(null);return I({containerRef:c,itemSelector:L}),n?s.jsx("div",{className:"flex h-full items-center justify-center bg-canvas",children:s.jsx("span",{className:"text-fg-muted",children:"Loading..."})}):e.length===0?s.jsx("div",{className:"flex h-full bg-surface",children:s.jsx(j,{message:E(t,a),showHints:!1})}):s.jsxs("div",{className:"h-full flex flex-col bg-canvas",children:[s.jsx(z,{count:e.length}),s.jsx("div",{ref:c,className:"flex-1 overflow-y-auto",children:e.map(r=>s.jsx(Q,{message:r,isSelected:o===r.outboxMessageId,onSelect:()=>l(r.outboxMessageId)},r.outboxMessageId))})]})}function z({count:e}){return s.jsx(R,{title:"Outbox",leading:s.jsx(ie,{}),children:s.jsxs("span",{className:"shrink-0 text-2xs text-fg-subtle",children:[e," ",e===1?"message":"messages"]})})}function we(){const{selectedMessage:e}=N();return s.jsxs("section",{className:"flex h-full w-full min-w-0 flex-col bg-canvas",children:[s.jsx(R,{}),s.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:e?s.jsx(B,{message:e}):s.jsx(j,{message:"Select a message to read",showHints:!1})})]})}function Ce(){const{messages:e,hasQuery:t,unsupportedQuery:a,isLoading:n,selectedMessageId:o,selectedMessage:l,onOpenMessage:c,onCloseMessage:r}=N(),u=x.useRef(null);return I({containerRef:u,itemSelector:L}),n?s.jsx("div",{className:"flex h-full items-center justify-center bg-canvas",children:s.jsx("span",{className:"text-fg-muted",children:"Loading..."})}):l?s.jsx(B,{message:l,onBack:r}):e.length===0?s.jsx("div",{className:"flex h-full bg-surface",children:s.jsx(j,{message:E(t,a),showHints:!1})}):s.jsxs("div",{className:"h-full flex flex-col bg-canvas",children:[s.jsx(z,{count:e.length}),s.jsx("div",{ref:u,className:"flex-1 overflow-y-auto",children:e.map(i=>s.jsx(Q,{message:i,isSelected:o===i.outboxMessageId,onSelect:()=>c(i.outboxMessageId)},i.outboxMessageId))})]})}const ze=Object.assign(Oe,{List:Me,Reading:we,Phone:Ce});export{ze as O,Be as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{O as o}from"./index-BVIV7uOn.js";const n=o;export{n as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a7 as m,j as o,O as p}from"./index-BVIV7uOn.js";import{a}from"./MailShell--jgEGKni.js";import{M as r}from"./MailboxPane-CvW6x3uh.js";import"./reply-DtObeSB2.js";import{a as e}from"./search-token-index-BXdRQHFC.js";import{u as s}from"./search-mirror-CQaPpynv.js";import"./useMessageBodyContent-Bz4eLwYW.js";import"./FullCompose-6pNo7wi4.js";import"./index-KSq98OCk.js";import"./useSignature-ChD8g6V6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CQk7uQJy.js";import"./suggest-list-MxpHM4zs.js";import"./sections-DssOe_S4.js";import"./useMediaQuery-DHHct6HU.js";import"./chevron-down-BI1fWP0V.js";import"./ErrorState-KWmymUQR.js";import"./confirm-dialog-DCFAU3wg.js";import"./search-scope-CuQFKckU.js";import"./app-chrome-CAqI0L8I.js";import"./MailViewChrome-33SQAjQn.js";import"./roving-focus-WwAX8-VC.js";import"./MessageToolbar-BB_mPS4p.js";import"./MessageBody-Ba6dVlG6.js";import"./kbd-CD9WJQDD.js";import"./useQueries-CFXMrDWB.js";import"./badge-BmEPIQJj.js";import"./undo-2-BLxVGig8.js";import"./DropdownMenu-fskbk1FW.js";import"./popover-menu-Drk7oRld.js";import"./mail-BXDRGUJS.js";import"./download-DpUgrnYE.js";import"./avatar-BKCZjVnK.js";import"./EmptyState-CzSAWxdK.js";import"./calendar-suggestion-w5Buli06.js";import"./useCalendarSuggestions-C4O39URl.js";import"./agenda-time-C_tFoNHA.js";import"./sparkles-D9JSeha5.js";import"./plus-BSFg3ibr.js";import"./calendar-format-BwCpz-JZ.js";import"./calendar-W0j7nrh5.js";import"./calendar-failure-note-Cc_-yh_l.js";import"./checkbox-CPr2JwkJ.js";import"./clock-DQO0Oi4O.js";import"./segmented-control-DH-yNZtm.js";import"./shield-check-7IzpHero.js";import"./useLayoutTier-CDh6ugx0.js";import"./menu-Cul_tOCl.js";import"./useFilters-DXcDtC9M.js";import"./select-CU_oR6rc.js";import"./folder-input-v9jv3QvB.js";import"./label-chip-D6H7mAQZ.js";import"./cloud-off-CUN7xSDU.js";import"./refresh-cw-CuoE7FSQ.js";import"./useRefreshControl-CmSuQYeT.js";import"./circle-check-big-CVlYwPvW.js";import"./LabelApplyTrigger-C0GQNIEk.js";import"./useLabels-Ds4FhWUf.js";import"./NavMenuButton-DuV5qIvO.js";import"./bottom-sheet-CYnEFnuG.js";import"./circle-help-BSxYNH4r.js";import"./circle-check-DyyOWTYB.js";function Mo(){const{mailboxId:t}=m.useParams(),i=e();return s({to:"/mail/$mailboxId",params:{mailboxId:t}}),o.jsx(r,{mailboxId:t,thread:i,children:o.jsx(a,{phone:o.jsx(r.Phone,{}),list:o.jsx(r.List,{}),reading:o.jsx(p,{}),intelligence:o.jsx(r.Intelligence,{}),hasThread:!!i})})}export{Mo as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./index-BVIV7uOn.js";import{B as o}from"./BriefPane-CcwdfBlh.js";import"./MessageToolbar-BB_mPS4p.js";import"./MessageBody-Ba6dVlG6.js";import"./kbd-CD9WJQDD.js";import"./search-scope-CuQFKckU.js";import"./app-chrome-CAqI0L8I.js";import"./reply-DtObeSB2.js";import"./useMediaQuery-DHHct6HU.js";import"./useMessageBodyContent-Bz4eLwYW.js";import"./roving-focus-WwAX8-VC.js";import"./chevron-down-BI1fWP0V.js";import"./search-token-index-BXdRQHFC.js";import"./useQueries-CFXMrDWB.js";import"./index-KSq98OCk.js";import"./useSignature-ChD8g6V6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CQk7uQJy.js";import"./suggest-list-MxpHM4zs.js";import"./sections-DssOe_S4.js";import"./badge-BmEPIQJj.js";import"./undo-2-BLxVGig8.js";import"./DropdownMenu-fskbk1FW.js";import"./popover-menu-Drk7oRld.js";import"./ErrorState-KWmymUQR.js";import"./mail-BXDRGUJS.js";import"./download-DpUgrnYE.js";import"./avatar-BKCZjVnK.js";import"./EmptyState-CzSAWxdK.js";import"./calendar-suggestion-w5Buli06.js";import"./useCalendarSuggestions-C4O39URl.js";import"./agenda-time-C_tFoNHA.js";import"./sparkles-D9JSeha5.js";import"./plus-BSFg3ibr.js";import"./calendar-format-BwCpz-JZ.js";import"./calendar-W0j7nrh5.js";import"./calendar-failure-note-Cc_-yh_l.js";import"./checkbox-CPr2JwkJ.js";import"./clock-DQO0Oi4O.js";import"./segmented-control-DH-yNZtm.js";import"./shield-check-7IzpHero.js";import"./useLayoutTier-CDh6ugx0.js";import"./menu-Cul_tOCl.js";import"./useFilters-DXcDtC9M.js";import"./select-CU_oR6rc.js";import"./folder-input-v9jv3QvB.js";import"./confirm-dialog-DCFAU3wg.js";import"./label-chip-D6H7mAQZ.js";import"./cloud-off-CUN7xSDU.js";import"./LabelApplyTrigger-C0GQNIEk.js";import"./useLabels-Ds4FhWUf.js";import"./useRefreshControl-CmSuQYeT.js";import"./circle-check-big-CVlYwPvW.js";import"./refresh-cw-CuoE7FSQ.js";import"./wizard-selection-zWa1qc6-.js";function ir(){return r.jsx(o.Reading,{})}export{ir as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-BVIV7uOn.js";import{F as r}from"./FlaggedPane-CMZMZWbM.js";import"./MessageToolbar-BB_mPS4p.js";import"./MessageBody-Ba6dVlG6.js";import"./kbd-CD9WJQDD.js";import"./search-scope-CuQFKckU.js";import"./app-chrome-CAqI0L8I.js";import"./reply-DtObeSB2.js";import"./useMediaQuery-DHHct6HU.js";import"./useMessageBodyContent-Bz4eLwYW.js";import"./roving-focus-WwAX8-VC.js";import"./chevron-down-BI1fWP0V.js";import"./search-token-index-BXdRQHFC.js";import"./useQueries-CFXMrDWB.js";import"./index-KSq98OCk.js";import"./useSignature-ChD8g6V6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CQk7uQJy.js";import"./suggest-list-MxpHM4zs.js";import"./sections-DssOe_S4.js";import"./badge-BmEPIQJj.js";import"./undo-2-BLxVGig8.js";import"./DropdownMenu-fskbk1FW.js";import"./popover-menu-Drk7oRld.js";import"./ErrorState-KWmymUQR.js";import"./mail-BXDRGUJS.js";import"./download-DpUgrnYE.js";import"./avatar-BKCZjVnK.js";import"./EmptyState-CzSAWxdK.js";import"./calendar-suggestion-w5Buli06.js";import"./useCalendarSuggestions-C4O39URl.js";import"./agenda-time-C_tFoNHA.js";import"./sparkles-D9JSeha5.js";import"./plus-BSFg3ibr.js";import"./calendar-format-BwCpz-JZ.js";import"./calendar-W0j7nrh5.js";import"./calendar-failure-note-Cc_-yh_l.js";import"./checkbox-CPr2JwkJ.js";import"./clock-DQO0Oi4O.js";import"./segmented-control-DH-yNZtm.js";import"./shield-check-7IzpHero.js";import"./useLayoutTier-CDh6ugx0.js";import"./menu-Cul_tOCl.js";import"./useFilters-DXcDtC9M.js";import"./select-CU_oR6rc.js";import"./folder-input-v9jv3QvB.js";import"./confirm-dialog-DCFAU3wg.js";import"./label-chip-D6H7mAQZ.js";import"./cloud-off-CUN7xSDU.js";import"./MailViewChrome-33SQAjQn.js";import"./refresh-cw-CuoE7FSQ.js";import"./wizard-selection-zWa1qc6-.js";function oo(){return o.jsx(r.Reading,{})}export{oo as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-BVIV7uOn.js";import{M as r}from"./MailboxPane-CvW6x3uh.js";import"./MailViewChrome-33SQAjQn.js";import"./search-token-index-BXdRQHFC.js";import"./reply-DtObeSB2.js";import"./useMediaQuery-DHHct6HU.js";import"./search-scope-CuQFKckU.js";import"./app-chrome-CAqI0L8I.js";import"./useQueries-CFXMrDWB.js";import"./roving-focus-WwAX8-VC.js";import"./MessageToolbar-BB_mPS4p.js";import"./MessageBody-Ba6dVlG6.js";import"./kbd-CD9WJQDD.js";import"./useMessageBodyContent-Bz4eLwYW.js";import"./chevron-down-BI1fWP0V.js";import"./index-KSq98OCk.js";import"./useSignature-ChD8g6V6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CQk7uQJy.js";import"./suggest-list-MxpHM4zs.js";import"./sections-DssOe_S4.js";import"./badge-BmEPIQJj.js";import"./undo-2-BLxVGig8.js";import"./DropdownMenu-fskbk1FW.js";import"./popover-menu-Drk7oRld.js";import"./ErrorState-KWmymUQR.js";import"./mail-BXDRGUJS.js";import"./download-DpUgrnYE.js";import"./avatar-BKCZjVnK.js";import"./EmptyState-CzSAWxdK.js";import"./calendar-suggestion-w5Buli06.js";import"./useCalendarSuggestions-C4O39URl.js";import"./agenda-time-C_tFoNHA.js";import"./sparkles-D9JSeha5.js";import"./plus-BSFg3ibr.js";import"./calendar-format-BwCpz-JZ.js";import"./calendar-W0j7nrh5.js";import"./calendar-failure-note-Cc_-yh_l.js";import"./checkbox-CPr2JwkJ.js";import"./clock-DQO0Oi4O.js";import"./segmented-control-DH-yNZtm.js";import"./shield-check-7IzpHero.js";import"./useLayoutTier-CDh6ugx0.js";import"./menu-Cul_tOCl.js";import"./useFilters-DXcDtC9M.js";import"./select-CU_oR6rc.js";import"./folder-input-v9jv3QvB.js";import"./confirm-dialog-DCFAU3wg.js";import"./label-chip-D6H7mAQZ.js";import"./cloud-off-CUN7xSDU.js";import"./refresh-cw-CuoE7FSQ.js";import"./useRefreshControl-CmSuQYeT.js";import"./circle-check-big-CVlYwPvW.js";import"./LabelApplyTrigger-C0GQNIEk.js";import"./useLabels-Ds4FhWUf.js";import"./NavMenuButton-DuV5qIvO.js";import"./bottom-sheet-CYnEFnuG.js";import"./circle-help-BSxYNH4r.js";import"./circle-check-DyyOWTYB.js";function eo(){return o.jsx(r.Reading,{})}export{eo as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-BVIV7uOn.js";import{O as t}from"./OutboxPane-vxvckaxe.js";import"./MessageBody-Ba6dVlG6.js";import"./kbd-CD9WJQDD.js";import"./search-scope-CuQFKckU.js";import"./app-chrome-CAqI0L8I.js";import"./reply-DtObeSB2.js";import"./useMediaQuery-DHHct6HU.js";import"./useMessageBodyContent-Bz4eLwYW.js";import"./outbox-status-BlKn6P0x.js";import"./NavMenuButton-DuV5qIvO.js";import"./menu-Cul_tOCl.js";import"./roving-focus-WwAX8-VC.js";import"./circle-check-big-CVlYwPvW.js";import"./clock-DQO0Oi4O.js";import"./row-actions-C0oNI3Ia.js";import"./rotate-ccw-9KACcb0y.js";function d(){return o.jsx(t.Reading,{})}export{d as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{O as o}from"./index-BVIV7uOn.js";const n=o;export{n as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{O as o}from"./index-BVIV7uOn.js";const n=o;export{n as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{O as o}from"./index-BVIV7uOn.js";const n=o;export{n as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{O as o}from"./index-BVIV7uOn.js";const n=o;export{n as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e,ax as T,aF as y,B as r,aG as j,r as h,a9 as u,d as S,L as g,aH as p,p as I,e as A,aI as B,aJ as L,a4 as k,aK as D,aL as O,aM as U,u as E,az as V,aB as _}from"./index-BVIV7uOn.js";import{e as F}from"./config-import-3qED7KRP.js";import"./reply-DtObeSB2.js";import{u as H}from"./sections-DssOe_S4.js";import{C as M,a as P,b as Y,c as G}from"./card-BYFKESRL.js";import{D as N}from"./download-DpUgrnYE.js";import{B as w}from"./badge-BmEPIQJj.js";import{F as J}from"./file-json-BXCpWMKO.js";import{R as v}from"./rotate-ccw-9KACcb0y.js";import{C as b}from"./circle-check-DyyOWTYB.js";import{E as C}from"./external-link-Dp_vrT3U.js";import{C as W}from"./cloud-off-CUN7xSDU.js";import{C as q}from"./clock-DQO0Oi4O.js";import{S as Q}from"./shield-check-7IzpHero.js";import{b as $}from"./help-copy-BEXklmCF.js";import{S as K}from"./settings-screen-FlCW-JB0.js";import"./useMediaQuery-DHHct6HU.js";import"./kbd-CD9WJQDD.js";import"./avatar-BKCZjVnK.js";import"./chevron-left-BQBw-0xj.js";import"./menu-Cul_tOCl.js";import"./circle-help-BSxYNH4r.js";const X=["Remit restarts. Mail stops loading for about a minute and this page will lose its connection while that happens.","Nothing is sent, deleted or moved. Your mail stays at your provider.","If the new version does not come back up, the version you are running now is restored automatically."];function Z({open:s,currentVersion:n,release:a,appliesSchemaMigration:t=!1,onClose:c,onConfirm:i}){return s?e.jsx(T,{open:!0,onClose:c,title:`Install Remit ${a.version}`,children:e.jsxs("div",{className:"flex max-h-[80vh] flex-col",children:[e.jsxs("header",{className:"space-y-1 border-b border-line px-4 py-3",children:[e.jsxs("h3",{className:"text-sm font-semibold text-fg",children:["Install Remit ",a.version,"?"]}),e.jsxs("p",{className:"text-xs text-fg-muted",children:["You are on ",n,". ",a.version," was released"," ",y(a.releasedAt),"."]})]}),e.jsxs("div",{className:"flex-1 space-y-3 overflow-auto px-4 py-3",children:[e.jsx("p",{className:"text-sm text-fg-muted",children:a.summary}),e.jsxs("ul",{className:"space-y-2",children:[X.map(l=>e.jsxs("li",{className:"flex gap-2 text-sm text-fg-muted",children:[e.jsx("span",{className:"mt-1.5 size-1.5 shrink-0 rounded-full bg-fg-subtle"}),e.jsx("span",{children:l})]},l)),t&&e.jsxs("li",{className:"flex gap-2 text-sm text-fg-muted",children:[e.jsx("span",{className:"mt-1.5 size-1.5 shrink-0 rounded-full bg-fg-subtle"}),e.jsx("span",{children:"This version updates the database while Remit is offline. The step forward cannot be undone by hand, but a failed start is still rolled back to the version and data you have now."})]})]}),e.jsx("p",{className:"text-xs text-fg-subtle",children:"Good moment for this: when you are not waiting on a message."})]}),e.jsxs("footer",{className:"flex flex-wrap items-center justify-end gap-2 border-t border-line px-4 py-3",children:[e.jsx(r,{variant:"ghost",size:"sm",onClick:c,children:"Not now"}),e.jsx(j,{variant:"secondary",size:"sm",external:!0,href:a.releaseNotesUrl,icon:e.jsx(C,{className:"size-3.5"}),children:"Release notes"}),e.jsx(r,{size:"sm",icon:e.jsx(N,{className:"size-3.5"}),onClick:i,children:"Install and restart"})]})]})}):null}function o({children:s,tone:n}){return e.jsx("div",{className:I("rounded-sm border bg-surface px-row-inset py-3",n==="danger"?"border-danger/50":"border-line"),children:s})}function ee({state:s,onCheck:n,onInstall:a,onDismissResult:t,now:c=Date.now()}){const[i,l]=h.useState(null),m=s.status==="checking",d=s.status==="available",x=()=>{if(m){l("Already checking. The result appears here in a moment.");return}l(null),n()},z=()=>{t(),x()},f=()=>{if(!d&&s.status!=="rolledBack"&&s.status!=="abandoned"){l("There is no update to install. Check for updates first — if one is found it appears here.");return}l(null),a()},R=(()=>{switch(s.status){case"upToDate":return e.jsx(o,{children:e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[e.jsx(b,{className:"size-4 shrink-0 text-positive","aria-hidden":!0}),e.jsxs("p",{className:"text-sm text-fg",children:["Remit ",s.version," is the latest version.",e.jsxs("span",{className:"text-fg-subtle",children:[" ","Checked ",p(s.checkedAt,c),"."]})]})]}),e.jsx(r,{variant:"secondary",size:"sm",className:"shrink-0",onClick:x,children:"Check again"})]})});case"checking":return e.jsx(o,{children:e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[e.jsx(g,{className:"size-4 shrink-0 animate-spin text-fg-subtle","aria-hidden":!0}),e.jsxs("p",{className:"text-sm text-fg-muted",children:["Looking for a newer version. You are on ",s.version,"."]})]}),e.jsx(r,{variant:"secondary",size:"sm",className:"shrink-0",onClick:x,children:"Check again"})]})});case"neverChecked":return e.jsx(o,{children:e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{className:"flex min-w-0 items-start gap-2",children:[e.jsx(q,{className:"mt-0.5 size-4 shrink-0 text-fg-subtle","aria-hidden":!0}),e.jsxs("p",{className:"text-sm text-fg-muted",children:["No update check has run yet. Remit checks for updates on its own in the background.",s.lastCheckedAt!==void 0&&e.jsxs("span",{className:"text-fg-subtle",children:[" ","Last checked"," ",p(s.lastCheckedAt,c),"."]})]})]}),e.jsx(r,{variant:"secondary",size:"sm",className:"shrink-0",onClick:x,children:"Check now"})]})});case"checkFailed":return e.jsx(o,{children:e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(W,{className:"mt-0.5 size-4 shrink-0 text-fg-subtle","aria-hidden":!0}),e.jsxs("div",{className:"min-w-0 space-y-1",children:[e.jsx("p",{className:"text-sm text-fg",children:"Could not reach the update source."}),e.jsx("p",{className:"text-xs text-fg-muted",children:s.reason}),e.jsxs("p",{className:"text-xs text-fg-subtle",children:["You are still on ",s.version," and it keeps working.",s.lastCheckedAt!==void 0&&e.jsxs(e.Fragment,{children:[" ","Last successful check"," ",p(s.lastCheckedAt,c),"."]})]})]})]}),e.jsx("div",{className:"flex justify-end",children:e.jsx(r,{variant:"secondary",size:"sm",onClick:x,children:"Try again"})})]})});case"available":return e.jsx(o,{children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs("span",{className:"text-sm font-semibold text-fg",children:["Remit ",s.release.version]}),e.jsx(w,{tone:"accent",children:"update available"}),e.jsxs("span",{className:"text-2xs text-fg-subtle",children:["released ",y(s.release.releasedAt)," · you are on ",s.version]})]}),e.jsx("p",{className:"text-sm text-fg-muted",children:s.release.summary}),e.jsx("p",{className:"text-xs text-fg-subtle",children:"Installing restarts Remit, so mail stops loading for about a minute. If the new version does not come back up, the one you are running now is restored on its own."}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs(r,{size:"sm",icon:e.jsx(N,{className:"size-3.5"}),onClick:f,children:["Install ",s.release.version]}),e.jsx(j,{variant:"secondary",size:"sm",external:!0,href:s.release.releaseNotesUrl,icon:e.jsx(C,{className:"size-3.5"}),children:"Release notes"})]})]})});case"applying":return e.jsx(o,{children:e.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[e.jsx(g,{className:"size-4 shrink-0 animate-spin text-accent-2","aria-hidden":!0}),e.jsxs("p",{className:"text-sm text-fg-muted",children:["Installing Remit ",s.target,". The restart screen has the details."]})]})});case"succeeded":return e.jsxs(e.Fragment,{children:[e.jsx(S,{tone:"success",onDismiss:t,children:e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"font-semibold",children:["Updated to Remit ",s.version,"."]}),e.jsxs("p",{children:["You were on ",s.previousVersion,"."," ",e.jsx("a",{href:s.releaseNotesUrl,target:"_blank",rel:"noopener noreferrer",className:"underline",children:"See what changed"}),"."]})]})}),e.jsx(o,{children:e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[e.jsx(b,{className:"size-4 shrink-0 text-positive","aria-hidden":!0}),e.jsxs("p",{className:"text-sm text-fg",children:["Remit ",s.version," is running."]})]}),e.jsx(r,{variant:"secondary",size:"sm",className:"shrink-0",onClick:z,children:"Check for updates"})]})})]});case"rolledBack":return e.jsx(o,{tone:"danger",children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(u,{className:"mt-0.5 size-4 shrink-0 text-danger","aria-hidden":!0}),e.jsxs("div",{className:"min-w-0 space-y-1",children:[e.jsxs("p",{className:"text-sm font-semibold text-fg",children:["Remit ",s.attemptedVersion," did not start. Remit reports that it put ",s.version," back."]}),e.jsxs("p",{className:"text-sm text-fg-muted",children:["You are running ",s.version," again. A failed update can still have changed things on the way — the log below is the only account of what it got as far as doing."]})]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-xs text-fg-subtle",children:"What Remit reported as the failure"}),e.jsx("code",{className:"block rounded-xs bg-danger-soft px-2 py-1 text-2xs text-danger",children:s.reason})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-xs text-fg-subtle",children:"Read the full log before trying again:"}),e.jsx("code",{className:"block rounded-xs bg-surface-sunken px-2 py-1 text-2xs text-fg-muted",children:s.logsCommand})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs(r,{variant:"secondary",size:"sm",icon:e.jsx(v,{className:"size-3.5"}),onClick:f,children:["Try ",s.attemptedVersion," again"]}),e.jsxs(r,{variant:"ghost",size:"sm",onClick:t,children:["Stay on ",s.version]})]})]})});case"unreachable":return e.jsx(o,{tone:"danger",children:e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(u,{className:"mt-0.5 size-4 shrink-0 text-danger","aria-hidden":!0}),e.jsxs("div",{className:"min-w-0 space-y-1",children:[e.jsxs("p",{className:"text-sm font-semibold text-fg",children:["Installing ",s.attemptedVersion," left the server unreachable."]}),e.jsx("p",{className:"text-sm text-fg-muted",children:"Remit has answered again since, but nothing here can say what happened during the silence."})]})]}),e.jsx("code",{className:"block rounded-xs bg-surface-sunken px-2 py-1 text-2xs text-fg-muted",children:s.logsCommand}),e.jsx("div",{className:"flex justify-end",children:e.jsx(r,{variant:"ghost",size:"sm",onClick:t,children:"Dismiss"})})]})});case"rollbackFailed":return e.jsx(o,{tone:"danger",children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(u,{className:"mt-0.5 size-4 shrink-0 text-danger","aria-hidden":!0}),e.jsxs("div",{className:"min-w-0 space-y-1",children:[e.jsxs("p",{className:"text-sm font-semibold text-fg",children:["Remit ",s.attemptedVersion," did not start, and Remit could not put ",s.previousVersion," back."]}),e.jsx("p",{className:"text-sm text-fg-muted",children:"This is the one outcome Remit cannot resolve on its own. The server is in a half-changed state and needs you at a shell. The log below is the only account of where it stopped."})]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-xs text-fg-subtle",children:"What Remit reported as the failure"}),e.jsx("code",{className:"block rounded-xs bg-danger-soft px-2 py-1 text-2xs text-danger",children:s.reason})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-xs text-fg-subtle",children:"Read the full log on the server:"}),e.jsx("code",{className:"block rounded-xs bg-surface-sunken px-2 py-1 text-2xs text-fg-muted",children:s.logsCommand})]}),e.jsx("div",{className:"flex justify-end",children:e.jsx(r,{variant:"ghost",size:"sm",onClick:t,children:"Dismiss"})})]})});case"abandoned":return e.jsx(o,{tone:"danger",children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(u,{className:"mt-0.5 size-4 shrink-0 text-fg-subtle","aria-hidden":!0}),e.jsxs("div",{className:"min-w-0 space-y-1",children:[e.jsxs("p",{className:"text-sm font-semibold text-fg",children:["Remit ",s.attemptedVersion," was not installed. Nothing changed."]}),e.jsxs("p",{className:"text-sm text-fg-muted",children:["The update stopped before it altered anything. You are still running ",s.version,"."]})]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-xs text-fg-subtle",children:"What Remit reported"}),e.jsx("code",{className:"block rounded-xs bg-surface-sunken px-2 py-1 text-2xs text-fg-muted",children:s.reason})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-xs text-fg-subtle",children:"Read the full log before trying again:"}),e.jsx("code",{className:"block rounded-xs bg-surface-sunken px-2 py-1 text-2xs text-fg-muted",children:s.logsCommand})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs(r,{variant:"secondary",size:"sm",icon:e.jsx(v,{className:"size-3.5"}),onClick:f,children:["Try ",s.attemptedVersion," again"]}),e.jsxs(r,{variant:"ghost",size:"sm",onClick:t,children:["Stay on ",s.version]})]})]})});default:return s}})();return e.jsxs("section",{className:"space-y-3",children:[e.jsxs("header",{className:"space-y-1",children:[e.jsx("h2",{className:"text-sm font-semibold text-fg",children:"Updates"}),e.jsx("p",{className:"text-xs text-fg-muted",children:"This Remit runs on your own server, so it updates when you say so. Your mail lives at your provider and is never touched by an update."})]}),R,i&&e.jsx("p",{role:"status",className:"text-xs text-fg-muted",children:i})]})}function se({fileName:s,state:n="ready",error:a,onDownload:t,onImport:c}){const i=n==="downloading";return e.jsxs(M,{className:"max-w-xl",children:[e.jsx(P,{children:e.jsx(Y,{children:"Configuration file"})}),e.jsxs(G,{children:[e.jsx("p",{className:"text-sm text-fg-muted",children:"One versioned JSON document carrying every setting this instance holds: accounts and their servers, folder roles, rules, labels, flagged senders and appearance. No passwords and no OAuth tokens — you sign in again wherever you import it."}),n==="failed"&&e.jsxs("div",{className:"mt-3 space-y-2 rounded-sm border border-danger/40 bg-danger-soft px-3 py-2.5",children:[e.jsx("p",{className:"text-sm font-medium text-danger",children:"The config file could not be written."}),e.jsxs("p",{className:"text-xs text-fg-muted",children:["Nothing was downloaded. Try again — if it keeps failing, use"," ",e.jsx("code",{className:"rounded bg-surface-sunken px-1 py-0.5",children:"remit config save"})," ","on the host in the meantime."]}),a&&e.jsx("code",{className:"block rounded bg-surface-sunken px-2.5 py-2 text-2xs text-fg-muted",children:a})]}),e.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-2",children:[e.jsx(r,{variant:"secondary",size:"sm",disabled:i,icon:i?e.jsx(g,{className:"size-3.5 animate-spin"}):e.jsx(N,{className:"size-3.5"}),onClick:t,children:i?"Preparing…":`Download ${s}`}),e.jsx(w,{tone:"neutral",children:"no passwords"})]}),e.jsxs("p",{className:"mt-3 text-2xs text-fg-subtle",children:["On the host, the same file comes from"," ",e.jsxs("code",{className:"rounded bg-surface-sunken px-1 py-0.5",children:["remit config save ~/",s]}),"."]}),e.jsxs("div",{className:"mt-5 border-t border-line pt-4",children:[e.jsx("p",{className:"text-sm font-medium text-fg",children:"Import a config file"}),e.jsx("p",{className:"mt-1 text-sm text-fg-muted",children:"Read a file from another Reader into this one. It shows what will change before anything is written, and asks for each account's credentials afterwards."}),e.jsx(r,{className:"mt-3",variant:"secondary",size:"sm",icon:e.jsx(J,{className:"size-3.5"}),onClick:c,children:"Import a config file"})]})]})]})}const ae=(s,n)=>{const a=URL.createObjectURL(new Blob([JSON.stringify(n,null,2)],{type:"application/json"})),t=document.createElement("a");t.href=a,t.download=s,t.click(),URL.revokeObjectURL(a)};function te(){const s=A(),n=H(),[a,t]=h.useState("ready"),[c,i]=h.useState(void 0),l=F(new Date),m=()=>{a!=="downloading"&&(t("downloading"),i(void 0),s.fetchQuery(B()).then(d=>{ae(l,d.document),t("ready")}).catch(d=>{t("failed"),i(d instanceof Error?d.message:"GET /config/export did not answer with a configuration.")}))};return e.jsx(se,{fileName:l,state:a,error:c,onDownload:m,onImport:()=>n("importConfig")})}function ne(){const{surface:s,release:n,currentVersion:a,appliesSchemaMigration:t,onCheck:c,install:i,onDismissResult:l}=L(),[m,d]=h.useState(!1);return s.status!=="ready"?null:e.jsxs(e.Fragment,{children:[e.jsx(ee,{state:s.section,onCheck:c,onInstall:()=>d(!0),onDismissResult:l}),n&&a&&e.jsx(Z,{open:m,currentVersion:a,release:n,appliesSchemaMigration:t,onClose:()=>d(!1),onConfirm:()=>{d(!1),i(n.version)}})]})}function ie(){return k().tlsMode!=="internal"?null:e.jsxs("div",{className:"border-t border-line pt-4 mt-4",children:[e.jsx("p",{className:"text-sm font-medium text-fg mb-1",children:"TLS root certificate"}),e.jsx("p",{className:"text-sm text-fg-muted mb-2",children:"This deployment signs its own certificate. Import it into the trust store of each device you browse from, and the browser warning stops for good."}),e.jsx(j,{href:"/tls-root-ca.crt",download:!0,variant:"secondary",size:"sm",icon:e.jsx(Q,{className:"size-3.5"}),children:"Download root certificate"})]})}function re(s){try{return new Date(s).toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}catch{return s}}function le({sha:s=O,commitUrl:n=D,buildTime:a=U}){return e.jsxs("p",{className:"text-xs text-fg-subtle",children:["Version"," ",n?e.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"font-mono hover:text-fg-muted hover:underline",children:s}):e.jsx("span",{className:"font-mono",children:s})," · ",e.jsxs("span",{children:["Built ",re(a)]})]})}function Ae(){const s=E(),n=V(),[a,t]=h.useState(!0),c=i=>{const l=_[i];l&&s({to:l})};return e.jsxs(K,{items:n,activeId:"advanced",title:"Advanced",description:"Notification rules, export, and diagnostics.",help:$,helpOpen:a,onToggleHelp:()=>t(i=>!i),onSelect:c,onBackToMail:()=>{s({to:"/mail"})},children:[k().updateMode==="self"&&e.jsx(ne,{}),e.jsx("div",{className:"mt-6 border-t border-line pt-4",children:e.jsx(te,{})}),e.jsx("div",{className:"mt-6 border-t border-line pt-4",children:e.jsx("p",{className:"text-sm text-fg-muted",children:"Notification rules are coming in a future release."})}),e.jsx(ie,{}),e.jsxs("div",{className:"border-t border-line pt-4 mt-4",children:[e.jsx("p",{className:"text-sm font-medium text-fg mb-1",children:"About"}),e.jsx(le,{})]})]})}export{Ae as component};
|
package/assets/brief-DcVaSAff.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r,O as i}from"./index-BVIV7uOn.js";import{a as m}from"./MailShell--jgEGKni.js";import{B as o}from"./BriefPane-CcwdfBlh.js";import"./reply-DtObeSB2.js";import{a as p}from"./search-token-index-BXdRQHFC.js";import{u as e}from"./search-mirror-CQaPpynv.js";import"./useMessageBodyContent-Bz4eLwYW.js";import"./FullCompose-6pNo7wi4.js";import"./index-KSq98OCk.js";import"./useSignature-ChD8g6V6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CQk7uQJy.js";import"./suggest-list-MxpHM4zs.js";import"./sections-DssOe_S4.js";import"./useMediaQuery-DHHct6HU.js";import"./chevron-down-BI1fWP0V.js";import"./ErrorState-KWmymUQR.js";import"./confirm-dialog-DCFAU3wg.js";import"./search-scope-CuQFKckU.js";import"./app-chrome-CAqI0L8I.js";import"./MessageToolbar-BB_mPS4p.js";import"./MessageBody-Ba6dVlG6.js";import"./kbd-CD9WJQDD.js";import"./roving-focus-WwAX8-VC.js";import"./useQueries-CFXMrDWB.js";import"./badge-BmEPIQJj.js";import"./undo-2-BLxVGig8.js";import"./DropdownMenu-fskbk1FW.js";import"./popover-menu-Drk7oRld.js";import"./mail-BXDRGUJS.js";import"./download-DpUgrnYE.js";import"./avatar-BKCZjVnK.js";import"./EmptyState-CzSAWxdK.js";import"./calendar-suggestion-w5Buli06.js";import"./useCalendarSuggestions-C4O39URl.js";import"./agenda-time-C_tFoNHA.js";import"./sparkles-D9JSeha5.js";import"./plus-BSFg3ibr.js";import"./calendar-format-BwCpz-JZ.js";import"./calendar-W0j7nrh5.js";import"./calendar-failure-note-Cc_-yh_l.js";import"./checkbox-CPr2JwkJ.js";import"./clock-DQO0Oi4O.js";import"./segmented-control-DH-yNZtm.js";import"./shield-check-7IzpHero.js";import"./useLayoutTier-CDh6ugx0.js";import"./menu-Cul_tOCl.js";import"./useFilters-DXcDtC9M.js";import"./select-CU_oR6rc.js";import"./folder-input-v9jv3QvB.js";import"./label-chip-D6H7mAQZ.js";import"./cloud-off-CUN7xSDU.js";import"./LabelApplyTrigger-C0GQNIEk.js";import"./useLabels-Ds4FhWUf.js";import"./useRefreshControl-CmSuQYeT.js";import"./circle-check-big-CVlYwPvW.js";import"./refresh-cw-CuoE7FSQ.js";import"./wizard-selection-zWa1qc6-.js";function hr(){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{hr as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t,B as l,u as m,a as f,c as x,r as g,A as j,O as d}from"./index-BVIV7uOn.js";import{A as h,S,a as B,D as e,b as A}from"./DesktopChrome-Ciuao7Ro.js";import"./reply-DtObeSB2.js";import{u as E}from"./sections-DssOe_S4.js";import{u as v}from"./calendar-W0j7nrh5.js";import{E as y}from"./ErrorState-KWmymUQR.js";import"./useLayoutTier-CDh6ugx0.js";import"./useMediaQuery-DHHct6HU.js";import"./avatar-BKCZjVnK.js";import"./popover-menu-Drk7oRld.js";import"./shield-check-7IzpHero.js";import"./roving-focus-WwAX8-VC.js";import"./mail-BXDRGUJS.js";import"./app-chrome-CAqI0L8I.js";function a(){const o=E();return t.jsx(h,{search:null,actions:t.jsxs(t.Fragment,{children:[t.jsx(l,{variant:"ghost",size:"sm",icon:t.jsx(S,{className:"size-4"}),title:"Settings","aria-label":"Settings",onClick:()=>o("accounts")}),t.jsx(B,{})]})})}function M(){const o=m(),n=v(),{data:r,isLoading:i,isError:c,error:p,refetch:u}=f({...x(),staleTime:1/0}),s=!!(r&&(r.accounts?.length??0)===0);return g.useEffect(()=>{s&&o({to:"/onboarding",replace:!0})},[s,o]),c?t.jsx(e,{topBar:t.jsx(a,{}),children:t.jsx("div",{className:"flex h-full items-center justify-center bg-canvas p-4",children:t.jsx(y,{title:"Couldn't load your account",error:p,onRetry:()=>{u()}})})}):t.jsx(A,{hideTabBar:n,children:t.jsx(e,{topBar:t.jsx(a,{}),children:i||s?t.jsx(j,{}):t.jsx(d,{})})})}export{M as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as o}from"./index-BVIV7uOn.js";const n=o("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);export{n as C};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as e}from"./index-BVIV7uOn.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-6pNo7wi4.js";import"./index-BVIV7uOn.js";import"./index-KSq98OCk.js";import"./useMessageBodyContent-Bz4eLwYW.js";import"./reply-DtObeSB2.js";import"./useMediaQuery-DHHct6HU.js";import"./useSignature-ChD8g6V6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CQk7uQJy.js";import"./suggest-list-MxpHM4zs.js";import"./sections-DssOe_S4.js";import"./chevron-down-BI1fWP0V.js";import"./ErrorState-KWmymUQR.js";import"./confirm-dialog-DCFAU3wg.js";const u=o;export{u as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as o}from"./FullCompose-6pNo7wi4.js";import"./index-BVIV7uOn.js";import"./index-KSq98OCk.js";import"./useMessageBodyContent-Bz4eLwYW.js";import"./reply-DtObeSB2.js";import"./useMediaQuery-DHHct6HU.js";import"./useSignature-ChD8g6V6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CQk7uQJy.js";import"./suggest-list-MxpHM4zs.js";import"./sections-DssOe_S4.js";import"./chevron-down-BI1fWP0V.js";import"./ErrorState-KWmymUQR.js";import"./confirm-dialog-DCFAU3wg.js";const u=o;export{u as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as o}from"./FullCompose-6pNo7wi4.js";import"./index-BVIV7uOn.js";import"./index-KSq98OCk.js";import"./useMessageBodyContent-Bz4eLwYW.js";import"./reply-DtObeSB2.js";import"./useMediaQuery-DHHct6HU.js";import"./useSignature-ChD8g6V6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CQk7uQJy.js";import"./suggest-list-MxpHM4zs.js";import"./sections-DssOe_S4.js";import"./chevron-down-BI1fWP0V.js";import"./ErrorState-KWmymUQR.js";import"./confirm-dialog-DCFAU3wg.js";const u=o;export{u as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as o}from"./FullCompose-6pNo7wi4.js";import"./index-BVIV7uOn.js";import"./index-KSq98OCk.js";import"./useMessageBodyContent-Bz4eLwYW.js";import"./reply-DtObeSB2.js";import"./useMediaQuery-DHHct6HU.js";import"./useSignature-ChD8g6V6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CQk7uQJy.js";import"./suggest-list-MxpHM4zs.js";import"./sections-DssOe_S4.js";import"./chevron-down-BI1fWP0V.js";import"./ErrorState-KWmymUQR.js";import"./confirm-dialog-DCFAU3wg.js";const u=o;export{u as component};
|
package/assets/edit-C5xc8ZMZ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{eV as o,j as i}from"./index-BVIV7uOn.js";import{a as m}from"./CalendarEventEditor-Cpu5cJxJ.js";import"./draft-UntYYkEO.js";import"./agenda-time-C_tFoNHA.js";import"./calendar-guests-DCkwUUaR.js";import"./calendar-event-popup-GQy2blc9.js";import"./useCalendarSuggestions-C4O39URl.js";import"./ErrorState-KWmymUQR.js";import"./useQueries-CFXMrDWB.js";import"./pencil-D4t_TOKs.js";import"./circle-help-BSxYNH4r.js";import"./useCalendarData-BHwxEmxu.js";import"./useCalendarTasks-BYrDBjzg.js";import"./useCalendarScheduling-BPs-bAlU.js";import"./useDebouncedValue-CQk7uQJy.js";import"./calendar-format-BwCpz-JZ.js";import"./reply-DtObeSB2.js";import"./useMediaQuery-DHHct6HU.js";import"./calendar-W0j7nrh5.js";import"./CalendarQuickCreate-DF0Uxv4V.js";import"./CalendarSession-XIbMK3oT.js";import"./calendar-event-sidebar-BdPLf9Q-.js";import"./select-CU_oR6rc.js";import"./chevron-down-BI1fWP0V.js";import"./confirm-dialog-DCFAU3wg.js";function q(){const{calendarObjectId:r,recurrenceId:t}=o.useParams();return i.jsx(m,{calendarObjectId:r,recurrenceId:t})}export{q as component};
|
package/assets/edit-DY8bOvEH.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{eS as o,j as r}from"./index-BVIV7uOn.js";import{a as i}from"./CalendarEventEditor-Cpu5cJxJ.js";import"./draft-UntYYkEO.js";import"./agenda-time-C_tFoNHA.js";import"./calendar-guests-DCkwUUaR.js";import"./calendar-event-popup-GQy2blc9.js";import"./useCalendarSuggestions-C4O39URl.js";import"./ErrorState-KWmymUQR.js";import"./useQueries-CFXMrDWB.js";import"./pencil-D4t_TOKs.js";import"./circle-help-BSxYNH4r.js";import"./useCalendarData-BHwxEmxu.js";import"./useCalendarTasks-BYrDBjzg.js";import"./useCalendarScheduling-BPs-bAlU.js";import"./useDebouncedValue-CQk7uQJy.js";import"./calendar-format-BwCpz-JZ.js";import"./reply-DtObeSB2.js";import"./useMediaQuery-DHHct6HU.js";import"./calendar-W0j7nrh5.js";import"./CalendarQuickCreate-DF0Uxv4V.js";import"./CalendarSession-XIbMK3oT.js";import"./calendar-event-sidebar-BdPLf9Q-.js";import"./select-CU_oR6rc.js";import"./chevron-down-BI1fWP0V.js";import"./confirm-dialog-DCFAU3wg.js";function q(){const{calendarObjectId:t}=o.useParams();return r.jsx(i,{calendarObjectId:t})}export{q as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o,O as i}from"./index-BVIV7uOn.js";import{a as m}from"./MailShell--jgEGKni.js";import{F as r}from"./FlaggedPane-CMZMZWbM.js";import"./reply-DtObeSB2.js";import{a as p}from"./search-token-index-BXdRQHFC.js";import{u as e}from"./search-mirror-CQaPpynv.js";import"./useMessageBodyContent-Bz4eLwYW.js";import"./FullCompose-6pNo7wi4.js";import"./index-KSq98OCk.js";import"./useSignature-ChD8g6V6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CQk7uQJy.js";import"./suggest-list-MxpHM4zs.js";import"./sections-DssOe_S4.js";import"./useMediaQuery-DHHct6HU.js";import"./chevron-down-BI1fWP0V.js";import"./ErrorState-KWmymUQR.js";import"./confirm-dialog-DCFAU3wg.js";import"./search-scope-CuQFKckU.js";import"./app-chrome-CAqI0L8I.js";import"./MessageToolbar-BB_mPS4p.js";import"./MessageBody-Ba6dVlG6.js";import"./kbd-CD9WJQDD.js";import"./roving-focus-WwAX8-VC.js";import"./useQueries-CFXMrDWB.js";import"./badge-BmEPIQJj.js";import"./undo-2-BLxVGig8.js";import"./DropdownMenu-fskbk1FW.js";import"./popover-menu-Drk7oRld.js";import"./mail-BXDRGUJS.js";import"./download-DpUgrnYE.js";import"./avatar-BKCZjVnK.js";import"./EmptyState-CzSAWxdK.js";import"./calendar-suggestion-w5Buli06.js";import"./useCalendarSuggestions-C4O39URl.js";import"./agenda-time-C_tFoNHA.js";import"./sparkles-D9JSeha5.js";import"./plus-BSFg3ibr.js";import"./calendar-format-BwCpz-JZ.js";import"./calendar-W0j7nrh5.js";import"./calendar-failure-note-Cc_-yh_l.js";import"./checkbox-CPr2JwkJ.js";import"./clock-DQO0Oi4O.js";import"./segmented-control-DH-yNZtm.js";import"./shield-check-7IzpHero.js";import"./useLayoutTier-CDh6ugx0.js";import"./menu-Cul_tOCl.js";import"./useFilters-DXcDtC9M.js";import"./select-CU_oR6rc.js";import"./folder-input-v9jv3QvB.js";import"./label-chip-D6H7mAQZ.js";import"./cloud-off-CUN7xSDU.js";import"./MailViewChrome-33SQAjQn.js";import"./refresh-cw-CuoE7FSQ.js";import"./wizard-selection-zWa1qc6-.js";function so(){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{so as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e,B as y,T as B,b3 as W,r as c,ax as Y,X,aE as he,ak as Z,F as xe,bb as K,bc as fe,am as pe,d as z,bd as ge,be,e as J,a0 as ee,k as se,bf as ve,bg as je,aD as ye,$ as Ne,bh as ke,bi as _,bj as Ce,bk as we,bl as te,bm as Se,bn as Q,b7 as ae,b8 as re,b9 as Ie,W as q,V as ne,L as H,bo as G,a9 as Me,bp as Ee,u as De,az as Ae,a as ie,c as Oe,aB as Te,R as Re,f as V,s as Fe,bq as Pe,br as $e,bs as Le,bt as ze,bu as _e,bv as Be}from"./index-BVIV7uOn.js";import{F as qe}from"./folder-input-v9jv3QvB.js";import{f as He}from"./folder-failure-CqkVSsrb.js";import{S as Ke}from"./settings-screen-FlCW-JB0.js";import{E as oe}from"./ErrorState-KWmymUQR.js";import{S as Qe}from"./select-CU_oR6rc.js";import{P as Ge}from"./pencil-D4t_TOKs.js";import"./avatar-BKCZjVnK.js";import"./badge-BmEPIQJj.js";import"./chevron-left-BQBw-0xj.js";import"./menu-Cul_tOCl.js";import"./circle-help-BSxYNH4r.js";import"./chevron-down-BI1fWP0V.js";const Ve=({label:s,onRename:t,onDelete:a,deleteBlockedReason:l,renameLabel:d=m=>`Rename ${m}`,deleteLabel:r=m=>`Delete ${m}`})=>{const m=l?`${r(s)} — ${l}`:r(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:a})})]})},Ue=({folders:s,onRename:t,onDelete:a,onCreateFolder:l,delimiter:d,labels:r})=>{const m=new Map(s.map(o=>[o.id,o]));return e.jsx(W,{folders:s,onCreateFolder:l,delimiter:d,labels:{treeAriaLabel:"Your folders",optionLabel:o=>o.label,...r},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:r?.rename,deleteLabel:r?.remove,onRename:()=>t(i),onDelete:()=>a(i)}):null}})},We=({open:s,folderLabel:t,defaultLabel:a,name:l,onNameChange:d,onSubmit:r,onClose:m,pending:o=!1,error:i})=>{const h=c.useId(),f=`Rename ${t}`;return s?e.jsxs(Y,{open:s,onClose:m,title:f,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:f}),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(Z,{id:h,value:l,placeholder:a,onChange:g=>d(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(y,{variant:"secondary",size:"sm",onClick:m,children:"Cancel"}),e.jsx(y,{variant:"primary",size:"sm",onClick:r,disabled:o,children:o?"Saving…":"Save name"})]})]}):null},Ye=["inbox","drafts","sent","archive","junk","trash"],U="",Xe={mailboxId:null,source:"None"};function Ze(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"}`,Je=(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:a,displayName:l,onAppoint:d,onRename:r}){const[m,o]=c.useState(l),i=c.useRef(null),h=c.useRef(!1),f=c.useId(),{mailboxId:g,source:v,staleFolderPath:j}=a,u=t.find(N=>N.mailboxId===g)??null,p=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:f,className:"pl-[7.5rem] text-xs text-fg-muted",children:`Not set — pick the folder this account uses for ${p}.${N}`})}return v==="Stale"||!u?null:e.jsx("span",{id:f,className:"truncate pl-[7.5rem] text-2xs text-fg-subtle",title:u.providerPath,children:`${Je(v,p)} · ${u.providerPath} · ${le(u.messageCount)}`})})(),w=s==="trash"?" Deleting mail is stopped until you pick another one.":u?` reader is using ${K(u.providerPath,u.hierarchyDelimiter)} instead.`:"",A=`The folder you chose for ${p}${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),p]}),e.jsxs(Qe,{ref:i,className:"w-56 shrink-0",value:u?.mailboxId??U,"aria-label":`Folder for ${p}`,"aria-describedby":M||v==="Stale"?f: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:Ze(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 ${p}`}),u&&e.jsxs(e.Fragment,{children:[e.jsx(Z,{className:"flex-1",value:m,placeholder:p,"aria-label":`Display name for ${p}`,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:()=>r(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:f,className:"flex-1",children:A}),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:a,displayNames:l={},onAppoint:d,onRename:r}){const m=new Set(Object.values(a).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:Ye.map(i=>{const h=a[i]??Xe;return e.jsx(es,{role:i,folders:t,appointment:h,displayName:h.mailboxId?l[h.mailboxId]??"":"",onAppoint:d,onRename:r},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: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 as=12e4,rs=2e3,ns="This folder is no longer in the account's folder list, so nothing was deleted.",ce=(s,t)=>{const a=s.find(l=>l.mailboxId===t);if(!a)throw new Error(ns);return a},is=(s,t)=>ce(s,t).lastSyncedAt??0;async function os({readMailboxes:s,mailboxId:t,since:a,signal:l,segmentMs:d=as,pollIntervalMs:r=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)>a)return{status:"fresh",messageCount:h.messagesTotal};if(o()>=i)return{status:"pending"};await m(r,l)}}const de=50,ls=s=>s instanceof Error?s.message:"Something went wrong.",$=s=>s.then(t=>({ok:!0,value:t}),t=>({ok:!1,error:ls(t)})),cs=async(s,t,a,l)=>{const d=[];let r;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:r},throwOnError:!0});for(const i of o.items)if(!t.has(i.messageId)&&!d.includes(i.messageId)&&(d.push(i.messageId),d.length>=a))return d;if(!o.continuationToken)break;r=o.continuationToken}return d},ds=async(s,t)=>{let a=0,l;for(let d=0;d<de;d+=1){if(t.aborted)return a;const{data:r}=await te({path:{mailboxId:s},query:{order:"desc",continuationToken:l},throwOnError:!0});if(a+=r.items.length,!r.continuationToken)break;l=r.continuationToken}return a};function ms({accountId:s,mailboxId:t,onDeleted:a}){const l=J(),[d,r]=c.useState("idle"),[m,o]=c.useState(null),[i,h]=c.useState(),[f,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]),p=c.useCallback(async()=>{r("deleting");const k=await $(ve({path:{accountId:s,mailboxId:t},throwOnError:!0}));if(!k.ok){h(k.error),r("error");return}u(),r("done"),a()},[s,t,u,a]),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;r("checking"),h(void 0);const I=j.current!==void 0,C=await $((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?(r("idle"),j.current=void 0,{status:"failed"}):C.ok?C.value.status==="pending"?(r("check-stalled"),{status:"pending"}):(j.current=void 0,C.value.messageCount>0?(r("idle"),u(),{status:"blocked",messageCount:C.value.messageCount}):(await p(),{status:"deleted"})):(j.current=void 0,h(C.error),r("error"),{status:"failed"})},[s,t,M,p,u]),A=c.useCallback(()=>{v.current?.abort()},[]),N=c.useCallback(async k=>{const S=new AbortController;v.current=S;const{signal:I}=S;r("moving"),h(void 0);const C=await $(O());if(I.aborted)return;if(!C.ok){h(C.error),r("error");return}let x=ke(C.value);o(x);const E=new Set;for(;;){if(I.aborted)return;const n=await $(cs(t,E,Se,I));if(I.aborted)return;if(!n.ok){x=_(x,n.error),o(x),h(n.error),r("error");return}const b=n.value;if(b.length===0)break;const T=await $(Ce({body:{messageIds:b,destinationMailboxId:k},throwOnError:!0}));if(I.aborted)return;if(!T.ok){x=_(x,T.error),o(x),h(T.error),r("error");return}for(const P of b)E.add(P);x=we(x,b.length),o(x)}const D=await $(ds(t,I));if(!I.aborted){if(!D.ok){x=_(x,D.error),o(x),h(D.error),r("error");return}if(D.value>0){const n=`${D.value} ${D.value===1?"email is":"emails are"} still syncing. Re-open delete to finish removing this folder.`;x=_(x,n),o(x),h(n),r("error"),u();return}await p()}},[t,O,p,u]),R=c.useCallback(()=>{v.current?.abort(),v.current=null,j.current=void 0,r("idle"),o(null),h(void 0),g(void 0)},[]);return{phase:d,progress:m,errorMessage:i,checkStartedAt:f,deleteMailbox:p,deleteIfEmpty:w,moveThenDelete:N,cancel:A,reset:R}}const L=s=>`${s} ${s===1?"email":"emails"}`;function us({open:s,accountId:t,folder:a,mailboxes:l,appointments:d,onClose:r}){const[m,o]=c.useState(()=>Q(a.messageCount)),[i,h]=c.useState(),[f,g]=c.useState(),{createFolderIn:v}=ae(t),j=re(),{phase:u,progress:p,errorMessage:O,checkStartedAt:M,deleteMailbox:w,deleteIfEmpty:A,moveThenDelete:N,cancel:R,reset:k}=ms({accountId:t,mailboxId:a.mailboxId,onDeleted:r}),[S,I]=c.useState("0:00"),C=u==="checking"||u==="check-stalled";c.useEffect(()=>{if(!C||M===void 0)return;const F=()=>I(Ee(Date.now()-M));F();const ue=setInterval(F,1e3);return()=>clearInterval(ue)},[C,M]),c.useEffect(()=>{s&&(o(Q(a.messageCount)),h(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 A();F.status==="blocked"&&(h(F.messageCount),o("choose-fate"))},[A]),D=c.useMemo(()=>Ie({mailboxes:l,folderAppointments:d,excludeMailboxId:a.mailboxId,translator:j}),[l,d,a.mailboxId,j]),n=D.find(F=>F.id===f),b=c.useMemo(()=>q(a,ne(d).get(a.mailboxId),j),[a,d,j]);if(!s)return null;const T=`Delete ${b}`,P=i??a.messageCount,me=u==="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:p?G(p):"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(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.`})]}):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(H,{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."}),p&&e.jsxs("p",{className:"text-xs text-fg-muted",children:[G(p),". 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(P),". 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(qe,{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(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(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(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(W,{folders:D,selectedId:f,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(P)} to ${n.label}`})})})]});return e.jsxs(Y,{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(Me,{className:"size-4 shrink-0 text-danger"}),e.jsx("span",{className:"flex-1 text-sm font-semibold text-fg",children:T}),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=J(),a=s.accountId,l=re(),{data:d,isPending:r,isError:m,error:o,refetch:i}=ie(Re({path:{accountId:a}})),{createFolderIn:h}=ae(a),f=V({...Pe(),meta:Fe(409),onSuccess:()=>{t.invalidateQueries({queryKey:se()})}}),g=V({...$e(),onSuccess:()=>{t.invalidateQueries({queryKey:ee({path:{accountId:a}})})}}),[v,j]=c.useState(),[u,p]=c.useState(),[O,M]=c.useState(""),w=c.useMemo(()=>d?.items??[],[d]),A=c.useMemo(()=>ne(s.folderAppointments),[s.folderAppointments]),N=c.useMemo(()=>w.map(n=>({id:n.mailboxId,label:q(n,A.get(n.mailboxId),l),path:n.fullPath,deleteBlockedReason:Le(n,w,s.folderAppointments).message,failure:He(n)})),[w,A,l,s.folderAppointments]),R=(n,b)=>{f.mutate({path:{accountId:a,role:Be[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(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=ze[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),D=x(v);return e.jsxs("div",{className:"space-y-4",children:[(f.isError||g.isError)&&e.jsx(z,{tone:"danger",variant:"soft",children:_e(f.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=>{p(n.id),M(x(n.id)?.displayNameOverride?.trim()??"")},onDelete:n=>j(n.id),labels:{treeAriaLabel:`All folders for ${s.email}`}})})]}),E&&e.jsx(We,{open:!0,folderLabel:q(E,A.get(E.mailboxId),l),defaultLabel:q({fullPath:E.fullPath,hierarchyDelimiter:E.hierarchyDelimiter},A.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:a,mailboxId:E.mailboxId},body:{displayNameOverride:n===""?null:n}},{onSuccess:()=>p(void 0)})},onClose:()=>p(void 0)}),D&&e.jsx(us,{open:!0,accountId:a,folder:D,mailboxes:w,appointments:s.folderAppointments,onClose:()=>j(void 0)})]})}function Is(){const s=De(),t=Ae(),[a,l]=c.useState(!0),{data:d,isPending:r,isError:m,error:o,refetch:i}=ie(Oe()),h=f=>{const g=Te[f];g&&s({to:g})};return e.jsx(Ke,{items:t,activeId:"folders",title:"Folder roles",description:"Appoint which real folder fills each canonical role, per account.",help:e.jsx(ss,{}),helpOpen:a,onToggleHelp:()=>l(f=>!f),onSelect:h,onBackToMail:()=>{s({to:"/mail"})},children:r?e.jsx("div",{className:"h-24 animate-pulse rounded-sm border border-line bg-surface","aria-busy":"true","aria-label":"Loading accounts"}):m?e.jsx(oe,{title:"Couldn't load accounts",error:o,onRetry:()=>{i()}}):d.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:d.accounts.map(f=>e.jsx(hs,{account:f},f.accountId))})})}export{Is as component};
|
package/assets/index-B0WA56eY.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-BVIV7uOn.js";import{M as r}from"./MailboxPane-CvW6x3uh.js";import"./MailViewChrome-33SQAjQn.js";import"./search-token-index-BXdRQHFC.js";import"./reply-DtObeSB2.js";import"./useMediaQuery-DHHct6HU.js";import"./search-scope-CuQFKckU.js";import"./app-chrome-CAqI0L8I.js";import"./useQueries-CFXMrDWB.js";import"./roving-focus-WwAX8-VC.js";import"./MessageToolbar-BB_mPS4p.js";import"./MessageBody-Ba6dVlG6.js";import"./kbd-CD9WJQDD.js";import"./useMessageBodyContent-Bz4eLwYW.js";import"./chevron-down-BI1fWP0V.js";import"./index-KSq98OCk.js";import"./useSignature-ChD8g6V6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CQk7uQJy.js";import"./suggest-list-MxpHM4zs.js";import"./sections-DssOe_S4.js";import"./badge-BmEPIQJj.js";import"./undo-2-BLxVGig8.js";import"./DropdownMenu-fskbk1FW.js";import"./popover-menu-Drk7oRld.js";import"./ErrorState-KWmymUQR.js";import"./mail-BXDRGUJS.js";import"./download-DpUgrnYE.js";import"./avatar-BKCZjVnK.js";import"./EmptyState-CzSAWxdK.js";import"./calendar-suggestion-w5Buli06.js";import"./useCalendarSuggestions-C4O39URl.js";import"./agenda-time-C_tFoNHA.js";import"./sparkles-D9JSeha5.js";import"./plus-BSFg3ibr.js";import"./calendar-format-BwCpz-JZ.js";import"./calendar-W0j7nrh5.js";import"./calendar-failure-note-Cc_-yh_l.js";import"./checkbox-CPr2JwkJ.js";import"./clock-DQO0Oi4O.js";import"./segmented-control-DH-yNZtm.js";import"./shield-check-7IzpHero.js";import"./useLayoutTier-CDh6ugx0.js";import"./menu-Cul_tOCl.js";import"./useFilters-DXcDtC9M.js";import"./select-CU_oR6rc.js";import"./folder-input-v9jv3QvB.js";import"./confirm-dialog-DCFAU3wg.js";import"./label-chip-D6H7mAQZ.js";import"./cloud-off-CUN7xSDU.js";import"./refresh-cw-CuoE7FSQ.js";import"./useRefreshControl-CmSuQYeT.js";import"./circle-check-big-CVlYwPvW.js";import"./LabelApplyTrigger-C0GQNIEk.js";import"./useLabels-Ds4FhWUf.js";import"./NavMenuButton-DuV5qIvO.js";import"./bottom-sheet-CYnEFnuG.js";import"./circle-help-BSxYNH4r.js";import"./circle-check-DyyOWTYB.js";function no(){return o.jsx(r.Reading,{})}export{no as component};
|
package/assets/index-BNOLD_NW.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./index-BVIV7uOn.js";import{B as o}from"./BriefPane-CcwdfBlh.js";import"./MessageToolbar-BB_mPS4p.js";import"./MessageBody-Ba6dVlG6.js";import"./kbd-CD9WJQDD.js";import"./search-scope-CuQFKckU.js";import"./app-chrome-CAqI0L8I.js";import"./reply-DtObeSB2.js";import"./useMediaQuery-DHHct6HU.js";import"./useMessageBodyContent-Bz4eLwYW.js";import"./roving-focus-WwAX8-VC.js";import"./chevron-down-BI1fWP0V.js";import"./search-token-index-BXdRQHFC.js";import"./useQueries-CFXMrDWB.js";import"./index-KSq98OCk.js";import"./useSignature-ChD8g6V6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CQk7uQJy.js";import"./suggest-list-MxpHM4zs.js";import"./sections-DssOe_S4.js";import"./badge-BmEPIQJj.js";import"./undo-2-BLxVGig8.js";import"./DropdownMenu-fskbk1FW.js";import"./popover-menu-Drk7oRld.js";import"./ErrorState-KWmymUQR.js";import"./mail-BXDRGUJS.js";import"./download-DpUgrnYE.js";import"./avatar-BKCZjVnK.js";import"./EmptyState-CzSAWxdK.js";import"./calendar-suggestion-w5Buli06.js";import"./useCalendarSuggestions-C4O39URl.js";import"./agenda-time-C_tFoNHA.js";import"./sparkles-D9JSeha5.js";import"./plus-BSFg3ibr.js";import"./calendar-format-BwCpz-JZ.js";import"./calendar-W0j7nrh5.js";import"./calendar-failure-note-Cc_-yh_l.js";import"./checkbox-CPr2JwkJ.js";import"./clock-DQO0Oi4O.js";import"./segmented-control-DH-yNZtm.js";import"./shield-check-7IzpHero.js";import"./useLayoutTier-CDh6ugx0.js";import"./menu-Cul_tOCl.js";import"./useFilters-DXcDtC9M.js";import"./select-CU_oR6rc.js";import"./folder-input-v9jv3QvB.js";import"./confirm-dialog-DCFAU3wg.js";import"./label-chip-D6H7mAQZ.js";import"./cloud-off-CUN7xSDU.js";import"./LabelApplyTrigger-C0GQNIEk.js";import"./useLabels-Ds4FhWUf.js";import"./useRefreshControl-CmSuQYeT.js";import"./circle-check-big-CVlYwPvW.js";import"./refresh-cw-CuoE7FSQ.js";import"./wizard-selection-zWa1qc6-.js";function ir(){return r.jsx(o.Reading,{})}export{ir as component};
|
package/assets/index-BQRB4Hbr.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-BVIV7uOn.js";import{M as i}from"./MailboxPane-CvW6x3uh.js";import"./MailViewChrome-33SQAjQn.js";import"./search-token-index-BXdRQHFC.js";import"./reply-DtObeSB2.js";import"./useMediaQuery-DHHct6HU.js";import"./search-scope-CuQFKckU.js";import"./app-chrome-CAqI0L8I.js";import"./useQueries-CFXMrDWB.js";import"./roving-focus-WwAX8-VC.js";import"./MessageToolbar-BB_mPS4p.js";import"./MessageBody-Ba6dVlG6.js";import"./kbd-CD9WJQDD.js";import"./useMessageBodyContent-Bz4eLwYW.js";import"./chevron-down-BI1fWP0V.js";import"./index-KSq98OCk.js";import"./useSignature-ChD8g6V6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CQk7uQJy.js";import"./suggest-list-MxpHM4zs.js";import"./sections-DssOe_S4.js";import"./badge-BmEPIQJj.js";import"./undo-2-BLxVGig8.js";import"./DropdownMenu-fskbk1FW.js";import"./popover-menu-Drk7oRld.js";import"./ErrorState-KWmymUQR.js";import"./mail-BXDRGUJS.js";import"./download-DpUgrnYE.js";import"./avatar-BKCZjVnK.js";import"./EmptyState-CzSAWxdK.js";import"./calendar-suggestion-w5Buli06.js";import"./useCalendarSuggestions-C4O39URl.js";import"./agenda-time-C_tFoNHA.js";import"./sparkles-D9JSeha5.js";import"./plus-BSFg3ibr.js";import"./calendar-format-BwCpz-JZ.js";import"./calendar-W0j7nrh5.js";import"./calendar-failure-note-Cc_-yh_l.js";import"./checkbox-CPr2JwkJ.js";import"./clock-DQO0Oi4O.js";import"./segmented-control-DH-yNZtm.js";import"./shield-check-7IzpHero.js";import"./useLayoutTier-CDh6ugx0.js";import"./menu-Cul_tOCl.js";import"./useFilters-DXcDtC9M.js";import"./select-CU_oR6rc.js";import"./folder-input-v9jv3QvB.js";import"./confirm-dialog-DCFAU3wg.js";import"./label-chip-D6H7mAQZ.js";import"./cloud-off-CUN7xSDU.js";import"./refresh-cw-CuoE7FSQ.js";import"./useRefreshControl-CmSuQYeT.js";import"./circle-check-big-CVlYwPvW.js";import"./LabelApplyTrigger-C0GQNIEk.js";import"./useLabels-Ds4FhWUf.js";import"./NavMenuButton-DuV5qIvO.js";import"./bottom-sheet-CYnEFnuG.js";import"./circle-help-BSxYNH4r.js";import"./circle-check-DyyOWTYB.js";function ao(){return o.jsx(i.Reading,{})}export{ao as component};
|
package/assets/index-BSVI2qk3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{eU as t,j as m}from"./index-BVIV7uOn.js";import{C as p}from"./CalendarEventPopup-ecl1-NSt.js";import"./useCalendarSuggestions-C4O39URl.js";import"./ErrorState-KWmymUQR.js";import"./useQueries-CFXMrDWB.js";import"./useCalendarData-BHwxEmxu.js";import"./useCalendarTasks-BYrDBjzg.js";import"./calendar-format-BwCpz-JZ.js";import"./reply-DtObeSB2.js";import"./useMediaQuery-DHHct6HU.js";import"./calendar-W0j7nrh5.js";import"./CalendarSession-XIbMK3oT.js";import"./calendar-event-popup-GQy2blc9.js";import"./pencil-D4t_TOKs.js";import"./calendar-guests-DCkwUUaR.js";import"./circle-help-BSxYNH4r.js";import"./confirm-dialog-DCFAU3wg.js";function P(){const{calendarObjectId:r,recurrenceId:o}=t.useParams();return m.jsx(p,{calendarObjectId:r,recurrenceId:o})}export{P as component};
|
package/assets/index-BTWqd0y1.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{eR as o,j as r}from"./index-BVIV7uOn.js";import{C as m}from"./CalendarEventPopup-ecl1-NSt.js";import"./useCalendarSuggestions-C4O39URl.js";import"./ErrorState-KWmymUQR.js";import"./useQueries-CFXMrDWB.js";import"./useCalendarData-BHwxEmxu.js";import"./useCalendarTasks-BYrDBjzg.js";import"./calendar-format-BwCpz-JZ.js";import"./reply-DtObeSB2.js";import"./useMediaQuery-DHHct6HU.js";import"./calendar-W0j7nrh5.js";import"./CalendarSession-XIbMK3oT.js";import"./calendar-event-popup-GQy2blc9.js";import"./pencil-D4t_TOKs.js";import"./calendar-guests-DCkwUUaR.js";import"./circle-help-BSxYNH4r.js";import"./confirm-dialog-DCFAU3wg.js";function P(){const{calendarObjectId:t}=o.useParams();return r.jsx(m,{calendarObjectId:t})}export{P as component};
|
package/assets/index-C11dYlL_.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-BVIV7uOn.js";import{F as r}from"./FlaggedPane-CMZMZWbM.js";import"./MessageToolbar-BB_mPS4p.js";import"./MessageBody-Ba6dVlG6.js";import"./kbd-CD9WJQDD.js";import"./search-scope-CuQFKckU.js";import"./app-chrome-CAqI0L8I.js";import"./reply-DtObeSB2.js";import"./useMediaQuery-DHHct6HU.js";import"./useMessageBodyContent-Bz4eLwYW.js";import"./roving-focus-WwAX8-VC.js";import"./chevron-down-BI1fWP0V.js";import"./search-token-index-BXdRQHFC.js";import"./useQueries-CFXMrDWB.js";import"./index-KSq98OCk.js";import"./useSignature-ChD8g6V6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CQk7uQJy.js";import"./suggest-list-MxpHM4zs.js";import"./sections-DssOe_S4.js";import"./badge-BmEPIQJj.js";import"./undo-2-BLxVGig8.js";import"./DropdownMenu-fskbk1FW.js";import"./popover-menu-Drk7oRld.js";import"./ErrorState-KWmymUQR.js";import"./mail-BXDRGUJS.js";import"./download-DpUgrnYE.js";import"./avatar-BKCZjVnK.js";import"./EmptyState-CzSAWxdK.js";import"./calendar-suggestion-w5Buli06.js";import"./useCalendarSuggestions-C4O39URl.js";import"./agenda-time-C_tFoNHA.js";import"./sparkles-D9JSeha5.js";import"./plus-BSFg3ibr.js";import"./calendar-format-BwCpz-JZ.js";import"./calendar-W0j7nrh5.js";import"./calendar-failure-note-Cc_-yh_l.js";import"./checkbox-CPr2JwkJ.js";import"./clock-DQO0Oi4O.js";import"./segmented-control-DH-yNZtm.js";import"./shield-check-7IzpHero.js";import"./useLayoutTier-CDh6ugx0.js";import"./menu-Cul_tOCl.js";import"./useFilters-DXcDtC9M.js";import"./select-CU_oR6rc.js";import"./folder-input-v9jv3QvB.js";import"./confirm-dialog-DCFAU3wg.js";import"./label-chip-D6H7mAQZ.js";import"./cloud-off-CUN7xSDU.js";import"./MailViewChrome-33SQAjQn.js";import"./refresh-cw-CuoE7FSQ.js";import"./wizard-selection-zWa1qc6-.js";function oo(){return o.jsx(r.Reading,{})}export{oo as component};
|
package/assets/index-C9L3Y4ln.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-BVIV7uOn.js";import{F as r}from"./FlaggedPane-CMZMZWbM.js";import"./MessageToolbar-BB_mPS4p.js";import"./MessageBody-Ba6dVlG6.js";import"./kbd-CD9WJQDD.js";import"./search-scope-CuQFKckU.js";import"./app-chrome-CAqI0L8I.js";import"./reply-DtObeSB2.js";import"./useMediaQuery-DHHct6HU.js";import"./useMessageBodyContent-Bz4eLwYW.js";import"./roving-focus-WwAX8-VC.js";import"./chevron-down-BI1fWP0V.js";import"./search-token-index-BXdRQHFC.js";import"./useQueries-CFXMrDWB.js";import"./index-KSq98OCk.js";import"./useSignature-ChD8g6V6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CQk7uQJy.js";import"./suggest-list-MxpHM4zs.js";import"./sections-DssOe_S4.js";import"./badge-BmEPIQJj.js";import"./undo-2-BLxVGig8.js";import"./DropdownMenu-fskbk1FW.js";import"./popover-menu-Drk7oRld.js";import"./ErrorState-KWmymUQR.js";import"./mail-BXDRGUJS.js";import"./download-DpUgrnYE.js";import"./avatar-BKCZjVnK.js";import"./EmptyState-CzSAWxdK.js";import"./calendar-suggestion-w5Buli06.js";import"./useCalendarSuggestions-C4O39URl.js";import"./agenda-time-C_tFoNHA.js";import"./sparkles-D9JSeha5.js";import"./plus-BSFg3ibr.js";import"./calendar-format-BwCpz-JZ.js";import"./calendar-W0j7nrh5.js";import"./calendar-failure-note-Cc_-yh_l.js";import"./checkbox-CPr2JwkJ.js";import"./clock-DQO0Oi4O.js";import"./segmented-control-DH-yNZtm.js";import"./shield-check-7IzpHero.js";import"./useLayoutTier-CDh6ugx0.js";import"./menu-Cul_tOCl.js";import"./useFilters-DXcDtC9M.js";import"./select-CU_oR6rc.js";import"./folder-input-v9jv3QvB.js";import"./confirm-dialog-DCFAU3wg.js";import"./label-chip-D6H7mAQZ.js";import"./cloud-off-CUN7xSDU.js";import"./MailViewChrome-33SQAjQn.js";import"./refresh-cw-CuoE7FSQ.js";import"./wizard-selection-zWa1qc6-.js";function oo(){return o.jsx(r.Reading,{})}export{oo as component};
|
package/assets/index-CMYDLexx.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t,a8 as o}from"./index-BVIV7uOn.js";const n=()=>t.jsx(o,{to:"/settings/accounts"});export{n as component};
|
package/assets/index-Ct_bZm5J.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./index-BVIV7uOn.js";import{B as o}from"./BriefPane-CcwdfBlh.js";import"./MessageToolbar-BB_mPS4p.js";import"./MessageBody-Ba6dVlG6.js";import"./kbd-CD9WJQDD.js";import"./search-scope-CuQFKckU.js";import"./app-chrome-CAqI0L8I.js";import"./reply-DtObeSB2.js";import"./useMediaQuery-DHHct6HU.js";import"./useMessageBodyContent-Bz4eLwYW.js";import"./roving-focus-WwAX8-VC.js";import"./chevron-down-BI1fWP0V.js";import"./search-token-index-BXdRQHFC.js";import"./useQueries-CFXMrDWB.js";import"./index-KSq98OCk.js";import"./useSignature-ChD8g6V6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CQk7uQJy.js";import"./suggest-list-MxpHM4zs.js";import"./sections-DssOe_S4.js";import"./badge-BmEPIQJj.js";import"./undo-2-BLxVGig8.js";import"./DropdownMenu-fskbk1FW.js";import"./popover-menu-Drk7oRld.js";import"./ErrorState-KWmymUQR.js";import"./mail-BXDRGUJS.js";import"./download-DpUgrnYE.js";import"./avatar-BKCZjVnK.js";import"./EmptyState-CzSAWxdK.js";import"./calendar-suggestion-w5Buli06.js";import"./useCalendarSuggestions-C4O39URl.js";import"./agenda-time-C_tFoNHA.js";import"./sparkles-D9JSeha5.js";import"./plus-BSFg3ibr.js";import"./calendar-format-BwCpz-JZ.js";import"./calendar-W0j7nrh5.js";import"./calendar-failure-note-Cc_-yh_l.js";import"./checkbox-CPr2JwkJ.js";import"./clock-DQO0Oi4O.js";import"./segmented-control-DH-yNZtm.js";import"./shield-check-7IzpHero.js";import"./useLayoutTier-CDh6ugx0.js";import"./menu-Cul_tOCl.js";import"./useFilters-DXcDtC9M.js";import"./select-CU_oR6rc.js";import"./folder-input-v9jv3QvB.js";import"./confirm-dialog-DCFAU3wg.js";import"./label-chip-D6H7mAQZ.js";import"./cloud-off-CUN7xSDU.js";import"./LabelApplyTrigger-C0GQNIEk.js";import"./useLabels-Ds4FhWUf.js";import"./useRefreshControl-CmSuQYeT.js";import"./circle-check-big-CVlYwPvW.js";import"./refresh-cw-CuoE7FSQ.js";import"./wizard-selection-zWa1qc6-.js";function tr(){return r.jsx(o.Reading,{})}export{tr as component};
|
package/assets/index-cUEB_Vmo.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-BVIV7uOn.js";import{O as t}from"./OutboxPane-vxvckaxe.js";import"./MessageBody-Ba6dVlG6.js";import"./kbd-CD9WJQDD.js";import"./search-scope-CuQFKckU.js";import"./app-chrome-CAqI0L8I.js";import"./reply-DtObeSB2.js";import"./useMediaQuery-DHHct6HU.js";import"./useMessageBodyContent-Bz4eLwYW.js";import"./outbox-status-BlKn6P0x.js";import"./NavMenuButton-DuV5qIvO.js";import"./menu-Cul_tOCl.js";import"./roving-focus-WwAX8-VC.js";import"./circle-check-big-CVlYwPvW.js";import"./clock-DQO0Oi4O.js";import"./row-actions-C0oNI3Ia.js";import"./rotate-ccw-9KACcb0y.js";function g(){return o.jsx(t.Reading,{})}export{g as component};
|
package/assets/mail-CzYW0cEP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as Me,j as e,r as p,n as Ee,o as Pe,D as Le,X as Te,p as I,C as Fe,S as oe,q as Q,t as re,v as ie,F as Ae,T as ze,w as De,M as _e,x as Be,y as Ke,I as Qe,B as E,z as le,E as qe,G as He,H as ce,e as B,J as ue,K as de,N as $e,P as Ve,Q as Ue,R as me,a as xe,U as We,V as Ge,W as z,Y as Ye,Z as Je,_ as Xe,$ as Ze,a0 as es,a1 as ss,a2 as ts,a3 as as,a4 as ns,u as os,c as rs,a5 as is,O as ls}from"./index-BVIV7uOn.js";import{u as cs,l as O,a as D,m as q,b as us,c as ds,N as C,d as ms,e as xs,i as fs,f as ps}from"./reply-DtObeSB2.js";import{A as hs,S as fe,a as gs,c as bs,L as vs,b as ys,D as js,d as Ns}from"./DesktopChrome-Ciuao7Ro.js";import{u as K,a as Ss}from"./useMessageBodyContent-Bz4eLwYW.js";import{P as Cs}from"./pencil-D4t_TOKs.js";import{c as Is,s as ws,M as Os}from"./MailShell--jgEGKni.js";import{u as ks,a as Rs,R as Ms,s as Es,i as Ps,H as Ls,M as Ts}from"./useRefreshControl-CmSuQYeT.js";import{K as Fs,B as As,S as zs,u as Ds,s as _s,b as Bs,a as Ks,c as Qs,d as qs}from"./search-token-index-BXdRQHFC.js";import{u as Hs}from"./sections-DssOe_S4.js";import{u as pe}from"./search-scope-CuQFKckU.js";import{M as $s}from"./menu-Cul_tOCl.js";import{B as he,u as Vs}from"./useResultFolderIndex-B-bcuKwK.js";import{u as ge}from"./useQueries-CFXMrDWB.js";import{f as Us}from"./folder-failure-CqkVSsrb.js";import{i as Ws}from"./outbox-status-BlKn6P0x.js";import{u as Gs}from"./roving-focus-WwAX8-VC.js";import{C as Ys,A as Js}from"./account-service-status-u9m2wO3G.js";import{S as Xs}from"./sparkles-D9JSeha5.js";import{C as H}from"./chevron-down-BI1fWP0V.js";import{u as Zs}from"./index-KSq98OCk.js";import{u as be,i as et}from"./useLayoutTier-CDh6ugx0.js";import{u as st}from"./useDebouncedValue-CQk7uQJy.js";import{E as tt}from"./ErrorState-KWmymUQR.js";import{K as $}from"./kbd-CD9WJQDD.js";import"./useMediaQuery-DHHct6HU.js";import"./avatar-BKCZjVnK.js";import"./popover-menu-Drk7oRld.js";import"./shield-check-7IzpHero.js";import"./mail-BXDRGUJS.js";import"./app-chrome-CAqI0L8I.js";import"./FullCompose-6pNo7wi4.js";import"./confirm-dialog-DCFAU3wg.js";import"./circle-check-big-CVlYwPvW.js";import"./refresh-cw-CuoE7FSQ.js";import"./useSignature-ChD8g6V6.js";import"./account-form-helpers-DhckT_PN.js";import"./suggest-list-MxpHM4zs.js";const at=Me("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);function nt({onCompose:s}){return e.jsx("button",{type:"button",onClick:s,"aria-label":"Compose new message",className:"lg:hidden fixed right-4 z-30 h-14 w-14 rounded-full bg-accent text-accent-fg shadow-lg flex items-center justify-center hover:opacity-90 active:scale-95 transition-all",style:{bottom:"calc(var(--app-tab-bar, 0px) + env(safe-area-inset-bottom, 0px) + 1rem)"},children:e.jsx(Cs,{className:"size-6"})})}const ot=({isOpen:s,onClose:t})=>{const a=p.useRef(null);return Ee({id:"shortcuts",open:s,answers:{back:t}}),Pe(a,s),s?e.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[e.jsx(Le,{label:"Dismiss keyboard shortcuts",onDismiss:t,className:"backdrop-blur-sm"}),e.jsxs("div",{ref:a,role:"dialog","aria-modal":"true","aria-label":"Keyboard shortcuts",tabIndex:-1,className:I("relative z-10 max-h-[85vh] w-full max-w-2xl overflow-y-auto","rounded-lg border border-line bg-surface shadow-lg","p-6"),children:[e.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[e.jsx("h2",{className:"text-lg font-semibold",children:"Keyboard shortcuts"}),e.jsx("button",{type:"button",onClick:t,className:"p-1 text-fg-muted transition-colors hover:text-fg","aria-label":"Close",children:e.jsx(Te,{className:"size-5"})})]}),e.jsx("div",{className:"grid gap-x-8 gap-y-6 sm:grid-cols-2",children:Fs.map(n=>e.jsxs("div",{children:[e.jsx("h3",{className:"mb-3 text-sm font-medium text-fg-muted",children:n.title}),e.jsx("div",{className:"space-y-2",children:n.hints.map(o=>e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsx("span",{className:"text-sm",children:o.description}),e.jsx("span",{className:"flex shrink-0 items-center gap-1",children:o.keys.map((r,c)=>e.jsxs(p.Fragment,{children:[c>0&&o.keys[0]==="g"&&e.jsx("span",{className:"text-2xs text-fg-subtle",children:"then"}),e.jsx($,{children:r})]},r))})]},`${o.action}-${o.keys.join("+")}`))})]},n.title))}),e.jsx("div",{className:"mt-6 border-t border-line pt-4",children:e.jsxs("p",{className:"text-center text-xs text-fg-muted",children:["Press ",e.jsx($,{children:"Esc"})," to close"]})})]})]}):null},rt="button:not([disabled]), a[href]",P="outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-surface-sunken";function it({active:s,dimmed:t,indent:a}){return I("flex w-full items-center gap-2 rounded-md px-2 py-1 text-left text-sm transition-colors",P,a&&"pl-7",s?"bg-accent-2-soft font-medium text-accent-2":"text-fg-muted hover:bg-surface hover:text-fg",t&&"opacity-55")}function lt({icon:s,label:t,count:a,active:n,failure:o}){return e.jsxs(e.Fragment,{children:[s&&e.jsx("span",{className:I("shrink-0",n?"text-accent-2":"text-fg-subtle"),children:s}),e.jsx("span",{className:"flex-1 truncate",children:t}),o&&e.jsx(re,{className:"size-3.5 shrink-0 text-danger","aria-hidden":"true"}),a!=null&&a>0&&e.jsx("span",{className:I("text-2xs tabular-nums",n?"text-accent-2":"text-fg-subtle"),children:a})]})}function w({icon:s,label:t,count:a,active:n,dimmed:o,indent:r,navId:c,linkComponent:u,ariaLabel:x,title:d,failure:h,onClick:y}){const g=it({active:n,dimmed:o,indent:r}),l=e.jsx(lt,{icon:s,label:t,count:a,active:n,failure:h}),v=x??t,m=h?`${v} — ${h}`:v,f=h?`${d??t} — ${h}`:d;return c&&u?u({navId:c,className:g,ariaLabel:m,title:f,onClick:y,children:l}):e.jsx("button",{type:"button",onClick:y,className:g,"aria-label":h?m:x,title:f,children:l})}const V={inbox:0,flagged:1,drafts:2,sent:3,archive:4,all:5,junk:6,trash:7};function ct(s){switch(s){case"inbox":return e.jsx(Qe,{className:"size-4"});case"flagged":return e.jsx(oe,{className:"size-4"});case"drafts":return e.jsx(Ke,{className:"size-4"});case"sent":return e.jsx(ie,{className:"size-4"});case"archive":return e.jsx(Be,{className:"size-4"});case"all":return e.jsx(_e,{className:"size-4"});case"junk":return e.jsx(De,{className:"size-4"});case"trash":return e.jsx(ze,{className:"size-4"})}}const U=s=>s.role!=null,A=8,W="remit.nav.folders.open.",G="remit.nav.account.open.";function Y(s,t,a){if(typeof localStorage>"u")return a;const n=localStorage.getItem(s+t);return n===null?a:n!=="0"}function J(s,t,a){typeof localStorage>"u"||localStorage.setItem(s+t,a?"1":"0")}function ut({account:s,selectedNavId:t,onSelectNav:a,linkComponent:n}){const[o,r]=p.useState(()=>Y(G,s.id,!0)),[c,u]=p.useState(()=>Y(W,s.id,!0)),[x,d]=p.useState(!1),h=()=>{r(i=>{const j=!i;return J(G,s.id,j),j})},y=()=>{u(i=>{const j=!i;return J(W,s.id,j),j})},g=s.mailboxes.filter(U).sort((i,j)=>V[i.role]-V[j.role]),l=s.mailboxes.filter(i=>!U(i)),v=x||l.length<=A?l:l.slice(0,A),m=l.length-v.length,f=s.status??"ready",b=s.syncedServices!==void 0&&!s.syncedServices.includes("Mail"),N=f==="ready"&&g.length===0&&l.length===0;return e.jsxs("div",{className:"mt-3",children:[e.jsxs("button",{type:"button",onClick:h,"aria-expanded":o,className:I("flex w-full items-center gap-1.5 px-2 pb-1 text-left transition-colors hover:text-fg",P,s.muted&&"opacity-55"),children:[o?e.jsx(H,{className:"size-3 shrink-0 text-fg-subtle"}):e.jsx(Q,{className:"size-3 shrink-0 text-fg-subtle"}),e.jsx("span",{className:"truncate text-2xs font-semibold uppercase tracking-wider text-fg-subtle",children:s.label}),s.muted&&e.jsxs(e.Fragment,{children:[e.jsx(As,{className:"size-3 shrink-0 text-fg-subtle"}),e.jsx("span",{className:"text-2xs text-fg-subtle",children:"muted"})]}),b&&e.jsxs(e.Fragment,{children:[e.jsx(Ys,{className:"size-3 shrink-0 text-fg-subtle"}),e.jsx("span",{className:"text-2xs text-fg-subtle",children:Js.Mail})]})]}),o&&e.jsxs(e.Fragment,{children:[f==="loading"&&e.jsx("div",{className:"px-2 py-1 text-sm text-fg-muted",children:"Loading…"}),f==="error"&&e.jsxs("div",{role:"alert",className:"mx-2 my-1 flex items-start gap-2 rounded-md border border-danger/40 bg-danger-soft px-2 py-1.5 text-sm",children:[e.jsx(re,{className:"mt-0.5 size-4 shrink-0 text-danger","aria-hidden":"true"}),e.jsx("div",{className:"min-w-0 flex-1",children:e.jsx("p",{className:"font-medium text-danger",children:"Couldn't load mailboxes"})}),s.onRetry&&e.jsx("button",{type:"button",onClick:s.onRetry,className:"shrink-0 text-sm font-medium text-accent hover:underline",children:"Retry"})]}),N&&e.jsx("div",{className:"px-2 py-1 text-sm text-fg-muted",children:"No mailboxes"}),f==="ready"&&e.jsxs(e.Fragment,{children:[g.map(i=>e.jsx(w,{navId:i.id,linkComponent:n,icon:ct(i.role),label:i.name,ariaLabel:i.name,title:i.fullPath??i.name,failure:i.failure,count:i.unseen,active:t===i.id,dimmed:s.muted,onClick:()=>a?.(i.id)},i.id)),s.outboxPending!==void 0&&e.jsx(w,{navId:"outbox",linkComponent:n,icon:e.jsx(ie,{className:"size-4"}),label:"Outbox",ariaLabel:"Outbox",count:s.outboxPending>0?s.outboxPending:void 0,active:t==="outbox",dimmed:s.muted,onClick:()=>a?.("outbox")}),l.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("button",{type:"button",onClick:y,"aria-expanded":c,className:I("mt-1 flex w-full items-center gap-1 px-2 py-1 text-left text-2xs font-semibold uppercase tracking-wider text-fg-subtle transition-colors hover:text-fg",P),children:[c?e.jsx(H,{className:"size-3 shrink-0"}):e.jsx(Q,{className:"size-3 shrink-0"}),e.jsx("span",{className:"flex-1",children:"Folders"}),e.jsx("span",{className:"tabular-nums opacity-70",children:l.length})]}),c&&e.jsxs(e.Fragment,{children:[v.map(i=>e.jsx(w,{navId:i.id,linkComponent:n,icon:e.jsx(Ae,{className:"size-4"}),label:i.name,ariaLabel:i.name,title:i.fullPath??i.name,failure:i.failure,count:i.unseen,active:t===i.id,dimmed:s.muted,onClick:()=>a?.(i.id)},i.id)),(m>0||x)&&l.length>A&&e.jsx("button",{type:"button",onClick:()=>d(i=>!i),className:I("ml-7 flex items-center px-2 py-1 text-2xs font-medium text-accent transition-colors hover:underline",P),children:x?"Show less":`Show all (${l.length})`})]})]})]})]})]})}function dt({accounts:s,selectedNavId:t,briefUnseen:a,onSelectNav:n,variant:o="desktop",linkComponent:r,calendarNav:c="hidden"}){const u=p.useRef(null);Gs({containerRef:u,itemSelector:rt});const x=o==="drawer",d=e.jsxs("nav",{ref:x?u:void 0,className:x?"px-2 py-2":"flex-1 overflow-y-auto px-2 py-2","aria-label":"Mailboxes",children:[e.jsx(w,{navId:"brief",linkComponent:r,icon:e.jsx(Xs,{className:"size-4"}),label:"Daily brief",ariaLabel:"Daily brief",count:a,active:t==="brief",onClick:()=>n?.("brief")}),c==="shown"&&e.jsx(w,{navId:"calendar",linkComponent:r,icon:e.jsx(Fe,{className:"size-4"}),label:"Calendar",ariaLabel:"Calendar",active:t==="calendar",onClick:()=>n?.("calendar")}),e.jsx(w,{navId:"flagged",linkComponent:r,icon:e.jsx(oe,{className:"size-4"}),label:"Starred",ariaLabel:"Starred",active:t==="flagged",onClick:()=>n?.("flagged")}),s.length===0?e.jsx("div",{className:"px-2 py-4 text-center text-sm text-fg-muted",children:"No accounts configured"}):s.map(h=>e.jsx(ut,{account:h,selectedNavId:t,onSelectNav:n,linkComponent:r},h.id))]});return x?d:e.jsx("aside",{ref:u,className:"flex h-full w-full flex-col bg-surface-sunken",children:d})}function mt(){const s=pe();if(!s)return null;const t=s.showNavPane?!s.navCollapsed:!1;return e.jsx(E,{variant:"ghost",size:"sm",icon:e.jsx($s,{className:"size-4"}),onClick:s.toggleNav,"aria-label":t?"Hide folders":"Show folders","aria-expanded":t,title:"Folders",className:"shrink-0"})}const xt={global:"Search all mail",pending:"Search mail",scoped:"Search this folder"};function ft({search:s,onCompose:t,onReportBug:a,onOpenSettings:n,settingsAttention:o,composeShortcut:r,refreshControl:c,account:u}){return e.jsx(hs,{leading:e.jsx(mt,{}),search:e.jsx(zs,{value:s.value,onChange:s.onChange,onClear:s.onClear,onClearQuery:s.onClearQuery,chips:s.chips,onRemoveChip:s.onRemoveChip,placeholder:xt[s.scope]}),actions:e.jsxs(e.Fragment,{children:[e.jsx(E,{variant:"ghost",size:"sm",icon:e.jsx(at,{className:"size-4"}),title:r?`Compose (${r})`:"Compose","aria-label":"Compose",onClick:t}),e.jsx(E,{variant:"ghost",size:"sm",icon:e.jsx(he,{className:"size-4"}),title:"Report a bug","aria-label":"Report a bug",onClick:a}),e.jsx(E,{variant:"ghost",size:"sm",icon:e.jsx(le,{label:o,children:e.jsx(fe,{className:"size-4"})}),title:"Settings","aria-label":o?`Settings — ${o}`:"Settings",onClick:n}),c,u]})})}function pt(){const{pathname:s}=cs(),t=qe({from:"/mail/$mailboxId",shouldThrow:!1});return O(s,"/settings")?"settings":O(s,"/calendar")?"calendar":O(s,"/mail/outbox")?"outbox":O(s,"/mail/flagged")?"flagged":O(s,"/mail/brief")?"brief":t?.mailboxId??""}function ht(){const s=He(),t=D({select:d=>q(d.location.pathname)}),a=D({select:d=>us(d.location.search)}),[n,o]=p.useState(a),r=st(n,200),[c,u]=p.useState(t);if(c!==t){const d=ws(c,t,a);u(t),d!==void 0&&o(d)}const x=p.useCallback(d=>{u(q(s.state.location.pathname)),o(d)},[s]);return{searchInput:n,committedQuery:Is(n,r),viewKey:t,setSearchInput:x}}const gt=()=>{const s=K();return ds()?null:e.jsx(nt,{onCompose:s})};function X({accounts:s}){const{searchInput:t,onSearchChange:a,onSearchClear:n,onSearchClearQuery:o,resultFolderIndex:r}=ce(),c=B(),u=Hs(),x=K(),{scope:d,clearScope:h}=Ds(s),y=ue(),g=d.kind==="scoped"?[{id:d.chip.id,label:d.chip.label,tone:"scope"}]:void 0,l=p.useMemo(()=>s.map(N=>N.accountId),[s]),{hasNewMail:v}=ks(),{state:m,errorMessage:f,refresh:b}=Rs(l,{onSettled:()=>$e(c,Ve(r.keys()))});return e.jsx(ft,{search:{value:t,scope:d.kind,chips:g,onChange:a,onClear:n,onClearQuery:o,onRemoveChip:h},onCompose:x,onReportBug:de,onOpenSettings:()=>u("accounts"),settingsAttention:y,composeShortcut:_s("compose"),refreshControl:e.jsx(Ms,{state:m,onRefresh:b,label:"Refresh all accounts",errorMessage:f,hasUpdate:v(l)}),account:e.jsx(gs,{})})}function bt(){return e.jsxs("button",{type:"button",onClick:de,className:"flex w-full items-center gap-2 rounded-md px-2 py-1 text-sm text-fg-muted transition-colors hover:bg-surface hover:text-fg",children:[e.jsx(he,{className:"size-4 shrink-0"}),e.jsx("span",{className:"flex-1 truncate text-left",children:"Report a bug"})]})}const Z=s=>/^\d/.test(s),vt=(s,t)=>{const a=Z(s),n=Z(t);return a&&!n?-1:!a&&n?1:s.localeCompare(t,void 0,{sensitivity:"base",numeric:!0})};function yt(s,t,a){const n=[],o=[];for(const r of s)t.has(r.mailboxId)?n.push(r):o.push(r);return o.sort((r,c)=>vt(z(r,void 0,a),z(c,void 0,a))),{system:n,labels:o}}function jt(s,t,a){const n=Ye(t)&&s.unseenCount>0;return{id:s.mailboxId,name:z(s,t,a),unseen:n?s.unseenCount:void 0,role:t,fullPath:s.fullPath,failure:Us(s)}}function ee({accounts:s,onMailboxSelect:t,variant:a="desktop"}){const n=B(),o=pt(),{onSearchChange:r}=ce(),{t:c}=Ue("mail",{useSuspense:!1}),u=p.useCallback((m,f)=>c(m,{defaultValue:f}),[c]),x=ge({queries:s.map(m=>({...me({path:{accountId:m.accountId}}),staleTime:1/0}))}),{data:d}=xe(We()),h=p.useMemo(()=>(d?.items??[]).filter(m=>Ws(m.status)).length,[d?.items]),y=p.useMemo(()=>s.map((m,f)=>{const b=x[f],N=b?.data?.items??[],i=Ge(m.folderAppointments),{system:j,labels:L}=yt(N,i,u),T=b?.isError?"error":b?.isLoading?"loading":"ready";return{id:m.accountId,label:m.email,email:m.email,muted:!!m.muted,outboxPending:h,status:T,onRetry:()=>b?.refetch(),mailboxes:[...j,...L].map(k=>jt(k,i.get(k.mailboxId),u))}}),[s,x,h,u]),g=m=>{n.invalidateQueries({queryKey:Je({path:{mailboxId:m},query:{order:"desc"}})})},l=({navId:m,className:f,ariaLabel:b,title:N,children:i,onClick:j})=>m==="brief"?e.jsx(C,{to:"/mail/brief",search:{q:void 0},activeOptions:{includeSearch:!1},onClick:()=>j?.(),className:f,"aria-label":b,title:N,children:i}):m==="calendar"?e.jsx(C,{to:"/calendar",onClick:()=>j?.(),className:f,"aria-label":b,title:N,children:i}):m==="outbox"?e.jsx(C,{to:"/mail/outbox",search:{q:void 0},onClick:()=>j?.(),className:f,"aria-label":b,title:N,children:i}):m==="flagged"?e.jsx(C,{to:"/mail/flagged",search:{q:void 0},onClick:()=>j?.(),className:f,"aria-label":b,title:N,children:i}):m==="settings"?e.jsx(C,{to:"/settings/accounts",onClick:()=>j?.(),className:f,"aria-label":b,title:N,children:i}):e.jsx(C,{to:"/mail/$mailboxId",params:{mailboxId:m},search:{q:void 0},onClick:()=>{g(m),j?.()},className:f,"aria-label":b,title:N,children:i}),v=()=>{r(""),t?.()};return e.jsx(dt,{accounts:y,selectedNavId:o,onSelectNav:v,linkComponent:l,variant:a})}function Nt({accounts:s,onMailboxSelect:t}){const n=pe()?.showNavPane??!0,o=ue();return n?e.jsx(ee,{accounts:s}):e.jsxs("div",{className:"flex h-full flex-col",children:[e.jsx("div",{className:"flex-1 overflow-y-auto",children:e.jsx(ee,{accounts:s,onMailboxSelect:t,variant:"drawer"})}),e.jsxs("div",{className:"border-t border-line px-2 py-2",children:[e.jsxs(C,{to:"/settings/accounts",onClick:t,children:[e.jsx(le,{label:o,children:e.jsx(fe,{className:"size-4 shrink-0"})}),e.jsx("span",{className:"flex-1 truncate text-left",children:"Settings"})]}),e.jsx(bt,{}),e.jsx(bs,{children:({signOut:r})=>e.jsxs("button",{type:"button",onClick:()=>{t?.(),r()},className:"flex min-h-11 w-full items-center gap-2 rounded-md px-2 py-1 text-sm text-fg-muted transition-colors hover:bg-surface hover:text-fg","data-testid":"sign-out-button",children:[e.jsx(vs,{className:"size-4 shrink-0"}),e.jsx("span",{className:"flex-1 truncate text-left",children:"Sign out"})]})})]})]})}function St(s){const t=ge({queries:s.map(a=>({...me({path:{accountId:a.accountId}}),staleTime:1/0}))});return p.useMemo(()=>Bs(t.map(a=>a.data?.items??[])),[t])}const ve="remit:intelligence-open";function Ct(){try{return localStorage.getItem(ve)!=="closed"}catch{return!0}}function It(s){try{localStorage.setItem(ve,s?"open":"closed")}catch{}}function se({panels:s,prefersOpen:t,isDesktop:a,hasThread:n,raisedFor:o,openMessage:r}){if(o!==null&&o===r)return!0;const c=s.filter(u=>u!=="sidebar");return c.length>0?c.includes("intelligence"):a&&n&&t}const wt=()=>{const s=be(),t=ms(),a=xs(),n=t.find(fs),o=Ks(),[r,c]=p.useState(Ct),u=o?`${o.threadId}/${o.messageId??""}`:null,[x,d]=p.useState(null),h={panels:t,prefersOpen:r,isDesktop:s==="desktop",hasThread:o!==void 0,openMessage:u},y=se({...h,raisedFor:x}),g=se({...h,raisedFor:null}),l=p.useCallback((b,N)=>{a([...b?["intelligence"]:[],...N?[N]:[]])},[a]),v=p.useCallback(b=>{l(g,b)},[g,l]),m=p.useCallback(()=>{if(y&&!g){d(null);return}const b=!y;It(b),c(b),d(null),l(b,n)},[g,y,n,l]),f=p.useCallback(()=>{d(u)},[u]);return{openOverlay:n,intelligenceOpen:y,showOverlay:v,toggleIntelligence:m,raiseIntelligence:f}};var R={exports:{}},te;function Ot(){if(te)return R.exports;te=1;const s=(t,a,n)=>new Promise((o,r)=>{if(n=Object.assign({concurrency:1/0},n),typeof a!="function")throw new TypeError("Mapper function is required");const{concurrency:c}=n;if(!(typeof c=="number"&&c>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${c}\` (${typeof c})`);const u=[],x=t[Symbol.iterator]();let d=!1,h=!1,y=0,g=0;const l=()=>{if(d)return;const v=x.next(),m=g;if(g++,v.done){h=!0,y===0&&o(u);return}y++,Promise.resolve(v.value).then(f=>a(f,m)).then(f=>{u[m]=f,y--,l()},f=>{d=!0,r(f)})};for(let v=0;v<c&&(l(),!h);v++);});return R.exports=s,R.exports.default=s,R.exports}var kt=Ot();const Rt=Xe(kt),Mt=900*1e3,Et=30,Pt=(s,t)=>{if(!s)return t;const a=Number.parseInt(s,10);return Number.isFinite(a)&&a>0?a:t},Lt=30*1e3,Tt=s=>Math.max(Pt(s,Et)*1e3,Lt),ye=Tt(ns().mailboxPollIntervalSeconds),M=(s=Date.now(),t=ye)=>Ps(s)?Math.min(Ls,t):t,Ft=5,_=new Set,At=(s,t,a=Mt)=>s.filter(n=>{const o=n.lastSyncAt;return o==null?!0:t-o>a}).map(n=>n.accountId),zt=(s,t,a=ye)=>s-t>=a,Dt=(s,t)=>s.filter(a=>!t.has(a)),ae=(s,t)=>{if(_.delete(s),ss(t)||ts(t,{softError:!0})){as(t,{softError:!0});return}console.warn("[remit] background mailbox sync failed",{accountId:s,error:t})},ne=(s,t)=>Ze({path:{accountId:s},throwOnError:!0}).then(()=>{t.invalidateQueries({queryKey:es({path:{accountId:s}})})}),_t=s=>{const t=B(),a=p.useRef(s);a.current=s;const n=s.map(o=>o.accountId).join(",");p.useEffect(()=>{const o=Date.now(),c=At(a.current,o).filter(u=>!_.has(u));if(c.length!==0)for(const u of c)_.add(u),ne(u,t).catch(x=>{ae(u,x)})},[n,t]),p.useEffect(()=>{let o=Date.now(),r;const c=new Set,u=()=>{o=Date.now();const g=Dt(a.current.map(l=>l.accountId),c);for(const l of g)c.add(l);Rt(g,l=>ne(l,t).catch(v=>{ae(l,v)}).finally(()=>{c.delete(l)}),{concurrency:Ft})},x=()=>{if(document.visibilityState==="visible"){u(),r=setTimeout(x,M());return}},d=()=>{if(document.visibilityState!=="visible")return;r!==void 0&&clearTimeout(r);const g=Date.now(),l=M(g);if(zt(g,o,l)){u(),r=setTimeout(x,l);return}r=setTimeout(x,o+l-g)},h=()=>{document.visibilityState==="visible"&&(r!==void 0&&clearTimeout(r),o=Date.now(),r=setTimeout(x,M()))};r=setTimeout(x,M()),document.addEventListener("visibilitychange",d);const y=Es(h);return()=>{r!==void 0&&clearTimeout(r),document.removeEventListener("visibilitychange",d),y()}},[n,t])};function Sa(){const s=os(),t=be(),a=et(t),{openOverlay:n,intelligenceOpen:o,showOverlay:r,toggleIntelligence:c,raiseIntelligence:u}=wt(),x=n==="shortcuts",d=n==="nav",{searchInput:h,committedQuery:y,viewKey:g,setSearchInput:l}=ht(),{data:v,isLoading:m,isError:f,error:b,refetch:N}=xe({...rs(),staleTime:1/0}),i=!!(v&&(v.accounts?.length??0)===0);p.useEffect(()=>{i&&s({to:"/onboarding",replace:!0})},[i,s]),Zs({enabled:!x,bindings:[{key:"?",action:"help",handler:()=>r("shortcuts"),noModifiers:!1,preventDefault:!0}]});const j=K(),L=Ss(),T=D({select:F=>ps(F.matches)?.list==="mailbox"}),k=p.useMemo(()=>({compose:j}),[j]);Qs({enabled:!T&&!L,handlers:k});const je=p.useCallback(()=>{l("")},[l]),Ne=p.useCallback(()=>{l("")},[l]),S=v?.accounts??[],Se=p.useMemo(()=>S.map(F=>F.accountId),[S]),Ce=St(S),Ie=Vs(S).index,we=p.useMemo(()=>qs(S),[S]);_t(S);const Oe=p.useCallback(()=>{n==="nav"&&r(void 0)},[n,r]),ke={accounts:S,mailboxNameIndex:Ce,accountNameIndex:we,resultFolderIndex:Ie,searchQuery:y,searchInput:h,searchViewKey:g,onSearchChange:l,onSearchClear:je,onSearchClearQuery:Ne,intelligenceOpen:o,onToggleIntelligence:c,onRaiseIntelligence:u},Re={isSinglePane:a,isLoading:m||i,intelligenceOpen:o,nav:e.jsx(Nt,{accounts:S,onMailboxSelect:Oe}),topBar:a?void 0:e.jsx(X,{accounts:S}),appBar:t==="phone"?void 0:e.jsx(Ns,{}),overlay:a?e.jsx(gt,{}):void 0,navOpen:d,onOpenNav:()=>r("nav"),onCloseNav:()=>r(void 0)};return e.jsx(is.Provider,{value:ke,children:e.jsxs(Ts,{accountIds:Se,children:[e.jsx(ys,{children:f?e.jsx(js,{topBar:e.jsx(X,{accounts:S}),children:e.jsx("div",{className:"flex h-full items-center justify-center bg-canvas p-4",children:e.jsx(tt,{title:"Couldn't load your account",error:b,onRetry:()=>{N()}})})}):e.jsx(Os,{chrome:Re,children:e.jsx(ls,{})})}),e.jsx(ot,{isOpen:x,onClose:()=>r(void 0)})]})})}export{Sa as component,ce as useMailContext};
|
package/assets/new-CdrTfyYm.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as o}from"./CalendarEventEditor-Cpu5cJxJ.js";import"./index-BVIV7uOn.js";import"./draft-UntYYkEO.js";import"./agenda-time-C_tFoNHA.js";import"./calendar-guests-DCkwUUaR.js";import"./calendar-event-popup-GQy2blc9.js";import"./useCalendarSuggestions-C4O39URl.js";import"./ErrorState-KWmymUQR.js";import"./useQueries-CFXMrDWB.js";import"./pencil-D4t_TOKs.js";import"./circle-help-BSxYNH4r.js";import"./useCalendarData-BHwxEmxu.js";import"./useCalendarTasks-BYrDBjzg.js";import"./useCalendarScheduling-BPs-bAlU.js";import"./useDebouncedValue-CQk7uQJy.js";import"./calendar-format-BwCpz-JZ.js";import"./reply-DtObeSB2.js";import"./useMediaQuery-DHHct6HU.js";import"./calendar-W0j7nrh5.js";import"./CalendarQuickCreate-DF0Uxv4V.js";import"./CalendarSession-XIbMK3oT.js";import"./calendar-event-sidebar-BdPLf9Q-.js";import"./select-CU_oR6rc.js";import"./chevron-down-BI1fWP0V.js";import"./confirm-dialog-DCFAU3wg.js";const q=o;export{q as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as i,e as n,u as a,r as m,j as p}from"./index-BVIV7uOn.js";import{O as s}from"./OnboardingWizard-BHqhUNht.js";import{c}from"./onboarding-completion-C5SxIJff.js";import"./credential-steps-DjMS9JxY.js";import"./select-CU_oR6rc.js";import"./chevron-down-BI1fWP0V.js";import"./badge-BmEPIQJj.js";import"./card-BYFKESRL.js";import"./account-form-helpers-DhckT_PN.js";import"./mail-BXDRGUJS.js";import"./file-json-BXCpWMKO.js";import"./kbd-CD9WJQDD.js";import"./checkbox-CPr2JwkJ.js";function k(){const o=i(),t=n(),e=a(),r=m.useCallback(l=>{c({queryClient:t,recordCompleted:()=>o.recordEvent("onboarding.completed"),navigateToInbox:()=>{window.location.assign("/mail")}})},[o,t]);return p.jsx(s,{skipWelcome:!1,onComplete:r,onImportConfig:()=>{e({to:"/import"})}})}export{k as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o,O as i}from"./index-BVIV7uOn.js";import{a as m}from"./MailShell--jgEGKni.js";import{u as p,O as t}from"./OutboxPane-vxvckaxe.js";import"./reply-DtObeSB2.js";import{u as s}from"./search-mirror-CQaPpynv.js";import"./useMessageBodyContent-Bz4eLwYW.js";import"./FullCompose-6pNo7wi4.js";import"./index-KSq98OCk.js";import"./useSignature-ChD8g6V6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-CQk7uQJy.js";import"./suggest-list-MxpHM4zs.js";import"./sections-DssOe_S4.js";import"./useMediaQuery-DHHct6HU.js";import"./chevron-down-BI1fWP0V.js";import"./ErrorState-KWmymUQR.js";import"./confirm-dialog-DCFAU3wg.js";import"./search-scope-CuQFKckU.js";import"./app-chrome-CAqI0L8I.js";import"./MessageBody-Ba6dVlG6.js";import"./kbd-CD9WJQDD.js";import"./outbox-status-BlKn6P0x.js";import"./NavMenuButton-DuV5qIvO.js";import"./menu-Cul_tOCl.js";import"./roving-focus-WwAX8-VC.js";import"./circle-check-big-CVlYwPvW.js";import"./clock-DQO0Oi4O.js";import"./row-actions-C0oNI3Ia.js";import"./rotate-ccw-9KACcb0y.js";function B(){const r=p();return s({to:"/mail/outbox"}),o.jsx(t,{outboxMessageId:r,children:o.jsx(m,{phone:o.jsx(t.Phone,{}),list:o.jsx(t.List,{}),reading:o.jsx(i,{})})})}export{B as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as e,r as s}from"./index-BVIV7uOn.js";const a={brief:"/mail/brief",flagged:"/mail/flagged",outbox:"/mail/outbox",settings:"/settings",accounts:"/settings/accounts",importConfig:"/import"};function c(){const t=e();return s.useCallback(o=>{t({to:a[o]})},[t])}function i(){const t=e();return s.useCallback(o=>{t({to:"/settings/accounts",search:{editAccountId:o,focusSmtp:!0}})},[t])}export{i as a,c as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t,O as o}from"./index-BVIV7uOn.js";const n=()=>t.jsx(o,{});export{n as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as e}from"./index-BVIV7uOn.js";const c=e("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);export{c as S};
|