@iblai/iblai-js 2.67.2 → 2.68.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/dist/web-containers/source/account-sheet.js +2 -2
- package/dist/web-containers/source/account-sheet.js.map +1 -1
- package/dist/web-containers/source/account.js +39 -21
- package/dist/web-containers/source/account.js.map +1 -1
- package/dist/web-containers/source/api/api-field-label.js +14 -0
- package/dist/web-containers/source/api/api-field-label.js.map +1 -0
- package/dist/web-containers/source/{profile/integration/api-tab → api}/api-key-modal.js +8 -8
- package/dist/web-containers/source/api/api-key-modal.js.map +1 -0
- package/dist/web-containers/source/api/api-keys-table.js +61 -0
- package/dist/web-containers/source/api/api-keys-table.js.map +1 -0
- package/dist/web-containers/source/{api-tab → api}/api-token-utils.js +34 -1
- package/dist/web-containers/source/api/api-token-utils.js.map +1 -0
- package/dist/web-containers/source/{integration/api-tab → api}/constants.js +0 -1
- package/dist/web-containers/source/api/constants.js.map +1 -0
- package/dist/web-containers/source/{profile/integration/api-tab → api}/create-api-modal.js +19 -26
- package/dist/web-containers/source/api/create-api-modal.js.map +1 -0
- package/dist/web-containers/source/api/delete-api-modal.js +31 -0
- package/dist/web-containers/source/api/delete-api-modal.js.map +1 -0
- package/dist/web-containers/source/{api-tab → api}/edit-api-modal.js +34 -28
- package/dist/web-containers/source/api/edit-api-modal.js.map +1 -0
- package/dist/web-containers/source/api/expiration-date-field.js +35 -0
- package/dist/web-containers/source/api/expiration-date-field.js.map +1 -0
- package/dist/web-containers/source/api/index.js +30 -0
- package/dist/web-containers/source/api/index.js.map +1 -0
- package/dist/web-containers/source/{integration/api-tab → api}/token-policy-fields.js +6 -6
- package/dist/web-containers/source/api/token-policy-fields.js.map +1 -0
- package/dist/web-containers/source/api-field-label.js +14 -0
- package/dist/web-containers/source/api-field-label.js.map +1 -0
- package/dist/web-containers/source/api-keys-table.js +61 -0
- package/dist/web-containers/source/api-keys-table.js.map +1 -0
- package/dist/web-containers/source/api-tab/create-api-modal.js +4 -4
- package/dist/web-containers/source/api-tab/labels.js +23 -19
- package/dist/web-containers/source/api-tab/labels.js.map +1 -1
- package/dist/web-containers/source/api-tab.js +15 -20
- package/dist/web-containers/source/api-tab.js.map +1 -1
- package/dist/web-containers/source/api-token-utils.js +34 -1
- package/dist/web-containers/source/api-token-utils.js.map +1 -1
- package/dist/web-containers/source/azure-config.js +37 -0
- package/dist/web-containers/source/azure-config.js.map +1 -0
- package/dist/web-containers/source/azure-model-fields.js +118 -0
- package/dist/web-containers/source/azure-model-fields.js.map +1 -0
- package/dist/web-containers/source/chat/index.js +5 -0
- package/dist/web-containers/source/chat/index.js.map +1 -1
- package/dist/web-containers/source/claw-sandbox/virtual-machine-network-section.js +147 -24
- package/dist/web-containers/source/claw-sandbox/virtual-machine-network-section.js.map +1 -1
- package/dist/web-containers/source/components/chat/index.js +5 -0
- package/dist/web-containers/source/components/chat/index.js.map +1 -1
- package/dist/web-containers/source/components/claw-sandbox/virtual-machine-network-section.js +147 -24
- package/dist/web-containers/source/components/claw-sandbox/virtual-machine-network-section.js.map +1 -1
- package/dist/web-containers/source/components/field-info.js +18 -0
- package/dist/web-containers/source/components/field-info.js.map +1 -0
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/api-tab/create-api-modal.js +4 -4
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/api-tab/labels.js +23 -19
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/api-tab/labels.js.map +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/api-tab.js +15 -20
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/api-tab.js.map +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/mcp-tab/connector-dialogs.js +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/mcp-tab/oauth-app-fields.js +2 -2
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/mcp-tab/oauth-app-fields.js.map +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/skills-tab/index.js +1 -1
- package/dist/web-containers/source/components/modals/user-profile-modal.js +4 -4
- package/dist/web-containers/source/components/modals/user-profile-modal.js.map +1 -1
- package/dist/web-containers/source/components/platform-sidebar/account-sheet.js +2 -2
- package/dist/web-containers/source/components/platform-sidebar/account-sheet.js.map +1 -1
- package/dist/web-containers/source/components/platform-sidebar/footer.js +15 -14
- package/dist/web-containers/source/components/platform-sidebar/footer.js.map +1 -1
- package/dist/web-containers/source/components/platform-sidebar/index.js +0 -2
- package/dist/web-containers/source/components/platform-sidebar/index.js.map +1 -1
- package/dist/web-containers/source/components/profile/account.js +39 -21
- package/dist/web-containers/source/components/profile/account.js.map +1 -1
- package/dist/web-containers/source/components/profile/api/api-field-label.js +14 -0
- package/dist/web-containers/source/components/profile/api/api-field-label.js.map +1 -0
- package/dist/web-containers/source/{integration/api-tab → components/profile/api}/api-key-modal.js +8 -8
- package/dist/web-containers/source/components/profile/api/api-key-modal.js.map +1 -0
- package/dist/web-containers/source/components/profile/api/api-keys-table.js +61 -0
- package/dist/web-containers/source/components/profile/api/api-keys-table.js.map +1 -0
- package/dist/web-containers/source/{integration/api-tab → components/profile/api}/api-token-utils.js +34 -1
- package/dist/web-containers/source/components/profile/api/api-token-utils.js.map +1 -0
- package/dist/web-containers/source/components/profile/{integration/api-tab → api}/constants.js +0 -1
- package/dist/web-containers/source/components/profile/api/constants.js.map +1 -0
- package/dist/web-containers/source/{integration/api-tab → components/profile/api}/create-api-modal.js +19 -26
- package/dist/web-containers/source/components/profile/api/create-api-modal.js.map +1 -0
- package/dist/web-containers/source/components/profile/api/delete-api-modal.js +31 -0
- package/dist/web-containers/source/components/profile/api/delete-api-modal.js.map +1 -0
- package/dist/web-containers/source/components/profile/{integration/api-tab → api}/edit-api-modal.js +34 -28
- package/dist/web-containers/source/components/profile/api/edit-api-modal.js.map +1 -0
- package/dist/web-containers/source/components/profile/api/expiration-date-field.js +35 -0
- package/dist/web-containers/source/components/profile/api/expiration-date-field.js.map +1 -0
- package/dist/web-containers/source/components/profile/api/index.js +30 -0
- package/dist/web-containers/source/components/profile/api/index.js.map +1 -0
- package/dist/web-containers/source/{profile/integration/api-tab → components/profile/api}/token-policy-fields.js +6 -6
- package/dist/web-containers/source/components/profile/api/token-policy-fields.js.map +1 -0
- package/dist/web-containers/source/components/profile/info-banner.js +3 -1
- package/dist/web-containers/source/components/profile/info-banner.js.map +1 -1
- package/dist/web-containers/source/components/profile/integration/index.js +17 -38
- package/dist/web-containers/source/components/profile/integration/index.js.map +1 -1
- package/dist/web-containers/source/components/profile/secrets/index.js +106 -0
- package/dist/web-containers/source/components/profile/secrets/index.js.map +1 -0
- package/dist/web-containers/source/components/profile/secrets/secrets-list.js +237 -0
- package/dist/web-containers/source/components/profile/secrets/secrets-list.js.map +1 -0
- package/dist/web-containers/source/components/profile/virtual-machine-admin/index.js +12 -18
- package/dist/web-containers/source/components/profile/virtual-machine-admin/index.js.map +1 -1
- package/dist/web-containers/source/components/profile/virtual-machine-admin/network-policies-section.js +5 -4
- package/dist/web-containers/source/components/profile/virtual-machine-admin/network-policies-section.js.map +1 -1
- package/dist/web-containers/source/components/tooltip-icon-button.js +15 -0
- package/dist/web-containers/source/components/tooltip-icon-button.js.map +1 -0
- package/dist/web-containers/source/components/user-profile-dropdown/index.js +2 -0
- package/dist/web-containers/source/components/user-profile-dropdown/index.js.map +1 -1
- package/dist/web-containers/source/components/virtual-machine/azure-config.js +37 -0
- package/dist/web-containers/source/components/virtual-machine/azure-config.js.map +1 -0
- package/dist/web-containers/source/components/virtual-machine/azure-model-fields.js +118 -0
- package/dist/web-containers/source/components/virtual-machine/azure-model-fields.js.map +1 -0
- package/dist/web-containers/source/components/virtual-machine/credential-options.js +268 -22
- package/dist/web-containers/source/components/virtual-machine/credential-options.js.map +1 -1
- package/dist/web-containers/source/components/virtual-machine/host-port-chip-input.js +14 -8
- package/dist/web-containers/source/components/virtual-machine/host-port-chip-input.js.map +1 -1
- package/dist/web-containers/source/components/virtual-machine/network-policy-dialog.js +30 -6
- package/dist/web-containers/source/components/virtual-machine/network-policy-dialog.js.map +1 -1
- package/dist/web-containers/source/components/virtual-machine/secret-rows.js +66 -0
- package/dist/web-containers/source/components/virtual-machine/secret-rows.js.map +1 -0
- package/dist/web-containers/source/components/virtual-machine/vm-secret-dialog.js +848 -158
- package/dist/web-containers/source/components/virtual-machine/vm-secret-dialog.js.map +1 -1
- package/dist/web-containers/source/connector-dialogs.js +1 -1
- package/dist/web-containers/source/constants.js +55 -22
- package/dist/web-containers/source/constants.js.map +1 -1
- package/dist/web-containers/source/create-api-modal.js +4 -4
- package/dist/web-containers/source/credential-options.js +268 -22
- package/dist/web-containers/source/credential-options.js.map +1 -1
- package/dist/web-containers/source/edit-api-modal.js +34 -28
- package/dist/web-containers/source/edit-api-modal.js.map +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/api-tab/create-api-modal.js +4 -4
- package/dist/web-containers/source/edit-mentor-modal/tabs/api-tab/labels.js +23 -19
- package/dist/web-containers/source/edit-mentor-modal/tabs/api-tab/labels.js.map +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/api-tab.js +15 -20
- package/dist/web-containers/source/edit-mentor-modal/tabs/api-tab.js.map +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/mcp-tab/connector-dialogs.js +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/mcp-tab/oauth-app-fields.js +2 -2
- package/dist/web-containers/source/edit-mentor-modal/tabs/mcp-tab/oauth-app-fields.js.map +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/skills-tab/index.js +1 -1
- package/dist/web-containers/source/en.json.js +278 -227
- package/dist/web-containers/source/en.json.js.map +1 -1
- package/dist/web-containers/source/es.json.js +449 -398
- package/dist/web-containers/source/es.json.js.map +1 -1
- package/dist/web-containers/source/expiration-date-field.js +16 -10
- package/dist/web-containers/source/expiration-date-field.js.map +1 -1
- package/dist/web-containers/source/field-info.js +11 -7
- package/dist/web-containers/source/field-info.js.map +1 -1
- package/dist/web-containers/source/footer.js +15 -14
- package/dist/web-containers/source/footer.js.map +1 -1
- package/dist/web-containers/source/fr.json.js +457 -406
- package/dist/web-containers/source/fr.json.js.map +1 -1
- package/dist/web-containers/source/host-port-chip-input.js +14 -8
- package/dist/web-containers/source/host-port-chip-input.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/en.json.js +278 -227
- package/dist/web-containers/source/i18n/messages/en.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/es.json.js +449 -398
- package/dist/web-containers/source/i18n/messages/es.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/fr.json.js +457 -406
- package/dist/web-containers/source/i18n/messages/fr.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/zh.json.js +456 -405
- package/dist/web-containers/source/i18n/messages/zh.json.js.map +1 -1
- package/dist/web-containers/source/info-banner.js +3 -1
- package/dist/web-containers/source/info-banner.js.map +1 -1
- package/dist/web-containers/source/integration/index.js +17 -38
- package/dist/web-containers/source/integration/index.js.map +1 -1
- package/dist/web-containers/source/mcp-tab/connector-dialogs.js +1 -1
- package/dist/web-containers/source/mcp-tab/oauth-app-fields.js +2 -2
- package/dist/web-containers/source/mcp-tab/oauth-app-fields.js.map +1 -1
- package/dist/web-containers/source/messages/en.json.js +278 -227
- package/dist/web-containers/source/messages/en.json.js.map +1 -1
- package/dist/web-containers/source/messages/es.json.js +449 -398
- package/dist/web-containers/source/messages/es.json.js.map +1 -1
- package/dist/web-containers/source/messages/fr.json.js +457 -406
- package/dist/web-containers/source/messages/fr.json.js.map +1 -1
- package/dist/web-containers/source/messages/zh.json.js +456 -405
- package/dist/web-containers/source/messages/zh.json.js.map +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/api-tab/create-api-modal.js +4 -4
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/api-tab/labels.js +23 -19
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/api-tab/labels.js.map +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/api-tab.js +15 -20
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/api-tab.js.map +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/mcp-tab/connector-dialogs.js +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/mcp-tab/oauth-app-fields.js +2 -2
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/mcp-tab/oauth-app-fields.js.map +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/skills-tab/index.js +1 -1
- package/dist/web-containers/source/modals/user-profile-modal.js +4 -4
- package/dist/web-containers/source/modals/user-profile-modal.js.map +1 -1
- package/dist/web-containers/source/network-policies-section.js +5 -4
- package/dist/web-containers/source/network-policies-section.js.map +1 -1
- package/dist/web-containers/source/network-policy-dialog.js +30 -6
- package/dist/web-containers/source/network-policy-dialog.js.map +1 -1
- package/dist/web-containers/source/oauth-app-fields.js +2 -2
- package/dist/web-containers/source/oauth-app-fields.js.map +1 -1
- package/dist/web-containers/source/platform-sidebar/account-sheet.js +2 -2
- package/dist/web-containers/source/platform-sidebar/account-sheet.js.map +1 -1
- package/dist/web-containers/source/platform-sidebar/footer.js +15 -14
- package/dist/web-containers/source/platform-sidebar/footer.js.map +1 -1
- package/dist/web-containers/source/platform-sidebar/index.js +0 -2
- package/dist/web-containers/source/platform-sidebar/index.js.map +1 -1
- package/dist/web-containers/source/profile/account.js +39 -21
- package/dist/web-containers/source/profile/account.js.map +1 -1
- package/dist/web-containers/source/profile/api/api-field-label.js +14 -0
- package/dist/web-containers/source/profile/api/api-field-label.js.map +1 -0
- package/dist/web-containers/source/{components/profile/integration/api-tab → profile/api}/api-key-modal.js +8 -8
- package/dist/web-containers/source/profile/api/api-key-modal.js.map +1 -0
- package/dist/web-containers/source/profile/api/api-keys-table.js +61 -0
- package/dist/web-containers/source/profile/api/api-keys-table.js.map +1 -0
- package/dist/web-containers/source/profile/{integration/api-tab → api}/api-token-utils.js +34 -1
- package/dist/web-containers/source/profile/api/api-token-utils.js.map +1 -0
- package/dist/web-containers/source/{api-tab → profile/api}/constants.js +0 -1
- package/dist/web-containers/source/profile/api/constants.js.map +1 -0
- package/dist/web-containers/source/{components/profile/integration/api-tab → profile/api}/create-api-modal.js +19 -26
- package/dist/web-containers/source/profile/api/create-api-modal.js.map +1 -0
- package/dist/web-containers/source/profile/api/delete-api-modal.js +31 -0
- package/dist/web-containers/source/profile/api/delete-api-modal.js.map +1 -0
- package/dist/web-containers/source/{integration/api-tab → profile/api}/edit-api-modal.js +34 -28
- package/dist/web-containers/source/profile/api/edit-api-modal.js.map +1 -0
- package/dist/web-containers/source/profile/api/expiration-date-field.js +35 -0
- package/dist/web-containers/source/profile/api/expiration-date-field.js.map +1 -0
- package/dist/web-containers/source/profile/api/index.js +30 -0
- package/dist/web-containers/source/profile/api/index.js.map +1 -0
- package/dist/web-containers/source/{api-tab → profile/api}/token-policy-fields.js +6 -6
- package/dist/web-containers/source/profile/api/token-policy-fields.js.map +1 -0
- package/dist/web-containers/source/profile/info-banner.js +3 -1
- package/dist/web-containers/source/profile/info-banner.js.map +1 -1
- package/dist/web-containers/source/profile/integration/index.js +17 -38
- package/dist/web-containers/source/profile/integration/index.js.map +1 -1
- package/dist/web-containers/source/profile/secrets/index.js +106 -0
- package/dist/web-containers/source/profile/secrets/index.js.map +1 -0
- package/dist/web-containers/source/profile/secrets/secrets-list.js +237 -0
- package/dist/web-containers/source/profile/secrets/secrets-list.js.map +1 -0
- package/dist/web-containers/source/profile/virtual-machine-admin/index.js +12 -18
- package/dist/web-containers/source/profile/virtual-machine-admin/index.js.map +1 -1
- package/dist/web-containers/source/profile/virtual-machine-admin/network-policies-section.js +5 -4
- package/dist/web-containers/source/profile/virtual-machine-admin/network-policies-section.js.map +1 -1
- package/dist/web-containers/source/secret-rows.js +66 -0
- package/dist/web-containers/source/secret-rows.js.map +1 -0
- package/dist/web-containers/source/secrets/index.js +106 -0
- package/dist/web-containers/source/secrets/index.js.map +1 -0
- package/dist/web-containers/source/secrets/secrets-list.js +237 -0
- package/dist/web-containers/source/secrets/secrets-list.js.map +1 -0
- package/dist/web-containers/source/secrets-list.js +237 -0
- package/dist/web-containers/source/secrets-list.js.map +1 -0
- package/dist/web-containers/source/skills-tab/index.js +1 -1
- package/dist/web-containers/source/tabs/api-tab/create-api-modal.js +4 -4
- package/dist/web-containers/source/tabs/api-tab/labels.js +23 -19
- package/dist/web-containers/source/tabs/api-tab/labels.js.map +1 -1
- package/dist/web-containers/source/tabs/api-tab.js +15 -20
- package/dist/web-containers/source/tabs/api-tab.js.map +1 -1
- package/dist/web-containers/source/tabs/mcp-tab/connector-dialogs.js +1 -1
- package/dist/web-containers/source/tabs/mcp-tab/oauth-app-fields.js +2 -2
- package/dist/web-containers/source/tabs/mcp-tab/oauth-app-fields.js.map +1 -1
- package/dist/web-containers/source/tabs/skills-tab/index.js +1 -1
- package/dist/web-containers/source/token-policy-fields.js +6 -6
- package/dist/web-containers/source/token-policy-fields.js.map +1 -1
- package/dist/web-containers/source/tooltip-icon-button.js +15 -0
- package/dist/web-containers/source/tooltip-icon-button.js.map +1 -0
- package/dist/web-containers/source/tsconfig.build.tsbuildinfo +1 -1
- package/dist/web-containers/source/user-profile-dropdown/index.js +2 -0
- package/dist/web-containers/source/user-profile-dropdown/index.js.map +1 -1
- package/dist/web-containers/source/user-profile-modal.js +4 -4
- package/dist/web-containers/source/user-profile-modal.js.map +1 -1
- package/dist/web-containers/source/virtual-machine/azure-config.js +37 -0
- package/dist/web-containers/source/virtual-machine/azure-config.js.map +1 -0
- package/dist/web-containers/source/virtual-machine/azure-model-fields.js +118 -0
- package/dist/web-containers/source/virtual-machine/azure-model-fields.js.map +1 -0
- package/dist/web-containers/source/virtual-machine/credential-options.js +268 -22
- package/dist/web-containers/source/virtual-machine/credential-options.js.map +1 -1
- package/dist/web-containers/source/virtual-machine/host-port-chip-input.js +14 -8
- package/dist/web-containers/source/virtual-machine/host-port-chip-input.js.map +1 -1
- package/dist/web-containers/source/virtual-machine/network-policy-dialog.js +30 -6
- package/dist/web-containers/source/virtual-machine/network-policy-dialog.js.map +1 -1
- package/dist/web-containers/source/virtual-machine/secret-rows.js +66 -0
- package/dist/web-containers/source/virtual-machine/secret-rows.js.map +1 -0
- package/dist/web-containers/source/virtual-machine/vm-secret-dialog.js +848 -158
- package/dist/web-containers/source/virtual-machine/vm-secret-dialog.js.map +1 -1
- package/dist/web-containers/source/virtual-machine-admin/index.js +12 -18
- package/dist/web-containers/source/virtual-machine-admin/index.js.map +1 -1
- package/dist/web-containers/source/virtual-machine-admin/network-policies-section.js +5 -4
- package/dist/web-containers/source/virtual-machine-admin/network-policies-section.js.map +1 -1
- package/dist/web-containers/source/virtual-machine-network-section.js +147 -24
- package/dist/web-containers/source/virtual-machine-network-section.js.map +1 -1
- package/dist/web-containers/source/vm-secret-dialog.js +848 -158
- package/dist/web-containers/source/vm-secret-dialog.js.map +1 -1
- package/dist/web-containers/source/web-containers/tsconfig.build.tsbuildinfo +1 -1
- package/dist/web-containers/source/zh.json.js +456 -405
- package/dist/web-containers/source/zh.json.js.map +1 -1
- package/package.json +4 -4
- package/dist/web-containers/source/api-tab/api-token-utils.js.map +0 -1
- package/dist/web-containers/source/api-tab/constants.js.map +0 -1
- package/dist/web-containers/source/api-tab/edit-api-modal.js.map +0 -1
- package/dist/web-containers/source/api-tab/expiration-date-field.js +0 -29
- package/dist/web-containers/source/api-tab/expiration-date-field.js.map +0 -1
- package/dist/web-containers/source/api-tab/integration-autogenerated-table.js +0 -42
- package/dist/web-containers/source/api-tab/integration-autogenerated-table.js.map +0 -1
- package/dist/web-containers/source/api-tab/token-policy-fields.js.map +0 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/mcp-tab/field-info.js +0 -14
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/mcp-tab/field-info.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/api-tab/api-key-modal.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/api-tab/api-token-utils.js +0 -57
- package/dist/web-containers/source/components/profile/integration/api-tab/api-token-utils.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/api-tab/constants.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/api-tab/create-api-modal.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/api-tab/delete-api-modal.js +0 -31
- package/dist/web-containers/source/components/profile/integration/api-tab/delete-api-modal.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/api-tab/edit-api-modal.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/api-tab/expiration-date-field.js +0 -29
- package/dist/web-containers/source/components/profile/integration/api-tab/expiration-date-field.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/api-tab/integration-autogenerated-table.js +0 -42
- package/dist/web-containers/source/components/profile/integration/api-tab/integration-autogenerated-table.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/api-tab/token-policy-fields.js +0 -101
- package/dist/web-containers/source/components/profile/integration/api-tab/token-policy-fields.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/data-sources-tab/create-data-source-modal.js +0 -143
- package/dist/web-containers/source/components/profile/integration/data-sources-tab/create-data-source-modal.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/data-sources-tab/integration-data-sources-tab.js +0 -46
- package/dist/web-containers/source/components/profile/integration/data-sources-tab/integration-data-sources-tab.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/llms-tab/create-llm-modal.js +0 -287
- package/dist/web-containers/source/components/profile/integration/llms-tab/create-llm-modal.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/llms-tab/integration-llms-tab.js +0 -83
- package/dist/web-containers/source/components/profile/integration/llms-tab/integration-llms-tab.js.map +0 -1
- package/dist/web-containers/source/components/profile/virtual-machine-admin/vm-secrets-section.js +0 -109
- package/dist/web-containers/source/components/profile/virtual-machine-admin/vm-secrets-section.js.map +0 -1
- package/dist/web-containers/source/create-data-source-modal.js +0 -143
- package/dist/web-containers/source/create-data-source-modal.js.map +0 -1
- package/dist/web-containers/source/create-llm-modal.js +0 -287
- package/dist/web-containers/source/create-llm-modal.js.map +0 -1
- package/dist/web-containers/source/data-sources-tab/create-data-source-modal.js +0 -143
- package/dist/web-containers/source/data-sources-tab/create-data-source-modal.js.map +0 -1
- package/dist/web-containers/source/data-sources-tab/integration-data-sources-tab.js +0 -46
- package/dist/web-containers/source/data-sources-tab/integration-data-sources-tab.js.map +0 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/mcp-tab/field-info.js +0 -14
- package/dist/web-containers/source/edit-mentor-modal/tabs/mcp-tab/field-info.js.map +0 -1
- package/dist/web-containers/source/integration/api-tab/api-key-modal.js.map +0 -1
- package/dist/web-containers/source/integration/api-tab/api-token-utils.js.map +0 -1
- package/dist/web-containers/source/integration/api-tab/constants.js.map +0 -1
- package/dist/web-containers/source/integration/api-tab/create-api-modal.js.map +0 -1
- package/dist/web-containers/source/integration/api-tab/delete-api-modal.js +0 -31
- package/dist/web-containers/source/integration/api-tab/delete-api-modal.js.map +0 -1
- package/dist/web-containers/source/integration/api-tab/edit-api-modal.js.map +0 -1
- package/dist/web-containers/source/integration/api-tab/expiration-date-field.js +0 -29
- package/dist/web-containers/source/integration/api-tab/expiration-date-field.js.map +0 -1
- package/dist/web-containers/source/integration/api-tab/integration-autogenerated-table.js +0 -42
- package/dist/web-containers/source/integration/api-tab/integration-autogenerated-table.js.map +0 -1
- package/dist/web-containers/source/integration/api-tab/token-policy-fields.js.map +0 -1
- package/dist/web-containers/source/integration/data-sources-tab/create-data-source-modal.js +0 -143
- package/dist/web-containers/source/integration/data-sources-tab/create-data-source-modal.js.map +0 -1
- package/dist/web-containers/source/integration/data-sources-tab/integration-data-sources-tab.js +0 -46
- package/dist/web-containers/source/integration/data-sources-tab/integration-data-sources-tab.js.map +0 -1
- package/dist/web-containers/source/integration/llms-tab/create-llm-modal.js +0 -287
- package/dist/web-containers/source/integration/llms-tab/create-llm-modal.js.map +0 -1
- package/dist/web-containers/source/integration/llms-tab/integration-llms-tab.js +0 -83
- package/dist/web-containers/source/integration/llms-tab/integration-llms-tab.js.map +0 -1
- package/dist/web-containers/source/integration-autogenerated-table.js +0 -42
- package/dist/web-containers/source/integration-autogenerated-table.js.map +0 -1
- package/dist/web-containers/source/integration-data-sources-tab.js +0 -46
- package/dist/web-containers/source/integration-data-sources-tab.js.map +0 -1
- package/dist/web-containers/source/integration-llms-tab.js +0 -83
- package/dist/web-containers/source/integration-llms-tab.js.map +0 -1
- package/dist/web-containers/source/llms-tab/create-llm-modal.js +0 -287
- package/dist/web-containers/source/llms-tab/create-llm-modal.js.map +0 -1
- package/dist/web-containers/source/llms-tab/integration-llms-tab.js +0 -83
- package/dist/web-containers/source/llms-tab/integration-llms-tab.js.map +0 -1
- package/dist/web-containers/source/mcp-tab/field-info.js +0 -14
- package/dist/web-containers/source/mcp-tab/field-info.js.map +0 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/mcp-tab/field-info.js +0 -14
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/mcp-tab/field-info.js.map +0 -1
- package/dist/web-containers/source/profile/integration/api-tab/api-key-modal.js.map +0 -1
- package/dist/web-containers/source/profile/integration/api-tab/api-token-utils.js.map +0 -1
- package/dist/web-containers/source/profile/integration/api-tab/constants.js +0 -24
- package/dist/web-containers/source/profile/integration/api-tab/constants.js.map +0 -1
- package/dist/web-containers/source/profile/integration/api-tab/create-api-modal.js.map +0 -1
- package/dist/web-containers/source/profile/integration/api-tab/delete-api-modal.js +0 -31
- package/dist/web-containers/source/profile/integration/api-tab/delete-api-modal.js.map +0 -1
- package/dist/web-containers/source/profile/integration/api-tab/edit-api-modal.js +0 -113
- package/dist/web-containers/source/profile/integration/api-tab/edit-api-modal.js.map +0 -1
- package/dist/web-containers/source/profile/integration/api-tab/expiration-date-field.js +0 -29
- package/dist/web-containers/source/profile/integration/api-tab/expiration-date-field.js.map +0 -1
- package/dist/web-containers/source/profile/integration/api-tab/integration-autogenerated-table.js +0 -42
- package/dist/web-containers/source/profile/integration/api-tab/integration-autogenerated-table.js.map +0 -1
- package/dist/web-containers/source/profile/integration/api-tab/token-policy-fields.js.map +0 -1
- package/dist/web-containers/source/profile/integration/data-sources-tab/create-data-source-modal.js +0 -143
- package/dist/web-containers/source/profile/integration/data-sources-tab/create-data-source-modal.js.map +0 -1
- package/dist/web-containers/source/profile/integration/data-sources-tab/integration-data-sources-tab.js +0 -46
- package/dist/web-containers/source/profile/integration/data-sources-tab/integration-data-sources-tab.js.map +0 -1
- package/dist/web-containers/source/profile/integration/llms-tab/create-llm-modal.js +0 -287
- package/dist/web-containers/source/profile/integration/llms-tab/create-llm-modal.js.map +0 -1
- package/dist/web-containers/source/profile/integration/llms-tab/integration-llms-tab.js +0 -83
- package/dist/web-containers/source/profile/integration/llms-tab/integration-llms-tab.js.map +0 -1
- package/dist/web-containers/source/profile/virtual-machine-admin/vm-secrets-section.js +0 -109
- package/dist/web-containers/source/profile/virtual-machine-admin/vm-secrets-section.js.map +0 -1
- package/dist/web-containers/source/tabs/mcp-tab/field-info.js +0 -14
- package/dist/web-containers/source/tabs/mcp-tab/field-info.js.map +0 -1
- package/dist/web-containers/source/virtual-machine-admin/vm-secrets-section.js +0 -109
- package/dist/web-containers/source/virtual-machine-admin/vm-secrets-section.js.map +0 -1
- package/dist/web-containers/source/vm-secrets-section.js +0 -109
- package/dist/web-containers/source/vm-secrets-section.js.map +0 -1
|
@@ -10,7 +10,7 @@ import { Account } from '../profile/account.js';
|
|
|
10
10
|
* dialog. Each sidebar footer shortcut opens it on a different `tab`;
|
|
11
11
|
* from there the user can move to any other Account tab they may see.
|
|
12
12
|
*/
|
|
13
|
-
function PlatformAccountSheet({ tab, onClose, tenantKey, username, email, onInviteClick, mainPlatformKey, authUrl, currentSpa, platformBaseDomain, showGradebookTab = false, onboardingBasePath = '', rbacPermissions = {}, enableRbac = false, tenants, isAdmin, onTenantUpdate, showBenchmarks = false, userActiveApp = null, onTabChange, onLoadGroupPermissions, defaultSupportPhone = '', enableSupportPhone, }) {
|
|
13
|
+
function PlatformAccountSheet({ tab, onClose, tenantKey, username, email, onInviteClick, mainPlatformKey, authUrl, currentSpa, platformBaseDomain, showGradebookTab = false, onboardingBasePath = '', rbacPermissions = {}, enableRbac = false, tenants, isAdmin, onTenantUpdate, showBenchmarks = false, userActiveApp = null, onTabChange, onLoadGroupPermissions, defaultSupportPhone = '', enableSupportPhone, helpUrl, }) {
|
|
14
14
|
var _a, _b;
|
|
15
15
|
const t = useT();
|
|
16
16
|
const { userTenants, saveUserTenants } = useUserTenants();
|
|
@@ -22,7 +22,7 @@ function PlatformAccountSheet({ tab, onClose, tenantKey, username, email, onInvi
|
|
|
22
22
|
saveCurrentTenant(updated);
|
|
23
23
|
saveUserTenants((userTenants !== null && userTenants !== void 0 ? userTenants : []).map((tenant) => (tenant.key === updated.key ? updated : tenant)));
|
|
24
24
|
};
|
|
25
|
-
return (jsx(Dialog, { open: tab !== null, onOpenChange: (open) => !open && onClose(), children: jsxs(DialogContent, { autoFocus: false, className: "profile-component-dialog w-[85vw] max-w-7xl gap-0 overflow-hidden bg-white p-0 sm:rounded-2xl", style: { height: '85vh', display: 'flex', flexDirection: 'column' }, children: [jsx(DialogTitle, { className: "sr-only", children: t('profileAccount.ariaSettingsNav') }), jsx(DialogDescription, { className: "sr-only", children: t('platformSidebar.accountDescOrganization') }), tab && (jsx(Account, { targetTab: tab, tenant: tenantKey, tenants: accountTenants, username: username, email: email, mainPlatformKey: mainPlatformKey, onInviteClick: onInviteClick, onClose: onClose, isAdmin: accountIsAdmin, currentSPA: currentSpa, authURL: authUrl, currentPlatformBaseDomain: platformBaseDomain, onTenantUpdate: onTenantUpdate !== null && onTenantUpdate !== void 0 ? onTenantUpdate : saveTenant, enableRbac: enableRbac, rbacPermissions: rbacPermissions, onLoadGroupPermissions: onLoadGroupPermissions, onTabChange: onTabChange, showBenchmarks: showBenchmarks, userActiveApp: userActiveApp, defaultSupportPhone: defaultSupportPhone, enableSupportPhone: enableSupportPhone, showGradebookTab: showGradebookTab, onboardingBasePath: onboardingBasePath }, tab))] }) }));
|
|
25
|
+
return (jsx(Dialog, { open: tab !== null, onOpenChange: (open) => !open && onClose(), children: jsxs(DialogContent, { autoFocus: false, className: "profile-component-dialog w-[85vw] max-w-7xl gap-0 overflow-hidden bg-white p-0 sm:rounded-2xl", style: { height: '85vh', display: 'flex', flexDirection: 'column' }, children: [jsx(DialogTitle, { className: "sr-only", children: t('profileAccount.ariaSettingsNav') }), jsx(DialogDescription, { className: "sr-only", children: t('platformSidebar.accountDescOrganization') }), tab && (jsx(Account, { targetTab: tab, tenant: tenantKey, tenants: accountTenants, username: username, email: email, mainPlatformKey: mainPlatformKey, onInviteClick: onInviteClick, onClose: onClose, isAdmin: accountIsAdmin, currentSPA: currentSpa, authURL: authUrl, currentPlatformBaseDomain: platformBaseDomain, onTenantUpdate: onTenantUpdate !== null && onTenantUpdate !== void 0 ? onTenantUpdate : saveTenant, enableRbac: enableRbac, rbacPermissions: rbacPermissions, onLoadGroupPermissions: onLoadGroupPermissions, onTabChange: onTabChange, showBenchmarks: showBenchmarks, userActiveApp: userActiveApp, defaultSupportPhone: defaultSupportPhone, enableSupportPhone: enableSupportPhone, showGradebookTab: showGradebookTab, onboardingBasePath: onboardingBasePath, helpUrl: helpUrl }, tab))] }) }));
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export { PlatformAccountSheet };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-sheet.js","sources":["../../../../../../../src/components/platform-sidebar/account-sheet.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"account-sheet.js","sources":["../../../../../../../src/components/platform-sidebar/account-sheet.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;;AA8DA;;;;AAIG;AACG,SAAU,oBAAoB,CAAC,EACnC,GA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xB,cAAc,EAAE,cAAc,EAC9B,aAAa,EAAE,aAAa,EAC5B,mBAAmB,EAAE,mBAAmB,EACxC,kBAAkB,EAAE,kBAAkB,EACtC,gBAAgB,EAAE,gBAAgB,EAClC,kBAAkB,EAAE,kBAAkB,EACtC,OAAO,EAAE,OAAO,EAAA,EAxBX,GAAG,CAyBR,CACH,CAAA,EAAA,CACa,EAAA,CACT;AAEb;;;;"}
|
|
@@ -3,7 +3,8 @@ import { ToastProvider } from '../ui/toaster.js';
|
|
|
3
3
|
import { Admin } from './admin.js';
|
|
4
4
|
import { useState, useEffect } from 'react';
|
|
5
5
|
import OrganizationTab from './organization.js';
|
|
6
|
-
import
|
|
6
|
+
import { SecretsTab } from './secrets/index.js';
|
|
7
|
+
import { ApiTab } from './api/index.js';
|
|
7
8
|
import BillingTab from './billing.js';
|
|
8
9
|
import AdvancedTab from './advanced/advanced.js';
|
|
9
10
|
import MonetizationTab from './monetization/index.js';
|
|
@@ -18,11 +19,12 @@ import '../../packages/i18n/dist/index.esm.js';
|
|
|
18
19
|
import { SettingsChip, SettingsShell, SettingsMobileNav, SettingsSidebarNav } from './settings-shell.js';
|
|
19
20
|
import Briefcase from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/briefcase.js';
|
|
20
21
|
import Users from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/users.js';
|
|
22
|
+
import CodeXml from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/code-xml.js';
|
|
21
23
|
import KeyRound from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/key-round.js';
|
|
24
|
+
import Shield from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/shield.js';
|
|
22
25
|
import Coins from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/coins.js';
|
|
23
26
|
import ListChecks from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/list-checks.js';
|
|
24
27
|
import Brain from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/brain.js';
|
|
25
|
-
import Server from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/server.js';
|
|
26
28
|
import Settings from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/settings.js';
|
|
27
29
|
import CreditCard from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/credit-card.js';
|
|
28
30
|
import User from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/user.js';
|
|
@@ -31,19 +33,22 @@ import BriefcaseBusiness from '../../node_modules/.pnpm/lucide-react@0.528.0_rea
|
|
|
31
33
|
const TAB_DESC_KEYS = {
|
|
32
34
|
management: 'descManagement',
|
|
33
35
|
organization: 'descOrganization',
|
|
34
|
-
|
|
36
|
+
secrets: 'descSecrets',
|
|
37
|
+
api: 'descApi',
|
|
35
38
|
billing: 'descBilling',
|
|
36
39
|
monetization: 'descMonetization',
|
|
37
40
|
datasets: 'descBenchmarks',
|
|
38
41
|
memory: 'descMemory',
|
|
39
|
-
virtualMachine: '
|
|
42
|
+
virtualMachine: 'descNetwork',
|
|
40
43
|
advanced: 'descAdvanced',
|
|
41
44
|
basic: 'descBasic',
|
|
42
45
|
social: 'descSocial',
|
|
43
46
|
security: 'descSecurity',
|
|
44
47
|
};
|
|
45
|
-
|
|
46
|
-
|
|
48
|
+
// Tab names entry points may still ask for after a page was renamed or split.
|
|
49
|
+
const TAB_ALIASES = { integrations: 'secrets' };
|
|
50
|
+
function Account({ tenant, tenants = [], username, onInviteClick, email, mainPlatformKey, userActiveApp = null, showPlatformName = false, isAdmin = false, targetTab = 'basic', currentPlan: _currentPlan = '', currentSPA = '', authURL, onTenantUpdate, currentPlatformBaseDomain = '', enableRbac = false, showBenchmarks = false, rbacPermissions = {}, onLoadGroupPermissions, onTabChange, defaultSupportPhone = '', enableSupportPhone, showGradebookTab = false, onboardingBasePath = '', helpUrl, }) {
|
|
51
|
+
var _a, _b, _c, _d;
|
|
47
52
|
const t = useT();
|
|
48
53
|
const currentTenant = tenants.find((ten) => ten.key === tenant);
|
|
49
54
|
const hasMonetizationPermission = checkRbacPermission(rbacPermissions, `/platforms/${tenant}/#can_sell_items`, enableRbac);
|
|
@@ -55,6 +60,7 @@ function Account({ tenant, tenants = [], username, onInviteClick, email, mainPla
|
|
|
55
60
|
* so only the admin bypass needs spelling out here.
|
|
56
61
|
*/
|
|
57
62
|
const canSeeBilling = !!(currentTenant === null || currentTenant === void 0 ? void 0 : currentTenant.show_paywall) && (isAdmin || hasMonetizationPermission);
|
|
63
|
+
const canListApiTokens = checkRbacPermission(rbacPermissions, '/apitokens/#list', enableRbac);
|
|
58
64
|
const TABS = [
|
|
59
65
|
{
|
|
60
66
|
id: 'organization',
|
|
@@ -68,11 +74,18 @@ function Account({ tenant, tenants = [], username, onInviteClick, email, mainPla
|
|
|
68
74
|
icon: Users,
|
|
69
75
|
group: 'workspace',
|
|
70
76
|
},
|
|
77
|
+
{ id: 'api', label: t('profileAccount.tabApi'), icon: CodeXml, group: 'integrations' },
|
|
71
78
|
{
|
|
72
|
-
id: '
|
|
73
|
-
label: t('profileAccount.
|
|
79
|
+
id: 'secrets',
|
|
80
|
+
label: t('profileAccount.tabSecrets'),
|
|
74
81
|
icon: KeyRound,
|
|
75
|
-
group: '
|
|
82
|
+
group: 'integrations',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
id: 'virtualMachine',
|
|
86
|
+
label: t('profileAccount.tabNetwork'),
|
|
87
|
+
icon: Shield,
|
|
88
|
+
group: 'integrations',
|
|
76
89
|
},
|
|
77
90
|
...(canMonetize
|
|
78
91
|
? [
|
|
@@ -95,12 +108,6 @@ function Account({ tenant, tenants = [], username, onInviteClick, email, mainPla
|
|
|
95
108
|
]
|
|
96
109
|
: []),
|
|
97
110
|
{ id: 'memory', label: t('profileAccount.tabMemory'), icon: Brain, group: 'aiData' },
|
|
98
|
-
{
|
|
99
|
-
id: 'virtualMachine',
|
|
100
|
-
label: t('profileAccount.tabVirtualMachine'),
|
|
101
|
-
icon: Server,
|
|
102
|
-
group: 'aiData',
|
|
103
|
-
},
|
|
104
111
|
{ id: 'advanced', label: t('profileAccount.tabAdvanced'), icon: Settings, group: 'system' },
|
|
105
112
|
];
|
|
106
113
|
const [organizationLogo, setOrganizationLogo] = useState(`${LOGO_ENDPOINTS.light_logo(tenant)}?v=${Date.now()}`);
|
|
@@ -123,8 +130,10 @@ function Account({ tenant, tenants = [], username, onInviteClick, email, mainPla
|
|
|
123
130
|
* Everything but Management and Monetization is admin-only. Monetization is
|
|
124
131
|
* only in `TABS` when the user may sell, and under RBAC that permission
|
|
125
132
|
* opens it for non-admins too, matching the platform sidebar footer.
|
|
126
|
-
*
|
|
127
|
-
*
|
|
133
|
+
* API lists the organization's API tokens, so it also needs the
|
|
134
|
+
* permission to list them; the rail never offers a page that would render
|
|
135
|
+
* empty. Billing sits outside `TABS` because the paywall gates it, so it
|
|
136
|
+
* is appended last here too.
|
|
128
137
|
*/
|
|
129
138
|
const visibleTabIds = [
|
|
130
139
|
...TABS.filter((tab) => {
|
|
@@ -132,6 +141,8 @@ function Account({ tenant, tenants = [], username, onInviteClick, email, mainPla
|
|
|
132
141
|
return hasManagementPermissions;
|
|
133
142
|
if (tab.id === 'monetization')
|
|
134
143
|
return isAdmin || enableRbac;
|
|
144
|
+
if (tab.id === 'api')
|
|
145
|
+
return isAdmin && canListApiTokens;
|
|
135
146
|
return isAdmin;
|
|
136
147
|
}).map((tab) => tab.id),
|
|
137
148
|
...(canSeeBilling ? ['billing'] : []),
|
|
@@ -140,14 +151,20 @@ function Account({ tenant, tenants = [], username, onInviteClick, email, mainPla
|
|
|
140
151
|
// Entry points ask for a tab by name, and the name can be one this user has
|
|
141
152
|
// no business seeing — a watcher opening the modal is sent to Organization,
|
|
142
153
|
// which their sidebar does not even list. Open their first real tab instead.
|
|
143
|
-
const
|
|
154
|
+
const requestedTab = (_a = TAB_ALIASES[targetTab]) !== null && _a !== void 0 ? _a : targetTab;
|
|
155
|
+
const [activeTab, setActiveTab] = useState(visibleTabIds.includes(requestedTab) ? requestedTab : ((_b = visibleTabIds[0]) !== null && _b !== void 0 ? _b : requestedTab));
|
|
144
156
|
// `tenants` can arrive after mount, which is when the paywall tab appears and
|
|
145
157
|
// the permission checks settle, so re-run the same fallback once it does.
|
|
146
158
|
useEffect(() => {
|
|
159
|
+
var _a;
|
|
147
160
|
const available = visibleTabKey ? visibleTabKey.split(',') : [];
|
|
148
|
-
|
|
161
|
+
const wanted = (_a = TAB_ALIASES[activeTab]) !== null && _a !== void 0 ? _a : activeTab;
|
|
162
|
+
if (available.length > 0 && !available.includes(wanted)) {
|
|
149
163
|
setActiveTab(available[0]);
|
|
150
164
|
}
|
|
165
|
+
else if (wanted !== activeTab) {
|
|
166
|
+
setActiveTab(wanted);
|
|
167
|
+
}
|
|
151
168
|
}, [visibleTabKey, activeTab]);
|
|
152
169
|
useEffect(() => {
|
|
153
170
|
const firstInput = document.getElementById('fullName');
|
|
@@ -183,6 +200,7 @@ function Account({ tenant, tenants = [], username, onInviteClick, email, mainPla
|
|
|
183
200
|
const navTabs = [...TABS, billingTab].filter((tab) => visibleTabIds.includes(tab.id));
|
|
184
201
|
const GROUP_LABELS = {
|
|
185
202
|
workspace: t('profileAccount.groupWorkspace'),
|
|
203
|
+
integrations: t('profileAccount.groupIntegrations'),
|
|
186
204
|
finance: t('profileAccount.groupFinance'),
|
|
187
205
|
aiData: t('profileAccount.groupAiData'),
|
|
188
206
|
system: t('profileAccount.groupSystem'),
|
|
@@ -196,7 +214,7 @@ function Account({ tenant, tenants = [], username, onInviteClick, email, mainPla
|
|
|
196
214
|
// "datasets" → "Benchmarks" land in the header too. Billing lives outside
|
|
197
215
|
// TABS (paywall-gated), so it needs its own translated label — the raw id
|
|
198
216
|
// would render lowercase.
|
|
199
|
-
const title = (
|
|
217
|
+
const title = (_d = (_c = TABS.find((tab) => tab.id === activeTab)) === null || _c === void 0 ? void 0 : _c.label) !== null && _d !== void 0 ? _d : (activeTab === 'billing' ? t('profileAccount.tabBilling') : activeTab);
|
|
200
218
|
const description = TAB_DESC_KEYS[activeTab]
|
|
201
219
|
? t(`profileAccount.${TAB_DESC_KEYS[activeTab]}`)
|
|
202
220
|
: undefined;
|
|
@@ -206,7 +224,7 @@ function Account({ tenant, tenants = [], username, onInviteClick, email, mainPla
|
|
|
206
224
|
setOrganizationLogo('');
|
|
207
225
|
} }) })) : (jsx("div", { className: "flex h-14 w-14 flex-shrink-0 items-center justify-center rounded-xl border border-blue-100 bg-blue-50 text-blue-600 dark:border-blue-900 dark:bg-blue-950 dark:text-blue-300", "aria-hidden": "true", children: jsx(BriefcaseBusiness, { className: "h-6 w-6" }) })), jsxs("div", { className: "min-w-0", children: [jsx("h2", { className: "truncate text-[15px] font-semibold text-gray-900 dark:text-gray-100", title: platformName, children: platformName }), platformName !== tenant && (jsx("p", { className: "truncate font-mono text-xs text-gray-500 dark:text-gray-400", children: tenant }))] })] }), jsxs("div", { className: "flex flex-wrap gap-1.5", children: [roleChip, showPlatformName && jsx(SettingsChip, { children: tenant.toUpperCase() })] })] }));
|
|
208
226
|
const mobileHeader = (jsx("div", { className: "flex min-w-0 items-center justify-between gap-3", children: jsx("p", { className: "truncate text-[15px] font-semibold text-gray-900 dark:text-gray-100", children: platformName || t('profileAccount.profileTitle') }) }));
|
|
209
|
-
return (jsx(SettingsShell, { sidebarHeader: sidebarHeader, sidebarNav: jsx(SettingsSidebarNav, { groups: navGroups, activeId: activeTab, onSelect: selectTab, variant: "buttons", ariaLabel: t('profileAccount.ariaSettingsNav') }), mobileHeader: mobileHeader, mobileNav: jsx(SettingsMobileNav, { groups: navGroups, activeId: activeTab, onSelect: selectTab, variant: "buttons", ariaLabel: t('profileAccount.ariaSettingsNavMobile') }), title: title, description: description, overlays: jsx(ToastProvider, {}), children: jsxs("div", { className: "space-y-6", children: [activeTab === 'management' && hasManagementPermissions && (jsx(Admin, { onboardingBasePath: onboardingBasePath, authSpaUrl: authURL, onInviteClick: onInviteClick, tenant: tenant, currentSpa: currentSPA, hasUserTabPermission: hasUserTabPermission, hasGroupsTabPermission: hasGroupsTabPermission, hasPoliciesTabPermission: hasPoliciesTabPermission, hasRolesTabPermission: hasRolesTabPermission, hasTeamsTabPermission: hasTeamsTabPermission, hasInviteUserPermission: hasInviteUserPermission, hasCreateTeamPermission: hasCreateTeamPermission, onLoadGroupPermissions: onLoadGroupPermissions, hasAlertsTabPermission: hasAlertsTabPermission, rbacPermissions: rbacPermissions, enableRbac: enableRbac, showGradebookTab: showGradebookTab })), activeTab === 'organization' && (jsx(OrganizationTab, { platformKey: tenant, tenant: tenants.find((ten) => ten.key === tenant), onTenantUpdate: onTenantUpdate, setOrganizationLogoFromOutside: setOrganizationLogo, defaultSupportPhone: defaultSupportPhone, enableSupportPhone: enableSupportPhone })), activeTab === '
|
|
227
|
+
return (jsx(SettingsShell, { sidebarHeader: sidebarHeader, sidebarNav: jsx(SettingsSidebarNav, { groups: navGroups, activeId: activeTab, onSelect: selectTab, variant: "buttons", ariaLabel: t('profileAccount.ariaSettingsNav') }), mobileHeader: mobileHeader, mobileNav: jsx(SettingsMobileNav, { groups: navGroups, activeId: activeTab, onSelect: selectTab, variant: "buttons", ariaLabel: t('profileAccount.ariaSettingsNavMobile') }), title: title, description: description, overlays: jsx(ToastProvider, {}), children: jsxs("div", { className: "space-y-6", children: [activeTab === 'management' && hasManagementPermissions && (jsx(Admin, { onboardingBasePath: onboardingBasePath, authSpaUrl: authURL, onInviteClick: onInviteClick, tenant: tenant, currentSpa: currentSPA, hasUserTabPermission: hasUserTabPermission, hasGroupsTabPermission: hasGroupsTabPermission, hasPoliciesTabPermission: hasPoliciesTabPermission, hasRolesTabPermission: hasRolesTabPermission, hasTeamsTabPermission: hasTeamsTabPermission, hasInviteUserPermission: hasInviteUserPermission, hasCreateTeamPermission: hasCreateTeamPermission, onLoadGroupPermissions: onLoadGroupPermissions, hasAlertsTabPermission: hasAlertsTabPermission, rbacPermissions: rbacPermissions, enableRbac: enableRbac, showGradebookTab: showGradebookTab })), activeTab === 'organization' && (jsx(OrganizationTab, { platformKey: tenant, tenant: tenants.find((ten) => ten.key === tenant), onTenantUpdate: onTenantUpdate, setOrganizationLogoFromOutside: setOrganizationLogo, defaultSupportPhone: defaultSupportPhone, enableSupportPhone: enableSupportPhone })), activeTab === 'secrets' && jsx(SecretsTab, { tenantKey: tenant, username: username }), activeTab === 'api' && canListApiTokens && (jsx(ApiTab, { tenantKey: tenant, username: username, enableRbac: enableRbac, rbacPermissions: rbacPermissions, helpUrl: helpUrl })), activeTab === 'billing' && canSeeBilling && (jsx(BillingTab, { tenant: tenant, userActiveApp: userActiveApp, username: username, currentUserEmail: email, mainPlatformKey: mainPlatformKey })), activeTab === 'monetization' && jsx(MonetizationTab, { platformKey: tenant, authURL: authURL }), activeTab === 'datasets' && showBenchmarks && (jsx(BenchmarksTab, { tenantKey: tenant, username: username })), activeTab === 'memory' && jsx(MemoryAdminTab, { tenantKey: tenant, username: username }), activeTab === 'virtualMachine' && (jsx(VirtualMachineAdminTab, { tenantKey: tenant, username: username })), activeTab === 'advanced' && (jsx(AdvancedTab, { platformKey: tenant, currentSPA: currentSPA, username: username, authURL: authURL, currentPlatformBaseDomain: currentPlatformBaseDomain }))] }) }));
|
|
210
228
|
}
|
|
211
229
|
|
|
212
230
|
export { Account };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.js","sources":["../../../../../../../src/components/profile/account.tsx"],"sourcesContent":[null],"names":["CreditCardIcon","_jsx","_jsxs"],"mappings":";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,QAAQ,EAAE,QAAQ,EAAA,CAAI,CACzD,EAEA,SAAS,KAAK,QAAQ,IAAIA,GAAA,CAAC,cAAc,EAAA,EAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAI,EACnF,SAAS,KAAK,gBAAgB,KAC7BA,GAAA,CAAC,sBAAsB,IAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAA,CAAI,CAClE,EAEA,SAAS,KAAK,UAAU,KACvBA,GAAA,CAAC,WAAW,IACV,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,yBAAyB,EAAE,yBAAyB,EAAA,CACpD,CACH,CAAA,EAAA,CACG,EAAA,CACQ;AAEpB;;;;"}
|
|
1
|
+
{"version":3,"file":"account.js","sources":["../../../../../../../src/components/profile/account.tsx"],"sourcesContent":[null],"names":["CreditCardIcon","_jsx","_jsxs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoFA,MAAM,aAAa,GAA2B;AAC5C,IAAA,UAAU,EAAE,gBAAgB;AAC5B,IAAA,YAAY,EAAE,kBAAkB;AAChC,IAAA,OAAO,EAAE,aAAa;AACtB,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,OAAO,EAAE,aAAa;AACtB,IAAA,YAAY,EAAE,kBAAkB;AAChC,IAAA,QAAQ,EAAE,gBAAgB;AAC1B,IAAA,MAAM,EAAE,YAAY;AACpB,IAAA,cAAc,EAAE,aAAa;AAC7B,IAAA,QAAQ,EAAE,cAAc;AACxB,IAAA,KAAK,EAAE,WAAW;AAClB,IAAA,MAAM,EAAE,YAAY;AACpB,IAAA,QAAQ,EAAE,cAAc;CACzB;AAED;AACA,MAAM,WAAW,GAA2B,EAAE,YAAY,EAAE,SAAS,EAAE;SAEvD,OAAO,CAAC,EACtB,MAAM,EACN,OAAO,GAAG,EAAE,EACZ,QAAQ,EACR,a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a,EAC5B,QAAQ,EAAE,QAAQ,EAClB,gBAAgB,EAAE,KAAK,EACvB,eAAe,EAAE,eAAe,EAAA,CAChC,CACH,EAEA,SAAS,KAAK,cAAc,IAAIA,GAAA,CAAC,eAAe,IAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAA,CAAI,EAE1F,SAAS,KAAK,UAAU,IAAI,cAAc,KACzCA,GAAA,CAAC,aAAa,EAAA,EAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAA,CAAI,CACzD,EAEA,SAAS,KAAK,QAAQ,IAAIA,IAAC,cAAc,EAAA,EAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAA,CAAI,EACnF,SAAS,KAAK,gBAAgB,KAC7BA,GAAA,CAAC,sBAAsB,IAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAA,CAAI,CAClE,EAEA,SAAS,KAAK,UAAU,KACvBA,GAAA,CAAC,WAAW,EAAA,EACV,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,yBAAyB,EAAE,yBAAyB,GACpD,CACH,CAAA,EAAA,CACG,EAAA,CACQ;AAEpB;;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { FieldInfo } from '../../field-info.js';
|
|
3
|
+
import { Label } from '../../ui/label.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A label row for the API key dialogs. The info icon and the red mark sit
|
|
7
|
+
* beside the label, not inside it, so the field's accessible name is the label alone.
|
|
8
|
+
*/
|
|
9
|
+
function ApiFieldLabel({ htmlFor, id, text, info, required = false, }) {
|
|
10
|
+
return (jsxs("div", { className: "flex items-center gap-2", children: [jsx(Label, { id: id, htmlFor: htmlFor, className: "text-sm font-medium text-[#646464]", children: text }), required && (jsx("span", { className: "-ml-1 text-red-500", "aria-hidden": "true", children: "*" })), jsx(FieldInfo, { label: text, text: info })] }));
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { ApiFieldLabel };
|
|
14
|
+
//# sourceMappingURL=api-field-label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-field-label.js","sources":["../../../../../../../../src/components/profile/api/api-field-label.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;AAKA;;;AAGG;AACG,SAAU,aAAa,CAAC,EAC5B,OAAO,EACP,EAAE,EACF,IAAI,EACJ,IAAI,EACJ,QAAQ,GAAG,KAAK,GAOjB,EAAA;IACC,QACEA,cAAK,SAAS,EAAC,yBAAyB,EAAA,QAAA,EAAA,CACtCC,GAAA,CAAC,KAAK,EAAA,EAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,oCAAoC,EAAA,QAAA,EAC5E,IAAI,EAAA,CACC,EACP,QAAQ,KACPA,cAAM,SAAS,EAAC,oBAAoB,EAAA,aAAA,EAAa,MAAM,EAAA,QAAA,EAAA,GAAA,EAAA,CAEhD,CACR,EACDA,GAAA,CAAC,SAAS,EAAA,EAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAA,CAAI,CAAA,EAAA,CAClC;AAEV;;;;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import { Button } from '
|
|
3
|
-
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription } from '
|
|
4
|
-
import { Input } from '
|
|
5
|
-
import { useCopyToClipboard } from '
|
|
6
|
-
import { useT } from '
|
|
7
|
-
import '
|
|
8
|
-
import Check from '
|
|
9
|
-
import Copy from '
|
|
2
|
+
import { Button } from '../../ui/button.js';
|
|
3
|
+
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription } from '../../ui/dialog.js';
|
|
4
|
+
import { Input } from '../../ui/input.js';
|
|
5
|
+
import { useCopyToClipboard } from '../../hooks/use-copy-to-clipboard.js';
|
|
6
|
+
import { useT } from '../../../i18n/context.js';
|
|
7
|
+
import '../../../packages/i18n/dist/index.esm.js';
|
|
8
|
+
import Check from '../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/check.js';
|
|
9
|
+
import Copy from '../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/copy.js';
|
|
10
10
|
|
|
11
11
|
function ApiKeyModal({ isOpen, onClose, apiKey }) {
|
|
12
12
|
const t = useT();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-key-modal.js","sources":["../../../../../../../../src/components/profile/api/api-key-modal.tsx"],"sourcesContent":[null],"names":["CheckIcon","CopyIcon","_jsx","_jsxs"],"mappings":";;;;;;;;;;AAoBM,SAAU,WAAW,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAS,EAAA;AAC5D,IAAA,MAAM,CAAC,GAAG,IAAI,EAAE;IAChB,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,kBAAkB,CAAC,GAAG,CAAC;AAEhD,IAAA,MAAM,IAAI,GAAG,MAAM,KAAK,SAAS,GAAGA,KAAS,GAAGC,IAAQ;IAExD,QACEC,GAAA,CAAC,MAAM,EAAA,EAAC,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,EAAA,QAAA,EACzCC,IAAA,CAAC,aAAa,EAAA,EAAA,QAAA,EAAA,CACZD,GAAA,CAAC,YAAY,EAAA,EAAA,QAAA,EACXA,GAAA,CAAC,WAAW,EAAA,EAAC,SAAS,EAAC,kBAAkB,EAAA,QAAA,EAAE,CAAC,CAAC,yBAAyB,CAAC,EAAA,CAAe,EAAA,CACzE,EACfA,GAAA,CAAC,iBAAiB,EAAA,EAAC,SAAS,EAAC,SAAS,EAAA,QAAA,EACnC,CAAC,CAAC,qCAAqC,CAAC,EAAA,CACvB,EACpBC,IAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,YAAY,EAAA,QAAA,EAAA,CACzBA,IAAA,CAAA,GAAA,EAAA,EAAG,SAAS,EAAC,0CAA0C,EAAA,QAAA,EAAA,CACrDD,GAAA,CAAA,MAAA,EAAA,EAAA,QAAA,EAAO,CAAC,CAAC,mCAAmC,CAAC,EAAA,CAAQ,EACrDA,GAAA,CAAA,MAAA,EAAA,EAAA,QAAA,EAAO,CAAC,CAAC,kCAAkC,CAAC,EAAA,CAAQ,CAAA,EAAA,CAClD,EACJC,IAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,yBAAyB,EAAA,QAAA,EAAA,CACtCD,GAAA,CAAC,KAAK,EAAA,EAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAA,IAAA,EAAA,CAAG,EACxCA,GAAA,CAAC,MAAM,EAAA,EACL,IAAI,EAAC,MAAM,EACX,SAAS,EAAC,mCAAmC,EAC7C,OAAO,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,EAAA,QAAA,EAE3BA,GAAA,CAAC,IAAI,EAAA,EAAC,SAAS,EAAC,SAAS,EAAA,CAAG,EAAA,CACrB,CAAA,EAAA,CACL,CAAA,EAAA,CACF,CAAA,EAAA,CACQ,EAAA,CACT;AAEb;;;;"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { format } from 'date-fns';
|
|
4
|
+
import { useGetApiKeysQuery, unwrapApiTokenList } from '@iblai/data-layer';
|
|
5
|
+
import { useT } from '../../../i18n/context.js';
|
|
6
|
+
import '../../../packages/i18n/dist/index.esm.js';
|
|
7
|
+
import { Button } from '../../ui/button.js';
|
|
8
|
+
import { TooltipIconButton } from '../../tooltip-icon-button.js';
|
|
9
|
+
import { IblPagination } from '../../ibl-pagination.js';
|
|
10
|
+
import { DeleteApiModal } from './delete-api-modal.js';
|
|
11
|
+
import { EditApiModal } from './edit-api-modal.js';
|
|
12
|
+
import { isApiKeysPageGone, isRefusedError } from './api-token-utils.js';
|
|
13
|
+
import { API_KEYS_PAGE_SIZE, API_TOKEN_MODES } from './constants.js';
|
|
14
|
+
import Pencil from '../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/pencil.js';
|
|
15
|
+
import Trash2 from '../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/trash-2.js';
|
|
16
|
+
|
|
17
|
+
const HEADER_CELL_CLASS = 'px-6 py-3 text-left font-medium text-gray-500 dark:text-gray-400';
|
|
18
|
+
const TEXT_CELL_CLASS = 'px-6 py-4 whitespace-nowrap text-gray-600 dark:text-gray-300';
|
|
19
|
+
const NO_CREATED_DATE = '—';
|
|
20
|
+
/** The key itself is never listed; it is shown once, when it is created. */
|
|
21
|
+
function ApiKeysTable({ tenantKey }) {
|
|
22
|
+
const t = useT();
|
|
23
|
+
const [page, setPage] = React__default.useState(1);
|
|
24
|
+
const [apiKeyToDelete, setApiKeyToDelete] = React__default.useState(null);
|
|
25
|
+
const [apiKeyToEdit, setApiKeyToEdit] = React__default.useState(null);
|
|
26
|
+
const { data, isLoading: isApiKeysLoading, isFetching, isError, error, refetch, } = useGetApiKeysQuery({
|
|
27
|
+
platformKey: tenantKey,
|
|
28
|
+
page,
|
|
29
|
+
pageSize: API_KEYS_PAGE_SIZE,
|
|
30
|
+
});
|
|
31
|
+
const { tokens: apiKeys, count } = unwrapApiTokenList(data);
|
|
32
|
+
const totalPages = Math.ceil(count / API_KEYS_PAGE_SIZE);
|
|
33
|
+
const isPageGone = isApiKeysPageGone({
|
|
34
|
+
page,
|
|
35
|
+
isFetching,
|
|
36
|
+
isError,
|
|
37
|
+
error,
|
|
38
|
+
isEmpty: apiKeys.length === 0,
|
|
39
|
+
});
|
|
40
|
+
React__default.useEffect(() => {
|
|
41
|
+
if (isPageGone)
|
|
42
|
+
setPage((current) => Math.max(1, current - 1));
|
|
43
|
+
}, [isPageGone]);
|
|
44
|
+
function closeDeleteApiModal() {
|
|
45
|
+
setApiKeyToDelete(null);
|
|
46
|
+
}
|
|
47
|
+
function openDeleteApiModal(apiKey) {
|
|
48
|
+
setApiKeyToDelete(apiKey);
|
|
49
|
+
}
|
|
50
|
+
return (jsxs(Fragment, { children: [jsxs("div", { className: "space-y-4", children: [jsx("div", { className: "bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg overflow-x-auto", children: jsxs("table", { className: "w-full text-sm", children: [jsx("thead", { className: "bg-gray-50 dark:bg-gray-700 border-b border-gray-200 dark:border-gray-600", children: jsxs("tr", { children: [jsx("th", { className: HEADER_CELL_CLASS, children: t('apiTabLabels.table.nameColumn') }), jsx("th", { className: HEADER_CELL_CLASS, children: t('apiTabLabels.table.modeColumn') }), jsx("th", { className: HEADER_CELL_CLASS, children: t('apiTabLabels.table.createdColumn') }), jsx("th", { className: HEADER_CELL_CLASS, children: t('apiTabLabels.table.expiresColumn') }), jsx("th", { className: `${HEADER_CELL_CLASS} w-[100px]`, children: jsx("span", { className: "sr-only", children: t('apiTabLabels.table.actionsColumn') }) })] }) }), jsx("tbody", { className: "divide-y divide-gray-200 dark:divide-gray-600", children: isApiKeysLoading || isPageGone ? (jsx("tr", { children: jsx("td", { colSpan: 5, className: "px-6 py-8 text-center text-sm text-gray-500", children: t('apiTabLabels.table.loading') }) })) : apiKeys.length === 0 && isError ? (jsx("tr", { children: jsx("td", { colSpan: 5, className: "px-6 py-8 text-center text-sm text-gray-500", children: isRefusedError(error) ? (t('apiTabLabels.table.noPermission')) : (jsxs("div", { className: "flex flex-col items-center gap-3", "data-testid": "api-keys-load-failed", children: [jsx("p", { children: t('apiTabLabels.table.loadFailed') }), jsx(Button, { type: "button", variant: "outline", size: "sm", onClick: () => void refetch(), children: t('apiTabLabels.table.tryAgain') })] })) }) })) : apiKeys.length === 0 ? (jsx("tr", { children: jsx("td", { colSpan: 5, className: "px-6 py-8 text-center text-sm text-gray-500", children: t('apiTabLabels.table.emptyState') }) })) : (apiKeys.map((apiKey) => {
|
|
51
|
+
var _a, _b, _c, _d, _e, _f;
|
|
52
|
+
return (jsxs("tr", { children: [jsx("td", { className: "px-6 py-4 whitespace-nowrap text-gray-900 dark:text-gray-100", children: apiKey.name }), jsx("td", { className: TEXT_CELL_CLASS, children: apiKey.mode === API_TOKEN_MODES.TOKEN_POLICIES
|
|
53
|
+
? t('apiTabTokenPolicies.tokenPoliciesModeLabel')
|
|
54
|
+
: t('apiTabTokenPolicies.ownerModeLabel') }), jsx("td", { className: TEXT_CELL_CLASS, children: apiKey.created ? format(apiKey.created, 'PPP') : NO_CREATED_DATE }), jsx("td", { className: TEXT_CELL_CLASS, children: apiKey.expires
|
|
55
|
+
? format(apiKey.expires, 'PPP')
|
|
56
|
+
: t('apiTabLabels.table.never') }), jsx("td", { className: "px-6 py-4", children: jsxs("div", { className: "flex items-center gap-1", children: [((_c = (_b = (_a = apiKey.permissions) === null || _a === void 0 ? void 0 : _a.object) === null || _b === void 0 ? void 0 : _b.write) !== null && _c !== void 0 ? _c : true) && (jsx(TooltipIconButton, { label: t('apiTabEditApiModal.editAriaLabel'), onClick: () => setApiKeyToEdit(apiKey.name), children: jsx(Pencil, { className: "h-4 w-4", "aria-hidden": "true" }) })), ((_f = (_e = (_d = apiKey.permissions) === null || _d === void 0 ? void 0 : _d.object) === null || _e === void 0 ? void 0 : _e.delete) !== null && _f !== void 0 ? _f : true) && (jsx(TooltipIconButton, { label: t('apiTabLabels.table.deleteAriaLabel'), onClick: () => openDeleteApiModal({ name: apiKey.name }), className: "text-red-600 hover:text-red-700", children: jsx(Trash2, { className: "h-4 w-4", "aria-hidden": "true" }) }))] }) })] }, apiKey.name));
|
|
57
|
+
})) })] }) }), totalPages > 1 && (jsx(IblPagination, { currentPage: page, totalPages: totalPages, onPageChange: setPage, disabled: isApiKeysLoading }))] }), apiKeyToDelete && (jsx(DeleteApiModal, { isOpen: !!apiKeyToDelete, onClose: closeDeleteApiModal, apiKey: apiKeyToDelete, tenantKey: tenantKey })), apiKeyToEdit && (jsx(EditApiModal, { isOpen: !!apiKeyToEdit, onClose: () => setApiKeyToEdit(null), apiKeyName: apiKeyToEdit, tenantKey: tenantKey }))] }));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export { ApiKeysTable };
|
|
61
|
+
//# sourceMappingURL=api-keys-table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-keys-table.js","sources":["../../../../../../../../src/components/profile/api/api-keys-table.tsx"],"sourcesContent":[null],"names":["React","_jsxs","_Fragment","_jsx"],"mappings":";;;;;;;;;;;;;;;;AAcA,MAAM,iBAAiB,GAAG,kEAAkE;AAC5F,MAAM,eAAe,GAAG,8DAA8D;AACtF,MAAM,eAAe,GAAG,GAAG;AAM3B;AACM,SAAU,YAAY,CAAC,EAAE,SAAS,EAAqB,EAAA;AAC3D,IAAA,MAAM,CAAC,GAAG,IAAI,EAAE;AAChB,IAAA,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAGA,cAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;AACzC,IAAA,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAGA,cAAK,CAAC,QAAQ,CAAgB,IAAI,CAAC;AAC/E,IAAA,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAGA,cAAK,CAAC,QAAQ,CAAgB,IAAI,CAAC;AAE3E,IAAA,MAAM,EACJ,IAAI,EACJ,SAAS,EAAE,gBAAgB,EAC3B,UAAU,EACV,OAAO,EACP,KAAK,EACL,OAAO,GACR,GAAG,kBAAkB,CAAC;AACrB,QAAA,WAAW,EAAE,SAAS;QACtB,IAAI;AACJ,QAAA,QAAQ,EAAE,kBAAkB;AAC7B,KAAA,CAAC;AAEF,IAAA,MAA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,CAC/B,CACrB,CAAA,EAAA,CACG,EAAA,CACH,CAAA,EAAA,EArCE,MAAM,CAAC,IAAI,CAsCf;AACN,oCAAA,CAAA,CAAC,CACH,EAAA,CACK,CAAA,EAAA,CACF,GACJ,EACL,UAAU,GAAG,CAAC,KACbA,GAAA,CAAC,aAAa,IACZ,WAAW,EAAE,IAAI,EACjB,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,OAAO,EACrB,QAAQ,EAAE,gBAAgB,EAAA,CAC1B,CACH,IACG,EACL,cAAc,KACbA,GAAA,CAAC,cAAc,EAAA,EACb,MAAM,EAAE,CAAC,CAAC,cAAc,EACxB,OAAO,EAAE,mBAAmB,EAC5B,MAAM,EAAE,cAAc,EACtB,SAAS,EAAE,SAAS,EAAA,CACpB,CACH,EACA,YAAY,KACXA,GAAA,CAAC,YAAY,IACX,MAAM,EAAE,CAAC,CAAC,YAAY,EACtB,OAAO,EAAE,MAAM,eAAe,CAAC,IAAI,CAAC,EACpC,UAAU,EAAE,YAAY,EACxB,SAAS,EAAE,SAAS,GACpB,CACH,CAAA,EAAA,CACA;AAEP;;;;"}
|
|
@@ -1,6 +1,39 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import { canWriteField } from '@iblai/web-utils';
|
|
2
3
|
import { API_TOKEN_MODES } from './constants.js';
|
|
3
4
|
|
|
5
|
+
/** The name and expiry rules the create and edit dialogs share. */
|
|
6
|
+
function buildApiKeyFormSchema(t) {
|
|
7
|
+
return z.object({
|
|
8
|
+
name: z
|
|
9
|
+
.string()
|
|
10
|
+
.min(1, t('apiTabLabels.createModal.nameRequired'))
|
|
11
|
+
.regex(/^[a-zA-Z0-9_-]+$/, t('apiTabLabels.createModal.nameInvalid')),
|
|
12
|
+
expiration_date: z.date().nullable(),
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* An out-of-range `page` (e.g. after deleting the last key on the last page)
|
|
17
|
+
* comes back as a 404 `{"detail": "Invalid page."}`.
|
|
18
|
+
*/
|
|
19
|
+
function isInvalidPageError(error) {
|
|
20
|
+
const { status, data } = (error !== null && error !== void 0 ? error : {});
|
|
21
|
+
if (status === 404)
|
|
22
|
+
return true;
|
|
23
|
+
const body = typeof data === 'string' ? data : JSON.stringify(data !== null && data !== void 0 ? data : '');
|
|
24
|
+
return body.includes('Invalid page');
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Whether the page on screen no longer exists (e.g. its last key was deleted),
|
|
28
|
+
* so a keys table should step back one: the backend answers "Invalid page." or
|
|
29
|
+
* an empty page.
|
|
30
|
+
*/
|
|
31
|
+
function isApiKeysPageGone({ page, isFetching, isError, error, isEmpty, }) {
|
|
32
|
+
return page > 1 && !isFetching && (isError ? isInvalidPageError(error) : isEmpty);
|
|
33
|
+
}
|
|
34
|
+
function isRefusedError(error) {
|
|
35
|
+
return (error === null || error === void 0 ? void 0 : error.status) === 403;
|
|
36
|
+
}
|
|
4
37
|
/** Seconds from now until `targetDate`, the unit the `expires_in` duration takes. */
|
|
5
38
|
function secondsUntil(targetDate) {
|
|
6
39
|
const oneDay = 24 * 60 * 60 * 1000;
|
|
@@ -53,5 +86,5 @@ function buildTokenPolicyPayload({ mode, initialMode, policies, groups, initialP
|
|
|
53
86
|
return payload;
|
|
54
87
|
}
|
|
55
88
|
|
|
56
|
-
export { buildTokenPolicyPayload, secondsUntil, toSelections };
|
|
89
|
+
export { buildApiKeyFormSchema, buildTokenPolicyPayload, isApiKeysPageGone, isInvalidPageError, isRefusedError, secondsUntil, toSelections };
|
|
57
90
|
//# sourceMappingURL=api-token-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-token-utils.js","sources":["../../../../../../../../src/components/profile/api/api-token-utils.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAaA;AACM,SAAU,qBAAqB,CAAC,CAAoB,EAAA;IACxD,OAAO,CAAC,CAAC,MAAM,CAAC;AACd,QAAA,IAAI,EAAE;A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@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["../../../../../../../../src/components/profile/api/constants.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEO,MAAM,eAAe,GAAG;AAC7B,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,cAAc,EAAE,gBAAgB;;AAGlC;AACO,MAAM,kBAAkB,GAAG;AAElC;AACO,MAAM,qBAAqB,GAAG;AAC9B,MAAM,uBAAuB,GAAG;AAEvC;;;AAGG;AACI,MAAM,+BAA+B,GAA6B;AACvE,IAAA,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;AACtB,IAAA,eAAe,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;AACjC,IAAA,kBAAkB,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;AACpC,IAAA,aAAa,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;AAC/B,IAAA,gBAAgB,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;;;;;"}
|
|
@@ -1,36 +1,29 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { z } from 'zod';
|
|
4
3
|
import { toast } from 'sonner';
|
|
5
|
-
import { useForm } from '
|
|
6
|
-
import { useT } from '
|
|
7
|
-
import '
|
|
8
|
-
import { Dialog, DialogContent,
|
|
9
|
-
import { Input } from '
|
|
4
|
+
import { useForm } from '../../../node_modules/.pnpm/@tanstack_react-form@1.11.2_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@tanstack/react-form/dist/esm/useForm.js';
|
|
5
|
+
import { useT } from '../../../i18n/context.js';
|
|
6
|
+
import '../../../packages/i18n/dist/index.esm.js';
|
|
7
|
+
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter } from '../../ui/dialog.js';
|
|
8
|
+
import { Input } from '../../ui/input.js';
|
|
9
|
+
import { ApiFieldLabel } from './api-field-label.js';
|
|
10
10
|
import { ApiKeyModal } from './api-key-modal.js';
|
|
11
|
-
import {
|
|
12
|
-
import { Button } from '../../../ui/button.js';
|
|
11
|
+
import { Button } from '../../ui/button.js';
|
|
13
12
|
import { useCreateApiKeyMutation, useGetApiKeyFieldPermissionsQuery } from '@iblai/data-layer';
|
|
14
13
|
import { API_TOKEN_MODES, DENIED_TOKEN_POLICY_PERMISSIONS } from './constants.js';
|
|
15
|
-
import { secondsUntil, buildTokenPolicyPayload } from './api-token-utils.js';
|
|
14
|
+
import { buildApiKeyFormSchema, secondsUntil, buildTokenPolicyPayload } from './api-token-utils.js';
|
|
16
15
|
import { ExpirationDateField } from './expiration-date-field.js';
|
|
17
16
|
import { TokenPolicyFields } from './token-policy-fields.js';
|
|
18
17
|
|
|
19
18
|
const NAME_FIELD_ID = 'create-api-key-name';
|
|
20
19
|
const NAME_ERROR_ID = 'create-api-key-name-error';
|
|
21
|
-
const createApiFormSchema = z.object({
|
|
22
|
-
name: z
|
|
23
|
-
.string()
|
|
24
|
-
.min(1, 'API Key name is required')
|
|
25
|
-
.regex(/^[a-zA-Z0-9_-]+$/, 'can only contain letters, numbers, and hyphens'),
|
|
26
|
-
expiration_date: z.date().nullable(),
|
|
27
|
-
});
|
|
28
20
|
const createApiFormDefaultValues = {
|
|
29
21
|
name: '',
|
|
30
22
|
expiration_date: null,
|
|
31
23
|
};
|
|
32
24
|
function CreateApiModal({ isOpen, onClose, tenantKey, username }) {
|
|
33
25
|
const t = useT();
|
|
26
|
+
const createApiFormSchema = React__default.useMemo(() => buildApiKeyFormSchema(t), [t]);
|
|
34
27
|
const [apiKey, setApiKey] = React__default.useState(null);
|
|
35
28
|
const [mode, setMode] = React__default.useState(API_TOKEN_MODES.OWNER);
|
|
36
29
|
const [policies, setPolicies] = React__default.useState([]);
|
|
@@ -44,8 +37,8 @@ function CreateApiModal({ isOpen, onClose, tenantKey, username }) {
|
|
|
44
37
|
defaultValues: createApiFormDefaultValues,
|
|
45
38
|
validators: {
|
|
46
39
|
// `onMount` runs the schema against the empty defaults so the required
|
|
47
|
-
// name keeps
|
|
48
|
-
// first click on a pristine form fail silently.
|
|
40
|
+
// name keeps Add API Key disabled from the start, rather than letting
|
|
41
|
+
// the first click on a pristine form fail silently.
|
|
49
42
|
onMount: createApiFormSchema,
|
|
50
43
|
onChange: createApiFormSchema,
|
|
51
44
|
},
|
|
@@ -86,7 +79,7 @@ function CreateApiModal({ isOpen, onClose, tenantKey, username }) {
|
|
|
86
79
|
setGroups([]);
|
|
87
80
|
onClose();
|
|
88
81
|
}
|
|
89
|
-
return (jsxs(Fragment, { children: [jsx(Dialog, { open: isOpen, onOpenChange: (open) => !open && !isLoading && handleClose(), children: jsxs(DialogContent, {
|
|
82
|
+
return (jsxs(Fragment, { children: [jsx(Dialog, { open: isOpen, onOpenChange: (open) => !open && !isLoading && handleClose(), children: jsxs(DialogContent, { className: "w-full max-w-md max-h-[85vh] overflow-y-auto", children: [jsxs(DialogHeader, { children: [jsx(DialogTitle, { className: "ibl-dialog-title", children: t('apiTabCreateApiModal2.createApiKey') }), jsx(DialogDescription, { className: "text-xs text-gray-600", children: t('apiTabLabels.createModal.description') })] }), jsxs("form", { onSubmit: (formEvent) => {
|
|
90
83
|
formEvent.preventDefault();
|
|
91
84
|
formEvent.stopPropagation();
|
|
92
85
|
form.handleSubmit();
|
|
@@ -97,14 +90,14 @@ function CreateApiModal({ isOpen, onClose, tenantKey, username }) {
|
|
|
97
90
|
// enough: the dialog autofocuses the name, so pressing X blurs
|
|
98
91
|
// the empty field, and the error that appears grows the dialog
|
|
99
92
|
// and shifts the X out from under the pointer before the click
|
|
100
|
-
// lands.
|
|
93
|
+
// lands. Add API Key stays disabled until the name is valid.
|
|
101
94
|
const showError = Boolean(errorMessage && field.state.meta.isDirty);
|
|
102
|
-
return (jsxs("div", { className: "space-y-1.5", children: [
|
|
103
|
-
} }), jsx(form.Field, { name: "expiration_date", children: (field) => (jsx(ExpirationDateField, { value: field.state.value, onChange: (date) => field.handleChange(date) })) }), !isFieldPermissionsLoading && (jsx(TokenPolicyFields, { tenantKey: tenantKey, mode: mode, onModeChange: setMode, policies: policies, onPoliciesChange: setPolicies, groups: groups, onGroupsChange: setGroups, fieldPermissions: fieldPermissions, idPrefix: "create-api-key" })),
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
95
|
+
return (jsxs("div", { className: "space-y-1.5", children: [jsx(ApiFieldLabel, { htmlFor: NAME_FIELD_ID, text: t('apiTabCreateApiModal2.apiKeyName'), info: t('apiTabCreateApiModal2.apiKeyNameInfo'), required: true }), jsx(Input, { id: NAME_FIELD_ID, placeholder: t('apiTabLabels.createModal.namePlaceholder'), value: field.state.value, onChange: (event) => field.handleChange(event.target.value), onBlur: field.handleBlur, autoComplete: "off", "aria-required": "true", "aria-invalid": showError, "aria-describedby": showError ? NAME_ERROR_ID : undefined }), showError && (jsx("p", { id: NAME_ERROR_ID, role: "alert", className: "text-red-500 text-xs", children: errorMessage }))] }));
|
|
96
|
+
} }), jsx(form.Field, { name: "expiration_date", children: (field) => (jsx(ExpirationDateField, { value: field.state.value, onChange: (date) => field.handleChange(date) })) }), !isFieldPermissionsLoading && (jsx(TokenPolicyFields, { tenantKey: tenantKey, mode: mode, onModeChange: setMode, policies: policies, onPoliciesChange: setPolicies, groups: groups, onGroupsChange: setGroups, fieldPermissions: fieldPermissions, idPrefix: "create-api-key" })), jsxs(DialogFooter, { className: "justify-end gap-3", children: [jsx(Button, { type: "button", variant: "outline", onClick: handleClose, disabled: isLoading, children: t('apiTabLabels.createModal.cancel') }), jsx(form.Subscribe, { selector: (state) => ({
|
|
97
|
+
canSubmit: state.canSubmit,
|
|
98
|
+
}), children: ({ canSubmit }) => (jsx(Button, { type: "submit", disabled: !canSubmit || isLoading, className: "bg-gradient-to-r from-[#2563EB] to-[#93C5FD] text-white hover:opacity-90", children: isLoading
|
|
99
|
+
? t('apiTabLabels.createModal.submitting')
|
|
100
|
+
: t('apiTabLabels.createModal.submit') })) })] })] })] }) }), apiKey && jsx(ApiKeyModal, { isOpen: true, onClose: () => setApiKey(null), apiKey: apiKey })] }));
|
|
108
101
|
}
|
|
109
102
|
|
|
110
103
|
export { CreateApiModal };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-api-modal.js","sources":["../../../../../../../../src/components/profile/api/create-api-modal.tsx"],"sourcesContent":[null],"names":["React","_jsxs","_Fragment","_jsx"],"mappings":";;;;;;;;;;;;;;;;;AA+BA,MAAM,aAAa,GAAG,qBAAqB;AAC3C,MAAM,aAAa,GAAG,2BAA2B;AAOjD,MAAM,0BAA0B,GAAkB;AAChD,IAAA,IAAI,EAAE,EAAE;AACR,IAAA,eAAe,EAAE,IAAI;CACtB;AAEK,SAAU,cAAc,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAS,EAAA;AAC5E,IAAA,MAAM,CAAC,GAAG,IAAI,EAAE;AAChB,IAAA,MAAM,mBAAmB,GAAGA,cAAK,CAAC,OAAO,CAAC,MAAM,qBAAqB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAC9E,IAAA,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAGA,cAAK,CAAC,QAAQ,CAAgB,IAAI,CAAC;AAC/D,IAAA,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAGA,cAAK,CAAC,QAAQ,CAAe,eAAe,CAAC,KAAK,CAAC;AAC3E,IAAA,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAGA,cAAK,CAAC,QAAQ,CAAyB,EAAE,CAAC;AAC1E,IAAA,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAGA,cAAK,CAAC,QAAQ,CAAyB,EAAE,CAAC;IAEtE,MAAM,CAAC,YAAY,EAAE,EAAE,SAAS,EAAE,CAAC,GAAG,uBAAuB,EAAE;AAE/D,IAAA,MAAM,EACJ,IAAI,EAAE,oBAAoB,EAC1B,OAA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