"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxDevRuntime = require("react/jsx-dev-runtime");
const reactClient = require("@contember/react-client");
const ui = require("@contember/ui");
const reactDevbar = require("@contember/react-devbar");
const lucideReact = require("lucide-react");
const ApiPanel = () => {
  const apiBaseUrl = reactClient.useApiBaseUrl();
  const projectSlug = reactClient.useProjectSlug();
  const stageSlug = reactClient.useStageSlug();
  const sessionToken = reactClient.useSessionTokenWithMeta();
  if (!projectSlug || !stageSlug) {
    return null;
  }
  return /* @__PURE__ */ jsxDevRuntime.jsxDEV(reactDevbar.DevPanel, { icon: /* @__PURE__ */ jsxDevRuntime.jsxDEV(lucideReact.GlobeIcon, {}, void 0, false, {
    fileName: "/__w/interface/interface/packages/admin/src/components/Dev/ApiPanel.tsx",
    lineNumber: 22,
    columnNumber: 19
  }, void 0), heading: "API URLs", children: /* @__PURE__ */ jsxDevRuntime.jsxDEV(ui.Table, { children: [
    /* @__PURE__ */ jsxDevRuntime.jsxDEV(ui.TableRow, { children: [
      /* @__PURE__ */ jsxDevRuntime.jsxDEV(ui.TableHeaderCell, { children: "Project" }, void 0, false, {
        fileName: "/__w/interface/interface/packages/admin/src/components/Dev/ApiPanel.tsx",
        lineNumber: 25,
        columnNumber: 6
      }, void 0),
      /* @__PURE__ */ jsxDevRuntime.jsxDEV(ui.TableCell, { children: projectSlug }, void 0, false, {
        fileName: "/__w/interface/interface/packages/admin/src/components/Dev/ApiPanel.tsx",
        lineNumber: 26,
        columnNumber: 6
      }, void 0)
    ] }, void 0, true, {
      fileName: "/__w/interface/interface/packages/admin/src/components/Dev/ApiPanel.tsx",
      lineNumber: 24,
      columnNumber: 5
    }, void 0),
    /* @__PURE__ */ jsxDevRuntime.jsxDEV(ui.TableRow, { children: [
      /* @__PURE__ */ jsxDevRuntime.jsxDEV(ui.TableHeaderCell, { children: "Base URL" }, void 0, false, {
        fileName: "/__w/interface/interface/packages/admin/src/components/Dev/ApiPanel.tsx",
        lineNumber: 29,
        columnNumber: 6
      }, void 0),
      /* @__PURE__ */ jsxDevRuntime.jsxDEV(ui.TableCell, { children: apiBaseUrl }, void 0, false, {
        fileName: "/__w/interface/interface/packages/admin/src/components/Dev/ApiPanel.tsx",
        lineNumber: 30,
        columnNumber: 6
      }, void 0)
    ] }, void 0, true, {
      fileName: "/__w/interface/interface/packages/admin/src/components/Dev/ApiPanel.tsx",
      lineNumber: 28,
      columnNumber: 5
    }, void 0),
    /* @__PURE__ */ jsxDevRuntime.jsxDEV(ui.TableRow, { children: [
      /* @__PURE__ */ jsxDevRuntime.jsxDEV(ui.TableHeaderCell, { children: "Content API URL" }, void 0, false, {
        fileName: "/__w/interface/interface/packages/admin/src/components/Dev/ApiPanel.tsx",
        lineNumber: 33,
        columnNumber: 6
      }, void 0),
      /* @__PURE__ */ jsxDevRuntime.jsxDEV(ui.TableCell, { children: [
        apiBaseUrl,
        reactClient.formatContentApiRelativeUrl(projectSlug, stageSlug)
      ] }, void 0, true, {
        fileName: "/__w/interface/interface/packages/admin/src/components/Dev/ApiPanel.tsx",
        lineNumber: 34,
        columnNumber: 6
      }, void 0)
    ] }, void 0, true, {
      fileName: "/__w/interface/interface/packages/admin/src/components/Dev/ApiPanel.tsx",
      lineNumber: 32,
      columnNumber: 5
    }, void 0),
    /* @__PURE__ */ jsxDevRuntime.jsxDEV(ui.TableRow, { children: [
      /* @__PURE__ */ jsxDevRuntime.jsxDEV(ui.TableHeaderCell, { children: "Tenant API URL" }, void 0, false, {
        fileName: "/__w/interface/interface/packages/admin/src/components/Dev/ApiPanel.tsx",
        lineNumber: 38,
        columnNumber: 6
      }, void 0),
      /* @__PURE__ */ jsxDevRuntime.jsxDEV(ui.TableCell, { children: [
        apiBaseUrl,
        reactClient.tenantApiRelativeUrl
      ] }, void 0, true, {
        fileName: "/__w/interface/interface/packages/admin/src/components/Dev/ApiPanel.tsx",
        lineNumber: 39,
        columnNumber: 6
      }, void 0)
    ] }, void 0, true, {
      fileName: "/__w/interface/interface/packages/admin/src/components/Dev/ApiPanel.tsx",
      lineNumber: 37,
      columnNumber: 5
    }, void 0),
    /* @__PURE__ */ jsxDevRuntime.jsxDEV(ui.TableRow, { children: [
      /* @__PURE__ */ jsxDevRuntime.jsxDEV(ui.TableHeaderCell, { children: "Token" }, void 0, false, {
        fileName: "/__w/interface/interface/packages/admin/src/components/Dev/ApiPanel.tsx",
        lineNumber: 42,
        columnNumber: 6
      }, void 0),
      /* @__PURE__ */ jsxDevRuntime.jsxDEV(ui.TableCell, { children: /* @__PURE__ */ jsxDevRuntime.jsxDEV("span", { children: sessionToken.token }, void 0, false, {
        fileName: "/__w/interface/interface/packages/admin/src/components/Dev/ApiPanel.tsx",
        lineNumber: 44,
        columnNumber: 7
      }, void 0) }, void 0, false, {
        fileName: "/__w/interface/interface/packages/admin/src/components/Dev/ApiPanel.tsx",
        lineNumber: 43,
        columnNumber: 6
      }, void 0)
    ] }, void 0, true, {
      fileName: "/__w/interface/interface/packages/admin/src/components/Dev/ApiPanel.tsx",
      lineNumber: 41,
      columnNumber: 5
    }, void 0)
  ] }, void 0, true, {
    fileName: "/__w/interface/interface/packages/admin/src/components/Dev/ApiPanel.tsx",
    lineNumber: 23,
    columnNumber: 4
  }, void 0) }, void 0, false, {
    fileName: "/__w/interface/interface/packages/admin/src/components/Dev/ApiPanel.tsx",
    lineNumber: 22,
    columnNumber: 3
  }, void 0);
};
exports.ApiPanel = ApiPanel;
//# sourceMappingURL=ApiPanel.cjs.map
