var E=Object.defineProperty;var F=(q)=>q;function H(q,y){this[q]=F.bind(null,y)}var K=(q,y)=>{for(var B in y)E(q,B,{get:y[B],enumerable:!0,configurable:!0,set:H.bind(y,B)})};var M=(q,y)=>()=>(q&&(y=q(q=0)),y);import D from"@contractspec/lib.ui-link";import{ChevronRight as J}from"lucide-react";import{jsx as f,jsxs as z}from"react/jsx-runtime";function T(){return z("div",{className:"space-y-8",children:[z("div",{className:"space-y-4",children:[f("h1",{className:"font-bold text-4xl",children:"Google Calendar"}),f("p",{className:"text-muted-foreground",children:"Integrate Google Calendar to schedule appointments, manage availability, and sync events with your application."})]}),z("div",{className:"space-y-4",children:[f("h2",{className:"font-bold text-2xl",children:"Setup"}),f("div",{className:"overflow-x-auto rounded-lg border border-border bg-background/50 p-4 font-mono text-muted-foreground text-sm",children:f("pre",{children:`# .env
GOOGLE_CLIENT_ID=...
GOOGLE_CLIENT_SECRET=...
GOOGLE_CALENDAR_ID=primary`})})]}),z("div",{className:"space-y-4",children:[f("h2",{className:"font-bold text-2xl",children:"Creating events"}),f("div",{className:"overflow-x-auto rounded-lg border border-border bg-background/50 p-4 font-mono text-muted-foreground text-sm",children:f("pre",{children:`capabilityId: calendar-create-event
provider:
  type: google-calendar
  operation: createEvent

inputs:
  summary:
    type: string
  description:
    type: string
    optional: true
  startTime:
    type: timestamp
  endTime:
    type: timestamp
  attendees:
    type: array
    items:
      type: string

outputs:
  eventId:
    type: string
  htmlLink:
    type: string`})})]}),z("div",{className:"flex items-center gap-4 pt-4",children:[f(D,{href:"/docs/integrations/gmail",className:"btn-ghost",children:"Previous: Gmail API"}),z(D,{href:"/docs/integrations/openai",className:"btn-primary",children:["Next: OpenAI ",f(J,{size:16})]})]})]})}export{T as IntegrationsGoogleCalendarPage};
