@remit/web-client-dist 0.0.556 → 0.0.558

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 (158) hide show
  1. package/assets/{BriefPane-CzpxWzXP.js → BriefPane-fwQqEof8.js} +1 -1
  2. package/assets/{CalendarComposePane-DPZ0LmXE.js → CalendarComposePane-B2Re5idb.js} +1 -1
  3. package/assets/{CalendarComposeSeed-B2BgldrX.js → CalendarComposeSeed-CzscCDso.js} +1 -1
  4. package/assets/{CalendarShell-CrEYuvGh.js → CalendarShell-DrnLc-fb.js} +1 -1
  5. package/assets/{EmptyState-DjG2vik2.js → EmptyState-DqEP1kNd.js} +1 -1
  6. package/assets/{ErrorState-D9K04lHc.js → ErrorState-E7wwBvZt.js} +1 -1
  7. package/assets/{FlaggedPane-D5kil_eg.js → FlaggedPane-CLK73bCu.js} +1 -1
  8. package/assets/{FullCompose-DDDA7gVW.js → FullCompose-BApcbRDS.js} +1 -1
  9. package/assets/MailListHeader-CxXickFS.js +7 -0
  10. package/assets/MailNav-CYlFq8R5.js +1 -0
  11. package/assets/{MailShell-BHmbmhqi.js → MailShell-TMwF6sX-.js} +1 -1
  12. package/assets/{MailViewChrome-D70OQa4-.js → MailViewChrome-BsXNinpD.js} +1 -1
  13. package/assets/{MailboxPane-CxfWuIsZ.js → MailboxPane-COkkCMA2.js} +1 -1
  14. package/assets/{NavMenuButton-BF1zalD9.js → NavMenuButton-DigEYlF7.js} +1 -1
  15. package/assets/{OnboardingWizard-BCIWuyFY.js → OnboardingWizard-CCBliJuM.js} +1 -1
  16. package/assets/{OpenCalendarEvent-C35bGGPy.js → OpenCalendarEvent-BWCoIdId.js} +2 -2
  17. package/assets/{OutboxPane-CtBj1Y45.js → OutboxPane-D_ut-dw1.js} +1 -1
  18. package/assets/_calendarObjectId-B3JsQw6K.js +1 -0
  19. package/assets/_mailboxId-BIVj1caD.js +1 -0
  20. package/assets/_messageId-B8UraiA1.js +1 -0
  21. package/assets/_messageId-b0YPagdE.js +1 -0
  22. package/assets/_messageId-viF13ddY.js +1 -0
  23. package/assets/_outboxMessageId-xTY9dRJR.js +1 -0
  24. package/assets/_recurrenceId-DQXitvaQ.js +1 -0
  25. package/assets/_threadId-Cu9hgGBz.js +1 -0
  26. package/assets/_threadId-CuinibRg.js +1 -0
  27. package/assets/_threadId-DuupVxv5.js +1 -0
  28. package/assets/_view._date-DivB1jjv.js +1 -0
  29. package/assets/accounts-CwSzL3ZN.js +1 -0
  30. package/assets/{advanced-BYNKT8qi.js → advanced-D9W5hBcN.js} +2 -2
  31. package/assets/{appearance-C5EbdVgi.js → appearance-BaZKssKJ.js} +1 -1
  32. package/assets/{attachment-file-4Zl5jmUV.js → attachment-file-D3QKEMvK.js} +1 -1
  33. package/assets/{attendee-row-gpHxsuD_.js → attendee-row-BykOhwYt.js} +1 -1
  34. package/assets/{avatar-BSvAFgta.js → avatar-B6_QS9Vn.js} +1 -1
  35. package/assets/bottom-sheet-Doa7nVeT.js +1 -0
  36. package/assets/brief--SIgROSY.js +1 -0
  37. package/assets/{brief-D1jyZ3s5.js → brief-DDbEkAYG.js} +1 -1
  38. package/assets/{browser-ponyfill-Bf8Ox_Uj.js → browser-ponyfill-ZfbP-5LR.js} +2 -2
  39. package/assets/{bug-DUeo5_Uu.js → bug-lpYW9xjp.js} +1 -1
  40. package/assets/{calendar-Bue9cbmq.js → calendar-PxA43rIs.js} +1 -1
  41. package/assets/{calendar-color-CiAME2PF.js → calendar-color-BYSDonpj.js} +1 -1
  42. package/assets/{calendar-event-chip-BGmuWCFF.js → calendar-event-chip-Cdhm7rmt.js} +1 -1
  43. package/assets/{calendars-CfwKXO9z.js → calendars-CqpEpS16.js} +1 -1
  44. package/assets/{card-BuAlC7UV.js → card-CwNbxxE4.js} +1 -1
  45. package/assets/chevron-left-Cn-ry2g0.js +1 -0
  46. package/assets/{circle-check-BRMaJLFX.js → circle-check-Ii4oERMF.js} +1 -1
  47. package/assets/{circle-check-big-xjrW0cXa.js → circle-check-big-BR5h0Zvj.js} +1 -1
  48. package/assets/{circle-help-kesrsCfa.js → circle-help-DUS4kGK8.js} +1 -1
  49. package/assets/{clock-aTuXA4mA.js → clock-BxhfAHx6.js} +1 -1
  50. package/assets/compose._-_outboxMessageId_-DCh1FfFf.js +1 -0
  51. package/assets/compose._-_outboxMessageId_-DUcTRYia.js +1 -0
  52. package/assets/compose._-_outboxMessageId_-DWc8hTcU.js +1 -0
  53. package/assets/compose._-_outboxMessageId_-p28V-vQ9.js +1 -0
  54. package/assets/{config-import-B76x8Cls.js → config-import-DTiQc-D8.js} +1 -1
  55. package/assets/confirm-dialog-Crb3-RAA.js +1 -0
  56. package/assets/{copy-BoavkRTO.js → copy-CqPuBaHj.js} +1 -1
  57. package/assets/{credential-steps-C-nrQMrj.js → credential-steps-DeXIsuVT.js} +1 -1
  58. package/assets/{download-plt-DvO3.js → download-jGq9Kcl5.js} +1 -1
  59. package/assets/{file-json-D-YZdYiO.js → file-json-XpwC1d5z.js} +1 -1
  60. package/assets/{filters-DrpknMRG.js → filters-BltbPIu0.js} +1 -1
  61. package/assets/flagged-3sndDDzX.js +1 -0
  62. package/assets/{flagged-ajQwaQCg.js → flagged-fkMsasT5.js} +1 -1
  63. package/assets/folders-D4Awnqnj.js +1 -0
  64. package/assets/{format-DV51L-5t.js → format-B3FZZ_Wg.js} +1 -1
  65. package/assets/{help-copy-BmzPQ2zg.js → help-copy-B95Z1I2K.js} +1 -1
  66. package/assets/{import-BPcgjsDr.js → import-BYNRGaCn.js} +1 -1
  67. package/assets/index-BJHCsYKc.js +1 -0
  68. package/assets/index-BeQCinrz.js +1 -0
  69. package/assets/{index-BJo_eIFV.css → index-BqWgpRnh.css} +1 -1
  70. package/assets/{index-CD2f8G1g.js → index-BxITc2V1.js} +4 -4
  71. package/assets/index-BzdlRgzy.js +1 -0
  72. package/assets/index-C0AnP0Nv.js +1 -0
  73. package/assets/index-Cwo525jm.js +1 -0
  74. package/assets/index-Cx7VzbKm.js +1 -0
  75. package/assets/index-DQPD3bsR.js +1 -0
  76. package/assets/{index-CnQhUzpu.js → index-DXkko108.js} +61 -61
  77. package/assets/{index-CIlooK6Y.js → index-DbRjnAbA.js} +1 -1
  78. package/assets/index-bwA9akkO.js +1 -0
  79. package/assets/index-viF13ddY.js +1 -0
  80. package/assets/{kbd-CreXKdFs.js → kbd-Cn9Tbmmd.js} +1 -1
  81. package/assets/{labels-Cg0nw5_j.js → labels-I70_S4_3.js} +1 -1
  82. package/assets/mail-CRIYR34a.js +1 -0
  83. package/assets/{mail-BrievyOG.js → mail-SsJCOul8.js} +1 -1
  84. package/assets/{map-pin-BFTF47Oi.js → map-pin-fTxfnqFj.js} +1 -1
  85. package/assets/{menu-CB_7f-VX.js → menu-eSleC8XY.js} +1 -1
  86. package/assets/{new-D4kgeQwb.js → new-CbOJ3F5R.js} +1 -1
  87. package/assets/onboarding-CPOjfpSA.js +1 -0
  88. package/assets/{onboarding-completion-B0hLOoYA.js → onboarding-completion-CcdwV2x0.js} +1 -1
  89. package/assets/outbox-Bw7r2R2x.js +1 -0
  90. package/assets/{pencil-ln_zd-v6.js → pencil-C1oLb7kY.js} +1 -1
  91. package/assets/{refresh-cw-BuJ6ivrC.js → refresh-cw-6xfOFxC9.js} +1 -1
  92. package/assets/{rich-text-5VIC85k3.js → rich-text-HOmxAhoL.js} +15 -15
  93. package/assets/{rich-text-spellcheck-worker-provider-sf4XE686.js → rich-text-spellcheck-worker-provider-DthkXRM2.js} +1 -1
  94. package/assets/{rotate-ccw-3YGigbg2.js → rotate-ccw-om7JDsQ-.js} +1 -1
  95. package/assets/{roving-focus-CCsAlkWZ.js → roving-focus-BVJG2ofh.js} +1 -1
  96. package/assets/{row-actions-ZFt2V9Kz.js → row-actions-dM2z5A0x.js} +1 -1
  97. package/assets/{search-mirror-MYcnbbOP.js → search-mirror-DcfTPF-i.js} +1 -1
  98. package/assets/{search-token-index-B83nV8O4.js → search-token-index-k1Au9EYh.js} +1 -1
  99. package/assets/{sections-BihXO8oY.js → sections-biEXpz9y.js} +1 -1
  100. package/assets/{senders-CBiTxPTf.js → senders-Dl-fX-rj.js} +1 -1
  101. package/assets/settings-D0jYg_8p.js +1 -0
  102. package/assets/{settings-screen-DrUkCIc8.js → settings-screen-AvsVs57A.js} +1 -1
  103. package/assets/{shield-check-CK2b-sGg.js → shield-check-1CM9Pvzd.js} +1 -1
  104. package/assets/{suggested-vips-B7P-0eCw.js → suggested-vips-BSI_9ZkS.js} +1 -1
  105. package/assets/useCalendarData-Dh9Au_9G.js +1 -0
  106. package/assets/{useCalendars-CUUfKEWF.js → useCalendars-BUaj7BDG.js} +1 -1
  107. package/assets/{useDebouncedValue-CCilrXn7.js → useDebouncedValue-DRdv4Vl1.js} +1 -1
  108. package/assets/{useFilters-D6TWTCaf.js → useFilters-C-KZauxf.js} +1 -1
  109. package/assets/{useLabels-Cp8HIOMT.js → useLabels-BgCM_prF.js} +1 -1
  110. package/assets/{useLayoutTier-CYeHLrjH.js → useLayoutTier-BAUIkr7p.js} +1 -1
  111. package/assets/{useMessageBodyContent-Brfp8ayB.js → useMessageBodyContent-DWJAyoTG.js} +1 -1
  112. package/assets/{useQueries-BN3GIDu9.js → useQueries-BQVY3UPI.js} +1 -1
  113. package/assets/{useRefreshControl-CcMeCYwi.js → useRefreshControl-ph0BlCty.js} +1 -1
  114. package/assets/{useResultFolderIndex-eiPPM65h.js → useResultFolderIndex-CSTKOvAu.js} +1 -1
  115. package/assets/{useSearchTokenContext-RGBzXekP.js → useSearchTokenContext-BRly3Sjb.js} +4 -4
  116. package/assets/{useSemanticSearch-BseEAAw4.js → useSemanticSearch-C9ggGpra.js} +1 -1
  117. package/assets/{useSignature-4OoY1Zz1.js → useSignature-_ED9cOIy.js} +1 -1
  118. package/assets/{window-lfYFRz6w.js → window-C1b4qarP.js} +1 -1
  119. package/index.html +2 -2
  120. package/package.json +1 -1
  121. package/assets/MailListHeader-TtDy7Ihz.js +0 -7
  122. package/assets/MailNav-BvNb3frZ.js +0 -1
  123. package/assets/_calendarObjectId-DK04qwao.js +0 -1
  124. package/assets/_mailboxId-Cu5d5Ts_.js +0 -1
  125. package/assets/_messageId-BN3eWH6l.js +0 -1
  126. package/assets/_messageId-BTKxE4qN.js +0 -1
  127. package/assets/_messageId-vwUBCpRG.js +0 -1
  128. package/assets/_outboxMessageId-D5Bcejlf.js +0 -1
  129. package/assets/_recurrenceId-BpT-_Zg6.js +0 -1
  130. package/assets/_threadId-BybDCIaj.js +0 -1
  131. package/assets/_threadId-TVvvTKOV.js +0 -1
  132. package/assets/_threadId-pfz3LGax.js +0 -1
  133. package/assets/_view._date-BmQL7nkx.js +0 -1
  134. package/assets/accounts-dZnPAfEe.js +0 -1
  135. package/assets/bottom-sheet-C8Lt1CCH.js +0 -1
  136. package/assets/brief-QBvaS8OA.js +0 -1
  137. package/assets/chevron-left-yG-Wi4oU.js +0 -1
  138. package/assets/compose._-_outboxMessageId_-CYgwPOQo.js +0 -1
  139. package/assets/compose._-_outboxMessageId_-DQnbIpf0.js +0 -1
  140. package/assets/compose._-_outboxMessageId_-DSVnNLan.js +0 -1
  141. package/assets/compose._-_outboxMessageId_-Dd8iYa1N.js +0 -1
  142. package/assets/confirm-dialog-DtoFm1zW.js +0 -1
  143. package/assets/flagged-CNYez-G4.js +0 -1
  144. package/assets/folders-DNthnZoi.js +0 -1
  145. package/assets/index-BN3eWH6l.js +0 -1
  146. package/assets/index-BNiG5Qvs.js +0 -1
  147. package/assets/index-CNC9rXJk.js +0 -1
  148. package/assets/index-CqmDDg2W.js +0 -1
  149. package/assets/index-DYSz14lL.js +0 -1
  150. package/assets/index-DcMLjCJU.js +0 -1
  151. package/assets/index-UgwgEP5Q.js +0 -1
  152. package/assets/index-wqgHsxD4.js +0 -1
  153. package/assets/index-x-Xf8GeU.js +0 -1
  154. package/assets/mail-BfUaIqMr.js +0 -1
  155. package/assets/onboarding-BEeZzoAh.js +0 -1
  156. package/assets/outbox-CALB-nqL.js +0 -1
  157. package/assets/settings-CWm4nzkw.js +0 -1
  158. package/assets/useCalendarData-SN3dKvf6.js +0 -1
@@ -1 +1 @@
1
- import{j as e,U as a}from"./index-CnQhUzpu.js";import{E as s}from"./EmptyState-DjG2vik2.js";function r(){return e.jsx("div",{className:"flex h-full items-center justify-center bg-surface",children:e.jsx(s,{message:"Pick an event to read it here.",icon:e.jsx(a,{className:"size-8"})})})}export{r as component};
1
+ import{j as e,V as a}from"./index-DXkko108.js";import{E as s}from"./EmptyState-DqEP1kNd.js";function r(){return e.jsx("div",{className:"flex h-full items-center justify-center bg-surface",children:e.jsx(s,{message:"Pick an event to read it here.",icon:e.jsx(a,{className:"size-8"})})})}export{r as component};
@@ -0,0 +1 @@
1
+ import{j as r}from"./index-DXkko108.js";import{B as o}from"./BriefPane-fwQqEof8.js";import"./useSearchTokenContext-BRly3Sjb.js";import"./kbd-Cn9Tbmmd.js";import"./useMessageBodyContent-DWJAyoTG.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-CxXickFS.js";import"./roving-focus-BVJG2ofh.js";import"./search-token-index-k1Au9EYh.js";import"./useLayoutTier-BAUIkr7p.js";import"./useQueries-BQVY3UPI.js";import"./attachment-file-D3QKEMvK.js";import"./mail-SsJCOul8.js";import"./avatar-B6_QS9Vn.js";import"./index-BxITc2V1.js";import"./useSignature-_ED9cOIy.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-DRdv4Vl1.js";import"./sections-biEXpz9y.js";import"./format-B3FZZ_Wg.js";import"./EmptyState-DqEP1kNd.js";import"./ErrorState-E7wwBvZt.js";import"./download-jGq9Kcl5.js";import"./calendar-event-chip-Cdhm7rmt.js";import"./calendar-color-BYSDonpj.js";import"./map-pin-fTxfnqFj.js";import"./attendee-row-BykOhwYt.js";import"./clock-BxhfAHx6.js";import"./shield-check-1CM9Pvzd.js";import"./useFilters-C-KZauxf.js";import"./confirm-dialog-Crb3-RAA.js";import"./menu-eSleC8XY.js";import"./useRefreshControl-ph0BlCty.js";import"./circle-check-big-BR5h0Zvj.js";import"./refresh-cw-6xfOFxC9.js";import"./useSemanticSearch-C9ggGpra.js";import"./useLabels-BgCM_prF.js";import"./search-query-Cr_ZXBCp.js";import"./wizard-selection-DxUM65kM.js";function N(){return r.jsx(o.Reading,{})}export{N as component};
@@ -0,0 +1 @@
1
+ import{j as o}from"./index-DXkko108.js";import{F as r}from"./FlaggedPane-CLK73bCu.js";import"./useSearchTokenContext-BRly3Sjb.js";import"./kbd-Cn9Tbmmd.js";import"./useMessageBodyContent-DWJAyoTG.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-CxXickFS.js";import"./roving-focus-BVJG2ofh.js";import"./search-token-index-k1Au9EYh.js";import"./useLayoutTier-BAUIkr7p.js";import"./useQueries-BQVY3UPI.js";import"./attachment-file-D3QKEMvK.js";import"./mail-SsJCOul8.js";import"./avatar-B6_QS9Vn.js";import"./index-BxITc2V1.js";import"./useSignature-_ED9cOIy.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-DRdv4Vl1.js";import"./sections-biEXpz9y.js";import"./format-B3FZZ_Wg.js";import"./EmptyState-DqEP1kNd.js";import"./ErrorState-E7wwBvZt.js";import"./download-jGq9Kcl5.js";import"./calendar-event-chip-Cdhm7rmt.js";import"./calendar-color-BYSDonpj.js";import"./map-pin-fTxfnqFj.js";import"./attendee-row-BykOhwYt.js";import"./clock-BxhfAHx6.js";import"./shield-check-1CM9Pvzd.js";import"./useFilters-C-KZauxf.js";import"./confirm-dialog-Crb3-RAA.js";import"./menu-eSleC8XY.js";import"./MailViewChrome-BsXNinpD.js";import"./refresh-cw-6xfOFxC9.js";import"./wizard-selection-DxUM65kM.js";function I(){return o.jsx(r.Reading,{})}export{I as component};
@@ -1 +1 @@
1
- import{j as n,t as s}from"./index-CnQhUzpu.js";function x({className:e,...t}){return n.jsx("kbd",{className:s("inline-flex h-4 min-w-4 items-center justify-center rounded-xs border border-line bg-surface-sunken px-1 font-sans text-2xs text-fg-muted",e),...t})}export{x as K};
1
+ import{j as n,t as s}from"./index-DXkko108.js";function x({className:e,...t}){return n.jsx("kbd",{className:s("inline-flex h-4 min-w-4 items-center justify-center rounded-xs border border-line bg-surface-sunken px-1 font-sans text-2xs text-fg-muted",e),...t})}export{x as K};
@@ -1 +1 @@
1
- import{r as f,j as e,ax as h,bj as y,aw as b,bH as g,f as v,a1 as N,u as C,c as L,d as I,aJ as D,aL as S,B as w}from"./index-CnQhUzpu.js";import{C as E}from"./confirm-dialog-DtoFm1zW.js";import{S as $}from"./settings-screen-DrUkCIc8.js";import{E as j}from"./ErrorState-D9K04lHc.js";import{a as T,b as k,c as R,u as O}from"./useLabels-Cp8HIOMT.js";import"./avatar-BSvAFgta.js";import"./chevron-left-yG-Wi4oU.js";import"./menu-CB_7f-VX.js";import"./circle-help-kesrsCfa.js";function B({labels:l,onRename:i,onRecolor:n,onDelete:m,deletingLabelId:c}){const[u,r]=f.useState(),[o,d]=f.useState("");if(l.length===0)return e.jsx("p",{className:"py-6 text-sm text-fg-muted",children:"No labels yet. Create one below, then use it in a filter or apply it to mail directly."});const t=a=>{const s=o.trim();s!==""&&i(a,s),r(void 0)};return e.jsx("ul",{className:"divide-y divide-line rounded-md border border-line",children:l.map(a=>e.jsxs("li",{className:"flex items-center gap-3 px-3 py-2.5",children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[u===a.labelId?e.jsx(h,{autoFocus:!0,value:o,onChange:s=>d(s.target.value),onBlur:()=>t(a.labelId),onKeyDown:s=>{s.key==="Enter"&&(s.preventDefault(),t(a.labelId)),s.key==="Escape"&&(s.preventDefault(),r(void 0))},"aria-label":`Rename label ${a.name}`}):e.jsx("button",{type:"button",onClick:()=>{r(a.labelId),d(a.name)},"aria-label":`Rename label ${a.name}`,className:"flex items-center gap-2 rounded-sm text-left hover:opacity-80",children:e.jsx(y,{label:a})}),e.jsx("p",{className:"mt-0.5 text-xs text-fg-subtle",children:a.filterCount===0?"Not used in any filter":`Used in ${a.filterCount} ${a.filterCount===1?"filter":"filters"}`})]}),e.jsx(b,{"aria-label":`Color for ${a.name}`,value:a.color,onChange:s=>n(a.labelId,s.target.value),className:"w-28 shrink-0",children:g.map(s=>e.jsx("option",{value:s,children:s},s))}),e.jsx(v,{variant:"ghost",size:"sm",icon:e.jsx(N,{className:"size-4 text-danger"}),onClick:()=>m(a),disabled:c===a.labelId,"aria-label":`Delete label ${a.name}`})]},a.labelId))})}const P=(l,i)=>{if(i===0)return{title:`Delete the "${l}" label?`};const n=i===1?"filter":"filters";return{title:`Delete the "${l}" label?`,description:`This also deletes ${i} ${n} that ${i===1?"applies":"apply"} it — they can't be recovered.`}},H=e.jsxs("div",{className:"space-y-3",children:[e.jsx("p",{children:"Labels mark mail without moving it — a message can carry any number of them alongside whichever folder it lives in."}),e.jsx("p",{children:"Use a label in a filter's action to have new (and existing) mail label itself automatically, or apply one to a selection directly from the mailbox."}),e.jsx("p",{children:"Deleting a label removes it from every message, and deletes every filter that applies it — the confirmation names how many."})]});function _({accountId:l}){const{createLabel:i,isPending:n,isError:m}=O(l),[c,u]=f.useState(""),[r,o]=f.useState("Default"),d=()=>{const t=c.trim();t!==""&&i(t,r).then(()=>{u(""),o("Default")})};return e.jsxs("div",{className:"space-y-2 rounded-sm border border-line bg-surface p-3",children:[e.jsx("p",{className:"text-sm font-medium text-fg",children:"New label"}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end",children:[e.jsxs("div",{className:"flex-1 space-y-1",children:[e.jsx("span",{className:"text-xs text-fg-muted",children:"Name"}),e.jsx(h,{value:c,onChange:t=>u(t.target.value),placeholder:"e.g. Receipts","aria-label":"Label name",onKeyDown:t=>{t.key==="Enter"&&(t.preventDefault(),d())}})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("span",{className:"text-xs text-fg-muted",children:"Color"}),e.jsx(b,{value:r,onChange:t=>o(t.target.value),"aria-label":"Label color",className:"w-28",children:g.map(t=>e.jsx("option",{value:t,children:t},t))})]}),e.jsx(v,{variant:"primary",onClick:d,disabled:n||c.trim()==="",children:n?"Creating…":"Create label"})]}),m&&e.jsx(w,{tone:"danger",variant:"soft",children:"Couldn't create that label. Please try again."})]})}function A({account:l}){const i=l.accountId,{labels:n,isPending:m,isError:c,error:u,refetch:r}=T(i),{updateLabel:o}=k(i),{deleteLabel:d,deletingLabelId:t}=R(i),[a,s]=f.useState();return e.jsxs("section",{className:"space-y-2",children:[e.jsx("h2",{className:"text-sm font-semibold text-fg",children:l.email}),m?e.jsx("div",{className:"h-16 animate-pulse rounded-md border border-line bg-surface","aria-busy":"true","aria-label":`Loading labels for ${l.email}`}):c?e.jsx(j,{variant:"inline",title:`Couldn't load labels for ${l.email}`,error:u,onRetry:()=>{r()}}):e.jsx(B,{labels:n,onRename:(p,x)=>o(p,{name:x}),onRecolor:(p,x)=>o(p,{color:x}),onDelete:s,deletingLabelId:t}),e.jsx(_,{accountId:i}),a&&(()=>{const p=P(a.name,a.filterCount);return e.jsx(E,{isOpen:!0,title:p.title,description:p.description,confirmLabel:"Delete label",destructive:!0,isBusy:t===a.labelId,onConfirm:()=>{d(a.labelId),s(void 0)},onCancel:()=>s(void 0)})})()]})}function q(){const l=C(),[i,n]=f.useState(!0),{data:m,isPending:c,isError:u,error:r,refetch:o}=L(I()),d=t=>{const a=S[t];a&&l({to:a})};return e.jsx($,{items:D,activeId:"labels",title:"Labels",description:"Mark mail without moving it, per account.",help:H,helpOpen:i,onToggleHelp:()=>n(t=>!t),onSelect:d,onBackToMail:()=>{l({to:"/mail"})},children:c?e.jsx("div",{className:"h-24 animate-pulse rounded-sm border border-line bg-surface","aria-busy":"true","aria-label":"Loading accounts"}):u?e.jsx(j,{title:"Couldn't load accounts",error:r,onRetry:()=>{o()}}):m.accounts.length===0?e.jsx("p",{className:"py-12 text-sm text-fg-muted",children:"No accounts configured."}):e.jsx("div",{className:"space-y-8",children:m.accounts.map(t=>e.jsx(A,{account:t},t.accountId))})})}export{q as component};
1
+ import{r as f,j as e,ay as h,bk as y,ax as b,bI as g,f as v,a2 as N,u as C,c as L,d as I,aK as D,aM as S,B as w}from"./index-DXkko108.js";import{C as E}from"./confirm-dialog-Crb3-RAA.js";import{S as $}from"./settings-screen-AvsVs57A.js";import{E as j}from"./ErrorState-E7wwBvZt.js";import{a as k,b as T,c as R,u as O}from"./useLabels-BgCM_prF.js";import"./avatar-B6_QS9Vn.js";import"./chevron-left-Cn-ry2g0.js";import"./menu-eSleC8XY.js";import"./circle-help-DUS4kGK8.js";function B({labels:l,onRename:i,onRecolor:n,onDelete:m,deletingLabelId:c}){const[u,r]=f.useState(),[o,d]=f.useState("");if(l.length===0)return e.jsx("p",{className:"py-6 text-sm text-fg-muted",children:"No labels yet. Create one below, then use it in a filter or apply it to mail directly."});const t=a=>{const s=o.trim();s!==""&&i(a,s),r(void 0)};return e.jsx("ul",{className:"divide-y divide-line rounded-md border border-line",children:l.map(a=>e.jsxs("li",{className:"flex items-center gap-3 px-3 py-2.5",children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[u===a.labelId?e.jsx(h,{autoFocus:!0,value:o,onChange:s=>d(s.target.value),onBlur:()=>t(a.labelId),onKeyDown:s=>{s.key==="Enter"&&(s.preventDefault(),t(a.labelId)),s.key==="Escape"&&(s.preventDefault(),r(void 0))},"aria-label":`Rename label ${a.name}`}):e.jsx("button",{type:"button",onClick:()=>{r(a.labelId),d(a.name)},"aria-label":`Rename label ${a.name}`,className:"flex items-center gap-2 rounded-sm text-left hover:opacity-80",children:e.jsx(y,{label:a})}),e.jsx("p",{className:"mt-0.5 text-xs text-fg-subtle",children:a.filterCount===0?"Not used in any filter":`Used in ${a.filterCount} ${a.filterCount===1?"filter":"filters"}`})]}),e.jsx(b,{"aria-label":`Color for ${a.name}`,value:a.color,onChange:s=>n(a.labelId,s.target.value),className:"w-28 shrink-0",children:g.map(s=>e.jsx("option",{value:s,children:s},s))}),e.jsx(v,{variant:"ghost",size:"sm",icon:e.jsx(N,{className:"size-4 text-danger"}),onClick:()=>m(a),disabled:c===a.labelId,"aria-label":`Delete label ${a.name}`})]},a.labelId))})}const P=(l,i)=>{if(i===0)return{title:`Delete the "${l}" label?`};const n=i===1?"filter":"filters";return{title:`Delete the "${l}" label?`,description:`This also deletes ${i} ${n} that ${i===1?"applies":"apply"} it — they can't be recovered.`}},_=e.jsxs("div",{className:"space-y-3",children:[e.jsx("p",{children:"Labels mark mail without moving it — a message can carry any number of them alongside whichever folder it lives in."}),e.jsx("p",{children:"Use a label in a filter's action to have new (and existing) mail label itself automatically, or apply one to a selection directly from the mailbox."}),e.jsx("p",{children:"Deleting a label removes it from every message, and deletes every filter that applies it — the confirmation names how many."})]});function H({accountId:l}){const{createLabel:i,isPending:n,isError:m}=O(l),[c,u]=f.useState(""),[r,o]=f.useState("Default"),d=()=>{const t=c.trim();t!==""&&i(t,r).then(()=>{u(""),o("Default")})};return e.jsxs("div",{className:"space-y-2 rounded-sm border border-line bg-surface p-3",children:[e.jsx("p",{className:"text-sm font-medium text-fg",children:"New label"}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end",children:[e.jsxs("div",{className:"flex-1 space-y-1",children:[e.jsx("span",{className:"text-xs text-fg-muted",children:"Name"}),e.jsx(h,{value:c,onChange:t=>u(t.target.value),placeholder:"e.g. Receipts","aria-label":"Label name",onKeyDown:t=>{t.key==="Enter"&&(t.preventDefault(),d())}})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("span",{className:"text-xs text-fg-muted",children:"Color"}),e.jsx(b,{value:r,onChange:t=>o(t.target.value),"aria-label":"Label color",className:"w-28",children:g.map(t=>e.jsx("option",{value:t,children:t},t))})]}),e.jsx(v,{variant:"primary",onClick:d,disabled:n||c.trim()==="",children:n?"Creating…":"Create label"})]}),m&&e.jsx(w,{tone:"danger",variant:"soft",children:"Couldn't create that label. Please try again."})]})}function M({account:l}){const i=l.accountId,{labels:n,isPending:m,isError:c,error:u,refetch:r}=k(i),{updateLabel:o}=T(i),{deleteLabel:d,deletingLabelId:t}=R(i),[a,s]=f.useState();return e.jsxs("section",{className:"space-y-2",children:[e.jsx("h2",{className:"text-sm font-semibold text-fg",children:l.email}),m?e.jsx("div",{className:"h-16 animate-pulse rounded-md border border-line bg-surface","aria-busy":"true","aria-label":`Loading labels for ${l.email}`}):c?e.jsx(j,{variant:"inline",title:`Couldn't load labels for ${l.email}`,error:u,onRetry:()=>{r()}}):e.jsx(B,{labels:n,onRename:(p,x)=>o(p,{name:x}),onRecolor:(p,x)=>o(p,{color:x}),onDelete:s,deletingLabelId:t}),e.jsx(H,{accountId:i}),a&&(()=>{const p=P(a.name,a.filterCount);return e.jsx(E,{isOpen:!0,title:p.title,description:p.description,confirmLabel:"Delete label",destructive:!0,isBusy:t===a.labelId,onConfirm:()=>{d(a.labelId),s(void 0)},onCancel:()=>s(void 0)})})()]})}function J(){const l=C(),[i,n]=f.useState(!0),{data:m,isPending:c,isError:u,error:r,refetch:o}=L(I()),d=t=>{const a=S[t];a&&l({to:a})};return e.jsx($,{items:D,activeId:"labels",title:"Labels",description:"Mark mail without moving it, per account.",help:_,helpOpen:i,onToggleHelp:()=>n(t=>!t),onSelect:d,onBackToMail:()=>{l({to:"/mail"})},children:c?e.jsx("div",{className:"h-24 animate-pulse rounded-sm border border-line bg-surface","aria-busy":"true","aria-label":"Loading accounts"}):u?e.jsx(j,{title:"Couldn't load accounts",error:r,onRetry:()=>{o()}}):m.accounts.length===0?e.jsx("p",{className:"py-12 text-sm text-fg-muted",children:"No accounts configured."}):e.jsx("div",{className:"space-y-8",children:m.accounts.map(t=>e.jsx(M,{account:t},t.accountId))})})}export{J as component};
@@ -0,0 +1 @@
1
+ import{e as ee,j as s,t as F,v as se,f as I,w as te,x as M,r as u,y as P,z as ne,A as oe,C as ae,h as Q,D as re,E as ie,F as ce,G as le,X as ue,H as de,a as me,b as pe,J as he,K as fe,M as xe,N as ge,P as ve,Q as be,R as ye,u as Se,c as je,d as Ce,S as Ie,O as Ne,T as we}from"./index-DXkko108.js";import{S as Me,D as Ee,a as Oe,b as Re,u as Pe,s as Te,i as ke,t as Le,K as Ae,c as De,d as Fe,e as Qe,f as Ke}from"./search-token-index-k1Au9EYh.js";import{u as O,a as _e}from"./useMessageBodyContent-DWJAyoTG.js";import{P as ze}from"./pencil-C1oLb7kY.js";import{c as Be,s as He,M as Ve}from"./MailShell-TMwF6sX-.js";import{u as qe,a as $e,R as Ge,s as Ue,i as We,H as Ye,M as Je}from"./useRefreshControl-ph0BlCty.js";import{M as Xe}from"./menu-eSleC8XY.js";import{B as Ze}from"./bug-lpYW9xjp.js";import{S as es,A as ss,L as ts,M as ns}from"./MailNav-CYlFq8R5.js";import{A as os}from"./avatar-B6_QS9Vn.js";import{u as as}from"./sections-biEXpz9y.js";import{E as rs}from"./ErrorState-E7wwBvZt.js";import{K as T}from"./kbd-Cn9Tbmmd.js";import{u as is}from"./index-BxITc2V1.js";import{u as K,i as cs}from"./useLayoutTier-BAUIkr7p.js";import{u as ls}from"./useQueries-BQVY3UPI.js";import{u as us}from"./useResultFolderIndex-CSTKOvAu.js";import{u as ds}from"./useDebouncedValue-DRdv4Vl1.js";import"./search-scope-B5-OK3Cq.js";import"./FullCompose-BApcbRDS.js";import"./confirm-dialog-Crb3-RAA.js";import"./circle-check-big-BR5h0Zvj.js";import"./refresh-cw-6xfOFxC9.js";import"./roving-focus-BVJG2ofh.js";import"./outbox-status-BlKn6P0x.js";import"./useSignature-_ED9cOIy.js";import"./account-form-helpers-DhckT_PN.js";import"./format-B3FZZ_Wg.js";const ms=ee("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);function ps({leading:e,search:t,actions:n,className:a}){return s.jsxs("header",{className:F("flex min-h-pane-header w-full shrink-0 items-center gap-2 border-b border-line bg-canvas px-row-inset py-1",a),children:[e&&s.jsx("div",{className:"flex shrink-0 items-center gap-1",children:e}),s.jsx("div",{className:"flex min-w-0 flex-1 justify-start",children:s.jsx("div",{className:"w-full max-w-xs transition-[max-width] duration-150 ease-out focus-within:max-w-lg",children:t})}),n&&s.jsx("div",{className:"flex shrink-0 items-center gap-1",children:n})]})}function hs(){const e=se();if(!e)return null;const t=e.showNavPane?!e.navCollapsed:!1;return s.jsx(I,{variant:"ghost",size:"sm",icon:s.jsx(Xe,{className:"size-4"}),onClick:e.toggleNav,"aria-label":t?"Hide folders":"Show folders","aria-expanded":t,title:"Folders",className:"shrink-0"})}const fs={global:"Search all mail",pending:"Search mail",scoped:"Search this folder"};function xs({search:e,onCompose:t,onReportBug:n,onOpenSettings:a,composeShortcut:o,refreshControl:r,account:c}){return s.jsx(ps,{leading:s.jsx(hs,{}),search:s.jsx(Me,{value:e.value,onChange:e.onChange,onClear:e.onClear,onClearQuery:e.onClearQuery,chips:e.chips,onRemoveChip:e.onRemoveChip,placeholder:fs[e.scope]}),actions:s.jsxs(s.Fragment,{children:[s.jsx(I,{variant:"ghost",size:"sm",icon:s.jsx(ms,{className:"size-4"}),title:o?`Compose (${o})`:"Compose","aria-label":"Compose",onClick:t}),s.jsx(I,{variant:"ghost",size:"sm",icon:s.jsx(Ze,{className:"size-4"}),title:"Report a bug","aria-label":"Report a bug",onClick:n}),s.jsx(I,{variant:"ghost",size:"sm",icon:s.jsx(es,{className:"size-4"}),title:"Settings","aria-label":"Settings",onClick:a}),r,c]})})}function gs(){const e=te(),t=M({select:l=>P(l.location.pathname)}),n=M({select:l=>ne(l.location.search)}),[a,o]=u.useState(n),r=ds(a,200),[c,d]=u.useState(t);if(c!==t){const l=He(c,t,n);d(t),l!==void 0&&o(l)}const p=u.useCallback(l=>{d(P(e.state.location.pathname)),o(l)},[e]);return{searchInput:a,committedQuery:Be(a,r),viewKey:t,setSearchInput:p}}const vs=()=>{const e=O();return oe()?null:s.jsx("button",{type:"button",onClick:e,"aria-label":"Compose new message",className:"lg:hidden fixed right-4 z-30 h-14 w-14 rounded-full bg-accent text-accent-fg shadow-lg flex items-center justify-center hover:opacity-90 active:scale-95 transition-all",style:{bottom:"calc(env(safe-area-inset-bottom, 0) + 1rem)"},children:s.jsx(ze,{className:"size-6"})})},bs=({email:e,onSignOut:t})=>{const n=e??"Account";return s.jsxs(Ee,{trigger:s.jsx(os,{name:n,email:e??void 0,size:"sm"}),align:"right",children:[e&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"px-3 py-2 text-xs text-fg-muted truncate",title:e,"data-testid":"account-menu-email",children:e}),s.jsx(Oe,{})]}),s.jsxs(Re,{onClick:t,children:[s.jsx(ts,{className:"size-4"}),"Sign out"]})]})},ys=()=>s.jsx(ss,{children:({email:e,signOut:t})=>s.jsx(bs,{email:e,onSignOut:t})});function Ss({accounts:e}){const{searchInput:t,onSearchChange:n,onSearchClear:a,onSearchClearQuery:o,resultFolderIndex:r}=ae(),c=Q(),d=as(),p=O(),{scope:l,clearScope:x}=Pe(e),f=l.kind==="scoped"?[{id:l.chip.id,label:l.chip.label,tone:"scope"}]:void 0,m=u.useMemo(()=>e.map(v=>v.accountId),[e]),{hasNewMail:i}=qe(),{state:h,errorMessage:y,refresh:g}=$e(m,{onSettled:()=>ke(c,Le(r.keys()))});return s.jsx(xs,{search:{value:t,scope:l.kind,chips:f,onChange:n,onClear:a,onClearQuery:o,onRemoveChip:x},onCompose:p,onReportBug:re,onOpenSettings:()=>d("accounts"),composeShortcut:Te("compose"),refreshControl:s.jsx(Ge,{state:h,onRefresh:g,label:"Refresh all accounts",errorMessage:y,hasUpdate:i(m)}),account:s.jsx(ys,{})})}const js=({isOpen:e,onClose:t})=>{const n=u.useRef(null);return ie({id:"shortcuts",open:e,answers:{back:t}}),ce(n,e),e?s.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[s.jsx(le,{label:"Dismiss keyboard shortcuts",onDismiss:t,className:"backdrop-blur-sm"}),s.jsxs("div",{ref:n,role:"dialog","aria-modal":"true","aria-label":"Keyboard shortcuts",tabIndex:-1,className:F("relative z-10 max-h-[85vh] w-full max-w-2xl overflow-y-auto","rounded-lg border border-line bg-surface shadow-lg","p-6"),children:[s.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[s.jsx("h2",{className:"text-lg font-semibold",children:"Keyboard shortcuts"}),s.jsx("button",{type:"button",onClick:t,className:"p-1 text-fg-muted transition-colors hover:text-fg","aria-label":"Close",children:s.jsx(ue,{className:"size-5"})})]}),s.jsx("div",{className:"grid gap-x-8 gap-y-6 sm:grid-cols-2",children:Ae.map(a=>s.jsxs("div",{children:[s.jsx("h3",{className:"mb-3 text-sm font-medium text-fg-muted",children:a.title}),s.jsx("div",{className:"space-y-2",children:a.hints.map(o=>s.jsxs("div",{className:"flex items-center justify-between gap-4",children:[s.jsx("span",{className:"text-sm",children:o.description}),s.jsx("span",{className:"flex shrink-0 items-center gap-1",children:o.keys.map((r,c)=>s.jsxs(u.Fragment,{children:[c>0&&o.keys[0]==="g"&&s.jsx("span",{className:"text-2xs text-fg-subtle",children:"then"}),s.jsx(T,{children:r})]},r))})]},`${o.action}-${o.keys.join("+")}`))})]},a.title))}),s.jsx("div",{className:"mt-6 border-t border-line pt-4",children:s.jsxs("p",{className:"text-center text-xs text-fg-muted",children:["Press ",s.jsx(T,{children:"Esc"})," to close"]})})]})]}):null};function Cs(e){const t=ls({queries:e.map(n=>({...de({path:{accountId:n.accountId}}),staleTime:1/0}))});return u.useMemo(()=>De(t.map(n=>n.data?.items??[])),[t])}const _="remit:intelligence-open";function Is(){try{return localStorage.getItem(_)!=="closed"}catch{return!0}}function Ns(e){try{localStorage.setItem(_,e?"open":"closed")}catch{}}function k({panels:e,prefersOpen:t,isDesktop:n,hasThread:a,raisedFor:o,openMessage:r}){return o!==null&&o===r?!0:e.length>0?e.includes("intelligence"):n&&a&&t}const ws=()=>{const e=K(),t=me(),n=pe(),a=t.find(he),o=Fe(),[r,c]=u.useState(Is),d=o?`${o.threadId}/${o.messageId??""}`:null,[p,l]=u.useState(null),x={panels:t,prefersOpen:r,isDesktop:e==="desktop",hasThread:o!==void 0,openMessage:d},f=k({...x,raisedFor:p}),m=k({...x,raisedFor:null}),i=u.useCallback((v,S)=>{n([...v?["intelligence"]:[],...S?[S]:[]])},[n]),h=u.useCallback(v=>{i(m,v)},[m,i]),y=u.useCallback(()=>{if(f&&!m){l(null);return}const v=!f;Ns(v),c(v),l(null),i(v,a)},[m,f,a,i]),g=u.useCallback(()=>{l(d)},[d]);return{openOverlay:a,intelligenceOpen:f,showOverlay:h,toggleIntelligence:y,raiseIntelligence:g}};var j={exports:{}},L;function Ms(){if(L)return j.exports;L=1;const e=(t,n,a)=>new Promise((o,r)=>{if(a=Object.assign({concurrency:1/0},a),typeof n!="function")throw new TypeError("Mapper function is required");const{concurrency:c}=a;if(!(typeof c=="number"&&c>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${c}\` (${typeof c})`);const d=[],p=t[Symbol.iterator]();let l=!1,x=!1,f=0,m=0;const i=()=>{if(l)return;const h=p.next(),y=m;if(m++,h.done){x=!0,f===0&&o(d);return}f++,Promise.resolve(h.value).then(g=>n(g,y)).then(g=>{d[y]=g,f--,i()},g=>{l=!0,r(g)})};for(let h=0;h<c&&(i(),!x);h++);});return j.exports=e,j.exports.default=e,j.exports}var Es=Ms();const Os=fe(Es),Rs=900*1e3,Ps=30,Ts=(e,t)=>{if(!e)return t;const n=Number.parseInt(e,10);return Number.isFinite(n)&&n>0?n:t},ks=30*1e3,Ls=e=>Math.max(Ts(e,Ps)*1e3,ks),z=Ls(ye().mailboxPollIntervalSeconds),C=(e=Date.now(),t=z)=>We(e)?Math.min(Ye,t):t,As=5,E=new Set,Ds=(e,t,n=Rs)=>e.filter(a=>{const o=a.lastSyncAt;return o==null?!0:t-o>n}).map(a=>a.accountId),Fs=(e,t,n=z)=>e-t>=n,Qs=(e,t)=>e.filter(n=>!t.has(n)),A=(e,t)=>{if(E.delete(e),ve(t,{softError:!0},"nobody")){be(t);return}console.warn("[remit] background mailbox sync failed",{accountId:e,error:t})},D=(e,t)=>xe({path:{accountId:e},throwOnError:!0}).then(()=>{t.invalidateQueries({queryKey:ge({path:{accountId:e}})})}),Ks=e=>{const t=Q(),n=u.useRef(e);n.current=e;const a=e.map(o=>o.accountId).join(",");u.useEffect(()=>{const o=Date.now(),c=Ds(n.current,o).filter(d=>!E.has(d));if(c.length!==0)for(const d of c)E.add(d),D(d,t).catch(p=>{A(d,p)})},[a,t]),u.useEffect(()=>{let o=Date.now(),r;const c=new Set,d=()=>{o=Date.now();const m=Qs(n.current.map(i=>i.accountId),c);for(const i of m)c.add(i);Os(m,i=>D(i,t).catch(h=>{A(i,h)}).finally(()=>{c.delete(i)}),{concurrency:As})},p=()=>{if(document.visibilityState==="visible"){d(),r=setTimeout(p,C());return}},l=()=>{if(document.visibilityState!=="visible")return;r!==void 0&&clearTimeout(r);const m=Date.now(),i=C(m);if(Fs(m,o,i)){d(),r=setTimeout(p,i);return}r=setTimeout(p,o+i-m)},x=()=>{document.visibilityState==="visible"&&(r!==void 0&&clearTimeout(r),o=Date.now(),r=setTimeout(p,C()))};r=setTimeout(p,C()),document.addEventListener("visibilitychange",l);const f=Ue(x);return()=>{r!==void 0&&clearTimeout(r),document.removeEventListener("visibilitychange",l),f()}},[a,t])};function ht(){const e=Se(),t=K(),n=cs(t),{openOverlay:a,intelligenceOpen:o,showOverlay:r,toggleIntelligence:c,raiseIntelligence:d}=ws(),p=a==="shortcuts",l=a==="nav",{searchInput:x,committedQuery:f,viewKey:m,setSearchInput:i}=gs(),{data:h,isLoading:y,isError:g,error:v,refetch:S}=je({...Ce(),staleTime:1/0}),N=!!(h&&(h.accounts?.length??0)===0);u.useEffect(()=>{N&&e({to:"/onboarding",replace:!0})},[N,e]),is({enabled:!p,bindings:[{key:"?",action:"help",handler:()=>r("shortcuts"),noModifiers:!1,preventDefault:!0}]});const R=O(),B=_e(),H=M({select:w=>we(w.matches)?.list==="mailbox"}),V=u.useMemo(()=>({compose:R}),[R]);Qe({enabled:!H&&!B,handlers:V});const q=u.useCallback(()=>{i("")},[i]),$=u.useCallback(()=>{i("")},[i]),b=h?.accounts??[],G=u.useMemo(()=>b.map(w=>w.accountId),[b]),U=Cs(b),W=us(b).index,Y=u.useMemo(()=>Ke(b),[b]);Ks(b);const J=u.useCallback(()=>{a==="nav"&&r(void 0)},[a,r]),X={accounts:b,mailboxNameIndex:U,accountNameIndex:Y,resultFolderIndex:W,searchQuery:f,searchInput:x,searchViewKey:m,onSearchChange:i,onSearchClear:q,onSearchClearQuery:$,intelligenceOpen:o,onToggleIntelligence:c,onRaiseIntelligence:d},Z={isSinglePane:n,isLoading:y||N,intelligenceOpen:o,nav:s.jsx(ns,{accounts:b,onMailboxSelect:J}),topBar:n?void 0:s.jsx(Ss,{accounts:b}),overlay:n?s.jsx(vs,{}):void 0,navOpen:l,onOpenNav:()=>r("nav"),onCloseNav:()=>r(void 0)};return s.jsx(Ie.Provider,{value:X,children:s.jsxs(Je,{accountIds:G,children:[g?s.jsx("div",{className:"flex h-full items-center justify-center bg-canvas p-4",children:s.jsx(rs,{title:"Couldn't load your account",error:v,onRetry:()=>{S()}})}):s.jsx(Ve,{chrome:Z,children:s.jsx(Ne,{})}),s.jsx(js,{isOpen:p,onClose:()=>r(void 0)})]})})}export{ht as component,ae as useMailContext};
@@ -1 +1 @@
1
- import{e}from"./index-CnQhUzpu.js";const a=e("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);export{a as M};
1
+ import{e}from"./index-DXkko108.js";const a=e("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);export{a as M};
@@ -1 +1 @@
1
- import{e as c}from"./index-CnQhUzpu.js";const a=c("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);const r=c("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);export{a as G,r as M};
1
+ import{e as c}from"./index-DXkko108.js";const a=c("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);const r=c("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);export{a as G,r as M};
@@ -1 +1 @@
1
- import{e}from"./index-CnQhUzpu.js";const n=e("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);export{n as M};
1
+ import{e}from"./index-DXkko108.js";const n=e("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);export{n as M};
@@ -1 +1 @@
1
- import{r as i,j as m}from"./index-CnQhUzpu.js";import{u as D,e as b,C as g,c as y}from"./CalendarComposePane-DPZ0LmXE.js";import{u as E}from"./CalendarComposeSeed-B2BgldrX.js";import{u as h,U as x}from"./useCalendars-CUUfKEWF.js";import{u as I,b as w}from"./window-lfYFRz6w.js";import"./ErrorState-D9K04lHc.js";import"./calendar-color-CiAME2PF.js";function N({onClose:t}){const{date:c}=I(),a=E(),{calendars:d,timeZoneByCalendarId:u}=h(),{createEvent:f,isWriting:p}=D(),[C,r]=i.useState(""),[n,l]=i.useState(()=>{const e=b(a?.date??c,"");return a?{...e,allDay:a.allDay,startTime:a.allDay?"":a.startTime,endTime:a.allDay?"":a.endTime}:e}),s=d[0]?.id??"";i.useEffect(()=>{s!==""&&l(e=>e.calendarId===""?{...e,calendarId:s}:e)},[s]);const v=()=>{const e=y(n,u[n.calendarId]??x);if(!e.ok){r(e.problem);return}f(e.input).then(o=>{if(o.kind==="written"){r(""),t();return}r(o.kind==="conflict"?"This calendar changed while you were writing. Close the form and try again.":o.message)})};return m.jsx(g,{title:"New event",subtitle:n.date,calendars:d,draft:n,onChange:l,problem:C,saveLabel:"Add",isSaving:p,onSave:v,onCancel:t})}function L(){const{closeEvent:t}=w();return m.jsx(N,{onClose:t})}export{L as component};
1
+ import{r as i,j as m}from"./index-DXkko108.js";import{u as D,e as b,C as g,c as y}from"./CalendarComposePane-B2Re5idb.js";import{u as E}from"./CalendarComposeSeed-CzscCDso.js";import{u as h,U as x}from"./useCalendars-BUaj7BDG.js";import{u as I,b as w}from"./window-C1b4qarP.js";import"./ErrorState-E7wwBvZt.js";import"./calendar-color-BYSDonpj.js";function N({onClose:t}){const{date:c}=I(),a=E(),{calendars:d,timeZoneByCalendarId:u}=h(),{createEvent:f,isWriting:p}=D(),[C,r]=i.useState(""),[n,l]=i.useState(()=>{const e=b(a?.date??c,"");return a?{...e,allDay:a.allDay,startTime:a.allDay?"":a.startTime,endTime:a.allDay?"":a.endTime}:e}),s=d[0]?.id??"";i.useEffect(()=>{s!==""&&l(e=>e.calendarId===""?{...e,calendarId:s}:e)},[s]);const v=()=>{const e=y(n,u[n.calendarId]??x);if(!e.ok){r(e.problem);return}f(e.input).then(o=>{if(o.kind==="written"){r(""),t();return}r(o.kind==="conflict"?"This calendar changed while you were writing. Close the form and try again.":o.message)})};return m.jsx(g,{title:"New event",subtitle:n.date,calendars:d,draft:n,onChange:l,problem:C,saveLabel:"Add",isSaving:p,onSave:v,onCancel:t})}function L(){const{closeEvent:t}=w();return m.jsx(N,{onClose:t})}export{L as component};
@@ -0,0 +1 @@
1
+ import{q as n,h as i,u as a,r as m,j as s}from"./index-DXkko108.js";import{O as p}from"./OnboardingWizard-CCBliJuM.js";import{c}from"./onboarding-completion-CcdwV2x0.js";import"./kbd-Cn9Tbmmd.js";import"./credential-steps-DeXIsuVT.js";import"./card-CwNbxxE4.js";import"./account-form-helpers-DhckT_PN.js";import"./mail-SsJCOul8.js";import"./file-json-XpwC1d5z.js";function O(){const o=n(),e=i(),t=a(),r=m.useCallback(l=>{c({queryClient:e,recordCompleted:()=>o.recordEvent("onboarding.completed"),navigateToInbox:()=>{window.location.assign("/mail")}})},[o,e]);return s.jsx(p,{skipWelcome:!1,onComplete:r,onImportConfig:()=>{t({to:"/import"})}})}export{O as component};
@@ -1 +1 @@
1
- import{o}from"./index-CnQhUzpu.js";async function n(e){e.recordCompleted(),await e.queryClient.refetchQueries({queryKey:o()}),e.navigateToInbox()}export{n as c};
1
+ import{o}from"./index-DXkko108.js";async function n(e){e.recordCompleted(),await e.queryClient.refetchQueries({queryKey:o()}),e.navigateToInbox()}export{n as c};
@@ -0,0 +1 @@
1
+ import{j as o,O as i}from"./index-DXkko108.js";import{a as m}from"./MailShell-TMwF6sX-.js";import{u as p,O as t}from"./OutboxPane-D_ut-dw1.js";import{u as s}from"./search-mirror-DcfTPF-i.js";import"./FullCompose-BApcbRDS.js";import"./ErrorState-E7wwBvZt.js";import"./index-BxITc2V1.js";import"./useMessageBodyContent-DWJAyoTG.js";import"./useSignature-_ED9cOIy.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-DRdv4Vl1.js";import"./sections-biEXpz9y.js";import"./format-B3FZZ_Wg.js";import"./confirm-dialog-Crb3-RAA.js";import"./roving-focus-BVJG2ofh.js";import"./useSearchTokenContext-BRly3Sjb.js";import"./kbd-Cn9Tbmmd.js";import"./search-scope-B5-OK3Cq.js";import"./circle-check-big-BR5h0Zvj.js";import"./clock-BxhfAHx6.js";import"./row-actions-dM2z5A0x.js";import"./rotate-ccw-om7JDsQ-.js";import"./NavMenuButton-DigEYlF7.js";import"./menu-eSleC8XY.js";import"./outbox-status-BlKn6P0x.js";import"./search-query-Cr_ZXBCp.js";function w(){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{w as component};
@@ -1 +1 @@
1
- import{e as a}from"./index-CnQhUzpu.js";const c=a("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);export{c as P};
1
+ import{e as a}from"./index-DXkko108.js";const c=a("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);export{c as P};
@@ -1 +1 @@
1
- import{e}from"./index-CnQhUzpu.js";const t=e("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);export{t as R};
1
+ import{e}from"./index-DXkko108.js";const t=e("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);export{t as R};