1import{aN as p,aO as x,j as e,aP as f,B as h,aQ as j,aR as i,q as C}from"./index-DGo-vssZ.js";import{u as v,r as d,R as w}from"./vendor-Qgthw7N1.js";import{C as y}from"./CalendarView-B7MNTFos.js";import"./checkbox-i5ygXx_L.js";import"./index-COtV6X2D.js";import"./CalendarDateRangeFilter-oz7Dy0YO.js";import"./differenceInMonths-Cb0HIyJb.js";import"./index-B1ky1Hhc.js";import"./timer-DEA0yRXX.js";import"./RepsClassificationSection-CqSsZHO1.js";import"./circle-x--5-vDMIU.js";import"./calendar-days-COgXMVIl.js";import"./filter-D8zDqrI6.js";function z(){var r,n;const[,a]=v(),t=p(),[s,o]=d.useState(!1),[k,N]=d.useState(!1),{googleCalendarStatusQuery:c,microsoftCalendarStatusQuery:l}=x(),m=((r=c.data)==null?void 0:r.connected)||!1,b=((n=l.data)==null?void 0:n.connected)||!1,u=m||b,g=()=>{a("/dashboard"),i("/dashboard")};return t?e.jsx("div",{className:"min-h-screen bg-gray-50 px-4 pt-2 dark:bg-background",children:e.jsxs("div",{className:"mx-auto flex min-h-screen w-full max-w-5xl flex-col gap-3",children:[e.jsx(f,{title:"Calendar",subtitle:u?"View and convert calendar activity":"Connect a calendar to find activity",onBack:g,rightAction:e.jsx(h,{type:"button",variant:"outline",size:"icon",onClick:()=>{a("/dashboard/sync-settings"),i("/dashboard/sync-settings")},className:"h-11 w-11 rounded-full bg-white dark:bg-card","aria-label":"Manage calendar connections",children:e.jsx(j,{className:"h-5 w-5"})})}),e.jsx("section",{className:"min-h-[620px] flex-1 rounded-2xl border border-gray-100 bg-white p-3 shadow-sm dark:border-border dark:bg-card",children:e.jsx(y,{})})]})}):e.jsx(w,{to:"/dashboard"})}function A({label:a,connected:t,isLoading:s,onClick:o}){return e.jsxs("button",{type:"button",onClick:o,disabled:s,className:"flex min-h-14 items-center gap-3 rounded-2xl border border-gray-100 bg-white p-3 text-left shadow-sm transition hover:bg-muted/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 active:scale-[0.99] disabled:cursor-default disabled:hover:bg-white dark:border-border dark:bg-card dark:disabled:hover:bg-card",children:[e.jsx("span",{className:"flex h-10 w-10 items-center justify-center rounded-xl bg-primary/10 text-primary",children:e.jsx(C,{className:"h-5 w-5"})}),e.jsxs("span",{className:"min-w-0 flex-1",children:[e.jsx("span",{className:"block text-sm font-bold text-foreground",children:a}),e.jsx("span",{className:"block text-xs font-medium text-muted-foreground",children:s?"Checking connection...":t?"Connected â tap to manage":"Tap to connect"})]})]})}export{A as ProviderStatusCard,z 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.