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]="e7a4dbb4-ff3e-0536-dfbc-3d175aa951c1")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,996853,e=>{"use strict";var t=e.i(391398),i=e.i(170582);e.i(579517);var n=e.i(18788);e.s(["InfoModal",0,e=>{let{open:o,setOpenDownloadModal:l,onClose:r,title:a,body:s}=e;return(0,t.jsx)(i.ModalDialog.Root,{open:o,onOpenChange:l,children:(0,t.jsxs)(i.ModalDialog.Content,{size:"sm",children:[(0,t.jsx)(i.ModalDialog.Header,{children:(0,t.jsx)(i.ModalDialog.Title,{children:a})}),(0,t.jsx)(i.ModalDialog.Body,{children:(0,t.jsx)(i.ModalDialog.Description,{children:s})}),(0,t.jsx)(i.ModalDialog.Footer,{children:(0,t.jsx)(n.Button,{intent:"defaultOutline",onClick:r,children:"Ok"})})]})})}])},552100,e=>{"use strict";var t=e.i(391398),i=e.i(231988),n=e.i(880854),o=e.i(110050);let l={[o.MEETING_PUPPET_STATUS_STARTED]:(0,t.jsx)(i.CheckCircleIcon,{width:16,height:16,fill:"var(--color-green-400)"}),[o.MEETING_PUPPET_STATUS_ACTIVE]:(0,t.jsx)(n.PlayCircleIcon,{width:16,height:16,stroke:"var(--color-gray-700)"}),[o.MEETING_PUPPET_STATUS_PROCESSING]:(0,t.jsx)(n.RefreshCwIcon,{width:16,height:16,stroke:"var(--color-gray-700)"}),[o.MEETING_PUPPET_STATUS_CONNECT_FAIL]:(0,t.jsx)(n.XCircleIcon,{width:16,height:16,stroke:"var(--color-red-700)"}),[o.MEETING_PUPPET_STATUS_ENDED]:(0,t.jsx)(i.CheckCircleIcon,{width:16,height:16,fill:"var(--color-green-400)"}),[o.MEETING_PUPPET_STATUS_DELAYED]:(0,t.jsx)(n.AlertCircleIcon,{width:16,height:16,stroke:"var(--color-gray-600)"}),[o.MEETING_PUPPET_STATUS_FAILED]:(0,t.jsx)(n.AlertCircleIcon,{width:16,height:16,stroke:"var(--color-gray-600)"}),[o.MEETING_PUPPET_STATUS_IN_WAITING_ROOM]:(0,t.jsx)(n.ClockIcon,{width:16,height:16,stroke:"var(--color-gray-700)"}),[o.MEETING_STATUS_CANCELLED]:(0,t.jsx)(n.XCircleIcon,{width:16,height:16,stroke:"var(--color-gray-600)"})};e.s(["puppetStatus",0,l])},708010,319524,e=>{"use strict";var t=e.i(391398),i=e.i(191788),n=e.i(880854);e.i(787677);var o=e.i(244225);e.i(133657);var l=e.i(860923);e.i(579517);var r=e.i(18788),a=e.i(760814),s=e.i(892466),d=e.i(568919),c=e.i(261677);let u=(0,a.default)(l.Box).withConfig({displayName:"dateRangePickerStyles__MenuTrigger",componentId:"sc-b4242146-0"})` 3 color: ${e=>e.$isDefault?e.theme.textColor.commandNeutralDefault:e.theme.textColor.commandPrimaryDefault}; 4 transition: color 120ms ease; 5 svg { 6 color: ${e=>e.$isDefault?e.theme.textColor.commandHintDefault:e.theme.textColor.commandPrimaryDefault} !important; 7 } 8 &:hover { 9 color: ${e=>e.theme.textColor.commandNeutralHover}; 10 svg { 11 color: ${e=>e.theme.textColor.commandHintHover} !important; 12 } 13 } 14`;e.s(["MenuTrigger",0,u],319524),e.s(["StatusPicker",0,e=>{let{iconOnly:h=!1}=e,T=(0,a.useTheme)(),{selectedStatus:g,setSelectedStatus:x,isCustomLoading:p}=(0,c.useMeetingStatusContext)(),[f,I]=(0,i.useState)(!1),m=g.value===d.MEETING_PUPPET_STATUS[0].value;return(0,t.jsxs)(o.Root,{onOpenChange:()=>{I(!f)},open:f,children:[(0,t.jsx)(o.Trigger,{disabled:p,children:h?(0,t.jsxs)(l.Box,{position:"relative",alignItems:"center",children:[(0,t.jsx)(r.Button,{icon:"single",intent:"defaultOutline",size:"sm","aria-label":"Filter by status",children:(0,t.jsx)(n.FilterIcon,{size:"sm"})}),!m&&(0,t.jsx)(l.Box,{position:"absolute",top:-2,right:-2,height:8,width:8,radius:"circle",background:T.backgroundColor.interactivePrimaryDefault})]}):(0,t.jsxs)(u,{$isDefault:m,opacity:p?.5:1,alignItems:"center",gap:"_4",children:[(0,t.jsx)(n.ActivityIcon,{}),g.title,(0,t.jsx)(n.ChevronDownIcon,{})]})}),(0,t.jsx)(o.Portal,{children:(0,t.jsx)(o.Content,{align:h?"end":"start",sideOffset:10,minWidth:140,zIndex:h?s.NOTIFICATIONS_POPOVER_DROPDOWN_Z_INDEX:void 0,children:d.MEETING_PUPPET_STATUS.map((e,i)=>{let r=g.value===e.value;return(0,t.jsx)(o.Item,{"data-index":i,onClick:()=>{x(e)},"data-value":g.value,children:(0,t.jsxs)(l.Box,{justifyContent:"space-between",width:"100%",children:[e.title,r&&(0,t.jsx)(n.CheckIcon,{})]})},`${e.value}-${i}`)})})})]})}],708010)},473370,e=>{"use strict";var t=e.i(391398);e.i(133657);var i=e.i(860923),n=e.i(880854),o=e.i(760814),l=e.i(265335);let r=(0,o.default)(i.Box).withConfig({displayName:"StatusTooltip__InfoIconContainer",componentId:"sc-c2e263be-0"})`
15 cursor: pointer; 16 svg { 17 color: var(--color-gray-400); 18 } 19 20 &:hover { 21 svg { 22 color: var(--color-gray-600); 23 } 24 } 25`,a=(0,o.default)(i.Box).attrs({flexDirection:"column",gap:"_2"}).withConfig({displayName:"StatusTooltip__TooltipContentBox",componentId:"sc-c2e263be-1"})` 26 white-space: normal; 27 word-break: break-word; 28`;e.s(["StatusTooltip",0,e=>{let{content:o,width:s=300}=e,d="string"==typeof o?o:null==o?void 0:o.description,c="object"==typeof o?null==o?void 0:o.link:void 0;return d?(0,t.jsx)(l.Tooltip,{maxWidth:s,content:(0,t.jsxs)(a,{children:[(0,t.jsx)(i.Box,{children:d}),c&&(0,t.jsx)("a",{href:c,target:"_blank",rel:"noopener noreferrer",children:"Learn more"})]}),children:(0,t.jsx)(r,{"aria-label":"Show status details",children:(0,t.jsx)(n.InfoIcon,{width:16,height:16})})}):null}])},568919,e=>{"use strict";var t=e.i(406738),i=e.i(886748),n=e.i(936807),o=e.i(211792),l=e.i(860207),r=e.i(663682),a=e.i(159080);let s=a.gql` 29 mutation endLiveMeetingCall($meetingId: String!) { 30 endLiveMeetingCall(meetingId: $meetingId) 31 } 32`,d=a.gql` 33 query reloadMeetingCall($meetingId: String!) { 34 reloadMeetingCall(meetingId: $meetingId) 35 } 36`,c=a.gql` 37 mutation requestMeetingAccess($meetingId: String!) { 38 requestMeetingAccess(meetingId: $meetingId) 39 } 40`;e.s(["DIALOG_TYPE",0,{SUCCESS:{title:"Success"},INITIALIZING:{title:"Initiating reload...",content:"Starting the recovery. If you don't receive it in your notebook within 30 minutes, please contact support for more info"},FAILED:e=>({title:"Reload initialization failed!",content:e||"Unable to recover this meeting. You may not have access to it. Please contact support for more info"})},"END_LIVE_CALL",0,s,"LS_MEETING_STATUS",0,"meeting_status","MEETING_PUPPET_STATUS",0,[{title:"All Status",value:"all"},{title:"Active",value:"active"},{title:"Processing",value:"processing"},{title:"Completed",value:"completed"},{title:"Failed",value:"failed"},{title:"Connection Failed",value:"connection_failed"},{title:"In Waiting Room",value:"in_waiting_room"}],"RECOVER_MEETING_RESPONSE",0,{successful:"Successfully began recovery",invalidUrl:"No valid audio for recovery",meetingAlreadyProcessed:"Already finished processing. No need to recover"},"RELOAD_MEETING_CALL",0,d,"REQUEST_MEETING_ACCESS",0,c,"getDateRanges",0,()=>{let e=new Date,t=(0,o.default)(e,1);return[{id:"all",title:"All",value:[null,(0,r.default)(e)]},{id:"today",title:"Today",value:[(0,l.default)(e),(0,r.default)(e)]},{id:"yesterday",title:"Yesterday",value:[(0,l.default)(t),(0,r.default)(t)]},{id:"last7days",title:"Last 7 days",value:[(0,l.default)((0,o.default)(e,7)),(0,r.default)(e)]},{id:"last30days",title:"Last 30 days",value:[(0,l.default)((0,o.default)(e,30)),(0,r.default)(e)]}]},"groupByWeek",0,e=>Object.entries(e.reduce((e,o)=>{var l;let r,a,s,d,c=new Date(o.date||o.startTime),u=(r=new Date(l=(0,t.default)(c).getTime()),a=(0,n.default)(l),s=new Date().getFullYear(),d=r.getFullYear()===s,`${(0,i.default)(r,d?"MMM d":"MMM d yyyy")} - ${(0,i.default)(a,d?"MMM d":"MMM d yyyy")}`);return e[u]||(e[u]=[]),e[u].push(o),e},{})).sort((e,i)=>(0,t.default)(i.date||i.startTime).getTime()-(0,t.default)(e.date||e.startTime).getTime()),"meetingStatus",0,{INITIALIZING:1,SUCCESS:2,FAILED:3}])},261677,e=>{"use strict";var t=e.i(391398),i=e.i(191788),n=e.i(568919),o=e.i(831674),l=e.i(877341);let r=(0,i.createContext)({selectedDateRange:{id:"all",title:"All",value:[]},customDateRange:[],setCustomDateRange:()=>{},setSelectedStatus:()=>{},handleDateRangeChange:()=>{},handleResetFilter:()=>{},hasMore:!1,listing:[],isCustomLoading:!1,selectedStatus:{title:"",value:""},loading:!1,loadMore:()=>{}});e.s(["MeetingStatusProvider",0,e=>{let{children:a}=e,s=(0,n.getDateRanges)(),d=s[0],[c,u]=(0,i.useState)([]),[h,T]=(0,i.useState)(!1),g=(0,i.useRef)(null),x=(0,i.useRef)(!1),p=(0,i.useRef)(!1),[f,I]=(0,i.useState)(n.MEETING_PUPPET_STATUS[0]),[m,E]=(0,i.useState)([]),[S,_]=(0,i.useState)({id:d.id,title:d.title,value:[null,null]}),N=(0,i.useRef)([]),[A,{loading:j}]=(0,l.useLazyQuery)(o.GET_USER_MEETINGS,{onCompleted:e=>{let{getUserMeetingsForStatus:t}=e;T(!1);let i=p.current;if(!t)return;let{meetings:o=[],next:l=null,hasNext:r=!1}=t;if(g.current=l,x.current=r,i){let e=new Set(N.current.map(e=>e.objectId)),t=o.filter(t=>!e.has(t.objectId));N.current=[...N.current,...t]}else N.current=o,S.id===d.id&&f.value===n.MEETING_PUPPET_STATUS[0].value&&localStorage.setItem(n.LS_MEETING_STATUS,JSON.stringify(o));u(N.current)},onError:e=>{console.error(e,"MeetingStatus:GET_USER_MEETINGS"),T(!1)},pollInterval:6e4,fetchPolicy:"cache-and-network"});(0,i.useEffect)(()=>{let e=[];try{let t=localStorage.getItem(n.LS_MEETING_STATUS);e=t?JSON.parse(t):[]}finally{u(e)}},[]),(0,i.useEffect)(()=>{let{value:e}=S,[t,i]=e;N.current=[],g.current=null,x.current=!1,p.current=!1,T(!0),A({variables:{start:t,end:i,limit:15,computedStatus:f.value}})},[A,S,f]);let v=(0,i.useCallback)(()=>
40{if(!g.current)return;p.current=!0;let{value:e}=S,[t,i]=e;A({variables:{start:t,end:i,limit:15,computedStatus:f.value,next:g.current}})},[A,S,f]),C=(0,i.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=s.find(t=>t.id===e),[o,l]=(null==n?void 0:n.value)||[];_({id:e,title:(null==n?void 0:n.title)||"",value:["custom"===e?t:o,"custom"===e?i:l]})},[s]),y=(0,i.useCallback)(()=>{_({id:d.id,title:d.title,value:[null,null]}),I(n.MEETING_PUPPET_STATUS[0])},[d,I]),P=x.current;return(0,t.jsx)(r.Provider,{value:{selectedDateRange:S,customDateRange:m,setCustomDateRange:E,handleDateRangeChange:C,handleResetFilter:y,hasMore:P,listing:c,isCustomLoading:h,loading:j,loadMore:v,selectedStatus:f,setSelectedStatus:I},children:a})},"useMeetingStatusContext",0,()=>(0,i.useContext)(r)])},659185,e=>{"use strict";var t=e.i(926638),i=e.i(745356),n=e.i(699213),o=e.i(739001);e.s(["default",0,function(e,l,r){(0,n.default)(2,arguments);var a=(0,i.default)(e,l)/t.millisecondsInMinute;return(0,o.getRoundingMethod)(null==r?void 0:r.roundingMethod)(a)}])},591551,200385,739325,435180,e=>{"use strict";var t=e.i(391398),i=e.i(760814);let n=i.default.div.withConfig({displayName:"Breadcrumb.styled__BreadcrumbsRoot",componentId:"sc-7b7b107a-0"})` 41 display: inline-flex; 42 padding: ${e=>e.theme.spacing._0}; 43 align-items: center; 44 gap: ${e=>e.theme.spacing._4}; 45`,o=i.default.div.withConfig({displayName:"Breadcrumb.styled__Location",componentId:"sc-7b7b107a-1"})` 46 min-width: ${e=>e.theme.size._4}; 47 max-width: 280px; 48 padding: ${e=>e.theme.spacing._0}; 49 justify-content: center; 50 align-items: center; 51 overflow: hidden; 52 text-overflow: ellipsis; 53 cursor: pointer; 54 white-space: nowrap; 55 ${e=>e.theme.font.title3}; 56 color: ${e=>e.theme.textColor.commandNeutralDefault}; 57 58 &:hover { 59 color: ${e=>e.theme.textColor.commandNeutralHover}; 60 } 61`,l=i.default.div.withConfig({displayName:"Breadcrumb.styled__Divider",componentId:"sc-7b7b107a-2"})` 62 color: ${e=>e.theme.textColor.hint}; 63 ${e=>e.theme.font.title3}; 64 display: flex; 65 width: 6px; 66 height: ${e=>e.theme.size._2}; 67 flex-direction: column; 68 justify-content: center; 69 align-items: center; 70 text-overflow: ellipsis; 71`;e.s(["BreadcrumbsRoot",0,n,"Divider",0,l,"Location",0,o],200385),e.s(["Root",0,e=>{let{children:i,...o}=e;return(0,t.jsx)(n,{...o,children:i})}],739325),e.s([],591551);var r=e.i(880854);e.i(851685);var a=e.i(939162),s=e.i(410020),d=e.i(191788),c=e.i(49414);e.i(579517);var u=e.i(18788),h=e.i(892466);let T=i.keyframes` 72 75%, 100% { 73 transform: scale(2); 74 opacity: 0; 75 } 76`,g=i.default.span.withConfig({displayName:"NotificationsMenu.styled__Badge",componentId:"sc-3dd09904-0"})` 77 position: absolute; 78 right: 0; 79 top: 0; 80 display: flex; 81 height: 8px; 82 width: 8px; 83`,x=i.default.span.withConfig({displayName:"NotificationsMenu.styled__BadgePing",componentId:"sc-3dd09904-1"})` 84 position: absolute; 85 display: inline-flex; 86 height: 100%; 87 width: 100%; 88 opacity: 0.75; 89 border-radius: ${e=>{let{theme:t}=e;return t.radius.circle}}; 90 background: ${e=>{let{theme:t}=e;return t.backgroundColor.infoRedStrong}}; 91 animation: ${T} 1.5s cubic-bezier(0, 0, 0.2, 1) infinite; 92`,p=i.default.span.withConfig({displayName:"NotificationsMenu.styled__BadgeDot",componentId:"sc-3dd09904-2"})` 93 position: relative; 94 display: inline-flex; 95 height: 8px; 96 width: 8px; 97 border-radius: ${e=>{let{theme:t}=e;return t.radius.circle}}; 98 background: ${e=>{let{theme:t}=e;return t.backgroundColor.infoRedStrong}}; 99`,f=(0,i.default)(u.Button).withConfig({displayName:"NotificationsMenu.styled__PopoverNotificationButton",componentId:"sc-3dd09904-3"})` 100 position: relative; 101 display: flex; 102 align-items: center; 103 justify-content: center; 104 padding: 0 ${e=>{let{theme:t}=e;return t.spacing._4}}; 105 border-radius: ${e=>{let{theme:t}=e;return t.radius._1}}; 106 height: 36px; 107`,I=(0,i.default)(s.Content).withConfig({displayName:"NotificationsMenu.styled__PopoverContent",componentId:"sc-3dd09904-4"})` 108 z-index: ${h.NOTIFICATIONS_POPOVER_Z_INDEX} !important; 109 padding: 0px; 110 margin: 0 8px; 111 max-width: 528px; 112 border-radius: ${e=>{let{theme:t}=e;return t.radius._4}}; 113 overflow: hidden; 114`,m=(0,i.default)(a.Portal).withConfig({displayName:"NotificationsMenu.styled__PopoverPortal",componentId:"sc-3dd09904-5"})` 115 width: 100%; 116`;var E=e.i(188325),S=e.i(347827);e.i(133657);var _=e.i(860923);e.i(797482);var N=e.i(286455),A=e.i(242756);e.i(922394);var j=e.i(416860),v=e.i(215568),C=e.i(488892);let y=e=>{let{tab:i,title:n,description:o,action:l}=e,a=(e=>{switch(e){case h.NOTIFICATION_TABS.ALL:return{title:"No notification yet",description:"Your meeting updates and activity notifications will show up here."};case h.NOTIFICATION_TABS.UPDATES:return{title:"No updates",description:"Product updates and announcements will appear here."};case h.NOTIFICATION_TABS.AUTOFILL:return{title:"No Auto-Fill activity",description:"Notifications about extracted CRM insights will show up here."};default:return{title:"No notification yet",description:"Your meeting updates and activity notifications will show up here."}}})(i),s=n??a.title,d=o??a.description;return(0,t.jsxs)(_.Box,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"_6",minHeight:332,children:[(0,t.jsx)(r.BellOutlinedIcon,{size:"lg",stroke:"var(--color-gray-500)"}),(0,t.jsxs)(_.Box,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",textAlign:"center",gap:"_4",children:[(0,t.jsx)(N.Text,{textAlign:"center",font:"title2",color:"primary",children:s}),(0,t.jsx)(N.Text,{textAlign:"center",font:"body2",color:"muted",style:{maxWidth:364},children:d})]}),l&&(0,t.jsx)(_.Box,{mt:"_6",children:l})]})};var P=e.i(435765),M=e.i(680744);let w=e=>{let{index:i=0}=e;return(0,t.jsx)(M.AnimatedScalingContainer,{variants:(0,M.cardVariants)(i),children:(0,t.jsxs)(_.Box,{display:"flex",px:"_9",py:"_7",gap:20,width:"100%",alignItems:"flex-start",backgroundColor:"interactiveNeutral1Default",children:[(0,t.jsx)(_.Box,{mr:"_1",children:(0,t.jsx)(P.default,{width:24,height:24,borderRadius:4})}),(0,t.jsxs)(_.Box,{style:{flex:1},gap:"_6",flexDirection:"column",children:[(0,t.jsxs)(_.Box,{flexDirection:"column",children:[(0,t.jsx)(P.default,{width:"76%",height:12,borderRadius:12}),(0,t.jsx)(P.default,{width:"28%",height:12,borderRadius:12})]}),(0,t.jsx)(_.Box,{children:(0,t.jsx)(P.default,{width:80,height:32,borderRadius:4})})]}),(0,t.jsx)(_.Box,{children:(0,t.jsx)(P.default,{width:32,height:12,borderRadius:12})})]})})},b=e=>{let{count:i=1}=e;return(0,t.jsx)(_.Box,{display:"flex",flexDirection:"column",children:(0,t.jsx)(C.FlatList,{list:Array.from({length:i}),listView:(e,i)=>(0,t.jsx)(w,{index:i},`skeleton-message-${i}`)})})};var O=e.i(549975),D=e.i(975543),U=e.i(265335);e.i(597571);var R=e.i(637328);e.i(165704);var B=e.i(167216),L=e.i(361574);let k=e=>Date.now()-new Date(e).getTime()<6048e5,G=e=>{let t={};for(let i of e){let e=(0,L.formatMessageBlockTitle)(new Date(i.createdAt));t[e]||(t[e]=[]),t[e].push(i)}return t};var F=e.i(886748),$=e.i(860207),V=e.i(485177),z=e.i(926740),Y=e.i(254545),q=e.i(421510),W=e.i(659185),H=e.i(776204),Q=e.i(877341),Z=e.i(392919),J=e.i(99361),K=e.i(493265),X=e.i(878715),ee=e.i(110050),et=e.i(231988),ei=e.i(302236),en=e.i(336616),eo=e.i(261677),el=e.i(568919),er=e.i(473370),ea=e.i(552100),es=e.i(996853),ed=e.i(234507),ec=e.i(452355),eu=e.i(553057);let{PROCESS_MEETING_STATUS:eh}=X.enums,eT="completed",eg={description:"The bot is in the waiting room. Please admit it to start recording.",link:"https://guide.fireflies.ai/articles/4708529470-why-fred-did-not-join-your-meeting-troubleshooting-guide"},ex={description:"Meeting was too short to process.",link:"https://guide.fireflies.ai/articles/2293056952-troubleshooting-why-meeting-recap-emails-were-not-received"},ep=(0,t.jsx)(r.WarningIcon,{width:16,height:16,stroke:"var(--color-orange-700)",fill:"none"}),ef=(0,t.jsx)(r.CheckIcon,{width:16,height:16,stroke:"var(--color-green-600)"}
116),eI=(0,t.jsx)(r.Loader2Icon,{width:16,height:16,stroke:"var(--color-gray-700)"}),em=(0,t.jsx)(et.ThreeDotsBouncingIcon,{width:16,height:16}),eE=e=>({textDecoration:e?"none":"underline",cursor:e?"default":"pointer"}),eS=()=>{try{return JSON.parse(localStorage.getItem(ee.LS_MEETINGS_RELOADED)??"{}")}catch{return{}}},e_=e=>{let{meetingId:i,onOpenDialog:n}=e,[o,l]=(0,d.useState)(()=>(e=>{let t=eS()[e];if(!t)return!1;let i=new Date(t);return!!(0,q.default)(i)&&60>(0,W.default)(new Date,i)})(i)),[r,{loading:a}]=(0,Q.useLazyQuery)(el.RELOAD_MEETING_CALL,{fetchPolicy:"network-only",onCompleted(e){let{reloadMeetingCall:t}=e;if(t===el.RECOVER_MEETING_RESPONSE.successful){let e;(e=eS())[i]=new Date().toISOString(),localStorage.setItem(ee.LS_MEETINGS_RELOADED,JSON.stringify(e)),l(!0),n(el.DIALOG_TYPE.INITIALIZING)}else Object.values(el.RECOVER_MEETING_RESPONSE).includes(t)?n(el.DIALOG_TYPE.FAILED(t)):(n(el.DIALOG_TYPE.FAILED()),console.error(Error(t),"[NotificationStatusTab] RELOAD_MEETING_CALL unexpected response"))},onError(e){console.error(e,"[NotificationStatusTab] RELOAD_MEETING_CALL failed"),n(el.DIALOG_TYPE.FAILED())}});return o?null:(0,t.jsx)(N.Text,{font:"body2",color:"secondary",style:eE(a),onClick:e=>{e.stopPropagation(),a||r({variables:{meetingId:i}})},children:a?"Reloadingâ¦":"Reload"})},eN=e=>{let{meetingId:i,alreadyRequested:n}=e,[o,l]=(0,d.useState)(n),[r,{loading:a}]=(0,H.useMutation)(el.REQUEST_MEETING_ACCESS,{errorPolicy:"none",onError(e){console.error(e,"[NotificationStatusTab] REQUEST_MEETING_ACCESS failed")}}),s=o||n,c=a||s;return(0,t.jsx)(N.Text,{font:"body2",color:c?"muted":"secondary",style:eE(c),onClick:e=>{e.stopPropagation(),c||r({variables:{meetingId:i}}).then(()=>l(!0)).catch(()=>{})},children:a?"Requestingâ¦":s?"Request Sent":"Request Access"})},eA=e=>{let{meetingId:i}=e;return(0,t.jsx)(u.Button,{size:"xs",intent:"default",onClick:e=>{e.stopPropagation(),window.open(`/live/${i}?autoClose=true&ref=${en.LIVE_MEETING_REF.NOTEBOOK}`,"_blank","noopener")},children:"Live Notes"})},ej=e=>{let{meeting:i,onOpenDialog:n}=e,o=((e,t)=>{let i,n,{status:o,computedStatus:l,processMeetingStatus:r,reloadMeeting:a,audioIsTooSmall:s,hasAccess:d,openNotebook:c,message:u,errorDetail:h,puppetExitReason:T,userIsHost:g,userIsParticipant:x}=e;if(o===ee.MEETING_PUPPET_STATUS_ACTIVE)return{text:"",icon:null,action:(g||x)&&t!==K.TranscriptionMode.DISABLED?"live-notes":null,tooltip:null};if(s)return{text:"Meeting was too short",icon:ep,action:null,tooltip:ex};let p=l?l===eT:r===eh.COMPLETED,f=!p&&o===ee.MEETING_PUPPET_STATUS_ENDED,I="Completed"===u&&(l?"processing"===l:r===eh.STARTED),m=o===ee.MEETING_STATUS_CANCELLED,E=f||o===ee.MEETING_PUPPET_STATUS_FAILED||o===ee.MEETING_PUPPET_STATUS_CONNECT_FAIL||m;i=f?"Failed to process":p?"Completed":I?"Processing":m?u||"Meeting cancelled":E?u||"Failed to process":u||"Processing",n=p?ef:E?ep:I||o===ee.MEETING_PUPPET_STATUS_PROCESSING||o===ee.MEETING_PUPPET_STATUS_STARTED?eI:ea.puppetStatus[o];let S=null;return p&&c&&"granted"!==d?S="request-access":(a||f)&&(S="reload"),{text:i,icon:n,action:S,tooltip:o===ee.MEETING_PUPPET_STATUS_CONNECT_FAIL||o===ee.MEETING_PUPPET_STATUS_FAILED||m?h:o===ee.MEETING_PUPPET_STATUS_IN_WAITING_ROOM?eg:T}})(i,(0,Z.useFeatureValue)(J.FEATURE_FLAGS.GLOBAL_TRANSCRIPTION_MODE)),l=i.objectId??"";return(0,t.jsxs)(_.Box,{alignItems:"center",gap:"_4",children:[(o.icon||o.text)&&(0,t.jsxs)(_.Box,{alignItems:"center",gap:"_4",children:[o.icon,(0,t.jsxs)(_.Box,{alignItems:"center",gap:"_3",children:[(0,t.jsx)(N.Text,{font:"body2",color:"secondary",children:o.text}),(0,t.jsx)(er.StatusTooltip,{content:o.tooltip})]})]}),"reload"===o.action&&(0,t.jsx)(e_,{meetingId:l,onOpenDialog:n}),"request-access"===o.action&&(0,t.jsx)(eN,{meetingId:l,alreadyRequested:"requested"===i.hasAccess}),"live-notes"===o.action&&(0,t.jsx)(eA,{meetingId:l})]})},ev=["transcript","mobile","desktop"],eC=e=>{let{meeting:i,index:n,onOpenDialog:o}=e,{title:l,startTime:r,objectId:a,openNotebook:s,computedStatus:d,processMeetingStatus:c,status:u,userProfile:h,hasAccess:T,userIsHost:g}=i,{picture:x,email:p,name:f}=h||{},I=(0,ed.getMeetingLabelStatus)(i),m=(e=>{let{labelStatus:t,ownerName:i,userIsHost:n}=e;return"upload"===t?"Uploaded by you":ev.includes(t??"")?i?`Recorded by ${i}`:"Recording":n?"Notetaker joined on your behalf":i?`Notetaker joined for ${i}`:""})({labelStatus:I,ownerName:f||p||"",userIsHost:g}),A=u===ee.MEETING_PUPPET_STATUS_ACTIVE,j=(d?d===eT:c===eh.COMPLETED)&&s&&"granted"===T;return(0,t.jsx)(_.Box,{cursor:j?"pointer":"default",onClick:()=>{j&&window.open((0,ei.formMeetingLink)({title:l,meetingId:a}))},children:(0,t.jsx)(ec.NotificationCard,{index:n,templateId:"meeting-status",deliveryStatus:E.NotificationDeliveryStatus.Opened,userPhotoUrl:x??"",userName:f||p||"",createdAt:new Date(r),message:"",title:(0,t.jsxs)(_.Box,{flexDirection:"column",gap:"_6",children:[(0,t.jsxs)(_.Box,{flexDirection:"column",gap:"_1",children:[(0,t.jsxs)(_.Box,{alignItems:"center",gap:"_3",children:[(0,t.jsx)(eu.NotificationCardTitleWrapper,{children:(0,t.jsx)(eu.NotificationTitleText,{font:"body2Weighted",color:"primary",children:l})}),(0,t.jsx)(ed.MeetingLabel,{status:I,tooltipSide:"top"}),(0,t.jsx)(S.ShouldRender,{if:A,children:em})]}),(0,t.jsx)(S.ShouldRender,{if:!!m,children:(0,t.jsx)(N.Text,{font:"body2",color:"muted",children:m})})]}),(0,t.jsx)(ej,{meeting:i,onOpenDialog:o})]})})})},ey={[el.MEETING_PUPPET_STATUS[0].value]:{title:"No meeting status yet",description:"The processing status of your meetings will show up here."},[el.MEETING_PUPPET_STATUS[1].value]:{title:"No active meetings",description:"Meetings currently in progress will show up here."},[el.MEETING_PUPPET_STATUS[2].value]:{title:"No meetings processing",description:"Meetings still being processed will show up here."},[el.MEETING_PUPPET_STATUS[3].value]:{title:"No completed meetings",description:"Meetings that finished processing will show up here."},[el.MEETING_PUPPET_STATUS[4].value]:{title:"No failed meetings",description:"Meetings that failed to process will show up here."},[el.MEETING_PUPPET_STATUS[5].value]:{title:"No connection failures",description:"Meetings the notetaker
116couldn't join will show up here."},[el.MEETING_PUPPET_STATUS[6].value]:{title:"Nothing in the waiting room",description:"Meetings waiting for the notetaker to be let in will show up here."}},eP=()=>{let{listing:e,loading:i,isCustomLoading:n,hasMore:o,loadMore:l,selectedStatus:r,setSelectedStatus:a}=(0,eo.useMeetingStatusContext)(),[s,c]=(0,d.useState)({open:!1,title:"",content:""}),T=(0,d.useCallback)(e=>{c({open:!0,title:e.title,content:e.content??""})},[]),g=(0,d.useCallback)(()=>{c(e=>({...e,open:!1}))},[]),x=(0,d.useMemo)(()=>(e=>{let t=new Map;for(let i of e){if(null==i.startTime)continue;let e=(0,$.default)(new Date(i.startTime)).getTime(),n=t.get(e);n?n.push(i):t.set(e,[i])}return Array.from(t.entries()).sort((e,t)=>{let[i]=e,[n]=t;return n-i}).map(e=>{var t;let[i,n]=e;return[(t=new Date(i),(0,V.default)(t)?"Today":(0,z.default)(t)?"Yesterday":(0,F.default)(t,(0,Y.default)(t,new Date)?"MMM d":"MMM d, yyyy")),n]})})(e||[]),[e]),p=0===x.length,f=r.value!==el.MEETING_PUPPET_STATUS[0].value,I=ey[r.value],{ref:m}=(0,O.useInView)({onChange(e){e&&o&&!i&&l()}});return(0,t.jsxs)(t.Fragment,{children:[n?(0,t.jsx)(b,{count:4}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(S.ShouldRender,{if:p,children:(0,t.jsx)(y,{tab:h.NOTIFICATION_TABS.STATUS,title:null==I?void 0:I.title,description:null==I?void 0:I.description,action:f&&(0,t.jsx)(u.Button,{intent:"defaultOutline",size:"sm",onClick:()=>a(el.MEETING_PUPPET_STATUS[0]),children:"Clear filters"})})}),x.map(e=>{let[i,n]=e;return(0,t.jsxs)(_.Box,{display:"flex",flexDirection:"column",children:[(0,t.jsx)(_.Box,{px:"_8",pt:"_7",pb:"_5",children:(0,t.jsx)(N.Text,{font:"title3",color:"hint",children:i})}),(0,t.jsx)(_.Box,{display:"flex",flexDirection:"column",children:n.map((e,i)=>(0,t.jsx)(eC,{meeting:e,index:i,onOpenDialog:T},e.objectId))})]},i)}),(0,t.jsx)(S.ShouldRender,{if:i,children:(0,t.jsx)(b,{count:4})}),o&&!i&&(0,t.jsx)("div",{ref:m}),(0,t.jsx)(S.ShouldRender,{if:!o&&!i&&!p,children:(0,t.jsx)(_.Box,{flexDirection:"column",display:"flex",justifyContent:"center",alignItems:"center",py:"_5",children:(0,t.jsx)(N.Text,{textAlign:"center",font:"body3",color:"hint",children:"You're all caught up"})})})]}),(0,t.jsx)(es.InfoModal,{open:s.open,onClose:g,setOpenDownloadModal:g,title:s.title,body:s.content})]})},eM=()=>(0,t.jsx)(eP,{});var ew=e.i(708010),eb=e.i(328928);let eO=(0,d.memo)(e=>{let{title:i,notifications:n}=e,o=(0,d.useMemo)(()=>{let e=[];for(let i=0;i<n.length;i++){let o=n[i],{card:l}=(0,D.mapMessageToComponent)(o);if(!(null==l?void 0:l.component)||l.if&&!l.if(o.properties))continue;let r=l.component;e.push((0,t.jsx)(r,{index:i,properties:o.properties,message:o},o.id))}return e},[n]);return o.length?(0,t.jsxs)(_.Box,{display:"flex",flexDirection:"column",children:[(0,t.jsx)(_.Box,{px:"_8",pt:"_7",pb:"_5",children:(0,t.jsx)(N.Text,{font:"title3",color:"hint",children:i})}),(0,t.jsx)(_.Box,{display:"flex",flexDirection:"column",children:o})]},`notification-group-${i}`):null}),eD=(0,d.memo)(e=>{let{groupedNotifications:i,loading:n,hasMoreMessages:o,showEmptyState:l,showPagination:r,tab:a,inViewRef:s}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(C.FlatList,{list:i,listView:e=>{let[i,n]=e;return(0,t.jsx)(eO,{title:i,notifications:n})}}),(0,t.jsx)(S.ShouldRender,{if:l&&!n,children:(0,t.jsx)(y,{tab:a})}),r&&!n&&(0,t.jsx)("div",{ref:s}),(0,t.jsx)(S.ShouldRender,{if:n,children:(0,t.jsx)(b,{count:4})}),(0,t.jsx)(S.ShouldRender,{if:!o&&!n&&i.length>0,children:(0,t.jsx)(_.Box,{flexDirection:"column",display:"flex",justifyContent:"center",alignItems:"center",py:"_5",children:(0,t.jsx)(N.Text,{textAlign:"center",font:"body3",color:"hint",children:"You're all caught up"})})})]})});eD.displayName="TabContentRenderer";let eU=e=>{let{messages:n,unreadCount:o,hasMoreMessages:l,loading:a,handleFetchMore:s,handleMarkAllAsRead:c,activeTab:u,setActiveTab:T,showOnlyUnread:g,setShowOnlyUnread:x,updatesUnreadCount:p,autofillUnreadCount:f}=e,I=(0,i.useTheme)(),{ref:m}=(0,O.useInView)({onChange(e){e&&l&&!a&&s()}}),{groupedMessages:C,teamGrouped:y,autofillGrouped:P,mostRecentGeneralAnnouncement:M}=(0,d.useMemo)(()=>{let e=[],t=null;for(let i of n){let n=i.deliveryStatus===E.NotificationDeliveryStatus.Sent,o=h.UPDATES_TEMPLATE_IDS.includes(i.templateId),l=h.AUTOFILL_TEMPLATE_IDS.includes(i.templateId);o&&!t&&k(i.createdAt)&&(t=i),l&&e.push(i)}return{groupedMessages:Object.entries(G(n)),teamGrouped:Object.entries(G([])),autofillGrouped:Object.entries(G(e)),teamUnreadCount:0,mostRecentGeneralAnnouncement:t}},[n]),w={[h.NOTIFICATION_TABS.ALL]:o,[h.NOTIFICATION_TABS.UPDATES]:p,[h.NOTIFICATION_TABS.AUTOFILL]:f},b=(0,d.useCallback)(e=>{T(e)},[T]);return(0,t.jsxs)(_.Box,{width:"100%",pt:"_8",flexDirection:"column",children:[(0,t.jsxs)(_.Box,{px:"_8",width:"100%",display:"flex",pb:"_8",justifyContent:"space-between",alignItems:"center",children:[(0,t.jsx)(j.Root,{value:u,className:"no-scroll",children:(0,t.jsx)(A.NotificationSegmentList,{animated:!0,contentSized:!0,children:h.NOTIFICATION_SEGMENT_TABS.map(e=>{let{value:i,label:n}=e,o=w[i];return(0,t.jsxs)(v.Trigger,{value:i,onClick:()=>
116b(i),style:i===h.NOTIFICATION_TABS.STATUS?{paddingRight:I.spacing._4}:void 0,children:[n,i===h.NOTIFICATION_TABS.STATUS&&(0,t.jsx)(R.Tag,{intent:"green",size:"sm",children:"New"}),i!==h.NOTIFICATION_TABS.STATUS&&o>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(_.Box,{width:"2px",height:"2px",radius:"circle",background:I.textColor.hint,flexShrink:0}),(0,t.jsx)(N.Text,{font:"body2",color:"muted",children:o})]})]},i)})})}),(0,t.jsx)(S.ShouldRender,{if:u!==h.NOTIFICATION_TABS.STATUS,children:(0,t.jsxs)(_.Box,{alignItems:"center",gap:"_4",children:[(0,t.jsxs)(_.Box,{alignItems:"center",gap:"_4",children:[(0,t.jsx)(B.Checkbox,{id:"unread-notifications-checkbox",size:"sm",checked:g,onCheckedChange:e=>x(!0===e),onClick:e=>e.stopPropagation()}),(0,t.jsx)(N.Text,{font:"body2",color:"commandNeutralDefault",children:"Unread"})]}),(0,t.jsx)(U.Tooltip,{content:"Mark all as read",disabled:a||!o,side:"bottom",children:(0,t.jsx)(A.MarkAllReadButton,{onClick:c,disabled:a||!o,intent:"defaultNeutral",icon:"single",size:"sm",children:(0,t.jsx)(r.ActionItemIcon,{width:18,height:18})})})]})}),(0,t.jsx)(S.ShouldRender,{if:u===h.NOTIFICATION_TABS.STATUS,children:(0,t.jsx)(ew.StatusPicker,{iconOnly:!0})})]}),(0,t.jsx)(_.Box,{children:(0,t.jsxs)(A.TabRoot,{value:u,children:[(0,t.jsx)(A.TabContent,{value:h.NOTIFICATION_TABS.ALL,children:(0,t.jsx)(eD,{groupedNotifications:C,loading:a,hasMoreMessages:l,showEmptyState:0===C.length,showPagination:!0,tab:h.NOTIFICATION_TABS.ALL,inViewRef:m})}),(0,t.jsx)(A.TabContent,{value:h.NOTIFICATION_TABS.UPDATES,children:(0,t.jsx)(eD,{groupedNotifications:C,loading:a,hasMoreMessages:l,showEmptyState:0===C.length,showPagination:!0,tab:h.NOTIFICATION_TABS.UPDATES,inViewRef:m})}),(0,t.jsx)(A.TabContent,{value:h.NOTIFICATION_TABS.AUTOFILL,children:(0,t.jsx)(eD,{groupedNotifications:P,loading:a,hasMoreMessages:l,showEmptyState:0===P.length,showPagination:!0,tab:h.NOTIFICATION_TABS.AUTOFILL,inViewRef:m})}),(0,t.jsx)(A.TabContent,{value:h.NOTIFICATION_TABS.TEAM,children:(0,t.jsx)(eD,{groupedNotifications:y,loading:a,hasMoreMessages:l,showEmptyState:0===y.length,showPagination:!0,tab:h.NOTIFICATION_TABS.TEAM,inViewRef:m})}),(0,t.jsx)(A.TabContent,{value:h.NOTIFICATION_TABS.STATUS,children:(0,t.jsx)(eM,{})}),(0,t.jsx)(S.ShouldRender,{if:!1,children:(0,t.jsx)(_.Box,{px:"_8",pb:"_8",pt:"_5",position:"sticky",bottom:0,flexDirection:"column",gap:"_4",children:(0,t.jsxs)(N.Text,{font:"body2",color:"hint",children:["General Announcements ",null==M?void 0:M.templateId]})})})]})}),(0,t.jsx)(eb.DesktopAppBanner,{variant:"sticky"})]})},eR=e=>(0,t.jsx)(eo.MeetingStatusProvider,{children:(0,t.jsx)(eU,{...e})});var eB=e.i(559867),eL=e.i(883714);e.i(726551);var ek=e.i(337903),eG=e.i(212979);e.s(["NotificationsMenu",0,()=>{let e=(0,eL.useTrackEvent)(),{messages:i,unreadMessagesCount:n,totalCount:o,hasMoreMessages:l,loading:u,markMessagesAsRead:T,fetchMore:N,activeTab:A,setActiveTab:j,showOnlyUnread:v,setShowOnlyUnread:C,updatesUnreadCount:y,autofillUnreadCount:P,openMenuSignal:M,acknowledgeOpenMenu:w}=(0,c.useNotificationsContext)(),[b,O]=(0,d.useState)(!1);(0,d.useEffect)(()=>{M>0&&(O(!0),w())},[M,w]),(0,d.useEffect)(()=>{let{body:e}=document;return b?e.setAttribute("data-notifications-open",""):e.removeAttribute("data-notifications-open"),()=>e.removeAttribute("data-notifications-open")},[b]);let D=(0,d.useCallback)(()=>{T()},[T]),R=()=>{A!==h.NOTIFICATION_TABS.STATUS&&T(i.filter(e=>e.deliveryStatus===E.NotificationDeliveryStatus.Sent&&!(0,eB.isBannerOnlyMessage)(e)).map(e=>e.id))},B=`${n?(0,eG.default)("new notification",n,!0):"Notifications"}`;return(0,t.jsxs)(a.Root,{open:b,onOpenChange:e=>{O(t=>e??!t),e||R()},children:[(0,t.jsx)(s.Trigger,{asChild:!0,children:(0,t.jsx)(_.Box,{children:(0,t.jsx)(U.Tooltip,{content:B,side:"bottom",children:(0,t.jsxs)(f,{intent:"defaultNeutral",onClick:()=>{(O(e=>!e),b)?R():e(ek.TRACKING_EVENTS.IN_APP_NOTIFICATION_MENU_OPENED,{messagesCount:o,unreadMessagesCount:n})},className:"IconButton","aria-label":B,size:null,children:[(0,t.jsx)(r.BellOutlinedIcon,{width:20,height:20}),(0,t.jsx)(S.ShouldRender,{if:n>0,children:(0,t.jsxs)(g,{children:[(0,t.jsx)(x,{}),(0,t.jsx)(p,{})]})})]})})})}),(0,t.jsx)(m,{children:(0,t.jsx)(I,{sideOffset:15,side:"bottom",children:(0,t.jsx)(eR,{messages:i,unreadCount:n,handleMarkAllAsRead:D,handleFetchMore:N,hasMoreMessages:l,loading:u,activeTab:A,setActiveTab:j,showOnlyUnread:v,setShowOnlyUnread:C,updatesUnreadCount:y,autofillUnreadCount:P})})})]})}],435180)}]); 117
118//# debugId=e7a4dbb4-ff3e-0536-dfbc-3d175aa951c1 119//# sourceMappingURL=0336uc1tj5fju.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.