1import{j as a}from"./ui-vendor-CealJQWJ.js";import{r as c}from"./react-vendor-BkH0-HFx.js";import{b as d}from"./business-auth-B___EEsB.js";const p="google_calendar",h=()=>{const[i,n]=c.useState("Verbindung wird abgeschlossen â¦");return c.useEffect(()=>{const s=new URLSearchParams(window.location.search),r=(e,u)=>{var o;(o=window.opener)==null||o.postMessage({type:e,connectorId:p,reason:u},window.location.origin),e==="appUserConnectorOAuthComplete"&&window.close()};if(s.get("success")!=="true"){const e=s.get("error")??"Die Verbindung wurde abgebrochen.";n(e),r("appUserConnectorOAuthFailed",e);return}const t=s.get("code");if(!t){const e="Die Verbindung konnte nicht gespeichert werden.";n(e),r("appUserConnectorOAuthFailed",e);return}(async()=>{const{error:e}=await d("business-calendar-user-ops",{action:"oauth_complete",code:t});if(e){n(e),r("appUserConnectorOAuthFailed",e);return}n("Fertig! Dieses Fenster kann geschlossen werden."),r("appUserConnectorOAuthComplete")})()},[]),a.jsx("div",{className:"min-h-screen flex items-center justify-center p-8 text-center",children:a.jsx("p",{className:"text-sm text-muted-foreground",children:i})})};export{h as default};
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.