@remit/web-client-dist 0.0.663 → 0.0.664

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 (159) hide show
  1. package/assets/{BriefPane-D-E75liw.js → BriefPane-yNrOU3rb.js} +1 -1
  2. package/assets/{CalendarComposePane-BYi1w59D.js → CalendarComposePane-DaskBgVJ.js} +1 -1
  3. package/assets/{CalendarComposeSeed-CbrOvM5M.js → CalendarComposeSeed-xP5hzjXh.js} +1 -1
  4. package/assets/{CalendarShell-Biftul5P.js → CalendarShell-DS0kBqUe.js} +1 -1
  5. package/assets/{EmptyState-Df23Lhmp.js → EmptyState-D4AnaN7f.js} +1 -1
  6. package/assets/{ErrorState-DqW4OEtW.js → ErrorState-BNnnxDbP.js} +1 -1
  7. package/assets/{FlaggedPane-BNJQ69cY.js → FlaggedPane-C0iV7XmF.js} +1 -1
  8. package/assets/{FullCompose-Crr9KRKw.js → FullCompose-PR9miTPL.js} +1 -1
  9. package/assets/{MailListHeader-CjvExg8_.js → MailListHeader-Cc4ib2ED.js} +1 -1
  10. package/assets/{MailNav-D9dEr59D.js → MailNav-YyKzJVX8.js} +1 -1
  11. package/assets/{MailShell-B9VHr1WV.js → MailShell-Dvbor9_3.js} +1 -1
  12. package/assets/{MailViewChrome-mydzxRNV.js → MailViewChrome-Bkx--vUb.js} +1 -1
  13. package/assets/{MailboxPane-6rJUIVAp.js → MailboxPane-B-ikeM85.js} +1 -1
  14. package/assets/{NavMenuButton--1PboB0o.js → NavMenuButton-CVu2_jOg.js} +1 -1
  15. package/assets/{OnboardingWizard-bkVrUFBw.js → OnboardingWizard-Bx4MPpe2.js} +1 -1
  16. package/assets/{OpenCalendarEvent-OXk9INRi.js → OpenCalendarEvent-CvCJ-zUR.js} +1 -1
  17. package/assets/{OutboxPane-CjJAyT6z.js → OutboxPane-BcSiWyG3.js} +1 -1
  18. package/assets/{SignInAgain-H6RH3k22.js → SignInAgain-DIgmG5Xl.js} +1 -1
  19. package/assets/_calendarObjectId-Ct6_xIVN.js +1 -0
  20. package/assets/_mailboxId-YULuNdR4.js +1 -0
  21. package/assets/_messageId-BrA8rYzp.js +1 -0
  22. package/assets/_messageId-CGUyd7C0.js +1 -0
  23. package/assets/_messageId-CkQz4-6G.js +1 -0
  24. package/assets/_outboxMessageId-BzbzUNEq.js +1 -0
  25. package/assets/_recurrenceId-DAa-3sxD.js +1 -0
  26. package/assets/_threadId-CySz5VKD.js +1 -0
  27. package/assets/_threadId-D7qQJGod.js +1 -0
  28. package/assets/_threadId-iNPbFlz7.js +1 -0
  29. package/assets/{_view._date-h_9RhYpZ.js → _view._date-BAs8tgml.js} +1 -1
  30. package/assets/{accounts-gOGZB9aN.js → accounts-CBrX-Udc.js} +1 -1
  31. package/assets/{advanced-DYzRldqd.js → advanced-Cl-GceCf.js} +1 -1
  32. package/assets/{appearance-BgpDqx3h.js → appearance-JpKGz2SF.js} +1 -1
  33. package/assets/{attendee-row-OgzaiA5U.js → attendee-row-BrG8cpni.js} +1 -1
  34. package/assets/{avatar-DRUm_y0q.js → avatar-Dwc7bokL.js} +1 -1
  35. package/assets/{bell-off-BS_-mm0c.js → bell-off-CioYNiAM.js} +1 -1
  36. package/assets/{bottom-sheet-CfAOJ5gB.js → bottom-sheet-Cj4RklMN.js} +1 -1
  37. package/assets/brief-BoVFd-rj.js +1 -0
  38. package/assets/{brief-DxBZQNrB.js → brief-Cl6gSdW2.js} +1 -1
  39. package/assets/{bug-CXbCYbSj.js → bug-BbhYeiVI.js} +1 -1
  40. package/assets/{calendar-clash-strip-9I3eXoZi.js → calendar-clash-strip-CM80O3IR.js} +1 -1
  41. package/assets/{calendar-format-DRfWTU9-.js → calendar-format-CORIA3p-.js} +1 -1
  42. package/assets/{calendar-report-C-Ht8fqx.js → calendar-report-Bmo4US5X.js} +1 -1
  43. package/assets/{calendar-suggestion-BucSFzrj.js → calendar-suggestion-jxfkx3Fr.js} +1 -1
  44. package/assets/{calendar-iSzA3U0q.js → calendar-wBXo8iUh.js} +1 -1
  45. package/assets/{calendars-ibYNp4LZ.js → calendars-B6xoUVld.js} +1 -1
  46. package/assets/{card-Bp2YMCq_.js → card-DrNikmPW.js} +1 -1
  47. package/assets/{checkbox-B9eUA8Gk.js → checkbox-vTUpK7DF.js} +1 -1
  48. package/assets/chevron-left-DbfZRdMR.js +1 -0
  49. package/assets/{circle-check-BY9d0nWp.js → circle-check-31Q-0iEc.js} +1 -1
  50. package/assets/{circle-check-big-F3heiIFI.js → circle-check-big-BROhrbjR.js} +1 -1
  51. package/assets/{circle-help-cUvExqqK.js → circle-help-B58He0k3.js} +1 -1
  52. package/assets/{clock-Bdp8SmuL.js → clock-B9w2wAjG.js} +1 -1
  53. package/assets/compose._-_outboxMessageId_-Bh4qyKYv.js +1 -0
  54. package/assets/compose._-_outboxMessageId_-DAzz_CeW.js +1 -0
  55. package/assets/compose._-_outboxMessageId_-DkicgTdM.js +1 -0
  56. package/assets/compose._-_outboxMessageId_-sLgdRlfM.js +1 -0
  57. package/assets/{config-import-2d8eISWh.js → config-import-DfrZB8Ov.js} +1 -1
  58. package/assets/{confirm-dialog-DGafATnR.js → confirm-dialog-r99KTysQ.js} +1 -1
  59. package/assets/{copy-By27w-tj.js → copy-CbHqgY7X.js} +1 -1
  60. package/assets/{credential-steps-hcnAergF.js → credential-steps-BbjGKzmh.js} +1 -1
  61. package/assets/{download-CltRXz9h.js → download-zWz4W2MC.js} +1 -1
  62. package/assets/{external-link-BaGmPQ6n.js → external-link-Bfn-66mf.js} +1 -1
  63. package/assets/{file-json-DbseteeL.js → file-json-MG6wtWZW.js} +1 -1
  64. package/assets/{filters-CvLL5WkG.js → filters-tMQa7DHN.js} +1 -1
  65. package/assets/{flagged-CZ_T4etN.js → flagged-BK2fbj67.js} +1 -1
  66. package/assets/flagged-CRFleE5q.js +1 -0
  67. package/assets/{folders-DZRxqF5f.js → folders-Bh7OwsaM.js} +1 -1
  68. package/assets/{help-copy-DtcCWy4U.js → help-copy-DegCGm_b.js} +1 -1
  69. package/assets/{import-BhYMcav_.js → import-B7a1h0Kl.js} +1 -1
  70. package/assets/index-BCGrwM8U.js +1 -0
  71. package/assets/index-BCxyZK1k.js +1 -0
  72. package/assets/{index-Wv8c0Cef.js → index-BE90AH0f.js} +3 -3
  73. package/assets/index-BiWnjBnt.js +1 -0
  74. package/assets/index-Bo61krp3.js +1 -0
  75. package/assets/index-BrA8rYzp.js +1 -0
  76. package/assets/{index-BBQAf9F4.js → index-C5IRJ9fp.js} +4 -4
  77. package/assets/index-CROGKV7Z.js +1 -0
  78. package/assets/index-Ccxn2dB0.js +1 -0
  79. package/assets/index-CkQz4-6G.js +1 -0
  80. package/assets/index-CoL9RdHn.js +1 -0
  81. package/assets/{index-B1MKSv3J.js → index-zOOE4Pao.js} +1 -1
  82. package/assets/{kbd-HjgyEn1g.js → kbd-rrE63A-o.js} +1 -1
  83. package/assets/{labels-BQrije1s.js → labels-Dkp7vcdR.js} +1 -1
  84. package/assets/{mail-BSMOznRE.js → mail-D6-rxUuR.js} +1 -1
  85. package/assets/{mail-DSj57O5V.js → mail-mxbTP98N.js} +1 -1
  86. package/assets/{map-pin-qq7Lo5y-.js → map-pin-BozkaFBj.js} +1 -1
  87. package/assets/{menu-CEMm7JqZ.js → menu-DkStCsJd.js} +1 -1
  88. package/assets/minus-CmwHkGH_.js +1 -0
  89. package/assets/{new-C5zkg93q.js → new-AEle-Zvf.js} +1 -1
  90. package/assets/onboarding-CGdeI3sA.js +1 -0
  91. package/assets/{onboarding-completion-DZUFfVxL.js → onboarding-completion-DjzxpfUj.js} +1 -1
  92. package/assets/outbox-CUhz4heo.js +1 -0
  93. package/assets/{pencil-DP5wP8Ya.js → pencil-vnc2XCQ4.js} +1 -1
  94. package/assets/{popover-menu-Caepi0HZ.js → popover-menu-i49-N52F.js} +1 -1
  95. package/assets/{refresh-cw-CaBRf4Us.js → refresh-cw-BG-Wpxtn.js} +1 -1
  96. package/assets/{result-count-B338rKnr.js → result-count-DHH1l1Cr.js} +1 -1
  97. package/assets/{rich-text-D0t0xgYa.js → rich-text-AB3xfBdD.js} +1 -1
  98. package/assets/{rich-text-spellcheck-worker-provider-C5CnQah6.js → rich-text-spellcheck-worker-provider-B2irzJV4.js} +1 -1
  99. package/assets/{rotate-ccw-X3r30Ts7.js → rotate-ccw-BCPcgJAS.js} +1 -1
  100. package/assets/{roving-focus-BsJotUNk.js → roving-focus-Bb268trD.js} +1 -1
  101. package/assets/{row-actions-Dh5B7_7r.js → row-actions-B91W28F-.js} +1 -1
  102. package/assets/{search-mirror-CSlDwAtJ.js → search-mirror-qSedhMp5.js} +1 -1
  103. package/assets/{search-query-ByYOBTBl.js → search-query-DPHAL9YI.js} +1 -1
  104. package/assets/{search-token-index-szRvQ-tK.js → search-token-index-BgErxoQo.js} +1 -1
  105. package/assets/{sections-CfSI2UtL.js → sections-B9nrQb4Y.js} +1 -1
  106. package/assets/{senders-BYzGl1BW.js → senders-BJl_jvlx.js} +1 -1
  107. package/assets/settings-DzV-PhEn.js +1 -0
  108. package/assets/{settings-screen-CiROhhFn.js → settings-screen-rgIOa3Ee.js} +1 -1
  109. package/assets/{shield-check-CQtTmUZr.js → shield-check-DsIZ-88W.js} +1 -1
  110. package/assets/{suggested-vips-BEbGWcCb.js → suggested-vips-B8PjLq5V.js} +1 -1
  111. package/assets/{suggestion._suggestionId-BuzLACS-.js → suggestion._suggestionId-CGY2XHjb.js} +1 -1
  112. package/assets/{undo-2-BjmbmAx6.js → undo-2-CoWkwLlr.js} +1 -1
  113. package/assets/{useCalendarData-B6jp8L5b.js → useCalendarData-Bmwg3wjA.js} +1 -1
  114. package/assets/{useCalendarFreeBusy-BBFXZXUz.js → useCalendarFreeBusy-BMcA1Yee.js} +1 -1
  115. package/assets/{useCalendarWrites-Bmv62L2A.js → useCalendarWrites-B01dZRCZ.js} +1 -1
  116. package/assets/{useCalendars-DgDmdvYf.js → useCalendars-B8e-Yq7N.js} +1 -1
  117. package/assets/{useDebouncedValue-Q88aYVIL.js → useDebouncedValue-BHEMSHUm.js} +1 -1
  118. package/assets/{useFilters-Cz2eY9Q-.js → useFilters-Bd4lEOBE.js} +1 -1
  119. package/assets/{useLabels-Cz56YPmG.js → useLabels-BeVPf364.js} +1 -1
  120. package/assets/{useLayoutTier-DCItpYfR.js → useLayoutTier-i9uWvgi7.js} +1 -1
  121. package/assets/{useMessageBodyContent-WV6nV5Bm.js → useMessageBodyContent-q6WlaNlI.js} +1 -1
  122. package/assets/{useQueries-DtWE4kIN.js → useQueries-DDQNJNeh.js} +1 -1
  123. package/assets/{useRefreshControl-nmkAizSf.js → useRefreshControl-Cl8i7WrO.js} +1 -1
  124. package/assets/{useResultFolderIndex-C2f_OOkp.js → useResultFolderIndex-ed8HMu5v.js} +1 -1
  125. package/assets/{useSearchTokenContext-C3oyk8pN.js → useSearchTokenContext-Bl-HU-Tz.js} +1 -1
  126. package/assets/{useSignature-B9Z9InVd.js → useSignature-D0v_-wKd.js} +1 -1
  127. package/assets/{warnings-4Q403NYZ.js → warnings-DpQ1gejF.js} +1 -1
  128. package/index.html +1 -1
  129. package/package.json +1 -1
  130. package/assets/_calendarObjectId-CU3Mk-wc.js +0 -1
  131. package/assets/_mailboxId-Ce724orE.js +0 -1
  132. package/assets/_messageId-Ctv5sJ-t.js +0 -1
  133. package/assets/_messageId-Da0zzNHJ.js +0 -1
  134. package/assets/_messageId-hXa_xvAU.js +0 -1
  135. package/assets/_outboxMessageId-BGD3D9Y2.js +0 -1
  136. package/assets/_recurrenceId-HeFA8ou3.js +0 -1
  137. package/assets/_threadId-B0u0Q9a9.js +0 -1
  138. package/assets/_threadId-Bl5-AI4H.js +0 -1
  139. package/assets/_threadId-CilJGOsK.js +0 -1
  140. package/assets/brief-NZXg-b7-.js +0 -1
  141. package/assets/chevron-left-Djj9Mgb_.js +0 -1
  142. package/assets/compose._-_outboxMessageId_-BAA1Q3hm.js +0 -1
  143. package/assets/compose._-_outboxMessageId_-Cn2LiHJu.js +0 -1
  144. package/assets/compose._-_outboxMessageId_-CyXbF8wg.js +0 -1
  145. package/assets/compose._-_outboxMessageId_-DjAQWBQt.js +0 -1
  146. package/assets/flagged-xP8m-tn-.js +0 -1
  147. package/assets/index-BETZJ7fJ.js +0 -1
  148. package/assets/index-BcaDLY_e.js +0 -1
  149. package/assets/index-CIx8qiaP.js +0 -1
  150. package/assets/index-Ctv5sJ-t.js +0 -1
  151. package/assets/index-DIT-RBAv.js +0 -1
  152. package/assets/index-DUaFZ8Ir.js +0 -1
  153. package/assets/index-DjbbPptM.js +0 -1
  154. package/assets/index-KWrauLSm.js +0 -1
  155. package/assets/index-hXa_xvAU.js +0 -1
  156. package/assets/minus-_vDOrVkG.js +0 -1
  157. package/assets/onboarding-D4WVQQQA.js +0 -1
  158. package/assets/outbox-kg5bEP57.js +0 -1
  159. package/assets/settings-do66DBJQ.js +0 -1
@@ -1 +1 @@
1
- import{r as a,u as P,cp as O,cq as U,cQ as B,aa as p,cr as N,q as $,ac as D,h as F,c as L,cR as _,cF as v}from"./index-Wv8c0Cef.js";const E="/mail/brief/compose/{-$outboxMessageId}",w="/mail/flagged/compose/{-$outboxMessageId}",R="/mail/outbox/compose/{-$outboxMessageId}",S="/mail/$mailboxId/compose/{-$outboxMessageId}";function T(){const e=p({from:E,shouldThrow:!1}),t=p({from:w,shouldThrow:!1}),s=p({from:R,shouldThrow:!1}),r=p({from:S,shouldThrow:!1});return e??t??s??r}function ee(){return T()!==void 0}function te(){return T()?.outboxMessageId}function q(e,t,s){return e==="flagged"?{to:w,params:{outboxMessageId:s}}:e==="outbox"?{to:R,params:{outboxMessageId:s}}:e==="mailbox"&&t?{to:S,params:{mailboxId:t,outboxMessageId:s}}:{to:E,params:{outboxMessageId:s}}}function b(){const e=P(),t=O(),{list:s,mailboxId:r}=U();return a.useCallback((n,o)=>{e({...q(s,r,n),search:B,hash:o?.keepPanels?!0:t,replace:o?.replace??!1})},[e,t,s,r])}function se(){const e=b();return a.useCallback(()=>e(void 0),[e])}function re(){const e=b();return a.useCallback(t=>e(t),[e])}function ne(){const e=b();return a.useCallback(t=>e(t,{replace:!0,keepPanels:!0}),[e])}function oe(){return N()}const Q=new Set(["rfc822","global"]),K=e=>e.mediaType.toUpperCase()==="MESSAGE"&&Q.has(e.mediaSubtype.toLowerCase()),k=(e,t)=>e.partPath.startsWith(`${t}.`),I=e=>{const t=e.filter(K);return e.filter(s=>!t.some(r=>k(s,r.partPath)))},ae=(e,t)=>e.filter(s=>k(s,t)),G=e=>{const t=I(e).filter(n=>!n.isMultipart&&n.disposition!=="attachment"&&n.mediaType==="TEXT"&&n.contentUrl.length>0),s=t.find(n=>n.mediaSubtype.toUpperCase()==="HTML");if(s)return{kind:"html",contentUrl:s.contentUrl};const r=t.find(n=>n.mediaSubtype.toUpperCase()==="PLAIN");return r?{kind:"text",contentUrl:r.contentUrl}:null},g={all:["messages"],detail:e=>[...g.all,"detail",e],body:e=>[...g.detail(e),"body"]};class f extends Error{reason;status;retryAfterSeconds;constructor(t,s,r,n){super(s),this.name="BodyFetchError",this.reason=t,this.status=r,this.retryAfterSeconds=n}}const W=e=>{const t=Number.parseInt(e??"",10);return!Number.isFinite(t)||t<=0?1:Math.min(t,30)},X=8,H="x-remit-403-reason",Y=(e,t)=>{const s=t?.trim()??"";return e===401?"auth":e===403?s.length>0?"auth":"body-missing":e===404?"body-missing":"generic"},z=(e,t)=>(t??"").toLowerCase().startsWith("text/html")?/<div\s+id=["']root["']/i.test(e):!1,j=(e,t)=>{const s=(t??"").toLowerCase();return!!(e==="text"&&s.startsWith("text/html"))},J=async(e,t,s=async()=>null)=>{const r={},n=await s();n&&(r.Authorization=`Bearer ${n}`);const o=await v(e,{headers:r});if(o.status===202)throw new f("not-ready","Message body is still syncing",202,W(o.headers.get("Retry-After")));if(!o.ok){const l=o.headers.get(H),m=Y(o.status,l);throw new f(m,`Failed to load message body (${o.status} ${o.statusText})`,o.status)}const c=o.headers.get("content-type");if(j(t,c))throw new f("content-type-mismatch",`Refusing to render message body — expected ${t}, got Content-Type ${c}`);const h=await o.text();if(z(h,c))throw new f("spa-shell-leak","Refusing to render message body — response looks like the SPA shell (CloudFront 403/404 fallback leaked through to /content/*)");return h},V=async(e,t)=>(t.isRetryAfterNotReady&&await e.refetchDescribeMessage(),e.fetchContent(t.contentUrl,t.kind)),ce=({messageId:e,bodyParts:t,enabled:s=!0})=>{const r=t?G(t):null,n=$(),{getToken:o}=D(),c=a.useRef(null),h=F(),l=a.useRef(!1),m=a.useRef(null),C=e&&r?`${e}:${r.contentUrl}`:null;m.current!==C&&(m.current=C,l.current=!1);const i=L({queryKey:e?[...g.body(e),r?.contentUrl??null]:["messages","body","noop"],queryFn:()=>{if(!r)throw new Error("No renderable body part");if(!e)throw new Error("No messageId");const d=l.current;return l.current=!1,V({fetchContent:(u,x)=>J(u,x,o),refetchDescribeMessage:()=>h.refetchQueries({queryKey:_({path:{messageId:e}})})},{contentUrl:r.contentUrl,kind:r.kind,isRetryAfterNotReady:d})},enabled:s&&!!e&&!!r,staleTime:300*1e3,gcTime:1800*1e3,retry:(d,u)=>u instanceof f&&u.reason==="not-ready"?d<X:d<1,retryDelay:(d,u)=>u instanceof f&&u.reason==="not-ready"?(l.current=!0,(u.retryAfterSeconds??1)*1e3):1e3,meta:{softError:!0}}),y=i.isLoading&&!!r,A=t!==void 0&&r===null;a.useEffect(()=>{y&&(c.current=performance.now())},[y]),a.useEffect(()=>{i.isSuccess&&c.current!==null&&(n.recordTiming("message.body.load",Math.round(performance.now()-c.current)),c.current=null)},[i.isSuccess,n]);const M=i.data&&r?{kind:r.kind,body:i.data}:void 0;return{picked:r,data:M,isLoading:y,hasNoRenderablePart:A,isError:i.isError,error:i.error,refetch:i.refetch}};export{f as B,ee as a,ce as b,Y as c,te as d,ne as e,oe as f,re as g,ae as h,K as i,I as o,se as u};
1
+ import{r as a,u as P,cp as O,cq as U,cQ as B,aa as p,cr as N,q as $,ac as D,h as F,c as L,cR as _,cF as v}from"./index-BE90AH0f.js";const E="/mail/brief/compose/{-$outboxMessageId}",w="/mail/flagged/compose/{-$outboxMessageId}",R="/mail/outbox/compose/{-$outboxMessageId}",S="/mail/$mailboxId/compose/{-$outboxMessageId}";function T(){const e=p({from:E,shouldThrow:!1}),t=p({from:w,shouldThrow:!1}),s=p({from:R,shouldThrow:!1}),r=p({from:S,shouldThrow:!1});return e??t??s??r}function ee(){return T()!==void 0}function te(){return T()?.outboxMessageId}function q(e,t,s){return e==="flagged"?{to:w,params:{outboxMessageId:s}}:e==="outbox"?{to:R,params:{outboxMessageId:s}}:e==="mailbox"&&t?{to:S,params:{mailboxId:t,outboxMessageId:s}}:{to:E,params:{outboxMessageId:s}}}function b(){const e=P(),t=O(),{list:s,mailboxId:r}=U();return a.useCallback((n,o)=>{e({...q(s,r,n),search:B,hash:o?.keepPanels?!0:t,replace:o?.replace??!1})},[e,t,s,r])}function se(){const e=b();return a.useCallback(()=>e(void 0),[e])}function re(){const e=b();return a.useCallback(t=>e(t),[e])}function ne(){const e=b();return a.useCallback(t=>e(t,{replace:!0,keepPanels:!0}),[e])}function oe(){return N()}const Q=new Set(["rfc822","global"]),K=e=>e.mediaType.toUpperCase()==="MESSAGE"&&Q.has(e.mediaSubtype.toLowerCase()),k=(e,t)=>e.partPath.startsWith(`${t}.`),I=e=>{const t=e.filter(K);return e.filter(s=>!t.some(r=>k(s,r.partPath)))},ae=(e,t)=>e.filter(s=>k(s,t)),G=e=>{const t=I(e).filter(n=>!n.isMultipart&&n.disposition!=="attachment"&&n.mediaType==="TEXT"&&n.contentUrl.length>0),s=t.find(n=>n.mediaSubtype.toUpperCase()==="HTML");if(s)return{kind:"html",contentUrl:s.contentUrl};const r=t.find(n=>n.mediaSubtype.toUpperCase()==="PLAIN");return r?{kind:"text",contentUrl:r.contentUrl}:null},g={all:["messages"],detail:e=>[...g.all,"detail",e],body:e=>[...g.detail(e),"body"]};class f extends Error{reason;status;retryAfterSeconds;constructor(t,s,r,n){super(s),this.name="BodyFetchError",this.reason=t,this.status=r,this.retryAfterSeconds=n}}const W=e=>{const t=Number.parseInt(e??"",10);return!Number.isFinite(t)||t<=0?1:Math.min(t,30)},X=8,H="x-remit-403-reason",Y=(e,t)=>{const s=t?.trim()??"";return e===401?"auth":e===403?s.length>0?"auth":"body-missing":e===404?"body-missing":"generic"},z=(e,t)=>(t??"").toLowerCase().startsWith("text/html")?/<div\s+id=["']root["']/i.test(e):!1,j=(e,t)=>{const s=(t??"").toLowerCase();return!!(e==="text"&&s.startsWith("text/html"))},J=async(e,t,s=async()=>null)=>{const r={},n=await s();n&&(r.Authorization=`Bearer ${n}`);const o=await v(e,{headers:r});if(o.status===202)throw new f("not-ready","Message body is still syncing",202,W(o.headers.get("Retry-After")));if(!o.ok){const l=o.headers.get(H),m=Y(o.status,l);throw new f(m,`Failed to load message body (${o.status} ${o.statusText})`,o.status)}const c=o.headers.get("content-type");if(j(t,c))throw new f("content-type-mismatch",`Refusing to render message body — expected ${t}, got Content-Type ${c}`);const h=await o.text();if(z(h,c))throw new f("spa-shell-leak","Refusing to render message body — response looks like the SPA shell (CloudFront 403/404 fallback leaked through to /content/*)");return h},V=async(e,t)=>(t.isRetryAfterNotReady&&await e.refetchDescribeMessage(),e.fetchContent(t.contentUrl,t.kind)),ce=({messageId:e,bodyParts:t,enabled:s=!0})=>{const r=t?G(t):null,n=$(),{getToken:o}=D(),c=a.useRef(null),h=F(),l=a.useRef(!1),m=a.useRef(null),C=e&&r?`${e}:${r.contentUrl}`:null;m.current!==C&&(m.current=C,l.current=!1);const i=L({queryKey:e?[...g.body(e),r?.contentUrl??null]:["messages","body","noop"],queryFn:()=>{if(!r)throw new Error("No renderable body part");if(!e)throw new Error("No messageId");const d=l.current;return l.current=!1,V({fetchContent:(u,x)=>J(u,x,o),refetchDescribeMessage:()=>h.refetchQueries({queryKey:_({path:{messageId:e}})})},{contentUrl:r.contentUrl,kind:r.kind,isRetryAfterNotReady:d})},enabled:s&&!!e&&!!r,staleTime:300*1e3,gcTime:1800*1e3,retry:(d,u)=>u instanceof f&&u.reason==="not-ready"?d<X:d<1,retryDelay:(d,u)=>u instanceof f&&u.reason==="not-ready"?(l.current=!0,(u.retryAfterSeconds??1)*1e3):1e3,meta:{softError:!0}}),y=i.isLoading&&!!r,A=t!==void 0&&r===null;a.useEffect(()=>{y&&(c.current=performance.now())},[y]),a.useEffect(()=>{i.isSuccess&&c.current!==null&&(n.recordTiming("message.body.load",Math.round(performance.now()-c.current)),c.current=null)},[i.isSuccess,n]);const M=i.data&&r?{kind:r.kind,body:i.data}:void 0;return{picked:r,data:M,isLoading:y,hasNoRenderablePart:A,isError:i.isError,error:i.error,refetch:i.refetch}};export{f as B,ee as a,ce as b,Y as c,te as d,ne as e,oe as f,re as g,ae as h,K as i,I as o,se as u};
@@ -1 +1 @@
1
- import{c5 as Q,c6 as y,c7 as S,c8 as w,c9 as C,h as k,ca as q,cb as x,r as p,cc as M,cd as H,ce as L,cf as P,cg as O,ch as B,ci as A}from"./index-Wv8c0Cef.js";function R(r,e){const s=new Set(e);return r.filter(t=>!s.has(t))}function T(r,e,s){const t=r.slice(0);return t[e]=s,t}var z=class extends Q{#i;#e;#n;#r;#s;#t;#o;#u;#h;#c=[];constructor(r,e,s){super(),this.#i=r,this.#r=s,this.#n=[],this.#s=[],this.#e=[],this.setQueries(e)}onSubscribe(){this.listeners.size===1&&this.#s.forEach(r=>{r.subscribe(e=>{this.#d(r,e)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(r=>{r.destroy()})}setQueries(r,e){this.#n=r,this.#r=e,y.batch(()=>{const s=this.#s,t=this.#f(this.#n);t.forEach(o=>o.observer.setOptions(o.defaultedQueryOptions));const i=t.map(o=>o.observer),n=i.map(o=>o.getCurrentResult()),u=s.length!==i.length,a=i.some((o,d)=>o!==s[d]),f=u||a,b=f?!0:n.some((o,d)=>{const g=this.#e[d];return!g||!S(o,g)});!f&&!b||(f&&(this.#c=t,this.#s=i),this.#e=n,this.hasListeners()&&(f&&(R(s,i).forEach(o=>{o.destroy()}),R(i,s).forEach(o=>{o.subscribe(d=>{this.#d(o,d)})})),this.#p()))})}getCurrentResult(){return this.#e}getQueries(){return this.#s.map(r=>r.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(r,e){const s=this.#f(r),t=s.map(n=>n.observer.getOptimisticResult(n.defaultedQueryOptions)),i=s.map(n=>n.defaultedQueryOptions.queryHash);return[t,n=>this.#l(n??t,e,i),()=>this.#a(t,s)]}#a(r,e){return e.map((s,t)=>{const i=r[t];return s.defaultedQueryOptions.notifyOnChangeProps?i:s.observer.trackResult(i,n=>{e.forEach(u=>{u.observer.trackProp(n)})})})}#l(r,e,s){if(e){const t=this.#h,i=s!==void 0&&t!==void 0&&(t.length!==s.length||s.some((n,u)=>n!==t[u]));return(!this.#t||this.#e!==this.#u||i||e!==this.#o)&&(this.#o=e,this.#u=this.#e,s!==void 0&&(this.#h=s),this.#t=w(this.#t,e(r))),this.#t}return r}#b(){return this.#r?.combine!==void 0&&this.#s.some((r,e)=>r.options.suspense&&this.#e[e]?.data===void 0)}#f(r){const e=new Map;this.#s.forEach(t=>{const i=t.options.queryHash;if(!i)return;const n=e.get(i);n?n.push(t):e.set(i,[t])});const s=[];return r.forEach(t=>{const i=this.#i.defaultQueryOptions(t),u=e.get(i.queryHash)?.shift()??new C(this.#i,i);s.push({defaultedQueryOptions:i,observer:u})}),s}#d(r,e){const s=this.#s.indexOf(r);s!==-1&&(this.#e=T(this.#e,s,e),this.#p())}#p(){if(this.hasListeners()){const r=this.#a(this.#e,this.#c),e=this.#b(),s=this.#t,t=e?s:this.#l(r,this.#r?.combine);(e||s!==t)&&y.batch(()=>{this.listeners.forEach(i=>{i(this.#e)})})}}};function U({queries:r,...e},s){const t=k(),i=q(),n=x(),u=p.useMemo(()=>r.map(h=>{const c=t.defaultQueryOptions(h);return c._optimisticResults=i?"isRestoring":"optimistic",c}),[r,t,i]);u.forEach(h=>{M(h);const c=t.getQueryCache().get(h.queryHash);H(h,n,c)}),L(n);const[a]=p.useState(()=>new z(t,u,e)),[f,b,o]=a.getOptimisticResult(u,e.combine),d=!i&&e.subscribed!==!1;p.useSyncExternalStore(p.useCallback(h=>d?a.subscribe(y.batchCalls(h)):P,[a,d]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),p.useEffect(()=>{a.setQueries(u,e)},[u,e,a]);const m=f.some((h,c)=>O(u[c],h))?f.flatMap((h,c)=>{const l=u[c];if(l&&O(l,h)){const E=new C(t,l);return B(l,E,n)}return[]}):[];if(m.length>0)throw Promise.all(m);const v=f.find((h,c)=>{const l=u[c];return l&&A({result:h,errorResetBoundary:n,throwOnError:l.throwOnError,query:t.getQueryCache().get(l.queryHash),suspense:l.suspense})});if(v?.error)throw v.error;return b(o())}export{U as u};
1
+ import{c5 as Q,c6 as y,c7 as S,c8 as w,c9 as C,h as k,ca as q,cb as x,r as p,cc as M,cd as H,ce as L,cf as P,cg as O,ch as B,ci as A}from"./index-BE90AH0f.js";function R(r,e){const s=new Set(e);return r.filter(t=>!s.has(t))}function T(r,e,s){const t=r.slice(0);return t[e]=s,t}var z=class extends Q{#i;#e;#n;#r;#s;#t;#o;#u;#h;#c=[];constructor(r,e,s){super(),this.#i=r,this.#r=s,this.#n=[],this.#s=[],this.#e=[],this.setQueries(e)}onSubscribe(){this.listeners.size===1&&this.#s.forEach(r=>{r.subscribe(e=>{this.#d(r,e)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(r=>{r.destroy()})}setQueries(r,e){this.#n=r,this.#r=e,y.batch(()=>{const s=this.#s,t=this.#f(this.#n);t.forEach(o=>o.observer.setOptions(o.defaultedQueryOptions));const i=t.map(o=>o.observer),n=i.map(o=>o.getCurrentResult()),u=s.length!==i.length,a=i.some((o,d)=>o!==s[d]),f=u||a,b=f?!0:n.some((o,d)=>{const g=this.#e[d];return!g||!S(o,g)});!f&&!b||(f&&(this.#c=t,this.#s=i),this.#e=n,this.hasListeners()&&(f&&(R(s,i).forEach(o=>{o.destroy()}),R(i,s).forEach(o=>{o.subscribe(d=>{this.#d(o,d)})})),this.#p()))})}getCurrentResult(){return this.#e}getQueries(){return this.#s.map(r=>r.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(r,e){const s=this.#f(r),t=s.map(n=>n.observer.getOptimisticResult(n.defaultedQueryOptions)),i=s.map(n=>n.defaultedQueryOptions.queryHash);return[t,n=>this.#l(n??t,e,i),()=>this.#a(t,s)]}#a(r,e){return e.map((s,t)=>{const i=r[t];return s.defaultedQueryOptions.notifyOnChangeProps?i:s.observer.trackResult(i,n=>{e.forEach(u=>{u.observer.trackProp(n)})})})}#l(r,e,s){if(e){const t=this.#h,i=s!==void 0&&t!==void 0&&(t.length!==s.length||s.some((n,u)=>n!==t[u]));return(!this.#t||this.#e!==this.#u||i||e!==this.#o)&&(this.#o=e,this.#u=this.#e,s!==void 0&&(this.#h=s),this.#t=w(this.#t,e(r))),this.#t}return r}#b(){return this.#r?.combine!==void 0&&this.#s.some((r,e)=>r.options.suspense&&this.#e[e]?.data===void 0)}#f(r){const e=new Map;this.#s.forEach(t=>{const i=t.options.queryHash;if(!i)return;const n=e.get(i);n?n.push(t):e.set(i,[t])});const s=[];return r.forEach(t=>{const i=this.#i.defaultQueryOptions(t),u=e.get(i.queryHash)?.shift()??new C(this.#i,i);s.push({defaultedQueryOptions:i,observer:u})}),s}#d(r,e){const s=this.#s.indexOf(r);s!==-1&&(this.#e=T(this.#e,s,e),this.#p())}#p(){if(this.hasListeners()){const r=this.#a(this.#e,this.#c),e=this.#b(),s=this.#t,t=e?s:this.#l(r,this.#r?.combine);(e||s!==t)&&y.batch(()=>{this.listeners.forEach(i=>{i(this.#e)})})}}};function U({queries:r,...e},s){const t=k(),i=q(),n=x(),u=p.useMemo(()=>r.map(h=>{const c=t.defaultQueryOptions(h);return c._optimisticResults=i?"isRestoring":"optimistic",c}),[r,t,i]);u.forEach(h=>{M(h);const c=t.getQueryCache().get(h.queryHash);H(h,n,c)}),L(n);const[a]=p.useState(()=>new z(t,u,e)),[f,b,o]=a.getOptimisticResult(u,e.combine),d=!i&&e.subscribed!==!1;p.useSyncExternalStore(p.useCallback(h=>d?a.subscribe(y.batchCalls(h)):P,[a,d]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),p.useEffect(()=>{a.setQueries(u,e)},[u,e,a]);const m=f.some((h,c)=>O(u[c],h))?f.flatMap((h,c)=>{const l=u[c];if(l&&O(l,h)){const E=new C(t,l);return B(l,E,n)}return[]}):[];if(m.length>0)throw Promise.all(m);const v=f.find((h,c)=>{const l=u[c];return l&&A({result:h,errorResetBoundary:n,throwOnError:l.throwOnError,query:t.getQueryCache().get(l.queryHash),suspense:l.suspense})});if(v?.error)throw v.error;return b(o())}export{U as u};
@@ -1 +1 @@
1
- import{j as E,a1 as K,t as U,f as Q,r as o,aU as R,h as N,G,K as $,M as z,q as B,R as I,S as X,T as V,U as J}from"./index-Wv8c0Cef.js";import{C as Y}from"./circle-check-big-F3heiIFI.js";import{R as Z}from"./refresh-cw-CaBRf4Us.js";import{u as L}from"./useQueries-DtWE4kIN.js";function ye({state:e,onRefresh:s,label:t,errorMessage:n,hasUpdate:a,size:u="sm",className:c}){const i=e==="refreshing",r=e==="error",h=e==="success",S=r?E.jsx(K,{className:"size-4 text-danger"}):h?E.jsx(Y,{className:"size-4 text-positive"}):E.jsx(Z,{className:U("size-4",i&&"animate-spin")}),w=r?`${t} — failed: ${n??"try again"}`:i?`${t} — refreshing`:h?`${t} — up to date`:a?`${t} — new mail`:t;return E.jsxs("div",{className:"relative inline-flex",children:[E.jsx(Q,{variant:"ghost",size:u,icon:S,onClick:s,disabled:i,"aria-label":w,"aria-busy":i||void 0,title:r?n:t,className:c}),e==="idle"&&a&&E.jsx("span",{"aria-hidden":"true",className:"absolute right-1 top-1 size-1.5 rounded-full bg-accent-2"})]})}const ee=new Set(["discovering_mailboxes","syncing_inbox","syncing_others"]);function P(e){return!!e&&ee.has(e)}const q=3e3,te=q*2,T={syncing:!1,resolved:!1,synced:0,total:0};function we(e,s){const t=e.join(","),[n,a]=o.useState(!1),[u,c]=o.useState(!1);o.useEffect(()=>{a(!1),c(!1)},[t,s]),o.useEffect(()=>{if(!s)return;const m=setTimeout(()=>c(!0),te);return()=>clearTimeout(m)},[t,s]);const i=L({queries:e.map(m=>({...R({path:{accountId:m}}),enabled:s&&!n,refetchInterval:q,meta:{softError:!0}}))}),r=i.every(m=>m.isSuccess||m.isError),h=i.length===0||r||u;let S=!1,w=0,y=0;for(const m of i)if(P(m.data?.syncPhase)){S=!0;for(const l of m.data?.mailboxes??[])w+=l.messagesSynced,y+=l.messagesTotal}const x=s&&h&&!S;return o.useEffect(()=>{x&&a(!0)},[x]),!s||!h?T:{syncing:S,resolved:!0,synced:w,total:y}}const se=180*1e3,xe=30*1e3;let F=0;const M=new Set,re=(e=Date.now())=>{F=e+se;for(const s of M)s()},pe=(e=Date.now())=>e<F,Ee=e=>(M.add(e),()=>{M.delete(e)}),_=6e4,ne=new Set(["sent","drafts","trash","archive"]),C=(e,s)=>{const t=new Map;for(const n of e){const a=s.get(n.mailboxId)?.role;a&&ne.has(a)||t.set(n.mailboxId,n.highWaterMarkUid)}return t},j=(e,s)=>{const t=[];for(const[n,a]of s)a>(e.get(n)??0)&&t.push(n);return t},oe=(e,s)=>j(e,s).length>0,D=o.createContext(null),ae=()=>{const e=o.useContext(D);if(!e)throw new Error("useMailFreshness must be used inside <MailFreshnessProvider>");return e};function be({accountIds:e,children:s}){const t=N(),{resultFolderIndex:n}=G(),a=o.useRef(new Map),u=o.useRef(new Set),c=o.useRef(new Map),[i,r]=o.useState(new Set),h=L({queries:e.map(l=>({...R({path:{accountId:l}}),refetchInterval:_,staleTime:_,meta:{softError:!0}}))}),S=h.map(l=>l.dataUpdatedAt).join(","),w=e.join(",");o.useEffect(()=>{let l=!1;const f=new Set(i);e.forEach((d,p)=>{const b=h[p]?.data;if(!b)return;const g=C(b.mailboxes??[],n),v=c.current.get(d);if(c.current.set(d,g),v){const A=j(v,g);A.length>0&&$(t,z(A))}if(!u.current.has(d)){u.current.add(d),a.current.set(d,g);return}if(f.has(d))return;const W=a.current.get(d)??new Map;oe(W,g)&&(f.add(d),l=!0)}),l&&r(f)},[w,S]);const y=o.useCallback(l=>l.some(f=>i.has(f)),[i]),x=o.useCallback(l=>{r(f=>{if(l.every(p=>!f.has(p)))return f;const d=new Set(f);for(const p of l)d.delete(p);return d});for(const f of l){const d=t.getQueryData(R({path:{accountId:f}}).queryKey);a.current.set(f,C(d?.mailboxes??[],n)),u.current.add(f)}},[t,n]),m=o.useMemo(()=>({hasNewMail:y,acknowledge:x}),[y,x]);return E.jsx(D.Provider,{value:m,children:s})}const ie=2e3,ce=45e3,ue=e=>new Promise(s=>setTimeout(s,e)),k=e=>e instanceof Error&&e.message?e.message:"Something went wrong",le=e=>{V(e,{softError:!0},"user")&&J(e)},O=(e,s)=>e.fetchQuery({...R({path:{accountId:s}}),staleTime:0}),H=e=>e.mailboxes?.find(s=>s.fullPath?.toUpperCase()==="INBOX")?.lastSyncedAt??0,fe=async({accountId:e,readStatus:s,baselineLastSyncAt:t,baselineInboxSyncedAt:n=0,onInboxSynced:a,deadline:u,pollMs:c=ie})=>{let i=!1;for(;;){const r=await s().then(y=>({ok:!0,data:y})).catch(y=>({ok:!1,error:y}));if(!r.ok)return{accountId:e,message:k(r.error)};const{syncPhase:h,lastSyncAt:S}=r.data;if((S??0)>t&&!P(h))return h==="error"?{accountId:e,message:"Sync failed for this account"}:void 0;if(!i&&H(r.data)>n&&(i=!0,a?.()),Date.now()>=u)return{accountId:e,message:"Refresh is taking longer than usual"};await ue(c)}},de=async(e,s,t,n,a)=>{const u=await O(e,t).then(r=>({ok:!0,lastSyncAt:r.lastSyncAt??0,inboxSyncedAt:H(r)})).catch(r=>({ok:!1,error:r}));if(!u.ok)return{accountId:t,enqueued:!1,ok:!1,message:k(u.error)};const c=await I({path:{accountId:t},throwOnError:!0}).then(()=>({ok:!0})).catch(r=>({ok:!1,error:r}));if(!c.ok)return le(c.error),{accountId:t,enqueued:!1,ok:!1,message:k(c.error)};s.recordEvent("sync.triggered");const i=await fe({accountId:t,readStatus:()=>O(e,t),baselineLastSyncAt:u.lastSyncAt,baselineInboxSyncedAt:u.inboxSyncedAt,onInboxSynced:()=>a(t),deadline:n});return i?{accountId:t,enqueued:!0,ok:!1,message:i.message}:{accountId:t,enqueued:!0,ok:!0}},Re=(e,s={})=>{const t=N(),n=B(),{acknowledge:a}=ae(),[u,c]=o.useState("idle"),[i,r]=o.useState(),h=o.useRef(0),S=o.useRef(e);S.current=e;const w=o.useRef(s);w.current=s,o.useEffect(()=>{if(u!=="success")return;const x=setTimeout(()=>c("idle"),2e3);return()=>clearTimeout(x)},[u]);const y=o.useCallback(()=>{const x=S.current;if(x.length===0){c("error"),r("Nothing to refresh yet");return}const m=++h.current;c("refreshing"),r(void 0),re();const l=f=>{h.current===m&&(t.invalidateQueries({queryKey:X({path:{accountId:f}})}),w.current.onSettled?.())};(async()=>{const f=Date.now()+ce,d=await Promise.all(x.map(g=>de(t,n,g,f,l)));if(h.current!==m)return;const p=d.filter(g=>g.enqueued).map(g=>g.accountId);for(const g of p)l(g);p.length>0&&a(p);const b=d.filter(g=>!g.ok);b.length===0?c("success"):(c("error"),r(b[0]?.message))})()},[a,t,n]);return{state:u,errorMessage:i,refresh:y}};export{xe as H,be as M,ye as R,Re as a,P as b,we as c,pe as i,Ee as s,ae as u};
1
+ import{j as E,a1 as K,t as U,f as Q,r as o,aU as R,h as N,G,K as $,M as z,q as B,R as I,S as X,T as V,U as J}from"./index-BE90AH0f.js";import{C as Y}from"./circle-check-big-BROhrbjR.js";import{R as Z}from"./refresh-cw-BG-Wpxtn.js";import{u as L}from"./useQueries-DDQNJNeh.js";function ye({state:e,onRefresh:s,label:t,errorMessage:n,hasUpdate:a,size:u="sm",className:c}){const i=e==="refreshing",r=e==="error",h=e==="success",S=r?E.jsx(K,{className:"size-4 text-danger"}):h?E.jsx(Y,{className:"size-4 text-positive"}):E.jsx(Z,{className:U("size-4",i&&"animate-spin")}),w=r?`${t} — failed: ${n??"try again"}`:i?`${t} — refreshing`:h?`${t} — up to date`:a?`${t} — new mail`:t;return E.jsxs("div",{className:"relative inline-flex",children:[E.jsx(Q,{variant:"ghost",size:u,icon:S,onClick:s,disabled:i,"aria-label":w,"aria-busy":i||void 0,title:r?n:t,className:c}),e==="idle"&&a&&E.jsx("span",{"aria-hidden":"true",className:"absolute right-1 top-1 size-1.5 rounded-full bg-accent-2"})]})}const ee=new Set(["discovering_mailboxes","syncing_inbox","syncing_others"]);function P(e){return!!e&&ee.has(e)}const q=3e3,te=q*2,T={syncing:!1,resolved:!1,synced:0,total:0};function we(e,s){const t=e.join(","),[n,a]=o.useState(!1),[u,c]=o.useState(!1);o.useEffect(()=>{a(!1),c(!1)},[t,s]),o.useEffect(()=>{if(!s)return;const m=setTimeout(()=>c(!0),te);return()=>clearTimeout(m)},[t,s]);const i=L({queries:e.map(m=>({...R({path:{accountId:m}}),enabled:s&&!n,refetchInterval:q,meta:{softError:!0}}))}),r=i.every(m=>m.isSuccess||m.isError),h=i.length===0||r||u;let S=!1,w=0,y=0;for(const m of i)if(P(m.data?.syncPhase)){S=!0;for(const l of m.data?.mailboxes??[])w+=l.messagesSynced,y+=l.messagesTotal}const x=s&&h&&!S;return o.useEffect(()=>{x&&a(!0)},[x]),!s||!h?T:{syncing:S,resolved:!0,synced:w,total:y}}const se=180*1e3,xe=30*1e3;let F=0;const M=new Set,re=(e=Date.now())=>{F=e+se;for(const s of M)s()},pe=(e=Date.now())=>e<F,Ee=e=>(M.add(e),()=>{M.delete(e)}),_=6e4,ne=new Set(["sent","drafts","trash","archive"]),C=(e,s)=>{const t=new Map;for(const n of e){const a=s.get(n.mailboxId)?.role;a&&ne.has(a)||t.set(n.mailboxId,n.highWaterMarkUid)}return t},j=(e,s)=>{const t=[];for(const[n,a]of s)a>(e.get(n)??0)&&t.push(n);return t},oe=(e,s)=>j(e,s).length>0,D=o.createContext(null),ae=()=>{const e=o.useContext(D);if(!e)throw new Error("useMailFreshness must be used inside <MailFreshnessProvider>");return e};function be({accountIds:e,children:s}){const t=N(),{resultFolderIndex:n}=G(),a=o.useRef(new Map),u=o.useRef(new Set),c=o.useRef(new Map),[i,r]=o.useState(new Set),h=L({queries:e.map(l=>({...R({path:{accountId:l}}),refetchInterval:_,staleTime:_,meta:{softError:!0}}))}),S=h.map(l=>l.dataUpdatedAt).join(","),w=e.join(",");o.useEffect(()=>{let l=!1;const f=new Set(i);e.forEach((d,p)=>{const b=h[p]?.data;if(!b)return;const g=C(b.mailboxes??[],n),v=c.current.get(d);if(c.current.set(d,g),v){const A=j(v,g);A.length>0&&$(t,z(A))}if(!u.current.has(d)){u.current.add(d),a.current.set(d,g);return}if(f.has(d))return;const W=a.current.get(d)??new Map;oe(W,g)&&(f.add(d),l=!0)}),l&&r(f)},[w,S]);const y=o.useCallback(l=>l.some(f=>i.has(f)),[i]),x=o.useCallback(l=>{r(f=>{if(l.every(p=>!f.has(p)))return f;const d=new Set(f);for(const p of l)d.delete(p);return d});for(const f of l){const d=t.getQueryData(R({path:{accountId:f}}).queryKey);a.current.set(f,C(d?.mailboxes??[],n)),u.current.add(f)}},[t,n]),m=o.useMemo(()=>({hasNewMail:y,acknowledge:x}),[y,x]);return E.jsx(D.Provider,{value:m,children:s})}const ie=2e3,ce=45e3,ue=e=>new Promise(s=>setTimeout(s,e)),k=e=>e instanceof Error&&e.message?e.message:"Something went wrong",le=e=>{V(e,{softError:!0},"user")&&J(e)},O=(e,s)=>e.fetchQuery({...R({path:{accountId:s}}),staleTime:0}),H=e=>e.mailboxes?.find(s=>s.fullPath?.toUpperCase()==="INBOX")?.lastSyncedAt??0,fe=async({accountId:e,readStatus:s,baselineLastSyncAt:t,baselineInboxSyncedAt:n=0,onInboxSynced:a,deadline:u,pollMs:c=ie})=>{let i=!1;for(;;){const r=await s().then(y=>({ok:!0,data:y})).catch(y=>({ok:!1,error:y}));if(!r.ok)return{accountId:e,message:k(r.error)};const{syncPhase:h,lastSyncAt:S}=r.data;if((S??0)>t&&!P(h))return h==="error"?{accountId:e,message:"Sync failed for this account"}:void 0;if(!i&&H(r.data)>n&&(i=!0,a?.()),Date.now()>=u)return{accountId:e,message:"Refresh is taking longer than usual"};await ue(c)}},de=async(e,s,t,n,a)=>{const u=await O(e,t).then(r=>({ok:!0,lastSyncAt:r.lastSyncAt??0,inboxSyncedAt:H(r)})).catch(r=>({ok:!1,error:r}));if(!u.ok)return{accountId:t,enqueued:!1,ok:!1,message:k(u.error)};const c=await I({path:{accountId:t},throwOnError:!0}).then(()=>({ok:!0})).catch(r=>({ok:!1,error:r}));if(!c.ok)return le(c.error),{accountId:t,enqueued:!1,ok:!1,message:k(c.error)};s.recordEvent("sync.triggered");const i=await fe({accountId:t,readStatus:()=>O(e,t),baselineLastSyncAt:u.lastSyncAt,baselineInboxSyncedAt:u.inboxSyncedAt,onInboxSynced:()=>a(t),deadline:n});return i?{accountId:t,enqueued:!0,ok:!1,message:i.message}:{accountId:t,enqueued:!0,ok:!0}},Re=(e,s={})=>{const t=N(),n=B(),{acknowledge:a}=ae(),[u,c]=o.useState("idle"),[i,r]=o.useState(),h=o.useRef(0),S=o.useRef(e);S.current=e;const w=o.useRef(s);w.current=s,o.useEffect(()=>{if(u!=="success")return;const x=setTimeout(()=>c("idle"),2e3);return()=>clearTimeout(x)},[u]);const y=o.useCallback(()=>{const x=S.current;if(x.length===0){c("error"),r("Nothing to refresh yet");return}const m=++h.current;c("refreshing"),r(void 0),re();const l=f=>{h.current===m&&(t.invalidateQueries({queryKey:X({path:{accountId:f}})}),w.current.onSettled?.())};(async()=>{const f=Date.now()+ce,d=await Promise.all(x.map(g=>de(t,n,g,f,l)));if(h.current!==m)return;const p=d.filter(g=>g.enqueued).map(g=>g.accountId);for(const g of p)l(g);p.length>0&&a(p);const b=d.filter(g=>!g.ok);b.length===0?c("success"):(c("error"),r(b[0]?.message))})()},[a,t,n]);return{state:u,errorMessage:i,refresh:y}};export{xe as H,be as M,ye as R,Re as a,P as b,we as c,pe as i,Ee as s,ae as u};
@@ -1 +1 @@
1
- import{N as r,r as s,bZ as t}from"./index-Wv8c0Cef.js";import{u as m}from"./useQueries-DtWE4kIN.js";const a=i=>({items:i.map(e=>e.data?.items??[]),isPending:i.some(e=>e.isPending),error:i.find(e=>e.error)?.error??null});function u(i){const e=m({queries:i.map(o=>({...r({path:{accountId:o.accountId}}),staleTime:1/0})),combine:a});return{index:s.useMemo(()=>t(i.map((o,n)=>({folderAppointments:o.folderAppointments,mailboxes:e.items[n]??[]}))),[i,e]),isPending:e.isPending,error:e.error}}export{u};
1
+ import{N as r,r as s,bZ as t}from"./index-BE90AH0f.js";import{u as m}from"./useQueries-DDQNJNeh.js";const a=i=>({items:i.map(e=>e.data?.items??[]),isPending:i.some(e=>e.isPending),error:i.find(e=>e.error)?.error??null});function u(i){const e=m({queries:i.map(o=>({...r({path:{accountId:o.accountId}}),staleTime:1/0})),combine:a});return{index:s.useMemo(()=>t(i.map((o,n)=>({folderAppointments:o.folderAppointments,mailboxes:e.items[n]??[]}))),[i,e]),isPending:e.isPending,error:e.error}}export{u};
@@ -1,4 +1,4 @@
1
- import{d9 as se,da as re,db as ne,r as h,dc as ae,dd as oe,j as a,de as ie,df as ce,dg as le,dh as ue,cw as de,t as v,I as me,h as fe,au as he,i as ge,aw as pe,cR as be,bQ as ye,ac as xe,a1 as we,X as ve,di as W,dj as U,G as ke,cq as Se}from"./index-Wv8c0Cef.js";import{K as O}from"./kbd-HjgyEn1g.js";import{B as Ee,b as Ae}from"./useMessageBodyContent-WV6nV5Bm.js";import{i as Ce}from"./search-scope-UI1H6AzA.js";function je(e,t){if(typeof e!="object"||e===null)return e;var s=e[Symbol.toPrimitive];if(s!==void 0){var r=s.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Te(e){var t=je(e,"string");return typeof t=="symbol"?t:String(t)}function Ne(e,t,s){return t=Te(t),t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function D(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),s.push.apply(s,r)}return s}function N(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{};t%2?D(Object(s),!0).forEach(function(r){Ne(e,r,s[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):D(Object(s)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(s,r))})}return e}class _e{constructor(t,s,r,n,o){this._target=t,this._gestureKey=n,this._ctrl=new ne(s),this._ctrl.applyHandlers(s,o),this._ctrl.applyConfig(N(N({},r),{},{target:t}),n),this._ctrl.effect()}destroy(){this._ctrl.clean()}setConfig(t){this._ctrl.clean(),this._ctrl.applyConfig(N(N({},t),{},{target:this._target}),this._gestureKey),this._ctrl.effect()}}const Oe=function(t,s,r){return se(re),new _e(t,{drag:s},r||{},"drag")},Re='"Geist Variable", "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',_={light:{fg:"oklch(0.3 0.025 235)",canvas:"oklch(0.96 0.015 90)",accent:"oklch(0.55 0.14 150)"},dark:{fg:"oklch(0.88 0.02 90)",canvas:"oklch(0.22 0.025 220)",accent:"oklch(0.78 0.16 150)"}},Ie={background:!1,spacing:!1},Le="16px",De=()=>`html{padding:0}body{padding:${Le};box-sizing:border-box}`,$e=()=>"html{overflow:hidden}body{overflow-x:auto}",Me=/prefers-color-scheme\s*:\s*dark|color-scheme\s*:\s*[^;}"']*\bdark\b/i,Pe='<meta name="viewport" content="width=device-width, initial-scale=1">',Be=e=>{const t=e?_.dark:_.light;return`
1
+ import{d9 as se,da as re,db as ne,r as h,dc as ae,dd as oe,j as a,de as ie,df as ce,dg as le,dh as ue,cw as de,t as v,I as me,h as fe,au as he,i as ge,aw as pe,cR as be,bQ as ye,ac as xe,a1 as we,X as ve,di as W,dj as U,G as ke,cq as Se}from"./index-BE90AH0f.js";import{K as O}from"./kbd-rrE63A-o.js";import{B as Ee,b as Ae}from"./useMessageBodyContent-q6WlaNlI.js";import{i as Ce}from"./search-scope-UI1H6AzA.js";function je(e,t){if(typeof e!="object"||e===null)return e;var s=e[Symbol.toPrimitive];if(s!==void 0){var r=s.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Te(e){var t=je(e,"string");return typeof t=="symbol"?t:String(t)}function Ne(e,t,s){return t=Te(t),t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function D(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),s.push.apply(s,r)}return s}function N(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{};t%2?D(Object(s),!0).forEach(function(r){Ne(e,r,s[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):D(Object(s)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(s,r))})}return e}class _e{constructor(t,s,r,n,o){this._target=t,this._gestureKey=n,this._ctrl=new ne(s),this._ctrl.applyHandlers(s,o),this._ctrl.applyConfig(N(N({},r),{},{target:t}),n),this._ctrl.effect()}destroy(){this._ctrl.clean()}setConfig(t){this._ctrl.clean(),this._ctrl.applyConfig(N(N({},t),{},{target:this._target}),this._gestureKey),this._ctrl.effect()}}const Oe=function(t,s,r){return se(re),new _e(t,{drag:s},r||{},"drag")},Re='"Geist Variable", "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',_={light:{fg:"oklch(0.3 0.025 235)",canvas:"oklch(0.96 0.015 90)",accent:"oklch(0.55 0.14 150)"},dark:{fg:"oklch(0.88 0.02 90)",canvas:"oklch(0.22 0.025 220)",accent:"oklch(0.78 0.16 150)"}},Ie={background:!1,spacing:!1},Le="16px",De=()=>`html{padding:0}body{padding:${Le};box-sizing:border-box}`,$e=()=>"html{overflow:hidden}body{overflow-x:auto}",Me=/prefers-color-scheme\s*:\s*dark|color-scheme\s*:\s*[^;}"']*\bdark\b/i,Pe='<meta name="viewport" content="width=device-width, initial-scale=1">',Be=e=>{const t=e?_.dark:_.light;return`
2
2
  /* Plain-email base: UI font-stack + theme-aware colors (#424) */
3
3
  html, body {
4
4
  font-family: ${Re};
@@ -1 +1 @@
1
- import{h as g,au as p,c as f,d as m,r,i as y,aw as T,o as E,l as d}from"./index-Wv8c0Cef.js";const i={html:"",plainText:""},x=e=>{const u=g(),{pushError:o}=p(),{data:n}=f({...m(),staleTime:1/0}),l=r.useMemo(()=>{if(!e||!n)return i;const t=n.accounts.find(a=>a.accountId===e);return t?{html:t.signatureHtml??"",plainText:t.signaturePlainText??""}:i},[e,n]),s=y({...d(),onSuccess:()=>{u.invalidateQueries({queryKey:E()})},onError:t=>{o(T("Couldn't save signature","The signature wasn't saved.",t))}}),c=r.useCallback((t,a)=>{e&&s.mutate({path:{accountId:e},body:{signatureHtml:t,signaturePlainText:a}})},[e,s]);return{signature:l,setSignature:c,isSaving:s.isPending}};export{x as u};
1
+ import{h as g,au as p,c as f,d as m,r,i as y,aw as T,o as E,l as d}from"./index-BE90AH0f.js";const i={html:"",plainText:""},x=e=>{const u=g(),{pushError:o}=p(),{data:n}=f({...m(),staleTime:1/0}),l=r.useMemo(()=>{if(!e||!n)return i;const t=n.accounts.find(a=>a.accountId===e);return t?{html:t.signatureHtml??"",plainText:t.signaturePlainText??""}:i},[e,n]),s=y({...d(),onSuccess:()=>{u.invalidateQueries({queryKey:E()})},onError:t=>{o(T("Couldn't save signature","The signature wasn't saved.",t))}}),c=r.useCallback((t,a)=>{e&&s.mutate({path:{accountId:e},body:{signatureHtml:t,signaturePlainText:a}})},[e,s]);return{signature:l,setSignature:c,isSaving:s.isPending}};export{x as u};
@@ -1,4 +1,4 @@
1
- import{j as s,aN as v,f as d,aX as _,g as j,bu as N,bs as y,B as E,as as $,bL as C,bV as f,bW as A,bX as M,c as k,d as P,r as l,bY as W,aI as p,aJ as x,u as z,aQ as O,aS as L}from"./index-Wv8c0Cef.js";import{S as q}from"./settings-screen-CiROhhFn.js";import{f as B}from"./ErrorState-DqW4OEtW.js";import{C as D}from"./copy-By27w-tj.js";import{E as U}from"./external-link-BaGmPQ6n.js";import{B as h}from"./bug-CXbCYbSj.js";import{C as S}from"./circle-check-BY9d0nWp.js";import{S as F}from"./SignInAgain-H6RH3k22.js";import{u as G}from"./useResultFolderIndex-C2f_OOkp.js";import{w as H}from"./help-copy-DtcCWy4U.js";import"./avatar-DRUm_y0q.js";import"./chevron-left-Djj9Mgb_.js";import"./menu-CEMm7JqZ.js";import"./circle-help-cUvExqqK.js";import"./useQueries-DtWE4kIN.js";import"./kbd-HjgyEn1g.js";function Q({report:e,onClose:t,issueUrl:a,onCopy:n}){return e===null?null:s.jsx(v,{open:!0,onClose:t,title:"Report this message",children:s.jsxs("div",{className:"flex max-h-[80vh] flex-col",children:[s.jsxs("header",{className:"space-y-1 border-b border-line px-4 py-3",children:[s.jsx("h3",{className:"text-sm font-semibold text-fg",children:"Report this message"}),s.jsx("p",{className:"text-xs text-fg-muted",children:"This is everything the report contains. It describes what went wrong with the message — never its contents, addresses, subject, attachment names, folder name, or the parser's own error text."})]}),s.jsx("pre",{className:"flex-1 overflow-auto bg-surface-sunken px-4 py-3 text-2xs leading-relaxed whitespace-pre-wrap text-fg-muted",children:e}),s.jsxs("footer",{className:"flex flex-wrap items-center justify-end gap-2 border-t border-line px-4 py-3",children:[s.jsx(d,{variant:"ghost",size:"sm",onClick:t,children:"Cancel"}),s.jsx(d,{variant:"secondary",size:"sm",icon:s.jsx(D,{className:"size-3.5"}),onClick:()=>n(e),children:"Copy report"}),s.jsx(_,{external:!0,size:"sm",href:a,icon:s.jsx(U,{className:"size-3.5"}),children:"Open on GitHub"})]})]})})}const V={BodyParse:"The message is built in a way Remit could not read."};function Y(e){return V[e]}function R(e){return e.split(";")[0].trim()}const b=/^[A-Za-z0-9!#$%&'*+._-]+$/,T=/^[A-Za-z0-9!#$%&'*+._-]+\/[A-Za-z0-9!#$%&'*+._-]+$/;function m(e,t){return t.test(e)?`\`${e}\``:`\`${JSON.stringify(e).replace(/`/g,"\\u0060")}\` (malformed)`}function J(e){const t=R(e);return T.test(t)?t:JSON.stringify(t)}const g="_not read_";function Z(e){return e.length===0?["(no MIME structure was read)"]:e.map(t=>`${" ".repeat(t.depth)}- ${J(t.contentType)}`)}const X="_No message content, addresses, subject, attachment names or parser output are included._";function I(e){return{head:[`### Message quarantined at \`${e.failureStage}\``,"",`- **Failure**: \`${e.failureCode}\``,`- **Folder role**: ${e.mailboxRole??"_none appointed_"}`,`- **Failing part**: ${e.failurePartPath==null?"_whole message_":`\`${e.failurePartPath}\``}`,`- **Attempts before quarantine**: ${e.attempts}`,`- **Worker build**: ${e.workerVersion}`,`- **Message-ID hash**: ${e.messageIdHash==null?"_none declared_":`\`${e.messageIdHash}\``}`,"","#### Message shape","",`- **Content-Type**: ${e.contentType==null?g:m(R(e.contentType),T)}`,`- **Content-Transfer-Encoding**: ${e.transferEncoding==null?g:m(e.transferEncoding,b)}`,`- **Charset**: ${e.charset==null?"_not declared_":m(e.charset,b)}`,`- **Size**: ${e.sizeBytes==null?g:`${e.sizeBytes} bytes`}`,"","MIME structure:"].join(`
1
+ import{j as s,aN as v,f as d,aX as _,g as j,bu as N,bs as y,B as E,as as $,bL as C,bV as f,bW as A,bX as M,c as k,d as P,r as l,bY as W,aI as p,aJ as x,u as z,aQ as O,aS as L}from"./index-BE90AH0f.js";import{S as q}from"./settings-screen-rgIOa3Ee.js";import{f as B}from"./ErrorState-BNnnxDbP.js";import{C as D}from"./copy-CbHqgY7X.js";import{E as U}from"./external-link-Bfn-66mf.js";import{B as h}from"./bug-BbhYeiVI.js";import{C as S}from"./circle-check-31Q-0iEc.js";import{S as F}from"./SignInAgain-DIgmG5Xl.js";import{u as G}from"./useResultFolderIndex-ed8HMu5v.js";import{w as H}from"./help-copy-DegCGm_b.js";import"./avatar-Dwc7bokL.js";import"./chevron-left-DbfZRdMR.js";import"./menu-DkStCsJd.js";import"./circle-help-B58He0k3.js";import"./useQueries-DDQNJNeh.js";import"./kbd-rrE63A-o.js";function Q({report:e,onClose:t,issueUrl:a,onCopy:n}){return e===null?null:s.jsx(v,{open:!0,onClose:t,title:"Report this message",children:s.jsxs("div",{className:"flex max-h-[80vh] flex-col",children:[s.jsxs("header",{className:"space-y-1 border-b border-line px-4 py-3",children:[s.jsx("h3",{className:"text-sm font-semibold text-fg",children:"Report this message"}),s.jsx("p",{className:"text-xs text-fg-muted",children:"This is everything the report contains. It describes what went wrong with the message — never its contents, addresses, subject, attachment names, folder name, or the parser's own error text."})]}),s.jsx("pre",{className:"flex-1 overflow-auto bg-surface-sunken px-4 py-3 text-2xs leading-relaxed whitespace-pre-wrap text-fg-muted",children:e}),s.jsxs("footer",{className:"flex flex-wrap items-center justify-end gap-2 border-t border-line px-4 py-3",children:[s.jsx(d,{variant:"ghost",size:"sm",onClick:t,children:"Cancel"}),s.jsx(d,{variant:"secondary",size:"sm",icon:s.jsx(D,{className:"size-3.5"}),onClick:()=>n(e),children:"Copy report"}),s.jsx(_,{external:!0,size:"sm",href:a,icon:s.jsx(U,{className:"size-3.5"}),children:"Open on GitHub"})]})]})})}const V={BodyParse:"The message is built in a way Remit could not read."};function Y(e){return V[e]}function R(e){return e.split(";")[0].trim()}const b=/^[A-Za-z0-9!#$%&'*+._-]+$/,T=/^[A-Za-z0-9!#$%&'*+._-]+\/[A-Za-z0-9!#$%&'*+._-]+$/;function m(e,t){return t.test(e)?`\`${e}\``:`\`${JSON.stringify(e).replace(/`/g,"\\u0060")}\` (malformed)`}function J(e){const t=R(e);return T.test(t)?t:JSON.stringify(t)}const g="_not read_";function Z(e){return e.length===0?["(no MIME structure was read)"]:e.map(t=>`${" ".repeat(t.depth)}- ${J(t.contentType)}`)}const X="_No message content, addresses, subject, attachment names or parser output are included._";function I(e){return{head:[`### Message quarantined at \`${e.failureStage}\``,"",`- **Failure**: \`${e.failureCode}\``,`- **Folder role**: ${e.mailboxRole??"_none appointed_"}`,`- **Failing part**: ${e.failurePartPath==null?"_whole message_":`\`${e.failurePartPath}\``}`,`- **Attempts before quarantine**: ${e.attempts}`,`- **Worker build**: ${e.workerVersion}`,`- **Message-ID hash**: ${e.messageIdHash==null?"_none declared_":`\`${e.messageIdHash}\``}`,"","#### Message shape","",`- **Content-Type**: ${e.contentType==null?g:m(R(e.contentType),T)}`,`- **Content-Transfer-Encoding**: ${e.transferEncoding==null?g:m(e.transferEncoding,b)}`,`- **Charset**: ${e.charset==null?"_not declared_":m(e.charset,b)}`,`- **Size**: ${e.sizeBytes==null?g:`${e.sizeBytes} bytes`}`,"","MIME structure:"].join(`
2
2
  `),structure:Z(e.structure).join(`
3
3
  `),disclaimer:X}}function K(e){const{head:t,structure:a,disclaimer:n}=I(e);return[t,"","```",a,"```","",n].join(`
4
4
  `)}function ee(e){return`Message quarantined: ${e.failureCode} at ${e.failureStage}`}function se(e){return new Date(e).toLocaleString(void 0,{dateStyle:"medium",timeStyle:"short"})}function te({entry:e,onCutBug:t}){return s.jsxs("li",{className:"flex flex-col gap-2 border-b border-line px-row-inset py-3 last:border-b-0 sm:flex-row sm:items-start sm:justify-between",children:[s.jsxs("div",{className:"min-w-0 space-y-1",children:[s.jsx("p",{className:"text-sm text-fg",children:Y(e.failureStage)}),s.jsx("p",{className:"truncate text-xs text-fg-muted",title:e.failureMessage,children:e.failureMessage}),s.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-2xs text-fg-subtle",children:[e.mailboxRole&&s.jsx(j,{tone:"warning",children:N(e.mailboxRole)}),s.jsx("span",{className:"truncate",title:e.mailboxPath,children:y(e.mailboxPath,e.mailboxDelimiter)}),s.jsx("span",{"aria-hidden":!0,children:"·"}),s.jsx("span",{children:`uid ${e.uid}`}),s.jsx("span",{"aria-hidden":!0,children:"·"}),s.jsx("span",{children:se(e.quarantinedAt)}),e.attempts>1&&s.jsxs(s.Fragment,{children:[s.jsx("span",{"aria-hidden":!0,children:"·"}),s.jsx("span",{children:`${e.attempts} attempts`})]})]})]}),s.jsx(d,{variant:"secondary",size:"sm",className:"shrink-0",icon:s.jsx(h,{className:"size-3.5"}),onClick:()=>t(e),children:"Cut a bug"})]})}function ae({entries:e,onCutBug:t}){return s.jsxs("section",{className:"space-y-3",children:[s.jsxs("header",{className:"space-y-1",children:[s.jsx("h2",{className:"text-sm font-semibold text-fg",children:"Messages set aside"}),s.jsx("p",{className:"text-xs text-fg-muted",children:"Mail Remit could not read is set aside here instead of being skipped, so nothing goes missing quietly. The rest of the folder keeps syncing. Recovering a set-aside message is a re-sync, not a per-row action."})]}),e.length===0&&s.jsxs("div",{className:"flex items-center gap-2 rounded-sm border border-line bg-surface px-row-inset py-3",children:[s.jsx(S,{className:"size-4 shrink-0 text-positive","aria-hidden":!0}),s.jsx("p",{className:"text-sm text-fg-muted",children:"Every message has been read successfully. Nothing is set aside."})]}),e.length>1&&s.jsx(E,{tone:"warning",children:s.jsxs("p",{className:"flex items-start gap-2",children:[s.jsx($,{className:"mt-0.5 size-4 shrink-0","aria-hidden":!0}),s.jsxs("span",{children:[s.jsx("span",{className:"font-semibold",children:`${e.length} messages could not be read.`})," ","More than one means something is wrong with how Remit reads mail, not with the mail. Reporting one of these gets it fixed."]})]})}),e.length>0&&s.jsx("ul",{className:"rounded-sm border border-line bg-surface",children:e.map(a=>s.jsx(te,{entry:a,onCutBug:t},a.quarantineId))})]})}const ne={Retrying:"The message could not be synced. Remit tries again every sync.",GaveUp:"The message body could not be downloaded. Remit has stopped trying."};function re(e){return ne[e.state]}const ie="_No message content, addresses, subject, folder name or error text are included._";function oe(e){return[`### Message failed to sync at \`${e.stage}\``,"",`- **State**: \`${e.state}\``,`- **Attempts**: ${e.attempts}`,"",ie].join(`
package/index.html CHANGED
@@ -38,7 +38,7 @@
38
38
  } catch (_) {}
39
39
  })();
40
40
  </script>
41
- <script type="module" crossorigin src="/assets/index-Wv8c0Cef.js"></script>
41
+ <script type="module" crossorigin src="/assets/index-BE90AH0f.js"></script>
42
42
  <link rel="stylesheet" crossorigin href="/assets/index-C2Hz4y-Q.css">
43
43
  </head>
44
44
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/web-client-dist",
3
- "version": "0.0.663",
3
+ "version": "0.0.664",
4
4
  "description": "Built Remit web client — static assets and the default runtime config.",
5
5
  "files": [
6
6
  "**/*"
@@ -1 +0,0 @@
1
- import{O as o}from"./index-Wv8c0Cef.js";const n=o;export{n as component};
@@ -1 +0,0 @@
1
- import{ak as m,j as o,O as p}from"./index-Wv8c0Cef.js";import{a}from"./MailShell-B9VHr1WV.js";import{M as r}from"./MailboxPane-6rJUIVAp.js";import{a as e}from"./search-token-index-szRvQ-tK.js";import{u as s}from"./search-mirror-CSlDwAtJ.js";import"./FullCompose-Crr9KRKw.js";import"./ErrorState-DqW4OEtW.js";import"./index-BBQAf9F4.js";import"./useMessageBodyContent-WV6nV5Bm.js";import"./useSignature-B9Z9InVd.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Q88aYVIL.js";import"./sections-CfSI2UtL.js";import"./confirm-dialog-DGafATnR.js";import"./useSearchTokenContext-C3oyk8pN.js";import"./kbd-HjgyEn1g.js";import"./search-scope-UI1H6AzA.js";import"./useRefreshControl-nmkAizSf.js";import"./circle-check-big-F3heiIFI.js";import"./refresh-cw-CaBRf4Us.js";import"./useQueries-DtWE4kIN.js";import"./MailListHeader-CjvExg8_.js";import"./roving-focus-BsJotUNk.js";import"./EmptyState-Df23Lhmp.js";import"./popover-menu-Caepi0HZ.js";import"./mail-DSj57O5V.js";import"./avatar-DRUm_y0q.js";import"./undo-2-BjmbmAx6.js";import"./download-CltRXz9h.js";import"./useCalendarFreeBusy-BBFXZXUz.js";import"./calendar-format-DRfWTU9-.js";import"./useCalendars-DgDmdvYf.js";import"./map-pin-qq7Lo5y-.js";import"./useLayoutTier-DCItpYfR.js";import"./calendar-suggestion-BucSFzrj.js";import"./attendee-row-OgzaiA5U.js";import"./minus-_vDOrVkG.js";import"./clock-Bdp8SmuL.js";import"./calendar-clash-strip-9I3eXoZi.js";import"./bell-off-BS_-mm0c.js";import"./shield-check-CQtTmUZr.js";import"./calendar-report-C-Ht8fqx.js";import"./useFilters-Cz2eY9Q-.js";import"./checkbox-B9eUA8Gk.js";import"./menu-CEMm7JqZ.js";import"./MailViewChrome-mydzxRNV.js";import"./search-query-ByYOBTBl.js";import"./NavMenuButton--1PboB0o.js";import"./useLabels-Cz56YPmG.js";import"./result-count-B338rKnr.js";import"./bottom-sheet-CfAOJ5gB.js";import"./circle-help-cUvExqqK.js";import"./circle-check-BY9d0nWp.js";function so(){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{so as component};
@@ -1 +0,0 @@
1
- import{j as r}from"./index-Wv8c0Cef.js";import{B as o}from"./BriefPane-D-E75liw.js";import"./useSearchTokenContext-C3oyk8pN.js";import"./kbd-HjgyEn1g.js";import"./useMessageBodyContent-WV6nV5Bm.js";import"./search-scope-UI1H6AzA.js";import"./MailListHeader-CjvExg8_.js";import"./roving-focus-BsJotUNk.js";import"./search-token-index-szRvQ-tK.js";import"./useQueries-DtWE4kIN.js";import"./EmptyState-Df23Lhmp.js";import"./ErrorState-DqW4OEtW.js";import"./popover-menu-Caepi0HZ.js";import"./mail-DSj57O5V.js";import"./avatar-DRUm_y0q.js";import"./index-BBQAf9F4.js";import"./useSignature-B9Z9InVd.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Q88aYVIL.js";import"./sections-CfSI2UtL.js";import"./undo-2-BjmbmAx6.js";import"./download-CltRXz9h.js";import"./useCalendarFreeBusy-BBFXZXUz.js";import"./calendar-format-DRfWTU9-.js";import"./useCalendars-DgDmdvYf.js";import"./map-pin-qq7Lo5y-.js";import"./useLayoutTier-DCItpYfR.js";import"./calendar-suggestion-BucSFzrj.js";import"./attendee-row-OgzaiA5U.js";import"./minus-_vDOrVkG.js";import"./clock-Bdp8SmuL.js";import"./calendar-clash-strip-9I3eXoZi.js";import"./bell-off-BS_-mm0c.js";import"./shield-check-CQtTmUZr.js";import"./calendar-report-C-Ht8fqx.js";import"./useFilters-Cz2eY9Q-.js";import"./checkbox-B9eUA8Gk.js";import"./confirm-dialog-DGafATnR.js";import"./menu-CEMm7JqZ.js";import"./useRefreshControl-nmkAizSf.js";import"./circle-check-big-F3heiIFI.js";import"./refresh-cw-CaBRf4Us.js";import"./result-count-B338rKnr.js";import"./useLabels-Cz56YPmG.js";import"./wizard-selection-zWa1qc6-.js";function V(){return r.jsx(o.Reading,{})}export{V as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-Wv8c0Cef.js";import{F as r}from"./FlaggedPane-BNJQ69cY.js";import"./useSearchTokenContext-C3oyk8pN.js";import"./kbd-HjgyEn1g.js";import"./useMessageBodyContent-WV6nV5Bm.js";import"./search-scope-UI1H6AzA.js";import"./MailListHeader-CjvExg8_.js";import"./roving-focus-BsJotUNk.js";import"./search-token-index-szRvQ-tK.js";import"./useQueries-DtWE4kIN.js";import"./EmptyState-Df23Lhmp.js";import"./ErrorState-DqW4OEtW.js";import"./popover-menu-Caepi0HZ.js";import"./mail-DSj57O5V.js";import"./avatar-DRUm_y0q.js";import"./index-BBQAf9F4.js";import"./useSignature-B9Z9InVd.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Q88aYVIL.js";import"./sections-CfSI2UtL.js";import"./undo-2-BjmbmAx6.js";import"./download-CltRXz9h.js";import"./useCalendarFreeBusy-BBFXZXUz.js";import"./calendar-format-DRfWTU9-.js";import"./useCalendars-DgDmdvYf.js";import"./map-pin-qq7Lo5y-.js";import"./useLayoutTier-DCItpYfR.js";import"./calendar-suggestion-BucSFzrj.js";import"./attendee-row-OgzaiA5U.js";import"./minus-_vDOrVkG.js";import"./clock-Bdp8SmuL.js";import"./calendar-clash-strip-9I3eXoZi.js";import"./bell-off-BS_-mm0c.js";import"./shield-check-CQtTmUZr.js";import"./calendar-report-C-Ht8fqx.js";import"./useFilters-Cz2eY9Q-.js";import"./checkbox-B9eUA8Gk.js";import"./confirm-dialog-DGafATnR.js";import"./menu-CEMm7JqZ.js";import"./MailViewChrome-mydzxRNV.js";import"./refresh-cw-CaBRf4Us.js";import"./wizard-selection-zWa1qc6-.js";function S(){return o.jsx(r.Reading,{})}export{S as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-Wv8c0Cef.js";import{M as r}from"./MailboxPane-6rJUIVAp.js";import"./useSearchTokenContext-C3oyk8pN.js";import"./kbd-HjgyEn1g.js";import"./useMessageBodyContent-WV6nV5Bm.js";import"./search-scope-UI1H6AzA.js";import"./useRefreshControl-nmkAizSf.js";import"./circle-check-big-F3heiIFI.js";import"./refresh-cw-CaBRf4Us.js";import"./useQueries-DtWE4kIN.js";import"./MailListHeader-CjvExg8_.js";import"./roving-focus-BsJotUNk.js";import"./search-token-index-szRvQ-tK.js";import"./EmptyState-Df23Lhmp.js";import"./ErrorState-DqW4OEtW.js";import"./popover-menu-Caepi0HZ.js";import"./mail-DSj57O5V.js";import"./avatar-DRUm_y0q.js";import"./index-BBQAf9F4.js";import"./useSignature-B9Z9InVd.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Q88aYVIL.js";import"./sections-CfSI2UtL.js";import"./undo-2-BjmbmAx6.js";import"./download-CltRXz9h.js";import"./useCalendarFreeBusy-BBFXZXUz.js";import"./calendar-format-DRfWTU9-.js";import"./useCalendars-DgDmdvYf.js";import"./map-pin-qq7Lo5y-.js";import"./useLayoutTier-DCItpYfR.js";import"./calendar-suggestion-BucSFzrj.js";import"./attendee-row-OgzaiA5U.js";import"./minus-_vDOrVkG.js";import"./clock-Bdp8SmuL.js";import"./calendar-clash-strip-9I3eXoZi.js";import"./bell-off-BS_-mm0c.js";import"./shield-check-CQtTmUZr.js";import"./calendar-report-C-Ht8fqx.js";import"./useFilters-Cz2eY9Q-.js";import"./checkbox-B9eUA8Gk.js";import"./confirm-dialog-DGafATnR.js";import"./menu-CEMm7JqZ.js";import"./MailViewChrome-mydzxRNV.js";import"./search-query-ByYOBTBl.js";import"./NavMenuButton--1PboB0o.js";import"./useLabels-Cz56YPmG.js";import"./result-count-B338rKnr.js";import"./bottom-sheet-CfAOJ5gB.js";import"./circle-help-cUvExqqK.js";import"./circle-check-BY9d0nWp.js";function _(){return o.jsx(r.Reading,{})}export{_ as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-Wv8c0Cef.js";import{O as t}from"./OutboxPane-CjJAyT6z.js";import"./roving-focus-BsJotUNk.js";import"./useSearchTokenContext-C3oyk8pN.js";import"./kbd-HjgyEn1g.js";import"./useMessageBodyContent-WV6nV5Bm.js";import"./search-scope-UI1H6AzA.js";import"./circle-check-big-F3heiIFI.js";import"./clock-Bdp8SmuL.js";import"./row-actions-Dh5B7_7r.js";import"./rotate-ccw-X3r30Ts7.js";import"./search-query-ByYOBTBl.js";import"./NavMenuButton--1PboB0o.js";import"./menu-CEMm7JqZ.js";import"./outbox-status-BlKn6P0x.js";function P(){return o.jsx(t.Reading,{})}export{P as component};
@@ -1 +0,0 @@
1
- import{fa as o,j as m}from"./index-Wv8c0Cef.js";import{O as p}from"./OpenCalendarEvent-OXk9INRi.js";import"./SignInAgain-H6RH3k22.js";import"./CalendarComposePane-BYi1w59D.js";import"./calendar-format-DRfWTU9-.js";import"./useQueries-DtWE4kIN.js";import"./useCalendars-DgDmdvYf.js";import"./calendar-clash-strip-9I3eXoZi.js";import"./attendee-row-OgzaiA5U.js";import"./avatar-DRUm_y0q.js";import"./minus-_vDOrVkG.js";import"./clock-Bdp8SmuL.js";import"./map-pin-qq7Lo5y-.js";import"./mail-DSj57O5V.js";import"./pencil-DP5wP8Ya.js";import"./useCalendarWrites-Bmv62L2A.js";import"./ErrorState-DqW4OEtW.js";import"./useCalendarData-B6jp8L5b.js";import"./calendar-report-C-Ht8fqx.js";import"./calendar-subscription-B-aAc2Gy.js";function g(){const{calendarObjectId:r,recurrenceId:t}=o.useParams();return m.jsx(p,{calendarObjectId:r,recurrenceId:t})}export{g as component};
@@ -1 +0,0 @@
1
- import{O as o}from"./index-Wv8c0Cef.js";const n=o;export{n as component};
@@ -1 +0,0 @@
1
- import{O as o}from"./index-Wv8c0Cef.js";const n=o;export{n as component};
@@ -1 +0,0 @@
1
- import{O as o}from"./index-Wv8c0Cef.js";const n=o;export{n as component};
@@ -1 +0,0 @@
1
- import{j as r,O as i}from"./index-Wv8c0Cef.js";import{a as m}from"./MailShell-B9VHr1WV.js";import{B as o}from"./BriefPane-D-E75liw.js";import{a as p}from"./search-token-index-szRvQ-tK.js";import{u as e}from"./search-mirror-CSlDwAtJ.js";import"./FullCompose-Crr9KRKw.js";import"./ErrorState-DqW4OEtW.js";import"./index-BBQAf9F4.js";import"./useMessageBodyContent-WV6nV5Bm.js";import"./useSignature-B9Z9InVd.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Q88aYVIL.js";import"./sections-CfSI2UtL.js";import"./confirm-dialog-DGafATnR.js";import"./useSearchTokenContext-C3oyk8pN.js";import"./kbd-HjgyEn1g.js";import"./search-scope-UI1H6AzA.js";import"./MailListHeader-CjvExg8_.js";import"./roving-focus-BsJotUNk.js";import"./EmptyState-Df23Lhmp.js";import"./popover-menu-Caepi0HZ.js";import"./mail-DSj57O5V.js";import"./avatar-DRUm_y0q.js";import"./undo-2-BjmbmAx6.js";import"./download-CltRXz9h.js";import"./useCalendarFreeBusy-BBFXZXUz.js";import"./calendar-format-DRfWTU9-.js";import"./useQueries-DtWE4kIN.js";import"./useCalendars-DgDmdvYf.js";import"./map-pin-qq7Lo5y-.js";import"./useLayoutTier-DCItpYfR.js";import"./calendar-suggestion-BucSFzrj.js";import"./attendee-row-OgzaiA5U.js";import"./minus-_vDOrVkG.js";import"./clock-Bdp8SmuL.js";import"./calendar-clash-strip-9I3eXoZi.js";import"./bell-off-BS_-mm0c.js";import"./shield-check-CQtTmUZr.js";import"./calendar-report-C-Ht8fqx.js";import"./useFilters-Cz2eY9Q-.js";import"./checkbox-B9eUA8Gk.js";import"./menu-CEMm7JqZ.js";import"./useRefreshControl-nmkAizSf.js";import"./circle-check-big-F3heiIFI.js";import"./refresh-cw-CaBRf4Us.js";import"./result-count-B338rKnr.js";import"./useLabels-Cz56YPmG.js";import"./wizard-selection-zWa1qc6-.js";function or(){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{or as component};
@@ -1 +0,0 @@
1
- import{e}from"./index-Wv8c0Cef.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-Crr9KRKw.js";import"./index-Wv8c0Cef.js";import"./ErrorState-DqW4OEtW.js";import"./index-BBQAf9F4.js";import"./useMessageBodyContent-WV6nV5Bm.js";import"./useSignature-B9Z9InVd.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Q88aYVIL.js";import"./sections-CfSI2UtL.js";import"./confirm-dialog-DGafATnR.js";const c=o;export{c as component};
@@ -1 +0,0 @@
1
- import{F as o}from"./FullCompose-Crr9KRKw.js";import"./index-Wv8c0Cef.js";import"./ErrorState-DqW4OEtW.js";import"./index-BBQAf9F4.js";import"./useMessageBodyContent-WV6nV5Bm.js";import"./useSignature-B9Z9InVd.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Q88aYVIL.js";import"./sections-CfSI2UtL.js";import"./confirm-dialog-DGafATnR.js";const c=o;export{c as component};
@@ -1 +0,0 @@
1
- import{F as o}from"./FullCompose-Crr9KRKw.js";import"./index-Wv8c0Cef.js";import"./ErrorState-DqW4OEtW.js";import"./index-BBQAf9F4.js";import"./useMessageBodyContent-WV6nV5Bm.js";import"./useSignature-B9Z9InVd.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Q88aYVIL.js";import"./sections-CfSI2UtL.js";import"./confirm-dialog-DGafATnR.js";const c=o;export{c as component};
@@ -1 +0,0 @@
1
- import{F as o}from"./FullCompose-Crr9KRKw.js";import"./index-Wv8c0Cef.js";import"./ErrorState-DqW4OEtW.js";import"./index-BBQAf9F4.js";import"./useMessageBodyContent-WV6nV5Bm.js";import"./useSignature-B9Z9InVd.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Q88aYVIL.js";import"./sections-CfSI2UtL.js";import"./confirm-dialog-DGafATnR.js";const c=o;export{c as component};
@@ -1 +0,0 @@
1
- import{j as o,O as i}from"./index-Wv8c0Cef.js";import{a as m}from"./MailShell-B9VHr1WV.js";import{F as r}from"./FlaggedPane-BNJQ69cY.js";import{a as p}from"./search-token-index-szRvQ-tK.js";import{u as e}from"./search-mirror-CSlDwAtJ.js";import"./FullCompose-Crr9KRKw.js";import"./ErrorState-DqW4OEtW.js";import"./index-BBQAf9F4.js";import"./useMessageBodyContent-WV6nV5Bm.js";import"./useSignature-B9Z9InVd.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Q88aYVIL.js";import"./sections-CfSI2UtL.js";import"./confirm-dialog-DGafATnR.js";import"./useSearchTokenContext-C3oyk8pN.js";import"./kbd-HjgyEn1g.js";import"./search-scope-UI1H6AzA.js";import"./MailListHeader-CjvExg8_.js";import"./roving-focus-BsJotUNk.js";import"./EmptyState-Df23Lhmp.js";import"./popover-menu-Caepi0HZ.js";import"./mail-DSj57O5V.js";import"./avatar-DRUm_y0q.js";import"./undo-2-BjmbmAx6.js";import"./download-CltRXz9h.js";import"./useCalendarFreeBusy-BBFXZXUz.js";import"./calendar-format-DRfWTU9-.js";import"./useQueries-DtWE4kIN.js";import"./useCalendars-DgDmdvYf.js";import"./map-pin-qq7Lo5y-.js";import"./useLayoutTier-DCItpYfR.js";import"./calendar-suggestion-BucSFzrj.js";import"./attendee-row-OgzaiA5U.js";import"./minus-_vDOrVkG.js";import"./clock-Bdp8SmuL.js";import"./calendar-clash-strip-9I3eXoZi.js";import"./bell-off-BS_-mm0c.js";import"./shield-check-CQtTmUZr.js";import"./calendar-report-C-Ht8fqx.js";import"./useFilters-Cz2eY9Q-.js";import"./checkbox-B9eUA8Gk.js";import"./menu-CEMm7JqZ.js";import"./MailViewChrome-mydzxRNV.js";import"./refresh-cw-CaBRf4Us.js";import"./wizard-selection-zWa1qc6-.js";function _(){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{_ as component};
@@ -1 +0,0 @@
1
- import{j as r}from"./index-Wv8c0Cef.js";import{B as o}from"./BriefPane-D-E75liw.js";import"./useSearchTokenContext-C3oyk8pN.js";import"./kbd-HjgyEn1g.js";import"./useMessageBodyContent-WV6nV5Bm.js";import"./search-scope-UI1H6AzA.js";import"./MailListHeader-CjvExg8_.js";import"./roving-focus-BsJotUNk.js";import"./search-token-index-szRvQ-tK.js";import"./useQueries-DtWE4kIN.js";import"./EmptyState-Df23Lhmp.js";import"./ErrorState-DqW4OEtW.js";import"./popover-menu-Caepi0HZ.js";import"./mail-DSj57O5V.js";import"./avatar-DRUm_y0q.js";import"./index-BBQAf9F4.js";import"./useSignature-B9Z9InVd.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Q88aYVIL.js";import"./sections-CfSI2UtL.js";import"./undo-2-BjmbmAx6.js";import"./download-CltRXz9h.js";import"./useCalendarFreeBusy-BBFXZXUz.js";import"./calendar-format-DRfWTU9-.js";import"./useCalendars-DgDmdvYf.js";import"./map-pin-qq7Lo5y-.js";import"./useLayoutTier-DCItpYfR.js";import"./calendar-suggestion-BucSFzrj.js";import"./attendee-row-OgzaiA5U.js";import"./minus-_vDOrVkG.js";import"./clock-Bdp8SmuL.js";import"./calendar-clash-strip-9I3eXoZi.js";import"./bell-off-BS_-mm0c.js";import"./shield-check-CQtTmUZr.js";import"./calendar-report-C-Ht8fqx.js";import"./useFilters-Cz2eY9Q-.js";import"./checkbox-B9eUA8Gk.js";import"./confirm-dialog-DGafATnR.js";import"./menu-CEMm7JqZ.js";import"./useRefreshControl-nmkAizSf.js";import"./circle-check-big-F3heiIFI.js";import"./refresh-cw-CaBRf4Us.js";import"./result-count-B338rKnr.js";import"./useLabels-Cz56YPmG.js";import"./wizard-selection-zWa1qc6-.js";function V(){return r.jsx(o.Reading,{})}export{V as component};
@@ -1 +0,0 @@
1
- import{j as t,ao as o}from"./index-Wv8c0Cef.js";const n=()=>t.jsx(o,{to:"/settings/accounts"});export{n as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-Wv8c0Cef.js";import{F as r}from"./FlaggedPane-BNJQ69cY.js";import"./useSearchTokenContext-C3oyk8pN.js";import"./kbd-HjgyEn1g.js";import"./useMessageBodyContent-WV6nV5Bm.js";import"./search-scope-UI1H6AzA.js";import"./MailListHeader-CjvExg8_.js";import"./roving-focus-BsJotUNk.js";import"./search-token-index-szRvQ-tK.js";import"./useQueries-DtWE4kIN.js";import"./EmptyState-Df23Lhmp.js";import"./ErrorState-DqW4OEtW.js";import"./popover-menu-Caepi0HZ.js";import"./mail-DSj57O5V.js";import"./avatar-DRUm_y0q.js";import"./index-BBQAf9F4.js";import"./useSignature-B9Z9InVd.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Q88aYVIL.js";import"./sections-CfSI2UtL.js";import"./undo-2-BjmbmAx6.js";import"./download-CltRXz9h.js";import"./useCalendarFreeBusy-BBFXZXUz.js";import"./calendar-format-DRfWTU9-.js";import"./useCalendars-DgDmdvYf.js";import"./map-pin-qq7Lo5y-.js";import"./useLayoutTier-DCItpYfR.js";import"./calendar-suggestion-BucSFzrj.js";import"./attendee-row-OgzaiA5U.js";import"./minus-_vDOrVkG.js";import"./clock-Bdp8SmuL.js";import"./calendar-clash-strip-9I3eXoZi.js";import"./bell-off-BS_-mm0c.js";import"./shield-check-CQtTmUZr.js";import"./calendar-report-C-Ht8fqx.js";import"./useFilters-Cz2eY9Q-.js";import"./checkbox-B9eUA8Gk.js";import"./confirm-dialog-DGafATnR.js";import"./menu-CEMm7JqZ.js";import"./MailViewChrome-mydzxRNV.js";import"./refresh-cw-CaBRf4Us.js";import"./wizard-selection-zWa1qc6-.js";function S(){return o.jsx(r.Reading,{})}export{S as component};
@@ -1 +0,0 @@
1
- import{j as r}from"./index-Wv8c0Cef.js";import{B as o}from"./BriefPane-D-E75liw.js";import"./useSearchTokenContext-C3oyk8pN.js";import"./kbd-HjgyEn1g.js";import"./useMessageBodyContent-WV6nV5Bm.js";import"./search-scope-UI1H6AzA.js";import"./MailListHeader-CjvExg8_.js";import"./roving-focus-BsJotUNk.js";import"./search-token-index-szRvQ-tK.js";import"./useQueries-DtWE4kIN.js";import"./EmptyState-Df23Lhmp.js";import"./ErrorState-DqW4OEtW.js";import"./popover-menu-Caepi0HZ.js";import"./mail-DSj57O5V.js";import"./avatar-DRUm_y0q.js";import"./index-BBQAf9F4.js";import"./useSignature-B9Z9InVd.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Q88aYVIL.js";import"./sections-CfSI2UtL.js";import"./undo-2-BjmbmAx6.js";import"./download-CltRXz9h.js";import"./useCalendarFreeBusy-BBFXZXUz.js";import"./calendar-format-DRfWTU9-.js";import"./useCalendars-DgDmdvYf.js";import"./map-pin-qq7Lo5y-.js";import"./useLayoutTier-DCItpYfR.js";import"./calendar-suggestion-BucSFzrj.js";import"./attendee-row-OgzaiA5U.js";import"./minus-_vDOrVkG.js";import"./clock-Bdp8SmuL.js";import"./calendar-clash-strip-9I3eXoZi.js";import"./bell-off-BS_-mm0c.js";import"./shield-check-CQtTmUZr.js";import"./calendar-report-C-Ht8fqx.js";import"./useFilters-Cz2eY9Q-.js";import"./checkbox-B9eUA8Gk.js";import"./confirm-dialog-DGafATnR.js";import"./menu-CEMm7JqZ.js";import"./useRefreshControl-nmkAizSf.js";import"./circle-check-big-F3heiIFI.js";import"./refresh-cw-CaBRf4Us.js";import"./result-count-B338rKnr.js";import"./useLabels-Cz56YPmG.js";import"./wizard-selection-zWa1qc6-.js";function V(){return r.jsx(o.Reading,{})}export{V as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-Wv8c0Cef.js";import{F as r}from"./FlaggedPane-BNJQ69cY.js";import"./useSearchTokenContext-C3oyk8pN.js";import"./kbd-HjgyEn1g.js";import"./useMessageBodyContent-WV6nV5Bm.js";import"./search-scope-UI1H6AzA.js";import"./MailListHeader-CjvExg8_.js";import"./roving-focus-BsJotUNk.js";import"./search-token-index-szRvQ-tK.js";import"./useQueries-DtWE4kIN.js";import"./EmptyState-Df23Lhmp.js";import"./ErrorState-DqW4OEtW.js";import"./popover-menu-Caepi0HZ.js";import"./mail-DSj57O5V.js";import"./avatar-DRUm_y0q.js";import"./index-BBQAf9F4.js";import"./useSignature-B9Z9InVd.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Q88aYVIL.js";import"./sections-CfSI2UtL.js";import"./undo-2-BjmbmAx6.js";import"./download-CltRXz9h.js";import"./useCalendarFreeBusy-BBFXZXUz.js";import"./calendar-format-DRfWTU9-.js";import"./useCalendars-DgDmdvYf.js";import"./map-pin-qq7Lo5y-.js";import"./useLayoutTier-DCItpYfR.js";import"./calendar-suggestion-BucSFzrj.js";import"./attendee-row-OgzaiA5U.js";import"./minus-_vDOrVkG.js";import"./clock-Bdp8SmuL.js";import"./calendar-clash-strip-9I3eXoZi.js";import"./bell-off-BS_-mm0c.js";import"./shield-check-CQtTmUZr.js";import"./calendar-report-C-Ht8fqx.js";import"./useFilters-Cz2eY9Q-.js";import"./checkbox-B9eUA8Gk.js";import"./confirm-dialog-DGafATnR.js";import"./menu-CEMm7JqZ.js";import"./MailViewChrome-mydzxRNV.js";import"./refresh-cw-CaBRf4Us.js";import"./wizard-selection-zWa1qc6-.js";function Q(){return o.jsx(r.Reading,{})}export{Q as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-Wv8c0Cef.js";import{O as t}from"./OutboxPane-CjJAyT6z.js";import"./roving-focus-BsJotUNk.js";import"./useSearchTokenContext-C3oyk8pN.js";import"./kbd-HjgyEn1g.js";import"./useMessageBodyContent-WV6nV5Bm.js";import"./search-scope-UI1H6AzA.js";import"./circle-check-big-F3heiIFI.js";import"./clock-Bdp8SmuL.js";import"./row-actions-Dh5B7_7r.js";import"./rotate-ccw-X3r30Ts7.js";import"./search-query-ByYOBTBl.js";import"./NavMenuButton--1PboB0o.js";import"./menu-CEMm7JqZ.js";import"./outbox-status-BlKn6P0x.js";function c(){return o.jsx(t.Reading,{})}export{c as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-Wv8c0Cef.js";import{M as i}from"./MailboxPane-6rJUIVAp.js";import"./useSearchTokenContext-C3oyk8pN.js";import"./kbd-HjgyEn1g.js";import"./useMessageBodyContent-WV6nV5Bm.js";import"./search-scope-UI1H6AzA.js";import"./useRefreshControl-nmkAizSf.js";import"./circle-check-big-F3heiIFI.js";import"./refresh-cw-CaBRf4Us.js";import"./useQueries-DtWE4kIN.js";import"./MailListHeader-CjvExg8_.js";import"./roving-focus-BsJotUNk.js";import"./search-token-index-szRvQ-tK.js";import"./EmptyState-Df23Lhmp.js";import"./ErrorState-DqW4OEtW.js";import"./popover-menu-Caepi0HZ.js";import"./mail-DSj57O5V.js";import"./avatar-DRUm_y0q.js";import"./index-BBQAf9F4.js";import"./useSignature-B9Z9InVd.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Q88aYVIL.js";import"./sections-CfSI2UtL.js";import"./undo-2-BjmbmAx6.js";import"./download-CltRXz9h.js";import"./useCalendarFreeBusy-BBFXZXUz.js";import"./calendar-format-DRfWTU9-.js";import"./useCalendars-DgDmdvYf.js";import"./map-pin-qq7Lo5y-.js";import"./useLayoutTier-DCItpYfR.js";import"./calendar-suggestion-BucSFzrj.js";import"./attendee-row-OgzaiA5U.js";import"./minus-_vDOrVkG.js";import"./clock-Bdp8SmuL.js";import"./calendar-clash-strip-9I3eXoZi.js";import"./bell-off-BS_-mm0c.js";import"./shield-check-CQtTmUZr.js";import"./calendar-report-C-Ht8fqx.js";import"./useFilters-Cz2eY9Q-.js";import"./checkbox-B9eUA8Gk.js";import"./confirm-dialog-DGafATnR.js";import"./menu-CEMm7JqZ.js";import"./MailViewChrome-mydzxRNV.js";import"./search-query-ByYOBTBl.js";import"./NavMenuButton--1PboB0o.js";import"./useLabels-Cz56YPmG.js";import"./result-count-B338rKnr.js";import"./bottom-sheet-CfAOJ5gB.js";import"./circle-help-cUvExqqK.js";import"./circle-check-BY9d0nWp.js";function _(){return o.jsx(i.Reading,{})}export{_ as component};
@@ -1 +0,0 @@
1
- import{f8 as o,j as r}from"./index-Wv8c0Cef.js";import{O as m}from"./OpenCalendarEvent-OXk9INRi.js";import"./SignInAgain-H6RH3k22.js";import"./CalendarComposePane-BYi1w59D.js";import"./calendar-format-DRfWTU9-.js";import"./useQueries-DtWE4kIN.js";import"./useCalendars-DgDmdvYf.js";import"./calendar-clash-strip-9I3eXoZi.js";import"./attendee-row-OgzaiA5U.js";import"./avatar-DRUm_y0q.js";import"./minus-_vDOrVkG.js";import"./clock-Bdp8SmuL.js";import"./map-pin-qq7Lo5y-.js";import"./mail-DSj57O5V.js";import"./pencil-DP5wP8Ya.js";import"./useCalendarWrites-Bmv62L2A.js";import"./ErrorState-DqW4OEtW.js";import"./useCalendarData-B6jp8L5b.js";import"./calendar-report-C-Ht8fqx.js";import"./calendar-subscription-B-aAc2Gy.js";function P(){const{calendarObjectId:t}=o.useParams();return r.jsx(m,{calendarObjectId:t})}export{P as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-Wv8c0Cef.js";import{M as r}from"./MailboxPane-6rJUIVAp.js";import"./useSearchTokenContext-C3oyk8pN.js";import"./kbd-HjgyEn1g.js";import"./useMessageBodyContent-WV6nV5Bm.js";import"./search-scope-UI1H6AzA.js";import"./useRefreshControl-nmkAizSf.js";import"./circle-check-big-F3heiIFI.js";import"./refresh-cw-CaBRf4Us.js";import"./useQueries-DtWE4kIN.js";import"./MailListHeader-CjvExg8_.js";import"./roving-focus-BsJotUNk.js";import"./search-token-index-szRvQ-tK.js";import"./EmptyState-Df23Lhmp.js";import"./ErrorState-DqW4OEtW.js";import"./popover-menu-Caepi0HZ.js";import"./mail-DSj57O5V.js";import"./avatar-DRUm_y0q.js";import"./index-BBQAf9F4.js";import"./useSignature-B9Z9InVd.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Q88aYVIL.js";import"./sections-CfSI2UtL.js";import"./undo-2-BjmbmAx6.js";import"./download-CltRXz9h.js";import"./useCalendarFreeBusy-BBFXZXUz.js";import"./calendar-format-DRfWTU9-.js";import"./useCalendars-DgDmdvYf.js";import"./map-pin-qq7Lo5y-.js";import"./useLayoutTier-DCItpYfR.js";import"./calendar-suggestion-BucSFzrj.js";import"./attendee-row-OgzaiA5U.js";import"./minus-_vDOrVkG.js";import"./clock-Bdp8SmuL.js";import"./calendar-clash-strip-9I3eXoZi.js";import"./bell-off-BS_-mm0c.js";import"./shield-check-CQtTmUZr.js";import"./calendar-report-C-Ht8fqx.js";import"./useFilters-Cz2eY9Q-.js";import"./checkbox-B9eUA8Gk.js";import"./confirm-dialog-DGafATnR.js";import"./menu-CEMm7JqZ.js";import"./MailViewChrome-mydzxRNV.js";import"./search-query-ByYOBTBl.js";import"./NavMenuButton--1PboB0o.js";import"./useLabels-Cz56YPmG.js";import"./result-count-B338rKnr.js";import"./bottom-sheet-CfAOJ5gB.js";import"./circle-help-cUvExqqK.js";import"./circle-check-BY9d0nWp.js";function _(){return o.jsx(r.Reading,{})}export{_ as component};
@@ -1 +0,0 @@
1
- import{e}from"./index-Wv8c0Cef.js";const a=e("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);export{a as M};
@@ -1 +0,0 @@
1
- import{q as i,h as n,u as a,r as m,j as s}from"./index-Wv8c0Cef.js";import{O as p}from"./OnboardingWizard-bkVrUFBw.js";import{c}from"./onboarding-completion-DZUFfVxL.js";import"./checkbox-B9eUA8Gk.js";import"./minus-_vDOrVkG.js";import"./kbd-HjgyEn1g.js";import"./credential-steps-hcnAergF.js";import"./card-Bp2YMCq_.js";import"./account-form-helpers-DhckT_PN.js";import"./mail-DSj57O5V.js";import"./file-json-DbseteeL.js";function E(){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 s.jsx(p,{skipWelcome:!1,onComplete:r,onImportConfig:()=>{e({to:"/import"})}})}export{E as component};
@@ -1 +0,0 @@
1
- import{j as o,O as i}from"./index-Wv8c0Cef.js";import{a as m}from"./MailShell-B9VHr1WV.js";import{u as p,O as t}from"./OutboxPane-CjJAyT6z.js";import{u as s}from"./search-mirror-CSlDwAtJ.js";import"./FullCompose-Crr9KRKw.js";import"./ErrorState-DqW4OEtW.js";import"./index-BBQAf9F4.js";import"./useMessageBodyContent-WV6nV5Bm.js";import"./useSignature-B9Z9InVd.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-Q88aYVIL.js";import"./sections-CfSI2UtL.js";import"./confirm-dialog-DGafATnR.js";import"./roving-focus-BsJotUNk.js";import"./useSearchTokenContext-C3oyk8pN.js";import"./kbd-HjgyEn1g.js";import"./search-scope-UI1H6AzA.js";import"./circle-check-big-F3heiIFI.js";import"./clock-Bdp8SmuL.js";import"./row-actions-Dh5B7_7r.js";import"./rotate-ccw-X3r30Ts7.js";import"./search-query-ByYOBTBl.js";import"./NavMenuButton--1PboB0o.js";import"./menu-CEMm7JqZ.js";import"./outbox-status-BlKn6P0x.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 +0,0 @@
1
- import{j as t,O as o}from"./index-Wv8c0Cef.js";const n=()=>t.jsx(o,{});export{n as component};