@remit/web-client-dist 0.0.609 → 0.0.611
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.
- package/assets/{BriefPane-DEi-JsdA.js → BriefPane-CFAjsbfE.js} +1 -1
- package/assets/CalendarComposePane-dbthR2UV.js +1 -0
- package/assets/{CalendarComposeSeed-D55P2JvJ.js → CalendarComposeSeed-B3eUAwfM.js} +1 -1
- package/assets/{CalendarShell-DCWB0P07.js → CalendarShell-CwIr5568.js} +1 -1
- package/assets/{EmptyState-DqIdeAoV.js → EmptyState-Dz40jCsg.js} +1 -1
- package/assets/{ErrorState-Cgv2hTnv.js → ErrorState-D-ovquzq.js} +1 -1
- package/assets/FlaggedPane-CbIwD3bz.js +1 -0
- package/assets/{FullCompose-LZl0iQwD.js → FullCompose-hMOJSn_L.js} +1 -1
- package/assets/MailListHeader-CEbfe9MG.js +7 -0
- package/assets/{MailNav-Do-t-Dfa.js → MailNav-CaFOPH47.js} +1 -1
- package/assets/{MailShell-CbH8qbM0.js → MailShell-PqNg-Foo.js} +1 -1
- package/assets/{MailViewChrome-dJdGlLEq.js → MailViewChrome-DqsK0P50.js} +1 -1
- package/assets/{MailboxPane-DYJz3R5m.js → MailboxPane-C8pkeOfK.js} +1 -1
- package/assets/{NavMenuButton-LdHpws2z.js → NavMenuButton-DYyTgcBv.js} +1 -1
- package/assets/OnboardingWizard-CnhPYEjp.js +1 -0
- package/assets/OpenCalendarEvent-DsS48a8l.js +2 -0
- package/assets/{OutboxPane-B0zoZthY.js → OutboxPane-Cet30jEh.js} +1 -1
- package/assets/_calendarObjectId-DEkoGKcy.js +1 -0
- package/assets/_mailboxId-Vk6Rm3Nb.js +1 -0
- package/assets/_messageId-6FRpbxPs.js +1 -0
- package/assets/_messageId-BapiW6jh.js +1 -0
- package/assets/_messageId-CfT1PRNg.js +1 -0
- package/assets/_outboxMessageId-CZp1rgpN.js +1 -0
- package/assets/_recurrenceId-BbixdrzS.js +1 -0
- package/assets/_threadId-DeCoVd56.js +1 -0
- package/assets/_threadId-Dh_fD-bf.js +1 -0
- package/assets/_threadId-j-tgXH8h.js +1 -0
- package/assets/_view._date-VTLdpTY0.js +1 -0
- package/assets/{accounts-BmC9JP12.js → accounts-Dp4pLi_k.js} +1 -1
- package/assets/{advanced-CgEd_b5l.js → advanced-D-jtrD_w.js} +1 -1
- package/assets/{appearance-BU5geWcW.js → appearance-DdV2sqX3.js} +1 -1
- package/assets/{attachment-file-CoMDQaKt.js → attachment-file-B6ZL4nwv.js} +1 -1
- package/assets/{attendee-row-M8m5qO5a.js → attendee-row-D7AVLvVj.js} +1 -1
- package/assets/{avatar-BLC4SLQh.js → avatar-BtUpTRhw.js} +1 -1
- package/assets/{bell-off-hyGUQzwS.js → bell-off-AXUauLsa.js} +1 -1
- package/assets/{bottom-sheet-D7Navvxn.js → bottom-sheet-D89r0tLr.js} +1 -1
- package/assets/{brief-CTgwNgaZ.js → brief-CLYd7E9-.js} +1 -1
- package/assets/brief-_2AWmsbZ.js +1 -0
- package/assets/{browser-ponyfill-Bi9CzWpK.js → browser-ponyfill-C2T8sKZ_.js} +2 -2
- package/assets/{bug-BPZ_1Z1I.js → bug-C8-Za7MW.js} +1 -1
- package/assets/{calendar-Cy7ENIus.js → calendar-D5YnbFnQ.js} +1 -1
- package/assets/calendar-clash-strip-BPPqEGjm.js +1 -0
- package/assets/{calendar-color-dgTJGOyg.js → calendar-color-Ia9-44ll.js} +1 -1
- package/assets/{calendar-event-chip-D8uJgNl8.js → calendar-event-chip-CbSB1W83.js} +1 -1
- package/assets/calendars-OigZkJXo.js +1 -0
- package/assets/{card-CFv_imVn.js → card-BzQG1IGD.js} +1 -1
- package/assets/chevron-left-DvY3YoAK.js +1 -0
- package/assets/{circle-check-Dt9BGWCB.js → circle-check-DO-Laa90.js} +1 -1
- package/assets/{circle-check-big-BulHYCd1.js → circle-check-big-CaZXLbSv.js} +1 -1
- package/assets/{circle-help-B7FMjYyN.js → circle-help-5iQ90RYP.js} +1 -1
- package/assets/{clock-8suzOU8N.js → clock-DIH4igsv.js} +1 -1
- package/assets/compose._-_outboxMessageId_-ByYLD_0f.js +1 -0
- package/assets/compose._-_outboxMessageId_-DB6heC7Y.js +1 -0
- package/assets/compose._-_outboxMessageId_-DWsvTc0b.js +1 -0
- package/assets/compose._-_outboxMessageId_-e7nGoXbj.js +1 -0
- package/assets/{config-import-CXoCeSZ6.js → config-import-BxpnFmES.js} +1 -1
- package/assets/{confirm-dialog-CkC7jX6u.js → confirm-dialog-DWLsxptz.js} +1 -1
- package/assets/{copy-5UVcBIu_.js → copy-DO2RiEJg.js} +1 -1
- package/assets/credential-steps-w-4TBGiR.js +1 -0
- package/assets/{download-CNzrhOSb.js → download-CYOhM089.js} +1 -1
- package/assets/{file-json-nsy-OSQa.js → file-json-Bam8bRU3.js} +1 -1
- package/assets/{filters-Bt3KjqB3.js → filters-DwAnRmZP.js} +1 -1
- package/assets/flagged-CDS7YC_Q.js +1 -0
- package/assets/{flagged-SnY8ylyn.js → flagged-obL0MDnZ.js} +1 -1
- package/assets/{folders-jxoaP_v6.js → folders-DIUuTR5b.js} +1 -1
- package/assets/{help-copy-05x2VNlh.js → help-copy-DmXjA3Yi.js} +1 -1
- package/assets/{import-BIvuR6Hi.js → import-BU7fRwsp.js} +1 -1
- package/assets/index-6FRpbxPs.js +1 -0
- package/assets/{index-Cklg2sKY.js → index-6dajDQtQ.js} +1 -1
- package/assets/index-B0Ia9LoY.js +1 -0
- package/assets/index-B1lbVBrx.js +1 -0
- package/assets/{index-D7ypkL7n.js → index-BQ-Iu5Zu.js} +16 -16
- package/assets/index-CfT1PRNg.js +1 -0
- package/assets/{index-CBmoBdjZ.js → index-CyXSvIgN.js} +4 -4
- package/assets/{index-CrpWQTJG.css → index-CzAIxx9Z.css} +1 -1
- package/assets/index-DHca64kQ.js +1 -0
- package/assets/index-DPsNpXcX.js +1 -0
- package/assets/index-DVqFT6NH.js +1 -0
- package/assets/index-K_J8cLlh.js +1 -0
- package/assets/index-oyKQTbp2.js +1 -0
- package/assets/{kbd-DE4zHZi-.js → kbd-CxeUqHU0.js} +1 -1
- package/assets/{labels-gKmMTlUT.js → labels-CNb_JK2-.js} +1 -1
- package/assets/{mail-D7wPrMUV.js → mail-BsJHI-HR.js} +1 -1
- package/assets/{mail-DDM65lTj.js → mail-D-aqvnAV.js} +1 -1
- package/assets/{map-pin-BESfR2_Y.js → map-pin-Ce4GDfEG.js} +1 -1
- package/assets/{menu-Bzjwz9Fw.js → menu-BArcsj2W.js} +1 -1
- package/assets/new-BL90Nzox.js +1 -0
- package/assets/onboarding-FbwBaDPa.js +1 -0
- package/assets/{onboarding-completion-BV3qc5Mv.js → onboarding-completion-TUKutwdF.js} +1 -1
- package/assets/outbox-CIHThZYR.js +1 -0
- package/assets/{pencil-CW1CY8mK.js → pencil-1JYzJHs6.js} +1 -1
- package/assets/{popover-menu-DUwOHPJf.js → popover-menu-CYnzssTn.js} +1 -1
- package/assets/{refresh-cw-iJtrk2tS.js → refresh-cw-CHIqMCsD.js} +1 -1
- package/assets/{rich-text-CICZxmRX.js → rich-text-CcpvmsIx.js} +1 -1
- package/assets/{rich-text-spellcheck-worker-provider-CGzGwsoe.js → rich-text-spellcheck-worker-provider-BokxuvSJ.js} +1 -1
- package/assets/{rotate-ccw-DlbJJdr2.js → rotate-ccw-DrwQWZIj.js} +1 -1
- package/assets/{roving-focus-B6HJZMGp.js → roving-focus-CSMoBL7q.js} +1 -1
- package/assets/{row-actions-DRcUbLbq.js → row-actions-CBrfwR1P.js} +1 -1
- package/assets/{search-mirror-C_I-dkQI.js → search-mirror-DakTDr1u.js} +1 -1
- package/assets/{search-token-index-BBgL60ql.js → search-token-index-BD1aCUN9.js} +1 -1
- package/assets/{sections-BFcWbFDT.js → sections-xANZ1prl.js} +1 -1
- package/assets/{senders-BygK60vF.js → senders-COQJLqDg.js} +1 -1
- package/assets/settings-2fml9DSB.js +1 -0
- package/assets/{settings-screen-D5UT-9lH.js → settings-screen-L0tkB-L_.js} +1 -1
- package/assets/{shield-check-BD6Yf88Z.js → shield-check-C7JDNA1H.js} +1 -1
- package/assets/{suggested-vips-C3hpOiq4.js → suggested-vips-C1OG9ctz.js} +1 -1
- package/assets/useCalendarData-De8gbMDg.js +1 -0
- package/assets/useCalendarEvents-WBHcLacn.js +1 -0
- package/assets/useCalendarWrites-Bi5bp2oE.js +1 -0
- package/assets/{useCalendars-BVecnCqI.js → useCalendars-DQmBBR_k.js} +1 -1
- package/assets/{useDebouncedValue-DBesApwS.js → useDebouncedValue-CLcae_Uv.js} +1 -1
- package/assets/{useFilters-BMsUF8DI.js → useFilters-I332JVED.js} +1 -1
- package/assets/{useLabels-Cikiq9EW.js → useLabels-BadxFJhU.js} +1 -1
- package/assets/{useLayoutTier-CUoe6UM6.js → useLayoutTier-Btf8_3PY.js} +1 -1
- package/assets/{useMessageBodyContent-CJ5QFIuj.js → useMessageBodyContent-DybkayUd.js} +1 -1
- package/assets/{useQueries-DQoepbOB.js → useQueries-C55zhxDR.js} +1 -1
- package/assets/{useRefreshControl-BQbV-0DU.js → useRefreshControl-CFLcbZ8X.js} +1 -1
- package/assets/{useResultFolderIndex-DzacwkTK.js → useResultFolderIndex-C0Mr6zLW.js} +1 -1
- package/assets/{useSearchTokenContext-Pujx3Sjx.js → useSearchTokenContext-3q4TlqIx.js} +3 -3
- package/assets/{useSemanticSearch-oayoI9b0.js → useSemanticSearch-DE6aOTK5.js} +1 -1
- package/assets/{useSignature-tjOrMRzF.js → useSignature-B3hy98Fk.js} +1 -1
- package/index.html +2 -2
- package/package.json +1 -1
- package/assets/CalendarComposePane-g7FAlOGW.js +0 -1
- package/assets/FlaggedPane-DAxRg0nT.js +0 -1
- package/assets/MailListHeader-sWIslGNQ.js +0 -7
- package/assets/OnboardingWizard-B-tr6ZId.js +0 -1
- package/assets/OpenCalendarEvent-BgE0SkNe.js +0 -2
- package/assets/_calendarObjectId-BE7tE8p8.js +0 -1
- package/assets/_mailboxId-CeOuo_Sa.js +0 -1
- package/assets/_messageId-CDNljXRP.js +0 -1
- package/assets/_messageId-Cj1GTees.js +0 -1
- package/assets/_messageId-D9gSLZCa.js +0 -1
- package/assets/_outboxMessageId-BA1Y-VSS.js +0 -1
- package/assets/_recurrenceId-DY9RZYxL.js +0 -1
- package/assets/_threadId-8gpOy3vK.js +0 -1
- package/assets/_threadId-CHX4nQYZ.js +0 -1
- package/assets/_threadId-DhP61VLH.js +0 -1
- package/assets/_view._date-DuzUliy5.js +0 -1
- package/assets/brief-CeaeTgy_.js +0 -1
- package/assets/calendars-D6dv9m4U.js +0 -1
- package/assets/chevron-left-BD_ElpXP.js +0 -1
- package/assets/compose._-_outboxMessageId_-5xU-sZaf.js +0 -1
- package/assets/compose._-_outboxMessageId_-BXvj8Ysp.js +0 -1
- package/assets/compose._-_outboxMessageId_-Bcg-RVFN.js +0 -1
- package/assets/compose._-_outboxMessageId_-Csg8xhMF.js +0 -1
- package/assets/credential-steps-BE0gvcRS.js +0 -1
- package/assets/flagged-A9ih5rJB.js +0 -1
- package/assets/index-B6vfWRcA.js +0 -1
- package/assets/index-CInw6TWm.js +0 -1
- package/assets/index-Cj1GTees.js +0 -1
- package/assets/index-D9gSLZCa.js +0 -1
- package/assets/index-DLMpAnNs.js +0 -1
- package/assets/index-DN6QXsfs.js +0 -1
- package/assets/index-Db_Lkfnu.js +0 -1
- package/assets/index-Dfm7mb8o.js +0 -1
- package/assets/index-TWv5KvMg.js +0 -1
- package/assets/new-DcQSw1oa.js +0 -1
- package/assets/onboarding-B6ZdIaDX.js +0 -1
- package/assets/outbox-DT_jUewo.js +0 -1
- package/assets/settings-CZ3wYmjA.js +0 -1
- package/assets/useCalendarData-AwEwUUnq.js +0 -1
- package/assets/window-CrFuPpna.js +0 -1
package/assets/brief-CeaeTgy_.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r,O as i}from"./index-D7ypkL7n.js";import{a as m}from"./MailShell-CbH8qbM0.js";import{B as o}from"./BriefPane-DEi-JsdA.js";import{a as p}from"./search-token-index-BBgL60ql.js";import{u as e}from"./search-mirror-C_I-dkQI.js";import"./FullCompose-LZl0iQwD.js";import"./ErrorState-Cgv2hTnv.js";import"./index-CBmoBdjZ.js";import"./useMessageBodyContent-CJ5QFIuj.js";import"./useSignature-tjOrMRzF.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-DBesApwS.js";import"./sections-BFcWbFDT.js";import"./confirm-dialog-CkC7jX6u.js";import"./useSearchTokenContext-Pujx3Sjx.js";import"./kbd-DE4zHZi-.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-sWIslGNQ.js";import"./roving-focus-B6HJZMGp.js";import"./popover-menu-DUwOHPJf.js";import"./mail-D7wPrMUV.js";import"./avatar-BLC4SLQh.js";import"./EmptyState-DqIdeAoV.js";import"./attachment-file-CoMDQaKt.js";import"./download-CNzrhOSb.js";import"./calendar-event-chip-D8uJgNl8.js";import"./calendar-color-dgTJGOyg.js";import"./map-pin-BESfR2_Y.js";import"./attendee-row-M8m5qO5a.js";import"./clock-8suzOU8N.js";import"./bell-off-hyGUQzwS.js";import"./shield-check-BD6Yf88Z.js";import"./useFilters-BMsUF8DI.js";import"./useQueries-DQoepbOB.js";import"./useLayoutTier-CUoe6UM6.js";import"./menu-Bzjwz9Fw.js";import"./useRefreshControl-BQbV-0DU.js";import"./circle-check-big-BulHYCd1.js";import"./refresh-cw-iJtrk2tS.js";import"./useSemanticSearch-oayoI9b0.js";import"./useLabels-Cikiq9EW.js";import"./search-query-Cr_ZXBCp.js";import"./wizard-selection-DxUM65kM.js";function Y(){const t=p();return e({to:"/mail/brief"}),r.jsx(o,{thread:t,children:r.jsx(m,{phone:r.jsx(o.Phone,{}),list:r.jsx(o.List,{}),reading:r.jsx(i,{}),intelligence:r.jsx(o.Intelligence,{}),hasThread:!!t})})}export{Y as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as S,r as i,j as e,f as m,B as j,g as T,b9 as v,a3 as F,aB as M,h as A,ba as E,c as R,bb as O,i as y,bc as C,bd as D,be as P,bf as z,s as $,u as L,aL as _,aN as H}from"./index-D7ypkL7n.js";import{S as I}from"./settings-screen-D5UT-9lH.js";import{C as B}from"./confirm-dialog-CkC7jX6u.js";import{C as G,a as Q,b as U,c as K}from"./card-CFv_imVn.js";import{E as X,f as V}from"./ErrorState-Cgv2hTnv.js";import{R as J}from"./refresh-cw-iJtrk2tS.js";import{C as W}from"./copy-5UVcBIu_.js";import{u as Y}from"./useCalendars-BVecnCqI.js";import"./avatar-BLC4SLQh.js";import"./chevron-left-BD_ElpXP.js";import"./menu-Bzjwz9Fw.js";import"./circle-help-B7FMjYyN.js";const Z=S("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]),q=s=>({title:`Replace the address for ${s}?`,description:"Every client already subscribed to the current address stops updating and has to be pointed at the new one. The new address is shown once."}),ee=s=>({title:`Stop sharing ${s}?`,description:"The address stops working immediately and every client subscribed to it stops updating. Sharing again mints a different address."});function se({calendarName:s,url:a,onDismiss:t}){const[n,o]=i.useState(!1),[r,c]=i.useState(!1),u=i.useRef(0);i.useEffect(()=>()=>window.clearTimeout(u.current),[]);const l=()=>{navigator.clipboard.writeText(a).then(()=>{c(!1),o(!0),u.current=window.setTimeout(()=>o(!1),2e3)}).catch(()=>c(!0))};return e.jsxs("div",{className:"mt-3 space-y-2 rounded-sm border border-accent-2/40 bg-accent-2/10 px-3 py-2.5",children:[e.jsx("p",{className:"text-sm font-medium text-fg",children:"Subscribe with this address. It is shown once and cannot be read back."}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center",children:[e.jsx("input",{readOnly:!0,value:a,"aria-label":`Subscription address for ${s}`,onFocus:d=>d.currentTarget.select(),className:"min-w-0 flex-1 rounded-sm border border-line bg-surface px-2 py-1.5 font-mono text-xs text-fg"}),e.jsx(m,{variant:"primary",size:"sm",icon:n?e.jsx(M,{className:"size-3.5"}):e.jsx(W,{className:"size-3.5"}),onClick:l,children:n?"Copied":"Copy address"})]}),r&&e.jsx(j,{tone:"warning",variant:"soft",children:"The address could not be copied to the clipboard. Select it above and copy it by hand before leaving this page."}),e.jsx("p",{className:"text-xs text-fg-muted",children:"Anyone holding this address can read every event in this calendar, without signing in. Rotate it if it reaches the wrong person."}),e.jsx(m,{variant:"ghost",size:"sm",onClick:t,children:"I've saved it"})]})}function te({createdAt:s,rotatedAt:a,isBusy:t,onRotate:n,onRevoke:o}){return e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(T,{tone:"positive",children:"shared"}),e.jsxs("span",{className:"text-xs text-fg-muted",children:["Address created ",v(s,"medium"),a>0?`, last replaced ${v(a,"medium")}`:""]})]}),e.jsx("p",{className:"text-sm text-fg-muted",children:"The address itself is not stored in readable form, so it cannot be shown again. Replace it if you no longer know where it went."}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx(m,{variant:"secondary",size:"sm",disabled:t,icon:e.jsx(J,{className:"size-3.5"}),onClick:n,children:"Replace address"}),e.jsx(m,{variant:"danger",size:"sm",disabled:t,icon:e.jsx(F,{className:"size-3.5"}),onClick:o,children:"Stop sharing"})]})]})}function ae({calendarName:s,state:a,mintedUrl:t,isBusy:n,actionError:o,onMint:r,onRevoke:c,onDismissMinted:u,onRetry:l}){const[d,p]=i.useState("none"),h=i.useId(),f=()=>{const b=d;p("none"),b==="rotate"&&r(),b==="revoke"&&c()},x=d==="revoke"?ee(s):q(s);return e.jsxs(G,{className:"max-w-xl",role:"region","aria-labelledby":h,children:[e.jsx(Q,{children:e.jsx(U,{id:h,children:s})}),e.jsxs(K,{children:[a.status==="loading"&&t===""&&e.jsx("div",{className:"h-12 animate-pulse rounded-sm bg-surface-sunken","aria-busy":"true","aria-label":`Loading the subscription address for ${s}`}),a.status==="unreadable"&&t===""&&e.jsx(X,{variant:"inline",title:`Couldn't read whether ${s} is shared`,error:a.error,onRetry:l}),a.status==="absent"&&t===""&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-sm text-fg-muted",children:"Give this calendar a secret address and Apple Calendar, Google Calendar, Outlook and Thunderbird can subscribe to it read-only. Nobody signs in — the address is the credential, so treat it like a password."}),e.jsx(m,{variant:"primary",size:"sm",disabled:n,icon:e.jsx(Z,{className:"size-3.5"}),onClick:r,children:n?"Creating…":"Create subscription address"})]}),a.status==="active"&&e.jsx(te,{createdAt:a.createdAt,rotatedAt:a.rotatedAt,isBusy:n,onRotate:()=>p("rotate"),onRevoke:()=>p("revoke")}),o!=null&&e.jsxs(j,{tone:"danger",variant:"soft",className:"mt-3",children:[e.jsxs("p",{className:"font-medium",children:["The subscription address for ",s," was not changed."]}),e.jsx("p",{className:"mt-0.5 break-words",children:V(o)})]}),t!==""&&e.jsx(se,{calendarName:s,url:t,onDismiss:u})]}),e.jsx(B,{isOpen:d!=="none",title:x.title,description:x.description,confirmLabel:d==="revoke"?"Stop sharing":"Replace address",destructive:!0,onConfirm:f,onCancel:()=>p("none")})]})}const ne="/feeds/calendar/",re=".ics",ie=(s,a)=>`webcal://${s}${ne}${a}${re}`;function oe(s){const a=A(),[t,n]=i.useState(""),o=E({path:{calendarId:s}}),r=R({...O({path:{calendarId:s}}),meta:$(404,403),retry:!1}),c=()=>{a.invalidateQueries({queryKey:o})},u=i.useRef(()=>{}),l=y({...D(),meta:C,onMutate:()=>{u.current()},onSuccess:()=>{n(""),c()}}),d=y({...P(),meta:C,gcTime:0,onMutate:()=>{l.reset()},onSuccess:N=>{n(ie(window.location.host,N.feedToken)),c()}});u.current=d.reset;const{mutate:p,reset:h}=d,{mutate:f}=l,x=i.useCallback(()=>{p({path:{calendarId:s}})},[s,p]),b=i.useCallback(()=>{f({path:{calendarId:s}})},[s,f]),k=i.useCallback(()=>{n(""),h()},[h]),{refetch:g}=r,w=i.useCallback(()=>{g()},[g]);return{state:de(r),mintedUrl:t,isBusy:d.isPending||l.isPending,actionError:d.error??l.error,mint:x,revoke:b,dismissMinted:k,retry:w}}function de(s){return s.error?z(s.error)?{status:"absent"}:{status:"unreadable",error:s.error}:s.isPending?{status:"loading"}:s.data?{status:"active",createdAt:s.data.createdAt,rotatedAt:s.data.rotatedAt}:{status:"absent"}}function ce({calendarId:s,calendarName:a}){const t=oe(s);return e.jsx(ae,{calendarName:a,state:t.state,mintedUrl:t.mintedUrl,isBusy:t.isBusy,actionError:t.actionError,onMint:t.mint,onRevoke:t.revoke,onDismissMinted:t.dismissMinted,onRetry:t.retry})}const le=e.jsxs("div",{className:"space-y-3",children:[e.jsx("p",{children:"A subscription address lets Apple Calendar, Google Calendar, Outlook and Thunderbird show a calendar from here, read-only and kept up to date."}),e.jsx("p",{children:"Those clients never sign in, so the address itself is the credential. Anyone who has it can read the calendar; nobody who has it can change anything."}),e.jsx("p",{children:"Only a hash of the address is stored, so it is shown once and cannot be looked up later. Replacing it breaks every subscription built on the old one, which is how a shared address is taken back."})]});function ke(){const s=L(),[a,t]=i.useState(!0),{calendars:n,isLoading:o}=Y();return e.jsx(I,{items:_,activeId:"calendars",title:"Calendars",description:"Share a calendar with any client that can subscribe to a URL.",help:le,helpOpen:a,onToggleHelp:()=>t(r=>!r),onSelect:r=>{const c=H[r];c&&s({to:c})},onBackToMail:()=>{s({to:"/mail"})},children:o?e.jsx("div",{className:"h-24 animate-pulse rounded-sm border border-line bg-surface","aria-busy":"true","aria-label":"Loading calendars"}):n.length===0?e.jsx("p",{className:"py-12 text-sm text-fg-muted",children:"No calendars yet."}):e.jsx("div",{className:"space-y-4",children:n.map(r=>e.jsx(ce,{calendarId:r.id,calendarName:r.name},r.id))})})}export{ke as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e}from"./index-D7ypkL7n.js";const t=e("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);export{t as C};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as o}from"./FullCompose-LZl0iQwD.js";import"./index-D7ypkL7n.js";import"./ErrorState-Cgv2hTnv.js";import"./index-CBmoBdjZ.js";import"./useMessageBodyContent-CJ5QFIuj.js";import"./useSignature-tjOrMRzF.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-DBesApwS.js";import"./sections-BFcWbFDT.js";import"./confirm-dialog-CkC7jX6u.js";const c=o;export{c as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as o}from"./FullCompose-LZl0iQwD.js";import"./index-D7ypkL7n.js";import"./ErrorState-Cgv2hTnv.js";import"./index-CBmoBdjZ.js";import"./useMessageBodyContent-CJ5QFIuj.js";import"./useSignature-tjOrMRzF.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-DBesApwS.js";import"./sections-BFcWbFDT.js";import"./confirm-dialog-CkC7jX6u.js";const c=o;export{c as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as o}from"./FullCompose-LZl0iQwD.js";import"./index-D7ypkL7n.js";import"./ErrorState-Cgv2hTnv.js";import"./index-CBmoBdjZ.js";import"./useMessageBodyContent-CJ5QFIuj.js";import"./useSignature-tjOrMRzF.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-DBesApwS.js";import"./sections-BFcWbFDT.js";import"./confirm-dialog-CkC7jX6u.js";const c=o;export{c as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as o}from"./FullCompose-LZl0iQwD.js";import"./index-D7ypkL7n.js";import"./ErrorState-Cgv2hTnv.js";import"./index-CBmoBdjZ.js";import"./useMessageBodyContent-CJ5QFIuj.js";import"./useSignature-tjOrMRzF.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-DBesApwS.js";import"./sections-BFcWbFDT.js";import"./confirm-dialog-CkC7jX6u.js";const c=o;export{c as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as W,j as t,ay as F,aB as _,t as E,r as n,g as B,aQ as R,az as C,i as G,aw as Q,B as X,aA as J,f as N}from"./index-D7ypkL7n.js";import{C as K}from"./card-CFv_imVn.js";const ut=W("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);function Y({url:r}){return t.jsxs("p",{className:"text-2xs text-fg-subtle",children:["Stored encrypted, used only to connect to your mail server."," ",r?t.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"text-accent underline",children:"How to create an app password"}):t.jsx("span",{children:"Check your provider's help for app password instructions."})]})}function M({value:r,defaultValue:i,onValueChange:s,...e}){return s?t.jsxs(F,{value:r,onChange:a=>s(a.target.value),...e,children:[t.jsx("option",{value:"tls",children:"TLS/SSL"}),t.jsx("option",{value:"starttls",children:"STARTTLS"}),t.jsx("option",{value:"none",children:"None (insecure)"})]}):t.jsxs(F,{defaultValue:i??r,...e,children:[t.jsx("option",{value:"tls",children:"TLS/SSL"}),t.jsx("option",{value:"starttls",children:"STARTTLS"}),t.jsx("option",{value:"none",children:"None (insecure)"})]})}function D(r){return{tls:r==="tls",startTls:r==="starttls"}}function Z({steps:r,activeStep:i}){return t.jsx("ol",{className:"flex items-center gap-1",children:r.map((s,e)=>{const a=e<i,o=e===i;return t.jsxs("li",{className:"flex items-center gap-1",children:[e>0&&t.jsx("span",{className:"h-px w-5 bg-line","aria-hidden":!0}),t.jsxs("span",{className:"flex items-center gap-1.5",children:[t.jsx("span",{className:E("flex size-5 items-center justify-center rounded-full text-2xs font-semibold tabular-nums",a&&"bg-accent text-accent-fg",o&&"bg-accent-soft text-accent ring-1 ring-accent",!a&&!o&&"bg-surface-sunken text-fg-subtle"),children:a?t.jsx(_,{className:"size-3"}):e+1}),t.jsx("span",{className:E("hidden text-2xs sm:inline",o?"font-medium text-fg":"text-fg-subtle"),children:s})]})]},s)})})}function H({steps:r,activeStep:i,title:s,subtitle:e,children:a,footer:o,hideSteps:c}){return t.jsxs("div",{className:"flex h-dvh w-full flex-col items-center overflow-hidden bg-canvas pb-[max(2rem,env(safe-area-inset-bottom,0px))] pl-[max(2rem,env(safe-area-inset-left,0px))] pr-[max(2rem,env(safe-area-inset-right,0px))] pt-[max(2rem,env(safe-area-inset-top,0px))] font-sans text-fg",children:[t.jsx("div",{className:"hidden shrink-[9999] basis-[30vh] sm:block"}),!c&&t.jsx("div",{className:"mb-5 w-full max-w-xl shrink-0",children:t.jsx(Z,{steps:r,activeStep:i})}),t.jsxs(K,{raised:!0,className:"flex w-full min-h-0 max-w-xl flex-col",children:[t.jsxs("div",{className:"shrink-0 px-5 pt-5",children:[t.jsx("h1",{className:"text-xl font-semibold text-fg",children:s}),e&&t.jsx("p",{className:"mt-1 text-sm text-fg-muted",children:e})]}),t.jsx("div",{"data-testid":"wizard-body",className:"min-h-0 overflow-y-auto px-5 py-5",children:a}),o&&t.jsx("div",{"data-testid":"wizard-footer",className:"flex shrink-0 items-center justify-between gap-3 border-t border-line px-5 py-3",children:o})]})]})}const tt="Coming soon — use IMAP for now.";function pt({name:r,description:i,icon:s,comingSoon:e,selected:a,onSelect:o}){const[c,l]=n.useState(!1),m=()=>{if(o){o();return}e&&l(!0)};return t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsxs("button",{type:"button",onClick:m,"aria-disabled":e||void 0,className:E("flex flex-col items-start gap-2 rounded-sm border p-3 text-left transition-colors",a?"border-accent-2 bg-accent-2-soft":"border-line bg-surface hover:border-line-strong",e&&"opacity-55"),children:[t.jsx("span",{className:E("text-fg-muted",a&&"text-accent-2"),children:s}),t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx("span",{className:"text-sm font-semibold text-fg",children:r}),e&&t.jsx("span",{className:"rounded-full bg-surface-sunken px-1.5 py-0.5 text-2xs text-fg-subtle",children:"soon"})]}),t.jsx("span",{className:"text-xs text-fg-subtle",children:i})]}),c&&t.jsx("p",{className:"text-2xs text-fg-subtle",children:tt})]})}function dt({legend:r,badge:i,host:s,port:e,security:a,readOnly:o,onHostChange:c,onPortChange:l,onSecurityChange:m,hostPlaceholder:x,portPlaceholder:g}){const v=n.useId(),b=n.useId(),h=n.useId();return t.jsxs("fieldset",{children:[t.jsxs("legend",{className:"flex items-center gap-2 text-sm font-semibold text-fg",children:[r,i&&t.jsx(B,{tone:i.tone,children:i.label})]}),t.jsxs("div",{className:"mt-2 grid grid-cols-1 gap-3 sm:grid-cols-[1fr_6rem_8rem] sm:gap-2",children:[t.jsxs("div",{children:[t.jsx(R,{htmlFor:v,children:"Host"}),c?t.jsx(C,{id:v,readOnly:o,value:s,onChange:p=>c(p.target.value),placeholder:x}):t.jsx(C,{id:v,readOnly:o,defaultValue:s,placeholder:x})]}),t.jsxs("div",{children:[t.jsx(R,{htmlFor:b,children:"Port"}),l?t.jsx(C,{id:b,readOnly:o,value:e,onChange:p=>l(p.target.value),placeholder:g}):t.jsx(C,{id:b,readOnly:o,defaultValue:e,placeholder:g})]}),t.jsxs("div",{children:[t.jsx(R,{htmlFor:h,children:"Security"}),m?t.jsx(M,{id:h,value:a,onValueChange:m}):t.jsx(M,{id:h,defaultValue:a})]})]})]})}function q({label:r,detail:i,state:s}){return t.jsxs("div",{className:"flex items-start gap-3 py-2",children:[t.jsxs("span",{className:E("mt-0.5 flex size-5 shrink-0 items-center justify-center rounded-full text-2xs",s==="ok"&&"bg-positive text-accent-fg",s==="failed"&&"bg-danger text-accent-fg",s==="running"&&"border border-accent text-accent",s==="pending"&&"border border-line text-fg-subtle"),children:[s==="ok"&&t.jsx(_,{className:"size-3"}),s==="failed"&&"!",s==="running"&&t.jsx("span",{className:"size-2 animate-pulse rounded-full bg-accent"})]}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("div",{className:E("text-sm",s==="failed"?"font-medium text-danger":"text-fg"),children:r}),i&&t.jsx("div",{className:"mt-0.5 text-xs text-fg-subtle",children:i})]})]})}const et=(r,i)=>{const s=n.useRef(i);s.current=i,n.useEffect(()=>{if(!r)return;const e=()=>{document.visibilityState==="visible"&&s.current()};return document.addEventListener("visibilitychange",e),window.addEventListener("pageshow",e),()=>{document.removeEventListener("visibilitychange",e),window.removeEventListener("pageshow",e)}},[r])},st=2e4,ht="Couldn't open Microsoft's sign-in page. Check your connection, and anything blocking redirects, then try again.",xt=r=>{const i=n.useRef(!1),s=n.useRef(!1),e=n.useRef(null),a=n.useRef(r);a.current=r;const o=n.useCallback(()=>{e.current!==null&&(clearTimeout(e.current),e.current=null)},[]),c=n.useCallback(()=>{!i.current||!s.current||(o(),s.current=!1,a.current("returned"))},[o]);return n.useEffect(()=>{const l=()=>{s.current=!0,o()},m=()=>{document.visibilityState==="hidden"&&l()},x=g=>{g.persisted&&(l(),c())};return document.addEventListener("visibilitychange",m),window.addEventListener("pagehide",l),window.addEventListener("pageshow",x),()=>{document.removeEventListener("visibilitychange",m),window.removeEventListener("pagehide",l),window.removeEventListener("pageshow",x),o()}},[c,o]),et(!0,c),n.useCallback(()=>{i.current=!0,s.current=!1,o(),e.current=setTimeout(()=>{e.current=null,i.current=!1,s.current=!1,a.current("stalled")},st)},[o])},rt={"gmail.com":{imap:{host:"imap.gmail.com",port:993,security:"tls"},smtp:{host:"smtp.gmail.com",port:587,security:"starttls"},source:"provider-table"},"googlemail.com":{imap:{host:"imap.gmail.com",port:993,security:"tls"},smtp:{host:"smtp.gmail.com",port:587,security:"starttls"},source:"provider-table"},"outlook.com":{imap:{host:"outlook.office365.com",port:993,security:"tls"},smtp:{host:"smtp.office365.com",port:587,security:"starttls"},source:"provider-table"},"hotmail.com":{imap:{host:"outlook.office365.com",port:993,security:"tls"},smtp:{host:"smtp.office365.com",port:587,security:"starttls"},source:"provider-table"},"live.com":{imap:{host:"outlook.office365.com",port:993,security:"tls"},smtp:{host:"smtp.office365.com",port:587,security:"starttls"},source:"provider-table"},"msn.com":{imap:{host:"outlook.office365.com",port:993,security:"tls"},smtp:{host:"smtp.office365.com",port:587,security:"starttls"},source:"provider-table"},"icloud.com":{imap:{host:"imap.mail.me.com",port:993,security:"tls"},smtp:{host:"smtp.mail.me.com",port:587,security:"starttls"},source:"provider-table"},"me.com":{imap:{host:"imap.mail.me.com",port:993,security:"tls"},smtp:{host:"smtp.mail.me.com",port:587,security:"starttls"},source:"provider-table"},"mac.com":{imap:{host:"imap.mail.me.com",port:993,security:"tls"},smtp:{host:"smtp.mail.me.com",port:587,security:"starttls"},source:"provider-table"},"fastmail.com":{imap:{host:"imap.fastmail.com",port:993,security:"tls"},smtp:{host:"smtp.fastmail.com",port:465,security:"tls"},source:"provider-table"},"fastmail.fm":{imap:{host:"imap.fastmail.com",port:993,security:"tls"},smtp:{host:"smtp.fastmail.com",port:465,security:"tls"},source:"provider-table"},"yahoo.com":{imap:{host:"imap.mail.yahoo.com",port:993,security:"tls"},smtp:{host:"smtp.mail.yahoo.com",port:465,security:"tls"},source:"provider-table"},"yahoo.co.uk":{imap:{host:"imap.mail.yahoo.com",port:993,security:"tls"},smtp:{host:"smtp.mail.yahoo.com",port:465,security:"tls"},source:"provider-table"},"ymail.com":{imap:{host:"imap.mail.yahoo.com",port:993,security:"tls"},smtp:{host:"smtp.mail.yahoo.com",port:465,security:"tls"},source:"provider-table"},"aol.com":{imap:{host:"imap.aol.com",port:993,security:"tls"},smtp:{host:"smtp.aol.com",port:465,security:"tls"},source:"provider-table"},"zoho.com":{imap:{host:"imap.zoho.com",port:993,security:"tls"},smtp:{host:"smtp.zoho.com",port:465,security:"tls"},source:"provider-table"},"gmx.com":{imap:{host:"imap.gmx.com",port:993,security:"tls"},smtp:{host:"smtp.gmx.com",port:587,security:"starttls"},source:"provider-table"},"gmx.net":{imap:{host:"imap.gmx.net",port:993,security:"tls"},smtp:{host:"mail.gmx.net",port:587,security:"starttls"},source:"provider-table"},"gmx.de":{imap:{host:"imap.gmx.net",port:993,security:"tls"},smtp:{host:"mail.gmx.net",port:587,security:"starttls"},source:"provider-table"},"web.de":{imap:{host:"imap.web.de",port:993,security:"tls"},smtp:{host:"smtp.web.de",port:587,security:"starttls"},source:"provider-table"},"mail.com":{imap:{host:"imap.mail.com",port:993,security:"tls"},smtp:{host:"smtp.mail.com",port:465,security:"tls"},source:"provider-table"},"hey.com":{imap:{host:"imap.hey.com",port:993,security:"tls"},smtp:{host:"smtp.hey.com",port:465,security:"tls"},source:"provider-table"},"tutanota.com":{imap:{host:"mail.tutanota.com",port:993,security:"tls"},smtp:{host:"mail.tutanota.com",port:465,security:"tls"},source:"provider-table"},"tuta.io":{imap:{host:"mail.tutanota.com",port:993,security:"tls"},smtp:{host:"mail.tutanota.com",port:465,security:"tls"},source:"provider-table"},"posteo.de":{imap:{host:"posteo.de",port:993,security:"tls"},smtp:{host:"posteo.de",port:465,security:"tls"},source:"provider-table"},"runbox.com":{imap:{host:"imap.runbox.com",port:993,security:"tls"},smtp:{host:"smtp.runbox.com",port:587,security:"starttls"},source:"provider-table"},"mailbox.org":{imap:{host:"imap.mailbox.org",port:993,security:"tls"},smtp:{host:"smtp.mailbox.org",port:465,security:"tls"},source:"provider-table"},"hushmail.com":{imap:{host:"imap.hushmail.com",port:993,security:"tls"},smtp:{host:"smtp.hushmail.com",port:465,security:"tls"},source:"provider-table"}},ot={"gmail.com":"https://support.google.com/accounts/answer/185833","googlemail.com":"https://support.google.com/accounts/answer/185833","yahoo.com":"https://help.yahoo.com/kb/generate-manage-third-party-passwords-sln15241.html","icloud.com":"https://support.apple.com/en-us/102654","me.com":"https://support.apple.com/en-us/102654","mac.com":"https://support.apple.com/en-us/102654","fastmail.com":"https://www.fastmail.help/hc/en-us/articles/360058752854","fastmail.fm":"https://www.fastmail.help/hc/en-us/articles/360058752854","outlook.com":"https://support.microsoft.com/en-us/account-billing/manage-app-passwords-for-two-step-verification-d6dc8c6d-4bf7-4851-ad95-6d07799387e9","hotmail.com":"https://support.microsoft.com/en-us/account-billing/manage-app-passwords-for-two-step-verification-d6dc8c6d-4bf7-4851-ad95-6d07799387e9","zoho.com":"https://help.zoho.com/portal/en/kb/zoho-mail/client-configuration/imap-access/articles/zoho-mail-app-passwords"};function O(r){try{const s=new DOMParser().parseFromString(r,"application/xml");if(s.querySelector("parsererror"))return null;const e=s.querySelectorAll("incomingServer[type='imap']"),a=s.querySelectorAll("outgoingServer[type='smtp']");if(!e.length||!a.length)return null;const o=e[0],c=a[0],l=o.querySelector("hostname")?.textContent?.trim(),m=o.querySelector("port")?.textContent?.trim(),x=o.querySelector("socketType")?.textContent?.trim().toUpperCase(),g=c.querySelector("hostname")?.textContent?.trim(),v=c.querySelector("port")?.textContent?.trim(),b=c.querySelector("socketType")?.textContent?.trim().toUpperCase();if(!l||!m||!g||!v)return null;const h=p=>p==="SSL"||p==="TLS"||p==="SSL/TLS"?"tls":p==="STARTTLS"?"starttls":"none";return{imap:{host:l,port:Number.parseInt(m,10),security:h(x)},smtp:{host:g,port:Number.parseInt(v,10),security:h(b)},source:"mozilla-autoconfig"}}catch{return null}}async function it(r,i){try{const s=`https://autoconfig.thunderbird.net/v1.1/${r}`,e=await fetch(s,{signal:i});if(!e.ok)return null;const a=await e.text(),o=O(a);return o||null}catch{return null}}async function at(r,i){try{const s=`https://autoconfig.${r}/mail/config-v1.1.xml`,e=await fetch(s,{signal:i});if(!e.ok)return null;const a=await e.text(),o=O(a);return o?{...o,source:"domain-autoconfig"}:null}catch{return null}}function nt(r){return{imap:{host:`imap.${r}`,port:993,security:"tls"},smtp:{host:`smtp.${r}`,port:587,security:"starttls"},source:"heuristic"}}async function ft(r,i=1500){const s=r.indexOf("@");if(s===-1)return null;const e=r.slice(s+1).toLowerCase();if(!e)return null;const a=rt[e];if(a)return a;const o=new AbortController,c=setTimeout(()=>o.abort(),i);try{const l=await it(e,o.signal);if(l)return l;const m=await at(e,o.signal);if(m)return m}finally{clearTimeout(c)}return nt(e)}function yt(r){const i=r.indexOf("@");return i===-1?"Looking up server settings…":`Looking up settings for ${r.slice(i+1)}…`}function ct(r){const i=r.indexOf("@");if(i===-1)return;const s=r.slice(i+1).toLowerCase();return ot[s]}function gt({steps:r,activeStep:i,title:s,subtitle:e,email:a,username:o,password:c,notice:l,error:m,continueLabel:x="Test connection",backLabel:g="Back",onContinue:v,onBack:b,onChange:h}){const[p,z]=n.useState(o||a),[S,w]=n.useState(c),[T,k]=n.useState(null),I=ct(a),y=p.trim()!==""&&S.trim()!=="";n.useEffect(()=>{h(p,S)},[p,S,h]);const L=n.useCallback(()=>{if(!y){k("Enter your username and password.");return}k(null),v()},[y,v]);return n.useEffect(()=>{const u=j=>{j.key==="Enter"&&L(),j.key==="Escape"&&b()};return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[L,b]),t.jsx(H,{steps:r,activeStep:i,title:s,subtitle:e,footer:t.jsxs(t.Fragment,{children:[t.jsx(N,{variant:"ghost",onClick:b,children:g}),t.jsx(N,{variant:"primary",onClick:L,children:x})]}),children:t.jsxs("div",{className:"space-y-3",children:[m&&t.jsx(X,{tone:"danger",children:m}),T&&t.jsx("div",{className:"rounded-md bg-danger-soft px-3 py-2 text-sm text-danger",children:T}),l,t.jsxs("div",{children:[t.jsx(R,{htmlFor:"credentials-username",children:"Username"}),t.jsx(C,{id:"credentials-username",value:p,onChange:u=>{z(u.target.value),k(null)},autoComplete:"username"})]}),t.jsxs("div",{children:[t.jsx(R,{htmlFor:"credentials-password",children:"Password or app password"}),t.jsx(J,{id:"credentials-password",value:S,onChange:u=>{w(u.target.value),k(null)},autoComplete:"current-password"})]}),t.jsx(Y,{url:I})]})})}function vt({steps:r,activeStep:i,email:s,imapConfig:e,smtpConfig:a,username:o,password:c,onSuccess:l,onBackToCredentials:m,onBackToServers:x,credentialsBackLabel:g="Back to credentials",serversBackLabel:v="Back to servers",successLabel:b="Start syncing"}){const[h,p]=n.useState({imapState:"running",smtpState:"pending",phase:"running"}),[z,S]=n.useState(0),w=a.host.trim()!=="",T=D(e.security),k=D(a.security),I=G({...Q()});n.useEffect(()=>{let u=!1;const j=[];return p({imapState:"running",smtpState:"pending",phase:"running"}),I.mutate({body:{username:o,password:c,imapHost:e.host,imapPort:e.port,imapTls:T.tls,imapStartTls:T.startTls,smtpHost:a.host,smtpPort:a.port,smtpTls:k.tls,smtpStartTls:k.startTls}},{onSuccess:d=>{if(u)return;const f=d.imapSuccess,P=w?d.smtpSuccess:!0;p({imapState:f?"ok":"failed",smtpState:w?"running":"ok",imapDetail:f?`Connected — ${e.host}:${e.port}`:d.imapError,phase:"running"}),j.push(window.setTimeout(()=>{if(u)return;const $=V=>{const A=V?.toLowerCase()??"";return A.includes("auth")||A.includes("login")||A.includes("535")||A.includes("credential")},U=!f&&$(d.imapError)||f&&w&&!d.smtpSuccess&&$(d.smtpError);p({imapState:f?"ok":"failed",smtpState:w?d.smtpSuccess?"ok":"failed":"ok",imapDetail:f?`Connected — ${e.host}:${e.port}`:d.imapError,smtpDetail:w?d.smtpSuccess?`Connected — ${a.host}:${a.port}`:d.smtpError:"Not set up — receive-only",rawError:f?w&&!d.smtpSuccess?d.smtpError:void 0:d.imapError,phase:f&&P?"success":U?"auth-failure":"network-failure"}),f&&P&&j.push(window.setTimeout(()=>{u||l()},800))},400))},onError:d=>{if(u)return;const f=d instanceof Error?d.message:"Connection failed";p({imapState:"failed",smtpState:"failed",imapDetail:f,smtpDetail:f,rawError:f,phase:"network-failure"})}}),()=>{u=!0;for(const d of j)window.clearTimeout(d)}},[z]);const{phase:y}=h;n.useEffect(()=>{const u=j=>{j.key==="Escape"&&(y==="auth-failure"?m():y==="network-failure"&&x())};return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[y,m,x]);const L=y==="auth-failure"?t.jsxs(t.Fragment,{children:[t.jsx(N,{variant:"ghost",onClick:m,children:g}),t.jsx(N,{variant:"primary",onClick:()=>S(u=>u+1),children:"Retry"})]}):y==="network-failure"?t.jsxs(t.Fragment,{children:[t.jsx(N,{variant:"ghost",onClick:x,children:v}),t.jsx(N,{variant:"primary",onClick:()=>S(u=>u+1),children:"Retry"})]}):y==="success"?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-2xs text-fg-subtle",children:"Connection verified"}),t.jsx(N,{variant:"primary",onClick:l,children:b})]}):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-2xs text-fg-subtle",children:"Testing…"}),t.jsx("span",{})]});return t.jsx(H,{steps:r,activeStep:i,title:"Testing the connection",subtitle:`Checking ${s}`,footer:L,children:t.jsxs("div",{className:"divide-y divide-line",children:[t.jsx(q,{label:`IMAP — ${e.host}:${e.port}`,detail:h.imapDetail,state:h.imapState}),t.jsx(q,{label:w?`SMTP — ${a.host}:${a.port}`:"SMTP — sending",detail:w?h.smtpDetail:"Not set up — you can add sending later in Settings",state:h.smtpState}),(y==="auth-failure"||y==="network-failure")&&h.rawError&&t.jsxs("div",{className:"py-3",children:[y==="auth-failure"&&t.jsx("p",{className:"mb-2 text-xs text-fg-muted",children:"Check your password — many providers require an app password."}),t.jsx("code",{className:"block rounded bg-surface-sunken px-2.5 py-2 text-2xs text-fg-muted",children:h.rawError})]})]})})}export{q as C,ht as R,ut as S,H as W,pt as a,xt as b,vt as c,gt as d,dt as e,yt as f,ct as g,ft as h,D as s,et as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o,O as i}from"./index-D7ypkL7n.js";import{a as m}from"./MailShell-CbH8qbM0.js";import{F as r}from"./FlaggedPane-DAxRg0nT.js";import{a as p}from"./search-token-index-BBgL60ql.js";import{u as e}from"./search-mirror-C_I-dkQI.js";import"./FullCompose-LZl0iQwD.js";import"./ErrorState-Cgv2hTnv.js";import"./index-CBmoBdjZ.js";import"./useMessageBodyContent-CJ5QFIuj.js";import"./useSignature-tjOrMRzF.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-DBesApwS.js";import"./sections-BFcWbFDT.js";import"./confirm-dialog-CkC7jX6u.js";import"./useSearchTokenContext-Pujx3Sjx.js";import"./kbd-DE4zHZi-.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-sWIslGNQ.js";import"./roving-focus-B6HJZMGp.js";import"./popover-menu-DUwOHPJf.js";import"./mail-D7wPrMUV.js";import"./avatar-BLC4SLQh.js";import"./EmptyState-DqIdeAoV.js";import"./attachment-file-CoMDQaKt.js";import"./download-CNzrhOSb.js";import"./calendar-event-chip-D8uJgNl8.js";import"./calendar-color-dgTJGOyg.js";import"./map-pin-BESfR2_Y.js";import"./attendee-row-M8m5qO5a.js";import"./clock-8suzOU8N.js";import"./bell-off-hyGUQzwS.js";import"./shield-check-BD6Yf88Z.js";import"./useFilters-BMsUF8DI.js";import"./useQueries-DQoepbOB.js";import"./useLayoutTier-CUoe6UM6.js";import"./menu-Bzjwz9Fw.js";import"./MailViewChrome-dJdGlLEq.js";import"./refresh-cw-iJtrk2tS.js";import"./wizard-selection-DxUM65kM.js";function U(){const t=p();return e({to:"/mail/flagged"}),o.jsx(r,{thread:t,children:o.jsx(m,{phone:o.jsx(r.Phone,{}),list:o.jsx(r.List,{}),reading:o.jsx(i,{}),intelligence:o.jsx(r.Intelligence,{}),hasThread:!!t})})}export{U as component};
|
package/assets/index-B6vfWRcA.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-D7ypkL7n.js";import{F as r}from"./FlaggedPane-DAxRg0nT.js";import"./useSearchTokenContext-Pujx3Sjx.js";import"./kbd-DE4zHZi-.js";import"./useMessageBodyContent-CJ5QFIuj.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-sWIslGNQ.js";import"./roving-focus-B6HJZMGp.js";import"./search-token-index-BBgL60ql.js";import"./useQueries-DQoepbOB.js";import"./popover-menu-DUwOHPJf.js";import"./mail-D7wPrMUV.js";import"./avatar-BLC4SLQh.js";import"./index-CBmoBdjZ.js";import"./useSignature-tjOrMRzF.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-DBesApwS.js";import"./sections-BFcWbFDT.js";import"./EmptyState-DqIdeAoV.js";import"./ErrorState-Cgv2hTnv.js";import"./attachment-file-CoMDQaKt.js";import"./download-CNzrhOSb.js";import"./calendar-event-chip-D8uJgNl8.js";import"./calendar-color-dgTJGOyg.js";import"./map-pin-BESfR2_Y.js";import"./attendee-row-M8m5qO5a.js";import"./clock-8suzOU8N.js";import"./bell-off-hyGUQzwS.js";import"./shield-check-BD6Yf88Z.js";import"./useFilters-BMsUF8DI.js";import"./confirm-dialog-CkC7jX6u.js";import"./useLayoutTier-CUoe6UM6.js";import"./menu-Bzjwz9Fw.js";import"./MailViewChrome-dJdGlLEq.js";import"./refresh-cw-iJtrk2tS.js";import"./wizard-selection-DxUM65kM.js";function K(){return o.jsx(r.Reading,{})}export{K as component};
|
package/assets/index-CInw6TWm.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t,an as o}from"./index-D7ypkL7n.js";const n=()=>t.jsx(o,{to:"/settings/accounts"});export{n as component};
|
package/assets/index-Cj1GTees.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-D7ypkL7n.js";import{M as r}from"./MailboxPane-DYJz3R5m.js";import"./useSearchTokenContext-Pujx3Sjx.js";import"./kbd-DE4zHZi-.js";import"./useMessageBodyContent-CJ5QFIuj.js";import"./search-scope-B5-OK3Cq.js";import"./useRefreshControl-BQbV-0DU.js";import"./circle-check-big-BulHYCd1.js";import"./refresh-cw-iJtrk2tS.js";import"./useQueries-DQoepbOB.js";import"./MailListHeader-sWIslGNQ.js";import"./roving-focus-B6HJZMGp.js";import"./search-token-index-BBgL60ql.js";import"./popover-menu-DUwOHPJf.js";import"./mail-D7wPrMUV.js";import"./avatar-BLC4SLQh.js";import"./index-CBmoBdjZ.js";import"./useSignature-tjOrMRzF.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-DBesApwS.js";import"./sections-BFcWbFDT.js";import"./EmptyState-DqIdeAoV.js";import"./ErrorState-Cgv2hTnv.js";import"./attachment-file-CoMDQaKt.js";import"./download-CNzrhOSb.js";import"./calendar-event-chip-D8uJgNl8.js";import"./calendar-color-dgTJGOyg.js";import"./map-pin-BESfR2_Y.js";import"./attendee-row-M8m5qO5a.js";import"./clock-8suzOU8N.js";import"./bell-off-hyGUQzwS.js";import"./shield-check-BD6Yf88Z.js";import"./useFilters-BMsUF8DI.js";import"./confirm-dialog-CkC7jX6u.js";import"./useLayoutTier-CUoe6UM6.js";import"./menu-Bzjwz9Fw.js";import"./MailViewChrome-dJdGlLEq.js";import"./NavMenuButton-LdHpws2z.js";import"./useLabels-Cikiq9EW.js";import"./useSemanticSearch-oayoI9b0.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-D7Navvxn.js";import"./circle-help-B7FMjYyN.js";import"./circle-check-Dt9BGWCB.js";function U(){return o.jsx(r.Reading,{})}export{U as component};
|
package/assets/index-D9gSLZCa.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-D7ypkL7n.js";import{F as r}from"./FlaggedPane-DAxRg0nT.js";import"./useSearchTokenContext-Pujx3Sjx.js";import"./kbd-DE4zHZi-.js";import"./useMessageBodyContent-CJ5QFIuj.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-sWIslGNQ.js";import"./roving-focus-B6HJZMGp.js";import"./search-token-index-BBgL60ql.js";import"./useQueries-DQoepbOB.js";import"./popover-menu-DUwOHPJf.js";import"./mail-D7wPrMUV.js";import"./avatar-BLC4SLQh.js";import"./index-CBmoBdjZ.js";import"./useSignature-tjOrMRzF.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-DBesApwS.js";import"./sections-BFcWbFDT.js";import"./EmptyState-DqIdeAoV.js";import"./ErrorState-Cgv2hTnv.js";import"./attachment-file-CoMDQaKt.js";import"./download-CNzrhOSb.js";import"./calendar-event-chip-D8uJgNl8.js";import"./calendar-color-dgTJGOyg.js";import"./map-pin-BESfR2_Y.js";import"./attendee-row-M8m5qO5a.js";import"./clock-8suzOU8N.js";import"./bell-off-hyGUQzwS.js";import"./shield-check-BD6Yf88Z.js";import"./useFilters-BMsUF8DI.js";import"./confirm-dialog-CkC7jX6u.js";import"./useLayoutTier-CUoe6UM6.js";import"./menu-Bzjwz9Fw.js";import"./MailViewChrome-dJdGlLEq.js";import"./refresh-cw-iJtrk2tS.js";import"./wizard-selection-DxUM65kM.js";function J(){return o.jsx(r.Reading,{})}export{J as component};
|
package/assets/index-DLMpAnNs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./index-D7ypkL7n.js";import{B as o}from"./BriefPane-DEi-JsdA.js";import"./useSearchTokenContext-Pujx3Sjx.js";import"./kbd-DE4zHZi-.js";import"./useMessageBodyContent-CJ5QFIuj.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-sWIslGNQ.js";import"./roving-focus-B6HJZMGp.js";import"./search-token-index-BBgL60ql.js";import"./useQueries-DQoepbOB.js";import"./popover-menu-DUwOHPJf.js";import"./mail-D7wPrMUV.js";import"./avatar-BLC4SLQh.js";import"./index-CBmoBdjZ.js";import"./useSignature-tjOrMRzF.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-DBesApwS.js";import"./sections-BFcWbFDT.js";import"./EmptyState-DqIdeAoV.js";import"./ErrorState-Cgv2hTnv.js";import"./attachment-file-CoMDQaKt.js";import"./download-CNzrhOSb.js";import"./calendar-event-chip-D8uJgNl8.js";import"./calendar-color-dgTJGOyg.js";import"./map-pin-BESfR2_Y.js";import"./attendee-row-M8m5qO5a.js";import"./clock-8suzOU8N.js";import"./bell-off-hyGUQzwS.js";import"./shield-check-BD6Yf88Z.js";import"./useFilters-BMsUF8DI.js";import"./confirm-dialog-CkC7jX6u.js";import"./useLayoutTier-CUoe6UM6.js";import"./menu-Bzjwz9Fw.js";import"./useRefreshControl-BQbV-0DU.js";import"./circle-check-big-BulHYCd1.js";import"./refresh-cw-iJtrk2tS.js";import"./useSemanticSearch-oayoI9b0.js";import"./useLabels-Cikiq9EW.js";import"./search-query-Cr_ZXBCp.js";import"./wizard-selection-DxUM65kM.js";function O(){return r.jsx(o.Reading,{})}export{O as component};
|
package/assets/index-DN6QXsfs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./index-D7ypkL7n.js";import{B as o}from"./BriefPane-DEi-JsdA.js";import"./useSearchTokenContext-Pujx3Sjx.js";import"./kbd-DE4zHZi-.js";import"./useMessageBodyContent-CJ5QFIuj.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-sWIslGNQ.js";import"./roving-focus-B6HJZMGp.js";import"./search-token-index-BBgL60ql.js";import"./useQueries-DQoepbOB.js";import"./popover-menu-DUwOHPJf.js";import"./mail-D7wPrMUV.js";import"./avatar-BLC4SLQh.js";import"./index-CBmoBdjZ.js";import"./useSignature-tjOrMRzF.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-DBesApwS.js";import"./sections-BFcWbFDT.js";import"./EmptyState-DqIdeAoV.js";import"./ErrorState-Cgv2hTnv.js";import"./attachment-file-CoMDQaKt.js";import"./download-CNzrhOSb.js";import"./calendar-event-chip-D8uJgNl8.js";import"./calendar-color-dgTJGOyg.js";import"./map-pin-BESfR2_Y.js";import"./attendee-row-M8m5qO5a.js";import"./clock-8suzOU8N.js";import"./bell-off-hyGUQzwS.js";import"./shield-check-BD6Yf88Z.js";import"./useFilters-BMsUF8DI.js";import"./confirm-dialog-CkC7jX6u.js";import"./useLayoutTier-CUoe6UM6.js";import"./menu-Bzjwz9Fw.js";import"./useRefreshControl-BQbV-0DU.js";import"./circle-check-big-BulHYCd1.js";import"./refresh-cw-iJtrk2tS.js";import"./useSemanticSearch-oayoI9b0.js";import"./useLabels-Cikiq9EW.js";import"./search-query-Cr_ZXBCp.js";import"./wizard-selection-DxUM65kM.js";function N(){return r.jsx(o.Reading,{})}export{N as component};
|
package/assets/index-Db_Lkfnu.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{eJ as o,j as r}from"./index-D7ypkL7n.js";import{O as m}from"./OpenCalendarEvent-BgE0SkNe.js";import"./CalendarComposePane-g7FAlOGW.js";import"./window-CrFuPpna.js";import"./ErrorState-Cgv2hTnv.js";import"./calendar-color-dgTJGOyg.js";import"./attendee-row-M8m5qO5a.js";import"./avatar-BLC4SLQh.js";import"./clock-8suzOU8N.js";import"./map-pin-BESfR2_Y.js";import"./mail-D7wPrMUV.js";import"./pencil-CW1CY8mK.js";import"./useCalendars-BVecnCqI.js";import"./useCalendarData-AwEwUUnq.js";import"./useQueries-DQoepbOB.js";function R(){const{calendarObjectId:t}=o.useParams();return r.jsx(m,{calendarObjectId:t})}export{R as component};
|
package/assets/index-Dfm7mb8o.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-D7ypkL7n.js";import{M as i}from"./MailboxPane-DYJz3R5m.js";import"./useSearchTokenContext-Pujx3Sjx.js";import"./kbd-DE4zHZi-.js";import"./useMessageBodyContent-CJ5QFIuj.js";import"./search-scope-B5-OK3Cq.js";import"./useRefreshControl-BQbV-0DU.js";import"./circle-check-big-BulHYCd1.js";import"./refresh-cw-iJtrk2tS.js";import"./useQueries-DQoepbOB.js";import"./MailListHeader-sWIslGNQ.js";import"./roving-focus-B6HJZMGp.js";import"./search-token-index-BBgL60ql.js";import"./popover-menu-DUwOHPJf.js";import"./mail-D7wPrMUV.js";import"./avatar-BLC4SLQh.js";import"./index-CBmoBdjZ.js";import"./useSignature-tjOrMRzF.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-DBesApwS.js";import"./sections-BFcWbFDT.js";import"./EmptyState-DqIdeAoV.js";import"./ErrorState-Cgv2hTnv.js";import"./attachment-file-CoMDQaKt.js";import"./download-CNzrhOSb.js";import"./calendar-event-chip-D8uJgNl8.js";import"./calendar-color-dgTJGOyg.js";import"./map-pin-BESfR2_Y.js";import"./attendee-row-M8m5qO5a.js";import"./clock-8suzOU8N.js";import"./bell-off-hyGUQzwS.js";import"./shield-check-BD6Yf88Z.js";import"./useFilters-BMsUF8DI.js";import"./confirm-dialog-CkC7jX6u.js";import"./useLayoutTier-CUoe6UM6.js";import"./menu-Bzjwz9Fw.js";import"./MailViewChrome-dJdGlLEq.js";import"./NavMenuButton-LdHpws2z.js";import"./useLabels-Cikiq9EW.js";import"./useSemanticSearch-oayoI9b0.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-D7Navvxn.js";import"./circle-help-B7FMjYyN.js";import"./circle-check-Dt9BGWCB.js";function U(){return o.jsx(i.Reading,{})}export{U as component};
|
package/assets/index-TWv5KvMg.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-D7ypkL7n.js";import{O as t}from"./OutboxPane-B0zoZthY.js";import"./roving-focus-B6HJZMGp.js";import"./useSearchTokenContext-Pujx3Sjx.js";import"./kbd-DE4zHZi-.js";import"./useMessageBodyContent-CJ5QFIuj.js";import"./search-scope-B5-OK3Cq.js";import"./circle-check-big-BulHYCd1.js";import"./clock-8suzOU8N.js";import"./row-actions-DRcUbLbq.js";import"./rotate-ccw-DlbJJdr2.js";import"./NavMenuButton-LdHpws2z.js";import"./menu-Bzjwz9Fw.js";import"./outbox-status-BlKn6P0x.js";import"./search-query-Cr_ZXBCp.js";function c(){return o.jsx(t.Reading,{})}export{c as component};
|
package/assets/new-DcQSw1oa.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,j as m}from"./index-D7ypkL7n.js";import{u as v,e as g,C as y,c as E}from"./CalendarComposePane-g7FAlOGW.js";import{u as b}from"./CalendarComposeSeed-D55P2JvJ.js";import{u as h,U as x}from"./useCalendars-BVecnCqI.js";import{u as I,s as w}from"./window-CrFuPpna.js";import"./ErrorState-Cgv2hTnv.js";import"./calendar-color-dgTJGOyg.js";function N({onClose:t}){const{date:c}=I(),a=b(),{calendars:d,timeZoneByCalendarId:u}=h(),{createEvent:f,isWriting:p}=v(),[C,r]=i.useState(""),[n,l]=i.useState(()=>{const e=g(a?.date??c,"");return a?{...e,allDay:a.allDay,startTime:a.allDay?"":a.startTime,endDate:a.endDate,endTime:a.allDay?"":a.endTime}:e}),s=d[0]?.id??"";i.useEffect(()=>{s!==""&&l(e=>e.calendarId===""?{...e,calendarId:s}:e)},[s]);const D=()=>{const e=E(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(y,{title:"New event",subtitle:n.date,calendars:d,draft:n,onChange:l,problem:C,saveLabel:"Add",isSaving:p,onSave:D,onCancel:t})}function L(){const{closeEvent:t}=w();return m.jsx(N,{onClose:t})}export{L as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{q as n,h as i,u as a,r as m,j as s}from"./index-D7ypkL7n.js";import{O as p}from"./OnboardingWizard-B-tr6ZId.js";import{c}from"./onboarding-completion-BV3qc5Mv.js";import"./kbd-DE4zHZi-.js";import"./credential-steps-BE0gvcRS.js";import"./card-CFv_imVn.js";import"./account-form-helpers-DhckT_PN.js";import"./mail-D7wPrMUV.js";import"./file-json-nsy-OSQa.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 +0,0 @@
|
|
|
1
|
-
import{j as o,O as i}from"./index-D7ypkL7n.js";import{a as m}from"./MailShell-CbH8qbM0.js";import{u as p,O as t}from"./OutboxPane-B0zoZthY.js";import{u as s}from"./search-mirror-C_I-dkQI.js";import"./FullCompose-LZl0iQwD.js";import"./ErrorState-Cgv2hTnv.js";import"./index-CBmoBdjZ.js";import"./useMessageBodyContent-CJ5QFIuj.js";import"./useSignature-tjOrMRzF.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-DBesApwS.js";import"./sections-BFcWbFDT.js";import"./confirm-dialog-CkC7jX6u.js";import"./roving-focus-B6HJZMGp.js";import"./useSearchTokenContext-Pujx3Sjx.js";import"./kbd-DE4zHZi-.js";import"./search-scope-B5-OK3Cq.js";import"./circle-check-big-BulHYCd1.js";import"./clock-8suzOU8N.js";import"./row-actions-DRcUbLbq.js";import"./rotate-ccw-DlbJJdr2.js";import"./NavMenuButton-LdHpws2z.js";import"./menu-Bzjwz9Fw.js";import"./outbox-status-BlKn6P0x.js";import"./search-query-Cr_ZXBCp.js";function v(){const r=p();return s({to:"/mail/outbox"}),o.jsx(t,{outboxMessageId:r,children:o.jsx(m,{phone:o.jsx(t.Phone,{}),list:o.jsx(t.List,{}),reading:o.jsx(i,{})})})}export{v as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t,O as o}from"./index-D7ypkL7n.js";const n=()=>t.jsx(o,{});export{n as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as f,c as y,eC as p,h as I,eD as v,s as A}from"./index-D7ypkL7n.js";import{o as g}from"./window-CrFuPpna.js";import{u as L,i as W,t as M,U as N,r as O}from"./useCalendars-BVecnCqI.js";import{u as S}from"./useQueries-DQoepbOB.js";function T(e,n){const a=e.map(t=>t.id);if(n.length===0)return a;const r=new Set(n),o=a.filter(t=>r.has(t));return o.length===0?a:o}function _(e){const{calendars:n,colorByCalendarId:a,timeZoneByCalendarId:r,isLoading:o}=L(),t=T(n,e),c=t.length===n.length?[]:t,i=e.length===0||n.length>0;return{calendars:n,colorByCalendarId:a,timeZoneByCalendarId:r,shown:t,narrowed:c,resolved:i,isLoading:o}}function j(e,n,a){const r=a.join(",");return f.useMemo(()=>{const o=new Set(r===""?[]:r.split(","));return e.filter(t=>W(t)&&o.has(t.calendarId)).map(t=>M(t,n[t.calendarId]??N))},[e,n,r])}const w=A(400,404),C=5*6e4,E=({from:e,to:n,calendarIds:a})=>({query:a.length===0?{from:e,to:n}:{from:e,to:n,calendarId:[...a]}});function b(e){const{data:n,isLoading:a,error:r,refetch:o}=y({...p(E(e)),meta:w,staleTime:C,enabled:e.enabled??!0});return{instances:n?.items??[],isLoading:a,error:r,refetch:()=>{o()}}}function k(e,n,a){const r=S({queries:e.map(s=>({...p(E({...s,calendarIds:n})),meta:w,staleTime:C,enabled:a}))}),o=e.map(s=>s.from).join("|"),t=r.map(s=>s.data),c=r.map(s=>s.isPending).join("|"),i=r.find(s=>s.error)?.error??null,d=f.useMemo(()=>t.flatMap(s=>s?.items??[]),[o,c]),m=f.useMemo(()=>{const s=new Set;return e.forEach((h,l)=>{r[l]?.isPending&&s.add(h.from)}),s},[o,c]);return{instances:d,pendingWindows:m,error:i,refetch:()=>{for(const s of r)s.error&&s.refetch()}}}function Q(e,n,a,r){const o=I(),t=[...a].join(",");f.useEffect(()=>{if(!r)return;const c=t===""?[]:t.split(",");for(const i of[-1,1]){const d=g(e,v(n,e,i));o.prefetchQuery({...p(E({...d,calendarIds:c})),staleTime:C})}},[o,e,n,t,r])}function x({view:e,date:n,calendarIds:a,enabled:r=!0}){const{calendars:o,colorByCalendarId:t,timeZoneByCalendarId:c,shown:i,narrowed:d,resolved:m,isLoading:s}=_(a),h=g(e,n),l=r&&m,u=b({...h,calendarIds:d,enabled:l});Q(e,n,d,l);const D=j(u.instances,c,i);return{calendars:o,events:D,colorByCalendarId:t,timeZoneByCalendarId:c,isLoading:s||u.isLoading,error:u.error,retry:u.refetch,instanceOf:O}}export{C,k as a,j as b,x as c,_ as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a9 as m,eE as I,r as p,eF as E,bV as S,u as x,cj as L,eD as A}from"./index-D7ypkL7n.js";const h=480,f=1320,M=90;function $(t){return Number(t.slice(11,13))*60+Number(t.slice(14,16))}function X(t){const e=Math.max(0,Math.min(1440,Math.round(t)));return`${String(Math.floor(e/60)).padStart(2,"0")}:${String(e%60).padStart(2,"0")}`}function Z(t){const e=Math.round(t);if(e<60)return`${e}m`;const n=Math.floor(e/60),a=e%60;return a===0?`${n}h`:`${n}h ${a}m`}function v(t,e){const n=new Date(`${t}T00:00:00Z`);return n.setUTCDate(n.getUTCDate()+e),n.toISOString().slice(0,10)}function tt(t,e){return Math.round((Date.parse(`${e}T00:00:00Z`)-Date.parse(`${t}T00:00:00Z`))/864e5)}function et(t){const e=t.start.slice(0,10),n=t.end.slice(0,10);if(!t.allDay)return n;const a=v(n,-1);return a<e?e:a}function nt(t,e){const n=[];for(let a=t;a<=e;a=v(a,1))n.push(a);return n}function at(t){const[e,n,a]=t.split("-").map(Number);return new Date(e,n-1,a).toLocaleDateString("en-GB",{month:"long",year:"numeric"})}function rt(t){const[e,n,a]=t.split("-").map(Number);return new Date(e,n-1,a).toLocaleDateString("en-GB",{weekday:"short",day:"numeric",month:"short"})}function ot(t){const[e,n,a]=t.split("-").map(Number);return new Date(e,n-1,a).toLocaleDateString("en-GB",{weekday:"long"})}function st(t,e){const[n,a,o]=t.split("-").map(Number),[r,s,c]=e.split("-").map(Number),i=new Date(n,a-1,o),u=new Date(r,s-1,c),D=i.toLocaleDateString("en-GB",{weekday:"short",day:"numeric",...a===s?{}:{month:"short"}}),U=u.toLocaleDateString("en-GB",{weekday:"short",day:"numeric",month:"short"});return`${D} – ${U}`}function j(t){const[e,n,a]=t.split("-").map(Number);return new Date(e,n-1,a).toLocaleDateString("en-GB",{weekday:"short"})}function l(t){return new Date(t).getTime()}function B(t,e){return t.allDay?e>=t.start.slice(0,10)&&e<t.end.slice(0,10):t.start.slice(0,10)===e}function R(t,e){return l(t.start)<l(e.end)&&l(e.start)<l(t.end)}function z(t){const e=t.map(r=>[l(r.start),l(r.end)]).sort((r,s)=>r[0]-s[0]);let n=0,a=0,o=0;for(const[r,s]of e){if(r>o){n+=o-a,a=r,o=s;continue}o=Math.max(o,s)}return n+=o-a,Math.round(n/6e4)}function F(t){const e=[];for(const n of t){const a=t.filter(r=>r.id===n.id||R(n,r)).map(r=>r.id).sort();if(a.length<2)continue;const o=a.join("|");e.some(r=>r.join("|")===o)||e.push(a)}return e.filter(n=>!e.some(a=>a!==n&&n.every(o=>a.includes(o))))}function ct(t,e,n){const a=e.filter(r=>B(r,t)),o=a.filter(r=>!r.allDay).sort((r,s)=>l(r.start)-l(s.start));return{date:t,weekdayLabel:j(t),dayNumber:Number(t.slice(8)),isToday:t===n,timed:o,allDay:a.filter(r=>r.allDay),busyMinutes:z(o),conflicts:F(o)}}function _(t){return t.timed.length===0&&t.allDay.length===0}function G(t){return O(t.timed.map(e=>({from:$(e.start),to:$(e.end)})))}function O(t){const e=[...t].sort((a,o)=>a.from-o.from),n=[];for(const a of e){const o=n[n.length-1];if(o&&a.from<=o.to){o.to=Math.max(o.to,a.to);continue}n.push({...a})}return n}function T(t){return Math.min(Math.max(t,h),f)}function P(t,e,n=M){const a=O(e);if(a.length===0)return[{date:t,startMinute:h,endMinute:f,minutes:f-h,wholeDay:!0}];const o=[];let r=h;for(const s of a){const c=T(s.from),i=T(s.to);c-r>=n&&o.push({date:t,startMinute:r,endMinute:c,minutes:c-r,wholeDay:!1}),r=Math.max(r,c,i)}return f-r>=n&&o.push({date:t,startMinute:r,endMinute:f,minutes:f-r,wholeDay:!1}),o}function Y(t,e=M){return P(t.date,G(t),e)}function ut(t,e){const n=[];let a=[];const o=()=>{a.length!==0&&(a.length===1?n.push({kind:"day",key:a[0].date,day:a[0]}):n.push({kind:"run",key:`run_${a[0].date}`,from:a[0].date,to:a[a.length-1].date,days:a.length}),a=[])};for(const r of t){if(_(r)&&!e.includes(r.date)){a.push(r);continue}o(),n.push({kind:"day",key:r.date,day:r})}return o(),n}function it(t){const e=[];for(const n of t){const a=e[e.length-1],o=a?Math.max(...a.map(r=>Date.parse(r.end))):0;if(a&&Date.parse(n.start)<o){a.push(n);continue}e.push([n])}return e}function lt(t,e){const n=Date.parse(e),a=e.slice(0,10),o=t.flatMap(u=>u.timed).sort((u,D)=>Date.parse(u.start)-Date.parse(D.start)),r=o.filter(u=>Date.parse(u.start)<=n&&Date.parse(u.end)>n),s=o.filter(u=>Date.parse(u.start)>n),c=s[0],i=r.filter(u=>u.start.slice(0,10)===a).length+s.filter(u=>u.start.slice(0,10)===a).length;return{running:r,next:c,minutesUntilNext:c?Math.round((Date.parse(c.start)-n)/6e4):0,after:s[1],restOfDay:i,free:W(t,e,1)[0]}}function W(t,e,n){const a=e.slice(0,10),o=$(e),r=[];for(const s of t)if(!(s.date<a))for(const c of Y(s)){if(s.date>a)r.push(c);else{const i=Math.max(c.startMinute,o);if(c.endMinute-i<M)continue;r.push({...c,startMinute:i,minutes:c.endMinute-i,wholeDay:c.wholeDay&&i===c.startMinute})}if(r.length===n)return r}return r}const y="/calendar/$view/$date";function V(){const t=m({from:y,shouldThrow:!1}),e=I({from:y,shouldThrow:!1}),n=t?.view??"",a=t?.date??"",o=e?.calendarId;return p.useMemo(()=>({...E({view:n,date:a},S(new Date)),calendarIds:o??[]}),[n,a,o])}function ft(){const t=m({from:"/calendar/$view/$date/$calendarObjectId",shouldThrow:!1}),e=m({from:"/calendar/$view/$date/$calendarObjectId/$recurrenceId",shouldThrow:!1}),n=t?.calendarObjectId,a=e?.recurrenceId;return p.useMemo(()=>n?{calendarObjectId:n,recurrenceId:a}:void 0,[n,a])}function dt(){return m({from:"/calendar/$view/$date/new",shouldThrow:!1})!==void 0}function ht(){const t=x(),e=L(),{view:n,date:a}=V(),o=p.useCallback(r=>{t({to:y,params:r,search:!0,hash:e})},[t,e]);return p.useMemo(()=>({goToView:r=>o({view:r,date:a}),step:r=>o({view:n,date:A(a,n,r)}),goToToday:()=>o({view:n,date:S(new Date)}),setAnchorDate:r=>t({to:y,params:{view:n,date:r},search:!0,hash:e,replace:!0}),zoomToDay:r=>o({view:"day",date:r}),openEvent:(r,s)=>t(s===void 0||s===""?{to:"/calendar/$view/$date/$calendarObjectId",params:{view:n,date:a,calendarObjectId:r},search:!0,hash:e}:{to:"/calendar/$view/$date/$calendarObjectId/$recurrenceId",params:{view:n,date:a,calendarObjectId:r,recurrenceId:s},search:!0,hash:e}),closeEvent:()=>o({view:n,date:a}),openComposer:()=>t({to:"/calendar/$view/$date/new",params:{view:n,date:a},search:!0,hash:e})}),[o,t,e,n,a])}const d=t=>String(t).padStart(2,"0"),q=t=>`${t.getUTCFullYear()}-${d(t.getUTCMonth()+1)}-${d(t.getUTCDate())}`,k=t=>{const e=t<0?"-":"+",n=Math.abs(t);return`${e}${d(Math.floor(n/60))}:${d(n%60)}`};function C(t,e){const n=new Date(`${t}T${e}:00`);return`${t}T${e}:00${k(-n.getTimezoneOffset())}`}const g=new Map;function H(t){if(g.has(t))return g.get(t);let e;try{e=new Intl.DateTimeFormat("en-US",{timeZone:t,hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch{e=void 0}return g.set(t,e),e}function b(t,e){const n=H(t);if(!n)return Number.NaN;const a=n.formatToParts(new Date(e)),o=c=>Number(a.find(i=>i.type===c)?.value),r=o("hour")%24;return(Date.UTC(o("year"),o("month")-1,o("day"),r,o("minute"),o("second"))-e)/6e4}function mt(t,e,n){if(n==="")return`${t}T${e}:00+00:00`;const a=Date.parse(`${t}T${e}:00Z`),o=b(n,a);if(Number.isNaN(o))return C(t,e);const r=b(n,a-o*6e4);return`${t}T${e}:00${k(Number.isNaN(r)?o:r)}`}const N=t=>C(t,"00:00");function w(t,e){const[n,a,o]=t.split("-").map(Number);return q(new Date(Date.UTC(n,a-1,o+e)))}function J(t){const[e,n,a]=t.split("-").map(Number),o=new Date(Date.UTC(e,n-1,a));return w(t,-((o.getUTCDay()+6)%7))}function K(t,e){const[n,a]=e.split("-").map(Number);if(t==="year")return[`${n}-01-01`,`${n+1}-01-01`];if(t==="month"){const r=`${n}-${d(a)}-01`,s=a===12?`${n+1}-01-01`:`${n}-${d(a+1)}-01`;return[r,s]}if(t==="day")return[e,w(e,1)];const o=J(e);return[o,w(o,7)]}function pt(t,e){const[n,a]=K(t,e);return{from:N(n),to:N(a)}}export{et as A,h as D,st as a,ut as b,$ as c,X as d,G as e,Y as f,it as g,f as h,Z as i,v as j,rt as k,w as l,at as m,nt as n,pt as o,P as p,O as q,lt as r,ht as s,ft as t,V as u,ct as v,ot as w,dt as x,tt as y,mt as z};
|