PageSourceSearch

https://resend.com/_next/static/immutable/chunks/34leacc0fel3b.js

js resend.com collected 2026-10-02 02:17:23 UTC 38,805 bytes, 3 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,72436,e=>{"use strict";var t=e.i(959628);let r=(0,t.createServerReference)("7f9b413911648cffa3d5795ea0cc7afc974c84ec9e",t.callServer,void 0,t.findSourceMapURL,"setActiveTeam");e.s(["setActiveTeam",0,r])},721500,e=>{"use strict";e.s(["CMDK_NAVIGATION_ACTIONS",0,[{href:"/emails",label:"Emails",shortcut:["g","e"]},{href:"/emails/suppressions",label:"Suppressions",shortcut:["g","shift","s"],keywords:["suppression list","blocked","bounced"]},{href:"/inboxes",label:"Inboxes",shortcut:["g","shift","i"],keywords:["inbox","threads","mail"],featureFlag:"inboxAndThreads"},{href:"/broadcasts",label:"Broadcasts",shortcut:["g","b"]},{href:"/templates",label:"Templates",shortcut:["g","t"]},{href:"/audience",label:"Contacts",shortcut:["g","c"]},{href:"/audience/properties",label:"Properties",shortcut:["g","p"]},{href:"/audience/segments",label:"Segments",shortcut:["g","s"]},{href:"/audience/topics",label:"Topics",shortcut:["g","o"]},{href:"/metrics",label:"Metrics",shortcut:["g","r"]},{href:"/domains",label:"Domains",shortcut:["g","d"]},{href:"/logs",label:"Logs",shortcut:["g","l"]},{href:"/api-keys",label:"API keys",shortcut:["g","a"]},{href:"/webhooks",label:"Webhooks",shortcut:["g","w"]},{href:"/profile",label:"Profile",shortcut:["g","v"]},{href:"/settings/usage",label:"Settings",shortcut:["g","q"]},{href:"/settings/usage",label:"Usage",shortcut:["g","u"]},{href:"/settings/billing",label:"Billing",shortcut:["g","i"]},{href:"/settings/team",label:"Team",shortcut:["g","k"]},{href:"/settings/smtp",label:"SMTP",shortcut:["g","y"]},{href:"/settings/integrations",label:"Integrations",shortcut:["g","n"]},{href:"/settings/unsubscribe-page",label:"Unsubscribe page",shortcut:["g","z"]},{href:"/settings/documents",label:"Documents",shortcut:["g","j"]},{href:"/settings/exports",label:"Exports",shortcut:["g","x"]},{href:"/automations",label:"Automations",shortcut:["g","f"]},{href:"/help",label:"Help",shortcut:["g","h"]}],"isNavigationActionEnabled",0,function(e,t){return!e.featureFlag||!!t[e.featureFlag]}])},324707,e=>{"use strict";var t=e.i(410856),r=e.i(111384),a=e.i(624175),n=e.i(965182),i=e.i(316736),s=e.i(760518),l=e.i(477850),c=e.i(310902),o=e.i(784862),u=e.i(5777),d=e.i(764979),m=e.i(272304),h=e.i(594306),p=e.i(871202),f=e.i(385177),g=e.i(465530);function v({onSelect:e,query:r}){let a=(0,d.useTRPC)(),[s]=(0,u.useDebounce)(r,300),{data:l,isFetching:c}=(0,o.useQuery)(a.emails.search.queryOptions({query:s})),x=l?.results??[],b=l?.took??null;return(0,t.jsxs)(n.Group,{heading:(0,t.jsx)(i.CommandKHeading,{label:"Emails",count:x.length,time:b}),children:[(r!==s||c)&&0===x.length&&(0,t.jsx)(i.CommandKLoading,{}),x.map(r=>{let a=r.last_event;return(0,t.jsxs)(i.CommandKItem,{value:`${r.id} - ${r.subject} - ${r.to?.join(", ")??""}`,onSelect:()=>e(`/emails/${r.id}`),children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[(0,t.jsx)("div",{className:"shrink-0 overflow-hidden rounded-xl dark:overflow-visible dark:rounded-none",children:(0,t.jsx)(h.StatusIcon,{appearance:(0,g.getEmailStatusAppearance)(a),size:"1",type:"email"})}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,t.jsxs)("span",{className:"truncate text-sm",children:[r.to?.[0]||"(No recipient)",r.to&&r.to.length>1&&(0,t.jsxs)("span",{className:"text-slate-10",children:[" ","+",r.to.length-1]})]}),(0,t.jsx)(p.Text,{size:"1",className:"truncate text-slate-10",children:r.subject||"(No subject)"})]})]}),(0,t.jsxs)("div",{className:"flex shrink-0 flex-col items-end gap-0.5",children:[a&&(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("span",{className:"size-2 rounded-full",style:{backgroundColor:m.STATUS_COLORS[a]}}),(0,t.jsx)(p.Text,{size:"1",children:m.STATUS_LABELS[a]})]}),r.sent_at&&(0,t.jsx)(p.Text,{size:"1",className:"text-slate-9",children:(0,t.jsx)(f.TimeAgo,{value:r.sent_at})})]})]},r.id)})]})}var x=e.i(597308),b=e.i(323871),j=e.i(101674),w=e.i(413974),S=e.i(955879),y=e.i(715320),E=e.i(229220),T=e.i(439210),N=e.i(194142);e.i(417119);var C=e.i(463062),_=e.i(580731),z=e.i(954654);let I=[{pattern:/^\/domains\/add\//,param:"id",label:"domain"},{pattern:/^\/domains\/[^/]+\/configurations\/tracking\//,param:"tracking-id",label:"tracking"},{pattern:/^\/domains\//,param:"id",label:"domain"},{pattern:/^\/emails\//,param:"id",label:"email"},{pattern:/^\/broadcasts\//,param:"id",label:"broadcast"},{pattern:/^\/templates\//,param:"id",label:"template"},{pattern:/^\/api-keys\//,param:"id",label:"API key"},{pattern:/^\/webhooks\//,param:"webhookEndpointId",label:"webhook"},{pattern:/^\/logs\//,param:"id",label:"log"},{pattern:/^\/audience\/contacts\//,param:"contactId",label:"contact"},{pattern:/^\/audience\/segments\//,param:"id",label:"segment"},{pattern:/^\/audience\/topics\//,param:"id",label:"topic"},{pattern:/^\/settings\/exports\//,param:"id",label:"export"},{pattern:/^\/automations\/events\//,param:"id",label:"event"},{pattern:/^\/automations\//,param:"id",label:"automation"}],k=[{pattern:/^\/audience(\/contacts)?\/?$/,searchParam:"segmentId",label:"segment"}];var A=e.i(645190);function R({heading:e,actions:a,onClose:s,bulkSelectionCount:l=0}){let c=(0,r.useRouter)();if(0===a.length)return null;let o=l>0?`${e} (${l} selected)`:e;return(0,t.jsx)(n.Group,{heading:o,children:a.map(e=>(0,t.jsxs)(i.CommandKItem,{value:e.label,onSelect:()=>(function(e){switch(e.type){case"navigation":if(!e.href)return;if(e.href.startsWith("?")){let t=new URL(window.location.href);for(let[r,a]of new URLSearchParams(e.href.slice(1)).entries())t.searchParams.set(r,a);c.push(t.pathname+t.search)}else e.href.startsWith("http")?window.open(e.href,"_blank"):c.push(e.href);s();break;case"event":case"bulk":if(!e.eventName)return;(0,A.dispatchCmdKAction)(e.eventName),s()}})(e),children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(e.icon,{size:14}),(0,t.jsx)(p.Text,{as:"span",children:e.label})]}),(0,t.jsx)("div",{className:"flex items-center gap-1 text-right",children:e.shortcut?.map(e=>(0,t.jsx)(n.Kbd,{children:e.toUpperCase()},e))})]},e.id))})}var D=e.i(721500);function M({onClose:e,onSelect:c,onOpenEmailSearch:o,onOpenTeamsSearch:u}){let d,m=(0,l.useActiveTeam)(),{targetTheme:h,returnsToSystem:f,toggleTheme:g}=(0,x.useThemeToggle)(),v=function(){let e=(0,r.useParams)(),t=(0,r.usePathname)(),a=(0,r.useSearchParams)();if(!t||!e)return[];let n=[],i=new Set;for(let r of I)if(r.pattern.test(t)){let t=e[r.param];t&&"string"==typeof t&&!i.has(r.param)&&(n.push({label:r.label,id:t}),i.add(r.param))}for(let e of k)if(e.pattern.test(t)){let t=a.get(e.searchParam);t&&!i.has(e.searchParam)&&(n.push({label:e.label,id:t}),i.add(e.searchParam))}return n}(),O=(d=(0,s.useClientFeatureFlags)(),D.CMDK_NAVIGATION_ACTIONS.filter(e=>(0,D.isNavigationActionEnabled)(e,d))),{actions:L,entityName:P,bulkSelectionCount:F}=function(){let e=(0,r.usePathname)(),[t,n]=(0,a.useState)(0),[i,s]=(0,a.useState)(()=>new Set),l=(0,a.useRef)(e);(0,a.useEffect)(()=>{function e(e){n(e.detail.count)}return window.addEventListener(A.CMDK_BULK_SELECTION_EVENT,e),window.dispatchEvent(new CustomEvent(A.CMDK_REQUEST_SELECTION_COUNT_EVENT)),()=>{window.removeEventListener(A.CMDK_BULK_SELECTION_EVENT,e)}},[]),(0,a.useEffect)(()=>{function e(e){s(new Set(e.detail.actions))}return window.addEventListener(A.CMDK_UNAVAILABLE_ACTIONS_EVENT,e),window.dispatchEvent(new CustomEvent(A.CMDK_REQUEST_UNAVAILABLE_ACTIONS_EVENT)),()=>{window.removeEventListener(A.CMDK_UNAVAILABLE_ACTIONS_EVENT,e)}},[]),(0,a.useEffect)(()=>{l.current!==e&&(n(0),s(new Set),l.current=e)},[e]);let{actions:c,entityName:o}=(0,a.useMemo)(()=>e?(0,A.getActionsForRoute)(e):{actions:[],entityName:null},[e]);return{actions:(0,a.useMemo)(()=>c.filter(e=>!(e.eventName&&i.has(e.eventName))&&(!e.requiresSelection||t>0)),[c,t,i]),entityName:o,bulkSelectionCount:t}}();async function K(){try{await navigator.clipboard.writeText(m.team_id),(0,_.showToast)({appearance:"green",title:"Copied to clipboard"}),e()}catch(e){console.error("Failed to copy team id",e),(0,_.showToast)({appearance:"red",title:b.sharedMessages.clipboardCopyFailed})}}let U=f?`Switch back to ${h} mode (system default)`:`Switch to ${h} mode`;async function q(){try{await navigator.clipboard.writeText(window.location.href),(0,_.showToast)({appearance:"green",title:"Copied to clipboard"}),e()}catch(e){console.error("Failed to copy current url",e),(0,_.showToast)({appearance:"red",title:b.sharedMessages.clipboardCopyFailed})}}async function B(t,r){try{await navigator.clipboard.writeText(t),(0,_.showToast)({appearance:"green",title:"Copied to clipboard"}),e()}catch(e){console.error(`Failed to copy ${r} id`,e),(0,_.showToast)({appearance:"red",title:b.sharedMessages.clipboardCopyFailed})}}return(0,t.jsxs)(t.Fragment,{children:[P&&(0,t.jsx)(R,{heading:P,actions:L,onClose:e,bulkSelectionCount:F}),v.length>0&&(0,t.jsx)(n.Group,{heading:"Context",children:v.map(e=>(0,t.jsx)(n.Item,{value:`Copy ${e.label} ID`,className:"justify-between gap-3",onSelect:()=>B(e.id,e.label),children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(S.IconCopy,{size:14}),(0,t.jsxs)("span",{children:["Copy ",e.label," ID"]})]})},e.label))}),o&&(0,t.jsx)(n.Group,{heading:"Search",children:(0,t.jsx)(i.CommandKItem,{value:"Search emails",onSelect:o,children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(T.IconSearch,{size:14}),(0,t.jsx)(p.Text,{as:"span",children:"Search emails..."})]})})}),(0,t.jsxs)(n.Group,{heading:"General",children:[(0,t.jsx)(i.CommandKItem,{value:"Copy current URL",onSelect:q,children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(S.IconCopy,{size:14}),(0,t.jsx)(p.Text,{as:"span",children:"Copy current URL"})]})}),(0,t.jsxs)(i.CommandKItem,{value:`${U} toggle theme dark light mode appearance`,onSelect:function(){g(),e()},children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:["dark"===h?(0,t.jsx)(y.IconMoon,{size:14}):(0,t.jsx)(N.IconSun,{size:14}),(0,t.jsx)(p.Text,{as:"span",children:U})]}),(0,t.jsx)(n.Kbd,{children:"M"})]})]}),(0,t.jsxs)(n.Group,{heading:"Team",children:[(0,t.jsx)(i.CommandKItem,{value:"Copy team ID account",onSelect:K,children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(S.IconCopy,{size:14}),(0,t.jsx)(p.Text,{as:"span",children:"Copy team ID"})]})}),(0,t.jsx)(i.CommandKItem,{value:"Switch team account",onSelect:u,children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(w.IconArrows,{size:14}),(0,t.jsx)(p.Text,{as:"span",children:"Switch team"})]})}),(0,t.jsx)(i.CommandKItem,{value:"Create new team account",onSelect:()=>c("/team/create"),children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(E.IconPlus,{size:14}),(0,t.jsx)(p.Text,{as:"span",children:"Create new team"})]})})]}),(0,t.jsx)(n.Group,{heading:"Navigation",children:O.map(e=>(0,t.jsxs)(i.CommandKItem,{value:`Go to ${e.label} navigation page`,keywords:e.keywords,onSelect:()=>c(e.href),children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(j.IconArrowUpRight,{size:14}),(0,t.jsxs)(p.Text,{as:"span",children:["Go to ",(0,t.jsx)("span",{className:"font-semibold",children:e.label})]})]}),(0,t.jsx)("div",{className:"flex items-center gap-1 text-right",children:e.shortcut.map(e=>
1(0,t.jsx)(n.Kbd,{children:"shift"===e?C.SHORTCUTS_VALUES.SHIFT:e.toUpperCase()},e))})]},e.label))}),(0,t.jsx)(n.Group,{heading:"Website",children:z.NAVIGATION_LINKS.map(e=>(0,t.jsx)(i.CommandKItem,{value:`Go to ${e.label} website navigation page`,onSelect:()=>c(e.href),children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(j.IconArrowUpRight,{size:14}),(0,t.jsxs)(p.Text,{as:"span",children:["Go to ",(0,t.jsx)("span",{className:"font-semibold",children:e.label})]})]})},e.href))})]})}var O=e.i(925495),L=e.i(441465);function P({onSelect:e,memberships:r}){return(0,t.jsx)(n.Group,{heading:"Teams",children:r.map(r=>(0,t.jsx)(i.CommandKItem,{value:`${r.name} ${r.team_id}`,onSelect:()=>e(r),children:(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[(0,t.jsx)("div",{className:"shrink-0 overflow-hidden rounded-xl dark:overflow-visible dark:rounded-none",children:(0,t.jsxs)(L.Root,{variant:"squared",size:"1",children:[(0,t.jsx)(L.Fallback,{children:r.name}),r.avatar_url&&(0,t.jsx)(L.Image,{src:(0,O.getTeamAvatarUrl)(r.avatar_url),alt:r.name})]})}),(0,t.jsx)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:(0,t.jsx)("span",{className:"truncate text-sm",children:r.name})})]})},r.team_id))})}function F({open:e,setOpen:r,onSelect:c,onClose:o,onSwitchTeam:u,memberships:d,initialPage:m}){let h=(0,l.useActiveTeam)(),[p,f]=a.useState([]),[g,x]=a.useState(void 0),[b,j]=a.useState(""),w=p[p.length-1],S=b.trim(),y=(0,s.useClientFeatureFlag)("elasticSearchEmails"),E=a.useRef(null);a.useEffect(()=>{switch(E.current?.scrollTo(0,0),j(""),w){case"emails":x("Search emails...");break;case"teams":x("Search teams...");break;default:x(void 0)}},[w]),a.useEffect(()=>{e?f(m?[m]:[]):j("")},[m,e]);let T=a.useCallback(()=>p.length>0&&(f(e=>e.slice(0,-1)),j(""),!0),[p.length]);return(0,t.jsx)(i.CommandKRoot,{open:e,setOpen:r,onEscapeKeyDown:T,children:(0,t.jsxs)(n.Root,{"aria-label":"Dashboard command menu",loop:!0,shouldFilter:"emails"!==w,onKeyDown:e=>{"Backspace"===e.key&&""===S&&p.length>0&&(f(e=>e.slice(0,-1)),j(""),e.preventDefault())},children:[(0,t.jsx)(i.CommandKSearch,{placeholder:g,value:b,onValueChange:j,pageLevel:p.length,onBack:()=>f(e=>e.slice(0,-1))}),(0,t.jsxs)(n.List,{ref:E,className:"p-1.5 scroll-p-2.5",children:[(0,t.jsx)(n.Empty,{children:"No results found."}),!w&&(0,t.jsx)(M,{onClose:o,onSelect:c,onOpenEmailSearch:y?()=>{f(e=>[...e,"emails"])}:void 0,onOpenTeamsSearch:()=>{f(e=>[...e,"teams"])}}),!w&&""!==S&&(0,t.jsx)(P,{onSelect:u,memberships:d.filter(e=>e.team_id!==h.team_id)}),"emails"===w&&(0,t.jsx)(v,{query:b,onSelect:c}
1),"teams"===w&&(0,t.jsx)(P,{onSelect:u,memberships:d})]})]})})}e.s(["CmdK",0,function({memberships:e}){let[n,i]=a.useState(!1),s=(0,r.useRouter)(),{switchTo:l}=(0,c.useSwitchTeam)("command_menu"),o=a.useCallback(e=>{i(!1),s.push(e)},[s]);return a.useEffect(()=>{function e(e){let t=e.target;if((e.metaKey||e.ctrlKey)&&"k"===e.key.toLowerCase()){if(t?.isContentEditable)return;e.preventDefault(),i(e=>!e)}}return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]),(0,t.jsx)(F,{open:n,setOpen:i,onClose:()=>i(!1),onSelect:o,onSwitchTeam:e=>{i(!1),l(e)},memberships:e})}],324707)},477850,e=>{"use strict";var t=e.i(410856),r=e.i(784862),a=e.i(298019),n=e.i(111384),i=e.i(624175),s=e.i(764979);let l=i.createContext(void 0);e.s(["ActiveTeamProvider",0,function({team:e,children:c}){let o=(0,s.useTRPC)(),u=(0,n.useRouter)(),d=(0,a.useQueryClient)(),{data:m}=(0,r.useQuery)(o.teams.getActive.queryOptions(void 0,{initialData:e,refetchOnMount:!1,refetchOnWindowFocus:!0})),h=m??e,p=i.useRef(h.team_id);return i.useEffect(()=>{p.current!==h.team_id&&(p.current=h.team_id,u.refresh())},[h.team_id,u]),i.useEffect(()=>{d.setQueryData(o.teams.getActive.queryKey(),e)},[e,d,o]),(0,t.jsx)(l.Provider,{value:h,children:c})},"useActiveTeam",0,function(){let e=i.useContext(l);if(void 0===e)throw Error("`useActiveTeam` must be used within an `ActiveTeamProvider`");return e}])},310902,e=>{"use strict";var t=e.i(410856),r=e.i(298019),a=e.i(85279),n=e.i(111384);e.i(796760);var i=e.i(248051),s=e.i(624175),l=e.i(72436),c=e.i(477850),o=e.i(500990),u=e.i(925495),d=e.i(378571),m=e.i(764979),h=e.i(234392),p=e.i(441465),f=e.i(18694);e.i(630545);var g=e.i(593550),v=e.i(101674),x=e.i(974940),b=e.i(112169),j=e.i(229220);function w({tier:e="Pro"}){return(0,t.jsx)("span",{className:"capitalize relative inline-flex h-5 items-center justify-center rounded-full bg-interactive text-default px-2 text-[11px] font-bold",children:e})}var S=e.i(871202),y=e.i(580731),E=e.i(199410);let T="w-[calc(100vw-1.5em)] -ml-1 mt-3 md:ml-0 md:w-auto sm:mt-0",N="min-w-[220px] max-w-[300px] max-h-[min(24rem,var(--available-height))] flex flex-col gap-1 overflow-hidden",C=({name:e})=>{let[,r,a]=e.split(/^([^(]+)\(([^)]+)\)$/);return r&&a?(0,t.jsxs)(t.Fragment,{children:[r.trim(),a&&(0,t.jsx)("span",{className:"text-gray-a5 dark:text-gray-a8 capitalize ml-1 inline-block",children:a.trim()})]}):e};function _({name:e,url:r}){return(0,t.jsxs)(p.Root,{variant:"squared",size:"1",children:[(0,t.jsx)(p.Fallback,{children:e}),(0,t.jsx)(p.Image,{src:(0,u.getTeamAvatarUrl)(r),alt:e})]})}function z(e){let t=(0,m.useTRPC)(),a=(0,c.useActiveTeam)(),u=(0,n.usePathname)(),d=(0,r.useQueryClient)(),[h,p]=s.default.useState(),f=h?.name||a.name,g=h?.avatar_url||a.avatar_url,{execute:v,isPending:x}=(0,i.useAction)(l.setActiveTeam,{onError:({error:e})=>{(0,y.showToast)({title:(0,o.getActionErrorMessage)(e),appearance:"red"}),E.loadingEmitter.disable()},onExecute:()=>{E.loadingEmitter.enable()},onNavigation:async()=>{await d.invalidateQueries(t.pathFilter())}});return s.default.useLayoutEffect(()=>{let e=window.requestAnimationFrame(()=>{p(null),E.loadingEmitter.disable()});return()=>window.cancelAnimationFrame(e)},[a.team_id]),{activeTeam:a,avatarUrl:g,isPending:x,name:f,switchTo:t=>{v({id:t.team_id,redirectTo:u??"/",source:e}),p({name:t.name,avatar_url:t.avatar_url})}}}function I({name:e,avatarUrl:r,isPaying:a,isPending:n}){return(0,t.jsx)(g.DropdownMenu.Trigger,{disabled:n,render:(0,t.jsx)(f.Button,{state:n?"disabled":"normal",appearance:"fade",className:"justify-between p-2! w-full text-sm gap-1! h-10",iconRight:(0,t.jsx)(b.IconChevronDown,{size:16,className:"text-default"}),children:(0,t.jsxs)("div",{className:"flex items-center justify-start gap-2.5 overflow-hidden",children:[(0,t.jsx)(_,{url:r,name:e},e),(0,t.jsxs)("div",{className:"text-left flex gap-2 items-center min-w-0",children:[(0,t.jsx)("span",{className:"truncate text-left tracking-tight",children:(0,t.jsx)(C,{name:e})}),e.length<12&&a&&(0,t.jsx)(w,{tier:"Pro"})]})]})})})}function k(){return(0,t.jsxs)(g.DropdownMenu.Item,{nativeButton:!1,render:(0,t.jsx)(a.default,{href:"/team/create",prefetch:!0,className:"flex gap-2"}),children:[(0,t.jsx)("div",{className:"size-6 flex",children:(0,t.jsx)(j.IconPlus,{size:16,className:"m-auto"})}),(0,t.jsx)(S.Text,{className:"font-semibold",children:"Create team"})]})}function A({memberships:e,activeTeamId:r,onSelectTeam:a}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(g.DropdownMenu.Group,{className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:[(0,t.jsx)(g.DropdownMenu.Label,{className:"shrink-0 pl-3.5 pt-1",children:"Teams"}),(0,t.jsx)("div",{className:"flex min-h-0 flex-1 flex-col gap-1 overflow-y-auto",children:e.map(e=>(0,t.jsx)(R,{activeTeamId:r,name:e.name,isPayingCustomer:e.is_paying,teamId:e.team_id,teamAvatarUrl:e.avatar_url,onClick:()=>a(e)},e.team_id))})]}),(0,t.jsx)(g.DropdownMenu.Separator,{}),(0,t.jsx)(k,{})]})}function R({activeTeamId:e,name:r,teamId:a,isPayingCustomer:n,teamAvatarUrl:i,onClick:s}){return(0,t.jsxs)(g.DropdownMenu.Item,{title:r,onClick:s,children:[(0,t.jsxs)("div",{className:"flex flex-1 items-center gap-2 overflow-hidden font-semibold",children:[(0,t.jsx)(_,{url:i,name:r}),(0,t.jsx)("span",{className:"truncate tracking-tight",children:(0,t.jsx)(C,{name:r})}),n&&(0,t.jsx)(w,{tier:"Pro"})]}),e===a&&(0,t.jsx)(x.IconCheck,{size:14})]})}function D({href:e,children:r}){return(0,t.jsx)(g.DropdownMenu.Item,{nativeButton:!1,render:(0,t.jsx)(a.default,{href:e,prefetch:!0}),children:r})}function M({memberships:e,email:r,activeTeamId:n,onSelectTeam:i}){let s=e.length>1;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(g.DropdownMenu.Group,{children:[(0,t.jsx)(g.DropdownMenu.Label,{className:"min-w-0 items-center truncate px-3.5 pt-2.5 pb-2",title:r,children:r}),(0,t.jsx)(D,{href:"/profile",children:"My profile"})]}),(0,t.jsx)(g.DropdownMenu.Separator,{}),s?(0,t.jsxs)(g.DropdownMenu.SubmenuRoot,{children:[(0,t.jsx)(g.DropdownMenu.SubmenuTrigger,{openOnHover:!0,children:"Switch team"}),(0,t.jsx)(g.DropdownMenu.Content,{side:"inline-end",align:"start",alignOffset:-5,className:N,children:(0,t.jsx)(A,{memberships:e,activeTeamId:n,onSelectTeam:i})})]}):(0,t.jsx)(D,{href:"/team/create",children:"Create team"}),(0,t.jsx)(D,{href:"/settings/team",children:"Invite members"}),(0,t.jsx)(g.DropdownMenu.Separator,{}),(0,t.jsxs)(g.DropdownMenu.Item,{className:"flex justify-between group",nativeButton:!1,render:(0,t.jsx)(a.default,{href:"/home",target:"_blank",rel:"noopener noreferrer"}),children:[(0,t.jsx)("span",{className:"whitespace-nowrap",children:"Homepage"}),(0,t.jsx)(v.IconArrowUpRight,{className:"text-default group-hover:text-emphasis",size:14})]}),(0,t.jsx)(g.DropdownMenu.Separator,{}),(0,t.jsx)(g.DropdownMenu.Item,{onClick:()=>(0,h.logout)(),children:"Log out"})]})}function O(e){let{activeTeam:r,avatarUrl:a,isPending:n,name:i,switchTo:s}=z(e.accountMenu?"account_menu":"team_switcher");return(0,t.jsxs)(g.DropdownMenu.Root,{children:[(0,t.jsx)(I,{name:i,avatarUrl:a,isPaying:r.is_paying,isPending:n}),(0,t.jsx)(g.DropdownMenu.Content,{align:"start",className:e.accountMenu?(0,d.cn)(T,"md:min-w-[220px] md:max-w-[300px]"):(0,d.cn)(N,T),children:e.accountMenu?(0,t.jsx)(M,{memberships:e.memberships,email:e.email,activeTeamId:r.team_id,onSelectTeam:s}):(0,t.jsx)(A,{memberships:e.memberships,activeTeamId:r.team_id,onSelectTeam:s})})]})}e.s(["TeamAccountMenu",0,function({memberships:e,email:r,accountMenu:a}){return a?(0,t.jsx)(O,{memberships:e,email:r,accountMenu:!0}):(0,t.jsx)(O,{memberships:e,accountMenu:!1})},"TeamSwitcher",0,function({memberships:e=[]}){return(0,t.jsx)(O,{memberships:e,accountMenu:!1})},"useSwitchTeam",0,z],310902)},500990,e=>{"use strict";var t=e.i(323871);e.s(["getActionErrorMessage",0,function(e){if(e.validationErrors){let t=function e(t){if(t._errors&&t._errors.length>0)return t._errors[0];for(let r of Object.keys(t)){if("_errors"===r)continue;let a=t[r];if(a){if(Array.isArray(a))for(let t of a){if("string"==typeof t)return t;let r=e(t);if(r)return r}else if("object"==typeof a){let t=e(a);if(t)return t}}}}(e.validationErrors);if(t)return t}return e.serverError?e.serverError:t.sharedMessages.genericError}])},597308,e=>{"use strict";var t=e.i(635790),r=e.i(624175);e.s(["useThemeToggle",0,function(){let{theme:e,resolvedTheme:a,systemTheme:n,setTheme:i}=(0,t.useTheme)(),[s,l]=(0,r.useState)(!1);(0,r.useEffect)(()=>
1{l(!0)},[]);let c="dark"===a?"light":"dark",o=c===n,u=(0,r.useCallback)(e=>{i(e===n?"system":e)},[n,i]),d=(0,r.useCallback)(()=>{let e;i((e="dark"===a?"light":"dark")===n?"system":e)},[a,n,i]);return{theme:function(e){switch(e){case"light":case"dark":case"system":return e;default:return"system"}}(e),resolvedTheme:a,systemTheme:n,targetTheme:c,returnsToSystem:o,selectTheme:u,setTheme:i,toggleTheme:d,mounted:s}}])},925495,e=>{"use strict";var t=e.i(944242);e.s(["getTeamAvatarUrl",0,function(e,r=t.env.NEXT_PUBLIC_DASHBOARD_CLOUDFRONT_URL){if(e)return`${r}/team-avatars/${e}`}])},272304,e=>{"use strict";var t=e.i(817422),r=e.i(712671);t.z.object({query:t.z.string().max(100)}),t.z.object({emailId:t.z.string().min(1)}),t.z.object({id:t.z.string().min(1),email:t.z.email()}),t.z.object({id:t.z.uuid(),content:t.z.record(t.z.string(),t.z.unknown()),variables:t.z.array(r.variableNameSchema).max(r.MAX_BATCH_VARIABLES).default([])}),t.z.object({id:t.z.string().min(1),type:t.z.enum(["sending","receiving"]).optional(),expiresIn:t.z.enum(["10m","3h","24h","48h"]).default("48h")}),t.z.object({data:t.z.object({email_id:t.z.string(),type:t.z.enum(["sending","receiving"]).optional()})}),t.z.object({page:t.z.number().int(),limit:t.z.number().int(),cursorDate:t.z.string(),cursorId:t.z.string(),direction:t.z.string(),query:t.z.string(),apiKey:t.z.string(),statuses:t.z.array(t.z.string()),startDate:t.z.date(),endDate:t.z.date(),timezone:t.z.string()});let a=t.z.object({id:t.z.string(),to:t.z.array(t.z.string()),cc:t.z.array(t.z.string()).nullable().optional(),bcc:t.z.array(t.z.string()).nullable().optional(),subject:t.z.string(),created_at:t.z.string(),last_event:t.z.string().nullable(),sent_at:t.z.string().nullable()}),n=a.extend({type:t.z.literal("inbound"),from:t.z.string(),above_quota:t.z.boolean()}),i=a.extend({type:t.z.literal("outbound"),scheduled_at:t.z.string().nullable().optional(),status_breakdown:t.z.array(t.z.object({status:t.z.string(),count:t.z.number()})).optional()});t.z.object({total:t.z.number(),data:t.z.array(t.z.union([n,i])),prevCursorDate:t.z.string().nullable().optional(),prevCursorId:t.z.string().nullable().optional(),nextCursorDate:t.z.string().nullable().optional(),nextCursorId:t.z.string().nullable().optional()});let s=t.z.enum(["received","delivered","bounced","complained","opened","clicked","canceled","delivery_delayed","failed","failed_rendering","scheduled","sent","unsubscribed","unique_opened","unique_clicked","queued","suppressed"]);t.z.object({inboundEmailId:t.z.string().transform(e=>e.trim()).pipe(t.z.uuid())}),t.z.object({emailId:t.z.string().transform(e=>e.trim()).pipe(t.z.uuid())}),e.s(["STATUS_COLORS",0,{received:"var(--cyan-a11)",delivered:"var(--green-a11)",complained:"var(--amber-a11)",bounced:"var(--red-a11)",opened:"var(--blue-a11)",clicked:"var(--violet-a11)",delivery_delayed:"var(--sand-a11)",failed:"var(--red-a9)",failed_rendering:"var(--amber-a12)",scheduled:"var(--mauve-a11)",sent:"var(--slate-a11)",canceled:"var(--mauve-a10)",unsubscribed:"var(--orange-a11)",unique_opened:"var(--blue-a11)",unique_clicked:"var(--violet-a11)",queued:"var(--sand-a11)",suppressed:"var(--slate-a11)"},"STATUS_LABELS",0,{received:"Received",delivered:"Delivered",bounced:"Bounced",complained:"Complained",opened:"Opened",clicked:"Clicked",canceled:"Canceled",delivery_delayed:"Delivery delayed",failed:"Failed",failed_rendering:"Failed rendering",scheduled:"Scheduled",sent:"Sent",unsubscribed:"Unsubscribed",unique_opened:"Opened",unique_clicked:"Clicked",queued:"Queued",suppressed:"Suppressed"},"StatusTypeEnum",0,s])},234392,e=>{"use strict";var t=e.i(959628);let r=(0,t.createServerReference)("0046bce8a9cc9fd0b96cdfae3c9465046f042d42cd",t.callServer,void 0,t.findSourceMapURL,"logout");e.s(["logout",0,r])},413974,e=>{"use strict";var t=e.i(410856),r=e.i(347692);e.s(["IconArrows",0,e=>(0,t.jsx)(r.IconBase,{...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M16.5 8q.9 0 1 1v7.2a1 1 0 0 0 1.7.7l1-1.1a1 1 0 0 1 1.5 1.4l-4.5 4.5-.4.3h-.3l-.7-.3-4.5-4.5a1 1 0 0 1 1.4-1.4l1 1a1 1 0 0 0 1.8-.6V9q0-1 1-1m-9-6q.4 0 .7.3l4.5 4.5a1 1 0 0 1-1.4 1.4l-1-1a1 1 0 0 0-1.8.6V15a1 1 0 0 1-2 0V7.8a1 1 0 0 0-1.7-.7l-1 1.1a1 1 0 0 1-1.5-1.4l4.5-4.5.4-.3z"})})])},575957,e=>{"use strict";var t=e.i(410856),r=e.i(347692);e.s(["IconGithub",0,e=>(0,t.jsx)(r.IconBase,{...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M19 2.1q.8.2.9.8.4 1.5.1 3.2 0 .4.2.7.8 1.6.7 3.4c0 3-2 5-4.2 6q-1 .4-.9 1.4.2.8.1 1.6V21a1 1 0 0 1-2 0v-1.9q.1-1.6-.8-2.8a1 1 0 0 1 .8-1.6c2.6 0 5-1.8 5-4.5V10q0-1.5-.8-2.9l-.2-.8.2-.8c0-.7-.6-1-1-.6l-.5.3a1 1 0 0 1-.9.3Q12 5 8.1 5.6a1 1 0 0 1-1-.3l-.4-.5q-.8-.5-1 .6l.1 1q.1.5-.1.8a4 4 0 0 0-.8 3c0 2.7 2.4 4.5 5 4.5a1 1 0 0 1 .8 1.6 4 4 0 0 0-.8 2.9V2
11a1 1 0 0 1-2 0q-.1-.8-1-.8-1.6.3-2.8-.5a5 5 0 0 1-2-2.8 1 1 0 0 1 1.9-.7q.3 1.1 1.2 1.8.6.5 2.3-.1.5-.2.5-.7v-.1q.2-.6-.3-.8a6.4 6.4 0 0 1-4.8-6v-.4q0-1.5.7-3.1.2-.3.1-.7A8 8 0 0 1 4 2.9v-.2a1 1 0 0 1 1-.6q1.5 0 3 1.1.4.3.9.3 3-.4 6.3 0 .5 0 .8-.3 1.5-1 3-1z"})})])},715320,194142,e=>{"use strict";var t=e.i(410856),r=e.i(347692);e.s(["IconMoon",0,e=>(0,t.jsx)(r.IconBase,{...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M7.2 5.8v-.3a8 8 0 0 0 5 14.3l-.5 1 .5 1h-.5a10 10 0 0 1-9.4-9.5v-.5A10 10 0 0 1 9 2.3q.7-.2.6.6l-.1.4-.4 2.5v.4a9 9 0 0 0 8.6 8.5h.4q1.5 0 2.9-.4.8 0 .6.6l-.1.4a10 10 0 0 1-9.4 6.5l-.5-1 .5-1a8 8 0 0 0 6.3-3h-.3c-6 0-11-5-11-11"})})],715320),e.s(["IconSun",0,e=>(0,t.jsx)(r.IconBase,{...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M12 18a1 1 0 0 1 1 1v2a1 1 0 1 1-2 0v-2a1 1 0 0 1 1-1m-5.655-1.754a1 1 0 1 1 1.414 1.414l-1.414 1.414A1 1 0 1 1 4.93 17.66zm9.9 0a1 1 0 0 1 1.413 0l1.414 1.414a1 1 0 1 1-1.414 1.414l-1.414-1.414a1 1 0 0 1 0-1.414M12 8a4 4 0 1 1 0 8 4 4 0 0 1 0-8m0 2a2 2 0 1 0 0 4 2 2 0 0 0 0-4m-6.995.995a1 1 0 1 1 0 2h-2a1 1 0 1 1 0-2zm16 0a1 1 0 1 1 0 2h-2a1 1 0 1 1 0-2zM4.93 4.933a1 1 0 0 1 1.414 0l1.414 1.414A1 1 0 1 1 6.345 7.76L4.93 6.347a1 1 0 0 1 0-1.414m12.727 0a1 1 0 1 1 1.414 1.414L17.658 7.76a1 1 0 1 1-1.414-1.414zM12 2a1 1 0 0 1 1 1v2a1 1 0 1 1-2 0V3a1 1 0 0 1 1-1"})})],194142)},465530,e=>{"use strict";var t=e.i(95542);e.s(["getEmailStatusAppearance",0,e=>{switch(e){case t.EmailStatus.Received:case t.EmailStatus.Delivered:return"green";case t.EmailStatus.Complained:return"yellow";case t.EmailStatus.Bounced:case t.EmailStatus.Failed_Rendering:case t.EmailStatus.Failed:return"red";case t.EmailStatus.Clicked:return"violet";case t.EmailStatus.Opened:return"blue";case t.EmailStatus.Delivery_Delayed:return"sand";case t.EmailStatus.Queued:case t.EmailStatus.Scheduled:case t.EmailStatus.Sent:case t.EmailStatus.Suppressed:return"gray";case t.EmailStatus.Canceled:return"dimgray";default:return"gray"}}])},95542,e=>{"use strict";var t,r,a,n,i=((t={}).Received="received",t.Bounced="bounced",t.Canceled="canceled",t.Clicked="clicked",t.Complained="complained",t.Delivered="delivered",t.Delivery_Delayed="delivery_delayed",t.Failed="failed",t.Failed_Rendering="failed_rendering",t.Opened="opened",t.Scheduled="scheduled",t.Sent="sent",t.Queued="queued",t.Suppressed="suppressed",t.Unsubscribed="unsubscribed",t),s=((r={}).Enabled="enabled",r.Disabled="disabled",r),l=((a={}).Open="open",a.Paid="paid",a),c=((n={}).Pending="pending",n.Completed="completed",n.Failed="failed",n.Expired="expired",n);e.s(["EmailStatus",()=>i,"ExportStatus",()=>c,"InvoiceStatus",()=>l,"WebhookStatus",()=>s])},248051,e=>{"use strict";var t=e.i(139523);e.s(["useAction",()=>t.t])},796760,139523,e=>{"use strict";function t(e){return"object"==typeof e&&null!==e&&"digest"in e&&"BAILOUT_TO_CLIENT_SIDE_RENDERING"===e.digest}let r=new Set(Object.values({NOT_FOUND:404,FORBIDDEN:403,UNAUTHORIZED:401}));function a(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,a]=e.digest.split(";");return"NEXT_HTTP_ERROR_FALLBACK"===t&&r.has(Number(a))}var n,i=((n=i||{})[n.SeeOther=303]="SeeOther",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",n);function s(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let t=e.digest.split(";"),[r,a]=t,n=t.slice(2,-2).join(";"),s=Number(t.at(-2));return"NEXT_REDIRECT"===r&&("replace"===a||"push"===a)&&"string"==typeof n&&!isNaN(s)&&s in i}let l=Symbol.for("react.postpone");var c=class e{#e;static isNavigationError(e){var r,n,i;return s(e)||a(e)||t(e)||"object"==typeof(n=r=e)&&null!==n&&"digest"in n&&"string"==typeof n.digest&&"DYNAMIC_SERVER_USAGE"===n.digest||t(r)||s(i=r)||a(i)||function(e){if("object"==typeof e&&null!==e&&"string"==typeof e.message){var t;return(t=e.message).includes("needs to bail out of prerendering at this point because it used")&&t.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error")}return!1}(r)||"object"==typeof e&&null!==e&&e.$$typeof===l}static getNavigationKind(e){if(s(e))return"redirect";if(a(e)){let t=Number(e.digest.split(";")[1]);if(404===t)return"notFound";if(403===t)return"forbidden";if(401===t)return"unauthorized"}return"other"}handleError(t){if(e.isNavigationError(t)){this.#e=t;return}throw t}get error(){return this.#e}},o=e.i(624175);let u=({isIdle:e,isExecuting:t,result:r,hasNavigated:a,hasThrownError:n})=>e?"idle":t?"executing":n||void 0!==r.validationErrors||void 0!==r.serverError?"hasErrored":a?"hasNavigated":"hasSucceeded",d=({status:e,isTransitioning:t})=>({isIdle:"idle"===e,isExecuting:"executing"===e,isTransitioning:t,isPending:"executing"===e||t,hasSucceeded:"hasSucceeded"===e,hasErrored:"hasErrored"===e,hasNavigated:"hasNavigated"===e});function m(e){let t=o.useRef(e);return o.useEffect(()=>{t.current=e}),o.useMemo(()=>e=>t.current?.(e),[])}let h=({result:e,input:t,status:r,cb:a,throwOnNavigation:n,navigationError:i,thrownError:s})=>{let l=m(a?.onExecute),u=m(a?.onSuccess),d=m(a?.onError),h=m(a?.onSettled),p=m(a?.onNavigation);o.useEffect(()=>{(async()=>{switch(r){case"executing":await Promise.resolve(l?.({input:t})).then(()=>{});break;case"hasSucceeded":if(i||s)break;await Promise.all([Promise.resolve(u?.({data:e.data,input:t})),Promise.resolve(h?.({result:e,input:t}))]);break;case"hasErrored":await Promise.all([Promise.resolve(d?.({error:{...e,...s?{thrownError:s}:{}}
1,input:t})),Promise.resolve(h?.({result:e,input:t}))])}if(!n&&i&&("redirect"===c.getNavigationKind(i)||"hasNavigated"===r)){let r=c.getNavigationKind(i);await Promise.all([Promise.resolve(p?.({input:t,navigationKind:r})),Promise.resolve(h?.({result:e,input:t,navigationKind:r}))])}})().catch(console.error)},[t,r,e,n,i,s,l,u,h,d,p])};function p(e,t,r){let[a,n]=o.useTransition(),[i,s]=o.useState({}),[l,m]=o.useState(),[p,f]=o.useState(!1),[g,v]=o.useState(null),[x,b]=o.useState(null),[j,w]=o.useState(!0),S=o.useRef(0),y=o.useRef(r);y.current=r;let E=u({isExecuting:p,result:i,isIdle:j,hasNavigated:null!==g,hasThrownError:null!==x}),T=o.useCallback(t=>{let r=++S.current;w(!1),v(null),b(null),m(t),f(!0),n(()=>{y.current?.(t),e(t).then(e=>{r===S.current&&s(e??{})}).catch(e=>{if(r===S.current&&(s({}),c.isNavigationError(e)?v(e):b(e)),!c.isNavigationError(e))throw e}).finally(()=>{r===S.current&&f(!1)})})},[e]),N=o.useCallback(t=>new Promise((r,a)=>{let i=++S.current;w(!1),v(null),b(null),m(t),f(!0),n(()=>{y.current?.(t),e(t).then(e=>{i===S.current&&s(e??{}),r(e)}).catch(e=>{if(i===S.current&&(s({}),c.isNavigationError(e)?v(e):b(e)),a(e),!c.isNavigationError(e))throw e}).finally(()=>{i===S.current&&f(!1)})})}),[e]),C=o.useCallback(()=>{w(!0),v(null),b(null),m(void 0),s({})},[]);if(h({result:i??{},input:l,status:E,throwOnNavigation:t?.throwOnNavigation===!0,navigationError:g,thrownError:x,cb:t}),t?.throwOnNavigation===!0&&null!==g)throw g;return{isTransitioning:a,result:i,clientInput:l,status:E,execute:T,executeAsync:N,reset:C,shorthandStatus:d({status:E,isTransitioning:a})}}e.s(["n",0,(e,t)=>{let[r,a]=o.useOptimistic(t.currentState,t.updateFn),{currentState:n,updateFn:i,...s}=t,{result:l,clientInput:c,status:u,execute:d,executeAsync:m,reset:h,shorthandStatus:f}=p(e,s,a);return{execute:d,executeAsync:m,input:c,result:l,optimisticState:r,reset:h,status:u,...f}},"r",0,(e,t)=>{if("function"!=typeof o.useActionState)throw Error("useStateAction requires React 19+ (Next.js 15+). For older versions, use React's useActionState directly with your safe action.");let r=t?.initResult,a=o.useRef(null),n=o.useRef(null),[i,s]=o.useState(null),[l,m]=o.useState(null),[p,f]=o.useState(!0),[g,v]=o.useState(!1),[x,b]=o.useState(),[j,w]=o.useTransition(),S=o.useCallback(async(t,r)=>{f(!1),v(!1),b(r),s(null),m(null);let i=n.current??t;n.current=null;try{let t=await e(i,r);return a.current?.resolve(t),t}catch(e){if(c.isNavigationError(e))return s(e),a.current?.reject(e),{};throw m(e),a.current?.reject(e),e}finally{a.current=null}},[e]),[y,E,T]=o.useActionState(S,r??{}),N=o.useCallback(e=>{f(!1),v(!1),s(null),m(null),b(e),w(()=>{E(e)})},[E]),C=o.useCallback(e=>new Promise((t,r)=>{a.current={resolve:t,reject:r},N(e)}),[N]),_=o.useCallback(()=>{f(!0),v(!0),s(null),m(null),b(void 0),n.current=r??{}},[r]),z=g?r??{}:y??{},I=u({isExecuting:T,result:z,isIdle:p&&!T,hasNavigated:null!==i,hasThrownError:null!==l});if(h({result:z,input:x,status:I,cb:t,throwOnNavigation:t?.throwOnNavigation===!0,navigationError:i,thrownError:l}),t?.throwOnNavigation===!0&&null!==i)throw i;return{execute:N,executeAsync:C,formAction:E,input:x,result:z,reset:_,status:I,...d({status:I,isTransitioning:j})}},"t",0,(e,t)=>{let{result:r,clientInput:a,status:n,execute:i,executeAsync:s,reset:l,shorthandStatus:c}=p(e,t);return{execute:i,executeAsync:s,input:a,result:r,reset:l,status:n,...c}}],139523),e.s([],796760)},5777,e=>{"use strict";var t=e.i(624175);function r(e,r,a,n){var i=this,s=(0,t.useRef)(null),l=(0,t.useRef)(0),c=(0,t.useRef)(0),o=(0,t.useRef)(null),u=(0,t.useRef)([]),d=(0,t.useRef)(),m=(0,t.useRef)(),h=(0,t.useRef)(e),p=(0,t.useRef)(!0),f=(0,t.useRef)(),g=(0,t.useRef)();h.current=e;var v="u">typeof window,x=!r&&0!==r&&v;if("function"!=typeof e)throw TypeError("Expected a function");r=+r||0;var b=!!(a=a||{}).leading,j=!("trailing"in a)||!!a.trailing,w=!!a.flushOnExit&&j,S="maxWait"in a,y="debounceOnServer"in a&&!!a.debounceOnServer,E=S?Math.max(+a.maxWait||0,r):null,T=(0,t.useMemo)(function(){var e=function(e){var t=u.current,r=d.current;return u.current=d.current=null,l.current=e,c.current=c.current||e,m.current=h.current.apply(r,t)},t=function(e,t){x&&cancelAnimationFrame(o.current),o.current=x?requestAnimationFrame(e):setTimeout(e,t)},a=function(e){if(!p.current)return!1;var t=e-s.current;return!s.current||t>=r||t<0||S&&e-l.current>=E},T=function(t){return o.current=null,j&&u.current?e(t):(u.current=d.current=null,m.current)},N=function e(){var n=Date.now();if(b&&c.current===l.current&&C(),a(n))return T(n);if(p.current){var i=r-(n-s.current);t(e,S?Math.min(i,E-(n-l.current)):i)}},C=function(){n&&n({})},_=function(){if(v||y){var n,c=Date.now(),h=a(c);if(u.current=[].slice.call(arguments),d.current=i,s.current=c,w&&!f.current&&(f.current=function(){var e;"hidden"===(null==(e=globalThis.document)?void 0:e.visibilityState)&&g.current.flush()},null==(n=globalThis.document)||null==n.addEventListener||n.addEventListener("visibilitychange",f.current)),h){
1if(!o.current&&p.current)return l.current=s.current,t(N,r),b?e(s.current):m.current;if(S)return t(N,r),e(s.current)}return o.current||t(N,r),m.current}};return _.cancel=function(){var e=o.current;e&&(x?cancelAnimationFrame(o.current):clearTimeout(o.current)),l.current=0,u.current=s.current=d.current=o.current=null,e&&n&&n({})},_.isPending=function(){return!!o.current},_.flush=function(){return o.current?T(Date.now()):m.current},_},[b,S,r,E,j,w,x,v,y,n]);return g.current=T,(0,t.useEffect)(function(){return p.current=!0,function(){var e;w&&g.current.flush(),f.current&&(null==(e=globalThis.document)||null==e.removeEventListener||e.removeEventListener("visibilitychange",f.current),f.current=null),p.current=!1}},[w]),T}function a(e,t){return e===t}e.s(["useDebounce",0,function(e,n,i){var s=i&&i.equalityFn||a,l=(0,t.useRef)(e),c=(0,t.useState)({})[1],o=r((0,t.useCallback)(function(e){l.current=e,c({})},[c]),n,i,c),u=(0,t.useRef)(e);return s(u.current,e)||(o(e),u.current=e),[l.current,o]},"useDebouncedCallback",0,r])}]);
2
3//# sourceMappingURL=1w06a28s_kry6.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.