@remit/web-client-dist 0.0.539 → 0.0.541

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-BF3QpH9s.js +1 -0
  2. package/assets/{CalendarComposePane-tQ70DMF5.js → CalendarComposePane-B6OhiQsN.js} +1 -1
  3. package/assets/{CalendarComposeSeed-BDYrBoOn.js → CalendarComposeSeed-CqB_vGGN.js} +1 -1
  4. package/assets/{CalendarShell-NLYcQtjI.js → CalendarShell-DbJMAS-C.js} +1 -1
  5. package/assets/{EmptyState-kUDfGSa-.js → EmptyState-CSMaYaEn.js} +1 -1
  6. package/assets/{ErrorState-VDo7BEXi.js → ErrorState-QAArpXLf.js} +1 -1
  7. package/assets/{FlaggedPane-D797wNm2.js → FlaggedPane-BtaFIljM.js} +1 -1
  8. package/assets/{FullCompose-zR5425gW.js → FullCompose-CCGrmPJg.js} +1 -1
  9. package/assets/MailListHeader-u7Rq5QvZ.js +7 -0
  10. package/assets/MailNav-DmDmKON5.js +1 -0
  11. package/assets/{MailShell-tZFfzwz5.js → MailShell-CIM1STt4.js} +1 -1
  12. package/assets/MailViewChrome-CwKbpyYR.js +1 -0
  13. package/assets/{MailboxPane-BopLrNNz.js → MailboxPane-DO9E9d66.js} +1 -1
  14. package/assets/{NavMenuButton-CfCIoTCV.js → NavMenuButton-D33sb1Iv.js} +1 -1
  15. package/assets/{OnboardingWizard-2mTY55FL.js → OnboardingWizard-B-3KPUTk.js} +1 -1
  16. package/assets/{OpenCalendarEvent-V_qj0EjB.js → OpenCalendarEvent-BtVmJGD7.js} +2 -2
  17. package/assets/OutboxPane-DuI38cvH.js +1 -0
  18. package/assets/_calendarObjectId-BFcCSDs_.js +1 -0
  19. package/assets/_mailboxId-DQF2tTng.js +1 -0
  20. package/assets/_messageId-CmzkEIXV.js +1 -0
  21. package/assets/_messageId-DXA2DL6W.js +1 -0
  22. package/assets/_messageId-DjkcpITY.js +1 -0
  23. package/assets/_outboxMessageId-C83CuACP.js +1 -0
  24. package/assets/_recurrenceId-Du4qexes.js +1 -0
  25. package/assets/_threadId-BBpdlFP4.js +1 -0
  26. package/assets/_threadId-CX4mdigM.js +1 -0
  27. package/assets/_threadId-DAMPCoMl.js +1 -0
  28. package/assets/_view._date-ccLw5fGv.js +1 -0
  29. package/assets/{accounts-NoIrbDGD.js → accounts-xBjoZkoW.js} +1 -1
  30. package/assets/{advanced-CDSXEaTr.js → advanced-ByJqVgoW.js} +2 -2
  31. package/assets/{appearance-DWg9Fev-.js → appearance-ZmXLJr87.js} +1 -1
  32. package/assets/{attachment-file-BqkgTk5V.js → attachment-file-BG27lVCM.js} +1 -1
  33. package/assets/{attendee-row-Cv_RoZCD.js → attendee-row-CTNLChhq.js} +1 -1
  34. package/assets/{avatar-5AJpJDbh.js → avatar-DXro8ker.js} +1 -1
  35. package/assets/{bottom-sheet-CelNqy1y.js → bottom-sheet-C7xkmDov.js} +1 -1
  36. package/assets/{brief-DBM3Ph9C.js → brief-B-ou101e.js} +1 -1
  37. package/assets/brief-B3zDqsEV.js +1 -0
  38. package/assets/{browser-ponyfill-CpwZ1QuB.js → browser-ponyfill-CkVzAnx2.js} +1 -1
  39. package/assets/{bug-DnU8bYv9.js → bug-DavmLUd9.js} +1 -1
  40. package/assets/calendar-DneQR1Xt.js +1 -0
  41. package/assets/{calendar-color-CHnffHyS.js → calendar-color-AdRpHzAi.js} +1 -1
  42. package/assets/{calendar-event-chip-C9NOIAJ7.js → calendar-event-chip-QZOcdP_o.js} +1 -1
  43. package/assets/{calendars-DnRJcpuO.js → calendars-CXJ5rls_.js} +1 -1
  44. package/assets/{card-BIo-eYcK.js → card-C6idQCt2.js} +1 -1
  45. package/assets/chevron-left-BwWGiDVd.js +1 -0
  46. package/assets/{circle-check-DYx-rw9M.js → circle-check-BOIz7Z_j.js} +1 -1
  47. package/assets/{circle-check-big-CiGlGCl1.js → circle-check-big-C2MGkIL1.js} +1 -1
  48. package/assets/{circle-help-D_5w7LgQ.js → circle-help-B4BuWt0G.js} +1 -1
  49. package/assets/{clock-BkwpZS6T.js → clock-BK5YthR0.js} +1 -1
  50. package/assets/compose._-_outboxMessageId_-BHPHapGA.js +1 -0
  51. package/assets/compose._-_outboxMessageId_-CR4zylJj.js +1 -0
  52. package/assets/compose._-_outboxMessageId_-CwE4fYtQ.js +1 -0
  53. package/assets/compose._-_outboxMessageId_-iWeSeSc4.js +1 -0
  54. package/assets/{config-import-CHkWlsTW.js → config-import-FPetVYo2.js} +1 -1
  55. package/assets/{confirm-dialog-Bay01642.js → confirm-dialog-k-k-byYR.js} +1 -1
  56. package/assets/{copy-8LApphug.js → copy-DOvcgC4N.js} +1 -1
  57. package/assets/{credential-steps-tHE5fDmz.js → credential-steps-C7XjDWoW.js} +1 -1
  58. package/assets/{download-oST1Pv8p.js → download-tt-Cyzcf.js} +1 -1
  59. package/assets/{file-json-DnRKjKiP.js → file-json-DTL9kFs5.js} +1 -1
  60. package/assets/{filters-Buglze8m.js → filters-oxhJ9CrI.js} +1 -1
  61. package/assets/{flagged-CJjphuiU.js → flagged-BbV9soU9.js} +1 -1
  62. package/assets/flagged-DdPgHrWA.js +1 -0
  63. package/assets/folders-BZdx-r7F.js +1 -0
  64. package/assets/{format-CWO8MVm7.js → format-By3hRFiw.js} +1 -1
  65. package/assets/{help-copy-BwQIRzP8.js → help-copy-Dwlt9trH.js} +1 -1
  66. package/assets/{import-otv52wgG.js → import-DLwEJzp8.js} +1 -1
  67. package/assets/index-26R7PEMP.js +1 -0
  68. package/assets/index-B9SKzNNx.js +1 -0
  69. package/assets/{index-DDXWq0c8.js → index-Bsmi-6m5.js} +1 -1
  70. package/assets/index-BxuJcbHa.js +1 -0
  71. package/assets/index-ByRi5YZH.js +294 -0
  72. package/assets/index-CX22JAkI.js +1 -0
  73. package/assets/index-CYm2FZEz.js +1 -0
  74. package/assets/index-CcPXpKEP.js +1 -0
  75. package/assets/index-DjkcpITY.js +1 -0
  76. package/assets/{index-DsRBPRBB.js → index-Ex7ioeVB.js} +4 -4
  77. package/assets/index-Pv-qxF_k.js +1 -0
  78. package/assets/index-npsdHvXX.js +1 -0
  79. package/assets/{kbd-B9nU8EDr.js → kbd-g95IxlDg.js} +1 -1
  80. package/assets/{labels-DBHZvdEr.js → labels-D9niB03z.js} +1 -1
  81. package/assets/mail-CrkFA1JF.js +1 -0
  82. package/assets/{mail-B-HBRveP.js → mail-D5qE4FN6.js} +1 -1
  83. package/assets/{map-pin--HA8ooZj.js → map-pin-BbuzgGID.js} +1 -1
  84. package/assets/{menu-CL8oYhg5.js → menu-BNS6TRoC.js} +1 -1
  85. package/assets/{new-jRPRW8fh.js → new-N9iBOfdl.js} +1 -1
  86. package/assets/onboarding-DWkVXZJu.js +1 -0
  87. package/assets/{onboarding-completion-DZv9f55o.js → onboarding-completion-BsrETocc.js} +1 -1
  88. package/assets/outbox-BteDz8S4.js +1 -0
  89. package/assets/{pencil-D0RtlkgQ.js → pencil-CiINOUXE.js} +1 -1
  90. package/assets/{refresh-cw-aknANAyZ.js → refresh-cw-DP7E7xBG.js} +1 -1
  91. package/assets/{rich-text-Bpmt0Q2Q.js → rich-text-Dz-h6Wzi.js} +15 -15
  92. package/assets/{rich-text-spellcheck-worker-provider-CAEYgLim.js → rich-text-spellcheck-worker-provider-BAwEUuQt.js} +1 -1
  93. package/assets/{rotate-ccw-ANFMG0Un.js → rotate-ccw-C4-mOKlW.js} +1 -1
  94. package/assets/roving-focus-BFebcwNO.js +1 -0
  95. package/assets/{row-actions-CT3DvHHR.js → row-actions-B7DxoNvh.js} +1 -1
  96. package/assets/{search-mirror-w8o3KYuJ.js → search-mirror-DxN5-fCD.js} +1 -1
  97. package/assets/{search-token-index-dunAqY2l.js → search-token-index-Cmtl3dKn.js} +1 -1
  98. package/assets/{sections-CpLvdf_Q.js → sections-wd7CziQ2.js} +1 -1
  99. package/assets/{senders-DGhCm9Cq.js → senders-CloB4eNC.js} +1 -1
  100. package/assets/settings-DH_Czyn_.js +1 -0
  101. package/assets/{settings-screen-n7380RZQ.js → settings-screen-BSHTP4w3.js} +1 -1
  102. package/assets/{shield-check-BqYHKvFE.js → shield-check-BqR-Gonk.js} +1 -1
  103. package/assets/{suggested-vips-BAvZjSyo.js → suggested-vips-rQSwcCZv.js} +1 -1
  104. package/assets/{useCalendarData-D1EN840n.js → useCalendarData-CCXTAZRA.js} +1 -1
  105. package/assets/{useCalendars-DH8nOZcd.js → useCalendars-BHFymoaq.js} +1 -1
  106. package/assets/{useDebouncedValue-Dv0WkGIF.js → useDebouncedValue-6OtqszcW.js} +1 -1
  107. package/assets/{useFilters-DS_Q_iog.js → useFilters-Ccb4BahB.js} +1 -1
  108. package/assets/{useLabels-j2kudmYw.js → useLabels-DcCbJtSx.js} +1 -1
  109. package/assets/{useLayoutTier-CCGjVGyC.js → useLayoutTier-CF0bNBqy.js} +1 -1
  110. package/assets/{useMessageBodyContent-CRGA_hjE.js → useMessageBodyContent-q8o4QD20.js} +1 -1
  111. package/assets/{useQueries-djG1CrNB.js → useQueries-gUcpJxIV.js} +1 -1
  112. package/assets/{useRefreshControl-Bi0R4fuK.js → useRefreshControl-DvDz3P8k.js} +1 -1
  113. package/assets/{useResultFolderIndex-BCGAB_OB.js → useResultFolderIndex-DlAYVvjn.js} +1 -1
  114. package/assets/{useSearchTokenContext-9o7ruLw5.js → useSearchTokenContext-BCmfVUAi.js} +3 -3
  115. package/assets/{useSemanticSearch-DYgnPGVP.js → useSemanticSearch-4IMN41e8.js} +1 -1
  116. package/assets/{useSignature--ONyUwiW.js → useSignature-D80B_qPi.js} +1 -1
  117. package/assets/{window--WwoSABt.js → window-BIqTObac.js} +1 -1
  118. package/index.html +1 -1
  119. package/package.json +1 -1
  120. package/assets/BriefPane-Ip1tU4Q2.js +0 -1
  121. package/assets/MailListHeader-BNe_s60T.js +0 -7
  122. package/assets/MailNav-Bqn1DFhd.js +0 -1
  123. package/assets/MailViewChrome-B1fzfXtB.js +0 -1
  124. package/assets/OutboxPane-DlPDtcBL.js +0 -1
  125. package/assets/_calendarObjectId-CZ_xnOwy.js +0 -1
  126. package/assets/_mailboxId-DLTSNNdz.js +0 -1
  127. package/assets/_messageId-B4E9VsGl.js +0 -1
  128. package/assets/_messageId-CWNpxM_O.js +0 -1
  129. package/assets/_messageId-CdX9aQBn.js +0 -1
  130. package/assets/_outboxMessageId-nFK7r3Fh.js +0 -1
  131. package/assets/_recurrenceId-Dn5opwOe.js +0 -1
  132. package/assets/_threadId-DliBCvhK.js +0 -1
  133. package/assets/_threadId-QAbbdkCV.js +0 -1
  134. package/assets/_threadId-cDiMLExB.js +0 -1
  135. package/assets/_view._date-AOhQ7-Uc.js +0 -1
  136. package/assets/brief-D4AeeAY5.js +0 -1
  137. package/assets/calendar-Ckcu_24O.js +0 -1
  138. package/assets/chevron-left-K8Bg0uJl.js +0 -1
  139. package/assets/compose._-_outboxMessageId_-BMcDZaSg.js +0 -1
  140. package/assets/compose._-_outboxMessageId_-CXIL2PE5.js +0 -1
  141. package/assets/compose._-_outboxMessageId_-D_3HrLmE.js +0 -1
  142. package/assets/compose._-_outboxMessageId_-opDIhYx3.js +0 -1
  143. package/assets/flagged-CBQpNBN6.js +0 -1
  144. package/assets/folders-CNPLhb4H.js +0 -1
  145. package/assets/index-B9v6nYHl.js +0 -1
  146. package/assets/index-BiRvhN4V.js +0 -1
  147. package/assets/index-BmbIB1oc.js +0 -1
  148. package/assets/index-Bry1TMaW.js +0 -1
  149. package/assets/index-CWNpxM_O.js +0 -1
  150. package/assets/index-CdX9aQBn.js +0 -1
  151. package/assets/index-ClEohi1R.js +0 -1
  152. package/assets/index-CmthVe78.js +0 -1
  153. package/assets/index-CrPVnwJ1.js +0 -294
  154. package/assets/index-R-8APqxR.js +0 -1
  155. package/assets/mail-B9aZ_UMX.js +0 -1
  156. package/assets/onboarding-BWnBpp6S.js +0 -1
  157. package/assets/outbox-D_lL10Ql.js +0 -1
  158. package/assets/settings-DXWuEuQC.js +0 -1
@@ -1,2 +1,2 @@
1
- import{j as e,t as h,f as S,a2 as V,X as Y,c as K,ep as Q,s as X,V as H,_ as J,r as C}from"./index-CrPVnwJ1.js";import{u as ee,t as se,C as te,d as ae,p as ne}from"./CalendarComposePane-tQ70DMF5.js";import{c as re,R as ie}from"./calendar-color-CHnffHyS.js";import{R as oe,A as le}from"./attendee-row-Cv_RoZCD.js";import{C as ce}from"./clock-BkwpZS6T.js";import{G as U,M as de}from"./map-pin--HA8ooZj.js";import{M as xe}from"./mail-B-HBRveP.js";import{P as me}from"./pencil-D0RtlkgQ.js";import{u as fe,c as ue,U as he}from"./useCalendars-DH8nOZcd.js";import{c as pe}from"./useCalendarData-D1EN840n.js";import{u as ge,b as ve}from"./window--WwoSABt.js";function v({icon:s,children:t}){return e.jsxs("div",{className:"flex items-start gap-2.5 py-1",children:[e.jsx("span",{className:"mt-0.5 shrink-0 text-fg-subtle",children:s}),e.jsx("div",{className:"min-w-0 flex-1 text-sm text-fg",children:t})]})}function be({event:s,calendar:t,whenText:n,onEdit:a,onDelete:o,onOpenThread:l,onClose:c,activeAttendee:x="",onActivateAttendee:b,renderAttendeeContext:k,touch:E=!1,chrome:D="header",className:r}){const R=re(t.color),d=e.jsxs(e.Fragment,{children:[e.jsx("h1",{className:"text-xl font-semibold text-fg",children:s.title}),e.jsxs("div",{className:"mt-3 flex flex-col border-b border-line pb-3",children:[e.jsx(v,{icon:e.jsx(ce,{className:"size-4"}),children:e.jsxs("span",{className:"flex flex-wrap items-center gap-2",children:[n,s.attendees.length>0&&e.jsx(oe,{rsvp:s.myRsvp})]})}),s.zoneCertainty==="ambiguous"?e.jsx(v,{icon:e.jsx(U,{className:"size-4 text-warning"}),children:e.jsx("span",{className:"text-warning",children:"The mail said a time but never a zone. Shown in your own; confirm before you travel for it."})}):s.timeZone!==""&&e.jsx(v,{icon:e.jsx(U,{className:"size-4"}),children:s.timeZone}),s.recurrenceRule!==""&&e.jsx(v,{icon:e.jsx(ie,{className:"size-4"}),children:e.jsxs("span",{className:"flex flex-wrap items-center gap-2",children:[s.recurrenceRule,s.seriesException&&e.jsx("span",{className:"rounded-xs bg-warning-soft px-1.5 py-0.5 text-2xs text-warning",children:"Moved out of the series"})]})}),s.location!==""&&e.jsx(v,{icon:e.jsx(de,{className:"size-4"}),children:s.location})]}),s.threadId!==""&&l&&e.jsxs("button",{type:"button",onClick:l,className:"mt-3 flex w-full items-center gap-2.5 rounded-md border border-line bg-surface-sunken px-3 py-2 text-left outline-none hover:border-line-strong focus-visible:ring-2 focus-visible:ring-ring",children:[e.jsx(xe,{className:"size-4 shrink-0 text-accent-2"}),e.jsxs("span",{className:"min-w-0 flex-1",children:[e.jsx("span",{className:"block text-2xs uppercase tracking-wider text-fg-subtle",children:"From this thread"}),e.jsx("span",{className:"block truncate text-sm text-fg",children:s.threadSubject})]})]}),s.attendees.length>0&&e.jsx(le,{attendees:s.attendees,activeEmail:x,onActivate:b,renderContext:k,touch:E,className:"mt-3"}),s.notes!==""&&e.jsx("p",{className:"mt-3 whitespace-pre-wrap text-sm text-fg-muted",children:s.notes})]});return D==="bare"?e.jsx("div",{className:h("flex flex-col",r),children:d}):e.jsxs("article",{className:h("flex h-full w-full flex-col bg-surface",r),children:[e.jsxs("header",{className:"flex h-pane-header shrink-0 items-center gap-2 border-b border-line px-row-inset",children:[e.jsx("span",{className:h("size-2.5 shrink-0 rounded-full",R.solid)}),e.jsxs("span",{className:"min-w-0 flex-1 truncate text-xs text-fg-muted",children:[t.name," · ",t.accountLabel]}),a&&e.jsx(S,{variant:"ghost",size:"sm",icon:e.jsx(me,{className:"size-3.5"}),onClick:a,children:"Edit"}),o&&e.jsx(S,{variant:"ghost",size:"sm",icon:e.jsx(V,{className:"size-3.5"}),onClick:o,className:"text-danger",children:"Delete"}),c&&e.jsx("button",{type:"button","aria-label":"Close event",onClick:c,className:"flex size-7 items-center justify-center rounded-md text-fg-subtle outline-none hover:bg-surface-sunken hover:text-fg focus-visible:ring-2 focus-visible:ring-ring",children:e.jsx(Y,{className:"size-4"})})]}),e.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-row-inset py-3",children:d})]})}const je=[{scope:"this",label:"This event",note:"Leaves the rest of the series alone"},{scope:"following",label:"This and everything after",note:"Splits the series here"},{scope:"all",label:"The whole series",note:"Rewrites the rule itself"}];function Ne({title:s,ruleText:t,instanceText:n,onChoose:a,onCancel:o,touch:l,className:c}){return e.jsxs("div",{className:h("flex flex-col gap-3",c),children:[e.jsxs("div",{children:[e.jsxs("h2",{className:"text-md font-semibold text-fg",children:[s," repeats"]}),e.jsx("p",{className:"text-xs text-fg-muted",children:t}),e.jsxs("p",{className:"text-xs text-fg-subtle",children:["You clicked ",n,"."]})]}),e.jsx("p",{className:"text-sm text-fg",children:"What should the change apply to?"}),e.jsx("div",{className:"flex flex-col gap-1.5",children:je.map(x=>e.jsxs("button",{type:"button",onClick:()=>a(x.scope),className:h("flex flex-col rounded-md border border-line bg-surface px-3 py-2 text-left outline-none transition-colors hover:border-line-strong hover:bg-surface-sunken focus-visible:ring-2 focus-visible:ring-ring",l&&"min-h-11 justify-center"),children:[e.jsx("span",{className:"text-sm font-medium text-fg",children:x.label}),e.jsx("span",{className:"text-2xs text-fg-subtle",children:x.note})]},x.scope))}),e.jsx(S,{variant:"ghost",size:l?"md":"sm",onClick:o,className:h("self-start",l&&"min-h-11"),children:"Cancel"})]})}const we=s=>s.replace(/\r?\n[ \t]/g,""),Z=s=>s.replace(/\\n/gi,`
2
- `).replace(/\\,/g,",").replace(/\\;/g,";").replace(/\\\\/g,"\\");function Ce(s,t){let n=!1;for(let a=t.length;a<s.length;a+=1){const o=s[a];if(a===t.length&&o!==";"&&o!==":")return;if(o==='"'){n=!n;continue}if(!n&&o===":")return s.slice(a+1).trim()}}function A(s,t){for(const n of we(s).split(/\r?\n/)){if(!n.startsWith(t))continue;const a=Ce(n,t);if(a!==void 0)return a}return""}const ye=s=>A(s,"RRULE"),ke=s=>({location:Z(A(s,"LOCATION")),description:Z(A(s,"DESCRIPTION"))}),Ee=X(404);function De(s,t){const{data:n,isLoading:a,error:o,refetch:l}=K({...Q({path:{calendarObjectId:s},query:{calendarId:t}}),meta:Ee,enabled:s!==""&&t!==""});return{resource:n,isLoading:a,error:o,refetch:()=>{l()}}}const z=new Intl.DateTimeFormat(void 0,{weekday:"short",day:"numeric",month:"long"}),y=new Intl.DateTimeFormat(void 0,{hour:"2-digit",minute:"2-digit",hour12:!1});function G(s){const t=new Date(s.start),n=new Date(s.end),a=z.format(t);return s.allDay?`${a}, all day`:z.format(n)===a?`${a}, ${y.format(t)} – ${y.format(n)}`:`${a}, ${y.format(t)} – ${z.format(n)}, ${y.format(n)}`}function Re({event:s,calendar:t,isOccurrence:n,problem:a="",onEdit:o,onDelete:l,onClose:c}){return!s||!t?e.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2 bg-surface p-8 text-center",children:[e.jsx(H,{className:"size-8 text-fg-subtle","aria-hidden":"true"}),e.jsx("p",{className:"text-sm font-medium text-fg",children:"That event isn't on this week"}),e.jsx("p",{className:"max-w-xs text-sm text-fg-muted",children:"The address names an event the calendar doesn't have here."}),e.jsx("button",{type:"button",onClick:c,className:"rounded-md border border-line px-2.5 py-1 text-sm font-medium text-fg outline-none hover:bg-surface-sunken focus-visible:ring-2 focus-visible:ring-ring",children:"Back to the calendar"})]}):e.jsxs("div",{className:"flex h-full min-h-0 flex-col bg-surface",children:[n&&e.jsx("p",{className:"shrink-0 border-b border-line bg-surface-sunken px-row-inset py-1.5 text-2xs uppercase tracking-wider text-fg-subtle",children:"One occurrence of a repeating event"}),a!==""&&e.jsxs("div",{role:"alert",className:"flex shrink-0 items-start gap-2 border-b border-danger/40 bg-danger-soft px-row-inset py-2 text-sm",children:[e.jsx(J,{className:"mt-0.5 size-4 shrink-0 text-danger","aria-hidden":"true"}),e.jsx("p",{className:"min-w-0 flex-1 break-words text-fg",children:a})]}),e.jsx(be,{event:s,calendar:t,whenText:G(s),onEdit:o,onDelete:l,onClose:c,className:"min-h-0 flex-1"})]})}const Te="This event changed somewhere else — over CalDAV, or in another tab. Nothing was saved. Close it and open it again to see the version that's stored now.";function Be({calendarObjectId:s,recurrenceId:t}){const{view:n,date:a,calendarIds:o}=ge(),{events:l}=pe({view:n,date:a,calendarIds:o}),{calendars:c,timeZoneByCalendarId:x}=fe(),{closeEvent:b}=ve(),{updateEvent:k,deleteEvent:E,isWriting:D}=ee(),r=l.find(i=>i.id===ue(s,t??"")),R=c.find(i=>i.id===r?.calendarId),{resource:d}=De(s,r?.calendarId??""),[I,p]=C.useState(void 0),[f,T]=C.useState(void 0),[u,j]=C.useState(void 0),[L,g]=C.useState(""),N=d?ke(d.icalData):void 0,F=d?ye(d.icalData):"",_=r&&!r.allDay?r.start.slice(11,16):"",w=F===""?"":se(F,_)??"Repeats",O=r!==void 0&&r.seriesId!==""&&t!==void 0&&t!=="",P=r!==void 0&&d!==void 0,$=(i,m)=>{if(i.kind==="written"){g(""),m();return}g(i.kind==="conflict"?Te:i.message)},M=i=>({calendarObjectId:s,calendarId:r?.calendarId??"",recurrenceId:t??"",scope:i,etag:d?.etag??""}),W=i=>{if(!r)return;const m=ae(r,{repeat:w,location:N?.location??"",notes:N?.description??""});p(void 0),T({before:m,scope:i}),j(m),g("")},B=i=>{p(void 0),E(M(i)).then(m=>$(m,b))},q=()=>{if(!f||!u)return;const i=ne(f.before,u,x[u.calendarId]??he);if(!i.ok){g(i.problem);return}k(M(f.scope),i.patch).then(m=>$(m,()=>{T(void 0),j(void 0)}))};return I!==void 0&&r?e.jsx("div",{className:"flex h-full flex-col justify-center bg-surface px-row-inset",children:e.jsx(Ne,{className:"mx-auto w-full max-w-md",title:r.title,ruleText:w===""?"It repeats":w,instanceText:G(r),onChoose:I==="edit"?W:B,onCancel:()=>p(void 0)})}):f&&u?e.jsx(te,{title:"Edit event",subtitle:f.scope==="this"?"This occurrence only":u.date,calendars:c,draft:u,onChange:j,problem:L,saveLabel:"Save",isSaving:D,repeatEditable:f.scope===void 0||f.scope==="all",calendarEditable:!1,onSave:q,onCancel:()=>{T(void 0),j(void 0),g("")}}):e.jsx(Re,{event:r&&{...r,location:N?.location??"",notes:N?.description??"",recurrenceRule:w},calendar:R,isOccurrence:t!==void 0,problem:L,onEdit:P?()=>O?p("edit"):W(void 0):void 0,onDelete:P?()=>O?p("delete"):B(void 0):void 0,onClose:b})}export{Be as O};
1
+ import{j as e,t as h,f as S,a1 as _,X as K,c as Q,el as V,s as X,U as H,Z as J,r as C}from"./index-ByRi5YZH.js";import{u as ee,t as se,C as te,d as ae,p as ne}from"./CalendarComposePane-B6OhiQsN.js";import{c as re,R as ie}from"./calendar-color-AdRpHzAi.js";import{R as oe,A as le}from"./attendee-row-CTNLChhq.js";import{C as ce}from"./clock-BK5YthR0.js";import{G as Z,M as de}from"./map-pin-BbuzgGID.js";import{M as xe}from"./mail-D5qE4FN6.js";import{P as me}from"./pencil-CiINOUXE.js";import{u as fe,c as ue,U as he}from"./useCalendars-BHFymoaq.js";import{c as pe}from"./useCalendarData-CCXTAZRA.js";import{u as ge,b as ve}from"./window-BIqTObac.js";function v({icon:s,children:t}){return e.jsxs("div",{className:"flex items-start gap-2.5 py-1",children:[e.jsx("span",{className:"mt-0.5 shrink-0 text-fg-subtle",children:s}),e.jsx("div",{className:"min-w-0 flex-1 text-sm text-fg",children:t})]})}function be({event:s,calendar:t,whenText:n,onEdit:a,onDelete:o,onOpenThread:l,onClose:c,activeAttendee:x="",onActivateAttendee:b,renderAttendeeContext:k,touch:E=!1,chrome:D="header",className:r}){const R=re(t.color),d=e.jsxs(e.Fragment,{children:[e.jsx("h1",{className:"text-xl font-semibold text-fg",children:s.title}),e.jsxs("div",{className:"mt-3 flex flex-col border-b border-line pb-3",children:[e.jsx(v,{icon:e.jsx(ce,{className:"size-4"}),children:e.jsxs("span",{className:"flex flex-wrap items-center gap-2",children:[n,s.attendees.length>0&&e.jsx(oe,{rsvp:s.myRsvp})]})}),s.zoneCertainty==="ambiguous"?e.jsx(v,{icon:e.jsx(Z,{className:"size-4 text-warning"}),children:e.jsx("span",{className:"text-warning",children:"The mail said a time but never a zone. Shown in your own; confirm before you travel for it."})}):s.timeZone!==""&&e.jsx(v,{icon:e.jsx(Z,{className:"size-4"}),children:s.timeZone}),s.recurrenceRule!==""&&e.jsx(v,{icon:e.jsx(ie,{className:"size-4"}),children:e.jsxs("span",{className:"flex flex-wrap items-center gap-2",children:[s.recurrenceRule,s.seriesException&&e.jsx("span",{className:"rounded-xs bg-warning-soft px-1.5 py-0.5 text-2xs text-warning",children:"Moved out of the series"})]})}),s.location!==""&&e.jsx(v,{icon:e.jsx(de,{className:"size-4"}),children:s.location})]}),s.threadId!==""&&l&&e.jsxs("button",{type:"button",onClick:l,className:"mt-3 flex w-full items-center gap-2.5 rounded-md border border-line bg-surface-sunken px-3 py-2 text-left outline-none hover:border-line-strong focus-visible:ring-2 focus-visible:ring-ring",children:[e.jsx(xe,{className:"size-4 shrink-0 text-accent-2"}),e.jsxs("span",{className:"min-w-0 flex-1",children:[e.jsx("span",{className:"block text-2xs uppercase tracking-wider text-fg-subtle",children:"From this thread"}),e.jsx("span",{className:"block truncate text-sm text-fg",children:s.threadSubject})]})]}),s.attendees.length>0&&e.jsx(le,{attendees:s.attendees,activeEmail:x,onActivate:b,renderContext:k,touch:E,className:"mt-3"}),s.notes!==""&&e.jsx("p",{className:"mt-3 whitespace-pre-wrap text-sm text-fg-muted",children:s.notes})]});return D==="bare"?e.jsx("div",{className:h("flex flex-col",r),children:d}):e.jsxs("article",{className:h("flex h-full w-full flex-col bg-surface",r),children:[e.jsxs("header",{className:"flex h-pane-header shrink-0 items-center gap-2 border-b border-line px-row-inset",children:[e.jsx("span",{className:h("size-2.5 shrink-0 rounded-full",R.solid)}),e.jsxs("span",{className:"min-w-0 flex-1 truncate text-xs text-fg-muted",children:[t.name," · ",t.accountLabel]}),a&&e.jsx(S,{variant:"ghost",size:"sm",icon:e.jsx(me,{className:"size-3.5"}),onClick:a,children:"Edit"}),o&&e.jsx(S,{variant:"ghost",size:"sm",icon:e.jsx(_,{className:"size-3.5"}),onClick:o,className:"text-danger",children:"Delete"}),c&&e.jsx("button",{type:"button","aria-label":"Close event",onClick:c,className:"flex size-7 items-center justify-center rounded-md text-fg-subtle outline-none hover:bg-surface-sunken hover:text-fg focus-visible:ring-2 focus-visible:ring-ring",children:e.jsx(K,{className:"size-4"})})]}),e.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-row-inset py-3",children:d})]})}const je=[{scope:"this",label:"This event",note:"Leaves the rest of the series alone"},{scope:"following",label:"This and everything after",note:"Splits the series here"},{scope:"all",label:"The whole series",note:"Rewrites the rule itself"}];function Ne({title:s,ruleText:t,instanceText:n,onChoose:a,onCancel:o,touch:l,className:c}){return e.jsxs("div",{className:h("flex flex-col gap-3",c),children:[e.jsxs("div",{children:[e.jsxs("h2",{className:"text-md font-semibold text-fg",children:[s," repeats"]}),e.jsx("p",{className:"text-xs text-fg-muted",children:t}),e.jsxs("p",{className:"text-xs text-fg-subtle",children:["You clicked ",n,"."]})]}),e.jsx("p",{className:"text-sm text-fg",children:"What should the change apply to?"}),e.jsx("div",{className:"flex flex-col gap-1.5",children:je.map(x=>e.jsxs("button",{type:"button",onClick:()=>a(x.scope),className:h("flex flex-col rounded-md border border-line bg-surface px-3 py-2 text-left outline-none transition-colors hover:border-line-strong hover:bg-surface-sunken focus-visible:ring-2 focus-visible:ring-ring",l&&"min-h-11 justify-center"),children:[e.jsx("span",{className:"text-sm font-medium text-fg",children:x.label}),e.jsx("span",{className:"text-2xs text-fg-subtle",children:x.note})]},x.scope))}),e.jsx(S,{variant:"ghost",size:l?"md":"sm",onClick:o,className:h("self-start",l&&"min-h-11"),children:"Cancel"})]})}const we=s=>s.replace(/\r?\n[ \t]/g,""),B=s=>s.replace(/\\n/gi,`
2
+ `).replace(/\\,/g,",").replace(/\\;/g,";").replace(/\\\\/g,"\\");function Ce(s,t){let n=!1;for(let a=t.length;a<s.length;a+=1){const o=s[a];if(a===t.length&&o!==";"&&o!==":")return;if(o==='"'){n=!n;continue}if(!n&&o===":")return s.slice(a+1).trim()}}function A(s,t){for(const n of we(s).split(/\r?\n/)){if(!n.startsWith(t))continue;const a=Ce(n,t);if(a!==void 0)return a}return""}const ye=s=>A(s,"RRULE"),ke=s=>({location:B(A(s,"LOCATION")),description:B(A(s,"DESCRIPTION"))}),Ee=X(404);function De(s,t){const{data:n,isLoading:a,error:o,refetch:l}=Q({...V({path:{calendarObjectId:s},query:{calendarId:t}}),meta:Ee,enabled:s!==""&&t!==""});return{resource:n,isLoading:a,error:o,refetch:()=>{l()}}}const z=new Intl.DateTimeFormat(void 0,{weekday:"short",day:"numeric",month:"long"}),y=new Intl.DateTimeFormat(void 0,{hour:"2-digit",minute:"2-digit",hour12:!1});function G(s){const t=new Date(s.start),n=new Date(s.end),a=z.format(t);return s.allDay?`${a}, all day`:z.format(n)===a?`${a}, ${y.format(t)} – ${y.format(n)}`:`${a}, ${y.format(t)} – ${z.format(n)}, ${y.format(n)}`}function Re({event:s,calendar:t,isOccurrence:n,problem:a="",onEdit:o,onDelete:l,onClose:c}){return!s||!t?e.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2 bg-surface p-8 text-center",children:[e.jsx(H,{className:"size-8 text-fg-subtle","aria-hidden":"true"}),e.jsx("p",{className:"text-sm font-medium text-fg",children:"That event isn't on this week"}),e.jsx("p",{className:"max-w-xs text-sm text-fg-muted",children:"The address names an event the calendar doesn't have here."}),e.jsx("button",{type:"button",onClick:c,className:"rounded-md border border-line px-2.5 py-1 text-sm font-medium text-fg outline-none hover:bg-surface-sunken focus-visible:ring-2 focus-visible:ring-ring",children:"Back to the calendar"})]}):e.jsxs("div",{className:"flex h-full min-h-0 flex-col bg-surface",children:[n&&e.jsx("p",{className:"shrink-0 border-b border-line bg-surface-sunken px-row-inset py-1.5 text-2xs uppercase tracking-wider text-fg-subtle",children:"One occurrence of a repeating event"}),a!==""&&e.jsxs("div",{role:"alert",className:"flex shrink-0 items-start gap-2 border-b border-danger/40 bg-danger-soft px-row-inset py-2 text-sm",children:[e.jsx(J,{className:"mt-0.5 size-4 shrink-0 text-danger","aria-hidden":"true"}),e.jsx("p",{className:"min-w-0 flex-1 break-words text-fg",children:a})]}),e.jsx(be,{event:s,calendar:t,whenText:G(s),onEdit:o,onDelete:l,onClose:c,className:"min-h-0 flex-1"})]})}const Te="This event changed somewhere else — over CalDAV, or in another tab. Nothing was saved. Close it and open it again to see the version that's stored now.";function We({calendarObjectId:s,recurrenceId:t}){const{view:n,date:a,calendarIds:o}=ge(),{events:l}=pe({view:n,date:a,calendarIds:o}),{calendars:c,timeZoneByCalendarId:x}=fe(),{closeEvent:b}=ve(),{updateEvent:k,deleteEvent:E,isWriting:D}=ee(),r=l.find(i=>i.id===ue(s,t??"")),R=c.find(i=>i.id===r?.calendarId),{resource:d}=De(s,r?.calendarId??""),[I,p]=C.useState(void 0),[f,T]=C.useState(void 0),[u,j]=C.useState(void 0),[L,g]=C.useState(""),N=d?ke(d.icalData):void 0,F=d?ye(d.icalData):"",q=r&&!r.allDay?r.start.slice(11,16):"",w=F===""?"":se(F,q)??"Repeats",O=r!==void 0&&r.seriesId!==""&&t!==void 0&&t!=="",P=r!==void 0&&d!==void 0,$=(i,m)=>{if(i.kind==="written"){g(""),m();return}g(i.kind==="conflict"?Te:i.message)},M=i=>({calendarObjectId:s,calendarId:r?.calendarId??"",recurrenceId:t??"",scope:i,etag:d?.etag??""}),U=i=>{if(!r)return;const m=ae(r,{repeat:w,location:N?.location??"",notes:N?.description??""});p(void 0),T({before:m,scope:i}),j(m),g("")},W=i=>{p(void 0),E(M(i)).then(m=>$(m,b))},Y=()=>{if(!f||!u)return;const i=ne(f.before,u,x[u.calendarId]??he);if(!i.ok){g(i.problem);return}k(M(f.scope),i.patch).then(m=>$(m,()=>{T(void 0),j(void 0)}))};return I!==void 0&&r?e.jsx("div",{className:"flex h-full flex-col justify-center bg-surface px-row-inset",children:e.jsx(Ne,{className:"mx-auto w-full max-w-md",title:r.title,ruleText:w===""?"It repeats":w,instanceText:G(r),onChoose:I==="edit"?U:W,onCancel:()=>p(void 0)})}):f&&u?e.jsx(te,{title:"Edit event",subtitle:f.scope==="this"?"This occurrence only":u.date,calendars:c,draft:u,onChange:j,problem:L,saveLabel:"Save",isSaving:D,repeatEditable:f.scope===void 0||f.scope==="all",calendarEditable:!1,onSave:Y,onCancel:()=>{T(void 0),j(void 0),g("")}}):e.jsx(Re,{event:r&&{...r,location:N?.location??"",notes:N?.description??"",recurrenceRule:w},calendar:R,isOccurrence:t!==void 0,problem:L,onEdit:P?()=>O?p("edit"):U(void 0):void 0,onDelete:P?()=>O?p("delete"):W(void 0):void 0,onClose:b})}export{We as O};
@@ -0,0 +1 @@
1
+ import{ap as g,Z as w,L as C,j as s,t as b,a1 as $,_ as S,a7 as _,u as q,cd as H,r as x,cf as K,c as U,ab as W,C as G,d6 as Z,h as J,ar as V,cK as X,i as v,at as y,cz as Y,cA as ee}from"./index-ByRi5YZH.js";import{a as se,u as k,L as R}from"./roving-focus-BFebcwNO.js";import{u as te,p as ne,R as j,c as ae}from"./useSearchTokenContext-BCmfVUAi.js";import{C as I}from"./circle-check-big-C2MGkIL1.js";import{C as A}from"./clock-BK5YthR0.js";import{R as oe}from"./row-actions-B7DxoNvh.js";import{R as re}from"./rotate-ccw-C4-mOKlW.js";import{N as D}from"./NavMenuButton-D33sb1Iv.js";import{b as p,t as ie}from"./format-By3hRFiw.js";import{i as le,s as L}from"./outbox-status-BlKn6P0x.js";import{n as ce}from"./search-query-Cr_ZXBCp.js";import{f as de}from"./useMessageBodyContent-q8o4QD20.js";const ue={queued:{icon:A,label:"Queued",className:"text-warning"},sending:{icon:C,label:"Sending…",className:"text-accent-2",spin:!0},sent:{icon:I,label:"Sent",className:"text-positive"},unfiled:{icon:g,label:"Sent, not filed",className:"text-warning"},failed:{icon:w,label:"Failed",className:"text-danger"},blocked:{icon:g,label:"Blocked",className:"text-warning"}};function O({status:e,iconOnly:n,className:a}){const t=ue[e],o=t.icon;return s.jsxs("span",{className:b("inline-flex items-center gap-1.5 text-xs font-medium",t.className,a),children:[s.jsx(o,{className:b("size-4",t.spin&&"animate-spin")}),!n&&t.label]})}const xe=(e,n)=>n?"bg-accent-2-soft":e==="failed"?"bg-danger-soft":e==="blocked"||e==="unfiled"?"bg-warning/10":"";function fe({recipients:e,subject:n,time:a,status:t,error:o,selected:l,onSelect:c,onRetry:r,retrying:d,onEdit:i,onDelete:f,deleting:u}){const m=t==="failed"||t==="blocked"||t==="unfiled";return s.jsxs("div",{className:b("flex items-start gap-3 border-b border-line px-4 py-3 transition-colors hover:bg-surface-raised",xe(t,l)),children:[s.jsxs("button",{type:"button",...se,onClick:c,className:"flex flex-1 min-w-0 items-start gap-3 text-left",children:[s.jsx("div",{className:"mt-0.5 shrink-0",children:s.jsx(O,{status:t,iconOnly:!0})}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsxs("div",{className:"flex items-center justify-between gap-2",children:[s.jsx("span",{className:"truncate text-sm font-medium",children:e}),s.jsx("span",{className:"shrink-0 text-xs text-fg-muted",children:a})]}),s.jsx("div",{className:"truncate text-sm",children:n||"No subject"}),s.jsxs("div",{className:"mt-1 flex items-center gap-2",children:[s.jsx(O,{status:t}),o&&s.jsxs("span",{className:"truncate text-xs text-fg-muted",children:["— ",o]})]})]})]}),m&&s.jsx("div",{className:"shrink-0",children:s.jsx(oe,{actions:[...t==="failed"&&r?[{label:"Retry sending",iconOnly:!0,icon:s.jsx(re,{className:"size-3.5"}),busy:d,onClick:r}]:[],...t==="unfiled"?[]:[{label:"Edit as draft",iconOnly:!0,icon:s.jsx(S,{className:"size-3.5"}),onClick:i}]],destructive:{label:"Delete message",iconOnly:!0,icon:s.jsx($,{className:"size-3.5"}),busy:u,confirm:{prompt:"Delete this message?",confirmLabel:"Delete"},onClick:f}})})]})}function Qe(){return _({from:"/mail/outbox/draft/$outboxMessageId",shouldThrow:!1})?.outboxMessageId}function me(){const e=q(),n=H();return x.useCallback(a=>{e({to:"/mail/outbox/draft/$outboxMessageId",params:{outboxMessageId:a},search:t=>t,hash:n})},[e,n])}function he(){return K()}function be(e,n){const a=n.trim().toLowerCase();if(a.length===0)return!0;const t=[e.subject,e.fromAddress,e.fromName,...e.toAddresses??[],...e.ccAddresses??[]].filter(o=>typeof o=="string").join(" ").toLowerCase();return a.split(/\s+/).every(o=>o.length===0||t.includes(o))}function ge(e){return e.tokens.length>0&&e.freeText.trim().length===0}const T={queued:{icon:A,label:"Queued",className:"text-warning"},sending:{icon:C,label:"Sending…",className:"text-accent-2"},sent:{icon:I,label:"Sent",className:"text-positive"},unfiled:{icon:g,label:"Sent, not filed",className:"text-warning"},failed:{icon:w,label:"Failed",className:"text-danger"},blocked:{icon:g,label:"Blocked",className:"text-warning"}},pe=e=>ie(e).toDateString()===new Date().toDateString()?p(e,{hour:"numeric",minute:"2-digit"}):p(e,{month:"short",day:"numeric"}),M=e=>p(e,{dateStyle:"medium",timeStyle:"short"}),je=e=>{const n=e.toAddresses??[];return n.length===0?"No recipients":n.length===1?n[0]:`${n[0]} +${n.length-1}`},E=(e,n)=>n?"The outbox cannot filter on those terms":e?"No matching outbox messages":"No outbox messages",Q=x.createContext(null);function N(){const e=x.useContext(Q);if(!e)throw new Error("OutboxPane.* must be used inside <OutboxPane>");return e}function Ne({outboxMessageId:e,children:n}){const a=me(),t=he(),{data:o,isLoading:l}=U(W()),{searchQuery:c}=G(),r=te(),d=ce(c),i=ne(d,r),f=d.length>0,u=ge(i),m=x.useMemo(()=>u?[]:(o?.items??[]).filter(h=>le(h.status)).filter(h=>be(h,i.freeText)),[o,i.freeText,u]),z=x.useMemo(()=>m.find(h=>h.outboxMessageId===e),[m,e]),F={messages:m,hasQuery:f,unsupportedQuery:u,isLoading:l,selectedMessageId:e,selectedMessage:z,onOpenMessage:a,onCloseMessage:t};return s.jsx(Q.Provider,{value:F,children:n})}function P({message:e,isSelected:n,onSelect:a}){const t=J(),o=de(),{pushError:l}=V(),c=x.useCallback(()=>{t.invalidateQueries({queryKey:X()})},[t]),r=v({...Y(),onSuccess:c,onError:u=>{l(y("Couldn't resend message","The message wasn't sent.",u))}}),d=v({...ee(),onSuccess:c,onError:u=>{l(y("Couldn't delete message","The message wasn't deleted.",u))}}),i=e.status;if(!T[i])return null;const f=L(e.status);return s.jsx(fe,{recipients:je(e),subject:e.subject||"",time:pe(e.sentAt??e.updatedAt),status:i,error:f?e.lastError??void 0:void 0,selected:n,onSelect:a,onRetry:i==="failed"?()=>r.mutate({path:{outboxMessageId:e.outboxMessageId}}):void 0,retrying:r.isPending,onEdit:()=>o(e.outboxMessageId),onDelete:()=>d.mutate({path:{outboxMessageId:e.outboxMessageId}}),deleting:d.isPending})}function B({message:e,onBack:n}){const a=e.status,t=T[a],o=t?.icon??S,l=e.sentAt?M(e.sentAt):M(e.updatedAt);return s.jsxs("div",{className:"h-full overflow-y-auto bg-canvas",children:[s.jsxs("div",{className:"border-b border-line p-4",children:[n&&s.jsxs("button",{type:"button",onClick:n,className:"mb-3 inline-flex items-center gap-1 text-sm text-fg-muted hover:text-fg",children:[s.jsx(Z,{className:"size-4"}),s.jsx("span",{children:"Back"})]}),s.jsx("h1",{className:"text-xl font-semibold mb-3",children:e.subject||"(No subject)"}),s.jsxs("div",{className:"space-y-1 text-sm",children:[s.jsxs("div",{className:"flex gap-2",children:[s.jsx("span",{className:"text-fg-muted shrink-0 w-12",children:"From:"}),s.jsx("span",{className:"text-fg",children:e.fromName?`${e.fromName} <${e.fromAddress}>`:e.fromAddress})]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("span",{className:"text-fg-muted shrink-0 w-12",children:"To:"}),s.jsx("span",{className:"text-fg",children:(e.toAddresses??[]).join(", ")})]}),e.ccAddresses&&e.ccAddresses.length>0&&s.jsxs("div",{className:"flex gap-2",children:[s.jsx("span",{className:"text-fg-muted shrink-0 w-12",children:"Cc:"}),s.jsx("span",{className:"text-fg",children:e.ccAddresses.join(", ")})]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("span",{className:"text-fg-muted shrink-0 w-12",children:"Date:"}),s.jsx("span",{className:"text-fg",children:l})]}),t&&s.jsxs("div",{className:"flex items-center gap-2 pt-2",children:[s.jsx(o,{className:b("size-4",t.className,a==="sending"&&"animate-spin")}),s.jsx("span",{className:b("text-xs font-medium",t.className),children:t.label}),L(e.status)&&e.lastError&&s.jsxs("span",{className:"text-xs text-fg-muted",children:["— ",e.lastError]})]})]})]}),s.jsx("div",{className:"p-4",children:s.jsx(ae,{html:e.htmlBody,text:e.textBody})})]})}function ve(){const{messages:e,hasQuery:n,unsupportedQuery:a,isLoading:t,selectedMessageId:o,onOpenMessage:l}=N(),c=x.useRef(null);return k({containerRef:c,itemSelector:R}),t?s.jsx("div",{className:"flex h-full items-center justify-center bg-canvas",children:s.jsx("span",{className:"text-fg-muted",children:"Loading..."})}):e.length===0?s.jsx("div",{className:"flex h-full bg-surface",children:s.jsx(j,{message:E(n,a),showHints:!1})}):s.jsxs("div",{className:"h-full flex flex-col bg-canvas",children:[s.jsxs("header",{className:"flex h-pane-header shrink-0 items-center gap-2 border-b border-line px-row-inset",children:[s.jsx(D,{}),s.jsx("h1",{className:"min-w-0 flex-1 truncate text-sm font-semibold text-fg",children:"Outbox"}),s.jsxs("span",{className:"shrink-0 text-2xs text-fg-subtle",children:[e.length," ",e.length===1?"message":"messages"]})]}),s.jsx("div",{ref:c,className:"flex-1 overflow-y-auto",children:e.map(r=>s.jsx(P,{message:r,isSelected:o===r.outboxMessageId,onSelect:()=>l(r.outboxMessageId)},r.outboxMessageId))})]})}function ye(){const{selectedMessage:e}=N();return s.jsxs("section",{className:"flex h-full w-full min-w-0 flex-col bg-canvas",children:[s.jsx("header",{className:"flex h-pane-header shrink-0 items-center border-b border-line px-3"}),s.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:e?s.jsx(B,{message:e}):s.jsx(j,{message:"Select a message to read",showHints:!1})})]})}function Oe(){const{messages:e,hasQuery:n,unsupportedQuery:a,isLoading:t,selectedMessageId:o,selectedMessage:l,onOpenMessage:c,onCloseMessage:r}=N(),d=x.useRef(null);return k({containerRef:d,itemSelector:R}),t?s.jsx("div",{className:"flex h-full items-center justify-center bg-canvas",children:s.jsx("span",{className:"text-fg-muted",children:"Loading..."})}):l?s.jsx(B,{message:l,onBack:r}):e.length===0?s.jsx("div",{className:"flex h-full bg-surface",children:s.jsx(j,{message:E(n,a),showHints:!1})}):s.jsxs("div",{className:"h-full flex flex-col bg-canvas",children:[s.jsxs("header",{className:"flex h-pane-header shrink-0 items-center gap-2 border-b border-line px-row-inset",children:[s.jsx(D,{}),s.jsx("h1",{className:"min-w-0 flex-1 truncate text-sm font-semibold text-fg",children:"Outbox"}),s.jsxs("span",{className:"shrink-0 text-2xs text-fg-subtle",children:[e.length," ",e.length===1?"message":"messages"]})]}),s.jsx("div",{ref:d,className:"flex-1 overflow-y-auto",children:e.map(i=>s.jsx(P,{message:i,isSelected:o===i.outboxMessageId,onSelect:()=>c(i.outboxMessageId)},i.outboxMessageId))})]})}const Pe=Object.assign(Ne,{List:ve,Reading:ye,Phone:Oe});export{Pe as O,Qe as u};
@@ -0,0 +1 @@
1
+ import{O as o}from"./index-ByRi5YZH.js";const n=o;export{n as component};
@@ -0,0 +1 @@
1
+ import{ah as m,j as o,O as p}from"./index-ByRi5YZH.js";import{a}from"./MailShell-CIM1STt4.js";import{M as r}from"./MailboxPane-DO9E9d66.js";import{d as e}from"./search-token-index-Cmtl3dKn.js";import{u as s}from"./search-mirror-DxN5-fCD.js";import"./FullCompose-CCGrmPJg.js";import"./ErrorState-QAArpXLf.js";import"./index-Ex7ioeVB.js";import"./useMessageBodyContent-q8o4QD20.js";import"./useSignature-D80B_qPi.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-6OtqszcW.js";import"./sections-wd7CziQ2.js";import"./format-By3hRFiw.js";import"./confirm-dialog-k-k-byYR.js";import"./useSearchTokenContext-BCmfVUAi.js";import"./kbd-g95IxlDg.js";import"./search-scope-B5-OK3Cq.js";import"./useRefreshControl-DvDz3P8k.js";import"./circle-check-big-C2MGkIL1.js";import"./refresh-cw-DP7E7xBG.js";import"./useQueries-gUcpJxIV.js";import"./MailListHeader-u7Rq5QvZ.js";import"./roving-focus-BFebcwNO.js";import"./attachment-file-BG27lVCM.js";import"./mail-D5qE4FN6.js";import"./avatar-DXro8ker.js";import"./EmptyState-CSMaYaEn.js";import"./download-tt-Cyzcf.js";import"./calendar-event-chip-QZOcdP_o.js";import"./calendar-color-AdRpHzAi.js";import"./map-pin-BbuzgGID.js";import"./attendee-row-CTNLChhq.js";import"./clock-BK5YthR0.js";import"./useLayoutTier-CF0bNBqy.js";import"./shield-check-BqR-Gonk.js";import"./useFilters-Ccb4BahB.js";import"./menu-BNS6TRoC.js";import"./MailViewChrome-CwKbpyYR.js";import"./NavMenuButton-D33sb1Iv.js";import"./useLabels-DcCbJtSx.js";import"./useSemanticSearch-4IMN41e8.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-C7xkmDov.js";import"./circle-help-B4BuWt0G.js";import"./circle-check-BOIz7Z_j.js";function ro(){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{ro as component};
@@ -0,0 +1 @@
1
+ import{j as o}from"./index-ByRi5YZH.js";import{M as r}from"./MailboxPane-DO9E9d66.js";import"./useSearchTokenContext-BCmfVUAi.js";import"./kbd-g95IxlDg.js";import"./useMessageBodyContent-q8o4QD20.js";import"./search-scope-B5-OK3Cq.js";import"./useRefreshControl-DvDz3P8k.js";import"./circle-check-big-C2MGkIL1.js";import"./refresh-cw-DP7E7xBG.js";import"./useQueries-gUcpJxIV.js";import"./search-token-index-Cmtl3dKn.js";import"./useLayoutTier-CF0bNBqy.js";import"./MailListHeader-u7Rq5QvZ.js";import"./roving-focus-BFebcwNO.js";import"./attachment-file-BG27lVCM.js";import"./mail-D5qE4FN6.js";import"./avatar-DXro8ker.js";import"./index-Ex7ioeVB.js";import"./useSignature-D80B_qPi.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-6OtqszcW.js";import"./sections-wd7CziQ2.js";import"./format-By3hRFiw.js";import"./EmptyState-CSMaYaEn.js";import"./ErrorState-QAArpXLf.js";import"./download-tt-Cyzcf.js";import"./calendar-event-chip-QZOcdP_o.js";import"./calendar-color-AdRpHzAi.js";import"./map-pin-BbuzgGID.js";import"./attendee-row-CTNLChhq.js";import"./clock-BK5YthR0.js";import"./shield-check-BqR-Gonk.js";import"./useFilters-Ccb4BahB.js";import"./confirm-dialog-k-k-byYR.js";import"./menu-BNS6TRoC.js";import"./MailViewChrome-CwKbpyYR.js";import"./NavMenuButton-D33sb1Iv.js";import"./useLabels-DcCbJtSx.js";import"./useSemanticSearch-4IMN41e8.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-C7xkmDov.js";import"./circle-help-B4BuWt0G.js";import"./circle-check-BOIz7Z_j.js";function T(){return o.jsx(r.Reading,{})}export{T as component};
@@ -0,0 +1 @@
1
+ import{j as r}from"./index-ByRi5YZH.js";import{B as o}from"./BriefPane-BF3QpH9s.js";import"./useSearchTokenContext-BCmfVUAi.js";import"./kbd-g95IxlDg.js";import"./useMessageBodyContent-q8o4QD20.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-u7Rq5QvZ.js";import"./roving-focus-BFebcwNO.js";import"./search-token-index-Cmtl3dKn.js";import"./useLayoutTier-CF0bNBqy.js";import"./useQueries-gUcpJxIV.js";import"./attachment-file-BG27lVCM.js";import"./mail-D5qE4FN6.js";import"./avatar-DXro8ker.js";import"./index-Ex7ioeVB.js";import"./useSignature-D80B_qPi.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-6OtqszcW.js";import"./sections-wd7CziQ2.js";import"./format-By3hRFiw.js";import"./EmptyState-CSMaYaEn.js";import"./ErrorState-QAArpXLf.js";import"./download-tt-Cyzcf.js";import"./calendar-event-chip-QZOcdP_o.js";import"./calendar-color-AdRpHzAi.js";import"./map-pin-BbuzgGID.js";import"./attendee-row-CTNLChhq.js";import"./clock-BK5YthR0.js";import"./shield-check-BqR-Gonk.js";import"./useFilters-Ccb4BahB.js";import"./confirm-dialog-k-k-byYR.js";import"./menu-BNS6TRoC.js";import"./useRefreshControl-DvDz3P8k.js";import"./circle-check-big-C2MGkIL1.js";import"./refresh-cw-DP7E7xBG.js";import"./useSemanticSearch-4IMN41e8.js";import"./useLabels-DcCbJtSx.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-ByRi5YZH.js";import{F as r}from"./FlaggedPane-BtaFIljM.js";import"./useSearchTokenContext-BCmfVUAi.js";import"./kbd-g95IxlDg.js";import"./useMessageBodyContent-q8o4QD20.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-u7Rq5QvZ.js";import"./roving-focus-BFebcwNO.js";import"./search-token-index-Cmtl3dKn.js";import"./useLayoutTier-CF0bNBqy.js";import"./useQueries-gUcpJxIV.js";import"./attachment-file-BG27lVCM.js";import"./mail-D5qE4FN6.js";import"./avatar-DXro8ker.js";import"./index-Ex7ioeVB.js";import"./useSignature-D80B_qPi.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-6OtqszcW.js";import"./sections-wd7CziQ2.js";import"./format-By3hRFiw.js";import"./EmptyState-CSMaYaEn.js";import"./ErrorState-QAArpXLf.js";import"./download-tt-Cyzcf.js";import"./calendar-event-chip-QZOcdP_o.js";import"./calendar-color-AdRpHzAi.js";import"./map-pin-BbuzgGID.js";import"./attendee-row-CTNLChhq.js";import"./clock-BK5YthR0.js";import"./shield-check-BqR-Gonk.js";import"./useFilters-Ccb4BahB.js";import"./confirm-dialog-k-k-byYR.js";import"./menu-BNS6TRoC.js";import"./MailViewChrome-CwKbpyYR.js";import"./refresh-cw-DP7E7xBG.js";import"./wizard-selection-DxUM65kM.js";function I(){return o.jsx(r.Reading,{})}export{I as component};
@@ -0,0 +1 @@
1
+ import{j as o}from"./index-ByRi5YZH.js";import{O as t}from"./OutboxPane-DuI38cvH.js";import"./roving-focus-BFebcwNO.js";import"./useSearchTokenContext-BCmfVUAi.js";import"./kbd-g95IxlDg.js";import"./useMessageBodyContent-q8o4QD20.js";import"./search-scope-B5-OK3Cq.js";import"./circle-check-big-C2MGkIL1.js";import"./clock-BK5YthR0.js";import"./row-actions-B7DxoNvh.js";import"./rotate-ccw-C4-mOKlW.js";import"./NavMenuButton-D33sb1Iv.js";import"./menu-BNS6TRoC.js";import"./format-By3hRFiw.js";import"./outbox-status-BlKn6P0x.js";import"./search-query-Cr_ZXBCp.js";function R(){return o.jsx(t.Reading,{})}export{R as component};
@@ -0,0 +1 @@
1
+ import{em as o,j as m}from"./index-ByRi5YZH.js";import{O as e}from"./OpenCalendarEvent-BtVmJGD7.js";import"./CalendarComposePane-B6OhiQsN.js";import"./window-BIqTObac.js";import"./ErrorState-QAArpXLf.js";import"./calendar-color-AdRpHzAi.js";import"./attendee-row-CTNLChhq.js";import"./avatar-DXro8ker.js";import"./clock-BK5YthR0.js";import"./map-pin-BbuzgGID.js";import"./mail-D5qE4FN6.js";import"./pencil-CiINOUXE.js";import"./useCalendars-BHFymoaq.js";import"./useCalendarData-CCXTAZRA.js";import"./useQueries-gUcpJxIV.js";function E(){const{calendarObjectId:r,recurrenceId:t}=o.useParams();return m.jsx(e,{calendarObjectId:r,recurrenceId:t})}export{E as component};
@@ -0,0 +1 @@
1
+ import{O as o}from"./index-ByRi5YZH.js";const n=o;export{n as component};
@@ -0,0 +1 @@
1
+ import{O as o}from"./index-ByRi5YZH.js";const n=o;export{n as component};
@@ -0,0 +1 @@
1
+ import{O as o}from"./index-ByRi5YZH.js";const n=o;export{n as component};