"use client";
'use strict';

var chunkCLTNCBSP_js = require('../chunk-CLTNCBSP.js');
var chunk6E2YH67A_js = require('../chunk-6E2YH67A.js');
var chunkUZIICTIY_js = require('../chunk-UZIICTIY.js');
var chunkP4RVGMZL_js = require('../chunk-P4RVGMZL.js');
var chunkA2RIX2RK_js = require('../chunk-A2RIX2RK.js');
var chunkIVKFXPLO_js = require('../chunk-IVKFXPLO.js');
var chunkCRBGZA6Y_js = require('../chunk-CRBGZA6Y.js');
var chunkT4IYOKHR_js = require('../chunk-T4IYOKHR.js');
var chunkZDXEGSCF_js = require('../chunk-ZDXEGSCF.js');
var chunkQGLGQXJE_js = require('../chunk-QGLGQXJE.js');
var chunkRFUSH7WD_js = require('../chunk-RFUSH7WD.js');
var chunkDQIEVLA3_js = require('../chunk-DQIEVLA3.js');
require('../chunk-R6GEJBFC.js');
var chunkWJENX6KB_js = require('../chunk-WJENX6KB.js');
var chunkVY52Y5GC_js = require('../chunk-VY52Y5GC.js');
var chunk6PBTB5ZX_js = require('../chunk-6PBTB5ZX.js');
require('../chunk-U6VFS3RD.js');
require('../chunk-55H6WZQP.js');
require('../chunk-DJDZIRM6.js');
require('../chunk-7AM2SXEF.js');
var chunkMT66VKLS_js = require('../chunk-MT66VKLS.js');
var chunkYXN2K77G_js = require('../chunk-YXN2K77G.js');
var chunkSY4MUT5V_js = require('../chunk-SY4MUT5V.js');
require('../chunk-2OZZH2IO.js');
require('../chunk-EZQ2D47U.js');
var chunkBHOT22QL_js = require('../chunk-BHOT22QL.js');
require('../chunk-UZ3CMNUJ.js');
var chunkS7KHTUHA_js = require('../chunk-S7KHTUHA.js');
require('../chunk-72SWXOD5.js');
var jsxRuntime = require('react/jsx-runtime');
var react = require('react');
var outline = require('@heroicons/react/24/outline');
var i18n = require('@datatechsolutions/shared-domain/i18n');

function SessionSwitcher({
  organizations,
  users,
  organizationId,
  userEmail,
  onOrganizationChange,
  onUserChange
}) {
  const tSession = chunkYXN2K77G_js.useTranslations("platform.session");
  const tCommon = chunkYXN2K77G_js.useTranslations("common");
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "session-switcher", children: [
    /* @__PURE__ */ jsxRuntime.jsx(
      chunkMT66VKLS_js.Select,
      {
        value: organizationId,
        "aria-label": tSession("organization"),
        onChange: (event) => {
          onOrganizationChange(event.target.value);
        },
        options: organizations,
        placeholder: tSession("organization")
      }
    ),
    /* @__PURE__ */ jsxRuntime.jsx(
      chunkMT66VKLS_js.Select,
      {
        value: userEmail,
        "aria-label": tSession("user"),
        onChange: (event) => {
          onUserChange(event.target.value);
        },
        options: users,
        placeholder: tSession("user")
      }
    ),
    /* @__PURE__ */ jsxRuntime.jsx(chunkBHOT22QL_js.Button, { outline: true, onClick: () => globalThis.location.reload(), children: tCommon("refresh") })
  ] });
}
function PlatformDockContainer({
  actor,
  navigationItems,
  dashboardPath = "/dashboard",
  signOutPath = "/login"
}) {
  const pathname = chunkS7KHTUHA_js.usePathname();
  const router = chunkS7KHTUHA_js.useRouter();
  const { logout } = chunkMT66VKLS_js.useAuth();
  const tCommon = chunkYXN2K77G_js.useTranslations("common");
  const {
    dockPosition,
    dockAutoHide,
    dockEnabled
  } = chunkMT66VKLS_js.usePlatformPreferences();
  const [profileOpen, setProfileOpen] = react.useState(false);
  const filteredItems = react.useMemo(
    () => chunkMT66VKLS_js.filterByPermission(navigationItems, actor?.permissions ?? []),
    [navigationItems, actor]
  );
  const handleNavigate = react.useCallback((href) => router.push(href), [router]);
  const handleSignOut = react.useCallback(() => {
    void logout(signOutPath);
  }, [logout, signOutPath]);
  if (pathname === dashboardPath) return null;
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
    /* @__PURE__ */ jsxRuntime.jsx(
      chunkMT66VKLS_js.AppNavigation,
      {
        items: filteredItems,
        pathname,
        dockEnabled,
        dockPosition,
        dockAutoHide,
        showLaunchpad: false,
        onNavigate: handleNavigate,
        onOpenProfile: () => setProfileOpen(true),
        onSignOut: handleSignOut,
        labels: {
          home: tCommon("home"),
          profile: tCommon("profile"),
          signOut: tCommon("signOut")
        }
      }
    ),
    /* @__PURE__ */ jsxRuntime.jsx(
      chunkMT66VKLS_js.GlassModal,
      {
        open: profileOpen,
        onClose: () => setProfileOpen(false),
        title: tCommon("profile"),
        children: /* @__PURE__ */ jsxRuntime.jsx("div", {})
      }
    )
  ] });
}
function useLocaleSwitcher() {
  const locale = chunkYXN2K77G_js.useLocale();
  const { client } = chunkMT66VKLS_js.useAuth();
  const setLocale = react.useCallback(
    (newLocale) => {
      const resolved = i18n.applyClientLocale(newLocale);
      client.updateLocale(resolved);
    },
    [client]
  );
  return {
    locale,
    shortCode: i18n.LOCALE_TO_SHORT[locale] || "pt",
    setLocale,
    locales: i18n.SUPPORTED_LOCALES
  };
}
var LOCALE_OPTIONS = i18n.SUPPORTED_LOCALES.map((code) => ({
  value: code,
  label: i18n.LANGUAGE_META[code].nativeName
}));
function PreferencesControls() {
  const { locale, setLocale } = useLocaleSwitcher();
  const { theme, setTheme } = chunkMT66VKLS_js.usePlatformPreferences();
  const toggleTheme = () => setTheme(theme === "dark" ? "light" : "dark");
  const t = chunkYXN2K77G_js.useTranslations("platform.preferences");
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "preferences-controls", children: [
    /* @__PURE__ */ jsxRuntime.jsx(
      chunkMT66VKLS_js.Select,
      {
        value: locale,
        options: LOCALE_OPTIONS,
        onChange: (event) => setLocale(event.target.value)
      }
    ),
    /* @__PURE__ */ jsxRuntime.jsx(
      chunkBHOT22QL_js.IconButton,
      {
        label: t("theme"),
        icon: theme === "dark" ? /* @__PURE__ */ jsxRuntime.jsx(outline.SunIcon, {}) : /* @__PURE__ */ jsxRuntime.jsx(outline.MoonIcon, {}),
        onClick: toggleTheme,
        variant: "outline"
      }
    )
  ] });
}

// src/platform/windsock-mappers.ts
function mapAuthOrg(raw) {
  return {
    id: raw.id,
    name: raw.displayName ?? raw.name,
    currency: "BRL",
    country: "BR"
  };
}
function mapAdminUser(row, normalizeRole) {
  return {
    id: row.id,
    email: row.email,
    name: row.name ?? row.email,
    role: normalizeRole(row.role),
    active: row.status === "active"
  };
}
var ORG_ROLE_MAP = {
  owner: "owner",
  admin: "admin",
  manager: "admin",
  analyst: "member",
  operator: "member",
  viewer: "viewer",
  finance: "member",
  sales: "member",
  support: "member",
  member: "member"
};
function mapRoleToOrgRole(role) {
  return ORG_ROLE_MAP[role] ?? "member";
}
function UsersSettingsSection({ normalizeRole }) {
  const t = chunkYXN2K77G_js.useTranslations("platform.users");
  const { currentOrganizationId } = chunkWJENX6KB_js.usePlatformState();
  const { error: notifyError, success: notifySuccess } = chunkMT66VKLS_js.useNotifications();
  const [users, setUsers] = react.useState([]);
  const [loading, setLoading] = react.useState(true);
  const reload = async () => {
    try {
      const result = await chunk6PBTB5ZX_js.listUsers({ organizationId: currentOrganizationId });
      setUsers(result.items.map((row) => mapAdminUser(row, normalizeRole)));
    } catch (error) {
      notifyError(error.message);
    } finally {
      setLoading(false);
    }
  };
  react.useEffect(() => {
    void reload();
  }, [currentOrganizationId]);
  return /* @__PURE__ */ jsxRuntime.jsx(
    chunkIVKFXPLO_js.UsersPageView,
    {
      labels: {
        title: t("title"),
        subtitle: t("subtitle"),
        create: t("create"),
        list: t("list"),
        add: t("add"),
        statusActive: t("statusActive"),
        statusInactive: t("statusInactive"),
        name: t("name"),
        email: t("email"),
        role: t("role"),
        status: t("status"),
        save: t("save"),
        userNamePlaceholder: t("userNamePlaceholder"),
        userEmailPlaceholder: t("userEmailPlaceholder")
      },
      users: loading ? [] : users,
      onCreateUser: async ({ name, email, role }) => {
        try {
          await chunk6PBTB5ZX_js.createUser({ name, email, role, organizationId: currentOrganizationId });
          notifySuccess(t("add"));
          await reload();
        } catch (error) {
          notifyError(error.message);
        }
      },
      onUpdateRole: () => {
        notifyError(t("reassignInRolesTab"));
      }
    }
  );
}
function RolesSettingsSection({ roleDefinitions, roleOptions, normalizeRole }) {
  const t = chunkYXN2K77G_js.useTranslations("platform.roles");
  const { currentOrganizationId } = chunkWJENX6KB_js.usePlatformState();
  const { error: notifyError, success: notifySuccess } = chunkMT66VKLS_js.useNotifications();
  const [users, setUsers] = react.useState([]);
  react.useEffect(() => {
    chunk6PBTB5ZX_js.listUsers({ organizationId: currentOrganizationId }).then((result) => setUsers(result.items.map((row) => mapAdminUser(row, normalizeRole)))).catch((error) => notifyError(error.message));
  }, [currentOrganizationId, notifyError, normalizeRole]);
  return /* @__PURE__ */ jsxRuntime.jsx(
    chunkIVKFXPLO_js.RolesPageView,
    {
      roleDefinitions,
      roleOptions,
      labels: {
        title: t("title"),
        subtitle: t("subtitle"),
        definitions: t("definitions"),
        assign: t("assign"),
        current: t("current"),
        permissionsEnabled: t("permissionsEnabled"),
        apply: t("apply"),
        role: t("role"),
        description: t("description"),
        user: t("user"),
        email: t("email"),
        userEmail: t("userEmail")
      },
      users,
      onAssignRole: async ({ email, role }) => {
        const target = users.find((user) => user.email.toLowerCase() === email.toLowerCase());
        if (!target) {
          notifyError(t("userNotFound"));
          return;
        }
        try {
          await chunk6PBTB5ZX_js.addOrganizationMember(currentOrganizationId, target.id, mapRoleToOrgRole(role));
          notifySuccess(t("apply"));
        } catch (error) {
          notifyError(error.message);
        }
      }
    }
  );
}
function AiWorkflowGenerateModal({ open, onClose, onGenerated }) {
  const { error: notifyError, success: notifySuccess } = chunkMT66VKLS_js.useNotifications();
  const t = chunkYXN2K77G_js.useTranslations("agents.workflow");
  const [connections, setConnections] = react.useState([]);
  const [connectionId, setConnectionId] = react.useState("");
  const [prompt, setPrompt] = react.useState("");
  const [busy, setBusy] = react.useState(false);
  react.useEffect(() => {
    if (!open) return;
    chunkSY4MUT5V_js.listModelProviderConnections().then((items) => {
      setConnections(items);
      const firstEnabled = items.find((item) => item.enabled) ?? items[0];
      setConnectionId(firstEnabled?.id ?? "");
    }).catch((error) => notifyError(error.message));
  }, [open, notifyError]);
  async function handleSubmit() {
    if (!connectionId) {
      notifyError(t("aiErrorMissingConnection"));
      return;
    }
    if (prompt.trim().length === 0) {
      notifyError(t("aiErrorMissingPrompt"));
      return;
    }
    setBusy(true);
    try {
      const generation = await chunkSY4MUT5V_js.aiGenerateWorkflow({ prompt: prompt.trim(), connectionId });
      const workflow = await chunkSY4MUT5V_js.createWorkflow({ name: deriveWorkflowName(prompt) });
      const saved = await chunkSY4MUT5V_js.saveWorkflowDraft(workflow.id, generation.graph, { name: workflow.name });
      if (!generation.ok) {
        notifyError(
          t("aiWarnValidation"),
          [...generation.structuralIssues, ...generation.nodeIssues.map((issue) => `${issue.nodeId}: ${issue.message}`)].join("\n")
        );
      } else {
        notifySuccess(t("aiSuccessGenerated"));
      }
      onGenerated(saved);
      onClose();
      setPrompt("");
    } catch (error) {
      notifyError(error.message);
    } finally {
      setBusy(false);
    }
  }
  return /* @__PURE__ */ jsxRuntime.jsx(
    chunkMT66VKLS_js.GlassModal,
    {
      open,
      onClose,
      title: t("aiTitle"),
      subtitle: t("aiSubtitle"),
      onSubmit: handleSubmit,
      showFormFooter: true,
      submitLabel: busy ? t("aiGenerateBusy") : t("aiGenerate"),
      cancelLabel: t("aiCancel"),
      submitDisabled: busy,
      isLoading: busy,
      children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
        /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "block text-sm font-medium text-slate-700 dark:text-slate-200", children: [
          t("aiConnection"),
          /* @__PURE__ */ jsxRuntime.jsxs(
            "select",
            {
              className: "mt-1 w-full rounded-lg border border-slate-200 bg-white px-3 py-2 text-sm text-slate-900 dark:border-white/10 dark:bg-white/5 dark:text-slate-100",
              value: connectionId,
              onChange: (event) => setConnectionId(event.target.value),
              disabled: busy,
              children: [
                /* @__PURE__ */ jsxRuntime.jsx("option", { value: "", children: t("aiConnectionPlaceholder") }),
                connections.map((connection) => /* @__PURE__ */ jsxRuntime.jsxs("option", { value: connection.id, children: [
                  connection.name,
                  " ",
                  connection.enabled ? "" : t("aiDisabledSuffix")
                ] }, connection.id))
              ]
            }
          )
        ] }),
        /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "block text-sm font-medium text-slate-700 dark:text-slate-200", children: [
          t("aiPromptLabel"),
          /* @__PURE__ */ jsxRuntime.jsx(
            chunkMT66VKLS_js.Textarea,
            {
              rows: 6,
              className: "mt-1 w-full",
              placeholder: t("aiPromptPlaceholder"),
              value: prompt,
              onChange: (event) => setPrompt(event.target.value),
              disabled: busy
            }
          )
        ] }),
        /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-slate-500 dark:text-slate-400", children: t("aiFooterNote") })
      ] })
    }
  );
}
function deriveWorkflowName(prompt) {
  const trimmed = prompt.trim().replace(/\s+/g, " ");
  if (trimmed.length <= 60) return trimmed;
  return `${trimmed.slice(0, 57)}\u2026`;
}
function WorkflowTemplateModal({ open, onClose, onCreated }) {
  const tWorkflow = chunkYXN2K77G_js.useTranslations("agents.workflow");
  const tCommon = chunkYXN2K77G_js.useTranslations("common");
  const { error: notifyError, success: notifySuccess } = chunkMT66VKLS_js.useNotifications();
  const [templates, setTemplates] = react.useState([]);
  const [connections, setConnections] = react.useState([]);
  const [templateId, setTemplateId] = react.useState("");
  const [connectionId, setConnectionId] = react.useState("");
  const [name, setName] = react.useState("");
  const [isLoading, setIsLoading] = react.useState(false);
  const [isSubmitting, setIsSubmitting] = react.useState(false);
  react.useEffect(() => {
    if (!open) return;
    let cancelled = false;
    setIsLoading(true);
    setTemplateId("");
    setConnectionId("");
    setName("");
    (async () => {
      try {
        const [tpls, conns] = await Promise.all([
          chunkSY4MUT5V_js.listWorkflowTemplates(),
          chunkSY4MUT5V_js.listModelProviderConnections()
        ]);
        if (cancelled) return;
        setTemplates(tpls);
        setConnections(conns);
        if (tpls.length > 0) {
          const firstTemplate = tpls[0];
          if (firstTemplate) setTemplateId(firstTemplate.id);
        }
        if (conns.length > 0) {
          const firstConnection = conns[0];
          if (firstConnection) setConnectionId(firstConnection.id);
        }
      } catch (error) {
        if (!cancelled) notifyError(error.message);
      } finally {
        if (!cancelled) setIsLoading(false);
      }
    })();
    return () => {
      cancelled = true;
    };
  }, [open, notifyError]);
  const selectedTemplate = react.useMemo(
    () => templates.find((t) => t.id === templateId),
    [templates, templateId]
  );
  const canSubmit = !isLoading && !isSubmitting && templateId.length > 0 && connectionId.length > 0;
  const handleSubmit = react.useCallback(async () => {
    if (!canSubmit) return;
    setIsSubmitting(true);
    try {
      const created = await chunkSY4MUT5V_js.createWorkflowFromTemplate(templateId, {
        connectionId,
        name: name.trim().length > 0 ? name.trim() : void 0
      });
      notifySuccess(tWorkflow("templateCreatedSuccess"));
      onCreated(created);
      onClose();
    } catch (error) {
      notifyError(error.message);
    } finally {
      setIsSubmitting(false);
    }
  }, [canSubmit, templateId, connectionId, name, onCreated, onClose, notifySuccess, notifyError, tWorkflow]);
  return /* @__PURE__ */ jsxRuntime.jsx(
    chunkMT66VKLS_js.GlassModal,
    {
      open,
      onClose,
      title: tWorkflow("createFromTemplate"),
      subtitle: selectedTemplate?.description ?? tWorkflow("createFromTemplateSubtitle"),
      gradient: "from-indigo-500 to-purple-600",
      showFormFooter: true,
      onSubmit: (event) => {
        event.preventDefault();
        void handleSubmit();
      },
      isLoading: isSubmitting,
      submitDisabled: !canSubmit,
      submitLabel: tCommon("create"),
      cancelLabel: tCommon("cancel"),
      maxWidth: "lg",
      children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-4", children: isLoading ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "shimmer h-32 w-full rounded-xl" }) : templates.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-gray-500 dark:text-gray-400", children: tWorkflow("noTemplatesAvailable") }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
        /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "block", children: [
          /* @__PURE__ */ jsxRuntime.jsx("span", { className: "mb-1 block text-xs font-medium text-gray-700 dark:text-gray-300", children: tWorkflow("template") }),
          /* @__PURE__ */ jsxRuntime.jsx(
            "select",
            {
              className: "w-full rounded-lg border border-white/20 bg-white/70 px-3 py-2 text-sm text-gray-900 shadow-sm backdrop-blur dark:bg-gray-800/70 dark:text-gray-100",
              value: templateId,
              onChange: (event) => setTemplateId(event.target.value),
              children: templates.map((template) => /* @__PURE__ */ jsxRuntime.jsx("option", { value: template.id, children: template.name }, template.id))
            }
          )
        ] }),
        /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "block", children: [
          /* @__PURE__ */ jsxRuntime.jsx("span", { className: "mb-1 block text-xs font-medium text-gray-700 dark:text-gray-300", children: tWorkflow("llmConnection") }),
          connections.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "rounded-lg border border-amber-200 bg-amber-50 px-3 py-2 text-xs text-amber-800 dark:border-amber-500/30 dark:bg-amber-500/10 dark:text-amber-200", children: tWorkflow("noConnectionsHint") }) : /* @__PURE__ */ jsxRuntime.jsx(
            "select",
            {
              className: "w-full rounded-lg border border-white/20 bg-white/70 px-3 py-2 text-sm text-gray-900 shadow-sm backdrop-blur dark:bg-gray-800/70 dark:text-gray-100",
              value: connectionId,
              onChange: (event) => setConnectionId(event.target.value),
              children: connections.map((connection) => /* @__PURE__ */ jsxRuntime.jsxs("option", { value: connection.id, children: [
                connection.name,
                connection.providerSlug ? ` \xB7 ${connection.providerSlug}` : ""
              ] }, connection.id))
            }
          )
        ] }),
        /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "block", children: [
          /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "mb-1 block text-xs font-medium text-gray-700 dark:text-gray-300", children: [
            tWorkflow("workflowName"),
            /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "ml-1 text-[10px] text-gray-400", children: [
              "(",
              tCommon("optional"),
              ")"
            ] })
          ] }),
          /* @__PURE__ */ jsxRuntime.jsx(
            "input",
            {
              type: "text",
              value: name,
              placeholder: selectedTemplate?.name ?? "",
              onChange: (event) => setName(event.target.value),
              className: "w-full rounded-lg border border-white/20 bg-white/70 px-3 py-2 text-sm text-gray-900 shadow-sm backdrop-blur dark:bg-gray-800/70 dark:text-gray-100"
            }
          )
        ] }),
        selectedTemplate && selectedTemplate.tags.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap gap-1.5", children: selectedTemplate.tags.map((tag) => /* @__PURE__ */ jsxRuntime.jsx(chunkBHOT22QL_js.Badge, { color: "indigo", size: "xs", children: tag }, tag)) }) : null
      ] }) })
    }
  );
}

Object.defineProperty(exports, "WorkflowCanvasShell", {
  enumerable: true,
  get: function () { return chunkCLTNCBSP_js.WorkflowCanvasShell; }
});
Object.defineProperty(exports, "AdminOrganizationForm", {
  enumerable: true,
  get: function () { return chunk6E2YH67A_js.AdminOrganizationForm; }
});
Object.defineProperty(exports, "AdminOrganizationList", {
  enumerable: true,
  get: function () { return chunk6E2YH67A_js.AdminOrganizationList; }
});
Object.defineProperty(exports, "AdminPermissionList", {
  enumerable: true,
  get: function () { return chunk6E2YH67A_js.AdminPermissionList; }
});
Object.defineProperty(exports, "AdminUserForm", {
  enumerable: true,
  get: function () { return chunk6E2YH67A_js.AdminUserForm; }
});
Object.defineProperty(exports, "AdminUserList", {
  enumerable: true,
  get: function () { return chunk6E2YH67A_js.AdminUserList; }
});
Object.defineProperty(exports, "ConsentScreen", {
  enumerable: true,
  get: function () { return chunkUZIICTIY_js.ConsentScreen; }
});
Object.defineProperty(exports, "ForgotPassword", {
  enumerable: true,
  get: function () { return chunkUZIICTIY_js.ForgotPassword; }
});
Object.defineProperty(exports, "MfaChallenge", {
  enumerable: true,
  get: function () { return chunkUZIICTIY_js.MfaChallenge; }
});
Object.defineProperty(exports, "PasswordlessSignIn", {
  enumerable: true,
  get: function () { return chunkUZIICTIY_js.PasswordlessSignIn; }
});
Object.defineProperty(exports, "ResetPassword", {
  enumerable: true,
  get: function () { return chunkUZIICTIY_js.ResetPassword; }
});
Object.defineProperty(exports, "SignIn", {
  enumerable: true,
  get: function () { return chunkUZIICTIY_js.SignIn; }
});
Object.defineProperty(exports, "SignUp", {
  enumerable: true,
  get: function () { return chunkUZIICTIY_js.SignUp; }
});
Object.defineProperty(exports, "SsoConnectorList", {
  enumerable: true,
  get: function () { return chunkUZIICTIY_js.SsoConnectorList; }
});
Object.defineProperty(exports, "SsoEmailForm", {
  enumerable: true,
  get: function () { return chunkUZIICTIY_js.SsoEmailForm; }
});
Object.defineProperty(exports, "UserButton", {
  enumerable: true,
  get: function () { return chunkUZIICTIY_js.UserButton; }
});
Object.defineProperty(exports, "VerifyEmail", {
  enumerable: true,
  get: function () { return chunkUZIICTIY_js.VerifyEmail; }
});
Object.defineProperty(exports, "UpgradePrompt", {
  enumerable: true,
  get: function () { return chunkP4RVGMZL_js.UpgradePrompt; }
});
Object.defineProperty(exports, "ImpersonationBanner", {
  enumerable: true,
  get: function () { return chunkA2RIX2RK_js.ImpersonationBanner; }
});
Object.defineProperty(exports, "WorkflowWorkspace", {
  enumerable: true,
  get: function () { return chunkIVKFXPLO_js.WorkflowWorkspace; }
});
Object.defineProperty(exports, "PlatformSettings", {
  enumerable: true,
  get: function () { return chunkCRBGZA6Y_js.PlatformSettings; }
});
Object.defineProperty(exports, "AdminOrganizationDetail", {
  enumerable: true,
  get: function () { return chunkT4IYOKHR_js.AdminOrganizationDetail; }
});
Object.defineProperty(exports, "LinkedAccountsTabContent", {
  enumerable: true,
  get: function () { return chunkZDXEGSCF_js.LinkedAccountsTabContent; }
});
Object.defineProperty(exports, "MfaManage", {
  enumerable: true,
  get: function () { return chunkZDXEGSCF_js.MfaManage; }
});
Object.defineProperty(exports, "MfaSetup", {
  enumerable: true,
  get: function () { return chunkZDXEGSCF_js.MfaSetup; }
});
Object.defineProperty(exports, "ProfileTabContent", {
  enumerable: true,
  get: function () { return chunkZDXEGSCF_js.ProfileTabContent; }
});
Object.defineProperty(exports, "SecurityTabContent", {
  enumerable: true,
  get: function () { return chunkZDXEGSCF_js.SecurityTabContent; }
});
Object.defineProperty(exports, "SessionsTabContent", {
  enumerable: true,
  get: function () { return chunkZDXEGSCF_js.SessionsTabContent; }
});
Object.defineProperty(exports, "UserProfile", {
  enumerable: true,
  get: function () { return chunkZDXEGSCF_js.UserProfile; }
});
Object.defineProperty(exports, "AuthLayout", {
  enumerable: true,
  get: function () { return chunkQGLGQXJE_js.AuthLayout; }
});
Object.defineProperty(exports, "BackupCodeGrid", {
  enumerable: true,
  get: function () { return chunkQGLGQXJE_js.BackupCodeGrid; }
});
Object.defineProperty(exports, "OtpInput", {
  enumerable: true,
  get: function () { return chunkQGLGQXJE_js.OtpInput; }
});
Object.defineProperty(exports, "PasswordStrengthMeter", {
  enumerable: true,
  get: function () { return chunkQGLGQXJE_js.PasswordStrengthMeter; }
});
Object.defineProperty(exports, "SocialLoginButtons", {
  enumerable: true,
  get: function () { return chunkQGLGQXJE_js.SocialLoginButtons; }
});
Object.defineProperty(exports, "BillingPanel", {
  enumerable: true,
  get: function () { return chunkRFUSH7WD_js.BillingPanel; }
});
Object.defineProperty(exports, "AgentsWorkspace", {
  enumerable: true,
  get: function () { return chunkDQIEVLA3_js.AgentsWorkspace; }
});
Object.defineProperty(exports, "applyWorkflowExecutionEventToStore", {
  enumerable: true,
  get: function () { return chunkDQIEVLA3_js.applyWorkflowExecutionEventToStore; }
});
Object.defineProperty(exports, "resetWorkflowRunPresentation", {
  enumerable: true,
  get: function () { return chunkDQIEVLA3_js.resetWorkflowRunPresentation; }
});
Object.defineProperty(exports, "useRunEvents", {
  enumerable: true,
  get: function () { return chunkDQIEVLA3_js.useRunEvents; }
});
Object.defineProperty(exports, "useWorkflowExecution", {
  enumerable: true,
  get: function () { return chunkDQIEVLA3_js.useWorkflowExecution; }
});
Object.defineProperty(exports, "useWorkflowRunPresentation", {
  enumerable: true,
  get: function () { return chunkDQIEVLA3_js.useWorkflowRunPresentation; }
});
Object.defineProperty(exports, "PlatformAppShell", {
  enumerable: true,
  get: function () { return chunkWJENX6KB_js.PlatformAppShell; }
});
Object.defineProperty(exports, "PlatformStateProvider", {
  enumerable: true,
  get: function () { return chunkWJENX6KB_js.PlatformStateProvider; }
});
Object.defineProperty(exports, "usePlatformState", {
  enumerable: true,
  get: function () { return chunkWJENX6KB_js.usePlatformState; }
});
Object.defineProperty(exports, "createPlatformRbac", {
  enumerable: true,
  get: function () { return chunkVY52Y5GC_js.createPlatformRbac; }
});
Object.defineProperty(exports, "addOrganizationDomain", {
  enumerable: true,
  get: function () { return chunk6PBTB5ZX_js.addOrganizationDomain; }
});
Object.defineProperty(exports, "addOrganizationMember", {
  enumerable: true,
  get: function () { return chunk6PBTB5ZX_js.addOrganizationMember; }
});
Object.defineProperty(exports, "createOrganization", {
  enumerable: true,
  get: function () { return chunk6PBTB5ZX_js.createOrganization; }
});
Object.defineProperty(exports, "createOrganizationInvitation", {
  enumerable: true,
  get: function () { return chunk6PBTB5ZX_js.createOrganizationInvitation; }
});
Object.defineProperty(exports, "createPermission", {
  enumerable: true,
  get: function () { return chunk6PBTB5ZX_js.createPermission; }
});
Object.defineProperty(exports, "createSecret", {
  enumerable: true,
  get: function () { return chunk6PBTB5ZX_js.createSecret; }
});
Object.defineProperty(exports, "createUser", {
  enumerable: true,
  get: function () { return chunk6PBTB5ZX_js.createUser; }
});
Object.defineProperty(exports, "deleteOrganization", {
  enumerable: true,
  get: function () { return chunk6PBTB5ZX_js.deleteOrganization; }
});
Object.defineProperty(exports, "deletePermission", {
  enumerable: true,
  get: function () { return chunk6PBTB5ZX_js.deletePermission; }
});
Object.defineProperty(exports, "deleteUser", {
  enumerable: true,
  get: function () { return chunk6PBTB5ZX_js.deleteUser; }
});
Object.defineProperty(exports, "disableSecret", {
  enumerable: true,
  get: function () { return chunk6PBTB5ZX_js.disableSecret; }
});
Object.defineProperty(exports, "getSecret", {
  enumerable: true,
  get: function () { return chunk6PBTB5ZX_js.getSecret; }
});
Object.defineProperty(exports, "getUserPermissions", {
  enumerable: true,
  get: function () { return chunk6PBTB5ZX_js.getUserPermissions; }
});
Object.defineProperty(exports, "listOrganizationDomains", {
  enumerable: true,
  get: function () { return chunk6PBTB5ZX_js.listOrganizationDomains; }
});
Object.defineProperty(exports, "listOrganizationInvitations", {
  enumerable: true,
  get: function () { return chunk6PBTB5ZX_js.listOrganizationInvitations; }
});
Object.defineProperty(exports, "listOrganizationMembers", {
  enumerable: true,
  get: function () { return chunk6PBTB5ZX_js.listOrganizationMembers; }
});
Object.defineProperty(exports, "listOrganizations", {
  enumerable: true,
  get: function () { return chunk6PBTB5ZX_js.listOrganizations; }
});
Object.defineProperty(exports, "listPermissions", {
  enumerable: true,
  get: function () { return chunk6PBTB5ZX_js.listPermissions; }
});
Object.defineProperty(exports, "listSecrets", {
  enumerable: true,
  get: function () { return chunk6PBTB5ZX_js.listSecrets; }
});
Object.defineProperty(exports, "listUsers", {
  enumerable: true,
  get: function () { return chunk6PBTB5ZX_js.listUsers; }
});
Object.defineProperty(exports, "removeOrganizationMember", {
  enumerable: true,
  get: function () { return chunk6PBTB5ZX_js.removeOrganizationMember; }
});
Object.defineProperty(exports, "resetUserPassword", {
  enumerable: true,
  get: function () { return chunk6PBTB5ZX_js.resetUserPassword; }
});
Object.defineProperty(exports, "rotateSecret", {
  enumerable: true,
  get: function () { return chunk6PBTB5ZX_js.rotateSecret; }
});
Object.defineProperty(exports, "setUserPermissions", {
  enumerable: true,
  get: function () { return chunk6PBTB5ZX_js.setUserPermissions; }
});
Object.defineProperty(exports, "setWindsockAdminClient", {
  enumerable: true,
  get: function () { return chunk6PBTB5ZX_js.setWindsockAdminClient; }
});
Object.defineProperty(exports, "updateOrganization", {
  enumerable: true,
  get: function () { return chunk6PBTB5ZX_js.updateOrganization; }
});
Object.defineProperty(exports, "updatePermission", {
  enumerable: true,
  get: function () { return chunk6PBTB5ZX_js.updatePermission; }
});
Object.defineProperty(exports, "updateUser", {
  enumerable: true,
  get: function () { return chunk6PBTB5ZX_js.updateUser; }
});
Object.defineProperty(exports, "verifyOrganizationDomain", {
  enumerable: true,
  get: function () { return chunk6PBTB5ZX_js.verifyOrganizationDomain; }
});
exports.AiWorkflowGenerateModal = AiWorkflowGenerateModal;
exports.ORG_ROLE_MAP = ORG_ROLE_MAP;
exports.PlatformDockContainer = PlatformDockContainer;
exports.PreferencesControls = PreferencesControls;
exports.RolesSettingsSection = RolesSettingsSection;
exports.SessionSwitcher = SessionSwitcher;
exports.UsersSettingsSection = UsersSettingsSection;
exports.WorkflowTemplateModal = WorkflowTemplateModal;
exports.mapAdminUser = mapAdminUser;
exports.mapAuthOrg = mapAuthOrg;
exports.mapRoleToOrgRole = mapRoleToOrgRole;
exports.useLocaleSwitcher = useLocaleSwitcher;
//# sourceMappingURL=index.js.map
//# sourceMappingURL=index.js.map