1import{j as s,y as c,aH as f,aY as p,bH as h,aI as _,aJ as j,Z as S,$ as y,a0 as C,a1 as b,_ as k}from"./mermaid-GHXKKRXX-Bi30Dfl1.js";const u="https://api.sqyre.ai".replace(/\/$/,"")||"https://api.sqyre.ai",i="sqyre_developer_access_token",m="sqyre_developer_refresh_token",N="sqyre_access_token";function d(){return localStorage.getItem(i)}function g(){try{const e=localStorage.getItem("sqyre.auth.session")||sessionStorage.getItem("sqyre.auth.session");if(e){const t=JSON.parse(e);if(t?.access_token)return String(t.access_token)}}catch{}return localStorage.getItem(N)||localStorage.getItem("access_token")||localStorage.getItem("sb-access-token")}function v(e){localStorage.setItem(i,e.access_token),e.refresh_token&&localStorage.setItem(m,e.refresh_token)}function w(){localStorage.removeItem(i),localStorage.removeItem(m)}function x(){return!!d()}async function A(e,t={}){const r=new Headers(t.headers||{});!r.has("content-type")&&t.body&&r.set("content-type","application/json");const a=t.realm||(t.auth===!1?"none":"developer");if(a==="developer"){const o=d();o&&r.set("authorization",`Bearer ${o}`)}else if(a==="operating"){const o=g();o&&r.set("authorization",`Bearer ${o}`)}const n=await fetch(`${u}${e}`,{...t,headers:r});let l=null;try{l=await n.json()}catch{l=null}return{ok:n.ok,status:n.status,json:l}}const E=Object.freeze(Object.defineProperty({__proto__:null,API_BASE:u,clearConnectSession:w,devApi:A,getConnectToken:d,getOperatingToken:g,isConnectAuthed:x,setConnectSession:v},Symbol.toStringTag,{value:"Module"}));function H({title:e,description:t,actions:r}){return s.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",children:[s.jsxs("div",{className:"flex min-w-0 flex-col gap-1.5",children:[s.jsx("h1",{className:"text-2xl font-semibold tracking-tight text-foreground md:text-[1.65rem]",children:e}),t?s.jsx("p",{className:"max-w-2xl text-sm text-muted-foreground",children:t}):null]}),r?s.jsx("div",{className:"flex shrink-0 flex-wrap items-center gap-2",children:r}):null]})}function I({title:e,description:t,children:r,className:a,footer:n}){return s.jsxs(S,{className:c("overflow-hidden",a),children:[e||t?s.jsxs(y,{className:"gap-1",children:[e?s.jsx(C,{className:"text-base font-semibold",children:e}):null,t?s.jsx(b,{children:t}):null]}):null,s.jsx(k,{className:c("flex flex-col gap-4 text-sm text-muted-foreground",!e&&!t&&"pt-5"),children:r}),n]})}function O({title:e,children:t,eyebrow:r,description:a}){return s.jsx(I,{title:e,description:a||r,children:s.jsx("div",{className:"flex flex-col gap-3 text-[15px] leading-relaxed text-muted-foreground [&_code]:rounded-md [&_code]:bg-muted [&_code]:px-1.5 [&_code]:py-0.5 [&_code]:text-[12px] [&_code]:text-foreground [&_pre]:rounded-xl [&_pre]:border [&_pre]:border-border [&_pre]:bg-[#111111] [&_pre]:p-4 [&_pre]:text-[12px] [&_pre]:leading-relaxed [&_pre]:text-white/90",children:t})})}function P({text:e,tone:t="ok"}){if(e==null||e==="")return null;const r=typeof e=="string"?e:typeof e=="object"&&e&&"message"in e?String(e.message||JSON.stringify(e)):JSON.stringify(e);return s.jsxs(f,{variant:t==="err"?"destructive":"default",children:[t==="err"?s.jsx(p,{}):s.jsx(h,{}),s.jsx(_,{children:t==="err"?"Something went wrong":"Done"}),s.jsx(j,{children:r})]})}function $({children:e}){return x()?s.jsx(s.Fragment,{children:e}):null}function T({className:e}){return s.jsxs("span",{className:c("inline-flex items-center gap-2.5",e),children:[s.jsx("img",{src:"/logo.png",alt:"Sqyre",className:"size-7 rounded-lg"}),s.jsxs("span",{className:"flex items-baseline gap-2",children:[s.jsx("span",{className:"text-[15px] font-semibold tracking-tight text-foreground",children:"Sqyre"}),s.jsx("span",{className:"rounded-md bg-muted px-1.5 py-0.5 text-[11px] font-medium text-muted-foreground",children:"Connect"})]})]})}export{$ as A,T as C,P as F,H as P,O as a,u as b,w as c,A as d,E as e,x as i,v as s};
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.