PageSourceSearch

https://agendahero.com/builds/5206244e3ce4271d72396ea7ab1cbae828ae…/OutlookExportModal.V8bDUMVs.chunk.js

js agendahero.com collected 2026-10-01 14:42:22 UTC 3,822 bytes, 2 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`e2bc6881-f8c2-4517-a615-a769483b7758`,e._sentryDebugIdIdentifier=`sentry-dbid-e2bc6881-f8c2-4517-a615-a769483b7758`)}catch{}})();import{$n as e,Dt as t,Mt as n,Nt as r,Pt as i,Rn as a,Sn as o,Yr as s,er as c,x as l}from"./vendor.CUKhofqW.chunk.js";import{Ha as u,Lo as d,Po as f,Ta as p,o as m,r as h,ti as ee,zo as g}from"./contexts.DJNFbt8_.chunk.js";import{wt as _}from"./SnippetIngredientInUseModal.D4dG6yJL.chunk.js";import{_ as v,g as y,r as b,v as x}from"./ui.BrqTL3ZD.chunk.js";import{t as S}from"./Confetti.BFa6dgde.chunk.js";import{a as C,n as w}from"./useSelectModeStore.D2qK9M98.chunk.js";import{t as T}from"./usePickerIntegrations._4KibqOx.chunk.js";import{t as E}from"./useAddEvents.BKAVkuk3.chunk.js";import{t as D}from"./useLoadingState.BRvurmyq.chunk.js";var O=s(),k=({isOpen:s,onClose:k,eventId:A})=>{let j=!A,{trackEvent:M}=h(),N=b(),{events:P,base:F}=g(),{destination:I,setDestination:L}=f(_.OutlookIntegration),{integrations:te,isLoading:R}=T({platform:_.OutlookIntegration}),{addAllEvents:z,addEvent:B,addSelectedEvents:V,isPending:H}=E(),U=C(),{exitSelectMode:W}=w(),G=j&&U.length>0,K=G?U.length:P.length,q=j?K!==1:!1,{debouncedIsPending:J,debouncedDestination:Y}=D(I,H),X=te.filter(({integration:e})=>d(e)),Z=X.length>0,Q=A?`outlook-add:${A}`:u,$=t=>{let n=q?`${K} events added to ${t.calendar.name}`:`Event added to ${t.calendar.name}`;N.toast({position:`bottom-right`,render:()=>(0,O.jsxs)(e,{variant:`notify`,children:[(0,O.jsx)(S,{}),` 🎉 `,n]})}),G&&W(),k(t)},ne=(e,t)=>{if(J)return;M(`magic-export-modal:click add`,{isAddAll:j,platform:_.OutlookIntegration});let n={calendar:t,integration:e,platform:_.OutlookIntegration};if(L(n),j&&G)return V(U,{destination:n,attendees:[]},()=>$(n));if(j)return z({destination:n,attendees:[]},()=>$(n));if(A){let e=P.find(e=>e.id===A);if(e)return B(e,{destination:n,attendees:[]},()=>$(n))}k(null)};return(0,O.jsxs)(y,{isCentered:!0,isOpen:s,size:{base:`full`,md:`lg`},onClose:()=>k(null),children:[(0,O.jsx)(t,{}),(0,O.jsxs)(i,{borderRadius:`2xl`,layerStyle:`magicBackgroundSecondary`,maxH:`calc(100vh - var(--chakra-space-12))`,overflow:`auto`,py:`6`,children:[(0,O.jsx)(n,{}),(0,O.jsxs)(r,{flexDir:`column`,textAlign:`center`,children:[(0,O.jsx)(l,{fontSize:`72px`,mb:`2`,children:Z?`📆`:`✨`}),(0,O.jsx)(l,{fontSize:`32px`,fontWeight:`bold`,lineHeight:`1.2`,children:Z?(0,O.jsxs)(O.Fragment,{children:[`Where should we`,(0,O.jsx)(`br`,{}),`add the`,G?` ${K}`:``,` `,q?`events`:`event`,`?`]}):(0,O.jsxs)(O.Fragment,{children:[`Connect your Outlook`,(0,O.jsx)(`br`,{}),`Calendar to add events`]})}),R?(0,O.jsx)(ee,{my:`8`}):Z?(0,O.jsx)(o,{bg:`white`,borderRadius:`lg`,direction:`column`,my:`5`,p:`2`,textAlign:`left`,w:`100%`,children:X.map(({integration:e,suitableCalendars:t})=>(0,O.jsxs)(a,{children:[(0,O.jsx)(l,{color:`customgray.mid`,fontSize:`sm`,px:`3`,py:`2`,children:e.name}),(0,O.jsx)(o,{direction:`column`,children:t.map(t=>{let n=J&&Y?.calendar?.id===t.id;
1return(0,O.jsx)(v,{colorScheme:`dark`,h:`8`,isDisabled:t.readonly,justifyContent:`flex-start`,px:`2`,variant:`ghost`,w:`100%`,leftIcon:(0,O.jsx)(a,{boxSize:`20px`,children:n?(0,O.jsx)(c,{boxSize:`10px`,color:t.color}):(0,O.jsx)(x,{as:p,boxSize:`20px`,color:t.color})}),opacity:!J||n?1:.5,onClick:()=>ne(e,t),children:t.name},t.uri)})})]},e.id))}):(0,O.jsx)(o,{justify:`center`,my:`8`,children:(0,O.jsx)(m,{base:F,launchOnRedirect:Q})}),(0,O.jsx)(v,{colorScheme:`dark`,fontSize:`md`,textDecor:`underline`,variant:`link`,onClick:()=>k(null),children:`Not now`})]})]})]})};export{k as OutlookExportModal};
2//# sourceMappingURL=OutlookExportModal.V8bDUMVs.chunk.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.