@thunderid/vue 1.11.0 → 1.13.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.
Files changed (28) hide show
  1. package/dist/api/auth/executeEmbeddedSelfFlow.d.ts +22 -0
  2. package/dist/api/auth/executeEmbeddedSelfFlow.d.ts.map +1 -0
  3. package/dist/cjs/index.cjs +1055 -104
  4. package/dist/components/account/user-profile/BaseUserProfile.d.ts +42 -2
  5. package/dist/components/account/user-profile/BaseUserProfile.d.ts.map +1 -1
  6. package/dist/components/account/user-profile/UserProfile.css.d.ts +1 -1
  7. package/dist/components/account/user-profile/UserProfile.css.d.ts.map +1 -1
  8. package/dist/components/account/user-profile/UserProfile.d.ts.map +1 -1
  9. package/dist/components/account/verify-attribute/BaseVerifyAttribute.d.ts +83 -0
  10. package/dist/components/account/verify-attribute/BaseVerifyAttribute.d.ts.map +1 -0
  11. package/dist/components/account/verify-attribute/VerifyAttribute.css.d.ts +7 -0
  12. package/dist/components/account/verify-attribute/VerifyAttribute.css.d.ts.map +1 -0
  13. package/dist/components/account/verify-attribute/VerifyAttribute.d.ts +23 -0
  14. package/dist/components/account/verify-attribute/VerifyAttribute.d.ts.map +1 -0
  15. package/dist/components/auth/flow/AuthOptionFactory.d.ts +1 -1
  16. package/dist/components/auth/flow/AuthOptionFactory.d.ts.map +1 -1
  17. package/dist/components/auth/flow/AuthOptionFactoryCore.d.ts +5 -0
  18. package/dist/components/auth/flow/AuthOptionFactoryCore.d.ts.map +1 -1
  19. package/dist/components/auth/flow/FieldFactory.d.ts +1 -0
  20. package/dist/components/auth/flow/FieldFactory.d.ts.map +1 -1
  21. package/dist/components/primitives/OtpField/OtpField.css.d.ts +1 -1
  22. package/dist/components/primitives/OtpField/OtpField.css.d.ts.map +1 -1
  23. package/dist/components/primitives/OtpField/OtpField.d.ts.map +1 -1
  24. package/dist/index.d.ts +7 -1
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +1030 -106
  27. package/dist/styles/injectStyles.d.ts.map +1 -1
  28. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { ADMINISTRATION_FLOW_TYPE, APPLICATION_GRANT_TYPES, AccountLifecycleFlowConfigKey, AccountLifecycleFlowConfigKey as AccountLifecycleFlowConfigKey$1, AdministrationFlowConfigKey, AdministrationFlowData, AdministrationFlowError, AdministrationFlowInput, AdministrationModes, AgentQueryKeys, AgentQueryKeys as AgentQueryKeys$1, ApplicationQueryKeys, ApplicationQueryKeys as ApplicationQueryKeys$1, AuthFlowSelectConstants, ConsentConstants, CredentialConstants, DEFAULT_APPLICATION_GRANT_TYPES, DEFAULT_THEME, EmbeddedFlowActionVariant, EmbeddedFlowComponentType, EmbeddedFlowComponentType as EmbeddedFlowComponentType$1, EmbeddedFlowEventType, EmbeddedFlowEventType as EmbeddedFlowEventType$1, EmbeddedFlowResponseType, EmbeddedFlowTextVariant, EmbeddedFlowType, EmbeddedSignInFlowStatus, EmbeddedSignInFlowStatus as EmbeddedSignInFlowStatus$1, EmbeddedSignInFlowType, EmbeddedSignInFlowType as EmbeddedSignInFlowType$1, EmbeddedSignUpFlowStatus, EmbeddedSignUpFlowStatus as EmbeddedSignUpFlowStatus$1, EmbeddedSignUpFlowType, FetchHttpClient, FieldType, FieldType as FieldType$1, FlowMetaType, GroupQueryKeys, GroupQueryKeys as GroupQueryKeys$1, RoleQueryKeys, RoleQueryKeys as RoleQueryKeys$1, SPAUtils, SelectConstants, ThunderIDAPIError, ThunderIDAPIError as ThunderIDAPIError$1, ThunderIDBrowserClient, ThunderIDError, ThunderIDRuntimeError, ThunderIDRuntimeError as ThunderIDRuntimeError$1, ThunderIDWordmark, TranslationBundleConstants, UserQueryKeys, UserQueryKeys as UserQueryKeys$1, UserSelectConstants, UserTypeSelectConstants, addGroupMembers, addGroupMembers as addGroupMembers$1, addRoleAssignments, addRoleAssignments as addRoleAssignments$1, applyGatewayConfiguration, arrayBufferToBase64url, base64urlToArrayBuffer, bem, compileConsentDecisions, copyTextToClipboard, createAction, createAgent, createAgent as createAgent$1, createAgentType, createApplication, createApplication as createApplication$1, createApplicationSharingPolicy, createClassObserver, createClassObserver as createClassObserver$1, createConfigurationVersion, createConnection, createDesignTheme, createFlow, createGateway, createGatewaySecret, createGatewayVariable, createGroup, createGroup as createGroup$1, createHttpClientFetcher, createLayout, createMediaQueryListener, createMediaQueryListener as createMediaQueryListener$1, createNotificationTemplate, createOrganizationUnit, createPackageComponentLogger, createPackageLogger, createResource, createResourceInvalidator, createResourceInvalidator as createResourceInvalidator$1, createResourceOptionsLoader, createResourceServer, createRole, createRole as createRole$1, createSecret, createTheme, createUser, createUser as createUser$1, createUserByPath, createUserSharingPolicy, createUserType, createVariable, deepMerge, deleteAction, deleteAgent, deleteAgent as deleteAgent$1, deleteAgentType, deleteApplication, deleteApplication as deleteApplication$1, deleteApplicationSharingPolicy, deleteConnection, deleteDesignTheme, deleteFlow, deleteGateway, deleteGatewaySecret, deleteGatewayVariable, deleteGroup, deleteImportedConfiguration, deleteLayout, deleteNotificationTemplate, deleteOrganizationUnit, deleteOrganizationUnitByPath, deleteResource, deleteResourceServer, deleteRole, deleteSecret, deleteTranslation, deleteTranslations, deleteUser, deleteUser as deleteUser$1, deleteUserSharingPolicy, deleteUserType, deleteVariable, detectThemeMode, detectThemeMode as detectThemeMode$1, evaluateChangePasswordForm, executeAdministrationFlow, executeEmbeddedDeviceGrantFlow, executeEmbeddedSignInFlow, executeEmbeddedSignUpFlow, exportConfiguration, extractEmojiFromUri, extractUserClaimsFromIdToken, fallbackResourceInvalidator, findAdministrationFlows, generateFlattenedUserProfile, get, getAccountLifecycleActions, getAccountLifecycleActions as getAccountLifecycleActions$1, getAction, getActions, getActiveTheme, getAgent, getAgent as getAgent$1, getAgentGroups, getAgentGroups as getAgentGroups$1, getAgentName, getAgentName as getAgentName$1, getAgentRoles, getAgentRoles as getAgentRoles$1, getAgentType, getAgentTypes, getAgentTypes as getAgentTypes$1, getAgents, getAgents as getAgents$1, getApplication, getApplication as getApplication$1, getApplicationClientSecret, getApplicationOAuthConfig, getApplicationOverlayRules, getApplicationSharingPolicies, getApplicationSharingPolicy, getApplications, getApplications as getApplications$1, getConfigurationVersion, getConfigurationVersions, getConnection, getConnectionUsages, getConnections, getConnectionsMeta, getConsentElementDecision, getDefaultI18nBundles, getDesignTheme, getDesignThemeUsages, getDesignThemes, getFlow, getFlowMeta, getFlowUsages, getFlowVersion, getFlowVersions, getFlows, getFlows as getFlows$1, getGateway, getGatewayAppliedConfiguration, getGatewayAppliedVersion, getGatewayConfigurationDiff, getGatewaySecret, getGatewaySecrets, getGatewayVariable, getGatewayVariables, getGateways, getGroup, getGroupMembers, getGroupMembers as getGroupMembers$1, getGroups, getGroups as getGroups$1, getLanguages, getLayout, getLayoutUsages, getLayouts, getNotificationTemplate, getNotificationTemplates, getOrganizationUnit, getOrganizationUnitByPath, getOrganizationUnitChildren, getOrganizationUnitGroups, getOrganizationUnitRoles, getOrganizationUnitUsers, getOrganizationUnits, getResource, getResourceServer, getResourceServers, getResources, getRole, getRole as getRole$1, getRoleAssignments, getRoleAssignments as getRoleAssignments$1, getRoles, getRoles as getRoles$1, getSecret, getSecrets, getSelectMessages, getServerConfig, getServerConfigs, getTokenPermissions, getUser, getUser as getUser$1, getUserGroups, getUserGroups as getUserGroups$1, getUserOverlayRules, getUserSharingPolicies, getUserSharingPolicy, getUserType, getUserTypes, getUserTypes as getUserTypes$1, getUserUsages, getUsers, getUsers as getUsers$1, getUsersByPath, getUsersMe, getUsersMeMeta, getVariable, getVariables, getVendorPrefix, handleWebAuthnAuthentication, hasAuthParamsInUrl, hasAuthParamsInUrl as hasAuthParamsInUrl$1, hasCalledForThisInstanceInUrl, hasPermission, hasPermission as hasPermission$1, hasUnresolvedTranslationParams, http, importConfiguration, isApplicationSubmissionValid, isEmojiUri, isEmpty, loadUntilOptionsGrow, mapCredentialUpdateError, mergeOptionsBatch, navigate, navigate as navigate$1, normalizeBorderRadius, normalizeSelectOptions, normalizeTranslations, parseKeyValuePairs, parseKeyValuePairs as parseKeyValuePairs$1, parseRedirectUris, previewCimdDocument, regenerateAgentSecret, regenerateClientSecret, regenerateClientSecret as regenerateClientSecret$1, regenerateFlowSecret, removeGroupMembers, removeGroupMembers as removeGroupMembers$1, removeRoleAssignments, removeRoleAssignments as removeRoleAssignments$1, resolveAdministrationFlowHandles, resolveAdministrationFlowId, resolveAdministrationFlows, resolveAdministrationFlows as resolveAdministrationFlows$1, resolveChangeCredentialPolicy, resolveDesign, resolveFlowTemplateLiterals, resolveLogoUri, resolveManagedIdentityName, resolvePageSize, resolveRequestBaseUrl, resolveResourceEndpoint, resolveTranslation, resolveTranslations, restoreFlowVersion, revertGatewayConfiguration, runAccountLifecycleAction, runAccountLifecycleAction as runAccountLifecycleAction$1, runAdministrationFlow, setTranslation, setTranslations, startCase, substituteTranslationParams, supportsCredential, suspendAgent, suspendApplication, suspendUser, toAuthFlowSelectPage, toCreateApplicationRequest, toEqualityFilter, toError, toManagementErrorMessage, toUpdateApplicationRequest, toUserSelectPage, toUserTypeSelectPage, unlockAgent, unlockUser, unsuspendAgent, unsuspendApplication, unsuspendUser, updateAction, updateAgent, updateAgentType, updateApplication, updateApplication as updateApplication$1, updateApplicationSharingPolicy, updateConnection, updateDesignTheme, updateFlow, updateGateway, updateGatewaySecret, updateGatewayVariable, updateGroup, updateLayout, updateMeCredentials, updateMeProfile, updateNotificationTemplate, updateOrganizationUnit, updateOrganizationUnitByPath, updateResource, updateResourceServer, updateRole, updateSecret, updateServerConfig, updateUser, updateUser as updateUser$1, updateUserCredentials, updateUserSharingPolicy, updateUserType, updateVariable, withVendorCSSClassPrefix } from "@thunderid/browser";
2
- import { Comment, Fragment, Teleport, computed, defineComponent, getCurrentInstance, getCurrentScope, h, inject, nextTick, onBeforeUnmount, onMounted, onScopeDispose, onUnmounted, provide, readonly, ref, shallowReadonly, shallowRef, toValue, useId, watch } from "vue";
1
+ import { ADMINISTRATION_FLOW_TYPE, APPLICATION_GRANT_TYPES, AccountLifecycleFlowConfigKey, AccountLifecycleFlowConfigKey as AccountLifecycleFlowConfigKey$1, AdministrationFlowConfigKey, AdministrationFlowData, AdministrationFlowError, AdministrationFlowInput, AdministrationModes, AgentQueryKeys, AgentQueryKeys as AgentQueryKeys$1, ApplicationQueryKeys, ApplicationQueryKeys as ApplicationQueryKeys$1, AttributeVerificationConstants, AttributeVerificationConstants as AttributeVerificationConstants$1, AuthFlowSelectConstants, ConsentConstants, CredentialConstants, DEFAULT_APPLICATION_GRANT_TYPES, DEFAULT_THEME, EmbeddedFlowActionVariant, EmbeddedFlowComponentType, EmbeddedFlowComponentType as EmbeddedFlowComponentType$1, EmbeddedFlowEventType, EmbeddedFlowEventType as EmbeddedFlowEventType$1, EmbeddedFlowResponseType, EmbeddedFlowTextVariant, EmbeddedFlowType, EmbeddedSelfFlowStatus, EmbeddedSelfFlowStatus as EmbeddedSelfFlowStatus$1, EmbeddedSignInFlowStatus, EmbeddedSignInFlowStatus as EmbeddedSignInFlowStatus$1, EmbeddedSignInFlowType, EmbeddedSignInFlowType as EmbeddedSignInFlowType$1, EmbeddedSignUpFlowStatus, EmbeddedSignUpFlowStatus as EmbeddedSignUpFlowStatus$1, EmbeddedSignUpFlowType, FetchHttpClient, FieldType, FieldType as FieldType$1, FlowMetaType, GroupQueryKeys, GroupQueryKeys as GroupQueryKeys$1, RoleQueryKeys, RoleQueryKeys as RoleQueryKeys$1, SPAUtils, SelectConstants, ThunderIDAPIError, ThunderIDAPIError as ThunderIDAPIError$1, ThunderIDBrowserClient, ThunderIDError, ThunderIDRuntimeError, ThunderIDRuntimeError as ThunderIDRuntimeError$1, ThunderIDWordmark, TranslationBundleConstants, UserQueryKeys, UserQueryKeys as UserQueryKeys$1, UserSelectConstants, UserTypeSelectConstants, addGroupMembers, addGroupMembers as addGroupMembers$1, addRoleAssignments, addRoleAssignments as addRoleAssignments$1, applyGatewayConfiguration, arrayBufferToBase64url, base64urlToArrayBuffer, bem, buildValidatorFromRules, compileConsentDecisions, copyTextToClipboard, createAction, createAgent, createAgent as createAgent$1, createAgentType, createApplication, createApplication as createApplication$1, createApplicationSharingPolicy, createClassObserver, createClassObserver as createClassObserver$1, createConfigurationVersion, createConnection, createDesignTheme, createFlow, createGateway, createGatewaySecret, createGatewayVariable, createGroup, createGroup as createGroup$1, createHttpClientFetcher, createLayout, createMediaQueryListener, createMediaQueryListener as createMediaQueryListener$1, createNotificationTemplate, createOrganizationUnit, createPackageComponentLogger, createPackageLogger, createResource, createResourceInvalidator, createResourceInvalidator as createResourceInvalidator$1, createResourceOptionsLoader, createResourceServer, createRole, createRole as createRole$1, createSecret, createTheme, createUser, createUser as createUser$1, createUserByPath, createUserSharingPolicy, createUserType, createVariable, deepMerge, deleteAction, deleteAgent, deleteAgent as deleteAgent$1, deleteAgentType, deleteApplication, deleteApplication as deleteApplication$1, deleteApplicationSharingPolicy, deleteConnection, deleteDesignTheme, deleteFlow, deleteGateway, deleteGatewaySecret, deleteGatewayVariable, deleteGroup, deleteImportedConfiguration, deleteLayout, deleteNotificationTemplate, deleteOrganizationUnit, deleteOrganizationUnitByPath, deleteResource, deleteResourceServer, deleteRole, deleteSecret, deleteTranslation, deleteTranslations, deleteUser, deleteUser as deleteUser$1, deleteUserSharingPolicy, deleteUserType, deleteVariable, detectThemeMode, detectThemeMode as detectThemeMode$1, evaluateChangePasswordForm, executeAdministrationFlow, executeEmbeddedDeviceGrantFlow, executeEmbeddedSelfFlow, executeEmbeddedSignInFlow, executeEmbeddedSignUpFlow, exportConfiguration, extractEmojiFromUri, extractUserClaimsFromIdToken, fallbackResourceInvalidator, findAdministrationFlows, generateFlattenedUserProfile, get, getAccountLifecycleActions, getAccountLifecycleActions as getAccountLifecycleActions$1, getAction, getActions, getActiveTheme, getAgent, getAgent as getAgent$1, getAgentGroups, getAgentGroups as getAgentGroups$1, getAgentName, getAgentName as getAgentName$1, getAgentRoles, getAgentRoles as getAgentRoles$1, getAgentType, getAgentTypes, getAgentTypes as getAgentTypes$1, getAgents, getAgents as getAgents$1, getApplication, getApplication as getApplication$1, getApplicationClientSecret, getApplicationOAuthConfig, getApplicationOverlayRules, getApplicationSharingPolicies, getApplicationSharingPolicy, getApplications, getApplications as getApplications$1, getConfigurationVersion, getConfigurationVersions, getConnection, getConnectionUsages, getConnections, getConnectionsMeta, getConsentElementDecision, getDefaultI18nBundles, getDesignTheme, getDesignThemeUsages, getDesignThemes, getFlow, getFlowMeta, getFlowStepComponents, getFlowUsages, getFlowVersion, getFlowVersions, getFlows, getFlows as getFlows$1, getGateway, getGatewayAppliedConfiguration, getGatewayAppliedVersion, getGatewayConfigurationDiff, getGatewaySecret, getGatewaySecrets, getGatewayVariable, getGatewayVariables, getGateways, getGroup, getGroupMembers, getGroupMembers as getGroupMembers$1, getGroups, getGroups as getGroups$1, getLanguages, getLayout, getLayoutUsages, getLayouts, getNotificationTemplate, getNotificationTemplates, getOrganizationUnit, getOrganizationUnitByPath, getOrganizationUnitChildren, getOrganizationUnitGroups, getOrganizationUnitRoles, getOrganizationUnitUsers, getOrganizationUnits, getResource, getResourceServer, getResourceServers, getResources, getRole, getRole as getRole$1, getRoleAssignments, getRoleAssignments as getRoleAssignments$1, getRoles, getRoles as getRoles$1, getSecret, getSecrets, getSelectMessages, getServerConfig, getServerConfigs, getTokenPermissions, getUser, getUser as getUser$1, getUserGroups, getUserGroups as getUserGroups$1, getUserOverlayRules, getUserSharingPolicies, getUserSharingPolicy, getUserType, getUserTypes, getUserTypes as getUserTypes$1, getUserUsages, getUsers, getUsers as getUsers$1, getUsersByPath, getUsersMe, getUsersMeMeta, getVariable, getVariables, getVendorPrefix, getVerifiedAttributes, getVerifiedAttributes as getVerifiedAttributes$1, handleWebAuthnAuthentication, hasAuthParamsInUrl, hasAuthParamsInUrl as hasAuthParamsInUrl$1, hasCalledForThisInstanceInUrl, hasPermission, hasPermission as hasPermission$1, hasUnresolvedTranslationParams, http, importConfiguration, isApplicationSubmissionValid, isEmojiUri, isEmpty, isVerifiableAttribute, isVerifiableAttribute as isVerifiableAttribute$1, loadUntilOptionsGrow, mapCredentialUpdateError, mergeOptionsBatch, navigate, navigate as navigate$1, normalizeBorderRadius, normalizeSelectOptions, normalizeTranslations, parseKeyValuePairs, parseKeyValuePairs as parseKeyValuePairs$1, parseRedirectUris, previewCimdDocument, regenerateAgentSecret, regenerateClientSecret, regenerateClientSecret as regenerateClientSecret$1, regenerateFlowSecret, removeGroupMembers, removeGroupMembers as removeGroupMembers$1, removeRoleAssignments, removeRoleAssignments as removeRoleAssignments$1, resolveAdministrationFlowHandles, resolveAdministrationFlowId, resolveAdministrationFlows, resolveAdministrationFlows as resolveAdministrationFlows$1, resolveChangeCredentialPolicy, resolveDesign, resolveFlowTemplateLiterals, resolveLogoUri, resolveManagedIdentityName, resolvePageSize, resolveRequestBaseUrl, resolveResourceEndpoint, resolveTranslation, resolveTranslations, restoreFlowVersion, revertGatewayConfiguration, runAccountLifecycleAction, runAccountLifecycleAction as runAccountLifecycleAction$1, runAdministrationFlow, setTranslation, setTranslations, startCase, substituteTranslationParams, supportsCredential, suspendAgent, suspendApplication, suspendUser, toAuthFlowSelectPage, toCreateApplicationRequest, toEqualityFilter, toError, toManagementErrorMessage, toUpdateApplicationRequest, toUserSelectPage, toUserTypeSelectPage, unlockAgent, unlockUser, unsuspendAgent, unsuspendApplication, unsuspendUser, updateAction, updateAgent, updateAgentType, updateApplication, updateApplication as updateApplication$1, updateApplicationSharingPolicy, updateConnection, updateDesignTheme, updateFlow, updateGateway, updateGatewaySecret, updateGatewayVariable, updateGroup, updateLayout, updateMeCredentials, updateMeProfile, updateNotificationTemplate, updateOrganizationUnit, updateOrganizationUnitByPath, updateResource, updateResourceServer, updateRole, updateSecret, updateServerConfig, updateUser, updateUser as updateUser$1, updateUserCredentials, updateUserSharingPolicy, updateUserType, updateVariable, withVendorCSSClassPrefix } from "@thunderid/browser";
2
+ import { Comment, Fragment, Teleport, cloneVNode, computed, defineComponent, getCurrentInstance, getCurrentScope, h, inject, isVNode, nextTick, onBeforeUnmount, onMounted, onScopeDispose, onUnmounted, provide, readonly, ref, shallowReadonly, shallowRef, toValue, useId, watch } from "vue";
3
3
  import DOMPurify from "dompurify";
4
4
 
5
5
  //#region src/keys.ts
@@ -284,7 +284,7 @@ const PACKAGE_NAME = "@thunderid/vue";
284
284
  * Package-level logger for `@thunderid/vue`.
285
285
  * Use this when logging is not tied to a specific component.
286
286
  */
287
- const logger$7 = createPackageLogger(PACKAGE_NAME);
287
+ const logger$8 = createPackageLogger(PACKAGE_NAME);
288
288
  /**
289
289
  * Creates a component-scoped logger prefixed with `@thunderid/vue - <component>`.
290
290
  *
@@ -294,7 +294,7 @@ const createVueLogger = (component) => createPackageComponentLogger(PACKAGE_NAME
294
294
 
295
295
  //#endregion
296
296
  //#region src/providers/I18nProvider.ts
297
- const logger$6 = createVueLogger("I18nProvider");
297
+ const logger$7 = createVueLogger("I18nProvider");
298
298
  const DEFAULT_URL_PARAM = "lang";
299
299
  const deriveRootDomain = (hostname) => {
300
300
  const parts = hostname.split(".");
@@ -334,7 +334,7 @@ const createStorageAdapter = (strategy, key, cookieDomain) => {
334
334
  try {
335
335
  window.localStorage.setItem(key, language);
336
336
  } catch {
337
- logger$6.warn("Failed to persist language preference to localStorage.");
337
+ logger$7.warn("Failed to persist language preference to localStorage.");
338
338
  }
339
339
  }
340
340
  };
@@ -461,7 +461,7 @@ const I18nProvider = defineComponent({
461
461
  };
462
462
  const setLanguage = (language) => {
463
463
  if (mergedBundlesComputed.value[language]) currentLanguage.value = language;
464
- else logger$6.warn(`Language '${language}' is not available. Available languages: ${Object.keys(mergedBundlesComputed.value).join(", ")}`);
464
+ else logger$7.warn(`Language '${language}' is not available. Available languages: ${Object.keys(mergedBundlesComputed.value).join(", ")}`);
465
465
  };
466
466
  provide(I18N_KEY, {
467
467
  bundles: readonly(mergedBundlesComputed),
@@ -908,7 +908,7 @@ var ThunderIDVueClient_default = ThunderIDVueClient;
908
908
 
909
909
  //#endregion
910
910
  //#region src/providers/ThunderIDProvider.ts
911
- const logger$5 = createVueLogger("ThunderIDProvider");
911
+ const logger$6 = createVueLogger("ThunderIDProvider");
912
912
  /**
913
913
  * Checks if the current URL contains authentication parameters.
914
914
  */
@@ -1182,7 +1182,7 @@ const ThunderIDProvider = defineComponent({
1182
1182
  try {
1183
1183
  await client.getDiscoveryResponse();
1184
1184
  } catch (error) {
1185
- logger$5.warn("Could not load the OIDC discovery metadata on mount.", error);
1185
+ logger$6.warn("Could not load the OIDC discovery metadata on mount.", error);
1186
1186
  }
1187
1187
  const initializedConfig = await client.getConfiguration();
1188
1188
  if (initializedConfig?.baseUrl) sessionStorage.setItem(`${vendor}_base_url`, initializedConfig.baseUrl);
@@ -2215,6 +2215,87 @@ img.thunderid-user-profile__avatar {
2215
2215
  gap: calc(var(--thunderid-spacing-unit) * 0.5);
2216
2216
  }
2217
2217
 
2218
+ .thunderid-user-profile__verification-status {
2219
+ display: inline-flex;
2220
+ flex-shrink: 0;
2221
+ gap: calc(var(--thunderid-spacing-unit) * 0.5);
2222
+ align-items: center;
2223
+ padding: 0 var(--thunderid-spacing-unit);
2224
+ border-radius: 999px;
2225
+ font-size: 0.75rem;
2226
+ font-weight: 500;
2227
+ line-height: 22px;
2228
+ white-space: nowrap;
2229
+ }
2230
+
2231
+ .thunderid-user-profile__verification-status svg {
2232
+ width: 12px;
2233
+ height: 12px;
2234
+ }
2235
+
2236
+ .thunderid-user-profile__verification-status--verified {
2237
+ color: var(--thunderid-color-success-dark, var(--thunderid-color-success-main));
2238
+ background: color-mix(in srgb, var(--thunderid-color-success-main) 12%, transparent);
2239
+ }
2240
+
2241
+ /* Amber marks an action the user can take. */
2242
+ .thunderid-user-profile__verification-status--unverified {
2243
+ color: var(--thunderid-color-warning-contrastText);
2244
+ background: color-mix(in srgb, var(--thunderid-color-warning-main) 14%, transparent);
2245
+ }
2246
+
2247
+ .thunderid-user-profile__verification {
2248
+ padding: var(--thunderid-spacing-unit) 0;
2249
+ }
2250
+
2251
+ /* Starts where the value column starts: the label's width plus the row gap. */
2252
+ .thunderid-user-profile__verification--inline {
2253
+ margin-inline-start: calc(120px + var(--thunderid-spacing-unit));
2254
+ }
2255
+
2256
+ .thunderid-user-profile__verification-overlay {
2257
+ position: fixed;
2258
+ inset: 0;
2259
+ z-index: 9999;
2260
+ display: flex;
2261
+ align-items: center;
2262
+ justify-content: center;
2263
+ background-color: rgba(0, 0, 0, 0.45);
2264
+ }
2265
+
2266
+ .thunderid-user-profile__verification-dialog {
2267
+ box-sizing: border-box;
2268
+ width: min(448px, calc(100vw - calc(var(--thunderid-spacing-unit) * 4)));
2269
+ max-height: 90vh;
2270
+ overflow-y: auto;
2271
+ padding: calc(var(--thunderid-spacing-unit) * 2);
2272
+ background: var(--thunderid-color-background-surface);
2273
+ border-radius: var(--thunderid-border-radius-large);
2274
+ box-shadow: var(--thunderid-shadow-large);
2275
+ font-family: var(--thunderid-typography-fontFamily);
2276
+ outline: none;
2277
+ }
2278
+
2279
+ .thunderid-user-profile__verification-dialog > .thunderid-user-profile__verification {
2280
+ padding: 0;
2281
+ }
2282
+
2283
+ .thunderid-user-profile__verification-notice {
2284
+ margin-bottom: calc(var(--thunderid-spacing-unit) * 2);
2285
+ }
2286
+
2287
+ .thunderid-user-profile__visually-hidden {
2288
+ position: absolute;
2289
+ width: 1px;
2290
+ height: 1px;
2291
+ padding: 0;
2292
+ margin: -1px;
2293
+ overflow: hidden;
2294
+ clip: rect(0, 0, 0, 0);
2295
+ white-space: nowrap;
2296
+ border: 0;
2297
+ }
2298
+
2218
2299
  .thunderid-user-profile__field-error {
2219
2300
  color: var(--thunderid-color-error, #d32f2f);
2220
2301
  font-size: var(--thunderid-typography-fontSize-xs, 0.8rem);
@@ -2238,6 +2319,83 @@ img.thunderid-user-profile__avatar {
2238
2319
  `;
2239
2320
  var UserProfile_css_default = USER_PROFILE_CSS;
2240
2321
 
2322
+ //#endregion
2323
+ //#region src/components/account/verify-attribute/VerifyAttribute.css.ts
2324
+ /**
2325
+ * Styles for the VerifyAttribute presentation component.
2326
+ * Parity target: `@thunderid/react` BaseVerifyAttribute.styles.ts
2327
+ */
2328
+ const VERIFY_ATTRIBUTE_CSS = `
2329
+ /* ============================================================
2330
+ VerifyAttribute (React Parity)
2331
+ ============================================================ */
2332
+
2333
+ .thunderid-verify-attribute {
2334
+ display: flex;
2335
+ flex-direction: column;
2336
+ gap: calc(var(--thunderid-spacing-unit) * 2);
2337
+ width: 100%;
2338
+ box-sizing: border-box;
2339
+ font-family: var(--thunderid-typography-fontFamily);
2340
+ }
2341
+
2342
+ .thunderid-verify-attribute--outlined {
2343
+ padding: calc(var(--thunderid-spacing-unit) * 2);
2344
+ border: 1px solid var(--thunderid-color-border);
2345
+ border-radius: var(--thunderid-border-radius-medium, 6px);
2346
+ }
2347
+
2348
+ .thunderid-verify-attribute__header {
2349
+ display: flex;
2350
+ flex-direction: column;
2351
+ gap: calc(var(--thunderid-spacing-unit) / 2);
2352
+ }
2353
+
2354
+ .thunderid-verify-attribute__heading {
2355
+ margin: 0;
2356
+ }
2357
+
2358
+ .thunderid-verify-attribute__subheading,
2359
+ .thunderid-verify-attribute__destination {
2360
+ margin: 0;
2361
+ color: var(--thunderid-color-text-secondary);
2362
+ }
2363
+
2364
+ .thunderid-verify-attribute__content {
2365
+ display: flex;
2366
+ flex-direction: column;
2367
+ gap: calc(var(--thunderid-spacing-unit) * 1.5);
2368
+ }
2369
+
2370
+ .thunderid-verify-attribute__content .thunderid-otp-field__inputs {
2371
+ justify-content: flex-start;
2372
+ }
2373
+
2374
+ .thunderid-verify-attribute__content .thunderid-otp-field__digit {
2375
+ flex: 1 1 calc(var(--thunderid-spacing-unit) * 4);
2376
+ max-width: calc(var(--thunderid-spacing-unit) * 6);
2377
+ min-width: 0;
2378
+ }
2379
+
2380
+ .thunderid-verify-attribute__alert {
2381
+ width: 100%;
2382
+ }
2383
+
2384
+ .thunderid-verify-attribute__loading {
2385
+ display: flex;
2386
+ justify-content: center;
2387
+ padding: calc(var(--thunderid-spacing-unit) * 2);
2388
+ }
2389
+
2390
+ .thunderid-verify-attribute__actions {
2391
+ display: flex;
2392
+ align-items: center;
2393
+ justify-content: flex-end;
2394
+ gap: var(--thunderid-spacing-unit);
2395
+ }
2396
+ `;
2397
+ var VerifyAttribute_css_default = VERIFY_ATTRIBUTE_CSS;
2398
+
2241
2399
  //#endregion
2242
2400
  //#region src/components/admin/shared/Admin.css.ts
2243
2401
  /**
@@ -3805,6 +3963,13 @@ const OTP_FIELD_CSS = `
3805
3963
  cursor: not-allowed;
3806
3964
  }
3807
3965
 
3966
+ .thunderid-otp-field__separator {
3967
+ flex: none;
3968
+ color: var(--thunderid-color-text-secondary);
3969
+ font-size: var(--thunderid-typography-fontSize-xl);
3970
+ font-weight: var(--thunderid-typography-fontWeight-medium);
3971
+ }
3972
+
3808
3973
  .thunderid-otp-field__error {
3809
3974
  font-size: var(--thunderid-typography-fontSize-xs);
3810
3975
  color: var(--thunderid-color-error-contrastText);
@@ -4319,7 +4484,8 @@ const STYLES = [
4319
4484
  UserDropdown_css_default,
4320
4485
  UserProfile_css_default,
4321
4486
  Admin_css_default,
4322
- Attribution_css_default
4487
+ Attribution_css_default,
4488
+ VerifyAttribute_css_default
4323
4489
  ].join("\n");
4324
4490
  /**
4325
4491
  * Injects ThunderID Vue component styles into the document `<head>` once.
@@ -4687,7 +4853,7 @@ var useFetchAuthFlows_default = useFetchAuthFlows;
4687
4853
 
4688
4854
  //#endregion
4689
4855
  //#region src/composables/management/useInfiniteOptions.ts
4690
- const logger$4 = createPackageComponentLogger("@thunderid/vue", "useInfiniteOptions");
4856
+ const logger$5 = createPackageComponentLogger("@thunderid/vue", "useInfiniteOptions");
4691
4857
  /**
4692
4858
  * Keeps the option list of a `Select` that loads more options when the user asks for them. It owns the cursor,
4693
4859
  * appends each batch without duplicates, and stops at the end of the data. Vue counterpart of the React
@@ -4712,10 +4878,10 @@ const useInfiniteOptions = (args) => {
4712
4878
  cursor,
4713
4879
  options: options.value
4714
4880
  }, batch);
4715
- if (merged.issue === "cursor-stuck") logger$4.warn("A load returned no new options and the same cursor; the list was treated as finished.");
4881
+ if (merged.issue === "cursor-stuck") logger$5.warn("A load returned no new options and the same cursor; the list was treated as finished.");
4716
4882
  else if (merged.issue === "not-a-list" && !nonListLogged) {
4717
4883
  nonListLogged = true;
4718
- logger$4.warn("A load returned something other than a list of options; it was treated as an empty batch.");
4884
+ logger$5.warn("A load returned something other than a list of options; it was treated as an empty batch.");
4719
4885
  }
4720
4886
  const addedNothing = merged.options.length === options.value.length;
4721
4887
  cursor = merged.cursor;
@@ -4744,7 +4910,7 @@ const useInfiniteOptions = (args) => {
4744
4910
  try {
4745
4911
  args.onError?.(failureError);
4746
4912
  } catch (callbackFailure) {
4747
- logger$4.error("The onError callback threw.", callbackFailure);
4913
+ logger$5.error("The onError callback threw.", callbackFailure);
4748
4914
  }
4749
4915
  }
4750
4916
  } finally {
@@ -6247,6 +6413,10 @@ const OtpField = defineComponent({
6247
6413
  required: {
6248
6414
  default: false,
6249
6415
  type: Boolean
6416
+ },
6417
+ separatorAfter: {
6418
+ default: void 0,
6419
+ type: Number
6250
6420
  }
6251
6421
  },
6252
6422
  emits: ["update:modelValue"],
@@ -6293,20 +6463,35 @@ const OtpField = defineComponent({
6293
6463
  style: attrs.style
6294
6464
  }, [
6295
6465
  props.label ? h("label", { class: withVendorCSSClassPrefix("otp-field__label") }, [props.label, props.required ? h("span", { class: withVendorCSSClassPrefix("otp-field__required") }, " *") : null]) : null,
6296
- h("div", { class: withVendorCSSClassPrefix("otp-field__inputs") }, Array.from({ length: props.length }, (_, i) => h("input", {
6466
+ h("div", {
6467
+ class: withVendorCSSClassPrefix("otp-field__inputs"),
6468
+ style: props.separatorAfter && props.separatorAfter > 0 && props.separatorAfter < props.length ? {
6469
+ flexWrap: "nowrap",
6470
+ justifyContent: "center",
6471
+ gap: "calc(var(--thunderid-spacing-unit) * 0.5)"
6472
+ } : void 0
6473
+ }, Array.from({ length: props.length }, (_, i) => [h("input", {
6297
6474
  "aria-label": `Digit ${i + 1}`,
6298
6475
  class: withVendorCSSClassPrefix("otp-field__digit"),
6299
6476
  disabled: props.disabled,
6300
6477
  inputmode: props.numericOnly ? "numeric" : "text",
6301
- key: i,
6478
+ key: `digit-${i}`,
6302
6479
  maxlength: 1,
6303
6480
  onInput: (e) => handleInput(i, e),
6304
6481
  onKeydown: (e) => handleKeydown(i, e),
6305
6482
  onPaste: (e) => handlePaste(i, e),
6306
6483
  ref: (el) => setRef(el, i),
6484
+ style: props.separatorAfter && props.separatorAfter > 0 && props.separatorAfter < props.length ? {
6485
+ width: "calc(var(--thunderid-spacing-unit) * 3.5)",
6486
+ height: "calc(var(--thunderid-spacing-unit) * 4.5)"
6487
+ } : void 0,
6307
6488
  type: "text",
6308
6489
  value: digits[i]
6309
- }))),
6490
+ }), props.separatorAfter === i + 1 ? h("span", {
6491
+ "aria-hidden": "true",
6492
+ class: withVendorCSSClassPrefix("otp-field__separator"),
6493
+ key: "separator"
6494
+ }, "-") : null]).flat()),
6310
6495
  props.error ? h("span", { class: withVendorCSSClassPrefix("otp-field__error") }, props.error) : null
6311
6496
  ]);
6312
6497
  };
@@ -6958,7 +7143,7 @@ var SignUpButton_default = SignUpButton;
6958
7143
 
6959
7144
  //#endregion
6960
7145
  //#region src/components/auth/Callback.ts
6961
- const logger$3 = createVueLogger("Callback");
7146
+ const logger$4 = createVueLogger("Callback");
6962
7147
  /**
6963
7148
  * Callback — headless component that handles OAuth callback parameter forwarding.
6964
7149
  *
@@ -7047,7 +7232,7 @@ const Callback = defineComponent({
7047
7232
  navigate$2(`${returnPath}?${params.toString()}`);
7048
7233
  } catch (err) {
7049
7234
  const errorMessage = err instanceof Error ? err.message : "OAuth callback processing failed";
7050
- logger$3.error("OAuth callback error:", err);
7235
+ logger$4.error("OAuth callback error:", err);
7051
7236
  props.onError?.(err instanceof Error ? err : new Error(errorMessage));
7052
7237
  const params = new URLSearchParams();
7053
7238
  params.set("error", "callback_error");
@@ -7346,7 +7531,7 @@ const validateFieldValue = (value, type, required = false, touched = false) => {
7346
7531
  * Factory function to create form field VNodes based on FieldType.
7347
7532
  */
7348
7533
  const createField = (config) => {
7349
- const { name, type, label, required, value, onChange, onBlur, disabled = false, error, className, options = [], touched = false, placeholder, length, numericOnly = true } = config;
7534
+ const { name, type, label, required, value, onChange, onBlur, disabled = false, error, className, options = [], touched = false, placeholder, length, numericOnly = true, separatorAfter } = config;
7350
7535
  const validationError = error || validateFieldValue(value, type, required, touched);
7351
7536
  const commonProps = {
7352
7537
  class: className,
@@ -7399,6 +7584,7 @@ const createField = (config) => {
7399
7584
  ...commonProps,
7400
7585
  ...length ? { length } : {},
7401
7586
  numericOnly,
7587
+ ...separatorAfter ? { separatorAfter } : {},
7402
7588
  "onUpdate:modelValue": onChange
7403
7589
  });
7404
7590
  case FieldType$1.Number: return h(TextField_default, {
@@ -8058,7 +8244,7 @@ var MicrosoftButton_default = MicrosoftButton;
8058
8244
 
8059
8245
  //#endregion
8060
8246
  //#region src/components/auth/flow/AuthOptionFactoryCore.ts
8061
- const logger$2 = createVueLogger("AuthOptionFactory");
8247
+ const logger$3 = createVueLogger("AuthOptionFactory");
8062
8248
  /**
8063
8249
  * Replaces `emoji:` URIs embedded in HTML before DOMPurify sanitization.
8064
8250
  *
@@ -8161,9 +8347,20 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
8161
8347
  };
8162
8348
  };
8163
8349
  const skipUnsupported = (typeName) => {
8164
- logger$2.warn(`Unsupported component type: ${typeName}. Skipping render.`);
8350
+ logger$3.warn(`Unsupported component type: ${typeName}. Skipping render.`);
8165
8351
  return null;
8166
8352
  };
8353
+ if (component.type === EmbeddedFlowComponentType$1.Resend && options.renderResend) return h(Button_default, {
8354
+ class: options.buttonClassName,
8355
+ color: "primary",
8356
+ disabled: isLoading || options.isTimeoutDisabled,
8357
+ fullWidth: true,
8358
+ id: component.id,
8359
+ key,
8360
+ onClick: () => options.onSubmit?.(component, {}, true),
8361
+ type: "button",
8362
+ variant: "text"
8363
+ }, { default: () => resolve(component.label) });
8167
8364
  switch (component.type) {
8168
8365
  case EmbeddedFlowComponentType$1.TextInput:
8169
8366
  case EmbeddedFlowComponentType$1.PasswordInput:
@@ -8188,11 +8385,13 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
8188
8385
  }
8189
8386
  case EmbeddedFlowComponentType$1.OtpInput: {
8190
8387
  const identifier = component.ref ?? "";
8191
- const value = formValues[identifier] || "";
8388
+ const isDeviceUserCode = identifier === "user_code";
8389
+ const currentValue = formValues[identifier] || "";
8390
+ const value = isDeviceUserCode ? currentValue.replace(/[-\s]/g, "").toUpperCase() : currentValue;
8192
8391
  const error = touchedFields[identifier] || false ? formErrors[identifier] : void 0;
8193
8392
  const reportedLength = Number(options.additionalData?.["otpLength"]);
8194
- const otpLength = Number.isInteger(reportedLength) && reportedLength > 0 ? reportedLength : void 0;
8195
- const numericOnly = options.additionalData?.["otpNumericOnly"] !== "false";
8393
+ const otpLength = isDeviceUserCode ? 8 : Number.isInteger(reportedLength) && reportedLength > 0 ? reportedLength : void 0;
8394
+ const numericOnly = !isDeviceUserCode && options.additionalData?.["otpNumericOnly"] !== "false";
8196
8395
  return createField({
8197
8396
  className: options.inputClassName,
8198
8397
  error,
@@ -8200,6 +8399,7 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
8200
8399
  length: otpLength,
8201
8400
  name: identifier,
8202
8401
  numericOnly,
8402
+ separatorAfter: isDeviceUserCode ? 4 : void 0,
8203
8403
  onBlur: () => options.onInputBlur?.(identifier),
8204
8404
  onChange: (newValue) => onInputChange(identifier, newValue),
8205
8405
  placeholder: resolve(component.placeholder) || "",
@@ -8413,7 +8613,7 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
8413
8613
  });
8414
8614
  }
8415
8615
  case EmbeddedFlowComponentType$1.Icon:
8416
- logger$2.warn(`Icon component type is not yet supported in the Vue SDK. Skipping render.`);
8616
+ logger$3.warn(`Icon component type is not yet supported in the Vue SDK. Skipping render.`);
8417
8617
  return null;
8418
8618
  case EmbeddedFlowComponentType$1.Stack: {
8419
8619
  const direction = component.direction || "row";
@@ -8479,7 +8679,7 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
8479
8679
  });
8480
8680
  }
8481
8681
  default:
8482
- logger$2.warn(`Unsupported component type: ${component.type}. Skipping render.`);
8682
+ logger$3.warn(`Unsupported component type: ${component.type}. Skipping render.`);
8483
8683
  return null;
8484
8684
  }
8485
8685
  };
@@ -8499,6 +8699,15 @@ const renderSignUpComponents = (components, formValues, touchedFields, formError
8499
8699
  key: component.id || index
8500
8700
  })).filter((v) => v !== null);
8501
8701
  /**
8702
+ * Processes an array of components and renders them as VNodes for self attribute verification.
8703
+ * Identical to renderSignUpComponents, except that it renders RESEND actions.
8704
+ */
8705
+ const renderVerificationComponents = (components, formValues, touchedFields, formErrors, isLoading, isFormValid, resetForm, onInputChange, options) => components.map((component, index) => createAuthComponentFromFlow(component, formValues, touchedFields, formErrors, isLoading, isFormValid, resetForm, onInputChange, {
8706
+ ...options,
8707
+ key: component.id ?? index,
8708
+ renderResend: true
8709
+ })).filter((v) => v !== null);
8710
+ /**
8502
8711
  * Processes an array of components and renders them as VNodes for invite-user flows.
8503
8712
  * Identical to renderSignInComponents — separated for semantic clarity.
8504
8713
  */
@@ -9848,7 +10057,7 @@ var getAuthComponentHeadings_default = getAuthComponentHeadings;
9848
10057
 
9849
10058
  //#endregion
9850
10059
  //#region src/components/auth/sign-up/BaseSignUp.ts
9851
- const logger$1 = createVueLogger("BaseSignUp");
10060
+ const logger$2 = createVueLogger("BaseSignUp");
9852
10061
  const extractFormFields = (components) => {
9853
10062
  const fields = [];
9854
10063
  const process = (comps) => {
@@ -10075,7 +10284,7 @@ const BaseSignUp = defineComponent({
10075
10284
  if (reusablePopup) reusablePopup.location.href = redirectUrl;
10076
10285
  const popup = reusablePopup ?? window.open(redirectUrl, "oauth_popup", "width=500,height=600,scrollbars=yes,resizable=yes");
10077
10286
  if (!popup) {
10078
- logger$1.error("Failed to open popup window");
10287
+ logger$2.error("Failed to open popup window");
10079
10288
  return false;
10080
10289
  }
10081
10290
  let hasProcessedCallback = false;
@@ -10151,7 +10360,7 @@ const BaseSignUp = defineComponent({
10151
10360
  if (!isThisRound(state)) return;
10152
10361
  hasProcessedCallback = true;
10153
10362
  if (error) {
10154
- logger$1.error("OAuth error");
10363
+ logger$2.error("OAuth error");
10155
10364
  popup.close();
10156
10365
  cleanup();
10157
10366
  return;
@@ -10160,7 +10369,7 @@ const BaseSignUp = defineComponent({
10160
10369
  }
10161
10370
  } catch {}
10162
10371
  } catch {
10163
- logger$1.error("Error monitoring popup");
10372
+ logger$2.error("Error monitoring popup");
10164
10373
  }
10165
10374
  }, 1e3);
10166
10375
  return true;
@@ -10668,7 +10877,8 @@ const FIELDS_TO_SKIP = [
10668
10877
  "preferredMFAOption",
10669
10878
  "attributes",
10670
10879
  "isReadOnly",
10671
- "isReadonly"
10880
+ "isReadonly",
10881
+ AttributeVerificationConstants$1.VERIFIED_ATTRIBUTES_KEY
10672
10882
  ];
10673
10883
  const READONLY_FIELDS = [
10674
10884
  "username",
@@ -10707,6 +10917,11 @@ const AVATAR_GRADIENTS$1 = [
10707
10917
  "linear-gradient(135deg, #14b8a6 0%, #0ea5e9 100%)",
10708
10918
  "linear-gradient(135deg, #f97316 0%, #ec4899 100%)"
10709
10919
  ];
10920
+ const isVerificationType = (type) => !!type && AttributeVerificationConstants$1.VERIFIABLE_ATTRIBUTE_TYPES.includes(type.toLowerCase());
10921
+ const isVerifiedAfterSave = (type) => !!type && AttributeVerificationConstants$1.VERIFY_AFTER_SAVE_ATTRIBUTE_TYPES.includes(type.toLowerCase());
10922
+ const storedValueOf = (user, name) => {
10923
+ return (user?.["attributes"])?.[name] ?? user?.[name];
10924
+ };
10710
10925
  function getAvatarGradient$1(seed) {
10711
10926
  if (!seed) return AVATAR_GRADIENTS$1[0];
10712
10927
  let hash = 0;
@@ -10821,6 +11036,52 @@ const BaseUserProfile = defineComponent({
10821
11036
  }
10822
11037
  return fallback ?? key;
10823
11038
  };
11039
+ const tp = (key, params = {}) => {
11040
+ const translate = props.t;
11041
+ const res = translate?.(key, params);
11042
+ if (res && res !== key) return res;
11043
+ const fallback = (getDefaultI18nBundles()["en-US"]?.translations)?.[key];
11044
+ return fallback ? substituteTranslationParams(fallback, params) : key;
11045
+ };
11046
+ const i18n = inject(I18N_KEY, null);
11047
+ const verifyingField = ref(null);
11048
+ const verifiedNotice = ref(null);
11049
+ const verificationDialogRef = ref(null);
11050
+ let focusBeforeDialog = null;
11051
+ const openVerification = (name) => {
11052
+ verifiedNotice.value = null;
11053
+ verifyingField.value = name;
11054
+ };
11055
+ watch(verifyingField, (name, previous) => {
11056
+ if (props.compact) return;
11057
+ if (name && !previous) {
11058
+ focusBeforeDialog = document.activeElement;
11059
+ nextTick(() => verificationDialogRef.value?.focus());
11060
+ } else if (!name && previous) {
11061
+ focusBeforeDialog?.focus();
11062
+ focusBeforeDialog = null;
11063
+ }
11064
+ });
11065
+ const pendingVerification = ref(null);
11066
+ const storedUser = () => props.flattenedProfile ?? props.profile ?? null;
11067
+ const reportedVerifiedAttributes = () => getVerifiedAttributes$1(props.profile ?? props.flattenedProfile);
11068
+ watch(() => [
11069
+ props.profile,
11070
+ props.flattenedProfile,
11071
+ props.error
11072
+ ], () => {
11073
+ const pending = pendingVerification.value;
11074
+ if (!pending) return;
11075
+ if (props.error) {
11076
+ pendingVerification.value = null;
11077
+ return;
11078
+ }
11079
+ const storedValue = storedValueOf(storedUser(), pending.name);
11080
+ if (storedValue === pending.previousValue) return;
11081
+ const verified = reportedVerifiedAttributes();
11082
+ if (verified && typeof storedValue === "string" && storedValue.trim() !== "" && !verified[pending.name]) openVerification(pending.name);
11083
+ pendingVerification.value = null;
11084
+ });
10824
11085
  function shouldShowField(fieldName, isSchemaBased = false) {
10825
11086
  if (!isSchemaBased && FIELDS_TO_SKIP.includes(fieldName)) return false;
10826
11087
  if (props.hideFields && props.hideFields.length > 0 && props.hideFields.includes(fieldName)) return false;
@@ -10842,6 +11103,11 @@ const BaseUserProfile = defineComponent({
10842
11103
  [fieldName]: ""
10843
11104
  };
10844
11105
  }
11106
+ function clearEditedValue(fieldName) {
11107
+ const next = { ...editedValues.value };
11108
+ delete next[fieldName];
11109
+ editedValues.value = next;
11110
+ }
10845
11111
  function cancelEditing(fieldName) {
10846
11112
  const data = props.flattenedProfile ?? props.profile ?? null;
10847
11113
  const originalValue = data?.[fieldName] ?? data?.attributes?.[fieldName] ?? "";
@@ -10893,14 +11159,124 @@ const BaseUserProfile = defineComponent({
10893
11159
  ...fieldErrors.value,
10894
11160
  [fieldName]: ""
10895
11161
  };
10896
- const payload = buildPatchValue(fieldName, typeof value === "string" ? strVal : value, schema.schemaId, schema.multiValued);
11162
+ const submitVal = typeof value === "string" ? strVal : value;
11163
+ const payload = buildPatchValue(fieldName, submitVal, schema.schemaId, schema.multiValued);
11164
+ const previousValue = storedValueOf(storedUser(), fieldName);
11165
+ pendingVerification.value = slots["verification"] && isVerifiedAfterSave(schema.type) && isVerifiableAttribute$1(props.userSchema, fieldName) && typeof submitVal === "string" && submitVal !== "" && submitVal !== previousValue ? {
11166
+ name: fieldName,
11167
+ previousValue
11168
+ } : null;
10897
11169
  try {
10898
11170
  await props.onUpdate(payload);
10899
11171
  editingFields.value = {
10900
11172
  ...editingFields.value,
10901
11173
  [fieldName]: false
10902
11174
  };
10903
- } catch {}
11175
+ clearEditedValue(fieldName);
11176
+ } catch {
11177
+ pendingVerification.value = null;
11178
+ }
11179
+ }
11180
+ function renderVerificationStatus(name) {
11181
+ const verification = reportedVerifiedAttributes()?.[name];
11182
+ let verifiedAtText;
11183
+ if (verification?.verifiedAt) {
11184
+ const verifiedAt = new Date(verification.verifiedAt);
11185
+ verifiedAtText = tp("user.verification.status.verified_at", { date: Number.isNaN(verifiedAt.getTime()) ? verification.verifiedAt : verifiedAt.toLocaleString(i18n?.currentLanguage?.value ?? props.preferences?.i18n?.language) });
11186
+ }
11187
+ const modifier = verification ? "verified" : "unverified";
11188
+ return h("span", {
11189
+ class: [px("user-profile__verification-status"), px(`user-profile__verification-status--${modifier}`)].join(" "),
11190
+ "data-testid": `thunderid-verification-status-${name}`,
11191
+ title: verifiedAtText
11192
+ }, [
11193
+ h(verification ? CircleCheckIcon : CircleAlertIcon),
11194
+ tp(`user.verification.status.${modifier}`),
11195
+ verifiedAtText ? h("span", { class: px("user-profile__visually-hidden") }, ` (${verifiedAtText})`) : null
11196
+ ]);
11197
+ }
11198
+ const verificationStatusOf = (name) => {
11199
+ const verified = reportedVerifiedAttributes();
11200
+ const stored = storedValueOf(storedUser(), name);
11201
+ if (!verified || !isVerifiableAttribute$1(props.userSchema, name)) return null;
11202
+ if (typeof stored !== "string" || stored.trim() === "") return null;
11203
+ return verified[name] ? "verified" : "unverified";
11204
+ };
11205
+ const verificationRenderProps = () => {
11206
+ const canVerify = (name) => Boolean(props.editable) && !!slots["verification"] && verificationStatusOf(name) === "unverified";
11207
+ return {
11208
+ canVerify,
11209
+ cancelVerification: () => {
11210
+ verifyingField.value = null;
11211
+ },
11212
+ renderVerification: () => {
11213
+ const name = verifyingField.value;
11214
+ if (!name) return null;
11215
+ return buildVerificationPanel({
11216
+ displayName: props.userSchema?.[name]?.displayName,
11217
+ name
11218
+ });
11219
+ },
11220
+ verificationStatus: verificationStatusOf,
11221
+ verifiedAttributes: reportedVerifiedAttributes(),
11222
+ verify: (name) => {
11223
+ if (canVerify(name)) openVerification(name);
11224
+ },
11225
+ verifyingAttribute: verifyingField.value
11226
+ };
11227
+ };
11228
+ function buildVerificationPanel(schema) {
11229
+ const name = schema.name;
11230
+ if (!slots["verification"] || !name || verifyingField.value !== name) return null;
11231
+ const attributeDisplayName = schema.displayName ?? startCase(name);
11232
+ return h("div", { class: [px("user-profile__verification"), props.compact ? px("user-profile__verification--inline") : ""].filter(Boolean).join(" ") }, slots["verification"]({
11233
+ attribute: name,
11234
+ attributeDisplayName,
11235
+ onCancel: () => {
11236
+ verifyingField.value = null;
11237
+ },
11238
+ onComplete: () => {
11239
+ verifyingField.value = null;
11240
+ verifiedNotice.value = attributeDisplayName;
11241
+ }
11242
+ }));
11243
+ }
11244
+ function handleDialogKeydown(event) {
11245
+ if (event.key === "Escape") {
11246
+ event.stopPropagation();
11247
+ verifyingField.value = null;
11248
+ return;
11249
+ }
11250
+ if (event.key !== "Tab" || !verificationDialogRef.value) return;
11251
+ const focusables = Array.from(verificationDialogRef.value.querySelectorAll("button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])"));
11252
+ if (focusables.length === 0) return;
11253
+ const first = focusables[0];
11254
+ const last = focusables[focusables.length - 1];
11255
+ if (event.shiftKey && (document.activeElement === first || document.activeElement === verificationDialogRef.value)) {
11256
+ event.preventDefault();
11257
+ last.focus();
11258
+ } else if (!event.shiftKey && document.activeElement === last) {
11259
+ event.preventDefault();
11260
+ first.focus();
11261
+ }
11262
+ }
11263
+ function renderVerificationPanel(schema) {
11264
+ const panel = buildVerificationPanel(schema);
11265
+ if (!panel || props.compact) return panel;
11266
+ return h(Teleport, { to: "body" }, [h("div", {
11267
+ class: px("user-profile__verification-overlay"),
11268
+ onClick: (event) => {
11269
+ if (event.target === event.currentTarget) verifyingField.value = null;
11270
+ }
11271
+ }, [h("div", {
11272
+ "aria-label": tp("user.verification.heading", { attribute: schema.displayName ?? startCase(schema.name) }),
11273
+ "aria-modal": "true",
11274
+ class: px("user-profile__verification-dialog"),
11275
+ onKeydown: handleDialogKeydown,
11276
+ ref: verificationDialogRef,
11277
+ role: "dialog",
11278
+ tabindex: -1
11279
+ }, [panel])])]);
10904
11280
  }
10905
11281
  function renderInput(schema) {
10906
11282
  const fieldName = schema.name ?? "";
@@ -10949,6 +11325,9 @@ const BaseUserProfile = defineComponent({
10949
11325
  const isEditing = Boolean(editingFields.value[name]);
10950
11326
  const hasValue = value !== void 0 && value !== null && value !== "";
10951
11327
  if (!hasValue && !isEditing && !(isEditable && mutability === "READ_WRITE")) return null;
11328
+ const verified = reportedVerifiedAttributes();
11329
+ const showsVerificationStatus = verified !== void 0 && hasValue && !isEditing && isVerificationType(schema.type);
11330
+ const canVerify = Boolean(props.editable) && !!slots["verification"] && showsVerificationStatus && !verified?.[name] && verifyingField.value !== name && isVerifiableAttribute$1(props.userSchema, name) && typeof value === "string";
10952
11331
  const editablePlaceholder = isEditable ? h("span", {
10953
11332
  class: px("user-profile__field-placeholder"),
10954
11333
  onClick: () => startEditing(name, value)
@@ -10957,25 +11336,44 @@ const BaseUserProfile = defineComponent({
10957
11336
  return h("div", {
10958
11337
  class: px("user-profile__field"),
10959
11338
  key: name
10960
- }, [h("div", { class: px("user-profile__field-inner") }, [h("span", { class: px("user-profile__field-label") }, label), isEditing ? h("div", { class: px("user-profile__field-edit") }, [renderInput(schema), fieldErrors.value[name] ? h("div", { class: px("user-profile__field-error") }, fieldErrors.value[name]) : null]) : displayValueNode]), isEditable && !isReadonly ? h("div", { class: px("user-profile__field-actions") }, [isEditing ? [h(Button_default, {
10961
- color: "primary",
10962
- onClick: () => saveField(schema),
10963
- size: "small",
10964
- variant: "solid"
10965
- }, () => t("userProfile.actions.save", "Save")), h(Button_default, {
10966
- color: "secondary",
10967
- onClick: () => cancelEditing(name),
10968
- size: "small",
10969
- variant: "solid"
10970
- }, () => t("userProfile.actions.cancel", "Cancel"))] : hasValue ? h(Button_default, {
10971
- class: px("user-profile__field-edit-btn"),
10972
- color: "secondary",
10973
- onClick: () => startEditing(name, value),
10974
- size: "small",
10975
- startIcon: h(PencilIcon),
10976
- title: t("userProfile.actions.edit", "Edit"),
10977
- variant: "ghost"
10978
- }) : null]) : null]);
11339
+ }, [
11340
+ h("div", { class: px("user-profile__field-inner") }, [
11341
+ h("span", { class: px("user-profile__field-label") }, label),
11342
+ isEditing ? h("div", { class: px("user-profile__field-edit") }, [renderInput(schema), fieldErrors.value[name] ? h("div", { class: px("user-profile__field-error") }, fieldErrors.value[name]) : null]) : displayValueNode,
11343
+ showsVerificationStatus ? renderVerificationStatus(name) : null
11344
+ ]),
11345
+ canVerify ? h("div", { class: px("user-profile__field-actions") }, [h(Button_default, {
11346
+ class: px("user-profile__verify-button"),
11347
+ color: "primary",
11348
+ "data-testid": `thunderid-verify-${name}`,
11349
+ onClick: () => openVerification(name),
11350
+ size: "small",
11351
+ variant: "outline"
11352
+ }, () => tp("user.verification.buttons.verify.text"))]) : null,
11353
+ isEditable && !isReadonly ? h("div", { class: px("user-profile__field-actions") }, [isEditing ? [h(Button_default, {
11354
+ color: "primary",
11355
+ onClick: () => saveField(schema),
11356
+ size: "small",
11357
+ variant: "solid"
11358
+ }, () => t("userProfile.actions.save", "Save")), h(Button_default, {
11359
+ color: "secondary",
11360
+ onClick: () => cancelEditing(name),
11361
+ size: "small",
11362
+ variant: "solid"
11363
+ }, () => t("userProfile.actions.cancel", "Cancel"))] : hasValue ? h(Button_default, {
11364
+ class: px("user-profile__field-edit-btn"),
11365
+ color: "secondary",
11366
+ onClick: () => {
11367
+ if (verifyingField.value === name) verifyingField.value = null;
11368
+ verifiedNotice.value = null;
11369
+ startEditing(name, value);
11370
+ },
11371
+ size: "small",
11372
+ startIcon: h(PencilIcon),
11373
+ title: t("userProfile.actions.edit", "Edit"),
11374
+ variant: "ghost"
11375
+ }) : null]) : null
11376
+ ]);
10979
11377
  }
10980
11378
  function renderProfileWithoutSchemas() {
10981
11379
  const data = props.flattenedProfile || props.profile;
@@ -11009,12 +11407,14 @@ const BaseUserProfile = defineComponent({
11009
11407
  if (!data && !props.isLoading) return slots["default"] ? slots["default"]({
11010
11408
  error: props.error,
11011
11409
  isLoading: props.isLoading,
11012
- profile: null
11410
+ profile: null,
11411
+ ...verificationRenderProps()
11013
11412
  }) : null;
11014
11413
  if (slots["default"]) return slots["default"]({
11015
11414
  error: props.error,
11016
11415
  isLoading: props.isLoading,
11017
- profile: data
11416
+ profile: data,
11417
+ ...verificationRenderProps()
11018
11418
  });
11019
11419
  const currentUser = data;
11020
11420
  const schemas = props.schemas ?? [];
@@ -11030,6 +11430,14 @@ const BaseUserProfile = defineComponent({
11030
11430
  class: px("user-profile__error"),
11031
11431
  severity: "error"
11032
11432
  }, () => props.error));
11433
+ if (verifiedNotice.value) {
11434
+ const attribute = verifiedNotice.value;
11435
+ children.push(h(Alert_default, {
11436
+ class: px("user-profile__verification-notice"),
11437
+ "data-testid": "thunderid-verification-notice",
11438
+ severity: "success"
11439
+ }, () => tp("user.verification.success", { attribute })));
11440
+ }
11033
11441
  if (props.isLoading) children.push(h("div", { class: px("user-profile__loading") }, [h(Spinner_default)]));
11034
11442
  else if (props.userSchema && typeof props.userSchema === "object" && Object.keys(props.userSchema).length > 0) {
11035
11443
  const fieldRows = Object.entries(props.userSchema).filter(([key, metaAttr]) => {
@@ -11047,7 +11455,11 @@ const BaseUserProfile = defineComponent({
11047
11455
  type: (metaAttr.type ?? "STRING").toUpperCase(),
11048
11456
  value: val
11049
11457
  };
11050
- }).map((schema) => renderSchemaFieldRow(schema)).filter((node) => node !== null);
11458
+ }).map((schema) => {
11459
+ const row = renderSchemaFieldRow(schema);
11460
+ const panel = row ? renderVerificationPanel(schema) : null;
11461
+ return panel ? h(Fragment, { key: schema.name }, [row, panel]) : row;
11462
+ }).filter((node) => node !== null);
11051
11463
  children.push(h("div", { class: px("user-profile__fields") }, fieldRows));
11052
11464
  } else if (hasSchemas) {
11053
11465
  const fieldRows = schemas.filter((s) => s.name && shouldShowField(s.name)).sort((a, b) => {
@@ -11098,43 +11510,565 @@ const updateMeProfile$1 = async ({ fetcher, instanceId = 0,...requestConfig }) =
11098
11510
  var updateMeProfile_default = updateMeProfile$1;
11099
11511
 
11100
11512
  //#endregion
11101
- //#region src/components/account/user-profile/UserProfile.ts
11102
- const UserProfile = defineComponent({
11103
- name: "UserProfile",
11513
+ //#region src/components/admin/shared/useAdminTranslation.ts
11514
+ /**
11515
+ * Returns a translation function that honors component-level `preferences.i18n.bundles` over the
11516
+ * provider's bundles, falling back to the configured fallback language and then to the provider.
11517
+ * Reactive when called from a render function, since it reads the current language.
11518
+ *
11519
+ * @param getPreferences - Getter for the component's `preferences` prop.
11520
+ * @returns The translation function.
11521
+ */
11522
+ const useAdminTranslation = (getPreferences) => {
11523
+ const i18n = useI18n_default();
11524
+ return (key, params) => {
11525
+ const bundles = getPreferences()?.i18n?.bundles;
11526
+ if (bundles) {
11527
+ const lookup = (language) => {
11528
+ const bundle = bundles[language];
11529
+ if (!bundle) return;
11530
+ return normalizeTranslations(bundle.translations)[key];
11531
+ };
11532
+ const translation = lookup(i18n.currentLanguage.value) ?? lookup(i18n.fallbackLanguage);
11533
+ if (translation) return substituteTranslationParams(translation, params);
11534
+ }
11535
+ return i18n.t(key, params);
11536
+ };
11537
+ };
11538
+ var useAdminTranslation_default = useAdminTranslation;
11539
+
11540
+ //#endregion
11541
+ //#region src/components/account/verify-attribute/BaseVerifyAttribute.ts
11542
+ const collectFlowIds = ({ actions, inputs }) => ({
11543
+ actions: new Set(actions.map((component) => component.id)),
11544
+ fields: new Set(inputs.map((component) => component.ref ?? component.id))
11545
+ });
11546
+ const withFlowTestIds = (node, ids) => {
11547
+ const name = node.props?.["name"];
11548
+ let testId;
11549
+ if (typeof name === "string" && ids.fields.has(name)) testId = `thunderid-field-${name}`;
11550
+ else if (node.key !== null && ids.actions.has(String(node.key))) testId = `thunderid-action-${String(node.key)}`;
11551
+ const children = Array.isArray(node.children) ? node.children.map((child) => isVNode(child) ? withFlowTestIds(child, ids) : child) : node.children;
11552
+ if (!testId && children === node.children) return node;
11553
+ const tagged = cloneVNode(node, testId ? { "data-testid": testId } : null);
11554
+ tagged.children = children;
11555
+ return tagged;
11556
+ };
11557
+ /**
11558
+ * BaseVerifyAttribute renders the server-described steps of a self attribute verification flow.
11559
+ * It takes the flow calls as props, so it stays independent of how the request reaches the server.
11560
+ *
11561
+ * It starts the flow once per mount, since starting one sends a message, and never retries a start
11562
+ * that failed.
11563
+ */
11564
+ const BaseVerifyAttribute = defineComponent({
11565
+ name: "BaseVerifyAttribute",
11104
11566
  props: {
11105
- avatarSize: {
11106
- default: "lg",
11567
+ attributeDisplayName: {
11568
+ default: "",
11107
11569
  type: String
11108
11570
  },
11109
- cardLayout: {
11110
- default: true,
11111
- type: Boolean
11112
- },
11113
- cardVariant: {
11114
- default: "elevated",
11571
+ buttonClassName: {
11572
+ default: "",
11115
11573
  type: String
11116
11574
  },
11117
11575
  className: {
11118
11576
  default: "",
11119
11577
  type: String
11120
11578
  },
11121
- compact: {
11122
- default: false,
11123
- type: Boolean
11579
+ inputClassName: {
11580
+ default: "",
11581
+ type: String
11124
11582
  },
11125
- editable: {
11583
+ isInitialized: {
11126
11584
  default: true,
11127
11585
  type: Boolean
11128
11586
  },
11129
- hideFields: {
11130
- default: () => [],
11131
- type: Array
11587
+ onCancel: {
11588
+ default: void 0,
11589
+ type: Function
11132
11590
  },
11133
- preferences: {
11591
+ onComplete: {
11134
11592
  default: void 0,
11135
- type: Object
11593
+ type: Function
11136
11594
  },
11137
- showAvatar: {
11595
+ onDone: {
11596
+ default: void 0,
11597
+ type: Function
11598
+ },
11599
+ onError: {
11600
+ default: void 0,
11601
+ type: Function
11602
+ },
11603
+ onFlowChange: {
11604
+ default: void 0,
11605
+ type: Function
11606
+ },
11607
+ onInitialize: {
11608
+ default: void 0,
11609
+ type: Function
11610
+ },
11611
+ onSubmit: {
11612
+ default: void 0,
11613
+ type: Function
11614
+ },
11615
+ preferences: {
11616
+ default: void 0,
11617
+ type: Object
11618
+ },
11619
+ showSubtitle: {
11620
+ default: true,
11621
+ type: Boolean
11622
+ },
11623
+ showTitle: {
11624
+ default: true,
11625
+ type: Boolean
11626
+ },
11627
+ size: {
11628
+ default: "medium",
11629
+ type: String
11630
+ },
11631
+ variant: {
11632
+ default: "outlined",
11633
+ type: String
11634
+ }
11635
+ },
11636
+ setup(props, { slots }) {
11637
+ const { meta: flowMetaRef } = useFlowMeta_default();
11638
+ const t = useAdminTranslation_default(() => props.preferences);
11639
+ const state = ref("loading");
11640
+ const isSubmitting = ref(false);
11641
+ const currentFlow = ref(null);
11642
+ const error = ref(null);
11643
+ const formValues = ref({});
11644
+ const touchedFields = ref({});
11645
+ const formErrors = ref({});
11646
+ const isFormValid = ref(true);
11647
+ let initializationAttempted = false;
11648
+ let challengeToken = null;
11649
+ const meta = () => flowMetaRef?.value ?? null;
11650
+ const labelParams = () => ({ attribute: props.attributeDisplayName ?? "" });
11651
+ const normalize = (response) => {
11652
+ if (!response?.data || Array.isArray(response.data.components)) return response;
11653
+ const { components } = normalizeFlowResponse(response, t, {
11654
+ defaultErrorKey: "user.verification.error",
11655
+ resolveTranslations: false,
11656
+ throwOnError: false
11657
+ }, meta());
11658
+ return {
11659
+ ...response,
11660
+ data: {
11661
+ ...response.data,
11662
+ components
11663
+ }
11664
+ };
11665
+ };
11666
+ const inputs = () => getFlowStepComponents(currentFlow.value?.data?.components ?? []).inputs;
11667
+ const validate = () => {
11668
+ const errors = {};
11669
+ const touched = {};
11670
+ inputs().forEach((component) => {
11671
+ const name = component.ref ?? component.id;
11672
+ const value = formValues.value[name] ?? "";
11673
+ const ruleValidator = buildValidatorFromRules(component.validation);
11674
+ touched[name] = true;
11675
+ if (component.required && value.trim() === "") errors[name] = t("validations.required.field.error");
11676
+ else if (ruleValidator && value) {
11677
+ const ruleMessage = ruleValidator(value);
11678
+ if (ruleMessage) errors[name] = t(ruleMessage);
11679
+ }
11680
+ });
11681
+ touchedFields.value = touched;
11682
+ formErrors.value = errors;
11683
+ isFormValid.value = Object.keys(errors).length === 0;
11684
+ return isFormValid.value;
11685
+ };
11686
+ const resetForm = () => {
11687
+ formValues.value = {};
11688
+ touchedFields.value = {};
11689
+ isFormValid.value = true;
11690
+ const errors = {};
11691
+ const touched = {};
11692
+ (currentFlow.value?.data?.fieldErrors ?? []).forEach((fieldError) => {
11693
+ if (!(fieldError.identifier in errors)) {
11694
+ errors[fieldError.identifier] = fieldError.message;
11695
+ touched[fieldError.identifier] = true;
11696
+ }
11697
+ });
11698
+ formErrors.value = errors;
11699
+ touchedFields.value = touched;
11700
+ };
11701
+ const handleResponse = (rawResponse) => {
11702
+ const response = normalize(rawResponse);
11703
+ props.onFlowChange?.(response);
11704
+ if (response.challengeToken !== void 0) challengeToken = response.challengeToken ?? null;
11705
+ if (response.flowStatus === EmbeddedSelfFlowStatus$1.Error) {
11706
+ const message = extractErrorMessage(response, t, "user.verification.error");
11707
+ error.value = message;
11708
+ state.value = "failed";
11709
+ props.onError?.(new Error(message));
11710
+ return;
11711
+ }
11712
+ if (response.flowStatus === EmbeddedSelfFlowStatus$1.Complete) {
11713
+ error.value = null;
11714
+ state.value = "complete";
11715
+ props.onComplete?.(response);
11716
+ return;
11717
+ }
11718
+ const previous = currentFlow.value;
11719
+ currentFlow.value = response.data?.additionalData || !previous?.data?.additionalData ? response : {
11720
+ ...response,
11721
+ data: {
11722
+ ...response.data,
11723
+ additionalData: previous.data.additionalData
11724
+ }
11725
+ };
11726
+ resetForm();
11727
+ error.value = response.error ? extractErrorMessage(response, t, "user.verification.error") : null;
11728
+ state.value = "active";
11729
+ };
11730
+ const handleFailure = (caughtError) => {
11731
+ error.value = t("user.verification.error");
11732
+ state.value = "failed";
11733
+ props.onError?.(caughtError instanceof Error ? caughtError : new Error(String(caughtError)));
11734
+ };
11735
+ watch(() => props.isInitialized, (initialized) => {
11736
+ if (!initialized || initializationAttempted) return;
11737
+ initializationAttempted = true;
11738
+ (async () => {
11739
+ try {
11740
+ const response = await props.onInitialize?.();
11741
+ if (response) handleResponse(response);
11742
+ } catch (caughtError) {
11743
+ handleFailure(caughtError);
11744
+ }
11745
+ })();
11746
+ }, { immediate: true });
11747
+ const handleInputChange = (name, value) => {
11748
+ formValues.value = {
11749
+ ...formValues.value,
11750
+ [name]: value
11751
+ };
11752
+ if (!isFormValid.value) validate();
11753
+ };
11754
+ const handleInputBlur = (name) => {
11755
+ touchedFields.value = {
11756
+ ...touchedFields.value,
11757
+ [name]: true
11758
+ };
11759
+ };
11760
+ const handleSubmit = async (component, data, skipValidation) => {
11761
+ if (!currentFlow.value || isSubmitting.value) return;
11762
+ if (!skipValidation && !validate()) return;
11763
+ isSubmitting.value = true;
11764
+ error.value = null;
11765
+ try {
11766
+ const stepInputs = Object.fromEntries(Object.entries(data ?? {}).filter(([, value]) => value !== null && value !== void 0 && value !== ""));
11767
+ const response = await props.onSubmit?.({
11768
+ executionId: currentFlow.value.executionId,
11769
+ ...component.id && { action: component.id },
11770
+ ...challengeToken ? { challengeToken } : {},
11771
+ inputs: stepInputs
11772
+ });
11773
+ if (response) handleResponse(response);
11774
+ } catch (caughtError) {
11775
+ handleFailure(caughtError);
11776
+ } finally {
11777
+ isSubmitting.value = false;
11778
+ }
11779
+ };
11780
+ return () => {
11781
+ const additionalData = currentFlow.value?.data?.additionalData ?? {};
11782
+ const maskedDestination = additionalData[AttributeVerificationConstants$1.MASKED_DESTINATION_KEY];
11783
+ const destination = typeof maskedDestination === "string" && maskedDestination ? maskedDestination : null;
11784
+ const headings = getAuthComponentHeadings_default(currentFlow.value?.data?.components ?? [], void 0, void 0, t("user.verification.heading", labelParams()), t("user.verification.subheading.generic"));
11785
+ const { componentsWithoutHeadings } = headings;
11786
+ const step = getFlowStepComponents(componentsWithoutHeadings);
11787
+ const flowIds = collectFlowIds(step);
11788
+ const isAwaitingLink = state.value === "active" && inputs().length === 0 && step.actions.length === 0;
11789
+ const title = resolveFlowTemplateLiterals(headings.title, {
11790
+ meta: meta(),
11791
+ t
11792
+ });
11793
+ let subtitle = resolveFlowTemplateLiterals(headings.subtitle, {
11794
+ meta: meta(),
11795
+ t
11796
+ });
11797
+ let destinationText = null;
11798
+ if (destination && headings.headingComponents.subheading) destinationText = t("user.verification.destination", { destination });
11799
+ else if (destination) subtitle = t(isAwaitingLink ? "user.verification.subheading.link" : "user.verification.subheading", { destination });
11800
+ const isLoading = state.value === "loading" || isSubmitting.value;
11801
+ const px = withVendorCSSClassPrefix;
11802
+ const containerClass = [
11803
+ px("verify-attribute"),
11804
+ px(`verify-attribute--${props.size}`),
11805
+ px(`verify-attribute--${props.variant}`),
11806
+ props.className
11807
+ ].filter(Boolean).join(" ");
11808
+ if (slots["default"]) {
11809
+ const resend = state.value === "active" ? step.resend : void 0;
11810
+ const renderProps = {
11811
+ additionalData,
11812
+ components: componentsWithoutHeadings,
11813
+ destination,
11814
+ destinationText,
11815
+ error: error.value,
11816
+ fieldErrors: formErrors.value,
11817
+ handleInputChange,
11818
+ handleResend: resend ? () => handleSubmit(resend, void 0, true) : void 0,
11819
+ handleSubmit,
11820
+ isAwaitingLink,
11821
+ isComplete: state.value === "complete",
11822
+ isFailed: state.value === "failed",
11823
+ isLoading,
11824
+ isValid: isFormValid.value,
11825
+ onCancel: props.onCancel,
11826
+ onDone: isAwaitingLink ? props.onDone : void 0,
11827
+ subtitle,
11828
+ successMessage: t("user.verification.success", labelParams()),
11829
+ title,
11830
+ touched: touchedFields.value,
11831
+ values: formValues.value
11832
+ };
11833
+ return h("div", { class: containerClass }, slots["default"](renderProps));
11834
+ }
11835
+ const showDone = isAwaitingLink && !!props.onDone;
11836
+ return h("div", {
11837
+ "aria-busy": isLoading,
11838
+ class: containerClass
11839
+ }, [
11840
+ state.value === "active" && (props.showTitle || props.showSubtitle) ? h("div", { class: px("verify-attribute__header") }, [props.showTitle ? h(Typography_default, {
11841
+ class: px("verify-attribute__heading"),
11842
+ variant: "h5"
11843
+ }, () => title) : null, props.showSubtitle ? h(Typography_default, {
11844
+ class: px("verify-attribute__subheading"),
11845
+ variant: "body2"
11846
+ }, () => [subtitle, destinationText ? h("span", { class: px("verify-attribute__destination") }, ` ${destinationText}`) : null]) : null]) : null,
11847
+ state.value === "loading" ? h("div", { class: px("verify-attribute__loading") }, [h(Spinner_default)]) : null,
11848
+ error.value ? h(Alert_default, {
11849
+ class: px("verify-attribute__alert"),
11850
+ severity: "error"
11851
+ }, () => error.value) : null,
11852
+ state.value === "complete" ? h(Alert_default, {
11853
+ class: px("verify-attribute__alert"),
11854
+ severity: "success"
11855
+ }, () => t("user.verification.success", labelParams())) : null,
11856
+ state.value === "active" ? h("div", { class: px("verify-attribute__content") }, renderVerificationComponents(componentsWithoutHeadings, formValues.value, touchedFields.value, formErrors.value, isLoading, isFormValid.value, resetForm, handleInputChange, {
11857
+ additionalData,
11858
+ buttonClassName: [px("verify-attribute__button"), props.buttonClassName].filter(Boolean).join(" "),
11859
+ inputClassName: [px("verify-attribute__input"), props.inputClassName].filter(Boolean).join(" "),
11860
+ meta: meta(),
11861
+ onInputBlur: handleInputBlur,
11862
+ onSubmit: (component, data, skip) => {
11863
+ handleSubmit(component, data, skip);
11864
+ },
11865
+ size: props.size,
11866
+ t,
11867
+ variant: props.variant
11868
+ }).map((node) => withFlowTestIds(node, flowIds))) : null,
11869
+ props.onCancel || showDone ? h("div", { class: px("verify-attribute__actions") }, [showDone ? h(Button_default, {
11870
+ color: "primary",
11871
+ "data-testid": "thunderid-action-verificationDone",
11872
+ onClick: () => props.onDone?.(),
11873
+ size: "small",
11874
+ variant: "solid"
11875
+ }, () => t("user.verification.buttons.done.text")) : null, props.onCancel ? h(Button_default, {
11876
+ color: "secondary",
11877
+ "data-testid": "thunderid-action-verificationCancel",
11878
+ disabled: isSubmitting.value,
11879
+ onClick: () => props.onCancel?.(),
11880
+ size: "small",
11881
+ variant: "outline"
11882
+ }, () => state.value === "active" || state.value === "loading" ? t("user.verification.buttons.cancel.text") : t("user.verification.buttons.close.text")) : null]) : null
11883
+ ]);
11884
+ };
11885
+ }
11886
+ });
11887
+ var BaseVerifyAttribute_default = BaseVerifyAttribute;
11888
+
11889
+ //#endregion
11890
+ //#region src/api/auth/executeEmbeddedSelfFlow.ts
11891
+ /**
11892
+ * Executes one step of a `SELF` flow for the signed-in user, through the authenticated
11893
+ * transport that attaches the access token the flow identifies the user by.
11894
+ *
11895
+ * @param config - Configuration object with URL, payload and optional request config.
11896
+ * @returns A promise that resolves with the flow step.
11897
+ */
11898
+ const executeEmbeddedSelfFlow$1 = async ({ fetcher, instanceId = 0,...requestConfig }) => executeEmbeddedSelfFlow({
11899
+ ...requestConfig,
11900
+ fetcher: fetcher ?? createHttpClientFetcher(instanceId)
11901
+ });
11902
+ var executeEmbeddedSelfFlow_default = executeEmbeddedSelfFlow$1;
11903
+
11904
+ //#endregion
11905
+ //#region src/components/account/verify-attribute/VerifyAttribute.ts
11906
+ const logger$1 = createVueLogger("VerifyAttribute");
11907
+ /**
11908
+ * VerifyAttribute verifies one of the signed-in user's attributes, such as their email address, by
11909
+ * running a self attribute verification flow named by `flowHandle`. The flow picks the email or mobile
11910
+ * path from the attribute's type, sends a code or a link to the attribute's current value, and the
11911
+ * component renders the steps it describes; for a link it shows a Done action. Every request carries
11912
+ * the user's access token. Once the server records the verification, and when the user selects Done,
11913
+ * it re-reads the user's profile so `useUser()` shows the new status.
11914
+ *
11915
+ * It waits for the user schema to load, and refuses an attribute the schema does not declare as an
11916
+ * `email` or `mobile` property, since starting a verification sends a message.
11917
+ *
11918
+ * Mount it with a `key` per attribute: each mount starts a new verification and sends a new code or
11919
+ * link.
11920
+ *
11921
+ * @example
11922
+ * ```vue
11923
+ * <VerifyAttribute attribute="email" @complete="open = false" @cancel="open = false" />
11924
+ * ```
11925
+ */
11926
+ const VerifyAttribute = defineComponent({
11927
+ name: "VerifyAttribute",
11928
+ props: {
11929
+ attribute: {
11930
+ required: true,
11931
+ type: String
11932
+ },
11933
+ attributeDisplayName: {
11934
+ default: void 0,
11935
+ type: String
11936
+ },
11937
+ className: {
11938
+ default: "",
11939
+ type: String
11940
+ },
11941
+ flowHandle: {
11942
+ default: AttributeVerificationConstants$1.DEFAULT_FLOW_HANDLE,
11943
+ type: String
11944
+ },
11945
+ onCancel: {
11946
+ default: void 0,
11947
+ type: Function
11948
+ },
11949
+ onComplete: {
11950
+ default: void 0,
11951
+ type: Function
11952
+ },
11953
+ onDone: {
11954
+ default: void 0,
11955
+ type: Function
11956
+ },
11957
+ onError: {
11958
+ default: void 0,
11959
+ type: Function
11960
+ },
11961
+ preferences: {
11962
+ default: void 0,
11963
+ type: Object
11964
+ },
11965
+ showSubtitle: {
11966
+ default: true,
11967
+ type: Boolean
11968
+ },
11969
+ showTitle: {
11970
+ default: true,
11971
+ type: Boolean
11972
+ },
11973
+ size: {
11974
+ default: "medium",
11975
+ type: String
11976
+ },
11977
+ variant: {
11978
+ default: "outlined",
11979
+ type: String
11980
+ }
11981
+ },
11982
+ setup(props, { slots }) {
11983
+ const { baseUrl, endpoints, instanceId, isInitialized, isLoading } = useThunderID_default();
11984
+ const { revalidateProfile, userSchema } = useUser_default();
11985
+ const flowExecuteUrl = resolveResourceEndpoint("flowExecute", { endpoints }) ?? `${baseUrl}/flow/execute`;
11986
+ const execute = (payload) => executeEmbeddedSelfFlow_default({
11987
+ baseUrl,
11988
+ instanceId,
11989
+ payload,
11990
+ url: flowExecuteUrl
11991
+ });
11992
+ const handleInitialize = () => {
11993
+ if (!isVerifiableAttribute$1(userSchema?.value, props.attribute)) return Promise.reject(new ThunderIDRuntimeError$1(`Attribute "${props.attribute}" is not a verifiable email or mobile attribute.`, "VerifyAttribute-handleInitialize-RuntimeError-001", "vue", "Only a top-level, single-valued email or mobile attribute of the user schema can be verified."));
11994
+ return execute({
11995
+ flowType: EmbeddedFlowType.Self,
11996
+ handle: props.flowHandle,
11997
+ inputs: { [AttributeVerificationConstants$1.ATTRIBUTE_INPUT]: props.attribute }
11998
+ });
11999
+ };
12000
+ const refreshProfile = async () => {
12001
+ try {
12002
+ await revalidateProfile?.();
12003
+ } catch (caughtError) {
12004
+ logger$1.warn("Failed to re-read the user profile after verification:", caughtError);
12005
+ }
12006
+ };
12007
+ return () => h(BaseVerifyAttribute_default, {
12008
+ attributeDisplayName: props.attributeDisplayName ?? userSchema?.value?.[props.attribute]?.displayName ?? startCase(props.attribute),
12009
+ class: withVendorCSSClassPrefix("verify-attribute--styled"),
12010
+ className: props.className,
12011
+ isInitialized: isInitialized.value && !isLoading.value && !!userSchema?.value,
12012
+ onCancel: props.onCancel,
12013
+ onComplete: (response) => {
12014
+ refreshProfile();
12015
+ props.onComplete?.(response);
12016
+ },
12017
+ onDone: () => {
12018
+ refreshProfile();
12019
+ props.onDone?.();
12020
+ },
12021
+ onError: props.onError,
12022
+ onInitialize: handleInitialize,
12023
+ onSubmit: execute,
12024
+ preferences: props.preferences,
12025
+ showSubtitle: props.showSubtitle,
12026
+ showTitle: props.showTitle,
12027
+ size: props.size,
12028
+ variant: props.variant
12029
+ }, slots);
12030
+ }
12031
+ });
12032
+ var VerifyAttribute_default = VerifyAttribute;
12033
+
12034
+ //#endregion
12035
+ //#region src/components/account/user-profile/UserProfile.ts
12036
+ const UserProfile = defineComponent({
12037
+ name: "UserProfile",
12038
+ props: {
12039
+ avatarSize: {
12040
+ default: "lg",
12041
+ type: String
12042
+ },
12043
+ cardLayout: {
12044
+ default: true,
12045
+ type: Boolean
12046
+ },
12047
+ cardVariant: {
12048
+ default: "elevated",
12049
+ type: String
12050
+ },
12051
+ className: {
12052
+ default: "",
12053
+ type: String
12054
+ },
12055
+ compact: {
12056
+ default: false,
12057
+ type: Boolean
12058
+ },
12059
+ editable: {
12060
+ default: true,
12061
+ type: Boolean
12062
+ },
12063
+ hideFields: {
12064
+ default: () => [],
12065
+ type: Array
12066
+ },
12067
+ preferences: {
12068
+ default: void 0,
12069
+ type: Object
12070
+ },
12071
+ showAvatar: {
11138
12072
  default: true,
11139
12073
  type: Boolean
11140
12074
  },
@@ -11145,6 +12079,10 @@ const UserProfile = defineComponent({
11145
12079
  title: {
11146
12080
  default: "Profile",
11147
12081
  type: String
12082
+ },
12083
+ verificationFlowHandle: {
12084
+ default: AttributeVerificationConstants$1.DEFAULT_FLOW_HANDLE,
12085
+ type: String
11148
12086
  }
11149
12087
  },
11150
12088
  setup(props, { slots }) {
@@ -11186,6 +12124,17 @@ const UserProfile = defineComponent({
11186
12124
  error.value = message;
11187
12125
  }
11188
12126
  }
12127
+ const renderVerification = ({ attribute, attributeDisplayName, onCancel, onComplete }) => h(VerifyAttribute_default, {
12128
+ attribute,
12129
+ attributeDisplayName,
12130
+ flowHandle: props.verificationFlowHandle,
12131
+ key: attribute,
12132
+ onCancel,
12133
+ onComplete,
12134
+ onDone: onCancel,
12135
+ preferences: resolvedPreferences.value,
12136
+ variant: props.compact ? "outlined" : "flat"
12137
+ });
11189
12138
  return () => h(BaseUserProfile_default, {
11190
12139
  avatarSize: props.avatarSize,
11191
12140
  cardLayout: props.cardLayout,
@@ -11205,39 +12154,14 @@ const UserProfile = defineComponent({
11205
12154
  t,
11206
12155
  title: props.title,
11207
12156
  userSchema: userSchema?.value
11208
- }, slots);
12157
+ }, isEditableProfile.value ? {
12158
+ verification: renderVerification,
12159
+ ...slots
12160
+ } : slots);
11209
12161
  }
11210
12162
  });
11211
12163
  var UserProfile_default = UserProfile;
11212
12164
 
11213
- //#endregion
11214
- //#region src/components/admin/shared/useAdminTranslation.ts
11215
- /**
11216
- * Returns a translation function that honors component-level `preferences.i18n.bundles` over the
11217
- * provider's bundles, falling back to the configured fallback language and then to the provider.
11218
- * Reactive when called from a render function, since it reads the current language.
11219
- *
11220
- * @param getPreferences - Getter for the component's `preferences` prop.
11221
- * @returns The translation function.
11222
- */
11223
- const useAdminTranslation = (getPreferences) => {
11224
- const i18n = useI18n_default();
11225
- return (key, params) => {
11226
- const bundles = getPreferences()?.i18n?.bundles;
11227
- if (bundles) {
11228
- const lookup = (language) => {
11229
- const bundle = bundles[language];
11230
- if (!bundle) return;
11231
- return normalizeTranslations(bundle.translations)[key];
11232
- };
11233
- const translation = lookup(i18n.currentLanguage.value) ?? lookup(i18n.fallbackLanguage);
11234
- if (translation) return substituteTranslationParams(translation, params);
11235
- }
11236
- return i18n.t(key, params);
11237
- };
11238
- };
11239
- var useAdminTranslation_default = useAdminTranslation;
11240
-
11241
12165
  //#endregion
11242
12166
  //#region src/components/common/attribution/Attribution.ts
11243
12167
  const cls$13 = (suffix) => withVendorCSSClassPrefix(`attribution${suffix}`);
@@ -17515,4 +18439,4 @@ const createCallbackRoute = (options = {}) => {
17515
18439
  };
17516
18440
 
17517
18441
  //#endregion
17518
- export { ADMINISTRATION_FLOW_TYPE, AcceptInvite_default as AcceptInvite, AccountLifecycleFlowConfigKey, AdministrationFlowConfigKey, AdministrationFlowData, AdministrationFlowError, AdministrationFlowInput, AdministrationModes, AgentCreate_default as AgentCreate, AgentDetails_default as AgentDetails, AgentList_default as AgentList, AgentQueryKeys, Alert_default as Alert, ApplicationCreate_default as ApplicationCreate, ApplicationDetails_default as ApplicationDetails, ApplicationList_default as ApplicationList, ApplicationQueryKeys, ArrowLeftRightIcon, Attribution_default as Attribution, AuthFlowSelect_default as AuthFlowSelect, BaseAcceptInvite_default as BaseAcceptInvite, BaseAgentCreate_default as BaseAgentCreate, BaseAgentDetails_default as BaseAgentDetails, BaseAgentList_default as BaseAgentList, BaseApplicationCreate_default as BaseApplicationCreate, BaseApplicationDetails_default as BaseApplicationDetails, BaseApplicationList_default as BaseApplicationList, BaseAuthFlowSelect_default as BaseAuthFlowSelect, BaseChangeCredential_default as BaseChangeCredential, BaseDeviceGrant_default as BaseDeviceGrant, BaseGroupCreate_default as BaseGroupCreate, BaseGroupList_default as BaseGroupList, BaseGroupMembers_default as BaseGroupMembers, BaseInviteUser_default as BaseInviteUser, BaseLanguageSwitcher_default as BaseLanguageSwitcher, BaseRoleAssignments_default as BaseRoleAssignments, BaseRoleCreate_default as BaseRoleCreate, BaseRoleList_default as BaseRoleList, BaseRolePermissions_default as BaseRolePermissions, BaseSignIn_default as BaseSignIn, BaseSignInButton_default as BaseSignInButton, BaseSignOutButton_default as BaseSignOutButton, BaseSignUp_default as BaseSignUp, BaseSignUpButton_default as BaseSignUpButton, BaseUserCreate_default as BaseUserCreate, BaseUserDetails_default as BaseUserDetails, BaseUserDropdown_default as BaseUserDropdown, BaseUserList_default as BaseUserList, BaseUserProfile_default as BaseUserProfile, BaseUserSelect_default as BaseUserSelect, BaseUserTypeSelect_default as BaseUserTypeSelect, BuildingIcon, Button_default as Button, Callback_default as Callback, Card_default as Card, ChangeCredential_default as ChangeCredential, CheckIcon, Checkbox_default as Checkbox, ChevronDownIcon, CircleAlertIcon, CircleCheckIcon, Consent_default as Consent, CopyableText_default as CopyableText, DEFAULT_USER_CREATE_FIELDS, DataTable_default as DataTable, DatePicker_default as DatePicker, DeviceGrant_default as DeviceGrant, Divider_default as Divider, EmbeddedFlowActionVariant, EmbeddedFlowComponentType, EmbeddedFlowEventType, EmbeddedFlowTextVariant, EmbeddedSignInFlowStatus, EmbeddedSignInFlowType, EmbeddedSignUpFlowStatus, EmbeddedSignUpFlowType, EyeIcon, EyeOffIcon, FLOW_KEY, FLOW_META_KEY, FacebookButton_default as FacebookButton, FieldFactory_default as FieldFactory, FieldType, FlowMetaProvider_default as FlowMetaProvider, FlowProvider_default as FlowProvider, GitHubButton_default as GitHubButton, GlobeIcon, GoogleButton_default as GoogleButton, GroupCreate_default as GroupCreate, GroupList_default as GroupList, GroupMembers_default as GroupMembers, GroupQueryKeys, I18N_KEY, I18nProvider_default as I18nProvider, InfoIcon, InviteUser_default as InviteUser, KeyValueList_default as KeyValueList, LanguageSwitcher_default as LanguageSwitcher, Loading_default as Loading, LogOutIcon, Logo_default as Logo, MicrosoftButton_default as MicrosoftButton, OtpField_default as OtpField, PasswordField_default as PasswordField, PencilIcon, PlusIcon, RoleAssignments_default as RoleAssignments, RoleCreate_default as RoleCreate, RoleList_default as RoleList, RolePermissions_default as RolePermissions, RoleQueryKeys, Select_default as Select, SignIn_default as SignIn, SignInButton_default as SignInButton, SignOutButton_default as SignOutButton, SignUp_default as SignUp, SignUpButton_default as SignUpButton, SignedIn_default as SignedIn, SignedOut_default as SignedOut, Spinner_default as Spinner, THEME_KEY, THUNDERID_KEY, TextField_default as TextField, ThemeProvider_default as ThemeProvider, ThunderIDAPIError, ThunderIDPlugin_default as ThunderIDPlugin, ThunderIDProvider_default as ThunderIDProvider, ThunderIDRuntimeError, ThunderIDVueClient_default as ThunderIDVueClient, TriangleAlertIcon, Typography_default as Typography, USER_KEY, User_default as User, UserCreate_default as UserCreate, UserDetails_default as UserDetails, UserDropdown_default as UserDropdown, UserIcon, UserList_default as UserList, UserProfile_default as UserProfile, UserProvider_default as UserProvider, UserQueryKeys, UserSelect_default as UserSelect, UserTypeSelect_default as UserTypeSelect, XIcon, addGroupMembers, addRoleAssignments, applyGatewayConfiguration, buildThemeConfigFromFlowMeta_default as buildThemeConfigFromFlowMeta, createAction, createAgent, createAgentType, createApplication, createApplicationSharingPolicy, createCallbackRoute, createClassObserver, createConfigurationVersion, createConnection, createDesignTheme, createField, createFlow, createGateway, createGatewaySecret, createGatewayVariable, createGroup, createLayout, createMediaQueryListener, createNotificationTemplate, createOrganizationUnit, createResource, createResourceInvalidator, createResourceServer, createRole, createSecret, createThunderIDGuard, createUser, createUserByPath, createUserSharingPolicy, createUserType, createVariable, deleteAction, deleteAgent, deleteAgentType, deleteApplication, deleteApplicationSharingPolicy, deleteConnection, deleteDesignTheme, deleteFlow, deleteGateway, deleteGatewaySecret, deleteGatewayVariable, deleteGroup, deleteImportedConfiguration, deleteLayout, deleteNotificationTemplate, deleteOrganizationUnit, deleteOrganizationUnitByPath, deleteResource, deleteResourceServer, deleteRole, deleteSecret, deleteTranslation, deleteTranslations, deleteUser, deleteUserSharingPolicy, deleteUserType, deleteVariable, detectThemeMode, executeAdministrationFlow, exportConfiguration, extractErrorMessage, findAdministrationFlows, getAccountLifecycleActions, getAction, getActions, getActiveTheme, getAgent, getAgentGroups, getAgentName, getAgentRoles, getAgentType, getAgentTypes, getAgents, getApplication, getApplicationOverlayRules, getApplicationSharingPolicies, getApplicationSharingPolicy, getApplications, getAuthComponentHeadings_default as getAuthComponentHeadings, getConfigurationVersion, getConfigurationVersions, getConnection, getConnectionUsages, getConnections, getConnectionsMeta, getDesignTheme, getDesignThemeUsages, getDesignThemes, getFlow, getFlowUsages, getFlowVersion, getFlowVersions, getFlows, getGateway, getGatewayAppliedConfiguration, getGatewayAppliedVersion, getGatewayConfigurationDiff, getGatewaySecret, getGatewaySecrets, getGatewayVariable, getGatewayVariables, getGateways, getGroup, getGroupMembers, getGroups, getLanguages, getLayout, getLayoutUsages, getLayouts, getNotificationTemplate, getNotificationTemplates, getOrganizationUnit, getOrganizationUnitByPath, getOrganizationUnitChildren, getOrganizationUnitGroups, getOrganizationUnitRoles, getOrganizationUnitUsers, getOrganizationUnits, getResource, getResourceServer, getResourceServers, getResources, getRole, getRoleAssignments, getRoles, getSecret, getSecrets, getServerConfig, getServerConfigs, getTokenPermissions, getUser, getUserGroups, getUserOverlayRules, getUserSharingPolicies, getUserSharingPolicy, getUserType, getUserTypes, getUserUsages, getUsers, getUsersByPath, getUsersMeMeta_default as getUsersMeMeta, getVariable, getVariables, handlePasskeyAuthentication, handlePasskeyRegistration, handleWebAuthnAuthentication, hasAuthParamsInUrl, hasPermission, http, importConfiguration, initiateOAuthRedirect, navigate, normalizeFlowResponse, parseKeyValuePairs, previewCimdDocument, regenerateAgentSecret, regenerateClientSecret, regenerateFlowSecret, removeGroupMembers, removeRoleAssignments, resolveAdministrationFlowHandles, resolveAdministrationFlowId, resolveAdministrationFlows, resolveDesign, resolveTranslation, resolveTranslations, restoreFlowVersion, revertGatewayConfiguration, runAccountLifecycleAction, runAdministrationFlow, setTranslation, setTranslations, suspendAgent, suspendApplication, suspendUser, unlockAgent, unlockUser, unsuspendAgent, unsuspendApplication, unsuspendUser, updateAction, updateAgent, updateAgentType, updateApplication, updateApplicationSharingPolicy, updateConnection, updateDesignTheme, updateFlow, updateGateway, updateGatewaySecret, updateGatewayVariable, updateGroup, updateLayout, updateNotificationTemplate, updateOrganizationUnit, updateOrganizationUnitByPath, updateResource, updateResourceServer, updateRole, updateSecret, updateServerConfig, updateUser, updateUserCredentials, updateUserSharingPolicy, updateUserType, updateVariable, useFetchAuthFlows_default as useFetchAuthFlows, useFetchUserTypes_default as useFetchUserTypes, useFetchUsers_default as useFetchUsers, useFlow_default as useFlow, useFlowMeta_default as useFlowMeta, useGrantedPermissions_default as useGrantedPermissions, useI18n_default as useI18n, useInfiniteOptions_default as useInfiniteOptions, useManagementEndpoint_default as useManagementEndpoint, useManagementRequestConfig_default as useManagementRequestConfig, useOAuthCallback, useTheme_default as useTheme, useThunderID_default as useThunderID, useUser_default as useUser, validateFieldValue };
18442
+ export { ADMINISTRATION_FLOW_TYPE, AcceptInvite_default as AcceptInvite, AccountLifecycleFlowConfigKey, AdministrationFlowConfigKey, AdministrationFlowData, AdministrationFlowError, AdministrationFlowInput, AdministrationModes, AgentCreate_default as AgentCreate, AgentDetails_default as AgentDetails, AgentList_default as AgentList, AgentQueryKeys, Alert_default as Alert, ApplicationCreate_default as ApplicationCreate, ApplicationDetails_default as ApplicationDetails, ApplicationList_default as ApplicationList, ApplicationQueryKeys, ArrowLeftRightIcon, AttributeVerificationConstants, Attribution_default as Attribution, AuthFlowSelect_default as AuthFlowSelect, BaseAcceptInvite_default as BaseAcceptInvite, BaseAgentCreate_default as BaseAgentCreate, BaseAgentDetails_default as BaseAgentDetails, BaseAgentList_default as BaseAgentList, BaseApplicationCreate_default as BaseApplicationCreate, BaseApplicationDetails_default as BaseApplicationDetails, BaseApplicationList_default as BaseApplicationList, BaseAuthFlowSelect_default as BaseAuthFlowSelect, BaseChangeCredential_default as BaseChangeCredential, BaseDeviceGrant_default as BaseDeviceGrant, BaseGroupCreate_default as BaseGroupCreate, BaseGroupList_default as BaseGroupList, BaseGroupMembers_default as BaseGroupMembers, BaseInviteUser_default as BaseInviteUser, BaseLanguageSwitcher_default as BaseLanguageSwitcher, BaseRoleAssignments_default as BaseRoleAssignments, BaseRoleCreate_default as BaseRoleCreate, BaseRoleList_default as BaseRoleList, BaseRolePermissions_default as BaseRolePermissions, BaseSignIn_default as BaseSignIn, BaseSignInButton_default as BaseSignInButton, BaseSignOutButton_default as BaseSignOutButton, BaseSignUp_default as BaseSignUp, BaseSignUpButton_default as BaseSignUpButton, BaseUserCreate_default as BaseUserCreate, BaseUserDetails_default as BaseUserDetails, BaseUserDropdown_default as BaseUserDropdown, BaseUserList_default as BaseUserList, BaseUserProfile_default as BaseUserProfile, BaseUserSelect_default as BaseUserSelect, BaseUserTypeSelect_default as BaseUserTypeSelect, BaseVerifyAttribute_default as BaseVerifyAttribute, BuildingIcon, Button_default as Button, Callback_default as Callback, Card_default as Card, ChangeCredential_default as ChangeCredential, CheckIcon, Checkbox_default as Checkbox, ChevronDownIcon, CircleAlertIcon, CircleCheckIcon, Consent_default as Consent, CopyableText_default as CopyableText, DEFAULT_USER_CREATE_FIELDS, DataTable_default as DataTable, DatePicker_default as DatePicker, DeviceGrant_default as DeviceGrant, Divider_default as Divider, EmbeddedFlowActionVariant, EmbeddedFlowComponentType, EmbeddedFlowEventType, EmbeddedFlowTextVariant, EmbeddedSelfFlowStatus, EmbeddedSignInFlowStatus, EmbeddedSignInFlowType, EmbeddedSignUpFlowStatus, EmbeddedSignUpFlowType, EyeIcon, EyeOffIcon, FLOW_KEY, FLOW_META_KEY, FacebookButton_default as FacebookButton, FieldFactory_default as FieldFactory, FieldType, FlowMetaProvider_default as FlowMetaProvider, FlowProvider_default as FlowProvider, GitHubButton_default as GitHubButton, GlobeIcon, GoogleButton_default as GoogleButton, GroupCreate_default as GroupCreate, GroupList_default as GroupList, GroupMembers_default as GroupMembers, GroupQueryKeys, I18N_KEY, I18nProvider_default as I18nProvider, InfoIcon, InviteUser_default as InviteUser, KeyValueList_default as KeyValueList, LanguageSwitcher_default as LanguageSwitcher, Loading_default as Loading, LogOutIcon, Logo_default as Logo, MicrosoftButton_default as MicrosoftButton, OtpField_default as OtpField, PasswordField_default as PasswordField, PencilIcon, PlusIcon, RoleAssignments_default as RoleAssignments, RoleCreate_default as RoleCreate, RoleList_default as RoleList, RolePermissions_default as RolePermissions, RoleQueryKeys, Select_default as Select, SignIn_default as SignIn, SignInButton_default as SignInButton, SignOutButton_default as SignOutButton, SignUp_default as SignUp, SignUpButton_default as SignUpButton, SignedIn_default as SignedIn, SignedOut_default as SignedOut, Spinner_default as Spinner, THEME_KEY, THUNDERID_KEY, TextField_default as TextField, ThemeProvider_default as ThemeProvider, ThunderIDAPIError, ThunderIDPlugin_default as ThunderIDPlugin, ThunderIDProvider_default as ThunderIDProvider, ThunderIDRuntimeError, ThunderIDVueClient_default as ThunderIDVueClient, TriangleAlertIcon, Typography_default as Typography, USER_KEY, User_default as User, UserCreate_default as UserCreate, UserDetails_default as UserDetails, UserDropdown_default as UserDropdown, UserIcon, UserList_default as UserList, UserProfile_default as UserProfile, UserProvider_default as UserProvider, UserQueryKeys, UserSelect_default as UserSelect, UserTypeSelect_default as UserTypeSelect, VerifyAttribute_default as VerifyAttribute, XIcon, addGroupMembers, addRoleAssignments, applyGatewayConfiguration, buildThemeConfigFromFlowMeta_default as buildThemeConfigFromFlowMeta, createAction, createAgent, createAgentType, createApplication, createApplicationSharingPolicy, createCallbackRoute, createClassObserver, createConfigurationVersion, createConnection, createDesignTheme, createField, createFlow, createGateway, createGatewaySecret, createGatewayVariable, createGroup, createLayout, createMediaQueryListener, createNotificationTemplate, createOrganizationUnit, createResource, createResourceInvalidator, createResourceServer, createRole, createSecret, createThunderIDGuard, createUser, createUserByPath, createUserSharingPolicy, createUserType, createVariable, deleteAction, deleteAgent, deleteAgentType, deleteApplication, deleteApplicationSharingPolicy, deleteConnection, deleteDesignTheme, deleteFlow, deleteGateway, deleteGatewaySecret, deleteGatewayVariable, deleteGroup, deleteImportedConfiguration, deleteLayout, deleteNotificationTemplate, deleteOrganizationUnit, deleteOrganizationUnitByPath, deleteResource, deleteResourceServer, deleteRole, deleteSecret, deleteTranslation, deleteTranslations, deleteUser, deleteUserSharingPolicy, deleteUserType, deleteVariable, detectThemeMode, executeAdministrationFlow, executeEmbeddedSelfFlow_default as executeEmbeddedSelfFlow, exportConfiguration, extractErrorMessage, findAdministrationFlows, getAccountLifecycleActions, getAction, getActions, getActiveTheme, getAgent, getAgentGroups, getAgentName, getAgentRoles, getAgentType, getAgentTypes, getAgents, getApplication, getApplicationOverlayRules, getApplicationSharingPolicies, getApplicationSharingPolicy, getApplications, getAuthComponentHeadings_default as getAuthComponentHeadings, getConfigurationVersion, getConfigurationVersions, getConnection, getConnectionUsages, getConnections, getConnectionsMeta, getDesignTheme, getDesignThemeUsages, getDesignThemes, getFlow, getFlowUsages, getFlowVersion, getFlowVersions, getFlows, getGateway, getGatewayAppliedConfiguration, getGatewayAppliedVersion, getGatewayConfigurationDiff, getGatewaySecret, getGatewaySecrets, getGatewayVariable, getGatewayVariables, getGateways, getGroup, getGroupMembers, getGroups, getLanguages, getLayout, getLayoutUsages, getLayouts, getNotificationTemplate, getNotificationTemplates, getOrganizationUnit, getOrganizationUnitByPath, getOrganizationUnitChildren, getOrganizationUnitGroups, getOrganizationUnitRoles, getOrganizationUnitUsers, getOrganizationUnits, getResource, getResourceServer, getResourceServers, getResources, getRole, getRoleAssignments, getRoles, getSecret, getSecrets, getServerConfig, getServerConfigs, getTokenPermissions, getUser, getUserGroups, getUserOverlayRules, getUserSharingPolicies, getUserSharingPolicy, getUserType, getUserTypes, getUserUsages, getUsers, getUsersByPath, getUsersMeMeta_default as getUsersMeMeta, getVariable, getVariables, getVerifiedAttributes, handlePasskeyAuthentication, handlePasskeyRegistration, handleWebAuthnAuthentication, hasAuthParamsInUrl, hasPermission, http, importConfiguration, initiateOAuthRedirect, isVerifiableAttribute, navigate, normalizeFlowResponse, parseKeyValuePairs, previewCimdDocument, regenerateAgentSecret, regenerateClientSecret, regenerateFlowSecret, removeGroupMembers, removeRoleAssignments, resolveAdministrationFlowHandles, resolveAdministrationFlowId, resolveAdministrationFlows, resolveDesign, resolveTranslation, resolveTranslations, restoreFlowVersion, revertGatewayConfiguration, runAccountLifecycleAction, runAdministrationFlow, setTranslation, setTranslations, suspendAgent, suspendApplication, suspendUser, unlockAgent, unlockUser, unsuspendAgent, unsuspendApplication, unsuspendUser, updateAction, updateAgent, updateAgentType, updateApplication, updateApplicationSharingPolicy, updateConnection, updateDesignTheme, updateFlow, updateGateway, updateGatewaySecret, updateGatewayVariable, updateGroup, updateLayout, updateNotificationTemplate, updateOrganizationUnit, updateOrganizationUnitByPath, updateResource, updateResourceServer, updateRole, updateSecret, updateServerConfig, updateUser, updateUserCredentials, updateUserSharingPolicy, updateUserType, updateVariable, useFetchAuthFlows_default as useFetchAuthFlows, useFetchUserTypes_default as useFetchUserTypes, useFetchUsers_default as useFetchUsers, useFlow_default as useFlow, useFlowMeta_default as useFlowMeta, useGrantedPermissions_default as useGrantedPermissions, useI18n_default as useI18n, useInfiniteOptions_default as useInfiniteOptions, useManagementEndpoint_default as useManagementEndpoint, useManagementRequestConfig_default as useManagementRequestConfig, useOAuthCallback, useTheme_default as useTheme, useThunderID_default as useThunderID, useUser_default as useUser, validateFieldValue };