@remit/web-client-dist 0.0.624 → 0.0.625
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{BriefPane-BjUmHKNU.js → BriefPane-BcLRbXt0.js} +1 -1
- package/assets/CalendarComposePane-BX_sGf_E.js +1 -0
- package/assets/{CalendarComposeSeed-CeMPzriy.js → CalendarComposeSeed-ueNtbA6-.js} +1 -1
- package/assets/{CalendarShell-q8nTThqJ.js → CalendarShell-Cf0mR1zl.js} +1 -1
- package/assets/{EmptyState-DxHRPzWP.js → EmptyState-CN1sTl54.js} +1 -1
- package/assets/{ErrorState-B7NbYqTc.js → ErrorState-ujr_GVkW.js} +1 -1
- package/assets/{FlaggedPane-C0O-H48H.js → FlaggedPane-CRQiEP8s.js} +1 -1
- package/assets/{FullCompose-Co7TPnxX.js → FullCompose-BAl3d_w0.js} +1 -1
- package/assets/MailListHeader-B8KqCoIm.js +7 -0
- package/assets/MailNav-eOhT4K5M.js +1 -0
- package/assets/{MailShell-CBAHJ7P0.js → MailShell-CijmWfSp.js} +1 -1
- package/assets/{MailViewChrome-SWxm38ad.js → MailViewChrome-ylQHccJD.js} +1 -1
- package/assets/{MailboxPane-S4RjLCSn.js → MailboxPane-BSy756o9.js} +1 -1
- package/assets/{NavMenuButton-CRz4o42Z.js → NavMenuButton-DXqQI4Z5.js} +1 -1
- package/assets/{OnboardingWizard-eRXMySJ0.js → OnboardingWizard-JlsmKOxT.js} +1 -1
- package/assets/OpenCalendarEvent-AMoWfhdc.js +2 -0
- package/assets/{OutboxPane-CXpqcg1M.js → OutboxPane-CA4PZFqu.js} +1 -1
- package/assets/_calendarObjectId-tOtImfXw.js +1 -0
- package/assets/_mailboxId-_P3tq8gl.js +1 -0
- package/assets/_messageId-COMQcfvI.js +1 -0
- package/assets/_messageId-DmH3Li5m.js +1 -0
- package/assets/_messageId-cFsRfOSD.js +1 -0
- package/assets/_outboxMessageId--susUoju.js +1 -0
- package/assets/_recurrenceId-CGhp2ffr.js +1 -0
- package/assets/_threadId--notVzkL.js +1 -0
- package/assets/_threadId-AEzpp5uR.js +1 -0
- package/assets/_threadId-BwJD_tv3.js +1 -0
- package/assets/{_view._date-hlYMd7kn.js → _view._date-CG9W40_l.js} +1 -1
- package/assets/{accounts-BHBATOBL.js → accounts-8HbXfxyY.js} +1 -1
- package/assets/{advanced-CWj1vJ3f.js → advanced-CDxG3KHI.js} +1 -1
- package/assets/{appearance-DXdbCOhL.js → appearance-CU8jNmrW.js} +1 -1
- package/assets/{attendee-row-Dgh-0GlX.js → attendee-row-YXbrbIq8.js} +1 -1
- package/assets/{avatar-BuiXyp5p.js → avatar-C5pPOUjS.js} +1 -1
- package/assets/{bell-off-PwhHcUK1.js → bell-off-CQoLYol5.js} +1 -1
- package/assets/{bottom-sheet-BuyceQDS.js → bottom-sheet-C91fm1wU.js} +1 -1
- package/assets/{brief-itwy9KeE.js → brief-C32PSIeP.js} +1 -1
- package/assets/brief-DpNC_lz8.js +1 -0
- package/assets/{browser-ponyfill-XC3MKgZo.js → browser-ponyfill-DzvjeLzv.js} +2 -2
- package/assets/{bug-CFbZ4o5k.js → bug-Bvjwypvc.js} +1 -1
- package/assets/calendar-DrGm8UfQ.js +1 -0
- package/assets/{calendar-clash-strip-ChVtknHT.js → calendar-clash-strip-BLhPkquh.js} +1 -1
- package/assets/calendar-format-D-35Eq-A.js +1 -0
- package/assets/calendar-suggestion-Coshl0tU.js +1 -0
- package/assets/{calendars-CI4Tye4t.js → calendars-5GLviUT4.js} +1 -1
- package/assets/{card-Dfe50axc.js → card-DIRsRHeY.js} +1 -1
- package/assets/chevron-left-BzC14Odw.js +1 -0
- package/assets/{circle-check-big-CYIqB7G_.js → circle-check-big-BxS7u06D.js} +1 -1
- package/assets/{circle-check-DMqAgBOj.js → circle-check-uO4_WbZm.js} +1 -1
- package/assets/{circle-help-Bn5rsX9v.js → circle-help-BlZ4xP9R.js} +1 -1
- package/assets/{clock-zhYrOi0n.js → clock-zn4wNsRc.js} +1 -1
- package/assets/compose._-_outboxMessageId_-BQfSgO1d.js +1 -0
- package/assets/compose._-_outboxMessageId_-BTwbuYpu.js +1 -0
- package/assets/compose._-_outboxMessageId_-C4C_6Pc5.js +1 -0
- package/assets/compose._-_outboxMessageId_-rrLNuGNc.js +1 -0
- package/assets/{config-import-PZAIf0rl.js → config-import-CiK_cjWq.js} +1 -1
- package/assets/{confirm-dialog-BBNecW64.js → confirm-dialog-DStVP_YB.js} +1 -1
- package/assets/{copy-DYN1Qqcn.js → copy-CBi3fm5e.js} +1 -1
- package/assets/{credential-steps-BvLk_5Sd.js → credential-steps-C0bopKBL.js} +1 -1
- package/assets/{download-DSk-iXt6.js → download--4zu6YFD.js} +1 -1
- package/assets/{file-json-CnG7YYof.js → file-json-CIHsLTs2.js} +1 -1
- package/assets/{filters-pA2rkirY.js → filters-Bs369HA4.js} +1 -1
- package/assets/{flagged-0DaGnTzF.js → flagged-79ZpssaF.js} +1 -1
- package/assets/flagged-CXUG7hEi.js +1 -0
- package/assets/folder-failure-CqkVSsrb.js +1 -0
- package/assets/folders-KCTLIIjZ.js +1 -0
- package/assets/{help-copy-DUM-3tGw.js → help-copy-uBF8fXGG.js} +1 -1
- package/assets/{import-iEpa-yKD.js → import-CsL0jkis.js} +1 -1
- package/assets/index-B-gorWZO.js +1 -0
- package/assets/{index-N25dfLEk.js → index-BP2ZVS4q.js} +1 -1
- package/assets/index-BsZVtS6J.js +1 -0
- package/assets/index-CgYMdj4b.js +1 -0
- package/assets/index-Cm_p5S9S.js +1 -0
- package/assets/index-D5i-rZKH.js +55 -0
- package/assets/index-DXbMloJs.js +1 -0
- package/assets/index-DoeEkWBm.js +1 -0
- package/assets/index-Dpnd1WTE.js +1 -0
- package/assets/{index-Cvg1ICmg.js → index-Q4feV5hs.js} +54 -54
- package/assets/index-QHGSPpNt.js +1 -0
- package/assets/index-cFsRfOSD.js +1 -0
- package/assets/{kbd-CqsQh3Yv.js → kbd-shPcQMK0.js} +1 -1
- package/assets/{labels-d9EnCfKK.js → labels-DSgUeEAp.js} +1 -1
- package/assets/mail-C9hQ4FN3.js +1 -0
- package/assets/{mail-i5djtULt.js → mail-C_twG7GL.js} +1 -1
- package/assets/{map-pin-BNehUfT9.js → map-pin-BBn-x2Kl.js} +1 -1
- package/assets/{menu-CzfZlboy.js → menu-DTN4EvxK.js} +1 -1
- package/assets/new-htfLYhI7.js +1 -0
- package/assets/onboarding-CCQtdms3.js +1 -0
- package/assets/{onboarding-completion-LMYPue3i.js → onboarding-completion-qZwYb_Ut.js} +1 -1
- package/assets/outbox-Gz6-I5eX.js +1 -0
- package/assets/{pencil-Cbc_bTFZ.js → pencil-DeYHBqGJ.js} +1 -1
- package/assets/{popover-menu-BOPw-RvI.js → popover-menu-TKxn0teJ.js} +1 -1
- package/assets/{refresh-cw-gehoG8pf.js → refresh-cw-5HtDVbgJ.js} +1 -1
- package/assets/{rich-text-DYTexR3K.js → rich-text-19XjDhm5.js} +2 -2
- package/assets/{rich-text-spellcheck-worker-provider-Be6BN4oD.js → rich-text-spellcheck-worker-provider-D_eo5-8u.js} +1 -1
- package/assets/{rotate-ccw-BUQyyEmS.js → rotate-ccw-CQK-NIHI.js} +1 -1
- package/assets/{roving-focus-DwDXHttZ.js → roving-focus-lu4GUcG_.js} +1 -1
- package/assets/{row-actions-CzWFmX-0.js → row-actions-Dj7EnCiv.js} +1 -1
- package/assets/{search-mirror-CG0SD5Nw.js → search-mirror-yAtFv0xR.js} +1 -1
- package/assets/{search-token-index-CMfLsCex.js → search-token-index-DMotPy3S.js} +1 -1
- package/assets/{sections-DZNHkQyT.js → sections-BEjFgOOu.js} +1 -1
- package/assets/{senders-zOwXF1CW.js → senders-XmPQgpCc.js} +1 -1
- package/assets/settings-CW90bjLX.js +1 -0
- package/assets/{settings-screen-BVNyrrqp.js → settings-screen-BRDJz8vo.js} +1 -1
- package/assets/{shield-check-gQitY-yx.js → shield-check-HOK5b_5p.js} +1 -1
- package/assets/{suggested-vips-DrD2TuQ1.js → suggested-vips-C57jHxrP.js} +1 -1
- package/assets/undo-2-SqKWoGew.js +1 -0
- package/assets/useCalendarData-ScZEg4Bc.js +1 -0
- package/assets/{useCalendarWrites--n8KbD7U.js → useCalendarWrites-DdDEKJWs.js} +1 -1
- package/assets/useCalendars-DB62jljf.js +1 -0
- package/assets/{useDebouncedValue-abnXV_Ax.js → useDebouncedValue-m9hfoeeT.js} +1 -1
- package/assets/{useFilters-e6-LOuFX.js → useFilters-MhGWNTRw.js} +1 -1
- package/assets/{useLabels-Dm-tUvjJ.js → useLabels-BCVlkzT_.js} +1 -1
- package/assets/{useLayoutTier-id3G6JgO.js → useLayoutTier-B7U5my6x.js} +1 -1
- package/assets/{useMessageBodyContent-DK0INN0c.js → useMessageBodyContent-Bh1dkGuL.js} +1 -1
- package/assets/{useQueries-B8LmhXDj.js → useQueries-Dt_ZoQnW.js} +1 -1
- package/assets/{useRefreshControl-BY1Z-PWr.js → useRefreshControl-C5OCmhS8.js} +1 -1
- package/assets/{useResultFolderIndex-D442PBpq.js → useResultFolderIndex-D_wb9MYs.js} +1 -1
- package/assets/{useSearchTokenContext-8rnAiWTU.js → useSearchTokenContext-BtJhq-_Q.js} +3 -3
- package/assets/{useSemanticSearch-CCCY9PAD.js → useSemanticSearch-DfSsCW6c.js} +1 -1
- package/assets/{useSignature-BPTjqaqF.js → useSignature-CRBwOs1d.js} +1 -1
- package/index.html +1 -1
- package/package.json +1 -1
- package/assets/CalendarComposePane-CQquoIIA.js +0 -1
- package/assets/MailListHeader-C_n4dLUO.js +0 -7
- package/assets/MailNav-DsFM4Zbb.js +0 -1
- package/assets/OpenCalendarEvent-BgYFqkWO.js +0 -2
- package/assets/_calendarObjectId-CAZamn7y.js +0 -1
- package/assets/_mailboxId-BmIDt2GW.js +0 -1
- package/assets/_messageId-CigPBylW.js +0 -1
- package/assets/_messageId-R9ftzZBW.js +0 -1
- package/assets/_messageId-Xz7zDM4l.js +0 -1
- package/assets/_outboxMessageId-DxrO7cYW.js +0 -1
- package/assets/_recurrenceId-C1Ir6dGL.js +0 -1
- package/assets/_threadId-CIO_w6bi.js +0 -1
- package/assets/_threadId-CjQQJEhB.js +0 -1
- package/assets/_threadId-luQhGDWk.js +0 -1
- package/assets/attachment-file-rUVfXWEQ.js +0 -1
- package/assets/brief-Dl4eEpFB.js +0 -1
- package/assets/calendar-Dabme7v4.js +0 -1
- package/assets/calendar-format-_D2qlvSu.js +0 -1
- package/assets/calendar-suggestion-DoL5BXEv.js +0 -1
- package/assets/chevron-left-Cp_sl0gi.js +0 -1
- package/assets/compose._-_outboxMessageId_-C7e7F6Id.js +0 -1
- package/assets/compose._-_outboxMessageId_-DMdCmVMA.js +0 -1
- package/assets/compose._-_outboxMessageId_-O4p9O2gf.js +0 -1
- package/assets/compose._-_outboxMessageId_-VcBR_Wg2.js +0 -1
- package/assets/flagged-CffT7Fd9.js +0 -1
- package/assets/folders-BZ2ei1sV.js +0 -1
- package/assets/index-BvAEy50E.js +0 -1
- package/assets/index-Bw48MPd4.js +0 -1
- package/assets/index-C280EmcF.js +0 -1
- package/assets/index-CeB8dMXm.js +0 -1
- package/assets/index-CigPBylW.js +0 -1
- package/assets/index-ClrSu-J7.js +0 -1
- package/assets/index-DDZEuXNA.js +0 -1
- package/assets/index-DK4QmBvZ.js +0 -1
- package/assets/index-sAVS5SaO.js +0 -1
- package/assets/index-yhiT7pf4.js +0 -55
- package/assets/mail-DvBCqkl1.js +0 -1
- package/assets/new-w9LeiqvV.js +0 -1
- package/assets/onboarding-CGyR6f-U.js +0 -1
- package/assets/outbox-B7-uw0-A.js +0 -1
- package/assets/settings-BJ3vobZ5.js +0 -1
- package/assets/useCalendarData-DXephWeP.js +0 -1
- package/assets/useCalendars-BiHQwoqg.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as o}from"./index-Q4feV5hs.js";import{F as r}from"./FlaggedPane-CRQiEP8s.js";import"./useSearchTokenContext-BtJhq-_Q.js";import"./kbd-shPcQMK0.js";import"./useMessageBodyContent-Bh1dkGuL.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-B8KqCoIm.js";import"./roving-focus-lu4GUcG_.js";import"./search-token-index-DMotPy3S.js";import"./useQueries-Dt_ZoQnW.js";import"./popover-menu-TKxn0teJ.js";import"./mail-C_twG7GL.js";import"./avatar-C5pPOUjS.js";import"./index-D5i-rZKH.js";import"./useSignature-CRBwOs1d.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-m9hfoeeT.js";import"./sections-BEjFgOOu.js";import"./EmptyState-CN1sTl54.js";import"./ErrorState-ujr_GVkW.js";import"./undo-2-SqKWoGew.js";import"./download--4zu6YFD.js";import"./calendar-suggestion-Coshl0tU.js";import"./calendar-format-D-35Eq-A.js";import"./useCalendars-DB62jljf.js";import"./map-pin-BBn-x2Kl.js";import"./attendee-row-YXbrbIq8.js";import"./clock-zn4wNsRc.js";import"./calendar-clash-strip-BLhPkquh.js";import"./bell-off-CQoLYol5.js";import"./copy-CBi3fm5e.js";import"./shield-check-HOK5b_5p.js";import"./useFilters-MhGWNTRw.js";import"./confirm-dialog-DStVP_YB.js";import"./useLayoutTier-B7U5my6x.js";import"./menu-DTN4EvxK.js";import"./MailViewChrome-ylQHccJD.js";import"./refresh-cw-5HtDVbgJ.js";import"./wizard-selection-DxUM65kM.js";function N(){return o.jsx(r.Reading,{})}export{N as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as o}from"./index-Q4feV5hs.js";import{M as r}from"./MailboxPane-BSy756o9.js";import"./useSearchTokenContext-BtJhq-_Q.js";import"./kbd-shPcQMK0.js";import"./useMessageBodyContent-Bh1dkGuL.js";import"./search-scope-B5-OK3Cq.js";import"./useRefreshControl-C5OCmhS8.js";import"./circle-check-big-BxS7u06D.js";import"./refresh-cw-5HtDVbgJ.js";import"./useQueries-Dt_ZoQnW.js";import"./MailListHeader-B8KqCoIm.js";import"./roving-focus-lu4GUcG_.js";import"./search-token-index-DMotPy3S.js";import"./popover-menu-TKxn0teJ.js";import"./mail-C_twG7GL.js";import"./avatar-C5pPOUjS.js";import"./index-D5i-rZKH.js";import"./useSignature-CRBwOs1d.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-m9hfoeeT.js";import"./sections-BEjFgOOu.js";import"./EmptyState-CN1sTl54.js";import"./ErrorState-ujr_GVkW.js";import"./undo-2-SqKWoGew.js";import"./download--4zu6YFD.js";import"./calendar-suggestion-Coshl0tU.js";import"./calendar-format-D-35Eq-A.js";import"./useCalendars-DB62jljf.js";import"./map-pin-BBn-x2Kl.js";import"./attendee-row-YXbrbIq8.js";import"./clock-zn4wNsRc.js";import"./calendar-clash-strip-BLhPkquh.js";import"./bell-off-CQoLYol5.js";import"./copy-CBi3fm5e.js";import"./shield-check-HOK5b_5p.js";import"./useFilters-MhGWNTRw.js";import"./confirm-dialog-DStVP_YB.js";import"./useLayoutTier-B7U5my6x.js";import"./menu-DTN4EvxK.js";import"./MailViewChrome-ylQHccJD.js";import"./NavMenuButton-DXqQI4Z5.js";import"./useLabels-BCVlkzT_.js";import"./useSemanticSearch-DfSsCW6c.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-C91fm1wU.js";import"./circle-help-BlZ4xP9R.js";import"./circle-check-uO4_WbZm.js";function X(){return o.jsx(r.Reading,{})}export{X as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as n,t as s}from"./index-
|
|
1
|
+
import{j as n,t as s}from"./index-Q4feV5hs.js";function x({className:e,...t}){return n.jsx("kbd",{className:s("inline-flex h-4 min-w-4 items-center justify-center rounded-xs border border-line bg-surface-sunken px-1 font-sans text-2xs text-fg-muted",e),...t})}export{x as K};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as f,j as e,az as h,br as y,ay as b,bP as g,f as v,a3 as N,u as C,c as L,d as I,aL as D,aN as S,B as w}from"./index-
|
|
1
|
+
import{r as f,j as e,az as h,br as y,ay as b,bP as g,f as v,a3 as N,u as C,c as L,d as I,aL as D,aN as S,B as w}from"./index-Q4feV5hs.js";import{C as E}from"./confirm-dialog-DStVP_YB.js";import{S as $}from"./settings-screen-BRDJz8vo.js";import{E as j}from"./ErrorState-ujr_GVkW.js";import{a as T,b as k,c as R,u as O}from"./useLabels-BCVlkzT_.js";import"./avatar-C5pPOUjS.js";import"./chevron-left-BzC14Odw.js";import"./menu-DTN4EvxK.js";import"./circle-help-BlZ4xP9R.js";function P({labels:l,onRename:i,onRecolor:n,onDelete:m,deletingLabelId:c}){const[u,r]=f.useState(),[o,d]=f.useState("");if(l.length===0)return e.jsx("p",{className:"py-6 text-sm text-fg-muted",children:"No labels yet. Create one below, then use it in a filter or apply it to mail directly."});const t=a=>{const s=o.trim();s!==""&&i(a,s),r(void 0)};return e.jsx("ul",{className:"divide-y divide-line rounded-md border border-line",children:l.map(a=>e.jsxs("li",{className:"flex items-center gap-3 px-3 py-2.5",children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[u===a.labelId?e.jsx(h,{autoFocus:!0,value:o,onChange:s=>d(s.target.value),onBlur:()=>t(a.labelId),onKeyDown:s=>{s.key==="Enter"&&(s.preventDefault(),t(a.labelId)),s.key==="Escape"&&(s.preventDefault(),r(void 0))},"aria-label":`Rename label ${a.name}`}):e.jsx("button",{type:"button",onClick:()=>{r(a.labelId),d(a.name)},"aria-label":`Rename label ${a.name}`,className:"flex items-center gap-2 rounded-sm text-left hover:opacity-80",children:e.jsx(y,{label:a})}),e.jsx("p",{className:"mt-0.5 text-xs text-fg-subtle",children:a.filterCount===0?"Not used in any filter":`Used in ${a.filterCount} ${a.filterCount===1?"filter":"filters"}`})]}),e.jsx(b,{"aria-label":`Color for ${a.name}`,value:a.color,onChange:s=>n(a.labelId,s.target.value),className:"w-28 shrink-0",children:g.map(s=>e.jsx("option",{value:s,children:s},s))}),e.jsx(v,{variant:"ghost",size:"sm",icon:e.jsx(N,{className:"size-4 text-danger"}),onClick:()=>m(a),disabled:c===a.labelId,"aria-label":`Delete label ${a.name}`})]},a.labelId))})}const B=(l,i)=>{if(i===0)return{title:`Delete the "${l}" label?`};const n=i===1?"filter":"filters";return{title:`Delete the "${l}" label?`,description:`This also deletes ${i} ${n} that ${i===1?"applies":"apply"} it — they can't be recovered.`}},_=e.jsxs("div",{className:"space-y-3",children:[e.jsx("p",{children:"Labels mark mail without moving it — a message can carry any number of them alongside whichever folder it lives in."}),e.jsx("p",{children:"Use a label in a filter's action to have new (and existing) mail label itself automatically, or apply one to a selection directly from the mailbox."}),e.jsx("p",{children:"Deleting a label removes it from every message, and deletes every filter that applies it — the confirmation names how many."})]});function H({accountId:l}){const{createLabel:i,isPending:n,isError:m}=O(l),[c,u]=f.useState(""),[r,o]=f.useState("Default"),d=()=>{const t=c.trim();t!==""&&i(t,r).then(()=>{u(""),o("Default")})};return e.jsxs("div",{className:"space-y-2 rounded-sm border border-line bg-surface p-3",children:[e.jsx("p",{className:"text-sm font-medium text-fg",children:"New label"}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end",children:[e.jsxs("div",{className:"flex-1 space-y-1",children:[e.jsx("span",{className:"text-xs text-fg-muted",children:"Name"}),e.jsx(h,{value:c,onChange:t=>u(t.target.value),placeholder:"e.g. Receipts","aria-label":"Label name",onKeyDown:t=>{t.key==="Enter"&&(t.preventDefault(),d())}})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("span",{className:"text-xs text-fg-muted",children:"Color"}),e.jsx(b,{value:r,onChange:t=>o(t.target.value),"aria-label":"Label color",className:"w-28",children:g.map(t=>e.jsx("option",{value:t,children:t},t))})]}),e.jsx(v,{variant:"primary",onClick:d,disabled:n||c.trim()==="",children:n?"Creating…":"Create label"})]}),m&&e.jsx(w,{tone:"danger",variant:"soft",children:"Couldn't create that label. Please try again."})]})}function z({account:l}){const i=l.accountId,{labels:n,isPending:m,isError:c,error:u,refetch:r}=T(i),{updateLabel:o}=k(i),{deleteLabel:d,deletingLabelId:t}=R(i),[a,s]=f.useState();return e.jsxs("section",{className:"space-y-2",children:[e.jsx("h2",{className:"text-sm font-semibold text-fg",children:l.email}),m?e.jsx("div",{className:"h-16 animate-pulse rounded-md border border-line bg-surface","aria-busy":"true","aria-label":`Loading labels for ${l.email}`}):c?e.jsx(j,{variant:"inline",title:`Couldn't load labels for ${l.email}`,error:u,onRetry:()=>{r()}}):e.jsx(P,{labels:n,onRename:(p,x)=>o(p,{name:x}),onRecolor:(p,x)=>o(p,{color:x}),onDelete:s,deletingLabelId:t}),e.jsx(H,{accountId:i}),a&&(()=>{const p=B(a.name,a.filterCount);return e.jsx(E,{isOpen:!0,title:p.title,description:p.description,confirmLabel:"Delete label",destructive:!0,isBusy:t===a.labelId,onConfirm:()=>{d(a.labelId),s(void 0)},onCancel:()=>s(void 0)})})()]})}function J(){const l=C(),[i,n]=f.useState(!0),{data:m,isPending:c,isError:u,error:r,refetch:o}=L(I()),d=t=>{const a=S[t];a&&l({to:a})};return e.jsx($,{items:D,activeId:"labels",title:"Labels",description:"Mark mail without moving it, per account.",help:_,helpOpen:i,onToggleHelp:()=>n(t=>!t),onSelect:d,onBackToMail:()=>{l({to:"/mail"})},children:c?e.jsx("div",{className:"h-24 animate-pulse rounded-sm border border-line bg-surface","aria-busy":"true","aria-label":"Loading accounts"}):u?e.jsx(j,{title:"Couldn't load accounts",error:r,onRetry:()=>{o()}}):m.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:m.accounts.map(t=>e.jsx(z,{account:t},t.accountId))})})}export{J as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as ee,r as u,j as t,t as D,v as te,f as N,w as se,x as M,y as O,z as ne,A as oe,C as ae,h as Q,D as re,E as ie,F as ce,G as le,H as ue,J as de,X as me,K as pe,a as he,b as fe,M as xe,N as ge,P as ve,Q as be,R as ye,S as Se,T as je,u as Ce,c as Ne,d as Ie,U as we,O as Me,V as Pe}from"./index-Q4feV5hs.js";import{S as Re,u as Ee,s as Oe,K as Te,b as ke,a as Le,c as Ae,d as Fe}from"./search-token-index-DMotPy3S.js";import{u as R,a as De}from"./useMessageBodyContent-Bh1dkGuL.js";import{P as Qe}from"./pencil-DeYHBqGJ.js";import{c as Ke,s as _e,M as ze}from"./MailShell-CijmWfSp.js";import{u as Be,a as He,R as Ve,s as qe,i as $e,H as Ge,M as Ue}from"./useRefreshControl-C5OCmhS8.js";import{M as We}from"./menu-DTN4EvxK.js";import{B as Ye}from"./bug-Bvjwypvc.js";import{L as Je,S as Xe,A as Ze,M as et}from"./MailNav-eOhT4K5M.js";import{A as tt}from"./avatar-C5pPOUjS.js";import{u as st,P as nt,a as ot,b as at}from"./popover-menu-TKxn0teJ.js";import{u as rt}from"./sections-BEjFgOOu.js";import{E as it}from"./ErrorState-ujr_GVkW.js";import{K as T}from"./kbd-shPcQMK0.js";import{u as ct}from"./index-D5i-rZKH.js";import{u as K,i as lt}from"./useLayoutTier-B7U5my6x.js";import{u as ut}from"./useQueries-Dt_ZoQnW.js";import{u as dt}from"./useResultFolderIndex-D_wb9MYs.js";import{u as mt}from"./useDebouncedValue-m9hfoeeT.js";import"./search-scope-B5-OK3Cq.js";import"./FullCompose-BAl3d_w0.js";import"./confirm-dialog-DStVP_YB.js";import"./circle-check-big-BxS7u06D.js";import"./refresh-cw-5HtDVbgJ.js";import"./roving-focus-lu4GUcG_.js";import"./bell-off-CQoLYol5.js";import"./folder-failure-CqkVSsrb.js";import"./outbox-status-BlKn6P0x.js";import"./useSignature-CRBwOs1d.js";import"./account-form-helpers-DhckT_PN.js";const pt=ee("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 ht({email:e,onSignOut:s}){const n=u.useRef(null),{open:a,setOpen:o,containerRef:r,panelRef:i,getAnchor:d}=st("account-menu",()=>n.current?.focus());u.useEffect(()=>{if(!a)return;const c=requestAnimationFrame(()=>i.current?.querySelector('[role="menuitem"]')?.focus());return()=>cancelAnimationFrame(c)},[a,i]);const m=e??"Account";return t.jsxs("div",{ref:r,className:"relative",children:[t.jsx("button",{ref:n,type:"button","aria-label":"Account","aria-haspopup":"menu","aria-expanded":a,onClick:()=>o(c=>!c),className:"inline-flex min-h-11 min-w-11 items-center justify-center rounded-md p-1.5 text-fg-muted transition-colors hover:bg-surface-raised hover:text-fg",children:t.jsx(tt,{name:m,email:e??void 0,size:"sm"})}),t.jsx(nt,{open:a,align:"end",panelRef:i,getAnchor:d,children:t.jsxs(ot,{ref:i,label:m,children:[e&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"truncate px-4 py-2 text-xs text-fg-muted",title:e,"data-testid":"account-menu-email",children:e}),t.jsx("hr",{className:"my-1 h-px border-0 bg-line"})]}),t.jsx(at,{label:"Sign out",icon:t.jsx(Je,{className:"size-4"}),onSelect:()=>{o(!1),n.current?.focus(),s()}})]})})]})}function ft({leading:e,search:s,actions:n,className:a}){return t.jsxs("header",{className:D("flex min-h-pane-header w-full shrink-0 items-center gap-2 border-b border-line bg-canvas px-row-inset py-1",a),children:[e&&t.jsx("div",{className:"flex shrink-0 items-center gap-1",children:e}),t.jsx("div",{className:"flex min-w-0 flex-1 justify-start",children:t.jsx("div",{className:"w-full max-w-xs transition-[max-width] duration-150 ease-out focus-within:max-w-lg",children:s})}),n&&t.jsx("div",{className:"flex shrink-0 items-center gap-1",children:n})]})}function xt(){const e=te();if(!e)return null;const s=e.showNavPane?!e.navCollapsed:!1;return t.jsx(N,{variant:"ghost",size:"sm",icon:t.jsx(We,{className:"size-4"}),onClick:e.toggleNav,"aria-label":s?"Hide folders":"Show folders","aria-expanded":s,title:"Folders",className:"shrink-0"})}const gt={global:"Search all mail",pending:"Search mail",scoped:"Search this folder"};function vt({search:e,onCompose:s,onReportBug:n,onOpenSettings:a,composeShortcut:o,refreshControl:r,account:i}){return t.jsx(ft,{leading:t.jsx(xt,{}),search:t.jsx(Re,{value:e.value,onChange:e.onChange,onClear:e.onClear,onClearQuery:e.onClearQuery,chips:e.chips,onRemoveChip:e.onRemoveChip,placeholder:gt[e.scope]}),actions:t.jsxs(t.Fragment,{children:[t.jsx(N,{variant:"ghost",size:"sm",icon:t.jsx(pt,{className:"size-4"}),title:o?`Compose (${o})`:"Compose","aria-label":"Compose",onClick:s}),t.jsx(N,{variant:"ghost",size:"sm",icon:t.jsx(Ye,{className:"size-4"}),title:"Report a bug","aria-label":"Report a bug",onClick:n}),t.jsx(N,{variant:"ghost",size:"sm",icon:t.jsx(Xe,{className:"size-4"}),title:"Settings","aria-label":"Settings",onClick:a}),r,i]})})}function bt(){const e=se(),s=M({select:c=>O(c.location.pathname)}),n=M({select:c=>ne(c.location.search)}),[a,o]=u.useState(n),r=mt(a,200),[i,d]=u.useState(s);if(i!==s){const c=_e(i,s,n);d(s),c!==void 0&&o(c)}const m=u.useCallback(c=>{d(O(e.state.location.pathname)),o(c)},[e]);return{searchInput:a,committedQuery:Ke(a,r),viewKey:s,setSearchInput:m}}const yt=()=>{const e=R();return oe()?null:t.jsx("button",{type:"button",onClick:e,"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(env(safe-area-inset-bottom, 0) + 1rem)"},children:t.jsx(Qe,{className:"size-6"})})},St=()=>t.jsx(Ze,{children:({email:e,signOut:s})=>t.jsx(ht,{email:e,onSignOut:s})});function jt({accounts:e}){const{searchInput:s,onSearchChange:n,onSearchClear:a,onSearchClearQuery:o,resultFolderIndex:r}=ae(),i=Q(),d=rt(),m=R(),{scope:c,clearScope:x}=Ee(e),f=c.kind==="scoped"?[{id:c.chip.id,label:c.chip.label,tone:"scope"}]:void 0,p=u.useMemo(()=>e.map(v=>v.accountId),[e]),{hasNewMail:l}=Be(),{state:h,errorMessage:y,refresh:g}=He(p,{onSettled:()=>ie(i,ce(r.keys()))});return t.jsx(vt,{search:{value:s,scope:c.kind,chips:f,onChange:n,onClear:a,onClearQuery:o,onRemoveChip:x},onCompose:m,onReportBug:re,onOpenSettings:()=>d("accounts"),composeShortcut:Oe("compose"),refreshControl:t.jsx(Ve,{state:h,onRefresh:g,label:"Refresh all accounts",errorMessage:y,hasUpdate:l(p)}),account:t.jsx(St,{})})}const Ct=({isOpen:e,onClose:s})=>{const n=u.useRef(null);return le({id:"shortcuts",open:e,answers:{back:s}}),ue(n,e),e?t.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[t.jsx(de,{label:"Dismiss keyboard shortcuts",onDismiss:s,className:"backdrop-blur-sm"}),t.jsxs("div",{ref:n,role:"dialog","aria-modal":"true","aria-label":"Keyboard shortcuts",tabIndex:-1,className:D("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:[t.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[t.jsx("h2",{className:"text-lg font-semibold",children:"Keyboard shortcuts"}),t.jsx("button",{type:"button",onClick:s,className:"p-1 text-fg-muted transition-colors hover:text-fg","aria-label":"Close",children:t.jsx(me,{className:"size-5"})})]}),t.jsx("div",{className:"grid gap-x-8 gap-y-6 sm:grid-cols-2",children:Te.map(a=>t.jsxs("div",{children:[t.jsx("h3",{className:"mb-3 text-sm font-medium text-fg-muted",children:a.title}),t.jsx("div",{className:"space-y-2",children:a.hints.map(o=>t.jsxs("div",{className:"flex items-center justify-between gap-4",children:[t.jsx("span",{className:"text-sm",children:o.description}),t.jsx("span",{className:"flex shrink-0 items-center gap-1",children:o.keys.map((r,i)=>t.jsxs(u.Fragment,{children:[i>0&&o.keys[0]==="g"&&t.jsx("span",{className:"text-2xs text-fg-subtle",children:"then"}),t.jsx(T,{children:r})]},r))})]},`${o.action}-${o.keys.join("+")}`))})]},a.title))}),t.jsx("div",{className:"mt-6 border-t border-line pt-4",children:t.jsxs("p",{className:"text-center text-xs text-fg-muted",children:["Press ",t.jsx(T,{children:"Esc"})," to close"]})})]})]}):null};function Nt(e){const s=ut({queries:e.map(n=>({...pe({path:{accountId:n.accountId}}),staleTime:1/0}))});return u.useMemo(()=>ke(s.map(n=>n.data?.items??[])),[s])}const _="remit:intelligence-open";function It(){try{return localStorage.getItem(_)!=="closed"}catch{return!0}}function wt(e){try{localStorage.setItem(_,e?"open":"closed")}catch{}}function k({panels:e,prefersOpen:s,isDesktop:n,hasThread:a,raisedFor:o,openMessage:r}){return o!==null&&o===r?!0:e.length>0?e.includes("intelligence"):n&&a&&s}const Mt=()=>{const e=K(),s=he(),n=fe(),a=s.find(xe),o=Le(),[r,i]=u.useState(It),d=o?`${o.threadId}/${o.messageId??""}`:null,[m,c]=u.useState(null),x={panels:s,prefersOpen:r,isDesktop:e==="desktop",hasThread:o!==void 0,openMessage:d},f=k({...x,raisedFor:m}),p=k({...x,raisedFor:null}),l=u.useCallback((v,S)=>{n([...v?["intelligence"]:[],...S?[S]:[]])},[n]),h=u.useCallback(v=>{l(p,v)},[p,l]),y=u.useCallback(()=>{if(f&&!p){c(null);return}const v=!f;wt(v),i(v),c(null),l(v,a)},[p,f,a,l]),g=u.useCallback(()=>{c(d)},[d]);return{openOverlay:a,intelligenceOpen:f,showOverlay:h,toggleIntelligence:y,raiseIntelligence:g}};var j={exports:{}},L;function Pt(){if(L)return j.exports;L=1;const e=(s,n,a)=>new Promise((o,r)=>{if(a=Object.assign({concurrency:1/0},a),typeof n!="function")throw new TypeError("Mapper function is required");const{concurrency:i}=a;if(!(typeof i=="number"&&i>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${i}\` (${typeof i})`);const d=[],m=s[Symbol.iterator]();let c=!1,x=!1,f=0,p=0;const l=()=>{if(c)return;const h=m.next(),y=p;if(p++,h.done){x=!0,f===0&&o(d);return}f++,Promise.resolve(h.value).then(g=>n(g,y)).then(g=>{d[y]=g,f--,l()},g=>{c=!0,r(g)})};for(let h=0;h<i&&(l(),!x);h++);});return j.exports=e,j.exports.default=e,j.exports}var Rt=Pt();const Et=ge(Rt),Ot=900*1e3,Tt=30,kt=(e,s)=>{if(!e)return s;const n=Number.parseInt(e,10);return Number.isFinite(n)&&n>0?n:s},Lt=30*1e3,At=e=>Math.max(kt(e,Tt)*1e3,Lt),z=At(je().mailboxPollIntervalSeconds),C=(e=Date.now(),s=z)=>$e(e)?Math.min(Ge,s):s,Ft=5,P=new Set,Dt=(e,s,n=Ot)=>e.filter(a=>{const o=a.lastSyncAt;return o==null?!0:s-o>n}).map(a=>a.accountId),Qt=(e,s,n=z)=>e-s>=n,Kt=(e,s)=>e.filter(n=>!s.has(n)),A=(e,s)=>{if(P.delete(e),ye(s,{softError:!0},"nobody")){Se(s);return}console.warn("[remit] background mailbox sync failed",{accountId:e,error:s})},F=(e,s)=>ve({path:{accountId:e},throwOnError:!0}).then(()=>{s.invalidateQueries({queryKey:be({path:{accountId:e}})})}),_t=e=>{const s=Q(),n=u.useRef(e);n.current=e;const a=e.map(o=>o.accountId).join(",");u.useEffect(()=>{const o=Date.now(),i=Dt(n.current,o).filter(d=>!P.has(d));if(i.length!==0)for(const d of i)P.add(d),F(d,s).catch(m=>{A(d,m)})},[a,s]),u.useEffect(()=>{let o=Date.now(),r;const i=new Set,d=()=>{o=Date.now();const p=Kt(n.current.map(l=>l.accountId),i);for(const l of p)i.add(l);Et(p,l=>F(l,s).catch(h=>{A(l,h)}).finally(()=>{i.delete(l)}),{concurrency:Ft})},m=()=>{if(document.visibilityState==="visible"){d(),r=setTimeout(m,C());return}},c=()=>{if(document.visibilityState!=="visible")return;r!==void 0&&clearTimeout(r);const p=Date.now(),l=C(p);if(Qt(p,o,l)){d(),r=setTimeout(m,l);return}r=setTimeout(m,o+l-p)},x=()=>{document.visibilityState==="visible"&&(r!==void 0&&clearTimeout(r),o=Date.now(),r=setTimeout(m,C()))};r=setTimeout(m,C()),document.addEventListener("visibilitychange",c);const f=qe(x);return()=>{r!==void 0&&clearTimeout(r),document.removeEventListener("visibilitychange",c),f()}},[a,s])};function gs(){const e=Ce(),s=K(),n=lt(s),{openOverlay:a,intelligenceOpen:o,showOverlay:r,toggleIntelligence:i,raiseIntelligence:d}=Mt(),m=a==="shortcuts",c=a==="nav",{searchInput:x,committedQuery:f,viewKey:p,setSearchInput:l}=bt(),{data:h,isLoading:y,isError:g,error:v,refetch:S}=Ne({...Ie(),staleTime:1/0}),I=!!(h&&(h.accounts?.length??0)===0);u.useEffect(()=>{I&&e({to:"/onboarding",replace:!0})},[I,e]),ct({enabled:!m,bindings:[{key:"?",action:"help",handler:()=>r("shortcuts"),noModifiers:!1,preventDefault:!0}]});const E=R(),B=De(),H=M({select:w=>Pe(w.matches)?.list==="mailbox"}),V=u.useMemo(()=>({compose:E}),[E]);Ae({enabled:!H&&!B,handlers:V});const q=u.useCallback(()=>{l("")},[l]),$=u.useCallback(()=>{l("")},[l]),b=h?.accounts??[],G=u.useMemo(()=>b.map(w=>w.accountId),[b]),U=Nt(b),W=dt(b).index,Y=u.useMemo(()=>Fe(b),[b]);_t(b);const J=u.useCallback(()=>{a==="nav"&&r(void 0)},[a,r]),X={accounts:b,mailboxNameIndex:U,accountNameIndex:Y,resultFolderIndex:W,searchQuery:f,searchInput:x,searchViewKey:p,onSearchChange:l,onSearchClear:q,onSearchClearQuery:$,intelligenceOpen:o,onToggleIntelligence:i,onRaiseIntelligence:d},Z={isSinglePane:n,isLoading:y||I,intelligenceOpen:o,nav:t.jsx(et,{accounts:b,onMailboxSelect:J}),topBar:n?void 0:t.jsx(jt,{accounts:b}),overlay:n?t.jsx(yt,{}):void 0,navOpen:c,onOpenNav:()=>r("nav"),onCloseNav:()=>r(void 0)};return t.jsx(we.Provider,{value:X,children:t.jsxs(Ue,{accountIds:G,children:[g?t.jsx("div",{className:"flex h-full items-center justify-center bg-canvas p-4",children:t.jsx(it,{title:"Couldn't load your account",error:v,onRetry:()=>{S()}})}):t.jsx(ze,{chrome:Z,children:t.jsx(Me,{})}),t.jsx(Ct,{isOpen:m,onClose:()=>r(void 0)})]})})}export{gs as component,ae as useMailContext};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e}from"./index-
|
|
1
|
+
import{e}from"./index-Q4feV5hs.js";const a=e("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);export{a as M};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as c}from"./index-
|
|
1
|
+
import{e as c}from"./index-Q4feV5hs.js";const a=c("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);const r=c("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);export{a as G,r as M};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e}from"./index-
|
|
1
|
+
import{e}from"./index-Q4feV5hs.js";const n=e("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);export{n as M};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,j as c}from"./index-Q4feV5hs.js";import{e as h,u as g,C as y,c as E}from"./CalendarComposePane-BX_sGf_E.js";import{u as b}from"./CalendarComposeSeed-ueNtbA6-.js";import{u as x,f as I,U as T,d as k}from"./useCalendars-DB62jljf.js";import{a as w}from"./useCalendarWrites-DdDEKJWs.js";import{u as N,n as S}from"./calendar-format-D-35Eq-A.js";import"./calendar-clash-strip-BLhPkquh.js";import"./ErrorState-ujr_GVkW.js";import"./useQueries-Dt_ZoQnW.js";function j({onClose:n}){const{date:m}=N(),a=b(),{calendars:d,timeZoneByCalendarId:u}=x(),{createEvent:f,isWriting:p}=w(),[C,r]=i.useState(""),[t,l]=i.useState(()=>{const e=h(a?.date??m,"");return a?{...e,allDay:a.allDay,startTime:a.allDay?"":a.startTime,endDate:a.endDate,endTime:a.allDay?"":a.endTime}:e}),D=g(t),s=d[0]?.id??"";i.useEffect(()=>{s!==""&&l(e=>e.calendarId===""?{...e,calendarId:s}:e)},[s]);const v=()=>{const e=E(t,{clock:k(),anchor:I(u[t.calendarId]??T)});if(!e.ok){r(e.problem);return}f(e.input).then(o=>{if(o.kind==="written"){r(""),n();return}r(o.kind==="conflict"?"This calendar changed while you were writing. Close the form and try again.":o.message)})};return c.jsx(y,{title:"New event",subtitle:t.date,calendars:d,draft:t,onChange:l,problem:C,saveLabel:"Add",isSaving:p,clashes:D,onSave:v,onCancel:n})}function O(){const{closeEvent:n}=S();return c.jsx(j,{onClose:n})}export{O as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{q as n,h as i,u as a,r as m,j as s}from"./index-Q4feV5hs.js";import{O as p}from"./OnboardingWizard-JlsmKOxT.js";import{c}from"./onboarding-completion-qZwYb_Ut.js";import"./kbd-shPcQMK0.js";import"./credential-steps-C0bopKBL.js";import"./card-DIRsRHeY.js";import"./account-form-helpers-DhckT_PN.js";import"./mail-C_twG7GL.js";import"./file-json-CIHsLTs2.js";function O(){const o=n(),e=i(),t=a(),r=m.useCallback(l=>{c({queryClient:e,recordCompleted:()=>o.recordEvent("onboarding.completed"),navigateToInbox:()=>{window.location.assign("/mail")}})},[o,e]);return s.jsx(p,{skipWelcome:!1,onComplete:r,onImportConfig:()=>{t({to:"/import"})}})}export{O as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o}from"./index-
|
|
1
|
+
import{o}from"./index-Q4feV5hs.js";async function n(e){e.recordCompleted(),await e.queryClient.refetchQueries({queryKey:o()}),e.navigateToInbox()}export{n as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as o,O as i}from"./index-Q4feV5hs.js";import{a as m}from"./MailShell-CijmWfSp.js";import{u as p,O as t}from"./OutboxPane-CA4PZFqu.js";import{u as s}from"./search-mirror-yAtFv0xR.js";import"./FullCompose-BAl3d_w0.js";import"./ErrorState-ujr_GVkW.js";import"./index-D5i-rZKH.js";import"./useMessageBodyContent-Bh1dkGuL.js";import"./useSignature-CRBwOs1d.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-m9hfoeeT.js";import"./sections-BEjFgOOu.js";import"./confirm-dialog-DStVP_YB.js";import"./roving-focus-lu4GUcG_.js";import"./useSearchTokenContext-BtJhq-_Q.js";import"./kbd-shPcQMK0.js";import"./search-scope-B5-OK3Cq.js";import"./circle-check-big-BxS7u06D.js";import"./clock-zn4wNsRc.js";import"./row-actions-Dj7EnCiv.js";import"./rotate-ccw-CQK-NIHI.js";import"./NavMenuButton-DXqQI4Z5.js";import"./menu-DTN4EvxK.js";import"./outbox-status-BlKn6P0x.js";import"./search-query-Cr_ZXBCp.js";function v(){const r=p();return s({to:"/mail/outbox"}),o.jsx(t,{outboxMessageId:r,children:o.jsx(m,{phone:o.jsx(t.Phone,{}),list:o.jsx(t.List,{}),reading:o.jsx(i,{})})})}export{v as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as a}from"./index-
|
|
1
|
+
import{e as a}from"./index-Q4feV5hs.js";const c=a("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);export{c as P};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as y,r as f,G as E,bX as P,j as a,t as b,f as R}from"./index-
|
|
1
|
+
import{e as y,r as f,G as E,bX as P,j as a,t as b,f as R}from"./index-Q4feV5hs.js";const j=y("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),g=4,v=8;function k(e,t,n){const o=Math.max(v,window.innerWidth-t.width-v),r=n==="end"?e.right-t.width:e.left,s=Math.min(Math.max(r,v),o),c=e.bottom+g,i=e.top-g-t.height,d=c+t.height<=window.innerHeight-v||i<v?c:i;return{left:s,top:d}}function L(e,t,n,o){const[r,s]=f.useState(null),c=f.useRef(o);return c.current=o,f.useLayoutEffect(()=>{if(!t){s(null);return}const i=()=>{const x=e.current,h=c.current();if(!x||!h)return;const m=x.getBoundingClientRect(),w={width:m.right-m.left,height:m.bottom-m.top},p=k(h,w,n);s(l=>l?.left===p.left&&l.top===p.top?l:{position:"fixed",left:p.left,top:p.top})};i(),window.addEventListener("resize",i),window.addEventListener("scroll",i,!0);const u=e.current;let d=null;return u&&typeof ResizeObserver<"u"&&(d=new ResizeObserver(i),d.observe(u)),()=>{d?.disconnect(),window.removeEventListener("resize",i),window.removeEventListener("scroll",i,!0)}},[t,n,e]),r}function z(e,t){const[n,o]=f.useState(!1),r=f.useRef(null),s=f.useRef(null);return E({id:e,open:n,answers:{back:()=>{o(!1),t?.()}}}),f.useEffect(()=>{if(!n)return;const c=i=>{const u=i.target;r.current?.contains(u)||s.current?.contains(u)||o(!1)};return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[n]),{open:n,setOpen:o,containerRef:r,panelRef:s,getAnchor:()=>r.current?.getBoundingClientRect()??null}}function M({open:e,align:t="start",getAnchor:n,panelRef:o,children:r}){const s=L(o,e,t,n);return e?P.createPortal(a.jsx("div",{className:"z-50",style:s??{position:"fixed",visibility:"hidden"},children:r}),document.body):null}function N({label:e,children:t,className:n,ref:o,onKeyDown:r,"data-testid":s}){return a.jsx("div",{ref:o,role:"menu","aria-label":e,tabIndex:-1,onKeyDown:r,"data-testid":s,className:b("z-50 flex max-h-[60dvh] min-w-44 flex-col overflow-y-auto overscroll-contain rounded-md border border-line bg-surface py-1 shadow-lg outline-none",n),children:t})}function O({label:e,icon:t,onSelect:n,className:o,lang:r,"data-testid":s}){return a.jsxs("button",{type:"button",role:"menuitem",lang:r,onClick:n,"data-testid":s,className:b("flex min-h-11 items-center gap-3 px-4 py-2.5 text-left text-sm text-fg transition-colors hover:bg-surface-sunken",o),children:[t&&a.jsx("span",{className:"shrink-0 text-fg-subtle",children:t}),e]})}function A({triggerLabel:e,triggerIcon:t,triggerText:n,items:o,align:r="end",touch:s=!0,className:c,triggerClassName:i,nested:u=!1,children:d}){const{open:x,setOpen:h,containerRef:m,panelRef:w,getAnchor:p}=z("popover-menu");return o.length===0&&!d?null:a.jsxs("div",{ref:m,className:b("relative",c),...u?{role:"none"}:{},children:[a.jsx(R,{variant:"ghost",size:"sm",icon:t??a.jsx(j,{className:"size-5"}),onClick:()=>h(l=>!l),"aria-label":e,"aria-haspopup":"menu","aria-expanded":x,...u?{role:"menuitem"}:{},className:b(s&&"min-h-11 min-w-11 px-0",i),children:n}),a.jsx(M,{open:x,align:r,panelRef:w,getAnchor:p,children:a.jsxs(N,{ref:w,children:[o.map(l=>a.jsx(O,{label:l.label,icon:l.icon,onSelect:()=>{h(!1),l.onSelect()}},l.key)),d]})})]})}export{j as E,M as P,N as a,O as b,A as c,z as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e}from"./index-
|
|
1
|
+
import{e}from"./index-Q4feV5hs.js";const t=e("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);export{t as R};
|