@remit/web-client-dist 0.0.667 → 0.0.669

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-C6kr88av.js → BriefPane-VDCenJ6z.js} +1 -1
  2. package/assets/{CalendarComposePane-DtSGBvPp.js → CalendarComposePane-B02ElacS.js} +1 -1
  3. package/assets/{CalendarComposeSeed-DREDZc7J.js → CalendarComposeSeed-ndhUnEJT.js} +1 -1
  4. package/assets/{CalendarShell-B3DAuDeO.js → CalendarShell-D-1rnMHR.js} +1 -1
  5. package/assets/{EmptyState-B-axoIMw.js → EmptyState-y-FErV5H.js} +1 -1
  6. package/assets/{ErrorState-CrDfgkFR.js → ErrorState-C3gI2Knb.js} +1 -1
  7. package/assets/{FlaggedPane-D8YdVPkx.js → FlaggedPane-BNGhAzJw.js} +1 -1
  8. package/assets/{FullCompose-BetcBIR7.js → FullCompose-Bu1bPw0Y.js} +1 -1
  9. package/assets/{MailListHeader-B6L3wlep.js → MailListHeader-BriX0L5z.js} +1 -1
  10. package/assets/{MailNav-By1MlVer.js → MailNav-lR6Khhax.js} +1 -1
  11. package/assets/{MailShell-DNGUfNTk.js → MailShell-Cc1A3Dxz.js} +1 -1
  12. package/assets/{MailViewChrome-B-TV4RBP.js → MailViewChrome-DJvHjvrB.js} +1 -1
  13. package/assets/{MailboxPane-DetZQ60N.js → MailboxPane-D8HiDq9G.js} +1 -1
  14. package/assets/{NavMenuButton-CBKqZy9O.js → NavMenuButton-Br8G5ZHn.js} +1 -1
  15. package/assets/{OnboardingWizard-CBjuZEOX.js → OnboardingWizard-zeVlk93o.js} +1 -1
  16. package/assets/{OpenCalendarEvent-opDW6n_i.js → OpenCalendarEvent-hPJRfsgW.js} +1 -1
  17. package/assets/{OutboxPane-DlTfX1yL.js → OutboxPane-BB7sy-fo.js} +1 -1
  18. package/assets/{SignInAgain-BHrWwQvs.js → SignInAgain-qyeK4VXq.js} +1 -1
  19. package/assets/_calendarObjectId-czE5Ole3.js +1 -0
  20. package/assets/_mailboxId-B--d2VRI.js +1 -0
  21. package/assets/_messageId-B6e56x3K.js +1 -0
  22. package/assets/_messageId-DKM5He6Z.js +1 -0
  23. package/assets/_messageId-DLg76th4.js +1 -0
  24. package/assets/_outboxMessageId-DmCeC9mK.js +1 -0
  25. package/assets/_recurrenceId-ByEZziHx.js +1 -0
  26. package/assets/_threadId-C6uiEsj4.js +1 -0
  27. package/assets/_threadId-D6ZiQ-uM.js +1 -0
  28. package/assets/_threadId-DtdHkYRx.js +1 -0
  29. package/assets/{_view._date-BSaROJCj.js → _view._date-CEp0PZKG.js} +1 -1
  30. package/assets/{accounts--SZv7R7b.js → accounts-B0moTkiB.js} +1 -1
  31. package/assets/{advanced-BdIbkh7d.js → advanced-DMMoDbzw.js} +1 -1
  32. package/assets/{appearance-DxLD4626.js → appearance-BJVqiAzr.js} +1 -1
  33. package/assets/{attendee-row-ijHCScVe.js → attendee-row-CLpB0pYs.js} +1 -1
  34. package/assets/{avatar-CkLBBXYT.js → avatar-DSvkix0G.js} +1 -1
  35. package/assets/{bell-off-BFfe7sjz.js → bell-off-DRwQZQQ3.js} +1 -1
  36. package/assets/{bottom-sheet-Chb1iAYN.js → bottom-sheet-mvGIsei0.js} +1 -1
  37. package/assets/brief-B8fJtosL.js +1 -0
  38. package/assets/{brief-DuNMfDF3.js → brief-LSPe8a8d.js} +1 -1
  39. package/assets/{bug-CcYIlYmo.js → bug-DeToGZpW.js} +1 -1
  40. package/assets/{calendar-DRounzbS.js → calendar-WNIRtx9-.js} +1 -1
  41. package/assets/{calendar-clash-strip-CL_bKWfx.js → calendar-clash-strip-DKIo8wmU.js} +1 -1
  42. package/assets/{calendar-format-DDfQBsqj.js → calendar-format-2vQilFtK.js} +1 -1
  43. package/assets/{calendar-report-DkjUWaq6.js → calendar-report-C1Ht-JCS.js} +1 -1
  44. package/assets/{calendar-suggestion-CPMx3k0K.js → calendar-suggestion-6MhOdAXC.js} +1 -1
  45. package/assets/{calendars-CtNRv7sF.js → calendars-BBvblZxh.js} +1 -1
  46. package/assets/{card-Bp-Ja8fj.js → card-4oh7XLqk.js} +1 -1
  47. package/assets/{checkbox-CJc7QORM.js → checkbox-BtT8TXnB.js} +1 -1
  48. package/assets/chevron-left-Ct7tNZZH.js +1 -0
  49. package/assets/{circle-check-CcoIpvQ_.js → circle-check-0jy8ymuQ.js} +1 -1
  50. package/assets/{circle-check-big-C9xTaA4P.js → circle-check-big-D9YMKdzL.js} +1 -1
  51. package/assets/{circle-help-DDApoxTL.js → circle-help-DB3BvwHc.js} +1 -1
  52. package/assets/{clock-lLbtLAj5.js → clock-HjlO-5h6.js} +1 -1
  53. package/assets/compose._-_outboxMessageId_-BWpE0ll-.js +1 -0
  54. package/assets/compose._-_outboxMessageId_-BcxcX0dZ.js +1 -0
  55. package/assets/compose._-_outboxMessageId_-C9qghiAL.js +1 -0
  56. package/assets/compose._-_outboxMessageId_-IHRcB4Zb.js +1 -0
  57. package/assets/{config-import-DKzJGH-7.js → config-import-1T8ofMdz.js} +1 -1
  58. package/assets/{confirm-dialog-D9AgcZxD.js → confirm-dialog-CXGSL0b2.js} +1 -1
  59. package/assets/{copy-BFgUggrf.js → copy-C634LIhp.js} +1 -1
  60. package/assets/{credential-steps-CKq4EWVz.js → credential-steps-rUfaOY58.js} +1 -1
  61. package/assets/{download-Qt-1Y4vU.js → download-t4yqXqfd.js} +1 -1
  62. package/assets/{external-link-Dl3PijIO.js → external-link-BFuy3Rwx.js} +1 -1
  63. package/assets/{file-json--TlnFOkP.js → file-json-h4Q-jpOn.js} +1 -1
  64. package/assets/{filters-Z-r7pQtH.js → filters-FztTUqaL.js} +1 -1
  65. package/assets/{flagged-t5toTOsJ.js → flagged-Cf8FeK0Z.js} +1 -1
  66. package/assets/flagged-D5ZoAhHH.js +1 -0
  67. package/assets/{folders-DAshtthG.js → folders-nH1bwB1b.js} +1 -1
  68. package/assets/{help-copy-9AIAlHQo.js → help-copy-CFFaDe31.js} +1 -1
  69. package/assets/{import-DxEgeMyn.js → import-BgGZc-pN.js} +1 -1
  70. package/assets/index-B6e56x3K.js +1 -0
  71. package/assets/{index-DkIInRxS.js → index-B7rDhvc0.js} +3 -3
  72. package/assets/{index-CaCj74wE.js → index-BWi-onKb.js} +1 -1
  73. package/assets/{index-DEjCMX0x.js → index-BpV_QBN3.js} +4 -4
  74. package/assets/index-BxkFDK_1.js +1 -0
  75. package/assets/index-DJ5pxqYP.js +1 -0
  76. package/assets/index-DLg76th4.js +1 -0
  77. package/assets/index-DWkloZDE.js +1 -0
  78. package/assets/index-DftOmjma.js +1 -0
  79. package/assets/index-S3CxWOFY.js +1 -0
  80. package/assets/index-cZurxiyI.js +1 -0
  81. package/assets/index-e2kI89BP.js +1 -0
  82. package/assets/{kbd-Dq56-T4Y.js → kbd-B6sCOuV3.js} +1 -1
  83. package/assets/{labels-jpVXrSYu.js → labels-CGSqiPPG.js} +1 -1
  84. package/assets/{mail-C03fYYVJ.js → mail-BqIKz2Mr.js} +1 -1
  85. package/assets/{mail-DuMqdg7u.js → mail-RDynbTMt.js} +1 -1
  86. package/assets/{map-pin-Cs0ZHucC.js → map-pin-sxnIvuAX.js} +1 -1
  87. package/assets/{menu-CD9_BviG.js → menu-RBTUVKrJ.js} +1 -1
  88. package/assets/minus-CN9mXRQj.js +1 -0
  89. package/assets/{new-C9zZd_kY.js → new-85LWDdkG.js} +1 -1
  90. package/assets/onboarding-PRDbMRGP.js +1 -0
  91. package/assets/{onboarding-completion-C4RR2ROq.js → onboarding-completion-TiUDnHkK.js} +1 -1
  92. package/assets/outbox-Dvc-hAko.js +1 -0
  93. package/assets/{pencil-DxRBYL9w.js → pencil-B62LHqpx.js} +1 -1
  94. package/assets/{popover-menu-Bq-bl8zD.js → popover-menu-CaUuS_jT.js} +1 -1
  95. package/assets/{refresh-cw-BPtJoQNb.js → refresh-cw-Dvkm3k-I.js} +1 -1
  96. package/assets/{result-count-k8zBfrNM.js → result-count-Bna5IrwH.js} +1 -1
  97. package/assets/{rich-text-DeDPq8jc.js → rich-text-D1apIqHS.js} +1 -1
  98. package/assets/{rich-text-spellcheck-worker-provider-C6ul0AYW.js → rich-text-spellcheck-worker-provider-DQujPCHY.js} +1 -1
  99. package/assets/{rotate-ccw-CYTCnHiu.js → rotate-ccw-D6Kp1_Wp.js} +1 -1
  100. package/assets/{roving-focus-CpZ-vl1X.js → roving-focus-C5lPXS5W.js} +1 -1
  101. package/assets/{row-actions-biT_W_cq.js → row-actions-LHGNnvL8.js} +1 -1
  102. package/assets/{search-mirror-DpTqMnCW.js → search-mirror-bgO4P2b7.js} +1 -1
  103. package/assets/{search-query-CS_x1E6a.js → search-query-CkkoUD3H.js} +1 -1
  104. package/assets/{search-token-index-B7mIWAbK.js → search-token-index-C7f6t6hc.js} +1 -1
  105. package/assets/{sections-7lDa8HkJ.js → sections-TOpWd3oi.js} +1 -1
  106. package/assets/{senders-DX_ght2e.js → senders-C4xTShP9.js} +1 -1
  107. package/assets/settings-DjRhhZsh.js +1 -0
  108. package/assets/{settings-screen-Ddd8IWZJ.js → settings-screen-BngCyKrH.js} +1 -1
  109. package/assets/{shield-check-t24O3Jd3.js → shield-check-Q8WUqcuH.js} +1 -1
  110. package/assets/{suggested-vips-ocWPBDTu.js → suggested-vips-BDk3Pcra.js} +1 -1
  111. package/assets/{suggestion._suggestionId-DK3xpITa.js → suggestion._suggestionId-rvn16q2C.js} +1 -1
  112. package/assets/{undo-2-QhBYFgj8.js → undo-2-B6AO2bAb.js} +1 -1
  113. package/assets/{useCalendarData-KC5YSBOE.js → useCalendarData-Zg1MG2Tf.js} +1 -1
  114. package/assets/{useCalendarFreeBusy-BoXLNCOd.js → useCalendarFreeBusy-1ihEIiEX.js} +1 -1
  115. package/assets/{useCalendarWrites-CF_QeOCW.js → useCalendarWrites-HOe9xScJ.js} +1 -1
  116. package/assets/{useCalendars-D2WfLVhR.js → useCalendars-BtuXvA8i.js} +1 -1
  117. package/assets/{useDebouncedValue-fwzOS98D.js → useDebouncedValue-DpdOAtYe.js} +1 -1
  118. package/assets/{useFilters-zqsEoTVH.js → useFilters-BHmewQpb.js} +1 -1
  119. package/assets/{useLabels-BqCJQg9Y.js → useLabels-BoEK7fEk.js} +1 -1
  120. package/assets/{useLayoutTier-D8E34D0y.js → useLayoutTier-2vNekgJi.js} +1 -1
  121. package/assets/{useMessageBodyContent-CR91yAv-.js → useMessageBodyContent-DB6eNXhY.js} +1 -1
  122. package/assets/{useQueries-CrA4N7UM.js → useQueries-CT6lsMGP.js} +1 -1
  123. package/assets/{useRefreshControl-AnOITG6_.js → useRefreshControl-DkWEsmZA.js} +1 -1
  124. package/assets/{useResultFolderIndex-DGNj06KN.js → useResultFolderIndex-CfBGDbea.js} +1 -1
  125. package/assets/{useSearchTokenContext-CpseqdIz.js → useSearchTokenContext-DAX0PCO1.js} +1 -1
  126. package/assets/{useSignature-BHeuotO6.js → useSignature-B20T5cba.js} +1 -1
  127. package/assets/{warnings-DxbZARvO.js → warnings-DPk3Tfck.js} +1 -1
  128. package/index.html +1 -1
  129. package/package.json +1 -1
  130. package/assets/_calendarObjectId-3UVtKpu7.js +0 -1
  131. package/assets/_mailboxId-CtJpSZe9.js +0 -1
  132. package/assets/_messageId-BPnY_7yA.js +0 -1
  133. package/assets/_messageId-Cjj4BDvR.js +0 -1
  134. package/assets/_messageId-DjxLwuFK.js +0 -1
  135. package/assets/_outboxMessageId-CoTesP2B.js +0 -1
  136. package/assets/_recurrenceId-shM8VVM4.js +0 -1
  137. package/assets/_threadId-4gHSVoeW.js +0 -1
  138. package/assets/_threadId-BJMzdKrw.js +0 -1
  139. package/assets/_threadId-CikvHZTQ.js +0 -1
  140. package/assets/brief-CfV-F9vr.js +0 -1
  141. package/assets/chevron-left-BTzXgOUQ.js +0 -1
  142. package/assets/compose._-_outboxMessageId_-Bi7q512F.js +0 -1
  143. package/assets/compose._-_outboxMessageId_-Bo3U4X72.js +0 -1
  144. package/assets/compose._-_outboxMessageId_-Ck7RazXr.js +0 -1
  145. package/assets/compose._-_outboxMessageId_-DdBqlpfQ.js +0 -1
  146. package/assets/flagged-z41jk9RD.js +0 -1
  147. package/assets/index-BL4lqNEw.js +0 -1
  148. package/assets/index-BPnY_7yA.js +0 -1
  149. package/assets/index-BbUoDj_5.js +0 -1
  150. package/assets/index-Cjj4BDvR.js +0 -1
  151. package/assets/index-D2MyGqQx.js +0 -1
  152. package/assets/index-DbobW_8t.js +0 -1
  153. package/assets/index-Dv5KQbmQ.js +0 -1
  154. package/assets/index-YkJ9FpVc.js +0 -1
  155. package/assets/index-neOHYlGP.js +0 -1
  156. package/assets/minus-kM-BvDQ2.js +0 -1
  157. package/assets/onboarding-yORCfk_Z.js +0 -1
  158. package/assets/outbox-AmvYaVXm.js +0 -1
  159. package/assets/settings-CJ5Eu6Xf.js +0 -1
@@ -1 +1 @@
1
- import{c as L,eB as p,h as n,i as l,eC as d,r as o,eD as y,eE as c,eF as g}from"./index-DkIInRxS.js";const u=e=>y({path:{accountId:e}}),f=e=>{const r=L({...p({path:{accountId:e??""}}),enabled:!!e});return{labels:r.data?.items??[],isPending:r.isPending,isError:r.isError,error:r.error,refetch:r.refetch}},h=e=>{const r=n(),t=l({...d(),onSuccess:()=>{e&&r.invalidateQueries({queryKey:u(e)})}}),{mutateAsync:s}=t;return{createLabel:o.useCallback((a,i="Default")=>e?s({path:{accountId:e},body:{name:a,color:i}}):Promise.reject(new Error("No account")),[e,s]),isPending:t.isPending,isError:t.isError,error:t.error,reset:t.reset}},m=e=>{const r=n(),t=l({...c(),onSuccess:()=>{e&&r.invalidateQueries({queryKey:u(e)})}}),{mutate:s}=t;return{updateLabel:o.useCallback((a,i)=>{e&&s({path:{accountId:e,labelId:a},body:i})},[e,s]),isPending:t.isPending,updatingLabelId:t.isPending?t.variables?.path.labelId:void 0}},C=e=>{const r=n(),t=l({...g(),onSuccess:()=>{e&&r.invalidateQueries({queryKey:u(e)})}}),{mutate:s}=t;return{deleteLabel:o.useCallback(a=>{e&&s({path:{accountId:e,labelId:a}})},[e,s]),isPending:t.isPending,deletingLabelId:t.isPending?t.variables?.path.labelId:void 0}};export{f as a,m as b,C as c,h as u};
1
+ import{c as L,eB as p,h as n,i as l,eC as d,r as o,eD as y,eE as c,eF as g}from"./index-B7rDhvc0.js";const u=e=>y({path:{accountId:e}}),f=e=>{const r=L({...p({path:{accountId:e??""}}),enabled:!!e});return{labels:r.data?.items??[],isPending:r.isPending,isError:r.isError,error:r.error,refetch:r.refetch}},h=e=>{const r=n(),t=l({...d(),onSuccess:()=>{e&&r.invalidateQueries({queryKey:u(e)})}}),{mutateAsync:s}=t;return{createLabel:o.useCallback((a,i="Default")=>e?s({path:{accountId:e},body:{name:a,color:i}}):Promise.reject(new Error("No account")),[e,s]),isPending:t.isPending,isError:t.isError,error:t.error,reset:t.reset}},m=e=>{const r=n(),t=l({...c(),onSuccess:()=>{e&&r.invalidateQueries({queryKey:u(e)})}}),{mutate:s}=t;return{updateLabel:o.useCallback((a,i)=>{e&&s({path:{accountId:e,labelId:a},body:i})},[e,s]),isPending:t.isPending,updatingLabelId:t.isPending?t.variables?.path.labelId:void 0}},C=e=>{const r=n(),t=l({...g(),onSuccess:()=>{e&&r.invalidateQueries({queryKey:u(e)})}}),{mutate:s}=t;return{deleteLabel:o.useCallback(a=>{e&&s({path:{accountId:e,labelId:a}})},[e,s]),isPending:t.isPending,deletingLabelId:t.isPending?t.variables?.path.labelId:void 0}};export{f as a,m as b,C as c,h as u};
@@ -1 +1 @@
1
- import{e as a,c3 as t,c4 as s}from"./index-DkIInRxS.js";const n=a("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]),p=768,r=e=>e!=="desktop",c=()=>{const e=t(`(min-width: ${p}px)`);return t(s)?"desktop":e?"tablet":"phone"};export{n as S,r as i,c as u};
1
+ import{e as a,c3 as t,c4 as s}from"./index-B7rDhvc0.js";const n=a("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]),p=768,r=e=>e!=="desktop",c=()=>{const e=t(`(min-width: ${p}px)`);return t(s)?"desktop":e?"tablet":"phone"};export{n as S,r as i,c as u};
@@ -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-DkIInRxS.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-B7rDhvc0.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-DkIInRxS.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-B7rDhvc0.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-DkIInRxS.js";import{C as Y}from"./circle-check-big-C9xTaA4P.js";import{R as Z}from"./refresh-cw-BPtJoQNb.js";import{u as L}from"./useQueries-CrA4N7UM.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-B7rDhvc0.js";import{C as Y}from"./circle-check-big-D9YMKdzL.js";import{R as Z}from"./refresh-cw-Dvkm3k-I.js";import{u as L}from"./useQueries-CT6lsMGP.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-DkIInRxS.js";import{u as m}from"./useQueries-CrA4N7UM.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-B7rDhvc0.js";import{u as m}from"./useQueries-CT6lsMGP.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-DkIInRxS.js";import{K as O}from"./kbd-Dq56-T4Y.js";import{B as Ee,b as Ae}from"./useMessageBodyContent-CR91yAv-.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-B7rDhvc0.js";import{K as O}from"./kbd-B6sCOuV3.js";import{B as Ee,b as Ae}from"./useMessageBodyContent-DB6eNXhY.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-DkIInRxS.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-B7rDhvc0.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-DkIInRxS.js";import{S as q}from"./settings-screen-Ddd8IWZJ.js";import{f as B}from"./ErrorState-CrDfgkFR.js";import{C as D}from"./copy-BFgUggrf.js";import{E as U}from"./external-link-Dl3PijIO.js";import{B as h}from"./bug-CcYIlYmo.js";import{C as S}from"./circle-check-CcoIpvQ_.js";import{S as F}from"./SignInAgain-BHrWwQvs.js";import{u as G}from"./useResultFolderIndex-DGNj06KN.js";import{w as H}from"./help-copy-9AIAlHQo.js";import"./avatar-CkLBBXYT.js";import"./chevron-left-BTzXgOUQ.js";import"./menu-CD9_BviG.js";import"./circle-help-DDApoxTL.js";import"./useQueries-CrA4N7UM.js";import"./kbd-Dq56-T4Y.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-B7rDhvc0.js";import{S as q}from"./settings-screen-BngCyKrH.js";import{f as B}from"./ErrorState-C3gI2Knb.js";import{C as D}from"./copy-C634LIhp.js";import{E as U}from"./external-link-BFuy3Rwx.js";import{B as h}from"./bug-DeToGZpW.js";import{C as S}from"./circle-check-0jy8ymuQ.js";import{S as F}from"./SignInAgain-qyeK4VXq.js";import{u as G}from"./useResultFolderIndex-CfBGDbea.js";import{w as H}from"./help-copy-CFFaDe31.js";import"./avatar-DSvkix0G.js";import"./chevron-left-Ct7tNZZH.js";import"./menu-RBTUVKrJ.js";import"./circle-help-DB3BvwHc.js";import"./useQueries-CT6lsMGP.js";import"./kbd-B6sCOuV3.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-DkIInRxS.js"></script>
41
+ <script type="module" crossorigin src="/assets/index-B7rDhvc0.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.667",
3
+ "version": "0.0.669",
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-DkIInRxS.js";const n=o;export{n as component};
@@ -1 +0,0 @@
1
- import{ak as m,j as o,O as p}from"./index-DkIInRxS.js";import{a}from"./MailShell-DNGUfNTk.js";import{M as r}from"./MailboxPane-DetZQ60N.js";import{a as e}from"./search-token-index-B7mIWAbK.js";import{u as s}from"./search-mirror-DpTqMnCW.js";import"./FullCompose-BetcBIR7.js";import"./ErrorState-CrDfgkFR.js";import"./index-DEjCMX0x.js";import"./useMessageBodyContent-CR91yAv-.js";import"./useSignature-BHeuotO6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-fwzOS98D.js";import"./sections-7lDa8HkJ.js";import"./confirm-dialog-D9AgcZxD.js";import"./useSearchTokenContext-CpseqdIz.js";import"./kbd-Dq56-T4Y.js";import"./search-scope-UI1H6AzA.js";import"./useRefreshControl-AnOITG6_.js";import"./circle-check-big-C9xTaA4P.js";import"./refresh-cw-BPtJoQNb.js";import"./useQueries-CrA4N7UM.js";import"./MailListHeader-B6L3wlep.js";import"./roving-focus-CpZ-vl1X.js";import"./EmptyState-B-axoIMw.js";import"./popover-menu-Bq-bl8zD.js";import"./mail-DuMqdg7u.js";import"./avatar-CkLBBXYT.js";import"./undo-2-QhBYFgj8.js";import"./download-Qt-1Y4vU.js";import"./useCalendarFreeBusy-BoXLNCOd.js";import"./calendar-format-DDfQBsqj.js";import"./useCalendars-D2WfLVhR.js";import"./map-pin-Cs0ZHucC.js";import"./useLayoutTier-D8E34D0y.js";import"./calendar-suggestion-CPMx3k0K.js";import"./attendee-row-ijHCScVe.js";import"./minus-kM-BvDQ2.js";import"./clock-lLbtLAj5.js";import"./calendar-clash-strip-CL_bKWfx.js";import"./bell-off-BFfe7sjz.js";import"./shield-check-t24O3Jd3.js";import"./calendar-report-DkjUWaq6.js";import"./useFilters-zqsEoTVH.js";import"./checkbox-CJc7QORM.js";import"./menu-CD9_BviG.js";import"./MailViewChrome-B-TV4RBP.js";import"./search-query-CS_x1E6a.js";import"./NavMenuButton-CBKqZy9O.js";import"./useLabels-BqCJQg9Y.js";import"./result-count-k8zBfrNM.js";import"./bottom-sheet-Chb1iAYN.js";import"./circle-help-DDApoxTL.js";import"./circle-check-CcoIpvQ_.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 o}from"./index-DkIInRxS.js";import{M as r}from"./MailboxPane-DetZQ60N.js";import"./useSearchTokenContext-CpseqdIz.js";import"./kbd-Dq56-T4Y.js";import"./useMessageBodyContent-CR91yAv-.js";import"./search-scope-UI1H6AzA.js";import"./useRefreshControl-AnOITG6_.js";import"./circle-check-big-C9xTaA4P.js";import"./refresh-cw-BPtJoQNb.js";import"./useQueries-CrA4N7UM.js";import"./MailListHeader-B6L3wlep.js";import"./roving-focus-CpZ-vl1X.js";import"./search-token-index-B7mIWAbK.js";import"./EmptyState-B-axoIMw.js";import"./ErrorState-CrDfgkFR.js";import"./popover-menu-Bq-bl8zD.js";import"./mail-DuMqdg7u.js";import"./avatar-CkLBBXYT.js";import"./index-DEjCMX0x.js";import"./useSignature-BHeuotO6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-fwzOS98D.js";import"./sections-7lDa8HkJ.js";import"./undo-2-QhBYFgj8.js";import"./download-Qt-1Y4vU.js";import"./useCalendarFreeBusy-BoXLNCOd.js";import"./calendar-format-DDfQBsqj.js";import"./useCalendars-D2WfLVhR.js";import"./map-pin-Cs0ZHucC.js";import"./useLayoutTier-D8E34D0y.js";import"./calendar-suggestion-CPMx3k0K.js";import"./attendee-row-ijHCScVe.js";import"./minus-kM-BvDQ2.js";import"./clock-lLbtLAj5.js";import"./calendar-clash-strip-CL_bKWfx.js";import"./bell-off-BFfe7sjz.js";import"./shield-check-t24O3Jd3.js";import"./calendar-report-DkjUWaq6.js";import"./useFilters-zqsEoTVH.js";import"./checkbox-CJc7QORM.js";import"./confirm-dialog-D9AgcZxD.js";import"./menu-CD9_BviG.js";import"./MailViewChrome-B-TV4RBP.js";import"./search-query-CS_x1E6a.js";import"./NavMenuButton-CBKqZy9O.js";import"./useLabels-BqCJQg9Y.js";import"./result-count-k8zBfrNM.js";import"./bottom-sheet-Chb1iAYN.js";import"./circle-help-DDApoxTL.js";import"./circle-check-CcoIpvQ_.js";function _(){return o.jsx(r.Reading,{})}export{_ as component};
@@ -1 +0,0 @@
1
- import{j as r}from"./index-DkIInRxS.js";import{B as o}from"./BriefPane-C6kr88av.js";import"./useSearchTokenContext-CpseqdIz.js";import"./kbd-Dq56-T4Y.js";import"./useMessageBodyContent-CR91yAv-.js";import"./search-scope-UI1H6AzA.js";import"./MailListHeader-B6L3wlep.js";import"./roving-focus-CpZ-vl1X.js";import"./search-token-index-B7mIWAbK.js";import"./useQueries-CrA4N7UM.js";import"./EmptyState-B-axoIMw.js";import"./ErrorState-CrDfgkFR.js";import"./popover-menu-Bq-bl8zD.js";import"./mail-DuMqdg7u.js";import"./avatar-CkLBBXYT.js";import"./index-DEjCMX0x.js";import"./useSignature-BHeuotO6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-fwzOS98D.js";import"./sections-7lDa8HkJ.js";import"./undo-2-QhBYFgj8.js";import"./download-Qt-1Y4vU.js";import"./useCalendarFreeBusy-BoXLNCOd.js";import"./calendar-format-DDfQBsqj.js";import"./useCalendars-D2WfLVhR.js";import"./map-pin-Cs0ZHucC.js";import"./useLayoutTier-D8E34D0y.js";import"./calendar-suggestion-CPMx3k0K.js";import"./attendee-row-ijHCScVe.js";import"./minus-kM-BvDQ2.js";import"./clock-lLbtLAj5.js";import"./calendar-clash-strip-CL_bKWfx.js";import"./bell-off-BFfe7sjz.js";import"./shield-check-t24O3Jd3.js";import"./calendar-report-DkjUWaq6.js";import"./useFilters-zqsEoTVH.js";import"./checkbox-CJc7QORM.js";import"./confirm-dialog-D9AgcZxD.js";import"./menu-CD9_BviG.js";import"./useRefreshControl-AnOITG6_.js";import"./circle-check-big-C9xTaA4P.js";import"./refresh-cw-BPtJoQNb.js";import"./result-count-k8zBfrNM.js";import"./useLabels-BqCJQg9Y.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-DkIInRxS.js";import{F as r}from"./FlaggedPane-D8YdVPkx.js";import"./useSearchTokenContext-CpseqdIz.js";import"./kbd-Dq56-T4Y.js";import"./useMessageBodyContent-CR91yAv-.js";import"./search-scope-UI1H6AzA.js";import"./MailListHeader-B6L3wlep.js";import"./roving-focus-CpZ-vl1X.js";import"./search-token-index-B7mIWAbK.js";import"./useQueries-CrA4N7UM.js";import"./EmptyState-B-axoIMw.js";import"./ErrorState-CrDfgkFR.js";import"./popover-menu-Bq-bl8zD.js";import"./mail-DuMqdg7u.js";import"./avatar-CkLBBXYT.js";import"./index-DEjCMX0x.js";import"./useSignature-BHeuotO6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-fwzOS98D.js";import"./sections-7lDa8HkJ.js";import"./undo-2-QhBYFgj8.js";import"./download-Qt-1Y4vU.js";import"./useCalendarFreeBusy-BoXLNCOd.js";import"./calendar-format-DDfQBsqj.js";import"./useCalendars-D2WfLVhR.js";import"./map-pin-Cs0ZHucC.js";import"./useLayoutTier-D8E34D0y.js";import"./calendar-suggestion-CPMx3k0K.js";import"./attendee-row-ijHCScVe.js";import"./minus-kM-BvDQ2.js";import"./clock-lLbtLAj5.js";import"./calendar-clash-strip-CL_bKWfx.js";import"./bell-off-BFfe7sjz.js";import"./shield-check-t24O3Jd3.js";import"./calendar-report-DkjUWaq6.js";import"./useFilters-zqsEoTVH.js";import"./checkbox-CJc7QORM.js";import"./confirm-dialog-D9AgcZxD.js";import"./menu-CD9_BviG.js";import"./MailViewChrome-B-TV4RBP.js";import"./refresh-cw-BPtJoQNb.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-DkIInRxS.js";import{O as t}from"./OutboxPane-DlTfX1yL.js";import"./roving-focus-CpZ-vl1X.js";import"./useSearchTokenContext-CpseqdIz.js";import"./kbd-Dq56-T4Y.js";import"./useMessageBodyContent-CR91yAv-.js";import"./search-scope-UI1H6AzA.js";import"./circle-check-big-C9xTaA4P.js";import"./clock-lLbtLAj5.js";import"./row-actions-biT_W_cq.js";import"./rotate-ccw-CYTCnHiu.js";import"./search-query-CS_x1E6a.js";import"./NavMenuButton-CBKqZy9O.js";import"./menu-CD9_BviG.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-DkIInRxS.js";import{O as p}from"./OpenCalendarEvent-opDW6n_i.js";import"./SignInAgain-BHrWwQvs.js";import"./CalendarComposePane-DtSGBvPp.js";import"./calendar-format-DDfQBsqj.js";import"./useQueries-CrA4N7UM.js";import"./useCalendars-D2WfLVhR.js";import"./calendar-clash-strip-CL_bKWfx.js";import"./attendee-row-ijHCScVe.js";import"./avatar-CkLBBXYT.js";import"./minus-kM-BvDQ2.js";import"./clock-lLbtLAj5.js";import"./map-pin-Cs0ZHucC.js";import"./mail-DuMqdg7u.js";import"./pencil-DxRBYL9w.js";import"./useCalendarWrites-CF_QeOCW.js";import"./ErrorState-CrDfgkFR.js";import"./useCalendarData-KC5YSBOE.js";import"./calendar-report-DkjUWaq6.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-DkIInRxS.js";const n=o;export{n as component};
@@ -1 +0,0 @@
1
- import{O as o}from"./index-DkIInRxS.js";const n=o;export{n as component};
@@ -1 +0,0 @@
1
- import{O as o}from"./index-DkIInRxS.js";const n=o;export{n as component};
@@ -1 +0,0 @@
1
- import{j as r,O as i}from"./index-DkIInRxS.js";import{a as m}from"./MailShell-DNGUfNTk.js";import{B as o}from"./BriefPane-C6kr88av.js";import{a as p}from"./search-token-index-B7mIWAbK.js";import{u as e}from"./search-mirror-DpTqMnCW.js";import"./FullCompose-BetcBIR7.js";import"./ErrorState-CrDfgkFR.js";import"./index-DEjCMX0x.js";import"./useMessageBodyContent-CR91yAv-.js";import"./useSignature-BHeuotO6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-fwzOS98D.js";import"./sections-7lDa8HkJ.js";import"./confirm-dialog-D9AgcZxD.js";import"./useSearchTokenContext-CpseqdIz.js";import"./kbd-Dq56-T4Y.js";import"./search-scope-UI1H6AzA.js";import"./MailListHeader-B6L3wlep.js";import"./roving-focus-CpZ-vl1X.js";import"./EmptyState-B-axoIMw.js";import"./popover-menu-Bq-bl8zD.js";import"./mail-DuMqdg7u.js";import"./avatar-CkLBBXYT.js";import"./undo-2-QhBYFgj8.js";import"./download-Qt-1Y4vU.js";import"./useCalendarFreeBusy-BoXLNCOd.js";import"./calendar-format-DDfQBsqj.js";import"./useQueries-CrA4N7UM.js";import"./useCalendars-D2WfLVhR.js";import"./map-pin-Cs0ZHucC.js";import"./useLayoutTier-D8E34D0y.js";import"./calendar-suggestion-CPMx3k0K.js";import"./attendee-row-ijHCScVe.js";import"./minus-kM-BvDQ2.js";import"./clock-lLbtLAj5.js";import"./calendar-clash-strip-CL_bKWfx.js";import"./bell-off-BFfe7sjz.js";import"./shield-check-t24O3Jd3.js";import"./calendar-report-DkjUWaq6.js";import"./useFilters-zqsEoTVH.js";import"./checkbox-CJc7QORM.js";import"./menu-CD9_BviG.js";import"./useRefreshControl-AnOITG6_.js";import"./circle-check-big-C9xTaA4P.js";import"./refresh-cw-BPtJoQNb.js";import"./result-count-k8zBfrNM.js";import"./useLabels-BqCJQg9Y.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-DkIInRxS.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-BetcBIR7.js";import"./index-DkIInRxS.js";import"./ErrorState-CrDfgkFR.js";import"./index-DEjCMX0x.js";import"./useMessageBodyContent-CR91yAv-.js";import"./useSignature-BHeuotO6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-fwzOS98D.js";import"./sections-7lDa8HkJ.js";import"./confirm-dialog-D9AgcZxD.js";const c=o;export{c as component};
@@ -1 +0,0 @@
1
- import{F as o}from"./FullCompose-BetcBIR7.js";import"./index-DkIInRxS.js";import"./ErrorState-CrDfgkFR.js";import"./index-DEjCMX0x.js";import"./useMessageBodyContent-CR91yAv-.js";import"./useSignature-BHeuotO6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-fwzOS98D.js";import"./sections-7lDa8HkJ.js";import"./confirm-dialog-D9AgcZxD.js";const c=o;export{c as component};
@@ -1 +0,0 @@
1
- import{F as o}from"./FullCompose-BetcBIR7.js";import"./index-DkIInRxS.js";import"./ErrorState-CrDfgkFR.js";import"./index-DEjCMX0x.js";import"./useMessageBodyContent-CR91yAv-.js";import"./useSignature-BHeuotO6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-fwzOS98D.js";import"./sections-7lDa8HkJ.js";import"./confirm-dialog-D9AgcZxD.js";const c=o;export{c as component};
@@ -1 +0,0 @@
1
- import{F as o}from"./FullCompose-BetcBIR7.js";import"./index-DkIInRxS.js";import"./ErrorState-CrDfgkFR.js";import"./index-DEjCMX0x.js";import"./useMessageBodyContent-CR91yAv-.js";import"./useSignature-BHeuotO6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-fwzOS98D.js";import"./sections-7lDa8HkJ.js";import"./confirm-dialog-D9AgcZxD.js";const c=o;export{c as component};
@@ -1 +0,0 @@
1
- import{j as o,O as i}from"./index-DkIInRxS.js";import{a as m}from"./MailShell-DNGUfNTk.js";import{F as r}from"./FlaggedPane-D8YdVPkx.js";import{a as p}from"./search-token-index-B7mIWAbK.js";import{u as e}from"./search-mirror-DpTqMnCW.js";import"./FullCompose-BetcBIR7.js";import"./ErrorState-CrDfgkFR.js";import"./index-DEjCMX0x.js";import"./useMessageBodyContent-CR91yAv-.js";import"./useSignature-BHeuotO6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-fwzOS98D.js";import"./sections-7lDa8HkJ.js";import"./confirm-dialog-D9AgcZxD.js";import"./useSearchTokenContext-CpseqdIz.js";import"./kbd-Dq56-T4Y.js";import"./search-scope-UI1H6AzA.js";import"./MailListHeader-B6L3wlep.js";import"./roving-focus-CpZ-vl1X.js";import"./EmptyState-B-axoIMw.js";import"./popover-menu-Bq-bl8zD.js";import"./mail-DuMqdg7u.js";import"./avatar-CkLBBXYT.js";import"./undo-2-QhBYFgj8.js";import"./download-Qt-1Y4vU.js";import"./useCalendarFreeBusy-BoXLNCOd.js";import"./calendar-format-DDfQBsqj.js";import"./useQueries-CrA4N7UM.js";import"./useCalendars-D2WfLVhR.js";import"./map-pin-Cs0ZHucC.js";import"./useLayoutTier-D8E34D0y.js";import"./calendar-suggestion-CPMx3k0K.js";import"./attendee-row-ijHCScVe.js";import"./minus-kM-BvDQ2.js";import"./clock-lLbtLAj5.js";import"./calendar-clash-strip-CL_bKWfx.js";import"./bell-off-BFfe7sjz.js";import"./shield-check-t24O3Jd3.js";import"./calendar-report-DkjUWaq6.js";import"./useFilters-zqsEoTVH.js";import"./checkbox-CJc7QORM.js";import"./menu-CD9_BviG.js";import"./MailViewChrome-B-TV4RBP.js";import"./refresh-cw-BPtJoQNb.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 o}from"./index-DkIInRxS.js";import{O as t}from"./OutboxPane-DlTfX1yL.js";import"./roving-focus-CpZ-vl1X.js";import"./useSearchTokenContext-CpseqdIz.js";import"./kbd-Dq56-T4Y.js";import"./useMessageBodyContent-CR91yAv-.js";import"./search-scope-UI1H6AzA.js";import"./circle-check-big-C9xTaA4P.js";import"./clock-lLbtLAj5.js";import"./row-actions-biT_W_cq.js";import"./rotate-ccw-CYTCnHiu.js";import"./search-query-CS_x1E6a.js";import"./NavMenuButton-CBKqZy9O.js";import"./menu-CD9_BviG.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-DkIInRxS.js";import{M as r}from"./MailboxPane-DetZQ60N.js";import"./useSearchTokenContext-CpseqdIz.js";import"./kbd-Dq56-T4Y.js";import"./useMessageBodyContent-CR91yAv-.js";import"./search-scope-UI1H6AzA.js";import"./useRefreshControl-AnOITG6_.js";import"./circle-check-big-C9xTaA4P.js";import"./refresh-cw-BPtJoQNb.js";import"./useQueries-CrA4N7UM.js";import"./MailListHeader-B6L3wlep.js";import"./roving-focus-CpZ-vl1X.js";import"./search-token-index-B7mIWAbK.js";import"./EmptyState-B-axoIMw.js";import"./ErrorState-CrDfgkFR.js";import"./popover-menu-Bq-bl8zD.js";import"./mail-DuMqdg7u.js";import"./avatar-CkLBBXYT.js";import"./index-DEjCMX0x.js";import"./useSignature-BHeuotO6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-fwzOS98D.js";import"./sections-7lDa8HkJ.js";import"./undo-2-QhBYFgj8.js";import"./download-Qt-1Y4vU.js";import"./useCalendarFreeBusy-BoXLNCOd.js";import"./calendar-format-DDfQBsqj.js";import"./useCalendars-D2WfLVhR.js";import"./map-pin-Cs0ZHucC.js";import"./useLayoutTier-D8E34D0y.js";import"./calendar-suggestion-CPMx3k0K.js";import"./attendee-row-ijHCScVe.js";import"./minus-kM-BvDQ2.js";import"./clock-lLbtLAj5.js";import"./calendar-clash-strip-CL_bKWfx.js";import"./bell-off-BFfe7sjz.js";import"./shield-check-t24O3Jd3.js";import"./calendar-report-DkjUWaq6.js";import"./useFilters-zqsEoTVH.js";import"./checkbox-CJc7QORM.js";import"./confirm-dialog-D9AgcZxD.js";import"./menu-CD9_BviG.js";import"./MailViewChrome-B-TV4RBP.js";import"./search-query-CS_x1E6a.js";import"./NavMenuButton-CBKqZy9O.js";import"./useLabels-BqCJQg9Y.js";import"./result-count-k8zBfrNM.js";import"./bottom-sheet-Chb1iAYN.js";import"./circle-help-DDApoxTL.js";import"./circle-check-CcoIpvQ_.js";function _(){return o.jsx(r.Reading,{})}export{_ as component};
@@ -1 +0,0 @@
1
- import{j as t,ao as o}from"./index-DkIInRxS.js";const n=()=>t.jsx(o,{to:"/settings/accounts"});export{n as component};
@@ -1 +0,0 @@
1
- import{j as r}from"./index-DkIInRxS.js";import{B as o}from"./BriefPane-C6kr88av.js";import"./useSearchTokenContext-CpseqdIz.js";import"./kbd-Dq56-T4Y.js";import"./useMessageBodyContent-CR91yAv-.js";import"./search-scope-UI1H6AzA.js";import"./MailListHeader-B6L3wlep.js";import"./roving-focus-CpZ-vl1X.js";import"./search-token-index-B7mIWAbK.js";import"./useQueries-CrA4N7UM.js";import"./EmptyState-B-axoIMw.js";import"./ErrorState-CrDfgkFR.js";import"./popover-menu-Bq-bl8zD.js";import"./mail-DuMqdg7u.js";import"./avatar-CkLBBXYT.js";import"./index-DEjCMX0x.js";import"./useSignature-BHeuotO6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-fwzOS98D.js";import"./sections-7lDa8HkJ.js";import"./undo-2-QhBYFgj8.js";import"./download-Qt-1Y4vU.js";import"./useCalendarFreeBusy-BoXLNCOd.js";import"./calendar-format-DDfQBsqj.js";import"./useCalendars-D2WfLVhR.js";import"./map-pin-Cs0ZHucC.js";import"./useLayoutTier-D8E34D0y.js";import"./calendar-suggestion-CPMx3k0K.js";import"./attendee-row-ijHCScVe.js";import"./minus-kM-BvDQ2.js";import"./clock-lLbtLAj5.js";import"./calendar-clash-strip-CL_bKWfx.js";import"./bell-off-BFfe7sjz.js";import"./shield-check-t24O3Jd3.js";import"./calendar-report-DkjUWaq6.js";import"./useFilters-zqsEoTVH.js";import"./checkbox-CJc7QORM.js";import"./confirm-dialog-D9AgcZxD.js";import"./menu-CD9_BviG.js";import"./useRefreshControl-AnOITG6_.js";import"./circle-check-big-C9xTaA4P.js";import"./refresh-cw-BPtJoQNb.js";import"./result-count-k8zBfrNM.js";import"./useLabels-BqCJQg9Y.js";import"./wizard-selection-zWa1qc6-.js";function V(){return r.jsx(o.Reading,{})}export{V as component};
@@ -1 +0,0 @@
1
- import{f8 as o,j as r}from"./index-DkIInRxS.js";import{O as m}from"./OpenCalendarEvent-opDW6n_i.js";import"./SignInAgain-BHrWwQvs.js";import"./CalendarComposePane-DtSGBvPp.js";import"./calendar-format-DDfQBsqj.js";import"./useQueries-CrA4N7UM.js";import"./useCalendars-D2WfLVhR.js";import"./calendar-clash-strip-CL_bKWfx.js";import"./attendee-row-ijHCScVe.js";import"./avatar-CkLBBXYT.js";import"./minus-kM-BvDQ2.js";import"./clock-lLbtLAj5.js";import"./map-pin-Cs0ZHucC.js";import"./mail-DuMqdg7u.js";import"./pencil-DxRBYL9w.js";import"./useCalendarWrites-CF_QeOCW.js";import"./ErrorState-CrDfgkFR.js";import"./useCalendarData-KC5YSBOE.js";import"./calendar-report-DkjUWaq6.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-DkIInRxS.js";import{F as r}from"./FlaggedPane-D8YdVPkx.js";import"./useSearchTokenContext-CpseqdIz.js";import"./kbd-Dq56-T4Y.js";import"./useMessageBodyContent-CR91yAv-.js";import"./search-scope-UI1H6AzA.js";import"./MailListHeader-B6L3wlep.js";import"./roving-focus-CpZ-vl1X.js";import"./search-token-index-B7mIWAbK.js";import"./useQueries-CrA4N7UM.js";import"./EmptyState-B-axoIMw.js";import"./ErrorState-CrDfgkFR.js";import"./popover-menu-Bq-bl8zD.js";import"./mail-DuMqdg7u.js";import"./avatar-CkLBBXYT.js";import"./index-DEjCMX0x.js";import"./useSignature-BHeuotO6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-fwzOS98D.js";import"./sections-7lDa8HkJ.js";import"./undo-2-QhBYFgj8.js";import"./download-Qt-1Y4vU.js";import"./useCalendarFreeBusy-BoXLNCOd.js";import"./calendar-format-DDfQBsqj.js";import"./useCalendars-D2WfLVhR.js";import"./map-pin-Cs0ZHucC.js";import"./useLayoutTier-D8E34D0y.js";import"./calendar-suggestion-CPMx3k0K.js";import"./attendee-row-ijHCScVe.js";import"./minus-kM-BvDQ2.js";import"./clock-lLbtLAj5.js";import"./calendar-clash-strip-CL_bKWfx.js";import"./bell-off-BFfe7sjz.js";import"./shield-check-t24O3Jd3.js";import"./calendar-report-DkjUWaq6.js";import"./useFilters-zqsEoTVH.js";import"./checkbox-CJc7QORM.js";import"./confirm-dialog-D9AgcZxD.js";import"./menu-CD9_BviG.js";import"./MailViewChrome-B-TV4RBP.js";import"./refresh-cw-BPtJoQNb.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-DkIInRxS.js";import{M as i}from"./MailboxPane-DetZQ60N.js";import"./useSearchTokenContext-CpseqdIz.js";import"./kbd-Dq56-T4Y.js";import"./useMessageBodyContent-CR91yAv-.js";import"./search-scope-UI1H6AzA.js";import"./useRefreshControl-AnOITG6_.js";import"./circle-check-big-C9xTaA4P.js";import"./refresh-cw-BPtJoQNb.js";import"./useQueries-CrA4N7UM.js";import"./MailListHeader-B6L3wlep.js";import"./roving-focus-CpZ-vl1X.js";import"./search-token-index-B7mIWAbK.js";import"./EmptyState-B-axoIMw.js";import"./ErrorState-CrDfgkFR.js";import"./popover-menu-Bq-bl8zD.js";import"./mail-DuMqdg7u.js";import"./avatar-CkLBBXYT.js";import"./index-DEjCMX0x.js";import"./useSignature-BHeuotO6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-fwzOS98D.js";import"./sections-7lDa8HkJ.js";import"./undo-2-QhBYFgj8.js";import"./download-Qt-1Y4vU.js";import"./useCalendarFreeBusy-BoXLNCOd.js";import"./calendar-format-DDfQBsqj.js";import"./useCalendars-D2WfLVhR.js";import"./map-pin-Cs0ZHucC.js";import"./useLayoutTier-D8E34D0y.js";import"./calendar-suggestion-CPMx3k0K.js";import"./attendee-row-ijHCScVe.js";import"./minus-kM-BvDQ2.js";import"./clock-lLbtLAj5.js";import"./calendar-clash-strip-CL_bKWfx.js";import"./bell-off-BFfe7sjz.js";import"./shield-check-t24O3Jd3.js";import"./calendar-report-DkjUWaq6.js";import"./useFilters-zqsEoTVH.js";import"./checkbox-CJc7QORM.js";import"./confirm-dialog-D9AgcZxD.js";import"./menu-CD9_BviG.js";import"./MailViewChrome-B-TV4RBP.js";import"./search-query-CS_x1E6a.js";import"./NavMenuButton-CBKqZy9O.js";import"./useLabels-BqCJQg9Y.js";import"./result-count-k8zBfrNM.js";import"./bottom-sheet-Chb1iAYN.js";import"./circle-help-DDApoxTL.js";import"./circle-check-CcoIpvQ_.js";function _(){return o.jsx(i.Reading,{})}export{_ as component};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-DkIInRxS.js";import{F as r}from"./FlaggedPane-D8YdVPkx.js";import"./useSearchTokenContext-CpseqdIz.js";import"./kbd-Dq56-T4Y.js";import"./useMessageBodyContent-CR91yAv-.js";import"./search-scope-UI1H6AzA.js";import"./MailListHeader-B6L3wlep.js";import"./roving-focus-CpZ-vl1X.js";import"./search-token-index-B7mIWAbK.js";import"./useQueries-CrA4N7UM.js";import"./EmptyState-B-axoIMw.js";import"./ErrorState-CrDfgkFR.js";import"./popover-menu-Bq-bl8zD.js";import"./mail-DuMqdg7u.js";import"./avatar-CkLBBXYT.js";import"./index-DEjCMX0x.js";import"./useSignature-BHeuotO6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-fwzOS98D.js";import"./sections-7lDa8HkJ.js";import"./undo-2-QhBYFgj8.js";import"./download-Qt-1Y4vU.js";import"./useCalendarFreeBusy-BoXLNCOd.js";import"./calendar-format-DDfQBsqj.js";import"./useCalendars-D2WfLVhR.js";import"./map-pin-Cs0ZHucC.js";import"./useLayoutTier-D8E34D0y.js";import"./calendar-suggestion-CPMx3k0K.js";import"./attendee-row-ijHCScVe.js";import"./minus-kM-BvDQ2.js";import"./clock-lLbtLAj5.js";import"./calendar-clash-strip-CL_bKWfx.js";import"./bell-off-BFfe7sjz.js";import"./shield-check-t24O3Jd3.js";import"./calendar-report-DkjUWaq6.js";import"./useFilters-zqsEoTVH.js";import"./checkbox-CJc7QORM.js";import"./confirm-dialog-D9AgcZxD.js";import"./menu-CD9_BviG.js";import"./MailViewChrome-B-TV4RBP.js";import"./refresh-cw-BPtJoQNb.js";import"./wizard-selection-zWa1qc6-.js";function Q(){return o.jsx(r.Reading,{})}export{Q as component};
@@ -1 +0,0 @@
1
- import{j as r}from"./index-DkIInRxS.js";import{B as o}from"./BriefPane-C6kr88av.js";import"./useSearchTokenContext-CpseqdIz.js";import"./kbd-Dq56-T4Y.js";import"./useMessageBodyContent-CR91yAv-.js";import"./search-scope-UI1H6AzA.js";import"./MailListHeader-B6L3wlep.js";import"./roving-focus-CpZ-vl1X.js";import"./search-token-index-B7mIWAbK.js";import"./useQueries-CrA4N7UM.js";import"./EmptyState-B-axoIMw.js";import"./ErrorState-CrDfgkFR.js";import"./popover-menu-Bq-bl8zD.js";import"./mail-DuMqdg7u.js";import"./avatar-CkLBBXYT.js";import"./index-DEjCMX0x.js";import"./useSignature-BHeuotO6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-fwzOS98D.js";import"./sections-7lDa8HkJ.js";import"./undo-2-QhBYFgj8.js";import"./download-Qt-1Y4vU.js";import"./useCalendarFreeBusy-BoXLNCOd.js";import"./calendar-format-DDfQBsqj.js";import"./useCalendars-D2WfLVhR.js";import"./map-pin-Cs0ZHucC.js";import"./useLayoutTier-D8E34D0y.js";import"./calendar-suggestion-CPMx3k0K.js";import"./attendee-row-ijHCScVe.js";import"./minus-kM-BvDQ2.js";import"./clock-lLbtLAj5.js";import"./calendar-clash-strip-CL_bKWfx.js";import"./bell-off-BFfe7sjz.js";import"./shield-check-t24O3Jd3.js";import"./calendar-report-DkjUWaq6.js";import"./useFilters-zqsEoTVH.js";import"./checkbox-CJc7QORM.js";import"./confirm-dialog-D9AgcZxD.js";import"./menu-CD9_BviG.js";import"./useRefreshControl-AnOITG6_.js";import"./circle-check-big-C9xTaA4P.js";import"./refresh-cw-BPtJoQNb.js";import"./result-count-k8zBfrNM.js";import"./useLabels-BqCJQg9Y.js";import"./wizard-selection-zWa1qc6-.js";function V(){return r.jsx(o.Reading,{})}export{V as component};
@@ -1 +0,0 @@
1
- import{e}from"./index-DkIInRxS.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-DkIInRxS.js";import{O as p}from"./OnboardingWizard-CBjuZEOX.js";import{c}from"./onboarding-completion-C4RR2ROq.js";import"./checkbox-CJc7QORM.js";import"./minus-kM-BvDQ2.js";import"./kbd-Dq56-T4Y.js";import"./credential-steps-CKq4EWVz.js";import"./card-Bp-Ja8fj.js";import"./account-form-helpers-DhckT_PN.js";import"./mail-DuMqdg7u.js";import"./file-json--TlnFOkP.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-DkIInRxS.js";import{a as m}from"./MailShell-DNGUfNTk.js";import{u as p,O as t}from"./OutboxPane-DlTfX1yL.js";import{u as s}from"./search-mirror-DpTqMnCW.js";import"./FullCompose-BetcBIR7.js";import"./ErrorState-CrDfgkFR.js";import"./index-DEjCMX0x.js";import"./useMessageBodyContent-CR91yAv-.js";import"./useSignature-BHeuotO6.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-fwzOS98D.js";import"./sections-7lDa8HkJ.js";import"./confirm-dialog-D9AgcZxD.js";import"./roving-focus-CpZ-vl1X.js";import"./useSearchTokenContext-CpseqdIz.js";import"./kbd-Dq56-T4Y.js";import"./search-scope-UI1H6AzA.js";import"./circle-check-big-C9xTaA4P.js";import"./clock-lLbtLAj5.js";import"./row-actions-biT_W_cq.js";import"./rotate-ccw-CYTCnHiu.js";import"./search-query-CS_x1E6a.js";import"./NavMenuButton-CBKqZy9O.js";import"./menu-CD9_BviG.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-DkIInRxS.js";const n=()=>t.jsx(o,{});export{n as component};