@remit/web-client-dist 0.0.481 → 0.0.483
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-D6mVesqu.js +1 -0
- package/assets/CalendarShell-CbesY9P5.js +1 -0
- package/assets/EmptyState-DYWkEoYy.js +1 -0
- package/assets/{ErrorState-CBV6FtSJ.js → ErrorState-CQA1uNfQ.js} +1 -1
- package/assets/FlaggedPane-DoeXJfm_.js +1 -0
- package/assets/FullCompose-DdXnvGhK.js +1 -0
- package/assets/MailListHeader-Dv4RRNrm.js +7 -0
- package/assets/MailNav-v3LcAYtx.js +1 -0
- package/assets/MailShell-CqyZkGBA.js +1 -0
- package/assets/{MailViewChrome-CNywrIYr.js → MailViewChrome-BrAblQ-h.js} +1 -1
- package/assets/MailboxPane-B1OopvI6.js +1 -0
- package/assets/{NavMenuButton-meKsCAv8.js → NavMenuButton-DsipgLLk.js} +1 -1
- package/assets/OnboardingWizard-LMPbQ6jT.js +1 -0
- package/assets/OpenCalendarEvent-jziTx8_b.js +1 -0
- package/assets/OutboxPane-C5Ns55rS.js +1 -0
- package/assets/_calendarObjectId-BwZvTd4q.js +1 -0
- package/assets/_mailboxId-r4aTgexi.js +1 -0
- package/assets/_messageId-B1vH4rgJ.js +1 -0
- package/assets/_messageId-BtEEXwAi.js +1 -0
- package/assets/_messageId-Df_PxEto.js +1 -0
- package/assets/_outboxMessageId-CxMGfZJP.js +1 -0
- package/assets/_recurrenceId-C2heuIxv.js +1 -0
- package/assets/_threadId-BCSAHVdO.js +1 -0
- package/assets/_threadId-qoVrigtw.js +1 -0
- package/assets/_threadId-vleFQxLm.js +1 -0
- package/assets/_view._date-kUsauS8B.js +1 -0
- package/assets/accounts-Dzj3yoGR.js +1 -0
- package/assets/advanced-DUCDPZSq.js +4 -0
- package/assets/appearance-BOPQSuz4.js +1 -0
- package/assets/{attachment-file-B4nazean.js → attachment-file-DClGI76U.js} +1 -1
- package/assets/{avatar-lcZ4TVQd.js → avatar-wLH6-Ayd.js} +1 -1
- package/assets/{bottom-sheet-D-zZ-Ztc.js → bottom-sheet-D6dXigqc.js} +1 -1
- package/assets/{brief-Cn1i1Vih.js → brief-BVNqThW-.js} +1 -1
- package/assets/brief-DZPDGIPc.js +1 -0
- package/assets/{browser-ponyfill-DYQZeblA.js → browser-ponyfill-CH8d2KQ8.js} +2 -2
- package/assets/{bug-DQdIiRjm.js → bug-C9mbESSL.js} +1 -1
- package/assets/calendar-ZcQGYvWc.js +1 -0
- package/assets/calendar-_byPswbZ.js +1 -0
- package/assets/calendar-days-GutYioyG.js +1 -0
- package/assets/card-D55_7IJj.js +1 -0
- package/assets/chevron-left-KNAXuraL.js +1 -0
- package/assets/{circle-check-big-CyS5sZb6.js → circle-check-big-B1p6oh-i.js} +1 -1
- package/assets/circle-check-o0AqGZ-u.js +1 -0
- package/assets/{circle-help-DbSK9hyF.js → circle-help-DtvJPapE.js} +1 -1
- package/assets/clock-Z-oAijsz.js +1 -0
- package/assets/compose._-_outboxMessageId_-5aWrcne1.js +1 -0
- package/assets/compose._-_outboxMessageId_-Bi_nmcO4.js +1 -0
- package/assets/compose._-_outboxMessageId_-D3DAlT64.js +1 -0
- package/assets/compose._-_outboxMessageId_-PDfNjd_n.js +1 -0
- package/assets/config-import-CMt0F7iy.js +1 -0
- package/assets/{confirm-dialog-BeWZSgTL.js → confirm-dialog-XKVleo_p.js} +1 -1
- package/assets/credential-steps-Bhbo8-zA.js +1 -0
- package/assets/download-BzIqNtrq.js +1 -0
- package/assets/filters-Cp8CCnd5.js +1 -0
- package/assets/{flagged-D4rwWprf.js → flagged-CLgTXep4.js} +1 -1
- package/assets/flagged-D-ptU5v2.js +1 -0
- package/assets/folders-BiY-9lME.js +1 -0
- package/assets/{format-Dquh5i8-.js → format-CCaI2KqP.js} +1 -1
- package/assets/{help-copy-DryiNLYs.js → help-copy-DawC2xSA.js} +1 -1
- package/assets/import-CJAbCD1j.js +1 -0
- package/assets/index-BDh85s_o.js +1 -0
- package/assets/index-BluhX7J5.js +1 -0
- package/assets/index-BqjhYbTK.js +1 -0
- package/assets/index-BtEEXwAi.js +1 -0
- package/assets/index-CJDhCMZY.js +1 -0
- package/assets/index-CeziyGm_.js +1 -0
- package/assets/index-CxA7LBuE.js +1 -0
- package/assets/index-D8-XdCBI.js +1 -0
- package/assets/{index-DNl2PEHq.css → index-DYO-sbPN.css} +1 -1
- package/assets/index-Df_PxEto.js +1 -0
- package/assets/index-lqmSDAG_.js +1 -0
- package/assets/{index-BMM2gkfY.js → index-lxVTsHBH.js} +65 -65
- package/assets/{index-znJrox9Y.js → index-y3enq74c.js} +12 -12
- package/assets/kbd-Ds8JAL-i.js +1 -0
- package/assets/labels-CwARLqAD.js +1 -0
- package/assets/mail-Bux3edOt.js +1 -0
- package/assets/mail-CSpgLNSC.js +1 -0
- package/assets/menu-D6aq1T1f.js +1 -0
- package/assets/minus-DW1FraKg.js +1 -0
- package/assets/new-DwJ7NLZR.js +1 -0
- package/assets/onboarding-0lqsEEMH.js +1 -0
- package/assets/onboarding-completion-WuK4B8wi.js +1 -0
- package/assets/outbox-4__1O2vy.js +1 -0
- package/assets/{pencil-BJbvhQrw.js → pencil-DJPntSjN.js} +1 -1
- package/assets/{rich-text-Dyp4iBOD.js → rich-text-Ticmqq6R.js} +15 -15
- package/assets/{rich-text-spellcheck-worker-provider-VN94aKh3.js → rich-text-spellcheck-worker-provider-CEjXNkTo.js} +1 -1
- package/assets/rotate-ccw-Snzk6-SP.js +1 -0
- package/assets/row-actions-BY8sJ70m.js +1 -0
- package/assets/search-mirror-CgMxavNa.js +1 -0
- package/assets/{search-scope-DTcpOp3S.js → search-scope-B5-OK3Cq.js} +1 -1
- package/assets/search-token-index-D1mRODfF.js +1 -0
- package/assets/sections-BaNfgGs8.js +1 -0
- package/assets/senders-DtfLvp-S.js +1 -0
- package/assets/settings-JoaCyeEy.js +1 -0
- package/assets/settings-screen-D5PdsyBl.js +1 -0
- package/assets/shield-check-Bvnu7s8U.js +1 -0
- package/assets/{suggested-vips-CmHb5WaT.js → suggested-vips-W8f9qNN8.js} +1 -1
- package/assets/useCalendarData-CBjm4DbE.js +1 -0
- package/assets/{useDebouncedValue-DlyzBdqd.js → useDebouncedValue-D4EGUdvx.js} +1 -1
- package/assets/useFilters-CW_hrFZo.js +1 -0
- package/assets/useLabels-Dlob_XK-.js +1 -0
- package/assets/useLayoutTier-Ciq4HlaK.js +1 -0
- package/assets/{useMessageBodyContent-DHYriZRr.js → useMessageBodyContent-CUM4C6Cq.js} +1 -1
- package/assets/useQueries-CPnZMt_1.js +1 -0
- package/assets/useRefreshControl-DiNXvxEh.js +1 -0
- package/assets/{useSearchTokenContext-Dpl3C3yN.js → useSearchTokenContext-mRvSGuNd.js} +4 -4
- package/assets/useSemanticSearch-DqVnsXbc.js +1 -0
- package/assets/useSignature-CrrwTrAx.js +1 -0
- package/index.html +2 -2
- package/package.json +1 -1
- package/assets/BriefPane-BH4C3dLA.js +0 -1
- package/assets/FlaggedPane-Bx8o8jcX.js +0 -1
- package/assets/FullCompose-DQRblSEf.js +0 -1
- package/assets/MailListHeader-BpL0hiB2.js +0 -7
- package/assets/MailShell-zSsU-lz6.js +0 -1
- package/assets/MailboxPane-CBUf4RMT.js +0 -1
- package/assets/OnboardingWizard-CVgzD3hy.js +0 -1
- package/assets/OutboxPane-BxAQvF2m.js +0 -1
- package/assets/_mailboxId-BjXkByox.js +0 -1
- package/assets/_messageId-C3Ex2aTK.js +0 -1
- package/assets/_messageId-C_uTJLZJ.js +0 -1
- package/assets/_messageId-Cq1MMY1y.js +0 -1
- package/assets/_outboxMessageId-yXv0wqF1.js +0 -1
- package/assets/_threadId-9F3WBJ7b.js +0 -1
- package/assets/_threadId-CHYDYhMA.js +0 -1
- package/assets/_threadId-DAypvq_q.js +0 -1
- package/assets/accounts-ywyLeeZ4.js +0 -1
- package/assets/advanced-BWphupC9.js +0 -4
- package/assets/appearance-DIb1edPD.js +0 -1
- package/assets/brief-QvkLl3Xq.js +0 -1
- package/assets/circle-check-wwq1h3jr.js +0 -1
- package/assets/clock-KiLfjGAs.js +0 -1
- package/assets/compose._-_outboxMessageId_-B0wVDNtg.js +0 -1
- package/assets/compose._-_outboxMessageId_-BgkhRDHR.js +0 -1
- package/assets/compose._-_outboxMessageId_-IlQ7bZjJ.js +0 -1
- package/assets/compose._-_outboxMessageId_-ckob2lG-.js +0 -1
- package/assets/download-CCD9VEcr.js +0 -1
- package/assets/filters-DQwnkuFu.js +0 -1
- package/assets/flagged-KEPxze7A.js +0 -1
- package/assets/folders-DSaMJ8g_.js +0 -1
- package/assets/index-B8kF4cHs.js +0 -1
- package/assets/index-BwO3HmU5.js +0 -1
- package/assets/index-C_uTJLZJ.js +0 -1
- package/assets/index-Cq1MMY1y.js +0 -1
- package/assets/index-D81-y_-k.js +0 -1
- package/assets/index-DMMbHmw7.js +0 -1
- package/assets/index-DhPAqRyZ.js +0 -1
- package/assets/index-kEVKBUOf.js +0 -1
- package/assets/kbd-B-P9r9YU.js +0 -1
- package/assets/labels-B09LuD3F.js +0 -1
- package/assets/mail-5WLfHo9K.js +0 -1
- package/assets/mail-CyEa53oG.js +0 -1
- package/assets/menu-Rr3_qIop.js +0 -1
- package/assets/onboarding-DD5frk6X.js +0 -1
- package/assets/outbox-DR0YZs6I.js +0 -1
- package/assets/rotate-ccw-CrVofVFV.js +0 -1
- package/assets/row-actions-Bgax_YZA.js +0 -1
- package/assets/search-mirror-Lf1ogSTC.js +0 -1
- package/assets/search-token-index-BxytxF1H.js +0 -1
- package/assets/senders-dS1BVDQU.js +0 -1
- package/assets/settings-Cs9rwA_N.js +0 -1
- package/assets/settings-screen-D0fhHptg.js +0 -1
- package/assets/shield-check-BktB9xgz.js +0 -1
- package/assets/useFilters-CJkmZ6i7.js +0 -1
- package/assets/useLabels-DL6gxLzs.js +0 -1
- package/assets/useQueries-B-aYaD8d.js +0 -1
- package/assets/useRefreshControl-DUEqZD7x.js +0 -1
- package/assets/useSemanticSearch-DCoRQGtD.js +0 -1
- package/assets/useSignature-D4_HRnT6.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as X,i as Z,b7 as ee,b8 as te,r as x,b9 as se,j as t,ba as ae,bb as ie,L as R,f as N,bc as ne,aH as re,g as oe,bd as le,be as ce,a2 as de,c as P,G as me,bf as ue,ad as pe,ae as xe,bg as fe,aV as he,u as ge,d as be,aK as ve,aM as ye}from"./index-lxVTsHBH.js";import{S as je}from"./settings-screen-D5PdsyBl.js";import{B as Ne}from"./bottom-sheet-D6dXigqc.js";import{u as Ce,a as Se}from"./useLabels-Dlob_XK-.js";import{b as Me,N as S,p as Fe,u as Ie,r as we,a as Ee,S as L,c as Oe,n as De,f as Ae,d as Le,e as ke,g as Te}from"./useFilters-CW_hrFZo.js";import{C as A}from"./circle-check-o0AqGZ-u.js";import{E as $}from"./ErrorState-CQA1uNfQ.js";import"./avatar-wLH6-Ayd.js";import"./chevron-left-KNAXuraL.js";import"./menu-D6aq1T1f.js";import"./circle-help-DtvJPapE.js";const Re=(e,s)=>{const r=X(),i=Z({...te(),onSuccess:()=>{e&&(r.invalidateQueries({queryKey:Me(e)}),s&&r.invalidateQueries({queryKey:ee({path:{accountId:e,filterId:s}})}))}}),{mutate:c}=i;return{updateFilter:x.useCallback(d=>{!e||!s||c({path:{accountId:e,filterId:s},body:d})},[e,s,c]),isPending:i.isPending,isSuccess:i.isSuccess,isError:i.isError,error:i.error,reset:i.reset}},Pe=(e,s=!1)=>({clauses:e.literalClauses.map((i,c)=>({id:`clause-${c}`,field:i.field,value:i.value})),matchOperator:e.matchOperator==="And"?"all":"any",widen:e.hasAnchor?{anchorCount:1,...s?{inactive:!0}:{}}:void 0,moveMailboxId:e.actionMailboxId!==S?e.actionMailboxId:void 0,labelId:e.actionLabelId!==S?e.actionLabelId:void 0,scope:e.scope==="Temporary"?"until":"standing",until:e.scope==="Temporary"?$e(e.expiresAt):void 0,name:e.name}),$e=e=>{if(!e)return"";const s=Date.parse(e);if(Number.isNaN(s))return"";const r=new Date(s),i=c=>String(c).padStart(2,"0");return`${r.getFullYear()}-${i(r.getMonth()+1)}-${i(r.getDate())}`},k=e=>JSON.stringify({clauses:e.clauses.map(s=>[s.field,s.value]),operator:e.matchOperator,move:e.moveMailboxId??null,label:e.labelId??null,widen:e.widen?e.widen.inactive?"inactive":"active":"none"}),z=(e,s)=>k(e)!==k(s),T=e=>JSON.stringify({scope:e.scope==="until"?"until":"standing",until:e.scope==="until"?e.until??"":""}),_=(e,s)=>T(e)!==T(s),ze=(e,s)=>{const r={},i=(e.name??"").trim();return i!==(s.name??"").trim()&&(r.name=i),z(e,s)&&(r.matchOperator=e.matchOperator==="all"?"And":"Or",r.literalClauses=e.clauses.map(c=>({field:c.field,value:c.value})),r.actionMailboxId=e.moveMailboxId??S,r.actionLabelId=e.labelId??S),_(e,s)&&(r.scope=e.scope==="until"?"Temporary":"Standing",e.scope==="until"&&(r.expiresAt=Fe(e.until??""))),r};function _e({accountId:e,filter:s,folders:r,delimiter:i,labels:c,semanticUnavailable:g=!1,onClose:d}){const f=x.useMemo(()=>Pe(s,g),[s,g]),[n,l]=x.useState(f),[m,u]=x.useState(),[h,v]=x.useState(!1),F=x.useRef(0),{count:C}=Ie(e,we(n)),j=Re(e,s.filterId),b=Ee(e),{createFolderIn:M}=se(e),{createLabel:E}=Ce(e),I=async o=>{const a=await E(o);return{id:a.labelId,name:a.name,color:a.color}},p=()=>u({mode:"add",draft:{field:L[0],value:""}}),w=o=>{const a=n.clauses.find(y=>y.id===o);a&&u({mode:"edit",clauseId:o,draft:{field:a.field,value:a.value}})},O=o=>u(a=>a&&{...a,draft:{...a.draft,field:o}}),K=o=>u(a=>a&&{...a,draft:{...a.draft,value:o}}),U=()=>{if(!m)return;const o=m.draft.field,a=De(o,m.draft.value);a!==""&&(l(y=>m.mode==="edit"&&m.clauseId?{...y,clauses:y.clauses.map(D=>D.id===m.clauseId?{id:D.id,field:o,value:a}:D)}:(F.current+=1,{...y,clauses:[...y.clauses,{id:`new-${F.current}`,field:o,value:a}]})),u(void 0))},B=o=>l(a=>({...a,clauses:a.clauses.filter(y=>y.id!==o)})),G=o=>l(a=>({...a,matchOperator:o})),H=o=>l(a=>({...a,moveMailboxId:o||void 0})),Q=o=>l(a=>({...a,labelId:o||void 0})),V=o=>l(a=>({...a,name:o})),J=o=>l(a=>({...a,scope:o,until:o==="until"?a.until:void 0})),q=o=>l(a=>({...a,until:o})),W=()=>{const o=z(n,f)||_(n,f),a=ze(n,f);if(Object.keys(a).length===0){d();return}v(o),j.updateFilter(a)},Y=()=>b.start(Oe(n));return b.isStarting||b.isRunning||b.isDone?t.jsx(Ge,{progress:b.progress,isDone:b.isDone,onClose:d}):j.isPending?t.jsx(Ke,{}):j.isError?t.jsx(He,{onRetry:j.reset,onClose:d}):j.isSuccess?h?t.jsx(Be,{preview:ae(C),blocked:C.status!=="ready"||C.stale===!0,onReapply:Y,onClose:d}):t.jsx(Ue,{onClose:d}):t.jsx(ie,{rule:n,folders:r,delimiter:i,labels:c,preview:C,semanticAvailable:!1,clauseFields:L,anchorLocked:!0,clauseEdit:m,onStartAddClause:p,onStartEditClause:w,onRemoveClause:B,onChangeDraftField:O,onChangeDraftValue:K,onSubmitClause:U,onCancelClause:()=>u(void 0),onChangeMatchOperator:G,onChangeMove:H,onCreateFolder:M,onChangeLabel:Q,onCreateLabel:I,onChangeName:V,onChangeScope:J,onChangeUntil:q,onCommit:W,onCancel:d})}function Ke(){return t.jsxs("div",{className:"flex flex-col items-center gap-3 px-5 py-10 text-center",children:[t.jsx(R,{className:"size-8 animate-spin text-accent-2"}),t.jsx("p",{className:"text-sm font-medium text-fg",children:"Saving changes…"})]})}function Ue({onClose:e}){return t.jsxs("div",{className:"flex flex-col items-center gap-3 px-5 py-8 text-center",children:[t.jsx(A,{className:"size-8 text-positive"}),t.jsx("p",{className:"text-sm font-medium text-fg",children:"Filter updated"}),t.jsx(N,{variant:"primary",onClick:e,className:"mt-2",children:"Done"})]})}function Be({preview:e,blocked:s,onReapply:r,onClose:i}){return t.jsxs("div",{className:"flex flex-col items-center gap-3 px-5 py-8 text-center",children:[t.jsx(A,{className:"size-8 text-positive"}),t.jsx("p",{className:"text-sm font-medium text-fg",children:"Rule saved"}),t.jsxs("p",{className:"max-w-xs text-xs text-fg-muted",children:["New mail follows the rule automatically. ",e," — move the mail already in your mailbox too?"]}),t.jsxs("div",{className:"mt-2 flex gap-2",children:[t.jsx(N,{variant:"primary",onClick:r,disabled:s,children:"Move existing mail"}),t.jsx(N,{variant:"ghost",onClick:i,children:"Not now"})]})]})}function Ge({progress:e,isDone:s,onClose:r}){const i=e.state==="Failed";return t.jsxs("div",{className:"flex flex-col items-center gap-3 px-5 py-8 text-center",children:[s?i?t.jsx("span",{className:"text-sm font-semibold text-danger",children:"Move failed"}):t.jsx(A,{className:"size-8 text-positive"}):t.jsx(R,{className:"size-8 animate-spin text-accent-2"}),!s&&t.jsx("p",{className:"text-sm font-medium text-fg",children:"Moving existing mail…"}),s&&!i&&t.jsxs("div",{className:"text-sm text-fg",children:[t.jsx("p",{className:"font-medium",children:"Done"}),t.jsxs("p",{className:"mt-1 text-xs text-fg-muted",children:[e.appliedCount," of ",e.matchedCount," moved",e.failedCount>0?` · ${e.failedCount} failed`:"","."]})]}),s&&i&&t.jsx("p",{className:"max-w-xs text-xs text-fg-muted",children:e.errorMessage||"Something went wrong. Please try again."}),s&&t.jsx(N,{variant:"primary",onClick:r,className:"mt-2",children:"Done"})]})}function He({onRetry:e,onClose:s}){return t.jsxs("div",{className:"flex flex-col items-center gap-3 px-5 py-8 text-center",children:[t.jsx("p",{className:"text-sm font-medium text-danger",children:"Couldn't save changes"}),t.jsx("p",{className:"max-w-xs text-xs text-fg-muted",children:"Please try again."}),t.jsxs("div",{className:"mt-2 flex gap-2",children:[t.jsx(N,{variant:"primary",onClick:e,children:"Try again"}),t.jsx(N,{variant:"ghost",onClick:s,children:"Not now"})]})]})}function Qe({accountId:e,filter:s,folders:r,delimiter:i,labels:c,semanticUnavailable:g,onClose:d}){const f=ne(),n=t.jsx(_e,{accountId:e,filter:s,folders:r,delimiter:i,labels:c,semanticUnavailable:g,onClose:d});return f?t.jsx(re,{open:!0,onClose:d,title:"Filter rule",children:n}):t.jsx(Ne,{open:!0,onClose:d,dismissLabel:"Dismiss filter rule",children:n})}function Ve({filters:e,mailboxName:s,labelById:r,onEdit:i,onDelete:c,deletingFilterId:g,semanticUnavailable:d=!1,now:f=Date.now()}){return e.length===0?t.jsx("p",{className:"py-6 text-sm text-fg-muted",children:"No filters yet. Select a few messages in the inbox and choose Organize to make one."}):t.jsx("ul",{className:"divide-y divide-line rounded-md border border-line",children:e.map(n=>{const l=Ae(n,f),m=l==="Expired",u=n.actionMailboxId!==S?s(n.actionMailboxId):void 0,h=n.actionLabelId!==S?r.get(n.actionLabelId):void 0,v=Le(n.expiresAt);return t.jsxs("li",{className:"flex items-start gap-3 px-3 py-2.5",children:[t.jsxs("button",{type:"button",onClick:()=>i(n.filterId),"aria-label":`Edit filter ${n.name}`,className:"min-w-0 flex-1 rounded-sm text-left hover:opacity-80",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:`truncate text-sm font-medium ${m?"text-fg-muted":"text-fg"}`,children:n.name}),t.jsx(oe,{tone:m?"neutral":"positive",dot:!0,children:l})]}),t.jsxs("p",{className:"mt-0.5 text-xs text-fg-subtle",children:[u?`Moves matches to ${u}`:"No move action",n.scope==="Temporary"&&v?m?` · expired ${v}`:` · until ${v}`:n.scope==="Standing"?" · always":""]}),(n.hasAnchor||h)&&t.jsxs("div",{className:"mt-1.5 flex flex-wrap gap-1.5",children:[n.hasAnchor&&t.jsx(le,{widen:{anchorCount:1,...d?{inactive:!0}:{}}}),h&&t.jsx(ce,{label:{labelId:h.id,name:h.name,color:h.color}})]})]}),t.jsx(N,{variant:"ghost",size:"sm",icon:t.jsx(de,{className:"size-4 text-danger"}),onClick:()=>c(n.filterId),disabled:g===n.filterId,"aria-label":`Delete filter ${n.name}`})]},n.filterId)})})}const Je=t.jsxs("div",{className:"space-y-3",children:[t.jsxs("p",{children:["Filters are the standing rules Organize creates. A"," ",t.jsx("strong",{children:"Standing"})," filter keeps working on new mail; a"," ",t.jsx("strong",{children:"Temporary"})," one stops on its own at the date you picked."]}),t.jsx("p",{children:"An expired filter isn't deleted the instant it lapses — it stays here, marked Expired, so you can see what it did and when it stopped."})]});function qe({account:e}){const s=e.accountId,{filters:r,isPending:i,isError:c,error:g,refetch:d}=ke(s),{deleteFilter:f,deletingFilterId:n}=Te(s),[l,m]=x.useState(),{data:u}=P({...me({path:{accountId:s}}),staleTime:1/0}),h=ue(),v=x.useMemo(()=>pe(e.folderAppointments),[e.folderAppointments]),F=x.useCallback(p=>{const w=u?.items.find(O=>O.mailboxId===p);if(w)return xe(w,v.get(p),h)},[u?.items,v,h]),C=x.useMemo(()=>fe({mailboxes:u?.items??[],folderAppointments:e.folderAppointments,translator:h}),[u?.items,e.folderAppointments,h]),j=he(u?.items??[]),{labels:b}=Se(s),M=x.useMemo(()=>b.map(p=>({id:p.labelId,name:p.name,color:p.color})),[b]),E=x.useMemo(()=>new Map(M.map(p=>[p.id,p])),[M]),I=r.find(p=>p.filterId===l);return t.jsxs("section",{className:"space-y-2",children:[t.jsx("h2",{className:"text-sm font-semibold text-fg",children:e.email}),I&&t.jsx(Qe,{accountId:s,filter:I,folders:C,delimiter:j,labels:M,onClose:()=>m(void 0)}),i?t.jsx("div",{className:"h-16 animate-pulse rounded-md border border-line bg-surface","aria-busy":"true","aria-label":`Loading filters for ${e.email}`}):c?t.jsx($,{variant:"inline",title:`Couldn't load filters for ${e.email}`,error:g,onRetry:()=>{d()}}):t.jsx(Ve,{filters:r,mailboxName:F,labelById:E,onEdit:m,onDelete:f,deletingFilterId:n})]})}function ot(){const e=ge(),[s,r]=x.useState(!0),{data:i,isPending:c,isError:g,error:d,refetch:f}=P(be()),n=l=>{const m=ye[l];m&&e({to:m})};return t.jsx(je,{items:ve,activeId:"filters",title:"Filters",description:"Standing and temporary rules created by Organize, per account.",help:Je,helpOpen:s,onToggleHelp:()=>r(l=>!l),onSelect:n,onBackToMail:()=>{e({to:"/mail"})},children:c?t.jsx("div",{className:"h-24 animate-pulse rounded-sm border border-line bg-surface","aria-busy":"true","aria-label":"Loading accounts"}):g?t.jsx($,{title:"Couldn't load accounts",error:d,onRetry:()=>{f()}}):i.accounts.length===0?t.jsx("p",{className:"py-12 text-sm text-fg-muted",children:"No accounts configured."}):t.jsx("div",{className:"space-y-8",children:i.accounts.map(l=>t.jsx(qe,{account:l},l.accountId))})})}export{qe as AccountFilters,ot as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as r}from"./index-
|
|
1
|
+
import{j as r}from"./index-lxVTsHBH.js";import{E as o}from"./ErrorState-CQA1uNfQ.js";const l=({error:t,reset:e})=>r.jsx("div",{className:"flex h-full items-center justify-center bg-canvas p-4",children:r.jsx(o,{title:"Couldn't load your starred mail",error:t,onRetry:e})});export{l as errorComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as o,O as i}from"./index-lxVTsHBH.js";import{a as m}from"./MailShell-CqyZkGBA.js";import{F as r}from"./FlaggedPane-DoeXJfm_.js";import{d as p}from"./search-token-index-D1mRODfF.js";import{u as e}from"./search-mirror-CgMxavNa.js";import"./FullCompose-DdXnvGhK.js";import"./ErrorState-CQA1uNfQ.js";import"./index-y3enq74c.js";import"./useMessageBodyContent-CUM4C6Cq.js";import"./useSignature-CrrwTrAx.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-D4EGUdvx.js";import"./sections-BaNfgGs8.js";import"./format-CCaI2KqP.js";import"./confirm-dialog-XKVleo_p.js";import"./useSearchTokenContext-mRvSGuNd.js";import"./kbd-Ds8JAL-i.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-Dv4RRNrm.js";import"./attachment-file-DClGI76U.js";import"./mail-CSpgLNSC.js";import"./avatar-wLH6-Ayd.js";import"./EmptyState-DYWkEoYy.js";import"./download-BzIqNtrq.js";import"./useLayoutTier-Ciq4HlaK.js";import"./shield-check-Bvnu7s8U.js";import"./useFilters-CW_hrFZo.js";import"./useQueries-CPnZMt_1.js";import"./minus-DW1FraKg.js";import"./clock-Z-oAijsz.js";import"./menu-D6aq1T1f.js";import"./MailViewChrome-BrAblQ-h.js";import"./wizard-selection-B1bng5Jq.js";function G(){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{G as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e,f as N,a2 as q,bh as W,r as c,aH as Y,X,aO as he,ay as Z,a0 as xe,aR as Q,bi as fe,ax as pe,aA as ge,B as L,aQ as be,bj as ve,h as J,N as ee,o as se,bk as je,bl as ye,aN as Ne,M as ke,bm as Ce,bn as _,bo as we,bp as Se,bq as te,br as Me,bs as H,b9 as ae,bf as re,bg as Ie,ae as B,ad as ne,L as G,bt as V,bu as Ae,aq as Ee,bv as De,u as Oe,c as ie,d as Te,aK as Re,aM as Fe,G as Pe,i as U,bw as $e,bx as ze,by as Le,aW as _e,bz as qe,bA as Be}from"./index-lxVTsHBH.js";import{P as Ge}from"./pencil-DJPntSjN.js";import{S as Ke}from"./settings-screen-D5PdsyBl.js";import{E as oe}from"./ErrorState-CQA1uNfQ.js";import"./avatar-wLH6-Ayd.js";import"./chevron-left-KNAXuraL.js";import"./menu-D6aq1T1f.js";import"./circle-help-DtvJPapE.js";const Qe=({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(Ge,{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(q,{className:"size-3.5"}),"aria-label":u,disabled:o!==void 0,onClick:a})})]})},He=({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(W,{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(Qe,{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(Y,{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(Z,{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"],K="",We={mailboxId:null,source:"None"};function Ye(s){const t=s.messageCount===1?"msg":"msgs";return`${Q(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 Ze({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:j}=a,h=t.find(y=>y.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 I=(()=>{if(v==="None"){const y=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}.${y}`})}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 ${Q(h.providerPath,h.hierarchyDelimiter)} instead.`:"",D=`The folder you chose for ${f}${j?` — ${j} —`:""} 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??K,"aria-label":`Folder for ${f}`,"aria-describedby":I||v==="Stale"?g:void 0,onChange:y=>m(s,y.target.value===K?null:y.target.value),children:[e.jsx("option",{value:K,children:"None"}),t.map(y=>e.jsx("option",{value:y.mailboxId,children:Ye(y)},y.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(Z,{className:"flex-1",value:u,placeholder:f,"aria-label":`Display name for ${f}`,onChange:y=>l(y.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)})]})]}),I,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:D}),e.jsx(N,{variant:"secondary",size:"sm",className:"shrink-0",onClick:()=>i.current?.focus(),children:"Pick a folder"})]})})]})}function Je(){return 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 es({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 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]??We;return e.jsx(Ze,{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:Q(i.providerPath,i.hierarchyDelimiter)}),e.jsx("span",{className:"ml-auto shrink-0 text-2xs text-fg-subtle",children:le(i.messageCount)})]},i.mailboxId))})]})]})}const ss=12e4,ts=2e3,as="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(as);return a},rs=(s,t)=>ce(s,t).lastSyncedAt??0;async function ns({readMailboxes:s,mailboxId:t,since:a,signal:o,segmentMs:m=ss,pollIntervalMs:r=ts,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,is=s=>s instanceof Error?s.message:"Something went wrong.",$=s=>s.then(t=>({ok:!0,value:t}),t=>({ok:!1,error:is(t)})),os=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},ls=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 cs({accountId:s,mailboxId:t,onDeleted:a}){const o=J(),[m,r]=c.useState("idle"),[u,l]=c.useState(null),[i,d]=c.useState(),[g,p]=c.useState(),v=c.useRef(null),j=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 $(je({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(()=>ye({path:{accountId:s},throwOnError:!0}).then(({data:k})=>k.items.find(S=>S.mailboxId===t)?.messageCount??0),[s,t]),I=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 M=j.current!==void 0,C=await $((async()=>(M||(S.throwIfAborted(),j.current=rs(await I(),t),S.throwIfAborted(),p(Date.now()),await ke({path:{accountId:s},throwOnError:!0})),ns({readMailboxes:I,mailboxId:t,since:j.current??0,signal:S})))());return S.aborted?(r("idle"),j.current=void 0,{status:"failed"}):C.ok?C.value.status==="pending"?(r("check-stalled"),{status:"pending"}):(j.current=void 0,C.value.messageCount>0?(r("idle"),h(),{status:"blocked",messageCount:C.value.messageCount}):(await f(),{status:"deleted"})):(j.current=void 0,d(C.error),r("error"),{status:"failed"})},[s,t,I,f,h]),D=c.useCallback(()=>{v.current?.abort()},[]),y=c.useCallback(async k=>{const S=new AbortController;v.current=S;const{signal:M}=S;r("moving"),d(void 0);const C=await $(O());if(M.aborted)return;if(!C.ok){d(C.error),r("error");return}let x=Ce(C.value);l(x);const A=new Set;for(;;){if(M.aborted)return;const n=await $(os(t,A,Me,M));if(M.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(M.aborted)return;if(!T.ok){x=_(x,T.error),l(x),d(T.error),r("error");return}for(const P of b)A.add(P);x=Se(x,b.length),l(x)}const E=await $(ls(t,M));if(!M.aborted){if(!E.ok){x=_(x,E.error),l(x),d(E.error),r("error");return}if(E.value>0){const n=`${E.value} ${E.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,j.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:y,cancel:D,reset:R}}const z=s=>`${s} ${s===1?"email":"emails"}`;function ds({open:s,accountId:t,folder:a,mailboxes:o,appointments:m,onClose:r}){const[u,l]=c.useState(()=>H(a.messageCount)),[i,d]=c.useState(),[g,p]=c.useState(),{createFolderIn:v}=ae(t),j=re(),{phase:h,progress:f,errorMessage:O,checkStartedAt:I,deleteMailbox:w,deleteIfEmpty:D,moveThenDelete:y,cancel:R,reset:k}=cs({accountId:t,mailboxId:a.mailboxId,onDeleted:r}),[S,M]=c.useState("0:00"),C=h==="checking"||h==="check-stalled";c.useEffect(()=>{if(!C||I===void 0)return;const F=()=>M(De(Date.now()-I));F();const ue=setInterval(F,1e3);return()=>clearInterval(ue)},[C,I]),c.useEffect(()=>{s&&(l(H(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]),A=c.useCallback(async()=>{const F=await D();F.status==="blocked"&&(d(F.messageCount),l("choose-fate"))},[D]),E=c.useMemo(()=>Ie({mailboxes:o,folderAppointments:m,excludeMailboxId:a.mailboxId,translator:j}),[o,m,a.mailboxId,j]),n=E.find(F=>F.id===g),b=c.useMemo(()=>B(a,ne(m).get(a.mailboxId),j),[a,m,j]);if(!s)return null;const T=`Delete ${b}`,P=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(G,{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(G,{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:()=>A(),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(G,{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(q,{className:"size-3.5"}),onClick:()=>A(),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(P),". 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(q,{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(Ae,{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(P),"? 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(q,{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(P)," 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(W,{folders:E,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:()=>y(n.id),className:"h-11 w-full font-semibold",children:e.jsx("span",{className:"truncate",children:`Move ${z(P)} to ${n.label}`})})})]});return e.jsxs(Y,{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(Ee,{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]})}function ms({account:s}){const t=J(),a=s.accountId,o=re(),{data:m,isPending:r,isError:u,error:l,refetch:i}=ie(Pe({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,j]=c.useState(),[h,f]=c.useState(),[O,I]=c.useState(""),w=c.useMemo(()=>m?.items??[],[m]),D=c.useMemo(()=>ne(s.folderAppointments),[s.folderAppointments]),y=c.useMemo(()=>w.map(n=>({id:n.mailboxId,label:B(n,D.get(n.mailboxId),o),path:n.fullPath,deleteBlockedReason:Le(n,w,s.folderAppointments).message})),[w,D,o,s.folderAppointments]),R=(n,b)=>{g.mutate({path:{accountId:a,role:Be[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})),M={};for(const n of s.folderAppointments){const b=_e[n.role];b&&(M[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),A=x(h),E=x(v);return e.jsxs("div",{className:"space-y-4",children:[(g.isError||p.isError)&&e.jsx(L,{tone:"danger",variant:"soft",children:qe(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(es,{accountEmail:s.email,folders:S,appointments:M,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(He,{folders:y,delimiter:w[0]?.hierarchyDelimiter??"/",onCreateFolder:d,onRename:n=>{f(n.id),I(x(n.id)?.displayNameOverride?.trim()??"")},onDelete:n=>j(n.id),labels:{treeAriaLabel:`All folders for ${s.email}`}})})]}),A&&e.jsx(Ve,{open:!0,folderLabel:B(A,D.get(A.mailboxId),o),defaultLabel:B({fullPath:A.fullPath,hierarchyDelimiter:A.hierarchyDelimiter},D.get(A.mailboxId),o),name:O,onNameChange:I,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:A.mailboxId},body:{displayNameOverride:n===""?null:n}},{onSuccess:()=>f(void 0)})},onClose:()=>f(void 0)}),E&&e.jsx(ds,{open:!0,accountId:a,folder:E,mailboxes:w,appointments:s.folderAppointments,onClose:()=>j(void 0)})]})}function js(){const s=Oe(),[t,a]=c.useState(!0),{data:o,isPending:m,isError:r,error:u,refetch:l}=ie(Te()),i=d=>{const g=Fe[d];g&&s({to:g})};return e.jsx(Ke,{items:Re,activeId:"folders",title:"Folder roles",description:"Appoint which real folder fills each canonical role, per account.",help:e.jsx(Je,{}),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{js as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{aB as l,aC as T,cw as m,aD as u,cx as h,cy as D,cz as k,cA as d}from"./index-lxVTsHBH.js";l({kind:m("Boolean"),value:T()});l({kind:m("String"),value:u()});l({kind:m("Number"),value:h()});l({kind:m("StringList"),value:D(u())});l({kind:m("Map"),value:k(u(),u())});l({kind:m("MutedFlag"),value:l({value:T(),setAt:h(),setBy:u().optional(),expiresAt:h().optional(),reason:u().optional()})});const v=(e,t)=>{switch(e.kind){case"appointed":case"flagged":return{allowed:!0,mailbox:e.mailbox};case"proposed":return t==="resolved"?{allowed:!0,mailbox:e.mailbox}:{allowed:!1,reason:"unconfirmed"};case"appointment_stale":return{allowed:!1,reason:"stale"};default:return{allowed:!1,reason:"none"}}},x=(e,t)=>v(e,t).allowed,$={[d.Appointed]:{kind:"appointed",mailbox:null},[d.Flagged]:{kind:"flagged",mailbox:null},[d.Reserved]:{kind:"reserved",mailbox:null},[d.Proposed]:{kind:"proposed",mailbox:null},[d.Stale]:{kind:"appointment_stale",appointedMailboxId:"",fallback:{kind:"none"}},[d.None]:{kind:"none"}},M=(e,t)=>x($[e],t),g=()=>typeof navigator<"u"&&(navigator.language||navigator.languages?.[0])||"en-US",w=(e,t)=>new Intl.NumberFormat(g(),t).format(e),N=/^-?\d+$/,p=e=>{if(e instanceof Date)return e;if(typeof e=="number")return new Date(e);if(typeof e=="string"){const t=e.trim();return N.test(t)?new Date(Number(t)):new Date(t)}return new Date(Number.NaN)},b=e=>Number.isFinite(e.getTime()),c=(e,t)=>{const n=p(e);return b(n)?new Intl.DateTimeFormat(g(),t).format(n):""},S=(e,t)=>c(e,{short:{month:"short",day:"numeric"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"},time:{hour:"numeric",minute:"numeric"},datetime:{month:"short",day:"numeric",hour:"numeric",minute:"numeric"}}[t]),L=e=>{const t=p(e);if(!b(t))return"";const n=new Intl.RelativeTimeFormat(g(),{numeric:"auto"}),i=Date.now(),r=t.getTime()-i,s=Math.round(r/1e3),a=Math.round(r/(1e3*60)),o=Math.round(r/(1e3*60*60)),f=Math.round(r/(1e3*60*60*24)),y=Math.round(r/(1e3*60*60*24*7));return Math.abs(s)<60?n.format(s,"second"):Math.abs(a)<60?n.format(a,"minute"):Math.abs(o)<24?n.format(o,"hour"):Math.abs(f)<7?n.format(f,"day"):Math.abs(y)<4?n.format(y,"week"):S(t,"medium")},I=e=>{const t=p(e);if(!b(t))return"";const n=new Date,i=t.toDateString()===n.toDateString(),r=new Date(n);r.setDate(r.getDate()-1);const s=t.toDateString()===r.toDateString(),a=new Date(n);a.setDate(a.getDate()-6);const o=t>=a&&t<n,f=t.getFullYear()===n.getFullYear();return i?c(t,{hour:"numeric",minute:"numeric"}):s?"Yesterday":o?c(t,{weekday:"long"}):f?c(t,{month:"short",day:"numeric"}):c(t,{month:"short",day:"numeric",year:"numeric"})},F=e=>`Move ${e===1?"1":w(e)} ${e===1?"message":"messages"} to Trash?`,A=({targets:e,trashByAccount:t,hasAppointments:n,isError:i})=>{if(i)return"unavailable";if(!n||e.length===0)return"unknown";let r=!1,s=!1;for(const a of e){if(a.accountId===void 0)return"unknown";const o=t.get(a.accountId);if(o===void 0)return"unknown";if(o.source==="Stale")return"staleTrash";if(o.mailboxId===void 0)return"noTrash";o.mailboxId===a.mailboxId&&(r=!0,M(o.source,"confirmed")||(s=!0))}return s?"unconfirmed":r?"permanent":"trash"},R=e=>e==="permanent"||e==="unconfirmed",E=(e,t,n={})=>{const i=e===1?"1":w(e),r=e===1?"message":"messages",{trashFolderLabel:s,staleFolderLabel:a}=n;if(t==="noTrash")return{title:`Can't delete ${i} ${r} yet`,description:"No folder on this account is set as Trash, so there is nowhere to move the mail. Nothing has been deleted.",confirmLabel:"Pick a Trash folder"};if(t==="staleTrash")return{title:`Can't delete ${i} ${r} yet`,description:a?`The folder you set as this account's Trash — ${a} — is gone from the mail server. Nothing has been deleted.`:"The folder you set as this account's Trash is gone from the mail server. Nothing has been deleted.",confirmLabel:"Pick another folder"};if(t==="unconfirmed"){const o=s?`reader files this account's deleted mail in ${s} because of its name — nobody confirmed it.`:"reader files this account's deleted mail in a folder it matched by name — nobody confirmed it.";return{title:"Confirm this account's Trash folder",description:e>0?`${o} Deleting ${i} ${r} there erases them from the mail server, and that cannot be restored. Nothing has been deleted.`:`${o} Emptying a folder erases everything in it from the mail server, and that cannot be restored. Nothing has been emptied.`,confirmLabel:"Confirm the folder"}}return t==="unavailable"?{title:`Can't delete ${i} ${r}`,description:"reader couldn't read this account's folder settings, so it can't say whether this would move the mail to Trash or erase it. Nothing has been deleted.",confirmLabel:"Sign in again"}:t==="unknown"?{title:`Delete ${i} ${r}?`,description:"Checking where this account files deleted mail…",confirmLabel:"Delete"}:t==="permanent"?{title:`Permanently delete ${i} ${r}?`,description:"They are erased from the mail server and cannot be restored.",confirmLabel:"Delete permanently"}:{title:F(e),description:"You can restore them from Trash later.",confirmLabel:"Move to Trash"}};export{c as a,I as b,w as c,E as d,S as e,L as f,A as g,R as h,p as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e}from"./index-
|
|
1
|
+
import{j as e}from"./index-lxVTsHBH.js";import{K as s}from"./kbd-Ds8JAL-i.js";const a=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(s,{children:"v"})," VIP,"," ",e.jsx(s,{children:"m"})," mute, ",e.jsx(s,{children:"b"})," block. Every rule an automation creates shows up here and can be removed."]})]}),r=e.jsxs("div",{className:"space-y-3",children:[e.jsxs("p",{children:[e.jsx("strong",{className:"text-fg",children:"Sync health"})," shows the IMAP connection state and the last successful sync per account."]}),e.jsxs("p",{children:[e.jsx("strong",{className:"text-fg",children:"Error"})," means the last connection attempt failed — the raw server response is shown on the card. Reconnect re-runs the connection test from the add-account wizard."]}),e.jsxs("p",{children:[e.jsx("strong",{className:"text-fg",children:"Muted"})," accounts keep syncing but stay out of the daily brief and unified counts."]})]}),c=e.jsxs("div",{className:"space-y-3",children:[e.jsxs("p",{children:[e.jsx("strong",{className:"text-fg",children:"Density"})," controls how much information fits on screen. Compact is great on smaller displays; Comfortable gives each item more breathing room."]}),e.jsxs("p",{children:[e.jsx("strong",{className:"text-fg",children:"Theme"})," switches between light, dark, and system-preference modes instantly. The change takes effect across the whole app immediately."]}),e.jsx("p",{className:"text-2xs text-fg-subtle",children:"Preferences are stored locally in this browser. Server-side sync is coming soon."})]}),i=e.jsxs("div",{className:"space-y-3",children:[e.jsxs("p",{children:[e.jsx("strong",{className:"text-fg",children:"Notification rules"})," and data export are coming in a future release."]}),e.jsxs("p",{children:["A message Remit cannot read is"," ",e.jsx("strong",{className:"text-fg",children:"set aside"})," rather than skipped, and the folder keeps syncing. Setting one aside is a defect in Remit, so every entry can be reported with the diagnostics already attached."]})]});export{r as a,i as b,c,a as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as H,j as e,B as x,f,L as _,X as Ee,r,I as Oe,g as O,h as pe,c as ze,d as Be,i as q,s as de,k as $e,l as Pe,m as Le,n as De,o as J,q as qe}from"./index-lxVTsHBH.js";import{W as k,C as fe,a as le,u as We,b as He,c as _e,d as Ke,S as Qe,R as Ue}from"./credential-steps-Bhbo8-zA.js";import{c as ge,f as Ve,v as xe,r as Ge,a as Je,b as ue,w as me,p as Xe,W as Ye,s as Ze,g as et}from"./config-import-CMt0F7iy.js";import{F as tt}from"./card-D55_7IJj.js";import{c as st}from"./onboarding-completion-WuK4B8wi.js";const nt=H("FolderClock",[["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}],["path",{d:"M7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2",key:"1urifu"}],["path",{d:"M16 14v2l1 1",key:"xth2jh"}]]);const it=H("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);const at=H("Merge",[["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}],["path",{d:"M12 2v10.3a4 4 0 0 1-1.172 2.872L4 22",key:"1hyw0i"}],["path",{d:"m20 22-5-5",key:"1m27yz"}]]);const rt=H("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]),y=["File","Review","Credentials","Folders"];function Y({children:t}){return e.jsx("code",{className:"block rounded bg-surface-sunken px-2.5 py-2 text-2xs text-fg-muted",children:t})}function ot({state:t="idle",file:n,ready:i=!1,failure:s,onChoose:d,onDragStateChange:l,onNext:m}){const u=r.useId(),w=r.useRef(null),h=t==="dragging",j=t==="reading",S=t==="checking",R=j||S,N=p=>{p.preventDefault(),l?.(!1);const b=p.dataTransfer.files.item(0);b&&d?.(b)};return e.jsx(k,{steps:y,activeStep:0,title:"Import a config file",subtitle:"Accounts, folder roles, rules, senders and appearance — everything except passwords.",footer:e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-2xs text-fg-subtle",children:"Nothing is written until you have seen what will change."}),e.jsx(f,{variant:"primary",disabled:R||!i,icon:R?e.jsx(_,{className:"size-3.5 animate-spin"}):void 0,onClick:m,children:j?"Reading…":S?"Checking…":"Check the file"})]}),children:e.jsxs("div",{className:"space-y-4",children:[s&&e.jsxs("div",{className:"space-y-2",children:[e.jsx(x,{tone:"danger",children:s.title}),e.jsx("p",{className:"text-sm text-fg",children:s.explanation}),e.jsx("p",{className:"text-sm text-fg-muted",children:s.fix}),e.jsx(Y,{children:s.raw})]}),e.jsxs("div",{onDragOver:p=>{p.preventDefault(),l?.(!0)},onDragLeave:()=>l?.(!1),onDrop:N,className:h?"flex flex-col items-center gap-3 rounded-sm border-2 border-dashed border-accent bg-accent-soft px-4 py-9 text-center":"flex flex-col items-center gap-3 rounded-sm border-2 border-dashed border-line px-4 py-9 text-center",children:[e.jsx("span",{className:"flex size-11 items-center justify-center rounded-md bg-surface-sunken",children:e.jsx(rt,{className:"size-5 text-fg-muted"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-fg",children:h?"Drop it here":"Drop a config file here, or choose one"}),e.jsx("p",{className:"mt-1 text-xs text-fg-subtle",children:"A .json file written by Reader — up to 2 MB."})]}),e.jsx("input",{ref:w,id:u,type:"file",accept:"application/json,.json",className:"sr-only",onChange:p=>{const b=p.target.files?.item(0);b&&d?.(b)}}),e.jsx(f,{variant:"secondary",size:"sm",onClick:()=>w.current?.click(),children:"Choose file"})]}),n&&e.jsxs("div",{className:"flex items-start gap-3 rounded-sm border border-line px-3 py-2.5",children:[e.jsx(tt,{className:"mt-0.5 size-4 shrink-0 text-fg-muted"}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"truncate text-sm text-fg",children:n.name}),e.jsxs("p",{className:"mt-0.5 text-xs text-fg-subtle",children:[Ve(n.size)," ·"," ",j?"reading it from disk":S?"checking it against this instance":i?"ready to check — nothing has been sent yet":"not a configuration this instance can read"]})]})]}),e.jsxs("p",{className:"text-2xs text-fg-subtle",children:["Export one from Settings → Advanced on the instance you are moving from, or run"," ",e.jsx("code",{className:"rounded bg-surface-sunken px-1 py-0.5",children:"remit config save"})," ","on its host."]})]})})}function ct({sections:t}){const n=ge(t.flatMap(i=>i.entries.map(s=>({section:i.id,key:s.label,verdict:s.verdict}))));return e.jsx("div",{className:"flex flex-wrap gap-1.5",children:["created","updated","unchanged","skipped","rejected"].filter(i=>n[i]>0).map(i=>e.jsxs(O,{tone:xe[i],dot:!0,children:[n[i]," ",i]},i))})}function dt({section:t}){return e.jsxs("section",{children:[e.jsx("h2",{className:"text-sm font-semibold text-fg",children:t.title}),e.jsx("ul",{className:"mt-1.5 divide-y divide-line",children:t.entries.map(n=>e.jsxs("li",{className:"flex items-start gap-3 py-2",children:[e.jsx(O,{tone:xe[n.verdict],className:"mt-0.5 shrink-0",children:n.verdict}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-sm text-fg",children:n.label}),n.reason&&e.jsx("p",{className:n.verdict==="rejected"?"mt-1 text-xs text-danger":"mt-1 text-xs text-warning",children:n.reason})]})]},n.id))})]})}function lt({sections:t,fileName:n,warnings:i=[],applying:s=!1,onBack:d,onNext:l}){const m=ge(t.flatMap(h=>h.entries.map(j=>({section:h.id,key:j.label,verdict:j.verdict})))),u=m.created+m.updated,w=m.skipped+m.rejected;return e.jsx(k,{steps:y,activeStep:1,title:"What this file will change",subtitle:`${n} · nothing has been written yet.`,footer:e.jsxs(e.Fragment,{children:[e.jsx(f,{variant:"ghost",onClick:d,children:"Choose another file"}),e.jsx(f,{variant:"primary",disabled:s,icon:s?e.jsx(_,{className:"size-3.5 animate-spin"}):void 0,onClick:l,children:s?"Importing…":`Import ${u} changes`})]}),children:e.jsxs("div",{className:"space-y-5",children:[e.jsx(ct,{sections:t}),w>0&&e.jsxs(x,{tone:"warning",children:[w," entries will not be imported. Each says why below — read them before you continue, because nothing here retries on its own."]}),i.length>0&&e.jsx("ul",{className:"space-y-1 text-xs text-warning",children:i.map(h=>e.jsx("li",{children:h},h))}),t.map(h=>e.jsx(dt,{section:h},h.id))]})})}function ut({choice:t,held:n,onChoose:i,onBack:s,onNext:d}){return e.jsx(k,{steps:y,activeStep:1,title:"This instance already has configuration",subtitle:n,footer:e.jsxs(e.Fragment,{children:[e.jsx(f,{variant:"ghost",onClick:s,children:"Choose another file"}),e.jsx(f,{variant:"primary",disabled:!t,onClick:d,children:t==="merge"?"Continue with merge":"Continue"})]}),children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(x,{tone:"warning",children:"An import into a configured instance can only add and update — it never deletes what is here. Pick how the two should meet."}),e.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[e.jsx(le,{name:"Stop, keep this instance",description:"Nothing is written. Use this if you meant to import into a fresh instance.",icon:e.jsx(Ee,{className:"size-5"}),selected:t==="abort",onSelect:()=>i?.("abort")}),e.jsx(le,{name:"Merge the file in",description:"Adds what is missing and updates what differs. Existing accounts keep their server settings.",icon:e.jsx(at,{className:"size-5"}),selected:t==="merge",onSelect:()=>i?.("merge")})]}),t==="merge"&&e.jsx("p",{className:"text-xs text-fg-muted",children:"The next screen lists every add and update before anything is written."})]})})}function mt(t){return t==="entered"?e.jsx(O,{tone:"positive",children:"ready"}):t==="failed"?e.jsx(O,{tone:"danger",children:"sign-in failed"}):e.jsx(O,{tone:"danger",children:"credentials needed"})}function ht({accounts:t,busyAccountId:n,onOpen:i}){return e.jsx("ul",{className:"divide-y divide-line",children:t.map(s=>e.jsxs("li",{className:s.state==="entered"?"flex flex-wrap items-start justify-between gap-3 py-3":"flex flex-wrap items-start justify-between gap-3 border-l-2 border-danger bg-danger-soft py-3 pl-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("span",{className:"text-sm font-medium text-fg",children:s.address}),mt(s.state)]}),e.jsxs("p",{className:"mt-0.5 text-xs text-fg-subtle",children:[s.displayName," ·"," ",s.connector==="microsoft"?"Microsoft 365":"IMAP / SMTP"," ","· ",s.server]}),s.state!=="entered"&&e.jsx("p",{className:"mt-1 text-xs text-danger",children:s.failure??(s.connector==="microsoft"?"Config files never carry OAuth tokens. Reconnect with Microsoft to start syncing this account.":"Config files never carry passwords. Enter this mailbox's password to start syncing.")})]}),s.state!=="entered"&&e.jsx(f,{variant:"primary",size:"sm",disabled:n===s.accountId,icon:n===s.accountId?e.jsx(_,{className:"size-3.5 animate-spin"}):s.connector==="microsoft"?e.jsx(Oe,{className:"size-3.5"}):e.jsx(it,{className:"size-3.5"}),onClick:()=>i?.(s),children:n===s.accountId?"Redirecting…":s.connector==="microsoft"?"Reconnect":s.state==="failed"?"Try again":"Enter password"})]},s.accountId))})}function pt({accounts:t,busyAccountId:n,error:i,onOpen:s,onNext:d}){const l=t.filter(m=>m.state!=="entered").length;return e.jsx(k,{steps:y,activeStep:2,title:"These accounts need credentials",subtitle:"The config file carries servers and settings. Passwords and Microsoft sign-ins it deliberately leaves out.",footer:e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-2xs text-fg-subtle",children:l>0?"Settings › Accounts keeps asking until every account is signed in.":"Every account can sync."}),e.jsx(f,{variant:"primary",onClick:d,children:l>0?"Finish later":"All accounts connected"})]}),children:e.jsxs("div",{className:"space-y-4",children:[i&&e.jsx(x,{tone:"danger",children:i}),l>0&&e.jsxs(x,{tone:"danger",children:[l," of ",t.length," accounts cannot sync yet. They stay listed in Settings, marked like this, until you sign in — no mail arrives for them in the meantime."]}),e.jsx(ht,{accounts:t,busyAccountId:n,onOpen:s})]})})}function ft({account:t,position:n,total:i,error:s,busy:d=!1,onBack:l,onNext:m}){return e.jsx(k,{steps:y,activeStep:2,title:`Reconnect ${t.address}`,subtitle:`Account ${n} of ${i} · Microsoft 365`,footer:e.jsxs(e.Fragment,{children:[e.jsx(f,{variant:"ghost",onClick:l,children:"Back"}),e.jsx(f,{variant:"primary",disabled:d,icon:d?e.jsx(_,{className:"size-3.5 animate-spin"}):void 0,onClick:m,children:d?"Redirecting…":"Sign in with Microsoft"})]}),children:e.jsxs("div",{className:"space-y-4",children:[s&&e.jsx(x,{tone:"danger",children:s}),e.jsx(x,{tone:"info",children:"A config file never carries an OAuth token — one only works for the instance it was granted to. Signing in here mints a fresh one for this instance."}),e.jsxs("div",{className:"rounded-sm border border-line px-3 py-2.5",children:[e.jsx("p",{className:"text-sm text-fg",children:t.displayName}),e.jsxs("p",{className:"mt-0.5 text-xs text-fg-subtle",children:[t.address," · ",t.server]})]}),e.jsx("p",{className:"text-2xs text-fg-subtle",children:"You will be sent to Microsoft and returned here. If your organisation requires admin approval, the sign-in stops there and this account keeps waiting."})]})})}function gt({folders:t,onNext:n}){return e.jsx(k,{steps:y,activeStep:3,title:t.length>0?"Waiting on folders":"Import finished",subtitle:t.length>0?"The config names folders this server has not shown us yet.":"Everything in the file landed, and every folder it named resolved.",footer:e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-2xs text-fg-subtle",children:"Folder discovery runs with every sync."}),e.jsx(f,{variant:"primary",onClick:n,children:"Go to inbox"})]}),children:e.jsx("div",{className:"space-y-4",children:t.length>0?e.jsxs(e.Fragment,{children:[e.jsxs(x,{tone:"warning",children:[t.length," settings are imported but switched off. Each turns itself on the moment its folder appears — nothing was dropped. If a folder never appears, create it in your mail client, or edit the setting in Settings → Senders & Rules."]}),e.jsxs("div",{className:"flex items-center gap-2 text-xs text-fg-muted",children:[e.jsx(nt,{className:"size-4"}),"Folder discovery runs with every sync of the account."]}),e.jsx("div",{className:"divide-y divide-line",children:t.map(i=>e.jsx(fe,{label:i.path,detail:i.waitingFor,state:"pending"},`${i.accountId??""}-${i.path}-${i.waitingFor}`))})]}):e.jsx(x,{tone:"success",children:"Every account, rule, label and sender in the file is live on this instance."})})})}function xt({failure:t,onBack:n}){return e.jsx(k,{steps:y,activeStep:0,title:t.title,subtitle:"Nothing was imported.",footer:e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-2xs text-fg-subtle",children:"This instance is unchanged."}),e.jsx(f,{variant:"primary",onClick:n,children:"Choose another file"})]}),children:e.jsxs("div",{className:"space-y-3",children:[e.jsx(x,{tone:"danger",children:t.explanation}),e.jsx("p",{className:"text-sm text-fg",children:t.fix}),e.jsx(Y,{children:t.raw})]})})}function jt(t){return t==="landed"?"ok":t==="failed"||t==="unknown"?"failed":"pending"}function vt({results:t,message:n,raw:i,onBack:s,onNext:d}){const l=t.filter(u=>u.state==="landed").length,m=t.some(u=>u.state==="unknown");return e.jsx(k,{steps:y,activeStep:1,title:"The import stopped part-way",subtitle:m?"It did not say how far it got, so check Settings before importing again.":`${l} of ${t.length} sections landed.`,footer:e.jsxs(e.Fragment,{children:[e.jsx(f,{variant:"ghost",onClick:s,children:"Choose another file"}),e.jsx(f,{variant:"primary",onClick:d,children:"Retry the rest"})]}),children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(x,{tone:"danger",children:n}),e.jsx("p",{className:"text-sm text-fg-muted",children:"Retrying is safe: an import folds into what is already here rather than replacing it, so what landed is recognised and left alone."}),e.jsx("div",{className:"divide-y divide-line",children:t.map(u=>e.jsx(fe,{label:u.title,detail:u.detail,state:jt(u.state)},u.section))}),e.jsx(Y,{children:i})]})})}const je=(t,n)=>t?"tls":n?"starttls":"none",yt=t=>({host:t.imapHost,port:t.imapPort,security:je(t.imapTls,t.imapStartTls)}),wt=t=>({host:t.smtpEnabled?t.smtpHost:"",port:t.smtpPort,security:je(t.smtpTls,t.smtpStartTls)}),he=(t,n,i)=>{const s=t.authType==="oauthMicrosoft"?"microsoft":"imap",d=!i&&(s==="microsoft"?t.connectionState==="reauth_required":t.connectionState==="credentials_missing");return{accountId:t.accountId,address:t.email,displayName:t.displayName?.trim()||t.email,connector:s,server:`${t.imapHost}:${t.imapPort}`,state:n?"failed":d?"needed":"entered",failure:n}},bt=t=>{if(!t)return"This instance already holds configuration of its own.";const n=[["accounts","account"],["labels","label"],["filters","rule"],["addressFlags","flagged sender"]].map(([i,s])=>({count:Number(t[i]??0),noun:s})).filter(i=>i.count>0).map(i=>`${i.count} ${i.noun}${i.count===1?"":"s"}`);return n.length===0?"This instance already holds configuration of its own.":`${n.join(", ")} are set up here already.`},W=(t,n)=>{if(t instanceof Error)return t.message;if(typeof t=="object"&&t!==null){const i=t.message;if(typeof i=="string")return i}return n};function kt({onDone:t}){const n=pe(),[i,s]=r.useState("file"),[d,l]=r.useState(!1),[m,u]=r.useState(!1),[w,h]=r.useState(void 0),[j,S]=r.useState(void 0),[R,N]=r.useState(void 0),[p,b]=r.useState(void 0),[Z,ee]=r.useState("abort"),[te,se]=r.useState(void 0),[ye,K]=r.useState(void 0),[C,we]=r.useState([]),[Q,be]=r.useState([]),[g,I]=r.useState(null),[T,U]=r.useState({username:"",password:""}),[F,V]=r.useState({}),[ke,ne]=r.useState(void 0),[G,z]=r.useState(null),[B,Se]=r.useState([]),{data:$}=ze({...Be(),enabled:C.length>0||i==="folders"}),A=r.useMemo(()=>{const a=new Map;for(const o of $?.accounts??[])a.set(o.accountId,o);return a},[$]),Ne=r.useMemo(()=>C.map(a=>A.get(a)).filter(a=>!!a).map(a=>he(a,F[a.accountId],Q.includes(a.accountId))),[C,A,F,Q]),c=g?A.get(g):void 0,ie=g?C.indexOf(g)+1:0,P=q({...$e(),meta:de(409)}),ae=q({...Pe(),meta:de(403,404)}),re=q(Le()),oe=q(De());We(G!==null,()=>{n.invalidateQueries({queryKey:J()}),z(null)});const ce=He(a=>{z(null),a==="stalled"&&ne(Ue)}),Ce=r.useCallback(a=>{l(!1),u(!0),h({name:a.name,size:a.size}),N(void 0),S(void 0),a.text().then(o=>Ge(a.name,a.size,o)).then(o=>{if(u(!1),!o.ok){N(o.failure);return}S(o.document)}).catch(o=>{u(!1),N({title:"That file could not be read",explanation:`The browser could not read ${a.name} from disk, so nothing was sent.`,fix:"Check the file is still there and try again.",raw:W(o,"the file read was refused")})})},[]),L=r.useCallback((a,o)=>{j&&(K(void 0),P.mutate({body:{mode:a,onExisting:o,document:j}},{onSuccess:v=>{if(b(v),ue(v)){s("rejected");return}if(me(v)){s("partial");return}if(a==="validate"){s("review");return}if(Se(Xe(v)),n.invalidateQueries({queryKey:J()}),v.accountsNeedingCredentials.length>0){we([...v.accountsNeedingCredentials]),s("credentials");return}s("folders")},onError:v=>{const D=Je(v);if(D){K(D),se(void 0),s("conflict");return}N({title:"The import could not be sent",explanation:"The request to this instance failed before it produced a report, so nothing was written.",fix:"Check your connection and try again.",raw:W(v,"POST /config/import failed")}),s("file")}}))},[j,P,n]),Ie=r.useCallback(a=>{if(I(a.accountId),ne(void 0),a.connector==="microsoft"){s("account-oauth");return}const o=A.get(a.accountId);U({username:o?.username||a.address,password:""}),s("account-password")},[A]),Te=r.useCallback(()=>{g&&ae.mutate({path:{accountId:g},body:{password:T.password,isActive:!0}},{onSuccess:()=>{re.mutate({path:{accountId:g}}),be(a=>a.includes(g)?a:[...a,g]),V(a=>{const o={...a};return delete o[g],o}),n.invalidateQueries({queryKey:J()}),U({username:"",password:""}),I(null),s("credentials")},onError:a=>{V(o=>({...o,[g]:W(a,"The password was verified but could not be stored. Try again.")})),I(null),s("credentials")}})},[g,T.password,n,re,ae]),Re=r.useCallback(()=>{c&&(z(c.accountId),oe.mutate({body:{email:c.email}},{onSuccess:a=>{ce(),window.location.assign(a.authorizationUrl)},onError:a=>{z(null),V(o=>({...o,[c.accountId]:W(a,"Microsoft sign-in could not be started.")})),I(null),s("credentials")}}))},[c,ce,oe]),Fe=r.useCallback((a,o)=>U({username:a,password:o}),[]),Ae=r.useMemo(()=>{const a=$?.pendingImport?.folderPaths;if(!a)return B;const o=new Set(a),v=B.filter(E=>o.has(E.path)),D=a.filter(E=>!B.some(Me=>Me.path===E)).map(E=>({path:E,waitingFor:"An imported setting"}));return[...v,...D]},[$,B]),M=r.useCallback(()=>{b(void 0),K(void 0),N(void 0),h(void 0),S(void 0),ee("abort"),s("file")},[]);switch(i){case"file":return e.jsx(ot,{state:m?"reading":P.isPending?"checking":d?"dragging":"idle",file:w,ready:j!==void 0,failure:R,onChoose:Ce,onDragStateChange:l,onNext:()=>L("validate",Z)});case"rejected":return e.jsx(xt,{failure:(p&&ue(p))??R??{title:"The file could not be imported",explanation:"The import was refused and nothing was written.",fix:"Re-export the configuration and try again.",raw:"no error was reported"},onBack:M});case"conflict":return e.jsx(ut,{choice:te,held:bt(ye?.details),onChoose:se,onBack:M,onNext:()=>{if(te==="abort"){t("abandoned");return}ee("merge"),L("validate","merge")}});case"review":return e.jsx(lt,{sections:et(p?.items??[]),fileName:w?.name??"the config file",warnings:(p?.warnings??[]).map(a=>a.message),applying:P.isPending,onBack:M,onNext:()=>L("apply",Z)});case"partial":{if(!p)return e.jsx(St,{onBack:M});const a=me(p);return e.jsx(vt,{results:Ze(p),message:a?.message??"The import stopped before it finished.",raw:`${a?.code??Ye}: ${a?.message??"no message"}`,onBack:M,onNext:()=>L("apply","merge")})}case"credentials":return e.jsx(pt,{accounts:Ne,busyAccountId:G??void 0,error:ke,onOpen:Ie,onNext:()=>s("folders")});case"account-password":return c?e.jsx(Ke,{steps:y,activeStep:2,title:`Sign in to ${c.email}`,subtitle:`Account ${ie} of ${C.length} · ${c.imapHost}:${c.imapPort}`,email:c.email,username:T.username,password:T.password,error:F[c.accountId],continueLabel:"Test and continue",notice:e.jsxs("div",{className:"flex items-center gap-2 text-xs text-fg-muted",children:[e.jsx(Qe,{className:"size-3.5"}),"Server settings came from the config file — edit them in Settings if they are wrong."]}),onContinue:()=>s("account-test"),onBack:()=>{I(null),s("credentials")},onChange:Fe}):e.jsx(X,{onBack:()=>t("abandoned")});case"account-test":return c?e.jsx(_e,{steps:y,activeStep:2,email:c.email,imapConfig:yt(c),smtpConfig:wt(c),username:T.username,password:T.password,credentialsBackLabel:"Back to the password",serversBackLabel:"Back to the password",successLabel:"Save and continue",onSuccess:Te,onBackToCredentials:()=>s("account-password"),onBackToServers:()=>s("account-password")}):e.jsx(X,{onBack:()=>t("abandoned")});case"account-oauth":return c?e.jsx(ft,{account:he(c,F[c.accountId],Q.includes(c.accountId)),position:ie,total:C.length,error:F[c.accountId],busy:G===c.accountId,onBack:()=>{I(null),s("credentials")},onNext:Re}):e.jsx(X,{onBack:()=>t("abandoned")});case"folders":return e.jsx(gt,{folders:Ae,onNext:()=>t("imported")})}}function ve({children:t,label:n,onBack:i}){return e.jsxs("div",{className:"mx-auto max-w-lg p-6",children:[e.jsx(x,{tone:"danger",children:t}),e.jsx("button",{type:"button",className:"mt-3 text-sm text-accent underline",onClick:i,children:n})]})}function X({onBack:t}){return e.jsx(ve,{label:"Go to inbox",onBack:t,children:"That account is no longer in this instance's configuration, so there is nothing left to sign in to. Open Settings › Accounts to see what is here."})}function St({onBack:t}){return e.jsx(ve,{label:"Choose another file",onBack:t,children:"The import stopped but produced no report, so nothing here can say what it wrote. Open Settings to see what this instance holds before importing again."})}function Ft(){const t=qe(),n=pe(),i=r.useCallback(s=>{st({queryClient:n,recordCompleted:()=>{s==="imported"&&t.recordEvent("config.imported")},navigateToInbox:()=>{window.location.assign("/mail")}})},[t,n]);return e.jsx(kt,{onDone:i})}export{Ft as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as o}from"./index-lxVTsHBH.js";import{M as i}from"./MailboxPane-B1OopvI6.js";import"./useSearchTokenContext-mRvSGuNd.js";import"./kbd-Ds8JAL-i.js";import"./useMessageBodyContent-CUM4C6Cq.js";import"./search-scope-B5-OK3Cq.js";import"./useRefreshControl-DiNXvxEh.js";import"./circle-check-big-B1p6oh-i.js";import"./search-token-index-D1mRODfF.js";import"./useLayoutTier-Ciq4HlaK.js";import"./useQueries-CPnZMt_1.js";import"./MailListHeader-Dv4RRNrm.js";import"./attachment-file-DClGI76U.js";import"./mail-CSpgLNSC.js";import"./avatar-wLH6-Ayd.js";import"./index-y3enq74c.js";import"./useSignature-CrrwTrAx.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-D4EGUdvx.js";import"./sections-BaNfgGs8.js";import"./format-CCaI2KqP.js";import"./EmptyState-DYWkEoYy.js";import"./ErrorState-CQA1uNfQ.js";import"./download-BzIqNtrq.js";import"./shield-check-Bvnu7s8U.js";import"./useFilters-CW_hrFZo.js";import"./minus-DW1FraKg.js";import"./confirm-dialog-XKVleo_p.js";import"./clock-Z-oAijsz.js";import"./menu-D6aq1T1f.js";import"./MailViewChrome-BrAblQ-h.js";import"./NavMenuButton-DsipgLLk.js";import"./useLabels-Dlob_XK-.js";import"./useSemanticSearch-DqVnsXbc.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-D6dXigqc.js";import"./circle-help-DtvJPapE.js";import"./circle-check-o0AqGZ-u.js";function L(){return o.jsx(i.Reading,{})}export{L as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as o}from"./index-lxVTsHBH.js";import{O as t}from"./OutboxPane-C5Ns55rS.js";import"./useSearchTokenContext-mRvSGuNd.js";import"./kbd-Ds8JAL-i.js";import"./useMessageBodyContent-CUM4C6Cq.js";import"./search-scope-B5-OK3Cq.js";import"./circle-check-big-B1p6oh-i.js";import"./clock-Z-oAijsz.js";import"./row-actions-BY8sJ70m.js";import"./rotate-ccw-Snzk6-SP.js";import"./NavMenuButton-DsipgLLk.js";import"./menu-D6aq1T1f.js";import"./format-CCaI2KqP.js";import"./outbox-status-BlKn6P0x.js";import"./search-query-Cr_ZXBCp.js";function c(){return o.jsx(t.Reading,{})}export{c as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as o}from"./index-lxVTsHBH.js";import{M as r}from"./MailboxPane-B1OopvI6.js";import"./useSearchTokenContext-mRvSGuNd.js";import"./kbd-Ds8JAL-i.js";import"./useMessageBodyContent-CUM4C6Cq.js";import"./search-scope-B5-OK3Cq.js";import"./useRefreshControl-DiNXvxEh.js";import"./circle-check-big-B1p6oh-i.js";import"./search-token-index-D1mRODfF.js";import"./useLayoutTier-Ciq4HlaK.js";import"./useQueries-CPnZMt_1.js";import"./MailListHeader-Dv4RRNrm.js";import"./attachment-file-DClGI76U.js";import"./mail-CSpgLNSC.js";import"./avatar-wLH6-Ayd.js";import"./index-y3enq74c.js";import"./useSignature-CrrwTrAx.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-D4EGUdvx.js";import"./sections-BaNfgGs8.js";import"./format-CCaI2KqP.js";import"./EmptyState-DYWkEoYy.js";import"./ErrorState-CQA1uNfQ.js";import"./download-BzIqNtrq.js";import"./shield-check-Bvnu7s8U.js";import"./useFilters-CW_hrFZo.js";import"./minus-DW1FraKg.js";import"./confirm-dialog-XKVleo_p.js";import"./clock-Z-oAijsz.js";import"./menu-D6aq1T1f.js";import"./MailViewChrome-BrAblQ-h.js";import"./NavMenuButton-DsipgLLk.js";import"./useLabels-Dlob_XK-.js";import"./useSemanticSearch-DqVnsXbc.js";import"./search-query-Cr_ZXBCp.js";import"./bottom-sheet-D6dXigqc.js";import"./circle-help-DtvJPapE.js";import"./circle-check-o0AqGZ-u.js";function K(){return o.jsx(r.Reading,{})}export{K as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as r}from"./index-lxVTsHBH.js";import{B as o}from"./BriefPane-D6mVesqu.js";import"./useSearchTokenContext-mRvSGuNd.js";import"./kbd-Ds8JAL-i.js";import"./useMessageBodyContent-CUM4C6Cq.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-Dv4RRNrm.js";import"./search-token-index-D1mRODfF.js";import"./useLayoutTier-Ciq4HlaK.js";import"./useQueries-CPnZMt_1.js";import"./attachment-file-DClGI76U.js";import"./mail-CSpgLNSC.js";import"./avatar-wLH6-Ayd.js";import"./index-y3enq74c.js";import"./useSignature-CrrwTrAx.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-D4EGUdvx.js";import"./sections-BaNfgGs8.js";import"./format-CCaI2KqP.js";import"./EmptyState-DYWkEoYy.js";import"./ErrorState-CQA1uNfQ.js";import"./download-BzIqNtrq.js";import"./shield-check-Bvnu7s8U.js";import"./useFilters-CW_hrFZo.js";import"./minus-DW1FraKg.js";import"./confirm-dialog-XKVleo_p.js";import"./clock-Z-oAijsz.js";import"./menu-D6aq1T1f.js";import"./useRefreshControl-DiNXvxEh.js";import"./circle-check-big-B1p6oh-i.js";import"./useLabels-Dlob_XK-.js";import"./useSemanticSearch-DqVnsXbc.js";import"./search-query-Cr_ZXBCp.js";import"./wizard-selection-B1bng5Jq.js";function H(){return r.jsx(o.Reading,{})}export{H as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as t,am as o}from"./index-lxVTsHBH.js";const n=()=>t.jsx(o,{to:"/settings/accounts"});export{n as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e}from"./index-lxVTsHBH.js";import{E as a}from"./EmptyState-DYWkEoYy.js";import{C as s}from"./calendar-days-GutYioyG.js";function i(){return e.jsx("div",{className:"flex h-full items-center justify-center bg-surface",children:e.jsx(a,{message:"Pick an event to read it here.",icon:e.jsx(s,{className:"size-8"})})})}export{i as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as o}from"./index-lxVTsHBH.js";import{F as r}from"./FlaggedPane-DoeXJfm_.js";import"./useSearchTokenContext-mRvSGuNd.js";import"./kbd-Ds8JAL-i.js";import"./useMessageBodyContent-CUM4C6Cq.js";import"./search-scope-B5-OK3Cq.js";import"./MailListHeader-Dv4RRNrm.js";import"./search-token-index-D1mRODfF.js";import"./useLayoutTier-Ciq4HlaK.js";import"./useQueries-CPnZMt_1.js";import"./attachment-file-DClGI76U.js";import"./mail-CSpgLNSC.js";import"./avatar-wLH6-Ayd.js";import"./index-y3enq74c.js";import"./useSignature-CrrwTrAx.js";import"./account-form-helpers-DhckT_PN.js";import"./useDebouncedValue-D4EGUdvx.js";import"./sections-BaNfgGs8.js";import"./format-CCaI2KqP.js";import"./EmptyState-DYWkEoYy.js";import"./ErrorState-CQA1uNfQ.js";import"./download-BzIqNtrq.js";import"./shield-check-Bvnu7s8U.js";import"./useFilters-CW_hrFZo.js";import"./minus-DW1FraKg.js";import"./confirm-dialog-XKVleo_p.js";import"./clock-Z-oAijsz.js";import"./menu-D6aq1T1f.js";import"./MailViewChrome-BrAblQ-h.js";import"./wizard-selection-B1bng5Jq.js";function C(){return o.jsx(r.Reading,{})}export{C as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e4 as o,j as r}from"./index-lxVTsHBH.js";import{O as e}from"./OpenCalendarEvent-jziTx8_b.js";import"./useCalendarData-CBjm4DbE.js";import"./avatar-wLH6-Ayd.js";import"./minus-DW1FraKg.js";import"./clock-Z-oAijsz.js";import"./mail-CSpgLNSC.js";import"./pencil-DJPntSjN.js";import"./calendar-days-GutYioyG.js";import"./calendar-ZcQGYvWc.js";function x(){const{calendarObjectId:t}=o.useParams();return r.jsx(e,{calendarObjectId:t})}export{x as component};
|