@remit/web-client-dist 0.0.349 → 0.0.351
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-D5U_FMo6.js +1 -0
- package/assets/{ErrorState-DlHdbl1h.js → ErrorState-DrA1RdFM.js} +1 -1
- package/assets/FlaggedPane-CD0MhkHu.js +1 -0
- package/assets/{MailListHeader-BFBjOnAW.js → MailListHeader-BJ9doZxm.js} +11 -11
- package/assets/{MailViewChrome-XjLFqRLL.js → MailViewChrome-wpRug1Q0.js} +1 -1
- package/assets/{MailboxPane-BwHG9r2e.js → MailboxPane-CUVIV3ip.js} +1 -1
- package/assets/{NavMenuButton-D_W6DXrb.js → NavMenuButton-Dy0q8FiJ.js} +1 -1
- package/assets/{OnboardingWizard-D8Zk-VXt.js → OnboardingWizard-DxBnC5ZI.js} +1 -1
- package/assets/{OutboxPane-D2d4W5AT.js → OutboxPane-DD3Oj-FL.js} +1 -1
- package/assets/_mailboxId-BTlxhtzs.js +1 -0
- package/assets/_messageId-CUwYB2GP.js +1 -0
- package/assets/_messageId-DFuKJd0-.js +1 -0
- package/assets/_messageId-DOJy3_kq.js +1 -0
- package/assets/_outboxMessageId-DkVUQAXG.js +1 -0
- package/assets/_threadId-D6AYslSV.js +1 -0
- package/assets/_threadId-JDDKxHld.js +1 -0
- package/assets/_threadId-oY_n41uG.js +1 -0
- package/assets/{account-form-helpers-CwJTqJha.js → account-form-helpers-D1exxHT6.js} +1 -1
- package/assets/{accounts-sOzFT-mC.js → accounts-CZkcoZsJ.js} +1 -1
- package/assets/{advanced-MP09rSMr.js → advanced-BY_XBoCx.js} +1 -1
- package/assets/{appearance-DHJRN3ld.js → appearance-BszRkKRP.js} +1 -1
- package/assets/{avatar-D3R75Qgk.js → avatar-lbydjrIt.js} +1 -1
- package/assets/{bottom-sheet-BKnsFMEf.js → bottom-sheet-BZM-qnW9.js} +1 -1
- package/assets/brief-BAvH751q.js +1 -0
- package/assets/{brief-DqILJyQz.js → brief-DAZY-yDt.js} +1 -1
- package/assets/{browser-ponyfill-CTm-DR6u.js → browser-ponyfill-1mYU3VEo.js} +1 -1
- package/assets/{bug-C2LRkTHS.js → bug-LK0uYJOc.js} +1 -1
- package/assets/{circle-check-C1n1yijO.js → circle-check-BO9xAEiG.js} +1 -1
- package/assets/{circle-check-big-BmnT3rLr.js → circle-check-big-xK5jTBa2.js} +1 -1
- package/assets/{circle-help-BJLBqOAA.js → circle-help-D-5uStGy.js} +1 -1
- package/assets/{clock-BNqM2h_T.js → clock-CdRZkrpV.js} +1 -1
- package/assets/{confirm-dialog-C1Q_9oNl.js → confirm-dialog-DZ3dfzvC.js} +1 -1
- package/assets/{download-aqyrBjOU.js → download-BRZRRebx.js} +1 -1
- package/assets/{filters-y-tc_bzr.js → filters-CJtRXFIT.js} +1 -1
- package/assets/{flagged-D6yLzY2X.js → flagged-B4b0rbUr.js} +1 -1
- package/assets/flagged-Cj1lkP-D.js +1 -0
- package/assets/{folders-KxXDRobS.js → folders-CMjuCzAd.js} +1 -1
- package/assets/index-72yU2-kn.js +1 -0
- package/assets/index-BfJZRVVj.js +1 -0
- package/assets/{index-DKG1l4OE.js → index-Bo-p3LpF.js} +50 -50
- package/assets/index-BxygYghU.js +1 -0
- package/assets/index-CUwYB2GP.js +1 -0
- package/assets/index-DFS5aq3D.js +1 -0
- package/assets/index-DKsFKmu0.js +1 -0
- package/assets/index-DOJy3_kq.js +1 -0
- package/assets/index-nszVYODK.js +1 -0
- package/assets/{kbd-CnUDSPH5.js → kbd-0M4qAi49.js} +1 -1
- package/assets/{labels-BmRFi78i.js → labels-CuC6gcyn.js} +1 -1
- package/assets/{mail-CK2ZaY0m.js → mail-DEw6NSuJ.js} +1 -1
- package/assets/{menu-DdqPoHXZ.js → menu-vnrvhz9W.js} +1 -1
- package/assets/{move-options-DXhjey10.js → move-options-_eZlt0v0.js} +1 -1
- package/assets/{nav-link-BTQmJNls.js → nav-link-BC-lpJt4.js} +1 -1
- package/assets/{onboarding-AkJlSpsK.js → onboarding-B1ncdxiJ.js} +1 -1
- package/assets/outbox-C-BbuTN9.js +1 -0
- package/assets/{pencil-DFHNbAYX.js → pencil-7SyIHZVc.js} +1 -1
- package/assets/{rich-text-CBLH_ljE.js → rich-text-DbpnpZXL.js} +1 -1
- package/assets/{rich-text-spellcheck-worker-provider-8XL6BOiI.js → rich-text-spellcheck-worker-provider-LftNISS3.js} +1 -1
- package/assets/{rotate-ccw-CYszpTkF.js → rotate-ccw-CKKgjGEq.js} +1 -1
- package/assets/{row-actions-DjIKrPVk.js → row-actions-7xv7AJ82.js} +1 -1
- package/assets/{search-token-index-D13ogntK.js → search-token-index-sLIcvT6p.js} +1 -1
- package/assets/{search-view-B5prVpGW.js → search-view-CB5G4Kva.js} +1 -1
- package/assets/{senders-BFXe7Id6.js → senders-O9M02K_2.js} +1 -1
- package/assets/settings-CI2VbWFc.js +1 -0
- package/assets/{settings-screen-BgOpI_Lx.js → settings-screen-CjdCNCJ8.js} +1 -1
- package/assets/{shield-check-BBp9gzDX.js → shield-check-C48_fmzW.js} +1 -1
- package/assets/{suggested-vips-DFwiEmrP.js → suggested-vips-BXGwlIUy.js} +1 -1
- package/assets/{use-match-media-C1DFe6n_.js → use-match-media-jqJ95ElE.js} +1 -1
- package/assets/{useDebouncedValue-BazHTAhQ.js → useDebouncedValue-bAON8Yph.js} +1 -1
- package/assets/{useFilters-DBElfc_V.js → useFilters-D_O09QB6.js} +1 -1
- package/assets/{useLabels-CZdQ7rFS.js → useLabels-wgL9c4lv.js} +1 -1
- package/assets/{useRefreshControl-DN40VgNE.js → useRefreshControl-hxsw2pLp.js} +1 -1
- package/assets/{useSearchMirror-CiaVi7jg.js → useSearchMirror-DylRqxaA.js} +1 -1
- package/assets/{useSearchTokenContext-BNRIlJev.js → useSearchTokenContext-Bb3YnI52.js} +1 -1
- package/assets/{useSemanticSearch-BHpjDfP4.js → useSemanticSearch-BXCI_0Rt.js} +1 -1
- package/assets/{useSignature-BaYkV0lH.js → useSignature-sSo464BG.js} +1 -1
- package/index.html +1 -1
- package/package.json +1 -1
- package/assets/BriefPane-BfuwvROx.js +0 -1
- package/assets/FlaggedPane-DXXvbNMD.js +0 -1
- package/assets/_mailboxId-DstK-xUR.js +0 -1
- package/assets/_messageId-CLaETLs-.js +0 -1
- package/assets/_messageId-DRTBuwn5.js +0 -1
- package/assets/_messageId-DmZCgc4u.js +0 -1
- package/assets/_outboxMessageId-DSVc6DQy.js +0 -1
- package/assets/_threadId-DiPJwQ2o.js +0 -1
- package/assets/_threadId-Djs3CNia.js +0 -1
- package/assets/_threadId-DtfbogPc.js +0 -1
- package/assets/brief-C5lHNp6b.js +0 -1
- package/assets/flagged-DsEl2-dg.js +0 -1
- package/assets/index-Bmrb3uML.js +0 -1
- package/assets/index-C8bsgH_w.js +0 -1
- package/assets/index-CcuWjbLO.js +0 -1
- package/assets/index-Cf7AKvjm.js +0 -1
- package/assets/index-DRTBuwn5.js +0 -1
- package/assets/index-DhwJT0Xk.js +0 -1
- package/assets/index-DmZCgc4u.js +0 -1
- package/assets/index-WhbhbXhS.js +0 -1
- package/assets/outbox-CYHiwpl8.js +0 -1
- package/assets/settings-DSF3NSGu.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,b as N,p as T,r as c,az as L,al as O,g as $,aD as q,x as I,bb as A,s as k,af as C,bc as M,bd as P,B as S,a as R,be as B,X as G}from"./index-
|
|
1
|
+
import{j as e,b as N,p as T,r as c,az as L,al as O,g as $,aD as q,x as I,bb as A,s as k,af as C,bc as M,bd as P,B as S,a as R,be as B,X as G}from"./index-Bo-p3LpF.js";import{K as m}from"./kbd-0M4qAi49.js";import{S as Q,a as E}from"./settings-screen-CjdCNCJ8.js";import{E as V}from"./ErrorState-DrA1RdFM.js";import{u as D}from"./useDebouncedValue-bAON8Yph.js";import{a as K}from"./format-De9HZKjg.js";import"./avatar-lbydjrIt.js";import"./menu-vnrvhz9W.js";import"./circle-help-D-5uStGy.js";function _({options:t,active:r,onSelect:x}){return e.jsx("div",{role:"tablist",className:N("flex shrink-0 gap-1 overflow-x-auto border-b border-line p-2","lg:w-44 lg:flex-col lg:gap-0 lg:overflow-visible lg:border-r lg:border-b-0 lg:py-2 lg:pr-2 lg:pl-3"),children:t.map(a=>{const d=a.id===r;return e.jsxs("button",{type:"button",role:"tab","aria-selected":d,onClick:()=>x(a.id),className:N("flex min-h-11 shrink-0 items-center gap-2 rounded-md px-3 text-left text-sm transition-colors lg:min-h-0 lg:px-2 lg:py-1",d?"bg-accent-2-soft font-medium text-accent-2":"text-fg-muted hover:bg-surface-sunken hover:text-fg"),children:[e.jsx("span",{className:"flex-1 truncate",children:a.label}),e.jsx("span",{className:N("text-2xs tabular-nums",d?"text-accent-2":"text-fg-subtle"),children:a.count??"—"})]},a.id)})})}const v={vip:"VIPs",muted:"Muted",blocked:"Blocked"},F=e.jsxs("div",{className:"space-y-3",children:[e.jsxs("p",{children:[e.jsx("strong",{className:"text-fg",children:"VIP"})," senders get priority surface in the daily brief and notification escalation, even when an account is quiet."]}),e.jsxs("p",{children:[e.jsx("strong",{className:"text-fg",children:"Muted"})," senders never notify and stay out of the brief. Their mail still syncs and stays searchable."]}),e.jsxs("p",{children:[e.jsx("strong",{className:"text-fg",children:"Blocked"})," senders never load images and go straight to junk."]}),e.jsxs("p",{children:["Tip: flag from the keyboard on any message — ",e.jsx(m,{children:"v"})," VIP,"," ",e.jsx(m,{children:"m"})," mute, ",e.jsx(m,{children:"b"})," block. Every rule an automation creates shows up here and can be removed."]})]});function H({query:t,onCount:r}){const{data:x,isPending:a,isError:d,error:b}=I(A()),h=k(),i=C({...P(),onSettled:()=>{h.invalidateQueries({queryKey:M()})}}),l=x?.suggestions??[],p=t.trim().toLowerCase(),u=p?l.filter(n=>(n.displayName??"").toLowerCase().includes(p)||n.normalizedEmail.toLowerCase().includes(p)):l;return c.useEffect(()=>{r?.(u.length,l.length)},[r,u.length,l.length]),a?e.jsx("div",{className:"px-row-inset py-3 text-sm text-fg-subtle animate-pulse",children:"Loading VIP suggestions…"}):d?e.jsx("div",{className:"px-row-inset py-3",children:e.jsx(V,{variant:"inline",title:"Couldn't load VIP suggestions",error:b})}):l.length===0?e.jsxs("div",{className:"px-row-inset py-5 text-sm text-fg-subtle",children:["No VIP suggestions yet. As you reply to senders, they'll appear here. Press ",e.jsx(m,{children:"v"})," on any message to promote a sender to VIP."]}):u.length===0?e.jsxs("p",{className:"px-row-inset py-5 text-sm text-fg-subtle",children:["No VIPs match “",t,"”."]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"px-row-inset py-1 text-2xs font-semibold uppercase tracking-wider text-fg-subtle",children:"Suggested — promote to VIP"}),u.map(n=>e.jsx(E,{name:n.displayName??n.normalizedEmail,email:n.normalizedEmail,meta:n.replyCount>0?`${n.inboundCount} received · you replied ${n.replyCount}×`:`${n.inboundCount} received · you've never replied`,trailing:e.jsx(S,{variant:"ghost",size:"sm",icon:e.jsx(R,{className:"size-3.5"}),"aria-busy":i.isPending,onClick:()=>{i.isPending||i.mutate({path:{addressId:n.addressId},body:{flags:{vip:{value:!0,setAt:Date.now(),setBy:"user"}}}})},children:"Add VIP"})},n.addressId))]})}function U({group:t,query:r,onCount:x}){const a=D(r.trim(),300),d=k(),[b,h]=c.useState(null),i=a.length>=2,l=B({query:{q:a,limit:50}}),{data:p,isPending:u,isError:n,error:j}=I({...l,enabled:i}),g=C({...P(),onSuccess:()=>{d.invalidateQueries({queryKey:l.queryKey})}}),f=(p?.items??[]).filter(s=>t==="muted"?s.flags?.muted?.value??!1:s.flags?.blocked?.value??!1);return c.useEffect(()=>{x?.(i?f.length:0,null)},[x,i,f.length]),i?u?e.jsx("div",{className:"px-row-inset py-3 text-sm text-fg-subtle animate-pulse",children:"Searching…"}):n?e.jsx("div",{className:"px-row-inset py-3",children:e.jsx(V,{variant:"inline",title:"Search failed",error:j})}):f.length===0?e.jsxs("p",{className:"px-row-inset py-5 text-sm text-fg-subtle",children:["No ",v[t].toLowerCase()," senders matching “",a,"”."]}):e.jsx(e.Fragment,{children:f.map(s=>{const o=t==="muted"?s.flags?.muted:s.flags?.blocked,y=o?[`${t}`,o.setAt&&K(o.setAt,{month:"short",year:"numeric"})||null,o.reason?`— ${o.reason}`:null].filter(Boolean).join(" "):t,w=g.isPending&&g.variables?.path.addressId===s.addressId,z=g.isError&&b===s.addressId;return e.jsx(E,{name:s.displayName??s.normalizedEmail,email:s.normalizedEmail,danger:t==="blocked",meta:y,trailing:z?e.jsx(S,{variant:"secondary",size:"sm",onClick:()=>{h(s.addressId),g.mutate({path:{addressId:s.addressId},body:{flags:{[t]:null}}})},children:"Retry"}):e.jsx(S,{variant:"ghost",size:"sm",icon:e.jsx(G,{className:"size-3.5"}),"aria-busy":w,"aria-label":`Remove ${t} flag`,onClick:()=>{w||(h(s.addressId),g.mutate({path:{addressId:s.addressId},body:{flags:{[t]:null}}}))}})},s.addressId)})}):e.jsxs("div",{className:"px-row-inset py-5 text-sm text-fg-subtle space-y-2",children:[e.jsxs("p",{children:["Type 2+ characters to search ",v[t].toLowerCase()," ","senders by name or address."]}),e.jsxs("p",{className:"text-2xs text-fg-subtle",children:["Note: a dedicated flagged-address list endpoint is in the backlog. Press ",e.jsx(m,{children:"m"})," on any message to mute its sender; ",e.jsx(m,{children:"b"})," to block."]})]})}function ae(){const t=T(),[r,x]=c.useState("vip"),[a,d]=c.useState(""),[b,h]=c.useState(!0),[i,l]=c.useState(0),[p,u]=c.useState({vip:0,muted:null,blocked:null}),n=c.useCallback((s,o)=>{l(s),u(y=>({...y,vip:o}))},[]),j=c.useCallback((s,o)=>{l(s),u(y=>({...y,[r]:s}))},[r]),g=p[r],f=s=>{const o=q[s];o&&t({to:o})};return e.jsx(Q,{items:L,activeId:"senders",title:"Senders & Rules",description:"Per-sender preferences — set with one key from any message, managed here.",flush:!0,help:F,helpOpen:b,onToggleHelp:()=>h(s=>!s),onSelect:f,onBackToMail:()=>{t({to:"/mail"})},children:e.jsxs("div",{className:"flex min-h-0 flex-1 flex-col lg:flex-row",children:[e.jsx(_,{active:r,onSelect:s=>{x(s),d("")},options:["vip","muted","blocked"].map(s=>({id:s,label:v[s],count:p[s]}))}),e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[e.jsx("div",{className:"border-b border-line px-row-inset py-2",children:e.jsx(O,{icon:e.jsx($,{className:"size-4"}),placeholder:`Filter ${v[r].toLowerCase()} by name or address`,className:"h-8 max-w-sm",value:a,onChange:s=>d(s.target.value)})}),e.jsx("div",{className:"min-h-0 flex-1 divide-y divide-line overflow-y-auto",children:r==="vip"?e.jsx(H,{query:a,onCount:n}):e.jsx(U,{group:r,query:a,onCount:j})}),e.jsxs("footer",{className:"flex items-center justify-between border-t border-line px-row-inset py-1 text-2xs text-fg-subtle",children:[e.jsx("span",{children:g!=null?`${i} of ${g} flagged senders`:`${i} flagged senders`}),e.jsxs("span",{children:[e.jsx(m,{children:"j"})," ",e.jsx(m,{children:"k"})," navigate · ",e.jsx(m,{children:"⌫"})," remove flag"]})]})]})]})})}export{ae as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as t,a0 as o}from"./index-Bo-p3LpF.js";const n=()=>t.jsx(o,{});export{n as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as z,r as j,j as e,b as f,B as i,X as N,aB as S}from"./index-
|
|
1
|
+
import{c as z,r as j,j as e,b as f,B as i,X as N,aB as S}from"./index-Bo-p3LpF.js";import{A as w}from"./avatar-lbydjrIt.js";import{M as B}from"./menu-vnrvhz9W.js";import{C as v}from"./circle-help-D-5uStGy.js";const h=z("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);function F({items:l,activeId:t,title:c,description:n,children:r,help:s,helpOpen:d=!0,flush:o,onSelect:k,onToggleHelp:u,onBackToMail:m}){const[y,x]=j.useState(!1),[b,C]=j.useState(!1),p=!!s&&d,g=e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"px-3 pt-3 pb-1 text-2xs font-semibold uppercase tracking-wider text-fg-subtle",children:"Settings"}),e.jsx("nav",{className:"flex-1 overflow-y-auto px-2 py-1",children:l.map(a=>e.jsxs("button",{type:"button",onClick:()=>{k?.(a.id),x(!1)},className:f("flex min-h-11 w-full items-center gap-2 rounded-md px-2 py-1 text-left text-sm transition-colors lg:min-h-0",a.id===t?"bg-accent-2-soft font-medium text-accent-2":"text-fg-muted hover:bg-surface hover:text-fg"),children:[a.icon&&e.jsx("span",{className:f("shrink-0",a.id===t?"text-accent-2":"text-fg-subtle"),children:a.icon}),a.label]},a.id))})]});return e.jsxs("div",{className:"safe-area-frame flex h-dvh w-full overflow-hidden bg-canvas font-sans text-fg",children:[e.jsxs("aside",{className:"hidden w-60 shrink-0 flex-col border-r border-line bg-surface-sunken lg:flex",children:[e.jsx("div",{className:"flex h-pane-header shrink-0 items-center border-b border-line px-2",children:e.jsxs("button",{type:"button",onClick:m,className:"flex w-full items-center gap-2 rounded-md px-2 py-1 text-left text-sm text-fg-muted hover:bg-surface hover:text-fg",children:[e.jsx(h,{className:"size-4 text-fg-subtle"}),"Back to mail"]})}),g]}),y&&e.jsxs("div",{className:"fixed inset-0 z-50 flex lg:hidden",children:[e.jsx("button",{type:"button","aria-label":"Close menu",className:"absolute inset-0 bg-canvas/60",onClick:()=>x(!1)}),e.jsxs("aside",{className:"safe-area-frame relative flex w-72 max-w-[85%] flex-col border-r border-line bg-surface-sunken",children:[e.jsxs("div",{className:"flex h-pane-header shrink-0 items-center justify-between border-b border-line px-2",children:[e.jsxs("button",{type:"button",onClick:()=>{m?.(),x(!1)},className:"flex items-center gap-2 rounded-md px-2 py-1 text-left text-sm text-fg-muted hover:bg-surface hover:text-fg",children:[e.jsx(h,{className:"size-4 text-fg-subtle"}),"Back to mail"]}),e.jsx(i,{variant:"ghost",size:"sm",icon:e.jsx(N,{className:"size-4"}),onClick:()=>x(!1),"aria-label":"Close menu"})]}),g]})]}),e.jsxs("main",{className:"flex min-w-0 flex-1 flex-col",children:[e.jsxs("header",{className:"flex h-pane-header shrink-0 items-center gap-3 border-b border-line px-3 lg:px-5",children:[m&&e.jsx(i,{variant:"ghost",size:"sm",icon:e.jsx(h,{className:"size-4"}),className:"-ml-1 lg:hidden",onClick:m,"aria-label":"Back to mail"}),e.jsx(i,{variant:"ghost",size:"sm",icon:e.jsx(B,{className:"size-4"}),className:"lg:hidden",onClick:()=>x(!0),"aria-label":"Open settings menu"}),e.jsx("h1",{className:"text-md font-semibold text-fg",children:c}),n&&e.jsx("p",{className:"hidden min-w-0 truncate text-xs text-fg-subtle lg:block",children:n}),s&&e.jsx(i,{variant:"ghost",size:"sm",icon:e.jsx(v,{className:"size-4"}),className:"ml-auto lg:hidden",onClick:()=>C(a=>!a),"aria-label":"Tips","aria-expanded":b}),s&&!p&&e.jsx(i,{variant:"ghost",size:"sm",icon:e.jsx(v,{className:"size-4"}),className:"hidden ml-auto lg:inline-flex",onClick:u,"aria-label":"Show tips"})]}),s&&b&&e.jsx("div",{className:"border-b border-line bg-surface-sunken px-row-inset py-3 text-xs leading-relaxed text-fg-muted lg:hidden",children:s}),o?e.jsx("div",{className:"flex min-h-0 flex-1 flex-col",children:r}):e.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto",children:e.jsx("div",{className:"max-w-2xl px-3 py-5 lg:px-5",children:e.jsx("div",{className:"space-y-5",children:r})})})]}),p&&e.jsxs("aside",{className:"hidden w-64 shrink-0 flex-col border-l border-line bg-surface-sunken lg:flex",children:[e.jsxs("header",{className:"flex h-pane-header shrink-0 items-center justify-between border-b border-line px-row-inset",children:[e.jsx("span",{className:"text-2xs font-semibold uppercase tracking-wider text-fg-subtle",children:"Tips & tricks"}),e.jsx(i,{variant:"ghost",size:"sm",icon:e.jsx(N,{className:"size-3.5"}),onClick:u,"aria-label":"Collapse tips"})]}),e.jsx("div",{className:"flex-1 overflow-y-auto px-row-inset py-3 text-xs leading-relaxed text-fg-muted",children:s})]})]})}function R({name:l,email:t,meta:c,caption:n,danger:r,trailing:s}){return e.jsxs("div",{className:"flex items-center gap-3 px-row-inset py-2 hover:bg-surface-sunken",children:[e.jsx("span",{className:f(r&&"rounded-full ring-2 ring-danger/40"),children:e.jsx(w,{name:l,email:t,size:"sm"})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex flex-col gap-0 sm:flex-row sm:items-baseline sm:gap-2",children:[e.jsx("span",{className:"truncate text-sm font-medium text-fg",children:l}),e.jsx("span",{className:"truncate text-2xs text-fg-subtle",children:t})]}),e.jsxs("div",{className:"text-xs text-fg-subtle",children:[c,n&&e.jsxs("span",{className:"text-fg-muted",children:[" · ",n]})]})]}),s&&e.jsx("div",{className:"shrink-0",children:s})]})}const O={healthy:{tone:"positive",label:"healthy"},error:{tone:"danger",label:"error"},muted:{tone:"neutral",label:"muted"}};function X({label:l,email:t,connector:c,syncLabel:n,state:r,errorDetail:s,trailing:d}){const o=O[r];return e.jsxs("div",{className:f("rounded-sm border border-line bg-surface",r==="muted"&&"opacity-65"),children:[e.jsxs("div",{className:"flex flex-col gap-3 px-row-inset py-3 sm:flex-row sm:items-center",children:[e.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[e.jsx(w,{name:l,email:t,size:"md"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"truncate text-sm font-semibold text-fg",children:l}),e.jsx(S,{tone:o.tone,dot:!0,children:o.label})]}),e.jsxs("div",{className:"truncate text-xs text-fg-subtle",children:[t," · ",c," · ",n]})]})]}),d&&e.jsx("div",{className:"shrink-0",children:d})]}),s&&e.jsx("div",{className:"border-t border-line px-row-inset py-2",children:e.jsx("code",{className:"block rounded-xs bg-danger-soft px-2 py-1 text-2xs text-danger",children:s})})]})}export{X as A,F as S,R as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e}from"./index-
|
|
1
|
+
import{c as e}from"./index-Bo-p3LpF.js";const c=e("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);export{c as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as t,a7 as e}from"./index-
|
|
1
|
+
import{j as t,a7 as e}from"./index-Bo-p3LpF.js";const o=()=>t.jsx(e,{to:"/settings/senders",replace:!0});export{o as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i}from"./index-
|
|
1
|
+
import{r as i}from"./index-Bo-p3LpF.js";const s=1024,c=`(min-width: ${s}px) and (not ((orientation: portrait) and (pointer: coarse)))`,h=e=>{const[o,n]=i.useState(()=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches);return i.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const t=window.matchMedia(e);n(t.matches);const a=r=>n(r.matches);return t.addEventListener("change",a),()=>t.removeEventListener("change",a)},[e]),o};export{c as D,h as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o}from"./index-
|
|
1
|
+
import{r as o}from"./index-Bo-p3LpF.js";const n=(e,t)=>{const[r,u]=o.useState(e);return o.useEffect(()=>{const s=setTimeout(()=>u(e),t);return()=>clearTimeout(s)},[e,t]),r};export{n as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as m,af as b,
|
|
1
|
+
import{r as m,af as b,cN as E,x as C,cO as D,cA as x,cP as P,s as M,cQ as F,cR as N,cS as L,cT as T}from"./index-Bo-p3LpF.js";import{u as z,D as w}from"./use-match-media-jqJ95ElE.js";const Y=()=>z(w),G=(e,t)=>{if(e.state==="Expired")return"Expired";if(e.scope!=="Temporary"||!e.expiresAt)return"Active";const r=Date.parse(e.expiresAt);return Number.isNaN(r)?"Active":r<=t?"Expired":"Active"},X=e=>{if(!e)return;const t=Date.parse(e);if(!Number.isNaN(t))return new Date(t).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})},O=(e,t=new Date)=>{if(!e)return;const r=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(!r)return;const[,a,i,n]=r,s=new Date(Number(a),Number(i)-1,Number(n),23,59,59,0);if(Number.isNaN(s.getTime()))return;const o=-t.getTimezoneOffset(),d=o>=0?"+":"-",c=Math.abs(o),l=String(Math.floor(c/60)).padStart(2,"0"),f=String(c%60).padStart(2,"0"),u=p=>String(p).padStart(2,"0");return`${s.getFullYear()}-${u(s.getMonth()+1)}-${u(s.getDate())}T${u(s.getHours())}:${u(s.getMinutes())}:${u(s.getSeconds())}${d}${l}:${f}`},h="None",Z=e=>!e.literalClauses.some(t=>t.field==="HasWords"),y=e=>({...e.anchorMessageId?{anchorMessageId:e.anchorMessageId}:{},matchOperator:e.matchOperator,literalClauses:e.literalClauses,actionLabelId:e.labelId??h,actionMailboxId:e.moveMailboxId??h}),ee=({mode:e,ruleScope:t})=>t==="standing"?"standing":t==="until"?"temporary":e==="selected"?"just-these":"all-like-these",te=({mode:e,ruleScope:t,anchorMessageId:r,clauses:a,matchOperator:i,moveMailboxId:n,until:s})=>({...e==="similar"&&r?{anchorMessageId:r}:{},matchOperator:i==="all"?"And":"Or",literalClauses:a.map(o=>({field:o.field,value:o.value})),moveMailboxId:n,expiresAt:t==="until"?O(s??""):void 0}),S=(e,t,r)=>({name:r,scope:t==="standing"?"Standing":"Temporary",...t==="temporary"&&e.expiresAt?{expiresAt:e.expiresAt}:{},matchOperator:e.matchOperator,literalClauses:e.literalClauses,actionLabelId:e.labelId??h,actionMailboxId:e.moveMailboxId??h,...e.anchorMessageId?{anchorMessageId:e.anchorMessageId}:{}}),_=new Set(["Complete","Failed"]),v=e=>e!==void 0&&_.has(e),R=1e3,k=15e3,J=e=>{const t=Math.max(0,e),r=R*2**t;return Math.min(r,k)},$=(e,t,r)=>{if(e)return{kind:r?"restartFailed":"startFailed",error:e};if(t)return{kind:"statusUnreadable",error:t}},re=e=>{const[t,r]=m.useState(),a=b({...E(),onSuccess:g=>r(g.organizeJobId)}),{mutate:i}=a,n=C({...D({path:{accountId:e??"",organizeJobId:t??""}}),enabled:!!e&&!!t,refetchInterval:g=>{const I=g.state.data?.state;return v(I)?!1:J(g.state.dataUpdateCount)}}),s=m.useCallback(g=>{e&&i({path:{accountId:e},body:y(g)})},[e,i]),{refetch:o}=n,d=m.useCallback(()=>{o()},[o]),c=n.data,l=a.isPending?void 0:c,f=l?.state??a.data?.state,u=v(l?.state),p={state:f,matchedCount:l?.matchedCount??0,appliedCount:l?.appliedCount??0,failedCount:l?.failedCount??0,errorMessage:l?.errorMessage??""};return{start:s,refreshStatus:d,progress:p,isStarting:a.isPending,isRunning:!!t&&!u,isDone:u,failure:$(a.error,n.error,!!c)}},se=["From","Subject","HasWords","ListId","FromDomain"],Q=e=>{const t=e.trim(),r=t.match(/<([^>]+)>/);return(r?r[1]:t).trim().toLowerCase()},ae=(e,t)=>e==="ListId"?Q(t):t.trim(),U=e=>e==="all"?"And":"Or",j=(e,t)=>{const r=e.widen!==void 0&&!e.widen.inactive,a=e.clauses.map(i=>({field:i.field,value:i.value}));return{...r&&t?{anchorMessageId:t}:{},matchOperator:U(e.matchOperator),literalClauses:a}},q=e=>e.anchorMessageId!==void 0||!e.literalClauses.some(t=>t.field==="HasWords"),H=e=>JSON.stringify({anchor:e.anchorMessageId??null,operator:e.matchOperator,clauses:e.literalClauses.map(t=>`${t.field} ${t.value}`)}),ne=(e,t)=>{const r=j(e,t);return{...r.anchorMessageId?{anchorMessageId:r.anchorMessageId}:{},matchOperator:r.matchOperator,literalClauses:r.literalClauses,moveMailboxId:e.moveMailboxId,labelId:e.labelId,expiresAt:e.scope==="until"?O(e.until??""):void 0}},K=(e,t)=>e.error!==void 0&&e.errorSignature===t?{status:"error",reason:e.error}:e.count===void 0?{status:"loading"}:e.previewedSignature===t?{status:"ready",count:e.count}:{status:"ready",count:e.count,stale:!0},W=350,ie=(e,t,r)=>{const a=b(x()),{mutateAsync:i}=a,n=H(t),[s,o]=m.useState(()=>({})),d=m.useRef(t);d.current=t;const c=m.useRef(n),l=q(t);return m.useEffect(()=>{if(!e||!l||n===s.previewedSignature||n===s.errorSignature)return;const f=setTimeout(()=>{const u=n;c.current=u,i({path:{accountId:e},body:y({...d.current})}).then(p=>{c.current===u&&o({count:p.matchedCount,matchedIds:p.messageIds,previewedSignature:u})}).catch(p=>{c.current===u&&o(g=>({...g,error:p instanceof Error?p.message:"Couldn't count matches.",errorSignature:u}))})},W);return()=>clearTimeout(f)},[e,l,n,s.previewedSignature,s.errorSignature,i]),l?{count:K(s,n),matchedIds:s.previewedSignature===n?s.matchedIds??[]:[]}:{count:{status:"error",reason:P},matchedIds:[]}},A=e=>N({path:{accountId:e}}),oe=e=>{const t=C({...L({path:{accountId:e??""}}),enabled:!!e});return{filters:t.data?.items??[],isPending:t.isPending,isError:t.isError,error:t.error,refetch:t.refetch}},ue=e=>{const t=M(),r=b({...F(),onSuccess:()=>{e&&t.invalidateQueries({queryKey:A(e)})}}),{mutate:a,mutateAsync:i}=r,n=m.useCallback((o,d,c)=>{e&&a({path:{accountId:e},body:S(o,d,c)})},[e,a]),s=m.useCallback(async(o,d,c)=>e?i({path:{accountId:e},body:S(o,d,c)}).then(()=>!0,()=>!1):!1,[e,i]);return{createFilter:n,createFilterAsync:s,isPending:r.isPending,isSuccess:r.isSuccess,isError:r.isError,error:r.error,reset:r.reset}},ce=e=>{const t=M(),r=b({...T(),onSuccess:()=>{e&&t.invalidateQueries({queryKey:A(e)})}}),{mutate:a}=r;return{deleteFilter:m.useCallback(n=>{e&&a({path:{accountId:e,filterId:n}})},[e,a]),isPending:r.isPending,deletingFilterId:r.isPending?r.variables?.path.filterId:void 0}};export{h as N,se as S,re as a,A as b,ne as c,Y as d,X as e,G as f,oe as g,ce as h,y as i,ue as j,te as k,Z as l,ae as n,ee as o,O as p,j as r,ie as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as L,bB as p,s as n,af as l,bC as d,r as o,bD as y,bE as c,bF as g}from"./index-
|
|
1
|
+
import{x as L,bB as p,s as n,af as l,bC as d,r as o,bD as y,bE as c,bF as g}from"./index-Bo-p3LpF.js";const u=e=>y({path:{accountId:e}}),P=e=>{const s=L({...p({path:{accountId:e??""}}),enabled:!!e});return{labels:s.data?.items??[],isPending:s.isPending,isError:s.isError,error:s.error,refetch:s.refetch}},m=e=>{const s=n(),t=l({...d(),onSuccess:()=>{e&&s.invalidateQueries({queryKey:u(e)})}}),{mutateAsync:r}=t;return{createLabel:o.useCallback((a,i="Default")=>e?r({path:{accountId:e},body:{name:a,color:i}}):Promise.reject(new Error("No account")),[e,r]),isPending:t.isPending,isError:t.isError,error:t.error,reset:t.reset}},C=e=>{const s=n(),t=l({...c(),onSuccess:()=>{e&&s.invalidateQueries({queryKey:u(e)})}}),{mutate:r}=t;return{updateLabel:o.useCallback((a,i)=>{e&&r({path:{accountId:e,labelId:a},body:i})},[e,r]),isPending:t.isPending,updatingLabelId:t.isPending?t.variables?.path.labelId:void 0}},h=e=>{const s=n(),t=l({...g(),onSuccess:()=>{e&&s.invalidateQueries({queryKey:u(e)})}}),{mutate:r}=t;return{deleteLabel:o.useCallback(a=>{e&&r({path:{accountId:e,labelId:a}})},[e,r]),isPending:t.isPending,deletingLabelId:t.isPending?t.variables?.path.labelId:void 0}};export{P as a,C as b,h as c,m as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as E,e as q,b as j,B as D,r as i,v as C,aF as R,s as P,o as K,a2 as Q,Q as A,P as $,R as z,U as B}from"./index-
|
|
1
|
+
import{j as E,e as q,b as j,B as D,r as i,v as C,aF as R,s as P,o as K,a2 as Q,Q as A,P as $,R as z,U as B}from"./index-Bo-p3LpF.js";import{C as G}from"./circle-check-big-xK5jTBa2.js";import{R as H}from"./search-token-index-sLIcvT6p.js";function oe({state:e,onRefresh:t,label:s,errorMessage:a,hasUpdate:n,size:u="sm",className:c}){const o=e==="refreshing",f=e==="error",h=e==="success",g=f?E.jsx(q,{className:"size-4 text-danger"}):h?E.jsx(G,{className:"size-4 text-positive"}):E.jsx(H,{className:j("size-4",o&&"animate-spin")}),y=f?`${s} — failed: ${a??"try again"}`:o?`${s} — refreshing`:h?`${s} — up to date`:n?`${s} — new mail`:s;return E.jsxs("div",{className:"relative inline-flex",children:[E.jsx(D,{variant:"ghost",size:u,icon:g,onClick:t,disabled:o,"aria-label":y,"aria-busy":o||void 0,title:f?a:s,className:c}),e==="idle"&&n&&E.jsx("span",{"aria-hidden":"true",className:"absolute right-1 top-1 size-1.5 rounded-full bg-accent-2"})]})}const U=new Set(["discovering_mailboxes","syncing_inbox","syncing_others"]);function F(e){return!!e&&U.has(e)}const N=3e3,W=N*2,v={syncing:!1,resolved:!1,synced:0,total:0};function ie(e,t){const s=e.join(","),[a,n]=i.useState(!1),[u,c]=i.useState(!1);i.useEffect(()=>{n(!1),c(!1)},[s,t]),i.useEffect(()=>{if(!t)return;const r=setTimeout(()=>c(!0),W);return()=>clearTimeout(r)},[s,t]);const o=C({queries:e.map(r=>({...R({path:{accountId:r}}),enabled:t&&!a,refetchInterval:N,meta:{softError:!0}}))}),f=o.every(r=>r.isSuccess||r.isError),h=o.length===0||f||u;let g=!1,y=0,w=0;for(const r of o)if(F(r.data?.syncPhase)){g=!0;for(const l of r.data?.mailboxes??[])y+=l.messagesSynced,w+=l.messagesTotal}const S=t&&h&&!g;return i.useEffect(()=>{S&&n(!0)},[S]),!t||!h?v:{syncing:g,resolved:!0,synced:y,total:w}}const M=6e4,I=new Set(["sent","drafts","trash","archive"]),k=(e,t)=>{const s=new Map;for(const a of e){const n=t.get(a.mailboxId)?.role;n&&I.has(n)||s.set(a.mailboxId,a.messagesTotal)}return s},X=(e,t)=>{for(const[s,a]of t)if(a>(e.get(s)??0))return!0;return!1},_=i.createContext(null),J=()=>{const e=i.useContext(_);if(!e)throw new Error("useMailFreshness must be used inside <MailFreshnessProvider>");return e};function ce({accountIds:e,children:t}){const s=P(),{resultFolderIndex:a}=K(),n=i.useRef(new Map),u=i.useRef(new Set),[c,o]=i.useState(new Set),f=C({queries:e.map(r=>({...R({path:{accountId:r}}),refetchInterval:M,staleTime:M,meta:{softError:!0}}))}),h=f.map(r=>r.dataUpdatedAt).join(","),g=e.join(",");i.useEffect(()=>{let r=!1;const l=new Set(c);e.forEach((d,x)=>{const p=f[x]?.data;if(!p)return;const m=k(p.mailboxes??[],a);if(!u.current.has(d)){u.current.add(d),n.current.set(d,m);return}if(l.has(d))return;const T=n.current.get(d)??new Map;X(T,m)&&(l.add(d),r=!0)}),r&&o(l)},[g,h]);const y=i.useCallback(r=>r.some(l=>c.has(l)),[c]),w=i.useCallback(r=>{o(l=>{if(r.every(x=>!l.has(x)))return l;const d=new Set(l);for(const x of r)d.delete(x);return d});for(const l of r){const d=s.getQueryData(R({path:{accountId:l}}).queryKey);n.current.set(l,k(d?.mailboxes??[],a)),u.current.add(l)}},[s,a]),S=i.useMemo(()=>({hasNewMail:y,acknowledge:w}),[y,w]);return E.jsx(_.Provider,{value:S,children:t})}const V=2e3,Y=45e3,Z=e=>new Promise(t=>setTimeout(t,e)),b=e=>e instanceof Error&&e.message?e.message:"Something went wrong",ee=e=>{z(e,{softError:!0})&&B(e)},L=e=>e.reduce((t,s)=>Math.max(t,s.lastSyncedAt??0),0),O=(e,t)=>e.fetchQuery({...R({path:{accountId:t}}),staleTime:0}),se=async(e,t,s,a)=>{let n=!1;for(;;){const u=await O(e,t).then(f=>({ok:!0,data:f})).catch(f=>({ok:!1,error:f}));if(!u.ok)return{accountId:t,message:b(u.error)};const{syncPhase:c,mailboxes:o}=u.data;if(F(c))n=!0;else if(n||L(o??[])>s)return c==="error"?{accountId:t,message:"Sync failed for this account"}:void 0;if(Date.now()>=a)return{accountId:t,message:"Refresh is taking longer than usual"};await Z(V)}},te=async(e,t,s,a)=>{const n=await O(e,s).then(o=>({ok:!0,maxLastSynced:L(o.mailboxes??[])})).catch(o=>({ok:!1,error:o}));if(!n.ok)return{accountId:s,enqueued:!1,ok:!1,message:b(n.error)};const u=await $({path:{accountId:s},throwOnError:!0}).then(()=>({ok:!0})).catch(o=>({ok:!1,error:o}));if(!u.ok)return ee(u.error),{accountId:s,enqueued:!1,ok:!1,message:b(u.error)};t.recordEvent("sync.triggered");const c=await se(e,s,n.maxLastSynced,a);return c?{accountId:s,enqueued:!0,ok:!1,message:c.message}:{accountId:s,enqueued:!0,ok:!0}},ue=(e,t={})=>{const s=P(),a=Q(),{acknowledge:n}=J(),[u,c]=i.useState("idle"),[o,f]=i.useState(),h=i.useRef(0),g=i.useRef(e);g.current=e;const y=i.useRef(t);y.current=t,i.useEffect(()=>{if(u!=="success")return;const S=setTimeout(()=>c("idle"),2e3);return()=>clearTimeout(S)},[u]);const w=i.useCallback(()=>{const S=g.current;if(S.length===0){c("error"),f("Nothing to refresh yet");return}const r=++h.current;c("refreshing"),f(void 0),(async()=>{const l=Date.now()+Y,d=await Promise.all(S.map(m=>te(s,a,m,l)));if(h.current!==r)return;const x=d.filter(m=>m.enqueued).map(m=>m.accountId);for(const m of x)s.invalidateQueries({queryKey:A({path:{accountId:m}})});x.length>0&&(y.current.onSettled?.(),n(x));const p=d.filter(m=>!m.ok);p.length===0?c("success"):(c("error"),f(p[0]?.message))})()},[n,s,a]);return{state:u,errorMessage:o,refresh:w}};export{ce as M,oe as R,ue as a,ie as b,F as i,J as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as y,o as d,W as x,r as h}from"./index-
|
|
1
|
+
import{p as y,o as d,W as x,r as h}from"./index-Bo-p3LpF.js";import{b as Q}from"./nav-link-BC-lpJt4.js";import{b}from"./search-view-CB5G4Kva.js";function M(o){const a=y(),{searchInput:c,searchQuery:r}=d(),{q:i=""}=x({from:"/mail"}),n=Q({select:l=>l.location.pathname}),s=h.useRef(i);s.current=i;const{to:e}=o,t="params"in o?o.params.mailboxId:void 0,m=t?`/mail/${t}`:e;h.useEffect(()=>{if(!b({searchInput:c,committedQuery:r,urlQuery:s.current,pathname:n,listPath:m}))return;const p=!!r&&s.current!==r,u=f=>({...f,q:r||void 0});if(!p){a({to:".",search:u,hash:!0,replace:!0});return}if(e==="/mail/$mailboxId"){if(!t)return;a({to:e,params:{mailboxId:t},search:u,hash:!0,replace:!0});return}a({to:e,search:u,hash:!0,replace:!0})},[c,r,a,e,t,m,n])}export{M as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c3 as J,r as g,j as a,b as k,I as ee,a2 as te,n as B,s as $,x as se,cr as D,cq as re,ad as ne,af as ae,ag as oe,bd as ie,e as ce,X as le,K as v,o as de}from"./index-
|
|
1
|
+
import{c3 as J,r as g,j as a,b as k,I as ee,a2 as te,n as B,s as $,x as se,cr as D,cq as re,ad as ne,af as ae,ag as oe,bd as ie,e as ce,X as le,K as v,o as de}from"./index-Bo-p3LpF.js";import{K as S}from"./kbd-0M4qAi49.js";import{M as O}from"./enums-CCxx0t2v.js";import{b as ue,f as me}from"./nav-link-BC-lpJt4.js";const fe=(e,t)=>{const r=e==="newsletter"||e==="marketing"||t;return{framed:r,isPlain:!r}},he=()=>`
|
|
2
2
|
/* Zero the UA default body margin and clamp the document to the iframe width so
|
|
3
3
|
wide author markup can't push the body (and the page) past the viewport. */
|
|
4
4
|
html, body {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as L,ad as C,af as k,bv as I,bw as A,r as x,j as p,bx as h,by as E,bz as j,o as R,x as Q,bA as z}from"./index-
|
|
1
|
+
import{s as L,ad as C,af as k,bv as I,bw as A,r as x,j as p,bx as h,by as E,bz as j,o as R,x as Q,bA as z}from"./index-Bo-p3LpF.js";import{ai as D,aj as O,ak as _,al as N,am as P}from"./MailListHeader-BJ9doZxm.js";import{a as q}from"./useLabels-wgL9c4lv.js";import{M as w}from"./enums-CCxx0t2v.js";import{b as U,s as B}from"./nav-link-BC-lpJt4.js";import{n as F}from"./search-query-Cr_ZXBCp.js";import{u as G,p as K}from"./useSearchTokenContext-Bb3YnI52.js";const V=t=>{const{mailboxId:s,messages:i}=t,l=L(),{pushError:c}=C(),{mutateAsync:r,isPending:a}=k({...A(),onError:(o,u)=>{c({title:u.body.action==="Remove"?"Couldn't remove label":"Couldn't apply label",detail:I(o),error:o})},onSettled:(o,u,m)=>{D(l,O(_(m.body.messageIds??[],i??[],s)))}});return{applyLabel:x.useCallback((o,u,m)=>{o.length!==0&&N(o,d=>r({body:{messageIds:d,labelId:u,action:m}}))},[r]),isPending:a}};function oe({accountId:t,mailboxId:s,messageIds:i}){const{labels:l}=q(t),{applyLabel:c}=V({mailboxId:s}),r=x.useMemo(()=>l.map(a=>({key:a.labelId,label:a.name,icon:p.jsx("span",{className:`size-2.5 rounded-full ${E(a.color)?h[a.color]:h.Default}`}),onSelect:()=>c(i,a.labelId,"Apply")})),[l,i,c]);return r.length===0?null:p.jsx(P,{triggerLabel:"Apply label to selected messages",triggerIcon:p.jsx(j,{className:"size-4 text-fg-subtle"}),triggerText:"Apply label",items:r,align:"start",nested:!0,touch:!1,triggerClassName:"min-h-11 w-full justify-start gap-3 px-4 py-2.5 text-sm font-normal text-fg"})}const $=20,H=new Set(Object.values(w)),J=t=>t!==void 0&&H.has(t)?t:void 0,W=t=>{if(t.some(s=>s.type==="isUnread"))return!1;if(t.some(s=>s.type==="isRead"))return!0};function ne({mailboxId:t,filterCategory:s}={}){const{searchQuery:i}=R(),l=G(),c=U({select:e=>e.matches}),r=F(i),{freeText:a,tokens:n}=K(r,l),o=a.length>0,u=n.find(e=>e.type==="category"),m=J(s)??u?.category,d=n.some(e=>e.type==="hasAttachment")?!0:void 0,b=n.some(e=>e.type==="isStarred")?!0:void 0,y=W(n),f=n.find(e=>e.type==="after"),g=n.find(e=>e.type==="before"),S=n.find(e=>e.type==="in"),v=B({matches:c,callerMailboxId:t,inTokenMailboxId:S?.mailboxId}),{data:M,isLoading:T}=Q({...z({query:{query:a,mailboxId:v,limit:$,...m!==void 0?{category:m}:{},...d!==void 0?{hasAttachment:d}:{},...b!==void 0?{hasStars:b}:{},...y!==void 0?{isRead:y}:{},...f?{sentDateFrom:f.epochSeconds}:{},...g?{sentDateTo:g.epochSeconds}:{}}}),enabled:o,staleTime:6e4});return{hits:M?.items??[],isLoading:o&&T}}export{oe as L,ne as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as c,ad as f,x as p,Z as m,r,af as y,ag as T,a1 as x,ah as E}from"./index-
|
|
1
|
+
import{s as c,ad as f,x as p,Z as m,r,af as y,ag as T,a1 as x,ah as E}from"./index-Bo-p3LpF.js";const i={html:"",plainText:""},h=e=>{const u=c(),{pushError:o}=f(),{data:n}=p({...m(),staleTime:1/0}),g=r.useMemo(()=>{if(!e||!n)return i;const t=n.accounts.find(s=>s.accountId===e);return t?{html:t.signatureHtml??"",plainText:t.signaturePlainText??""}:i},[e,n]),a=y({...E(),onSuccess:()=>{u.invalidateQueries({queryKey:x()})},onError:t=>{o(T("Couldn't save signature","The signature wasn't saved.",t))}}),l=r.useCallback((t,s)=>{e&&a.mutate({path:{accountId:e},body:{signatureHtml:t,signaturePlainText:s}})},[e,a]);return{signature:g,setSignature:l,isSaving:a.isPending}};export{h as u};
|
package/index.html
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
} catch (_) {}
|
|
39
39
|
})();
|
|
40
40
|
</script>
|
|
41
|
-
<script type="module" crossorigin src="/assets/index-
|
|
41
|
+
<script type="module" crossorigin src="/assets/index-Bo-p3LpF.js"></script>
|
|
42
42
|
<link rel="stylesheet" crossorigin href="/assets/index-DivxHcM7.css">
|
|
43
43
|
</head>
|
|
44
44
|
<body>
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a,an as Xe,S as es,bp as ss,o as B,bj as ts,p as ae,r as n,x as se,bq as te,v as as,w as os,br as ns,bs as rs,bt as is,e as Te,bu as ls,i as cs}from"./index-DKG1l4OE.js";import{s as we,a as ds,b as Me,u as us,p as ms,R as fs}from"./useSearchTokenContext-BNRIlJev.js";import{a4 as ve,F as ye,a5 as hs,a6 as gs,G as xs,a7 as Se,a8 as ps,a9 as Is,aa as bs,a3 as vs,ab as ys,ac as Ss,ad as Cs,M as js,ae as Rs,af as Ts,ag as ws,f as Ms,w as ks,ah as Ns,s as As,S as Fs,J as Bs,O as Ce,N as Os,K as Ls,e as Es,Y as qs,Z as ke,_ as Ds,$ as Ne,a0 as Ps}from"./MailListHeader-BFBjOnAW.js";import{u as zs,a as _s,R as Hs,i as Qs,b as $s}from"./useRefreshControl-DN40VgNE.js";import{a as Ws}from"./useLabels-CZdQ7rFS.js";import{d as Gs,R as Us}from"./search-token-index-D13ogntK.js";import{d as Vs}from"./useFilters-DBElfc_V.js";import{u as Ys,L as Js}from"./useSemanticSearch-BHpjDfP4.js";import{r as je}from"./nav-link-BTQmJNls.js";function Ks({sync:e}){return e?a.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2 py-12 text-center px-4",role:"status","aria-live":"polite",children:[a.jsx(Xe,{className:"size-8 animate-spin text-fg-subtle","aria-hidden":"true"}),a.jsx("p",{className:"text-sm font-medium text-fg",children:"Still syncing your mail"}),a.jsx("p",{className:"text-xs text-fg-subtle",children:Zs(e)})]}):a.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2 py-12 text-center px-4",children:[a.jsx(es,{className:"size-8 text-fg-subtle","aria-hidden":"true"}),a.jsx("p",{className:"text-sm font-medium text-fg",children:"You're caught up"}),a.jsx("p",{className:"text-xs text-fg-subtle",children:"Nothing needs attention."})]})}function Zs({synced:e,total:s}){return s>0?`${e.toLocaleString()} of ${s.toLocaleString()} messages downloaded. This list fills in as they arrive.`:"Downloading your messages. This list fills in as they arrive."}const Ae=[{id:"unread",name:"is",value:"unread"},{id:"attachment",name:"has",value:"attachment"}],Fe="category",Xs={unclassified:"uncategorized"},D=e=>ds(e).map(s=>s.raw),q=e=>e.join(" "),oe=e=>{const s=Me(e);if(s)return Ae.find(o=>o.name===s.name&&o.value===s.value.toLowerCase())?.id},ne=e=>{const s=Me(e);if(!s||s.name!==Fe)return;const o=s.value.toLowerCase(),r=Xs[o];if(r)return r;if(!(!ss(o)||o==="all"))return o},Be=e=>Ae.find(s=>s.id===e),Oe=e=>Be(e)!==void 0,et=e=>{const s=new Set;for(const o of D(e)){const r=oe(o);r&&s.add(r)}return s},st=e=>{let s="all";for(const o of D(e)){const r=ne(o);r&&(s=r)}return s},tt=(e,s)=>{const o=Be(s);if(!o)return;const r=D(e),c=r.filter(l=>oe(l)!==s);return c.length<r.length?q(c):q([...r,we(o.name,o.value)])},at=(e,s)=>{const o=D(e).filter(r=>!ne(r));return q(s==="all"?o:[...o,we(Fe,s)])},ot=e=>q(D(e).filter(s=>!oe(s)&&!ne(s))),Le=e=>e.trim().length>0,nt=e=>{if(!Le(e.query))return e.ownFilters;const s=new Set(et(e.query));for(const o of e.ownFilters)Oe(o)||s.add(o);return s},rt=e=>Le(e.query)?st(e.query):e.ownCategory,it=(e,s)=>e.createdAt!==s.createdAt?e.createdAt-s.createdAt:e.accountId.localeCompare(s.accountId),lt=e=>[...e].sort(it),ct=200,Re=()=>a.jsx("div",{className:"animate-pulse",children:Array.from({length:3}).map((e,s)=>a.jsxs("div",{className:"flex items-start gap-3 py-2 pl-5 pr-4 border-b border-line",children:[a.jsx("div",{className:"size-7 rounded-full bg-surface-sunken shrink-0 mt-0.5"}),a.jsxs("div",{className:"flex-1 space-y-1.5",children:[a.jsxs("div",{className:"flex justify-between gap-2",children:[a.jsx("div",{className:"h-3.5 bg-surface-sunken rounded w-28"}),a.jsx("div",{className:"h-3 bg-surface-sunken rounded w-12"})]}),a.jsx("div",{className:"h-3.5 bg-surface-sunken rounded w-48"}),a.jsx("div",{className:"h-3 bg-surface-sunken rounded w-full"})]})]},s))}),dt=({accountEmail:e})=>{const s=ae();return a.jsxs("div",{className:"flex items-center gap-2 px-row-inset py-2 border-b border-line bg-danger-soft/40 text-xs text-danger",children:[a.jsx(Te,{className:"size-3.5 shrink-0"}),a.jsxs("span",{className:"flex-1 truncate",children:[e," can't connect"]}),a.jsx("button",{type:"button",onClick:()=>s({to:"/settings/accounts"}),className:"shrink-0 underline text-danger hover:opacity-80",children:"Reconnect"})]})},ut=(e,s)=>{if(s.size===0)return{};const o=new Set,r=new Set;for(const l of e)s.has(l.id)&&(l.accountId&&o.add(l.accountId),l.mailboxId&&r.add(l.mailboxId));if(o.size>1)return{moveDisabledHint:"Move only works within one account — clear selection or pick messages from a single account"};const c=o.size===1?[...o][0]:void 0;return r.size>1?{accountId:c,moveDisabledHint:`Move only works within one folder — this selection spans ${r.size} folders`}:{accountId:c,mailboxId:r.size===1?[...r][0]:void 0}};function mt({header:e,rows:s,wizard:o,children:r}){const{selectedIds:c,selectedCount:l,exitSelection:p,orderedIds:u,allSelected:x,toggleAllLoaded:y}=ws(),m=n.useMemo(()=>ut(s,c),[s,c]),{junkMailboxId:S}=Ms(m.accountId),{labels:O}=Ws(m.accountId),M=n.useMemo(()=>Array.from(c),[c]),j=n.useMemo(()=>s.filter(g=>c.has(g.id)).map(g=>({id:g.id,sender:g.fromName,email:g.fromEmail,subject:g.subject,date:g.timeLabel})),[s,c]),h=ks(S,m.mailboxId),I=n.useMemo(()=>u.length>0?{checked:x,indeterminate:l>0&&!x,onChange:y}:void 0,[u.length,x,l,y]),b=m.moveDisabledHint?{tone:"warning",text:m.moveDisabledHint}:void 0,F=g=>a.jsx(Fs,{title:g.title,navSlot:g.navSlot,titleMeta:g.titleMeta,searchSlot:g.searchSlot,searchField:g.searchField,idleSlot:g.makeFilterSlot,count:l,onCancel:p,onDelete:()=>o.start("delete"),onMove:()=>o.start("move"),onOrganize:()=>o.start("organize"),onJunk:h?()=>o.start("junk"):void 0,onMarkRead:()=>o.start("markRead"),overflowSlot:m.accountId&&m.mailboxId&&l>0&&O.length>0?a.jsx(Js,{accountId:m.accountId,mailboxId:m.mailboxId,messageIds:M}):void 0,selectAll:I,notice:b});return a.jsx(Ns,{...e,selectionBar:F,paneOverlay:a.jsx(As,{verb:o.verb,accountId:m.accountId,mailboxId:m.mailboxId,selection:j,crossAccount:m.moveDisabledHint!==void 0,onFinished:p}),children:r})}function ft({accounts:e,selectedMessageId:s,onOpenThread:o,commandsRef:r,onTriageContextChange:c,onDeleteMessages:l}){const{searchQuery:p,searchInput:u,resultFolderIndex:x,onSearchChange:y}=B(),m=us(),S=Vs(),O=Gs(),M=ts(),j=ae(),h=n.useMemo(()=>lt(e.filter(t=>!t.muted?.value)),[e]),[I,b]=n.useState("all"),[F,g]=n.useState("all"),[L,U]=n.useState(new Set),[k,P]=n.useState(!1),z=n.useCallback(t=>{U(i=>{const d=new Set(i);return d.has(t)?d.delete(t):d.add(t),d})},[]),_=n.useCallback(()=>U(new Set),[]),C=u.trim().length>0,N=n.useMemo(()=>nt({query:u,ownFilters:L}),[u,L]),f=n.useMemo(()=>rt({query:u,ownCategory:F}),[u,F]),R=n.useCallback(t=>{if(!C||!Oe(t)){z(t);return}const i=tt(u,t);i!==void 0&&y(i)},[C,u,y,z]),A=n.useCallback(t=>{if(!C){g(t);return}y(at(u,t))},[C,u,y]),V=n.useCallback(()=>{g("all"),b("all"),_(),C&&y(ot(u))},[C,u,y,_]),{data:H,isLoading:Y,isError:re,refetch:ie}=se({...te(),staleTime:6e4}),Q=as({queries:h.map(t=>({...os({path:{accountId:t.accountId}}),staleTime:1/0,meta:{softError:!0}}))}),$=n.useMemo(()=>{const t=new Map;for(let i=0;i<h.length;i++){const d=h[i].accountId,Je=(Q[i]?.data?.items??[]).reduce((Ke,Ze)=>Ke+(Ze.unseenCount??0),0);t.set(d,Je)}return t},[h,Q]),De=n.useMemo(()=>h.filter((t,i)=>{const d=Q[i];return d?.isError?!ns(d.error):!1}),[h,Q]),{freeText:T,tokens:J}=ms(p.trim().toLowerCase(),m),{data:le,isFetching:Pe}=se({...te({query:{query:T,limit:ct}}),enabled:T.length>0,staleTime:3e4}),v=n.useMemo(()=>{const t=ve(H?.items??[]).map(ye);return(T?hs(t.filter(d=>gs(d,T)),ve(le?.items??[]).map(ye)):t).filter(d=>(I==="all"||d.accountId===I)&&xs(d,J))},[H,le,I,T,J]),{bodyRows:ce,briefSpamOffer:K}=n.useMemo(()=>{if(!T)return{bodyRows:v,briefSpamOffer:void 0};const t=v.map(w=>Se(w,x)),{spam:i}=ps(t);if(i.length===0)return{bodyRows:v,briefSpamOffer:void 0};const d=new Set(i.map(w=>w.id));return{bodyRows:v.filter(w=>!d.has(w.id)),briefSpamOffer:Is(t)}},[v,T,x]),de=n.useMemo(()=>bs(ce),[ce]),ue=n.useCallback((t,i)=>{const d=v.find(w=>w.id===t)?.threadId;d&&o?.({threadId:d,messageId:t},i)},[v,o]),ze=n.useCallback(t=>{const i=t.threadId??v.find(d=>d.id===t.id)?.threadId;i&&o?.({threadId:i,messageId:t.id})},[v,o]),Z=n.useMemo(()=>h.length<=1?[]:[{id:"all",label:"All",active:I==="all"},...h.map(t=>({id:t.accountId,label:t.email.split("@")[0]??t.email,count:$.get(t.accountId),active:I===t.accountId}))],[h,$,I]),E=n.useMemo(()=>e.filter(t=>t.muted?.value).length,[e]),_e=n.useMemo(()=>Array.from($.values()).reduce((t,i)=>t+i,0),[$]),X=n.useMemo(()=>h.map(t=>t.accountId),[h]),{hasNewMail:me}=zs(),{state:fe,errorMessage:he,refresh:ge}=_s(X,{onSettled:()=>ie()}),He=n.useMemo(()=>a.jsx(Hs,{state:fe,onRefresh:ge,label:"Refresh daily brief",errorMessage:he,hasUpdate:me(X)}),[fe,ge,he,me,X]),ee=n.useMemo(()=>v.filter(t=>(f==="all"||t.category===f)&&rs(t,N)).map(t=>Se(t,x)),[v,f,N,x]),{hits:xe,isLoading:Qe}=Ys(),$e=n.useMemo(()=>{const t=new Map;for(const d of H?.items??[])t.set(d.messageId,d.threadId);const i=ee.map(d=>t.get(d.id)).filter(d=>d!=null);return vs(xe,i,x)},[xe,ee,H,x]),We=n.useMemo(()=>{const t=ys(Z.map(i=>({id:i.id,label:i.label,count:i.count,active:i.active})));return{categories:t.categories,filters:t.filters,sources:t.sources,sourcesNote:E>0?`+${E} muted`:void 0,selectedCategory:f,activeFilters:N,expanded:k,onExpandedChange:P,onSelectCategory:i=>A(i),onSelectSource:b,onToggleFilter:i=>R(i),onClear:V}},[Z,E,f,N,k,R,A,V]),pe=de.length===0&&I==="all"&&T.length===0&&J.length===0,Ge=n.useMemo(()=>h.map(t=>t.accountId),[h]),Ue=n.useMemo(()=>h.some(t=>Qs(t.syncPhase)),[h]),W=$s(Ge,pe||Ue),Ie=a.jsxs("div",{className:"h-full overflow-y-auto",children:[a.jsx(Re,{}),a.jsx(Re,{})]}),be=!Y&&!re&&!pe,Ve=Ss({tier:O,hasLiveInput:C,hasCommittedQuery:p.trim().length>0,bodyRendersCommittedResults:!0}),Ye=be?a.jsxs("div",{className:"flex h-full min-h-0 flex-col",children:[K&&a.jsx(Cs,{count:K.count,onScopeToSpam:()=>j({to:"/mail/$mailboxId",params:{mailboxId:K.mailboxId},search:{q:p||void 0}})}),a.jsx("div",{className:"min-h-0 flex-1",children:a.jsx(is,{sections:de,briefCategory:f,Row:js,selectedThreadId:s,onSelectThread:ue,onSelectBriefCategory:A,sources:Z,sourcesNote:E>0?`+${E} muted`:void 0,onSelectSource:b,activeFilters:N,onToggleFilter:R,onClearFilters:V})})]}):Y?Ie:re?a.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-3 py-12 text-sm text-fg-muted",children:[a.jsx(Te,{className:"size-8 text-danger"}),a.jsx("p",{children:"Couldn't load your messages"}),a.jsxs("button",{type:"button",onClick:()=>ie(),className:"flex items-center gap-1 text-accent underline text-xs",children:[a.jsx(Us,{className:"size-3.5"}),"Try again"]})]}):W.resolved?a.jsx(Ks,{sync:W.syncing?{synced:W.synced,total:W.total}:void 0}):Ie;return a.jsx(ls,{hasSheet:be&&!Ve,children:a.jsx(Rs,{selectedMessageId:s,onOpen:ue,onDeleteMessages:l,onSelectionVerb:M.start,wizardOpen:M.isOpen,commandsRef:r,onTriageContextChange:c,children:a.jsx(mt,{wizard:M,header:{title:"Daily brief",unreadCount:_e,footer:S?a.jsx(Ts,{}):void 0,searchFilter:We,searchResults:ee,searchLoading:Y||Pe,relatedResults:$e,relatedLoading:Qe,onSelectSearchResult:ze,searchResultsInBody:!0,refreshControl:He},rows:v,children:a.jsxs("div",{className:"flex h-full flex-col",children:[De.map(t=>a.jsx(dt,{accountEmail:t.email,accountId:t.accountId},t.accountId)),a.jsx("div",{className:"min-h-0 flex-1",children:Ye})]})})})})}const Ee=n.createContext(null);function G(){const e=n.useContext(Ee);if(!e)throw new Error("BriefPane.* must be used inside <BriefPane>");return e}function ht({thread:e,children:s}){const o=ae(),{searchInput:r}=B(),c=e?.threadId,l=e?.messageId,{data:p}=se({...te(),staleTime:6e4}),u=n.useMemo(()=>p?.items??[],[p]),x=n.useMemo(()=>{if(c)return u.find(f=>f.messageId===l)??u.find(f=>f.threadId===c)},[u,c,l]),y=Bs(c,l),m=x??y,S=l??m?.messageId,O=n.useMemo(()=>{if(c)return{threadId:c,mailboxId:m?.mailboxId??"",subject:m?.subject,messageId:S,authenticity:m?.authenticity}},[c,m,S]),M=n.useCallback((f,R)=>{o({to:"/mail/brief/$threadId/$messageId",params:f,replace:R?.replace,search:A=>({...A,q:r||void 0}),hash:je})},[o,r]),j=n.useCallback(()=>{o({to:"/mail/brief",search:f=>f,hash:je})},[o]),h=n.useCallback(f=>{S&&f.includes(S)&&j()},[S,j]),I=Ce({thread:m,onAfterOptimisticRemove:h}),b=Os(),{deleteMessages:F}=Ls({mailboxId:m?.mailboxId??"",messages:u,onAfterOptimisticRemove:h}),{toggleReadFor:g}=Es({mailboxId:m?.mailboxId??"",messages:u}),L=b.focusedMessageId,k=n.useMemo(()=>u.find(f=>f.messageId===L),[u,L])??m,P=Ce({thread:k}),{nextMessageId:z,previousMessageId:_}=qs({context:b,orderedIds:b.orderedIds,selectedMessageId:S,onClose:j,handlers:{reply:()=>I.requestCompose("reply"),replyAll:()=>I.requestCompose("reply_all"),forward:()=>I.requestCompose("forward"),delete:()=>{b.listCommandsRef.current?.requestVerb("delete")||P.deleteThread()},toggleStar:P.toggleStar,toggleRead:()=>{b.listCommandsRef.current?.requestVerb("markRead")||k&&g([k.messageId],!k.isRead)},goFlagged:()=>o({to:"/mail/flagged"}),goSettings:()=>o({to:"/settings"})}}),C=n.useCallback(f=>{if(!f)return;const R=u.find(A=>A.messageId===f);return R?{threadId:R.threadId,messageId:f}:void 0},[u]),N={selectedMessageId:S,selectedThread:m,conversation:O,onOpenThread:M,onCloseThread:j,nextThread:C(z),previousThread:C(_),actions:I,triage:b,onDeleteMessages:F,handleDeselectIfRemoved:h};return a.jsx(Ee.Provider,{value:N,children:s})}function qe(){const{selectedMessageId:e,onOpenThread:s,triage:o,onDeleteMessages:r}=G(),{accounts:c}=B();return a.jsx(ft,{accounts:c,selectedMessageId:e,onOpenThread:s,commandsRef:o.listCommandsRef,onTriageContextChange:o.onTriageContextChange,onDeleteMessages:r})}function gt(){const{conversation:e,actions:s}=G(),{intelligenceOpen:o,onToggleIntelligence:r}=B(),c=cs()?.showIntelligencePane??!1,l=!!e,p=c&&l;return a.jsxs("section",{className:"flex h-full w-full min-w-0 flex-col bg-canvas",children:[a.jsx(Ps,{hasThread:l,intelligenceOpen:p&&o,canToggleIntelligence:p,onToggleIntelligence:r,onReply:l?()=>s.requestCompose("reply"):void 0,onReplyAll:l?()=>s.requestCompose("reply_all"):void 0,onForward:l?()=>s.requestCompose("forward"):void 0,onDelete:l?s.deleteThread:void 0,onToggleStar:l?s.toggleStar:void 0,isStarred:s.isStarred,moveContext:l&&s.accountId&&s.mailboxId?{accountId:s.accountId,currentMailboxId:s.mailboxId,onMove:s.moveThread}:void 0}),a.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:e?a.jsx(ke,{threadId:e.threadId,mailboxId:e.mailboxId,subject:e.subject,selectedMessageId:e.messageId,authenticity:e.authenticity,composeRequest:s.composeRequest,onComposeClose:s.clearComposeRequest}):a.jsx(fs,{})})]})}function xt(){const{selectedThread:e,handleDeselectIfRemoved:s}=G(),{onToggleIntelligence:o}=B();return a.jsx(Ne,{onClose:o,thread:e,mailboxId:e?.mailboxId,accountId:e?.accountId,onAfterOptimisticRemove:s})}function pt(){const{selectedThread:e,conversation:s,onOpenThread:o,onCloseThread:r,nextThread:c,previousThread:l,handleDeselectIfRemoved:p}=G(),{intelligenceOpen:u,onToggleIntelligence:x}=B();return s?a.jsxs(a.Fragment,{children:[a.jsx(ke,{threadId:s.threadId,mailboxId:s.mailboxId,subject:s.subject,selectedMessageId:s.messageId,authenticity:s.authenticity,onBack:r,onOpenIntelligence:x,onSwipeNext:c?()=>o(c):void 0,onSwipePrevious:l?()=>o(l):void 0,mobileIntelligenceOpen:u}),a.jsx(Ds,{isOpen:u,onClose:x,ariaLabel:"Message details",side:"right",children:a.jsx(Ne,{onClose:x,thread:e,mailboxId:e?.mailboxId,accountId:e?.accountId,hideCloseButton:!0,onAfterOptimisticRemove:p})})]}):a.jsx("div",{className:"h-full",children:a.jsx(qe,{})})}const wt=Object.assign(ht,{List:qe,Reading:gt,Intelligence:xt,Phone:pt});export{wt as B};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bG as Y,r as n,bH as Z,o as F,bj as X,aN as ee,aO as te,j as a,p as se,i as ae}from"./index-DKG1l4OE.js";import{u as oe,p as re,R as ne}from"./useSearchTokenContext-BNRIlJev.js";import{F as de,a6 as ie,G as le,an as ce,a7 as ue,d as ge,M as he,ae as me,ao as fe,ag as pe,s as xe,J as Ie,O as D,N as Te,K as be,e as ve,Y as Ce,Z as z,_ as ye,$ as Q,a0 as Re}from"./MailListHeader-BFBjOnAW.js";import{u as Se,b as je,a as we}from"./MailViewChrome-XjLFqRLL.js";import{f as Fe}from"./ErrorState-DlHdbl1h.js";import{d as Me}from"./useFilters-DBElfc_V.js";import{r as H}from"./nav-link-BTQmJNls.js";const Pe=()=>Z({query:{starred:!0,order:"desc"}});function V(){const{data:e,isLoading:t,isError:o,error:u,refetch:c,fetchNextPage:s,hasNextPage:i,isFetchingNextPage:x}=Se({queryKey:Pe(),queryFn:async({pageParam:d})=>{const{data:h}=await Y({query:{starred:!0,order:"desc",continuationToken:d},throwOnError:!0});return h},initialPageParam:void 0,getNextPageParam:d=>d.continuationToken,staleTime:6e4});return{threads:n.useMemo(()=>(e?.pages??[]).flatMap(d=>d.items??[]),[e]),isLoading:t,isError:o,error:u,refetch:c,fetchNextPage:s,hasNextPage:i,isFetchingNextPage:x}}const ke=e=>{const t=new Set;return e.filter(o=>t.has(o.threadId)?!1:(t.add(o.threadId),!0))},Le={unread:e=>!e.isRead,attachment:e=>e.hasAttachment===!0};function Oe({rows:e,verb:t}){const{selectedIds:o,exitSelection:u}=pe(),c=n.useMemo(()=>e.filter(s=>o.has(s.id)).map(s=>({id:s.id,sender:s.fromName,email:s.fromEmail,subject:s.subject,date:s.timeLabel})),[e,o]);return a.jsx(xe,{verb:t,selection:c,crossAccount:!0,onFinished:u})}function Ne({selectedMessageId:e,onOpenThread:t,commandsRef:o,onTriageContextChange:u,onDeleteMessages:c}){const{searchQuery:s,resultFolderIndex:i}=F(),x=oe(),I=Me(),d=X(),[h,M]=n.useState("all"),[R,T]=n.useState(new Set),S=n.useCallback(r=>{T(g=>{const f=new Set(g);return f.has(r)?f.delete(r):f.add(r),f})},[]),b=n.useCallback(()=>{M("all"),T(new Set)},[]),{threads:p,isLoading:P,isError:k,error:L,refetch:A,fetchNextPage:v,hasNextPage:O,isFetchingNextPage:N}=V(),{freeText:C,tokens:j}=re(s.trim().toLowerCase(),x),m=n.useMemo(()=>{const r=Array.from(R).map(g=>Le[g]).filter(g=>g!=null);return ke(p).map(de).filter(g=>(h==="all"||g.category===h)&&r.every(f=>f(g))&&(!C||ie(g,C))&&le(g,j))},[p,h,R,C,j]),l=n.useCallback((r,g)=>{const f=m.find(U=>U.id===r)?.threadId;f&&t?.({threadId:f,messageId:r},g)},[m,t]),y=n.useCallback(r=>{const g=r.threadId??m.find(f=>f.id===r.id)?.threadId;g&&t?.({threadId:g,messageId:r.id})},[m,t]),w=n.useMemo(()=>ce(),[]),G=n.useMemo(()=>m.map(r=>ue(r,i)),[m,i]),W=n.useMemo(()=>m.filter(r=>!r.isRead).length,[m]),E=P?"loading":k?"error":m.length===0?"empty":"ready",$=n.useCallback(()=>{const r=ee(te());window.open(r,"_blank","noopener,noreferrer")},[]),B=ge(),J=a.jsx("div",{className:"flex h-full min-h-0 flex-col",children:a.jsxs("div",{className:"flex-1 overflow-y-auto",children:[a.jsx("div",{className:"divide-y divide-line",children:m.map(r=>a.jsx(he,{thread:r,active:r.id===e,onClick:()=>l(r.id)},r.id))}),O?a.jsx("button",{type:"button",className:"w-full py-3 text-sm text-muted hover:text-fg disabled:opacity-50",onClick:()=>v(),disabled:N,children:N?"Loading…":"Load more"}):null]})});return a.jsx(je,{title:"Starred",unreadCount:W,preset:w,selectedCategory:h,activeFilters:R,onSelectCategory:M,onToggleFilter:S,onClearFilters:b,searchResults:G,searchLoading:P,onSelectSearchResult:y,searchResultsInBody:!0,children:a.jsxs(me,{selectedMessageId:e,onOpen:l,onDeleteMessages:c,onSelectionVerb:d.start,wizardOpen:d.isOpen,commandsRef:o,onTriageContextChange:u,children:[a.jsx(we,{listTitle:"Starred",sections:[{id:"flagged",threads:m}],flatList:!0,hideHeader:!0,listState:B.searchResults?"ready":E,searchQuery:C?s:void 0,errorMessage:k?Fe(L):void 0,onRetry:()=>A(),onReportError:$,selectedThreadId:e,onSelectThread:l,isDesktop:I,selectionBar:a.jsx(fe,{title:"Starred"}),listBody:B.searchResults??(E==="ready"?J:void 0)}),a.jsx(Oe,{rows:m,verb:d.verb})]})})}const _=n.createContext(null);function q(){const e=n.useContext(_);if(!e)throw new Error("FlaggedPane.* must be used inside <FlaggedPane>");return e}function qe({thread:e,children:t}){const o=se(),{searchInput:u}=F(),c=e?.threadId,s=e?.messageId,{threads:i}=V(),x=n.useMemo(()=>{if(c)return i.find(l=>l.messageId===s)??i.find(l=>l.threadId===c)},[i,c,s]),I=Ie(c,s),d=x??I,h=s??d?.messageId,M=n.useMemo(()=>{if(c)return{threadId:c,mailboxId:d?.mailboxId??"",subject:d?.subject,messageId:h,authenticity:d?.authenticity}},[c,d,h]),R=n.useCallback((l,y)=>{o({to:"/mail/flagged/$threadId/$messageId",params:l,replace:y?.replace,search:w=>({...w,q:u||void 0}),hash:H})},[o,u]),T=n.useCallback(()=>{o({to:"/mail/flagged",search:l=>l,hash:H})},[o]),S=n.useCallback(l=>{h&&l.includes(h)&&T()},[h,T]),b=D({thread:d,onAfterOptimisticRemove:S}),p=Te(),{deleteMessages:P}=be({mailboxId:d?.mailboxId??"",messages:i,onAfterOptimisticRemove:S}),{toggleReadFor:k}=ve({mailboxId:d?.mailboxId??"",messages:i}),L=p.focusedMessageId,v=n.useMemo(()=>i.find(l=>l.messageId===L),[i,L])??d,O=D({thread:v}),{nextMessageId:N,previousMessageId:C}=Ce({context:p,orderedIds:p.orderedIds,selectedMessageId:h,onClose:T,handlers:{reply:()=>b.requestCompose("reply"),replyAll:()=>b.requestCompose("reply_all"),forward:()=>b.requestCompose("forward"),delete:()=>{p.listCommandsRef.current?.requestVerb("delete")||O.deleteThread()},toggleStar:O.toggleStar,toggleRead:()=>{p.listCommandsRef.current?.requestVerb("markRead")||v&&k([v.messageId],!v.isRead)},goBrief:()=>o({to:"/mail/brief"}),goSettings:()=>o({to:"/settings"})}}),j=n.useCallback(l=>{if(!l)return;const y=i.find(w=>w.messageId===l);return y?{threadId:y.threadId,messageId:l}:void 0},[i]),m={selectedMessageId:h,selectedThread:d,conversation:M,onOpenThread:R,onCloseThread:T,nextThread:j(N),previousThread:j(C),actions:b,triage:p,onDeleteMessages:P,handleDeselectIfRemoved:S};return a.jsx(_.Provider,{value:m,children:t})}function K(){const{selectedMessageId:e,onOpenThread:t,triage:o,onDeleteMessages:u}=q();return a.jsx(Ne,{selectedMessageId:e,onOpenThread:t,commandsRef:o.listCommandsRef,onTriageContextChange:o.onTriageContextChange,onDeleteMessages:u})}function Ae(){const{conversation:e,actions:t}=q(),{intelligenceOpen:o,onToggleIntelligence:u}=F(),c=ae()?.showIntelligencePane??!1,s=!!e,i=c&&s;return a.jsxs("section",{className:"flex h-full w-full min-w-0 flex-col bg-canvas",children:[a.jsx(Re,{hasThread:s,intelligenceOpen:i&&o,canToggleIntelligence:i,onToggleIntelligence:u,onReply:s?()=>t.requestCompose("reply"):void 0,onReplyAll:s?()=>t.requestCompose("reply_all"):void 0,onForward:s?()=>t.requestCompose("forward"):void 0,onDelete:s?t.deleteThread:void 0,onToggleStar:s?t.toggleStar:void 0,isStarred:t.isStarred,moveContext:s&&t.accountId&&t.mailboxId?{accountId:t.accountId,currentMailboxId:t.mailboxId,onMove:t.moveThread}:void 0}),a.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:e?a.jsx(z,{threadId:e.threadId,mailboxId:e.mailboxId,subject:e.subject,selectedMessageId:e.messageId,authenticity:e.authenticity,composeRequest:t.composeRequest,onComposeClose:t.clearComposeRequest}):a.jsx(ne,{})})]})}function Ee(){const{selectedThread:e,handleDeselectIfRemoved:t}=q(),{onToggleIntelligence:o}=F();return a.jsx(Q,{onClose:o,thread:e,mailboxId:e?.mailboxId,accountId:e?.accountId,onAfterOptimisticRemove:t})}function Be(){const{selectedThread:e,conversation:t,onCloseThread:o,onOpenThread:u,nextThread:c,previousThread:s,handleDeselectIfRemoved:i}=q(),{intelligenceOpen:x,onToggleIntelligence:I}=F();return t?a.jsxs(a.Fragment,{children:[a.jsx(z,{threadId:t.threadId,mailboxId:t.mailboxId,subject:t.subject,selectedMessageId:t.messageId,authenticity:t.authenticity,onBack:o,onOpenIntelligence:I,onSwipeNext:c?()=>u(c):void 0,onSwipePrevious:s?()=>u(s):void 0,mobileIntelligenceOpen:x}),a.jsx(ye,{isOpen:x,onClose:I,ariaLabel:"Message details",side:"right",children:a.jsx(Q,{onClose:I,thread:e,mailboxId:e?.mailboxId,accountId:e?.accountId,hideCloseButton:!0,onAfterOptimisticRemove:i})})]}):a.jsx("div",{className:"h-full",children:a.jsx(K,{})})}const Ge=Object.assign(qe,{List:K,Reading:Ae,Intelligence:Ee,Phone:Be});export{Ge as F};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a3 as m,j as o,a0 as p}from"./index-DKG1l4OE.js";import{a}from"./search-view-B5prVpGW.js";import{M as r}from"./MailboxPane-BwHG9r2e.js";import{u as e}from"./useSearchMirror-CiaVi7jg.js";import"./nav-link-BTQmJNls.js";import{e as s}from"./search-token-index-D13ogntK.js";import"./useSearchTokenContext-BNRIlJev.js";import"./kbd-CnUDSPH5.js";import"./enums-CCxx0t2v.js";import"./useRefreshControl-DN40VgNE.js";import"./circle-check-big-BmnT3rLr.js";import"./MailListHeader-BFBjOnAW.js";import"./account-form-helpers-CwJTqJha.js";import"./avatar-D3R75Qgk.js";import"./useSignature-BaYkV0lH.js";import"./useDebouncedValue-BazHTAhQ.js";import"./useFilters-DBElfc_V.js";import"./use-match-media-C1DFe6n_.js";import"./ErrorState-DlHdbl1h.js";import"./format-De9HZKjg.js";import"./download-aqyrBjOU.js";import"./shield-check-BBp9gzDX.js";import"./move-options-DXhjey10.js";import"./confirm-dialog-C1Q_9oNl.js";import"./clock-BNqM2h_T.js";import"./menu-DdqPoHXZ.js";import"./MailViewChrome-XjLFqRLL.js";import"./NavMenuButton-D_W6DXrb.js";import"./useLabels-CZdQ7rFS.js";import"./useSemanticSearch-BHpjDfP4.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-BKnsFMEf.js";import"./circle-help-BJLBqOAA.js";import"./circle-check-C1n1yijO.js";function J(){const{mailboxId:t}=m.useParams(),i=s();return e({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{J as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-DKG1l4OE.js";import{M as r}from"./MailboxPane-BwHG9r2e.js";import"./useSearchTokenContext-BNRIlJev.js";import"./kbd-CnUDSPH5.js";import"./enums-CCxx0t2v.js";import"./nav-link-BTQmJNls.js";import"./useRefreshControl-DN40VgNE.js";import"./circle-check-big-BmnT3rLr.js";import"./search-token-index-D13ogntK.js";import"./use-match-media-C1DFe6n_.js";import"./MailListHeader-BFBjOnAW.js";import"./account-form-helpers-CwJTqJha.js";import"./avatar-D3R75Qgk.js";import"./useSignature-BaYkV0lH.js";import"./useDebouncedValue-BazHTAhQ.js";import"./useFilters-DBElfc_V.js";import"./ErrorState-DlHdbl1h.js";import"./format-De9HZKjg.js";import"./download-aqyrBjOU.js";import"./shield-check-BBp9gzDX.js";import"./move-options-DXhjey10.js";import"./confirm-dialog-C1Q_9oNl.js";import"./clock-BNqM2h_T.js";import"./menu-DdqPoHXZ.js";import"./MailViewChrome-XjLFqRLL.js";import"./NavMenuButton-D_W6DXrb.js";import"./useLabels-CZdQ7rFS.js";import"./useSemanticSearch-BHpjDfP4.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-BKnsFMEf.js";import"./circle-help-BJLBqOAA.js";import"./circle-check-C1n1yijO.js";function F(){return o.jsx(r.Reading,{})}export{F as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./index-DKG1l4OE.js";import{B as o}from"./BriefPane-BfuwvROx.js";import"./useSearchTokenContext-BNRIlJev.js";import"./kbd-CnUDSPH5.js";import"./enums-CCxx0t2v.js";import"./nav-link-BTQmJNls.js";import"./MailListHeader-BFBjOnAW.js";import"./search-token-index-D13ogntK.js";import"./use-match-media-C1DFe6n_.js";import"./account-form-helpers-CwJTqJha.js";import"./avatar-D3R75Qgk.js";import"./useSignature-BaYkV0lH.js";import"./useDebouncedValue-BazHTAhQ.js";import"./useFilters-DBElfc_V.js";import"./ErrorState-DlHdbl1h.js";import"./format-De9HZKjg.js";import"./download-aqyrBjOU.js";import"./shield-check-BBp9gzDX.js";import"./move-options-DXhjey10.js";import"./confirm-dialog-C1Q_9oNl.js";import"./clock-BNqM2h_T.js";import"./menu-DdqPoHXZ.js";import"./useRefreshControl-DN40VgNE.js";import"./circle-check-big-BmnT3rLr.js";import"./useLabels-CZdQ7rFS.js";import"./useSemanticSearch-BHpjDfP4.js";import"./search-query-Cr_ZXBCp.js";function y(){return r.jsx(o.Reading,{})}export{y as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-DKG1l4OE.js";import{F as r}from"./FlaggedPane-DXXvbNMD.js";import"./useSearchTokenContext-BNRIlJev.js";import"./kbd-CnUDSPH5.js";import"./enums-CCxx0t2v.js";import"./nav-link-BTQmJNls.js";import"./MailListHeader-BFBjOnAW.js";import"./search-token-index-D13ogntK.js";import"./use-match-media-C1DFe6n_.js";import"./account-form-helpers-CwJTqJha.js";import"./avatar-D3R75Qgk.js";import"./useSignature-BaYkV0lH.js";import"./useDebouncedValue-BazHTAhQ.js";import"./useFilters-DBElfc_V.js";import"./ErrorState-DlHdbl1h.js";import"./format-De9HZKjg.js";import"./download-aqyrBjOU.js";import"./shield-check-BBp9gzDX.js";import"./move-options-DXhjey10.js";import"./confirm-dialog-C1Q_9oNl.js";import"./clock-BNqM2h_T.js";import"./menu-DdqPoHXZ.js";import"./MailViewChrome-XjLFqRLL.js";function k(){return o.jsx(r.Reading,{})}export{k as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-DKG1l4OE.js";import{O as t}from"./OutboxPane-D2d4W5AT.js";import"./useSearchTokenContext-BNRIlJev.js";import"./kbd-CnUDSPH5.js";import"./enums-CCxx0t2v.js";import"./nav-link-BTQmJNls.js";import"./circle-check-big-BmnT3rLr.js";import"./clock-BNqM2h_T.js";import"./row-actions-DjIKrPVk.js";import"./rotate-ccw-CYszpTkF.js";import"./NavMenuButton-D_W6DXrb.js";import"./menu-DdqPoHXZ.js";import"./format-De9HZKjg.js";import"./outbox-status-CPfNHfUQ.js";import"./search-query-Cr_ZXBCp.js";function P(){return o.jsx(t.Reading,{})}export{P as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a0 as o}from"./index-DKG1l4OE.js";const n=o;export{n as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a0 as o}from"./index-DKG1l4OE.js";const n=o;export{n as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a0 as o}from"./index-DKG1l4OE.js";const n=o;export{n as component};
|
package/assets/brief-C5lHNp6b.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r,a0 as i}from"./index-DKG1l4OE.js";import{a as m}from"./search-view-B5prVpGW.js";import{B as o}from"./BriefPane-BfuwvROx.js";import{u as p}from"./useSearchMirror-CiaVi7jg.js";import"./nav-link-BTQmJNls.js";import{e}from"./search-token-index-D13ogntK.js";import"./useSearchTokenContext-BNRIlJev.js";import"./kbd-CnUDSPH5.js";import"./enums-CCxx0t2v.js";import"./MailListHeader-BFBjOnAW.js";import"./account-form-helpers-CwJTqJha.js";import"./avatar-D3R75Qgk.js";import"./useSignature-BaYkV0lH.js";import"./useDebouncedValue-BazHTAhQ.js";import"./useFilters-DBElfc_V.js";import"./use-match-media-C1DFe6n_.js";import"./ErrorState-DlHdbl1h.js";import"./format-De9HZKjg.js";import"./download-aqyrBjOU.js";import"./shield-check-BBp9gzDX.js";import"./move-options-DXhjey10.js";import"./confirm-dialog-C1Q_9oNl.js";import"./clock-BNqM2h_T.js";import"./menu-DdqPoHXZ.js";import"./useRefreshControl-DN40VgNE.js";import"./circle-check-big-BmnT3rLr.js";import"./useLabels-CZdQ7rFS.js";import"./useSemanticSearch-BHpjDfP4.js";import"./search-query-Cr_ZXBCp.js";function A(){const t=e();return p({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{A as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o,a0 as i}from"./index-DKG1l4OE.js";import{a as m}from"./search-view-B5prVpGW.js";import{F as r}from"./FlaggedPane-DXXvbNMD.js";import{u as p}from"./useSearchMirror-CiaVi7jg.js";import"./nav-link-BTQmJNls.js";import{e}from"./search-token-index-D13ogntK.js";import"./useSearchTokenContext-BNRIlJev.js";import"./kbd-CnUDSPH5.js";import"./enums-CCxx0t2v.js";import"./MailListHeader-BFBjOnAW.js";import"./account-form-helpers-CwJTqJha.js";import"./avatar-D3R75Qgk.js";import"./useSignature-BaYkV0lH.js";import"./useDebouncedValue-BazHTAhQ.js";import"./useFilters-DBElfc_V.js";import"./use-match-media-C1DFe6n_.js";import"./ErrorState-DlHdbl1h.js";import"./format-De9HZKjg.js";import"./download-aqyrBjOU.js";import"./shield-check-BBp9gzDX.js";import"./move-options-DXhjey10.js";import"./confirm-dialog-C1Q_9oNl.js";import"./clock-BNqM2h_T.js";import"./menu-DdqPoHXZ.js";import"./MailViewChrome-XjLFqRLL.js";function k(){const t=e();return p({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{k as component};
|
package/assets/index-Bmrb3uML.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-DKG1l4OE.js";import{M as r}from"./MailboxPane-BwHG9r2e.js";import"./useSearchTokenContext-BNRIlJev.js";import"./kbd-CnUDSPH5.js";import"./enums-CCxx0t2v.js";import"./nav-link-BTQmJNls.js";import"./useRefreshControl-DN40VgNE.js";import"./circle-check-big-BmnT3rLr.js";import"./search-token-index-D13ogntK.js";import"./use-match-media-C1DFe6n_.js";import"./MailListHeader-BFBjOnAW.js";import"./account-form-helpers-CwJTqJha.js";import"./avatar-D3R75Qgk.js";import"./useSignature-BaYkV0lH.js";import"./useDebouncedValue-BazHTAhQ.js";import"./useFilters-DBElfc_V.js";import"./ErrorState-DlHdbl1h.js";import"./format-De9HZKjg.js";import"./download-aqyrBjOU.js";import"./shield-check-BBp9gzDX.js";import"./move-options-DXhjey10.js";import"./confirm-dialog-C1Q_9oNl.js";import"./clock-BNqM2h_T.js";import"./menu-DdqPoHXZ.js";import"./MailViewChrome-XjLFqRLL.js";import"./NavMenuButton-D_W6DXrb.js";import"./useLabels-CZdQ7rFS.js";import"./useSemanticSearch-BHpjDfP4.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-BKnsFMEf.js";import"./circle-help-BJLBqOAA.js";import"./circle-check-C1n1yijO.js";function D(){return o.jsx(r.Reading,{})}export{D as component};
|
package/assets/index-C8bsgH_w.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-DKG1l4OE.js";import{F as r}from"./FlaggedPane-DXXvbNMD.js";import"./useSearchTokenContext-BNRIlJev.js";import"./kbd-CnUDSPH5.js";import"./enums-CCxx0t2v.js";import"./nav-link-BTQmJNls.js";import"./MailListHeader-BFBjOnAW.js";import"./search-token-index-D13ogntK.js";import"./use-match-media-C1DFe6n_.js";import"./account-form-helpers-CwJTqJha.js";import"./avatar-D3R75Qgk.js";import"./useSignature-BaYkV0lH.js";import"./useDebouncedValue-BazHTAhQ.js";import"./useFilters-DBElfc_V.js";import"./ErrorState-DlHdbl1h.js";import"./format-De9HZKjg.js";import"./download-aqyrBjOU.js";import"./shield-check-BBp9gzDX.js";import"./move-options-DXhjey10.js";import"./confirm-dialog-C1Q_9oNl.js";import"./clock-BNqM2h_T.js";import"./menu-DdqPoHXZ.js";import"./MailViewChrome-XjLFqRLL.js";function q(){return o.jsx(r.Reading,{})}export{q as component};
|
package/assets/index-CcuWjbLO.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./index-DKG1l4OE.js";import{B as o}from"./BriefPane-BfuwvROx.js";import"./useSearchTokenContext-BNRIlJev.js";import"./kbd-CnUDSPH5.js";import"./enums-CCxx0t2v.js";import"./nav-link-BTQmJNls.js";import"./MailListHeader-BFBjOnAW.js";import"./search-token-index-D13ogntK.js";import"./use-match-media-C1DFe6n_.js";import"./account-form-helpers-CwJTqJha.js";import"./avatar-D3R75Qgk.js";import"./useSignature-BaYkV0lH.js";import"./useDebouncedValue-BazHTAhQ.js";import"./useFilters-DBElfc_V.js";import"./ErrorState-DlHdbl1h.js";import"./format-De9HZKjg.js";import"./download-aqyrBjOU.js";import"./shield-check-BBp9gzDX.js";import"./move-options-DXhjey10.js";import"./confirm-dialog-C1Q_9oNl.js";import"./clock-BNqM2h_T.js";import"./menu-DdqPoHXZ.js";import"./useRefreshControl-DN40VgNE.js";import"./circle-check-big-BmnT3rLr.js";import"./useLabels-CZdQ7rFS.js";import"./useSemanticSearch-BHpjDfP4.js";import"./search-query-Cr_ZXBCp.js";function z(){return r.jsx(o.Reading,{})}export{z as component};
|
package/assets/index-Cf7AKvjm.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-DKG1l4OE.js";import{O as t}from"./OutboxPane-D2d4W5AT.js";import"./useSearchTokenContext-BNRIlJev.js";import"./kbd-CnUDSPH5.js";import"./enums-CCxx0t2v.js";import"./nav-link-BTQmJNls.js";import"./circle-check-big-BmnT3rLr.js";import"./clock-BNqM2h_T.js";import"./row-actions-DjIKrPVk.js";import"./rotate-ccw-CYszpTkF.js";import"./NavMenuButton-D_W6DXrb.js";import"./menu-DdqPoHXZ.js";import"./format-De9HZKjg.js";import"./outbox-status-CPfNHfUQ.js";import"./search-query-Cr_ZXBCp.js";function c(){return o.jsx(t.Reading,{})}export{c as component};
|
package/assets/index-DRTBuwn5.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./index-DKG1l4OE.js";import{B as o}from"./BriefPane-BfuwvROx.js";import"./useSearchTokenContext-BNRIlJev.js";import"./kbd-CnUDSPH5.js";import"./enums-CCxx0t2v.js";import"./nav-link-BTQmJNls.js";import"./MailListHeader-BFBjOnAW.js";import"./search-token-index-D13ogntK.js";import"./use-match-media-C1DFe6n_.js";import"./account-form-helpers-CwJTqJha.js";import"./avatar-D3R75Qgk.js";import"./useSignature-BaYkV0lH.js";import"./useDebouncedValue-BazHTAhQ.js";import"./useFilters-DBElfc_V.js";import"./ErrorState-DlHdbl1h.js";import"./format-De9HZKjg.js";import"./download-aqyrBjOU.js";import"./shield-check-BBp9gzDX.js";import"./move-options-DXhjey10.js";import"./confirm-dialog-C1Q_9oNl.js";import"./clock-BNqM2h_T.js";import"./menu-DdqPoHXZ.js";import"./useRefreshControl-DN40VgNE.js";import"./circle-check-big-BmnT3rLr.js";import"./useLabels-CZdQ7rFS.js";import"./useSemanticSearch-BHpjDfP4.js";import"./search-query-Cr_ZXBCp.js";function y(){return r.jsx(o.Reading,{})}export{y as component};
|
package/assets/index-DhwJT0Xk.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-DKG1l4OE.js";import{M as i}from"./MailboxPane-BwHG9r2e.js";import"./useSearchTokenContext-BNRIlJev.js";import"./kbd-CnUDSPH5.js";import"./enums-CCxx0t2v.js";import"./nav-link-BTQmJNls.js";import"./useRefreshControl-DN40VgNE.js";import"./circle-check-big-BmnT3rLr.js";import"./search-token-index-D13ogntK.js";import"./use-match-media-C1DFe6n_.js";import"./MailListHeader-BFBjOnAW.js";import"./account-form-helpers-CwJTqJha.js";import"./avatar-D3R75Qgk.js";import"./useSignature-BaYkV0lH.js";import"./useDebouncedValue-BazHTAhQ.js";import"./useFilters-DBElfc_V.js";import"./ErrorState-DlHdbl1h.js";import"./format-De9HZKjg.js";import"./download-aqyrBjOU.js";import"./shield-check-BBp9gzDX.js";import"./move-options-DXhjey10.js";import"./confirm-dialog-C1Q_9oNl.js";import"./clock-BNqM2h_T.js";import"./menu-DdqPoHXZ.js";import"./MailViewChrome-XjLFqRLL.js";import"./NavMenuButton-D_W6DXrb.js";import"./useLabels-CZdQ7rFS.js";import"./useSemanticSearch-BHpjDfP4.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-BKnsFMEf.js";import"./circle-help-BJLBqOAA.js";import"./circle-check-C1n1yijO.js";function F(){return o.jsx(i.Reading,{})}export{F as component};
|
package/assets/index-DmZCgc4u.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-DKG1l4OE.js";import{F as r}from"./FlaggedPane-DXXvbNMD.js";import"./useSearchTokenContext-BNRIlJev.js";import"./kbd-CnUDSPH5.js";import"./enums-CCxx0t2v.js";import"./nav-link-BTQmJNls.js";import"./MailListHeader-BFBjOnAW.js";import"./search-token-index-D13ogntK.js";import"./use-match-media-C1DFe6n_.js";import"./account-form-helpers-CwJTqJha.js";import"./avatar-D3R75Qgk.js";import"./useSignature-BaYkV0lH.js";import"./useDebouncedValue-BazHTAhQ.js";import"./useFilters-DBElfc_V.js";import"./ErrorState-DlHdbl1h.js";import"./format-De9HZKjg.js";import"./download-aqyrBjOU.js";import"./shield-check-BBp9gzDX.js";import"./move-options-DXhjey10.js";import"./confirm-dialog-C1Q_9oNl.js";import"./clock-BNqM2h_T.js";import"./menu-DdqPoHXZ.js";import"./MailViewChrome-XjLFqRLL.js";function k(){return o.jsx(r.Reading,{})}export{k as component};
|
package/assets/index-WhbhbXhS.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t,a7 as o}from"./index-DKG1l4OE.js";const n=()=>t.jsx(o,{to:"/settings/accounts"});export{n as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{D as s,j as o,a0 as i}from"./index-DKG1l4OE.js";import{a as m}from"./search-view-B5prVpGW.js";import{O as t}from"./OutboxPane-D2d4W5AT.js";import{u as a}from"./useSearchMirror-CiaVi7jg.js";import"./nav-link-BTQmJNls.js";import"./useSearchTokenContext-BNRIlJev.js";import"./kbd-CnUDSPH5.js";import"./enums-CCxx0t2v.js";import"./circle-check-big-BmnT3rLr.js";import"./clock-BNqM2h_T.js";import"./row-actions-DjIKrPVk.js";import"./rotate-ccw-CYszpTkF.js";import"./NavMenuButton-D_W6DXrb.js";import"./menu-DdqPoHXZ.js";import"./format-De9HZKjg.js";import"./outbox-status-CPfNHfUQ.js";import"./search-query-Cr_ZXBCp.js";function e(){return s({from:"/mail/outbox/draft/$outboxMessageId",shouldThrow:!1})?.outboxMessageId}function L(){const r=e();return a({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{L as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t,a0 as o}from"./index-DKG1l4OE.js";const n=()=>t.jsx(o,{});export{n as component};
|