@remit/web-client-dist 0.0.445 → 0.0.447
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-Cblx3dGb.js → BriefPane-7FI9RUjO.js} +1 -1
- package/assets/{ErrorState-Cp-q2w9w.js → ErrorState-DruCgenE.js} +1 -1
- package/assets/{FlaggedPane-Ch58MU9E.js → FlaggedPane-B5QDpHnT.js} +1 -1
- package/assets/{FullCompose-BdIpZxG9.js → FullCompose-CB9GM05D.js} +1 -1
- package/assets/{MailListHeader-C4iFTdSN.js → MailListHeader-DnN-_YAL.js} +1 -1
- package/assets/{MailShell-B0aQqEP7.js → MailShell-v2nBPD6g.js} +1 -1
- package/assets/{MailViewChrome-DLb2fNYu.js → MailViewChrome-DcbMIuCq.js} +1 -1
- package/assets/{MailboxPane-tM9Qnk8K.js → MailboxPane-CtrgRMW4.js} +1 -1
- package/assets/{NavMenuButton-BEErFBgW.js → NavMenuButton-BqwUrnOM.js} +1 -1
- package/assets/{OnboardingWizard-CLEu4Eq2.js → OnboardingWizard-D2WTELRt.js} +1 -1
- package/assets/{OutboxPane-CH8APoTv.js → OutboxPane-pyn7lNF8.js} +1 -1
- package/assets/_mailboxId-BlsyMoq3.js +1 -0
- package/assets/_messageId--95oNLGl.js +1 -0
- package/assets/_messageId-CFi8dd9r.js +1 -0
- package/assets/_messageId-CpxNrCPU.js +1 -0
- package/assets/_outboxMessageId-B3isaM5i.js +1 -0
- package/assets/_threadId-BHlqO-aG.js +1 -0
- package/assets/_threadId-CR4j490e.js +1 -0
- package/assets/_threadId-De-4Le-k.js +1 -0
- package/assets/{accounts-C1FX-wXA.js → accounts-bmiP-gAx.js} +1 -1
- package/assets/{advanced-C2AEDPuc.js → advanced-WQHu-RPi.js} +1 -1
- package/assets/{appearance-CkC1P9AI.js → appearance-CD-3Subh.js} +1 -1
- package/assets/{attachment-file-DKdoDsJb.js → attachment-file-VHCYtumV.js} +1 -1
- package/assets/{avatar-66IHVolP.js → avatar-Bchrjz1B.js} +1 -1
- package/assets/{bottom-sheet-BuQUdfIO.js → bottom-sheet-DyF41n8R.js} +1 -1
- package/assets/brief-BxWTHnzY.js +1 -0
- package/assets/{brief-CqCGPd9D.js → brief-DPYlO9do.js} +1 -1
- package/assets/{browser-ponyfill-Bv-32OYZ.js → browser-ponyfill-B3OFD_-k.js} +1 -1
- package/assets/{bug-JqbSSZae.js → bug-D_v7Dgp5.js} +1 -1
- package/assets/{circle-check-D7Qb9gYa.js → circle-check-MXpjWmyZ.js} +1 -1
- package/assets/{circle-check-big-3v1UEeDx.js → circle-check-big-C6LiLBKs.js} +1 -1
- package/assets/{circle-help-DmuGFuc3.js → circle-help-CH4ZqXPO.js} +1 -1
- package/assets/{clock-BcUfg-A3.js → clock-DOi2YfAx.js} +1 -1
- package/assets/compose._-_outboxMessageId_-BT_XNQGH.js +1 -0
- package/assets/compose._-_outboxMessageId_-C4ku1PSu.js +1 -0
- package/assets/compose._-_outboxMessageId_-ClvGIwE-.js +1 -0
- package/assets/compose._-_outboxMessageId_-UIxFag4V.js +1 -0
- package/assets/{confirm-dialog-ivQtQll4.js → confirm-dialog-Dvq53cpZ.js} +1 -1
- package/assets/{download-mx2VQnFX.js → download-B9Yw3_f2.js} +1 -1
- package/assets/{filters-HyB2nktC.js → filters-BWIjZFHM.js} +1 -1
- package/assets/{flagged-B2Ah_D4L.js → flagged-CCC4oi_v.js} +1 -1
- package/assets/flagged-ynHoL1G2.js +1 -0
- package/assets/folders-CXryIWf4.js +1 -0
- package/assets/{help-copy-DaC5HYBZ.js → help-copy-BfLXAlhV.js} +1 -1
- package/assets/index--95oNLGl.js +1 -0
- package/assets/index-9pF8Be85.js +1 -0
- package/assets/{index-C_T2dvXA.js → index-B07rm-PO.js} +3 -3
- package/assets/index-BzhxoRJv.js +1 -0
- package/assets/index-CFi8dd9r.js +1 -0
- package/assets/index-CLeq744I.js +1 -0
- package/assets/index-CfGm0Z_O.js +1 -0
- package/assets/{index-C8zyy3XE.js → index-CqlESB6b.js} +4 -4
- package/assets/index-DXVL2xpO.js +1 -0
- package/assets/index-DbN7fvDo.js +1 -0
- package/assets/{kbd-CX9mOiuU.js → kbd-Cubd3NaA.js} +1 -1
- package/assets/{labels-DkmAGZ7K.js → labels-Bxws9Is-.js} +1 -1
- package/assets/{mail-Do62nxWg.js → mail-CIieCmEw.js} +1 -1
- package/assets/{mail-bfhHdZI4.js → mail-HyA9DK9O.js} +1 -1
- package/assets/{menu-B4qp5h8W.js → menu-CNL6HZOA.js} +1 -1
- package/assets/{onboarding-q1FU68bt.js → onboarding-By2hnz8J.js} +1 -1
- package/assets/outbox-vE5eyE1Y.js +1 -0
- package/assets/{pencil-HWlQ-VeT.js → pencil-DAJyr1It.js} +1 -1
- package/assets/{rich-text-CnDN7D4n.js → rich-text-Cm4U1llJ.js} +1 -1
- package/assets/{rich-text-spellcheck-worker-provider-DekTHQo0.js → rich-text-spellcheck-worker-provider-DN_qiSHR.js} +1 -1
- package/assets/{rotate-ccw-o3IPokHS.js → rotate-ccw-Ca_PI_13.js} +1 -1
- package/assets/{row-actions-D2-obDQJ.js → row-actions-Xfol2ngF.js} +1 -1
- package/assets/{search-mirror-Bz6qYFNs.js → search-mirror-D2JmvqWc.js} +1 -1
- package/assets/{search-token-index-Cu3vEtDY.js → search-token-index-BCqnQecD.js} +1 -1
- package/assets/{senders-DPVdGxvA.js → senders-D4DYsuLc.js} +1 -1
- package/assets/settings-DKs7zjNK.js +1 -0
- package/assets/{settings-screen-Ai1ERiVR.js → settings-screen-DKbEZ7yC.js} +1 -1
- package/assets/{shield-check-D5RHQNp7.js → shield-check-DW7BIsyw.js} +1 -1
- package/assets/{suggested-vips-DLXmRg2R.js → suggested-vips-CEZ15dp0.js} +1 -1
- package/assets/{useDebouncedValue-KxXY_DAe.js → useDebouncedValue-BB7hNwKb.js} +1 -1
- package/assets/{useFilters-BG3A-lfv.js → useFilters-Ofrm81w5.js} +1 -1
- package/assets/{useLabels-BAvJi8nW.js → useLabels-BmoZuNKo.js} +1 -1
- package/assets/{useMessageBodyContent-CBSYjeOA.js → useMessageBodyContent-nS3fCTbR.js} +1 -1
- package/assets/{useRefreshControl-CrWcN2XJ.js → useRefreshControl-BK9QqzFA.js} +1 -1
- package/assets/{useSearchTokenContext-C6RcQO8N.js → useSearchTokenContext-BgUPR3KX.js} +1 -1
- package/assets/{useSemanticSearch-De9TD-3t.js → useSemanticSearch-DsiXz47Z.js} +1 -1
- package/assets/{useSignature-B4CKEb6v.js → useSignature-lub_WMyl.js} +1 -1
- package/index.html +1 -1
- package/package.json +1 -1
- package/assets/_mailboxId-DcISVk3F.js +0 -1
- package/assets/_messageId-BZtIYzNu.js +0 -1
- package/assets/_messageId-DFnLvvGO.js +0 -1
- package/assets/_messageId-DzbGwFwZ.js +0 -1
- package/assets/_outboxMessageId-BEfNt7nb.js +0 -1
- package/assets/_threadId-Ci_-K0C6.js +0 -1
- package/assets/_threadId-DvFA5v_L.js +0 -1
- package/assets/_threadId-dk1ldVTF.js +0 -1
- package/assets/brief-C86Uy-43.js +0 -1
- package/assets/compose._-_outboxMessageId_-3VUipX_Q.js +0 -1
- package/assets/compose._-_outboxMessageId_-DAnrZybQ.js +0 -1
- package/assets/compose._-_outboxMessageId_-Du-G4jNM.js +0 -1
- package/assets/compose._-_outboxMessageId_-RHFyqrwf.js +0 -1
- package/assets/flagged-DjIUOfzE.js +0 -1
- package/assets/folders-CM8k-aJT.js +0 -1
- package/assets/index-53xrH7Fb.js +0 -1
- package/assets/index-BBeUuXvu.js +0 -1
- package/assets/index-BZdlt25E.js +0 -1
- package/assets/index-BZtIYzNu.js +0 -1
- package/assets/index-CKNZWQuQ.js +0 -1
- package/assets/index-DdEGI_Za.js +0 -1
- package/assets/index-DzbGwFwZ.js +0 -1
- package/assets/index-vx2VgI_F.js +0 -1
- package/assets/outbox-BdjOpLA8.js +0 -1
- package/assets/settings-BkFq1Zf9.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as z,r as j,j as e,b as f,B as i,X as N,aF as S}from"./index-
|
|
1
|
+
import{c as z,r as j,j as e,b as f,B as i,X as N,aF as S}from"./index-CqlESB6b.js";import{A as w}from"./avatar-Bchrjz1B.js";import{M as B}from"./menu-CNL6HZOA.js";import{C as v}from"./circle-help-CH4ZqXPO.js";const h=z("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);function E({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,E as S,R as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e}from"./index-
|
|
1
|
+
import{c as e}from"./index-CqlESB6b.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,ab as e}from"./index-
|
|
1
|
+
import{j as t,ab as e}from"./index-CqlESB6b.js";const o=()=>t.jsx(e,{to:"/settings/senders",replace:!0});export{o as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o}from"./index-
|
|
1
|
+
import{r as o}from"./index-CqlESB6b.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,aj as b,dC as E,D as C,dD as x,dk as D,dE as F,x as M,dF as N,dG as P,dH as L,dI as z}from"./index-
|
|
1
|
+
import{r as m,aj as b,dC as E,D as C,dD as x,dk as D,dE as F,x as M,dF as N,dG as P,dH as L,dI as z}from"./index-CqlESB6b.js";const B=(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"},K=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?"+":"-",l=Math.abs(o),c=String(Math.floor(l/60)).padStart(2,"0"),f=String(l%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}${c}:${f}`},h="None",G=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}),V=({mode:e,ruleScope:t})=>t==="standing"?"standing":t==="until"?"temporary":e==="selected"?"just-these":"all-like-these",X=({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}:{}}),T=new Set(["Complete","Failed"]),v=e=>e!==void 0&&T.has(e),w=1e3,k=15e3,J=e=>{const t=Math.max(0,e),r=w*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}},Y=e=>{const[t,r]=m.useState(),a=b({...E(),onSuccess:g=>r(g.organizeJobId)}),{mutate:i}=a,n=C({...x({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]),l=n.data,c=a.isPending?void 0:l,f=c?.state??a.data?.state,u=v(c?.state),p={state:f,matchedCount:c?.matchedCount??0,appliedCount:c?.appliedCount??0,failedCount:c?.failedCount??0,errorMessage:c?.errorMessage??""};return{start:s,refreshStatus:d,progress:p,isStarting:a.isPending,isRunning:!!t&&!u,isDone:u,failure:_(a.error,n.error,!!l)}},Z=["From","Subject","HasWords","ListId","FromDomain"],$=e=>{const t=e.trim(),r=t.match(/<([^>]+)>/);return(r?r[1]:t).trim().toLowerCase()},ee=(e,t)=>e==="ListId"?$(t):t.trim(),R=e=>e==="all"?"And":"Or",U=(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:R(e.matchOperator),literalClauses:a}},j=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}`)}),te=(e,t)=>{const r=U(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}},Q=(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},q=350,re=(e,t,r)=>{const a=b(D()),{mutateAsync:i}=a,n=H(t),[s,o]=m.useState(()=>({})),d=m.useRef(t);d.current=t;const l=m.useRef(n),c=j(t);return m.useEffect(()=>{if(!e||!c||n===s.previewedSignature||n===s.errorSignature)return;const f=setTimeout(()=>{const u=n;l.current=u,i({path:{accountId:e},body:y({...d.current})}).then(p=>{l.current===u&&o({count:p.matchedCount,matchedIds:p.messageIds,previewedSignature:u})}).catch(p=>{l.current===u&&o(g=>({...g,error:p instanceof Error?p.message:"Couldn't count matches.",errorSignature:u}))})},q);return()=>clearTimeout(f)},[e,c,n,s.previewedSignature,s.errorSignature,i]),c?{count:Q(s,n),matchedIds:s.previewedSignature===n?s.matchedIds??[]:[]}:{count:{status:"error",reason:F},matchedIds:[]}},A=e=>P({path:{accountId:e}}),se=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}},ae=e=>{const t=M(),r=b({...N(),onSuccess:()=>{e&&t.invalidateQueries({queryKey:A(e)})}}),{mutate:a,mutateAsync:i}=r,n=m.useCallback((o,d,l)=>{e&&a({path:{accountId:e},body:S(o,d,l)})},[e,a]),s=m.useCallback(async(o,d,l)=>e?i({path:{accountId:e},body:S(o,d,l)}).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}},ne=e=>{const t=M(),r=b({...z(),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,Z as S,Y as a,A as b,te as c,K as d,se as e,B as f,ne as g,y as h,ae as i,X as j,G as k,ee as n,V as o,O as p,U as r,re as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as L,c2 as p,x as n,aj as l,c3 as d,r as o,c4 as c,c5 as y,c6 as g}from"./index-
|
|
1
|
+
import{D as L,c2 as p,x as n,aj as l,c3 as d,r as o,c4 as c,c5 as y,c6 as g}from"./index-CqlESB6b.js";const u=e=>c({path:{accountId:e}}),f=e=>{const r=L({...p({path:{accountId:e??""}}),enabled:!!e});return{labels:r.data?.items??[],isPending:r.isPending,isError:r.isError,error:r.error,refetch:r.refetch}},m=e=>{const r=n(),t=l({...d(),onSuccess:()=>{e&&r.invalidateQueries({queryKey:u(e)})}}),{mutateAsync:s}=t;return{createLabel:o.useCallback((a,i="Default")=>e?s({path:{accountId:e},body:{name:a,color:i}}):Promise.reject(new Error("No account")),[e,s]),isPending:t.isPending,isError:t.isError,error:t.error,reset:t.reset}},h=e=>{const r=n(),t=l({...y(),onSuccess:()=>{e&&r.invalidateQueries({queryKey:u(e)})}}),{mutate:s}=t;return{updateLabel:o.useCallback((a,i)=>{e&&s({path:{accountId:e,labelId:a},body:i})},[e,s]),isPending:t.isPending,updatingLabelId:t.isPending?t.variables?.path.labelId:void 0}},C=e=>{const r=n(),t=l({...g(),onSuccess:()=>{e&&r.invalidateQueries({queryKey:u(e)})}}),{mutate:s}=t;return{deleteLabel:o.useCallback(a=>{e&&s({path:{accountId:e,labelId:a}})},[e,s]),isPending:t.isPending,deletingLabelId:t.isPending?t.variables?.path.labelId:void 0}};export{f as a,h as b,C as c,m as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as h,r as c,cn as M,a0 as S,cm as O,c0 as B,a6 as P,t as U,x as D,D as N,cI as $,cJ as F}from"./index-
|
|
1
|
+
import{l as h,r as c,cn as M,a0 as S,cm as O,c0 as B,a6 as P,t as U,x as D,D as N,cI as $,cJ as F}from"./index-CqlESB6b.js";const w="/mail/brief/compose/{-$outboxMessageId}",R="/mail/flagged/compose/{-$outboxMessageId}",E="/mail/outbox/compose/{-$outboxMessageId}",k="/mail/$mailboxId/compose/{-$outboxMessageId}";function T(){const e=h({from:w,shouldThrow:!1}),t=h({from:R,shouldThrow:!1}),r=h({from:E,shouldThrow:!1}),s=h({from:k,shouldThrow:!1});return e??t??r??s}function z(){return T()!==void 0}function J(){return T()?.outboxMessageId}function L(e,t,r){return e==="flagged"?{to:R,params:{outboxMessageId:r}}:e==="outbox"?{to:E,params:{outboxMessageId:r}}:e==="mailbox"&&t?{to:k,params:{mailboxId:t,outboxMessageId:r}}:{to:w,params:{outboxMessageId:r}}}function b(){const e=S(),t=O(),{list:r,mailboxId:s}=B();return c.useCallback((n,o)=>{e({...L(r,s,n),search:a=>a,hash:o?.keepPanels?!0:t,replace:o?.replace??!1})},[e,t,r,s])}function Y(){const e=b();return c.useCallback(()=>e(void 0),[e])}function j(){const e=b();return c.useCallback(t=>e(t),[e])}function V(){const e=b();return c.useCallback(t=>e(t,{replace:!0,keepPanels:!0}),[e])}function Z(){return M()}const v=e=>{const t=e.filter(n=>!n.isMultipart&&n.disposition!=="attachment"&&n.mediaType==="TEXT"&&n.contentUrl.length>0),r=t.find(n=>n.mediaSubtype.toUpperCase()==="HTML");if(r)return{kind:"html",contentUrl:r.contentUrl};const s=t.find(n=>n.mediaSubtype.toUpperCase()==="PLAIN");return s?{kind:"text",contentUrl:s.contentUrl}:null},g={all:["messages"],detail:e=>[...g.all,"detail",e],body:e=>[...g.detail(e),"body"]};class f extends Error{reason;status;retryAfterSeconds;constructor(t,r,s,n){super(r),this.name="BodyFetchError",this.reason=t,this.status=s,this.retryAfterSeconds=n}}const _=e=>{const t=Number.parseInt(e??"",10);return!Number.isFinite(t)||t<=0?1:Math.min(t,30)},I=8,K="x-remit-403-reason",Q=(e,t)=>{const r=t?.trim()??"";return e===401?"auth":e===403?r.length>0?"auth":"body-missing":e===404?"body-missing":"generic"},q=(e,t)=>(t??"").toLowerCase().startsWith("text/html")?/<div\s+id=["']root["']/i.test(e):!1,X=(e,t)=>{const r=(t??"").toLowerCase();return!!(e==="text"&&r.startsWith("text/html"))},G=async(e,t,r=async()=>null)=>{const s={},n=await r();n&&(s.Authorization=`Bearer ${n}`);const o=await F(e,{headers:s});if(o.status===202)throw new f("not-ready","Message body is still syncing",202,_(o.headers.get("Retry-After")));if(!o.ok){const l=o.headers.get(K),y=Q(o.status,l);throw new f(y,`Failed to load message body (${o.status} ${o.statusText})`,o.status)}const a=o.headers.get("content-type");if(X(t,a))throw new f("content-type-mismatch",`Refusing to render message body — expected ${t}, got Content-Type ${a}`);const m=await o.text();if(q(m,a))throw new f("spa-shell-leak","Refusing to render message body — response looks like the SPA shell (CloudFront 403/404 fallback leaked through to /content/*)");return m},H=async(e,t)=>(t.isRetryAfterNotReady&&await e.refetchDescribeMessage(),e.fetchContent(t.contentUrl,t.kind)),ee=({messageId:e,bodyParts:t,enabled:r=!0})=>{const s=t?v(t):null,n=P(),{getToken:o}=U(),a=c.useRef(null),m=D(),l=c.useRef(!1),y=c.useRef(null),C=e&&s?`${e}:${s.contentUrl}`:null;y.current!==C&&(y.current=C,l.current=!1);const i=N({queryKey:e?[...g.body(e),s?.contentUrl??null]:["messages","body","noop"],queryFn:()=>{if(!s)throw new Error("No renderable body part");if(!e)throw new Error("No messageId");const d=l.current;return l.current=!1,H({fetchContent:(u,A)=>G(u,A,o),refetchDescribeMessage:()=>m.refetchQueries({queryKey:$({path:{messageId:e}})})},{contentUrl:s.contentUrl,kind:s.kind,isRetryAfterNotReady:d})},enabled:r&&!!e&&!!s,staleTime:300*1e3,gcTime:1800*1e3,retry:(d,u)=>u instanceof f&&u.reason==="not-ready"?d<I:d<1,retryDelay:(d,u)=>u instanceof f&&u.reason==="not-ready"?(l.current=!0,(u.retryAfterSeconds??1)*1e3):1e3,meta:{softError:!0}}),p=i.isLoading&&!!s;c.useEffect(()=>{p&&(a.current=performance.now())},[p]),c.useEffect(()=>{i.isSuccess&&a.current!==null&&(n.recordTiming("message.body.load",Math.round(performance.now()-a.current)),a.current=null)},[i.isSuccess,n]);const x=i.data&&s?{kind:s.kind,body:i.data}:void 0;return{picked:s,data:x,isLoading:p,isError:i.isError,error:i.error,refetch:i.refetch}};export{f as B,z as a,J as b,j as c,ee as d,V as e,Z as f,Q as g,Y as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as E,e as q,b as j,B as D,r as i,aJ as R,x as C,v as K,a6 as A,Y as Q,W as $,Z as z,_ as B}from"./index-
|
|
1
|
+
import{j as E,e as q,b as j,B as D,r as i,aJ as R,x as C,v as K,a6 as A,Y as Q,W as $,Z as z,_ as B}from"./index-CqlESB6b.js";import{C as G}from"./circle-check-big-C6LiLBKs.js";import{R as H,d as P}from"./search-token-index-BCqnQecD.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 W=new Set(["discovering_mailboxes","syncing_inbox","syncing_others"]);function _(e){return!!e&&W.has(e)}const N=3e3,U=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),U);return()=>clearTimeout(r)},[s,t]);const o=P({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(_(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},J=(e,t)=>{for(const[s,a]of t)if(a>(e.get(s)??0))return!0;return!1},F=i.createContext(null),X=()=>{const e=i.useContext(F);if(!e)throw new Error("useMailFreshness must be used inside <MailFreshnessProvider>");return e};function ce({accountIds:e,children:t}){const s=C(),{resultFolderIndex:a}=K(),n=i.useRef(new Map),u=i.useRef(new Set),[c,o]=i.useState(new Set),f=P({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;J(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(F.Provider,{value:S,children:t})}const Y=2e3,Z=45e3,V=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},"user")&&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(_(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 V(Y)}},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=C(),a=A(),{acknowledge:n}=X(),[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()+Z,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:Q({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,_ as i,X as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cs as V,r as g,j as a,b,I as Q,x as Y,ah as q,aj as X,ak as Z,cI as J,bx as ee,t as te,e as se,X as re,bN as R,v as ne,c0 as ae}from"./index-
|
|
1
|
+
import{cs as V,r as g,j as a,b,I as Q,x as Y,ah as q,aj as X,ak as Z,cI as J,bx as ee,t as te,e as se,X as re,bN as R,v as ne,c0 as ae}from"./index-CqlESB6b.js";import{K as k}from"./kbd-Cubd3NaA.js";import{B as oe,d as ie}from"./useMessageBodyContent-nS3fCTbR.js";import{i as ce}from"./search-scope-DTcpOp3S.js";const le=(e,t)=>{const r=e==="newsletter"||e==="marketing"||t;return{framed:r,isPlain:!r}},de=()=>`
|
|
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{x as T,ah as I,aj as C,bK as k,bY as A,r as v,j as p,bZ as h,b_ as E,b$ as j,v as D,c0 as w,D as z,c1 as Q,bN as R}from"./index-
|
|
1
|
+
import{x as T,ah as I,aj as C,bK as k,bY as A,r as v,j as p,bZ as h,b_ as E,b$ as j,v as D,c0 as w,D as z,c1 as Q,bN as R}from"./index-CqlESB6b.js";import{P as _}from"./attachment-file-VHCYtumV.js";import{E as N,F as O,ao as P,ap as q}from"./MailListHeader-DnN-_YAL.js";import{a as B}from"./useLabels-BmoZuNKo.js";import{n as F}from"./search-query-Cr_ZXBCp.js";import{s as U}from"./search-scope-DTcpOp3S.js";import{u as G,p as H}from"./useSearchTokenContext-BgUPR3KX.js";const ae=e=>{const t=new Set;for(const a of e)a&&t.add(a);return t.size>1?{accountId:void 0,restriction:"spansAccounts",moveDisabledHint:"Move only works within one account — clear selection or pick messages from a single account"}:{accountId:t.size===1?[...t][0]:void 0,restriction:void 0,moveDisabledHint:void 0}},K=e=>{const{mailboxId:t,messages:a}=e,c=T(),{pushError:l}=I(),{mutateAsync:i,isPending:o}=C({...A(),onError:(n,u)=>{l({title:u.body.action==="Remove"?"Couldn't remove label":"Couldn't apply label",detail:k(n),error:n})},onSettled:(n,u,d)=>{N(c,O(P(d.body.messageIds??[],a??[],t)))}});return{applyLabel:v.useCallback((n,u,d)=>{n.length!==0&&q(n,m=>i({body:{messageIds:m,labelId:u,action:d}}))},[i]),isPending:o}};function ne({accountId:e,mailboxId:t,messageIds:a}){const{labels:c}=B(e),{applyLabel:l}=K({mailboxId:t}),i=v.useMemo(()=>c.map(o=>({key:o.labelId,label:o.name,icon:p.jsx("span",{className:`size-2.5 rounded-full ${E(o.color)?h[o.color]:h.Default}`}),onSelect:()=>l(a,o.labelId,"Apply")})),[c,a,l]);return i.length===0?null:p.jsx(_,{triggerLabel:"Apply label to selected messages",triggerIcon:p.jsx(j,{className:"size-4 text-fg-subtle"}),triggerText:"Apply label",items:i,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,V=new Set(Object.values(R)),Y=e=>e!==void 0&&V.has(e)?e:void 0,Z=e=>{if(e.some(t=>t.type==="isUnread"))return!1;if(e.some(t=>t.type==="isRead"))return!0};function re({mailboxId:e,filterCategory:t}={}){const{searchQuery:a}=D(),c=G(),l=w(),i=F(a),{freeText:o,tokens:r}=H(i,c),n=o.length>0,u=r.find(s=>s.type==="category"),d=Y(t)??u?.category,m=r.some(s=>s.type==="hasAttachment")?!0:void 0,b=r.some(s=>s.type==="isStarred")?!0:void 0,y=Z(r),f=r.find(s=>s.type==="after"),g=r.find(s=>s.type==="before"),x=r.find(s=>s.type==="in"),S=U({browsed:l,callerMailboxId:e,inTokenMailboxId:x?.mailboxId}),{data:L,isLoading:M}=z({...Q({query:{query:o,mailboxId:S,limit:$,...d!==void 0?{category:d}:{},...m!==void 0?{hasAttachment:m}:{},...b!==void 0?{hasStars:b}:{},...y!==void 0?{isRead:y}:{},...f?{sentDateFrom:f.epochSeconds}:{},...g?{sentDateTo:g.epochSeconds}:{}}}),enabled:n,staleTime:6e4});return{hits:L?.items??[],isLoading:n&&M}}export{ne as L,ae as r,re as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as g,ah as p,D as f,a1 as m,r,aj as y,ak as T,a5 as x,al as E}from"./index-
|
|
1
|
+
import{x as g,ah as p,D as f,a1 as m,r,aj as y,ak as T,a5 as x,al as E}from"./index-CqlESB6b.js";const i={html:"",plainText:""},C=e=>{const u=g(),{pushError:o}=p(),{data:n}=f({...m(),staleTime:1/0}),l=r.useMemo(()=>{if(!e||!n)return i;const t=n.accounts.find(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))}}),c=r.useCallback((t,s)=>{e&&a.mutate({path:{accountId:e},body:{signatureHtml:t,signaturePlainText:s}})},[e,a]);return{signature:l,setSignature:c,isSaving:a.isPending}};export{C 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-CqlESB6b.js"></script>
|
|
42
42
|
<link rel="stylesheet" crossorigin href="/assets/index-OWhz0EKb.css">
|
|
43
43
|
</head>
|
|
44
44
|
<body>
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a7 as m,j as o,a4 as p}from"./index-C8zyy3XE.js";import{a}from"./MailShell-B0aQqEP7.js";import{M as r}from"./MailboxPane-tM9Qnk8K.js";import{g as e}from"./search-token-index-Cu3vEtDY.js";import{u as s}from"./search-mirror-Bz6qYFNs.js";import"./FullCompose-BdIpZxG9.js";import"./ErrorState-Cp-q2w9w.js";import"./index-C_T2dvXA.js";import"./useMessageBodyContent-CBSYjeOA.js";import"./useSignature-B4CKEb6v.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-KxXY_DAe.js";import"./confirm-dialog-ivQtQll4.js";import"./useSearchTokenContext-C6RcQO8N.js";import"./kbd-CX9mOiuU.js";import"./search-scope-DTcpOp3S.js";import"./useRefreshControl-CrWcN2XJ.js";import"./circle-check-big-3v1UEeDx.js";import"./MailListHeader-C4iFTdSN.js";import"./attachment-file-DKdoDsJb.js";import"./mail-bfhHdZI4.js";import"./avatar-66IHVolP.js";import"./format-23Av07Go.js";import"./download-mx2VQnFX.js";import"./shield-check-D5RHQNp7.js";import"./useFilters-BG3A-lfv.js";import"./clock-BcUfg-A3.js";import"./menu-B4qp5h8W.js";import"./MailViewChrome-DLb2fNYu.js";import"./NavMenuButton-BEErFBgW.js";import"./useLabels-BAvJi8nW.js";import"./useSemanticSearch-De9TD-3t.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-BuQUdfIO.js";import"./circle-help-DmuGFuc3.js";import"./circle-check-D7Qb9gYa.js";function N(){const{mailboxId:t}=m.useParams(),i=e();return s({to:"/mail/$mailboxId",params:{mailboxId:t}}),o.jsx(r,{mailboxId:t,thread:i,children:o.jsx(a,{phone:o.jsx(r.Phone,{}),list:o.jsx(r.List,{}),reading:o.jsx(p,{}),intelligence:o.jsx(r.Intelligence,{}),hasThread:!!i})})}export{N as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./index-C8zyy3XE.js";import{B as o}from"./BriefPane-Cblx3dGb.js";import"./useSearchTokenContext-C6RcQO8N.js";import"./kbd-CX9mOiuU.js";import"./useMessageBodyContent-CBSYjeOA.js";import"./search-scope-DTcpOp3S.js";import"./MailListHeader-C4iFTdSN.js";import"./search-token-index-Cu3vEtDY.js";import"./attachment-file-DKdoDsJb.js";import"./mail-bfhHdZI4.js";import"./avatar-66IHVolP.js";import"./index-C_T2dvXA.js";import"./useSignature-B4CKEb6v.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-KxXY_DAe.js";import"./ErrorState-Cp-q2w9w.js";import"./format-23Av07Go.js";import"./download-mx2VQnFX.js";import"./shield-check-D5RHQNp7.js";import"./useFilters-BG3A-lfv.js";import"./confirm-dialog-ivQtQll4.js";import"./clock-BcUfg-A3.js";import"./menu-B4qp5h8W.js";import"./useRefreshControl-CrWcN2XJ.js";import"./circle-check-big-3v1UEeDx.js";import"./useLabels-BAvJi8nW.js";import"./useSemanticSearch-De9TD-3t.js";import"./search-query-Cr_ZXBCp.js";import"./wizard-selection-B1bng5Jq.js";function A(){return r.jsx(o.Reading,{})}export{A as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-C8zyy3XE.js";import{M as r}from"./MailboxPane-tM9Qnk8K.js";import"./useSearchTokenContext-C6RcQO8N.js";import"./kbd-CX9mOiuU.js";import"./useMessageBodyContent-CBSYjeOA.js";import"./search-scope-DTcpOp3S.js";import"./useRefreshControl-CrWcN2XJ.js";import"./circle-check-big-3v1UEeDx.js";import"./search-token-index-Cu3vEtDY.js";import"./MailListHeader-C4iFTdSN.js";import"./attachment-file-DKdoDsJb.js";import"./mail-bfhHdZI4.js";import"./avatar-66IHVolP.js";import"./index-C_T2dvXA.js";import"./useSignature-B4CKEb6v.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-KxXY_DAe.js";import"./ErrorState-Cp-q2w9w.js";import"./format-23Av07Go.js";import"./download-mx2VQnFX.js";import"./shield-check-D5RHQNp7.js";import"./useFilters-BG3A-lfv.js";import"./confirm-dialog-ivQtQll4.js";import"./clock-BcUfg-A3.js";import"./menu-B4qp5h8W.js";import"./MailViewChrome-DLb2fNYu.js";import"./NavMenuButton-BEErFBgW.js";import"./useLabels-BAvJi8nW.js";import"./useSemanticSearch-De9TD-3t.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-BuQUdfIO.js";import"./circle-help-DmuGFuc3.js";import"./circle-check-D7Qb9gYa.js";function G(){return o.jsx(r.Reading,{})}export{G as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-C8zyy3XE.js";import{F as r}from"./FlaggedPane-Ch58MU9E.js";import"./useSearchTokenContext-C6RcQO8N.js";import"./kbd-CX9mOiuU.js";import"./useMessageBodyContent-CBSYjeOA.js";import"./search-scope-DTcpOp3S.js";import"./MailListHeader-C4iFTdSN.js";import"./search-token-index-Cu3vEtDY.js";import"./attachment-file-DKdoDsJb.js";import"./mail-bfhHdZI4.js";import"./avatar-66IHVolP.js";import"./index-C_T2dvXA.js";import"./useSignature-B4CKEb6v.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-KxXY_DAe.js";import"./ErrorState-Cp-q2w9w.js";import"./format-23Av07Go.js";import"./download-mx2VQnFX.js";import"./shield-check-D5RHQNp7.js";import"./useFilters-BG3A-lfv.js";import"./confirm-dialog-ivQtQll4.js";import"./clock-BcUfg-A3.js";import"./menu-B4qp5h8W.js";import"./MailViewChrome-DLb2fNYu.js";import"./wizard-selection-B1bng5Jq.js";function v(){return o.jsx(r.Reading,{})}export{v as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-C8zyy3XE.js";import{O as t}from"./OutboxPane-CH8APoTv.js";import"./useSearchTokenContext-C6RcQO8N.js";import"./kbd-CX9mOiuU.js";import"./useMessageBodyContent-CBSYjeOA.js";import"./search-scope-DTcpOp3S.js";import"./circle-check-big-3v1UEeDx.js";import"./clock-BcUfg-A3.js";import"./row-actions-D2-obDQJ.js";import"./rotate-ccw-o3IPokHS.js";import"./NavMenuButton-BEErFBgW.js";import"./menu-B4qp5h8W.js";import"./format-23Av07Go.js";import"./outbox-status-BlKn6P0x.js";import"./search-query-Cr_ZXBCp.js";function P(){return o.jsx(t.Reading,{})}export{P as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a4 as o}from"./index-C8zyy3XE.js";const n=o;export{n as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a4 as o}from"./index-C8zyy3XE.js";const n=o;export{n as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a4 as o}from"./index-C8zyy3XE.js";const n=o;export{n as component};
|
package/assets/brief-C86Uy-43.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r,a4 as i}from"./index-C8zyy3XE.js";import{a as m}from"./MailShell-B0aQqEP7.js";import{B as o}from"./BriefPane-Cblx3dGb.js";import{g as p}from"./search-token-index-Cu3vEtDY.js";import{u as e}from"./search-mirror-Bz6qYFNs.js";import"./FullCompose-BdIpZxG9.js";import"./ErrorState-Cp-q2w9w.js";import"./index-C_T2dvXA.js";import"./useMessageBodyContent-CBSYjeOA.js";import"./useSignature-B4CKEb6v.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-KxXY_DAe.js";import"./confirm-dialog-ivQtQll4.js";import"./useSearchTokenContext-C6RcQO8N.js";import"./kbd-CX9mOiuU.js";import"./search-scope-DTcpOp3S.js";import"./MailListHeader-C4iFTdSN.js";import"./attachment-file-DKdoDsJb.js";import"./mail-bfhHdZI4.js";import"./avatar-66IHVolP.js";import"./format-23Av07Go.js";import"./download-mx2VQnFX.js";import"./shield-check-D5RHQNp7.js";import"./useFilters-BG3A-lfv.js";import"./clock-BcUfg-A3.js";import"./menu-B4qp5h8W.js";import"./useRefreshControl-CrWcN2XJ.js";import"./circle-check-big-3v1UEeDx.js";import"./useLabels-BAvJi8nW.js";import"./useSemanticSearch-De9TD-3t.js";import"./search-query-Cr_ZXBCp.js";import"./wizard-selection-B1bng5Jq.js";function F(){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{F as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as o}from"./FullCompose-BdIpZxG9.js";import"./index-C8zyy3XE.js";import"./ErrorState-Cp-q2w9w.js";import"./index-C_T2dvXA.js";import"./useMessageBodyContent-CBSYjeOA.js";import"./useSignature-B4CKEb6v.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-KxXY_DAe.js";import"./confirm-dialog-ivQtQll4.js";const a=o;export{a as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as o}from"./FullCompose-BdIpZxG9.js";import"./index-C8zyy3XE.js";import"./ErrorState-Cp-q2w9w.js";import"./index-C_T2dvXA.js";import"./useMessageBodyContent-CBSYjeOA.js";import"./useSignature-B4CKEb6v.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-KxXY_DAe.js";import"./confirm-dialog-ivQtQll4.js";const a=o;export{a as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as o}from"./FullCompose-BdIpZxG9.js";import"./index-C8zyy3XE.js";import"./ErrorState-Cp-q2w9w.js";import"./index-C_T2dvXA.js";import"./useMessageBodyContent-CBSYjeOA.js";import"./useSignature-B4CKEb6v.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-KxXY_DAe.js";import"./confirm-dialog-ivQtQll4.js";const a=o;export{a as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as o}from"./FullCompose-BdIpZxG9.js";import"./index-C8zyy3XE.js";import"./ErrorState-Cp-q2w9w.js";import"./index-C_T2dvXA.js";import"./useMessageBodyContent-CBSYjeOA.js";import"./useSignature-B4CKEb6v.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-KxXY_DAe.js";import"./confirm-dialog-ivQtQll4.js";const a=o;export{a as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o,a4 as i}from"./index-C8zyy3XE.js";import{a as m}from"./MailShell-B0aQqEP7.js";import{F as r}from"./FlaggedPane-Ch58MU9E.js";import{g as p}from"./search-token-index-Cu3vEtDY.js";import{u as e}from"./search-mirror-Bz6qYFNs.js";import"./FullCompose-BdIpZxG9.js";import"./ErrorState-Cp-q2w9w.js";import"./index-C_T2dvXA.js";import"./useMessageBodyContent-CBSYjeOA.js";import"./useSignature-B4CKEb6v.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-KxXY_DAe.js";import"./confirm-dialog-ivQtQll4.js";import"./useSearchTokenContext-C6RcQO8N.js";import"./kbd-CX9mOiuU.js";import"./search-scope-DTcpOp3S.js";import"./MailListHeader-C4iFTdSN.js";import"./attachment-file-DKdoDsJb.js";import"./mail-bfhHdZI4.js";import"./avatar-66IHVolP.js";import"./format-23Av07Go.js";import"./download-mx2VQnFX.js";import"./shield-check-D5RHQNp7.js";import"./useFilters-BG3A-lfv.js";import"./clock-BcUfg-A3.js";import"./menu-B4qp5h8W.js";import"./MailViewChrome-DLb2fNYu.js";import"./wizard-selection-B1bng5Jq.js";function w(){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{w as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e,B as N,T as B,b9 as Y,r as c,az as W,X,aI as he,ap as J,F as xe,ba as K,bb as fe,ao as pe,as as ge,aE as L,aL as be,bc as ve,x as Z,Y as ee,a5 as se,bd as ye,be as je,aJ as Ne,W as ke,bf as Ce,bg as _,bh as we,bi as Se,bj as te,bk as Ie,bl as Q,b0 as ae,b6 as re,b7 as Me,H as G,G as ne,ar as H,bm as V,bn as Ee,af as De,bo as Ae,a0 as Oe,D as ie,a1 as Te,aD as Re,aH as Pe,z as Fe,aj as U,bp as $e,bq as ze,br as Le,aP as _e,bs as Be,bt as Ge}from"./index-C8zyy3XE.js";import{P as He}from"./pencil-HWlQ-VeT.js";import{S as qe}from"./settings-screen-Ai1ERiVR.js";import{E as oe}from"./ErrorState-Cp-q2w9w.js";import"./avatar-66IHVolP.js";import"./menu-B4qp5h8W.js";import"./circle-help-DmuGFuc3.js";const Ke=({label:s,onRename:t,onDelete:a,deleteBlockedReason:o,renameLabel:m=u=>`Rename ${u}`,deleteLabel:r=u=>`Delete ${u}`})=>{const u=o?`${r(s)} — ${o}`:r(s);return e.jsxs("span",{className:"flex shrink-0 items-center gap-0.5 pr-2",children:[e.jsx(N,{variant:"ghost",size:"sm",icon:e.jsx(He,{className:"size-3.5"}),"aria-label":m(s),onClick:t}),e.jsx("span",{title:o,children:e.jsx(N,{variant:"ghost",size:"sm",icon:e.jsx(B,{className:"size-3.5"}),"aria-label":u,disabled:o!==void 0,onClick:a})})]})},Qe=({folders:s,onRename:t,onDelete:a,onCreateFolder:o,delimiter:m,labels:r})=>{const u=new Map(s.map(l=>[l.id,l]));return e.jsx(Y,{folders:s,onCreateFolder:o,delimiter:m,labels:{treeAriaLabel:"Your folders",optionLabel:l=>l.label,...r},rowActions:l=>{const i=u.get(l.id);return i?e.jsx(Ke,{label:i.label,deleteBlockedReason:i.deleteBlockedReason,renameLabel:r?.rename,deleteLabel:r?.remove,onRename:()=>t(i),onDelete:()=>a(i)}):null}})},Ve=({open:s,folderLabel:t,defaultLabel:a,name:o,onNameChange:m,onSubmit:r,onClose:u,pending:l=!1,error:i})=>{const d=c.useId(),g=`Rename ${t}`;return s?e.jsxs(W,{open:s,onClose:u,title:g,children:[e.jsxs("header",{className:"flex items-center gap-2 border-b border-line px-5 py-3",children:[e.jsx("span",{className:"flex-1 text-sm font-semibold text-fg",children:g}),e.jsx(N,{variant:"ghost",size:"sm",icon:e.jsx(X,{className:"size-3.5"}),onClick:u,"aria-label":"Cancel"})]}),e.jsxs("div",{className:"space-y-3 px-5 py-4",children:[e.jsxs("div",{children:[e.jsx(he,{htmlFor:d,children:"Folder name"}),e.jsx(J,{id:d,value:o,placeholder:a,onChange:p=>m(p.target.value),onKeyDown:p=>{p.key==="Enter"&&(p.preventDefault(),r())}})]}),e.jsxs("p",{className:"text-xs text-fg-muted",children:["Shown everywhere in Remit. Leave it blank to use"," ",e.jsx("span",{className:"font-medium text-fg",children:a}),"."]}),i&&e.jsx("p",{className:"text-xs text-danger",role:"alert",children:i})]}),e.jsxs("footer",{className:"flex items-center justify-end gap-2 border-t border-line px-5 py-3",children:[e.jsx(N,{variant:"secondary",size:"sm",onClick:u,children:"Cancel"}),e.jsx(N,{variant:"primary",size:"sm",onClick:r,disabled:l,children:l?"Saving…":"Save name"})]})]}):null},Ue=["inbox","drafts","sent","archive","junk","trash"],q="",Ye={mailboxId:null,source:"None"};function We(s){const t=s.messageCount===1?"msg":"msgs";return`${K(s.providerPath,s.hierarchyDelimiter)} · ${s.messageCount} ${t}`}const le=s=>`${s} ${s===1?"message":"messages"}`,Xe=(s,t)=>s==="Appointed"?"Chosen by you":s==="Flagged"?`The mail server marks it as ${t}`:s==="Reserved"?"The account's own INBOX":"Matched by name, not confirmed";function Je({role:s,folders:t,appointment:a,displayName:o,onAppoint:m,onRename:r}){const[u,l]=c.useState(o),i=c.useRef(null),d=c.useRef(!1),g=c.useId(),{mailboxId:p,source:v,staleFolderPath:y}=a,h=t.find(j=>j.mailboxId===p)??null,f=be(s),O=h!=null&&u.trim()!==o.trim();c.useEffect(()=>{!d.current||v==="Proposed"||(d.current=!1,i.current?.focus())},[v]);const M=(()=>{if(v==="None"){const j=s==="trash"?" Deleting mail needs one.":"";return e.jsx("span",{id:g,className:"pl-[7.5rem] text-xs text-fg-muted",children:`Not set — pick the folder this account uses for ${f}.${j}`})}return v==="Stale"||!h?null:e.jsx("span",{id:g,className:"truncate pl-[7.5rem] text-2xs text-fg-subtle",title:h.providerPath,children:`${Xe(v,f)} · ${h.providerPath} · ${le(h.messageCount)}`})})(),w=s==="trash"?" Deleting mail is stopped until you pick another one.":h?` reader is using ${K(h.providerPath,h.hierarchyDelimiter)} instead.`:"",A=`The folder you chose for ${f}${y?` — ${y} —`:""} is gone from the mail server.${w}`;return e.jsxs("div",{className:"flex flex-col gap-1 border-b border-line px-row-inset py-2.5 last:border-b-0",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:"flex w-28 shrink-0 items-center gap-2 text-sm font-medium text-fg",children:[fe(s),f]}),e.jsxs(pe,{ref:i,className:"w-56 shrink-0",value:p??q,"aria-label":`Folder for ${f}`,"aria-describedby":M||v==="Stale"?g:void 0,onChange:j=>m(s,j.target.value===q?null:j.target.value),children:[e.jsx("option",{value:q,children:"None"}),t.map(j=>e.jsx("option",{value:j.mailboxId,children:We(j)},j.mailboxId))]}),v==="Proposed"&&h&&e.jsx(N,{variant:"secondary",size:"sm",className:"shrink-0",onClick:()=>{d.current=!0,m(s,h.mailboxId)},children:`Set as ${f}`}),h&&e.jsxs(e.Fragment,{children:[e.jsx(J,{className:"flex-1",value:u,placeholder:f,"aria-label":`Display name for ${f}`,onChange:j=>l(j.target.value)}),O&&e.jsx(N,{variant:"ghost",size:"sm",className:"shrink-0",icon:e.jsx(ge,{className:"size-4"}),"aria-label":"Save display name",onClick:()=>r(h.mailboxId,u)})]})]}),M,v==="Stale"&&e.jsx(L,{tone:"warning",variant:"soft",className:"ml-[7.5rem]",children:e.jsxs("span",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("span",{id:g,className:"flex-1",children:A}),e.jsx(N,{variant:"secondary",size:"sm",className:"shrink-0",onClick:()=>i.current?.focus(),children:"Pick a folder"})]})})]})}function Ze({accountEmail:s,folders:t,appointments:a,displayNames:o={},onAppoint:m,onRename:r}){const u=new Set(Object.values(a).map(i=>i.mailboxId).filter(i=>i!=null)),l=t.filter(i=>!u.has(i.mailboxId));return e.jsxs("section",{className:"space-y-3",children:[e.jsxs("header",{className:"space-y-1",children:[e.jsxs("h2",{className:"text-sm font-semibold text-fg",children:["Folder roles — ",s]}),e.jsx("p",{className:"text-xs text-fg-muted",children:"Each role points to one folder. Pick the folder that holds the mail — the counts help you tell real folders from empty look-alikes. Appointing a folder here removes it from any other role. Each row says where its answer came from — your choice, the mail server's own flag, or a name reader matched."})]}),e.jsx("div",{className:"rounded-sm border border-line bg-surface",children:Ue.map(i=>{const d=a[i]??Ye;return e.jsx(Je,{role:i,folders:t,appointment:d,displayName:d.mailboxId?o[d.mailboxId]??"":"",onAppoint:m,onRename:r},i)})}),l.length>0&&e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("h3",{className:"text-xs font-medium text-fg-muted",children:"Other folders"}),e.jsx("ul",{className:"rounded-sm border border-line bg-surface",children:l.map(i=>e.jsxs("li",{className:"flex items-center gap-2 border-b border-line px-row-inset py-2 text-sm text-fg last:border-b-0",children:[e.jsx(xe,{className:"size-4 shrink-0 text-fg-subtle"}),e.jsx("span",{className:"truncate",children:K(i.providerPath,i.hierarchyDelimiter)}),e.jsx("span",{className:"ml-auto shrink-0 text-2xs text-fg-subtle",children:le(i.messageCount)})]},i.mailboxId))})]})]})}const es=12e4,ss=2e3,ts="This folder is no longer in the account's folder list, so nothing was deleted.",ce=(s,t)=>{const a=s.find(o=>o.mailboxId===t);if(!a)throw new Error(ts);return a},as=(s,t)=>ce(s,t).lastSyncedAt??0;async function rs({readMailboxes:s,mailboxId:t,since:a,signal:o,segmentMs:m=es,pollIntervalMs:r=ss,delay:u=ve,now:l=Date.now}){const i=l()+m;for(;;){o?.throwIfAborted();const d=ce(await s(),t);if((d.lastSyncedAt??0)>a)return{status:"fresh",messageCount:d.messagesTotal};if(l()>=i)return{status:"pending"};await u(r,o)}}const de=50,ns=s=>s instanceof Error?s.message:"Something went wrong.",$=s=>s.then(t=>({ok:!0,value:t}),t=>({ok:!1,error:ns(t)})),is=async(s,t,a,o)=>{const m=[];let r;for(let u=0;u<de;u+=1){if(o.aborted)return m;const{data:l}=await te({path:{mailboxId:s},query:{order:"desc",continuationToken:r},throwOnError:!0});for(const i of l.items)if(!i.isDeleted&&!t.has(i.messageId)&&!m.includes(i.messageId)&&(m.push(i.messageId),m.length>=a))return m;if(!l.continuationToken)break;r=l.continuationToken}return m},os=async(s,t)=>{let a=0,o;for(let m=0;m<de;m+=1){if(t.aborted)return a;const{data:r}=await te({path:{mailboxId:s},query:{order:"desc",continuationToken:o},throwOnError:!0});for(const u of r.items)u.isDeleted||(a+=1);if(!r.continuationToken)break;o=r.continuationToken}return a};function ls({accountId:s,mailboxId:t,onDeleted:a}){const o=Z(),[m,r]=c.useState("idle"),[u,l]=c.useState(null),[i,d]=c.useState(),[g,p]=c.useState(),v=c.useRef(null),y=c.useRef(void 0),h=c.useCallback(()=>{o.invalidateQueries({queryKey:ee({path:{accountId:s}})}),o.invalidateQueries({queryKey:se()})},[o,s]),f=c.useCallback(async()=>{r("deleting");const k=await $(ye({path:{accountId:s,mailboxId:t},throwOnError:!0}));if(!k.ok){d(k.error),r("error");return}h(),r("done"),a()},[s,t,h,a]),O=c.useCallback(()=>je({path:{accountId:s},throwOnError:!0}).then(({data:k})=>k.items.find(S=>S.mailboxId===t)?.messageCount??0),[s,t]),M=c.useCallback(()=>o.fetchQuery({...Ne({path:{accountId:s}}),staleTime:0}).then(k=>k.mailboxes??[]),[o,s]),w=c.useCallback(async()=>{const k=new AbortController;v.current=k;const{signal:S}=k;r("checking"),d(void 0);const I=y.current!==void 0,C=await $((async()=>(I||(S.throwIfAborted(),y.current=as(await M(),t),S.throwIfAborted(),p(Date.now()),await ke({path:{accountId:s},throwOnError:!0})),rs({readMailboxes:M,mailboxId:t,since:y.current??0,signal:S})))());return S.aborted?(r("idle"),y.current=void 0,{status:"failed"}):C.ok?C.value.status==="pending"?(r("check-stalled"),{status:"pending"}):(y.current=void 0,C.value.messageCount>0?(r("idle"),h(),{status:"blocked",messageCount:C.value.messageCount}):(await f(),{status:"deleted"})):(y.current=void 0,d(C.error),r("error"),{status:"failed"})},[s,t,M,f,h]),A=c.useCallback(()=>{v.current?.abort()},[]),j=c.useCallback(async k=>{const S=new AbortController;v.current=S;const{signal:I}=S;r("moving"),d(void 0);const C=await $(O());if(I.aborted)return;if(!C.ok){d(C.error),r("error");return}let x=Ce(C.value);l(x);const E=new Set;for(;;){if(I.aborted)return;const n=await $(is(t,E,Ie,I));if(I.aborted)return;if(!n.ok){x=_(x,n.error),l(x),d(n.error),r("error");return}const b=n.value;if(b.length===0)break;const T=await $(we({body:{messageIds:b,destinationMailboxId:k},throwOnError:!0}));if(I.aborted)return;if(!T.ok){x=_(x,T.error),l(x),d(T.error),r("error");return}for(const F of b)E.add(F);x=Se(x,b.length),l(x)}const D=await $(os(t,I));if(!I.aborted){if(!D.ok){x=_(x,D.error),l(x),d(D.error),r("error");return}if(D.value>0){const n=`${D.value} ${D.value===1?"email is":"emails are"} still syncing. Re-open delete to finish removing this folder.`;x=_(x,n),l(x),d(n),r("error"),h();return}await f()}},[t,O,f,h]),R=c.useCallback(()=>{v.current?.abort(),v.current=null,y.current=void 0,r("idle"),l(null),d(void 0),p(void 0)},[]);return{phase:m,progress:u,errorMessage:i,checkStartedAt:g,deleteMailbox:f,deleteIfEmpty:w,moveThenDelete:j,cancel:A,reset:R}}const z=s=>`${s} ${s===1?"email":"emails"}`;function cs({open:s,accountId:t,folder:a,mailboxes:o,appointments:m,onClose:r}){const[u,l]=c.useState(()=>Q(a.messageCount)),[i,d]=c.useState(),[g,p]=c.useState(),{createFolderIn:v}=ae(t),y=re(),{phase:h,progress:f,errorMessage:O,checkStartedAt:M,deleteMailbox:w,deleteIfEmpty:A,moveThenDelete:j,cancel:R,reset:k}=ls({accountId:t,mailboxId:a.mailboxId,onDeleted:r}),[S,I]=c.useState("0:00"),C=h==="checking"||h==="check-stalled";c.useEffect(()=>{if(!C||M===void 0)return;const P=()=>I(Ae(Date.now()-M));P();const ue=setInterval(P,1e3);return()=>clearInterval(ue)},[C,M]),c.useEffect(()=>{s&&(l(Q(a.messageCount)),d(void 0),k())},[s,k]),c.useEffect(()=>{s&&p(void 0)},[s]),c.useEffect(()=>R,[R]);const x=c.useCallback(()=>{R(),r()},[R,r]),E=c.useCallback(async()=>{const P=await A();P.status==="blocked"&&(d(P.messageCount),l("choose-fate"))},[A]),D=c.useMemo(()=>Me({mailboxes:o,folderAppointments:m,excludeMailboxId:a.mailboxId,translator:y}),[o,m,a.mailboxId,y]),n=D.find(P=>P.id===g),b=c.useMemo(()=>G(a,ne(m).get(a.mailboxId),y),[a,m,y]);if(!s)return null;const T=`Delete ${b}`,F=i??a.messageCount,me=h==="moving"?e.jsxs("div",{className:"flex flex-col items-center gap-3 px-5 py-10 text-center",children:[e.jsx(H,{className:"size-8 animate-spin text-accent-2"}),e.jsx("p",{className:"text-sm font-medium text-fg",children:"Moving emails…"}),e.jsx("p",{className:"text-xs text-fg-muted",role:"status","aria-live":"polite",children:f?V(f):"Moved 0 of 0"})]}):h==="checking"?e.jsxs("div",{className:"flex flex-col items-center gap-3 px-5 py-10 text-center",children:[e.jsx(H,{className:"size-8 animate-spin text-accent-2"}),e.jsx("p",{className:"text-sm font-medium text-fg",children:"Checking the folder on the mail server…"}),e.jsx("p",{className:"text-xs text-fg-muted",role:"status","aria-live":"polite",children:`Waiting ${S}. Nothing is deleted until the server answers.`})]}):h==="check-stalled"?e.jsxs("div",{className:"space-y-4 px-5 py-4",children:[e.jsx(L,{tone:"warning",variant:"soft",children:`The mail server hasn't reported back on this folder yet — ${S} so far. Nothing has been deleted.`}),e.jsx("p",{className:"text-xs text-fg-muted",children:"A sync covers the whole account, so a busy mailbox can take a while to come round to this folder."}),e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsx(N,{variant:"secondary",size:"sm",onClick:x,children:"Cancel"}),e.jsx(N,{size:"sm",onClick:()=>E(),children:"Keep waiting"})]})]}):h==="deleting"||h==="done"?e.jsxs("div",{className:"flex flex-col items-center gap-3 px-5 py-10 text-center",children:[e.jsx(H,{className:"size-8 animate-spin text-accent-2"}),e.jsx("p",{className:"text-sm font-medium text-fg",children:"Deleting folder…"})]}):h==="error"?e.jsxs("div",{className:"space-y-4 px-5 py-4",children:[e.jsx(L,{tone:"danger",variant:"soft",children:O??"Something went wrong. Please try again."}),f&&e.jsxs("p",{className:"text-xs text-fg-muted",children:[V(f),". Already-moved emails stay moved — re-open delete to continue with the rest."]}),e.jsx("div",{className:"flex justify-end",children:e.jsx(N,{variant:"secondary",size:"sm",onClick:x,children:"Close"})})]}):u==="confirm-empty"?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"space-y-3 px-5 py-4 text-sm text-fg-muted",children:e.jsxs("p",{children:["Delete ",e.jsx("strong",{className:"text-fg",children:b}),"? This folder is empty and will be removed from the server."]})}),e.jsxs("footer",{className:"flex items-center justify-end gap-2 border-t border-line px-5 py-3",children:[e.jsx(N,{variant:"secondary",size:"sm",onClick:x,children:"Cancel"}),e.jsx(N,{variant:"danger",size:"sm",icon:e.jsx(B,{className:"size-3.5"}),onClick:()=>E(),children:"Delete folder"})]})]}):u==="choose-fate"?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"space-y-3 px-5 py-4 text-sm text-fg-muted",children:[i!==void 0&&e.jsx(L,{tone:"warning",variant:"soft",children:`This folder is not empty: the mail server reports ${z(i)} in it. Nothing was deleted.`}),e.jsxs("p",{children:[e.jsx("strong",{className:"text-fg",children:b})," holds"," ",z(F),". What should happen to them?"]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("button",{type:"button",onClick:()=>l("confirm-delete-all"),className:"flex w-full items-center gap-3 rounded-sm border border-line px-3 py-2.5 text-left hover:bg-surface-raised",children:[e.jsx(B,{className:"size-4 shrink-0 text-danger"}),e.jsxs("span",{className:"flex-1",children:[e.jsx("span",{className:"block text-sm font-medium text-fg",children:"Delete them with the folder"}),e.jsx("span",{className:"block text-xs text-fg-muted",children:"The emails are removed from the server and can't be recovered."})]})]}),e.jsxs("button",{type:"button",onClick:()=>l("pick-destination"),className:"flex w-full items-center gap-3 rounded-sm border border-line px-3 py-2.5 text-left hover:bg-surface-raised",children:[e.jsx(Ee,{className:"size-4 shrink-0 text-accent-2"}),e.jsxs("span",{className:"flex-1",children:[e.jsx("span",{className:"block text-sm font-medium text-fg",children:"Move them to another folder"}),e.jsx("span",{className:"block text-xs text-fg-muted",children:"Keep the emails, then delete the emptied folder."})]})]})]})]}),e.jsx("footer",{className:"flex items-center justify-end gap-2 border-t border-line px-5 py-3",children:e.jsx(N,{variant:"secondary",size:"sm",onClick:x,children:"Cancel"})})]}):u==="confirm-delete-all"?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"space-y-3 px-5 py-4 text-sm text-fg-muted",children:e.jsxs("p",{children:["Delete ",e.jsx("strong",{className:"text-fg",children:b})," and its"," ",z(F),"? The messages are removed from the server with the folder and can't be recovered."]})}),e.jsxs("footer",{className:"flex items-center justify-end gap-2 border-t border-line px-5 py-3",children:[e.jsx(N,{variant:"secondary",size:"sm",onClick:()=>l("choose-fate"),children:"Back"}),e.jsx(N,{variant:"danger",size:"sm",icon:e.jsx(B,{className:"size-3.5"}),onClick:()=>w(),children:"Delete folder and emails"})]})]}):e.jsxs("div",{className:"flex h-[26rem] flex-col",children:[e.jsxs("p",{className:"px-5 pt-4 text-sm text-fg-muted",children:["Move the ",z(F)," in"," ",e.jsx("strong",{className:"text-fg",children:b})," to:"]}),e.jsx("div",{className:"flex min-h-0 flex-1 overflow-hidden",children:e.jsx(Y,{folders:D,selectedId:g,delimiter:o[0]?.hierarchyDelimiter??"/",onSelect:p,onCreateFolder:v,onCancel:()=>{p(void 0),l("choose-fate")},labels:{filterPlaceholder:"Move emails to…"}})}),n&&e.jsx("footer",{className:"shrink-0 border-t border-line p-2",children:e.jsx(N,{variant:"danger",onClick:()=>j(n.id),className:"h-11 w-full font-semibold",children:e.jsx("span",{className:"truncate",children:`Move ${z(F)} to ${n.label}`})})})]});return e.jsxs(W,{open:s,onClose:x,title:T,children:[e.jsxs("header",{className:"flex items-center gap-2 border-b border-line px-5 py-3",children:[e.jsx(De,{className:"size-4 shrink-0 text-danger"}),e.jsx("span",{className:"flex-1 text-sm font-semibold text-fg",children:T}),e.jsx(N,{variant:"ghost",size:"sm",icon:e.jsx(X,{className:"size-3.5"}),onClick:x,"aria-label":"Cancel"})]}),me]})}const ds=e.jsxs("div",{className:"space-y-3",children:[e.jsx("p",{children:"Each canonical role — Inbox, Drafts, Sent, Archive, Spam, Trash — points at one of your account's real folders. Pick the one that actually holds the mail; the message counts tell real folders from empty look-alikes."}),e.jsx("p",{children:`Appointing a folder to a role here doesn't touch any other role, and doesn't move or rename anything on the server — it just tells Remit which folder to treat as e.g. "Drafts" everywhere (sidebar, unread badges, the compose flow).`}),e.jsxs("p",{children:[e.jsx("strong",{className:"text-fg",children:"Your folders"})," is the account's real hierarchy. Open a folder to see what's inside it, make a new one where you're looking, and rename or delete any of them from its row."]})]});function ms({account:s}){const t=Z(),a=s.accountId,o=re(),{data:m,isPending:r,isError:u,error:l,refetch:i}=ie(Fe({path:{accountId:a}})),{createFolderIn:d}=ae(a),g=U({...$e(),onSuccess:()=>{t.invalidateQueries({queryKey:se()})}}),p=U({...ze(),onSuccess:()=>{t.invalidateQueries({queryKey:ee({path:{accountId:a}})})}}),[v,y]=c.useState(),[h,f]=c.useState(),[O,M]=c.useState(""),w=c.useMemo(()=>m?.items??[],[m]),A=c.useMemo(()=>ne(s.folderAppointments),[s.folderAppointments]),j=c.useMemo(()=>w.map(n=>({id:n.mailboxId,label:G(n,A.get(n.mailboxId),o),path:n.fullPath,deleteBlockedReason:Le(n,w,s.folderAppointments).message})),[w,A,o,s.folderAppointments]),R=(n,b)=>{g.mutate({path:{accountId:a,role:Ge[n]},body:{mailboxId:b}})},k=(n,b)=>{const T=b.trim();p.mutate({path:{accountId:a,mailboxId:n},body:{displayNameOverride:T===""?null:T}})};if(r)return e.jsx("div",{className:"h-24 animate-pulse rounded-sm border border-line bg-surface","aria-busy":"true","aria-label":`Loading folders for ${s.email}`});if(u)return e.jsx(oe,{variant:"inline",title:`Couldn't load folders for ${s.email}`,error:l,onRetry:()=>{i()}});const S=w.map(n=>({mailboxId:n.mailboxId,providerPath:n.fullPath,hierarchyDelimiter:n.hierarchyDelimiter,messageCount:n.messageCount})),I={};for(const n of s.folderAppointments){const b=_e[n.role];b&&(I[b]={mailboxId:n.mailboxId??null,source:n.source,staleFolderPath:n.staleAppointmentPath})}const C={};for(const n of w)n.displayNameOverride&&(C[n.mailboxId]=n.displayNameOverride);const x=n=>w.find(b=>b.mailboxId===n),E=x(h),D=x(v);return e.jsxs("div",{className:"space-y-4",children:[(g.isError||p.isError)&&e.jsx(L,{tone:"danger",variant:"soft",children:Be(g.error)?"That folder is still being created on the mail server — wait for it to finish, then try again.":"Couldn't save that change. Please try again."}),e.jsx(Ze,{accountEmail:s.email,folders:S,appointments:I,displayNames:C,onAppoint:R,onRename:k}),e.jsxs("section",{className:"space-y-1.5",children:[e.jsxs("h3",{className:"text-sm font-semibold text-fg",children:["Your folders — ",s.email]}),e.jsx("div",{className:"flex h-[28rem] flex-col overflow-hidden rounded-sm border border-line bg-surface",children:e.jsx(Qe,{folders:j,delimiter:w[0]?.hierarchyDelimiter??"/",onCreateFolder:d,onRename:n=>{f(n.id),M(x(n.id)?.displayNameOverride?.trim()??"")},onDelete:n=>y(n.id),labels:{treeAriaLabel:`All folders for ${s.email}`}})})]}),E&&e.jsx(Ve,{open:!0,folderLabel:G(E,A.get(E.mailboxId),o),defaultLabel:G({fullPath:E.fullPath,hierarchyDelimiter:E.hierarchyDelimiter},A.get(E.mailboxId),o),name:O,onNameChange:M,pending:p.isPending,error:p.isError?"Couldn't save that name. Please try again.":void 0,onSubmit:()=>{const n=O.trim();p.mutate({path:{accountId:a,mailboxId:E.mailboxId},body:{displayNameOverride:n===""?null:n}},{onSuccess:()=>f(void 0)})},onClose:()=>f(void 0)}),D&&e.jsx(cs,{open:!0,accountId:a,folder:D,mailboxes:w,appointments:s.folderAppointments,onClose:()=>y(void 0)})]})}function vs(){const s=Oe(),[t,a]=c.useState(!0),{data:o,isPending:m,isError:r,error:u,refetch:l}=ie(Te()),i=d=>{const g=Pe[d];g&&s({to:g})};return e.jsx(qe,{items:Re,activeId:"folders",title:"Folder roles",description:"Appoint which real folder fills each canonical role, per account.",help:ds,helpOpen:t,onToggleHelp:()=>a(d=>!d),onSelect:i,onBackToMail:()=>{s({to:"/mail"})},children:m?e.jsx("div",{className:"h-24 animate-pulse rounded-sm border border-line bg-surface","aria-busy":"true","aria-label":"Loading accounts"}):r?e.jsx(oe,{title:"Couldn't load accounts",error:u,onRetry:()=>{l()}}):o.accounts.length===0?e.jsx("p",{className:"py-12 text-sm text-fg-muted",children:"No accounts configured."}):e.jsx("div",{className:"space-y-8",children:o.accounts.map(d=>e.jsx(ms,{account:d},d.accountId))})})}export{vs as component};
|
package/assets/index-53xrH7Fb.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./index-C8zyy3XE.js";import{B as o}from"./BriefPane-Cblx3dGb.js";import"./useSearchTokenContext-C6RcQO8N.js";import"./kbd-CX9mOiuU.js";import"./useMessageBodyContent-CBSYjeOA.js";import"./search-scope-DTcpOp3S.js";import"./MailListHeader-C4iFTdSN.js";import"./search-token-index-Cu3vEtDY.js";import"./attachment-file-DKdoDsJb.js";import"./mail-bfhHdZI4.js";import"./avatar-66IHVolP.js";import"./index-C_T2dvXA.js";import"./useSignature-B4CKEb6v.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-KxXY_DAe.js";import"./ErrorState-Cp-q2w9w.js";import"./format-23Av07Go.js";import"./download-mx2VQnFX.js";import"./shield-check-D5RHQNp7.js";import"./useFilters-BG3A-lfv.js";import"./confirm-dialog-ivQtQll4.js";import"./clock-BcUfg-A3.js";import"./menu-B4qp5h8W.js";import"./useRefreshControl-CrWcN2XJ.js";import"./circle-check-big-3v1UEeDx.js";import"./useLabels-BAvJi8nW.js";import"./useSemanticSearch-De9TD-3t.js";import"./search-query-Cr_ZXBCp.js";import"./wizard-selection-B1bng5Jq.js";function C(){return r.jsx(o.Reading,{})}export{C as component};
|
package/assets/index-BBeUuXvu.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-C8zyy3XE.js";import{O as t}from"./OutboxPane-CH8APoTv.js";import"./useSearchTokenContext-C6RcQO8N.js";import"./kbd-CX9mOiuU.js";import"./useMessageBodyContent-CBSYjeOA.js";import"./search-scope-DTcpOp3S.js";import"./circle-check-big-3v1UEeDx.js";import"./clock-BcUfg-A3.js";import"./row-actions-D2-obDQJ.js";import"./rotate-ccw-o3IPokHS.js";import"./NavMenuButton-BEErFBgW.js";import"./menu-B4qp5h8W.js";import"./format-23Av07Go.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/index-BZdlt25E.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-C8zyy3XE.js";import{M as r}from"./MailboxPane-tM9Qnk8K.js";import"./useSearchTokenContext-C6RcQO8N.js";import"./kbd-CX9mOiuU.js";import"./useMessageBodyContent-CBSYjeOA.js";import"./search-scope-DTcpOp3S.js";import"./useRefreshControl-CrWcN2XJ.js";import"./circle-check-big-3v1UEeDx.js";import"./search-token-index-Cu3vEtDY.js";import"./MailListHeader-C4iFTdSN.js";import"./attachment-file-DKdoDsJb.js";import"./mail-bfhHdZI4.js";import"./avatar-66IHVolP.js";import"./index-C_T2dvXA.js";import"./useSignature-B4CKEb6v.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-KxXY_DAe.js";import"./ErrorState-Cp-q2w9w.js";import"./format-23Av07Go.js";import"./download-mx2VQnFX.js";import"./shield-check-D5RHQNp7.js";import"./useFilters-BG3A-lfv.js";import"./confirm-dialog-ivQtQll4.js";import"./clock-BcUfg-A3.js";import"./menu-B4qp5h8W.js";import"./MailViewChrome-DLb2fNYu.js";import"./NavMenuButton-BEErFBgW.js";import"./useLabels-BAvJi8nW.js";import"./useSemanticSearch-De9TD-3t.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-BuQUdfIO.js";import"./circle-help-DmuGFuc3.js";import"./circle-check-D7Qb9gYa.js";function F(){return o.jsx(r.Reading,{})}export{F as component};
|
package/assets/index-BZtIYzNu.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./index-C8zyy3XE.js";import{B as o}from"./BriefPane-Cblx3dGb.js";import"./useSearchTokenContext-C6RcQO8N.js";import"./kbd-CX9mOiuU.js";import"./useMessageBodyContent-CBSYjeOA.js";import"./search-scope-DTcpOp3S.js";import"./MailListHeader-C4iFTdSN.js";import"./search-token-index-Cu3vEtDY.js";import"./attachment-file-DKdoDsJb.js";import"./mail-bfhHdZI4.js";import"./avatar-66IHVolP.js";import"./index-C_T2dvXA.js";import"./useSignature-B4CKEb6v.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-KxXY_DAe.js";import"./ErrorState-Cp-q2w9w.js";import"./format-23Av07Go.js";import"./download-mx2VQnFX.js";import"./shield-check-D5RHQNp7.js";import"./useFilters-BG3A-lfv.js";import"./confirm-dialog-ivQtQll4.js";import"./clock-BcUfg-A3.js";import"./menu-B4qp5h8W.js";import"./useRefreshControl-CrWcN2XJ.js";import"./circle-check-big-3v1UEeDx.js";import"./useLabels-BAvJi8nW.js";import"./useSemanticSearch-De9TD-3t.js";import"./search-query-Cr_ZXBCp.js";import"./wizard-selection-B1bng5Jq.js";function A(){return r.jsx(o.Reading,{})}export{A as component};
|
package/assets/index-CKNZWQuQ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-C8zyy3XE.js";import{F as r}from"./FlaggedPane-Ch58MU9E.js";import"./useSearchTokenContext-C6RcQO8N.js";import"./kbd-CX9mOiuU.js";import"./useMessageBodyContent-CBSYjeOA.js";import"./search-scope-DTcpOp3S.js";import"./MailListHeader-C4iFTdSN.js";import"./search-token-index-Cu3vEtDY.js";import"./attachment-file-DKdoDsJb.js";import"./mail-bfhHdZI4.js";import"./avatar-66IHVolP.js";import"./index-C_T2dvXA.js";import"./useSignature-B4CKEb6v.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-KxXY_DAe.js";import"./ErrorState-Cp-q2w9w.js";import"./format-23Av07Go.js";import"./download-mx2VQnFX.js";import"./shield-check-D5RHQNp7.js";import"./useFilters-BG3A-lfv.js";import"./confirm-dialog-ivQtQll4.js";import"./clock-BcUfg-A3.js";import"./menu-B4qp5h8W.js";import"./MailViewChrome-DLb2fNYu.js";import"./wizard-selection-B1bng5Jq.js";function w(){return o.jsx(r.Reading,{})}export{w as component};
|
package/assets/index-DdEGI_Za.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-C8zyy3XE.js";import{M as i}from"./MailboxPane-tM9Qnk8K.js";import"./useSearchTokenContext-C6RcQO8N.js";import"./kbd-CX9mOiuU.js";import"./useMessageBodyContent-CBSYjeOA.js";import"./search-scope-DTcpOp3S.js";import"./useRefreshControl-CrWcN2XJ.js";import"./circle-check-big-3v1UEeDx.js";import"./search-token-index-Cu3vEtDY.js";import"./MailListHeader-C4iFTdSN.js";import"./attachment-file-DKdoDsJb.js";import"./mail-bfhHdZI4.js";import"./avatar-66IHVolP.js";import"./index-C_T2dvXA.js";import"./useSignature-B4CKEb6v.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-KxXY_DAe.js";import"./ErrorState-Cp-q2w9w.js";import"./format-23Av07Go.js";import"./download-mx2VQnFX.js";import"./shield-check-D5RHQNp7.js";import"./useFilters-BG3A-lfv.js";import"./confirm-dialog-ivQtQll4.js";import"./clock-BcUfg-A3.js";import"./menu-B4qp5h8W.js";import"./MailViewChrome-DLb2fNYu.js";import"./NavMenuButton-BEErFBgW.js";import"./useLabels-BAvJi8nW.js";import"./useSemanticSearch-De9TD-3t.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-BuQUdfIO.js";import"./circle-help-DmuGFuc3.js";import"./circle-check-D7Qb9gYa.js";function G(){return o.jsx(i.Reading,{})}export{G as component};
|
package/assets/index-DzbGwFwZ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-C8zyy3XE.js";import{F as r}from"./FlaggedPane-Ch58MU9E.js";import"./useSearchTokenContext-C6RcQO8N.js";import"./kbd-CX9mOiuU.js";import"./useMessageBodyContent-CBSYjeOA.js";import"./search-scope-DTcpOp3S.js";import"./MailListHeader-C4iFTdSN.js";import"./search-token-index-Cu3vEtDY.js";import"./attachment-file-DKdoDsJb.js";import"./mail-bfhHdZI4.js";import"./avatar-66IHVolP.js";import"./index-C_T2dvXA.js";import"./useSignature-B4CKEb6v.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-KxXY_DAe.js";import"./ErrorState-Cp-q2w9w.js";import"./format-23Av07Go.js";import"./download-mx2VQnFX.js";import"./shield-check-D5RHQNp7.js";import"./useFilters-BG3A-lfv.js";import"./confirm-dialog-ivQtQll4.js";import"./clock-BcUfg-A3.js";import"./menu-B4qp5h8W.js";import"./MailViewChrome-DLb2fNYu.js";import"./wizard-selection-B1bng5Jq.js";function v(){return o.jsx(r.Reading,{})}export{v as component};
|
package/assets/index-vx2VgI_F.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t,ab as o}from"./index-C8zyy3XE.js";const n=()=>t.jsx(o,{to:"/settings/accounts"});export{n as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o,a4 as i}from"./index-C8zyy3XE.js";import{a as m}from"./MailShell-B0aQqEP7.js";import{u as p,O as t}from"./OutboxPane-CH8APoTv.js";import{u as s}from"./search-mirror-Bz6qYFNs.js";import"./FullCompose-BdIpZxG9.js";import"./ErrorState-Cp-q2w9w.js";import"./index-C_T2dvXA.js";import"./useMessageBodyContent-CBSYjeOA.js";import"./useSignature-B4CKEb6v.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-KxXY_DAe.js";import"./confirm-dialog-ivQtQll4.js";import"./useSearchTokenContext-C6RcQO8N.js";import"./kbd-CX9mOiuU.js";import"./search-scope-DTcpOp3S.js";import"./circle-check-big-3v1UEeDx.js";import"./clock-BcUfg-A3.js";import"./row-actions-D2-obDQJ.js";import"./rotate-ccw-o3IPokHS.js";import"./NavMenuButton-BEErFBgW.js";import"./menu-B4qp5h8W.js";import"./format-23Av07Go.js";import"./outbox-status-BlKn6P0x.js";import"./search-query-Cr_ZXBCp.js";function q(){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{q as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t,a4 as o}from"./index-C8zyy3XE.js";const n=()=>t.jsx(o,{});export{n as component};
|