@remit/web-client-dist 0.0.461 → 0.0.462

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.
Files changed (118) hide show
  1. package/assets/{BriefPane-DjLGt8Ew.js → BriefPane-Dw3YTts-.js} +1 -1
  2. package/assets/{ErrorState-B4VsOGrK.js → ErrorState-CjLUZhfC.js} +1 -1
  3. package/assets/FlaggedPane-Dn4nfqK4.js +1 -0
  4. package/assets/FullCompose-DiOOxFBp.js +1 -0
  5. package/assets/MailListHeader-CTi-kcGG.js +7 -0
  6. package/assets/{MailShell-BP7K6fau.js → MailShell-OMzOuVod.js} +1 -1
  7. package/assets/{MailViewChrome-DHZ7MY5f.js → MailViewChrome-CuPLWh3n.js} +1 -1
  8. package/assets/MailboxPane-BYwVAqna.js +1 -0
  9. package/assets/{NavMenuButton-BWo1nM1f.js → NavMenuButton-CbJ1TOwg.js} +1 -1
  10. package/assets/{OnboardingWizard-vijcm72Q.js → OnboardingWizard-4OerNwuH.js} +1 -1
  11. package/assets/{OutboxPane-BqlgpqNL.js → OutboxPane-Dx2gC7I0.js} +1 -1
  12. package/assets/_mailboxId-Drej_A8K.js +1 -0
  13. package/assets/_messageId-BnoPUG0c.js +1 -0
  14. package/assets/_messageId-Cy-36nBf.js +1 -0
  15. package/assets/_messageId-qQlnPgPz.js +1 -0
  16. package/assets/_outboxMessageId-CUDBwGPh.js +1 -0
  17. package/assets/_threadId-7Ipe93GD.js +1 -0
  18. package/assets/_threadId-C7CDFbJS.js +1 -0
  19. package/assets/_threadId-o79pkN_F.js +1 -0
  20. package/assets/accounts-Diy5gApx.js +1 -0
  21. package/assets/{advanced-CPJrCXvT.js → advanced-B10jdXOo.js} +2 -2
  22. package/assets/{appearance-BDfFG2he.js → appearance-Bp0OdDXE.js} +1 -1
  23. package/assets/attachment-file-CIo5Wbou.js +1 -0
  24. package/assets/{avatar-jaEBSbql.js → avatar-C5ldGlvW.js} +1 -1
  25. package/assets/bottom-sheet-DEE-1mM-.js +1 -0
  26. package/assets/brief-D0lxDE4U.js +1 -0
  27. package/assets/{brief-Ci0jXtDH.js → brief-DPIDkV5i.js} +1 -1
  28. package/assets/{browser-ponyfill-ChYUynw4.js → browser-ponyfill-BE2kf5Th.js} +2 -2
  29. package/assets/{bug-BP6ptZzW.js → bug-CQTbyEm9.js} +1 -1
  30. package/assets/{circle-check-big-BFiLMkQC.js → circle-check-big-CBbkiQXT.js} +1 -1
  31. package/assets/{circle-check-BmiTu4H1.js → circle-check-vEraUg-H.js} +1 -1
  32. package/assets/{circle-help-Dw1cuExg.js → circle-help-C9uzxWcx.js} +1 -1
  33. package/assets/{clock-D3XsB56g.js → clock-CbwuMEIM.js} +1 -1
  34. package/assets/compose._-_outboxMessageId_-CNASonbW.js +1 -0
  35. package/assets/compose._-_outboxMessageId_-DOZdOQpN.js +1 -0
  36. package/assets/compose._-_outboxMessageId_-EFrdL1II.js +1 -0
  37. package/assets/compose._-_outboxMessageId_-KOcBfqRA.js +1 -0
  38. package/assets/confirm-dialog-DvpT6KnV.js +1 -0
  39. package/assets/{download-B0_65CyW.js → download-B8JAXF1r.js} +1 -1
  40. package/assets/{filters-Pf9Tuc_n.js → filters-DrIxBscq.js} +1 -1
  41. package/assets/{flagged-AgmrMmyU.js → flagged-BwF4EQeu.js} +1 -1
  42. package/assets/flagged-Q6-So2Dg.js +1 -0
  43. package/assets/{folders-CuaQg56U.js → folders-DnxkYPjS.js} +1 -1
  44. package/assets/{format-CKFVaaTu.js → format-DGJ8BNpA.js} +1 -1
  45. package/assets/{help-copy-COGyRriu.js → help-copy-DHHvEQ14.js} +1 -1
  46. package/assets/index-BGIk_HI7.js +1 -0
  47. package/assets/index-BnoPUG0c.js +1 -0
  48. package/assets/index-CG7bjf8R.js +1 -0
  49. package/assets/index-CMLUMf-T.js +1 -0
  50. package/assets/index-CR-HAiC-.js +1 -0
  51. package/assets/{index-BTRnlnq5.js → index-CgZOrCxV.js} +68 -68
  52. package/assets/index-CjStl5Qs.js +1 -0
  53. package/assets/{index-hT5tBTzR.js → index-DYePbThF.js} +8 -8
  54. package/assets/index-X_sys5RX.js +1 -0
  55. package/assets/index-qQlnPgPz.js +1 -0
  56. package/assets/{kbd-BC4mJOBs.js → kbd-CV6Kl-x7.js} +1 -1
  57. package/assets/{labels-BDVAOlez.js → labels-DP_5JC7Y.js} +1 -1
  58. package/assets/mail-D5TFxMZS.js +1 -0
  59. package/assets/{mail-Cr8_SnVv.js → mail-DosQK8T_.js} +1 -1
  60. package/assets/{menu-C1hjhPb_.js → menu-d2W5EkUw.js} +1 -1
  61. package/assets/{onboarding-6BSzD0Ie.js → onboarding-rx0au-GE.js} +1 -1
  62. package/assets/outbox-QOhOefZg.js +1 -0
  63. package/assets/{pencil-BZjs3okd.js → pencil-D3MxpT_c.js} +1 -1
  64. package/assets/{rich-text-Dk3vHdrM.js → rich-text-BWFNXRq1.js} +23 -23
  65. package/assets/{rich-text-spellcheck-worker-provider-DFj5zrUT.js → rich-text-spellcheck-worker-provider-co2OnMjO.js} +1 -1
  66. package/assets/{rotate-ccw-BqIiCKQR.js → rotate-ccw-tQrX1hoO.js} +1 -1
  67. package/assets/{row-actions-D3e6qQEJ.js → row-actions-DYgMzBPF.js} +1 -1
  68. package/assets/{search-mirror-CsO5JCFX.js → search-mirror-CzoFsks9.js} +1 -1
  69. package/assets/search-token-index-bYHjYrPz.js +1 -0
  70. package/assets/{senders-DoCWh5gC.js → senders-Breocagq.js} +1 -1
  71. package/assets/settings-cYNg-8OQ.js +1 -0
  72. package/assets/{settings-screen-BDzVJLC-.js → settings-screen-D-Vmq5G-.js} +1 -1
  73. package/assets/{shield-check-B-1gFnYc.js → shield-check-DXuBc1vm.js} +1 -1
  74. package/assets/{suggested-vips-egNvKzgO.js → suggested-vips-BlxWPGG0.js} +1 -1
  75. package/assets/{useDebouncedValue-CSPdExnp.js → useDebouncedValue-D3JTh9lD.js} +1 -1
  76. package/assets/{useFilters-BatXrORa.js → useFilters-DNf66kQz.js} +1 -1
  77. package/assets/{useLabels-Duq6ncsJ.js → useLabels-JB3ZgiYR.js} +1 -1
  78. package/assets/{useMessageBodyContent-ByQgmHE5.js → useMessageBodyContent-ChD8hjIT.js} +1 -1
  79. package/assets/{useRefreshControl-kod_PILg.js → useRefreshControl-CtqFhYK1.js} +1 -1
  80. package/assets/{useSearchTokenContext-Ckpe7Sfd.js → useSearchTokenContext-CiYSM9SP.js} +3 -3
  81. package/assets/{useSemanticSearch-nGs35pwa.js → useSemanticSearch-tGzvNKNw.js} +1 -1
  82. package/assets/{useSignature-CQmCe9Jn.js → useSignature-ZlPXnJNR.js} +1 -1
  83. package/index.html +1 -1
  84. package/package.json +1 -1
  85. package/assets/FlaggedPane-BIQZsZ4S.js +0 -1
  86. package/assets/FullCompose-BkDSaZih.js +0 -1
  87. package/assets/MailListHeader-pSpjJM_t.js +0 -7
  88. package/assets/MailboxPane-DHXAN6uQ.js +0 -1
  89. package/assets/_mailboxId-BB4weiQ7.js +0 -1
  90. package/assets/_messageId-B9zJw6qr.js +0 -1
  91. package/assets/_messageId-CWympPmr.js +0 -1
  92. package/assets/_messageId-CbMugDU_.js +0 -1
  93. package/assets/_outboxMessageId-CcPBoF5Z.js +0 -1
  94. package/assets/_threadId-BodBNgJ3.js +0 -1
  95. package/assets/_threadId-DAngHtqR.js +0 -1
  96. package/assets/_threadId-DVLUrlUA.js +0 -1
  97. package/assets/accounts-BHnS6Pjv.js +0 -1
  98. package/assets/attachment-file-CX6XlpBj.js +0 -1
  99. package/assets/bottom-sheet-Brh4I-8d.js +0 -1
  100. package/assets/brief-sHCN39fZ.js +0 -1
  101. package/assets/compose._-_outboxMessageId_-B2ZDweui.js +0 -1
  102. package/assets/compose._-_outboxMessageId_-CPLo9CPY.js +0 -1
  103. package/assets/compose._-_outboxMessageId_-CW-zEMb5.js +0 -1
  104. package/assets/compose._-_outboxMessageId_-Cxuhwr5K.js +0 -1
  105. package/assets/confirm-dialog-nDf9covS.js +0 -1
  106. package/assets/flagged-B5Ug8Sie.js +0 -1
  107. package/assets/index-0QDex7ea.js +0 -1
  108. package/assets/index-B9zJw6qr.js +0 -1
  109. package/assets/index-BiBJfiKH.js +0 -1
  110. package/assets/index-CN-EkIXx.js +0 -1
  111. package/assets/index-CVM1l7mc.js +0 -1
  112. package/assets/index-CWympPmr.js +0 -1
  113. package/assets/index-MNH7yGXs.js +0 -1
  114. package/assets/index-n8darOrg.js +0 -1
  115. package/assets/mail-BGWYoIh7.js +0 -1
  116. package/assets/outbox-DWGrZAf0.js +0 -1
  117. package/assets/search-token-index-D8DlDPp-.js +0 -1
  118. package/assets/settings-0K3vcV89.js +0 -1
@@ -0,0 +1 @@
1
+ import{c as A,r as u,u as Ee,j as e,S as Pe,a as pe,b as k,C as ee,d as te,e as Ae,f as ge,F as Le,g as ze,X as be,T as Te,O as Fe,M as De,A as _e,h as Be,I as Ke,i as ve,B as F,k as Qe,l as Ve,m as z,n as qe,o as U,p as se,q as He,s as $e,t as Ue,v as ye,w as je,x as Se,y as Ge,z as J,D as Ne,E as Ye,G as Je,H as G,J as We,N as E,K as Xe,L as Ze,P as et,Q as tt,R as st,U as at,V as nt,W as rt,Y as ot,Z as it,_ as lt,$ as ct,a0 as ut,a1 as dt,a2 as mt,a3 as xt,a4 as ht,a5 as ft}from"./index-CgZOrCxV.js";import{B as pt,S as gt,D as bt,a as vt,b as yt,u as jt,s as St,c as Nt,d as W,K as Ct,e as kt,f as Ce,g as It,h as wt,i as Mt,j as Ot}from"./search-token-index-bYHjYrPz.js";import{u as X,a as Rt}from"./useMessageBodyContent-ChD8hjIT.js";import{P as Et}from"./pencil-D3MxpT_c.js";import{c as Pt,s as At,M as Lt}from"./MailShell-OMzOuVod.js";import{u as zt,a as Tt,R as Ft,M as Dt}from"./useRefreshControl-CtqFhYK1.js";import{M as _t}from"./menu-d2W5EkUw.js";import{B as ke}from"./bug-CQTbyEm9.js";import{A as Bt}from"./avatar-C5ldGlvW.js";import{u as Kt,a as Qt}from"./index-DYePbThF.js";import{i as Vt}from"./outbox-status-BlKn6P0x.js";import{E as qt}from"./ErrorState-CjLUZhfC.js";import{K as ae}from"./kbd-CV6Kl-x7.js";import{u as Ht}from"./useDebouncedValue-D3JTh9lD.js";import"./search-scope-DTcpOp3S.js";import"./FullCompose-DiOOxFBp.js";import"./confirm-dialog-DvpT6KnV.js";import"./circle-check-big-CBbkiQXT.js";import"./useSignature-ZlPXnJNR.js";import"./account-form-helpers-DhckT_PN.js";const $t=A("BookmarkPlus",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}],["line",{x1:"12",x2:"12",y1:"7",y2:"13",key:"1cppfj"}],["line",{x1:"15",x2:"9",y1:"10",y2:"10",key:"1gty7f"}]]);const Ut=A("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);const Ie=A("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);const we=A("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);const Gt=A("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"}]]),Yt="button:not([disabled]), a[href]",R="outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-surface-sunken";function Jt({active:t,dimmed:s,indent:a}){return k("flex w-full items-center gap-2 rounded-md px-2 py-1 text-left text-sm transition-colors",R,a&&"pl-7",t?"bg-accent-2-soft font-medium text-accent-2":"text-fg-muted hover:bg-surface hover:text-fg",s&&"opacity-55")}function Wt({icon:t,label:s,count:a,active:n}){return e.jsxs(e.Fragment,{children:[t&&e.jsx("span",{className:k("shrink-0",n?"text-accent-2":"text-fg-subtle"),children:t}),e.jsx("span",{className:"flex-1 truncate",children:s}),a!=null&&a>0&&e.jsx("span",{className:k("text-2xs tabular-nums",n?"text-accent-2":"text-fg-subtle"),children:a})]})}function P({icon:t,label:s,count:a,active:n,dimmed:r,indent:o,navId:l,linkComponent:c,ariaLabel:h,title:d,onClick:g}){const x=Jt({active:n,dimmed:r,indent:o}),p=e.jsx(Wt,{icon:t,label:s,count:a,active:n});return l&&c?c({navId:l,className:x,ariaLabel:h??s,title:d,onClick:g,children:p}):e.jsx("button",{type:"button",onClick:g,className:x,"aria-label":h,title:d,children:p})}const ne={inbox:0,flagged:1,drafts:2,sent:3,archive:4,all:5,junk:6,trash:7};function Xt(t){switch(t){case"inbox":return e.jsx(Ke,{className:"size-4"});case"flagged":return e.jsx(pe,{className:"size-4"});case"drafts":return e.jsx(Be,{className:"size-4"});case"sent":return e.jsx(ge,{className:"size-4"});case"archive":return e.jsx(_e,{className:"size-4"});case"all":return e.jsx(De,{className:"size-4"});case"junk":return e.jsx(Fe,{className:"size-4"});case"trash":return e.jsx(Te,{className:"size-4"})}}const re=t=>t.role!=null,$=8,oe="remit.nav.folders.open.",ie="remit.nav.account.open.";function le(t,s,a){if(typeof localStorage>"u")return a;const n=localStorage.getItem(t+s);return n===null?a:n!=="0"}function ce(t,s,a){typeof localStorage>"u"||localStorage.setItem(t+s,a?"1":"0")}function Zt({query:t,onSelect:s,onRemove:a}){return e.jsxs("div",{className:"group flex w-full items-center gap-1 rounded-md pr-1 hover:bg-surface",children:[e.jsxs("button",{type:"button",onClick:s,className:k("flex min-w-0 flex-1 items-center gap-2 px-2 py-1 text-left text-sm text-fg-muted transition-colors hover:text-fg",R),children:[e.jsx(ze,{className:"size-4 shrink-0 text-fg-subtle"}),e.jsx("span",{className:"min-w-0 flex-1 truncate",children:t})]}),a&&e.jsx("button",{type:"button",onClick:a,"aria-label":`Remove saved search: ${t}`,className:k("shrink-0 rounded-full p-1 text-fg-subtle opacity-0 transition-opacity hover:bg-surface-sunken hover:text-fg group-hover:opacity-100 focus-visible:opacity-100",R),children:e.jsx(be,{className:"size-3.5"})})]})}function es({savedSearches:t,saveableQuery:s,onSelectSavedSearch:a,onRemoveSavedSearch:n,onSaveCurrentSearch:r}){return t.length===0&&!s?null:e.jsxs("div",{className:"mt-3",children:[e.jsx("div",{className:"px-2 pb-1 text-2xs font-semibold uppercase tracking-wider text-fg-subtle",children:"Saved searches"}),s&&e.jsxs("button",{type:"button",onClick:r,className:k("flex w-full items-center gap-2 rounded-md px-2 py-1 text-left text-sm text-accent transition-colors hover:bg-surface",R),children:[e.jsx($t,{className:"size-4 shrink-0"}),e.jsxs("span",{className:"min-w-0 flex-1 truncate",children:["Save “",s,"”"]})]}),t.map(o=>e.jsx(Zt,{query:o,onSelect:()=>a?.(o),onRemove:n?()=>n(o):void 0},o))]})}function ts({account:t,selectedNavId:s,onSelectNav:a,linkComponent:n}){const[r,o]=u.useState(()=>le(ie,t.id,!0)),[l,c]=u.useState(()=>le(oe,t.id,!0)),[h,d]=u.useState(!1),g=()=>{o(i=>{const S=!i;return ce(ie,t.id,S),S})},x=()=>{c(i=>{const S=!i;return ce(oe,t.id,S),S})},p=t.mailboxes.filter(re).sort((i,S)=>ne[i.role]-ne[S.role]),m=t.mailboxes.filter(i=>!re(i)),b=h||m.length<=$?m:m.slice(0,$),j=m.length-b.length,y=t.status??"ready",N=y==="ready"&&p.length===0&&m.length===0;return e.jsxs("div",{className:"mt-3",children:[e.jsxs("button",{type:"button",onClick:g,"aria-expanded":r,className:k("flex w-full items-center gap-1.5 px-2 pb-1 text-left transition-colors hover:text-fg",R,t.muted&&"opacity-55"),children:[r?e.jsx(ee,{className:"size-3 shrink-0 text-fg-subtle"}):e.jsx(te,{className:"size-3 shrink-0 text-fg-subtle"}),e.jsx("span",{className:"truncate text-2xs font-semibold uppercase tracking-wider text-fg-subtle",children:t.label}),t.muted&&e.jsxs(e.Fragment,{children:[e.jsx(pt,{className:"size-3 shrink-0 text-fg-subtle"}),e.jsx("span",{className:"text-2xs text-fg-subtle",children:"muted"})]})]}),r&&e.jsxs(e.Fragment,{children:[y==="loading"&&e.jsx("div",{className:"px-2 py-1 text-sm text-fg-muted",children:"Loading…"}),y==="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(Ae,{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"})}),t.onRetry&&e.jsx("button",{type:"button",onClick:t.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"}),y==="ready"&&e.jsxs(e.Fragment,{children:[p.map(i=>e.jsx(P,{navId:i.id,linkComponent:n,icon:Xt(i.role),label:i.name,ariaLabel:i.name,title:i.fullPath??i.name,count:i.unseen,active:s===i.id,dimmed:t.muted,onClick:()=>a?.(i.id)},i.id)),t.outboxPending!==void 0&&e.jsx(P,{navId:"outbox",linkComponent:n,icon:e.jsx(ge,{className:"size-4"}),label:"Outbox",ariaLabel:"Outbox",count:t.outboxPending>0?t.outboxPending:void 0,active:s==="outbox",dimmed:t.muted,onClick:()=>a?.("outbox")}),m.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("button",{type:"button",onClick:x,"aria-expanded":l,className:k("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",R),children:[l?e.jsx(ee,{className:"size-3 shrink-0"}):e.jsx(te,{className:"size-3 shrink-0"}),e.jsx("span",{className:"flex-1",children:"Folders"}),e.jsx("span",{className:"tabular-nums opacity-70",children:m.length})]}),l&&e.jsxs(e.Fragment,{children:[b.map(i=>e.jsx(P,{navId:i.id,linkComponent:n,icon:e.jsx(Le,{className:"size-4"}),label:i.name,ariaLabel:i.name,title:i.fullPath??i.name,count:i.unseen,active:s===i.id,dimmed:t.muted,onClick:()=>a?.(i.id)},i.id)),(j>0||h)&&m.length>$&&e.jsx("button",{type:"button",onClick:()=>d(i=>!i),className:k("ml-7 flex items-center px-2 py-1 text-2xs font-medium text-accent transition-colors hover:underline",R),children:h?"Show less":`Show all (${m.length})`})]})]})]})]})]})}function ss({accounts:t,selectedNavId:s,briefUnseen:a,onSelectNav:n,variant:r="desktop",linkComponent:o,calendarNav:l="hidden",savedSearches:c=[],saveableQuery:h,onSelectSavedSearch:d,onRemoveSavedSearch:g,onSaveCurrentSearch:x}){const p=u.useRef(null);Ee({containerRef:p,itemSelector:Yt});const m=r==="drawer",b=e.jsxs("nav",{ref:m?p:void 0,className:m?"px-2 py-2":"flex-1 overflow-y-auto px-2 py-2","aria-label":"Mailboxes",children:[e.jsx(P,{navId:"brief",linkComponent:o,icon:e.jsx(Pe,{className:"size-4"}),label:"Daily brief",ariaLabel:"Daily brief",count:a,active:s==="brief",onClick:()=>n?.("brief")}),l==="shown"&&e.jsx(P,{navId:"calendar",linkComponent:o,icon:e.jsx(Ut,{className:"size-4"}),label:"Calendar",ariaLabel:"Calendar",active:s==="calendar",onClick:()=>n?.("calendar")}),e.jsx(P,{navId:"flagged",linkComponent:o,icon:e.jsx(pe,{className:"size-4"}),label:"Starred",ariaLabel:"Starred",active:s==="flagged",onClick:()=>n?.("flagged")}),e.jsx(es,{savedSearches:c,saveableQuery:h,onSelectSavedSearch:d,onRemoveSavedSearch:g,onSaveCurrentSearch:x}),t.length===0?e.jsx("div",{className:"px-2 py-4 text-center text-sm text-fg-muted",children:"No accounts configured"}):t.map(j=>e.jsx(ts,{account:j,selectedNavId:s,onSelectNav:n,linkComponent:o},j.id))]});return m?b:e.jsx("aside",{ref:p,className:"flex h-full w-full flex-col bg-surface-sunken",children:b})}function as({leading:t,search:s,actions:a,className:n}){return e.jsxs("header",{className:k("flex min-h-pane-header w-full shrink-0 items-center gap-2 border-b border-line bg-canvas px-row-inset py-1",n),children:[t&&e.jsx("div",{className:"flex shrink-0 items-center gap-1",children:t}),e.jsx("div",{className:"flex min-w-0 flex-1 justify-start",children:e.jsx("div",{className:"w-full max-w-xs transition-[max-width] duration-150 ease-out focus-within:max-w-lg",children:s})}),a&&e.jsx("div",{className:"flex shrink-0 items-center gap-1",children:a})]})}function ns(){const t=ve();if(!t)return null;const s=t.showNavPane?!t.navCollapsed:!1;return e.jsx(F,{variant:"ghost",size:"sm",icon:e.jsx(_t,{className:"size-4"}),onClick:t.toggleNav,"aria-label":s?"Hide folders":"Show folders","aria-expanded":s,title:"Folders",className:"shrink-0"})}const rs={global:"Search all mail",pending:"Search mail",scoped:"Search this folder"};function os({search:t,onCompose:s,onReportBug:a,onOpenSettings:n,composeShortcut:r,refreshControl:o,account:l}){return e.jsx(as,{leading:e.jsx(ns,{}),search:e.jsx(gt,{value:t.value,onChange:t.onChange,onClear:t.onClear,onClearQuery:t.onClearQuery,chips:t.chips,onRemoveChip:t.onRemoveChip,placeholder:rs[t.scope]}),actions:e.jsxs(e.Fragment,{children:[e.jsx(F,{variant:"ghost",size:"sm",icon:e.jsx(Gt,{className:"size-4"}),title:r?`Compose (${r})`:"Compose","aria-label":"Compose",onClick:s}),e.jsx(F,{variant:"ghost",size:"sm",icon:e.jsx(ke,{className:"size-4"}),title:"Report a bug","aria-label":"Report a bug",onClick:a}),e.jsx(F,{variant:"ghost",size:"sm",icon:e.jsx(we,{className:"size-4"}),title:"Settings","aria-label":"Settings",onClick:n}),o,l]})})}function is(){const{pathname:t}=Qe(),s=Ve({from:"/mail/$mailboxId",shouldThrow:!1});return z(t,"/settings")?"settings":z(t,"/mail/outbox")?"outbox":z(t,"/mail/flagged")?"flagged":z(t,"/mail/brief")?"brief":s?.mailboxId??""}function ls(){const t=qe(),s=U({select:d=>se(d.location.pathname)}),a=U({select:d=>He(d.location.search)}),[n,r]=u.useState(a),o=Ht(n,200),[l,c]=u.useState(s);if(l!==s){const d=At(l,s,a);c(s),d!==void 0&&r(d)}const h=u.useCallback(d=>{c(se(t.state.location.pathname)),r(d)},[t]);return{searchInput:n,committedQuery:Pt(n,o),viewKey:s,setSearchInput:h}}const cs=()=>{const t=X();return $e()?null:e.jsx("button",{type:"button",onClick:t,"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:e.jsx(Et,{className:"size-6"})})},Me=({children:t})=>{const{Account:s}=Ue();return e.jsx(s,{children:t})},us=({email:t,onSignOut:s})=>{const a=t??"Account";return e.jsxs(bt,{trigger:e.jsx(Bt,{name:a,email:t??void 0,size:"sm"}),align:"right",children:[t&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"px-3 py-2 text-xs text-fg-muted truncate",title:t,"data-testid":"account-menu-email",children:t}),e.jsx(vt,{})]}),e.jsxs(yt,{onClick:s,children:[e.jsx(Ie,{className:"size-4"}),"Sign out"]})]})},ds=()=>e.jsx(Me,{children:({email:t,signOut:s})=>e.jsx(us,{email:t,onSignOut:s})});function ms({accounts:t}){const{searchInput:s,onSearchChange:a,onSearchClear:n,onSearchClearQuery:r}=ye(),o=Kt(),l=X(),{scope:c,clearScope:h}=jt(t),d=c.kind==="scoped"?[{id:c.chip.id,label:c.chip.label,tone:"scope"}]:void 0,g=u.useMemo(()=>t.map(j=>j.accountId),[t]),{hasNewMail:x}=zt(),{state:p,errorMessage:m,refresh:b}=Tt(g);return e.jsx(os,{search:{value:s,scope:c.kind,chips:d,onChange:a,onClear:n,onClearQuery:r,onRemoveChip:h},onCompose:l,onReportBug:je,onOpenSettings:()=>o("accounts"),composeShortcut:St("compose"),refreshControl:e.jsx(Ft,{state:p,onRefresh:b,label:"Refresh all accounts",errorMessage:m,hasUpdate:x(g)}),account:e.jsx(ds,{})})}const Z="remit.savedSearches",xs=25;function _(){try{const t=localStorage.getItem(Z);if(!t)return[];const s=JSON.parse(t);return Array.isArray(s)?s.filter(a=>typeof a=="string"):[]}catch{return[]}}function hs(t){const s=t.trim();if(!s)return _();const a=[s,..._().filter(n=>n!==s)].slice(0,xs);try{localStorage.setItem(Z,JSON.stringify(a))}catch{return a}return a}function fs(t){const s=_().filter(a=>a!==t);try{localStorage.setItem(Z,JSON.stringify(s))}catch{return s}return s}const ue=t=>/^\d/.test(t),ps=(t,s)=>{const a=ue(t),n=ue(s);return a&&!n?-1:!a&&n?1:t.localeCompare(s,void 0,{sensitivity:"base",numeric:!0})};function gs(t,s,a){const n=[],r=[];for(const o of t)s.has(o.mailboxId)?n.push(o):r.push(o);return r.sort((o,l)=>ps(G(o,void 0,a),G(l,void 0,a))),{system:n,labels:r}}function bs(t,s,a){const n=We(s)&&t.unseenCount>0;return{id:t.mailboxId,name:G(t,s,a),unseen:n?t.unseenCount:void 0,role:s,fullPath:t.fullPath}}function de({accounts:t,onMailboxSelect:s,variant:a="desktop"}){const n=Se(),r=Nt(),o=is(),{searchInput:l,onSearchChange:c}=ye(),[h,d]=u.useState(_),{t:g}=Ge("mail",{useSuspense:!1}),x=u.useCallback((f,C)=>g(f,{defaultValue:C}),[g]),p=W({queries:t.map(f=>({...J({path:{accountId:f.accountId}}),staleTime:1/0}))}),{data:m}=Ne(Ye()),b=u.useMemo(()=>(m?.items??[]).filter(f=>Vt(f.status)).length,[m?.items]),j=u.useMemo(()=>t.map((f,C)=>{const v=p[C],w=v?.data?.items??[],I=Je(f.folderAppointments),{system:M,labels:V}=gs(w,I,x),q=v?.isError?"error":v?.isLoading?"loading":"ready";return{id:f.accountId,label:f.email,email:f.email,muted:!!f.muted,outboxPending:b,status:q,onRetry:()=>v?.refetch(),mailboxes:[...M,...V].map(L=>bs(L,I.get(L.mailboxId),x))}}),[t,p,b,x]),y=f=>{n.invalidateQueries({queryKey:Xe({path:{mailboxId:f},query:{order:"desc"}})})},N=({navId:f,className:C,ariaLabel:v,title:w,children:I,onClick:M})=>f==="brief"?e.jsx(E,{to:"/mail/brief",search:{q:void 0},activeOptions:{includeSearch:!1},onClick:()=>M?.(),className:C,"aria-label":v,title:w,children:I}):f==="outbox"?e.jsx(E,{to:"/mail/outbox",search:{q:void 0},onClick:()=>M?.(),className:C,"aria-label":v,title:w,children:I}):f==="flagged"?e.jsx(E,{to:"/mail/flagged",search:{q:void 0},onClick:()=>M?.(),className:C,"aria-label":v,title:w,children:I}):f==="settings"?e.jsx(E,{to:"/settings/accounts",onClick:()=>M?.(),className:C,"aria-label":v,title:w,children:I}):e.jsx(E,{to:"/mail/$mailboxId",params:{mailboxId:f},search:{q:void 0},onClick:()=>{y(f),M?.()},className:C,"aria-label":v,title:w,children:I}),i=()=>{c(""),s?.()},S=l.trim(),O=S.length>0&&!h.includes(S)?S:void 0,B=u.useCallback(()=>{O&&d(hs(O))},[O]),K=u.useCallback(f=>{d(fs(f))},[]),Q=u.useCallback(f=>{c(f),r(f),s?.()},[c,r,s]);return e.jsx(ss,{accounts:j,selectedNavId:o,onSelectNav:i,linkComponent:N,variant:a,savedSearches:h,saveableQuery:O,onSaveCurrentSearch:B,onSelectSavedSearch:Q,onRemoveSavedSearch:K})}function vs(){return e.jsxs("button",{type:"button",onClick:je,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(ke,{className:"size-4 shrink-0"}),e.jsx("span",{className:"flex-1 truncate text-left",children:"Report a bug"})]})}function ys({accounts:t,onMailboxSelect:s}){return ve()?.showNavPane??!0?e.jsx(de,{accounts:t}):e.jsxs("div",{className:"flex h-full flex-col",children:[e.jsx("div",{className:"flex-1 overflow-y-auto",children:e.jsx(de,{accounts:t,onMailboxSelect:s,variant:"drawer"})}),e.jsxs("div",{className:"border-t border-line px-2 py-2",children:[e.jsxs(E,{to:"/settings/accounts",onClick:s,children:[e.jsx(we,{className:"size-4 shrink-0"}),e.jsx("span",{className:"flex-1 truncate text-left",children:"Settings"})]}),e.jsx(vs,{}),e.jsx(Me,{children:({signOut:r})=>e.jsxs("button",{type:"button",onClick:()=>{s?.(),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(Ie,{className:"size-4 shrink-0"}),e.jsx("span",{className:"flex-1 truncate text-left",children:"Sign out"})]})})]})]})}const js=({isOpen:t,onClose:s})=>(Ze({id:"shortcuts",open:t,answers:{back:s}}),t?e.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[e.jsx(et,{label:"Dismiss keyboard shortcuts",onDismiss:s,className:"backdrop-blur-sm"}),e.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"Keyboard shortcuts",className:k("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:s,className:"p-1 text-fg-muted transition-colors hover:text-fg","aria-label":"Close",children:e.jsx(be,{className:"size-5"})})]}),e.jsx("div",{className:"grid gap-x-8 gap-y-6 sm:grid-cols-2",children:Ct.map(a=>e.jsxs("div",{children:[e.jsx("h3",{className:"mb-3 text-sm font-medium text-fg-muted",children:a.title}),e.jsx("div",{className:"space-y-2",children:a.hints.map(n=>e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsx("span",{className:"text-sm",children:n.description}),e.jsx("span",{className:"flex shrink-0 items-center gap-1",children:n.keys.map((r,o)=>e.jsxs(u.Fragment,{children:[o>0&&n.keys[0]==="g"&&e.jsx("span",{className:"text-2xs text-fg-subtle",children:"then"}),e.jsx(ae,{children:r})]},r))})]},`${n.action}-${n.keys.join("+")}`))})]},a.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(ae,{children:"Esc"})," to close"]})})]})]}):null);function Ss(t){const s=W({queries:t.map(a=>({...J({path:{accountId:a.accountId}}),staleTime:1/0}))});return u.useMemo(()=>kt(s.map(a=>a.data?.items??[])),[s])}const Oe="remit:intelligence-open";function Ns(){try{return localStorage.getItem(Oe)!=="closed"}catch{return!0}}function Cs(t){try{localStorage.setItem(Oe,t?"open":"closed")}catch{}}function me({panels:t,prefersOpen:s,isDesktop:a,hasThread:n,raisedFor:r,openMessage:o}){return r!==null&&r===o?!0:t.length>0?t.includes("intelligence"):a&&n&&s}const ks=()=>{const t=Ce(),s=tt(),a=st(),n=s.find(at),r=It(),[o,l]=u.useState(Ns),c=r?`${r.threadId}/${r.messageId??""}`:null,[h,d]=u.useState(null),g={panels:s,prefersOpen:o,isDesktop:t==="desktop",hasThread:r!==void 0,openMessage:c},x=me({...g,raisedFor:h}),p=me({...g,raisedFor:null}),m=u.useCallback((N,i)=>{a([...N?["intelligence"]:[],...i?[i]:[]])},[a]),b=u.useCallback(N=>{m(p,N)},[p,m]),j=u.useCallback(()=>{if(x&&!p){d(null);return}const N=!x;Cs(N),l(N),d(null),m(N,n)},[p,x,n,m]),y=u.useCallback(()=>{d(c)},[c]);return{openOverlay:n,intelligenceOpen:x,showOverlay:b,toggleIntelligence:j,raiseIntelligence:y}},Is=t=>t.map(s=>s.data?.items??[]);function ws(t){const s=W({queries:t.map(a=>({...J({path:{accountId:a.accountId}}),staleTime:1/0})),combine:Is});return u.useMemo(()=>nt(t.map((a,n)=>({folderAppointments:a.folderAppointments,mailboxes:s[n]??[]}))),[t,s])}var T={exports:{}},xe;function Ms(){if(xe)return T.exports;xe=1;const t=(s,a,n)=>new Promise((r,o)=>{if(n=Object.assign({concurrency:1/0},n),typeof a!="function")throw new TypeError("Mapper function is required");const{concurrency:l}=n;if(!(typeof l=="number"&&l>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${l}\` (${typeof l})`);const c=[],h=s[Symbol.iterator]();let d=!1,g=!1,x=0,p=0;const m=()=>{if(d)return;const b=h.next(),j=p;if(p++,b.done){g=!0,x===0&&r(c);return}x++,Promise.resolve(b.value).then(y=>a(y,j)).then(y=>{c[j]=y,x--,m()},y=>{d=!0,o(y)})};for(let b=0;b<l&&(m(),!g);b++);});return T.exports=t,T.exports.default=t,T.exports}var Os=Ms();const Rs=rt(Os),Es=900*1e3,Ps=300,As=(t,s)=>{if(!t)return s;const a=Number.parseInt(t,10);return Number.isFinite(a)&&a>0?a:s},Ls=60*1e3,zs=t=>Math.max(As(t,Ps)*1e3,Ls),D=zs(ut().mailboxPollIntervalSeconds),Ts=5,Y=new Set,Fs=(t,s,a=Es)=>t.filter(n=>{const r=n.lastSyncAt;return r==null?!0:s-r>a}).map(n=>n.accountId),Ds=(t,s,a=D)=>t-s>=a,_s=(t,s)=>t.filter(a=>!s.has(a)),he=(t,s)=>{if(Y.delete(t),lt(s,{softError:!0},"nobody")){ct(s);return}console.warn("[remit] background mailbox sync failed",{accountId:t,error:s})},fe=(t,s)=>ot({path:{accountId:t},throwOnError:!0}).then(()=>{s.invalidateQueries({queryKey:it({path:{accountId:t}})})}),Bs=t=>{const s=Se(),a=u.useRef(t);a.current=t;const n=t.map(r=>r.accountId).join(",");u.useEffect(()=>{const r=Date.now(),l=Fs(a.current,r).filter(c=>!Y.has(c));if(l.length!==0)for(const c of l)Y.add(c),fe(c,s).catch(h=>{he(c,h)})},[n,s]),u.useEffect(()=>{let r=Date.now(),o;const l=new Set,c=()=>{r=Date.now();const g=_s(a.current.map(x=>x.accountId),l);for(const x of g)l.add(x);Rs(g,x=>fe(x,s).catch(p=>{he(x,p)}).finally(()=>{l.delete(x)}),{concurrency:Ts})},h=()=>{if(document.visibilityState==="visible"){c(),o=setTimeout(h,D);return}},d=()=>{document.visibilityState==="visible"&&Ds(Date.now(),r)&&(o!==void 0&&clearTimeout(o),c(),o=setTimeout(h,D))};return o=setTimeout(h,D),document.addEventListener("visibilitychange",d),()=>{o!==void 0&&clearTimeout(o),document.removeEventListener("visibilitychange",d)}},[n,s])};function ia(){const t=dt(),s=Ce(),a=Ot(s),{openOverlay:n,intelligenceOpen:r,showOverlay:o,toggleIntelligence:l,raiseIntelligence:c}=ks(),h=n==="shortcuts",d=n==="nav",{searchInput:g,committedQuery:x,viewKey:p,setSearchInput:m}=ls(),{data:b,isLoading:j,isError:y,error:N,refetch:i}=Ne({...mt(),staleTime:1/0}),S=!!(b&&(b.accounts?.length??0)===0);u.useEffect(()=>{S&&t({to:"/onboarding",replace:!0})},[S,t]),Qt({enabled:!h,bindings:[{key:"?",action:"help",handler:()=>o("shortcuts"),noModifiers:!1,preventDefault:!0}]});const O=X(),B=Rt(),K=U({select:H=>xt(H.matches)?.list==="mailbox"}),Q=u.useMemo(()=>({compose:O}),[O]);wt({enabled:!K&&!B,handlers:Q});const f=u.useCallback(()=>{m("")},[m]),C=u.useCallback(()=>{m("")},[m]),v=b?.accounts??[],w=u.useMemo(()=>v.map(H=>H.accountId),[v]),I=Ss(v),M=ws(v),V=u.useMemo(()=>Mt(v),[v]);Bs(v);const q=u.useCallback(()=>{n==="nav"&&o(void 0)},[n,o]),L={accounts:v,mailboxNameIndex:I,accountNameIndex:V,resultFolderIndex:M,searchQuery:x,searchInput:g,searchViewKey:p,onSearchChange:m,onSearchClear:f,onSearchClearQuery:C,intelligenceOpen:r,onToggleIntelligence:l,onRaiseIntelligence:c},Re={isSinglePane:a,isLoading:j||S,intelligenceOpen:r,nav:e.jsx(ys,{accounts:v,onMailboxSelect:q}),topBar:a?void 0:e.jsx(ms,{accounts:v}),overlay:a?e.jsx(cs,{}):void 0,navOpen:d,onOpenNav:()=>o("nav"),onCloseNav:()=>o(void 0)};return e.jsx(ht.Provider,{value:L,children:e.jsxs(Dt,{accountIds:w,children:[y?e.jsx("div",{className:"flex h-full items-center justify-center bg-canvas p-4",children:e.jsx(qt,{title:"Couldn't load your account",error:N,onRetry:()=>{i()}})}):e.jsx(Lt,{chrome:Re,children:e.jsx(ft,{})}),e.jsx(js,{isOpen:h,onClose:()=>o(void 0)})]})})}export{ia as component,ye as useMailContext};
@@ -1 +1 @@
1
- import{c as e}from"./index-BTRnlnq5.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
+ import{c as e}from"./index-CgZOrCxV.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{c as e}from"./index-BTRnlnq5.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};
1
+ import{c as e}from"./index-CgZOrCxV.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};
@@ -1 +1 @@
1
- import{a5 as n,a6 as r,x as a,r as i,j as s}from"./index-BTRnlnq5.js";import{O as c}from"./OnboardingWizard-vijcm72Q.js";import"./kbd-BC4mJOBs.js";import"./account-form-helpers-DhckT_PN.js";import"./mail-Cr8_SnVv.js";async function m(e){e.recordCompleted(),await e.queryClient.refetchQueries({queryKey:n()}),e.navigateToInbox()}function C(){const e=r(),o=a(),t=i.useCallback(l=>{m({queryClient:o,recordCompleted:()=>e.recordEvent("onboarding.completed"),navigateToInbox:()=>{window.location.assign("/mail")}})},[e,o]);return s.jsx(c,{skipWelcome:!1,onComplete:t})}export{C as component};
1
+ import{a6 as n,a7 as r,x as a,r as i,j as s}from"./index-CgZOrCxV.js";import{O as c}from"./OnboardingWizard-4OerNwuH.js";import"./kbd-CV6Kl-x7.js";import"./account-form-helpers-DhckT_PN.js";import"./mail-DosQK8T_.js";async function m(e){e.recordCompleted(),await e.queryClient.refetchQueries({queryKey:n()}),e.navigateToInbox()}function C(){const e=r(),o=a(),t=i.useCallback(l=>{m({queryClient:o,recordCompleted:()=>e.recordEvent("onboarding.completed"),navigateToInbox:()=>{window.location.assign("/mail")}})},[e,o]);return s.jsx(c,{skipWelcome:!1,onComplete:t})}export{C as component};
@@ -0,0 +1 @@
1
+ import{j as o,a5 as i}from"./index-CgZOrCxV.js";import{a as m}from"./MailShell-OMzOuVod.js";import{u as p,O as t}from"./OutboxPane-Dx2gC7I0.js";import{u as s}from"./search-mirror-CzoFsks9.js";import"./FullCompose-DiOOxFBp.js";import"./ErrorState-CjLUZhfC.js";import"./index-DYePbThF.js";import"./useMessageBodyContent-ChD8hjIT.js";import"./useSignature-ZlPXnJNR.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-D3JTh9lD.js";import"./confirm-dialog-DvpT6KnV.js";import"./useSearchTokenContext-CiYSM9SP.js";import"./kbd-CV6Kl-x7.js";import"./search-scope-DTcpOp3S.js";import"./circle-check-big-CBbkiQXT.js";import"./clock-CbwuMEIM.js";import"./row-actions-DYgMzBPF.js";import"./rotate-ccw-tQrX1hoO.js";import"./NavMenuButton-CbJ1TOwg.js";import"./menu-d2W5EkUw.js";import"./format-DGJ8BNpA.js";import"./outbox-status-BlKn6P0x.js";import"./search-query-Cr_ZXBCp.js";function q(){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{q as component};
@@ -1 +1 @@
1
- import{c as a}from"./index-BTRnlnq5.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
+ import{c as a}from"./index-CgZOrCxV.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};