// Renderer for the "Create connector namespace" wizard page. Mirrors the // portal's CreateConnectorGatewayPage: subscription -> resource group // (existing or new) -> region -> name (live availability) -> managed identity // (system + user-assigned) -> real ARM provisioning. import { baseStyles, brandMark } from "./renderer.mjs"; function esc(s) { return String(s || "").replace(/[&<>"']/g, (c) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }[c])); } // Connector namespace regions — kept in sync with the portal's // CONNECTOR_NAMESPACE_REGIONS list (constants.ts). const REGIONS = [ ["australiaeast", "Australia East"], ["brazilsouth", "Brazil South"], ["canadacentral", "Canada Central"], ["canadaeast", "Canada East"], ["centralindia", "Central India"], ["centralus", "Central US"], ["eastasia", "East Asia"], ["eastus", "East US"], ["eastus2", "East US 2"], ["francecentral", "France Central"], ["germanywestcentral", "Germany West Central"], ["italynorth", "Italy North"], ["japaneast", "Japan East"], ["koreacentral", "Korea Central"], ["northcentralus", "North Central US"], ["northeurope", "North Europe"], ["norwayeast", "Norway East"], ["polandcentral", "Poland Central"], ["southafricanorth", "South Africa North"], ["southcentralus", "South Central US"], ["southindia", "South India"], ["southeastasia", "Southeast Asia"], ["spaincentral", "Spain Central"], ["swedencentral", "Sweden Central"], ["switzerlandnorth", "Switzerland North"], ["uaenorth", "UAE North"], ["uksouth", "UK South"], ["westcentralus", "West Central US"], ["westus2", "West US 2"], ["westus3", "West US 3"], ]; const DEFAULT_REGION = "eastus"; export function renderCreateNamespaceHtml(subscriptions, preselectedSub = "", capabilityToken = "") { const subOptions = subscriptions.map((s) => `` ).join(""); const regionOptions = REGIONS.map(([v, l]) => `` ).join(""); return ` Create Connector Namespace${baseStyles()}

${brandMark(28, "create")}Create connector namespace

Provisions a real Azure connector namespace (Microsoft.Web/connectorGateways) in your subscription.
Pick the resource group the namespace will live in.
`; }