1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0f4e0-548e-7df2-adfe-cc5d1a1e18c9")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,559185,e=>{"use strict";let t=["com.cisco.webexmeetingsapp","com.microsoft.teams","com.microsoft.teams2","com.slack.Slack","com.webex.meetingmanager","us.zoom.xos"],r=[...t,"ai.perplexity.comet","com.apple.Safari","com.apple.SafariTechnologyPreview","com.brave.Browser","com.brave.Browser.beta","com.brave.Browser.nightly","com.google.Chrome","com.google.Chrome.beta","com.google.Chrome.canary","com.google.Chrome.dev","com.microsoft.edgemac","com.microsoft.edgemac.Beta","com.microsoft.edgemac.Canary","com.microsoft.edgemac.Dev","com.openai.atlas","company.thebrowser.Browser","company.thebrowser.dia","net.imput.helium","org.chromium.Chromium","org.mozilla.firefox","org.mozilla.firefoxdeveloperedition","org.mozilla.nightly"];e.s(["APPLE_CALLING_APP_BUNDLE_IDENTIFIERS",0,["com.apple.facetime","com.apple.mobilephone"],"APPLE_CALLING_DAEMON_BUNDLE_IDENTIFIER",0,"com.apple.avconferenced","AUTO_START_AND_END_COUNTDOWN_DURATION",0,15,"EXCLUDED_BUNDLE_IDENTIFIERS",0,["com.electron.circleback","com.apple.controlcenter","com.apple.notificationcenterui","com.apple.WindowManager","com.apple.dock","com.apple.Spotlight"],"GENERATING_NOTES_ANIMATION_DURATION_MS",0,800,"GENERATING_TRANSITION_DURATION_MS",0,3e3,"LEGACY_NO_DEVICE_ID",0,"none","MAX_CALENDAR_IDS_BUFFER",0,10,"MEETING_APP_BUNDLE_IDENTIFIERS",0,t,"MICROPHONE_DETECTOR_APPS_TO_IGNORE",0,["Circleback","Spotify","iTunes","Messages.app","Corespeechd","Corespeech","replayd","systemsoundserverd","Wispr Flow","FreeFlow","MacWhisper","com.apple.SpeechRecognitionCore.speechrecognitiond","QuickTime Player","DictationIM","Willow","WorldOfTanks","helldivers2","Typeless","superwhisper","Spokenly","Genspark Speakly Helper","VoiceAccess","Screen Studio","Loom","Sound.appex","historicalaudiod","Aqua Voice","VoiceInk","Monologue","VoiceOS","RODE Connect","Logitech","WaveLink","Granola","Logic Pro","Adobe Premiere Pro","GarageBand","ChatGPT","Claude","Grok Bot","Cursor Helper","Codex","Raycast","SteelSeriesCVGameSense","POWERPNT","Snagit32","SnagitCapture","openscreen","steam","sox","Notion","Supercut","CleanShot","screenpipe-app","AccessibilityUIServer","SystemSettings","TextInputHost","SnippingTool","sapisvr","svchost","SystemUIServer","screencapture","sfproc","VoiceMemos","FluidVoice","Tella","Photo Booth","Quill"],"MICROPHONE_DETECTOR_APP_NAMES",0,["Arc","Atlas","Brave Browser Beta","Brave Browser Nightly","Brave Browser","Brave","Chrome","Chromium","Comet","Dia","Edge","Helium","Firefox Developer Edition","Firefox Nightly","Firefox","Google Chrome Beta","Google Chrome Canary","Google Chrome Dev","Google Chrome","Microsoft Edge Beta","Microsoft Edge Canary","Microsoft Edge Dev","Microsoft Edge","Microsoft Teams","Safari Technology Preview","Safari","Slack","Zoom"],"NO_DEVICE_DISPLAY_TEXT",0,"None","PRIORITIZED_WINDOW_BUNDLE_IDENTIFIERS",0,r,"RECORDED_CALENDAR_MEETING_IDS_KEY",0,"recordedCalendarMeetingIds","RECORDING_TROUBLESHOOTING_URL",0,"https://circleback.ai/docs/support/recording/desktop-app/troubleshoot-recording-on-desktop","STANDALONE_GENERATING_NOTES_DURATION_MS",0,4e3,"VIRTUAL_AUDIO_DEVICE_NAMES",0,["zoomaudiodevice","microsoft teams audio","krisp microphone","krisp speaker","rode connect","røde connect","steelseries sonar","virtual audio","virtual audio device","virtual desktop audio","vb-audio virtual cable","virtual cable","virtual output","virtual input","virtual surround sound","virtual mixer","sonic studio virtual mixer","blackhole","loopback audio","soundflower","wave link","wavelink"]])},13990,e=>{"use strict";e.s(["BUSINESS_RECORDING_RETENTION_IN_DAYS",0,731,"BUSINESS_RECORDING_RETENTION_IN_YEARS",0,2,"DEFAULT_RECORDING_RETENTION_IN_DAYS",0,365,"DEFAULT_RECORDING_RETENTION_IN_YEARS",0,1,"MAX_CUSTOM_DATA_RETENTION_IN_DAYS",0,1825])},64972,e=>{"use strict";e.i(134903);var t=e.i(543222);let r=t.SubscriptionPlanType.Pro,i=t.BillingInterval.Monthly,a={[t.SubscriptionPlanType.Pro]:15,[t.SubscriptionPlanType.Business]:15,[t.SubscriptionPlanType.Enterprise]:15};e.s(["CUSTOMER_PORTAL_REQUIRED_ERROR_CODE",0,"customer_portal_required","DEFAULT_BILLING_INTERVAL",0,i,"DEFAULT_TRIAL_PLAN_TYPE",0,r,"FREE_PLAN_MAXIMUM_TEAM_COUNT",0,2,"INVOICE_DAYS_UNTIL_DUE",0,30,"PAYMENT_METHOD_REQUIRED_ERROR_CODE",0,"payment_method_required","PRO_PLAN_MAXIMUM_TEAM_COUNT",0,5,"REFERRAL_TRIAL_EXTENSION_IN_DAYS",0,30,"TEAM_TRIAL_EXTENSION_IN_DAYS",0,15,"TRIAL_CONTINUATION_CHECKOUT_SESSION_PARAMETER",0,"trial-continuation-checkout-session","TRIAL_DURATION_IN_DAYS_BY_SUBSCRIPTION_PLAN_TYPE",0,a])},504850,482568,e=>{"use strict";e.i(864449);var t=e.i(108741),r=e.i(607799);e.i(134903);var i=e.i(543222),a=e.i(13990),n=e.i(64972);let o={id:i.SubscriptionPlanType.Free,name:r.SUBSCRIPTION_PLAN_DISPLAY_NAMES[i.SubscriptionPlanType.Free],monthlyPrice:{unitAmou
1nt:0,currency:"usd"},annualPricePerMonth:{unitAmount:0,currency:"usd"},billingDescription:"Free forever",maximumTeamCount:n.FREE_PLAN_MAXIMUM_TEAM_COUNT},s={id:i.SubscriptionPlanType.Pro,name:r.SUBSCRIPTION_PLAN_DISPLAY_NAMES[i.SubscriptionPlanType.Pro],maximumTeamCount:n.PRO_PLAN_MAXIMUM_TEAM_COUNT},l={id:i.SubscriptionPlanType.Business,name:r.SUBSCRIPTION_PLAN_DISPLAY_NAMES[i.SubscriptionPlanType.Business]},c={id:i.SubscriptionPlanType.Enterprise,name:r.SUBSCRIPTION_PLAN_DISPLAY_NAMES[i.SubscriptionPlanType.Enterprise]},u=[o,s,l,c],p=`${a.DEFAULT_RECORDING_RETENTION_IN_YEARS} year of recording storage`,m=`${a.BUSINESS_RECORDING_RETENTION_IN_YEARS} years of recording storage`,d="Admin and member roles",g="Unlimited free viewers",E="Email, Google, and Apple login",P="Unlimited recording storage",_="30 days of recording storage",I="Automations with all integrations, including Notion, HubSpot, Salesforce, Attio, webhooks, and many more apps",S=["Unlimited meeting history",p,I,"Custom AI insights","Personalized notetaker participant",`${s.maximumTeamCount} teams`],T={current:"Everyone is an admin",upgrade:d},A={current:"No free viewers",upgrade:g},N={current:E,upgrade:"SSO"},f={current:"Account settings",upgrade:"Enforceable workspace settings"},R={current:`${o.maximumTeamCount} teams`,upgrade:"Unlimited teams"},y=[{current:"30-day meeting history",upgrade:"Unlimited meeting history"},{current:"Limited automations",upgrade:"All automation steps"},{current:"No webhook integration",upgrade:"Unlimited webhooks"},{current:"Default meeting notes",upgrade:"Custom AI insights"},{current:`${o.maximumTeamCount} teams`,upgrade:`${s.maximumTeamCount} teams`}],b=[T,A,{current:"Account-based individual settings",upgrade:"Default and enforceable workspace settings"},{current:"Default data retention",upgrade:"Custom data retention"},{current:p,upgrade:m},{current:`${s.maximumTeamCount} teams`,upgrade:"Unlimited teams"}],h=[N,T,A,{current:"Account-based individual settings",upgrade:"Enforceable workspace settings"},{current:p,upgrade:P},{current:`${s.maximumTeamCount} teams`,upgrade:"Unlimited teams"}],v=[{title:"Limits",features:[{label:"Meeting history",downgradeImpactKind:"meetingHistory",values:{free:`${t.MEETING_HISTORY_DURATION_IN_DAYS} days`,pro:"Unlimited",business:"Unlimited",enterprise:"Unlimited"}},{label:"Recording storage",downgradeImpactKind:"recordingStorage",values:{free:"30 days",pro:`${a.DEFAULT_RECORDING_RETENTION_IN_YEARS} year`,business:`${a.BUSINESS_RECORDING_RETENTION_IN_YEARS} years`,enterprise:"Unlimited"}}]},{title:"Features",features:[{label:"AI meeting notes and action items",values:{free:!0,pro:!0,business:!0,enterprise:!0}},{label:"Ask Circleback",values:{free:!0,pro:!0,business:!0,enterprise:!0}},{label:"View and draft emails",values:{free:!0,pro:!0,business:!0,enterprise:!0}},{label:"Video and audio recording",values:{free:!0,pro:!0,business:!0,enterprise:!0}},{label:"Speaker-labeled transcripts",values:{free:!0,pro:!0,business:!0,enterprise:!0}},{label:"Automatic tagging",values:{free:!0,pro:!0,business:!0,enterprise:!0}},{label:"Automatic sharing",values:{free:!0,pro:!0,business:!0,enterprise:!0}},{label:"Automations",values:{free:"Limited",pro:!0,business:!0,enterprise:!0}},{label:"Meeting participant customization",values:{free:!1,pro:!0,business:!0,enterprise:!0}},{label:"Custom AI insights",values:{free:!1,pro:!0,business:!0,enterprise:!0}}]},{title:"Platform access",features:[{label:"API, MCP, and CLI",values:{free:!0,pro:!0,business:!0,enterprise:!0}},{label:"Webhook",values:{free:!1,pro:!0,business:!0,enterprise:!0}}]},{title:"Workspace controls",features:[{label:"Teams",downgradeImpactKind:"teams",values:{free:`${n.FREE_PLAN_MAXIMUM_TEAM_COUNT}`,pro:`${n.PRO_PLAN_MAXIMUM_TEAM_COUNT}`,business:"Unlimited",enterprise:"Unlimited"}},{label:"Roles",values:{free:"Admin only",pro:"Admin only",business:"Admin, member, viewer",enterprise:"Admin, member, viewer"}},{label:"Free viewers",values:{free:!1,pro:!1,business:"Unlimited",enterprise:"Unlimited"}},{label:"Defaults & enforcement",values:{free:!1,pro:!1,business:!0,enterprise:!0}},{label:"Custom data retention",values:{free:!1,pro:!1,business:!0,enterprise:!0}},{label:"Usage dashboard",values:{free:!1,pro:!1,business:!0,enterprise:!0}}]},{title:"Security and support",features:[{label:"SSO",values:{free:!1,pro:!1,business:!1,enterprise:!0}},{label:"Invoice/PO billing",values:{free:!1,pro:!1,business:!1,enterprise:!0}},{label:"HIPAA compliance",values:{free:!1,pro:!1,business:!1,enterprise:!0}},{label:"Priority support",values:{free:!1,pro:!1,business:!1,enterprise:!0}}]}],L={title:"Upgrade to Pro",upgradeButtonLabel:"Upgrade",description:"Upgrade to Pro to restore older meetings across your workspace and keep everyoneâs full history.",currentPlanName:"Free",targetPlanName:"Pro",features:S,comparisonRows:y},D={title:"Upgrade to Business",upgradeButtonLabel:"Upgrade",description:"Add the controls and flexibility your organization needs.",currentPlanName:"Pro",targetPlanName:"Business",features:[d,g,"Custom data retention","Default and enforceable settings",m,"Usage dashboard","Unlimited teams"],comparisonRows:b},C={...D,currentPlanName:o.name,comparisonRows:[T,A,f,{current:_,upgrade:m},R]},O={title:"Upgrade to Enterprise",upgradeButtonLabel:"Upgrade",description:"Bring enterprise security, onboarding, and support to your team.",currentPlanName:"Business",targetPlanName:"Enterprise",features:["SSO","Invoice/PO billing",P,"Priority support","HIPAA compliance"],comparisonRows:[N,{current:"Standard support",upgrade:"Priority support"},{current:"Card and bank payments",upgrade:"Invoice/PO billing"},{current:m,upgrade:P}]},U={...O,currentPlanName:o.name,comparisonRows:[N,T,A,f,{current:_,upgrade:P},R]},M={...O,currentPlanName:s.name,comparisonRows:h},w={...L,description:`Your workspace has reached the Free plan's ${o.maximumTeamCount}-team limit. Upgrade to Pro to create up to ${s.maximumTeamCount} teams.`},F={...D,description:`Your workspace has reached the Pro plan's ${s.maximumTeamCount}-team limit. Upgrade to Business to create unlimited teams.`};e.s(["BILLING_PLANS",0,u,"BILLING_PLAN_COMPARISON_SECTIONS",0,v,"BUSINESS_PLAN",0,l,"BUSINESS_PLAN_TEAM_LIMIT_UPGRADE",0,F,"BUSINESS_PLAN_UPGRADE",0,D,"ENTERPRISE_PLAN",0,c,"ENTERPRISE_PLAN_SINGLE_SIGN_ON_FEATURE",0,"SSO","ENTERPRISE_PLAN_UPGRADE",0,O,"FREE_PLAN",0,o,"FREE_TO_BUSINESS_PLAN_UPGRADE",0,C,"FREE_TO_ENTERPRISE_PLAN_UPGRADE",0,U,"PLAN_PRICE_UNIT",0,"per user/month","PRO_PLAN",0,s,"PRO_PLAN_AUTOMATIONS_FEATURE",0,I,"PRO_PLAN_TEAM_LIMIT_UPGRADE",0,w,"PRO_PLAN_UPGRADE",0,L,"PRO_TO_ENTERPRISE_PLAN_UPGRADE",0,M,"STANDARD_SIGN_IN_METHODS",0,E],504850),e.s(["getMonthlyEquivalentUnitAmount",0,({billingInterval:e,unitAmou
1nt:t})=>{switch(e){case i.BillingInterval.Monthly:return t;case i.BillingInterval.Annual:return t/12;default:return e}},"resolveSubscriptionPlanPrice",0,({billingInterval:e,planType:t,prices:r})=>{let a=r.filter(e=>e.planType===t),n=a.find(t=>t.billingInterval===e)??(1===a.length?a[0]:void 0),o=a.some(e=>e.billingInterval===i.BillingInterval.Monthly);return{billingInterval:n?.billingInterval??e,isAnnualOnly:a.length>0&&!o,price:n}}],482568)},962048,e=>{"use strict";e.i(864449);var t=e.i(998753),r=e.i(108741),i=e.i(929923);e.i(134903);var a=e.i(212637),n=e.i(943433),o=e.i(86078),s=e.i(543222);e.i(354656);var l=e.i(965140),c=e.i(357533),u=e.i(866669),p=e.i(620442),m=e.i(821384),d=e.i(559185),g=e.i(846453);let E=e=>{let t=localStorage.getItem(e);return!(t&&(0,l.daysToTimestamp)(Number(t))>-(e=>{switch(e){case"dismissedWorkspaceDiscoveryCard":case"dismissedConnectEmailCard":return 14;case"dismissedDefaultExternalInviteeAccessCard":case"dismissedAutomationsAutomaticMeetingTaggingEnabledAlert":case"acknowledgedDesktopRecordingRequirements":return 30;case"dismissedInsightsFeatureExplainer":case"dismissedAutomationsFeatureExplainer":return 180;case"dismissedAssistantConnectorCallout":return 60;case"dismissedCirclingBack2025Card":return 3;case"dismissedSharedMeetingOnboardingPrompt":return 7;default:return e}})(e))},P=e=>{localStorage.setItem(e,String((0,l.nowInPosix)())),window.dispatchEvent(new Event("storage"))},_="meetingFilters",I="actionItemFilters",S="peopleFilters",T="companyFilters",A=e=>{try{return JSON.parse(e)}catch{return null}},N=m.z.string(),f=o.ProfileSchema.extend({avatarUrl:m.z.string().optional()}),R=m.z.object({profiles:m.z.array(f.nullable().catch(null)).transform(e=>e.filter(u.isPresent)).optional(),tags:m.z.array(m.z.number().int()).optional(),domains:m.z.array(N).optional(),ownership:m.z.string().optional(),statuses:m.z.custom(e=>Array.isArray(e)).optional()}),y=m.z.object({type:n.ActionItemAssigneeTypeSchema,profile:f.optional().catch(void 0),teamId:m.z.number().int().positive().optional()}).transform(e=>e.type!==a.ActionItemAssigneeType.Profile||(0,u.isPresent)(e.profile)?e:{type:a.ActionItemAssigneeType.Anyone}),b=m.z.object({assignee:y,status:n.ActionItemStatusSchema.optional(),tags:m.z.array(m.z.number().int()).optional(),attendeeDomains:m.z.array(N).optional()}),h=()=>{if((0,g.isSSR)())return null;let e=localStorage.getItem(_);if(e){let t,i=A(e);if(!i)return null;let n=R.safeParse(i);if(!n.success)return null;let o=n.data;return{profiles:o.profiles??r.DEFAULT_MEETING_FILTERS.profiles,tags:o.tags??r.DEFAULT_MEETING_FILTERS.tags,domains:(o.domains??r.DEFAULT_MEETING_FILTERS.domains).filter(p.isValidDomain),ownership:(t=o.ownership??r.DEFAULT_MEETING_FILTERS.ownership,(0,c.isMeetingOwnership)(t)?t:a.MeetingOwnership.All),statuses:o.statuses??r.DEFAULT_MEETING_FILTERS.statuses}}return null},v=m.z.object({domains:m.z.array(N).optional(),tags:m.z.array(m.z.number().int()).optional()}),L=m.z.object({tags:m.z.array(m.z.number().int()).optional()}),D="currentViewId",C=m.z.array(m.z.string()),O=()=>{if((0,g.isSSR)())return[];let e=localStorage.getItem(d.RECORDED_CALENDAR_MEETING_IDS_KEY);if(e){let t=C.safeParse(JSON.parse(e));if(t.success)return t.data}return[]},U="acknowledgedDesktopRecordingRequirements";e.s(["DEFAULT_LEFT_NAV_WIDTH",0,228,"addRecordedCalendarMeetingIdToLocalStorage",0,e=>{let t=[...O(),e].slice(-d.MAX_CALENDAR_IDS_BUFFER);localStorage.setItem(d.RECORDED_CALENDAR_MEETING_IDS_KEY,JSON.stringify(t)),window.dispatchEvent(new StorageEvent("storage",{key:d.RECORDED_CALENDAR_MEETING_IDS_KEY}))},"clearLocalStorage",0,()=>{localStorage.removeItem(_),(0,g.isSSR)()||localStorage.removeItem(I),(0,g.isSSR)()||localStorage.removeItem(S),(0,g.isSSR)()||localStorage.removeItem(T),(0,g.isSSR)()||Object.keys(localStorage).forEach(e=>{e.startsWith(`${D}_`)&&localStorage.removeItem(e)}),localStorage.removeItem(i.DONE_PLACEHOLDER_ACTION_ITEM_IDS_KEY),localStorage.removeItem(i.VIDEO_PLAYBACK_SPEED_KEY),localStorage.removeItem("dismissedWorkspaceDiscoveryCard")},"getActionItemFiltersFromLocalStorage",0,()=>{if((0,g.isSSR)())return null;let e=localStorage.getItem(I);if(e){let r=A(e);if(!r)return null;let i=b.safeParse(r);if(!i.success)return null;let a=i.data;return{assignee:a.assignee,status:a.status??t.DEFAULT_ACTION_ITEM_FILTERS.status,tags:a.tags??t.DEFAULT_ACTION_ITEM_FILTERS.tags,attendeeDomains:(a.attendeeDomains??t.DEFAULT_ACTION_ITEM_FILTERS.attendeeDomains).filter(p.isValidDomain)}}return null},"getCompanyFiltersFromLocalStorage",0,()=>{if((0,g.isSSR)())return null;let e=localStorage.getItem(T);if(!e)return null;let t=A(e);if(!t)return null;let r=L.safeParse(t);return r.success?{tags:r.data.tags??[]}:null},"getCurrentViewIdFromLocalStorage",0,e=>(0,g.isSSR)()?null:localStorage.getItem(`${D}_${e}`),"getMeetingFilters",0,()=>({...r.DEFAULT_MEETING_FILTERS,...h()}),"getMeetingFiltersFromLocalStorage",0,h,"getMeetingViewFiltersFromLocalStorage",0,()=>{let e=h();if(!e)return null;let{statuses:t,...r}=e;return r},"getPeopleFiltersFromLocalStorage",0,()=>{if((0,g.isSSR)())return null;let e=localStorage.getItem(S);if(!e)return null;let t=A(e);if(!t)return null;let r=v.safeParse(t);return r.success?{domains:(r.data.domains??[]).filter(p.isValidDomain),tags:r.data.tags??[]}:null},"getRecordedCalendarMeetingIdsFromLocalStorage",0,O,"getRightPanelContextStorageKey",0,e=>{switch(e){case s.RightPanelContext.Meeting:return i.IS_MEETING_RIGHT_PANEL_OPEN_KEY;case s.RightPanelContext.CalendarEvent:return i.IS_CALENDAR_EVENT_RIGHT_PANEL_OPEN_KEY;case s.RightPanelContext.Person:return i.IS_PERSON_DETAIL_RIGHT_PANEL_OPEN_KEY;case s.RightPanelContext.Company:return i.IS_COMPANY_DETAIL_RIGHT_PANEL_OPEN_KEY;default:return e}},"getSelectedMicrophoneFromLocalStorage",0,()=>{if((0,g.isSSR)())return;let e=localStorage.getItem("selectedMicrophone");if(e)return JSON.parse(e)},"hasDesktopRecordingRequirementsAcknowledgment",0,()=>!(0,g.isSSR)()&&!E(U),"saveActionItemFiltersToLocalStorage",0,e=>{localStorage.setItem(I,JSON.stringify(e))},"saveCompanyFiltersToLocalStorage",0,e=>{localStorage.setItem(T,JSON.stringify(e))},"saveCurrentViewIdToLocalStorage",0,(e,t)=>{(0,g.isSSR)()||localStorage.setItem(`${D}_${e}`,t)},"saveDesktopRecordingRequirementsAcknowledgment",0,()=>{P(U)},"saveDismissedComponent",0,P,"saveMeetingFiltersToLocalStorage",0,e=>{localStorage.setItem(_,JSON.stringify(e))},"savePeopleFiltersToLocalStorage",0,e=>{localStorage.setItem(S,JSON.stringify(e))},"showDismissibleComponent",0,E])},360491,e=>{"use strict";e.i(134903);var t=e.i(543222),r=e.i(317945);e.i(354656);var i=e.i(836558),a=e.i(965140),n=e.i(828008),o=e.i(610813),s=e.i(834626),l=e.i(607754),c=e.i(501321),u=e.i(767677),p=e.i(866669),m=e.i(264751),d=e.i(504850),g=e.i(218065),E=e.i(793160),P=e.i(482568);let _={[t.SubscriptionPlanType.Pro]:d.PRO_PLAN_UPGRADE,[t.SubscriptionPlanType.Business]:d.BUSINESS_PLAN_UPGRADE,[t.SubscriptionPlanType.Enterprise]:d.ENTERPRISE_PLAN_UPGRADE},I=new Map([["Pro",t.SubscriptionPlanType.Pro],["Business",t.SubscriptionPlanType.Business],["
1Enterprise",t.SubscriptionPlanType.Enterprise]]),S=e=>{let t=d.BILLING_PLANS.find(({id:t})=>t===e);if(!(0,p.isPresent)(t))throw Error("Billing plan is not configured.");return t.name},T=e=>d.BILLING_PLANS.findIndex(t=>t.name===e),A=e=>d.BILLING_PLANS.find(t=>t.name===e)?.id,N=e=>!0===e?"Included":!1===e?"Not included":e,f=(e,t)=>{let r=A(e),i=A(t);return(0,p.isPresent)(r)&&(0,p.isPresent)(i)?d.BILLING_PLAN_COMPARISON_SECTIONS.flatMap(e=>(0,n.filterMap)([...e.features],e=>{let t=e.values[r],a=e.values[i];if(t!==a)return{feature:e,currentValue:t,targetValue:a,targetPlanId:i}})):[]},R=e=>{if(!(0,p.isPresent)(e))return;let r=(e=>{let r=d.BILLING_PLANS.findIndex(t=>t.id===e);if(r<0)return;let i=d.BILLING_PLANS.at(r+1)?.id;return i===t.SubscriptionPlanType.Free?void 0:i})(e);return(0,p.isPresent)(r)?_[r]:void 0},y={[t.SubscriptionPlanType.Pro]:d.PRO_PLAN_UPGRADE,[t.SubscriptionPlanType.Business]:d.FREE_TO_BUSINESS_PLAN_UPGRADE,[t.SubscriptionPlanType.Enterprise]:d.FREE_TO_ENTERPRISE_PLAN_UPGRADE},b=e=>e?.canRenewAfterTrial??e?.hasPaymentMethod===!0,h=(e,r)=>{let{planType:a}=e.stripeSubscription,n=!(0,i.isUserTrialing)(e)||b(r)||(0,i.canUserReplaceWorkspaceSubscription)(e)?void 0:(e=>{if(!(0,p.isPresent)(e)||e===t.SubscriptionPlanType.Free)return;let r=y[e],i=`Keep ${r.targetPlanName}`;return{...r,title:i,upgradeButtonLabel:i,description:`Add a payment method to continue on ${r.targetPlanName} after your trial ends.`,currentPlanName:r.targetPlanName,comparisonPlanName:r.currentPlanName,comparisonRows:r.comparisonRows.map(({current:e,upgrade:t})=>({current:t,upgrade:e}))}})(a);return(0,p.isPresent)(n)?n:R(a)},v=async(e,t)=>{let i=new URLSearchParams({...(0,p.isPresent)(e)?{subscriptionId:e}:{},...(0,p.isPresent)(t)?{targetPlanType:t}:{}}),a=i.size>0?`?${i}`:"",n=await fetch(`/api/user/subscription/downgrade${a}`,{method:"GET"}),o=await (0,m.parseResponseOrThrow)(n,{defaultError:"Unable to load downgrade details."});return r.BillingPlanDowngradeImpactSchema.parse(o)};e.s(["canSelectBillingPlanInterval",0,(e,r)=>r.some(r=>r.planType===e&&r.billingInterval===t.BillingInterval.Monthly)&&r.some(r=>r.planType===e&&r.billingInterval===t.BillingInterval.Annual),"canUserSubscriptionRenewAfterTrial",0,b,"getBillingPlanAction",0,(e,t)=>{if(e===t)return"current";let r=T(e),i=T(t);return r>=0&&i>=0&&r<i?"downgrade":"upgrade"},"getBillingPlanDowngradeChanges",0,({currentPlanName:e,targetPlanName:t,downgradeImpact:r})=>f(e,t).map(({feature:e,currentValue:t,targetValue:i,targetPlanId:a})=>{let n=(({downgradeImpactKind:e,targetPlanId:t,downgradeImpact:r})=>{if("meetingHistory"===e&&t===d.FREE_PLAN.id&&r?.meetingsOutsideFreePlanHistory){let e=r.meetingsOutsideFreePlanHistory;return`${(0,s.formatNumber)(e)} meeting${(0,c.getPluralSuffix)(e)} outside this limit`}if("teams"===e&&r){let e=(0,E.getMaximumTeamCount)(t);if(!e)return;let i=Math.max(r.teamCount-e,0);if(!i)return;return`${(0,s.formatNumber)(i)} team${(0,c.getPluralSuffix)(i)} over the limit`}})({downgradeImpactKind:e.downgradeImpactKind,targetPlanId:a,downgradeImpact:r}),o=N(i);return{label:e.label,downgradeImpactKind:e.downgradeImpactKind,current:N(t),target:"teams"===e.downgradeImpactKind?`${o} teams`:o,...n?{targetImpact:n}:{}}}),"getBillingPlanDowngradeImpact",0,v,"getBillingPlanName",0,S,"getBillingPlanPriceDescription",0,(e,t,r)=>{let i=((e,t,r)=>{let i=d.BILLING_PLANS.find(t=>t.name===e);if((0,p.isPresent)(i))return r.find(e=>e.planType===i.id&&e.billingInterval===t)})(e,t,r);if((0,p.isPresent)(i))return(0,g.formatBillingPlanPriceDescription)(i)},"getBillingPlans",0,(e,r)=>d.BILLING_PLANS.map(i=>{let a={id:i.id,name:i.name,...(0,p.isPresent)(i.billingDescription)?{billingDescription:i.billingDescription}:{}};if(i.id===t.SubscriptionPlanType.Free)return{...a,billingInterval:t.BillingInterval.Monthly,price:(0,o.formatAmou
1nt)({amount:d.FREE_PLAN.monthlyPrice.unitAmount,currency:d.FREE_PLAN.monthlyPrice.currency,minimumFractionDigits:0,language:navigator.language}),priceUnit:d.PLAN_PRICE_UNIT};let{billingInterval:n,price:s}=(0,P.resolveSubscriptionPlanPrice)({billingInterval:e,planType:i.id,prices:r});return{...a,billingInterval:n,...(0,p.isPresent)(s)?{price:(0,g.formatBillingPlanPrice)(s),priceUnit:d.PLAN_PRICE_UNIT}:{}}}),"getCurrentPlanDisplayName",0,e=>(0,p.isPresent)(e)?S(e):"Circleback","getCustomCheckoutPlanType",0,e=>(0,u.isPaidSubscriptionPlan)(e)?e:void 0,"getEnterprisePlanUpgradeDefinition",0,e=>{switch(e){case t.SubscriptionPlanType.Free:return d.FREE_TO_ENTERPRISE_PLAN_UPGRADE;case t.SubscriptionPlanType.Pro:return d.PRO_TO_ENTERPRISE_PLAN_UPGRADE;case t.SubscriptionPlanType.Business:case t.SubscriptionPlanType.Enterprise:case void 0:return d.ENTERPRISE_PLAN_UPGRADE;default:return e}},"getPlanNudgeState",0,(e,r)=>{if(!e.fetched)return;let{planType:n,status:o,trialEnd:s}=e.stripeSubscription;if((0,i.isUserTrialing)(e)){if(n===t.SubscriptionPlanType.Free||!(0,p.isPresent)(r)||b(r)||!(0,i.canUserUpdateSubscriptionPlan)(e,r.canUpdatePlan)||(0,i.canUserReplaceWorkspaceSubscription)(e)||!(0,p.isPresent)(s))return;let o=(0,a.daysToTimestamp)(s);if(o<=0)return;return{type:"trial",daysLeft:o,planName:(0,l.getSubscriptionPlanDisplayName)(e.stripeSubscription),planUpgrade:h(e,r)}}if((0,u.isPaidSubscriptionPlan)(n)||"unpaid"===o||"paused"===o||"incomplete"===o)return;let c=R(t.SubscriptionPlanType.Free);return(0,p.isPresent)(c)?{type:"upgrade",planUpgrade:c}:void 0},"getPlanUpgrade",0,({prices:e,user:r,billingInterval:i,userSubscription:a})=>{let n=h(r,a);if(!(0,p.isPresent)(n))return;let{price:o}=(0,P.resolveSubscriptionPlanPrice)({billingInterval:i,planType:t.SubscriptionPlanType[n.targetPlanName],prices:e});return(0,p.isPresent)(o)?{...n,priceDescription:(0,g.formatBillingPlanPriceDescription)(o)}:void 0},"getPlanUpgradeBillingInterval",0,({planName:e,billingInterval:r,subscriptionInterval:i,prices:a})=>(0,P.resolveSubscriptionPlanPrice)({billingInterval:r??(0,l.getBillingIntervalOrDefault)({planType:t.SubscriptionPlanType[e],interval:i}),planType:t.SubscriptionPlanType[e],prices:a}).billingInterval,"getTierUpgradeTrialPlanType",0,e=>(0,p.isPresent)(e)?I.get(e):void 0,"hasConcreteBillingPlanDowngradeImpact",0,(e,t)=>f(e,t).some(({feature:e})=>(0,p.isPresent)(e.downgradeImpactKind)),"isNextBillingPlan",0,(e,t)=>{let r=T(e),i=T(t);return r>=0&&i>=0&&r===i+1}])},218065,e=>{"use strict";e.i(134903);var t=e.i(543222);e.i(354656);var r=e.i(965140),i=e.i(610813),a=e.i(866669),n=e.i(504850),o=e.i(482568);let s={day:"day",week:"week",month:"month",year:"year"},l=e=>(0,i.formatAmount)({amount:(0,o.getMonthlyEquivalentUnitAmount)(e),currency:e.currency,minimumFractionDigits:0,language:navigator.language}),c=e=>`${l(e)} per user/month${e.billingInterval===t.BillingInterval.Annual?", billed yearly":""}`,u=({plan:e,status:t,trialEnd:r,isFreePlan:i,canRenewAfterTrial:n})=>"trialing"===t?i?"freeForever":(0,a.isPresent)(r)&&(e?.willCancelAtPeriodEnd===!0||(0,a.isPresent)(e?.cancelAt)&&e.cancelAt<=r)?"trialEnding":n?"trialRenewing":"trial":i?"freeForever":"past_due"===t?"pastDue":e?.willCancelAtPeriodEnd===!0||(0,a.isPresent)(e?.cancelAt)&&e.cancelAt<=e.currentPeriodEnd?"canceling":"renewing";e.s(["formatBillingPlanPrice",0,l,"formatBillingPlanPriceDescription",0,c,"formatPrice",0,(e,t)=>(0,i.formatAmount)({amount:e,currency:t,minimumFractionDigits:2,language:navigator.language}),"getCurrentPlanPresentation",0,({planName:e,canViewBilling:o,seatQuantity:l,nextPayment:p,isLoading:m,hasError:d,isPlanSwitchScheduled:g,...E})=>{let P=(e=>{let{plan:o,isFreePlan:l}=e,p=u(e),m=((e,r)=>{if(r)return n.FREE_PLAN.billingDescription;if(!e)return;if(!r&&1===e.intervalCount&&("month"===e.interval||"year"===e.interval))return c({billingInterval:"year"===e.interval?t.BillingInterval.Annual:t.BillingInterval.Monthly,unitAmount:e.unitAmount,currency:e.currency});let a=(0,i.formatAmount)({amount:e.unitAmount,currency:e.currency,minimumFractionDigits:0,language:navigator.language}),o=1===e.intervalCount?s[e.interval]:`${e.intervalCount} ${e.interval}s`;return`${a}${r?"":" per user"}/${o}`})(o,!0===l),d=((e,{plan:t,trialEnd:r,paymentDueAt:i})=>{switch(e){case"trial":case"trialRenewing":return r??t?.currentPeriodEnd;case"trialEnding":if((0,a.isPresent)(t?.cancelAt)&&(0,a.isPresent)(r))return Math.min(t.cancelAt,r);return t?.cancelAt??r??t?.currentPeriodEnd;case"freeForever":return;case"pastDue":return i;case"canceling":return t?.cancelAt??t?.currentPeriodEnd;case"renewing":return t?.currentPeriodEnd;default:return e}})(p,e),g="trial"===p||"trialRenewing"===p||"trialEnding"===p,E="trial"===p||"trialEnding"===p,P="pastDue"===p?"Past due":g?"Trial":void 0;return{priceDescription:m,renewalDate:((e,t)=>{if((0,a.isPresent)(t))return e?(0,r.formatRelativeDateFromUnixTimestamp)(t):(0,r.getFormattedDateFromUnixTimestamp)(t,r.dateFormats.compactMonthDateYear)})(E,d),renewalLabel:(e=>{switch(e){case"trial":return"Trial ends";case"trialRenewing":case"renewing":return"Next renewal";case"trialEnding":case"canceling":return"Cancels on";case"pastDue":return"Payment due";case"freeForever":return;default:return e}})(p),...(0,a.isPresent)(P)?{statusLabel:P}:{}}})(E),_=u(E),I=!0===g,S=o?(({priceDescription:e,isLoading:t,hasError:r})=>(0,a.isPresent)(e)?e:r?"â":t?void 0:"Custom pricing")({isLoading:m,hasError:d,...(0,a.isPresent)(P.priceDescription)?{priceDescription:P.priceDescription}:{}}):void 0,T=I&&(0,a.isPresent)(S)?`${S} \xb7 Plan switch scheduled`:S,A=o&&!0!==E.isFreePlan,N=o&&!I&&("renewing"===_||"trialRenewing"===_)&&(0,a.isPresent)(p)?(0,i.formatAmou
1nt)({amount:p.amount,currency:p.currency,minimumFractionDigits:0,notation:"compact",language:navigator.language}):void 0;return{planName:e,statusLabel:P.statusLabel??"Current",...(0,a.isPresent)(T)?{priceDescription:T}:{},...P.renewalLabel&&!I&&(o||P.renewalDate)?{renewalLabel:P.renewalLabel}:{},...P.renewalDate?{renewalDate:P.renewalDate}:{},...(0,a.isPresent)(N)?{formattedRenewalAmount:N}:{},...A?{seatCount:l??1}:{}}}])},793160,e=>{"use strict";e.i(134903);var t=e.i(543222),r=e.i(64972);e.s(["doesSubscriptionPlanTypeHaveBusinessAccess",0,e=>e===t.SubscriptionPlanType.Business||e===t.SubscriptionPlanType.Enterprise,"doesSubscriptionPlanTypeHaveMeetingParticipantCustomizationAccess",0,e=>e===t.SubscriptionPlanType.Pro||e===t.SubscriptionPlanType.Business||e===t.SubscriptionPlanType.Enterprise,"getMaximumTeamCount",0,e=>{switch(e){case t.SubscriptionPlanType.Free:return r.FREE_PLAN_MAXIMUM_TEAM_COUNT;case t.SubscriptionPlanType.Pro:return r.PRO_PLAN_MAXIMUM_TEAM_COUNT;case t.SubscriptionPlanType.Business:case t.SubscriptionPlanType.Enterprise:return;default:return e}}
1,"getTrialDurationInDays",0,({referred:e,invitedTeam:i,subscriptionPlanType:a,promoTrialDurationInDays:n})=>a===t.SubscriptionPlanType.Free?0:n||r.TRIAL_DURATION_IN_DAYS_BY_SUBSCRIPTION_PLAN_TYPE[a]+(e?r.REFERRAL_TRIAL_EXTENSION_IN_DAYS:0)+(i?r.TEAM_TRIAL_EXTENSION_IN_DAYS:0)])},368718,e=>{"use strict";var t=e.i(261576),r=e.i(191788);e.i(864449);var i=e.i(998753),a=e.i(108741),n=e.i(889083),o=e.i(363800);e.i(267340);var s=e.i(213509),l=e.i(774735),c=e.i(76580),u=e.i(291259),p=e.i(353031),m=e.i(184835),d=e.i(659921),g=e.i(438837);e.i(134903);var E=e.i(543222),P=e.i(409018);e.i(354656);var _=e.i(357533),I=e.i(497902),S=e.i(836558),T=e.i(844457),A=e.i(80784),N=e.i(64972),f=e.i(439567),R=e.i(980343),y=e.i(360491),b=e.i(962048);function h(e){return e?.()}e.s(["usePreload",0,()=>{let e,v,L,D,C,O,U,M,w,F,B,G,k,$,x,Y,z,K,V,H,W,j,X,q,J,Q=(0,t.c)(69),Z=(0,d.useFetcher)(),{mutate:ee}=(0,A.useSWRConfig)(),et=(0,g.useUser)();Q[0]===Symbol.for("react.memo_cache_sentinel")?(e={},Q[0]=e):e=Q[0];let er=(0,r.useRef)(e);Q[1]===Symbol.for("react.memo_cache_sentinel")?(v=[],Q[1]=v):v=Q[1];let[ei,ea]=(0,r.useState)(v);Q[2]===Symbol.for("react.memo_cache_sentinel")?(L=(e,t,r)=>{let i=void 0===r?150:r,a=async()=>{try{await t()}catch(e){(0,R.captureException)(e)}};return i?(er.current[e]&&clearTimeout(er.current[e]),er.current[e]=setTimeout(()=>{a(),delete er.current[e]},i),()=>{er.current[e]&&(clearTimeout(er.current[e]),delete er.current[e])}):void a()},Q[2]=L):L=Q[2];let en=L;Q[3]===Symbol.for("react.memo_cache_sentinel")?(D=(e,t)=>{let{delay:r}=void 0===t?{}:t,i=void 0===r?150:r;ea(e.map((e,t)=>en(`preload-${t}`,e,i)))},Q[3]=D):D=Q[3];let eo=D;Q[4]!==ei?(C=()=>{ei.forEach(h),ea([])},Q[4]=ei,Q[5]=C):C=Q[5];let es=C;Q[6]!==Z?(O=async()=>{let e=new URLSearchParams({...(0,_.pruneAndStringifyFilters)({...a.DEFAULT_MEETING_FILTERS,...(0,b.getMeetingFiltersFromLocalStorage)()})}),t=(0,s.buildActionItemsFilterParams)({...i.DEFAULT_ACTION_ITEM_FILTERS,...(0,b.getActionItemFiltersFromLocalStorage)()}),r=["/api/calendar","/api/tag",`/api/views?entityType=${P.ViewEntityType.MeetingView}`,`/api/views?entityType=${P.ViewEntityType.ActionItemView}`,"/api/releases?page=0"],n=["/api/calendar/events?includeOfflineSingleAttendee=false",`/api/meetings?${e}`,`/api/action-items?${t}`];await Promise.all([...r.map(e=>(0,A.preload)(e,Z)),...n.map(e=>(0,l.preloadPaginatedPage)(Z,e))])},Q[6]=Z,Q[7]=O):O=Q[7];let el=O;Q[8]!==Z?(U=()=>{(0,A.preload)(n.USER_AUTOMATIONS_SWR_KEY,Z)},Q[8]=Z,Q[9]=U):U=Q[9];let ec=U;Q[10]!==Z?(M=()=>{(0,A.preload)("/api/insight",Z)},Q[10]=Z,Q[11]=M):M=Q[11];let eu=M;Q[12]!==Z?(w=()=>{(0,l.preloadPaginatedPage)(Z,(0,u.getUserPeopleKey)({limit:o.PEOPLE_PAGE_SIZE}))},Q[12]=Z,Q[13]=w):w=Q[13];let ep=w;Q[14]!==Z?(F=()=>{(0,l.preloadPaginatedPage)(Z,"/api/companies?sortByMeetingDate=true")},Q[14]=Z,Q[15]=F):F=Q[15];let em=F;Q[16]!==Z||Q[17]!==et?(B=async()=>{if(!(0,S.shouldConfirmPlanUpgrade)(et))return;let[e,t]=await Promise.all([(0,A.preload)(n.USER_SUBSCRIPTION_SWR_KEY,e=>Z(e)),(0,A.preload)("/api/user/subscription/prices",e=>Z(e))]),{prices:r}=t,i=(0,y.getPlanUpgrade)({prices:r,user:et,billingInterval:N.DEFAULT_BILLING_INTERVAL,userSubscription:e});i&&await (0,A.preload)((0,m.getSubscriptionPlanUpdatePreviewKey)({planType:E.SubscriptionPlanType[i.targetPlanName],billingInterval:(0,y.getPlanUpgradeBillingInterval)({planName:i.targetPlanName,subscriptionInterval:e.plan?.interval,prices:r})}),Z)},Q[16]=Z,Q[17]=et,Q[18]=B):B=Q[18];let ed=B;Q[19]!==Z||Q[20]!==ed||Q[21]!==et?(G=async()=>{let e=["/api/user/settings",n.USER_SUBSCRIPTION_SWR_KEY,"/api/user/subscription/prices","/api/user/subscription/invoices",n.USER_BILLING_DETAILS_SWR_KEY,"/api/tag?includeUsageStats=true","/api/calendar?checkForDuplicateConnections=true"];await Promise.all([...e.map(e=>(0,A.preload)(e,Z)),(0,A.preload)((0,p.getApiKeysKey)(et.email),e=>{let{endpoint:t}=e;return Z(t)}),ed()])},Q[19]=Z,Q[20]=ed,Q[21]=et,Q[22]=G):G=Q[22];let eg=G;Q[23]!==Z?(k=()=>{(0,A.preload)("/api/workspace",Z)},Q[23]=Z,Q[24]=k):k=Q[24];let eE=k;Q[25]!==Z?($=()=>{(0,A.preload)("/api/workspace/domain",Z)},Q[25]=Z,Q[26]=$):$=Q[26];let eP=$;Q[27]!==Z?(x=()=>{(0,A.preload)("/api/user/onboarding",Z)},Q[27]=Z,Q[28]=x):x=Q[28];let e_=x;Q[29]!==Z?(Y=async e=>{let t=await Z(`/api/meeting/${e}/assistant`);t.assistantChatId&&(0,A.preload)(`/api/assistant/chats/${t.assistantChatId}`,Z)},Q[29]=Z,Q[30]=Y):Y=Q[30];let eI=Y;Q[31]!==Z||Q[32]!==ee||Q[33]!==eI?(z=async(e,t)=>{let{shouldInvalidate:r}=void 0===t?{}:t;if(e===I.PLACEHOLDER_MEETING_ID)return;let i=(0,c.getMeetingKey)(e),a=[i,`${i}/recent-conversations`,`${i}/clips`],n=(0,A.preload)(i,Z),o=Promise.allSettled([...a.slice(1).map(e=>(0,A.preload)(e,Z)),eI(e)]),s=await n;return(void 0===r||r)&&!(0,_.isMeetingReady)(s.status)&&(await (0,T.mutate)(i),await ee(i)),await o,s},Q[31]=Z,Q[32]=ee,Q[33]=eI,Q[34]=z):z=Q[34];let eS=z;Q[35]!==ee?(K=async e=>{let t=[(0,c.getMeetingKey)(e.id),(0,c.getMeetingKey)(e.id,{newMeeting:!0})];await Promise.all(t.map(t=>ee(t,e,{revalidate:!1}))),t.forEach(t=>{(0,A.preload)(t,()=>e)})},Q[35]=ee,Q[36]=K):K=Q[36];let eT=K;Q[37]!==Z?(V=async e=>(0,l.preloadPaginatedPage)(Z,`/api/insight/${e}`),Q[37]=Z,Q[38]=V):V=Q[38];let eA=V;Q[39]!==Z?(H=async e=>{(0,A.preload)(`/api/automation/${e}`,Z),(0,l.preloadPaginatedPage)(Z,`/api/automation/${e}/meetings`),(0,A.preload)(`/api/automation/${e}/runs`,Z)},Q[39]=Z,Q[40]=H):H=Q[40];let eN=H;Q[41]!==Z?(W=async e=>{e!==I.PLACEHOLDER_MEETING_ID&&(0,A.preload)(`/api/meeting/${e}/transcript?page=0`,Z)},Q[41]=Z,Q[42]=W):W=Q[42];let ef=W;Q[43]!==Z?(j=async e=>{e!==I.PLACEHOLDER_MEETING_ID&&(0,A.preload)(`/api/meeting/${e}/automations`,Z)},Q[43]=Z,Q[44]=j):j=Q[44];let eR=j;Q[45]!==Z?(X=async()=>{(0,A.preload)("/api/user/referrals",Z)},Q[45]=Z,Q[46]=X):X=Q[46];let ey=X;Q[47]!==Z?(q=e=>Promise.allSettled((0,f.getEmailThreadKeysWithoutBodies)(e).map(e=>(0,A.preload)(e,Z))),Q[47]=Z,Q[48]=q):q=Q[48];let eb=q;return Q[49]!==es||Q[50]!==eN||Q[51]!==ec||Q[52]!==em||Q[53]!==eb||Q[54]!==eA||Q[55]!==eu||Q[56]!==el||Q[57]!==eS||Q[58]!==eR||Q[59]!==e_||Q[60]!==ep||Q[61]!==ed||Q[62]!==eg||Q[63]!==ef||Q[64]!==ey||Q[65]!==eP||Q[66]!==eE||Q[67]!==eT?(J={preloadLoggedInUserData:el,preloadAutomations:ec,preloadInsights:eu,preloadPeople:ep,preloadCompanies:em,preloadSettings:eg,preloadPlanUpgradeConfirmation:ed,preloadWorkspace:eE,preloadUserWorkspaceDomain:eP,preloadOnboarding:e_,preloadMeeting:eS,preloadInsight:eA,preloadAutomation:eN,preloadTranscript:ef,preloadMeetingAutomations:eR,preloadUserReferrals:ey,preloadEmailThreads:eb,startPreloads:eo,cancelPreloads:es,updatePreloadCacheForNewMeeting:eT}
1,Q[49]=es,Q[50]=eN,Q[51]=ec,Q[52]=em,Q[53]=eb,Q[54]=eA,Q[55]=eu,Q[56]=el,Q[57]=eS,Q[58]=eR,Q[59]=e_,Q[60]=ep,Q[61]=ed,Q[62]=eg,Q[63]=ef,Q[64]=ey,Q[65]=eP,Q[66]=eE,Q[67]=eT,Q[68]=J):J=Q[68],J}])},844457,433136,439567,e=>{"use strict";var t=e.i(924792);e.s(["mutate",()=>t.j],844457),e.i(864449);var r=e.i(247230);e.i(267340);var i=e.i(150157);e.i(325206);var a=e.i(212637);e.i(134903);var n=e.i(830852),o=e.i(581212),s=e.i(688169);e.i(354656);var l=e.i(341928),c=e.i(866669),u=e.i(828008),p=e.i(645091),m=e.i(694430),d=e.i(901697),g=e.i(579400),E=e.i(501321),P=e.i(264751),_=e.i(425448),I=e.i(437994);let S="data-circleback-quoted",T=[...r.QUOTED_CONTENT_SELECTORS.flatMap(e=>[e,`${e} ~ *`]),`[${S}]`].join(",");e.s(["ADD_RECIPIENTS_PLACEHOLDER",0,"Add recipientsâ¦","CREATE_LABEL_OPTION_PREFIX",0,"create-label:","EMAIL_QUOTED_CONTENT_ATTRIBUTE",0,S,"EMAIL_QUOTED_CONTENT_SELECTOR",0,T,"OPTIMISTIC_LABEL_PREFIX",0,"optimistic-label:"],433136);let A=async({mutateEmailThread:e,update:t})=>e?.(e=>e?t(e):e,{revalidate:!1}),N=async({url:e,method:t="POST",body:r,schema:i,defaultError:a})=>{let n=await fetch(e,{method:t,headers:{"Content-Type":"application/json"},...r?{body:JSON.stringify(r)}:{}}),o=await (0,P.parseResponseOrThrow)(n,{defaultError:a}),s=i.parse(o);if(!s.success)throw Error(s.error??a);return s},f=async({connectionId:e,emailThreadId:t,body:r})=>N({url:`/api/email/email-thread/${encodeURIComponent(e)}/${encodeURIComponent(t)}/reply`,body:r,schema:n.SendReplyResponseSchema,defaultError:"Failed to send reply."}),R=async({connectionId:e,emailThreadId:t})=>N({url:`/api/email/email-thread/${encodeURIComponent(e)}/${encodeURIComponent(t)}/archive`,schema:n.ArchiveThreadResponseSchema,defaultError:"Failed to archive thread."}),y=async({connectionId:e,emailThreadId:t,addLabelIds:r,removeLabelIds:i})=>N({url:`/api/email/email-thread/${encodeURIComponent(e)}/${encodeURIComponent(t)}/labels`,body:{addLabelIds:r,removeLabelIds:i},schema:n.ModifyThreadLabelsResponseSchema,defaultError:"Failed to update labels."}),b=async({connectionId:e,name:t})=>N({url:`/api/email/labels/${encodeURIComponent(e)}`,body:{name:t},schema:n.CreateLabelResponseSchema,defaultError:"Failed to create label."}),h=e=>{let t=e.messageId??"",r=e.references??"";return{references:(r?`${r} ${t}`:t).trim(),inReplyTo:t}},v=e=>e.trim(),L=e=>e.messages.some(({decodedBody:e,textBody:t})=>e||t),D=(e,t)=>{if(e===t||!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING))return[];if(e instanceof Text)return[{text:e.data,node:e}];if(!(e instanceof Element))return[];if(e.matches("img,hr"))return[{text:""}];if("BR"===e.tagName)return[{text:"\n"}];let r=Array.from(e.childNodes).flatMap(e=>D(e,t));return e.matches("div,p,blockquote,li,tr,pre,h1,h2,h3,h4,h5,h6")?[{text:"\n"},...r,{text:"\n"}]:r},C="data:",O=async({connectionId:e,emailThreadId:t,body:r})=>N({url:t?`/api/email/email-thread/${encodeURIComponent(e)}/${encodeURIComponent(t)}/draft`:`/api/email/draft/${encodeURIComponent(e)}`,body:r,schema:n.SaveDraftResponseSchema,defaultError:"Failed to save draft, please try again."});e.s(["archiveEmailThread",0,R,"buildOptimisticReplyMessage",0,({message:e,body:t,htmlBody:r,to:i,cc:a,bcc:n,senderName:o,senderEmail:s})=>{let u=h(e),m=v(e.subject),d=(0,p.getEmailThreadId)(e),g=(0,E.replaceCharsWithHTMLEntries)(t),P=`<div>${g.replace(/\n/g,"<br />")}</div>`,I=t.trim(),S=I.length>0?I.slice(0,140):"Reply";return{id:`optimistic-reply-${(0,l.createId)(20)}`,platform:e.platform,connectionId:e.connectionId,accountEmail:e.accountEmail,title:S,subject:m,tags:[],sender:{name:o,email:s},to:i,cc:a??null,bcc:n??null,tls:e.tls,receivedOn:new Date,unread:!1,textBody:t,decodedBody:(0,c.isPresent)(r)?_.default.sanitize(r):P,references:u.references,inReplyTo:u.inReplyTo,replyTo:void 0,messageId:void 0,threadId:d,attachments:void 0,isDraft:void 0}},"buildReplyRequestBody",0,({message:e,body:t,htmlBody:r,to:i,cc:a,bcc:n})=>{let o=h(e),s=v(e.subject);return{messageId:e.id,to:i,cc:a,bcc:n,subject:s,body:t,...(0,c.isPresent)(r)?{htmlBody:r}:{},references:o.references,inReplyTo:o.inReplyTo}},"cleanEmailContentForDarkMode",0,({root:e,platform:t})=>
1{e.querySelectorAll("font[color]").forEach(e=>{let t=e.getAttribute("color");t&&(0,d.isDarkColor)(t)&&e.removeAttribute("color")}),e.querySelectorAll("[style]").forEach(e=>{let t=e.getAttribute("style");if(!t||!t.toLocaleLowerCase().match(/(?:^|;)\s*color\s*:/))return;let r=t.split(";").filter(e=>{let[t,r]=e.split(":").map(e=>e?.trim());return!t||!r||"color"!==t.toLocaleLowerCase()||!(0,d.isDarkColor)(r)}).join(";");""===r.replace(/;/g,"").trim()?e.removeAttribute("style"):e.setAttribute("style",r)}),t===a.CalendarPlatform.MicrosoftOutlook&&e.querySelectorAll("style").forEach(e=>{let t=e.textContent;t&&(e.textContent=t.replace(/(?<![a-z-])color\s*:\s*([^;!}]+)([;!]|(?=}))/gi,(e,t,r)=>(0,d.isDarkColor)(t.trim())?`color: inherit${r}`:e))})},"createGmailLabel",0,b,"formatReplySubject",0,v,"getEmailThreadKeysWithoutBodies",0,e=>(0,u.filterMap)(e,({conversation:e})=>{if(!(0,g.isEmailConversation)(e))return;let{emailThread:t}=e,r=(0,p.getLatestThreadMessage)(t);if(!(!r?.connectionId||L(t)))return(0,i.getEmailThreadKey)((0,p.getEmailThreadId)(r),r.connectionId)}),"getOpenInEmailPlatformText",0,e=>e.platform===a.CalendarPlatform.GoogleCalendar?`Open in ${(0,m.getAssociatedEmailConnectionMetadata)(o.Calendar.GoogleCalendar).displayName}`:`Open in ${(0,m.getAssociatedEmailConnectionMetadata)(o.Calendar.MicrosoftOutlookCalendar).displayName}`,"getPersonEmailConnectionId",0,({recentConversations:e,connections:t,userEmail:r})=>{let i=t.filter(e=>e.connected);return e.toSorted((e,t)=>t.timestamp.getTime()-e.timestamp.getTime()).map(({conversation:e})=>(0,g.isEmailConversation)(e)?(0,p.getLatestThreadMessage)(e.emailThread)?.connectionId:void 0).find(e=>i.some(t=>t.id===e))??i.find(e=>e.email&&(0,E.normalizeEmail)(e.email)===(0,E.normalizeEmail)(r))?.id??i[0]?.id},"getReplyDraftFromMessage",0,({message:e,...t})=>({...t,toRecipients:(0,p.filterValidEmailParticipants)(e.to),ccRecipients:(0,p.filterValidEmailParticipants)(e.cc??[]),bccRecipients:(0,p.filterValidEmailParticipants)(e.bcc??[]),body:e.textBody,...e.decodedBody?{htmlBody:e.decodedBody}:{},subject:e.subject,savedAt:new Date(e.receivedOn),...(0,c.isPresent)(e.providerDraftId)?{providerDraftId:e.providerDraftId}:{}}),"getReplyRecipients",0,(e,t,r=[])=>{let i=e.replyTo?(0,E.parseEmailAddresses)(e.replyTo)[0]:null,n=i?.email??e.sender.email,o=i?.name??e.sender.name,l=new Set(r.map(E.normalizeEmail)),c=e.platform===a.CalendarPlatform.GoogleCalendar?e.tags.some(e=>"SENT"===e.id):l.has((0,E.normalizeEmail)(e.sender.email)),u=e=>(0,I.default)((0,p.filterValidEmailParticipants)(e).filter(e=>!l.has((0,E.normalizeEmail)(e.email))),e=>(0,E.normalizeEmail)(e.email)),m={email:n,name:o};if(t===s.ReplyMode.Reply)return{to:u(c?e.to:[m])};let d=u([...c?[]:[m],...e.to]),g=new Set(d.map(e=>(0,E.normalizeEmail)(e.email))),P=u(e.cc??[]).filter(e=>!g.has((0,E.normalizeEmail)(e.email)));return{to:d,cc:P.length>0?P:void 0}},"hasEmailThreadBody",0,L,"modifyThreadLabels",0,y,"mutateEmailThreadOptimistically",0,A,"normalizeEmailQuotedContent",0,e=>{let t=document.createElement("div");t.innerHTML=e;let i=[...r.QUOTED_CONTENT_SELECTORS,'blockquote[type="cite"]'].join(",");return Array.from(t.querySelectorAll(i)).forEach(e=>{if(e.parentElement?.closest(T))return;let r=((e,t)=>{let r=D(e,t),i=r.map(e=>e.text).join("").trimEnd(),a=Array.from(i.matchAll(/(?:^|\n)[^\S\n]*(On\s+)/gi)).at(-1),n=a?.[1];if(!a||!n)return;let o=a.index+a[0].length-n.length,s=i.slice(o);if(!/^On\s+\S[\s\S]*\bwrote:$/i.test(s)||/\n\s*\n/.test(s))return;let{start:l,end:c}=r.reduce((e,t)=>({offset:e.offset+t.text.length,start:t.node&&o>=e.offset&&o<e.offset+t.text.length?{node:t.node,offset:o-e.offset}:e.start,end:t.node&&i.length>e.offset&&i.length<=e.offset+t.text.length?{node:t.node,offset:i.length-e.offset}:e.end}),{offset:0,start:null,end:null});if(!l||!c)return;let u=e.ownerDocument.createRange();return u.setStart(l.node,l.offset),u.setEnd(c.node,c.offset),u})(t,e);if(!r)return;let i=document.createElement("span");i.setAttribute(S,""),i.appendChild(r.extractContents()),r.insertNode(i),e.setAttribute(S,"")}),t.innerHTML},"replaceInlineImagesWithObjectUrls",0,e=>(0,u.filterMap)(Array.from(e.querySelectorAll("img")),e=>{let t=e.getAttribute("src");if(!t||!t.startsWith(C))return;let r=(e=>{let t=e.indexOf(",");if(-1===t)return null;let r=e.slice(C.length,t),i=e.slice(t+1),a=r.endsWith(";base64"),n=a?r.slice(0,-7):r;try{if(!a)return new Blob([decodeURIComponent(i)],{type:n});let e=atob(i),t=Uint8Array.from(e,e=>e.charCodeAt(0));return new Blob([t],{type:n})}catch{return null}})(t);if(!r)return;let i=URL.createObjectURL(r);return e.setAttribute("src",i),e.setAttribute("loading","lazy"),e.setAttribute("decoding","async"),i}),"saveEmailDraft",0,O,"sendEmailReply",0,f],439567)}]); 2 3//# sourceMappingURL=2j_oow1esmw0w.js.map 4//# chunkId=01a0f4e0-548e-7df2-adfe-cc5d1a1e18c9
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.