module.exports=[82740,a=>{"use strict";let b=(0,a.i(5423).default)("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);a.s(["ExternalLink",0,b],82740)},38931,a=>{"use strict";var b=a.i(39752),c=a.i(34542),d=a.i(29629),e=a.i(47278),f=a.i(54283),g=a.i(14445),h=a.i(7117),i=a.i(86807),j=a.i(36581),k=a.i(33165);a.s(["default",0,function(){let a=(0,h.useMailAccounts)(),l=(0,h.useMailProviders)(),m=function(){let[a,b]=(0,c.useState)(null);return(0,c.useEffect)(()=>{let a=()=>{let a=window.location.hash.replace(/^#/,"");b(a.length>0?a:null)};return a(),window.addEventListener("hashchange",a),()=>window.removeEventListener("hashchange",a)},[]),a}(),n=a.data?.accounts??[],o=l.data?.enabledKinds??[],p=function(a){let b={gmail:[],outlook:[],yahoo:[],icloud:[]};for(let c of a)b[c.kind].push(c);return b}(n),q=a.isLoading||l.isLoading,r=a.error??l.error,s=n.filter(a=>a.active&&o.includes(a.kind)).length;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(i.ConnectionsSectionHeader,{title:"Mail",description:"Connect each mail provider in two steps: authenticate, then flip the provider's enable switch. Once enabled, the per-account Active toggle lets you mute a single mailbox without disabling the whole provider.",healthy:s,total:n.length}),r&&(0,b.jsxs)(d.Alert,{variant:"error",children:["Couldn't load mail data:"," ",r instanceof Error?r.message:"unknown error"]}),q?(0,b.jsx)("p",{className:"text-sm text-muted-foreground",children:"Loading…"}):(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsx)(j.IntegrationCard,{integrationKey:"gmail",gmailAccountCount:p.gmail.length}),(0,b.jsx)(k.ProcessModelCard,{processKey:"gmail_classify",title:"Gmail Classification Model",description:"Classifies each incoming Gmail message and decides how the agent should respond. Light-tier (Haiku 4.5 / gpt-5.4-mini) handles this well at low cost."}),(0,b.jsx)(e.GmailCard,{accounts:p.gmail,enabledKinds:o,focusAccountId:m}),(0,b.jsx)(j.IntegrationCard,{integrationKey:"outlook_mail"}),(0,b.jsx)(f.OutlookCard,{accounts:p.outlook,enabledKinds:o,focusAccountId:m}),(0,b.jsx)(g.ImapCard,{kind:"yahoo",accounts:p.yahoo,enabledKinds:o,focusAccountId:m}),(0,b.jsx)(g.ImapCard,{kind:"icloud",accounts:p.icloud,enabledKinds:o,focusAccountId:m})]})]})}])}];

//# sourceMappingURL=_0~62r4-._.js.map