PageSourceSearch

https://www.getinboxzero.com/_next/static/immutable/chunks/32g_dq285pq76.js

js getinboxzero.com collected 2026-09-24 10:10:04 UTC 24,122 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="da29e591-56a1-576d-9189-b5e76535cb39")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,186876,e=>{"use strict";var t=e.i(982630),n=e.i(310621),i=e.i(32877),s=e.i(464623),a=e.i(982591);e.i(117998);var r=e.i(523149),l=e.i(421207),o=e.i(20014),c=e.i(994798),d=e.i(356530),g=e.i(935308),u=e.i(466691),m=e.i(370317),h=e.i(954841),x=e.i(160171),p=e.i(456332),j=e.i(259109);[j.MeetingRecordingStatus.PENDING,j.MeetingRecordingStatus.SCHEDULED,j.MeetingRecordingStatus.JOINING,j.MeetingRecordingStatus.IN_WAITING_ROOM,j.MeetingRecordingStatus.IN_CALL,j.MeetingRecordingStatus.RECORDING,j.MeetingRecordingStatus.CALL_ENDED].filter(e=>e!==j.MeetingRecordingStatus.CALL_ENDED),j.MeetingRecordingStatus.PENDING,j.MeetingRecordingStatus.SCHEDULED;let f=[j.MeetingRecordingStatus.JOINING,j.MeetingRecordingStatus.IN_WAITING_ROOM,j.MeetingRecordingStatus.FAILED],v=[j.MeetingRecordingStatus.IN_CALL,j.MeetingRecordingStatus.RECORDING],N=[j.MeetingRecordingStatus.CALL_ENDED,j.MeetingRecordingStatus.DONE],M=[...v,...N];[...f,...N],j.MeetingRecordingStatus.PENDING,j.MeetingRecordingStatus.SCHEDULED,j.MeetingRecordingStatus.JOINING,j.MeetingRecordingStatus.IN_WAITING_ROOM,j.MeetingRecordingStatus.IN_CALL,j.MeetingRecordingStatus.RECORDING,j.MeetingRecordingStatus.CALL_ENDED,j.MeetingRecordingStatus.CANCELLING,j.MeetingRecordingStatus.DONE,j.MeetingRecordingStatus.FAILED,j.MeetingRecordingStatus.CANCELLED;let C=[j.MeetingRecordingStatus.DONE,j.MeetingRecordingStatus.FAILED,j.MeetingRecordingStatus.CANCELLED];[j.MeetingRecordingStatus.CANCELLING,...C];var b=e.i(590403);function S(e){return(0,p.default)((0,b.getAccountScopedKey)("/api/user/meeting-recorder",e))}function A(e){return(0,p.default)((0,b.getAccountScopedKey)("/api/user/meeting-recorder/upcoming",e),{refreshInterval:e=>e&&0===e.events.length?0:3e4})}var E=e.i(450790),D=e.i(395910),R=e.i(5056);let y=(0,R.createServerReference)("7f7778347736c148857ea6396088be664125d0f58f",R.callServer,void 0,R.findSourceMapURL,"updateMeetingRecorderSettingsAction");var I=e.i(335711),w=e.i(683951),L=e.i(997666),T=e.i(322106);let _={name:"mail-plus",size:24,node:[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"12jkf8"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"M19 16v6",key:"tddt3s"}],["path",{d:"M16 19h6",key:"xwg31i"}]]};_.node;let k=(0,T.default)(_);var O=e.i(510771),P=e.i(164477),G=e.i(156470),z=e.i(509855),F=e.i(208307);let H=[{value:j.MeetingJoinRule.ALL,label:"Every call with a video link"},{value:j.MeetingJoinRule.EXTERNAL_ONLY,label:"Only calls with people outside my company"},{value:j.MeetingJoinRule.HOST_ONLY,label:"Only calls I organize"},{value:j.MeetingJoinRule.OFF,label:"Only the ones I turn on myself"}],U=[{icon:(0,t.jsx)(s.MicIcon,{className:"size-4 text-blue-500"}),title:"Notes and transcript",description:"A summary of every call"},{icon:(0,t.jsx)(L.ListChecksIcon,{className:"size-4 text-blue-500"}),title:"Action items with owners",description:"What was decided, and who owns what"},{icon:(0,t.jsx)(k,{className:"size-4 text-blue-500"}
2),title:"Follow-up drafted for you",description:"Waiting in your drafts, never sent"}];function $({emailAccountId:e,hasCalendarConnected:i,onEnable:s,isEnabling:a}){let[r,l]=(0,n.useState)(null);return null!==r?(0,t.jsx)(W,{emailAccountId:e,joinRule:r,onChange:l,onConfirm:()=>s(r),isEnabling:a}):(0,t.jsx)(G.SetupCard,{imageSrc:"/images/illustrations/calling-help.svg",imageAlt:"Meeting notetaker",title:"Never write meeting notes again",description:"Inbox Zero joins your calls, takes the notes, and drafts the follow-up email.",features:U,children:i?(0,t.jsx)(u.Button,{onClick:()=>l(j.MeetingJoinRule.ALL),children:"Get started"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(z.MessageText,{children:"Connect your calendar to get started:"}),(0,t.jsx)(F.ConnectCalendar,{analyticsPage:"meetings",onboardingReturnPath:`/${e}/meetings`})]})})}function W({emailAccountId:e,joinRule:n,onChange:i,onConfirm:s,isEnabling:a}){let{emailAccount:r,userEmail:l}=(0,D.useAccount)(),o=function({ownerName:e,ownerEmail:t}){let n=e?.trim().split(/\s+/)[0],i="'s Inbox Zero Notetaker",s=100-i.length,a=(n||t).slice(0,s),r=/[\uD800-\uDBFF]$/.test(a)?a.slice(0,-1):a;return`${r}${i}`}({ownerName:r?.name??null,ownerEmail:l});return(0,t.jsxs)("div",{className:"mx-4 mt-16 flex max-w-lg flex-col gap-6 md:mx-auto",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(z.PageHeading,{children:"Which meetings should we join?"}),(0,t.jsxs)(z.MutedText,{className:"flex flex-wrap items-center gap-x-2",children:[(0,t.jsx)(w.CheckIcon,{className:"size-4 shrink-0 text-green-600"}),l," connected",(0,t.jsx)(z.TextLink,{href:`/${e}/calendars`,children:"Change"})]})]}),(0,t.jsx)(P.RadioCardGroup,{name:"joinRule",ariaLabel:"Which meetings to join",value:n,onChange:i,options:H,disabled:a}),(0,t.jsx)(u.Button,{className:"self-start",loading:a,onClick:s,children:"Start recording my meetings"}),(0,t.jsxs)(z.MutedText,{className:"flex items-start gap-2 text-xs",children:[(0,t.jsx)(O.ShieldIcon,{className:"mt-0.5 size-3.5 shrink-0"}),"Joins as a visible participant called ",o,"."]})]})}var B=e.i(394847),J=e.i(815520),K=e.i(282879),q=e.i(430986);function Y({emailAccountId:e,open:n,onClose:i}){let s=(0,E.useProductAnalytics)(),{data:a,mutate:l}=S(e),{mutate:o}=A(e),{execute:c}=(0,r.useAction)(y.bind(null,e),{onSuccess:()=>{(0,g.toastSuccess)({description:"Settings saved"}),l(),o()},onError:({error:e})=>{l(),(0,g.toastError)({description:(0,I.getActionErrorMessage)(e,{prefix:"Failed to save settings"})})}}),d=e=>{a&&l({...a,...e},{revalidate:!1}),c(e)};return(0,t.jsx)(K.Dialog,{open:n,onOpenChange:e=>!e&&i(),children:(0,t.jsxs)(K.DialogContent,{className:"max-h-[85vh] overflow-y-auto sm:max-w-lg",children:[(0,t.jsx)(K.DialogHeader,{children:(0,t.jsx)(K.DialogTitle,{children:"Notetaker settings"})}),a&&(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(q.ItemTitle,{children:"Which meetings to join"}),(0,t.jsx)(P.RadioCardGroup,{name:"joinRule",ariaLabel:"Which meetings to join",value:a.joinRule,onChange:e=>{s.captureAction("meeting_recorder_setting_changed",{setting:"join_rule",value:e}),d({joinRule:e})},options:H})]}),(0,t.jsxs)(B.ListCard,{children:[(0,t.jsxs)(q.Item,{children:[(0,t.jsx)(q.ItemContent,{children:(0,t.jsx)(q.ItemTitle,{children:"Email me the notes"})}),(0,t.jsx)(J.Toggle,{name:"recapEmailEnabled",ariaLabel:"Email me the notes",enabled:a.recapEmailEnabled,onChange:e=>{s.captureAction("meeting_recorder_setting_changed",{setting:"recap_email",value:e}),d({recapEmailEnabled:e})}})]}),(0,t.jsxs)(q.Item,{children:[(0,t.jsx)(q.ItemContent,{children:(0,t.jsx)(q.ItemTitle,{children:"Draft a follow-up email"})}),(0,t.jsx)(J.Toggle,{name:"followUpDraftEnabled",ariaLabel:"Draft a follow-up email",enabled:a.followUpDraftEnabled,onChange:e=>{s.captureAction("meeting_recorder_setting_changed",{setting:"follow_up_draft",value:e}),d({followUpDraftEnabled:e})}})]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,t.jsx)(z.MutedText,{children:"Cancels every call it is booked to 
2join."}),(0,t.jsx)(u.Button,{variant:"outline",onClick:()=>{s.captureAction("meeting_recorder_disabled"),d({enabled:!1}),i()},children:"Turn off"})]})]})]})})}var Z=e.i(727045),Q=e.i(456889),X=e.i(390260);let V={name:"text-quote",size:24,node:[["path",{d:"M17 5H3",key:"1cn7zz"}],["path",{d:"M21 12H8",key:"scolzb"}],["path",{d:"M21 19H8",key:"13qgcb"}],["path",{d:"M3 12v7",key:"1ri8j3"}]]};V.node;let ee=(0,T.default)(V);var et=e.i(198057),en=e.i(766679),ei=e.i(524365),es=e.i(878835),ea=e.i(323621),er=e.i(96222),el=e.i(440087),eo=e.i(534792);let ec=(0,R.createServerReference)("7f10204bc582a7f1335390bf662f2d848b71d0f267",R.callServer,void 0,R.findSourceMapURL,"deleteMeetingNotesAction");function ed({meetingId:e,onClose:i}){var s,a,o,c;let d,h,{emailAccountId:x}=(0,D.useAccount)(),f=(0,E.useProductAnalytics)(),{mutate:v}=(0,en.useSWRConfig)(),[N,C]=(0,n.useState)(!1),{data:S,isLoading:A,error:R,mutate:y}=(0,p.default)(e?(0,b.getAccountScopedKey)(`/api/user/meeting-recorder/meetings/${e}`,x):null,{refreshInterval:e=>{var t;return 5e3*(t=e,!!(t?.recording&&t.processingStatus!==j.MeetingProcessingStatus.COMPLETED&&t.processingStatus!==j.MeetingProcessingStatus.FAILED&&M.includes(t.recording.status)))}}),w=S?.summary,L=S?.recording?.transcript,T=function({hasSummary:e,hasTranscript:t,recordingStatus:n,processingStatus:i}){return e?"notes":n===j.MeetingRecordingStatus.FAILED?"recording-failed":i===j.MeetingProcessingStatus.FAILED?"processing-failed":i===j.MeetingProcessingStatus.COMPLETED?"notes-unavailable":t?"notes":n&&M.includes(n)?"processing":"not-recorded"}({hasSummary:!!w,hasTranscript:!!L?.length,recordingStatus:S?.recording?.status,processingStatus:S?.processingStatus}),{execute:_,isExecuting:O}=(0,r.useAction)(ec.bind(null,x),{onSuccess:async()=>{await Promise.all([y(void 0,{revalidate:!1}),v((0,b.getAccountScopedKey)("/api/user/meeting-recorder/meetings",x))]),(0,g.toastSuccess)({description:"Meeting notes deleted."}),C(!1),i()},onError:({error:e})=>{(0,g.toastError)({description:(0,I.getActionErrorMessage)(e,{prefix:"Failed to delete meeting notes"})})}});return(0,t.jsx)(K.Dialog,{open:!!e,onOpenChange:e=>!e&&i(),children:(0,t.jsxs)(K.DialogContent,{className:"max-h-[85vh] overflow-y-auto sm:max-w-2xl",children:[(0,t.jsx)(K.DialogHeader,{children:(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3 pr-8",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(K.DialogTitle,{children:S?.eventTitle??"Meeting"}),S&&(0,t.jsx)(K.DialogDescription,{children:(s=S.startTime,a=S.endTime,d=new Date(s),h=new Date(a),`${(0,Z.format)(d,"EEE, MMM d")} \xb7 ${(0,Z.format)(d,"h:mm")} – ${(0,Z.format)(h,"h:mm a")}`)})]}),S?.recording&&(0,t.jsxs)(el.DropdownMenu,{children:[(0,t.jsx)(el.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)(u.Button,{type:"button",variant:"ghost",size:"icon","aria-label":"Meeting options",children:(0,t.jsx)(X.MoreHorizontalIcon,{className:"size-4"})})}),(0,t.jsx)(el.DropdownMenuContent,{align:"end",children:(0,t.jsxs)(el.DropdownMenuItem,{className:"text-destructive focus:text-destructive",onSelect:()=>C(!0),children:[(0,t.jsx)(et.Trash2Icon,{className:"mr-2 size-4"}),"Delete notes"]})})]})]})}),(0,t.jsxs)(l.LoadingContent,{loading:A,error:R,loadingComponent:(0,t.jsx)(eo.Skeleton,{className:"h-64 w-full"}),children:["recording-failed"===T&&(0,t.jsxs)(ei.Alert,{variant:"destructive",children:[(0,t.jsx)(ei.AlertTitle,{children:"This meeting was not recorded"}),(0,t.jsx)(ei.AlertDescription,{children:S?.recording?.failureReason})]}),"processing-failed"===T&&(0,t.jsxs)(ei.Alert,{variant:"destructive",children:[(0,t.jsx)(ei.AlertTitle,{children:"The notes could not be written"}),(0,t.jsx)(ei.AlertDescription,{children:"The recording is there, but summarizing it kept failing. The transcript is still available below."})]}),"notes-unavailable"===T&&(0,t.jsxs)(ei.Alert,{children:[(0,t.jsx)(ei.AlertTitle,{children:"No summary was created"}),(0,t.jsx)(ei.AlertDescription,{children:L?.length?"The transcript is still available below.":"No usable transcript was available for this meeting."})]}),"processing"===T&&(0,t.jsx)(z.MutedText,{children:"The recording is being processed. Notes will appear here when they are ready."}),"not-recorded"===T&&(0,t.jsx)(z.MutedText,{children:"This meeting has not been recorded yet."}),!w&&"notes"===T&&(0,t.jsx)(z.MutedText,{children:"The summary is still being written."}),w&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(eg,{title:"Summary",children:[(0,t.jsx)("p",{className:"text-sm leading-relaxed",children:w.overview}),(0,t.jsx)(eu,{items:w.keyDecisions,title:"Decisions"})]}),w.actionItems.length>0&&(0,t.jsx)(eg,{title:"Action items",children:(0,t.jsx)("ul",{className:"space-y-2",children:w.actionItems.map((e,n)=>(0,t.jsxs)("li",{className:"flex items-start justify-between gap-3 text-sm",children:[(0,t.jsx)("span",{children:e.description}),e.owner&&(0,t.jsx)(ea.Badge,{variant:"secondary",className:"shrink-0",children:e.owner})]},`action-${n}`))})}),!!(w.openQuestions?.length||w.nextSteps?.length)&&(0,t.jsxs)(eg,{title:"Still open",children:[(0,t.jsx)(eu,{items:w.openQuestions??[],title:"Open questions"}),(0,t.jsx)(eu,{items:w.nextSteps??[],title:"Next steps"})]})]}),S?.followUpDraftId&&(0,t.jsx)(m.CardBlue,{children:(0,t.jsxs)(m.CardContent,{className:"space-y-3 p-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(k,{className:"size-4 text-blue-600 dar
2k:text-blue-400"}),(0,t.jsx)("span",{className:"text-sm font-medium",children:"Follow-up draft is ready"})]}),(0,t.jsx)(z.MutedText,{children:"It is sitting in your drafts, addressed to the other attendees. Nothing was sent for you."}),(0,t.jsx)(u.Button,{asChild:!0,variant:"outline",size:"sm",children:(0,t.jsx)("a",{href:(o=S.id,c=x,`/api/user/meeting-recorder/meetings/${encodeURIComponent(o)}/draft?emailAccountId=${encodeURIComponent(c)}`),target:"_blank",rel:"noopener noreferrer",onClick:()=>f.captureAction("meeting_recorder_follow_up_draft_opened"),children:"Go to drafts"})})]})}),!!L?.length&&(0,t.jsx)(er.Collapsible,{defaultOpen:!0,children:(0,t.jsxs)(m.Card,{children:[(0,t.jsxs)(er.CollapsibleTrigger,{className:"group flex w-full items-center gap-3 p-4 text-left hover:bg-accent/50",children:[(0,t.jsx)(ee,{className:"size-4 shrink-0 text-muted-foreground"}),(0,t.jsx)("span",{className:"text-sm font-medium",children:"Transcript"}),(0,t.jsxs)("span",{className:"flex-1 text-sm text-muted-foreground",children:[L.length," lines"]}),(0,t.jsx)(Q.ChevronDownIcon,{className:"size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]}),(0,t.jsx)(er.CollapsibleContent,{children:(0,t.jsx)("div",{className:"max-h-[40vh] space-y-3 overflow-y-auto border-t p-4",children:L.map((e,n)=>{let i,s;return(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"text-xs font-medium text-muted-foreground",children:[e.speakerName," ·"," ",(s=Math.floor((i=Math.max(0,Math.floor(e.startTime)))/60),`${String(s).padStart(2,"0")}:${String(i%60).padStart(2,"0")}`)]}),(0,t.jsx)("p",{className:"text-sm",children:e.text})]},`${e.startTime}-${n}`)})})})]})}),S?.recapSentAt&&(0,t.jsxs)(z.MutedText,{className:"text-xs",children:["Notes emailed"," ",(0,Z.format)(new Date(S.recapSentAt),"MMM d 'at' h:mm a")]})]}),(0,t.jsx)(es.AlertDialog,{open:N,onOpenChange:C,children:(0,t.jsxs)(es.AlertDialogContent,{children:[(0,t.jsxs)(es.AlertDialogHeader,{children:[(0,t.jsx)(es.AlertDialogTitle,{children:"Delete meeting notes?"}),(0,t.jsx)(es.AlertDialogDescription,{children:"The summary and transcript will be permanently deleted from Inbox Zero. Recap emails already sent and follow-up drafts in your mailbox will remain."})]}),(0,t.jsxs)(es.AlertDialogFooter,{children:[(0,t.jsx)(es.AlertDialogCancel,{disabled:O,children:"Cancel"}),(0,t.jsx)(es.AlertDialogAction,{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",disabled:O||!e,onClick:t=>{t.preventDefault(),e&&_({meetingId:e})},children:O?"Deleting...":"Delete"})]})]})})]})})}function eg({title:e,children:n}){return(0,t.jsx)(m.Card,{children:(0,t.jsxs)(m.CardContent,{className:"space-y-3 p-4",children:[(0,t.jsx)("h3",{className:"text-sm font-medium",children:e}),n]})})}function eu({title:e,items:n}){return 0===n.length?null:(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:e}),(0,t.jsx)("ul",{className:"mt-1 list-disc space-y-1 pl-5",children:n.map((n,i)=>(0,t.jsx)("li",{className:"text-sm",children:n},`${e}-${i}`))})]})}var em=e.i(442105),eh=e.i(391028),ex=e.i(452675);let ep={[j.MeetingRecordingStatus.PENDING]:{label:"Scheduling",variant:"secondary"},[j.MeetingRecordingStatus.SCHEDULED]:{label:"Scheduled",variant:"secondary"},[j.MeetingRecordingStatus.CANCELLING]:{label:"Cancelling",variant:"secondary"},[j.MeetingRecordingStatus.JOINING]:{label:"Joining",variant:"secondary"},[j.MeetingRecordingStatus.IN_WAITING_ROOM]:{label:"Waiting to be let in",variant:"default"},[j.MeetingRecordingStatus.IN_CALL]:{label:"Notetaker joined",variant:"default"},[j.MeetingRecordingStatus.RECORDING]:{label:"Recording",variant:"green"},[j.MeetingRecordingStatus.CALL_ENDED]:{label:"Processing",variant:"secondary"},[j.MeetingRecordingStatus.DONE]:{label:"Recorded",variant:"green"},[j.MeetingRecordingStatus.FAILED]:{label:"Failed",variant:"red"},[j.MeetingRecordingStatus.CANCELLED]:{label:"Cancelled",variant:"secondary"}};function ej({title:e,startTime:n,endTime:i,status:s,failureReason:a,onClick:r,children:l}){let o=function({status:e,startTime:t,endTime:n,now:i=new Date}){let s=new Date(t),a=new Date(n);if(s<=i&&i<a){if(!e)return{label:"Call in progress",variant:"secondary"};if(e===j.MeetingRecordingStatus.SCHEDULED)return{label:"Waiting to join",variant:"secondary"}}return a<=i&&e&&!M.includes(e)?f.includes(e)?{label:"Not recorded",variant:"red"}:null:e?ep[e]:null}({status:s,startTime:n,endTime:i}),c=new Date(n);return(0,t.jsxs)(q.Item,{className:(0,ex.cn)(r&&"relative has-[:focus-visible]:bg-accent/50 hover:bg-accent/50"),children:[(0,t.jsxs)("div",{className:"w-20 shrink-0",children:[(0,t.jsx)("div",{className:"text-sm font-medium",children:(0,Z.format)(c,"h:mm a")}),(0,t.jsx)("div",{className:"text-xs text-muted-foreground",children:(0,Z.format)(c,"EEE, MMM d")})]}),(0,t.jsxs)(q.ItemContent,{className:"min-w-0",children:[(0,t.jsx)(q.ItemTitle,{className:"w-full min-w-0",children:r?(0,t.jsx)("button",{type:"button",onClick:r,className:"min-w-0 truncate text-left outline-none after:absolute after:inset-0",children:e}):(0,t.jsx)("span",{className:"truncate",children:e})}),a&&(0,t.jsx)(q.ItemDescription,{children:a})]}),(0,t.jsxs)(q.ItemActions,{className:"gap-3",children:[o&&(0,t.jsx)(ea.Badge,{variant:o.variant,children:o.label}),l,r&&(0,t.jsx)(eh.ChevronRightIcon,{className:"size-4 shrink-0 text-muted-foreground"})]})]})}function ef({onOpenMeeting:e}){let{emailAccountId:n}=(0,D.useAccount)(),{data:i,isLoading:a,error:r}=(0,p.default)((0,b.getAccountScopedKey)("/api/user/meeting-recorder/meetings",n),{refreshInterval:3e4});return(0,t.jsxs)("div",{children:[(0,t.jsx)(z.TypographyH3,{children:"Recorded"}
2),(0,t.jsx)(l.LoadingContent,{loading:a,error:r,loadingComponent:(0,t.jsx)(eo.Skeleton,{className:"mt-4 h-24 w-full"}),children:i?.meetings.length?(0,t.jsx)(B.ListCard,{className:"mt-4",children:i.meetings.map(n=>(0,t.jsx)(ej,{title:n.eventTitle,startTime:n.startTime,endTime:n.endTime,status:n.recording?.status,failureReason:n.recording?.failureReason,onClick:()=>e(n.id),children:n.followUpDraftId&&(0,t.jsx)(ea.Badge,{variant:"secondary",children:"Draft ready"})},n.id))}):(0,t.jsx)(em.Empty,{className:"mt-4 border",children:(0,t.jsxs)(em.EmptyHeader,{children:[(0,t.jsx)(em.EmptyMedia,{variant:"icon",children:(0,t.jsx)(s.MicIcon,{})}),(0,t.jsx)(em.EmptyTitle,{children:"No meetings recorded yet"})]})})})]})}var ev=e.i(553256);let eN=(0,R.createServerReference)("7fdc4c7100849e5678acd094d82ee26819997eb7de",R.callServer,void 0,R.findSourceMapURL,"setMeetingJoinOverrideAction");function eM({emailAccountId:e,onOpenMeeting:s}){let a=(0,E.useProductAnalytics)(),{data:o,isLoading:c,error:d,mutate:u}=A(e),[m,h]=(0,n.useState)(null),{execute:x}=(0,r.useAction)(eN.bind(null,e),{onError:({error:e})=>{(0,g.toastError)({description:(0,I.getActionErrorMessage)(e,{prefix:"Failed to update this meeting"})})},onSettled:()=>{h(null),u()}}),p=o?.events??[],j=o?.hasAccess===!1;return(0,t.jsxs)("div",{children:[(0,t.jsx)(z.TypographyH3,{children:"Up next"}),(0,t.jsxs)(l.LoadingContent,{loading:c,error:d,loadingComponent:(0,t.jsx)(eo.Skeleton,{className:"mt-4 h-24 w-full"}),children:[j&&(0,t.jsxs)(ei.Alert,{className:"mt-4",children:[(0,t.jsx)(ei.AlertTitle,{children:"Meeting recording requires the Plus plan"}),(0,t.jsxs)(ei.AlertDescription,{className:"flex flex-wrap items-center justify-between gap-2",children:["Upgrade to have meetings recorded and summarized automatically.",(0,t.jsx)(ev.UpgradeToPlusButton,{tooltip:"Upgrade to the Plus plan to record and summarize your meetings."})]})]}),p.length?(0,t.jsx)(B.ListCard,{className:"mt-4",children:p.map(e=>{var n;let i=(n=e).willRecord||n.hasCancellableBooking||!0===n.joinOverride,r=e.meetingId&&e.recordingStatus&&N.includes(e.recordingStatus)?e.meetingId:null;return(0,t.jsx)(ej,{title:e.title,startTime:e.startTime,endTime:e.endTime,status:e.recordingStatus,failureReason:e.failureReason,onClick:r?()=>s(r):void 0,children:!r&&(0,t.jsx)(J.Toggle,{name:`join-${e.id}`,ariaLabel:`Record ${e.title}`,enabled:i,disabled:m===e.id||j&&!i,onChange:t=>{a.captureAction("meeting_recorder_join_override_toggled",{join:t}),h(e.id),x({join:t,calendarEventId:e.id})}})},e.id)})}):(0,t.jsx)(em.Empty,{className:"mt-4 border",children:(0,t.jsxs)(em.EmptyHeader,{children:[(0,t.jsx)(em.EmptyMedia,{variant:"icon",children:(0,t.jsx)(i.CalendarIcon,{})}),(0,t.jsx)(em.EmptyTitle,{children:"No upcoming calls with a video link"})]})})]})]})}function eC(){var e;let{emailAccountId:s}=(0,D.useAccount)(),x=(0,E.useProductAnalytics)(),[p,j]=(0,n.useState)(!1),[f,v]=(0,n.useState)(null),{data:N,isLoading:M,error:C}=(0,h.useCalendars)(),{data:b,isLoading:A,error:R,mutate:w}=S(s),{execute:L,status:T}=(0,r.useAction)(y.bind(null,s),{onSuccess:()=>{x.captureAction("meeting_recorder_enabled"),w()},onError:({error:e})=>{(0,g.toastError)({description:(0,I.getActionErrorMessage)(e,{prefix:"Failed to turn on the notetaker"})})}}),_=M||A,k=C||R;if(_||k)return(0,t.jsx)(c.PageWrapper,{children:(0,t.jsx)(l.LoadingContent,{loading:_,error:k,children:(0,t.jsx)("div",{})})});let O=(e=N?.connections,e?.some(e=>e.isConnected)??!1),P=e=>{x.captureAction("meeting_recorder_meeting_opened"),v(e)};return b?.enabled?(0,t.jsxs)(c.PageWrapper,{children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,t.jsx)(o.PageHeader,{title:"Meetings"}),(0,t.jsx)(u.Button,{variant:"outline",Icon:a.SettingsIcon,onClick:()=>j(!0),children:"Settings"})]}),(0,t.jsxs)("div",{className:"mt-6 max-w-3xl space-y-8",children:[(0,t.jsx)(d.PremiumAlertWithData,{}),!O&&(0,t.jsx)(m.ActionCard,{variant:"blue",icon:(0,t.jsx)(i.CalendarIcon,{className:"h-5 w-5"}),title:"Reconnect your calendar",description:(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("p",{children:"Your meeting notetaker is still enabled. Connect a calendar so it can find upcoming meetings."}),(0,t.jsx)(F.ConnectCalendar,{analyticsPage:"meetings",onboardingReturnPath:`/${s}/meetings`})]})}),(0,t.jsx)(eM,{emailAccountId:s,onOpenMeeting:P}),(0,t.jsx)(ef,{onOpenMeeting:P})]}),(0,t.jsx)(ed,{meetingId:f,onClose:()=>v(null)}),(0,t.jsx)(Y,{emailAccountId:s,open:p,onClose:()=>j(!1)})]}):(0,t.jsxs)(c.PageWrapper,{children:[(0,t.jsx)("div",{className:"mx-auto max-w-lg",children:(0,t.jsx)(d.PremiumAlertWithData,{})}),(0,t.jsx)($,{emailAccountId:s,hasCalendarConnected:O,onEnable:e=>{x.captureAction("meeting_recorder_enable_started",{join_rule:e,has_calendar_connected:O}),L({enabled:!0,joinRule:e})},isEnabling:"executing"===T})]})}e.s(["default",0,function(){return(0,x.useMeetingRecorderEnabled)()?(0,t.jsx)(eC,{}):(0,t.jsxs)(c.PageWrapper,{children:[(0,t.jsx)(o.PageHeader,{title:"Meetings"}),(0,t.jsx)("div",{className:"mt-8 max-w-3xl",children:(0,t.jsx)(m.ActionCard,{variant:"blue",icon:(0,t.jsx)(s.MicIcon,{className:"h-5 w-5"}),title:"Meeting notetaker is disabled",description:"The meeting notetaker is turned off on this server. Set NEXT_PUBLIC_MEETING_RECORDER_ENABLED=true and see the self-hosting docs to configure it."})})]})}],186876)}]);
3
4//# debugId=da29e591-56a1-576d-9189-b5e76535cb39

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.