@stigmer/server-slim 3.27.1 → 3.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/console/404.html +1 -1
- package/console/__next.__PAGE__.txt +2 -2
- package/console/__next._full.txt +14 -14
- package/console/__next._head.txt +4 -4
- package/console/__next._index.txt +9 -9
- package/console/__next._tree.txt +1 -1
- package/console/_next/static/chunks/01t5bq-0-a_i1.js +1 -0
- package/console/_next/static/chunks/{0ecjlb.bunt.1.js → 02-y8.0mij3oo.js} +1 -1
- package/console/_next/static/chunks/{0heeg7tjg-ble.js → 02w~ksp-5svw1.js} +1 -1
- package/console/_next/static/chunks/{0.qu8zg6yocro.js → 09ofg.rr49784.js} +1 -1
- package/console/_next/static/chunks/0a0wj-awx7rg..js +1 -0
- package/console/_next/static/chunks/0dk4r7ihxt.wk.js +1 -0
- package/console/_next/static/chunks/0it9gag-6iroy.js +1 -0
- package/console/_next/static/chunks/0k.09v5itlmei.js +1 -0
- package/console/_next/static/chunks/0m94l3p58m6us.js +1 -0
- package/console/_next/static/chunks/107k.7sfwlnvt.js +1 -0
- package/console/_next/static/chunks/{00r~itj4ekq5y.js → 16wp_e52o23tz.js} +1 -1
- package/console/_not-found/__next._full.txt +14 -14
- package/console/_not-found/__next._head.txt +4 -4
- package/console/_not-found/__next._index.txt +9 -9
- package/console/_not-found/__next._not-found.__PAGE__.txt +3 -3
- package/console/_not-found/__next._not-found.txt +3 -3
- package/console/_not-found/__next._tree.txt +1 -1
- package/console/_not-found.html +1 -1
- package/console/_not-found.txt +14 -14
- package/console/auth/callback/__next._full.txt +16 -16
- package/console/auth/callback/__next._head.txt +4 -4
- package/console/auth/callback/__next._index.txt +9 -9
- package/console/auth/callback/__next._tree.txt +1 -1
- package/console/auth/callback/__next.auth.callback.__PAGE__.txt +4 -4
- package/console/auth/callback/__next.auth.callback.txt +3 -3
- package/console/auth/callback/__next.auth.txt +3 -3
- package/console/auth/callback.html +1 -1
- package/console/auth/callback.txt +16 -16
- package/console/auth/github/callback/__next._full.txt +16 -16
- package/console/auth/github/callback/__next._head.txt +4 -4
- package/console/auth/github/callback/__next._index.txt +9 -9
- package/console/auth/github/callback/__next._tree.txt +1 -1
- package/console/auth/github/callback/__next.auth.github.callback.__PAGE__.txt +4 -4
- package/console/auth/github/callback/__next.auth.github.callback.txt +3 -3
- package/console/auth/github/callback/__next.auth.github.txt +3 -3
- package/console/auth/github/callback/__next.auth.txt +3 -3
- package/console/auth/github/callback.html +1 -1
- package/console/auth/github/callback.txt +16 -16
- package/console/auth/oauth/callback/__next._full.txt +16 -16
- package/console/auth/oauth/callback/__next._head.txt +4 -4
- package/console/auth/oauth/callback/__next._index.txt +9 -9
- package/console/auth/oauth/callback/__next._tree.txt +1 -1
- package/console/auth/oauth/callback/__next.auth.oauth.callback.__PAGE__.txt +4 -4
- package/console/auth/oauth/callback/__next.auth.oauth.callback.txt +3 -3
- package/console/auth/oauth/callback/__next.auth.oauth.txt +3 -3
- package/console/auth/oauth/callback/__next.auth.txt +3 -3
- package/console/auth/oauth/callback.html +1 -1
- package/console/auth/oauth/callback.txt +16 -16
- package/console/chat/__placeholder__/__placeholder__/__next._full.txt +15 -15
- package/console/chat/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/chat/__placeholder__/__placeholder__/__next._index.txt +9 -9
- package/console/chat/__placeholder__/__placeholder__/__next._tree.txt +1 -1
- package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.$d$slug.__PAGE__.txt +3 -3
- package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.$d$slug.txt +3 -3
- package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.txt +3 -3
- package/console/chat/__placeholder__/__placeholder__/__next.chat.txt +3 -3
- package/console/chat/__placeholder__/__placeholder__.html +1 -1
- package/console/chat/__placeholder__/__placeholder__.txt +15 -15
- package/console/conversations/__next._full.txt +15 -15
- package/console/conversations/__next._head.txt +4 -4
- package/console/conversations/__next._index.txt +9 -9
- package/console/conversations/__next._tree.txt +1 -1
- package/console/conversations/__next.conversations.__PAGE__.txt +3 -3
- package/console/conversations/__next.conversations.txt +3 -3
- package/console/conversations/__placeholder__/__placeholder__/__next._full.txt +15 -15
- package/console/conversations/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/conversations/__placeholder__/__placeholder__/__next._index.txt +9 -9
- package/console/conversations/__placeholder__/__placeholder__/__next._tree.txt +1 -1
- package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.$d$key.__PAGE__.txt +3 -3
- package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.$d$key.txt +3 -3
- package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.txt +3 -3
- package/console/conversations/__placeholder__/__placeholder__/__next.conversations.txt +3 -3
- package/console/conversations/__placeholder__/__placeholder__.html +1 -1
- package/console/conversations/__placeholder__/__placeholder__.txt +15 -15
- package/console/conversations.html +1 -1
- package/console/conversations.txt +15 -15
- package/console/dashboard/__next._full.txt +15 -15
- package/console/dashboard/__next._head.txt +4 -4
- package/console/dashboard/__next._index.txt +9 -9
- package/console/dashboard/__next._tree.txt +1 -1
- package/console/dashboard/__next.dashboard.__PAGE__.txt +3 -3
- package/console/dashboard/__next.dashboard.txt +3 -3
- package/console/dashboard.html +1 -1
- package/console/dashboard.txt +15 -15
- package/console/executions/__placeholder__/__next._full.txt +14 -14
- package/console/executions/__placeholder__/__next._head.txt +4 -4
- package/console/executions/__placeholder__/__next._index.txt +9 -9
- package/console/executions/__placeholder__/__next._tree.txt +1 -1
- package/console/executions/__placeholder__/__next.executions.$d$id.__PAGE__.txt +2 -2
- package/console/executions/__placeholder__/__next.executions.$d$id.txt +3 -3
- package/console/executions/__placeholder__/__next.executions.txt +3 -3
- package/console/executions/__placeholder__.html +1 -1
- package/console/executions/__placeholder__.txt +14 -14
- package/console/index.html +1 -1
- package/console/index.txt +14 -14
- package/console/invite/__placeholder__/__next._full.txt +15 -15
- package/console/invite/__placeholder__/__next._head.txt +4 -4
- package/console/invite/__placeholder__/__next._index.txt +9 -9
- package/console/invite/__placeholder__/__next._tree.txt +1 -1
- package/console/invite/__placeholder__/__next.invite.$d$token.__PAGE__.txt +3 -3
- package/console/invite/__placeholder__/__next.invite.$d$token.txt +3 -3
- package/console/invite/__placeholder__/__next.invite.txt +3 -3
- package/console/invite/__placeholder__.html +1 -1
- package/console/invite/__placeholder__.txt +15 -15
- package/console/library/__next._full.txt +17 -17
- package/console/library/__next._head.txt +4 -4
- package/console/library/__next._index.txt +9 -9
- package/console/library/__next._tree.txt +1 -1
- package/console/library/__next.library.__PAGE__.txt +3 -3
- package/console/library/__next.library.txt +5 -5
- package/console/library/agents/__next._full.txt +17 -17
- package/console/library/agents/__next._head.txt +4 -4
- package/console/library/agents/__next._index.txt +9 -9
- package/console/library/agents/__next._tree.txt +1 -1
- package/console/library/agents/__next.library.agents.__PAGE__.txt +3 -3
- package/console/library/agents/__next.library.agents.txt +3 -3
- package/console/library/agents/__next.library.txt +5 -5
- package/console/library/agents/__placeholder__/__placeholder__/__next._full.txt +17 -17
- package/console/library/agents/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/agents/__placeholder__/__placeholder__/__next._index.txt +9 -9
- package/console/library/agents/__placeholder__/__placeholder__/__next._tree.txt +1 -1
- package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.$d$slug.__PAGE__.txt +3 -3
- package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.$d$slug.txt +3 -3
- package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.txt +3 -3
- package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.txt +3 -3
- package/console/library/agents/__placeholder__/__placeholder__/__next.library.txt +5 -5
- package/console/library/agents/__placeholder__/__placeholder__.html +1 -1
- package/console/library/agents/__placeholder__/__placeholder__.txt +17 -17
- package/console/library/agents/new/__next._full.txt +18 -18
- package/console/library/agents/new/__next._head.txt +4 -4
- package/console/library/agents/new/__next._index.txt +9 -9
- package/console/library/agents/new/__next._tree.txt +1 -1
- package/console/library/agents/new/__next.library.agents.new.__PAGE__.txt +4 -4
- package/console/library/agents/new/__next.library.agents.new.txt +3 -3
- package/console/library/agents/new/__next.library.agents.txt +3 -3
- package/console/library/agents/new/__next.library.txt +5 -5
- package/console/library/agents/new.html +1 -1
- package/console/library/agents/new.txt +18 -18
- package/console/library/agents.html +1 -1
- package/console/library/agents.txt +17 -17
- package/console/library/mcp-servers/__next._full.txt +17 -17
- package/console/library/mcp-servers/__next._head.txt +4 -4
- package/console/library/mcp-servers/__next._index.txt +9 -9
- package/console/library/mcp-servers/__next._tree.txt +1 -1
- package/console/library/mcp-servers/__next.library.mcp-servers.__PAGE__.txt +3 -3
- package/console/library/mcp-servers/__next.library.mcp-servers.txt +3 -3
- package/console/library/mcp-servers/__next.library.txt +5 -5
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._full.txt +17 -17
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._index.txt +9 -9
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._tree.txt +1 -1
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.$d$slug.__PAGE__.txt +3 -3
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.$d$slug.txt +3 -3
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.txt +3 -3
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.txt +3 -3
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.txt +5 -5
- package/console/library/mcp-servers/__placeholder__/__placeholder__.html +1 -1
- package/console/library/mcp-servers/__placeholder__/__placeholder__.txt +17 -17
- package/console/library/mcp-servers/new/__next._full.txt +18 -18
- package/console/library/mcp-servers/new/__next._head.txt +4 -4
- package/console/library/mcp-servers/new/__next._index.txt +9 -9
- package/console/library/mcp-servers/new/__next._tree.txt +1 -1
- package/console/library/mcp-servers/new/__next.library.mcp-servers.new.__PAGE__.txt +4 -4
- package/console/library/mcp-servers/new/__next.library.mcp-servers.new.txt +3 -3
- package/console/library/mcp-servers/new/__next.library.mcp-servers.txt +3 -3
- package/console/library/mcp-servers/new/__next.library.txt +5 -5
- package/console/library/mcp-servers/new.html +1 -1
- package/console/library/mcp-servers/new.txt +18 -18
- package/console/library/mcp-servers.html +1 -1
- package/console/library/mcp-servers.txt +17 -17
- package/console/library/plugins/__next._full.txt +17 -17
- package/console/library/plugins/__next._head.txt +4 -4
- package/console/library/plugins/__next._index.txt +9 -9
- package/console/library/plugins/__next._tree.txt +1 -1
- package/console/library/plugins/__next.library.plugins.__PAGE__.txt +3 -3
- package/console/library/plugins/__next.library.plugins.txt +3 -3
- package/console/library/plugins/__next.library.txt +5 -5
- package/console/library/plugins/__placeholder__/__placeholder__/__next._full.txt +17 -17
- package/console/library/plugins/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/plugins/__placeholder__/__placeholder__/__next._index.txt +9 -9
- package/console/library/plugins/__placeholder__/__placeholder__/__next._tree.txt +1 -1
- package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.$d$org.$d$slug.__PAGE__.txt +3 -3
- package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.$d$org.$d$slug.txt +3 -3
- package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.$d$org.txt +3 -3
- package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.txt +3 -3
- package/console/library/plugins/__placeholder__/__placeholder__/__next.library.txt +5 -5
- package/console/library/plugins/__placeholder__/__placeholder__.html +1 -1
- package/console/library/plugins/__placeholder__/__placeholder__.txt +17 -17
- package/console/library/plugins/upload/__next._full.txt +18 -18
- package/console/library/plugins/upload/__next._head.txt +4 -4
- package/console/library/plugins/upload/__next._index.txt +9 -9
- package/console/library/plugins/upload/__next._tree.txt +1 -1
- package/console/library/plugins/upload/__next.library.plugins.txt +3 -3
- package/console/library/plugins/upload/__next.library.plugins.upload.__PAGE__.txt +4 -4
- package/console/library/plugins/upload/__next.library.plugins.upload.txt +3 -3
- package/console/library/plugins/upload/__next.library.txt +5 -5
- package/console/library/plugins/upload.html +1 -1
- package/console/library/plugins/upload.txt +18 -18
- package/console/library/plugins.html +1 -1
- package/console/library/plugins.txt +17 -17
- package/console/library/schedules/__next._full.txt +17 -17
- package/console/library/schedules/__next._head.txt +4 -4
- package/console/library/schedules/__next._index.txt +9 -9
- package/console/library/schedules/__next._tree.txt +1 -1
- package/console/library/schedules/__next.library.schedules.__PAGE__.txt +3 -3
- package/console/library/schedules/__next.library.schedules.txt +3 -3
- package/console/library/schedules/__next.library.txt +5 -5
- package/console/library/schedules/__placeholder__/__placeholder__/__next._full.txt +17 -17
- package/console/library/schedules/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/schedules/__placeholder__/__placeholder__/__next._index.txt +9 -9
- package/console/library/schedules/__placeholder__/__placeholder__/__next._tree.txt +1 -1
- package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.$d$slug.__PAGE__.txt +3 -3
- package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.$d$slug.txt +3 -3
- package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.txt +3 -3
- package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.txt +3 -3
- package/console/library/schedules/__placeholder__/__placeholder__/__next.library.txt +5 -5
- package/console/library/schedules/__placeholder__/__placeholder__.html +1 -1
- package/console/library/schedules/__placeholder__/__placeholder__.txt +17 -17
- package/console/library/schedules/new/__next._full.txt +18 -18
- package/console/library/schedules/new/__next._head.txt +4 -4
- package/console/library/schedules/new/__next._index.txt +9 -9
- package/console/library/schedules/new/__next._tree.txt +1 -1
- package/console/library/schedules/new/__next.library.schedules.new.__PAGE__.txt +4 -4
- package/console/library/schedules/new/__next.library.schedules.new.txt +3 -3
- package/console/library/schedules/new/__next.library.schedules.txt +3 -3
- package/console/library/schedules/new/__next.library.txt +5 -5
- package/console/library/schedules/new.html +1 -1
- package/console/library/schedules/new.txt +18 -18
- package/console/library/schedules.html +1 -1
- package/console/library/schedules.txt +17 -17
- package/console/library/skills/__next._full.txt +17 -17
- package/console/library/skills/__next._head.txt +4 -4
- package/console/library/skills/__next._index.txt +9 -9
- package/console/library/skills/__next._tree.txt +1 -1
- package/console/library/skills/__next.library.skills.__PAGE__.txt +3 -3
- package/console/library/skills/__next.library.skills.txt +3 -3
- package/console/library/skills/__next.library.txt +5 -5
- package/console/library/skills/__placeholder__/__placeholder__/__next._full.txt +17 -17
- package/console/library/skills/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/skills/__placeholder__/__placeholder__/__next._index.txt +9 -9
- package/console/library/skills/__placeholder__/__placeholder__/__next._tree.txt +1 -1
- package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.$d$slug.__PAGE__.txt +3 -3
- package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.$d$slug.txt +3 -3
- package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.txt +3 -3
- package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.txt +3 -3
- package/console/library/skills/__placeholder__/__placeholder__/__next.library.txt +5 -5
- package/console/library/skills/__placeholder__/__placeholder__.html +1 -1
- package/console/library/skills/__placeholder__/__placeholder__.txt +17 -17
- package/console/library/skills/new/__next._full.txt +18 -18
- package/console/library/skills/new/__next._head.txt +4 -4
- package/console/library/skills/new/__next._index.txt +9 -9
- package/console/library/skills/new/__next._tree.txt +1 -1
- package/console/library/skills/new/__next.library.skills.new.__PAGE__.txt +4 -4
- package/console/library/skills/new/__next.library.skills.new.txt +3 -3
- package/console/library/skills/new/__next.library.skills.txt +3 -3
- package/console/library/skills/new/__next.library.txt +5 -5
- package/console/library/skills/new.html +1 -1
- package/console/library/skills/new.txt +18 -18
- package/console/library/skills.html +1 -1
- package/console/library/skills.txt +17 -17
- package/console/library/workflows/__next._full.txt +17 -17
- package/console/library/workflows/__next._head.txt +4 -4
- package/console/library/workflows/__next._index.txt +9 -9
- package/console/library/workflows/__next._tree.txt +1 -1
- package/console/library/workflows/__next.library.txt +5 -5
- package/console/library/workflows/__next.library.workflows.__PAGE__.txt +3 -3
- package/console/library/workflows/__next.library.workflows.txt +3 -3
- package/console/library/workflows/__placeholder__/__placeholder__/__next._full.txt +17 -17
- package/console/library/workflows/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/workflows/__placeholder__/__placeholder__/__next._index.txt +9 -9
- package/console/library/workflows/__placeholder__/__placeholder__/__next._tree.txt +1 -1
- package/console/library/workflows/__placeholder__/__placeholder__/__next.library.txt +5 -5
- package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.$d$slug.__PAGE__.txt +3 -3
- package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.$d$slug.txt +3 -3
- package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.txt +3 -3
- package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.txt +3 -3
- package/console/library/workflows/__placeholder__/__placeholder__.html +1 -1
- package/console/library/workflows/__placeholder__/__placeholder__.txt +17 -17
- package/console/library/workflows/executions/__next._full.txt +17 -17
- package/console/library/workflows/executions/__next._head.txt +4 -4
- package/console/library/workflows/executions/__next._index.txt +9 -9
- package/console/library/workflows/executions/__next._tree.txt +1 -1
- package/console/library/workflows/executions/__next.library.txt +5 -5
- package/console/library/workflows/executions/__next.library.workflows.executions.__PAGE__.txt +3 -3
- package/console/library/workflows/executions/__next.library.workflows.executions.txt +3 -3
- package/console/library/workflows/executions/__next.library.workflows.txt +3 -3
- package/console/library/workflows/executions.html +1 -1
- package/console/library/workflows/executions.txt +17 -17
- package/console/library/workflows/new/__next._full.txt +18 -18
- package/console/library/workflows/new/__next._head.txt +4 -4
- package/console/library/workflows/new/__next._index.txt +9 -9
- package/console/library/workflows/new/__next._tree.txt +1 -1
- package/console/library/workflows/new/__next.library.txt +5 -5
- package/console/library/workflows/new/__next.library.workflows.new.__PAGE__.txt +4 -4
- package/console/library/workflows/new/__next.library.workflows.new.txt +3 -3
- package/console/library/workflows/new/__next.library.workflows.txt +3 -3
- package/console/library/workflows/new.html +1 -1
- package/console/library/workflows/new.txt +18 -18
- package/console/library/workflows.html +1 -1
- package/console/library/workflows.txt +17 -17
- package/console/library.html +1 -1
- package/console/library.txt +17 -17
- package/console/login/__next._full.txt +16 -16
- package/console/login/__next._head.txt +4 -4
- package/console/login/__next._index.txt +9 -9
- package/console/login/__next._tree.txt +1 -1
- package/console/login/__next.login.__PAGE__.txt +4 -4
- package/console/login/__next.login.txt +3 -3
- package/console/login.html +1 -1
- package/console/login.txt +16 -16
- package/console/marketplace/__next._full.txt +15 -15
- package/console/marketplace/__next._head.txt +4 -4
- package/console/marketplace/__next._index.txt +9 -9
- package/console/marketplace/__next._tree.txt +1 -1
- package/console/marketplace/__next.marketplace.__PAGE__.txt +3 -3
- package/console/marketplace/__next.marketplace.txt +3 -3
- package/console/marketplace.html +1 -1
- package/console/marketplace.txt +15 -15
- package/console/oauth/slack/callback/__next._full.txt +16 -16
- package/console/oauth/slack/callback/__next._head.txt +4 -4
- package/console/oauth/slack/callback/__next._index.txt +9 -9
- package/console/oauth/slack/callback/__next._tree.txt +1 -1
- package/console/oauth/slack/callback/__next.oauth.slack.callback.__PAGE__.txt +4 -4
- package/console/oauth/slack/callback/__next.oauth.slack.callback.txt +3 -3
- package/console/oauth/slack/callback/__next.oauth.slack.txt +3 -3
- package/console/oauth/slack/callback/__next.oauth.txt +3 -3
- package/console/oauth/slack/callback.html +1 -1
- package/console/oauth/slack/callback.txt +16 -16
- package/console/sessions/__placeholder__/__next._full.txt +14 -14
- package/console/sessions/__placeholder__/__next._head.txt +4 -4
- package/console/sessions/__placeholder__/__next._index.txt +9 -9
- package/console/sessions/__placeholder__/__next._tree.txt +1 -1
- package/console/sessions/__placeholder__/__next.sessions.$d$id.__PAGE__.txt +2 -2
- package/console/sessions/__placeholder__/__next.sessions.$d$id.txt +3 -3
- package/console/sessions/__placeholder__/__next.sessions.txt +3 -3
- package/console/sessions/__placeholder__.html +1 -1
- package/console/sessions/__placeholder__.txt +14 -14
- package/console/settings/__next._full.txt +18 -18
- package/console/settings/__next._head.txt +4 -4
- package/console/settings/__next._index.txt +9 -9
- package/console/settings/__next._tree.txt +1 -1
- package/console/settings/__next.settings.__PAGE__.txt +4 -4
- package/console/settings/__next.settings.txt +5 -5
- package/console/settings/account-preferences/__next._full.txt +17 -17
- package/console/settings/account-preferences/__next._head.txt +4 -4
- package/console/settings/account-preferences/__next._index.txt +9 -9
- package/console/settings/account-preferences/__next._tree.txt +1 -1
- package/console/settings/account-preferences/__next.settings.account-preferences.__PAGE__.txt +3 -3
- package/console/settings/account-preferences/__next.settings.account-preferences.txt +3 -3
- package/console/settings/account-preferences/__next.settings.txt +5 -5
- package/console/settings/account-preferences.html +1 -1
- package/console/settings/account-preferences.txt +17 -17
- package/console/settings/api-keys/__next._full.txt +17 -17
- package/console/settings/api-keys/__next._head.txt +4 -4
- package/console/settings/api-keys/__next._index.txt +9 -9
- package/console/settings/api-keys/__next._tree.txt +1 -1
- package/console/settings/api-keys/__next.settings.api-keys.__PAGE__.txt +3 -3
- package/console/settings/api-keys/__next.settings.api-keys.txt +3 -3
- package/console/settings/api-keys/__next.settings.txt +5 -5
- package/console/settings/api-keys.html +1 -1
- package/console/settings/api-keys.txt +17 -17
- package/console/settings/billing/__next._full.txt +18 -18
- package/console/settings/billing/__next._head.txt +4 -4
- package/console/settings/billing/__next._index.txt +9 -9
- package/console/settings/billing/__next._tree.txt +1 -1
- package/console/settings/billing/__next.settings.billing.__PAGE__.txt +4 -4
- package/console/settings/billing/__next.settings.billing.txt +3 -3
- package/console/settings/billing/__next.settings.txt +5 -5
- package/console/settings/billing.html +1 -1
- package/console/settings/billing.txt +18 -18
- package/console/settings/channel-apps/__next._full.txt +17 -17
- package/console/settings/channel-apps/__next._head.txt +4 -4
- package/console/settings/channel-apps/__next._index.txt +9 -9
- package/console/settings/channel-apps/__next._tree.txt +1 -1
- package/console/settings/channel-apps/__next.settings.channel-apps.__PAGE__.txt +3 -3
- package/console/settings/channel-apps/__next.settings.channel-apps.txt +3 -3
- package/console/settings/channel-apps/__next.settings.txt +5 -5
- package/console/settings/channel-apps.html +1 -1
- package/console/settings/channel-apps.txt +17 -17
- package/console/settings/cursor-accounts/__next._full.txt +18 -18
- package/console/settings/cursor-accounts/__next._head.txt +4 -4
- package/console/settings/cursor-accounts/__next._index.txt +9 -9
- package/console/settings/cursor-accounts/__next._tree.txt +1 -1
- package/console/settings/cursor-accounts/__next.settings.cursor-accounts.__PAGE__.txt +4 -4
- package/console/settings/cursor-accounts/__next.settings.cursor-accounts.txt +3 -3
- package/console/settings/cursor-accounts/__next.settings.txt +5 -5
- package/console/settings/cursor-accounts.html +1 -1
- package/console/settings/cursor-accounts.txt +18 -18
- package/console/settings/environments/__next._full.txt +17 -17
- package/console/settings/environments/__next._head.txt +4 -4
- package/console/settings/environments/__next._index.txt +9 -9
- package/console/settings/environments/__next._tree.txt +1 -1
- package/console/settings/environments/__next.settings.environments.__PAGE__.txt +3 -3
- package/console/settings/environments/__next.settings.environments.txt +3 -3
- package/console/settings/environments/__next.settings.txt +5 -5
- package/console/settings/environments.html +1 -1
- package/console/settings/environments.txt +17 -17
- package/console/settings/identity-providers/__next._full.txt +18 -18
- package/console/settings/identity-providers/__next._head.txt +4 -4
- package/console/settings/identity-providers/__next._index.txt +9 -9
- package/console/settings/identity-providers/__next._tree.txt +1 -1
- package/console/settings/identity-providers/__next.settings.identity-providers.__PAGE__.txt +3 -3
- package/console/settings/identity-providers/__next.settings.identity-providers.txt +3 -3
- package/console/settings/identity-providers/__next.settings.txt +5 -5
- package/console/settings/identity-providers.html +1 -1
- package/console/settings/identity-providers.txt +18 -18
- package/console/settings/invitations/__next._full.txt +18 -18
- package/console/settings/invitations/__next._head.txt +4 -4
- package/console/settings/invitations/__next._index.txt +9 -9
- package/console/settings/invitations/__next._tree.txt +1 -1
- package/console/settings/invitations/__next.settings.invitations.__PAGE__.txt +3 -3
- package/console/settings/invitations/__next.settings.invitations.txt +3 -3
- package/console/settings/invitations/__next.settings.txt +5 -5
- package/console/settings/invitations.html +1 -1
- package/console/settings/invitations.txt +18 -18
- package/console/settings/licenses/__next._full.txt +18 -18
- package/console/settings/licenses/__next._head.txt +4 -4
- package/console/settings/licenses/__next._index.txt +9 -9
- package/console/settings/licenses/__next._tree.txt +1 -1
- package/console/settings/licenses/__next.settings.licenses.__PAGE__.txt +4 -4
- package/console/settings/licenses/__next.settings.licenses.txt +3 -3
- package/console/settings/licenses/__next.settings.txt +5 -5
- package/console/settings/licenses.html +1 -1
- package/console/settings/licenses.txt +18 -18
- package/console/settings/members/__next._full.txt +17 -17
- package/console/settings/members/__next._head.txt +4 -4
- package/console/settings/members/__next._index.txt +9 -9
- package/console/settings/members/__next._tree.txt +1 -1
- package/console/settings/members/__next.settings.members.__PAGE__.txt +3 -3
- package/console/settings/members/__next.settings.members.txt +3 -3
- package/console/settings/members/__next.settings.txt +5 -5
- package/console/settings/members.html +1 -1
- package/console/settings/members.txt +17 -17
- package/console/settings/memory/__next._full.txt +17 -17
- package/console/settings/memory/__next._head.txt +4 -4
- package/console/settings/memory/__next._index.txt +9 -9
- package/console/settings/memory/__next._tree.txt +1 -1
- package/console/settings/memory/__next.settings.memory.__PAGE__.txt +3 -3
- package/console/settings/memory/__next.settings.memory.txt +3 -3
- package/console/settings/memory/__next.settings.txt +5 -5
- package/console/settings/memory.html +1 -1
- package/console/settings/memory.txt +17 -17
- package/console/settings/oauth-apps/__next._full.txt +17 -17
- package/console/settings/oauth-apps/__next._head.txt +4 -4
- package/console/settings/oauth-apps/__next._index.txt +9 -9
- package/console/settings/oauth-apps/__next._tree.txt +1 -1
- package/console/settings/oauth-apps/__next.settings.oauth-apps.__PAGE__.txt +3 -3
- package/console/settings/oauth-apps/__next.settings.oauth-apps.txt +3 -3
- package/console/settings/oauth-apps/__next.settings.txt +5 -5
- package/console/settings/oauth-apps.html +1 -1
- package/console/settings/oauth-apps.txt +17 -17
- package/console/settings/org-preferences/__next._full.txt +17 -17
- package/console/settings/org-preferences/__next._head.txt +4 -4
- package/console/settings/org-preferences/__next._index.txt +9 -9
- package/console/settings/org-preferences/__next._tree.txt +1 -1
- package/console/settings/org-preferences/__next.settings.org-preferences.__PAGE__.txt +3 -3
- package/console/settings/org-preferences/__next.settings.org-preferences.txt +3 -3
- package/console/settings/org-preferences/__next.settings.txt +5 -5
- package/console/settings/org-preferences.html +1 -1
- package/console/settings/org-preferences.txt +17 -17
- package/console/settings/org-profile/__next._full.txt +18 -18
- package/console/settings/org-profile/__next._head.txt +4 -4
- package/console/settings/org-profile/__next._index.txt +9 -9
- package/console/settings/org-profile/__next._tree.txt +1 -1
- package/console/settings/org-profile/__next.settings.org-profile.__PAGE__.txt +3 -3
- package/console/settings/org-profile/__next.settings.org-profile.txt +3 -3
- package/console/settings/org-profile/__next.settings.txt +5 -5
- package/console/settings/org-profile.html +1 -1
- package/console/settings/org-profile.txt +18 -18
- package/console/settings/platform-clients/__next._full.txt +17 -17
- package/console/settings/platform-clients/__next._head.txt +4 -4
- package/console/settings/platform-clients/__next._index.txt +9 -9
- package/console/settings/platform-clients/__next._tree.txt +1 -1
- package/console/settings/platform-clients/__next.settings.platform-clients.__PAGE__.txt +3 -3
- package/console/settings/platform-clients/__next.settings.platform-clients.txt +3 -3
- package/console/settings/platform-clients/__next.settings.txt +5 -5
- package/console/settings/platform-clients.html +1 -1
- package/console/settings/platform-clients.txt +17 -17
- package/console/settings/pricing-governance/__next._full.txt +18 -18
- package/console/settings/pricing-governance/__next._head.txt +4 -4
- package/console/settings/pricing-governance/__next._index.txt +9 -9
- package/console/settings/pricing-governance/__next._tree.txt +1 -1
- package/console/settings/pricing-governance/__next.settings.pricing-governance.__PAGE__.txt +4 -4
- package/console/settings/pricing-governance/__next.settings.pricing-governance.txt +3 -3
- package/console/settings/pricing-governance/__next.settings.txt +5 -5
- package/console/settings/pricing-governance.html +1 -1
- package/console/settings/pricing-governance.txt +18 -18
- package/console/settings/provider-standing/__next._full.txt +18 -18
- package/console/settings/provider-standing/__next._head.txt +4 -4
- package/console/settings/provider-standing/__next._index.txt +9 -9
- package/console/settings/provider-standing/__next._tree.txt +1 -1
- package/console/settings/provider-standing/__next.settings.provider-standing.__PAGE__.txt +4 -4
- package/console/settings/provider-standing/__next.settings.provider-standing.txt +3 -3
- package/console/settings/provider-standing/__next.settings.txt +5 -5
- package/console/settings/provider-standing.html +1 -1
- package/console/settings/provider-standing.txt +18 -18
- package/console/settings/teams/__next._full.txt +17 -17
- package/console/settings/teams/__next._head.txt +4 -4
- package/console/settings/teams/__next._index.txt +9 -9
- package/console/settings/teams/__next._tree.txt +1 -1
- package/console/settings/teams/__next.settings.teams.__PAGE__.txt +3 -3
- package/console/settings/teams/__next.settings.teams.txt +3 -3
- package/console/settings/teams/__next.settings.txt +5 -5
- package/console/settings/teams.html +1 -1
- package/console/settings/teams.txt +17 -17
- package/console/settings/usage/__next._full.txt +17 -17
- package/console/settings/usage/__next._head.txt +4 -4
- package/console/settings/usage/__next._index.txt +9 -9
- package/console/settings/usage/__next._tree.txt +1 -1
- package/console/settings/usage/__next.settings.txt +5 -5
- package/console/settings/usage/__next.settings.usage.__PAGE__.txt +3 -3
- package/console/settings/usage/__next.settings.usage.txt +3 -3
- package/console/settings/usage.html +1 -1
- package/console/settings/usage.txt +17 -17
- package/console/settings.html +1 -1
- package/console/settings.txt +18 -18
- package/console/workflows/__next._full.txt +14 -14
- package/console/workflows/__next._head.txt +4 -4
- package/console/workflows/__next._index.txt +9 -9
- package/console/workflows/__next._tree.txt +1 -1
- package/console/workflows/__next.workflows.__PAGE__.txt +2 -2
- package/console/workflows/__next.workflows.txt +3 -3
- package/console/workflows/__placeholder__/__placeholder__/__next._full.txt +15 -15
- package/console/workflows/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/workflows/__placeholder__/__placeholder__/__next._index.txt +9 -9
- package/console/workflows/__placeholder__/__placeholder__/__next._tree.txt +1 -1
- package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.$d$slug.__PAGE__.txt +3 -3
- package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.$d$slug.txt +3 -3
- package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.txt +3 -3
- package/console/workflows/__placeholder__/__placeholder__/__next.workflows.txt +3 -3
- package/console/workflows/__placeholder__/__placeholder__.html +1 -1
- package/console/workflows/__placeholder__/__placeholder__.txt +15 -15
- package/console/workflows/executions/__next._full.txt +14 -14
- package/console/workflows/executions/__next._head.txt +4 -4
- package/console/workflows/executions/__next._index.txt +9 -9
- package/console/workflows/executions/__next._tree.txt +1 -1
- package/console/workflows/executions/__next.workflows.executions.__PAGE__.txt +2 -2
- package/console/workflows/executions/__next.workflows.executions.txt +3 -3
- package/console/workflows/executions/__next.workflows.txt +3 -3
- package/console/workflows/executions/__placeholder__/__next._full.txt +15 -15
- package/console/workflows/executions/__placeholder__/__next._head.txt +4 -4
- package/console/workflows/executions/__placeholder__/__next._index.txt +9 -9
- package/console/workflows/executions/__placeholder__/__next._tree.txt +1 -1
- package/console/workflows/executions/__placeholder__/__next.workflows.executions.$d$id.__PAGE__.txt +3 -3
- package/console/workflows/executions/__placeholder__/__next.workflows.executions.$d$id.txt +3 -3
- package/console/workflows/executions/__placeholder__/__next.workflows.executions.txt +3 -3
- package/console/workflows/executions/__placeholder__/__next.workflows.txt +3 -3
- package/console/workflows/executions/__placeholder__.html +1 -1
- package/console/workflows/executions/__placeholder__.txt +15 -15
- package/console/workflows/executions.html +1 -1
- package/console/workflows/executions.txt +14 -14
- package/console/workflows.html +1 -1
- package/console/workflows.txt +14 -14
- package/main.js +64 -64
- package/package.json +6 -6
- package/console/_next/static/chunks/0-zcgxw8vt51~.js +0 -1
- package/console/_next/static/chunks/01_egbwaa3b.d.js +0 -1
- package/console/_next/static/chunks/05uzu4-_sp1yp.js +0 -1
- package/console/_next/static/chunks/0io-wgdji~5d0.js +0 -1
- package/console/_next/static/chunks/0rihzw4w1wzg3.js +0 -1
- package/console/_next/static/chunks/0xy23zns071f6.js +0 -1
- package/console/_next/static/chunks/189scd957oqn5.js +0 -1
- /package/console/_next/static/{nfAUAfaA7Rib4kBQkLcv6 → T9vVebjeEOLHQ-8r2xUtD}/_buildManifest.js +0 -0
- /package/console/_next/static/{nfAUAfaA7Rib4kBQkLcv6 → T9vVebjeEOLHQ-8r2xUtD}/_clientMiddlewareManifest.js +0 -0
- /package/console/_next/static/{nfAUAfaA7Rib4kBQkLcv6 → T9vVebjeEOLHQ-8r2xUtD}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,506213,e=>{"use strict";e.s([],593742),e.i(593742);var t,i=e.i(271645),n=e.i(66196),r=e.i(58509),s=e.i(933605),o=e.i(789633),l=e.i(926665),a=e.i(151665),c=e.i(206157);e.i(247167);var u=e.i(367805);let d=i.createContext(void 0);function g(e){let t=i.useContext(d);if(void 0===t&&!e)throw Error((0,u.default)(47));return t}var p=e.i(174080),b=e.i(598263),m=e.i(783921),A=e.i(566745),v=e.i(630628),h=e.i(294365),f=e.i(803404),S=e.i(600628),R=e.i(769375),W=e.i(607335);let y={...S.popupStoreSelectors,disabled:(0,m.createSelector)(e=>e.disabled),instantType:(0,m.createSelector)(e=>e.instantType),openMethod:(0,m.createSelector)(e=>e.openMethod),openChangeReason:(0,m.createSelector)(e=>e.openChangeReason),modal:(0,m.createSelector)(e=>e.modal),stickIfOpen:(0,m.createSelector)(e=>e.stickIfOpen),titleElementId:(0,m.createSelector)(e=>e.titleElementId),descriptionElementId:(0,m.createSelector)(e=>e.descriptionElementId),openOnHover:(0,m.createSelector)(e=>e.openOnHover),closeDelay:(0,m.createSelector)(e=>e.closeDelay),hasViewport:(0,m.createSelector)(e=>e.hasViewport)};class V extends b.ReactStore{constructor(e){const t={...(0,S.createInitialPopupStoreState)(),disabled:!1,modal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,nested:!1,openOnHover:!1,closeDelay:0,hasViewport:!1,...e};t.open&&e?.mounted===void 0&&(t.mounted=!0),super(t,{popupRef:i.createRef(),backdropRef:i.createRef(),internalBackdropRef:i.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:i.createRef(),beforeContentFocusGuardRef:i.createRef(),stickIfOpenTimeout:new A.Timeout,triggerElements:new R.PopupTriggerMap},y)}setOpen=(e,t)=>{let i=t.reason===f.REASONS.triggerHover,n=t.reason===f.REASONS.triggerPress&&0===t.event.detail,r=!e&&(t.reason===f.REASONS.escapeKey||null==t.reason);if(t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;let s={open:e,nativeEvent:t.event,reason:t.reason,nested:this.state.nested,triggerElement:t.trigger},o=this.state.floatingRootContext.context.events;o?.emit("openchange",s);let l=()=>{let i={open:e,openChangeReason:t.reason},n=t.trigger?.id??null;(n||e)&&(i.activeTriggerId=n,i.activeTriggerElement=t.trigger??null),this.update(i)};i?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(W.PATIENT_CLICK_THRESHOLD,()=>{this.set("stickIfOpen",!1)}),p.flushSync(l)):l(),n||r?this.set("instantType",n?"click":"dismiss"):t.reason===f.REASONS.focusOut?this.set("instantType","focus"):this.set("instantType",void 0)};static useStore(e,t){let i=(0,v.useRefWithInit)(()=>new V(t)).current,n=e??i;return(0,h.useOnMount)(i.disposeEffect),n}disposeEffect=()=>this.context.stickIfOpenTimeout.disposeEffect()}var G=e.i(5963),x=e.i(258642),E=e.i(450091),I=e.i(843476);function k({props:e}){let{children:t,open:u,defaultOpen:g=!1,onOpenChange:p,onOpenChangeComplete:b,modal:m=!1,handle:A,triggerId:v,defaultTriggerId:h=null}=e,S=V.useStore(A?.store,{modal:m,open:g,openProp:u,activeTriggerId:h,triggerIdProp:v});(0,r.useOnFirstRender)(()=>{void 0===u&&!1===S.state.open&&!0===g&&S.update({open:!0,activeTriggerId:h})}),S.useControlledProp("openProp",u),S.useControlledProp("triggerIdProp",v);let R=S.useState("open"),W=S.useState("positionerElement"),y=S.useState("payload"),C=S.useState("openChangeReason");S.useContextCallback("onOpenChange",p),S.useContextCallback("onOpenChangeComplete",b);let{openMethod:Z,triggerProps:B}=(0,E.useOpenInteractionType)(R);(0,x.useImplicitActiveTrigger)(S);let{forceUnmount:Y}=(0,x.useOpenStateTransitions)(R,S,()=>{S.update({stickIfOpen:!0,openChangeReason:null})});(0,n.useScrollLock)(R&&!0===m&&C!==f.REASONS.triggerHover&&"touch"!==Z,W),i.useEffect(()=>{R||S.context.stickIfOpenTimeout.clear()},[S,R]);let X=i.useCallback(e=>{let t=(0,G.createChangeEventDetails)(e);return t.preventUnmountOnClose=()=>{S.set("preventUnmountingOnClose",!0)},t},[S]),N=i.useCallback(()=>{S.setOpen(!1,X(f.REASONS.imperativeAction))},[S,X]);i.useImperativeHandle(e.actionsRef,()=>({unmount:Y,close:N}),[Y,N]);let F=(0,c.useSyncedFloatingRootContext)({popupStore:S,onOpenChange:S.setOpen}),w=(0,s.useDismiss)(F,{outsidePressEvent:{mouse:"trap-focus"===m?"sloppy":"intentional",touch:"sloppy"}}),L=(0,l.useRole)(F),{getReferenceProps:j,getFloatingProps:_,getTriggerProps:J}=(0,o.useInteractions)([w,L]),M=i.useMemo(()=>j(B),[j,B]),K=i.useMemo(()=>J(B),[J,B]),Q=i.useMemo(()=>_(),[_]);S.useSyncedValues({modal:m,openMethod:Z,activeTriggerProps:M,inactiveTriggerProps:K,popupProps:Q,floatingRootContext:F,nested:null!=(0,a.useFloatingParentNodeId)()});let z=i.useMemo(()=>({store:S}),[S]);return(0,I.jsx)(d.Provider,{value:z,children:"function"==typeof t?t({payload:y}):t})}var C=e.i(676477),Z=e.i(991730),B=e.i(383590),Y=e.i(327601),X=e.i(437287),N=e.i(804012),F=e.i(397254),w=e.i(189879),L=e.i(672408),j=e.i(247857),_=e.i(559266);let J=i.forwardRef(function(e,t){let{render:n,className:r,disabled:s=!1,nativeButton:l=!0,handle:a,payload:c,openOnHover:d=!1,delay:b=300,closeDelay:m=0,id:A,...v}=e,h=g(!0),S=a?.store??h?.store;if(!S)throw Error((0,u.default)(74));let R=(0,w.useBaseUiId)(A),y=S.useState("isTriggerActive",R),V=S.useState("floatingRootContext"),E=S.useState("isOpenedByTrigger",R),k=i.useRef(null),{registerTrigger:J,isMountedByThisTrigger:M}=(0,x.useTriggerDataForwarding)(R,k,S,{payload:c,disabled:s,openOnHover:d,closeDelay:m}),K=S.useState("openChangeReason"),Q=S.useState("stickIfOpen"),z=S.useState("openMethod"),T=(0,F.useHoverReferenceInteraction)(V,{enabled:null!=V&&d&&("touch"!==z||K!==f.REASONS.triggerPress),mouseOnly:!0,move:!1,handleClose:(0,X.safePolygon)(),restMs:b,delay:{close:m},triggerElementRef:k,isActiveTrigger:y}),H=(0,N.useClick)(V,{enabled:null!=V,stickIfOpen:Q}),D=(0,o.useInteractions)([H]),U=S.useState("triggerProps",M),{getButtonProps:O,buttonRef:P}=(0,Z.useButton)({disabled:s,native:l}),$=i.useMemo(()=>({open:e=>e&&K===f.REASONS.triggerPress?B.pressableTriggerOpenStateMapping.open(e):B.triggerOpenStateMapping.open(e)}),[K]),q=(0,Y.useRenderElement)("button",e,{state:{disabled:s,open:E},ref:[P,t,J,k],props:[D.getReferenceProps(),T,U,{[W.CLICK_TRIGGER_IDENTIFIER]:"",id:R},v,O],stateAttributesMapping:$}),ee=i.useRef(null),et=(0,C.useStableCallback)(e=>{p.flushSync(()=>{S.setOpen(!1,(0,G.createChangeEventDetails)(f.REASONS.focusOut,e.nativeEvent,e.currentTarget))});let t=(0,_.getTabbableBeforeElement)(ee.current);t?.focus()}),ei=(0,C.useStableCallback)(e=>{let t=S.select("positionerElement");if(t&&(0,_.isOutsideEvent)(e,t))S.context.beforeContentFocusGuardRef.current?.focus();else{p.flushSync(()=>{S.setOpen(!1,(0,G.createChangeEventDetails)(f.REASONS.focusOut,e.nativeEvent,e.currentTarget))});let i=(0,_.getTabbableAfterElement)(S.context.triggerFocusTargetRef.current||k.current);for(;null!==i&&(0,j.contains)(t,i);){let e=i;if((i=(0,_.getNextTabbable)(i))===e)break}i?.focus()}});return y?(0,I.jsxs)(i.Fragment,{children:[(0,I.jsx)(L.FocusGuard,{ref:ee,onFocus:et}),(0,I.jsx)(i.Fragment,{children:q},R),(0,I.jsx)(L.FocusGuard,{ref:S.context.triggerFocusTargetRef,onFocus:ei})]}):(0,I.jsx)(i.Fragment,{children:q},R)});var M=e.i(937692);let K=i.createContext(void 0),Q=i.forwardRef(function(e,t){let{keepMounted:i=!1,...n}=e,{store:r}=g();return r.useState("mounted")||i?(0,I.jsx)(K.Provider,{value:i,children:(0,I.jsx)(M.FloatingPortal,{ref:t,...n})}):null});var z=e.i(658130),T=e.i(500977);let H=i.createContext(void 0);function D(){let e=i.useContext(H);if(!e)throw Error((0,u.default)(46));return e}var U=e.i(56590),O=e.i(536893),P=e.i(177817),$=e.i(767569),q=e.i(418847);let ee=i.forwardRef(function(e,t){let{render:n,className:r,anchor:s,positionMethod:o="absolute",side:l="bottom",align:c="center",sideOffset:d=0,alignOffset:p=0,collisionBoundary:b="clipping-ancestors",collisionPadding:m=5,arrowPadding:A=5,sticky:v=!1,disableAnchorTracking:h=!1,collisionAvoidance:S=W.POPUP_COLLISION_AVOIDANCE,...R}=e,{store:y}=g(),V=function(){let e=i.useContext(K);if(void 0===e)throw Error((0,u.default)(45));return e}(),G=(0,a.useFloatingNodeId)(),x=y.useState("floatingRootContext"),E=y.useState("mounted"),k=y.useState("open"),C=y.useState("openChangeReason"),Z=y.useState("activeTriggerElement"),X=y.useState("modal"),N=y.useState("positionerElement"),F=y.useState("instantType"),w=y.useState("transitionStatus"),L=y.useState("hasViewport"),j=i.useRef(null),_=(0,P.useAnimationsFinished)(N,!1,!1),J=(0,U.useAnchorPositioning)({anchor:s,floatingRootContext:x,positionMethod:o,mounted:E,side:l,sideOffset:d,align:c,alignOffset:p,arrowPadding:A,collisionBoundary:b,collisionPadding:m,sticky:v,disableAnchorTracking:h,keepMounted:V,nodeId:G,collisionAvoidance:S,adaptiveOrigin:L?$.adaptiveOrigin:void 0}),M=i.useMemo(()=>{let e={};return k||(e.pointerEvents="none"),{role:"presentation",hidden:!E,style:{...J.positionerStyles,...e}}},[k,E,J.positionerStyles]),Q=i.useMemo(()=>({props:M,...J}),[M,J]),D=x.useState("domReferenceElement");(0,T.useIsoLayoutEffect)(()=>{let e=j.current;if(D&&(j.current=D),e&&D&&D!==e){y.set("instantType",void 0);let e=new AbortController;return _(()=>{y.set("instantType","trigger-change")},e.signal),()=>{e.abort()}}},[D,_,y]);let ee={open:k,side:Q.side,align:Q.align,anchorHidden:Q.anchorHidden,instant:F},et=i.useCallback(e=>{y.set("positionerElement",e)},[y]),ei=(0,Y.useRenderElement)("div",e,{state:ee,props:[Q.props,(0,q.getDisabledMountTransitionStyles)(w),R],ref:[t,et],stateAttributesMapping:B.popupStateMapping});return(0,I.jsxs)(H.Provider,{value:Q,children:[E&&!0===X&&C!==f.REASONS.triggerHover&&(0,I.jsx)(O.InternalBackdrop,{ref:y.context.internalBackdropRef,inert:(0,z.inertValue)(!k),cutout:Z}),(0,I.jsx)(a.FloatingNode,{id:G,children:ei})]})});var et=e.i(229315),ei=e.i(488306),en=e.i(761896),er=e.i(284759),es=e.i(889269),eo=e.i(992238),el=e.i(560752);let ea=i.createContext(void 0);function ec(e){let{value:t,children:i}=e;return(0,I.jsx)(ea.Provider,{value:t,children:i})}let eu={...B.popupStateMapping,...er.transitionStatusMapping},ed=i.forwardRef(function(e,t){let{className:n,render:r,initialFocus:s,finalFocus:o,...l}=e,{store:a}=g(),c=D(),u=null!=(0,el.useToolbarRootContext)(!0),{context:d,hasClosePart:p}=function(){let[e,t]=i.useState(0),n=(0,C.useStableCallback)(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:i.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}(),b=a.useState("open"),m=a.useState("openMethod"),A=a.useState("instantType"),v=a.useState("transitionStatus"),h=a.useState("popupProps"),S=a.useState("titleElementId"),R=a.useState("descriptionElementId"),W=a.useState("modal"),y=a.useState("mounted"),V=a.useState("openChangeReason"),G=a.useState("activeTriggerElement"),x=a.useState("floatingRootContext");(0,es.useOpenChangeComplete)({open:b,ref:a.context.popupRef,onComplete(){b&&a.context.onOpenChangeComplete?.(!0)}});let E=a.useState("disabled"),k=a.useState("openOnHover"),Z=a.useState("closeDelay");(0,en.useHoverFloatingInteraction)(x,{enabled:k&&!E,closeDelay:Z});let B=void 0===s?function(e){return"touch"!==e||a.context.popupRef.current}:s,X={open:b,side:c.side,align:c.align,instant:A,transitionStatus:v},N=i.useCallback(e=>{a.set("popupElement",e)},[a]),F=(0,Y.useRenderElement)("div",e,{state:X,ref:[t,a.context.popupRef,N],props:[h,{"aria-labelledby":S,"aria-describedby":R,onKeyDown(e){u&&eo.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()}},(0,q.getDisabledMountTransitionStyles)(v),l],stateAttributesMapping:eu});return(0,I.jsx)(ei.FloatingFocusManager,{context:x,openInteractionType:m,modal:!1!==W&&p,disabled:!y||V===f.REASONS.triggerHover,initialFocus:B,returnFocus:o,restoreFocus:"popup",previousFocusableElement:(0,et.isHTMLElement)(G)?G:void 0,nextFocusableElement:a.context.triggerFocusTargetRef,beforeContentFocusGuardRef:a.context.beforeContentFocusGuardRef,children:(0,I.jsx)(ec,{value:d,children:F})})}),eg=i.forwardRef(function(e,t){let{className:i,render:n,...r}=e,{store:s}=g(),o=s.useState("open"),{arrowRef:l,side:a,align:c,arrowUncentered:u,arrowStyles:d}=D();return(0,Y.useRenderElement)("div",e,{state:{open:o,side:a,align:c,uncentered:u},ref:[t,l],props:[{style:d,"aria-hidden":!0},r],stateAttributesMapping:B.popupStateMapping})}),ep={...B.popupStateMapping,...er.transitionStatusMapping},eb=i.forwardRef(function(e,t){let{className:i,render:n,...r}=e,{store:s}=g(),o=s.useState("open"),l=s.useState("mounted"),a=s.useState("transitionStatus"),c=s.useState("openChangeReason");return(0,Y.useRenderElement)("div",e,{state:{open:o,transitionStatus:a},ref:[s.context.backdropRef,t],props:[{role:"presentation",hidden:!l,style:{pointerEvents:c===f.REASONS.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},r],stateAttributesMapping:ep})}),em=i.forwardRef(function(e,t){let{render:i,className:n,...r}=e,{store:s}=g(),o=(0,w.useBaseUiId)(r.id);return(0,T.useIsoLayoutEffect)(()=>(s.set("titleElementId",o),()=>{s.set("titleElementId",void 0)}),[s,o]),(0,Y.useRenderElement)("h2",e,{ref:t,props:[{id:o},r]})}),eA=i.forwardRef(function(e,t){let{render:i,className:n,...r}=e,{store:s}=g(),o=(0,w.useBaseUiId)(r.id);return(0,T.useIsoLayoutEffect)(()=>(s.set("descriptionElementId",o),()=>{s.set("descriptionElementId",void 0)}),[s,o]),(0,Y.useRenderElement)("p",e,{ref:t,props:[{id:o},r]})}),ev=i.forwardRef(function(e,t){let n,{render:r,className:s,disabled:o=!1,nativeButton:l=!0,...a}=e,{buttonRef:c,getButtonProps:u}=(0,Z.useButton)({disabled:o,focusableWhenDisabled:!1,native:l}),{store:d}=g();return n=i.useContext(ea),(0,T.useIsoLayoutEffect)(()=>n?.register(),[n]),(0,Y.useRenderElement)("button",e,{ref:[t,c],props:[{onClick(e){d.setOpen(!1,(0,G.createChangeEventDetails)(f.REASONS.closePress,e.nativeEvent,e.currentTarget))}},a,u]})}),eh=((t={}).popupWidth="--popup-width",t.popupHeight="--popup-height",t);var ef=e.i(712666);let eS={activationDirection:e=>e?{"data-activation-direction":e}:null},eR=i.forwardRef(function(e,t){let{render:i,className:n,children:r,...s}=e,{store:o}=g(),{side:l}=D(),a=o.useState("instantType"),{children:c,state:u}=(0,ef.usePopupViewport)({store:o,side:l,cssVars:eh,children:r}),d={activationDirection:u.activationDirection,transitioning:u.transitioning,instant:a};return(0,Y.useRenderElement)("div",e,{state:d,ref:t,props:[s,{children:c}],stateAttributesMapping:eS})});class eW{constructor(){this.store=new V}open(e){let t=e?this.store.context.triggerElements.getById(e)??void 0:void 0;if(e&&!t)throw Error((0,u.default)(80,e));this.store.setOpen(!0,(0,G.createChangeEventDetails)(f.REASONS.imperativeAction,void 0,t))}close(){this.store.setOpen(!1,(0,G.createChangeEventDetails)(f.REASONS.imperativeAction,void 0,void 0))}get isOpen(){return this.store.state.open}}e.s(["Arrow",0,eg,"Backdrop",0,eb,"Close",0,ev,"Description",0,eA,"Handle",0,eW,"Popup",0,ed,"Portal",0,Q,"Positioner",0,ee,"Root",0,function(e){return g(!0)?(0,I.jsx)(k,{props:e}):(0,I.jsx)(a.FloatingTree,{children:(0,I.jsx)(k,{props:e})})},"Title",0,em,"Trigger",0,J,"Viewport",0,eR,"createHandle",0,function(){return new eW}],307311);var ey=e.i(307311);e.s(["Popover",0,ey],506213)},597744,937111,283416,50086,940530,e=>{"use strict";var t,i,n,r,s,o,l,a,c=e.i(271645),u=e.i(170255),d=(e.i(113024),e.i(424407)),g=e.i(304532),p=e.i(499328),b=e.i(693569),m=e.i(761867);let A=(0,d.fileDesc)("CihhaS9zdGlnbWVyL3BsYXRmb3JtL3YxL2VudGl0bGVtZW50LnByb3RvEhZhaS5zdGlnbWVyLnBsYXRmb3JtLnYxIo8BCgxFbnRpdGxlbWVudHMSOQoGbGltaXRzGAEgASgLMikuYWkuc3RpZ21lci5wbGF0Zm9ybS52MS5FbnRpdGxlbWVudExpbWl0cxJECghmZWF0dXJlcxgCIAMoDjIfLmFpLnN0aWdtZXIucGxhdGZvcm0udjEuRmVhdHVyZUIRukgOkgELGAEiB4IBBBABIAAi2gEKEUVudGl0bGVtZW50TGltaXRzEicKEW1heF9vcmdhbml6YXRpb25zGAEgASgFQge6SAQaAiAASACIAQESHwoJbWF4X3VzZXJzGAIgASgFQge6SAQaAiAASAGIAQESNAoeaW5jbHVkZWRfbWFuYWdlZF9vcmdhbml6YXRpb25zGAMgASgFQge6SAQaAiAASAKIAQFCFAoSX21heF9vcmdhbml6YXRpb25zQgwKCl9tYXhfdXNlcnNCIQofX2luY2x1ZGVkX21hbmFnZWRfb3JnYW5pemF0aW9ucyp+CgdGZWF0dXJlEhcKE2ZlYXR1cmVfdW5zcGVjaWZpZWQQABITCg9zc29fZW5mb3JjZW1lbnQQARITCg9wbGF0Zm9ybV9jbGllbnQQAhIVChFieW9fcHJvdmlkZXJfa2V5cxADEgwKCGNoYW5uZWxzEAQSCwoHc2hhcmluZxAFQhJCEEVudGl0bGVtZW50UHJvdG9iBnByb3RvMw",[m.file_buf_validate_validate]),v=(0,g.messageDesc)(A,0),h=(0,g.messageDesc)(A,1);(t=s||(s={}))[t.feature_unspecified=0]="feature_unspecified",t[t.sso_enforcement=1]="sso_enforcement",t[t.platform_client=2]="platform_client",t[t.byo_provider_keys=3]="byo_provider_keys",t[t.channels=4]="channels",t[t.sharing=5]="sharing",e.s(["EntitlementLimitsSchema",0,h,"EntitlementsSchema",0,v,"Feature",0,s,"file_ai_stigmer_platform_v1_entitlement",0,A],937111);var f=e.i(732303);let S=(0,d.fileDesc)("CiRhaS9zdGlnbWVyL3BsYXRmb3JtL3YxL2xpY2Vuc2UucHJvdG8SFmFpLnN0aWdtZXIucGxhdGZvcm0udjEiiQUKDUxpY2Vuc2VDbGFpbXMSGgoKbGljZW5zZV9pZBgBIAEoCUIGukgDyAEBEkEKCGN1c3RvbWVyGAIgASgLMicuYWkuc3RpZ21lci5wbGF0Zm9ybS52MS5MaWNlbnNlQ3VzdG9tZXJCBrpIA8gBARJACgR0ZXJtGAMgASgOMiMuYWkuc3RpZ21lci5wbGF0Zm9ybS52MS5MaWNlbnNlVGVybUINukgKyAEBggEEEAEgABJCCgxlbnRpdGxlbWVudHMYBCABKAsyJC5haS5zdGlnbWVyLnBsYXRmb3JtLnYxLkVudGl0bGVtZW50c0IGukgDyAEBEjUKCWlzc3VlZF9hdBgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCBrpIA8gBARI2CgpleHBpcmVzX2F0GAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEIGukgDyAEBEjcKC2dyYWNlX3VudGlsGAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEIGukgDyAEBOuoBukjmARpqCiJsaWNlbnNlX2NsYWltcy5leHBpcmVzX2FmdGVyX2lzc3VlEiJleHBpcmVzX2F0IG11c3QgYmUgYWZ0ZXIgaXNzdWVkX2F0GiB0aGlzLmV4cGlyZXNfYXQgPiB0aGlzLmlzc3VlZF9hdBp4CiZsaWNlbnNlX2NsYWltcy5ncmFjZV9ub3RfYmVmb3JlX2V4cGlyeRIpZ3JhY2VfdW50aWwgbXVzdCBub3QgYmUgYmVmb3JlIGV4cGlyZXNfYXQaI3RoaXMuZ3JhY2VfdW50aWwgPj0gdGhpcy5leHBpcmVzX2F0InwKD0xpY2Vuc2VDdXN0b21lchISCgJpZBgBIAEoCUIGukgDyAEBEhwKDGRpc3BsYXlfbmFtZRgCIAEoCUIGukgDyAEBEiEKDWNvbnRhY3RfZW1haWwYAyABKAlCCrpIB8gBAXICYAESFAoMb3JnYW5pemF0aW9uGAQgASgJKkAKC0xpY2Vuc2VUZXJtEhwKGGxpY2Vuc2VfdGVybV91bnNwZWNpZmllZBAAEgkKBXRyaWFsEAESCAoEcGFpZBACKncKDExpY2Vuc2VTdGF0ZRIdChlsaWNlbnNlX3N0YXRlX3Vuc3BlY2lmaWVkEAASCgoGYWJzZW50EAESCQoFdmFsaWQQAhIMCghleHBpcmluZxADEgkKBWdyYWNlEAQSCwoHZXhwaXJlZBAFEgsKB2ludmFsaWQQBkIOQgxMaWNlbnNlUHJvdG9iBnByb3RvMw",[A,m.file_buf_validate_validate,f.file_google_protobuf_timestamp]),R=(0,g.messageDesc)(S,1);(i=o||(o={}))[i.license_term_unspecified=0]="license_term_unspecified",i[i.trial=1]="trial",i[i.paid=2]="paid",(n=l||(l={}))[n.license_state_unspecified=0]="license_state_unspecified",n[n.absent=1]="absent",n[n.valid=2]="valid",n[n.expiring=3]="expiring",n[n.grace=4]="grace",n[n.expired=5]="expired",n[n.invalid=6]="invalid",e.s(["LicenseCustomerSchema",0,R,"LicenseState",0,l,"LicenseTerm",0,o,"file_ai_stigmer_platform_v1_license",0,S],283416);let W=(0,d.fileDesc)("CihhaS9zdGlnbWVyL3BsYXRmb3JtL3YxL3NlcnZlcl9pbmZvLnByb3RvEhZhaS5zdGlnbWVyLnBsYXRmb3JtLnYxIhQKEkdldFNlcnZlckluZm9JbnB1dCKgAQoTR2V0U2VydmVySW5mb091dHB1dBI2CgdlZGl0aW9uGAEgASgOMiUuYWkuc3RpZ21lci5wbGF0Zm9ybS52MS5TZXJ2ZXJFZGl0aW9uEg8KB3ZlcnNpb24YAiABKAkSJAoXYXV0aGVudGljYXRpb25fcmVxdWlyZWQYAyABKAhIAIgBAUIaChhfYXV0aGVudGljYXRpb25fcmVxdWlyZWQiFwoVR2V0TGljZW5zZVN0YXR1c0lucHV0IsQBChZHZXRMaWNlbnNlU3RhdHVzT3V0cHV0EjMKBXN0YXRlGAEgASgOMiQuYWkuc3RpZ21lci5wbGF0Zm9ybS52MS5MaWNlbnNlU3RhdGUSNQoGY2xhaW1zGAIgASgLMiUuYWkuc3RpZ21lci5wbGF0Zm9ybS52MS5MaWNlbnNlQ2xhaW1zEg4KBmtleV9pZBgDIAEoCRIuCgpjaGVja2VkX2F0GAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCIfCh1HZXRSdW5uZXJCb290c3RyYXBDb25maWdJbnB1dCLjAgoeR2V0UnVubmVyQm9vdHN0cmFwQ29uZmlnT3V0cHV0EiEKEHRlbXBvcmFsX2FkZHJlc3MYASABKAlCB7pIBHICEAESIwoSdGVtcG9yYWxfbmFtZXNwYWNlGAIgASgJQge6SARyAhABEhsKE3J1bm5lcl9hY2Nlc3NfdG9rZW4YAyABKAkSEgoKdG9rZW5fdHlwZRgEIAEoCRIuCiZydW5uZXJfYWNjZXNzX3Rva2VuX2V4cGlyZXNfaW5fc2Vjb25kcxgFIAEoBRIeChZwYXlsb2FkX2VuY3J5cHRpb25fa2V5GAYgASgJEiEKGXBheWxvYWRfZW5jcnlwdGlvbl9rZXlfaWQYByABKAkSKAogcGF5bG9hZF9lbmNyeXB0aW9uX3NlY29uZGFyeV9rZXkYCCABKAkSKwojcGF5bG9hZF9lbmNyeXB0aW9uX3NlY29uZGFyeV9rZXlfaWQYCSABKAki3AEKGUdldFJ1bm5lclNjb3BlZFRva2VuSW5wdXQSHAoSYWdlbnRfZXhlY3V0aW9uX2lkGAEgASgJSAASHwoVd29ya2Zsb3dfZXhlY3V0aW9uX2lkGAIgASgJSAASNwoKcG9vbF9jbGFpbRgDIAEoCzIhLmFpLnN0aWdtZXIucGxhdGZvcm0udjEuUG9vbENsYWltSAASNwoHcmVuZXdhbBgEIAEoCzIkLmFpLnN0aWdtZXIucGxhdGZvcm0udjEuVG9rZW5SZW5ld2FsSABCDgoFc2NvcGUSBbpIAggBIigKCVBvb2xDbGFpbRIbCgpzZXNzaW9uX2lkGAEgASgJQge6SARyAhABIg4KDFRva2VuUmVuZXdhbCJpChpHZXRSdW5uZXJTY29wZWRUb2tlbk91dHB1dBIbChNydW5uZXJfc2NvcGVkX3Rva2VuGAEgASgJEhIKCnRva2VuX3R5cGUYAiABKAkSGgoSZXhwaXJlc19pbl9zZWNvbmRzGAMgASgFKlMKDVNlcnZlckVkaXRpb24SHgoac2VydmVyX2VkaXRpb25fdW5zcGVjaWZpZWQQABIHCgNvc3MQARIJCgVjbG91ZBACEg4KCmVudGVycHJpc2UQAzKaBAoXUGxhdGZvcm1RdWVyeUNvbnRyb2xsZXISbgoNZ2V0U2VydmVySW5mbxIqLmFpLnN0aWdtZXIucGxhdGZvcm0udjEuR2V0U2VydmVySW5mb0lucHV0GisuYWkuc3RpZ21lci5wbGF0Zm9ybS52MS5HZXRTZXJ2ZXJJbmZvT3V0cHV0IgTIuBgBEncKEGdldExpY2Vuc2VTdGF0dXMSLS5haS5zdGlnbWVyLnBsYXRmb3JtLnYxLkdldExpY2Vuc2VTdGF0dXNJbnB1dBouLmFpLnN0aWdtZXIucGxhdGZvcm0udjEuR2V0TGljZW5zZVN0YXR1c091dHB1dCIE0LgYARKPAQoYZ2V0UnVubmVyQm9vdHN0cmFwQ29uZmlnEjUuYWkuc3RpZ21lci5wbGF0Zm9ybS52MS5HZXRSdW5uZXJCb290c3RyYXBDb25maWdJbnB1dBo2LmFpLnN0aWdtZXIucGxhdGZvcm0udjEuR2V0UnVubmVyQm9vdHN0cmFwQ29uZmlnT3V0cHV0IgTQuBgBEoMBChRnZXRSdW5uZXJTY29wZWRUb2tlbhIxLmFpLnN0aWdtZXIucGxhdGZvcm0udjEuR2V0UnVubmVyU2NvcGVkVG9rZW5JbnB1dBoyLmFpLnN0aWdtZXIucGxhdGZvcm0udjEuR2V0UnVubmVyU2NvcGVkVG9rZW5PdXRwdXQiBNC4GAFCEUIPU2VydmVySW5mb1Byb3RvYgZwcm90bzM",[b.file_ai_stigmer_commons_rpc_method_options,S,m.file_buf_validate_validate,f.file_google_protobuf_timestamp]),y=(0,g.messageDesc)(W,0),V=(0,g.messageDesc)(W,2);(r=a||(a={}))[r.server_edition_unspecified=0]="server_edition_unspecified",r[r.oss=1]="oss",r[r.cloud=2]="cloud",r[r.enterprise=3]="enterprise";let G=(0,p.serviceDesc)(W,0);e.s(["GetLicenseStatusInputSchema",0,V,"GetServerInfoInputSchema",0,y,"PlatformQueryController",0,G,"ServerEdition",0,a],50086);let x=new Map([[u.ApiResourceKind.api_resource_version,u.ResourceTier.cloud_only],[u.ApiResourceKind.iam_policy,u.ResourceTier.open_source],[u.ApiResourceKind.identity_account,u.ResourceTier.open_source],[u.ApiResourceKind.api_key,u.ResourceTier.open_source],[u.ApiResourceKind.invitation,u.ResourceTier.enterprise],[u.ApiResourceKind.identity_provider,u.ResourceTier.enterprise],[u.ApiResourceKind.oauth_app,u.ResourceTier.open_source],[u.ApiResourceKind.platform_client,u.ResourceTier.open_source],[u.ApiResourceKind.team,u.ResourceTier.enterprise],[u.ApiResourceKind.organization,u.ResourceTier.open_source],[u.ApiResourceKind.platform,u.ResourceTier.enterprise],[u.ApiResourceKind.agent,u.ResourceTier.open_source],[u.ApiResourceKind.agent_execution,u.ResourceTier.open_source],[u.ApiResourceKind.session,u.ResourceTier.open_source],[u.ApiResourceKind.skill,u.ResourceTier.open_source],[u.ApiResourceKind.mcp_server,u.ResourceTier.open_source],[u.ApiResourceKind.agent_instance,u.ResourceTier.open_source],[u.ApiResourceKind.agent_share,u.ResourceTier.open_source],[u.ApiResourceKind.agent_channel,u.ResourceTier.open_source],[u.ApiResourceKind.channel_app,u.ResourceTier.open_source],[u.ApiResourceKind.workflow,u.ResourceTier.open_source],[u.ApiResourceKind.workflow_instance,u.ResourceTier.open_source],[u.ApiResourceKind.workflow_execution,u.ResourceTier.open_source],[u.ApiResourceKind.environment,u.ResourceTier.open_source],[u.ApiResourceKind.execution_context,u.ResourceTier.open_source],[u.ApiResourceKind.artifact,u.ResourceTier.open_source],[u.ApiResourceKind.schedule,u.ResourceTier.open_source],[u.ApiResourceKind.memory,u.ResourceTier.open_source],[u.ApiResourceKind.plugin,u.ResourceTier.open_source],[u.ApiResourceKind.plan,u.ResourceTier.cloud_only],[u.ApiResourceKind.subscription,u.ResourceTier.cloud_only],[u.ApiResourceKind.license,u.ResourceTier.cloud_only]]);function E(e,t){let i=x.get(e);if(void 0===i)throw Error(`isResourceAvailable: kind ${e} has no tier — only kinds with kind_meta can be asked about`);return function(e){switch(e){case"local":return 1;case"enterprise":return 2;case"cloud":return 3;default:throw Error(`unknown deployment mode: ${String(e)}`)}}(t)>=function(e){switch(e){case u.ResourceTier.open_source:return 1;case u.ResourceTier.enterprise:return 2;case u.ResourceTier.cloud_only:return 3;case u.ResourceTier.resource_tier_unspecified:return 1;default:throw Error(`unknown resource tier: ${String(e)}`)}}(i)}e.s(["deploymentModeOf",0,function(e){switch(e){case a.oss:return"local";case a.enterprise:return"enterprise";case a.cloud:case a.server_edition_unspecified:default:return"cloud"}},"isResourceAvailable",0,E],940530);let I=(0,c.createContext)("cloud");function k(){return(0,c.useContext)(I)}e.s(["DeploymentModeContext",0,I,"useDeploymentMode",0,k,"useResourceAvailable",0,function(e){return E(e,k())}],597744)},267872,e=>{"use strict";var t,i;e.i(113024);let n=(0,e.i(424407).fileDesc)("CixhaS9zdGlnbWVyL2lhbS9pZGVudGl0eWFjY291bnQvdjEvZW51bS5wcm90bxIhYWkuc3RpZ21lci5pYW0uaWRlbnRpdHlhY2NvdW50LnYxKpIBCh9JZGVudGl0eUFjY291bnRQcm92aXNpb25pbmdNb2RlEjIKLmlkZW50aXR5X2FjY291bnRfcHJvdmlzaW9uaW5nX21vZGVfdW5zcGVjaWZpZWQQABIKCgZkaXJlY3QQARINCglmZWRlcmF0ZWQQAhILCgdtYWNoaW5lEAMSEwoPcGxhdGZvcm1fY2xpZW50EARiBnByb3RvMw");(i=t||(t={}))[i.identity_account_provisioning_mode_unspecified=0]="identity_account_provisioning_mode_unspecified",i[i.direct=1]="direct",i[i.federated=2]="federated",i[i.machine=3]="machine",i[i.platform_client=4]="platform_client",e.s(["file_ai_stigmer_iam_identityaccount_v1_enum",0,n])},452026,632897,626874,e=>{"use strict";var t=e.i(424407),i=e.i(304532),n=e.i(421415),r=e.i(988158),s=e.i(761867);let o=(0,t.fileDesc)("CiZhaS9zdGlnbWVyL2lhbS9pYW1wb2xpY3kvdjEvc3BlYy5wcm90bxIbYWkuc3RpZ21lci5pYW0uaWFtcG9saWN5LnYxIr4BCg1JYW1Qb2xpY3lTcGVjEkYKCXByaW5jaXBhbBgBIAEoCzIrLmFpLnN0aWdtZXIuaWFtLmlhbXBvbGljeS52MS5BcGlSZXNvdXJjZVJlZkIGukgDyAEBEkUKCHJlc291cmNlGAIgASgLMisuYWkuc3RpZ21lci5pYW0uaWFtcG9saWN5LnYxLkFwaVJlc291cmNlUmVmQga6SAPIAQESHgoIcmVsYXRpb24YAyABKAlCDLpICcgBAXIEEAEYQCJkCg5BcGlSZXNvdXJjZVJlZhIbCgRraW5kGAEgASgJQg26SArIAQFyBRABGIACEhkKAmlkGAIgASgJQg26SArIAQFyBRABGIACEhoKCHJlbGF0aW9uGAMgASgJQgi6SAVyAxiAAmIGcHJvdG8z",[s.file_buf_validate_validate]),l=(0,i.messageDesc)(o,0),a=(0,i.messageDesc)(o,1);e.s(["ApiResourceRefSchema",0,a,"IamPolicySpecSchema",0,l,"file_ai_stigmer_iam_iampolicy_v1_spec",0,o],632897);let c=(0,t.fileDesc)("CiVhaS9zdGlnbWVyL2lhbS9pYW1wb2xpY3kvdjEvYXBpLnByb3RvEhthaS5zdGlnbWVyLmlhbS5pYW1wb2xpY3kudjEimQIKCUlhbVBvbGljeRItCgthcGlfdmVyc2lvbhgBIAEoCUIYukgVchMKEWlhbS5zdGlnbWVyLmFpL3YxEh4KBGtpbmQYAiABKAlCELpIDXILCglJYW1Qb2xpY3kSRQoIbWV0YWRhdGEYAyABKAsyMy5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuQXBpUmVzb3VyY2VNZXRhZGF0YRI4CgRzcGVjGAQgASgLMiouYWkuc3RpZ21lci5pYW0uaWFtcG9saWN5LnYxLklhbVBvbGljeVNwZWMSPAoGc3RhdHVzGAUgASgLMiwuYWkuc3RpZ21lci5pYW0uaWFtcG9saWN5LnYxLklhbVBvbGljeVN0YXR1cyJSCg9JYW1Qb2xpY3lTdGF0dXMSPwoFYXVkaXQYASABKAsyMC5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuQXBpUmVzb3VyY2VBdWRpdGIGcHJvdG8z",[n.file_ai_stigmer_commons_apiresource_metadata,r.file_ai_stigmer_commons_apiresource_status,o,s.file_buf_validate_validate]);e.s(["file_ai_stigmer_iam_iampolicy_v1_api",0,c],626874);var u=e.i(267872);let d=(0,t.fileDesc)("CiRhaS9zdGlnbWVyL2lhbS9pYW1wb2xpY3kvdjEvaW8ucHJvdG8SG2FpLnN0aWdtZXIuaWFtLmlhbXBvbGljeS52MSLDAgoSQXBpUmVzb3VyY2VSZWZWaWV3EgwKBGtpbmQYASABKAkSCgoCaWQYAiABKAkSEAoIcmVsYXRpb24YAyABKAkSDAoEbmFtZRgEIAEoCRINCgVlbWFpbBgFIAEoCRIMCgRzbHVnGAYgASgJEg4KBmF2YXRhchgHIAEoCRJACgdtZW1iZXJzGAggAygLMi8uYWkuc3RpZ21lci5pYW0uaWFtcG9saWN5LnYxLkFwaVJlc291cmNlUmVmVmlldxI+CgV0ZWFtcxgJIAMoCzIvLmFpLnN0aWdtZXIuaWFtLmlhbXBvbGljeS52MS5BcGlSZXNvdXJjZVJlZlZpZXcSRAoPaWRlbnRpdHlfb3JpZ2luGAogASgLMisuYWkuc3RpZ21lci5pYW0uaWFtcG9saWN5LnYxLklkZW50aXR5T3JpZ2luIo4BCg5JZGVudGl0eU9yaWdpbhJdChFwcm92aXNpb25pbmdfbW9kZRgBIAEoDjJCLmFpLnN0aWdtZXIuaWFtLmlkZW50aXR5YWNjb3VudC52MS5JZGVudGl0eUFjY291bnRQcm92aXNpb25pbmdNb2RlEh0KFXByb3ZpZGVyX2Rpc3BsYXlfbmFtZRgCIAEoCSIkCgtJYW1Qb2xpY3lJZBIVCgV2YWx1ZRgBIAEoCUIGukgDyAEBIqcBChZQcmluY2lwYWxSZXNvdXJjZUlucHV0EkYKCXByaW5jaXBhbBgBIAEoCzIrLmFpLnN0aWdtZXIuaWFtLmlhbXBvbGljeS52MS5BcGlSZXNvdXJjZVJlZkIGukgDyAEBEkUKCHJlc291cmNlGAIgASgLMisuYWkuc3RpZ21lci5pYW0uaWFtcG9saWN5LnYxLkFwaVJlc291cmNlUmVmQga6SAPIAQEiqQEKF1Jlc291cmNlUHJpbmNpcGFsc0lucHV0EkUKCHJlc291cmNlGAEgASgLMisuYWkuc3RpZ21lci5pYW0uaWFtcG9saWN5LnYxLkFwaVJlc291cmNlUmVmQga6SAPIAQESRwoKcHJpbmNpcGFscxgCIAMoCzIrLmFpLnN0aWdtZXIuaWFtLmlhbXBvbGljeS52MS5BcGlSZXNvdXJjZVJlZkIGukgDyAEBImQKFFJldm9rZU9yZ0FjY2Vzc0lucHV0EicKE2lkZW50aXR5X2FjY291bnRfaWQYASABKAlCCrpIB8gBAXICEAESIwoPb3JnYW5pemF0aW9uX2lkGAIgASgJQgq6SAfIAQFyAhABIkoKD0lhbVBvbGljaWVzTGlzdBI3CgdlbnRyaWVzGAEgAygLMiYuYWkuc3RpZ21lci5pYW0uaWFtcG9saWN5LnYxLklhbVBvbGljeSJ7ChdMaXN0UmVzb3VyY2VBY2Nlc3NJbnB1dBJFCghyZXNvdXJjZRgBIAEoCzIrLmFpLnN0aWdtZXIuaWFtLmlhbXBvbGljeS52MS5BcGlSZXNvdXJjZVJlZkIGukgDyAEBEhkKEWluY2x1ZGVfaW5oZXJpdGVkGAIgASgIIl4KHVJlc291cmNlQWNjZXNzQnlQcmluY2lwYWxMaXN0Ej0KB2VudHJpZXMYASADKAsyLC5haS5zdGlnbWVyLmlhbS5pYW1wb2xpY3kudjEuUHJpbmNpcGFsQWNjZXNzIowBCg9QcmluY2lwYWxBY2Nlc3MSQgoJcHJpbmNpcGFsGAEgASgLMi8uYWkuc3RpZ21lci5pYW0uaWFtcG9saWN5LnYxLkFwaVJlc291cmNlUmVmVmlldxI1CgVyb2xlcxgCIAMoCzImLmFpLnN0aWdtZXIuaWFtLmlhbXBvbGljeS52MS5Sb2xlR3JhbnQimwEKCVJvbGVHcmFudBIzCgRyb2xlGAEgASgLMiUuYWkuc3RpZ21lci5pYW0uaWFtcG9saWN5LnYxLlJvbGVJbmZvEkMKDm93bmVyX3Jlc291cmNlGAIgASgLMisuYWkuc3RpZ21lci5pYW0uaWFtcG9saWN5LnYxLkFwaVJlc291cmNlUmVmEhQKDGlzX2luaGVyaXRlZBgDIAEoCCJUChhSZXNvdXJjZUFjY2Vzc0J5Um9sZUxpc3QSOAoHZW50cmllcxgBIAMoCzInLmFpLnN0aWdtZXIuaWFtLmlhbXBvbGljeS52MS5Sb2xlQWNjZXNzIocBCgpSb2xlQWNjZXNzEjQKBHJvbGUYASABKAsyJi5haS5zdGlnbWVyLmlhbS5pYW1wb2xpY3kudjEuUm9sZUdyYW50EkMKCnByaW5jaXBhbHMYAiADKAsyLy5haS5zdGlnbWVyLmlhbS5pYW1wb2xpY3kudjEuQXBpUmVzb3VyY2VSZWZWaWV3IkcKCFJvbGVJbmZvEgoKAmlkGAEgASgJEgwKBGNvZGUYAiABKAkSDAoEbmFtZRgDIAEoCRITCgtkZXNjcmlwdGlvbhgEIAEoCSJOChZQcmluY2lwYWxSZXNvdXJjZVJvbGVzEjQKBXJvbGVzGAEgAygLMiUuYWkuc3RpZ21lci5pYW0uaWFtcG9saWN5LnYxLlJvbGVJbmZvIqYBChdDaGVja0F1dGhvcml6YXRpb25JbnB1dBJCCgZwb2xpY3kYASABKAsyKi5haS5zdGlnbWVyLmlhbS5pYW1wb2xpY3kudjEuSWFtUG9saWN5U3BlY0IGukgDyAEBEkcKE2NvbnRleHR1YWxfcG9saWNpZXMYAiADKAsyKi5haS5zdGlnbWVyLmlhbS5pYW1wb2xpY3kudjEuSWFtUG9saWN5U3BlYyIxChhDaGVja0F1dGhvcml6YXRpb25SZXN1bHQSFQoNaXNfYXV0aG9yaXplZBgBIAEoCCLIAQoWQ2hlY2tNeVBlcm1pc3Npb25JbnB1dBJFCghyZXNvdXJjZRgBIAEoCzIrLmFpLnN0aWdtZXIuaWFtLmlhbXBvbGljeS52MS5BcGlSZXNvdXJjZVJlZkIGukgDyAEBEh4KCHJlbGF0aW9uGAIgASgJQgy6SAnIAQFyBBABGEASRwoTY29udGV4dHVhbF9wb2xpY2llcxgDIAMoCzIqLmFpLnN0aWdtZXIuaWFtLmlhbXBvbGljeS52MS5JYW1Qb2xpY3lTcGVjIvIBCh5MaXN0QXV0aG9yaXplZFJlc291cmNlSWRzSW5wdXQSRgoJcHJpbmNpcGFsGAEgASgLMisuYWkuc3RpZ21lci5pYW0uaWFtcG9saWN5LnYxLkFwaVJlc291cmNlUmVmQga6SAPIAQESIQoNcmVzb3VyY2Vfa2luZBgCIAEoCUIKukgHyAEBcgIQARIcCghyZWxhdGlvbhgDIAEoCUIKukgHyAEBcgIQARJHChNjb250ZXh0dWFsX3BvbGljaWVzGAQgAygLMiouYWkuc3RpZ21lci5pYW0uaWFtcG9saWN5LnYxLklhbVBvbGljeVNwZWMiMQoZQXV0aG9yaXplZFJlc291cmNlSWRzTGlzdBIUCgxyZXNvdXJjZV9pZHMYASADKAki8wEKH0xpc3RBdXRob3JpemVkUHJpbmNpcGFsSWRzSW5wdXQSRQoIcmVzb3VyY2UYASABKAsyKy5haS5zdGlnbWVyLmlhbS5pYW1wb2xpY3kudjEuQXBpUmVzb3VyY2VSZWZCBrpIA8gBARIiCg5wcmluY2lwYWxfa2luZBgCIAEoCUIKukgHyAEBcgIQARIcCghyZWxhdGlvbhgDIAEoCUIKukgHyAEBcgIQARJHChNjb250ZXh0dWFsX3BvbGljaWVzGAQgAygLMiouYWkuc3RpZ21lci5pYW0uaWFtcG9saWN5LnYxLklhbVBvbGljeVNwZWMiMwoaQXV0aG9yaXplZFByaW5jaXBhbElkc0xpc3QSFQoNcHJpbmNpcGFsX2lkcxgBIAMoCSJZChdHZXRQcmluY2lwYWxzQ291bnRJbnB1dBIaCgZvcmdfaWQYASABKAlCCrpIB8gBAXICEAESIgoOcHJpbmNpcGFsX2tpbmQYAiABKAlCCrpIB8gBAXICEAEiIAoPUHJpbmNpcGFsc0NvdW50Eg0KBWNvdW50GAEgASgFYgZwcm90bzM",[c,o,u.file_ai_stigmer_iam_identityaccount_v1_enum,s.file_buf_validate_validate]),g=(0,i.messageDesc)(d,2),p=(0,i.messageDesc)(d,5),b=(0,i.messageDesc)(d,7),m=(0,i.messageDesc)(d,17),A=(0,i.messageDesc)(d,22);e.s(["CheckMyPermissionInputSchema",0,m,"GetPrincipalsCountInputSchema",0,A,"IamPolicyIdSchema",0,g,"ListResourceAccessInputSchema",0,b,"RevokeOrgAccessInputSchema",0,p,"file_ai_stigmer_iam_iampolicy_v1_io",0,d],452026)},981922,e=>{"use strict";var t=e.i(271645),i=e.i(891287),n=e.i(452026),r=e.i(632897),s=e.i(586108);e.s(["useCheckPermission",0,function(e,o,l){let a=(0,s.useStigmer)(),c="open"===(l?.fail??"open"),u=e?`${e.kind}:${e.id}:${o}`:null,d=(0,t.useRef)(new Map),[g,p]=(0,t.useState)(null);(0,t.useEffect)(()=>{if(!e||!u)return;let t=d.current.get(u);if(void 0!==t)return void p({key:u,verdict:t,error:null});let s=!1,l=(0,i.create)(n.CheckMyPermissionInputSchema,{resource:(0,i.create)(r.ApiResourceRefSchema,{kind:e.kind,id:e.id}),relation:o});return a.iamPolicy.checkMyPermission(l).then(e=>{s||(d.current.set(u,e.isAuthorized),p({key:u,verdict:e.isAuthorized,error:null}))}).catch(e=>{s||p({key:u,verdict:null,error:e instanceof Error?e:Error(String(e))})}),()=>{s=!0}},[u,e?.kind,e?.id,o,c,a]);let b=null!==u&&g?.key===u?g:null,m=b?.verdict??c,A=null!==u&&null===b,v=b?.error??null;return(0,t.useMemo)(()=>({allowed:m,isLoading:A,error:v}),[m,A,v])}])},590150,e=>{"use strict";var t=e.i(981922);e.s(["PermissionGate",0,function({resource:e,relation:i,children:n,fallback:r=null,loading:s=null}){let{allowed:o,isLoading:l}=(0,t.useCheckPermission)(e,i);return l?s:o?n:r}])},575407,e=>{"use strict";var t=e.i(271645),i=e.i(891287),n=e.i(725842),r=e.i(910304),s=e.i(586108),o=e.i(326283);e.s(["useSsoProvider",0,function(e){let l=(0,s.useStigmer)(),[a,c]=(0,t.useState)(null),[u,d]=(0,t.useState)(!1),[g,p]=(0,t.useState)(null);return(0,t.useEffect)(()=>{if(!e){c(null),d(!1),p(null);return}let t={current:!1};return d(!0),p(null),l.identityProvider.getSsoProvider((0,i.create)(n.OrganizationSsoLookupSchema,{org:e})).then(e=>{t.current||(c(e),d(!1))},e=>{t.current||((0,r.isNotFound)(e)?c(null):p((0,o.toError)(e)),d(!1))}),()=>{t.current=!0}},[e,l]),{ssoProvider:a,isLoading:u,error:g}}])},388023,853793,758960,e=>{"use strict";var t=e.i(843476),i=e.i(271645),n=e.i(170255),r=e.i(597744),s=e.i(590150),o=e.i(575407),l=e.i(506213),a=e.i(893976),c=e.i(364354),u=e.i(188482),d=e.i(10337),g=e.i(966205);let p="stg:inline-flex stg:shrink-0 stg:items-center stg:gap-1 stg:rounded-full stg:bg-muted stg:px-2 stg:py-0.5 stg:text-[10px] stg:font-medium stg:text-muted-foreground",b=(0,i.forwardRef)(function({option:e,isSelected:i,role:n,isHighlighted:r,disabled:s,tabIndex:o,onSelect:l,onMouseEnter:c,onKeyDown:u},d){let g=void 0!==e.lockedReason,p="radio"===n?{"aria-checked":i}:{"aria-selected":i};return(0,t.jsxs)("button",{ref:d,type:"button",role:n,...p,"aria-disabled":g||void 0,tabIndex:o,disabled:s||g,onClick:l,onMouseEnter:c,onKeyDown:u,className:(0,a.cn)("stg:flex stg:w-full stg:items-start stg:gap-2 stg:rounded-md stg:px-2.5 stg:py-2 stg:text-left stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring",g?"stg:disabled:pointer-events-none stg:cursor-default":"stg:disabled:pointer-events-none stg:disabled:opacity-50",!g&&(r?"stg:bg-accent stg:text-foreground":"stg:hover:bg-accent-hover")),children:[(0,t.jsx)(A,{tone:e.tone,className:"stg:mt-0.5 stg:size-3.5 stg:shrink-0 stg:text-muted-foreground"}),(0,t.jsxs)("span",{className:"stg:min-w-0 stg:flex-1",children:[(0,t.jsx)("span",{className:(0,a.cn)("stg:block stg:text-xs stg:font-medium",g?"stg:text-muted-foreground":"stg:text-foreground"),children:e.label}),(0,t.jsx)("span",{className:"stg:block stg:text-[0.65rem] stg:leading-snug stg:text-muted-foreground",children:g?e.lockedReason:e.description})]}),g?(0,t.jsx)(v,{className:"stg:mt-0.5 stg:size-3.5 stg:shrink-0 stg:text-muted-foreground"}):i&&(0,t.jsx)(R,{className:"stg:mt-0.5 stg:size-3.5 stg:shrink-0 stg:text-primary"})]})}),m={private:{container:"stg:border-amber-200 stg:bg-amber-50 stg:dark:border-amber-800/50 stg:dark:bg-amber-950/30",text:"stg:text-amber-800 stg:dark:text-amber-200",confirm:"stg:bg-amber-600 stg:hover:bg-amber-700 stg:dark:bg-amber-600 stg:dark:hover:bg-amber-500",cancel:"stg:text-amber-700 stg:hover:text-amber-900 stg:dark:text-amber-300 stg:dark:hover:text-amber-100"},org:{container:"stg:border-blue-200 stg:bg-blue-50 stg:dark:border-blue-800/50 stg:dark:bg-blue-950/30",text:"stg:text-blue-800 stg:dark:text-blue-200",confirm:"stg:bg-blue-600 stg:hover:bg-blue-700 stg:dark:bg-blue-600 stg:dark:hover:bg-blue-500",cancel:"stg:text-blue-700 stg:hover:text-blue-900 stg:dark:text-blue-300 stg:dark:hover:text-blue-100"},platform:{container:"stg:border-violet-200 stg:bg-violet-50 stg:dark:border-violet-800/50 stg:dark:bg-violet-950/30",text:"stg:text-violet-800 stg:dark:text-violet-200",confirm:"stg:bg-violet-600 stg:hover:bg-violet-700 stg:dark:bg-violet-600 stg:dark:hover:bg-violet-500",cancel:"stg:text-violet-700 stg:hover:text-violet-900 stg:dark:text-violet-300 stg:dark:hover:text-violet-100"},public:{container:"stg:border-emerald-200 stg:bg-emerald-50 stg:dark:border-emerald-800/50 stg:dark:bg-emerald-950/30",text:"stg:text-emerald-800 stg:dark:text-emerald-200",confirm:"stg:bg-emerald-600 stg:hover:bg-emerald-700 stg:dark:bg-emerald-600 stg:dark:hover:bg-emerald-500",cancel:"stg:text-emerald-700 stg:hover:text-emerald-900 stg:dark:text-emerald-300 stg:dark:hover:text-emerald-100"}};function A({tone:e,className:i}){switch(e){case"org":return(0,t.jsx)(h,{className:i});case"platform":return(0,t.jsx)(f,{className:i});case"public":return(0,t.jsx)(S,{className:i});default:return(0,t.jsx)(v,{className:i})}}function v({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("rect",{x:"3.5",y:"7",width:"9",height:"7",rx:"1.5"}),(0,t.jsx)("path",{d:"M5.5 7V5a2.5 2.5 0 0 1 5 0v2"})]})}function h({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"6",cy:"5",r:"2.5"}),(0,t.jsx)("path",{d:"M2 13c0-2.21 1.79-4 4-4s4 1.79 4 4"}),(0,t.jsx)("circle",{cx:"11.5",cy:"5.5",r:"2"}),(0,t.jsx)("path",{d:"M14 13c0-1.66-1.12-3-2.5-3-.5 0-1 .14-1.4.4"})]})}function f({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M2 14V4.5L6.5 2v12"}),(0,t.jsx)("path",{d:"M6.5 6.5 14 8.5V14"}),(0,t.jsx)("path",{d:"M2 14h12"}),(0,t.jsx)("path",{d:"M4.25 6h.01M4.25 8.5h.01M4.25 11h.01M10.5 10.5h.01M10.5 12.5h.01"})]})}function S({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"8",cy:"8",r:"6"}),(0,t.jsx)("path",{d:"M2 8h12"}),(0,t.jsx)("path",{d:"M8 2c1.66 1.46 2.6 3.63 2.6 6s-.94 4.54-2.6 6c-1.66-1.46-2.6-3.63-2.6-6s.94-4.54 2.6-6Z"})]})}function R({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M3 8.5 6.5 12 13 4.5"})})}var W=e.i(302933);let y={value:W.ApiResourceVisibility.visibility_private,label:"Private",description:"Only you can access",tone:"private"},V={value:W.ApiResourceVisibility.visibility_org,label:"Organization",description:"All members of your organization",confirmPrompt:"Make visible to all org members?",tone:"org"},G={value:W.ApiResourceVisibility.visibility_platform,label:"Platform",description:"All organizations managed by your platform",confirmDialog:{title:"Share with your whole platform?",description:"Every organization managed by your platform will be able to view and use this resource. You can return it to a narrower visibility at any time."},tone:"platform"},x={value:W.ApiResourceVisibility.visibility_public,label:"Public",description:"Retired level — this resource becomes visible to your organization on upgrade",tone:"public"};function E(e){return e.hasIdentityProvider?[y,V,G]:[y,V]}function I(){return[y,{...V,description:"All org members can view executions"}]}function k(e){return"local"===e?[y]:[{...y,description:"Only you can view and use these credentials"},{...V,description:"Agents run in your org — including shared-agent visitors — can use these credentials. Members see names only; secret values stay hidden.",confirmPrompt:"Let agents run in your org use these credentials?"}]}function C(e){switch(e){case W.ApiResourceVisibility.visibility_org:return V;case W.ApiResourceVisibility.visibility_platform:return G;case W.ApiResourceVisibility.visibility_public:return x;default:return y}}function Z({visibility:e,options:n,onVisibilityChange:r,mode:s="manage",isPending:o=!1,disabled:u=!1,ariaLabel:v="Resource visibility",className:h}){let f=(0,c.useStigmerPortalContainer)(),{confirmState:S,confirm:R,handleConfirm:W,handleCancel:y}=(0,g.useConfirmAction)(),[V,G]=(0,i.useState)(!1),[x,E]=(0,i.useState)(null),[I,k]=(0,i.useState)(-1),Y=(0,i.useRef)([]),X=u||o,N=(0,i.useMemo)(()=>n.some(t=>t.value===e)?n:[...n,C(e)],[n,e]),F=(0,i.useCallback)(t=>{let i=N.map(e=>e.value);return i.indexOf(t)>i.indexOf(e)},[N,e]),w=(0,i.useCallback)(e=>{G(!1),E(null),r(e)},[r]),L=(0,i.useCallback)(t=>{if(void 0!==t.lockedReason)return;let i=t.value;if(i===e){E(null),G(!1);return}if("create"===s||!F(i))return void w(i);if(t.confirmDialog){G(!1),E(null),R({title:t.confirmDialog.title,description:t.confirmDialog.description,confirmLabel:`Make ${t.label}`,variant:"default"}).then(e=>{e&&r(i)});return}t.confirmPrompt?E(i):w(i)},[e,s,F,w,R,r]),j=(0,i.useCallback)((e,t)=>{let i=N.length,n=e;for(let e=0;e<i&&(n=(n+t+i)%i,N[n]?.lockedReason!==void 0);e++);k(n),Y.current[n]?.focus()},[N]),_=(0,i.useCallback)((e,t)=>{switch(e.key){case"ArrowDown":case"ArrowRight":e.preventDefault(),j(t,1);break;case"ArrowUp":case"ArrowLeft":e.preventDefault(),j(t,-1);break;case"Home":e.preventDefault(),k(0),Y.current[0]?.focus();break;case"End":{e.preventDefault();let t=N.length-1;k(t),Y.current[t]?.focus()}}},[j,N.length]);(0,i.useEffect)(()=>{if(!V){E(null),k(-1);return}let t=N.findIndex(t=>t.value===e),i=t>=0?t:0;k(i);let n=requestAnimationFrame(()=>Y.current[i]?.focus());return()=>cancelAnimationFrame(n)},[V,N,e]);let J=(0,t.jsx)(d.ConfirmDialog,{state:S,onConfirm:W,onCancel:y}),M=i=>N.map((n,r)=>(0,t.jsx)(b,{ref:e=>{Y.current[r]=e},option:n,role:i,isSelected:e===n.value,isHighlighted:"option"===i&&I===r,tabIndex:"radio"===i?e===n.value?0:-1:I===r?0:-1,disabled:X,onSelect:()=>L(n),onMouseEnter:"option"===i?()=>k(r):void 0,onKeyDown:e=>_(e,r)},n.value));if("create"===s)return(0,t.jsx)("div",{role:"radiogroup","aria-label":v,"aria-disabled":X||void 0,className:(0,a.cn)("stg:flex stg:flex-col stg:gap-0.5 stg:rounded-md stg:border stg:border-border stg:p-1",X&&"stg:pointer-events-none stg:opacity-50",h),children:M("radio")});let K=C(e),Q=null!==x?N.find(e=>e.value===x):void 0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(l.Popover.Root,{open:V,onOpenChange:G,children:[(0,t.jsxs)(l.Popover.Trigger,{disabled:X,"aria-label":`${v}: ${K.label}`,className:(0,a.cn)(p,"stg:transition-colors stg:hover:bg-accent-hover stg:hover:text-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50",h),children:[o?(0,t.jsx)("span",{className:"stg:inline-block stg:size-2.5 stg:animate-spin stg:rounded-full stg:border-2 stg:border-current stg:border-t-transparent","aria-hidden":"true"}):(0,t.jsx)(A,{tone:K.tone,className:"stg:size-2.5"}),K.label,(0,t.jsx)(B,{})]}),(0,t.jsx)(l.Popover.Portal,{container:f,children:(0,t.jsx)(l.Popover.Positioner,{sideOffset:4,align:"start",children:(0,t.jsxs)(l.Popover.Popup,{role:"listbox","aria-label":v,className:(0,a.cn)("stg:z-popover stg:w-72 stg:rounded-lg stg:border stg:border-border stg:bg-popover stg:p-1 stg:shadow-md","stg:text-popover-foreground stg:animate-in stg:fade-in-0 stg:zoom-in-95"),children:[M("option"),Q?.confirmPrompt&&(0,t.jsxs)("div",{role:"alert",className:(0,a.cn)("stg:mt-1 stg:flex stg:items-center stg:gap-2 stg:rounded-md stg:border stg:px-2.5 stg:py-1.5",m[Q.tone].container),children:[(0,t.jsx)("span",{className:(0,a.cn)("stg:flex-1 stg:text-[0.65rem] stg:leading-snug",m[Q.tone].text),children:Q.confirmPrompt}),(0,t.jsx)("button",{type:"button",onClick:()=>E(null),className:(0,a.cn)("stg:rounded stg:px-2 stg:py-0.5 stg:text-[0.65rem] stg:font-medium","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring",m[Q.tone].cancel),children:"Cancel"}),(0,t.jsx)("button",{type:"button",onClick:()=>w(Q.value),className:(0,a.cn)("stg:rounded stg:px-2 stg:py-0.5 stg:text-[0.65rem] stg:font-medium stg:text-white","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring",m[Q.tone].confirm),children:"Confirm"})]})]})})})]}),J]})}function B(){return(0,t.jsx)("svg",{className:"stg:size-2.5 stg:shrink-0 stg:text-muted-foreground",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M3 4.5 6 7.5 9 4.5"})})}function Y({visibility:e,className:i,onClick:n}){let r=C(e),s=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(A,{tone:r.tone,className:"stg:size-2.5"}),r.label]});return n?(0,t.jsxs)(u.Tooltip,{children:[(0,t.jsx)(u.TooltipTrigger,{render:(0,t.jsx)("button",{type:"button",onClick:n,"aria-label":`${r.label} visibility — manage access`,className:(0,a.cn)(p,"stg:transition-colors stg:hover:bg-accent-hover stg:hover:text-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring",i)}),children:s}),(0,t.jsx)(u.TooltipContent,{side:"top",children:"Manage access"})]}):(0,t.jsx)("span",{className:(0,a.cn)(p,i),children:s})}e.s(["blueprintVisibilityLevels",0,E,"environmentVisibilityLevels",0,k,"instanceVisibilityLevels",0,I,"visibilityOption",0,C],853793),e.s(["VisibilityBadge",0,Y,"VisibilitySelector",0,Z],758960);var X=e.i(891287),N=e.i(459153),F=e.i(586108),w=e.i(326283);let L={agent:"agent",workflow:"workflow",plugin:"plugin",skill:"skill",mcpServer:"mcp_server",agentInstance:"agent_instance",workflowInstance:"workflow_instance",environment:"environment"},j=new Set(["agentInstance","workflowInstance"]);e.s(["ResourceVisibilityControl",0,function({kind:e,resourceId:l,visibility:a,org:c,onChanged:u,className:d}){let{updateVisibility:g,isPending:p}=function(e,t){let n=(0,F.useStigmer)(),[r,s]=(0,i.useState)(!1),[o,l]=(0,i.useState)(null);return{updateVisibility:(0,i.useCallback)(async i=>{if(t){s(!0),l(null);try{let r=(0,X.create)(N.UpdateVisibilityInputSchema,{resourceId:t,visibility:i});switch(e){case"skill":await n.skill.updateVisibility(r);break;case"agent":await n.agent.updateVisibility(r);break;case"mcpServer":await n.mcpServer.updateVisibility(r);break;case"workflow":await n.workflow.updateVisibility(r);break;case"plugin":await n.plugin.updateVisibility(r);break;case"agentInstance":await n.agentInstance.updateVisibility(r);break;case"workflowInstance":await n.workflowInstance.updateVisibility(r);break;case"environment":await n.environment.updateVisibility(r)}}catch(e){throw l((0,w.toError)(e)),e}finally{s(!1)}}},[e,t,n]),isPending:r,error:o}}(e,l),b=(0,r.useDeploymentMode)(),m=(0,r.useResourceAvailable)(n.ApiResourceKind.identity_provider),A=j.has(e),v="environment"===e,{ssoProvider:h}=(0,o.useSsoProvider)(A||v||!m?null:c??null),f=v?k(b):A?I():E({hasIdentityProvider:null!==h}),S=(0,i.useCallback)(async e=>{try{await g(e),u?.()}catch{}},[g,u]),R=(0,t.jsx)(Y,{visibility:a,className:d});if(f.length<2)return R;let W=(0,t.jsx)(Z,{visibility:a,options:f,onVisibilityChange:S,isPending:p,ariaLabel:A?"Instance visibility":"Resource visibility",className:d});return(0,t.jsx)(s.PermissionGate,{resource:{kind:L[e],id:l},relation:"can_edit",fallback:R,loading:R,children:W})}],388023)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,750567,t=>{"use strict";var e=t.i(891287),s=t.i(725842),r=t.i(586108),a=t.i(583093);t.s(["useIdentityProviderList",0,function(t){let i=(0,r.useStigmer)(),{data:n,isLoading:g,isRefetching:o,error:d,refetch:l}=(0,a.useFetch)(t?()=>i.identityProvider.listByOrg((0,e.create)(s.ListIdentityProvidersByOrgInputSchema,{org:t})).then(t=>[...t.entries]):null,[t,i],[]);return{identityProviders:n,isLoading:g,isRefetching:o,error:d,refetch:l}}])},761151,t=>{"use strict";t.s(["IDENTITY_PROVIDERS_MANAGED_BY_ADMINS",0,"Identity providers are managed by your organization's admins."])},313488,333259,t=>{"use strict";var e=t.i(586108),s=t.i(583093);t.s(["useOrganization",0,function(t){let r=(0,e.useStigmer)(),{data:a,isLoading:i,isRefetching:n,error:g,refetch:o}=(0,s.useFetch)(t?()=>r.organization.get(t):null,[t,r],null);return{organization:a,isLoading:i,isRefetching:n,error:g,refetch:o}}],313488);var r=t.i(271645),a=t.i(326283);t.s(["useUpdateOrganization",0,function(){let t=(0,e.useStigmer)(),[s,i]=(0,r.useState)(!1),[n,g]=(0,r.useState)(null),o=(0,r.useCallback)(()=>g(null),[]);return{update:(0,r.useCallback)(async e=>{i(!0),g(null);try{return await t.organization.update(e)}catch(t){throw g((0,a.toError)(t)),t}finally{i(!1)}},[t]),isUpdating:s,error:n,clearError:o}}],333259)},780268,t=>{"use strict";var e=t.i(843476),s=t.i(271645),r=t.i(893976),a=t.i(610595),i=t.i(785767),n=t.i(313488),g=t.i(333259),o=t.i(750567),d=t.i(761151),l=t.i(597744),c=t.i(170255),u=t.i(981922),m=t.i(379410),x=t.i(193799);function p({orgId:t,onUpdated:o,className:d}){let l=(0,s.useId)(),{organization:c,isLoading:u,error:x,refetch:b}=(0,n.useOrganization)(t||null),{update:v,isUpdating:j,error:N,clearError:S}=(0,g.useUpdateOrganization)(),[k,I]=(0,s.useState)(""),[z,C]=(0,s.useState)(""),[w,O]=(0,s.useState)(""),L=c?.metadata?.name??"",P=c?.spec?.description??"",U=c?.spec?.logoUrl??"",A=c?.metadata?.slug??"",D=c?.metadata?.id??"",R=c?.spec?.isPersonal??!1;(0,s.useEffect)(()=>{c&&(I(c.metadata?.name??""),C(c.spec?.description??""),O(c.spec?.logoUrl??""))},[c]);let _=(0,s.useMemo)(()=>k.trim()!==L||z.trim()!==P||w.trim()!==U,[k,z,w,L,P,U]),E=k.trim().length>0&&!j&&_,M=(0,s.useCallback)(()=>{I(L),C(P),O(U),S()},[L,P,U,S]),T=(0,s.useCallback)(async t=>{if(t.preventDefault(),E&&c){S();try{let t=await v({...(0,i.toOrganizationUpdateInput)(c),name:k.trim(),description:z.trim()||void 0,logoUrl:w.trim()||void 0});b(),o?.(t)}catch{}}},[E,c,k,z,w,v,S,b,o]);return u&&!c?(0,e.jsx)("div",{className:(0,r.cn)("stg:space-y-4",d),"aria-busy":"true","aria-label":"Loading organization profile",children:Array.from({length:4},(t,s)=>(0,e.jsx)("div",{className:"stg:bg-muted-subtle stg:h-10 stg:animate-pulse stg:rounded",style:{width:`${90-12*s}%`}},s))}):x?(0,e.jsxs)("div",{className:(0,r.cn)("stg:space-y-3",d),role:"alert",children:[(0,e.jsx)("p",{className:"stg:text-destructive stg:text-sm",children:(0,a.getUserMessage)(x)}),(0,e.jsx)("button",{type:"button",onClick:b,className:(0,r.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-xs stg:font-medium","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover"),children:"Retry"})]}):c?(0,e.jsxs)("form",{onSubmit:T,className:(0,r.cn)("stg:space-y-6",d),children:[(0,e.jsxs)("div",{className:"stg:space-y-3",children:[(0,e.jsx)(f,{label:"Slug",value:A,mono:!0}),(0,e.jsx)(f,{label:"Organization ID",value:D}),R&&(0,e.jsx)("div",{children:(0,e.jsx)("span",{className:"stg:bg-primary-subtle stg:text-primary stg:rounded-full stg:px-2 stg:py-0.5 stg:text-[0.6rem] stg:font-medium stg:uppercase stg:tracking-wider",children:"Personal"})})]}),(0,e.jsx)("hr",{className:"stg:border-border"}),(0,e.jsxs)("div",{className:"stg:space-y-4",children:[(0,e.jsxs)("div",{className:"stg:space-y-1",children:[(0,e.jsx)("label",{htmlFor:`${l}-name`,className:"stg:text-xs stg:font-medium stg:text-foreground",children:"Name"}),(0,e.jsx)("input",{id:`${l}-name`,type:"text",value:k,onChange:t=>I(t.target.value),disabled:j,required:!0,className:(0,r.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50")}),(0,e.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:"The display name shown in the sidebar and across the platform."})]}),(0,e.jsxs)("div",{className:"stg:space-y-1",children:[(0,e.jsx)("label",{htmlFor:`${l}-desc`,className:"stg:text-xs stg:font-medium stg:text-foreground",children:"Description"}),(0,e.jsx)("textarea",{id:`${l}-desc`,value:z,onChange:t=>C(t.target.value),maxLength:500,rows:3,disabled:j,placeholder:"What is this organization for?",className:(0,r.cn)("stg:w-full stg:resize-y stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50")}),(0,e.jsxs)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:[z.length,"/",500," characters"]})]}),(0,e.jsxs)("div",{className:"stg:space-y-1",children:[(0,e.jsx)("label",{htmlFor:`${l}-logo`,className:"stg:text-xs stg:font-medium stg:text-foreground",children:"Logo URL"}),(0,e.jsx)("input",{id:`${l}-logo`,type:"url",value:w,onChange:t=>O(t.target.value),maxLength:2048,disabled:j,placeholder:"https://example.com/logo.png",className:(0,r.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50")}),(0,e.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:"A public URL to your organization's logo image."}),(0,e.jsx)(y,{url:w.trim()})]})]}),N&&(0,e.jsx)("p",{className:"stg:text-destructive stg:text-[0.65rem]",role:"alert",children:(0,a.getUserMessage)(N)}),(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,e.jsxs)("button",{type:"submit",disabled:!E,className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:px-3 stg:py-1.5 stg:text-xs stg:font-medium","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:pointer-events-none stg:disabled:opacity-40"),children:[j&&(0,e.jsx)(m.SpinnerIcon,{size:12}),"Save changes"]}),_&&!j&&(0,e.jsx)("button",{type:"button",onClick:M,className:(0,r.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-xs","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover"),children:"Discard"})]}),(0,e.jsx)(h,{orgId:t,orgSlug:A})]}):null}function h({orgId:t,orgSlug:s}){let r=(0,l.useResourceAvailable)(c.ApiResourceKind.identity_provider),{identityProviders:a,isLoading:i}=(0,o.useIdentityProviderList)(r&&s?s:null),n=(0,u.useCheckPermission)(r&&t?{kind:"organization",id:t}:null,"can_create_idp"),g=!n.isLoading&&!n.allowed;return r&&s?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("hr",{className:"stg:border-border"}),(0,e.jsxs)("div",{className:"stg:space-y-2",children:[(0,e.jsx)("p",{className:"stg:text-[0.65rem] stg:font-medium stg:text-muted-foreground stg:uppercase stg:tracking-wider",children:"Identity Providers"}),i?(0,e.jsx)("div",{className:"stg:bg-muted-subtle stg:h-8 stg:animate-pulse stg:rounded"}):0===a.length&&g?(0,e.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground",children:d.IDENTITY_PROVIDERS_MANAGED_BY_ADMINS}):0===a.length?(0,e.jsxs)("p",{className:"stg:text-xs stg:text-muted-foreground",children:["No identity providers configured."," ",(0,e.jsx)("a",{href:"/settings/identity-providers",className:"stg:text-primary stg:hover:text-primary-hover stg:underline stg:underline-offset-2",children:"Set up federated authentication"})]}):(0,e.jsxs)("div",{className:"stg:space-y-1.5",children:[a.map(t=>{let s=t.spec,r=s?.displayName||t.metadata?.name||"Unnamed",a=s?.isSsoProvider,i=!a&&s?.autoProvisionAccounts;return(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2 stg:text-xs",children:[(0,e.jsx)(b,{}),(0,e.jsx)("span",{className:"stg:text-foreground stg:truncate",children:r}),a&&(0,e.jsx)("span",{className:"stg:rounded-full stg:border stg:border-primary/30 stg:bg-primary-subtle stg:px-1.5 stg:py-px stg:text-[0.6rem] stg:font-medium stg:text-primary",children:"SSO"}),i&&(0,e.jsx)("span",{className:"stg:rounded-full stg:border stg:border-primary/30 stg:bg-primary-subtle stg:px-1.5 stg:py-px stg:text-[0.6rem] stg:font-medium stg:text-primary",children:"JIT"})]},t.metadata?.id)}),(0,e.jsx)("a",{href:"/settings/identity-providers",className:"stg:inline-block stg:text-[0.65rem] stg:text-primary stg:hover:text-primary-hover stg:underline stg:underline-offset-2",children:"Manage"})]})]})]}):null}function b(){return(0,e.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"stg:shrink-0 stg:text-muted-foreground",children:(0,e.jsx)("path",{d:"M8 1.5L2 4v4c0 3.5 2.5 5.5 6 7 3.5-1.5 6-3.5 6-7V4L8 1.5z"})})}function f({label:t,value:s,mono:a}){let{copy:i,copied:n}=(0,x.useCopyFeedback)();return s?(0,e.jsxs)("div",{className:"stg:space-y-0.5",children:[(0,e.jsx)("p",{className:"stg:text-[0.65rem] stg:font-medium stg:text-muted-foreground stg:uppercase stg:tracking-wider",children:t}),(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,e.jsx)("span",{className:(0,r.cn)("stg:text-xs stg:text-foreground stg:select-all",a&&"stg:font-mono"),children:s}),(0,e.jsx)("button",{type:"button",onClick:()=>void i(s),className:(0,r.cn)("stg:rounded stg:px-1.5 stg:py-0.5 stg:text-[0.6rem]","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:transition-colors"),"aria-label":`Copy ${t}`,children:n?"Copied":"Copy"})]})]}):null}function y({url:t}){let[a,i]=(0,s.useState)("idle");return((0,s.useEffect)(()=>{i("idle")},[t]),t&&"error"!==a)?(0,e.jsx)("div",{className:"stg:mt-2",children:(0,e.jsx)("img",{src:t,alt:"Organization logo preview",onLoad:()=>i("loaded"),onError:()=>i("error"),className:(0,r.cn)("stg:h-10 stg:w-10 stg:rounded-md stg:border stg:border-border stg:object-contain stg:bg-background","idle"===a&&"stg:opacity-0","loaded"===a&&"stg:opacity-100")})}):null}var v=t.i(297629);t.s(["OrgProfileSection",0,function(){let t=(0,s.useId)(),{activeOrg:r,refresh:a}=(0,v.useOrg)(),i=r?.metadata?.id??"",n=(0,s.useCallback)(t=>{a(t.metadata?.slug)},[a]);return(0,e.jsxs)("section",{"aria-labelledby":t,children:[(0,e.jsx)("h2",{id:t,className:"stg:text-foreground stg:mb-1 stg:text-sm stg:font-semibold",children:"Organization Profile"}),(0,e.jsx)("p",{className:"stg:text-muted-foreground stg:mb-6 stg:text-xs",children:"Manage your organization's display name, description, and logo."}),i?(0,e.jsx)(p,{orgId:i,onUpdated:n}):(0,e.jsx)("p",{className:"stg:text-muted-foreground stg:py-4 stg:text-center stg:text-xs",children:"Select an organization to view its profile."})]})}],780268)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,23280,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976),n=e.i(610595),i=e.i(17616),a=e.i(590150),o=e.i(188482),l=e.i(750567),d=e.i(586108),g=e.i(326283),c=e.i(379410);function u({org:e,onEdit:i,onRefetchRef:a,emptyState:o="No identity providers configured.",className:d}){let{identityProviders:g,isLoading:c,error:x,refetch:p}=(0,l.useIdentityProviderList)(e),[h,b]=(0,s.useState)(null);return(a&&a(p),c)?(0,t.jsx)("div",{className:(0,r.cn)("stg:space-y-2",d),"aria-busy":"true","aria-label":"Loading identity providers",children:Array.from({length:2},(e,s)=>(0,t.jsx)("div",{className:"stg:bg-muted-subtle stg:h-14 stg:animate-pulse stg:rounded-lg"},s))}):x?(0,t.jsx)("p",{className:(0,r.cn)("stg:text-destructive stg:text-xs",d),role:"alert",children:(0,n.getUserMessage)(x)}):0===g.length?(0,t.jsx)("p",{className:(0,r.cn)("stg:text-muted-foreground stg:py-4 stg:text-center stg:text-xs",d),children:o}):(0,t.jsx)("div",{className:(0,r.cn)("stg:space-y-2",d),role:"list","aria-label":"Identity providers",children:g.map(e=>{let s=e.metadata?.id??"";return(0,t.jsx)(m,{identityProvider:e,isConfirming:h===s,onEdit:i?()=>i(e):void 0,onConfirmDelete:()=>b(s),onCancelDelete:()=>b(null),onDeleted:()=>{b(null),p()}},s)})})}function m({identityProvider:e,isConfirming:l,onEdit:u,onConfirmDelete:b,onCancelDelete:f,onDeleted:v}){let{deleteProvider:j,isDeleting:y,error:k}=function(){let e=(0,d.useStigmer)(),[t,r]=(0,s.useState)(!1),[n,i]=(0,s.useState)(null),a=(0,s.useCallback)(()=>i(null),[]);return{deleteProvider:(0,s.useCallback)(async t=>{r(!0),i(null);try{return await e.identityProvider.delete(t)}catch(e){throw i((0,g.toError)(e)),e}finally{r(!1)}},[e]),isDeleting:t,error:n,clearError:a}}(),C=e.metadata?.id??"",w=e.spec,N=w?.displayName||e.metadata?.name||"Unnamed provider",S=e.metadata?.slug,I=w?.isSsoProvider,A=!I&&w?.autoProvisionAccounts,O=e.status?.audit?.specAudit?.createdAt,R=(0,s.useCallback)(async()=>{try{await j({resourceId:C}),v()}catch{}},[C,j,v]);return l?(0,t.jsxs)("div",{role:"listitem",className:"stg:flex stg:items-center stg:justify-between stg:rounded-lg stg:border stg:border-destructive/30 stg:bg-destructive-subtle stg:px-3 stg:py-2.5",children:[(0,t.jsxs)("div",{className:"stg:min-w-0 stg:flex-1",children:[(0,t.jsxs)("p",{className:"stg:text-xs stg:text-foreground",children:["Delete ",(0,t.jsx)("span",{className:"stg:font-medium",children:N}),"?"]}),k&&(0,t.jsx)("p",{className:"stg:mt-0.5 stg:text-[0.65rem] stg:text-destructive",children:(0,n.getUserMessage)(k)})]}),(0,t.jsxs)("div",{className:"stg:flex stg:shrink-0 stg:items-center stg:gap-1.5",children:[(0,t.jsxs)("button",{type:"button",onClick:R,disabled:y,className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1 stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium","stg:bg-destructive stg:text-destructive-foreground stg:hover:bg-destructive-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:[y&&(0,t.jsx)(c.SpinnerIcon,{size:12}),"Delete"]}),(0,t.jsx)("button",{type:"button",onClick:f,disabled:y,className:(0,r.cn)("stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:"Cancel"})]})]}):(0,t.jsxs)("div",{role:"listitem",className:"stg:flex stg:items-center stg:gap-3 stg:rounded-lg stg:border stg:border-border-muted stg:px-3 stg:py-2.5 stg:hover:border-border stg:transition-colors",children:[(0,t.jsx)(x,{}),(0,t.jsxs)("div",{className:"stg:min-w-0 stg:flex-1",children:[(0,t.jsx)("span",{className:"stg:block stg:truncate stg:text-sm stg:font-medium stg:text-foreground",children:N}),S&&(0,t.jsx)("span",{className:"stg:block stg:text-xs stg:text-muted-foreground stg:font-mono",children:S})]}),(0,t.jsxs)("div",{className:"stg:hidden stg:sm:flex stg:shrink-0 stg:items-center stg:gap-3 stg:text-xs stg:text-muted-foreground",children:[I&&(0,t.jsx)("span",{className:"stg:inline-flex stg:items-center stg:rounded-full stg:border stg:border-primary/30 stg:bg-primary-subtle stg:px-2 stg:py-0.5 stg:text-[0.65rem] stg:font-medium stg:text-primary",children:"SSO"}),A&&(0,t.jsx)("span",{className:"stg:inline-flex stg:items-center stg:rounded-full stg:border stg:border-primary/30 stg:bg-primary-subtle stg:px-2 stg:py-0.5 stg:text-[0.65rem] stg:font-medium stg:text-primary",children:"JIT"}),O&&(0,t.jsxs)(o.Tooltip,{children:[(0,t.jsx)(o.TooltipTrigger,{render:(0,t.jsx)("time",{dateTime:(0,i.timestampDate)(O).toISOString()}),children:(0,i.timestampDate)(O).toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})}),(0,t.jsx)(o.TooltipContent,{side:"top",children:`Created ${(0,i.timestampDate)(O).toISOString()}`})]})]}),(0,t.jsxs)("div",{className:"stg:flex stg:shrink-0 stg:items-center stg:gap-1",children:[u&&(0,t.jsx)(a.PermissionGate,{resource:{kind:"identity_provider",id:C},relation:"can_edit",children:(0,t.jsx)("button",{type:"button",onClick:u,"aria-label":`Edit ${N}`,className:(0,r.cn)("stg:shrink-0 stg:rounded stg:p-1","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:transition-colors"),children:(0,t.jsx)(p,{})})}),(0,t.jsx)(a.PermissionGate,{resource:{kind:"identity_provider",id:C},relation:"can_delete",children:(0,t.jsx)("button",{type:"button",onClick:b,"aria-label":`Delete ${N}`,className:(0,r.cn)("stg:shrink-0 stg:rounded stg:p-1","stg:text-muted-foreground stg:hover:text-destructive stg:hover:bg-destructive-subtle","stg:transition-colors"),children:(0,t.jsx)(h,{})})})]})]})}function x(){return(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"stg:shrink-0 stg:text-muted-foreground",children:(0,t.jsx)("path",{d:"M8 1.5L2 4v4c0 3.5 2.5 5.5 6 7 3.5-1.5 6-3.5 6-7V4L8 1.5z"})})}function p(){return(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M11 2.5l2.5 2.5L5 13.5H2.5V11L11 2.5z"})})}function h(){return(0,t.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M2.5 4h11M5.5 4V2.5a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1V4"}),(0,t.jsx)("path",{d:"M12.5 4v9a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1V4"}),(0,t.jsx)("line",{x1:"6.5",y1:"7",x2:"6.5",y2:"11"}),(0,t.jsx)("line",{x1:"9.5",y1:"7",x2:"9.5",y2:"11"})]})}var b=e.i(869803),f=e.i(430182);let v=[{id:"auth0",label:"Auth0",description:"Auth0 by Okta — universal login and identity platform",variables:[{key:"tenant",label:"Tenant name",placeholder:"acme-prod",hint:"The subdomain from your Auth0 tenant URL",type:"text"},{key:"region",label:"Region",placeholder:"us",type:"select",options:[{value:"us",label:"US"},{value:"eu",label:"EU"},{value:"au",label:"AU"},{value:"jp",label:"JP"}]}],buildConfig(e){let{tenant:t,region:s}=e;if(!t||!s)return null;let r=`${t}.${s}.auth0.com`,n=`https://${r}/`;return{issuer:n,jwksUri:`https://${r}/.well-known/jwks.json`,allowedIssuers:[n],userinfoEndpoint:`https://${r}/userinfo`}}},{id:"okta",label:"Okta",description:"Okta — enterprise identity and access management",variables:[{key:"domain",label:"Okta domain",placeholder:"acme.okta.com",hint:"Your Okta organization domain (e.g., acme.okta.com)",type:"text"}],buildConfig(e){let{domain:t}=e;if(!t)return null;let s=`https://${t}/oauth2/default`;return{issuer:s,jwksUri:`${s}/v1/keys`,allowedIssuers:[s],userinfoEndpoint:`${s}/v1/userinfo`}}},{id:"google",label:"Google",description:"Google Identity — Workspace and consumer accounts",variables:[],buildConfig:()=>({issuer:"https://accounts.google.com",jwksUri:"https://www.googleapis.com/oauth2/v3/certs",allowedIssuers:["https://accounts.google.com"],userinfoEndpoint:"https://openidconnect.googleapis.com/v1/userinfo"})},{id:"azure-ad",label:"Microsoft Entra ID",description:"Microsoft Entra ID (formerly Azure AD) — enterprise identity",variables:[{key:"tenantId",label:"Tenant ID",placeholder:"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",hint:"Your Entra ID / Azure AD tenant identifier (GUID)",type:"text"}],buildConfig(e){let{tenantId:t}=e;if(!t)return null;let s=`https://login.microsoftonline.com/${t}/v2.0`;return{issuer:s,jwksUri:`https://login.microsoftonline.com/${t}/discovery/v2.0/keys`,allowedIssuers:[s],userinfoEndpoint:"https://graph.microsoft.com/oidc/userinfo"}}},{id:"aws-cognito",label:"AWS Cognito",description:"Amazon Cognito — user pools for AWS applications",variables:[{key:"region",label:"AWS region",placeholder:"us-east-1",hint:"The AWS region of your Cognito user pool",type:"text"},{key:"userPoolId",label:"User Pool ID",placeholder:"us-east-1_aBcDeFgHi",hint:"Your Cognito user pool identifier",type:"text"}],buildConfig(e){let{region:t,userPoolId:s}=e;if(!t||!s)return null;let r=`https://cognito-idp.${t}.amazonaws.com/${s}`;return{issuer:r,jwksUri:`${r}/.well-known/jwks.json`,allowedIssuers:[r]}}},{id:"custom",label:"Custom OIDC",description:"Any OpenID Connect compliant identity provider",variables:[{key:"issuerUrl",label:"Issuer URL",placeholder:"https://idp.example.com",hint:"The OIDC issuer URL — configuration will be auto-discovered",type:"text"}],buildConfig:()=>null}];function j({onSelect:e,className:s}){return(0,t.jsx)("div",{className:(0,r.cn)("stg:grid stg:grid-cols-2 stg:gap-2 stg:sm:grid-cols-3",s),role:"listbox","aria-label":"Choose an identity provider",children:v.map(s=>(0,t.jsxs)("button",{type:"button",role:"option","aria-selected":!1,onClick:()=>e(s),className:(0,r.cn)("stg:flex stg:flex-col stg:items-start stg:gap-2 stg:rounded-lg stg:px-3 stg:py-3 stg:text-left stg:transition-colors","stg:border stg:hover:border-primary/60 stg:hover:bg-accent-hover","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring","custom"===s.id?"stg:border-dashed stg:border-border":"stg:border-border-muted"),children:[(0,t.jsx)(y,{presetId:s.id}),(0,t.jsxs)("div",{className:"stg:min-w-0",children:[(0,t.jsx)("span",{className:"stg:block stg:text-sm stg:font-medium stg:text-foreground",children:s.label}),(0,t.jsx)("span",{className:"stg:block stg:text-[0.65rem] stg:leading-tight stg:text-muted-foreground",children:s.description})]})]},s.id))})}function y({presetId:e}){let s=k[e]??C;return(0,t.jsx)("span",{className:"stg:flex stg:size-8 stg:items-center stg:justify-center stg:rounded-lg stg:bg-muted",children:(0,t.jsx)(s,{})})}let k={auth0:function(){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"stg:text-muted-foreground",children:[(0,t.jsx)("rect",{x:"3.5",y:"7",width:"9",height:"7",rx:"1.5"}),(0,t.jsx)("path",{d:"M5.5 7V5a2.5 2.5 0 0 1 5 0v2"})]})},okta:function(){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"stg:text-muted-foreground",children:[(0,t.jsx)("circle",{cx:"5.5",cy:"10",r:"3"}),(0,t.jsx)("path",{d:"M8 8l5.5-5.5M11 5l2-0.5L13.5 2.5"})]})},google:function(){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"stg:text-muted-foreground",children:[(0,t.jsx)("circle",{cx:"8",cy:"8",r:"6"}),(0,t.jsx)("path",{d:"M2 8h12M8 2c2 2 2.5 4 2.5 6S10 14 8 14c-2-2-2.5-4-2.5-6S6 2 8 2z"})]})},"azure-ad":function(){return(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"stg:text-muted-foreground",children:(0,t.jsx)("path",{d:"M4 12.5h8.5a3 3 0 0 0 0-6 .5.5 0 0 1-.5-.4A4.5 4.5 0 0 0 3.5 8v.5a3 3 0 0 0 .5 6z"})})},"aws-cognito":function(){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"stg:text-muted-foreground",children:[(0,t.jsx)("circle",{cx:"6",cy:"5",r:"2.5"}),(0,t.jsx)("path",{d:"M1.5 14c0-2.5 2-4.5 4.5-4.5S10.5 11.5 10.5 14"}),(0,t.jsx)("circle",{cx:"11.5",cy:"5.5",r:"1.5"}),(0,t.jsx)("path",{d:"M14.5 14c0-1.5-1-3-2.5-3.5"})]})},custom:function(){return(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"stg:text-muted-foreground",children:(0,t.jsx)("path",{d:"M5 4.5L1.5 8 5 11.5M11 4.5l3.5 3.5-3.5 3.5M9 2.5l-2 11"})})}};function C(){return(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"stg:text-muted-foreground",children:(0,t.jsx)("circle",{cx:"8",cy:"8",r:"6"})})}async function w(e){let t,s,r=e.replace(/\/+$/,""),n=`${r}/.well-known/openid-configuration`;try{t=await fetch(n,{mode:"cors"})}catch{throw Error("Could not reach the issuer's discovery endpoint. The provider may not allow browser requests (CORS). You can enter the configuration manually instead.")}if(!t.ok)throw Error(`Discovery endpoint returned HTTP ${t.status}. Verify the issuer URL is correct.`);try{s=await t.json()}catch{throw Error("Discovery endpoint returned invalid JSON. Verify the issuer URL points to a valid OIDC provider.")}if("string"!=typeof s.issuer||"string"!=typeof s.jwks_uri)throw Error("Discovery document is missing required fields (issuer, jwks_uri). This may not be a compliant OpenID Connect provider.");return{issuer:s.issuer,jwksUri:s.jwks_uri,userinfoEndpoint:"string"==typeof s.userinfo_endpoint?s.userinfo_endpoint:void 0}}function N({org:e,onCreated:n,onCancel:i,className:a}){let{create:o,isCreating:l,error:c,clearError:u}=function(){let e=(0,d.useStigmer)(),[t,r]=(0,s.useState)(!1),[n,i]=(0,s.useState)(null),a=(0,s.useCallback)(()=>i(null),[]);return{create:(0,s.useCallback)(async t=>{r(!0),i(null);try{return await e.identityProvider.create(t)}catch(e){throw i((0,g.toError)(e)),e}finally{r(!1)}},[e]),isCreating:t,error:n,clearError:a}}(),{discover:m,isDiscovering:x,error:p}=function(){let[e,t]=(0,s.useState)(!1),[r,n]=(0,s.useState)(null);return{discover:(0,s.useCallback)(async e=>{t(!0),n(null);try{return await w(e)}catch(e){return n(e instanceof Error?e:Error(String(e))),null}finally{t(!1)}},[]),isDiscovering:e,error:r}}(),[h,b]=(0,s.useState)("pick"),[v,y]=(0,s.useState)(null),[k,C]=(0,s.useState)({}),[S,D]=(0,s.useState)(""),[U,P]=(0,s.useState)(""),[E,L]=(0,s.useState)(""),[_,$]=(0,s.useState)(""),[z,G]=(0,s.useState)(""),[M,W]=(0,s.useState)(!1),[B,J]=(0,s.useState)(""),[q,F]=(0,s.useState)(!1),[V,K]=(0,s.useState)(!1),[Y,H]=(0,s.useState)(!1),[Q,X]=(0,s.useState)(f.IamRole.iam_role_unspecified),[Z,ee]=(0,s.useState)(""),[et,es]=(0,s.useState)(null),er=(0,s.useCallback)(e=>{y(e),C(Object.fromEntries(e.variables.map(e=>[e.key,e.options?.[0]?.value??""]))),D(""),P(""),b("configure")},[]),en=(0,s.useCallback)(()=>{b("pick"),y(null)},[]),ei=(0,s.useCallback)(e=>{L(e?.jwksUri??""),$(e?.allowedIssuers.join(", ")??""),G(e?.userinfoEndpoint??""),W(!1),J(""),F(!e)},[]),ea=(0,s.useCallback)(async()=>{if(v){if("custom"===v.id){let e=await m(k.issuerUrl??"");ei(e?{...e,allowedIssuers:[e.issuer]}:null)}else ei(v.buildConfig(k));b("review")}},[v,k,m,ei]),eo=(0,s.useCallback)(()=>{b("configure"),u()},[u]),el=(0,s.useCallback)(e=>{K(e),e||(H(!1),X(f.IamRole.iam_role_unspecified),ee(""))},[]),ed=(0,s.useCallback)(e=>{H(e),e&&K(!0),e||(X(f.IamRole.iam_role_unspecified),ee(""))},[]),eg=(0,s.useCallback)(async t=>{t.preventDefault(),u();try{let t=await o({name:S.trim(),org:e,displayName:S.trim(),jwksUri:E.trim(),allowedIssuers:_.split(",").map(e=>e.trim()).filter(Boolean),expectedAudience:U.trim(),userinfoEndpoint:z.trim()||void 0,...M&&{isSsoProvider:!0,oidcClientId:B.trim()},...!M&&{autoProvisionAccounts:V,autoGrantOnOrg:Y,...Y&&Q!==f.IamRole.iam_role_unspecified&&{autoGrantRole:Q},...Y&&Z.trim()&&{tenantOrgClaim:Z.trim()}}});es(t),b("success")}catch{}},[S,e,E,_,U,z,M,B,V,Y,Q,Z,o,u]);return(0,t.jsxs)("div",{className:(0,r.cn)("stg:space-y-4",a),children:[(0,t.jsx)(I,{current:h}),"pick"===h&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"stg:text-muted-foreground stg:text-xs",children:"Choose your identity provider to get started. Known providers will have their OIDC configuration auto-populated."}),(0,t.jsx)(j,{onSelect:er}),i&&(0,t.jsx)("div",{className:"stg:pt-1",children:(0,t.jsx)(T,{onClick:i})})]}),"configure"===h&&v&&(0,t.jsx)(A,{preset:v,vars:k,onVarChange:(e,t)=>C(s=>({...s,[e]:t})),name:S,onNameChange:D,audience:U,onAudienceChange:P,isLoading:x,discoveryError:p,onBack:en,onContinue:ea,onCancel:i}),"review"===h&&(0,t.jsx)(O,{discoveryFailed:q,jwksUri:E,onJwksUriChange:L,issuers:_,onIssuersChange:$,userinfoEndpoint:z,onUserinfoEndpointChange:G,isSso:M,onIsSsoChange:W,oidcClientId:B,onOidcClientIdChange:J,autoProvision:V,onAutoProvisionChange:el,autoGrant:Y,onAutoGrantChange:ed,autoGrantRole:Q,onAutoGrantRoleChange:X,tenantOrgClaim:Z,onTenantOrgClaimChange:ee,isCreating:l,createError:c,onBack:eo,onSubmit:eg,onCancel:i}),"success"===h&&et&&(0,t.jsx)(R,{identityProvider:et,org:e,isSso:M,autoProvision:V,autoGrant:Y,autoGrantRole:Q,onDone:()=>n?.(et)})]})}let S=[{key:"pick",label:"Provider"},{key:"configure",label:"Configure"},{key:"review",label:"Review"},{key:"success",label:"Done"}];function I({current:e}){let s=S.findIndex(t=>t.key===e);return(0,t.jsx)("nav",{"aria-label":"Wizard progress",className:"stg:flex stg:items-center stg:gap-1.5",children:S.map((e,n)=>{let i=n<s?"done":n===s?"active":"upcoming";return(0,t.jsxs)("span",{className:"stg:flex stg:items-center stg:gap-1.5",children:[n>0&&(0,t.jsx)("span",{className:(0,r.cn)("stg:h-px stg:w-4","upcoming"===i?"stg:bg-border":"stg:bg-primary-subtle")}),(0,t.jsx)("span",{className:(0,r.cn)("stg:text-[0.65rem] stg:font-medium","active"===i?"stg:text-primary":"done"===i?"stg:text-muted-foreground":"stg:text-muted-foreground-faint"),children:e.label})]},e.key)})})}function A({preset:e,vars:i,onVarChange:a,name:o,onNameChange:l,audience:d,onAudienceChange:g,isLoading:u,discoveryError:m,onBack:x,onContinue:p,onCancel:h}){let b=(0,s.useId)(),f=e.variables.every(e=>""!==(i[e.key]??"").trim())&&""!==o.trim()&&""!==d.trim()&&!u;return(0,t.jsxs)("div",{className:"stg:space-y-3",children:[(0,t.jsx)("p",{className:"stg:text-muted-foreground stg:text-xs",children:e.variables.length>0?`Enter your ${e.label} details to auto-populate the OIDC configuration.`:`${e.label} configuration is fully automatic — just provide a name and audience.`}),e.variables.map(e=>(0,t.jsx)(D,{id:`stgm-idp-var-${e.key}`,label:e.label,value:i[e.key]??"",onChange:t=>a(e.key,t),placeholder:e.placeholder,hint:e.hint,disabled:u,type:e.type,options:e.options},e.key)),(0,t.jsx)("hr",{className:"stg:border-border-muted"}),(0,t.jsx)(D,{id:`${b}-name`,label:"Display name",value:o,onChange:l,placeholder:"e.g., Acme Corp SSO",hint:"Human-readable name shown in the UI",disabled:u}),(0,t.jsx)(D,{id:`${b}-audience`,label:"Expected audience",value:d,onChange:g,placeholder:"stigmer-api",hint:"The aud claim value expected in JWTs from this provider",disabled:u}),m&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-[0.65rem]",role:"alert",children:(0,n.getUserMessage)(m)}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2 stg:pt-1",children:[(0,t.jsxs)("button",{type:"button",onClick:p,disabled:!f,className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:px-3 stg:py-1.5 stg:text-xs stg:font-medium","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:pointer-events-none stg:disabled:opacity-40"),children:[u&&(0,t.jsx)(c.SpinnerIcon,{size:12}),"Continue"]}),(0,t.jsx)(L,{onClick:x,disabled:u,children:"Back"}),h&&(0,t.jsx)(T,{onClick:h,disabled:u})]})]})}function O({discoveryFailed:e,jwksUri:i,onJwksUriChange:a,issuers:o,onIssuersChange:l,userinfoEndpoint:d,onUserinfoEndpointChange:g,isSso:u,onIsSsoChange:m,oidcClientId:x,onOidcClientIdChange:p,autoProvision:h,onAutoProvisionChange:b,autoGrant:f,onAutoGrantChange:v,autoGrantRole:j,onAutoGrantRoleChange:y,tenantOrgClaim:k,onTenantOrgClaimChange:C,isCreating:w,createError:N,onBack:S,onSubmit:I,onCancel:A}){let R=(0,s.useId)(),U=""!==i.trim()&&""!==o.trim()&&(!u||""!==x.trim())&&!w;return(0,t.jsxs)("form",{onSubmit:I,className:"stg:space-y-3",children:[e&&(0,t.jsx)("div",{className:"stg:rounded-md stg:border stg:border-warning/30 stg:bg-warning/5 stg:px-3 stg:py-2 stg:text-xs stg:text-warning-foreground",role:"alert",children:"Auto-discovery could not reach the provider. Enter the configuration manually below."}),(0,t.jsx)("p",{className:"stg:text-muted-foreground stg:text-xs",children:"Review the OIDC configuration. All fields are editable."}),(0,t.jsx)(D,{id:`${R}-jwks`,label:"JWKS URI",value:i,onChange:a,placeholder:"https://example.com/.well-known/jwks.json",disabled:w,required:!0}),(0,t.jsx)(D,{id:`${R}-issuers`,label:"Allowed issuers",value:o,onChange:l,placeholder:"https://issuer.example.com/",hint:"Comma-separated list of trusted JWT issuer values",disabled:w,required:!0}),(0,t.jsx)(D,{id:`${R}-userinfo`,label:"Userinfo endpoint",value:d,onChange:g,placeholder:"https://example.com/userinfo",hint:"Optional — used to fetch user profile data during token exchange",disabled:w}),(0,t.jsx)(E,{checked:u,onChange:m,label:"SSO provider",disabled:w}),u&&(0,t.jsx)(D,{id:`${R}-client-id`,label:"OIDC client ID",value:x,onChange:p,placeholder:"public-client-id",hint:"Client ID for the PKCE-based Authorization Code flow",disabled:w,required:!0}),(0,t.jsx)(P,{isSso:u,autoProvision:h,onAutoProvisionChange:b,autoGrant:f,onAutoGrantChange:v,autoGrantRole:j,onAutoGrantRoleChange:y,tenantOrgClaim:k,onTenantOrgClaimChange:C,disabled:w}),N&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-[0.65rem]",role:"alert",children:(0,n.getUserMessage)(N)}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2 stg:pt-1",children:[(0,t.jsxs)("button",{type:"submit",disabled:!U,className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:px-3 stg:py-1.5 stg:text-xs stg:font-medium","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:pointer-events-none stg:disabled:opacity-40"),children:[w&&(0,t.jsx)(c.SpinnerIcon,{size:12}),"Create identity provider"]}),(0,t.jsx)(L,{onClick:S,disabled:w,children:"Back"}),A&&(0,t.jsx)(T,{onClick:A,disabled:w})]})]})}function R({identityProvider:e,org:s,isSso:n,autoProvision:i,autoGrant:a,autoGrantRole:o,onDone:l}){let d=e.spec?.displayName||e.metadata?.name||"Identity provider",g=o!==f.IamRole.iam_role_unspecified?f.IamRole[o]:"viewer";return(0,t.jsxs)("div",{className:"stg:space-y-4",children:[(0,t.jsx)("div",{className:"stg:rounded-md stg:border stg:border-primary/30 stg:bg-primary-subtle stg:px-3 stg:py-2.5",children:(0,t.jsxs)("p",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:[d," created successfully"]})}),(0,t.jsxs)("div",{className:"stg:space-y-2",children:[(0,t.jsx)("p",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:"What happens next"}),n?(0,t.jsxs)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:["Users can sign in via SSO at"," ",(0,t.jsxs)("span",{className:"stg:font-mono stg:text-foreground",children:["/login?org=",s]}),". Accounts are auto-provisioned and granted the"," ",(0,t.jsx)("span",{className:"stg:font-medium stg:text-foreground",children:"viewer"})," role on this organization."]}):i&&a?(0,t.jsxs)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:["Users authenticating with JWTs from this provider will be automatically provisioned and granted the"," ",(0,t.jsx)("span",{className:"stg:font-medium stg:text-foreground",children:g})," role on this organization. No additional setup is required."]}):i?(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:"Accounts are auto-provisioned on first authentication, but no organization role is granted automatically. Use the Members page to grant access."}):(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:"The trust relationship is configured. Accounts must be created manually before users can authenticate."}),(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:"To verify the setup, have a user authenticate with a JWT from this provider and confirm they can access the organization's resources."})]}),(0,t.jsx)("button",{type:"button",onClick:l,className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:px-3 stg:py-1.5 stg:text-xs stg:font-medium","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover"),children:"Done"})]})}function D({id:e,label:s,value:n,onChange:i,placeholder:a,hint:o,disabled:l,required:d,type:g="text",options:c}){return(0,t.jsxs)("div",{className:"stg:space-y-1",children:[(0,t.jsx)("label",{htmlFor:e,className:"stg:text-xs stg:font-medium stg:text-foreground",children:s}),"select"===g&&c?(0,t.jsx)("select",{id:e,value:n,onChange:e=>i(e.target.value),disabled:l,className:(0,r.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:c.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))}):(0,t.jsx)("input",{id:e,type:"text",value:n,onChange:e=>i(e.target.value),placeholder:a,disabled:l,required:d,className:(0,r.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50")}),o&&(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:o})]})}let U=[{value:String(f.IamRole.iam_role_unspecified),label:"Default (viewer)"},{value:String(f.IamRole.viewer),label:"Viewer"},{value:String(f.IamRole.member),label:"Member"},{value:String(f.IamRole.admin),label:"Admin"}];function P({isSso:e,autoProvision:n,onAutoProvisionChange:i,autoGrant:a,onAutoGrantChange:o,autoGrantRole:l,onAutoGrantRoleChange:d,tenantOrgClaim:g,onTenantOrgClaimChange:c,disabled:u}){let m=(0,s.useId)();return e?(0,t.jsx)("div",{className:"stg:rounded-md stg:border stg:border-border-muted stg:bg-muted-faint stg:px-3 stg:py-2",children:(0,t.jsxs)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:["SSO providers automatically provision accounts and grant the"," ",(0,t.jsx)("span",{className:"stg:font-medium stg:text-foreground",children:"viewer"})," role on the owning organization. JIT provisioning settings are not applicable."]})}):(0,t.jsxs)("fieldset",{className:(0,r.cn)(b.UNSTYLED_FIELDSET,"stg:space-y-2.5"),disabled:u,children:[(0,t.jsx)("hr",{className:"stg:border-border-muted"}),(0,t.jsx)("legend",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:"JIT provisioning"}),(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:"Configure automatic account creation and role assignment for users authenticating with this provider."}),(0,t.jsx)(E,{checked:n,onChange:i,label:"Auto-provision accounts",hint:"Create a federated account automatically on first authentication",disabled:u}),(0,t.jsx)(E,{checked:a,onChange:o,label:"Auto-grant on organization",hint:"Grant a role on the owning organization when an account is provisioned",disabled:u||!n}),a&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(D,{id:`${m}-grant-role`,label:"Auto-grant role",value:String(l),onChange:e=>d(Number(e)),placeholder:"",hint:"Role granted automatically — org admins can upgrade later",disabled:u,type:"select",options:U}),(0,t.jsx)(D,{id:`${m}-tenant-claim`,label:"Tenant org claim",value:g,onChange:c,placeholder:"e.g., org_id",hint:"JWT claim name that maps to a platform-managed organization (max 256 chars)",disabled:u})]})]})}function E({checked:e,onChange:s,label:n,hint:i,disabled:a}){return(0,t.jsxs)("div",{className:"stg:space-y-0.5",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)("button",{type:"button",role:"switch","aria-checked":e,onClick:()=>s(!e),disabled:a,className:(0,r.cn)("stg:relative stg:inline-flex stg:h-5 stg:w-9 stg:shrink-0 stg:cursor-pointer stg:rounded-full stg:border-2 stg:border-transparent stg:transition-colors",e?"stg:bg-primary":"stg:bg-muted","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:(0,t.jsx)("span",{className:(0,r.cn)("stg:pointer-events-none stg:inline-block stg:h-4 stg:w-4 stg:rounded-full stg:bg-background stg:shadow-sm stg:ring-0 stg:transition-transform",e?"stg:translate-x-4":"stg:translate-x-0")})}),(0,t.jsx)("span",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:n})]}),i&&(0,t.jsx)("p",{className:"stg:pl-11 stg:text-[0.65rem] stg:text-muted-foreground",children:i})]})}function L({onClick:e,disabled:s,children:n}){return(0,t.jsx)("button",{type:"button",onClick:e,disabled:s,className:(0,r.cn)("stg:rounded-md stg:px-2.5 stg:py-1.5 stg:text-xs","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:n})}function T({onClick:e,disabled:s}){return(0,t.jsx)(L,{onClick:e,disabled:s,children:"Cancel"})}var _=e.i(353978),$=e.i(162697),z=e.i(193799);function G({identityProvider:e,onUpdated:i,onBack:o,ssoLoginUrl:l,className:u}){let m=(0,s.useId)(),x=e.spec,p=e.metadata,{update:h,isUpdating:b,error:v,clearError:j}=function(){let e=(0,d.useStigmer)(),[t,r]=(0,s.useState)(!1),[n,i]=(0,s.useState)(null),a=(0,s.useCallback)(()=>i(null),[]);return{update:(0,s.useCallback)(async t=>{r(!0),i(null);try{return await e.identityProvider.update(t)}catch(e){throw i((0,g.toError)(e)),e}finally{r(!1)}},[e]),isUpdating:t,error:n,clearError:a}}(),[y,k]=(0,s.useState)("view"),[C,w]=(0,s.useState)(x?.displayName??""),[N,S]=(0,s.useState)(x?.jwksUri??""),[I,A]=(0,s.useState)(x?.allowedIssuers.join(", ")??""),[O,R]=(0,s.useState)(x?.expectedAudience??""),[D,U]=(0,s.useState)(x?.userinfoEndpoint??""),[P,E]=(0,s.useState)(x?.isSsoProvider??!1),[L,T]=(0,s.useState)(x?.oidcClientId??""),[$,z]=(0,s.useState)(x?.autoProvisionAccounts??!1),[W,B]=(0,s.useState)(x?.autoGrantOnOrg??!1),[F,K]=(0,s.useState)(x?.autoGrantRole??f.IamRole.iam_role_unspecified),[Y,Q]=(0,s.useState)(x?.tenantOrgClaim??""),X=(0,s.useCallback)(e=>{z(e),e||(B(!1),K(f.IamRole.iam_role_unspecified),Q(""))},[]),Z=(0,s.useCallback)(e=>{B(e),e&&z(!0),e||(K(f.IamRole.iam_role_unspecified),Q(""))},[]),ee=(0,s.useCallback)(()=>{w(x?.displayName??""),S(x?.jwksUri??""),A(x?.allowedIssuers.join(", ")??""),R(x?.expectedAudience??""),U(x?.userinfoEndpoint??""),E(x?.isSsoProvider??!1),T(x?.oidcClientId??""),z(x?.autoProvisionAccounts??!1),B(x?.autoGrantOnOrg??!1),K(x?.autoGrantRole??f.IamRole.iam_role_unspecified),Q(x?.tenantOrgClaim??""),j(),k("edit")},[x,j]),et=(0,s.useCallback)(()=>{j(),k("view")},[j]),es=(0,s.useCallback)(async t=>{t.preventDefault(),j();try{let t=await h({...(0,_.toIdentityProviderUpdateInput)(e),displayName:C.trim(),jwksUri:N.trim(),allowedIssuers:I.split(",").map(e=>e.trim()).filter(Boolean),expectedAudience:O.trim(),userinfoEndpoint:D.trim()||void 0,isSsoProvider:P,oidcClientId:P?L.trim():void 0,autoProvisionAccounts:!P&&!!$||void 0,autoGrantOnOrg:!P&&!!W||void 0,autoGrantRole:!P&&W&&F!==f.IamRole.iam_role_unspecified?F:void 0,tenantOrgClaim:!P&&W&&Y.trim()?Y.trim():void 0});k("view"),i?.(t)}catch{}},[e,C,N,I,O,D,P,L,$,W,F,Y,h,j,i]),er=""!==C.trim()&&""!==N.trim()&&""!==I.trim()&&""!==O.trim()&&(!P||""!==L.trim())&&!b,en=e.status?.audit?.specAudit?.createdAt,ei=e.status?.audit?.specAudit?.updatedAt;return(0,t.jsxs)("div",{className:(0,r.cn)("stg:space-y-4",u),children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-start stg:justify-between stg:gap-3",children:[(0,t.jsxs)("div",{className:"stg:min-w-0",children:[o&&(0,t.jsxs)("button",{type:"button",onClick:o,className:"stg:text-muted-foreground stg:hover:text-foreground stg:mb-1 stg:flex stg:items-center stg:gap-1 stg:text-xs stg:transition-colors",children:[(0,t.jsx)(H,{}),"Back to list"]}),(0,t.jsx)("h3",{className:"stg:text-foreground stg:truncate stg:text-sm stg:font-semibold",children:x?.displayName||p?.name||"Identity Provider"}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[p?.slug&&(0,t.jsx)("span",{className:"stg:text-muted-foreground stg:font-mono stg:text-xs",children:p.slug}),(0,t.jsx)(q,{spec:x})]})]}),"view"===y&&(0,t.jsx)(a.PermissionGate,{resource:{kind:"identity_provider",id:p?.id??""},relation:"can_edit",children:(0,t.jsx)("button",{type:"button",onClick:ee,className:(0,r.cn)("stg:shrink-0 stg:rounded-md stg:px-2.5 stg:py-1.5 stg:text-xs stg:font-medium","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:transition-colors"),children:"Edit"})})]}),"view"===y?(0,t.jsx)(M,{spec:x,ssoLoginUrl:l,createdAt:en,updatedAt:ei}):(0,t.jsxs)("form",{onSubmit:es,className:"stg:space-y-3",children:[(0,t.jsx)(J,{id:`${m}-name`,label:"Display name",value:C,onChange:w,placeholder:"e.g., Acme Corp SSO",disabled:b,required:!0}),(0,t.jsx)(J,{id:`${m}-jwks`,label:"JWKS URI",value:N,onChange:S,placeholder:"https://example.com/.well-known/jwks.json",disabled:b,required:!0}),(0,t.jsx)(J,{id:`${m}-issuers`,label:"Allowed issuers",value:I,onChange:A,placeholder:"https://issuer.example.com/",hint:"Comma-separated list of trusted JWT issuer values",disabled:b,required:!0}),(0,t.jsx)(J,{id:`${m}-audience`,label:"Expected audience",value:O,onChange:R,placeholder:"stigmer-api",disabled:b,required:!0}),(0,t.jsx)(J,{id:`${m}-userinfo`,label:"Userinfo endpoint",value:D,onChange:U,placeholder:"https://example.com/userinfo",hint:"Optional — used to fetch user profile data",disabled:b}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)("button",{type:"button",role:"switch","aria-checked":P,onClick:()=>E(e=>!e),disabled:b,className:(0,r.cn)("stg:relative stg:inline-flex stg:h-5 stg:w-9 stg:shrink-0 stg:cursor-pointer stg:rounded-full stg:border-2 stg:border-transparent stg:transition-colors",P?"stg:bg-primary":"stg:bg-muted","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:(0,t.jsx)("span",{className:(0,r.cn)("stg:pointer-events-none stg:inline-block stg:h-4 stg:w-4 stg:rounded-full stg:bg-background stg:shadow-sm stg:ring-0 stg:transition-transform",P?"stg:translate-x-4":"stg:translate-x-0")})}),(0,t.jsx)("span",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:"SSO provider"})]}),P&&(0,t.jsx)(J,{id:`${m}-client-id`,label:"OIDC client ID",value:L,onChange:T,placeholder:"public-client-id",hint:"Client ID for the PKCE-based Authorization Code flow",disabled:b,required:!0}),(0,t.jsx)(V,{isSso:P,autoProvision:$,onAutoProvisionChange:X,autoGrant:W,onAutoGrantChange:Z,autoGrantRole:F,onAutoGrantRoleChange:K,tenantOrgClaim:Y,onTenantOrgClaimChange:Q,disabled:b}),v&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-[0.65rem]",role:"alert",children:(0,n.getUserMessage)(v)}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2 stg:pt-1",children:[(0,t.jsxs)("button",{type:"submit",disabled:!er,className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:px-3 stg:py-1.5 stg:text-xs stg:font-medium","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:pointer-events-none stg:disabled:opacity-40"),children:[b&&(0,t.jsx)(c.SpinnerIcon,{size:12}),"Save changes"]}),(0,t.jsx)("button",{type:"button",onClick:et,disabled:b,className:(0,r.cn)("stg:rounded-md stg:px-2.5 stg:py-1.5 stg:text-xs","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:"Cancel"})]})]})]})}function M({spec:e,ssoLoginUrl:s,createdAt:r,updatedAt:n}){return(0,t.jsxs)("dl",{className:"stg:space-y-2.5",children:[(0,t.jsx)(W,{label:"JWKS URI",value:e?.jwksUri,mono:!0}),(0,t.jsx)(W,{label:"Allowed issuers",value:e?.allowedIssuers.join(", "),mono:!0}),(0,t.jsx)(W,{label:"Expected audience",value:e?.expectedAudience,mono:!0}),e?.userinfoEndpoint&&(0,t.jsx)(W,{label:"Userinfo endpoint",value:e.userinfoEndpoint,mono:!0}),e?.isSsoProvider&&(0,t.jsx)(W,{label:"OIDC client ID",value:e.oidcClientId,mono:!0}),e?.isSsoProvider&&s&&(0,t.jsx)(B,{label:"SSO login URL",value:s,hint:"Share this URL with your team members to sign in via SSO"}),(e?.rateLimitBudget??0)>0&&(0,t.jsx)(W,{label:"Rate limit",value:`${e.rateLimitBudget} req/min`}),!e?.isSsoProvider&&e?.autoProvisionAccounts&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("hr",{className:"stg:border-border-muted"}),(0,t.jsx)(W,{label:"Auto-provision accounts",value:e.autoProvisionAccounts?"Enabled":"Disabled"}),(0,t.jsx)(W,{label:"Auto-grant on organization",value:e.autoGrantOnOrg?"Enabled":"Disabled"}),e.autoGrantOnOrg&&(0,t.jsx)(W,{label:"Auto-grant role",value:function(e){switch(e){case f.IamRole.viewer:return"Viewer";case f.IamRole.member:return"Member";case f.IamRole.admin:return"Admin";case f.IamRole.owner:return"Owner";default:return"Viewer (default)"}}(e.autoGrantRole)}),e.autoGrantOnOrg&&e.tenantOrgClaim&&(0,t.jsx)(W,{label:"Tenant org claim",value:e.tenantOrgClaim,mono:!0})]}),(0,t.jsxs)("div",{className:"stg:flex stg:gap-6",children:[r&&(0,t.jsx)(W,{label:"Created",value:Y((0,i.timestampDate)(r))}),n&&(0,t.jsx)(W,{label:"Updated",value:Y((0,i.timestampDate)(n))})]})]})}function W({label:e,value:s,mono:n}){return s?(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{className:"stg:text-muted-foreground stg:text-[0.65rem] stg:font-medium",children:e}),(0,t.jsx)("dd",{className:(0,r.cn)("stg:text-foreground stg:mt-0.5 stg:break-all stg:text-xs",n&&"stg:font-mono"),children:s})]}):null}function B({label:e,value:n,hint:i}){let{copy:a,copied:o}=(0,z.useCopyFeedback)(),l=(0,s.useRef)(null),d=(0,s.useCallback)(async()=>{!await a(n)&&l.current&&(0,$.selectElementText)(l.current)},[a,n]);return(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{className:"stg:text-muted-foreground stg:text-[0.65rem] stg:font-medium",children:e}),(0,t.jsxs)("dd",{className:"stg:mt-0.5",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)("span",{ref:l,className:"stg:text-foreground stg:break-all stg:font-mono stg:text-xs stg:select-all",children:n}),(0,t.jsx)("button",{type:"button",onClick:()=>void d(),className:(0,r.cn)("stg:shrink-0 stg:rounded stg:px-1.5 stg:py-0.5 stg:text-[0.6rem]","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:transition-colors"),"aria-label":`Copy ${e}`,children:o?"Copied":"Copy"})]}),i&&(0,t.jsx)("p",{className:"stg:text-muted-foreground stg:mt-0.5 stg:text-[0.65rem]",children:i}),(0,t.jsx)("div",{role:"status","aria-live":"polite","aria-atomic":"true",className:"stg:sr-only",children:o&&"SSO login URL copied to clipboard"})]})]})}function J({id:e,label:s,value:n,onChange:i,placeholder:a,hint:o,disabled:l,required:d}){return(0,t.jsxs)("div",{className:"stg:space-y-1",children:[(0,t.jsx)("label",{htmlFor:e,className:"stg:text-xs stg:font-medium stg:text-foreground",children:s}),(0,t.jsx)("input",{id:e,type:"text",value:n,onChange:e=>i(e.target.value),placeholder:a,disabled:l,required:d,className:(0,r.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50")}),o&&(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:o})]})}function q({spec:e}){return e?.isSsoProvider?(0,t.jsx)("span",{className:"stg:inline-flex stg:items-center stg:rounded-full stg:border stg:border-primary/30 stg:bg-primary-subtle stg:px-2 stg:py-0.5 stg:text-[0.65rem] stg:font-medium stg:text-primary",children:"SSO"}):e?.autoProvisionAccounts?(0,t.jsx)("span",{className:"stg:inline-flex stg:items-center stg:rounded-full stg:border stg:border-primary/30 stg:bg-primary-subtle stg:px-2 stg:py-0.5 stg:text-[0.65rem] stg:font-medium stg:text-primary",children:"JIT"}):null}let F=[{value:String(f.IamRole.iam_role_unspecified),label:"Default (viewer)"},{value:String(f.IamRole.viewer),label:"Viewer"},{value:String(f.IamRole.member),label:"Member"},{value:String(f.IamRole.admin),label:"Admin"}];function V({isSso:e,autoProvision:n,onAutoProvisionChange:i,autoGrant:a,onAutoGrantChange:o,autoGrantRole:l,onAutoGrantRoleChange:d,tenantOrgClaim:g,onTenantOrgClaimChange:c,disabled:u}){let m=(0,s.useId)();return e?(0,t.jsx)("div",{className:"stg:rounded-md stg:border stg:border-border-muted stg:bg-muted-faint stg:px-3 stg:py-2",children:(0,t.jsxs)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:["SSO providers automatically provision accounts and grant the"," ",(0,t.jsx)("span",{className:"stg:font-medium stg:text-foreground",children:"viewer"})," role on the owning organization. JIT provisioning settings are not applicable."]})}):(0,t.jsxs)("fieldset",{className:(0,r.cn)(b.UNSTYLED_FIELDSET,"stg:space-y-2.5"),disabled:u,children:[(0,t.jsx)("hr",{className:"stg:border-border-muted"}),(0,t.jsx)("legend",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:"JIT provisioning"}),(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:"Configure automatic account creation and role assignment for users authenticating with this provider."}),(0,t.jsx)(K,{checked:n,onChange:i,label:"Auto-provision accounts",hint:"Create a federated account automatically on first authentication",disabled:u}),(0,t.jsx)(K,{checked:a,onChange:o,label:"Auto-grant on organization",hint:"Grant a role on the owning organization when an account is provisioned",disabled:u||!n}),a&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"stg:space-y-1",children:[(0,t.jsx)("label",{htmlFor:`${m}-grant-role`,className:"stg:text-xs stg:font-medium stg:text-foreground",children:"Auto-grant role"}),(0,t.jsx)("select",{id:`${m}-grant-role`,value:String(l),onChange:e=>d(Number(e.target.value)),disabled:u,className:(0,r.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:F.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:"Role granted automatically — org admins can upgrade later"})]}),(0,t.jsx)(J,{id:`${m}-tenant-claim`,label:"Tenant org claim",value:g,onChange:c,placeholder:"e.g., org_id",hint:"JWT claim name that maps to a platform-managed organization (max 256 chars)",disabled:u})]})]})}function K({checked:e,onChange:s,label:n,hint:i,disabled:a}){return(0,t.jsxs)("div",{className:"stg:space-y-0.5",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)("button",{type:"button",role:"switch","aria-checked":e,onClick:()=>s(!e),disabled:a,className:(0,r.cn)("stg:relative stg:inline-flex stg:h-5 stg:w-9 stg:shrink-0 stg:cursor-pointer stg:rounded-full stg:border-2 stg:border-transparent stg:transition-colors",e?"stg:bg-primary":"stg:bg-muted","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:(0,t.jsx)("span",{className:(0,r.cn)("stg:pointer-events-none stg:inline-block stg:h-4 stg:w-4 stg:rounded-full stg:bg-background stg:shadow-sm stg:ring-0 stg:transition-transform",e?"stg:translate-x-4":"stg:translate-x-0")})}),(0,t.jsx)("span",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:n})]}),i&&(0,t.jsx)("p",{className:"stg:pl-11 stg:text-[0.65rem] stg:text-muted-foreground",children:i})]})}function Y(e){return e.toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})}function H(){return(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M10 3L5 8l5 5"})})}var Q=e.i(761151),X=e.i(597744),Z=e.i(170255),ee=e.i(981922),et=e.i(630983),es=e.i(297629);e.s(["IdentityProvidersSection",0,function({ssoLoginBaseUrl:e}={}){let r=(0,s.useId)(),{activeOrg:n}=(0,es.useOrg)(),i=(0,X.useResourceAvailable)(Z.ApiResourceKind.identity_provider),a=n?.metadata?.slug??"",o=n?.metadata?.id??"",l=(0,ee.useCheckPermission)(i&&o?{kind:"organization",id:o}:null,"can_create_idp"),d=!l.isLoading&&l.allowed,g=!l.isLoading&&!l.allowed,[c,m]=(0,s.useState)({phase:"idle"}),x=(0,s.useRef)(null),p=(0,s.useCallback)(e=>{x.current=e},[]),h=(0,s.useCallback)(()=>{x.current?.(),m({phase:"idle"})},[]),b=(0,s.useCallback)(()=>{x.current?.(),m({phase:"idle"})},[]),f=e??window.location.origin;return(0,t.jsxs)("section",{"aria-labelledby":r,children:[(0,t.jsxs)("div",{className:"stg:mb-3 stg:flex stg:items-center stg:justify-between",children:[(0,t.jsx)("h2",{id:r,className:"stg:text-foreground stg:text-sm stg:font-semibold",children:"Identity Providers"}),i&&a&&d&&"idle"===c.phase&&(0,t.jsx)("button",{type:"button",onClick:()=>m({phase:"creating"}),className:"stg:text-primary stg:hover:text-foreground stg:text-xs stg:font-medium stg:transition-colors",children:"+ New identity provider"})]}),(0,t.jsx)("p",{className:"stg:text-muted-foreground stg:mb-4 stg:text-xs",children:"Identity providers define external OIDC trust relationships for federated authentication. Configure providers for platform-managed organizations or self-managed SSO."}),i?a?"creating"===c.phase?(0,t.jsx)("div",{className:"stg:border-border stg:bg-card stg:rounded-lg stg:border stg:p-4",children:(0,t.jsx)(N,{org:a,onCreated:h,onCancel:()=>m({phase:"idle"})})}):"editing"===c.phase?(0,t.jsx)("div",{className:"stg:border-border stg:bg-card stg:rounded-lg stg:border stg:p-4",children:(0,t.jsx)(G,{identityProvider:c.identityProvider,ssoLoginUrl:c.identityProvider.spec?.isSsoProvider?`${f}/login?org=${a}`:void 0,onUpdated:b,onBack:()=>m({phase:"idle"})})}):(0,t.jsx)(u,{org:a,onEdit:e=>m({phase:"editing",identityProvider:e}),onRefetchRef:p,emptyState:g?Q.IDENTITY_PROVIDERS_MANAGED_BY_ADMINS:void 0}):(0,t.jsx)("p",{className:"stg:text-muted-foreground stg:py-4 stg:text-center stg:text-xs",children:"Select an organization to manage identity providers."}):(0,t.jsx)(et.CloudFeatureNotice,{children:"Identity providers are not available in local mode. Federated authentication requires Stigmer Cloud."})]})}],23280)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,367539,e=>{"use strict";e.s(["generateSlug",0,function(e){return e.toLowerCase().replace(/[ .]/g,"-").replace(/[^a-z0-9-]/g,"").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"")},"generateSlugSuffix",0,function(){return crypto.randomUUID().replace(/-/g,"").slice(0,8)}])},348990,e=>{"use strict";var t=e.i(271645),r=e.i(891287),s=e.i(95265),n=e.i(586108),a=e.i(583093);e.s(["useEnvironmentList",0,function(e,o){let i=(0,n.useStigmer)(),l=(0,t.useRef)(o);o!==l.current&&JSON.stringify(o)!==JSON.stringify(l.current)&&(l.current=o);let u=l.current,c=e?async()=>{let t=await i.environment.list((0,r.create)(s.ListEnvironmentsRequestSchema,{org:e,labels:u??{}}));return{environments:t.items,totalCount:t.totalCount}}:null,{data:d,isLoading:g,isRefetching:h,error:p,refetch:m}=(0,a.useFetch)(c,[e,u,i],{environments:[],totalCount:0});return{environments:d.environments,totalCount:d.totalCount,isLoading:g,isRefetching:h,error:p,refetch:m}}])},207344,e=>{"use strict";var t=e.i(271645),r=e.i(891287),s=e.i(95265),n=e.i(621559),a=e.i(586108),o=e.i(367539),i=e.i(326283),l=e.i(348990);let u={"stigmer.ai/personal":"true"};e.s(["usePersonalEnvironment",0,function(e){let c=(0,a.useStigmer)(),{environments:d,isLoading:g,error:h,refetch:p}=(0,l.useEnvironmentList)(e,u),m=(0,t.useMemo)(()=>d[0]??null,[d]),[v,f]=(0,t.useState)(!1),[b,x]=(0,t.useState)(null),S=(0,t.useRef)(m);S.current=m;let y=(0,t.useRef)(g);y.current=g;let w=(0,t.useCallback)(async t=>{if(S.current)return S.current;if(!e)throw Error("usePersonalEnvironment: cannot call getOrCreate when org is null.");if(y.current)throw Error("usePersonalEnvironment: cannot call getOrCreate while the environment list is loading. Wait for isLoading to become false before calling getOrCreate().");f(!0),x(null);try{let r;t&&Object.keys(t).length>0&&(r=t);let s=await c.environment.create({name:"Personal Environment",slug:`env-personal-${(0,o.generateSlugSuffix)()}`,org:e,labels:u,data:r});return S.current=s,p(),s}catch(e){throw x((0,i.toError)(e)),e}finally{f(!1)}},[e,c,p]),k=(0,t.useCallback)(async e=>{let t=S.current;if(!t)throw Error("usePersonalEnvironment: personal environment does not exist. Call getOrCreate() before addVariables().");f(!0),x(null);try{let a=Object.fromEntries(Object.entries(e).map(([e,t])=>[e,(0,r.create)(n.EnvironmentValueSchema,{value:t.value,isSecret:t.isSecret,description:t.description})])),o=(0,r.create)(s.UpdateEnvironmentVariablesRequestSchema,{environmentId:t.metadata.id,variables:a}),i=await c.environment.updateVariables(o);return p(),i}catch(e){throw x((0,i.toError)(e)),e}finally{f(!1)}},[c,p]),A=(0,t.useCallback)(async e=>{let t=S.current;if(!t)throw Error("usePersonalEnvironment: personal environment does not exist. Call getOrCreate() before removeVariables().");f(!0),x(null);try{let n=(0,r.create)(s.RemoveEnvironmentVariablesRequestSchema,{environmentId:t.metadata.id,keys:e}),a=await c.environment.removeVariables(n);return p(),a}catch(e){throw x((0,i.toError)(e)),e}finally{f(!1)}},[c,p]);return{environment:m,isLoading:g,error:b??h,refetch:p,getOrCreate:w,addVariables:k,removeVariables:A,isMutating:v}}])},521557,e=>{"use strict";e.s(["isUnimplemented",0,function(e){if(!e||"object"!=typeof e)return!1;if("connectCode"in e&&12===e.connectCode)return!0;let t=e.message??"";return t.includes("[unimplemented]")||t.includes("UNIMPLEMENTED")}])},903198,e=>{"use strict";let t="stigmer:oauth:callback",r="stigmer:oauth:broadcast";function s(e){try{e?.close()}catch{}}e.s(["OAUTH_BROADCAST_CHANNEL",0,r,"OAUTH_CALLBACK_MESSAGE_TYPE",0,t,"closeOAuthPopup",0,s,"openOAuthPopup",0,function(){let e=window.screenX+(window.outerWidth-600)/2,t=window.screenY+(window.outerHeight-700)/2;return window.open("about:blank","stigmer_oauth",`width=600,height=700,left=${e},top=${t},popup=yes`)},"popupBlockedError",0,function(){return Error("Your browser blocked the authentication popup. Please allow popups for this site and try again.")},"waitForOAuthCallback",0,function(e,n,a){return new Promise((o,i)=>{let l,u,c=!1,d=null,g=!1;function h(e){if(!c){c=!0,l&&clearTimeout(l),u&&clearInterval(u),window.removeEventListener("message",m);try{d?.close()}catch{}e instanceof Error?i(e):o(e)}}function p(e){if(e?.type===t){if(e.state!==n)return void h(Error("OAuth state mismatch — the callback did not match the initiated flow. Please try again."));if(!e.code)return void h(Error("No authorization code received from the OAuth provider."));h({code:e.code,state:e.state})}}function m(e){e.origin===window.location.origin&&p(e.data)}a(()=>{h(Error("OAuth flow was cancelled.")),s(e)}),window.addEventListener("message",m);try{d=new BroadcastChannel(r),g=!0,d.onmessage=e=>{p(e.data)}}catch{}l=setTimeout(()=>{h(Error("OAuth authentication timed out. Ensure your callback page renders <OAuthCallbackHandler /> from @stigmer/react at the URL configured as your OAuth redirect URI.")),s(e)},12e4);let v=null;u=setInterval(()=>{!g&&(e.closed?null===v?v=Date.now():Date.now()-v>5e3&&h(Error("The authentication window was closed before completing sign-in.")):v=null)},500)})}])},230849,4144,e=>{"use strict";var t=e.i(271645);e.s(["useScrollShadows",0,function(){let e=(0,t.useRef)(null),[r,s]=(0,t.useState)(!1),[n,a]=(0,t.useState)(!1),o=(0,t.useCallback)(()=>{let t=e.current;t&&(s(t.scrollTop>0),a(t.scrollTop+t.clientHeight<t.scrollHeight-1))},[]);return(0,t.useEffect)(()=>{let t=e.current;if(!t)return;t.addEventListener("scroll",o,{passive:!0});let r=new ResizeObserver(o);return r.observe(t),o(),()=>{t.removeEventListener("scroll",o),r.disconnect()}},[o]),{scrollRef:e,canScrollUp:r,canScrollDown:n}}],230849);var r=e.i(843476);e.s(["ScrollFade",0,function({position:e}){let t="top"===e;return(0,r.jsx)("div",{className:["stg:pointer-events-none stg:absolute stg:inset-x-0 stg:z-10 stg:h-3",t?"stg:top-0":"stg:bottom-0"].join(" "),style:{background:t?"linear-gradient(to bottom, var(--color-popover, hsl(0 0% 9%)), transparent)":"linear-gradient(to top, var(--color-popover, hsl(0 0% 9%)), transparent)"},"aria-hidden":"true"})}],4144)},351240,e=>{"use strict";var t=e.i(843476),r=e.i(271645),s=e.i(893976),n=e.i(230849),a=e.i(4144),o=e.i(379410);function i(){return(0,t.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M1.5 8s2.5-4.5 6.5-4.5S14.5 8 14.5 8s-2.5 4.5-6.5 4.5S1.5 8 1.5 8z"}),(0,t.jsx)("circle",{cx:"8",cy:"8",r:"2"})]})}function l(){return(0,t.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M6.59 6.59a2 2 0 0 0 2.82 2.82"}),(0,t.jsx)("path",{d:"M10.73 10.73A6.5 6.5 0 0 1 8 12.5c-4 0-6.5-4.5-6.5-4.5a11.5 11.5 0 0 1 3.77-3.73"}),(0,t.jsx)("path",{d:"M5.71 3.56A6.3 6.3 0 0 1 8 3.5c4 0 6.5 4.5 6.5 4.5a11.5 11.5 0 0 1-1.28 1.73"}),(0,t.jsx)("path",{d:"M2 2l12 12"})]})}e.s(["EnvVarForm",0,function({variables:e,onSubmit:u,onCancel:c,isSubmitting:d,disabled:g,title:h,description:p,submitLabel:m,cancelLabel:v="Back",defaultSaveForFuture:f=!0,hideSaveToggle:b=!1,poolValues:x,className:S,ariaLabel:y}){let[w,k]=(0,r.useState)(()=>Object.fromEntries(e.map(e=>{let t=x?.(e.key);return[e.key,t?.value??""]}))),[A]=(0,r.useState)(()=>{if(!x)return new Set;let t=new Set;for(let r of e)x(r.key)&&t.add(r.key);return t}),[O,E]=(0,r.useState)(new Set),[j,C]=(0,r.useState)(f),N=(0,r.useRef)(null),I=(0,n.useScrollShadows)(),M=(0,r.useId)(),P=`${M}-save-toggle`,R=g||d,L=e.every(e=>w[e.key]?.trim()!==""),T=(0,r.useCallback)((e,t)=>{k(r=>({...r,[e]:t}))},[]),U=(0,r.useCallback)(e=>{E(t=>{let r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r})},[]),_=(0,r.useCallback)(t=>{if(t.preventDefault(),!L||R)return;let r={};for(let t of e)r[t.key]={value:w[t.key],isSecret:t.isSecret,...t.description&&{description:t.description}};u(r,{saveForFuture:j})},[L,R,w,e,u,j]),V=y??(h?`Configure ${h}`:"Configure environment variables"),D=m??(j?"Save":"Use once");return(0,t.jsxs)("form",{onSubmit:_,className:(0,s.cn)("stg:w-72 stg:space-y-3",S),"aria-label":V,children:[h&&(0,t.jsxs)("div",{className:"stg:space-y-0.5",children:[(0,t.jsx)("h3",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:h}),p&&(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:p})]}),(0,t.jsxs)("div",{className:"stg:relative",children:[I.canScrollUp&&(0,t.jsx)(a.ScrollFade,{position:"top"}),(0,t.jsx)("div",{ref:I.scrollRef,className:"stg:max-h-64 stg:space-y-2.5 stg:overflow-y-auto",children:e.map((e,r)=>{let n=`${M}-env-${e.key}`,a=e.description?`${n}-desc`:void 0,o=O.has(e.key);return(0,t.jsxs)("div",{className:"stg:space-y-1",children:[(0,t.jsxs)("label",{htmlFor:n,className:"stg:flex stg:items-baseline stg:gap-1.5 stg:text-[0.65rem] stg:font-medium stg:text-muted-foreground",children:[(0,t.jsx)("span",{className:"stg:font-mono",children:e.key}),e.isSecret&&(0,t.jsx)("span",{className:"stg:text-[0.55rem] stg:uppercase stg:tracking-wider stg:text-muted-foreground-subtle",children:"secret"})]}),(0,t.jsxs)("div",{className:"stg:relative",children:[(0,t.jsx)("input",{ref:0===r?N:void 0,id:n,type:e.isSecret&&!o?"password":"text",value:w[e.key],onChange:t=>T(e.key,t.target.value),disabled:R,required:!0,"aria-required":!0,"aria-describedby":a,autoComplete:"off",autoFocus:0===r,className:(0,s.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50",e.isSecret&&"stg:pr-8")}),e.isSecret&&(0,t.jsx)("button",{type:"button",onClick:()=>U(e.key),disabled:R,className:(0,s.cn)("stg:absolute stg:right-2 stg:top-1/2 stg:-translate-y-1/2","stg:text-muted-foreground stg:hover:text-foreground","stg:disabled:pointer-events-none stg:disabled:opacity-50"),"aria-label":o?`Hide ${e.key}`:`Show ${e.key}`,tabIndex:-1,children:o?(0,t.jsx)(l,{}):(0,t.jsx)(i,{})})]}),e.description&&(0,t.jsx)("p",{id:a,className:"stg:text-[0.6rem] stg:leading-relaxed stg:text-muted-foreground-subtle",children:e.description}),A.has(e.key)&&(0,t.jsx)("p",{className:"stg:text-[0.55rem] stg:text-primary-muted",children:"Pre-filled from session variables"})]},e.key)})}),I.canScrollDown&&(0,t.jsx)(a.ScrollFade,{position:"bottom"})]}),!b&&(0,t.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-2 stg:pt-0.5",children:[(0,t.jsx)("button",{id:P,type:"button",role:"switch","aria-checked":j,onClick:()=>C(e=>!e),disabled:R,className:(0,s.cn)("stg:relative stg:mt-0.5 stg:inline-flex stg:h-4 stg:w-7 stg:shrink-0 stg:cursor-pointer stg:rounded-full stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:focus-visible:ring-offset-2","stg:disabled:pointer-events-none stg:disabled:opacity-50",j?"stg:bg-primary":"stg:bg-input"),children:(0,t.jsx)("span",{className:(0,s.cn)("stg:pointer-events-none stg:block stg:h-3 stg:w-3 stg:translate-y-0.5 stg:rounded-full stg:bg-background stg:shadow-sm stg:ring-0 stg:transition-transform",j?"stg:translate-x-3.5":"stg:translate-x-0.5")})}),(0,t.jsxs)("label",{htmlFor:P,className:"stg:cursor-pointer stg:select-none stg:space-y-0.5",children:[(0,t.jsx)("span",{className:"stg:block stg:text-[0.65rem] stg:font-medium stg:text-muted-foreground",children:"Save for future runs"}),!j&&(0,t.jsx)("span",{className:"stg:block stg:text-[0.6rem] stg:leading-relaxed stg:text-muted-foreground-subtle",children:"These values will only be used for this run."})]})]}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-end stg:gap-2 stg:pt-1",children:[c&&(0,t.jsx)("button",{type:"button",onClick:c,disabled:R,className:(0,s.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-xs","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:v}),(0,t.jsxs)("button",{type:"submit",disabled:!L||R,"data-cursor-target":"env-form-submit",className:(0,s.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:px-3 stg:py-1.5 stg:text-xs stg:font-medium","stg:bg-primary stg:text-primary-foreground","stg:hover:bg-primary-hover","stg:disabled:pointer-events-none stg:disabled:opacity-40"),children:[d&&(0,t.jsx)(o.SpinnerIcon,{size:12}),D]})]})]})}])},793907,e=>{"use strict";var t=e.i(843476),r=e.i(893976);function s({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M8 1.5 1 14h14L8 1.5Z"}),(0,t.jsx)("path",{d:"M8 6v3.5"}),(0,t.jsx)("circle",{cx:"8",cy:"11.5",r:"0.5",fill:"currentColor",stroke:"none"})]})}function n({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M12 8.667v4A1.333 1.333 0 0 1 10.667 14H3.333A1.333 1.333 0 0 1 2 12.667V5.333A1.333 1.333 0 0 1 3.333 4h4"}),(0,t.jsx)("path",{d:"M10 2h4v4"}),(0,t.jsx)("path",{d:"M6.667 9.333 14 2"})]})}e.s(["VendorApprovalBlockedNotice",0,function({blocked:e,pending:a,manualEntrySupported:o,canBringOwnApp:i,docsUrl:l,onBringOwnApp:u,compact:c,className:d}){if(!e)return null;let g=a?"The platform's OAuth app is awaiting vendor approval.":"The platform's OAuth app was not approved by the vendor.",h=i?o?"You can use your own OAuth app or enter a token manually.":"You can use your own OAuth app.":o?"You can still connect by entering your own token manually.":"OAuth sign-in is temporarily unavailable for this server.",p=i&&u,m=!!l&&!i;return c?(0,t.jsxs)("div",{className:(0,r.cn)("stg:text-[0.65rem] stg:text-amber-700 stg:dark:text-amber-300",d),children:[(0,t.jsxs)("p",{children:[g," ",h]}),p&&(0,t.jsx)("button",{type:"button",onClick:u,className:"stg:mt-1 stg:inline-flex stg:items-center stg:gap-1 stg:rounded stg:bg-amber-600 stg:px-2 stg:py-0.5 stg:text-[0.6rem] stg:font-medium stg:text-white stg:hover:bg-amber-700 stg:dark:bg-amber-500 stg:dark:text-amber-950 stg:dark:hover:bg-amber-400",children:"Use your own OAuth app"}),m&&(0,t.jsx)("a",{href:l??void 0,target:"_blank",rel:"noopener noreferrer",className:"stg:underline stg:decoration-amber-600/40 stg:underline-offset-2 stg:hover:decoration-amber-600 stg:dark:decoration-amber-400/40 stg:dark:hover:decoration-amber-400",children:"Learn how to bring your own token"})]}):(0,t.jsxs)("div",{role:"status",className:(0,r.cn)("stg:flex stg:items-start stg:gap-2 stg:bg-amber-500/5 stg:px-3 stg:py-2",d),children:[(0,t.jsx)(s,{className:"stg:mt-0.5 stg:size-3.5 stg:shrink-0 stg:text-amber-600 stg:dark:text-amber-400"}),(0,t.jsxs)("div",{className:"stg:flex-1 stg:text-xs stg:text-amber-700 stg:dark:text-amber-300",children:[(0,t.jsxs)("p",{children:[g," ",h]}),p&&(0,t.jsx)("button",{type:"button",onClick:u,"data-cursor-target":"byoa-cta-button",className:"stg:mt-1.5 stg:inline-flex stg:items-center stg:gap-1 stg:rounded-md stg:bg-amber-600 stg:px-2.5 stg:py-1 stg:text-[11px] stg:font-medium stg:text-white stg:hover:bg-amber-700 stg:dark:bg-amber-500 stg:dark:text-amber-950 stg:dark:hover:bg-amber-400",children:"Use your own OAuth app"}),m&&(0,t.jsxs)("a",{href:l??void 0,target:"_blank",rel:"noopener noreferrer",className:"stg:mt-1 stg:inline-flex stg:items-center stg:gap-1 stg:underline stg:decoration-amber-600/40 stg:underline-offset-2 stg:hover:decoration-amber-600 stg:dark:decoration-amber-400/40 stg:dark:hover:decoration-amber-400",children:["Learn how to bring your own token",(0,t.jsx)(n,{className:"stg:size-3 stg:shrink-0"})]})]})]})}])},20883,e=>{"use strict";var t=e.i(939910),r=e.i(167937),s=e.i(498931),n=e.i(910304);class a extends Error{mcpServerId;constructor(e,t){super(`the connect of MCP server '${e}' is still running server-side after ${Math.round(t/1e3)}s — it will persist its result on its own; re-read the server to observe the outcome`),this.name="ConnectStillRunningError",this.mcpServerId=e}}async function o(e,o,l){let u,c=l?.pollIntervalMs??2500,d=Math.min(l?.deadlineMs??39e5,39e5);try{u=await e.startConnect(o)}catch(t){if(!(0,n.isUnimplemented)(t))throw t;return i(e,o,d)}l?.onStarted?.(u);let g=Date.now()+d;for(;;){if(Date.now()>=g)throw new a(o.mcpServerId,d);await function(e){return new Promise(t=>setTimeout(t,e))}(Math.min(c,Math.max(1,g-Date.now())));let i=await e.get(o.mcpServerId),l=i.status?.connectStatus;if(l?.phase===s.ConnectPhase.succeeded)return i;if(l?.phase===s.ConnectPhase.failed)throw function(e,s){let a=t.Code[e];return(0,n.wrapError)(new r.ConnectError(s,"number"==typeof a?a:t.Code.Unknown))}(l.failureCode,l.failureMessage)}}async function i(e,t,r){let s,n=e.connect(t);n.catch(()=>{});let o=new Promise((e,n)=>{s=setTimeout(()=>n(new a(t.mcpServerId,r)),r)});try{return await Promise.race([n,o])}finally{void 0!==s&&clearTimeout(s)}}e.s(["connectAndWait",0,o])},139666,e=>{"use strict";let t="STIGMER_SERVER_ADDRESS",r="STIGMER_API_KEY",s=new Set([t,r]);async function n(e){var s;let n=await e.getAuthCredential();return s=e.baseUrl,{[t]:{value:function(e){try{let t=new URL(e),r=t.hostname,s=t.port||("https:"===t.protocol?"443":"80");return`${r}:${s}`}catch{return e}}(s),isSecret:!1,description:"Auto-resolved from the current Stigmer connection."},[r]:{value:n||"unused",isSecret:!0,description:"Auto-resolved from the current Stigmer auth context."}}}async function a(e,t){let r=t instanceof Set?t:new Set(t);if(![...s].some(e=>r.has(e)))return{};let a=await n(e),o={};for(let[e,t]of Object.entries(a))r.has(e)&&(o[e]=t);return o}e.s(["SYSTEM_ENV_VAR_KEYS",0,s,"resolveDeclaredSystemEnvVars",0,a,"resolveSystemEnvVarValues",0,n])},168197,e=>{"use strict";var t=e.i(271645),r=e.i(891287),s=e.i(20883),n=e.i(610595),a=e.i(336973),o=e.i(586108),i=e.i(139666),l=e.i(326283),u=e.i(903198);e.s(["getOAuthConnectErrorMessage",0,function(e,t){let r=(0,n.getUserMessage)(e);return"connecting"===t?`Signed in successfully, but tool discovery failed: ${r}`:r},"useMcpServerOAuthConnect",0,function(){let e=(0,o.useStigmer)(),[n,c]=(0,t.useState)("idle"),[d,g]=(0,t.useState)(null),[h,p]=(0,t.useState)(null),m=(0,t.useRef)(null),v=(0,t.useRef)(null),f=(0,t.useRef)(!1),b=(0,t.useRef)("idle"),x=(0,t.useCallback)(e=>{b.current=e,c(e)},[]);(0,t.useEffect)(()=>()=>{v.current?.()},[]);let S=(0,t.useCallback)(()=>{(v.current||m.current)&&(f.current=!0,v.current?.(),(0,u.closeOAuthPopup)(m.current),m.current=null,v.current=null),x("idle"),g(null),p(null)},[x]);return{startOAuth:(0,t.useCallback)(async(t,n,o)=>{x("initiating"),g(null),p(null),f.current=!1,v.current?.();let c=(0,u.openOAuthPopup)();if(!c){let e=(0,u.popupBlockedError)();throw g(e),p("initiating"),x("idle"),e}m.current=c;try{let l=await e.mcpServer.initiateOAuthConnect((0,r.create)(a.InitiateOAuthConnectInputSchema,{mcpServerId:t,org:n}));c.location.href=l.authorizationUrl,x("awaiting-callback");let{code:d,state:g}=await (0,u.waitForOAuthCallback)(c,l.state,e=>{v.current=e});x("completing"),await e.mcpServer.completeOAuthConnect((0,r.create)(a.CompleteOAuthConnectInputSchema,{mcpServerId:t,authorizationCode:d,state:g})),x("connecting");let h=o?await (0,i.resolveDeclaredSystemEnvVars)(e,o):{},p={};for(let[e,t]of Object.entries(h))p[e]={value:t.value,isSecret:t.isSecret??!1};let m=(0,r.create)(a.ConnectInputSchema,{mcpServerId:t,org:n,...Object.keys(p).length>0?{runtimeEnv:p}:{}}),f=await (0,s.connectAndWait)(e.mcpServer,m);return x("done"),f}catch(t){let e=(0,l.toError)(t);throw f.current||(g(e),p(b.current),x("idle"),(0,u.closeOAuthPopup)(c)),f.current=!1,e}finally{m.current=null,v.current=null}},[e,x]),isInProgress:"idle"!==n&&"done"!==n,phase:n,error:d,failedPhase:h,clearError:S}}])},862645,e=>{"use strict";var t=e.i(271645),r=e.i(891287),s=e.i(336973),n=e.i(20883),a=e.i(586108),o=e.i(139666),i=e.i(326283);e.s(["useMcpServerConnect",0,function(){let e=(0,a.useStigmer)(),[l,u]=(0,t.useState)(!1),[c,d]=(0,t.useState)(null),g=(0,t.useCallback)(()=>d(null),[]);return{connect:(0,t.useCallback)(async(t,a,l,c)=>{u(!0),d(null);try{let i={...c?await (0,o.resolveDeclaredSystemEnvVars)(e,c):{},...l??{}},u={};for(let[e,t]of Object.entries(i))u[e]={value:t.value,isSecret:t.isSecret??!1};let d=(0,r.create)(s.ConnectInputSchema,{mcpServerId:t,org:a,...Object.keys(u).length>0?{runtimeEnv:u}:{}});return await (0,n.connectAndWait)(e.mcpServer,d)}catch(t){let e=(0,i.toError)(t);throw d(e),e}finally{u(!1)}},[e]),isConnecting:l,error:c,clearError:g}}])},727996,288270,651424,153158,e=>{"use strict";var t=e.i(910304),r=e.i(586108),s=e.i(583093);e.s(["useMcpServer",0,function(e,n){let a=(0,r.useStigmer)(),{data:o,isLoading:i,isRefetching:l,error:u,refetch:c}=(0,s.useFetch)(e&&n?async()=>{try{return await a.mcpServer.getByReference({org:e,slug:n})}catch(e){if((0,t.isNotFound)(e))return null;throw e}}:null,[e,n,a],null);return{mcpServer:o,isLoading:i,isRefetching:l,error:u,refetch:c}}],727996);var n=e.i(271645),a=e.i(498931),o=e.i(437241),i=e.i(207344);function l(e,t,r){let s=[];for(let[n,a]of Object.entries(e))!t.has(n)&&(r?.has(n)||s.push({key:n,isSecret:a.isSecret,...a.description&&{description:a.description},...a.optional&&{optional:!0}}));return s}e.s(["diffEnv",0,l],288270);var u=e.i(139666),c=e.i(891287),d=e.i(336973);let g={connected:!1,accessTokenExpiresAt:BigInt(0),targetEnvVar:"",authMethod:"",connectionHealth:d.OAuthConnectionHealth.OAUTH_CONNECTION_HEALTH_UNSPECIFIED};var h=e.i(521557),p=e.i(326283);let m={isSupported:!1,hasOverride:!1,oauthAppId:null,clientId:null},v={isSupported:!1,hasOverride:!1,oauthAppId:null,clientId:null},f={...m,isLoading:!1,isRefetching:!1,error:null,refetch:()=>{},setOrgOAuthApp:()=>Promise.resolve(""),isSetting:!1,setError:null,deleteOrgOAuthApp:()=>Promise.resolve(!1),isDeleting:!1,deleteError:null,clearErrors:()=>{}};function b(e,t){let a=(0,r.useStigmer)(),{data:o,isLoading:i,isRefetching:l,error:u,refetch:g}=(0,s.useFetch)(e&&t?async()=>{try{let r=await a.mcpServer.getOrgOAuthApp((0,c.create)(d.GetOrgOAuthAppInputSchema,{resourceId:e,org:t}));return{isSupported:!0,hasOverride:r.hasOverride,oauthAppId:r.oauthAppId||null,clientId:r.clientId||null}}catch(e){if((0,h.isUnimplemented)(e))return v;throw e}}:null,[e,t,a],m,{cacheKey:`org-oauth-app:${t}:${e}`}),[b,x]=(0,n.useState)(!1),[S,y]=(0,n.useState)(null),[w,k]=(0,n.useState)(!1),[A,O]=(0,n.useState)(null),E=(0,n.useCallback)(()=>{y(null),O(null)},[]),j=(0,n.useCallback)(async(r,s)=>{if(!e||!t)throw Error("useOrgOAuthApp: resourceId and org are required for setOrgOAuthApp");x(!0),y(null);try{return(await a.mcpServer.setOrgOAuthApp((0,c.create)(d.SetOrgOAuthAppInputSchema,{resourceId:e,org:t,clientId:r,clientSecret:s}))).oauthAppId}catch(t){let e=(0,p.toError)(t);throw y(e),e}finally{x(!1)}},[a,e,t]),C=(0,n.useCallback)(async()=>{if(!e||!t)throw Error("useOrgOAuthApp: resourceId and org are required for deleteOrgOAuthApp");k(!0),O(null);try{return(await a.mcpServer.deleteOrgOAuthApp((0,c.create)(d.DeleteOrgOAuthAppInputSchema,{resourceId:e,org:t}))).deleted}catch(t){let e=(0,p.toError)(t);throw O(e),e}finally{k(!1)}},[a,e,t]);return e&&t?{...o,isLoading:i,isRefetching:l,error:u,refetch:g,setOrgOAuthApp:j,isSetting:b,setError:S,deleteOrgOAuthApp:C,isDeleting:w,deleteError:A,clearErrors:E}:{...f,refetch:g,clearErrors:E}}e.s(["useOrgOAuthApp",0,b],651424),e.s(["useMcpServerCredentials",0,function(e,t){let h=(0,i.usePersonalEnvironment)(e),[p,m]=(0,n.useState)(!1),v=t?.spec?.auth,f=v?"oauth":"manual",x=v?.targetEnvVar||null,S=v?.tokenLifetimeHint||null,y=!v?.oauthOnly,w=p&&y,k=t?.status?.oauthStatus,A="oauth"===f&&k?.vendorApprovalStatus===o.VendorApprovalStatus.PENDING,O="oauth"===f&&(k?.vendorApprovalStatus===o.VendorApprovalStatus.PENDING||k?.vendorApprovalStatus===o.VendorApprovalStatus.REJECTED),E=k?.vendorApprovalDocsUrl||null,j=!!v?.oauthAppRef?.slug,C=b("oauth"===f&&j?t?.metadata?.id??null:null,e),N=C.hasOverride,I=C.isLoading||null!==C.error||j&&!e,M="oauth"!==f||I?a.OAuthAppSource.OAUTH_APP_SOURCE_UNSPECIFIED:N?a.OAuthAppSource.OAUTH_APP_SOURCE_ORG_OVERRIDE:j?a.OAuthAppSource.OAUTH_APP_SOURCE_PLATFORM:a.OAuthAppSource.OAUTH_APP_SOURCE_NONE,P="oauth"===f&&j&&!N&&C.isSupported,R=function(e,t){let n=(0,r.useStigmer)(),{data:a,isLoading:o,isRefetching:i,error:l,refetch:u}=(0,s.useFetch)(e&&t?async()=>{let r=await n.mcpServer.getOAuthGrantStatus((0,c.create)(d.GetOAuthGrantStatusInputSchema,{resourceId:e,org:t}));return{connected:r.connected,accessTokenExpiresAt:r.accessTokenExpiresAt,targetEnvVar:r.targetEnvVar,authMethod:r.authMethod,connectionHealth:r.connectionHealth}}:null,[e,t,n],g);return{...a,isLoading:o,isRefetching:i,error:l,refetch:u}}("oauth"===f?t?.metadata?.id??null:null,"oauth"===f?e:null),L="oauth"===f&&R.connected,T=(0,n.useMemo)(()=>new Set(Object.keys(h.environment?.spec?.data??{})),[h.environment]),U=(0,n.useMemo)(()=>{if(!t)return[];let e=t.spec?.env;return e&&0!==Object.keys(e).length?l(e,T).filter(e=>!u.SYSTEM_ENV_VAR_KEYS.has(e.key)):[]},[t,T]),_=(0,n.useMemo)(()=>U.filter(e=>!e.optional),[U]),V=(0,n.useMemo)(()=>!x||w?_:_.filter(e=>e.key!==x),[_,x,w]),D=!h.isLoading&&!R.isLoading&&0===V.length&&("manual"===f||w||L),H=(0,n.useCallback)(async e=>{await h.getOrCreate(),await h.addVariables(e)},[h]),$=(0,n.useCallback)(()=>{h.refetch(),R.refetch(),C.refetch()},[h,R,C]);return{authMode:f,oauthTargetEnvVar:x,isOAuthConnected:L,connectionHealth:R.connectionHealth,canDisconnect:L,accessTokenExpiresAt:R.accessTokenExpiresAt,tokenLifetimeHint:S,isVendorApprovalPending:A,isVendorApprovalBlocked:O,vendorApprovalDocsUrl:E,effectiveOAuthSource:M,isOrgOAuthApp:N,canBringOwnApp:P,manualEntrySupported:y,missingVariables:V,isReady:D,isLoading:h.isLoading||R.isLoading||C.isLoading,error:h.error??R.error??C.error,saveCredentials:H,isSaving:h.isMutating,refetch:$,manualOverride:w,setManualOverride:m}}],153158)},844533,801731,e=>{"use strict";var t=e.i(843476),r=e.i(893976),s=e.i(597744);function n({className:e}){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M2 5.5 8 2.5l6 3-6 3-6-3Z"}),(0,t.jsx)("path",{d:"M2 5.5v5l6 3 6-3v-5"}),(0,t.jsx)("path",{d:"M8 8.5v5"})]})}function a({className:e}){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"5",cy:"11",r:"2.5"}),(0,t.jsx)("path",{d:"M6.8 9.2 13 3"}),(0,t.jsx)("path",{d:"M11 5l1.5 1.5"}),(0,t.jsx)("path",{d:"M9 7l1.5 1.5"})]})}e.s(["StdioSandboxNotice",0,function({serverType:e,className:a}){var o;return(o=(0,s.useDeploymentMode)(),"cloud"!==o||e?.case!=="stdio")?null:(0,t.jsxs)("div",{role:"status",className:(0,r.cn)("stg:bg-muted-subtle stg:text-muted-foreground stg:flex stg:items-start stg:gap-2.5 stg:rounded-lg stg:border stg:border-transparent stg:px-4 stg:py-3",a),children:[(0,t.jsx)(n,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}),(0,t.jsx)("p",{className:"stg:text-xs stg:leading-relaxed",children:"This stdio server runs only on local runners — it won't be available to sessions on Stigmer-managed cloud compute. Run the session on a local runner (desktop app or CLI) to use it, or choose a remote (HTTP) server instead."})]})}],844533),e.s(["OAuthRequiredNotice",0,function({oauthOnly:e,className:s}){return e?(0,t.jsxs)("div",{role:"status",className:(0,r.cn)("stg:bg-muted-subtle stg:text-muted-foreground stg:flex stg:items-start stg:gap-2.5 stg:rounded-lg stg:border stg:border-transparent stg:px-4 stg:py-3",s),children:[(0,t.jsx)(a,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}),(0,t.jsx)("p",{className:"stg:text-xs stg:leading-relaxed",children:"This server requires OAuth. Sign in to connect — its hosted endpoint rejects manually-entered API tokens, so a pasted token won't work here."})]}):null}],801731)},388894,e=>{"use strict";var t=e.i(271645),r=e.i(891287),s=e.i(336973),n=e.i(586108),a=e.i(326283);e.s(["useDisconnectOAuth",0,function(){let e=(0,n.useStigmer)(),[o,i]=(0,t.useState)(!1),[l,u]=(0,t.useState)(null),c=(0,t.useCallback)(()=>u(null),[]);return{disconnect:(0,t.useCallback)(async(t,n)=>{i(!0),u(null);try{return(await e.mcpServer.disconnectOAuth((0,r.create)(s.DisconnectOAuthInputSchema,{resourceId:t,org:n}))).disconnected}catch(e){throw u((0,a.toError)(e)),e}finally{i(!1)}},[e]),isDisconnecting:o,error:l,clearError:c}}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,10337,t=>{"use strict";var e=t.i(843476),s=t.i(271645),n=t.i(893976),r=t.i(468806);t.s(["ConfirmDialog",0,function({state:t,onConfirm:i,onCancel:a}){let g=(0,s.useCallback)(t=>{t||a()},[a]);if(!t)return null;let o="destructive"===t.variant;return(0,e.jsx)(r.DialogShell,{open:!0,onOpenChange:g,width:"sm","aria-label":t.title,children:(0,e.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-4 stg:p-6",children:[(0,e.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-1.5",children:[(0,e.jsx)("h3",{className:"stg:text-base stg:font-semibold stg:text-foreground",children:t.title}),(0,e.jsx)("p",{className:"stg:text-sm stg:text-muted-foreground",children:t.description})]}),(0,e.jsxs)("div",{className:"stg:flex stg:justify-end stg:gap-2",children:[(0,e.jsx)("button",{type:"button",onClick:a,className:(0,n.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:border stg:border-input stg:bg-background stg:text-foreground","stg:hover:bg-accent stg:hover:text-accent-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:t.cancelLabel??"Cancel"}),(0,e.jsx)("button",{type:"button",onClick:i,className:(0,n.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring",o?"stg:bg-destructive stg:text-destructive-foreground stg:hover:bg-destructive-hover":"stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover"),children:t.confirmLabel??"Confirm"})]})]})})}])},966205,t=>{"use strict";var e=t.i(271645);t.s(["useConfirmAction",0,function(){let[t,s]=(0,e.useState)(null),n=(0,e.useCallback)(t=>new Promise(e=>{s({...t,resolve:e})}),[]),r=(0,e.useCallback)(()=>{t?.resolve(!0),s(null)},[t]),i=(0,e.useCallback)(()=>{t?.resolve(!1),s(null)},[t]);return(0,e.useMemo)(()=>({confirmState:t,confirm:n,handleConfirm:r,handleCancel:i}),[t,n,r,i])}])},475254,t=>{"use strict";var e=t.i(271645);let s=(...t)=>t.filter((t,e,s)=>!!t&&""!==t.trim()&&s.indexOf(t)===e).join(" ").trim(),n=t=>{let e=t.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,e,s)=>s?s.toUpperCase():e.toLowerCase());return e.charAt(0).toUpperCase()+e.slice(1)};var r={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,e.forwardRef)(({color:t="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:g="",children:o,iconNode:l,...c},d)=>(0,e.createElement)("svg",{ref:d,...r,width:n,height:n,stroke:t,strokeWidth:a?24*Number(i)/Number(n):i,className:s("lucide",g),...!o&&!(t=>{for(let e in t)if(e.startsWith("aria-")||"role"===e||"title"===e)return!0;return!1})(c)&&{"aria-hidden":"true"},...c},[...l.map(([t,s])=>(0,e.createElement)(t,s)),...Array.isArray(o)?o:[o]]));t.s(["default",0,(t,r)=>{let a=(0,e.forwardRef)(({className:a,...g},o)=>(0,e.createElement)(i,{ref:o,iconNode:r,className:s(`lucide-${n(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${t}`,a),...g}));return a.displayName=n(t),a}],475254)},678745,t=>{"use strict";let e=(0,t.i(475254).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);t.s(["default",0,e])},845132,678784,916624,t=>{"use strict";var e=t.i(843476),s=t.i(893976),n=t.i(704077),r=t.i(678745);t.s(["CheckIcon",()=>r.default],678784);var r=r,i=t.i(364354);function a(t){return(0,e.jsx)(n.Menu.Root,{...t})}function g(t){return(0,e.jsx)(n.Menu.Trigger,{...t})}function o({align:t="start",alignOffset:r=0,side:a="bottom",sideOffset:g=4,className:l,...c}){let d=(0,i.useStigmerPortalContainer)();return(0,e.jsx)(n.Menu.Portal,{container:d,children:(0,e.jsx)(n.Menu.Positioner,{className:"stg:isolate stg:z-50 stg:outline-none",align:t,alignOffset:r,side:a,sideOffset:g,children:(0,e.jsx)(n.Menu.Popup,{className:(0,s.cn)("stg:bg-popover stg:text-popover-foreground stg:ring-foreground/10","stg:data-[side=bottom]:slide-in-from-top-2 stg:data-[side=inline-end]:slide-in-from-left-2 stg:data-[side=inline-start]:slide-in-from-right-2 stg:data-[side=left]:slide-in-from-right-2 stg:data-[side=right]:slide-in-from-left-2 stg:data-[side=top]:slide-in-from-bottom-2","stg:data-open:animate-in stg:data-open:fade-in-0 stg:data-open:zoom-in-95","stg:data-closed:animate-out stg:data-closed:fade-out-0 stg:data-closed:zoom-out-95","stg:z-50 stg:max-h-(--available-height) stg:w-(--anchor-width) stg:min-w-32 stg:origin-(--transform-origin) stg:overflow-x-hidden stg:overflow-y-auto stg:rounded-lg stg:p-1 stg:shadow-md stg:ring-1 stg:duration-100 stg:outline-none stg:data-closed:overflow-hidden",l),...c})})})}function l({className:t,variant:r="default",...i}){return(0,e.jsx)(n.Menu.Item,{"data-variant":r,className:(0,s.cn)("stg:focus:bg-accent stg:focus:text-accent-foreground stg:not-data-[variant=destructive]:focus:**:text-accent-foreground","stg:data-[variant=destructive]:text-destructive stg:data-[variant=destructive]:focus:bg-destructive-subtle stg:data-[variant=destructive]:focus:text-destructive stg:data-[variant=destructive]:*:[svg]:text-destructive","stg:relative stg:flex stg:cursor-default stg:items-center stg:gap-1.5 stg:rounded-md stg:px-1.5 stg:py-1 stg:text-sm stg:outline-hidden stg:select-none","stg:data-disabled:pointer-events-none stg:data-disabled:opacity-50","stg:[&_svg]:pointer-events-none stg:[&_svg]:shrink-0 stg:[&_svg:not([class*='size-'])]:size-4",t),...i})}function c({className:t,...r}){return(0,e.jsx)(n.Menu.Separator,{className:(0,s.cn)("stg:bg-border stg:-mx-1 stg:my-1 stg:h-px",t),...r})}function d({className:t,...s}){return(0,e.jsx)("div",{role:"group",className:t,...s})}function u({className:t,...n}){return(0,e.jsx)("span",{className:(0,s.cn)("stg:text-muted-foreground stg:block stg:px-1.5 stg:py-1 stg:text-[11px] stg:font-medium stg:uppercase stg:tracking-wider stg:select-none",t),...n})}t.s(["Menu",0,a,"MenuContent",0,o,"MenuGroup",0,d,"MenuItem",0,l,"MenuLabel",0,u,"MenuRadioGroup",0,function(t){return(0,e.jsx)(n.Menu.RadioGroup,{...t})},"MenuRadioItem",0,function({className:t,children:i,...a}){return(0,e.jsxs)(n.Menu.RadioItem,{className:(0,s.cn)("stg:focus:bg-accent stg:focus:text-accent-foreground stg:focus:**:text-accent-foreground","stg:relative stg:flex stg:cursor-default stg:items-center stg:gap-1.5 stg:rounded-md stg:py-1 stg:pr-8 stg:pl-1.5 stg:text-sm stg:outline-hidden stg:select-none","stg:data-disabled:pointer-events-none stg:data-disabled:opacity-50","stg:[&_svg]:pointer-events-none stg:[&_svg]:shrink-0 stg:[&_svg:not([class*='size-'])]:size-4",t),...a,children:[(0,e.jsx)("span",{className:"stg:pointer-events-none stg:absolute stg:right-2 stg:flex stg:items-center stg:justify-center",children:(0,e.jsx)(n.Menu.RadioItemIndicator,{children:(0,e.jsx)(r.default,{})})}),i]})},"MenuSeparator",0,c,"MenuTrigger",0,g],916624);let x=Object.assign(function({children:t}){return(0,e.jsx)(a,{children:t})},{Trigger:function({children:t,className:n,"aria-label":r="Actions"}){return(0,e.jsx)(g,{className:(0,s.cn)("stg:inline-flex stg:items-center stg:justify-center stg:rounded-md stg:p-1","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:data-popup-open:bg-accent stg:data-popup-open:text-foreground",n),"aria-label":r,children:t})},Content:function({children:t,align:n="end",className:r}){return(0,e.jsx)(o,{align:n,className:(0,s.cn)("stg:min-w-44",r),children:t})},Item:function({children:t,onSelect:n,icon:r,shortcut:i,variant:a="default",disabled:g,className:o}){return(0,e.jsxs)(l,{variant:a,disabled:g,onClick:n,className:(0,s.cn)("stg:justify-between",o),children:[(0,e.jsxs)("span",{className:"stg:flex stg:items-center stg:gap-2",children:[r,(0,e.jsx)("span",{children:t})]}),i&&(0,e.jsx)("kbd",{className:"stg:ml-auto stg:text-[11px] stg:tracking-widest stg:text-muted-foreground-subtle",children:i})]})},Separator:function({className:t}){return(0,e.jsx)(c,{className:t})},Group:function({children:t,label:s,className:n}){return(0,e.jsxs)(d,{className:n,children:[s&&(0,e.jsx)(u,{children:s}),t]})}});t.s(["ActionMenu",0,x],845132)},476007,t=>{"use strict";var e=t.i(843476),s=t.i(271645),n=t.i(610595),r=t.i(893976);let i={auth:"Authentication required",permission:"Access denied","not-found":"Not found",validation:"Invalid request",server:"Server error",unavailable:"Service unavailable",cancelled:"Request cancelled",unknown:"Something went wrong"};function a({className:t}){return(0,e.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:[(0,e.jsx)("path",{d:"M7.13 2.5a1 1 0 0 1 1.74 0l5.5 9.5A1 1 0 0 1 13.5 13.5h-11a1 1 0 0 1-.87-1.5l5.5-9.5z"}),(0,e.jsx)("path",{d:"M8 6v3"}),(0,e.jsx)("circle",{cx:"8",cy:"11",r:"0.5",fill:"currentColor",stroke:"none"})]})}function g({className:t}){return(0,e.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:[(0,e.jsx)("path",{d:"M8 1.5l5 2v4c0 3.5-2.5 5.5-5 6.5-2.5-1-5-3-5-6.5v-4l5-2z"}),(0,e.jsx)("path",{d:"M6 6.5l4 4M10 6.5l-4 4"})]})}function o({className:t}){return(0,e.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:(0,e.jsx)("path",{d:"M4 6l4 4 4-4"})})}function l({className:t}){return(0,e.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:[(0,e.jsx)("path",{d:"M2 6.5h4v-4"}),(0,e.jsx)("path",{d:"M3.5 11.5a5.5 5.5 0 1 0 .5-6l-2 1"})]})}t.s(["ErrorMessage",0,function({error:t,title:c,retry:d,className:u}){let[x,m]=(0,s.useState)(!1);if(!t)return null;let f=(0,n.classifyError)(t),h=(0,n.getUserMessage)(t),p=(0,n.getRpcMetadata)(t),b=(0,n.isRetryableError)(t);return(0,e.jsx)("div",{role:"alert",className:(0,r.cn)("stg:bg-destructive-subtle stg:border-destructive/20 stg:text-destructive stg:rounded-lg stg:border stg:p-4",u),children:(0,e.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-3",children:["auth"===f||"permission"===f?(0,e.jsx)(g,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}):(0,e.jsx)(a,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}),(0,e.jsxs)("div",{className:"stg:min-w-0 stg:flex-1 stg:space-y-1",children:[(0,e.jsx)("p",{className:"stg:text-sm stg:font-medium",children:c??i[f]}),(0,e.jsx)("p",{className:"stg:text-destructive-muted stg:text-sm",children:h}),p&&(0,e.jsxs)("div",{className:"stg:pt-1",children:[(0,e.jsxs)("button",{type:"button",onClick:()=>m(t=>!t),className:"stg:text-destructive-muted stg:hover:text-destructive-muted stg:inline-flex stg:items-center stg:gap-1 stg:text-xs stg:transition-colors",children:[(0,e.jsx)(o,{className:(0,r.cn)("stg:size-3 stg:transition-transform",x&&"stg:rotate-180")}),"Technical details"]}),x&&(0,e.jsxs)("dl",{className:"stg:text-destructive-muted stg:mt-1.5 stg:space-y-0.5 stg:font-mono stg:text-xs",children:[(0,e.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,e.jsx)("dt",{className:"stg:shrink-0",children:"Method:"}),(0,e.jsx)("dd",{className:"stg:truncate",children:p.method})]}),(0,e.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,e.jsx)("dt",{className:"stg:shrink-0",children:"Path:"}),(0,e.jsx)("dd",{className:"stg:truncate",children:p.path})]})]})]})]}),d&&b&&(0,e.jsxs)("button",{type:"button",onClick:d,className:(0,r.cn)("stg:inline-flex stg:shrink-0 stg:items-center stg:gap-1.5 stg:rounded-md stg:border stg:px-2.5 stg:py-1.5 stg:text-xs stg:font-medium","stg:border-destructive/20 stg:text-destructive stg:hover:bg-destructive-subtle","stg:transition-colors"),children:[(0,e.jsx)(l,{className:"stg:size-3"}),"Retry"]})]})})}])},927056,t=>{"use strict";var e=t.i(843476),s=t.i(271645),n=t.i(893976);t.s(["Tabs",0,function({tabs:t,activeTab:r,onTabChange:i,children:a,"aria-label":g,className:o}){let l=(0,s.useId)(),c=(0,s.useRef)(new Map),d=t=>`${l}-tab-${t}`,u=t=>`${l}-panel-${t}`,x=(0,s.useCallback)(t=>{c.current.get(t)?.focus(),i(t)},[i]),m=(0,s.useCallback)(e=>{let s=t.findIndex(t=>t.id===r);if(-1===s)return;let n=null;switch(e.key){case"ArrowRight":n=(s+1)%t.length;break;case"ArrowLeft":n=(s-1+t.length)%t.length;break;case"Home":n=0;break;case"End":n=t.length-1;break;default:return}e.preventDefault(),x(t[n].id)},[t,r,x]);return(0,e.jsxs)("div",{className:(0,n.cn)("stg:flex stg:flex-col",o),children:[(0,e.jsx)("div",{role:"tablist","aria-label":g,onKeyDown:m,className:"stg:flex stg:border-b stg:border-border",children:t.map(t=>{let s=t.id===r;return(0,e.jsxs)("button",{ref:e=>{e?c.current.set(t.id,e):c.current.delete(t.id)},id:d(t.id),role:"tab",type:"button","aria-selected":s,"aria-controls":u(t.id),tabIndex:s?0:-1,onClick:()=>i(t.id),"data-cursor-target":`tab-${t.id}`,className:(0,n.cn)("stg:relative stg:inline-flex stg:items-center stg:gap-1.5 stg:px-3 stg:py-2 stg:text-xs stg:font-medium stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:focus-visible:ring-offset-1",s?"stg:text-foreground":"stg:text-muted-foreground stg:hover:text-foreground"),children:[t.icon,t.label,null!=t.badge&&t.badge>0&&(0,e.jsx)("span",{"aria-hidden":"true",className:(0,n.cn)("stg:inline-flex stg:min-w-[1.25rem] stg:items-center stg:justify-center stg:rounded-full stg:px-1 stg:py-px stg:text-[10px] stg:font-medium stg:leading-none",s?"stg:bg-primary-subtle stg:text-primary":"stg:bg-muted stg:text-muted-foreground"),children:t.badge}),s&&(0,e.jsx)("span",{className:"stg:absolute stg:inset-x-0 stg:-bottom-px stg:h-0.5 stg:bg-primary","aria-hidden":"true"})]},t.id)})}),(0,e.jsx)("div",{id:u(r),role:"tabpanel","aria-labelledby":d(r),tabIndex:0,className:"stg:min-h-0 stg:flex-1 stg:pt-4 stg:focus-visible:outline-none",children:a})]})}])},193799,t=>{"use strict";var e=t.i(271645);t.s(["useCopyFeedback",0,function(){let[t,s]=(0,e.useState)(!1),n=(0,e.useRef)(null);(0,e.useEffect)(()=>()=>{null!==n.current&&clearTimeout(n.current)},[]);let r=(0,e.useCallback)(async t=>{try{await navigator.clipboard.writeText(t)}catch{return!1}return s(!0),null!==n.current&&clearTimeout(n.current),n.current=setTimeout(()=>s(!1),2e3),!0},[]);return(0,e.useMemo)(()=>({copy:r,copied:t}),[r,t])}])},266442,t=>{"use strict";var e=t.i(843476),s=t.i(893976),n=t.i(188482);let r={ready:"Ready",running:"Running",pending:"Pending",degraded:"Degraded",failed:"Failed",disabled:"Disabled",draft:"Draft"};t.s(["StatusBadge",0,function({phase:t,label:i,tooltip:a,className:g}){let o=i??r[t],l=(0,e.jsxs)("span",{className:(0,s.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-full stg:px-2 stg:py-0.5 stg:text-[11px] stg:font-medium stg:leading-none",function(t){switch(t){case"ready":return"stg:bg-[var(--stgm-status-ready-subtle)] stg:text-[var(--stgm-status-ready)]";case"running":return"stg:bg-[var(--stgm-status-running-subtle)] stg:text-[var(--stgm-status-running)]";case"pending":return"stg:bg-[var(--stgm-status-pending-subtle)] stg:text-[var(--stgm-status-pending)]";case"degraded":return"stg:bg-[var(--stgm-status-degraded-subtle)] stg:text-[var(--stgm-status-degraded)]";case"failed":return"stg:bg-[var(--stgm-status-failed-subtle)] stg:text-[var(--stgm-status-failed)]";case"disabled":return"stg:bg-[var(--stgm-status-disabled-subtle)] stg:text-[var(--stgm-status-disabled)]";case"draft":return"stg:bg-[var(--stgm-status-draft-subtle)] stg:text-[var(--stgm-status-draft)]"}}(t),g),children:[(0,e.jsx)("span",{className:(0,s.cn)("stg:size-1.5 stg:shrink-0 stg:rounded-full",function(t){switch(t){case"ready":return"stg:bg-[var(--stgm-status-ready)]";case"running":return"stg:bg-[var(--stgm-status-running)]";case"pending":return"stg:bg-[var(--stgm-status-pending)]";case"degraded":return"stg:bg-[var(--stgm-status-degraded)]";case"failed":return"stg:bg-[var(--stgm-status-failed)]";case"disabled":return"stg:bg-[var(--stgm-status-disabled)]";case"draft":return"stg:bg-[var(--stgm-status-draft)]"}}(t)),"aria-hidden":"true"}),o]});return a?(0,e.jsxs)(n.Tooltip,{children:[(0,e.jsx)(n.TooltipTrigger,{render:(0,e.jsx)("span",{className:"stg:inline-flex"}),children:l}),(0,e.jsx)(n.TooltipContent,{side:"top",children:a})]}):l}])},107141,t=>{"use strict";var e=t.i(271645),s=t.i(618566);let n="__placeholder__";t.s(["useStaticRouteParam",0,function(t,r=1){let i=(0,s.useParams)()[t];return(0,e.useMemo)(()=>{if(i!==n)return i;let t=window.location.pathname.split("/").filter(Boolean),e=t[t.length-r];return e&&e!==n?e:null},[i,r])}])},668093,652337,t=>{"use strict";var e=t.i(843476),s=t.i(893976),n=t.i(266442),r=t.i(927056),i=t.i(271645),a=t.i(845132);function g({primaryAction:t,actions:n,className:r}){let i=null!=n&&n.length>0;return t||i?(0,e.jsxs)("div",{className:(0,s.cn)("stg:flex stg:items-center stg:gap-2",r),children:[t&&(0,e.jsxs)("button",{type:"button",onClick:t.onAction,disabled:t.disabled,className:(0,s.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:[t.icon,t.label]}),i&&(0,e.jsx)(o,{actions:n})]}):null}function o({actions:t}){var s;let n=(s=t,(0,i.useMemo)(()=>{let t=new Map;for(let e of s){let s=e.group??"__default",n=t.get(s);n?n.push(e):t.set(s,[e])}return Array.from(t.entries()).map(([t,e])=>({key:t,items:e}))},[s]));return(0,e.jsxs)(a.ActionMenu,{children:[(0,e.jsx)(a.ActionMenu.Trigger,{"aria-label":"More actions",children:(0,e.jsx)(l,{className:"stg:size-4"})}),(0,e.jsx)(a.ActionMenu.Content,{children:n.map((t,s)=>(0,e.jsxs)(a.ActionMenu.Group,{children:[s>0&&(0,e.jsx)(a.ActionMenu.Separator,{}),t.items.map(t=>(0,e.jsx)(a.ActionMenu.Item,{icon:t.icon,shortcut:t.shortcut,variant:t.variant,disabled:t.disabled,onSelect:t.onAction,children:t.label},t.id))]},t.key))})]})}function l({className:t}){return(0,e.jsxs)("svg",{className:t,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:[(0,e.jsx)("circle",{cx:"8",cy:"3",r:"1.25"}),(0,e.jsx)("circle",{cx:"8",cy:"8",r:"1.25"}),(0,e.jsx)("circle",{cx:"8",cy:"13",r:"1.25"})]})}function c({header:t,visibilityControl:s,metaExtra:r}){let{name:i,nameElement:a,org:g,slug:o,qualifiedSlug:l,description:x,iconUrl:m,icon:f,createdAt:h,updatedAt:p,status:b,statusLabel:v}=t,j=o&&o!==i&&!l;return(0,e.jsxs)("div",{className:"stg:flex stg:min-w-0 stg:items-start stg:gap-3",children:[m?(0,e.jsx)("img",{src:m,alt:"",className:"stg:mt-0.5 stg:size-8 stg:shrink-0 stg:rounded stg:object-cover"}):f?(0,e.jsx)("span",{className:"stg:mt-1 stg:shrink-0",children:f}):null,(0,e.jsxs)("div",{className:"stg:min-w-0 stg:flex-1",children:[(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[a??(0,e.jsx)("h2",{className:"stg:truncate stg:text-lg stg:font-semibold stg:text-foreground",children:i}),j&&(0,e.jsx)("code",{className:"stg:shrink-0 stg:rounded stg:bg-muted stg:px-1.5 stg:py-0.5 stg:text-xs stg:font-medium stg:text-muted-foreground",children:o}),b&&(0,e.jsx)(n.StatusBadge,{phase:b,label:v}),s]}),l&&(0,e.jsx)("span",{className:"stg:mt-0.5 stg:block stg:truncate stg:font-mono stg:text-xs stg:text-muted-foreground",children:l}),(0,e.jsxs)("div",{className:"stg:mt-0.5 stg:flex stg:flex-wrap stg:items-center stg:gap-x-1.5 stg:text-xs stg:text-muted-foreground",children:[g&&(0,e.jsx)("span",{children:g}),r,h&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d,{}),(0,e.jsxs)("span",{children:["Created ",u(h)]})]}),p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d,{}),(0,e.jsxs)("span",{children:["Updated ",u(p)]})]})]}),x&&(0,e.jsx)("p",{className:"stg:mt-2 stg:text-sm stg:text-muted-foreground",children:x})]})]})}function d(){return(0,e.jsx)("span",{className:"stg:shrink-0","aria-hidden":"true",children:"·"})}function u(t){return t.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function x({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M11.5 1.5a2.121 2.121 0 0 1 3 3L5 14l-4 1 1-4Z"})})}t.s(["ResourceDetailShell",0,function({header:t,visibilityControl:n,headerMetaExtra:i,headerBanner:a,primaryAction:o,actions:l,tabs:d,activeTab:u,onTabChange:x,tabsAriaLabel:m,children:f,className:h}){let p=null!=d&&d.length>0;return(0,e.jsxs)("div",{className:(0,s.cn)("stg:flex stg:flex-col stg:gap-6",h),children:[a,(0,e.jsxs)("div",{className:"stg:flex stg:items-start stg:justify-between stg:gap-4",children:[(0,e.jsx)(c,{header:t,visibilityControl:n,metaExtra:i}),(0,e.jsx)(g,{primaryAction:o,actions:l,className:"stg:shrink-0"})]}),p&&u&&x?(0,e.jsx)(r.Tabs,{tabs:d,activeTab:u,onTabChange:x,"aria-label":m,children:f}):f]})}],668093),t.s(["Section",0,function({title:t,count:n,headerActions:r,onEdit:i,scrollTarget:a,children:g,className:o}){return(0,e.jsxs)("section",{className:o,"data-scroll-target":a,children:[(0,e.jsxs)("div",{className:"stg:mb-2 stg:flex stg:items-center stg:gap-2",children:[(0,e.jsx)("h3",{className:"stg:text-xs stg:font-medium stg:uppercase stg:tracking-wider stg:text-muted-foreground",children:t}),null!=n&&n>0&&(0,e.jsx)("span",{className:"stg:inline-flex stg:size-5 stg:items-center stg:justify-center stg:rounded-full stg:bg-muted stg:text-[10px] stg:font-semibold stg:text-muted-foreground",children:n}),(r||i)&&(0,e.jsxs)("div",{className:"stg:ml-auto stg:flex stg:items-center stg:gap-1",children:[r,i&&(0,e.jsx)("button",{type:"button",onClick:i,"aria-label":`Edit ${t.toLowerCase()}`,className:(0,s.cn)("stg:inline-flex stg:size-6 stg:items-center stg:justify-center stg:rounded-md stg:text-muted-foreground","stg:hover:bg-accent-hover stg:hover:text-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:transition-colors"),children:(0,e.jsx)(x,{className:"stg:size-3.5"})})]})]}),(0,e.jsx)("div",{className:"stg:overflow-hidden stg:rounded-lg stg:border stg:border-border",children:g})]})}],652337)},261722,t=>{"use strict";var e=t.i(843476),s=t.i(271645),n=t.i(893976);function r({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M11.5 1.5a2.121 2.121 0 0 1 3 3L5 14l-4 1 1-4Z"})})}function i(){return(0,e.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",className:"stg:animate-spin","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M8 2a6 6 0 1 0 6 6"})})}t.s(["InlineEditTextarea",0,function({value:t,onSave:a,placeholder:g="Click to edit",validate:o,minRows:l=3,disabled:c,isSaving:d,error:u,className:x}){let[m,f]=(0,s.useState)(!1),[h,p]=(0,s.useState)(t),[b,v]=(0,s.useState)(null),j=(0,s.useRef)(null);(0,s.useEffect)(()=>{m&&(p(t),v(null),requestAnimationFrame(()=>{let t=j.current;t&&(t.focus(),t.selectionStart=t.value.length)}))},[m,t]),(0,s.useEffect)(()=>{let t=j.current;t&&(t.style.height="auto",t.style.height=`${t.scrollHeight}px`)},[h,m]);let y=(0,s.useCallback)(async()=>{if(h===t)return void f(!1);if(o){let t=o(h);if(t)return void v(t)}await a(h)&&f(!1)},[h,t,o,a]),k=(0,s.useCallback)(()=>{f(!1),p(t),v(null)},[t]),N=(0,s.useCallback)(t=>{"Enter"===t.key&&(t.ctrlKey||t.metaKey)?(t.preventDefault(),y()):"Escape"===t.key&&k()},[y,k]),w=b||u;return c||!m?(0,e.jsx)("div",{className:(0,n.cn)("stg:group/inline-edit",x),children:(0,e.jsx)("button",{type:"button",onClick:()=>{c||f(!0)},disabled:c,className:(0,n.cn)("stg:w-full stg:rounded-md stg:px-2 stg:py-1.5 stg:text-left stg:transition-colors",!c&&"stg:hover:bg-accent-hover stg:cursor-pointer",c&&"stg:cursor-default","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-inset stg:focus-visible:ring-ring"),children:(0,e.jsxs)("div",{className:"stg:flex stg:items-start stg:justify-between stg:gap-2",children:[(0,e.jsx)("pre",{className:(0,n.cn)("stg:min-w-0 stg:whitespace-pre-wrap stg:break-words stg:font-mono stg:text-sm stg:text-foreground",!t&&"stg:text-muted-foreground stg:italic stg:font-sans"),children:t||g}),!c&&(0,e.jsx)(r,{className:"stg:mt-0.5 stg:size-3 stg:shrink-0 stg:text-muted-foreground stg:opacity-0 stg:transition-opacity stg:group-hover/inline-edit:opacity-100"})]})})}):(0,e.jsxs)("div",{className:(0,n.cn)("stg:flex stg:flex-col stg:gap-1.5",x),children:[(0,e.jsx)("textarea",{ref:j,value:h,onChange:t=>{p(t.target.value),v(null)},onKeyDown:N,disabled:d,placeholder:g,rows:l,className:(0,n.cn)("stg:w-full stg:resize-y stg:rounded-md stg:border stg:border-border stg:bg-input-bg stg:px-3 stg:py-2 stg:font-mono stg:text-sm stg:text-foreground","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring","stg:disabled:opacity-50",w&&"stg:border-destructive")}),(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between",children:[(0,e.jsx)("span",{className:"stg:text-[10px] stg:text-muted-foreground",children:d?"Saving...":"Ctrl+Enter to save, Escape to cancel"}),(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-1.5",children:[(0,e.jsx)("button",{type:"button",onClick:k,disabled:d,className:(0,n.cn)("stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium","stg:border stg:border-border stg:bg-background stg:text-foreground stg:hover:bg-accent stg:hover:text-accent-foreground","stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:"Cancel"}),(0,e.jsxs)("button",{type:"button",onClick:y,disabled:d,className:(0,n.cn)("stg:inline-flex stg:items-center stg:gap-1 stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:[d&&(0,e.jsx)(i,{}),"Save"]})]})]}),w&&(0,e.jsx)("p",{className:"stg:px-1 stg:text-xs stg:text-destructive",role:"alert",children:w})]})}])},484763,t=>{"use strict";var e=t.i(843476),s=t.i(271645),n=t.i(981922),r=t.i(213149);t.s(["useManageAccess",0,function({resource:t,visibility:i,extraSection:a,label:g="Manage access"}){let[o,l]=(0,s.useState)(!1),{allowed:c}=(0,n.useCheckPermission)(t?{kind:t.kindString,id:t.id}:null,"can_view_access"),d=(0,s.useCallback)(()=>l(!0),[]);return{action:t&&c?{id:"manage-access",label:g,group:"sharing",onAction:d}:null,dialog:t?(0,e.jsx)(r.ManageAccessDialog,{open:o,onOpenChange:l,resource:t,visibility:i,extraSection:a}):null,open:d,isOpen:o}}])},141249,t=>{"use strict";var e=t.i(843476);t.s(["PluginIcon",0,function({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M6 2.5a1.5 1.5 0 0 1 3 0V4h2.5A1.5 1.5 0 0 1 13 5.5V8h-1.5a1.5 1.5 0 0 0 0 3H13v2.5a1.5 1.5 0 0 1-1.5 1.5H9v-1.5a1.5 1.5 0 0 0-3 0V15H3.5A1.5 1.5 0 0 1 2 13.5V11h1.5a1.5 1.5 0 0 0 0-3H2V5.5A1.5 1.5 0 0 1 3.5 4H6V2.5Z"})})}])},292420,t=>{"use strict";var e=t.i(843476),s=t.i(893976),n=t.i(141249);t.s(["ManagedByPluginNotice",0,function({plugin:t,onPluginClick:r,className:i}){if(null===t)return null;let a=t.metadata,g=a?.name||a?.slug||"a plugin",o=a?{org:a.org,slug:a.slug}:null;return(0,e.jsxs)("div",{role:"note",className:(0,s.cn)("stg:flex stg:items-start stg:gap-2 stg:rounded-md stg:border stg:border-border stg:bg-muted stg:px-3 stg:py-2 stg:text-sm stg:text-foreground",i),children:[(0,e.jsx)(n.PluginIcon,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0 stg:text-muted-foreground"}),(0,e.jsxs)("p",{children:["Installed by the plugin"," ",r&&o?(0,e.jsx)("button",{type:"button",onClick:()=>r(o),className:"stg:cursor-pointer stg:font-medium stg:underline stg:decoration-dotted stg:underline-offset-2 stg:hover:text-primary",children:g}):(0,e.jsx)("span",{className:"stg:font-medium",children:g}),". To change it, change the plugin and push it again; to customise, compose your own agent over its skills and servers."]})]})}])},473489,t=>{"use strict";var e=t.i(271645),s=t.i(910304),n=t.i(586108),r=t.i(583093);let i="stigmer.ai/plugin";t.s(["PLUGIN_LABEL",0,i,"useManagingPlugin",0,function(t){let a=(0,n.useStigmer)(),g=t?.[i]??null,{data:o,isLoading:l}=(0,r.useFetch)(g?async()=>{try{return await a.plugin.get(g)}catch(t){if((0,s.isNotFound)(t))return null;throw t}}:null,[g,a],null);return(0,e.useMemo)(()=>({plugin:o,isLoading:l}),[o,l])}])},244990,t=>{"use strict";var e=t.i(843476),s=t.i(271645),n=t.i(893976);function r({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M11.5 1.5a2.121 2.121 0 0 1 3 3L5 14l-4 1 1-4Z"})})}function i({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"m3 8.5 3.5 3.5 6.5-8"})})}function a({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"m4 4 8 8M12 4l-8 8"})})}function g(){return(0,e.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",className:"stg:animate-spin","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M8 2a6 6 0 1 0 6 6"})})}t.s(["InlineEditText",0,function({value:t,onSave:o,placeholder:l="Click to edit",validate:c,variant:d="default",disabled:u,isSaving:x,error:m,className:f}){let[h,p]=(0,s.useState)(!1),[b,v]=(0,s.useState)(t),[j,y]=(0,s.useState)(null),k=(0,s.useRef)(null);(0,s.useEffect)(()=>{h&&(v(t),y(null),requestAnimationFrame(()=>k.current?.focus()))},[h,t]);let N=(0,s.useCallback)(async()=>{let e=b.trim();if(e===t)return void p(!1);if(c){let t=c(e);if(t)return void y(t)}await o(e)&&p(!1)},[b,t,c,o]),w=(0,s.useCallback)(()=>{p(!1),v(t),y(null)},[t]),C=(0,s.useCallback)(t=>{"Enter"===t.key?(t.preventDefault(),N()):"Escape"===t.key&&w()},[N,w]),M=j||m;return u||!h?(0,e.jsx)("div",{className:(0,n.cn)("stg:group/inline-edit",f),children:(0,e.jsxs)("button",{type:"button",onClick:()=>{u||p(!0)},disabled:u,className:(0,n.cn)("stg:inline-flex stg:w-full stg:items-center stg:gap-1.5 stg:rounded-md stg:px-1.5 stg:py-0.5 stg:text-left stg:transition-colors",!u&&"stg:hover:bg-accent-hover stg:cursor-pointer",u&&"stg:cursor-default","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-inset stg:focus-visible:ring-ring"),children:[(0,e.jsx)("span",{className:(0,n.cn)("stg:min-w-0 stg:truncate","heading"===d?"stg:text-lg stg:font-semibold stg:text-foreground":"stg:text-sm stg:text-foreground",!t&&"stg:text-muted-foreground stg:italic"),children:t||l}),!u&&(0,e.jsx)(r,{className:"stg:size-3 stg:shrink-0 stg:text-muted-foreground stg:opacity-0 stg:transition-opacity stg:group-hover/inline-edit:opacity-100"})]})}):(0,e.jsxs)("div",{className:(0,n.cn)("stg:flex stg:flex-col stg:gap-1",f),children:[(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-1.5",children:[(0,e.jsx)("input",{ref:k,type:"text",value:b,onChange:t=>{v(t.target.value),y(null)},onKeyDown:C,disabled:x,placeholder:l,className:(0,n.cn)("stg:flex-1 stg:rounded-md stg:border stg:border-border stg:bg-input-bg stg:px-2 stg:py-1 stg:text-sm stg:text-foreground","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring","stg:disabled:opacity-50","heading"===d&&"stg:text-lg stg:font-semibold",M&&"stg:border-destructive")}),(0,e.jsx)("button",{type:"button",onClick:N,disabled:x,"aria-label":"Save",className:(0,n.cn)("stg:inline-flex stg:size-7 stg:items-center stg:justify-center stg:rounded-md","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:x?(0,e.jsx)(g,{}):(0,e.jsx)(i,{className:"stg:size-3.5"})}),(0,e.jsx)("button",{type:"button",onClick:w,disabled:x,"aria-label":"Cancel",className:(0,n.cn)("stg:inline-flex stg:size-7 stg:items-center stg:justify-center stg:rounded-md","stg:border stg:border-border stg:bg-background stg:text-foreground stg:hover:bg-accent stg:hover:text-accent-foreground","stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:(0,e.jsx)(a,{className:"stg:size-3.5"})})]}),M&&(0,e.jsx)("p",{className:"stg:px-1 stg:text-xs stg:text-destructive",role:"alert",children:M})]})}])}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,630983,e=>{"use strict";var t=e.i(843476),s=e.i(893976);function r({className:e}){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"8",cy:"8",r:"6.25"}),(0,t.jsx)("path",{d:"M8 7v4"}),(0,t.jsx)("circle",{cx:"8",cy:"5",r:"0.5",fill:"currentColor",stroke:"none"})]})}e.s(["CloudFeatureNotice",0,function({children:e,className:i}){return(0,t.jsxs)("div",{role:"status",className:(0,s.cn)("stg:bg-muted-subtle stg:text-muted-foreground stg:flex stg:items-start stg:gap-2.5 stg:rounded-lg stg:border stg:border-transparent stg:px-4 stg:py-3",i),children:[(0,t.jsx)(r,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}),(0,t.jsx)("p",{className:"stg:text-xs stg:leading-relaxed",children:e})]})}])},162697,e=>{"use strict";e.s(["selectElementText",0,function(e){let t=window.getSelection();if(!t)return;let s=document.createRange();s.selectNodeContents(e),t.removeAllRanges(),t.addRange(s)}])},750567,e=>{"use strict";var t=e.i(891287),s=e.i(725842),r=e.i(586108),i=e.i(583093);e.s(["useIdentityProviderList",0,function(e){let n=(0,r.useStigmer)(),{data:o,isLoading:c,isRefetching:
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,630983,e=>{"use strict";var t=e.i(843476),s=e.i(893976);function r({className:e}){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"8",cy:"8",r:"6.25"}),(0,t.jsx)("path",{d:"M8 7v4"}),(0,t.jsx)("circle",{cx:"8",cy:"5",r:"0.5",fill:"currentColor",stroke:"none"})]})}e.s(["CloudFeatureNotice",0,function({children:e,className:i}){return(0,t.jsxs)("div",{role:"status",className:(0,s.cn)("stg:bg-muted-subtle stg:text-muted-foreground stg:flex stg:items-start stg:gap-2.5 stg:rounded-lg stg:border stg:border-transparent stg:px-4 stg:py-3",i),children:[(0,t.jsx)(r,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}),(0,t.jsx)("p",{className:"stg:text-xs stg:leading-relaxed",children:e})]})}])},162697,e=>{"use strict";e.s(["selectElementText",0,function(e){let t=window.getSelection();if(!t)return;let s=document.createRange();s.selectNodeContents(e),t.removeAllRanges(),t.addRange(s)}])},750567,e=>{"use strict";var t=e.i(891287),s=e.i(725842),r=e.i(586108),i=e.i(583093);e.s(["useIdentityProviderList",0,function(e){let n=(0,r.useStigmer)(),{data:o,isLoading:c,isRefetching:d,error:a,refetch:l}=(0,i.useFetch)(e?()=>n.identityProvider.listByOrg((0,t.create)(s.ListIdentityProvidersByOrgInputSchema,{org:e})).then(e=>[...e.entries]):null,[e,n],[]);return{identityProviders:o,isLoading:c,isRefetching:d,error:a,refetch:l}}])},761151,e=>{"use strict";e.s(["IDENTITY_PROVIDERS_MANAGED_BY_ADMINS",0,"Identity providers are managed by your organization's admins."])}]);
|