@clerk/ui 1.25.0-snapshot.v20260707124635 → 1.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/9074_ui_1e6e67_1.25.0.js +1 -0
- package/dist/9074_ui_3a8a07_1.25.0.js +1 -0
- package/dist/9074_ui_c80713_1.25.0.js +1 -0
- package/dist/ClerkUI.d.ts.map +1 -1
- package/dist/ClerkUI.js +2 -4
- package/dist/ClerkUI.js.map +1 -1
- package/dist/baseTheme.js +6 -0
- package/dist/baseTheme.js.map +1 -1
- package/dist/common/ChooseEnterpriseConnectionCard.js +1 -1
- package/dist/common/EmailLinkStatusCard.js +2 -2
- package/dist/common/NotificationCountBadge.js +1 -1
- package/dist/common/RemoveResourceForm.js +1 -1
- package/dist/common/SSOCallback.js +1 -1
- package/dist/common/withRedirect.js +1 -1
- package/dist/components/APIKeys/APIKeys.js +4 -4
- package/dist/components/APIKeys/CopyAPIKeyModal.js +1 -1
- package/dist/components/APIKeys/CreateAPIKeyForm.js +2 -2
- package/dist/components/AccountCredits/AccountCredits.js +1 -1
- package/dist/components/AccountCredits/CreditHistoryPage.js +1 -1
- package/dist/components/BlankCaptchaModal/index.js +2 -2
- package/dist/components/Checkout/CheckoutComplete.js +2 -2
- package/dist/components/Checkout/CheckoutForm.js +4 -4
- package/dist/components/Checkout/index.js +1 -1
- package/dist/components/Checkout/parts.js +1 -1
- package/dist/components/ConfigureSSO/ChangeProviderDialog.js +1 -1
- package/dist/components/ConfigureSSO/ConfigureSSO.js +6 -6
- package/dist/components/ConfigureSSO/ConfigureSSO.js.map +1 -1
- package/dist/components/ConfigureSSO/ConfigureSSOHeader.js +10 -4
- package/dist/components/ConfigureSSO/ConfigureSSOHeader.js.map +1 -1
- package/dist/components/ConfigureSSO/ConfigureSSONavbar.js +1 -1
- package/dist/components/ConfigureSSO/ConfigureSSOSkeleton.js +1 -1
- package/dist/components/ConfigureSSO/RemoveDomainDialog.js +1 -1
- package/dist/components/ConfigureSSO/ResetConnectionDialog.js +1 -1
- package/dist/components/ConfigureSSO/elements/ProfileCard.js +1 -1
- package/dist/components/ConfigureSSO/elements/ProfileCard.js.map +1 -1
- package/dist/components/ConfigureSSO/elements/Step.js +2 -2
- package/dist/components/ConfigureSSO/elements/Wizard/InnerStepCounter.js +1 -1
- package/dist/components/ConfigureSSO/steps/ActivateStep.js +2 -2
- package/dist/components/ConfigureSSO/steps/ConfigureStep/index.js +2 -2
- package/dist/components/ConfigureSSO/steps/ConfigureStep/saml/SamlCustomConfigureSteps.js +3 -3
- package/dist/components/ConfigureSSO/steps/ConfigureStep/saml/SamlGoogleConfigureSteps.js +3 -3
- package/dist/components/ConfigureSSO/steps/ConfigureStep/saml/SamlMicrosoftConfigureSteps.js +4 -4
- package/dist/components/ConfigureSSO/steps/ConfigureStep/saml/SamlOktaConfigureSteps.js +3 -3
- package/dist/components/ConfigureSSO/steps/OrganizationDomainsStep.js +4 -4
- package/dist/components/ConfigureSSO/steps/SelectProviderStep.js +2 -2
- package/dist/components/ConfigureSSO/steps/TestConfigurationStep.js +5 -5
- package/dist/components/ConfigureSSO/steps/TestRunHowToFixSection.js +1 -1
- package/dist/components/CreateOrganization/CreateOrganization.js +2 -2
- package/dist/components/CreateOrganization/CreateOrganizationForm.js +5 -5
- package/dist/components/CreateOrganization/CreateOrganizationPage.js +1 -1
- package/dist/components/GoogleOneTap/index.js +1 -1
- package/dist/components/ImpersonationFab/index.js +2 -2
- package/dist/components/OAuthConsent/OAuthConsent.js +4 -4
- package/dist/components/OrganizationList/OrganizationListPage.js +2 -2
- package/dist/components/OrganizationList/UserMembershipList.js +1 -1
- package/dist/components/OrganizationList/UserSuggestionList.js +1 -1
- package/dist/components/OrganizationProfile/ActionConfirmationPage.js +2 -2
- package/dist/components/OrganizationProfile/ActiveMembersList.js +4 -4
- package/dist/components/OrganizationProfile/DomainList.js +3 -3
- package/dist/components/OrganizationProfile/InviteMembersForm.js +4 -4
- package/dist/components/OrganizationProfile/InviteMembersScreen.js +3 -3
- package/dist/components/OrganizationProfile/InvitedMembersList.js +3 -3
- package/dist/components/OrganizationProfile/MemberListTable.js +1 -1
- package/dist/components/OrganizationProfile/MembersActions.js +1 -1
- package/dist/components/OrganizationProfile/MembersSearch.js +1 -1
- package/dist/components/OrganizationProfile/OrganizationAPIKeysPage.js +2 -2
- package/dist/components/OrganizationProfile/OrganizationBillingPage.js +4 -5
- package/dist/components/OrganizationProfile/OrganizationBillingPage.js.map +1 -1
- package/dist/components/OrganizationProfile/OrganizationGeneralPage.js +27 -39
- package/dist/components/OrganizationProfile/OrganizationGeneralPage.js.map +1 -1
- package/dist/components/OrganizationProfile/OrganizationMembers.js +4 -5
- package/dist/components/OrganizationProfile/OrganizationMembers.js.map +1 -1
- package/dist/components/OrganizationProfile/OrganizationMembersTabInvitations.js +2 -2
- package/dist/components/OrganizationProfile/OrganizationMembersTabRequests.js +1 -1
- package/dist/components/OrganizationProfile/OrganizationPlansPage.js +1 -1
- package/dist/components/OrganizationProfile/OrganizationProfileNavbar.js +1 -1
- package/dist/components/OrganizationProfile/OrganizationProfileRoutes.js +3 -3
- package/dist/components/OrganizationProfile/OrganizationSecurityPage.js +1 -1
- package/dist/components/OrganizationProfile/ProfileForm.js +1 -1
- package/dist/components/OrganizationProfile/RequestToJoinList.js +2 -2
- package/dist/components/OrganizationProfile/SecuritySsoSection.js +5 -5
- package/dist/components/OrganizationProfile/VerifiedDomainForm.js +3 -3
- package/dist/components/OrganizationProfile/VerifyDomainForm.js +1 -1
- package/dist/components/OrganizationProfile/index.js +3 -3
- package/dist/components/OrganizationSwitcher/OrganizationSwitcherPopover.js +3 -3
- package/dist/components/OrganizationSwitcher/OrganizationSwitcherTrigger.js +2 -2
- package/dist/components/OrganizationSwitcher/OtherOrganizationActions.js +1 -1
- package/dist/components/OrganizationSwitcher/UserInvitationSuggestionList.js +4 -4
- package/dist/components/OrganizationSwitcher/UserMembershipList.js +2 -2
- package/dist/components/OrganizationSwitcher/index.js +2 -2
- package/dist/components/PaymentAttempts/PaymentAttemptPage.js +1 -1
- package/dist/components/PaymentAttempts/PaymentAttemptsList.js +1 -1
- package/dist/components/PaymentMethods/AddPaymentMethod.js +2 -2
- package/dist/components/PaymentMethods/PaymentMethodRow.js +1 -1
- package/dist/components/PaymentMethods/PaymentMethods.js +4 -4
- package/dist/components/Plans/PlanDetails.js +2 -2
- package/dist/components/PricingTable/PricingTableDefault.js +1 -1
- package/dist/components/PricingTable/PricingTableMatrix.js +3 -3
- package/dist/components/SessionTasks/index.js +2 -2
- package/dist/components/SessionTasks/tasks/TaskChooseOrganization/ChooseOrganizationScreen.js +3 -3
- package/dist/components/SessionTasks/tasks/TaskChooseOrganization/CreateOrganizationScreen.js +4 -4
- package/dist/components/SessionTasks/tasks/TaskChooseOrganization/index.js +2 -2
- package/dist/components/SessionTasks/tasks/TaskResetPassword/index.js +4 -4
- package/dist/components/SessionTasks/tasks/TaskSetupMfa/SetupMfaStartScreen.js +2 -2
- package/dist/components/SessionTasks/tasks/TaskSetupMfa/SmsCodeFlowScreen.js +3 -3
- package/dist/components/SessionTasks/tasks/TaskSetupMfa/TOTPCodeFlowScreen.js +6 -6
- package/dist/components/SessionTasks/tasks/TaskSetupMfa/index.js +2 -2
- package/dist/components/SessionTasks/tasks/TaskSetupMfa/shared.js +1 -1
- package/dist/components/SignIn/AlternativeMethods.js +2 -2
- package/dist/components/SignIn/ResetPassword.js +3 -3
- package/dist/components/SignIn/ResetPasswordSuccess.js +1 -1
- package/dist/components/SignIn/SignInAccountSwitcher.js +3 -3
- package/dist/components/SignIn/SignInAlternativePhoneCodePhoneNumberCard.js +1 -1
- package/dist/components/SignIn/SignInFactorOne.js +1 -1
- package/dist/components/SignIn/SignInFactorOneAlternativeChannelCodeForm.js +1 -1
- package/dist/components/SignIn/SignInFactorOneEmailLinkCard.js +3 -3
- package/dist/components/SignIn/SignInFactorOneEnterpriseConnections.js +2 -2
- package/dist/components/SignIn/SignInFactorOnePasskey.js +2 -2
- package/dist/components/SignIn/SignInFactorOnePasswordCard.js +2 -2
- package/dist/components/SignIn/SignInFactorOneSolanaWalletsCard.js +3 -3
- package/dist/components/SignIn/SignInFactorTwoAlternativeMethods.js +2 -2
- package/dist/components/SignIn/SignInFactorTwoBackupCodeCard.js +2 -2
- package/dist/components/SignIn/SignInFactorTwoCodeForm.js +2 -2
- package/dist/components/SignIn/SignInFactorTwoEmailCodeCard.js +1 -1
- package/dist/components/SignIn/SignInFactorTwoEmailLinkCard.js +3 -3
- package/dist/components/SignIn/SignInFactorTwoPhoneCodeCard.js +1 -1
- package/dist/components/SignIn/SignInProtectCheck.js +11 -11
- package/dist/components/SignIn/SignInProtectCheck.js.map +1 -1
- package/dist/components/SignIn/SignInStart.js +4 -4
- package/dist/components/SignIn/index.js +3 -3
- package/dist/components/SignUp/SignUpContinue.js +3 -3
- package/dist/components/SignUp/SignUpEmailCodeCard.js +2 -2
- package/dist/components/SignUp/SignUpEmailLinkCard.js +3 -3
- package/dist/components/SignUp/SignUpEnterpriseConnections.js +2 -2
- package/dist/components/SignUp/SignUpPhoneCodeCard.js +2 -2
- package/dist/components/SignUp/SignUpProtectCheck.js +28 -11
- package/dist/components/SignUp/SignUpProtectCheck.js.map +1 -1
- package/dist/components/SignUp/SignUpRestrictedAccess.js +2 -2
- package/dist/components/SignUp/SignUpStart.js +4 -4
- package/dist/components/SignUp/SignUpStartAlternativePhoneCodePhoneNumberCard.js +1 -1
- package/dist/components/SignUp/SignUpStartSolanaWalletsCard.js +3 -3
- package/dist/components/SignUp/index.js +2 -4
- package/dist/components/SignUp/index.js.map +1 -1
- package/dist/components/Statements/StatementPage.js +1 -1
- package/dist/components/Statements/StatementsList.js +1 -1
- package/dist/components/SubscriptionDetails/index.js +3 -3
- package/dist/components/Subscriptions/SubscriptionsList.js +1 -1
- package/dist/components/UserButton/SessionActions.js +2 -2
- package/dist/components/UserButton/UserButtonPopover.js +1 -1
- package/dist/components/UserButton/UserButtonTrigger.js +1 -1
- package/dist/components/UserButton/index.js +2 -2
- package/dist/components/UserProfile/APIKeysPage.js +2 -3
- package/dist/components/UserProfile/APIKeysPage.js.map +1 -1
- package/dist/components/UserProfile/AccountPage.js +55 -17
- package/dist/components/UserProfile/AccountPage.js.map +1 -1
- package/dist/components/UserProfile/ActiveDevicesSection.js +3 -3
- package/dist/components/UserProfile/AddAuthenticatorApp.js +3 -3
- package/dist/components/UserProfile/BillingPage.js +4 -5
- package/dist/components/UserProfile/BillingPage.js.map +1 -1
- package/dist/components/UserProfile/ConnectedAccountsMenu.js +3 -3
- package/dist/components/UserProfile/ConnectedAccountsSection.js +5 -5
- package/dist/components/UserProfile/DeleteSection.js +1 -1
- package/dist/components/UserProfile/DeleteUserForm.js +2 -2
- package/dist/components/UserProfile/EmailsSection.js +4 -4
- package/dist/components/UserProfile/EnterpriseAccountsSection.js +4 -4
- package/dist/components/UserProfile/MfaBackupCodeCreateForm.js +1 -1
- package/dist/components/UserProfile/MfaBackupCodeList.js +1 -1
- package/dist/components/UserProfile/MfaBackupCodeScreen.js +1 -1
- package/dist/components/UserProfile/MfaPhoneCodeScreen.js +4 -4
- package/dist/components/UserProfile/MfaSection.js +4 -4
- package/dist/components/UserProfile/MfaTOTPScreen.js +1 -1
- package/dist/components/UserProfile/PasskeySection.js +3 -3
- package/dist/components/UserProfile/PasswordForm.js +1 -1
- package/dist/components/UserProfile/PasswordSection.js +1 -1
- package/dist/components/UserProfile/PhoneForm.js +1 -1
- package/dist/components/UserProfile/PhoneSection.js +4 -4
- package/dist/components/UserProfile/PlansPage.js +1 -1
- package/dist/components/UserProfile/ProfileForm.js +1 -1
- package/dist/components/UserProfile/SecurityPage.js +39 -12
- package/dist/components/UserProfile/SecurityPage.js.map +1 -1
- package/dist/components/UserProfile/UserProfileAvatarUploader.js +1 -1
- package/dist/components/UserProfile/UserProfileNavbar.js +1 -1
- package/dist/components/UserProfile/UserProfileRoutes.js +2 -2
- package/dist/components/UserProfile/UserProfileSection.js +1 -1
- package/dist/components/UserProfile/UsernameSection.js +1 -1
- package/dist/components/UserProfile/VerifyTOTP.js +1 -1
- package/dist/components/UserProfile/VerifyWithCode.js +1 -1
- package/dist/components/UserProfile/VerifyWithEnterpriseConnection.js +2 -2
- package/dist/components/UserProfile/VerifyWithLink.js +3 -3
- package/dist/components/UserProfile/Web3Form.js +2 -4
- package/dist/components/UserProfile/Web3Form.js.map +1 -1
- package/dist/components/UserProfile/Web3Section.js +5 -5
- package/dist/components/UserProfile/Web3SelectSolanaWalletScreen.js +1 -1
- package/dist/components/UserProfile/index.js +2 -2
- package/dist/components/UserVerification/AlternativeMethods.js +2 -2
- package/dist/components/UserVerification/UVFactorOnePasskeysCard.js +1 -1
- package/dist/components/UserVerification/UVFactorTwoAlternativeMethods.js +1 -1
- package/dist/components/UserVerification/UVFactorTwoBackupCodeCard.js +1 -1
- package/dist/components/UserVerification/UserVerificationFactorOnePassword.js +1 -1
- package/dist/components/UserVerification/index.js +2 -2
- package/dist/components/Waitlist/WaitlistForm.js +2 -2
- package/dist/components/Waitlist/index.js +2 -2
- package/dist/components/devPrompts/EnableOrganizationsPrompt/index.js +1 -1
- package/dist/components/devPrompts/KeylessPrompt/index.d.ts +1 -1
- package/dist/configureSSO_ui_1e6e67_1.25.0.js +1 -0
- package/dist/configureSSO_ui_3a8a07_1.25.0.js +1 -0
- package/dist/configureSSO_ui_c80713_1.25.0.js +1 -0
- package/dist/contexts/components/GoogleOneTap.js +1 -1
- package/dist/contexts/components/Plans.js +1 -1
- package/dist/contexts/components/SessionTasks.js +1 -1
- package/dist/contexts/components/SignIn.js +1 -1
- package/dist/contexts/components/SignUp.js +1 -1
- package/dist/contexts/components/UserButton.js +1 -1
- package/dist/contexts/components/Waitlist.js +1 -1
- package/dist/contexts/index.js +2 -2
- package/dist/credit-history-page_ui_1e6e67_1.25.0.js +1 -0
- package/dist/{credit-history-page_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → credit-history-page_ui_3a8a07_1.25.0.js} +1 -1
- package/dist/{credit-history-page_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → credit-history-page_ui_c80713_1.25.0.js} +1 -1
- package/dist/customizables/Flow.js +1 -1
- package/dist/customizables/elementDescriptors.js +0 -1
- package/dist/customizables/elementDescriptors.js.map +1 -1
- package/dist/elements/Actions.js +1 -1
- package/dist/elements/Animated.js +3 -23
- package/dist/elements/Animated.js.map +1 -1
- package/dist/elements/AvatarUploader.js +1 -1
- package/dist/elements/Card/CardContent.js +2 -2
- package/dist/elements/Card/CardRoot.js +1 -1
- package/dist/elements/CodeControl.js +2 -2
- package/dist/elements/Drawer.js +1 -1
- package/dist/elements/ErrorCard.js +1 -1
- package/dist/elements/FieldControl.js +1 -1
- package/dist/elements/Form.js +1 -1
- package/dist/elements/FormContainer.js +1 -1
- package/dist/elements/LoadingCard.js +1 -1
- package/dist/elements/Menu.js +1 -1
- package/dist/elements/Modal.js +1 -1
- package/dist/elements/Navbar.js +2 -2
- package/dist/elements/Pagination.js +1 -1
- package/dist/elements/PasswordInput.js +14 -5
- package/dist/elements/PasswordInput.js.map +1 -1
- package/dist/elements/PreviewButton.js +1 -1
- package/dist/elements/ProfileCard/ProfileCardPage.js +10 -9
- package/dist/elements/ProfileCard/ProfileCardPage.js.map +1 -1
- package/dist/elements/ProfileCard/index.js +1 -3
- package/dist/elements/ProfileCard/index.js.map +1 -1
- package/dist/elements/Section.js +1 -1
- package/dist/elements/Select.js +2 -2
- package/dist/elements/SocialButtons.js +1 -1
- package/dist/elements/Tooltip.js +1 -1
- package/dist/elements/VerificationCodeCard.js +1 -1
- package/dist/elements/VerificationLinkCard.js +1 -1
- package/dist/elements/Web3SolanaWalletButtons.js +1 -1
- package/dist/foundations/defaultFoundations.d.ts +2 -0
- package/dist/foundations/defaultFoundations.d.ts.map +1 -1
- package/dist/foundations/sizes.js +5 -0
- package/dist/foundations/sizes.js.map +1 -1
- package/dist/hooks/usePassword.js +1 -1
- package/dist/hooks/useProtectCheckRunner.js +14 -1
- package/dist/hooks/useProtectCheckRunner.js.map +1 -1
- package/dist/hooks/useSafeState.js +0 -1
- package/dist/hooks/useSafeState.js.map +1 -1
- package/dist/hooks/useSupportEmail.js +1 -1
- package/dist/index.js +1 -1
- package/dist/internal/appearance.d.ts +0 -1
- package/dist/internal/appearance.d.ts.map +1 -1
- package/dist/localization/makeLocalizable.js +1 -1
- package/dist/no-rhc/ClerkUI.js +2 -4
- package/dist/no-rhc/ClerkUI.js.map +1 -1
- package/dist/no-rhc/baseTheme.js +6 -0
- package/dist/no-rhc/baseTheme.js.map +1 -1
- package/dist/no-rhc/components/ConfigureSSO/ConfigureSSO.js +1 -1
- package/dist/no-rhc/components/ConfigureSSO/ConfigureSSO.js.map +1 -1
- package/dist/no-rhc/components/ConfigureSSO/ConfigureSSOHeader.js +10 -4
- package/dist/no-rhc/components/ConfigureSSO/ConfigureSSOHeader.js.map +1 -1
- package/dist/no-rhc/components/ConfigureSSO/elements/ProfileCard.js +1 -1
- package/dist/no-rhc/components/ConfigureSSO/elements/ProfileCard.js.map +1 -1
- package/dist/no-rhc/components/OrganizationProfile/OrganizationBillingPage.js +1 -2
- package/dist/no-rhc/components/OrganizationProfile/OrganizationBillingPage.js.map +1 -1
- package/dist/no-rhc/components/OrganizationProfile/OrganizationGeneralPage.js +23 -35
- package/dist/no-rhc/components/OrganizationProfile/OrganizationGeneralPage.js.map +1 -1
- package/dist/no-rhc/components/OrganizationProfile/OrganizationMembers.js +0 -1
- package/dist/no-rhc/components/OrganizationProfile/OrganizationMembers.js.map +1 -1
- package/dist/no-rhc/components/SignIn/SignInProtectCheck.js +9 -9
- package/dist/no-rhc/components/SignIn/SignInProtectCheck.js.map +1 -1
- package/dist/no-rhc/components/SignUp/SignUpProtectCheck.js +26 -9
- package/dist/no-rhc/components/SignUp/SignUpProtectCheck.js.map +1 -1
- package/dist/no-rhc/components/SignUp/index.js +0 -2
- package/dist/no-rhc/components/SignUp/index.js.map +1 -1
- package/dist/no-rhc/components/UserProfile/APIKeysPage.js +0 -1
- package/dist/no-rhc/components/UserProfile/APIKeysPage.js.map +1 -1
- package/dist/no-rhc/components/UserProfile/AccountPage.js +55 -17
- package/dist/no-rhc/components/UserProfile/AccountPage.js.map +1 -1
- package/dist/no-rhc/components/UserProfile/BillingPage.js +1 -2
- package/dist/no-rhc/components/UserProfile/BillingPage.js.map +1 -1
- package/dist/no-rhc/components/UserProfile/SecurityPage.js +39 -12
- package/dist/no-rhc/components/UserProfile/SecurityPage.js.map +1 -1
- package/dist/no-rhc/components/UserProfile/Web3Form.js +0 -2
- package/dist/no-rhc/components/UserProfile/Web3Form.js.map +1 -1
- package/dist/no-rhc/customizables/elementDescriptors.js +0 -1
- package/dist/no-rhc/customizables/elementDescriptors.js.map +1 -1
- package/dist/no-rhc/elements/Animated.js +3 -23
- package/dist/no-rhc/elements/Animated.js.map +1 -1
- package/dist/no-rhc/elements/PasswordInput.js +12 -3
- package/dist/no-rhc/elements/PasswordInput.js.map +1 -1
- package/dist/no-rhc/elements/ProfileCard/ProfileCardPage.js +10 -9
- package/dist/no-rhc/elements/ProfileCard/ProfileCardPage.js.map +1 -1
- package/dist/no-rhc/elements/ProfileCard/index.js +1 -3
- package/dist/no-rhc/elements/ProfileCard/index.js.map +1 -1
- package/dist/no-rhc/foundations/sizes.js +5 -0
- package/dist/no-rhc/foundations/sizes.js.map +1 -1
- package/dist/no-rhc/hooks/useProtectCheckRunner.js +3 -0
- package/dist/no-rhc/hooks/useProtectCheckRunner.js.map +1 -1
- package/dist/no-rhc/hooks/useSafeState.js +0 -1
- package/dist/no-rhc/hooks/useSafeState.js.map +1 -1
- package/dist/no-rhc/index.js +1 -1
- package/dist/no-rhc/primitives/Spinner.js +0 -1
- package/dist/no-rhc/primitives/Spinner.js.map +1 -1
- package/dist/no-rhc/styledSystem/StyleCacheProvider.js +1 -1
- package/dist/no-rhc/styledSystem/StyleCacheProvider.js.map +1 -1
- package/dist/op-api-keys-page_ui_1e6e67_1.25.0.js +1 -0
- package/dist/{op-api-keys-page_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → op-api-keys-page_ui_3a8a07_1.25.0.js} +1 -1
- package/dist/{op-api-keys-page_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → op-api-keys-page_ui_c80713_1.25.0.js} +1 -1
- package/dist/op-billing-page_ui_1e6e67_1.25.0.js +1 -0
- package/dist/op-billing-page_ui_3a8a07_1.25.0.js +1 -0
- package/dist/op-billing-page_ui_c80713_1.25.0.js +1 -0
- package/dist/op-plans-page_ui_1e6e67_1.25.0.js +1 -0
- package/dist/{op-plans-page_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → op-plans-page_ui_3a8a07_1.25.0.js} +1 -1
- package/dist/{op-plans-page_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → op-plans-page_ui_c80713_1.25.0.js} +1 -1
- package/dist/op-security-page_ui_1e6e67_1.25.0.js +1 -0
- package/dist/{op-security-page_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → op-security-page_ui_3a8a07_1.25.0.js} +1 -1
- package/dist/{op-security-page_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → op-security-page_ui_c80713_1.25.0.js} +1 -1
- package/dist/organizationprofile_ui_1e6e67_1.25.0.js +1 -0
- package/dist/organizationprofile_ui_3a8a07_1.25.0.js +1 -0
- package/dist/organizationprofile_ui_c80713_1.25.0.js +1 -0
- package/dist/payment-attempt-page_ui_1e6e67_1.25.0.js +1 -0
- package/dist/{payment-attempt-page_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → payment-attempt-page_ui_3a8a07_1.25.0.js} +1 -1
- package/dist/{payment-attempt-page_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → payment-attempt-page_ui_c80713_1.25.0.js} +1 -1
- package/dist/portal/index.js +1 -1
- package/dist/primitives/Spinner.js +0 -1
- package/dist/primitives/Spinner.js.map +1 -1
- package/dist/server.js +1 -1
- package/dist/{signin_ui_793165_1.25.0-snapshot.v20260707124635.js → signin_ui_1e6e67_1.25.0.js} +1 -1
- package/dist/{signin_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → signin_ui_3a8a07_1.25.0.js} +1 -1
- package/dist/{signin_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → signin_ui_c80713_1.25.0.js} +1 -1
- package/dist/signup_ui_1e6e67_1.25.0.js +1 -0
- package/dist/signup_ui_3a8a07_1.25.0.js +1 -0
- package/dist/signup_ui_c80713_1.25.0.js +1 -0
- package/dist/statement-page_ui_1e6e67_1.25.0.js +1 -0
- package/dist/{statement-page_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → statement-page_ui_3a8a07_1.25.0.js} +1 -1
- package/dist/{statement-page_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → statement-page_ui_c80713_1.25.0.js} +1 -1
- package/dist/styledSystem/StyleCacheProvider.js +1 -1
- package/dist/styledSystem/StyleCacheProvider.js.map +1 -1
- package/dist/ui-common_ui_1e6e67_1.25.0.js +1 -0
- package/dist/ui-common_ui_3a8a07_1.25.0.js +122 -0
- package/dist/ui-common_ui_c80713_1.25.0.js +122 -0
- package/dist/ui.browser.js +2 -2
- package/dist/ui.legacy.browser.js +1 -1
- package/dist/ui.shared.browser.js +3 -3
- package/dist/up-api-keys-page_ui_1e6e67_1.25.0.js +1 -0
- package/dist/up-api-keys-page_ui_3a8a07_1.25.0.js +1 -0
- package/dist/up-api-keys-page_ui_c80713_1.25.0.js +1 -0
- package/dist/up-billing-page_ui_1e6e67_1.25.0.js +1 -0
- package/dist/up-billing-page_ui_3a8a07_1.25.0.js +1 -0
- package/dist/up-billing-page_ui_c80713_1.25.0.js +1 -0
- package/dist/up-plans-page_ui_1e6e67_1.25.0.js +1 -0
- package/dist/{up-plans-page_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → up-plans-page_ui_3a8a07_1.25.0.js} +1 -1
- package/dist/{up-plans-page_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → up-plans-page_ui_c80713_1.25.0.js} +1 -1
- package/dist/userprofile_ui_1e6e67_1.25.0.js +1 -0
- package/dist/userprofile_ui_3a8a07_1.25.0.js +4 -0
- package/dist/userprofile_ui_c80713_1.25.0.js +4 -0
- package/dist/utils/createCustomMenuItems.js +1 -1
- package/dist/utils/createCustomPages.js +1 -1
- package/dist/vendors_ui_1e6e67_1.25.0.js +1 -0
- package/dist/{vendors_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → vendors_ui_3a8a07_1.25.0.js} +1 -1
- package/dist/{vendors_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → vendors_ui_c80713_1.25.0.js} +1 -1
- package/package.json +4 -9
- package/dist/9074_ui_5fdf69_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/9074_ui_793165_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/9074_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/components/UserProfile/AccountSections.js +0 -61
- package/dist/components/UserProfile/AccountSections.js.map +0 -1
- package/dist/components/UserProfile/SecuritySections.js +0 -36
- package/dist/components/UserProfile/SecuritySections.js.map +0 -1
- package/dist/composed/APIKeysSection.js +0 -17
- package/dist/composed/APIKeysSection.js.map +0 -1
- package/dist/composed/BillingSection.js +0 -35
- package/dist/composed/BillingSection.js.map +0 -1
- package/dist/composed/OrganizationProfile/APIKeys.d.ts +0 -7
- package/dist/composed/OrganizationProfile/APIKeys.d.ts.map +0 -1
- package/dist/composed/OrganizationProfile/APIKeys.js +0 -13
- package/dist/composed/OrganizationProfile/APIKeys.js.map +0 -1
- package/dist/composed/OrganizationProfile/Billing.d.ts +0 -7
- package/dist/composed/OrganizationProfile/Billing.d.ts.map +0 -1
- package/dist/composed/OrganizationProfile/Billing.js +0 -21
- package/dist/composed/OrganizationProfile/Billing.js.map +0 -1
- package/dist/composed/OrganizationProfile/General.d.ts +0 -9
- package/dist/composed/OrganizationProfile/General.d.ts.map +0 -1
- package/dist/composed/OrganizationProfile/General.js +0 -30
- package/dist/composed/OrganizationProfile/General.js.map +0 -1
- package/dist/composed/OrganizationProfile/GeneralDeleteOrganization.d.ts +0 -5
- package/dist/composed/OrganizationProfile/GeneralDeleteOrganization.d.ts.map +0 -1
- package/dist/composed/OrganizationProfile/GeneralDeleteOrganization.js +0 -11
- package/dist/composed/OrganizationProfile/GeneralDeleteOrganization.js.map +0 -1
- package/dist/composed/OrganizationProfile/GeneralLeaveOrganization.d.ts +0 -5
- package/dist/composed/OrganizationProfile/GeneralLeaveOrganization.d.ts.map +0 -1
- package/dist/composed/OrganizationProfile/GeneralLeaveOrganization.js +0 -11
- package/dist/composed/OrganizationProfile/GeneralLeaveOrganization.js.map +0 -1
- package/dist/composed/OrganizationProfile/GeneralOrganizationProfile.d.ts +0 -5
- package/dist/composed/OrganizationProfile/GeneralOrganizationProfile.d.ts.map +0 -1
- package/dist/composed/OrganizationProfile/GeneralOrganizationProfile.js +0 -11
- package/dist/composed/OrganizationProfile/GeneralOrganizationProfile.js.map +0 -1
- package/dist/composed/OrganizationProfile/GeneralVerifiedDomains.d.ts +0 -7
- package/dist/composed/OrganizationProfile/GeneralVerifiedDomains.d.ts.map +0 -1
- package/dist/composed/OrganizationProfile/GeneralVerifiedDomains.js +0 -19
- package/dist/composed/OrganizationProfile/GeneralVerifiedDomains.js.map +0 -1
- package/dist/composed/OrganizationProfile/Members.d.ts +0 -7
- package/dist/composed/OrganizationProfile/Members.d.ts.map +0 -1
- package/dist/composed/OrganizationProfile/Members.js +0 -11
- package/dist/composed/OrganizationProfile/Members.js.map +0 -1
- package/dist/composed/OrganizationProfile/OrganizationProfileProvider.d.ts +0 -11
- package/dist/composed/OrganizationProfile/OrganizationProfileProvider.d.ts.map +0 -1
- package/dist/composed/OrganizationProfile/OrganizationProfileProvider.js +0 -45
- package/dist/composed/OrganizationProfile/OrganizationProfileProvider.js.map +0 -1
- package/dist/composed/OrganizationProfile/Security.d.ts +0 -7
- package/dist/composed/OrganizationProfile/Security.d.ts.map +0 -1
- package/dist/composed/OrganizationProfile/Security.js +0 -15
- package/dist/composed/OrganizationProfile/Security.js.map +0 -1
- package/dist/composed/OrganizationProfile/index.d.ts +0 -10
- package/dist/composed/PageContext.js +0 -8
- package/dist/composed/PageContext.js.map +0 -1
- package/dist/composed/ProfileProviderShell.js +0 -95
- package/dist/composed/ProfileProviderShell.js.map +0 -1
- package/dist/composed/UserProfile/APIKeys.d.ts +0 -7
- package/dist/composed/UserProfile/APIKeys.d.ts.map +0 -1
- package/dist/composed/UserProfile/APIKeys.js +0 -13
- package/dist/composed/UserProfile/APIKeys.js.map +0 -1
- package/dist/composed/UserProfile/Account.d.ts +0 -9
- package/dist/composed/UserProfile/Account.d.ts.map +0 -1
- package/dist/composed/UserProfile/Account.js +0 -35
- package/dist/composed/UserProfile/Account.js.map +0 -1
- package/dist/composed/UserProfile/AccountConnectedAccounts.d.ts +0 -5
- package/dist/composed/UserProfile/AccountConnectedAccounts.d.ts.map +0 -1
- package/dist/composed/UserProfile/AccountConnectedAccounts.js +0 -11
- package/dist/composed/UserProfile/AccountConnectedAccounts.js.map +0 -1
- package/dist/composed/UserProfile/AccountEmails.d.ts +0 -5
- package/dist/composed/UserProfile/AccountEmails.d.ts.map +0 -1
- package/dist/composed/UserProfile/AccountEmails.js +0 -11
- package/dist/composed/UserProfile/AccountEmails.js.map +0 -1
- package/dist/composed/UserProfile/AccountEnterpriseAccounts.d.ts +0 -5
- package/dist/composed/UserProfile/AccountEnterpriseAccounts.d.ts.map +0 -1
- package/dist/composed/UserProfile/AccountEnterpriseAccounts.js +0 -11
- package/dist/composed/UserProfile/AccountEnterpriseAccounts.js.map +0 -1
- package/dist/composed/UserProfile/AccountPhone.d.ts +0 -5
- package/dist/composed/UserProfile/AccountPhone.d.ts.map +0 -1
- package/dist/composed/UserProfile/AccountPhone.js +0 -11
- package/dist/composed/UserProfile/AccountPhone.js.map +0 -1
- package/dist/composed/UserProfile/AccountProfile.d.ts +0 -5
- package/dist/composed/UserProfile/AccountProfile.d.ts.map +0 -1
- package/dist/composed/UserProfile/AccountProfile.js +0 -11
- package/dist/composed/UserProfile/AccountProfile.js.map +0 -1
- package/dist/composed/UserProfile/AccountUsername.d.ts +0 -5
- package/dist/composed/UserProfile/AccountUsername.d.ts.map +0 -1
- package/dist/composed/UserProfile/AccountUsername.js +0 -11
- package/dist/composed/UserProfile/AccountUsername.js.map +0 -1
- package/dist/composed/UserProfile/AccountWeb3.d.ts +0 -5
- package/dist/composed/UserProfile/AccountWeb3.d.ts.map +0 -1
- package/dist/composed/UserProfile/AccountWeb3.js +0 -11
- package/dist/composed/UserProfile/AccountWeb3.js.map +0 -1
- package/dist/composed/UserProfile/Billing.d.ts +0 -7
- package/dist/composed/UserProfile/Billing.d.ts.map +0 -1
- package/dist/composed/UserProfile/Billing.js +0 -21
- package/dist/composed/UserProfile/Billing.js.map +0 -1
- package/dist/composed/UserProfile/Security.d.ts +0 -9
- package/dist/composed/UserProfile/Security.d.ts.map +0 -1
- package/dist/composed/UserProfile/Security.js +0 -30
- package/dist/composed/UserProfile/Security.js.map +0 -1
- package/dist/composed/UserProfile/SecurityActiveDevices.d.ts +0 -5
- package/dist/composed/UserProfile/SecurityActiveDevices.d.ts.map +0 -1
- package/dist/composed/UserProfile/SecurityActiveDevices.js +0 -11
- package/dist/composed/UserProfile/SecurityActiveDevices.js.map +0 -1
- package/dist/composed/UserProfile/SecurityDelete.d.ts +0 -5
- package/dist/composed/UserProfile/SecurityDelete.d.ts.map +0 -1
- package/dist/composed/UserProfile/SecurityDelete.js +0 -11
- package/dist/composed/UserProfile/SecurityDelete.js.map +0 -1
- package/dist/composed/UserProfile/SecurityMfa.d.ts +0 -5
- package/dist/composed/UserProfile/SecurityMfa.d.ts.map +0 -1
- package/dist/composed/UserProfile/SecurityMfa.js +0 -11
- package/dist/composed/UserProfile/SecurityMfa.js.map +0 -1
- package/dist/composed/UserProfile/SecurityPasskeys.d.ts +0 -5
- package/dist/composed/UserProfile/SecurityPasskeys.d.ts.map +0 -1
- package/dist/composed/UserProfile/SecurityPasskeys.js +0 -11
- package/dist/composed/UserProfile/SecurityPasskeys.js.map +0 -1
- package/dist/composed/UserProfile/SecurityPassword.d.ts +0 -5
- package/dist/composed/UserProfile/SecurityPassword.d.ts.map +0 -1
- package/dist/composed/UserProfile/SecurityPassword.js +0 -11
- package/dist/composed/UserProfile/SecurityPassword.js.map +0 -1
- package/dist/composed/UserProfile/UserProfileProvider.d.ts +0 -13
- package/dist/composed/UserProfile/UserProfileProvider.d.ts.map +0 -1
- package/dist/composed/UserProfile/UserProfileProvider.js +0 -42
- package/dist/composed/UserProfile/UserProfileProvider.js.map +0 -1
- package/dist/composed/UserProfile/index.d.ts +0 -17
- package/dist/composed/createSection.js +0 -18
- package/dist/composed/createSection.js.map +0 -1
- package/dist/composed/index.d.ts +0 -27
- package/dist/composed/stubRouter.js +0 -40
- package/dist/composed/stubRouter.js.map +0 -1
- package/dist/composed/useBillingRouter.js +0 -66
- package/dist/composed/useBillingRouter.js.map +0 -1
- package/dist/composed/useRequirePage.js +0 -12
- package/dist/composed/useRequirePage.js.map +0 -1
- package/dist/configureSSO_ui_5fdf69_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/configureSSO_ui_793165_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/configureSSO_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/credit-history-page_ui_793165_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/elements/AppearanceOverrides.js +0 -27
- package/dist/elements/AppearanceOverrides.js.map +0 -1
- package/dist/elements/ProfileCard/ProfilePageSection.js +0 -33
- package/dist/elements/ProfileCard/ProfilePageSection.js.map +0 -1
- package/dist/experimental/index.d.ts +0 -28
- package/dist/experimental/index.js +0 -29
- package/dist/internal/moduleManagerStore.js +0 -3
- package/dist/internal/styleCacheStore.js +0 -12
- package/dist/internal/styleCacheStore.js.map +0 -1
- package/dist/no-rhc/components/UserProfile/AccountSections.js +0 -61
- package/dist/no-rhc/components/UserProfile/AccountSections.js.map +0 -1
- package/dist/no-rhc/components/UserProfile/SecuritySections.js +0 -36
- package/dist/no-rhc/components/UserProfile/SecuritySections.js.map +0 -1
- package/dist/no-rhc/elements/ProfileCard/ProfilePageSection.js +0 -33
- package/dist/no-rhc/elements/ProfileCard/ProfilePageSection.js.map +0 -1
- package/dist/no-rhc/internal/moduleManagerStore.js +0 -3
- package/dist/op-api-keys-page_ui_793165_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/op-billing-page_ui_5fdf69_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/op-billing-page_ui_793165_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/op-billing-page_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/op-plans-page_ui_793165_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/op-security-page_ui_793165_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/organizationprofile_ui_5fdf69_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/organizationprofile_ui_793165_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/organizationprofile_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/payment-attempt-page_ui_793165_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/signup_ui_5fdf69_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/signup_ui_793165_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/signup_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/statement-page_ui_793165_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/ui-common_ui_5fdf69_1.25.0-snapshot.v20260707124635.js +0 -122
- package/dist/ui-common_ui_793165_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/ui-common_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js +0 -122
- package/dist/up-api-keys-page_ui_5fdf69_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/up-api-keys-page_ui_793165_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/up-api-keys-page_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/up-billing-page_ui_5fdf69_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/up-billing-page_ui_793165_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/up-billing-page_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/up-plans-page_ui_793165_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/userprofile_ui_5fdf69_1.25.0-snapshot.v20260707124635.js +0 -4
- package/dist/userprofile_ui_793165_1.25.0-snapshot.v20260707124635.js +0 -1
- package/dist/userprofile_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js +0 -4
- package/dist/vendors_ui_793165_1.25.0-snapshot.v20260707124635.js +0 -1
- /package/dist/{4424_ui_793165_1.25.0-snapshot.v20260707124635.js → 4424_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{4424_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → 4424_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{4424_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → 4424_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{4718_ui_793165_1.25.0-snapshot.v20260707124635.js → 4718_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{4718_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → 4718_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{4718_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → 4718_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{6678_ui_793165_1.25.0-snapshot.v20260707124635.js → 6678_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{6678_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → 6678_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{6678_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → 6678_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{76_ui_793165_1.25.0-snapshot.v20260707124635.js → 76_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{76_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → 76_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{76_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → 76_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{8316_ui_793165_1.25.0-snapshot.v20260707124635.js → 8316_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{8316_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → 8316_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{8316_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → 8316_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{8746_ui_793165_1.25.0-snapshot.v20260707124635.js → 8746_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{8746_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → 8746_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{8746_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → 8746_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{9419_ui_793165_1.25.0-snapshot.v20260707124635.js → 9419_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{9419_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → 9419_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{9419_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → 9419_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{apiKeys_ui_793165_1.25.0-snapshot.v20260707124635.js → apiKeys_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{apiKeys_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → apiKeys_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{apiKeys_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → apiKeys_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{blankcaptcha_ui_793165_1.25.0-snapshot.v20260707124635.js → blankcaptcha_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{blankcaptcha_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → blankcaptcha_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{blankcaptcha_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → blankcaptcha_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{checkout_ui_793165_1.25.0-snapshot.v20260707124635.js → checkout_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{checkout_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → checkout_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{checkout_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → checkout_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{copy-api-key-modal_ui_793165_1.25.0-snapshot.v20260707124635.js → copy-api-key-modal_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{copy-api-key-modal_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → copy-api-key-modal_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{copy-api-key-modal_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → copy-api-key-modal_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{createorganization_ui_793165_1.25.0-snapshot.v20260707124635.js → createorganization_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{createorganization_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → createorganization_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{createorganization_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → createorganization_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{enableOrganizationsPrompt_ui_793165_1.25.0-snapshot.v20260707124635.js → enableOrganizationsPrompt_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{enableOrganizationsPrompt_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → enableOrganizationsPrompt_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{enableOrganizationsPrompt_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → enableOrganizationsPrompt_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{framework_ui_793165_1.25.0-snapshot.v20260707124635.js → framework_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{framework_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → framework_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{impersonationfab_ui_793165_1.25.0-snapshot.v20260707124635.js → impersonationfab_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{impersonationfab_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → impersonationfab_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{impersonationfab_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → impersonationfab_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{keylessPrompt_ui_793165_1.25.0-snapshot.v20260707124635.js → keylessPrompt_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{keylessPrompt_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → keylessPrompt_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{keylessPrompt_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → keylessPrompt_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{oauthConsent_ui_793165_1.25.0-snapshot.v20260707124635.js → oauthConsent_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{oauthConsent_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → oauthConsent_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{oauthConsent_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → oauthConsent_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{onetap_ui_793165_1.25.0-snapshot.v20260707124635.js → onetap_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{onetap_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → onetap_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{onetap_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → onetap_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{organizationlist_ui_793165_1.25.0-snapshot.v20260707124635.js → organizationlist_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{organizationlist_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → organizationlist_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{organizationlist_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → organizationlist_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{organizationswitcher_ui_793165_1.25.0-snapshot.v20260707124635.js → organizationswitcher_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{organizationswitcher_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → organizationswitcher_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{organizationswitcher_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → organizationswitcher_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{planDetails_ui_793165_1.25.0-snapshot.v20260707124635.js → planDetails_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{planDetails_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → planDetails_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{planDetails_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → planDetails_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{prefetchorganizationlist_ui_793165_1.25.0-snapshot.v20260707124635.js → prefetchorganizationlist_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{prefetchorganizationlist_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → prefetchorganizationlist_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{prefetchorganizationlist_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → prefetchorganizationlist_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{pricingTable_ui_793165_1.25.0-snapshot.v20260707124635.js → pricingTable_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{pricingTable_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → pricingTable_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{pricingTable_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → pricingTable_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{revoke-api-key-modal_ui_793165_1.25.0-snapshot.v20260707124635.js → revoke-api-key-modal_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{revoke-api-key-modal_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → revoke-api-key-modal_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{revoke-api-key-modal_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → revoke-api-key-modal_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{sessionTasks_ui_793165_1.25.0-snapshot.v20260707124635.js → sessionTasks_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{sessionTasks_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → sessionTasks_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{sessionTasks_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → sessionTasks_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{subscriptionDetails_ui_793165_1.25.0-snapshot.v20260707124635.js → subscriptionDetails_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{subscriptionDetails_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → subscriptionDetails_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{subscriptionDetails_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → subscriptionDetails_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{taskChooseOrganization_ui_793165_1.25.0-snapshot.v20260707124635.js → taskChooseOrganization_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{taskChooseOrganization_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → taskChooseOrganization_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{taskChooseOrganization_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → taskChooseOrganization_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{taskResetPassword_ui_793165_1.25.0-snapshot.v20260707124635.js → taskResetPassword_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{taskResetPassword_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → taskResetPassword_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{taskResetPassword_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → taskResetPassword_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{taskSetupMFA_ui_793165_1.25.0-snapshot.v20260707124635.js → taskSetupMFA_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{taskSetupMFA_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → taskSetupMFA_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{taskSetupMFA_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → taskSetupMFA_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{useravatar_ui_793165_1.25.0-snapshot.v20260707124635.js → useravatar_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{useravatar_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → useravatar_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{useravatar_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → useravatar_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{userbutton_ui_793165_1.25.0-snapshot.v20260707124635.js → userbutton_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{userbutton_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → userbutton_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{userbutton_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → userbutton_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{userverification_ui_793165_1.25.0-snapshot.v20260707124635.js → userverification_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{userverification_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → userverification_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{userverification_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → userverification_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{waitlist_ui_793165_1.25.0-snapshot.v20260707124635.js → waitlist_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{waitlist_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → waitlist_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{waitlist_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → waitlist_ui_c80713_1.25.0.js} +0 -0
- /package/dist/{web3-solana-wallet-buttons_ui_793165_1.25.0-snapshot.v20260707124635.js → web3-solana-wallet-buttons_ui_1e6e67_1.25.0.js} +0 -0
- /package/dist/{web3-solana-wallet-buttons_ui_5fdf69_1.25.0-snapshot.v20260707124635.js → web3-solana-wallet-buttons_ui_3a8a07_1.25.0.js} +0 -0
- /package/dist/{web3-solana-wallet-buttons_ui_bf8e7a_1.25.0-snapshot.v20260707124635.js → web3-solana-wallet-buttons_ui_c80713_1.25.0.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.rspackChunk_clerk_ui=globalThis.rspackChunk_clerk_ui||[]).push([[9074],{7330(e,i,t){var r=t(9763),o=t(630),n=t.n(o);let a=n().createContext(null);a.displayName="ConfigureSSOContext",t.d(i,{},{t:()=>{let e=n().useContext(a);if(!e)throw Error("useConfigureSSO called outside <ConfigureSSOProvider>.");return e},z:({enterpriseConnection:e,organizationEnterpriseConnection:i,testRuns:t,organizationDomains:o,contentRef:l,enterpriseConnectionMutations:s,organizationDomainMutations:c,onExit:d,children:p})=>{let u=n().useMemo(()=>({contentRef:l,enterpriseConnection:e,organizationEnterpriseConnection:i,testRuns:t,organizationDomains:o,enterpriseConnectionMutations:s,organizationDomainMutations:c,onExit:d}),[l,s,c,i,t,o,e,d]);return(0,r.Y)(a.Provider,{value:u,children:p})}})},6700(e,i,t){t.d(i,{b:()=>iC});var r=t(9763),o=t(630),n=t.n(o),a=t(7308),l=t(7330),s=t(6887),c=t(9230),d=t(2574),p=t(4260),u=t(8157),S=t(2537);let g=n().createContext(null);function m(){let e=n().useContext(g);if(!e)throw Error("useWizard called outside of <Wizard>");return e}g.displayName="WizardContext";let f=({title:e})=>{let{activeSteps:i,currentIndex:t,goToStep:o}=m(),{t:n}=(0,s._)(),{toggle:a}=(0,d.Y)(),l=!!a,g=i.filter(e=>e.label),f=g.findIndex(e=>i[t]?.id===e.id);return(0,r.FD)(u.B,{children:[e,(0,r.Y)(c.so,{sx:i=>({...e?{marginInlineStart:"auto",[p.g.md]:{marginInlineStart:0}}:{},...l?{marginInlineEnd:i.space.$10}:{}}),children:(0,r.Y)(S.C,{children:g.map((e,i)=>{let t=e.label?"string"==typeof e.label?e.label:n(e.label):"";return(0,r.Y)(S.C.Item,{bullet:i+1,isCurrent:i===f,isCompleted:e.isCompleted,isReachable:e.isReachable,onClick:()=>o(e.id),children:t},e.id)})})})]})};var h=t(85);let Y=e=>!e.isReachable||e.isReachable(),y=(e,i)=>e.findIndex(e=>e.id===i),b=e=>{let i=e.descriptors;if(0===i.length)return{current:"",direction:0,hasNavigated:!1};let t=0;for(;t+1<i.length&&Y(i[t+1]);)t++;return{current:i[t].id,direction:0,hasNavigated:!1}},O=(e,i)=>({current:e,direction:i,hasNavigated:!0}),D=(e,i,t)=>{let r=t.descriptors;switch(i.type){case"NEXT":{let i=y(r,e.current);if(i<0)return e;let t=r[i+1];if(!t||!Y(t))return e;return O(t.id,1)}case"PREV":{let i=y(r,e.current);if(i<0)return e;let t=r[i-1];if(!t||!Y(t))return e;return O(t.id,-1)}case"GOTO":{let t=r.find(e=>e.id===i.step);if(!t||t.id===e.current||!Y(t))return e;return O(t.id,0)}default:return e}},v=({id:e,children:i})=>{let{current:t}=m();return t!==e?null:(0,r.Y)(r.FK,{children:i})};v.displayName="Wizard.Match";let $=Object.assign(({steps:e,initialStepId:i,children:t})=>{let o=n().useContext(g),a=(({config:e,parentWizard:i,initialStepId:t})=>{let r=null!==i,[o,a]=n().useState(()=>((e,i)=>{if(i){let t=e.descriptors.find(e=>e.id===i);if(t&&Y(t))return{current:i,direction:0,hasNavigated:!1}}return b(e)})(e,t)),[l,s]=n().useState(null),c=n().useRef(e);c.current=e;let d=n().useRef(i);d.current=i;let p=n().useRef(o);p.current=o;let u=e.descriptors.find(e=>e.id===o.current);if(!u||!Y(u)){let i=b(e);i.current!==o.current&&a(i)}if(null!==l)if(l!==o.current)s(null);else{let i=D(o,{type:"NEXT"},e);i!==o&&(a(i),s(null))}let S=(e,i)=>i.descriptors.findIndex(i=>i.id===e.current),g=n().useCallback(()=>{let e=p.current,i=c.current,t=D(e,{type:"NEXT"},i);if(t!==e){s(null),a(t);return}S(e,i)===i.descriptors.length-1?d.current?.goNext():s(e.current)},[]),m=n().useCallback(()=>{s(null);let e=p.current,i=c.current,t=D(e,{type:"PREV"},i);if(t===e){0===S(e,i)&&d.current?.goPrev();return}a(t)},[]),f=n().useCallback(e=>{a(D(p.current,e,c.current))},[]),h=n().useCallback(e=>{s(null),f({type:"GOTO",step:e})},[f]),y=o.current,O=n().useMemo(()=>{let i=e.descriptors,t=i.findIndex(e=>e.id===y);return i.map((e,i)=>({id:e.id,label:e.label,isCompleted:e.isComplete?e.isComplete():t>=0&&i<t,isReachable:Y(e)}))},[e,y]),v=O.findIndex(e=>e.id===y),$=v>=0?O[v]:void 0,z=e.descriptors,F=z.findIndex(e=>e.id===y),C=!o.hasNavigated;return n().useMemo(()=>({current:y,direction:o.direction,activeSteps:O,currentStep:$,currentIndex:v,totalSteps:O.length,isInitialStep:C,isNested:r,isFirstStep:F<=0&&(!i||i.isFirstStep),isLastStep:F===z.length-1&&(!i||i.isLastStep),goNext:g,goPrev:m,goToStep:h}),[y,o.direction,O,$,v,C,r,F,z.length,i,g,m,h])})({config:n().useMemo(()=>({descriptors:e}),[e]),parentWizard:o,initialStepId:i});return(0,r.Y)(g.Provider,{value:a,children:t})},{Match:v});var z=t(6262),F=t(2344),C=t(8342),x=t(4641),I=t(1046),G=t(395),M=t(8509),R=t(6363),k=t(5790),E=t(7447),P=t(5880),T=t(2310),A=t(8426),K=t(6504),w=t(3693),U=t(8343),L=t(1637),_=t(869),B=t(7876),H=t(5402),W=t(6600),q=t(5870);let N=e=>e.isOpen?(0,r.Y)(d.Modal,{handleClose:e.onClose,canCloseModal:!1,portalRoot:e.contentRef,containerSx:e=>({alignItems:"center",position:"absolute",inset:0,width:"auto",height:"auto",backgroundColor:"inherit",backdropFilter:`blur(${e.sizes.$2})`}),children:(0,r.Y)(V,{...e})}):null,V=(0,a.dm)(e=>{let{onClose:i,onRemove:t}=e,n=(0,a.f0)(),l=(0,o.useMemo)(()=>e.isConnectionActive?(0,C.G)("configureSSO.organizationDomainsStep.removeDomainDialog.subtitle__active",{domain:e.domain}):(0,C.G)("configureSSO.organizationDomainsStep.removeDomainDialog.subtitle__inactive",{domain:e.domain}),[]),s=async()=>{try{await t(),i()}catch(e){(0,_.H4)(e,[],n.setError)}};return(0,r.Y)(H.Z.Root,{elementDescriptor:I.$z.configureSSORemoveDomainDialog,sx:e=>({borderRadius:e.radii.$md}),children:(0,r.Y)(H.Z.Content,{sx:e=>({textAlign:"start",padding:e.sizes.$5}),children:(0,r.Y)(q.M,{headerTitle:(0,C.G)("configureSSO.organizationDomainsStep.removeDomainDialog.title"),headerSubtitle:l,sx:e=>({gap:e.space.$4}),children:(0,r.Y)(E.l.Root,{onSubmit:s,children:(0,r.Y)(c.fv,{gap:4,children:(0,r.FD)(W.c,{children:[(0,r.Y)(E.l.SubmitButton,{elementDescriptor:I.$z.configureSSORemoveDomainDialogSubmitButton,block:!1,colorScheme:"danger",localizationKey:(0,C.G)("configureSSO.organizationDomainsStep.removeDomainDialog.removeButton")}),(0,r.Y)(E.l.ResetButton,{elementDescriptor:I.$z.configureSSORemoveDomainDialogCancelButton,block:!1,localizationKey:(0,C.G)("configureSSO.organizationDomainsStep.removeDomainDialog.cancelButton"),onClick:i})]})})})})})})}),J=()=>{let{t:e}=(0,s._)(),{enterpriseConnection:i,organizationDomains:t,organizationEnterpriseConnection:n,contentRef:d,organizationDomainMutations:{createDomain:p,revalidate:u,prepareOwnershipVerification:S},enterpriseConnectionMutations:{updateConnection:g}}=(0,l.t)(),{goPrev:f,goNext:Y,isFirstStep:y,isLastStep:b}=m(),O=(0,a.f0)(),D=(0,z.ho)(),{organization:v}=(0,z.Z5)(),[$,M]=(0,o.useState)(null),R=(0,o.useRef)(!1);(0,o.useEffect)(()=>{R.current||(R.current=!0,D.telemetry?.record((0,F.fC)("configureSSO","verify-domain",{timestamp:new Date().toISOString(),connectionStatus:n.status,connectionId:i?.id??null,organizationId:v?.id??null})))},[]);let k=async e=>{O.setError(void 0);try{await p(e)}catch(i){let e=(0,_.hG)(i)??(0,_.QU)(i);O.setError(e)}},E=async e=>{O.setError(void 0);try{await S([e])}catch(i){let e=(0,_.hG)(i)??(0,_.QU)(i);O.setError(e)}},P=async e=>{if(i){let t=i.domains.filter(i=>i!==e.name);await g(i.id,{domains:t})}await e.delete(),await u()},T=(0,h.im)(t),A=t?.filter(e=>e.ownershipVerification?.status==="verified").length??0,K=!!i,w=i?.active?(0,C.G)("configureSSO.organizationDomainsStep.domainCard.removeButtonTooltip__lastVerifiedDomainActive"):(0,C.G)("configureSSO.organizationDomainsStep.domainCard.removeButtonTooltip__lastVerifiedDomain");return(0,r.FD)(x.n.Part,{part:"organizationDomains",children:[(0,r.FD)(B.p,{elementDescriptor:I.$z.configureSSOStep,elementId:I.$z.configureSSOStep.setId("verify-domain"),children:[(0,r.Y)(B.p.Header,{title:e((0,C.G)("configureSSO.organizationDomainsStep.title")),description:e((0,C.G)("configureSSO.organizationDomainsStep.subtitle"))}),(0,r.Y)(B.p.Body,{children:(0,r.FD)(B.p.Section,{fill:!0,sx:e=>({gap:e.space.$5,minHeight:0}),children:[(0,r.FD)(c.fv,{sx:e=>({gap:e.space.$4}),children:[(0,r.Y)(j,{onSubmit:k,organizationDomains:t}),!t?.length&&(0,r.Y)(X,{onSubmit:k}),O.error&&(0,r.Y)(G.F,{variant:"danger",title:O.error})]}),!!t?.length&&(0,r.Y)(c.fv,{elementDescriptor:I.$z.configureSSOVerifyDomainList,sx:e=>({gap:e.space.$3,flex:"0 1 auto",minHeight:0,overflowY:"auto",marginInline:`calc(${e.space.$1} * -1)`,paddingInline:e.space.$1,...U.s.unstyledScrollbar(e)}),children:t.map(e=>{let i=e.ownershipVerification?.status==="verified";return(0,r.Y)(Q,{domain:e,onRemove:()=>M(e),onPrepareOwnershipVerification:()=>E(e),isRemoveDisabled:K&&i&&1===A,removeDisabledTooltip:w},e.id)})})]})}),(0,r.FD)(B.p.Footer,{children:[(0,r.Y)(B.p.Footer.Previous,{onClick:()=>f(),isDisabled:y}),(0,r.Y)(B.p.Footer.Continue,{onClick:()=>Y(),isDisabled:b||!T})]})]}),$&&(0,r.Y)(N,{isOpen:!!$,onClose:()=>M(null),domain:$.name,isConnectionActive:!!i?.active,onRemove:()=>P($),contentRef:d})]})},Z=/^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,}$/i,j=({onSubmit:e,organizationDomains:i})=>{let[t,n]=(0,o.useState)(!1),a=(0,L.tJ)("domain","",{type:"text",label:(0,C.G)("configureSSO.organizationDomainsStep.formFieldLabel__domain"),placeholder:(0,C.G)("configureSSO.organizationDomainsStep.formFieldInputPlaceholder__domain")}),l=a.value.trim().toLowerCase(),s=Z.test(l)&&!i?.some(e=>e.name===l)&&!t;return(0,r.Y)(E.l.Root,{onSubmit:i=>{i.preventDefault(),s&&(n(!0),e(l).then(()=>a.setValue("")).finally(()=>n(!1)))},children:(0,r.Y)(k.D.Root,{...a.props,children:(0,r.FD)(c.fv,{elementDescriptor:I.$z.formField,elementId:I.$z.formField.setId(a.id),sx:e=>({gap:e.space.$2}),children:[(0,r.Y)(k.D.LabelRow,{children:(0,r.Y)(k.D.Label,{})}),(0,r.FD)(c.so,{align:"start",sx:e=>({gap:e.space.$2}),children:[(0,r.Y)(c.az,{sx:{flex:1},children:(0,r.Y)(k.D.Input,{})}),(0,r.Y)(c.$n,{type:"submit",variant:"bordered",colorScheme:"secondary",isDisabled:!s,isLoading:t,localizationKey:(0,C.G)("configureSSO.organizationDomainsStep.formButtonPrimary__add"),sx:{flexShrink:0}})]})]})})})},X=({onSubmit:e})=>{let{user:i}=(0,z.Jd)(),[t,n]=(0,o.useState)(!1),[a,l]=(0,o.useState)(!1),s=i?.primaryEmailAddress?.emailAddress,d=s&&s.split("@")[1]?.trim().toLowerCase()||null;return!d||t?null:(0,r.FD)(c.so,{elementDescriptor:I.$z.configureSSOVerifyDomainSuggestion,align:"center",justify:"between",sx:e=>({gap:e.space.$2,paddingInline:e.space.$3,paddingBlock:e.space.$1x5,borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha150,borderRadius:e.radii.$lg,background:e.colors.$neutralAlpha50}),children:[(0,r.FD)(c.so,{align:"center",sx:e=>({gap:e.space.$3,minWidth:0}),children:[(0,r.Y)(c.EY,{as:"span",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.organizationDomainsStep.domainSuggestion.messageLabel",{domain:d}),sx:e=>({fontSize:e.fontSizes.$sm})}),(0,r.Y)(c.$n,{variant:"bordered",colorScheme:"secondary",size:"xs",isLoading:a,onClick:()=>{l(!0),e(d).then(()=>n(!0)).finally(()=>l(!1))},localizationKey:(0,C.G)("configureSSO.organizationDomainsStep.domainSuggestion.formButtonPrimary__add",{domain:d}),sx:{flexShrink:0}})]}),(0,r.Y)(c.$n,{variant:"ghost",colorScheme:"neutral","aria-label":"Dismiss domain suggestion",isDisabled:a,onClick:()=>n(!0),sx:e=>({flexShrink:0,padding:e.space.$1}),children:(0,r.Y)(c.In,{icon:T.A,sx:e=>({width:e.sizes.$4,height:e.sizes.$4,color:e.colors.$colorMutedForeground})})})]})},Q=({domain:e,onRemove:i,onPrepareOwnershipVerification:t,isRemoveDisabled:o=!1,removeDisabledTooltip:n})=>{if(!e.name)return null;let a=e.ownershipVerification,l=a?.status==="verified",s=a?.status==="expired",d=a?.status??"unverified",p=(0,r.Y)(c.$n,{elementDescriptor:I.$z.configureSSOVerifyDomainCardRemoveButton,variant:"ghost",colorScheme:"neutral","aria-label":"Remove domain",onClick:i,isDisabled:o,sx:e=>({flexShrink:0,padding:e.space.$1}),children:(0,r.Y)(c.In,{icon:T.A,sx:e=>({width:e.sizes.$4,height:e.sizes.$4,color:e.colors.$colorMutedForeground})})});return(0,r.FD)(c.fv,{elementDescriptor:I.$z.configureSSOVerifyDomainCard,elementId:I.$z.configureSSOVerifyDomainCard.setId(d),sx:e=>({borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha150,borderRadius:e.radii.$lg,background:e.colors.$colorBackground}),children:[(0,r.FD)(c.so,{align:"center",justify:"between",sx:e=>({gap:e.space.$2,padding:e.space.$4,paddingBottom:e.space.$2}),children:[(0,r.FD)(c.so,{align:"center",sx:e=>({gap:e.space.$2,minWidth:0}),children:[(0,r.Y)(c.EY,{as:"span",sx:e=>({fontWeight:e.fontWeights.$medium,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}),children:e.name}),(0,r.Y)(c.Ex,{elementDescriptor:I.$z.configureSSOVerifyDomainCardBadge,elementId:I.$z.configureSSOVerifyDomainCardBadge.setId(d),colorScheme:l?"success":"danger",localizationKey:l?(0,C.G)("configureSSO.organizationDomainsStep.domainCard.badge__verified"):s?(0,C.G)("configureSSO.organizationDomainsStep.domainCard.badge__expired"):(0,C.G)("configureSSO.organizationDomainsStep.domainCard.badge__unverified")}),!l&&!s&&(0,r.Y)(c.y$,{size:"xs",colorScheme:"neutral",sx:e=>({flexShrink:0,marginInlineStart:e.space.$1})})]}),o&&n?(0,r.FD)(P.m_.Root,{children:[(0,r.Y)(P.m_.Trigger,{children:p}),(0,r.Y)(P.m_.Content,{text:n})]}):p]}),(0,r.Y)(c.az,{sx:{overflow:"hidden"},children:(0,r.Y)(M.k,{children:s?(0,r.Y)(ee,{expiresAt:a?.expiresAt??null,onPrepareOwnershipVerification:t},"expired"):a?.verifiedAt?(0,r.Y)(c.EY,{as:"p",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.organizationDomainsStep.domainCard.verifiedAtLabel",{date:a.verifiedAt}),sx:e=>({padding:e.space.$4,paddingTop:0})},"verified"):(0,r.Y)(ei,{ownershipVerification:a},"unverified")})})]})},ee=({expiresAt:e,onPrepareOwnershipVerification:i})=>{let[t,n]=(0,o.useState)(!1);return(0,r.FD)(c.fv,{elementDescriptor:I.$z.configureSSOVerifyDomainCardExpired,sx:e=>({gap:e.space.$3,paddingInline:e.space.$4,paddingBottom:e.space.$4}),children:[(0,r.Y)(c.EY,{as:"p",colorScheme:"secondary",localizationKey:e?(0,C.G)("configureSSO.organizationDomainsStep.domainCard.expiredAtLabel",{date:e}):(0,C.G)("configureSSO.organizationDomainsStep.domainCard.expiredLabel")}),(0,r.FD)(c.$n,{variant:"bordered",colorScheme:"secondary",size:"xs",isLoading:t,onClick:()=>{n(!0),i().finally(()=>n(!1))},sx:e=>({alignSelf:"flex-start",gap:e.space.$1x5}),children:[(0,r.Y)(c.In,{icon:A.A,size:"sm",colorScheme:"neutral"}),(0,r.Y)(c.EY,{as:"span",localizationKey:(0,C.G)("configureSSO.organizationDomainsStep.domainCard.verifyAgainButton")})]})]})},ei=({ownershipVerification:e})=>(0,r.FD)(c.fv,{elementDescriptor:I.$z.configureSSOVerifyDomainCardTxtRecord,sx:e=>({gap:e.space.$3,paddingInline:e.space.$4,paddingBottom:e.space.$4}),children:[(0,r.Y)(c.EY,{as:"p",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.organizationDomainsStep.domainCard.txtRecord.instructions"),sx:e=>({fontSize:e.fontSizes.$sm})}),(0,r.Y)(c.az,{sx:e=>({borderTopWidth:e.borderWidths.$normal,borderTopStyle:e.borderStyles.$solid,borderTopColor:e.colors.$borderAlpha100,marginInline:`calc(${e.space.$4} * -1)`})}),(0,r.FD)(c.so,{wrap:"wrap",sx:e=>({gap:e.space.$6}),children:[(0,r.Y)(et,{label:(0,C.G)("configureSSO.organizationDomainsStep.domainCard.txtRecord.typeLabel"),value:"TXT"}),(0,r.Y)(et,{label:(0,C.G)("configureSSO.organizationDomainsStep.domainCard.txtRecord.hostLabel"),value:e?.txtRecordName??"@"})]}),(0,r.FD)(c.so,{align:"center",sx:e=>({gap:e.space.$2,minWidth:0}),children:[(0,r.Y)(c.EY,{as:"span",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.organizationDomainsStep.domainCard.txtRecord.valueLabel"),sx:e=>({fontSize:e.fontSizes.$sm,flexShrink:0})}),(0,r.Y)(R.r,{elementDescriptor:I.$z.configureSSOVerifyDomainCardTxtRecordValue,value:e?.txtRecordValue??"—",copyIcon:K.A,copiedIcon:w.A,sx:{flex:1,minWidth:0}})]})]}),et=({label:e,value:i})=>(0,r.FD)(c.so,{align:"center",sx:e=>({gap:e.space.$2,minWidth:0}),children:[(0,r.Y)(c.EY,{as:"span",colorScheme:"secondary",localizationKey:e,sx:e=>({fontSize:e.fontSizes.$sm,flexShrink:0})}),(0,r.Y)(c.Ex,{colorScheme:"primary",sx:e=>({fontFamily:e.fonts.$buttons,display:"flex",alignItems:"center",justifyContent:"center",paddingBlock:e.space.$1,paddingInline:e.space.$1x5}),children:(0,r.Y)(c.az,{as:"span",sx:{display:"flex",alignItems:"center",justifyContent:"center",lineHeight:1,textBoxTrim:"trim-both",textBoxEdge:"cap alphabetic"},children:i})})]});var er=t(129);let eo=e=>e.isOpen?(0,r.Y)(d.Modal,{handleClose:e.onClose,canCloseModal:!1,portalRoot:e.contentRef,containerSx:e=>({alignItems:"center",position:"absolute",inset:0,width:"auto",height:"auto",backgroundColor:"inherit",backdropFilter:`blur(${e.sizes.$2})`}),children:(0,r.Y)(en,{...e})}):null,en=(0,a.dm)(e=>{let{onClose:i,onConfirm:t,isSubmitting:o,nextProviderLabel:n,currentProviderLabel:a}=e,{t:l}=(0,s._)(),d=l(n),p=l(a);return(0,r.Y)(H.Z.Root,{elementDescriptor:I.$z.configureSSOChangeProviderDialog,sx:e=>({borderRadius:e.radii.$md}),children:(0,r.Y)(H.Z.Content,{sx:e=>({textAlign:"start",padding:e.sizes.$5}),children:(0,r.FD)(c.fv,{sx:e=>({gap:e.space.$4}),children:[(0,r.FD)(c.fv,{sx:e=>({gap:e.space.$2}),children:[(0,r.Y)(c.DZ,{textVariant:"h2",localizationKey:(0,C.G)("configureSSO.changeProviderDialog.title",{provider:d}),sx:e=>({fontSize:e.fontSizes.$md})}),(0,r.Y)(c.EY,{as:"p",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.changeProviderDialog.subtitle",{provider:d,currentProvider:p})})]}),(0,r.FD)(c.so,{justify:"end",sx:e=>({gap:e.space.$3}),children:[(0,r.Y)(c.$n,{elementDescriptor:I.$z.configureSSOChangeProviderDialogCancelButton,variant:"ghost",isDisabled:o,onClick:i,localizationKey:(0,C.G)("configureSSO.changeProviderDialog.cancelButton")}),(0,r.Y)(c.$n,{elementDescriptor:I.$z.configureSSOChangeProviderDialogConfirmButton,variant:"solid",isLoading:o,onClick:t,localizationKey:(0,C.G)("configureSSO.changeProviderDialog.confirmButton")})]})]})})})}),ea=new Set(["okta"]),el=[{id:"saml",label:(0,C.G)("configureSSO.selectProviderStep.saml.groupLabel"),options:[{id:"saml_okta",label:(0,C.G)("configureSSO.selectProviderStep.saml.okta"),iconId:"okta"},{id:"saml_microsoft",label:(0,C.G)("configureSSO.selectProviderStep.saml.microsoft"),iconId:"microsoft"},{id:"saml_google",label:(0,C.G)("configureSSO.selectProviderStep.saml.google"),iconId:"google"},{id:"saml_custom",label:(0,C.G)("configureSSO.selectProviderStep.saml.customSaml"),iconId:"saml"}]}],es=e=>el.flatMap(e=>e.options).find(i=>i.id===e)?.label,ec=()=>{let{organizationEnterpriseConnection:e,enterpriseConnectionMutations:{createConnection:i,changeProvider:t},contentRef:o}=(0,l.t)(),{goNext:d,goPrev:u,isFirstStep:S}=m(),{t:g}=(0,s._)(),[f,h]=n().useState(e.provider??null),Y=(0,a.f0)(),[y,b]=n().useState(!1),[O,D]=n().useState(!1),[v,$]=n().useState(null),z=e.hasConnection&&null!==f&&f!==e.provider,F=async()=>{if(f){if(e.hasConnection&&f===e.provider)return void d();if(z){$(e.provider??null),D(!0);return}Y.setError(void 0),b(!0);try{await i(f),d()}catch(e){(0,_.H4)(e,[],Y.setError),b(!1)}}},M=async()=>{if(f){Y.setError(void 0),b(!0);try{await t(f),d()}catch(e){(0,_.H4)(e,[],Y.setError),D(!1),$(null),b(!1)}}},R=v?es(v):void 0,k=f?es(f):void 0;return(0,r.Y)(x.n.Part,{part:"selectProvider",children:(0,r.FD)(B.p,{elementDescriptor:I.$z.configureSSOStep,elementId:I.$z.configureSSOStep.setId("select-provider"),children:[(0,r.Y)(B.p.Header,{title:(0,C.G)("configureSSO.selectProviderStep.title"),description:(0,C.G)("configureSSO.selectProviderStep.subtitle")}),(0,r.Y)(B.p.Body,{children:(0,r.FD)(B.p.Section,{sx:e=>({gap:e.space.$5}),children:[el.map(e=>(0,r.FD)(c.fv,{elementDescriptor:I.$z.configureSSOProviderGroup,elementId:I.$z.configureSSOProviderGroup.setId(e.id),gap:3,children:[(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOProviderGroupLabel,elementId:I.$z.configureSSOProviderGroupLabel.setId(e.id),as:"label",variant:"subtitle",localizationKey:e.label}),(0,r.Y)(c.xA,{role:"radiogroup","aria-label":g(e.label),elementDescriptor:I.$z.configureSSOProviderGrid,gap:3,sx:{gridTemplateColumns:"repeat(2, 1fr)",[p.g.sm]:{gridTemplateColumns:"1fr"}},children:e.options.map(e=>(0,r.Y)(ed,{name:"configure-sso-provider",value:e.id,iconId:e.iconId,label:e.label,checked:f===e.id,onChange:()=>{h(e.id)}},e.id))})]},e.id)),Y.error&&(0,r.Y)(G.F,{variant:"danger",title:Y.error,sx:e=>({margin:e.space.$3})})]})}),(0,r.FD)(B.p.Footer,{children:[(0,r.Y)(B.p.Footer.Previous,{onClick:()=>u(),isDisabled:S||y}),(0,r.Y)(B.p.Footer.Continue,{onClick:F,isLoading:y&&!O,isDisabled:!f||y})]}),R&&k?(0,r.Y)(eo,{isOpen:O,onClose:()=>{D(!1),$(null)},onConfirm:()=>{M()},isSubmitting:y,nextProviderLabel:k,currentProviderLabel:R,contentRef:o}):null]})})},ed=({name:e,value:i,iconId:t,label:o,checked:n,onChange:a})=>{let{t:l}=(0,s._)(),d=l(o);return(0,r.FD)(c.az,{as:"label",elementDescriptor:I.$z.configureSSOProviderCard,elementId:I.$z.configureSSOProviderCard.setId(i),isActive:n,sx:e=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:e.space.$2,height:e.sizes.$32,padding:e.space.$1x5,cursor:"pointer",position:"relative",...U.s.borderVariants(e).normal,"&:has(input:focus-visible)":{...U.s.focusRingStyles(e),borderColor:e.colors.$borderAlpha300},"&:hover":{backgroundColor:e.colors.$neutralAlpha50},"&:has(input:checked)":{backgroundColor:e.colors.$neutralAlpha50}}),children:[(0,r.Y)(c.AT,{elementDescriptor:I.$z.configureSSOProviderCardRadio,elementId:I.$z.configureSSOProviderCardRadio.setId(i),name:e,value:i,checked:n,onChange:a,focusRing:!1,sx:U.s.visuallyHidden()}),(0,r.Y)(c.L9,{elementDescriptor:I.$z.configureSSOProviderCardIcon,elementId:I.$z.configureSSOProviderCardIcon.setId(i),"aria-hidden":!0,sx:e=>{let i=ea.has(t),r={width:e.sizes.$8,height:e.sizes.$8};return i?{...r,backgroundColor:e.colors.$colorForeground,maskImage:`url(${(0,er.at)(t)})`,maskSize:"contain",maskPosition:"center",maskRepeat:"no-repeat"}:{...r,backgroundImage:`url(${(0,er.at)(t)})`,backgroundSize:"contain",backgroundPosition:"center",backgroundRepeat:"no-repeat"}}}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOProviderCardLabel,elementId:I.$z.configureSSOProviderCardLabel.setId(i),as:"span",variant:"body",sx:e=>({color:e.colors.$colorForeground}),children:d})]})},ep=()=>{let{currentIndex:e,totalSteps:i}=m();return(0,r.Y)(B.p.Counter,{total:i,current:e+1})};var eu=t(1756),eS=t(9582);let eg=()=>{let{enterpriseConnection:e}=(0,l.t)(),[i,t]=n().useState(!1);return!e?.active||i?null:(0,r.Y)(G.F,{variant:"warning",title:(0,C.G)("configureSSO.configureStep.activeConnectionWarning.title"),dismissLabel:(0,C.G)("configureSSO.configureStep.activeConnectionWarning.dismiss"),onDismiss:()=>t(!0)})},em=e=>{switch(e.mode){case"metadataUrl":return(0,r.Y)(eh,{form:e.form,labels:e.labels});case"metadataFile":return(0,r.Y)(eY,{form:e.form,labels:e.labels});case"manual":return(0,r.Y)(ey,{form:e.form,labels:e.labels})}},ef=e=>(0,r.FD)(r.FK,{children:[(0,r.Y)(em,{...e}),(0,r.Y)(eg,{})]}),eh=({form:e,labels:i})=>(0,r.FD)(r.FK,{children:[(0,r.Y)(c.EY,{as:"p",colorScheme:"secondary",localizationKey:i.description}),(0,r.Y)(E.l.ControlRow,{elementId:e.field.id,children:(0,r.Y)(E.l.PlainInput,{...e.field.props})})]}),eY=({form:e,labels:i})=>(0,r.FD)(r.FK,{children:[(0,r.Y)(c.EY,{as:"p",colorScheme:"secondary",localizationKey:i.description}),(0,r.Y)(eD,{field:e.field,file:e.file,onFileChange:e.onFileChange,existingFilePresent:!!e.existingFilePresent,labels:i,accept:".xml"})]}),ey=({form:e,labels:i})=>(0,r.FD)(r.FK,{children:[(0,r.Y)(c.EY,{as:"p",colorScheme:"secondary",localizationKey:i.description}),(0,r.Y)(E.l.ControlRow,{elementId:e.signOnUrlField.id,children:(0,r.Y)(E.l.PlainInput,{...e.signOnUrlField.props})}),(0,r.Y)(E.l.ControlRow,{elementId:e.issuerField.id,children:(0,r.Y)(E.l.PlainInput,{...e.issuerField.props})}),(0,r.Y)(eD,{field:e.certificateField,file:e.certFile,onFileChange:e.onCertFileChange,existingFilePresent:!!e.existingCertPresent,labels:i,accept:".pem,.key,.crt,.cer,.cert"})]}),eb=async({mode:e,metadataUrl:i,metadataFile:t,manual:r})=>{if("metadataUrl"===e){if(!i)throw Error('metadataUrl values missing for mode "metadataUrl"');return{idpMetadataUrl:i.value.trim()}}if("metadataFile"===e){if(!t?.file)throw Error('metadataFile is missing for mode "metadataFile"');return{idpMetadata:await t.file.text()}}if(!r)throw Error('manual values missing for mode "manual"');let o={idpSsoUrl:r.signOnUrl.trim(),idpEntityId:r.issuer.trim()};return null!==r.certFile&&(o.idpCertificate=await r.certFile.text()),o},eO=(e,i,t,r=[])=>{if((0,_.H4)(e,[t,...r],i.setError),(0,eu.$R)(e)){let r=e.errors.find(e=>e.code?.startsWith("saml_")&&!e.meta?.paramName);r&&(t.setError(r),i.setError(void 0))}},eD=({field:e,file:i,onFileChange:t,existingFilePresent:o,labels:a,accept:l})=>{let{t:d}=(0,s._)(),p=n().useRef(null);return(0,r.Y)(c.az,{children:(0,r.FD)(k.D.Root,{...e.props,children:[(0,r.FD)(c.fv,{gap:2,children:[(0,r.Y)(k.D.LabelRow,{children:(0,r.Y)(k.D.Label,{})}),(0,r.Y)("input",{ref:p,type:"file",accept:l,multiple:!1,style:{display:"none"},onChange:i=>{t(i.target.files?.[0]??null),e.clearFeedback()}}),null===i?(0,r.FD)(c.so,{align:"center",gap:2,sx:{alignSelf:"flex-start",flexWrap:"wrap"},children:[o&&(0,r.Y)(c.Ex,{elementDescriptor:I.$z.configureSSOCertificateFileBadge,localizationKey:a.fileUploaded}),(0,r.FD)(c.$n,{elementDescriptor:I.$z.configureSSOCertificateUploadButton,size:"xs",variant:"outline",onClick:()=>p.current?.click(),children:[(0,r.Y)(c.In,{icon:eS.A,size:"sm",colorScheme:"neutral",sx:e=>({marginInlineEnd:e.space.$1})}),(0,r.Y)(c.EY,{as:"span",localizationKey:o?a.replaceFile:a.uploadFile})]})]}):(0,r.FD)(c.so,{align:"center",gap:2,sx:e=>({paddingTop:e.space.$1,paddingBottom:e.space.$1}),children:[(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOCertificateFileName,as:"span",colorScheme:"secondary",variant:"buttonSmall",children:i.name}),(0,r.Y)(c.$n,{elementDescriptor:I.$z.configureSSOCertificateRemoveButton,variant:"ghost",colorScheme:"neutral","aria-label":d(a.removeFile),onClick:()=>{t(null),e.clearFeedback(),p.current&&(p.current.value="")},sx:e=>({padding:e.space.$1}),children:(0,r.Y)(c.In,{icon:T.A,size:"xs"})})]})]}),(0,r.Y)(k.D.Feedback,{})]})})};var ev=t(2386);let e$=({modes:e,value:i,onChange:t,labels:o})=>{let{t:n}=(0,s._)();return(0,r.Y)(ev.I.Root,{"aria-label":n(o.ariaLabel),value:i,onChange:e=>t(e),fullWidth:!0,size:"lg",children:e.map(e=>{let i=o[e];return i?(0,r.Y)(ev.I.Button,{value:e,text:i},e):null})})},ez=[{id:"create-app"},{id:"attribute-mapping"},{id:"assign-users"},{id:"identity-provider-metadata"}],eF=()=>{let{goNext:e,goPrev:i,isFirstStep:t,isLastStep:o}=m(),{enterpriseConnection:n}=(0,l.t)(),a=n?.samlConnection?.acsUrl??"",s=n?.samlConnection?.spEntityId??"",d=(0,L.tJ)("acsUrl",a,{type:"text",label:(0,C.G)("configureSSO.configureStep.samlCustom.createAppStep.serviceProviderFields.acsUrl.label"),isRequired:!1}),p=(0,L.tJ)("spEntityId",s,{type:"text",label:(0,C.G)("configureSSO.configureStep.samlCustom.createAppStep.serviceProviderFields.spEntityId.label"),isRequired:!1});return(0,r.FD)(r.FK,{children:[(0,r.Y)(B.p.Header,{title:(0,C.G)("configureSSO.configureStep.samlCustom.mainHeaderTitle"),description:(0,C.G)("configureSSO.configureStep.samlCustom.createAppStep.headerSubtitle"),children:(0,r.Y)(ep,{})}),(0,r.Y)(B.p.Body,{children:(0,r.FD)(B.p.Section,{sx:e=>({gap:e.space.$5}),children:[(0,r.Y)(c.fv,{sx:e=>({gap:e.space.$1x5}),children:(0,r.Y)(c.EY,{as:"p",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlCustom.createAppStep.createAppInstructions.paragraph")})}),(0,r.Y)(E.l.ControlRow,{elementId:d.id,children:(0,r.Y)(E.l.CommonInputWrapper,{...d.props,children:(0,r.Y)(R.r,{value:a,readOnly:!0,copyIcon:K.A,copiedIcon:w.A})})}),(0,r.Y)(E.l.ControlRow,{elementId:p.id,children:(0,r.Y)(E.l.CommonInputWrapper,{...p.props,children:(0,r.Y)(R.r,{value:s,readOnly:!0,copyIcon:K.A,copiedIcon:w.A})})})]})}),(0,r.FD)(B.p.Footer,{children:[(0,r.Y)(B.p.Footer.Reset,{}),(0,r.Y)(B.p.Footer.Previous,{onClick:()=>i(),isDisabled:t}),(0,r.Y)(B.p.Footer.Continue,{onClick:()=>e(),isDisabled:o})]})]})},eC=()=>{let{goNext:e,goPrev:i,isFirstStep:t,isLastStep:o}=m();return(0,r.FD)(r.FK,{children:[(0,r.Y)(B.p.Header,{title:(0,C.G)("configureSSO.configureStep.samlCustom.mainHeaderTitle"),description:(0,C.G)("configureSSO.configureStep.samlCustom.attributeMappingStep.headerSubtitle"),children:(0,r.Y)(ep,{})}),(0,r.Y)(B.p.Body,{children:(0,r.FD)(B.p.Section,{sx:e=>({gap:e.space.$3}),children:[(0,r.Y)(c.EY,{as:"p",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlCustom.attributeMappingStep.paragraph")}),(0,r.Y)(eI,{})]})}),(0,r.FD)(B.p.Footer,{children:[(0,r.Y)(B.p.Footer.Reset,{}),(0,r.Y)(B.p.Footer.Previous,{onClick:()=>i(),isDisabled:t}),(0,r.Y)(B.p.Footer.Continue,{onClick:()=>e(),isDisabled:o})]})]})},ex=[{id:"email",isRequired:!0},{id:"firstName",isRequired:!1},{id:"lastName",isRequired:!1}],eI=()=>(0,r.FD)(c.XI,{elementDescriptor:I.$z.configureSSOAttributeMappingTable,sx:e=>({"tr > th:first-of-type":{paddingInlineStart:e.space.$4}}),children:[(0,r.Y)(c.d8,{children:(0,r.FD)(c.Tr,{children:[(0,r.Y)(c.Th,{children:(0,r.Y)(c.EY,{sx:e=>({fontSize:e.fontSizes.$xs}),localizationKey:(0,C.G)("configureSSO.configureStep.samlCustom.attributeMappingStep.attributeMappingTable.columns.attributeName")})}),(0,r.Y)(c.Th,{children:(0,r.Y)(c.EY,{sx:e=>({fontSize:e.fontSizes.$xs}),localizationKey:(0,C.G)("configureSSO.configureStep.samlCustom.attributeMappingStep.attributeMappingTable.columns.userAttribute")})})]})}),(0,r.Y)(c.NN,{children:ex.map(e=>(0,r.FD)(c.Tr,{children:[(0,r.Y)(c.Td,{children:(0,r.FD)(c.so,{as:"span",align:"center",sx:e=>({gap:e.space.$2}),children:[(0,r.Y)(c.EY,{as:"span",colorScheme:"secondary",sx:{fontFamily:"monospace"},localizationKey:(0,C.G)(`configureSSO.configureStep.samlCustom.attributeMappingStep.attributeMappingTable.rows.${e.id}.userAttribute`)}),(0,r.Y)(c.Ex,{elementDescriptor:I.$z.configureSSOAttributeMappingBadge,elementId:I.$z.configureSSOAttributeMappingBadge.setId(e.isRequired?"required":"optional"),colorScheme:e.isRequired?"warning":"primary",localizationKey:(0,C.G)(e.isRequired?"configureSSO.configureStep.attributeMappingTable.badges.required":"configureSSO.configureStep.attributeMappingTable.badges.optional")})]})}),(0,r.Y)(c.Td,{children:(0,r.Y)(c.EY,{as:"span",localizationKey:(0,C.G)(`configureSSO.configureStep.samlCustom.attributeMappingStep.attributeMappingTable.rows.${e.id}.attributeName`)})})]},e.id))})]}),eG=()=>{let{goNext:e,goPrev:i,isFirstStep:t,isLastStep:o}=m();return(0,r.FD)(r.FK,{children:[(0,r.Y)(B.p.Header,{title:(0,C.G)("configureSSO.configureStep.samlCustom.mainHeaderTitle"),description:(0,C.G)("configureSSO.configureStep.samlCustom.assignUsersStep.headerSubtitle"),children:(0,r.Y)(ep,{})}),(0,r.Y)(B.p.Body,{children:(0,r.Y)(B.p.Section,{sx:e=>({gap:e.space.$3}),children:(0,r.Y)(c.EY,{as:"p",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlCustom.assignUsersStep.paragraph")})})}),(0,r.FD)(B.p.Footer,{children:[(0,r.Y)(B.p.Footer.Reset,{}),(0,r.Y)(B.p.Footer.Previous,{onClick:()=>i(),isDisabled:t}),(0,r.Y)(B.p.Footer.Continue,{onClick:()=>e(),isDisabled:o})]})]})},eM=["metadataUrl","manual"],eR=()=>{let e=(0,a.f0)(),{goNext:i,goPrev:t,isFirstStep:o}=m(),{enterpriseConnection:s,enterpriseConnectionMutations:{updateConnection:c}}=(0,l.t)(),d=s?.samlConnection,p=!!(d?.idpSsoUrl||d?.idpEntityId||d?.idpCertificate||d?.idpMetadataUrl),u=!!d?.idpCertificate,[S,g]=n().useState(p?"manual":"metadataUrl"),[f,h]=n().useState(null),[Y,y]=n().useState(!1),b=(0,L.tJ)("idpMetadataUrl",d?.idpMetadataUrl??"",{type:"text",label:(0,C.G)("configureSSO.configureStep.samlCustom.identityProviderMetadataStep.metadataUrl.label"),placeholder:(0,C.G)("configureSSO.configureStep.samlCustom.identityProviderMetadataStep.metadataUrl.placeholder"),isRequired:!0}),O=(0,L.tJ)("idpSsoUrl",d?.idpSsoUrl??"",{type:"text",label:(0,C.G)("configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.signOnUrl.label"),placeholder:(0,C.G)("configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.signOnUrl.placeholder"),isRequired:!0}),D=(0,L.tJ)("idpEntityId",d?.idpEntityId??"",{type:"text",label:(0,C.G)("configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.issuer.label"),placeholder:(0,C.G)("configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.issuer.placeholder"),isRequired:!0}),v=(0,L.tJ)("idpCertificate","",{type:"text",label:(0,C.G)("configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.signingCertificate.label"),isRequired:!0}),$=b.value.trim(),z=O.value.trim(),F=D.value.trim(),x=null!==f||u,I=("metadataUrl"===S?$.length>0:z.length>0&&F.length>0&&x)&&!Y,G="metadataUrl"===S?{mode:"metadataUrl",form:{field:b},labels:{description:(0,C.G)("configureSSO.configureStep.samlCustom.identityProviderMetadataStep.metadataUrl.description")}}:{mode:"manual",form:{signOnUrlField:O,issuerField:D,certificateField:v,certFile:f,onCertFileChange:h,existingCertPresent:u},labels:{description:(0,C.G)("configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.description"),uploadFile:(0,C.G)("configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.signingCertificate.uploadFile"),replaceFile:(0,C.G)("configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.signingCertificate.replaceFile"),removeFile:(0,C.G)("configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.signingCertificate.removeFile"),fileUploaded:(0,C.G)("configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.signingCertificate.fileUploaded")}},M=async()=>{if(s&&I){e.setError(void 0),y(!0);try{let e=await eb({mode:S,metadataUrl:{value:b.value},manual:{signOnUrl:O.value,issuer:D.value,certFile:f}});await c(s.id,{saml:e}),i()}catch(i){"metadataUrl"===S?eO(i,e,b):eO(i,e,O,[D,v]),y(!1)}}};return(0,r.FD)(r.FK,{children:[(0,r.Y)(B.p.Header,{title:(0,C.G)("configureSSO.configureStep.samlCustom.mainHeaderTitle"),description:(0,C.G)("configureSSO.configureStep.samlCustom.identityProviderMetadataStep.headerSubtitle"),children:(0,r.Y)(ep,{})}),(0,r.Y)(B.p.Body,{children:(0,r.FD)(B.p.Section,{fill:!0,gap:5,children:[(0,r.Y)(e$,{modes:eM,value:S,onChange:i=>{e.setError(void 0),g(i)},labels:{ariaLabel:(0,C.G)("configureSSO.configureStep.samlCustom.identityProviderMetadataStep.modes.ariaLabel"),metadataUrl:(0,C.G)("configureSSO.configureStep.samlCustom.identityProviderMetadataStep.modes.metadataUrl"),manual:(0,C.G)("configureSSO.configureStep.samlCustom.identityProviderMetadataStep.modes.manual")}}),(0,r.Y)(ef,{...G})]})}),(0,r.FD)(B.p.Footer,{children:[(0,r.Y)(B.p.Footer.Reset,{}),(0,r.Y)(B.p.Footer.Previous,{onClick:()=>t(),isDisabled:o||Y}),(0,r.Y)(B.p.Footer.Continue,{onClick:M,isLoading:Y,isDisabled:!I})]})]})},ek=[{id:"create-app"},{id:"attribute-mapping"},{id:"assign-users"},{id:"identity-provider-metadata"}],eE=()=>{let{goNext:e,goPrev:i,isFirstStep:t,isLastStep:o}=m(),{enterpriseConnection:n}=(0,l.t)(),a=n?.samlConnection?.acsUrl??"",s=n?.samlConnection?.spEntityId??"",d=(0,L.tJ)("acsUrl",a,{type:"text",label:(0,C.G)("configureSSO.configureStep.samlOkta.createAppStep.serviceProviderInstructions.serviceProviderFields.acsUrl.label"),isRequired:!1}),p=(0,L.tJ)("spEntityId",s,{type:"text",label:(0,C.G)("configureSSO.configureStep.samlOkta.createAppStep.serviceProviderInstructions.serviceProviderFields.spEntityId.label"),isRequired:!1});return(0,r.FD)(r.FK,{children:[(0,r.Y)(B.p.Header,{title:(0,C.G)("configureSSO.configureStep.samlOkta.mainHeaderTitle"),description:(0,C.G)("configureSSO.configureStep.samlOkta.createAppStep.headerSubtitle"),children:(0,r.Y)(ep,{})}),(0,r.Y)(B.p.Body,{children:(0,r.FD)(B.p.Section,{sx:e=>({gap:e.space.$5}),children:[(0,r.FD)(c.fv,{sx:e=>({gap:e.space.$1x5}),children:[(0,r.Y)(c.DZ,{elementDescriptor:I.$z.configureSSOInstructionsHeading,as:"h3",textVariant:"subtitle",localizationKey:(0,C.G)("configureSSO.configureStep.samlOkta.createAppStep.createAppInstructions.title")}),(0,r.FD)(c.fv,{elementDescriptor:I.$z.configureSSOInstructionsList,as:"ul",sx:e=>({gap:e.space.$1x5,margin:0,paddingInlineStart:e.space.$5,listStyleType:"disc"}),children:[(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlOkta.createAppStep.createAppInstructions.step1")}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlOkta.createAppStep.createAppInstructions.step2")}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlOkta.createAppStep.createAppInstructions.step3")}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlOkta.createAppStep.createAppInstructions.step4")})]})]}),(0,r.FD)(c.fv,{sx:e=>({gap:e.space.$1x5}),children:[(0,r.Y)(c.DZ,{elementDescriptor:I.$z.configureSSOInstructionsHeading,as:"h3",textVariant:"subtitle",localizationKey:(0,C.G)("configureSSO.configureStep.samlOkta.createAppStep.serviceProviderInstructions.title")}),(0,r.Y)(c.EY,{as:"p",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlOkta.createAppStep.serviceProviderInstructions.paragraph1")}),(0,r.Y)(c.EY,{as:"p",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlOkta.createAppStep.serviceProviderInstructions.paragraph2")})]}),(0,r.Y)(E.l.ControlRow,{elementId:d.id,children:(0,r.Y)(E.l.CommonInputWrapper,{...d.props,children:(0,r.Y)(R.r,{value:a,readOnly:!0,copyIcon:K.A,copiedIcon:w.A})})}),(0,r.Y)(E.l.ControlRow,{elementId:p.id,children:(0,r.Y)(E.l.CommonInputWrapper,{...p.props,children:(0,r.Y)(R.r,{value:s,readOnly:!0,copyIcon:K.A,copiedIcon:w.A})})}),(0,r.FD)(c.fv,{sx:e=>({gap:e.space.$1x5}),children:[(0,r.Y)(c.DZ,{elementDescriptor:I.$z.configureSSOInstructionsHeading,as:"h3",textVariant:"subtitle",localizationKey:(0,C.G)("configureSSO.configureStep.samlOkta.createAppStep.completeSamlIntegrationInstructions.title")}),(0,r.FD)(c.fv,{elementDescriptor:I.$z.configureSSOInstructionsList,as:"ul",sx:e=>({gap:e.space.$1x5,margin:0,paddingInlineStart:e.space.$5,listStyleType:"disc"}),children:[(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlOkta.createAppStep.completeSamlIntegrationInstructions.step1")}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlOkta.createAppStep.completeSamlIntegrationInstructions.step2")})]})]})]})}),(0,r.FD)(B.p.Footer,{children:[(0,r.Y)(B.p.Footer.Reset,{}),(0,r.Y)(B.p.Footer.Previous,{onClick:()=>i(),isDisabled:t}),(0,r.Y)(B.p.Footer.Continue,{onClick:()=>e(),isDisabled:o})]})]})},eP=[{id:"email",isRequired:!0},{id:"firstName",isRequired:!1},{id:"lastName",isRequired:!1}],eT=()=>(0,r.FD)(c.XI,{elementDescriptor:I.$z.configureSSOAttributeMappingTable,sx:e=>({"tr > th:first-of-type":{paddingInlineStart:e.space.$4}}),children:[(0,r.Y)(c.d8,{children:(0,r.FD)(c.Tr,{children:[(0,r.Y)(c.Th,{children:(0,r.Y)(c.EY,{sx:e=>({fontSize:e.fontSizes.$xs}),localizationKey:(0,C.G)("configureSSO.configureStep.samlOkta.attributeMappingStep.attributeMappingTable.columns.name")})}),(0,r.Y)(c.Th,{children:(0,r.Y)(c.EY,{sx:e=>({fontSize:e.fontSizes.$xs}),localizationKey:(0,C.G)("configureSSO.configureStep.samlOkta.attributeMappingStep.attributeMappingTable.columns.expression")})})]})}),(0,r.Y)(c.NN,{children:eP.map(e=>(0,r.FD)(c.Tr,{children:[(0,r.Y)(c.Td,{children:(0,r.FD)(c.so,{as:"span",align:"center",sx:e=>({gap:e.space.$2}),children:[(0,r.Y)(c.EY,{as:"span",sx:{fontFamily:"monospace"},localizationKey:(0,C.G)(`configureSSO.configureStep.samlOkta.attributeMappingStep.attributeMappingTable.rows.${e.id}.name`)}),(0,r.Y)(c.Ex,{elementDescriptor:I.$z.configureSSOAttributeMappingBadge,elementId:I.$z.configureSSOAttributeMappingBadge.setId(e.isRequired?"required":"optional"),colorScheme:e.isRequired?"warning":"primary",localizationKey:(0,C.G)(e.isRequired?"configureSSO.configureStep.attributeMappingTable.badges.required":"configureSSO.configureStep.attributeMappingTable.badges.optional")})]})}),(0,r.Y)(c.Td,{children:(0,r.Y)(c.EY,{as:"span",sx:{fontFamily:"monospace"},localizationKey:(0,C.G)(`configureSSO.configureStep.samlOkta.attributeMappingStep.attributeMappingTable.rows.${e.id}.expression`)})})]},e.id))})]}),eA=()=>{let{goNext:e,goPrev:i,isFirstStep:t,isLastStep:o}=m();return(0,r.FD)(r.FK,{children:[(0,r.Y)(B.p.Header,{title:(0,C.G)("configureSSO.configureStep.samlOkta.mainHeaderTitle"),description:(0,C.G)("configureSSO.configureStep.samlOkta.attributeMappingStep.headerSubtitle"),children:(0,r.Y)(ep,{})}),(0,r.Y)(B.p.Body,{children:(0,r.FD)(B.p.Section,{sx:e=>({gap:e.space.$3}),children:[(0,r.Y)(c.EY,{as:"p",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlOkta.attributeMappingStep.paragraph")}),(0,r.FD)(c.fv,{elementDescriptor:I.$z.configureSSOInstructionsList,as:"ol",sx:e=>({gap:e.space.$1x5,margin:0,paddingInlineStart:e.space.$5,listStyleType:"decimal"}),children:[(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlOkta.attributeMappingStep.step1")}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlOkta.attributeMappingStep.step2")})]}),(0,r.Y)(eT,{})]})}),(0,r.FD)(B.p.Footer,{children:[(0,r.Y)(B.p.Footer.Reset,{}),(0,r.Y)(B.p.Footer.Previous,{onClick:()=>i(),isDisabled:t}),(0,r.Y)(B.p.Footer.Continue,{onClick:()=>e(),isDisabled:o})]})]})},eK=()=>{let{goNext:e,goPrev:i,isFirstStep:t,isLastStep:o}=m();return(0,r.FD)(r.FK,{children:[(0,r.Y)(B.p.Header,{title:(0,C.G)("configureSSO.configureStep.samlOkta.mainHeaderTitle"),description:(0,C.G)("configureSSO.configureStep.samlOkta.assignUsersStep.headerSubtitle"),children:(0,r.Y)(ep,{})}),(0,r.Y)(B.p.Body,{children:(0,r.FD)(B.p.Section,{sx:e=>({gap:e.space.$3}),children:[(0,r.Y)(c.EY,{as:"p",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlOkta.assignUsersStep.assignUsersInstructions.paragraph")}),(0,r.FD)(c.fv,{elementDescriptor:I.$z.configureSSOInstructionsList,as:"ol",sx:e=>({gap:e.space.$1x5,margin:0,paddingInlineStart:e.space.$5,listStyleType:"decimal"}),children:[(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlOkta.assignUsersStep.assignUsersInstructions.step1")}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlOkta.assignUsersStep.assignUsersInstructions.step2")}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlOkta.assignUsersStep.assignUsersInstructions.step3")}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlOkta.assignUsersStep.assignUsersInstructions.step4")}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlOkta.assignUsersStep.assignUsersInstructions.step5")})]})]})}),(0,r.FD)(B.p.Footer,{children:[(0,r.Y)(B.p.Footer.Reset,{}),(0,r.Y)(B.p.Footer.Previous,{onClick:()=>i(),isDisabled:t}),(0,r.Y)(B.p.Footer.Continue,{onClick:()=>e(),isDisabled:o})]})]})},ew=["metadataUrl","manual"],eU=()=>{let e=(0,a.f0)(),{goNext:i,goPrev:t,isFirstStep:o}=m(),{enterpriseConnection:s,enterpriseConnectionMutations:{updateConnection:c}}=(0,l.t)(),d=s?.samlConnection,p=!!(d?.idpSsoUrl||d?.idpEntityId||d?.idpCertificate||d?.idpMetadataUrl),u=!!d?.idpCertificate,[S,g]=n().useState(p?"manual":"metadataUrl"),[f,h]=n().useState(null),[Y,y]=n().useState(!1),b=(0,L.tJ)("idpMetadataUrl",d?.idpMetadataUrl??"",{type:"text",label:(0,C.G)("configureSSO.configureStep.samlOkta.identityProviderMetadataStep.metadataUrl.label"),placeholder:(0,C.G)("configureSSO.configureStep.samlOkta.identityProviderMetadataStep.metadataUrl.placeholder"),isRequired:!0}),O=(0,L.tJ)("idpSsoUrl",d?.idpSsoUrl??"",{type:"text",label:(0,C.G)("configureSSO.configureStep.samlOkta.identityProviderMetadataStep.manual.signOnUrl.label"),placeholder:(0,C.G)("configureSSO.configureStep.samlOkta.identityProviderMetadataStep.manual.signOnUrl.placeholder"),isRequired:!0}),D=(0,L.tJ)("idpEntityId",d?.idpEntityId??"",{type:"text",label:(0,C.G)("configureSSO.configureStep.samlOkta.identityProviderMetadataStep.manual.issuer.label"),placeholder:(0,C.G)("configureSSO.configureStep.samlOkta.identityProviderMetadataStep.manual.issuer.placeholder"),isRequired:!0}),v=(0,L.tJ)("idpCertificate","",{type:"text",label:(0,C.G)("configureSSO.configureStep.samlOkta.identityProviderMetadataStep.manual.signingCertificate.label"),isRequired:!0}),$=b.value.trim(),z=O.value.trim(),F=D.value.trim(),x=null!==f||u,I=("metadataUrl"===S?$.length>0:z.length>0&&F.length>0&&x)&&!Y,G="metadataUrl"===S?{mode:"metadataUrl",form:{field:b},labels:{description:(0,C.G)("configureSSO.configureStep.samlOkta.identityProviderMetadataStep.metadataUrl.description")}}:{mode:"manual",form:{signOnUrlField:O,issuerField:D,certificateField:v,certFile:f,onCertFileChange:h,existingCertPresent:u},labels:{description:(0,C.G)("configureSSO.configureStep.samlOkta.identityProviderMetadataStep.manual.description"),uploadFile:(0,C.G)("configureSSO.configureStep.samlOkta.identityProviderMetadataStep.manual.signingCertificate.uploadFile"),replaceFile:(0,C.G)("configureSSO.configureStep.samlOkta.identityProviderMetadataStep.manual.signingCertificate.replaceFile"),removeFile:(0,C.G)("configureSSO.configureStep.samlOkta.identityProviderMetadataStep.manual.signingCertificate.removeFile"),fileUploaded:(0,C.G)("configureSSO.configureStep.samlOkta.identityProviderMetadataStep.manual.signingCertificate.fileUploaded")}},M=async()=>{if(s&&I){e.setError(void 0),y(!0);try{let e=await eb({mode:S,metadataUrl:{value:b.value},manual:{signOnUrl:O.value,issuer:D.value,certFile:f}});await c(s.id,{saml:e}),i()}catch(i){"metadataUrl"===S?eO(i,e,b):eO(i,e,O,[D,v]),y(!1)}}};return(0,r.FD)(r.FK,{children:[(0,r.Y)(B.p.Header,{title:(0,C.G)("configureSSO.configureStep.samlOkta.mainHeaderTitle"),description:(0,C.G)("configureSSO.configureStep.samlOkta.identityProviderMetadataStep.headerSubtitle"),children:(0,r.Y)(ep,{})}),(0,r.Y)(B.p.Body,{children:(0,r.FD)(B.p.Section,{fill:!0,gap:5,children:[(0,r.Y)(e$,{modes:ew,value:S,onChange:i=>{e.setError(void 0),g(i)},labels:{ariaLabel:(0,C.G)("configureSSO.configureStep.samlOkta.identityProviderMetadataStep.modes.ariaLabel"),metadataUrl:(0,C.G)("configureSSO.configureStep.samlOkta.identityProviderMetadataStep.modes.metadataUrl"),manual:(0,C.G)("configureSSO.configureStep.samlOkta.identityProviderMetadataStep.modes.manual")}}),(0,r.Y)(ef,{...G})]})}),(0,r.FD)(B.p.Footer,{children:[(0,r.Y)(B.p.Footer.Reset,{}),(0,r.Y)(B.p.Footer.Previous,{onClick:()=>t(),isDisabled:o||Y}),(0,r.Y)(B.p.Footer.Continue,{onClick:M,isLoading:Y,isDisabled:!I})]})]})},eL=[{id:"create-app"},{id:"identity-provider-metadata"},{id:"service-provider"},{id:"attribute-mapping"},{id:"configure-user-access"}],e_=()=>{let{goNext:e,goPrev:i,isFirstStep:t,isLastStep:o}=m();return(0,r.FD)(r.FK,{children:[(0,r.Y)(B.p.Header,{title:(0,C.G)("configureSSO.configureStep.samlGoogle.mainHeaderTitle"),description:(0,C.G)("configureSSO.configureStep.samlGoogle.createAppStep.headerSubtitle"),children:(0,r.Y)(ep,{})}),(0,r.Y)(B.p.Body,{children:(0,r.Y)(B.p.Section,{sx:e=>({gap:e.space.$5}),children:(0,r.FD)(c.fv,{sx:e=>({gap:e.space.$1x5}),children:[(0,r.Y)(c.EY,{as:"p",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlGoogle.createAppStep.createAppInstructions.title")}),(0,r.FD)(c.fv,{elementDescriptor:I.$z.configureSSOInstructionsList,as:"ul",sx:e=>({gap:e.space.$1x5,margin:0,paddingInlineStart:e.space.$5,listStyleType:"disc"}),children:[(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlGoogle.createAppStep.createAppInstructions.step1")}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlGoogle.createAppStep.createAppInstructions.step2")}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlGoogle.createAppStep.createAppInstructions.step3")}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlGoogle.createAppStep.createAppInstructions.step4")})]})]})})}),(0,r.FD)(B.p.Footer,{children:[(0,r.Y)(B.p.Footer.Reset,{}),(0,r.Y)(B.p.Footer.Previous,{onClick:()=>i(),isDisabled:t}),(0,r.Y)(B.p.Footer.Continue,{onClick:()=>e(),isDisabled:o})]})]})},eB=["metadataFile","manual"],eH=()=>{let e=(0,a.f0)(),{goNext:i,goPrev:t,isFirstStep:o}=m(),{enterpriseConnection:s,enterpriseConnectionMutations:{updateConnection:c}}=(0,l.t)(),d=s?.samlConnection,p=!!(d?.idpSsoUrl||d?.idpEntityId||d?.idpCertificate),u=!!d?.idpCertificate,S=!!d?.idpMetadata,[g,f]=n().useState(p?"manual":"metadataFile"),[h,Y]=n().useState(null),[y,b]=n().useState(null),[O,D]=n().useState(!1),v=(0,L.tJ)("idpMetadata","",{type:"text",label:(0,C.G)("configureSSO.configureStep.samlGoogle.identityProviderMetadataStep.metadataFile.label"),isRequired:!0}),$=(0,L.tJ)("idpSsoUrl",d?.idpSsoUrl??"",{type:"text",label:(0,C.G)("configureSSO.configureStep.samlGoogle.identityProviderMetadataStep.manual.signOnUrl.label"),placeholder:(0,C.G)("configureSSO.configureStep.samlGoogle.identityProviderMetadataStep.manual.signOnUrl.placeholder"),isRequired:!0}),z=(0,L.tJ)("idpEntityId",d?.idpEntityId??"",{type:"text",label:(0,C.G)("configureSSO.configureStep.samlGoogle.identityProviderMetadataStep.manual.issuer.label"),placeholder:(0,C.G)("configureSSO.configureStep.samlGoogle.identityProviderMetadataStep.manual.issuer.placeholder"),isRequired:!0}),F=(0,L.tJ)("idpCertificate","",{type:"text",label:(0,C.G)("configureSSO.configureStep.samlGoogle.identityProviderMetadataStep.manual.signingCertificate.label"),isRequired:!0}),x=$.value.trim(),I=z.value.trim(),G=null!==y||u,M=null!==h||S,R=("metadataFile"===g?M:x.length>0&&I.length>0&&G)&&!O,k="metadataFile"===g?{mode:"metadataFile",form:{field:v,file:h,onFileChange:Y,existingFilePresent:S},labels:{description:(0,C.G)("configureSSO.configureStep.samlGoogle.identityProviderMetadataStep.metadataFile.description"),uploadFile:(0,C.G)("configureSSO.configureStep.samlGoogle.identityProviderMetadataStep.metadataFile.uploadFile"),replaceFile:(0,C.G)("configureSSO.configureStep.samlGoogle.identityProviderMetadataStep.metadataFile.replaceFile"),removeFile:(0,C.G)("configureSSO.configureStep.samlGoogle.identityProviderMetadataStep.metadataFile.removeFile"),fileUploaded:(0,C.G)("configureSSO.configureStep.samlGoogle.identityProviderMetadataStep.metadataFile.fileUploaded")}}:{mode:"manual",form:{signOnUrlField:$,issuerField:z,certificateField:F,certFile:y,onCertFileChange:b,existingCertPresent:u},labels:{description:(0,C.G)("configureSSO.configureStep.samlGoogle.identityProviderMetadataStep.manual.description"),uploadFile:(0,C.G)("configureSSO.configureStep.samlGoogle.identityProviderMetadataStep.manual.signingCertificate.uploadFile"),replaceFile:(0,C.G)("configureSSO.configureStep.samlGoogle.identityProviderMetadataStep.manual.signingCertificate.replaceFile"),removeFile:(0,C.G)("configureSSO.configureStep.samlGoogle.identityProviderMetadataStep.manual.signingCertificate.removeFile"),fileUploaded:(0,C.G)("configureSSO.configureStep.samlGoogle.identityProviderMetadataStep.manual.signingCertificate.fileUploaded")}},E=async()=>{if(s&&R){e.setError(void 0),D(!0);try{let e=await eb({mode:g,metadataFile:{file:h},manual:{signOnUrl:$.value,issuer:z.value,certFile:y}});await c(s.id,{saml:e}),i()}catch(i){"metadataFile"===g?eO(i,e,v):eO(i,e,$,[z,F]),D(!1)}}};return(0,r.FD)(r.FK,{children:[(0,r.Y)(B.p.Header,{title:(0,C.G)("configureSSO.configureStep.samlGoogle.mainHeaderTitle"),description:(0,C.G)("configureSSO.configureStep.samlGoogle.identityProviderMetadataStep.headerSubtitle"),children:(0,r.Y)(ep,{})}),(0,r.Y)(B.p.Body,{children:(0,r.FD)(B.p.Section,{fill:!0,gap:5,children:[(0,r.Y)(e$,{modes:eB,value:g,onChange:i=>{e.setError(void 0),f(i)},labels:{ariaLabel:(0,C.G)("configureSSO.configureStep.samlGoogle.identityProviderMetadataStep.modes.ariaLabel"),metadataFile:(0,C.G)("configureSSO.configureStep.samlGoogle.identityProviderMetadataStep.modes.metadataFile"),manual:(0,C.G)("configureSSO.configureStep.samlGoogle.identityProviderMetadataStep.modes.manual")}}),(0,r.Y)(ef,{...k})]})}),(0,r.FD)(B.p.Footer,{children:[(0,r.Y)(B.p.Footer.Reset,{}),(0,r.Y)(B.p.Footer.Previous,{onClick:()=>t(),isDisabled:o||O}),(0,r.Y)(B.p.Footer.Continue,{onClick:E,isLoading:O,isDisabled:!R})]})]})},eW=()=>{let{goNext:e,goPrev:i,isFirstStep:t,isLastStep:o}=m(),{enterpriseConnection:n}=(0,l.t)(),a=n?.samlConnection?.acsUrl??"",s=n?.samlConnection?.spEntityId??"",d=(0,L.tJ)("acsUrl",a,{type:"text",label:(0,C.G)("configureSSO.configureStep.samlGoogle.serviceProviderStep.serviceProviderFields.acsUrl.label"),isRequired:!1}),p=(0,L.tJ)("spEntityId",s,{type:"text",label:(0,C.G)("configureSSO.configureStep.samlGoogle.serviceProviderStep.serviceProviderFields.spEntityId.label"),isRequired:!1});return(0,r.FD)(r.FK,{children:[(0,r.Y)(B.p.Header,{title:(0,C.G)("configureSSO.configureStep.samlGoogle.mainHeaderTitle"),description:(0,C.G)("configureSSO.configureStep.samlGoogle.serviceProviderStep.headerSubtitle"),children:(0,r.Y)(ep,{})}),(0,r.Y)(B.p.Body,{children:(0,r.FD)(B.p.Section,{sx:e=>({gap:e.space.$5}),children:[(0,r.FD)(c.fv,{sx:e=>({gap:e.space.$1x5}),children:[(0,r.Y)(c.DZ,{elementDescriptor:I.$z.configureSSOInstructionsHeading,as:"h3",textVariant:"subtitle",localizationKey:(0,C.G)("configureSSO.configureStep.samlGoogle.serviceProviderStep.title")}),(0,r.Y)(c.EY,{as:"p",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlGoogle.serviceProviderStep.paragraph")})]}),(0,r.Y)(E.l.ControlRow,{elementId:d.id,children:(0,r.Y)(E.l.CommonInputWrapper,{...d.props,children:(0,r.Y)(R.r,{value:a,readOnly:!0,copyIcon:K.A,copiedIcon:w.A})})}),(0,r.Y)(E.l.ControlRow,{elementId:p.id,children:(0,r.Y)(E.l.CommonInputWrapper,{...p.props,children:(0,r.Y)(R.r,{value:s,readOnly:!0,copyIcon:K.A,copiedIcon:w.A})})}),(0,r.FD)(c.fv,{elementDescriptor:I.$z.configureSSOInstructionsList,as:"ul",sx:e=>({gap:e.space.$1x5,margin:0,paddingInlineStart:e.space.$5,listStyleType:"disc"}),children:[(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlGoogle.serviceProviderStep.nameIdInstructions.step1")}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlGoogle.serviceProviderStep.nameIdInstructions.step2")})]})]})}),(0,r.FD)(B.p.Footer,{children:[(0,r.Y)(B.p.Footer.Reset,{}),(0,r.Y)(B.p.Footer.Previous,{onClick:()=>i(),isDisabled:t}),(0,r.Y)(B.p.Footer.Continue,{onClick:()=>e(),isDisabled:o})]})]})},eq=[{id:"email",isRequired:!0},{id:"firstName",isRequired:!1},{id:"lastName",isRequired:!1}],eN=()=>(0,r.FD)(c.XI,{elementDescriptor:I.$z.configureSSOAttributeMappingTable,sx:e=>({"tr > th:first-of-type":{paddingInlineStart:e.space.$4}}),children:[(0,r.Y)(c.d8,{children:(0,r.FD)(c.Tr,{children:[(0,r.Y)(c.Th,{children:(0,r.Y)(c.EY,{sx:e=>({fontSize:e.fontSizes.$xs}),localizationKey:(0,C.G)("configureSSO.configureStep.samlGoogle.attributeMappingStep.attributeMappingTable.columns.googleAttribute")})}),(0,r.Y)(c.Th,{children:(0,r.Y)(c.EY,{sx:e=>({fontSize:e.fontSizes.$xs}),localizationKey:(0,C.G)("configureSSO.configureStep.samlGoogle.attributeMappingStep.attributeMappingTable.columns.appAttribute")})})]})}),(0,r.Y)(c.NN,{children:eq.map(e=>(0,r.FD)(c.Tr,{children:[(0,r.Y)(c.Td,{children:(0,r.FD)(c.so,{as:"span",align:"center",sx:e=>({gap:e.space.$2}),children:[(0,r.Y)(c.EY,{as:"span",colorScheme:"secondary",localizationKey:(0,C.G)(`configureSSO.configureStep.samlGoogle.attributeMappingStep.attributeMappingTable.rows.${e.id}.googleAttribute`)}),(0,r.Y)(c.Ex,{elementDescriptor:I.$z.configureSSOAttributeMappingBadge,elementId:I.$z.configureSSOAttributeMappingBadge.setId(e.isRequired?"required":"optional"),colorScheme:e.isRequired?"warning":"primary",localizationKey:(0,C.G)(e.isRequired?"configureSSO.configureStep.attributeMappingTable.badges.required":"configureSSO.configureStep.attributeMappingTable.badges.optional")})]})}),(0,r.Y)(c.Td,{children:(0,r.Y)(c.EY,{as:"span",sx:{fontFamily:"monospace"},localizationKey:(0,C.G)(`configureSSO.configureStep.samlGoogle.attributeMappingStep.attributeMappingTable.rows.${e.id}.appAttribute`)})})]},e.id))})]}),eV=()=>{let{goNext:e,goPrev:i,isFirstStep:t,isLastStep:o}=m();return(0,r.FD)(r.FK,{children:[(0,r.Y)(B.p.Header,{title:(0,C.G)("configureSSO.configureStep.samlGoogle.mainHeaderTitle"),description:(0,C.G)("configureSSO.configureStep.samlGoogle.attributeMappingStep.headerSubtitle"),children:(0,r.Y)(ep,{})}),(0,r.Y)(B.p.Body,{children:(0,r.FD)(B.p.Section,{sx:e=>({gap:e.space.$3}),children:[(0,r.Y)(c.EY,{as:"p",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlGoogle.attributeMappingStep.paragraph")}),(0,r.FD)(c.fv,{elementDescriptor:I.$z.configureSSOInstructionsList,as:"ol",sx:e=>({gap:e.space.$1x5,margin:0,paddingInlineStart:e.space.$5,listStyleType:"decimal"}),children:[(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlGoogle.attributeMappingStep.step1")}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlGoogle.attributeMappingStep.step2")})]}),(0,r.Y)(eN,{})]})}),(0,r.FD)(B.p.Footer,{children:[(0,r.Y)(B.p.Footer.Reset,{}),(0,r.Y)(B.p.Footer.Previous,{onClick:()=>i(),isDisabled:t}),(0,r.Y)(B.p.Footer.Continue,{onClick:()=>e(),isDisabled:o})]})]})},eJ=()=>{let{goNext:e,goPrev:i,isFirstStep:t,isLastStep:o}=m();return(0,r.FD)(r.FK,{children:[(0,r.Y)(B.p.Header,{title:(0,C.G)("configureSSO.configureStep.samlGoogle.mainHeaderTitle"),description:(0,C.G)("configureSSO.configureStep.samlGoogle.configureUserAccess.headerSubtitle"),children:(0,r.Y)(ep,{})}),(0,r.Y)(B.p.Body,{children:(0,r.FD)(B.p.Section,{sx:e=>({gap:e.space.$3}),children:[(0,r.Y)(c.EY,{as:"p",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlGoogle.configureUserAccess.assignUsersInstructions.paragraph1")}),(0,r.FD)(c.fv,{elementDescriptor:I.$z.configureSSOInstructionsList,as:"ul",sx:e=>({gap:e.space.$1x5,margin:0,paddingInlineStart:e.space.$5,listStyleType:"disc"}),children:[(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlGoogle.configureUserAccess.assignUsersInstructions.step1")}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlGoogle.configureUserAccess.assignUsersInstructions.step2")}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlGoogle.configureUserAccess.assignUsersInstructions.step3")})]}),(0,r.Y)(c.EY,{as:"p",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlGoogle.configureUserAccess.assignUsersInstructions.paragraph2")})]})}),(0,r.FD)(B.p.Footer,{children:[(0,r.Y)(B.p.Footer.Reset,{}),(0,r.Y)(B.p.Footer.Previous,{onClick:()=>i(),isDisabled:t}),(0,r.Y)(B.p.Footer.Continue,{onClick:()=>e(),isDisabled:o})]})]})};var eZ=t(8087),ej=t(5747);let eX=[{id:"create-app"},{id:"service-provider"},{id:"attribute-mapping"},{id:"identity-provider-metadata"}],eQ=()=>{let{goNext:e,goPrev:i,isFirstStep:t,isLastStep:o}=m();return(0,r.FD)(r.FK,{children:[(0,r.Y)(B.p.Header,{title:(0,C.G)("configureSSO.configureStep.samlMicrosoft.mainHeaderTitle"),description:(0,C.G)("configureSSO.configureStep.samlMicrosoft.createAppStep.headerSubtitle"),children:(0,r.Y)(ep,{})}),(0,r.Y)(B.p.Body,{children:(0,r.FD)(B.p.Section,{sx:e=>({gap:e.space.$5}),children:[(0,r.FD)(c.fv,{sx:e=>({gap:e.space.$1x5}),children:[(0,r.Y)(c.DZ,{elementDescriptor:I.$z.configureSSOInstructionsHeading,as:"h3",textVariant:"subtitle",localizationKey:(0,C.G)("configureSSO.configureStep.samlMicrosoft.createAppStep.createAppInstructions.title")}),(0,r.FD)(c.fv,{elementDescriptor:I.$z.configureSSOInstructionsList,as:"ul",sx:e=>({gap:e.space.$1x5,margin:0,paddingInlineStart:e.space.$5,listStyleType:"disc"}),children:[(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlMicrosoft.createAppStep.createAppInstructions.step1")}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlMicrosoft.createAppStep.createAppInstructions.step2")}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlMicrosoft.createAppStep.createAppInstructions.step3")}),(0,r.FD)(c.az,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",sx:e=>({fontSize:e.fontSizes.$md,lineHeight:e.lineHeights.$small,color:e.colors.$colorMutedForeground}),children:[(0,r.Y)(c.EY,{as:"span",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlMicrosoft.createAppStep.createAppInstructions.step4.label")}),(0,r.FD)(c.fv,{elementDescriptor:I.$z.configureSSOInstructionsList,as:"ul",sx:e=>({gap:e.space.$1x5,marginBlockStart:e.space.$1x5,marginBlockEnd:0,paddingInlineStart:e.space.$5,listStyleType:"circle"}),children:[(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlMicrosoft.createAppStep.createAppInstructions.step4.subSteps.appName")}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlMicrosoft.createAppStep.createAppInstructions.step4.subSteps.nonGallery")}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlMicrosoft.createAppStep.createAppInstructions.step4.subSteps.create")})]})]})]})]}),(0,r.FD)(c.fv,{sx:e=>({gap:e.space.$1x5}),children:[(0,r.Y)(c.DZ,{elementDescriptor:I.$z.configureSSOInstructionsHeading,as:"h3",textVariant:"subtitle",localizationKey:(0,C.G)("configureSSO.configureStep.samlMicrosoft.createAppStep.assignUsersInstructions.title")}),(0,r.FD)(c.fv,{elementDescriptor:I.$z.configureSSOInstructionsList,as:"ul",sx:e=>({gap:e.space.$1x5,margin:0,paddingInlineStart:e.space.$5,listStyleType:"disc"}),children:[(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlMicrosoft.createAppStep.assignUsersInstructions.step1")}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlMicrosoft.createAppStep.assignUsersInstructions.step2")}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlMicrosoft.createAppStep.assignUsersInstructions.step3")}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlMicrosoft.createAppStep.assignUsersInstructions.step4")}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlMicrosoft.createAppStep.assignUsersInstructions.step5")})]})]})]})}),(0,r.FD)(B.p.Footer,{children:[(0,r.Y)(B.p.Footer.Reset,{}),(0,r.Y)(B.p.Footer.Previous,{onClick:()=>i(),isDisabled:t}),(0,r.Y)(B.p.Footer.Continue,{onClick:()=>e(),isDisabled:o})]})]})},e0=()=>{let{goNext:e,goPrev:i,isFirstStep:t,isLastStep:o}=m(),{enterpriseConnection:n}=(0,l.t)(),a=n?.samlConnection?.acsUrl??"",s=n?.samlConnection?.spEntityId??"",d=(0,L.tJ)("spEntityId",s,{type:"text",label:(0,C.G)("configureSSO.configureStep.samlMicrosoft.serviceProviderStep.serviceProviderFields.spEntityId.label"),isRequired:!1}),p=(0,L.tJ)("acsUrl",a,{type:"text",label:(0,C.G)("configureSSO.configureStep.samlMicrosoft.serviceProviderStep.serviceProviderFields.acsUrl.label"),isRequired:!1});return(0,r.FD)(r.FK,{children:[(0,r.Y)(B.p.Header,{title:(0,C.G)("configureSSO.configureStep.samlMicrosoft.mainHeaderTitle"),description:(0,C.G)("configureSSO.configureStep.samlMicrosoft.serviceProviderStep.headerSubtitle"),children:(0,r.Y)(ep,{})}),(0,r.Y)(B.p.Body,{children:(0,r.Y)(B.p.Section,{sx:e=>({gap:e.space.$5}),children:(0,r.FD)(c.fv,{sx:e=>({gap:e.space.$1x5}),children:[(0,r.Y)(c.DZ,{elementDescriptor:I.$z.configureSSOInstructionsHeading,as:"h3",textVariant:"subtitle",localizationKey:(0,C.G)("configureSSO.configureStep.samlMicrosoft.serviceProviderStep.title")}),(0,r.FD)(c.fv,{elementDescriptor:I.$z.configureSSOInstructionsList,as:"ul",sx:e=>({gap:e.space.$1x5,margin:0,paddingInlineStart:e.space.$5,listStyleType:"disc"}),children:[(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlMicrosoft.serviceProviderStep.step1")}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlMicrosoft.serviceProviderStep.step2")}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlMicrosoft.serviceProviderStep.step3")}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlMicrosoft.serviceProviderStep.step4")}),(0,r.FD)(c.az,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",sx:e=>({fontSize:e.fontSizes.$md,lineHeight:e.lineHeights.$small,color:e.colors.$colorMutedForeground}),children:[(0,r.Y)(c.EY,{as:"span",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlMicrosoft.serviceProviderStep.step5")}),(0,r.FD)(c.fv,{sx:e=>({gap:e.space.$4,marginBlock:e.space.$3}),children:[(0,r.Y)(E.l.ControlRow,{elementId:d.id,children:(0,r.Y)(E.l.CommonInputWrapper,{...d.props,children:(0,r.Y)(R.r,{value:s,readOnly:!0,copyIcon:K.A,copiedIcon:w.A})})}),(0,r.Y)(E.l.ControlRow,{elementId:p.id,children:(0,r.Y)(E.l.CommonInputWrapper,{...p.props,children:(0,r.Y)(R.r,{value:a,readOnly:!0,copyIcon:K.A,copiedIcon:w.A})})})]})]}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlMicrosoft.serviceProviderStep.step6")})]})]})})}),(0,r.FD)(B.p.Footer,{children:[(0,r.Y)(B.p.Footer.Reset,{}),(0,r.Y)(B.p.Footer.Previous,{onClick:()=>i(),isDisabled:t}),(0,r.Y)(B.p.Footer.Continue,{onClick:()=>e(),isDisabled:o})]})]})},e1=[{id:"email",isRequired:!0},{id:"firstName",isRequired:!1},{id:"lastName",isRequired:!1}],e5=({claimNameKey:e})=>{let{t:i}=(0,s._)(),t=i(e),{onCopy:o,hasCopied:n}=(0,eZ.i)(t);return(0,r.Y)(c.Td,{sx:{maxWidth:0,width:"100%"},children:(0,r.FD)(c.so,{as:"span",align:"center",sx:e=>({gap:e.space.$1}),children:[(0,r.FD)(P.m_.Root,{children:[(0,r.Y)(P.m_.Trigger,{children:(0,r.Y)(c.EY,{as:"span",sx:{fontFamily:"monospace",display:"block",whiteSpace:"nowrap"},children:(0,ej.W)(t,32,12)})}),(0,r.Y)(P.m_.Content,{text:e,textSx:{overflowWrap:"anywhere"}})]}),(0,r.Y)(c.$n,{variant:"ghost",onClick:()=>o(),"aria-label":i((0,C.G)(n?"configureSSO.configureStep.samlMicrosoft.attributeMappingStep.attributeMappingTable.copyClaimNameCopied":"configureSSO.configureStep.samlMicrosoft.attributeMappingStep.attributeMappingTable.copyClaimName")),sx:e=>({padding:0,height:e.sizes.$5,aspectRatio:1,borderRadius:e.radii.$sm,color:e.colors.$colorMutedForeground}),children:(0,r.Y)(c.In,{size:"sm",icon:n?w.A:K.A,"aria-hidden":!0})})]})})},e2=()=>(0,r.FD)(c.XI,{elementDescriptor:I.$z.configureSSOAttributeMappingTable,sx:e=>({"tr > th:first-of-type":{paddingInlineStart:e.space.$4}}),children:[(0,r.Y)(c.d8,{children:(0,r.FD)(c.Tr,{children:[(0,r.Y)(c.Th,{children:(0,r.Y)(c.EY,{sx:e=>({fontSize:e.fontSizes.$xs}),localizationKey:(0,C.G)("configureSSO.configureStep.samlMicrosoft.attributeMappingStep.attributeMappingTable.columns.attribute")})}),(0,r.Y)(c.Th,{children:(0,r.Y)(c.EY,{sx:e=>({fontSize:e.fontSizes.$xs}),localizationKey:(0,C.G)("configureSSO.configureStep.samlMicrosoft.attributeMappingStep.attributeMappingTable.columns.claimName")})}),(0,r.Y)(c.Th,{children:(0,r.Y)(c.EY,{sx:e=>({fontSize:e.fontSizes.$xs}),localizationKey:(0,C.G)("configureSSO.configureStep.samlMicrosoft.attributeMappingStep.attributeMappingTable.columns.value")})})]})}),(0,r.Y)(c.NN,{children:e1.map(e=>{let i=(0,C.G)(`configureSSO.configureStep.samlMicrosoft.attributeMappingStep.attributeMappingTable.rows.${e.id}.claimName`);return(0,r.FD)(c.Tr,{children:[(0,r.Y)(c.Td,{sx:{whiteSpace:"nowrap"},children:(0,r.FD)(c.so,{as:"span",align:"center",sx:e=>({gap:e.space.$2}),children:[(0,r.Y)(c.EY,{as:"span",colorScheme:"secondary",localizationKey:(0,C.G)(`configureSSO.configureStep.samlMicrosoft.attributeMappingStep.attributeMappingTable.rows.${e.id}.attribute`)}),(0,r.Y)(c.Ex,{elementDescriptor:I.$z.configureSSOAttributeMappingBadge,elementId:I.$z.configureSSOAttributeMappingBadge.setId(e.isRequired?"required":"optional"),colorScheme:e.isRequired?"warning":"primary",localizationKey:(0,C.G)(e.isRequired?"configureSSO.configureStep.attributeMappingTable.badges.required":"configureSSO.configureStep.attributeMappingTable.badges.optional")})]})}),(0,r.Y)(e5,{claimNameKey:i}),(0,r.Y)(c.Td,{children:(0,r.Y)(c.EY,{as:"span",sx:{fontFamily:"monospace"},localizationKey:(0,C.G)(`configureSSO.configureStep.samlMicrosoft.attributeMappingStep.attributeMappingTable.rows.${e.id}.value`)})})]},e.id)})})]}),e3=()=>{let{goNext:e,goPrev:i,isFirstStep:t,isLastStep:o}=m();return(0,r.FD)(r.FK,{children:[(0,r.Y)(B.p.Header,{title:(0,C.G)("configureSSO.configureStep.samlMicrosoft.mainHeaderTitle"),description:(0,C.G)("configureSSO.configureStep.samlMicrosoft.attributeMappingStep.headerSubtitle"),children:(0,r.Y)(ep,{})}),(0,r.Y)(B.p.Body,{children:(0,r.FD)(B.p.Section,{sx:e=>({gap:e.space.$3}),children:[(0,r.Y)(c.EY,{as:"p",colorScheme:"secondary",elementDescriptor:I.$z.configureSSOInstructionsHeading,localizationKey:(0,C.G)("configureSSO.configureStep.samlMicrosoft.attributeMappingStep.title")}),(0,r.FD)(c.fv,{elementDescriptor:I.$z.configureSSOInstructionsList,as:"ol",sx:e=>({gap:e.space.$1x5,margin:0,paddingInlineStart:e.space.$5,listStyleType:"decimal"}),children:[(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlMicrosoft.attributeMappingStep.step1")}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOInstructionsListItem,as:"li",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.configureStep.samlMicrosoft.attributeMappingStep.step2")})]}),(0,r.Y)(e2,{})]})}),(0,r.FD)(B.p.Footer,{children:[(0,r.Y)(B.p.Footer.Reset,{}),(0,r.Y)(B.p.Footer.Previous,{onClick:()=>i(),isDisabled:t}),(0,r.Y)(B.p.Footer.Continue,{onClick:()=>e(),isDisabled:o})]})]})},e4=["metadataUrl","manual"],e6=()=>{let e=(0,a.f0)(),{goNext:i,goPrev:t,isFirstStep:o}=m(),{enterpriseConnection:s,enterpriseConnectionMutations:{updateConnection:c}}=(0,l.t)(),d=s?.samlConnection,p=!!(d?.idpSsoUrl||d?.idpEntityId||d?.idpCertificate||d?.idpMetadataUrl),u=!!d?.idpCertificate,[S,g]=n().useState(p?"manual":"metadataUrl"),[f,h]=n().useState(null),[Y,y]=n().useState(!1),b=(0,L.tJ)("idpMetadataUrl",d?.idpMetadataUrl??"",{type:"text",label:(0,C.G)("configureSSO.configureStep.samlMicrosoft.identityProviderMetadataStep.metadataUrl.label"),placeholder:(0,C.G)("configureSSO.configureStep.samlMicrosoft.identityProviderMetadataStep.metadataUrl.placeholder"),isRequired:!0}),O=(0,L.tJ)("idpSsoUrl",d?.idpSsoUrl??"",{type:"text",label:(0,C.G)("configureSSO.configureStep.samlMicrosoft.identityProviderMetadataStep.manual.signOnUrl.label"),placeholder:(0,C.G)("configureSSO.configureStep.samlMicrosoft.identityProviderMetadataStep.manual.signOnUrl.placeholder"),isRequired:!0}),D=(0,L.tJ)("idpEntityId",d?.idpEntityId??"",{type:"text",label:(0,C.G)("configureSSO.configureStep.samlMicrosoft.identityProviderMetadataStep.manual.issuer.label"),placeholder:(0,C.G)("configureSSO.configureStep.samlMicrosoft.identityProviderMetadataStep.manual.issuer.placeholder"),isRequired:!0}),v=(0,L.tJ)("idpCertificate","",{type:"text",label:(0,C.G)("configureSSO.configureStep.samlMicrosoft.identityProviderMetadataStep.manual.signingCertificate.label"),isRequired:!0}),$=b.value.trim(),z=O.value.trim(),F=D.value.trim(),x=null!==f||u,I=("metadataUrl"===S?$.length>0:z.length>0&&F.length>0&&x)&&!Y,G="metadataUrl"===S?{mode:"metadataUrl",form:{field:b},labels:{description:(0,C.G)("configureSSO.configureStep.samlMicrosoft.identityProviderMetadataStep.metadataUrl.description")}}:{mode:"manual",form:{signOnUrlField:O,issuerField:D,certificateField:v,certFile:f,onCertFileChange:h,existingCertPresent:u},labels:{description:(0,C.G)("configureSSO.configureStep.samlMicrosoft.identityProviderMetadataStep.manual.description"),uploadFile:(0,C.G)("configureSSO.configureStep.samlMicrosoft.identityProviderMetadataStep.manual.signingCertificate.uploadFile"),replaceFile:(0,C.G)("configureSSO.configureStep.samlMicrosoft.identityProviderMetadataStep.manual.signingCertificate.replaceFile"),removeFile:(0,C.G)("configureSSO.configureStep.samlMicrosoft.identityProviderMetadataStep.manual.signingCertificate.removeFile"),fileUploaded:(0,C.G)("configureSSO.configureStep.samlMicrosoft.identityProviderMetadataStep.manual.signingCertificate.fileUploaded")}},M=async()=>{if(s&&I){e.setError(void 0),y(!0);try{let e=await eb({mode:S,metadataUrl:{value:b.value},manual:{signOnUrl:O.value,issuer:D.value,certFile:f}});await c(s.id,{saml:e}),i()}catch(i){"metadataUrl"===S?eO(i,e,b):eO(i,e,O,[D,v]),y(!1)}}};return(0,r.FD)(r.FK,{children:[(0,r.Y)(B.p.Header,{title:(0,C.G)("configureSSO.configureStep.samlMicrosoft.mainHeaderTitle"),description:(0,C.G)("configureSSO.configureStep.samlMicrosoft.identityProviderMetadataStep.headerSubtitle"),children:(0,r.Y)(ep,{})}),(0,r.Y)(B.p.Body,{children:(0,r.FD)(B.p.Section,{fill:!0,gap:5,children:[(0,r.Y)(e$,{modes:e4,value:S,onChange:i=>{e.setError(void 0),g(i)},labels:{ariaLabel:(0,C.G)("configureSSO.configureStep.samlMicrosoft.identityProviderMetadataStep.modes.ariaLabel"),metadataUrl:(0,C.G)("configureSSO.configureStep.samlMicrosoft.identityProviderMetadataStep.modes.metadataUrl"),manual:(0,C.G)("configureSSO.configureStep.samlMicrosoft.identityProviderMetadataStep.modes.manual")}}),(0,r.Y)(ef,{...G})]})}),(0,r.FD)(B.p.Footer,{children:[(0,r.Y)(B.p.Footer.Reset,{}),(0,r.Y)(B.p.Footer.Previous,{onClick:()=>t(),isDisabled:o||Y}),(0,r.Y)(B.p.Footer.Continue,{onClick:M,isLoading:Y,isDisabled:!I})]})]})},e8={saml_custom:()=>(0,r.FD)($,{steps:ez,initialStepId:ez[0].id,children:[(0,r.Y)($.Match,{id:"create-app",children:(0,r.Y)(eF,{})}),(0,r.Y)($.Match,{id:"attribute-mapping",children:(0,r.Y)(eC,{})}),(0,r.Y)($.Match,{id:"assign-users",children:(0,r.Y)(eG,{})}),(0,r.Y)($.Match,{id:"identity-provider-metadata",children:(0,r.Y)(eR,{})})]}),saml_okta:()=>(0,r.FD)($,{steps:ek,initialStepId:ek[0].id,children:[(0,r.Y)($.Match,{id:"create-app",children:(0,r.Y)(eE,{})}),(0,r.Y)($.Match,{id:"attribute-mapping",children:(0,r.Y)(eA,{})}),(0,r.Y)($.Match,{id:"assign-users",children:(0,r.Y)(eK,{})}),(0,r.Y)($.Match,{id:"identity-provider-metadata",children:(0,r.Y)(eU,{})})]}),saml_google:()=>(0,r.FD)($,{steps:eL,initialStepId:eL[0].id,children:[(0,r.Y)($.Match,{id:"create-app",children:(0,r.Y)(e_,{})}),(0,r.Y)($.Match,{id:"identity-provider-metadata",children:(0,r.Y)(eH,{})}),(0,r.Y)($.Match,{id:"service-provider",children:(0,r.Y)(eW,{})}),(0,r.Y)($.Match,{id:"attribute-mapping",children:(0,r.Y)(eV,{})}),(0,r.Y)($.Match,{id:"configure-user-access",children:(0,r.Y)(eJ,{})})]}),saml_microsoft:()=>(0,r.FD)($,{steps:eX,initialStepId:eX[0].id,children:[(0,r.Y)($.Match,{id:"create-app",children:(0,r.Y)(eQ,{})}),(0,r.Y)($.Match,{id:"service-provider",children:(0,r.Y)(e0,{})}),(0,r.Y)($.Match,{id:"attribute-mapping",children:(0,r.Y)(e3,{})}),(0,r.Y)($.Match,{id:"identity-provider-metadata",children:(0,r.Y)(e6,{})})]})},e7=()=>{let{organizationEnterpriseConnection:e}=(0,l.t)(),{direction:i}=m(),t=n().useMemo(()=>[{id:"select-provider"},{id:"configure-provider",isReachable:()=>e.hasConnection}],[e]);return(0,r.FD)($,{steps:t,initialStepId:1===i?"select-provider":void 0,children:[(0,r.Y)($.Match,{id:"select-provider",children:(0,r.Y)(a.pe,{children:(0,r.Y)(ec,{})})}),(0,r.Y)($.Match,{id:"configure-provider",children:(0,r.Y)(a.pe,{children:(0,r.Y)(e9,{})})})]})},e9=()=>{let{organizationEnterpriseConnection:e}=(0,l.t)();if(!e.provider)return null;let i=e8[e.provider];if(!i)throw Error(`No steps found for provider: ${e.provider}`);return(0,r.Y)(x.n.Part,{part:"configureCreateApp",children:(0,r.Y)(B.p,{elementDescriptor:I.$z.configureSSOStep,elementId:I.$z.configureSSOStep.setId("configure"),children:(0,r.Y)(i,{})})})};var ie=t(6923),ii=t(4874),it=t(9632),ir=t(9982),io=t(4657),ia=t(9154),il=t(408);let is={saml_user_attribute_missing:{kind:"steps",introKey:(0,C.G)("configureSSO.testConfigurationStep.testRunDetails.howToFix.saml_user_attribute_missing.intro"),stepKeys:[(0,C.G)("configureSSO.testConfigurationStep.testRunDetails.howToFix.saml_user_attribute_missing.step1"),(0,C.G)("configureSSO.testConfigurationStep.testRunDetails.howToFix.saml_user_attribute_missing.step2"),(0,C.G)("configureSSO.testConfigurationStep.testRunDetails.howToFix.saml_user_attribute_missing.step3")]},saml_response_relaystate_missing:{kind:"description",descriptionKey:(0,C.G)("configureSSO.testConfigurationStep.testRunDetails.howToFix.saml_response_relaystate_missing.description")},saml_email_address_domain_mismatch:{kind:"description",descriptionKey:(0,C.G)("configureSSO.testConfigurationStep.testRunDetails.howToFix.saml_email_address_domain_mismatch.description")},oauth_access_denied:{kind:"description",descriptionKey:(0,C.G)("configureSSO.testConfigurationStep.testRunDetails.howToFix.oauth_access_denied.description")},oauth_token_exchange_error:{kind:"description",descriptionKey:(0,C.G)("configureSSO.testConfigurationStep.testRunDetails.howToFix.oauth_token_exchange_error.description")},oauth_fetch_user_error:{kind:"steps",introKey:(0,C.G)("configureSSO.testConfigurationStep.testRunDetails.howToFix.oauth_fetch_user_error.intro"),stepKeys:[(0,C.G)("configureSSO.testConfigurationStep.testRunDetails.howToFix.oauth_fetch_user_error.step1"),(0,C.G)("configureSSO.testConfigurationStep.testRunDetails.howToFix.oauth_fetch_user_error.step2")]}},ic=({errorCode:e})=>{if(!e)return null;let i=is[e];if(!i)return null;let t=`https://clerk.com/docs/guides/organizations/add-members/sso#${e.replaceAll("_","-")}`;return(0,r.FD)(c.so,{elementDescriptor:I.$z.configureSSOTestRunHowToFixSection,direction:"col",gap:3,sx:e=>({borderTopWidth:e.borderWidths.$normal,borderTopStyle:e.borderStyles.$solid,borderTopColor:e.colors.$borderAlpha100,paddingTop:e.space.$4}),children:[(0,r.Y)(c.DZ,{as:"h3",textVariant:"h3",localizationKey:(0,C.G)("configureSSO.testConfigurationStep.testRunDetails.howToFix.sectionTitle")}),(0,r.FD)(c.az,{sx:e=>({padding:e.space.$3,backgroundColor:e.colors.$colorBackground,borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha150,borderRadius:e.radii.$md,boxShadow:e.shadows.$cardContentShadow}),children:[(0,r.Y)(id,{content:i}),(0,r.FD)(c.N_,{elementDescriptor:I.$z.configureSSOTestRunHowToFixDocsLink,href:t,target:"_blank",rel:"noopener noreferrer",sx:e=>({alignSelf:"flex-start",display:"inline-flex",alignItems:"center",gap:e.space.$1x5,paddingBlock:e.space.$1,paddingInline:e.space.$3,borderRadius:e.radii.$md,borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha150,color:e.colors.$colorForeground,fontSize:e.fontSizes.$sm,fontWeight:e.fontWeights.$medium,textDecoration:"none",marginTop:e.space.$2,"&:hover":{backgroundColor:e.colors.$neutralAlpha50,textDecoration:"none"}}),children:[(0,r.Y)(c.L9,{localizationKey:(0,C.G)("configureSSO.testConfigurationStep.testRunDetails.howToFix.actionLabel__viewDocumentation")}),(0,r.Y)(c.In,{icon:il.A,size:"sm"})]})]})]})},id=({content:e})=>"description"===e.kind?(0,r.Y)(c.EY,{colorScheme:"secondary",localizationKey:e.descriptionKey}):(0,r.FD)(c.so,{direction:"col",gap:2,children:[e.introKey?(0,r.Y)(c.EY,{colorScheme:"secondary",localizationKey:e.introKey}):null,(0,r.Y)(c.az,{as:"ol",sx:e=>({margin:0,paddingInlineStart:e.space.$5,listStyleType:"decimal",display:"flex",flexDirection:"column",gap:e.space.$1}),children:e.stepKeys.map(e=>(0,r.Y)(c.az,{as:"li",sx:e=>({color:e.colors.$colorMutedForeground,fontSize:e.fontSizes.$sm,"&::marker":{color:e.colors.$colorMutedForeground,fontSize:e.fontSizes.$sm}}),children:(0,r.Y)(c.EY,{as:"span",colorScheme:"secondary",localizationKey:e})},e.key))})]}),ip=()=>{let{goPrev:e}=m(),{organizationEnterpriseConnection:i,testRuns:t}=(0,l.t)(),o=(0,a.f0)(),{rows:n,totalCount:s,isLoading:d,isFetching:p,isPolling:u,page:S,setPage:g,refresh:f,revalidateHasSuccessfulTestRun:h}=t,Y=(0,ir.P)(p&&!d),y=s?Math.ceil(s/5):0;return(0,r.Y)(x.n.Part,{part:"testSso",children:(0,r.FD)(B.p,{elementDescriptor:I.$z.configureSSOStep,elementId:I.$z.configureSSOStep.setId("test"),children:[(0,r.Y)(B.p.Header,{title:(0,C.G)("configureSSO.testConfigurationStep.title")}),(0,r.FD)(B.p.Body,{children:[(0,r.Y)(B.p.Section,{sx:e=>({borderBottomWidth:e.borderWidths.$normal,borderBottomStyle:e.borderStyles.$solid,borderBottomColor:e.colors.$borderAlpha100}),children:(0,r.FD)(c.fv,{gap:3,children:[(0,r.Y)(c.EY,{as:"p",colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.testConfigurationStep.subtitle")}),(0,r.Y)(iv,{onTestRunCreated:()=>{g(1),f({armPolling:!0})}})]})}),(0,r.FD)(B.p.Section,{sx:e=>({flex:1,minHeight:0,gap:e.space.$3}),children:[(0,r.FD)(c.so,{align:"center",justify:"between",sx:e=>({gap:e.space.$2,flexShrink:0}),children:[(0,r.Y)(c.EY,{variant:"subtitle",localizationKey:(0,C.G)("configureSSO.testConfigurationStep.testResults.title")}),(0,r.FD)(c.$n,{elementDescriptor:I.$z.configureSSOTestRefreshButton,variant:"bordered",colorScheme:"secondary",size:"xs",onClick:()=>void f(),isDisabled:Y,sx:e=>({gap:e.space.$1x5}),children:[Y?(0,r.Y)(c.y$,{elementDescriptor:I.$z.spinner,size:"xs"}):(0,r.Y)(c.In,{icon:A.A,size:"sm",colorScheme:"neutral"}),(0,r.Y)(c.EY,{as:"span",localizationKey:(0,C.G)("configureSSO.testConfigurationStep.testResults.actionLabel__refresh")})]})]}),(0,r.Y)(c.fv,{sx:{flex:1,minHeight:0},children:(0,r.Y)(iS,{rows:n,isPolling:u,isLoading:d,page:S,pageCount:y,pageSize:5,totalCount:s??0,onPageChange:g})})]})]}),o.error?(0,r.Y)(c.az,{elementDescriptor:I.$z.configureSSOTestError,sx:e=>({flexShrink:0,paddingInline:e.space.$5,paddingBlock:e.space.$3,borderTopWidth:e.borderWidths.$normal,borderTopStyle:e.borderStyles.$solid,borderTopColor:e.colors.$borderAlpha100}),children:(0,r.Y)(c.EY,{as:"p",variant:"body",sx:e=>({color:e.colors.$danger500,fontSize:e.fontSizes.$sm}),children:o.error})}):null,(0,r.FD)(B.p.Footer,{children:[(0,r.Y)(B.p.Footer.Reset,{}),(0,r.Y)(B.p.Footer.Previous,{onClick:()=>e()}),(0,r.Y)(iu,{hasSuccessfulTestRun:i.hasSuccessfulTestRun,revalidateHasSuccessfulTestRun:h})]})]})})},iu=({hasSuccessfulTestRun:e,revalidateHasSuccessfulTestRun:i})=>{let{t}=(0,s._)(),n=(0,a.f0)(),{goNext:l}=m(),[c,d]=(0,o.useState)(!1),p=(0,ir.P)(c),u=()=>{n.setError(void 0),l()},S=async()=>{if(e)return void u();d(!0);try{if(await i())return void u();n.setError(t((0,C.G)("configureSSO.testConfigurationStep.error__noSuccessfulTestRun")))}catch(e){(0,_.H4)(e,[],n.setError)}finally{d(!1)}};return(0,r.Y)(B.p.Footer.Continue,{onClick:S,isLoading:p})},iS=({rows:e,isLoading:i,isPolling:t,page:n,pageCount:a,pageSize:d,totalCount:u,onPageChange:S})=>{let{t:g}=(0,s._)(),{contentRef:m}=(0,l.t)(),[f,h]=(0,o.useState)(null),Y=f?.status==="failed"&&f.logs?.[0]?.shortMessage||g((0,C.G)("configureSSO.testConfigurationStep.testRunDetails.title"));return(0,r.FD)(r.FK,{children:[(0,r.Y)(c.so,{direction:"col",sx:e=>({width:"100%",flex:"0 1 auto",minHeight:0,overflowY:"auto",borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha150,borderRadius:e.radii.$lg,...U.s.unstyledScrollbar(e),[p.g.sm]:{overflowX:"auto",padding:e.space.$0x25}}),children:(0,r.FD)(c.XI,{elementDescriptor:I.$z.configureSSOTestResultsTable,tableHeadVisuallyHidden:!e.length,sx:e=>({background:e.colors.$colorBackground,"&&":{border:"none",borderRadius:0}}),children:[(0,r.Y)(c.d8,{children:(0,r.FD)(c.Tr,{children:[(0,r.Y)(c.Th,{localizationKey:(0,C.G)("configureSSO.testConfigurationStep.testRunDetails.runDetails.timestamp")}),(0,r.Y)(c.Th,{localizationKey:(0,C.G)("configureSSO.testConfigurationStep.testRunDetails.runDetails.sectionTitle")}),(0,r.Y)(c.Th,{localizationKey:(0,C.G)("configureSSO.testConfigurationStep.testRunDetails.runDetails.status")})]})}),(0,r.Y)(c.NN,{children:i||t?(0,r.Y)(c.Tr,{children:(0,r.Y)(c.Td,{colSpan:3,children:(0,r.FD)(c.so,{direction:"col",align:"center",gap:2,sx:e=>({padding:`${e.space.$10} 0`}),children:[(0,r.Y)(c.y$,{colorScheme:"primary",elementDescriptor:I.$z.configureSSOTestResultsLoadingSpinner}),(0,r.Y)(c.EY,{colorScheme:"secondary",localizationKey:t?(0,C.G)("configureSSO.testConfigurationStep.testResults.polling"):void 0})]})})}):e.length?e.map(e=>(0,r.FD)(c.Tr,{elementDescriptor:I.$z.configureSSOTestResultsRow,onClick:()=>h(e),sx:e=>({cursor:"pointer","&:hover > td":{backgroundColor:e.colors.$neutralAlpha50}}),children:[(0,r.Y)(c.Td,{children:(0,r.Y)(im,{testRun:e})}),(0,r.Y)(c.Td,{children:(0,r.Y)(iO,{testRun:e})}),(0,r.Y)(c.Td,{children:(0,r.Y)(iD,{testRun:e})})]},e.id)):(0,r.Y)(c.Tr,{children:(0,r.Y)(c.Td,{colSpan:3,children:(0,r.FD)(c.so,{elementDescriptor:I.$z.configureSSOTestResultsEmpty,direction:"col",align:"center",justify:"center",sx:e=>({padding:`${e.space.$10} 0`,flex:1,gap:e.space.$1,textAlign:"center"}),children:[(0,r.Y)(c.EY,{variant:"subtitle",localizationKey:(0,C.G)("configureSSO.testConfigurationStep.testResults.empty.title")}),(0,r.Y)(c.EY,{colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.testConfigurationStep.testResults.empty.subtitle")})]})})})})]})}),a>1?(0,r.Y)(c.az,{sx:{flexShrink:0},children:(0,r.Y)(it.d,{page:Math.min(n,a),count:a,onChange:S,siblingCount:1,rowInfo:{allRowsCount:u,startingRow:u>0?Math.max(0,(n-1)*d)+1:0,endingRow:Math.min(n*d,u)}})}):null,(0,r.FD)(ie.Drawer.Root,{open:null!==f,onOpenChange:e=>{e||h(null)},strategy:"absolute",portalProps:{root:m},children:[(0,r.Y)(ie.Drawer.Overlay,{}),(0,r.FD)(ie.Drawer.Content,{children:[(0,r.Y)(ie.Drawer.Header,{title:Y}),f?(0,r.Y)(iY,{testRun:f}):null]})]})]})},ig=e=>{let{locale:i}=(0,s._)();return e.createdAt?{time:new Intl.DateTimeFormat(i,{timeStyle:"medium"}).format(e.createdAt),day:new Intl.DateTimeFormat(i,{month:"short",day:"numeric"}).format(e.createdAt)}:null},im=({testRun:e})=>{let i=ig(e);return i?(0,r.FD)(c.so,{gap:2,align:"baseline",sx:{whiteSpace:"nowrap"},children:[(0,r.Y)(c.EY,{children:i.time}),(0,r.Y)(c.EY,{colorScheme:"secondary",children:i.day})]}):null},ih=({title:e,children:i})=>(0,r.FD)(c.az,{as:"div",sx:e=>({display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",gap:e.space.$2}),children:[(0,r.Y)(c.Dt,{localizationKey:e,sx:e=>({color:e.colors.$colorForeground,...U.s.textVariants(e).subtitle})}),(0,r.Y)(c.Dd,{sx:e=>({display:"grid",justifyContent:"end",color:e.colors.$colorForeground}),children:i})]}),iY=({testRun:e})=>{let i=ig(e),t="failed"===e.status?e.logs?.[0]:null;return(0,r.FD)(ie.Drawer.Body,{sx:e=>({display:"flex",flexDirection:"column",flex:1,overflowY:"auto",padding:e.space.$4,gap:e.space.$4}),children:[(0,r.Y)(c.DZ,{as:"h3",textVariant:"h3",localizationKey:(0,C.G)("configureSSO.testConfigurationStep.testRunDetails.runDetails.sectionTitle")}),(0,r.FD)(c.Dl,{sx:e=>({display:"grid",gridRowGap:e.space.$2}),children:[i?(0,r.Y)(ih,{title:(0,C.G)("configureSSO.testConfigurationStep.testRunDetails.runDetails.timestamp"),children:(0,r.FD)(c.so,{gap:2,align:"baseline",sx:{whiteSpace:"nowrap"},children:[(0,r.Y)(c.EY,{children:i.time}),(0,r.Y)(c.EY,{colorScheme:"secondary",children:i.day})]})}):null,"failed"===e.status?t?.code?(0,r.Y)(ih,{title:(0,C.G)("configureSSO.testConfigurationStep.testRunDetails.runDetails.errorCode"),children:(0,r.Y)(c.EY,{sx:e=>({fontFamily:e.fonts.$mono}),children:t.code})}):null:(0,r.Y)(ih,{title:(0,C.G)("configureSSO.testConfigurationStep.testRunDetails.runDetails.status"),children:(0,r.Y)(iD,{testRun:e})})]}),"failed"===e.status&&t?.message?(0,r.Y)(ib,{message:t.message}):null,"failed"===e.status?(0,r.Y)(ic,{errorCode:t?.code}):null,"success"===e.status?(0,r.Y)(iy,{parsedUserInfo:e.parsedUserInfo}):null]})},iy=({parsedUserInfo:e})=>e?.emailAddress||e?.firstName?(0,r.FD)(c.so,{elementDescriptor:I.$z.configureSSOTestRunParsedUserInfo,direction:"col",gap:3,sx:e=>({borderTopWidth:e.borderWidths.$normal,borderTopStyle:e.borderStyles.$solid,borderTopColor:e.colors.$borderAlpha100,paddingTop:e.space.$4}),children:[(0,r.Y)(c.DZ,{as:"h3",textVariant:"h3",localizationKey:(0,C.G)("configureSSO.testConfigurationStep.testRunDetails.parsedUserInfo.sectionTitle")}),(0,r.FD)(c.Dl,{sx:e=>({display:"grid",gridRowGap:e.space.$2}),children:[e.emailAddress?(0,r.Y)(ih,{title:(0,C.G)("configureSSO.testConfigurationStep.testRunDetails.parsedUserInfo.email"),children:(0,r.Y)(c.EY,{sx:e=>({fontFamily:e.fonts.$mono}),children:e.emailAddress})}):null,e.firstName?(0,r.Y)(ih,{title:(0,C.G)("configureSSO.testConfigurationStep.testRunDetails.parsedUserInfo.firstName"),children:(0,r.Y)(c.EY,{sx:e=>({fontFamily:e.fonts.$mono}),children:e.firstName})}):null]})]}):null,ib=({message:e})=>{let{t:i}=(0,s._)(),{onCopy:t,hasCopied:o}=(0,eZ.i)(e),n=i((0,C.G)(o?"configureSSO.testConfigurationStep.testRunDetails.runDetails.actionLabel__copied":"configureSSO.testConfigurationStep.testRunDetails.runDetails.actionLabel__copy"));return(0,r.FD)(c.so,{direction:"col",gap:2,children:[(0,r.FD)(c.so,{justify:"between",align:"center",gap:4,children:[(0,r.Y)(c.EY,{colorScheme:"secondary",localizationKey:(0,C.G)("configureSSO.testConfigurationStep.testRunDetails.runDetails.fullMessage")}),(0,r.Y)(ii.K,{elementDescriptor:I.$z.configureSSOTestRunFullMessageCopyButton,variant:"ghost",colorScheme:"neutral",size:"xs",icon:o?w.A:io.A,"aria-label":n,onClick:()=>t()})]}),(0,r.Y)(c.az,{elementDescriptor:I.$z.configureSSOTestRunFullMessage,as:"pre",sx:e=>({margin:0,padding:e.space.$3,backgroundColor:e.colors.$colorBackground,borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha150,borderRadius:e.radii.$md,boxShadow:e.shadows.$cardContentShadow,fontFamily:e.fonts.$mono,fontSize:e.fontSizes.$sm,color:e.colors.$colorForeground,whiteSpace:"pre-wrap",wordBreak:"break-word"}),children:e})]})},iO=({testRun:e})=>"pending"===e.status?(0,r.Y)(c.so,{sx:e=>({fontFamily:e.fonts.$mono}),children:(0,r.Y)(c.EY,{children:"-"})}):"success"===e.status?(0,r.Y)(c.so,{sx:e=>({fontFamily:e.fonts.$mono}),children:(0,r.Y)(c.EY,{children:e.parsedUserInfo?.emailAddress})}):(0,r.Y)(c.so,{sx:e=>({fontFamily:e.fonts.$mono}),children:(0,r.Y)(c.EY,{children:e.logs?.[0]?.shortMessage})}),iD=({testRun:e})=>"success"===e.status?(0,r.Y)(c.Ex,{elementDescriptor:I.$z.configureSSOTestRunStatusBadge,elementId:I.$z.configureSSOTestRunStatusBadge.setId("success"),colorScheme:"success",localizationKey:(0,C.G)("configureSSO.testConfigurationStep.testResults.status__success")}):"failed"===e.status?(0,r.Y)(c.Ex,{elementDescriptor:I.$z.configureSSOTestRunStatusBadge,elementId:I.$z.configureSSOTestRunStatusBadge.setId("failed"),colorScheme:"danger",localizationKey:(0,C.G)("configureSSO.testConfigurationStep.testResults.status__failed")}):(0,r.Y)(c.Ex,{elementDescriptor:I.$z.configureSSOTestRunStatusBadge,elementId:I.$z.configureSSOTestRunStatusBadge.setId("pending"),colorScheme:"warning",localizationKey:(0,C.G)("configureSSO.testConfigurationStep.testResults.status__pending")}),iv=({onTestRunCreated:e})=>{let i=(0,a.f0)(),{enterpriseConnection:t,enterpriseConnectionMutations:{createTestRun:n}}=(0,l.t)(),[s,d]=(0,o.useState)(!1);return(0,r.FD)(c.$n,{elementDescriptor:I.$z.configureSSOTestUrlOpenButton,id:"testSsoUrl",variant:"bordered",colorScheme:"secondary",size:"xs",onClick:()=>{t&&(d(!0),n(t.id).then(({url:i})=>{e?.(i),window.open(i,"_blank","noopener,noreferrer")}).catch(e=>(0,_.H4)(e,[],i.setError)).finally(()=>d(!1)))},isDisabled:s,sx:e=>({gap:e.space.$1x5,width:"fit-content"}),children:[s?(0,r.Y)(c.y$,{elementDescriptor:I.$z.spinner,size:"sm"}):(0,r.Y)(c.In,{icon:ia.A,size:"sm",colorScheme:"neutral"}),(0,r.Y)(c.EY,{as:"span",localizationKey:(0,C.G)("configureSSO.testConfigurationStep.testUrl.actionLabel__open")})]})};var i$=t(5051),iz=t(9242);let iF=()=>{let{enterpriseConnection:e,organizationEnterpriseConnection:i,enterpriseConnectionMutations:{setConnectionActive:t},onExit:o}=(0,l.t)(),n=(0,a.f0)(),s=(0,z.ho)(),{organization:d}=(0,z.Z5)(),p=(e?.domains??[]).join(", "),u=i.isActive,S=async()=>{if(e&&!n.isLoading){n.setError(void 0),n.setLoading();try{await t(e.id,!0),s.telemetry?.record((0,F.fC)("configureSSO","activate",{timestamp:new Date().toISOString(),connectionStatus:"active",connectionId:e.id,organizationId:d?.id??null})),o?.()}catch(e){(0,_.H4)(e,[],n.setError)}finally{n.setIdle()}}};return(0,r.Y)(x.n.Part,{part:"ssoActivate",children:(0,r.Y)(B.p,{elementDescriptor:I.$z.configureSSOStep,elementId:I.$z.configureSSOStep.setId("activate"),children:(0,r.Y)(B.p.Body,{children:(0,r.FD)(B.p.Section,{elementDescriptor:I.$z.configureSSOActivate,fill:!0,gap:5,sx:{alignItems:"center",justifyContent:"center"},children:[(0,r.FD)(c.fv,{align:"center",sx:e=>({textAlign:"center",maxWidth:"20.75rem",gap:e.space.$3x5}),children:[(0,r.Y)(c.In,{elementDescriptor:I.$z.configureSSOActivateIcon,icon:i$.A,colorScheme:"neutral",sx:e=>({width:e.sizes.$8,height:e.sizes.$8})}),(0,r.FD)(c.fv,{align:"center",gap:2,children:[(0,r.Y)(c.DZ,{elementDescriptor:I.$z.configureSSOActivateTitle,textVariant:"h2",localizationKey:(0,C.G)(u?"configureSSO.activate.activeTitle":"configureSSO.activate.title")}),(0,r.Y)(c.EY,{elementDescriptor:I.$z.configureSSOActivateSubtitle,as:"p",colorScheme:"secondary",localizationKey:(0,C.G)(u?"configureSSO.activate.activeSubtitle":"configureSSO.activate.subtitle",{domain:p})})]}),n.error&&(0,r.Y)(G.F,{variant:"danger",sx:{width:"100%"},title:n.error})]}),u?(0,r.Y)(c.$n,{elementDescriptor:I.$z.configureSSOActivateButton,variant:"bordered",colorScheme:"secondary",size:"sm",onClick:()=>o?.(),localizationKey:(0,C.G)("configureSSO.activate.doneButton")}):(0,r.FD)(c.so,{align:"center",gap:4,children:[(0,r.Y)(c.$n,{elementDescriptor:I.$z.configureSSOActivateButton,variant:"solid",size:"sm",isLoading:n.isLoading,onClick:()=>void S(),localizationKey:(0,C.G)("configureSSO.activate.activateButton")}),(0,r.FD)(c.$n,{elementDescriptor:I.$z.configureSSOActivateSkipButton,variant:"outline",size:"sm",isDisabled:n.isLoading,onClick:()=>o?.(),children:[(0,r.Y)(c.EY,{as:"span",localizationKey:(0,C.G)("configureSSO.activate.skipButton")}),(0,r.Y)(c.In,{icon:iz.A,size:"sm",sx:e=>({marginInlineStart:e.space.$1})})]})]})]})})})})},iC=({title:e,forceInitialStep:i,...t})=>{let{organizationEnterpriseConnection:o,organizationDomains:s}=t,c=(0,h.im)(s),d=n().useMemo(()=>[{id:"verify-domain",label:"Domains",isComplete:()=>c},{id:"configure",label:"Connection",isReachable:()=>c||o.hasConnection,isComplete:()=>o.hasMinimumConfiguration||o.isActive},{id:"test",label:"Test",isReachable:()=>o.hasMinimumConfiguration||o.isActive,isComplete:()=>o.hasSuccessfulTestRun||o.isActive},{id:"activate",label:"Activate",isReachable:()=>o.hasSuccessfulTestRun||o.isActive,isComplete:()=>o.isActive}],[o,c]),p=i?d[0].id:void 0;return(0,r.Y)(l.z,{...t,children:(0,r.FD)($,{steps:d,initialStepId:p,children:[(0,r.Y)(f,{title:e}),(0,r.Y)($.Match,{id:"verify-domain",children:(0,r.Y)(a.pe,{children:(0,r.Y)(J,{})})}),(0,r.Y)($.Match,{id:"configure",children:(0,r.Y)(a.pe,{children:(0,r.Y)(e7,{})})}),(0,r.Y)($.Match,{id:"test",children:(0,r.Y)(a.pe,{children:(0,r.Y)(ip,{})})}),(0,r.Y)($.Match,{id:"activate",children:(0,r.Y)(a.pe,{children:(0,r.Y)(iF,{})})})]})})}},8125(e,i,t){var r=t(9763),o=t(8342),n=t(1046),a=t(9230),l=t(5402),s=t(7308),c=t(7447),d=t(6600),p=t(5870),u=t(2574),S=t(1637),g=t(869);let m=(0,s.dm)(e=>{let{onClose:i,onDelete:t,confirmationValue:u}=e,m=e.title??(0,o.G)("configureSSO.resetConnectionDialog.title"),f=e.subtitle??(0,o.G)("configureSSO.resetConnectionDialog.subtitle"),h=e.confirmButtonLabel??(0,o.G)("configureSSO.resetConnectionDialog.resetButton"),Y=(0,s.f0)(),y=(0,S.tJ)("deleteConfirmation","",{type:"text",label:(0,o.G)("configureSSO.resetConnectionDialog.confirmationFieldLabel",{name:u}),isRequired:!0,placeholder:u}),b=!!(u&&y.value===u),O=async()=>{if(b)try{await t(),i()}catch(e){(0,g.H4)(e,[y],Y.setError)}};return(0,r.Y)(l.Z.Root,{elementDescriptor:n.$z.configureSSOResetConnectionDialog,sx:e=>({borderRadius:e.radii.$md}),children:(0,r.Y)(l.Z.Content,{sx:e=>({textAlign:"start",padding:e.sizes.$5}),children:(0,r.Y)(p.M,{headerTitle:m,headerSubtitle:f,sx:e=>({gap:e.space.$4}),children:(0,r.Y)(c.l.Root,{onSubmit:O,children:(0,r.FD)(a.fv,{gap:4,children:[(0,r.Y)(c.l.ControlRow,{elementId:y.id,children:(0,r.Y)(c.l.PlainInput,{...y.props,elementDescriptor:n.$z.configureSSOResetConnectionDialogConfirmationInput,ignorePasswordManager:!0})}),(0,r.FD)(d.c,{children:[(0,r.Y)(c.l.SubmitButton,{elementDescriptor:n.$z.configureSSOResetConnectionDialogSubmitButton,block:!1,colorScheme:"danger",isDisabled:!b,localizationKey:h}),(0,r.Y)(c.l.ResetButton,{elementDescriptor:n.$z.configureSSOResetConnectionDialogCancelButton,block:!1,localizationKey:(0,o.G)("configureSSO.resetConnectionDialog.cancelButton"),onClick:i})]})]})})})})})});t.d(i,{},{i:e=>e.isOpen?(0,r.Y)(u.Modal,{handleClose:e.onClose,canCloseModal:!1,portalRoot:e.contentRef,containerSx:e=>({alignItems:"center",position:"absolute",inset:0,width:"auto",height:"auto",backgroundColor:"inherit",backdropFilter:`blur(${e.sizes.$2})`}),children:(0,r.Y)(m,{...e})}):null})},85(e,i,t){let r=e=>!!(e?.samlConnection?.idpSsoUrl&&e?.samlConnection?.idpEntityId);t.d(i,{},{im:e=>!!e?.length&&e.every(e=>e.ownershipVerification?.status==="verified"),vF:({connection:e,hasSuccessfulTestRun:i})=>{let t=!!e,o=!!e?.active,n=r(e);return{provider:e?.provider,hasConnection:t,isActive:o,hasMinimumConfiguration:n,hasSuccessfulTestRun:i,status:(({hasConnection:e,isActive:i,hasMinimumConfiguration:t,hasSuccessfulTestRun:r})=>e?i?"active":t&&r?"inactive":"in_progress":"unconfigured")({hasConnection:t,isActive:o,hasMinimumConfiguration:n,hasSuccessfulTestRun:i})}},yh:r})},8157(e,i,t){var r=t(9763),o=t(9230),n=t(1046),a=t(4260),l=t(8343);t.d(i,{},{B:e=>(0,r.Y)(o.so,{as:"header",elementDescriptor:n.$z.configureSSOHeader,...e,sx:e=>({gap:e.space.$4,width:"100%",minHeight:e.sizes.$13,padding:e.space.$5,borderBottomWidth:e.borderWidths.$normal,borderBottomStyle:e.borderStyles.$solid,borderBottomColor:e.colors.$borderAlpha100,[a.g.md]:{flexDirection:"column",alignItems:"flex-start",gap:e.space.$4}})}),F:e=>(0,r.Y)(o.so,{as:"footer",elementDescriptor:n.$z.configureSSOFooter,align:"center",justify:"end",...e,sx:e=>({gap:e.space.$2,minHeight:e.sizes.$16,padding:e.space.$4,background:l.s.mutedBackground(e),borderTopWidth:e.borderWidths.$normal,borderTopStyle:e.borderStyles.$solid,borderTopColor:e.colors.$borderAlpha100})})})},7876(e,i,t){var r=t(9763),o=t(6262),n=t(630),a=t(9230),l=t(1046),s=t(6887),c=t(8342),d=t(6300),p=t(9242),u=t(8343),S=t(7330),g=t(8125),m=t(8157);let f=({fill:e,sx:i,...t})=>(0,r.Y)(a.fv,{elementDescriptor:l.$z.configureSSOStepSection,...t,sx:[e=>({padding:e.space.$5}),e&&{flex:1},i]}),h=({onClick:e,isDisabled:i,isLoading:t,label:o="Previous"})=>{let{t:n}=(0,s._)(),c="string"==typeof o?o:n(o);return(0,r.FD)(a.$n,{elementDescriptor:l.$z.configureSSOFooterPreviousButton,variant:"outline",size:"sm",isDisabled:i,isLoading:t,onClick:e?()=>{e()}:void 0,children:[(0,r.Y)(a.In,{icon:d.A,size:"sm",sx:e=>({marginInlineEnd:e.space.$1})}),c]})};h.displayName="Step.Footer.Previous";let Y=({onClick:e,isDisabled:i,isLoading:t,label:o="Continue"})=>{let{t:n}=(0,s._)(),c="string"==typeof o?o:n(o);return(0,r.FD)(a.$n,{elementDescriptor:l.$z.configureSSOFooterContinueButton,variant:"solid",size:"sm",isDisabled:i,isLoading:t,onClick:e?()=>{e()}:void 0,children:[c,(0,r.Y)(a.In,{icon:p.A,size:"sm",sx:e=>({marginInlineStart:e.space.$1})})]})};Y.displayName="Step.Footer.Continue";let y=()=>{let{enterpriseConnection:e,enterpriseConnectionMutations:i,contentRef:t}=(0,S.t)(),s=(0,o.It)(),[d,p]=(0,n.useState)(!1);return e?(0,r.FD)(r.FK,{children:[(0,r.Y)(a.$n,{elementDescriptor:l.$z.configureSSOFooterResetButton,variant:"ghost",size:"sm",colorScheme:"danger",onClick:()=>p(!0),localizationKey:(0,c.G)("configureSSO.resetConnectionDialog.resetButton"),sx:{marginInlineEnd:"auto"}}),(0,r.Y)(g.i,{isOpen:d,onClose:()=>p(!1),confirmationValue:s?.name??"",onDelete:()=>i.deleteConnection(e.id),contentRef:t})]}):null};y.displayName="Step.Footer.Reset";let b=Object.assign(({children:e})=>(0,r.Y)(m.F,{children:e}),{Previous:h,Continue:Y,Reset:y}),O=({total:e,current:i})=>e<=1?null:(0,r.Y)(a.Ex,{elementDescriptor:l.$z.configureSSOStepCounter,colorScheme:"primary",sx:{whiteSpace:"nowrap"},children:(0,r.FD)(a.EY,{as:"span",sx:e=>({fontSize:e.fontSizes.$xs}),children:["Step ",i,"/",e]})});O.displayName="Step.Counter";let D=Object.assign(({sx:e,...i})=>(0,r.Y)(a.fv,{...i,sx:[{flex:1,minHeight:0},e]}),{Section:f,Header:({title:e,description:i,badge:t,children:o})=>{let{t:n}=(0,s._)(),c="string"==typeof e?e:n(e),d=i?"string"==typeof i?i:n(i):null;return(0,r.Y)(f,{elementDescriptor:l.$z.configureSSOStepHeader,sx:e=>({borderBottomWidth:e.borderWidths.$normal,borderBottomStyle:e.borderStyles.$solid,borderBottomColor:e.colors.$borderAlpha100}),children:(0,r.FD)(a.so,{align:"start",justify:"between",sx:e=>({gap:e.space.$4}),children:[(0,r.FD)(a.fv,{sx:e=>({gap:e.space.$2,minWidth:0}),children:[(0,r.FD)(a.so,{align:"center",sx:e=>({gap:e.space.$2,flexWrap:"wrap"}),children:[(0,r.Y)(a.DZ,{elementDescriptor:l.$z.configureSSOStepHeaderTitle,textVariant:"h2",children:c}),t]}),d&&(0,r.Y)(a.EY,{elementDescriptor:l.$z.configureSSOStepHeaderDescription,as:"p",colorScheme:"secondary",children:d})]}),o]})})},Body:({sx:e,...i})=>(0,r.Y)(a.fv,{elementDescriptor:l.$z.configureSSOStepBody,as:"main",...i,sx:[e=>({flex:1,minHeight:0,overflowY:"auto",...u.s.unstyledScrollbar(e)}),e]}),Footer:b,Counter:O});t.d(i,{},{p:D})},2537(e,i,t){var r=t(9763),o=t(630),n=t.n(o),a=t(9230),l=t(1046),s=t(9242),c=t(3693),d=t(4260);let p=({bullet:e,isCurrent:i,isCompleted:t,isReachable:o=!0,onClick:n,children:s})=>(0,r.FD)(a.dF,{elementDescriptor:l.$z.configureSSOStepperItem,isActive:i,variant:"unstyled",isDisabled:!o,onClick:n,sx:e=>({gap:e.space.$1x5,padding:0,color:i||t?e.colors.$colorForeground:e.colors.$colorMutedForeground,"&:disabled,&[data-disabled]":{opacity:1}}),children:[(0,r.Y)(a.so,{elementDescriptor:l.$z.configureSSOStepperItemBullet,isActive:i,align:"center",justify:"center",sx:e=>({width:e.sizes.$4,height:e.sizes.$4,borderRadius:e.radii.$circle,backgroundColor:t?e.colors.$success500:i?e.colors.$colorForeground:e.colors.$colorMutedForeground}),children:t?(0,r.Y)(a.In,{icon:c.A,size:"sm",sx:e=>({color:e.colors.$white})}):(0,r.Y)(a.EY,{as:"span",sx:e=>({fontSize:e.fontSizes.$xs,fontWeight:e.fontWeights.$medium,color:e.colors.$colorBackground,lineHeight:"1rem"}),children:e})}),(0,r.Y)(a.EY,{elementDescriptor:l.$z.configureSSOStepperItemLabel,as:"span",variant:"body",sx:{fontWeight:"inherit",color:"inherit"},children:s})]});p.displayName="Stepper.Item";let u=()=>(0,r.FD)(a.so,{align:"center",sx:e=>({gap:e.space.$1x5,minHeight:e.sizes.$4x5,opacity:.16}),children:[(0,r.Y)(a.az,{sx:e=>({width:e.sizes.$4,height:e.sizes.$4,borderRadius:e.radii.$circle,backgroundColor:e.colors.$colorMutedForeground})}),(0,r.Y)(a.az,{sx:e=>({width:e.sizes.$17,height:e.sizes.$1x5,borderRadius:e.radii.$md,backgroundColor:e.colors.$colorMutedForeground})})]}),S=Object.assign(({children:e})=>{let i=n().Children.toArray(e).filter(e=>n().isValidElement(e));return(0,r.Y)(a.so,{elementDescriptor:l.$z.configureSSOStepper,align:"center",sx:e=>({gap:e.space.$2,flexWrap:"wrap",[d.g.md]:{gap:e.space.$3}}),children:i.map((e,t)=>(0,r.FD)(a.L9,{sx:e=>({display:"flex",alignItems:"center",gap:e.space.$2}),children:[e,t<i.length-1&&(0,r.Y)(a.In,{elementDescriptor:l.$z.configureSSOStepperSeparator,icon:s.A,size:"md",colorScheme:"neutral",sx:{[d.g.md]:{display:"none"}}})]},t))})},{Item:p,Skeleton:({totalSteps:e=4})=>(0,r.Y)(a.so,{elementDescriptor:l.$z.configureSSOStepper,align:"center",sx:e=>({gap:e.space.$2,flexWrap:"wrap",[d.g.md]:{gap:e.space.$3}}),children:Array.from({length:e}).map((i,t)=>(0,r.FD)(n().Fragment,{children:[(0,r.Y)(u,{}),t<e-1&&(0,r.Y)(a.In,{elementDescriptor:l.$z.configureSSOStepperSeparator,icon:s.A,size:"md",colorScheme:"neutral",sx:{opacity:.16,[d.g.md]:{display:"none"}}})]},t))})});t.d(i,{},{C:S})},1182(e,i,t){t.d(i,{c:()=>a});var r=t(6262),o=t(630),n=t(85);let a=()=>{let{data:e,isLoading:i,createEnterpriseConnection:t,updateEnterpriseConnection:a,deleteEnterpriseConnection:l}=(0,r.n6)({enabled:!0}),s=e?.[0],c=(0,o.useRef)(void 0);void 0!==c.current||i||(c.current=!!s);let d=!0===c.current,p=(0,n.yh)(s)||!!s?.active,{hasSuccessfulTestRun:u,isLoading:S,isFetching:g,rows:m,totalCount:f,isPolling:h,page:Y,setPage:y,refresh:b,revalidateHasSuccessfulTestRun:O}=((e,i=!0)=>{let t=e?.id??null,[n,a]=(0,o.useState)(1),{data:l,isLoading:s,revalidate:c}=(0,r.yS)({enterpriseConnectionId:t,params:{initialPage:1,pageSize:1,status:["success"]},enabled:i}),{data:d,totalCount:p,isLoading:u,isFetching:S,isPolling:g,revalidate:m}=(0,r.yS)({enterpriseConnectionId:t,params:{initialPage:n,pageSize:5},enabled:i,keepPreviousData:!0}),f=(0,o.useCallback)(e=>{let i=e?.armPolling??!1;return Promise.all([c({armPolling:!1}),m({armPolling:i})])},[c,m]),h=(0,o.useCallback)(async()=>{let{data:e}=await c({armPolling:!1,exact:!0});return(e?.length??0)>0},[c]);return{hasSuccessfulTestRun:(l?.length??0)>0,isLoading:s||u,isFetching:S,rows:d??[],totalCount:p??0,isPolling:g,page:n,setPage:a,refresh:f,revalidateHasSuccessfulTestRun:h}})(s,p),{user:D}=(0,r.Jd)(),{session:v}=(0,r.wV)(),{organization:$}=(0,r.Z5)(),z=(0,o.useCallback)(async e=>{if(!s)return;let i=e.map(e=>e.name),t=Array.from(new Set([...s.domains??[],...i]));t.length!==(s.domains?.length??0)&&await a(s.id,{domains:t})},[s,a]),{isLoading:F,data:C,createDomain:x,prepareOwnershipVerification:I,attemptOwnershipVerification:G,revalidate:M}=(0,r.QE)({enrollmentMode:"enterprise_sso",onOwnershipVerified:z}),R=(0,o.useMemo)(()=>({createDomain:x,prepareOwnershipVerification:I,attemptOwnershipVerification:G,revalidate:M}),[x,I,G,M]),k=(0,o.useMemo)(()=>({createConnection:e=>t({provider:e,domains:C?.map(e=>e.name)}),changeProvider:async e=>(s&&await l(s.id),t({provider:e,domains:s?.domains??C?.map(e=>e.name)})),updateConnection:(e,i)=>a(e,i),setConnectionActive:(e,i)=>a(e,{active:i}),deleteConnection:e=>l(e),createTestRun:e=>{if(!$)throw Error("useOrganizationEnterpriseConnection.createTestRun called before the organization resource was loaded.");return $.createEnterpriseConnectionTestRun(e)}}),[$,C,s,t,a,l]),E=(0,o.useMemo)(()=>({rows:m,totalCount:f,isLoading:S,isFetching:g,isPolling:h,page:Y,setPage:y,refresh:b,revalidateHasSuccessfulTestRun:O}),[m,f,S,g,h,Y,y,b,O]),P=(0,o.useMemo)(()=>(0,n.vF)({connection:s,hasSuccessfulTestRun:u}),[s,u]);return{user:D,session:v,organization:$,isLoading:i||F||d&&S,enterpriseConnection:s,organizationEnterpriseConnection:P,enterpriseConnectionMutations:k,testRuns:E,organizationDomains:C,organizationDomainMutations:R}}}}]);
|
package/dist/ClerkUI.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClerkUI.d.ts","names":[],"sources":["../src/ClerkUI.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"ClerkUI.d.ts","names":[],"sources":["../src/ClerkUI.ts"],"mappings":";;;;;;;AA0BA;;;;;;;;;;;;cAAa,OAAA,YAAmB,eAAA;EAAA;SACvB,OAAA;EACP,OAAA;;;;;;;;;;;;;;;;cAoBE,QAAA,QAAgB,KAAA,EAChB,cAAA,QAAsB,mBAAA,qBACtB,OAAA,EAAS,YAAA,EACT,aAAA,EAAe,aAAA;;;;;;;;;;;;;EA4CjB,aAAA,CAAc,IAAA;IAAS,WAAA;EAAA,IAAyB,OAAA,CAAQ,iBAAA;AAAA"}
|
package/dist/ClerkUI.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { mountComponentRenderer } from "./Components.js";
|
|
4
4
|
import { MIN_CLERK_JS_VERSION } from "./constants.js";
|
|
5
|
-
import { setModuleManager } from "./internal/moduleManagerStore.js";
|
|
6
5
|
import { ClerkRuntimeError } from "@clerk/shared/error";
|
|
7
6
|
import { logger } from "@clerk/shared/logger";
|
|
8
7
|
import { isVersionAtLeast, parseVersion } from "@clerk/shared/versionCheck";
|
|
@@ -23,8 +22,8 @@ import { isVersionAtLeast, parseVersion } from "@clerk/shared/versionCheck";
|
|
|
23
22
|
* @public
|
|
24
23
|
*/
|
|
25
24
|
var ClerkUI = class ClerkUI {
|
|
26
|
-
static version = "1.25.0
|
|
27
|
-
version = "1.25.0
|
|
25
|
+
static version = "1.25.0";
|
|
26
|
+
version = "1.25.0";
|
|
28
27
|
#componentRenderer;
|
|
29
28
|
/**
|
|
30
29
|
* Creates a new `ClerkUI` instance and mounts the internal component renderer.
|
|
@@ -51,7 +50,6 @@ var ClerkUI = class ClerkUI {
|
|
|
51
50
|
else if (!parsedVersion && !moduleManager) incompatibilityMessage = `@clerk/ui@${ClerkUI.version} requires @clerk/clerk-js@>=${MIN_CLERK_JS_VERSION}, but found an incompatible version${clerkVersion ? ` (${clerkVersion})` : ""}. Please upgrade @clerk/clerk-js (or your framework SDK) to a compatible version.`;
|
|
52
51
|
if (incompatibilityMessage) if (isDevelopmentInstance) throw new ClerkRuntimeError(incompatibilityMessage, { code: "clerk_ui_version_mismatch" });
|
|
53
52
|
else logger.warnOnce(incompatibilityMessage);
|
|
54
|
-
setModuleManager(clerk, moduleManager);
|
|
55
53
|
this.#componentRenderer = mountComponentRenderer(getClerk, getEnvironment, options, moduleManager);
|
|
56
54
|
}
|
|
57
55
|
/**
|
package/dist/ClerkUI.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClerkUI.js","names":["#componentRenderer"],"sources":["../src/ClerkUI.ts"],"sourcesContent":["'use client';\n\nimport { ClerkRuntimeError } from '@clerk/shared/error';\nimport { logger } from '@clerk/shared/logger';\nimport type { ModuleManager } from '@clerk/shared/moduleManager';\nimport type { Clerk, ClerkOptions, EnvironmentResource } from '@clerk/shared/types';\nimport type { ClerkUIInstance, ComponentControls as SharedComponentControls } from '@clerk/shared/ui';\nimport { isVersionAtLeast, parseVersion } from '@clerk/shared/versionCheck';\n\nimport { type MountComponentRenderer, mountComponentRenderer } from './Components';\nimport { MIN_CLERK_JS_VERSION } from './constants';\
|
|
1
|
+
{"version":3,"file":"ClerkUI.js","names":["#componentRenderer"],"sources":["../src/ClerkUI.ts"],"sourcesContent":["'use client';\n\nimport { ClerkRuntimeError } from '@clerk/shared/error';\nimport { logger } from '@clerk/shared/logger';\nimport type { ModuleManager } from '@clerk/shared/moduleManager';\nimport type { Clerk, ClerkOptions, EnvironmentResource } from '@clerk/shared/types';\nimport type { ClerkUIInstance, ComponentControls as SharedComponentControls } from '@clerk/shared/ui';\nimport { isVersionAtLeast, parseVersion } from '@clerk/shared/versionCheck';\n\nimport { type MountComponentRenderer, mountComponentRenderer } from './Components';\nimport { MIN_CLERK_JS_VERSION } from './constants';\n\n/**\n * Core rendering engine for Clerk's prebuilt UI components.\n *\n * `ClerkUI` bootstraps the component renderer that powers Clerk's drop-in\n * authentication and user-management components (`<SignIn />`, `<UserButton />`,\n * etc.). It is created internally by Clerk SDKs when the `ui` prop is passed to\n * `ClerkProvider` and should not be instantiated directly by application code.\n *\n * This module is marked `'use client'` so that React Server Components can\n * serialize `ClerkUI` as a client reference rather than attempting to serialize\n * the class itself.\n *\n * @public\n */\nexport class ClerkUI implements ClerkUIInstance {\n static version = PACKAGE_VERSION;\n version = PACKAGE_VERSION;\n\n #componentRenderer: ReturnType<MountComponentRenderer>;\n\n /**\n * Creates a new `ClerkUI` instance and mounts the internal component renderer.\n *\n * Validates that the active `@clerk/clerk-js` version satisfies the minimum\n * required version ({@link MIN_CLERK_JS_VERSION}). In development instances a\n * mismatch throws a {@link ClerkRuntimeError}; in production it logs a warning.\n *\n * @param getClerk - Accessor that returns the active {@link Clerk} instance.\n * @param getEnvironment - Accessor that returns the current {@link EnvironmentResource}, or `null`/`undefined` if not yet loaded.\n * @param options - Global {@link ClerkOptions} forwarded to the component renderer.\n * @param moduleManager - The SDK's {@link ModuleManager} used for module resolution and lazy loading.\n * @throws {ClerkRuntimeError} When running in a development instance with an incompatible `@clerk/clerk-js` version.\n *\n * @internal\n */\n constructor(\n getClerk: () => Clerk,\n getEnvironment: () => EnvironmentResource | null | undefined,\n options: ClerkOptions,\n moduleManager: ModuleManager,\n ) {\n const clerk = getClerk();\n const clerkVersion = clerk?.version;\n const isDevelopmentInstance = clerk?.instanceType === 'development';\n const parsedVersion = parseVersion(clerkVersion ?? '');\n\n let incompatibilityMessage: string | null = null;\n\n if (parsedVersion && !isVersionAtLeast(clerkVersion, MIN_CLERK_JS_VERSION)) {\n incompatibilityMessage =\n `@clerk/ui@${ClerkUI.version} requires @clerk/clerk-js@>=${MIN_CLERK_JS_VERSION}, ` +\n `but found @clerk/clerk-js@${clerkVersion}. ` +\n `Please upgrade @clerk/clerk-js (or your framework SDK) to a compatible version.`;\n } else if (!parsedVersion && !moduleManager) {\n incompatibilityMessage =\n `@clerk/ui@${ClerkUI.version} requires @clerk/clerk-js@>=${MIN_CLERK_JS_VERSION}, ` +\n `but found an incompatible version${clerkVersion ? ` (${clerkVersion})` : ''}. ` +\n `Please upgrade @clerk/clerk-js (or your framework SDK) to a compatible version.`;\n }\n\n if (incompatibilityMessage) {\n if (isDevelopmentInstance) {\n throw new ClerkRuntimeError(incompatibilityMessage, { code: 'clerk_ui_version_mismatch' });\n } else {\n logger.warnOnce(incompatibilityMessage);\n }\n }\n\n this.#componentRenderer = mountComponentRenderer(getClerk, getEnvironment, options, moduleManager);\n }\n\n /**\n * Ensures the UI component renderer is mounted and ready.\n *\n * Returns a promise that resolves with {@link ComponentControls} once the\n * renderer is fully initialised. Subsequent calls return the same promise.\n *\n * @param opts - Optional hints for the renderer.\n * @param opts.preloadHint - An optional component name to preload assets for (e.g. `\"SignIn\"`).\n * @returns A promise resolving to {@link ComponentControls} for mounting, unmounting, and updating components.\n *\n * @public\n */\n ensureMounted(opts?: { preloadHint?: string }): Promise<SharedComponentControls> {\n return this.#componentRenderer.ensureMounted(opts as unknown as any) as Promise<SharedComponentControls>;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA0BA,IAAa,UAAb,MAAa,QAAmC;CAC9C,OAAO;CACP;CAEA;;;;;;;;;;;;;;;;CAiBA,YACE,UACA,gBACA,SACA,eACA;EACA,MAAM,QAAQ,SAAS;EACvB,MAAM,eAAe,OAAO;EAC5B,MAAM,wBAAwB,OAAO,iBAAiB;EACtD,MAAM,gBAAgB,aAAa,gBAAgB,EAAE;EAErD,IAAI,yBAAwC;EAE5C,IAAI,iBAAiB,CAAC,iBAAiB,qBAAkC,GACvE,yBACE,aAAa,QAAQ,QAAQ,8BAA8B,qBAAqB,8BACnD,aAAa;OAEvC,IAAI,CAAC,iBAAiB,CAAC,eAC5B,yBACE,aAAa,QAAQ,QAAQ,8BAA8B,qBAAqB,qCAC5C,eAAe,KAAK,aAAa,KAAK,GAAG;EAIjF,IAAI,wBACF,IAAI,uBACF,MAAM,IAAI,kBAAkB,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;OAEzF,OAAO,SAAS,sBAAsB;EAI1C,KAAKA,qBAAqB,uBAAuB,UAAU,gBAAgB,SAAS,aAAa;CACnG;;;;;;;;;;;;;CAcA,cAAc,MAAmE;EAC/E,OAAO,KAAKA,mBAAmB,cAAc,IAAsB;CACrE;AACF"}
|
package/dist/baseTheme.js
CHANGED
|
@@ -187,6 +187,12 @@ const clerkTheme = { elements: ({ theme }) => {
|
|
|
187
187
|
table: {
|
|
188
188
|
borderWidth: 0,
|
|
189
189
|
boxShadow: `0px 0px 2px 0px rgba(0, 0, 0, 0.08), 0px 1px 2px 0px rgba(25, 28, 33, 0.12), 0px 0px 0px 1px ${theme.colors.$borderAlpha100}`
|
|
190
|
+
},
|
|
191
|
+
formFieldInputShowPasswordButton: {
|
|
192
|
+
insetInlineEnd: theme.space.$0x75,
|
|
193
|
+
insetBlock: theme.space.$0x75,
|
|
194
|
+
borderRadius: `calc(${theme.radii.$md} - ${theme.space.$0x75})`,
|
|
195
|
+
"&::before": { inset: `calc(${theme.space.$0x75} * -1)` }
|
|
190
196
|
}
|
|
191
197
|
};
|
|
192
198
|
} };
|
package/dist/baseTheme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"baseTheme.js","names":[],"sources":["../src/baseTheme.ts"],"sourcesContent":["import type { InternalTheme } from './foundations';\nimport type { Appearance, Elements } from './internal/appearance';\n\nconst BORDER_SHADOW_LENGTH = '0px 0px 0px 1px';\nconst BUTTON_SOLID_SHADOW = (color: string) =>\n `${BORDER_SHADOW_LENGTH} ${color}, 0px 1px 1px 0px rgba(255, 255, 255, 0.07) inset, 0px 2px 3px 0px rgba(34, 42, 53, 0.20), 0px 1px 1px 0px rgba(0, 0, 0, 0.24)`;\nconst BUTTON_OUTLINE_SHADOW = (color: string) =>\n `${BORDER_SHADOW_LENGTH} ${color}, 0px 2px 3px -1px rgba(0, 0, 0, 0.08), 0px 1px 0px 0px rgba(0, 0, 0, 0.02)`;\n\nconst cardContentStyles = (theme: InternalTheme) => ({\n borderWidth: 0,\n boxShadow: `${theme.shadows.$cardContentShadow}, ${BORDER_SHADOW_LENGTH} ${theme.colors.$borderAlpha50}`,\n});\n\nconst inputShadowStyles = (\n theme: InternalTheme,\n colors: { idle1: string; idle2: string; hover1: string; hover2: string; focus: string },\n) => {\n const idleShadow = [\n `0px 0px 0px 1px ${colors.idle1}`,\n theme.shadows.$input.replace('{{color}}', colors.idle2),\n ].toString();\n const hoverShadow = [\n `0px 0px 0px 1px ${colors.hover1}`,\n theme.shadows.$input.replace('{{color}}', colors.hover2),\n ].toString();\n\n return {\n boxShadow: idleShadow,\n '&:hover': {\n boxShadow: hoverShadow,\n },\n '&:focus-within,&[data-focus-within=\"true\"]': {\n boxShadow: [hoverShadow, theme.shadows.$focusRing.replace('{{color}}', colors.focus)].toString(),\n },\n };\n};\n\nconst checkboxShadowStyles = (\n theme: InternalTheme,\n colors: { idle1: string; idle2: string; hover1: string; hover2: string; focus: string },\n) => {\n const idleShadow = [\n `0px 0px 0px 1px ${colors.idle1}`,\n theme.shadows.$input.replace('{{color}}', colors.idle2),\n ].toString();\n const hoverShadow = [\n `0px 0px 0px 1px ${colors.hover1}`,\n theme.shadows.$input.replace('{{color}}', colors.hover2),\n ].toString();\n\n return {\n boxShadow: idleShadow,\n '&:hover': {\n boxShadow: hoverShadow,\n },\n '&:focus-visible': {\n boxShadow: [hoverShadow, theme.shadows.$focusRing.replace('{{color}}', colors.focus)].toString(),\n },\n };\n};\n\nconst checkboxBaseStyles = (theme: InternalTheme) => ({\n padding: theme.space.$1,\n width: theme.sizes.$3x5,\n height: theme.sizes.$3x5,\n appearance: 'none' as const,\n borderRadius: theme.radii.$sm,\n backgroundSize: `${theme.sizes.$2} ${theme.sizes.$2}`,\n backgroundPosition: 'center',\n backgroundRepeat: 'no-repeat',\n '&:checked': {\n backgroundImage: `url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 8 8'%3E%3Cpath fill='${theme.colors.$white}' fill-rule='evenodd' d='M7.712.233a.889.889 0 0 1 .055 1.256C6.742 2.61 6.249 3.291 5.508 4.615c-.279.5-.589 1.194-.835 1.784a36.761 36.761 0 0 0-.382.95l-.021.057-.006.014-.001.003a.89.89 0 0 1-1.504.27L.218 4.765A.889.889 0 1 1 1.56 3.6l1.591 1.834c.235-.548.524-1.181.806-1.685.807-1.445 1.38-2.239 2.499-3.46A.889.889 0 0 1 7.712.234Z' clip-rule='evenodd'/%3E%3C/svg%3E\")`,\n backgroundColor: theme.colors.$primary500,\n },\n});\n\nconst inputStyles = (theme: InternalTheme) => ({\n borderWidth: 0,\n ...inputShadowStyles(theme, {\n idle1: theme.colors.$borderAlpha150,\n idle2: theme.colors.$borderAlpha100,\n hover1: theme.colors.$borderAlpha300,\n hover2: theme.colors.$borderAlpha150,\n focus: theme.colors.$colorRing,\n }),\n '&[data-feedback=\"error\"]': inputShadowStyles(theme, {\n idle1: theme.colors.$dangerAlpha400,\n idle2: theme.colors.$dangerAlpha200,\n hover1: theme.colors.$dangerAlpha500,\n hover2: theme.colors.$dangerAlpha200,\n focus: theme.colors.$dangerAlpha200,\n }),\n '&[data-feedback=\"warning\"]': inputShadowStyles(theme, {\n idle1: theme.colors.$warningAlpha400,\n idle2: theme.colors.$warningAlpha200,\n hover1: theme.colors.$warningAlpha500,\n hover2: theme.colors.$warningAlpha200,\n focus: theme.colors.$warningAlpha200,\n }),\n '&[data-feedback=\"success\"]': inputShadowStyles(theme, {\n idle1: theme.colors.$successAlpha400,\n idle2: theme.colors.$successAlpha200,\n hover1: theme.colors.$successAlpha500,\n hover2: theme.colors.$successAlpha200,\n focus: theme.colors.$successAlpha200,\n }),\n});\n\nconst clerkTheme: Appearance = {\n elements: ({ theme }: { theme: InternalTheme }): Elements => {\n return {\n button: {\n '&[data-variant=\"solid\"]': {\n borderWidth: '0px',\n '&:after': {\n position: 'absolute',\n content: '\"\"',\n borderRadius: 'inherit',\n zIndex: -1,\n inset: 0,\n opacity: 1,\n transitionProperty: theme.transitionProperty.$common,\n transitionDuration: theme.transitionDuration.$controls,\n background: `linear-gradient(180deg, ${theme.colors.$whiteAlpha150} 0%, ${theme.colors.$transparent} 100%)`,\n },\n '&:hover::after': {\n opacity: 0,\n },\n '&:active::after': {\n opacity: 1,\n },\n '&[data-color=\"primary\"]': {\n boxShadow: BUTTON_SOLID_SHADOW(theme.colors.$primary500),\n '&:focus': {\n boxShadow: [\n BUTTON_SOLID_SHADOW(theme.colors.$primary500),\n theme.shadows.$focusRing.replace('{{color}}', theme.colors.$colorRing),\n ].toString(),\n },\n '&:focus:not(:focus-visible)': {\n boxShadow: BUTTON_SOLID_SHADOW(theme.colors.$primary500),\n },\n '&:focus-visible': {\n boxShadow: [\n BUTTON_SOLID_SHADOW(theme.colors.$primary500),\n theme.shadows.$focusRing.replace('{{color}}', theme.colors.$colorRing),\n ].toString(),\n },\n },\n '&[data-color=\"danger\"]': {\n boxShadow: BUTTON_SOLID_SHADOW(theme.colors.$danger500),\n '&:focus': {\n boxShadow: [\n BUTTON_SOLID_SHADOW(theme.colors.$danger500),\n theme.shadows.$focusRing.replace('{{color}}', theme.colors.$dangerAlpha200),\n ].toString(),\n },\n '&:focus:not(:focus-visible)': {\n boxShadow: BUTTON_SOLID_SHADOW(theme.colors.$danger500),\n },\n '&:focus-visible': {\n boxShadow: [\n BUTTON_SOLID_SHADOW(theme.colors.$danger500),\n theme.shadows.$focusRing.replace('{{color}}', theme.colors.$dangerAlpha200),\n ].toString(),\n },\n },\n },\n '&[data-variant=\"outline\"]': {\n borderWidth: 0,\n boxShadow: BUTTON_OUTLINE_SHADOW(theme.colors.$borderAlpha100),\n '&:focus': {\n boxShadow: [\n BUTTON_OUTLINE_SHADOW(theme.colors.$borderAlpha100),\n theme.shadows.$focusRing.replace('{{color}}', theme.colors.$colorRing),\n ].toString(),\n },\n '&:focus:not(:focus-visible)': {\n boxShadow: BUTTON_OUTLINE_SHADOW(theme.colors.$borderAlpha100),\n },\n '&:focus-visible': {\n boxShadow: [\n BUTTON_OUTLINE_SHADOW(theme.colors.$borderAlpha100),\n theme.shadows.$focusRing.replace('{{color}}', theme.colors.$colorRing),\n ].toString(),\n },\n },\n '&[data-variant=\"bordered\"]': {\n borderWidth: 0,\n boxShadow: BUTTON_OUTLINE_SHADOW(theme.colors.$borderAlpha100),\n '&:focus': {\n boxShadow: [\n BUTTON_OUTLINE_SHADOW(theme.colors.$borderAlpha100),\n theme.shadows.$focusRing.replace('{{color}}', theme.colors.$colorRing),\n ].toString(),\n },\n '&:focus:not(:focus-visible)': {\n boxShadow: BUTTON_OUTLINE_SHADOW(theme.colors.$borderAlpha100),\n },\n '&:focus-visible': {\n boxShadow: [\n BUTTON_OUTLINE_SHADOW(theme.colors.$borderAlpha100),\n theme.shadows.$focusRing.replace('{{color}}', theme.colors.$colorRing),\n ].toString(),\n },\n },\n },\n badge: {\n borderWidth: 0,\n margin: '1px',\n '&[data-color=\"primary\"]': {\n boxShadow: `${BORDER_SHADOW_LENGTH} ${theme.colors.$borderAlpha100}, ${theme.shadows.$badge}`,\n },\n '&[data-color=\"danger\"]': {\n boxShadow: `${BORDER_SHADOW_LENGTH} ${theme.colors.$dangerAlpha300}, ${theme.shadows.$badge}`,\n },\n '&[data-color=\"success\"]': {\n boxShadow: `${BORDER_SHADOW_LENGTH} ${theme.colors.$successAlpha300}, ${theme.shadows.$badge}`,\n },\n '&[data-color=\"warning\"]': {\n boxShadow: `${BORDER_SHADOW_LENGTH} ${theme.colors.$warningAlpha300}, ${theme.shadows.$badge}`,\n },\n },\n input: {\n '&[data-variant=\"default\"]': {\n ...inputStyles(theme),\n },\n },\n checkbox: {\n ...checkboxBaseStyles(theme),\n ...checkboxShadowStyles(theme, {\n idle1: theme.colors.$neutralAlpha150,\n idle2: theme.colors.$neutralAlpha100,\n hover1: theme.colors.$neutralAlpha300,\n hover2: theme.colors.$neutralAlpha150,\n focus: theme.colors.$neutralAlpha150,\n }),\n border: 'none',\n '&:checked': {\n ...checkboxBaseStyles(theme)['&:checked'],\n borderColor: theme.colors.$transparent,\n },\n },\n tagInputContainer: {\n ...inputStyles(theme),\n },\n tagPillContainer: {\n borderWidth: 0,\n boxShadow: `${BORDER_SHADOW_LENGTH} ${theme.colors.$borderAlpha100}, ${theme.shadows.$badge}`,\n },\n phoneInputBox: {\n ...inputStyles(theme),\n },\n formInputGroup: {\n ...inputStyles(theme),\n },\n selectSearchInput__countryCode: {\n boxShadow: 'none',\n '&:focus-visible': { boxShadow: 'none' },\n },\n cardBox: {\n borderWidth: 0,\n boxShadow: `${theme.shadows.$cardBoxShadow}, ${BORDER_SHADOW_LENGTH} ${theme.colors.$borderAlpha100}`,\n },\n drawerContent: {\n borderWidth: 0,\n boxShadow: `${theme.shadows.$cardBoxShadow}, ${BORDER_SHADOW_LENGTH} ${theme.colors.$borderAlpha100}`,\n },\n popoverBox: {\n borderWidth: 0,\n boxShadow: `${theme.shadows.$cardBoxShadow}, ${BORDER_SHADOW_LENGTH} ${theme.colors.$borderAlpha100}`,\n },\n card: {\n ...cardContentStyles(theme),\n },\n pricingTableCard: {\n '&[data-variant=\"default\"]': {\n borderWidth: 0,\n boxShadow: `${theme.shadows.$cardBoxShadow}, ${BORDER_SHADOW_LENGTH} ${theme.colors.$borderAlpha100}`,\n },\n '&[data-variant=\"compact\"]': {\n borderWidth: 0,\n boxShadow: `0px 0px 2px 0px rgba(0, 0, 0, 0.08), 0px 1px 2px 0px rgba(25, 28, 33, 0.12), 0px 0px 0px 1px ${theme.colors.$borderAlpha100}`,\n },\n },\n scrollBox: {\n ...cardContentStyles(theme),\n },\n userButtonPopoverMain: {\n ...cardContentStyles(theme),\n },\n organizationSwitcherPopoverMain: {\n ...cardContentStyles(theme),\n },\n menuList: {\n borderWidth: 0,\n boxShadow: `${theme.shadows.$menuShadow}, ${BORDER_SHADOW_LENGTH} ${theme.colors.$borderAlpha100}`,\n },\n actionCard: {\n borderWidth: 0,\n boxShadow: `0px 0px 2px 0px rgba(0, 0, 0, 0.08), 0px 1px 2px 0px rgba(25, 28, 33, 0.12), 0px 0px 0px 1px ${theme.colors.$borderAlpha100}`,\n },\n table: {\n borderWidth: 0,\n boxShadow: `0px 0px 2px 0px rgba(0, 0, 0, 0.08), 0px 1px 2px 0px rgba(25, 28, 33, 0.12), 0px 0px 0px 1px ${theme.colors.$borderAlpha100}`,\n },\n };\n },\n} satisfies Appearance;\n\nconst simpleTheme: Appearance = {\n // @ts-expect-error Internal API for simple theme detection\n simpleStyles: true,\n elements: {},\n} satisfies Appearance;\n\nexport const getBaseTheme = (theme: 'clerk' | 'simple' = 'clerk'): Appearance => {\n switch (theme) {\n case 'simple':\n return simpleTheme;\n case 'clerk':\n default:\n return clerkTheme;\n }\n};\n\nexport const baseTheme = clerkTheme;\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"baseTheme.js","names":[],"sources":["../src/baseTheme.ts"],"sourcesContent":["import type { InternalTheme } from './foundations';\nimport type { Appearance, Elements } from './internal/appearance';\n\nconst BORDER_SHADOW_LENGTH = '0px 0px 0px 1px';\nconst BUTTON_SOLID_SHADOW = (color: string) =>\n `${BORDER_SHADOW_LENGTH} ${color}, 0px 1px 1px 0px rgba(255, 255, 255, 0.07) inset, 0px 2px 3px 0px rgba(34, 42, 53, 0.20), 0px 1px 1px 0px rgba(0, 0, 0, 0.24)`;\nconst BUTTON_OUTLINE_SHADOW = (color: string) =>\n `${BORDER_SHADOW_LENGTH} ${color}, 0px 2px 3px -1px rgba(0, 0, 0, 0.08), 0px 1px 0px 0px rgba(0, 0, 0, 0.02)`;\n\nconst cardContentStyles = (theme: InternalTheme) => ({\n borderWidth: 0,\n boxShadow: `${theme.shadows.$cardContentShadow}, ${BORDER_SHADOW_LENGTH} ${theme.colors.$borderAlpha50}`,\n});\n\nconst inputShadowStyles = (\n theme: InternalTheme,\n colors: { idle1: string; idle2: string; hover1: string; hover2: string; focus: string },\n) => {\n const idleShadow = [\n `0px 0px 0px 1px ${colors.idle1}`,\n theme.shadows.$input.replace('{{color}}', colors.idle2),\n ].toString();\n const hoverShadow = [\n `0px 0px 0px 1px ${colors.hover1}`,\n theme.shadows.$input.replace('{{color}}', colors.hover2),\n ].toString();\n\n return {\n boxShadow: idleShadow,\n '&:hover': {\n boxShadow: hoverShadow,\n },\n '&:focus-within,&[data-focus-within=\"true\"]': {\n boxShadow: [hoverShadow, theme.shadows.$focusRing.replace('{{color}}', colors.focus)].toString(),\n },\n };\n};\n\nconst checkboxShadowStyles = (\n theme: InternalTheme,\n colors: { idle1: string; idle2: string; hover1: string; hover2: string; focus: string },\n) => {\n const idleShadow = [\n `0px 0px 0px 1px ${colors.idle1}`,\n theme.shadows.$input.replace('{{color}}', colors.idle2),\n ].toString();\n const hoverShadow = [\n `0px 0px 0px 1px ${colors.hover1}`,\n theme.shadows.$input.replace('{{color}}', colors.hover2),\n ].toString();\n\n return {\n boxShadow: idleShadow,\n '&:hover': {\n boxShadow: hoverShadow,\n },\n '&:focus-visible': {\n boxShadow: [hoverShadow, theme.shadows.$focusRing.replace('{{color}}', colors.focus)].toString(),\n },\n };\n};\n\nconst checkboxBaseStyles = (theme: InternalTheme) => ({\n padding: theme.space.$1,\n width: theme.sizes.$3x5,\n height: theme.sizes.$3x5,\n appearance: 'none' as const,\n borderRadius: theme.radii.$sm,\n backgroundSize: `${theme.sizes.$2} ${theme.sizes.$2}`,\n backgroundPosition: 'center',\n backgroundRepeat: 'no-repeat',\n '&:checked': {\n backgroundImage: `url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 8 8'%3E%3Cpath fill='${theme.colors.$white}' fill-rule='evenodd' d='M7.712.233a.889.889 0 0 1 .055 1.256C6.742 2.61 6.249 3.291 5.508 4.615c-.279.5-.589 1.194-.835 1.784a36.761 36.761 0 0 0-.382.95l-.021.057-.006.014-.001.003a.89.89 0 0 1-1.504.27L.218 4.765A.889.889 0 1 1 1.56 3.6l1.591 1.834c.235-.548.524-1.181.806-1.685.807-1.445 1.38-2.239 2.499-3.46A.889.889 0 0 1 7.712.234Z' clip-rule='evenodd'/%3E%3C/svg%3E\")`,\n backgroundColor: theme.colors.$primary500,\n },\n});\n\nconst inputStyles = (theme: InternalTheme) => ({\n borderWidth: 0,\n ...inputShadowStyles(theme, {\n idle1: theme.colors.$borderAlpha150,\n idle2: theme.colors.$borderAlpha100,\n hover1: theme.colors.$borderAlpha300,\n hover2: theme.colors.$borderAlpha150,\n focus: theme.colors.$colorRing,\n }),\n '&[data-feedback=\"error\"]': inputShadowStyles(theme, {\n idle1: theme.colors.$dangerAlpha400,\n idle2: theme.colors.$dangerAlpha200,\n hover1: theme.colors.$dangerAlpha500,\n hover2: theme.colors.$dangerAlpha200,\n focus: theme.colors.$dangerAlpha200,\n }),\n '&[data-feedback=\"warning\"]': inputShadowStyles(theme, {\n idle1: theme.colors.$warningAlpha400,\n idle2: theme.colors.$warningAlpha200,\n hover1: theme.colors.$warningAlpha500,\n hover2: theme.colors.$warningAlpha200,\n focus: theme.colors.$warningAlpha200,\n }),\n '&[data-feedback=\"success\"]': inputShadowStyles(theme, {\n idle1: theme.colors.$successAlpha400,\n idle2: theme.colors.$successAlpha200,\n hover1: theme.colors.$successAlpha500,\n hover2: theme.colors.$successAlpha200,\n focus: theme.colors.$successAlpha200,\n }),\n});\n\nconst clerkTheme: Appearance = {\n elements: ({ theme }: { theme: InternalTheme }): Elements => {\n return {\n button: {\n '&[data-variant=\"solid\"]': {\n borderWidth: '0px',\n '&:after': {\n position: 'absolute',\n content: '\"\"',\n borderRadius: 'inherit',\n zIndex: -1,\n inset: 0,\n opacity: 1,\n transitionProperty: theme.transitionProperty.$common,\n transitionDuration: theme.transitionDuration.$controls,\n background: `linear-gradient(180deg, ${theme.colors.$whiteAlpha150} 0%, ${theme.colors.$transparent} 100%)`,\n },\n '&:hover::after': {\n opacity: 0,\n },\n '&:active::after': {\n opacity: 1,\n },\n '&[data-color=\"primary\"]': {\n boxShadow: BUTTON_SOLID_SHADOW(theme.colors.$primary500),\n '&:focus': {\n boxShadow: [\n BUTTON_SOLID_SHADOW(theme.colors.$primary500),\n theme.shadows.$focusRing.replace('{{color}}', theme.colors.$colorRing),\n ].toString(),\n },\n '&:focus:not(:focus-visible)': {\n boxShadow: BUTTON_SOLID_SHADOW(theme.colors.$primary500),\n },\n '&:focus-visible': {\n boxShadow: [\n BUTTON_SOLID_SHADOW(theme.colors.$primary500),\n theme.shadows.$focusRing.replace('{{color}}', theme.colors.$colorRing),\n ].toString(),\n },\n },\n '&[data-color=\"danger\"]': {\n boxShadow: BUTTON_SOLID_SHADOW(theme.colors.$danger500),\n '&:focus': {\n boxShadow: [\n BUTTON_SOLID_SHADOW(theme.colors.$danger500),\n theme.shadows.$focusRing.replace('{{color}}', theme.colors.$dangerAlpha200),\n ].toString(),\n },\n '&:focus:not(:focus-visible)': {\n boxShadow: BUTTON_SOLID_SHADOW(theme.colors.$danger500),\n },\n '&:focus-visible': {\n boxShadow: [\n BUTTON_SOLID_SHADOW(theme.colors.$danger500),\n theme.shadows.$focusRing.replace('{{color}}', theme.colors.$dangerAlpha200),\n ].toString(),\n },\n },\n },\n '&[data-variant=\"outline\"]': {\n borderWidth: 0,\n boxShadow: BUTTON_OUTLINE_SHADOW(theme.colors.$borderAlpha100),\n '&:focus': {\n boxShadow: [\n BUTTON_OUTLINE_SHADOW(theme.colors.$borderAlpha100),\n theme.shadows.$focusRing.replace('{{color}}', theme.colors.$colorRing),\n ].toString(),\n },\n '&:focus:not(:focus-visible)': {\n boxShadow: BUTTON_OUTLINE_SHADOW(theme.colors.$borderAlpha100),\n },\n '&:focus-visible': {\n boxShadow: [\n BUTTON_OUTLINE_SHADOW(theme.colors.$borderAlpha100),\n theme.shadows.$focusRing.replace('{{color}}', theme.colors.$colorRing),\n ].toString(),\n },\n },\n '&[data-variant=\"bordered\"]': {\n borderWidth: 0,\n boxShadow: BUTTON_OUTLINE_SHADOW(theme.colors.$borderAlpha100),\n '&:focus': {\n boxShadow: [\n BUTTON_OUTLINE_SHADOW(theme.colors.$borderAlpha100),\n theme.shadows.$focusRing.replace('{{color}}', theme.colors.$colorRing),\n ].toString(),\n },\n '&:focus:not(:focus-visible)': {\n boxShadow: BUTTON_OUTLINE_SHADOW(theme.colors.$borderAlpha100),\n },\n '&:focus-visible': {\n boxShadow: [\n BUTTON_OUTLINE_SHADOW(theme.colors.$borderAlpha100),\n theme.shadows.$focusRing.replace('{{color}}', theme.colors.$colorRing),\n ].toString(),\n },\n },\n },\n badge: {\n borderWidth: 0,\n margin: '1px',\n '&[data-color=\"primary\"]': {\n boxShadow: `${BORDER_SHADOW_LENGTH} ${theme.colors.$borderAlpha100}, ${theme.shadows.$badge}`,\n },\n '&[data-color=\"danger\"]': {\n boxShadow: `${BORDER_SHADOW_LENGTH} ${theme.colors.$dangerAlpha300}, ${theme.shadows.$badge}`,\n },\n '&[data-color=\"success\"]': {\n boxShadow: `${BORDER_SHADOW_LENGTH} ${theme.colors.$successAlpha300}, ${theme.shadows.$badge}`,\n },\n '&[data-color=\"warning\"]': {\n boxShadow: `${BORDER_SHADOW_LENGTH} ${theme.colors.$warningAlpha300}, ${theme.shadows.$badge}`,\n },\n },\n input: {\n '&[data-variant=\"default\"]': {\n ...inputStyles(theme),\n },\n },\n checkbox: {\n ...checkboxBaseStyles(theme),\n ...checkboxShadowStyles(theme, {\n idle1: theme.colors.$neutralAlpha150,\n idle2: theme.colors.$neutralAlpha100,\n hover1: theme.colors.$neutralAlpha300,\n hover2: theme.colors.$neutralAlpha150,\n focus: theme.colors.$neutralAlpha150,\n }),\n border: 'none',\n '&:checked': {\n ...checkboxBaseStyles(theme)['&:checked'],\n borderColor: theme.colors.$transparent,\n },\n },\n tagInputContainer: {\n ...inputStyles(theme),\n },\n tagPillContainer: {\n borderWidth: 0,\n boxShadow: `${BORDER_SHADOW_LENGTH} ${theme.colors.$borderAlpha100}, ${theme.shadows.$badge}`,\n },\n phoneInputBox: {\n ...inputStyles(theme),\n },\n formInputGroup: {\n ...inputStyles(theme),\n },\n selectSearchInput__countryCode: {\n boxShadow: 'none',\n '&:focus-visible': { boxShadow: 'none' },\n },\n cardBox: {\n borderWidth: 0,\n boxShadow: `${theme.shadows.$cardBoxShadow}, ${BORDER_SHADOW_LENGTH} ${theme.colors.$borderAlpha100}`,\n },\n drawerContent: {\n borderWidth: 0,\n boxShadow: `${theme.shadows.$cardBoxShadow}, ${BORDER_SHADOW_LENGTH} ${theme.colors.$borderAlpha100}`,\n },\n popoverBox: {\n borderWidth: 0,\n boxShadow: `${theme.shadows.$cardBoxShadow}, ${BORDER_SHADOW_LENGTH} ${theme.colors.$borderAlpha100}`,\n },\n card: {\n ...cardContentStyles(theme),\n },\n pricingTableCard: {\n '&[data-variant=\"default\"]': {\n borderWidth: 0,\n boxShadow: `${theme.shadows.$cardBoxShadow}, ${BORDER_SHADOW_LENGTH} ${theme.colors.$borderAlpha100}`,\n },\n '&[data-variant=\"compact\"]': {\n borderWidth: 0,\n boxShadow: `0px 0px 2px 0px rgba(0, 0, 0, 0.08), 0px 1px 2px 0px rgba(25, 28, 33, 0.12), 0px 0px 0px 1px ${theme.colors.$borderAlpha100}`,\n },\n },\n scrollBox: {\n ...cardContentStyles(theme),\n },\n userButtonPopoverMain: {\n ...cardContentStyles(theme),\n },\n organizationSwitcherPopoverMain: {\n ...cardContentStyles(theme),\n },\n menuList: {\n borderWidth: 0,\n boxShadow: `${theme.shadows.$menuShadow}, ${BORDER_SHADOW_LENGTH} ${theme.colors.$borderAlpha100}`,\n },\n actionCard: {\n borderWidth: 0,\n boxShadow: `0px 0px 2px 0px rgba(0, 0, 0, 0.08), 0px 1px 2px 0px rgba(25, 28, 33, 0.12), 0px 0px 0px 1px ${theme.colors.$borderAlpha100}`,\n },\n table: {\n borderWidth: 0,\n boxShadow: `0px 0px 2px 0px rgba(0, 0, 0, 0.08), 0px 1px 2px 0px rgba(25, 28, 33, 0.12), 0px 0px 0px 1px ${theme.colors.$borderAlpha100}`,\n },\n formFieldInputShowPasswordButton: {\n insetInlineEnd: theme.space.$0x75,\n insetBlock: theme.space.$0x75,\n borderRadius: `calc(${theme.radii.$md} - ${theme.space.$0x75})`,\n '&::before': {\n inset: `calc(${theme.space.$0x75} * -1)`,\n },\n },\n };\n },\n} satisfies Appearance;\n\nconst simpleTheme: Appearance = {\n // @ts-expect-error Internal API for simple theme detection\n simpleStyles: true,\n elements: {},\n} satisfies Appearance;\n\nexport const getBaseTheme = (theme: 'clerk' | 'simple' = 'clerk'): Appearance => {\n switch (theme) {\n case 'simple':\n return simpleTheme;\n case 'clerk':\n default:\n return clerkTheme;\n }\n};\n\nexport const baseTheme = clerkTheme;\n"],"mappings":";AAGA,MAAM,uBAAuB;AAC7B,MAAM,uBAAuB,UAC3B,GAAG,qBAAqB,GAAG,MAAM;AACnC,MAAM,yBAAyB,UAC7B,GAAG,qBAAqB,GAAG,MAAM;AAEnC,MAAM,qBAAqB,WAA0B;CACnD,aAAa;CACb,WAAW,GAAG,MAAM,QAAQ,mBAAmB,IAAI,qBAAqB,GAAG,MAAM,OAAO;AAC1F;AAEA,MAAM,qBACJ,OACA,WACG;CACH,MAAM,aAAa,CACjB,mBAAmB,OAAO,SAC1B,MAAM,QAAQ,OAAO,QAAQ,aAAa,OAAO,KAAK,CACxD,CAAC,CAAC,SAAS;CACX,MAAM,cAAc,CAClB,mBAAmB,OAAO,UAC1B,MAAM,QAAQ,OAAO,QAAQ,aAAa,OAAO,MAAM,CACzD,CAAC,CAAC,SAAS;CAEX,OAAO;EACL,WAAW;EACX,WAAW,EACT,WAAW,YACb;EACA,gDAA8C,EAC5C,WAAW,CAAC,aAAa,MAAM,QAAQ,WAAW,QAAQ,aAAa,OAAO,KAAK,CAAC,CAAC,CAAC,SAAS,EACjG;CACF;AACF;AAEA,MAAM,wBACJ,OACA,WACG;CACH,MAAM,aAAa,CACjB,mBAAmB,OAAO,SAC1B,MAAM,QAAQ,OAAO,QAAQ,aAAa,OAAO,KAAK,CACxD,CAAC,CAAC,SAAS;CACX,MAAM,cAAc,CAClB,mBAAmB,OAAO,UAC1B,MAAM,QAAQ,OAAO,QAAQ,aAAa,OAAO,MAAM,CACzD,CAAC,CAAC,SAAS;CAEX,OAAO;EACL,WAAW;EACX,WAAW,EACT,WAAW,YACb;EACA,mBAAmB,EACjB,WAAW,CAAC,aAAa,MAAM,QAAQ,WAAW,QAAQ,aAAa,OAAO,KAAK,CAAC,CAAC,CAAC,SAAS,EACjG;CACF;AACF;AAEA,MAAM,sBAAsB,WAA0B;CACpD,SAAS,MAAM,MAAM;CACrB,OAAO,MAAM,MAAM;CACnB,QAAQ,MAAM,MAAM;CACpB,YAAY;CACZ,cAAc,MAAM,MAAM;CAC1B,gBAAgB,GAAG,MAAM,MAAM,GAAG,GAAG,MAAM,MAAM;CACjD,oBAAoB;CACpB,kBAAkB;CAClB,aAAa;EACX,iBAAiB,mHAAmH,MAAM,OAAO,OAAO;EACxJ,iBAAiB,MAAM,OAAO;CAChC;AACF;AAEA,MAAM,eAAe,WAA0B;CAC7C,aAAa;CACb,GAAG,kBAAkB,OAAO;EAC1B,OAAO,MAAM,OAAO;EACpB,OAAO,MAAM,OAAO;EACpB,QAAQ,MAAM,OAAO;EACrB,QAAQ,MAAM,OAAO;EACrB,OAAO,MAAM,OAAO;CACtB,CAAC;CACD,8BAA4B,kBAAkB,OAAO;EACnD,OAAO,MAAM,OAAO;EACpB,OAAO,MAAM,OAAO;EACpB,QAAQ,MAAM,OAAO;EACrB,QAAQ,MAAM,OAAO;EACrB,OAAO,MAAM,OAAO;CACtB,CAAC;CACD,gCAA8B,kBAAkB,OAAO;EACrD,OAAO,MAAM,OAAO;EACpB,OAAO,MAAM,OAAO;EACpB,QAAQ,MAAM,OAAO;EACrB,QAAQ,MAAM,OAAO;EACrB,OAAO,MAAM,OAAO;CACtB,CAAC;CACD,gCAA8B,kBAAkB,OAAO;EACrD,OAAO,MAAM,OAAO;EACpB,OAAO,MAAM,OAAO;EACpB,QAAQ,MAAM,OAAO;EACrB,QAAQ,MAAM,OAAO;EACrB,OAAO,MAAM,OAAO;CACtB,CAAC;AACH;AAEA,MAAM,aAAyB,EAC7B,WAAW,EAAE,YAAgD;CAC3D,OAAO;EACL,QAAQ;GACN,6BAA2B;IACzB,aAAa;IACb,WAAW;KACT,UAAU;KACV,SAAS;KACT,cAAc;KACd,QAAQ;KACR,OAAO;KACP,SAAS;KACT,oBAAoB,MAAM,mBAAmB;KAC7C,oBAAoB,MAAM,mBAAmB;KAC7C,YAAY,2BAA2B,MAAM,OAAO,eAAe,OAAO,MAAM,OAAO,aAAa;IACtG;IACA,kBAAkB,EAChB,SAAS,EACX;IACA,mBAAmB,EACjB,SAAS,EACX;IACA,6BAA2B;KACzB,WAAW,oBAAoB,MAAM,OAAO,WAAW;KACvD,WAAW,EACT,WAAW,CACT,oBAAoB,MAAM,OAAO,WAAW,GAC5C,MAAM,QAAQ,WAAW,QAAQ,aAAa,MAAM,OAAO,UAAU,CACvE,CAAC,CAAC,SAAS,EACb;KACA,+BAA+B,EAC7B,WAAW,oBAAoB,MAAM,OAAO,WAAW,EACzD;KACA,mBAAmB,EACjB,WAAW,CACT,oBAAoB,MAAM,OAAO,WAAW,GAC5C,MAAM,QAAQ,WAAW,QAAQ,aAAa,MAAM,OAAO,UAAU,CACvE,CAAC,CAAC,SAAS,EACb;IACF;IACA,4BAA0B;KACxB,WAAW,oBAAoB,MAAM,OAAO,UAAU;KACtD,WAAW,EACT,WAAW,CACT,oBAAoB,MAAM,OAAO,UAAU,GAC3C,MAAM,QAAQ,WAAW,QAAQ,aAAa,MAAM,OAAO,eAAe,CAC5E,CAAC,CAAC,SAAS,EACb;KACA,+BAA+B,EAC7B,WAAW,oBAAoB,MAAM,OAAO,UAAU,EACxD;KACA,mBAAmB,EACjB,WAAW,CACT,oBAAoB,MAAM,OAAO,UAAU,GAC3C,MAAM,QAAQ,WAAW,QAAQ,aAAa,MAAM,OAAO,eAAe,CAC5E,CAAC,CAAC,SAAS,EACb;IACF;GACF;GACA,+BAA6B;IAC3B,aAAa;IACb,WAAW,sBAAsB,MAAM,OAAO,eAAe;IAC7D,WAAW,EACT,WAAW,CACT,sBAAsB,MAAM,OAAO,eAAe,GAClD,MAAM,QAAQ,WAAW,QAAQ,aAAa,MAAM,OAAO,UAAU,CACvE,CAAC,CAAC,SAAS,EACb;IACA,+BAA+B,EAC7B,WAAW,sBAAsB,MAAM,OAAO,eAAe,EAC/D;IACA,mBAAmB,EACjB,WAAW,CACT,sBAAsB,MAAM,OAAO,eAAe,GAClD,MAAM,QAAQ,WAAW,QAAQ,aAAa,MAAM,OAAO,UAAU,CACvE,CAAC,CAAC,SAAS,EACb;GACF;GACA,gCAA8B;IAC5B,aAAa;IACb,WAAW,sBAAsB,MAAM,OAAO,eAAe;IAC7D,WAAW,EACT,WAAW,CACT,sBAAsB,MAAM,OAAO,eAAe,GAClD,MAAM,QAAQ,WAAW,QAAQ,aAAa,MAAM,OAAO,UAAU,CACvE,CAAC,CAAC,SAAS,EACb;IACA,+BAA+B,EAC7B,WAAW,sBAAsB,MAAM,OAAO,eAAe,EAC/D;IACA,mBAAmB,EACjB,WAAW,CACT,sBAAsB,MAAM,OAAO,eAAe,GAClD,MAAM,QAAQ,WAAW,QAAQ,aAAa,MAAM,OAAO,UAAU,CACvE,CAAC,CAAC,SAAS,EACb;GACF;EACF;EACA,OAAO;GACL,aAAa;GACb,QAAQ;GACR,6BAA2B,EACzB,WAAW,GAAG,qBAAqB,GAAG,MAAM,OAAO,gBAAgB,IAAI,MAAM,QAAQ,SACvF;GACA,4BAA0B,EACxB,WAAW,GAAG,qBAAqB,GAAG,MAAM,OAAO,gBAAgB,IAAI,MAAM,QAAQ,SACvF;GACA,6BAA2B,EACzB,WAAW,GAAG,qBAAqB,GAAG,MAAM,OAAO,iBAAiB,IAAI,MAAM,QAAQ,SACxF;GACA,6BAA2B,EACzB,WAAW,GAAG,qBAAqB,GAAG,MAAM,OAAO,iBAAiB,IAAI,MAAM,QAAQ,SACxF;EACF;EACA,OAAO,EACL,+BAA6B,EAC3B,GAAG,YAAY,KAAK,EACtB,EACF;EACA,UAAU;GACR,GAAG,mBAAmB,KAAK;GAC3B,GAAG,qBAAqB,OAAO;IAC7B,OAAO,MAAM,OAAO;IACpB,OAAO,MAAM,OAAO;IACpB,QAAQ,MAAM,OAAO;IACrB,QAAQ,MAAM,OAAO;IACrB,OAAO,MAAM,OAAO;GACtB,CAAC;GACD,QAAQ;GACR,aAAa;IACX,GAAG,mBAAmB,KAAK,CAAC,CAAC;IAC7B,aAAa,MAAM,OAAO;GAC5B;EACF;EACA,mBAAmB,EACjB,GAAG,YAAY,KAAK,EACtB;EACA,kBAAkB;GAChB,aAAa;GACb,WAAW,GAAG,qBAAqB,GAAG,MAAM,OAAO,gBAAgB,IAAI,MAAM,QAAQ;EACvF;EACA,eAAe,EACb,GAAG,YAAY,KAAK,EACtB;EACA,gBAAgB,EACd,GAAG,YAAY,KAAK,EACtB;EACA,gCAAgC;GAC9B,WAAW;GACX,mBAAmB,EAAE,WAAW,OAAO;EACzC;EACA,SAAS;GACP,aAAa;GACb,WAAW,GAAG,MAAM,QAAQ,eAAe,IAAI,qBAAqB,GAAG,MAAM,OAAO;EACtF;EACA,eAAe;GACb,aAAa;GACb,WAAW,GAAG,MAAM,QAAQ,eAAe,IAAI,qBAAqB,GAAG,MAAM,OAAO;EACtF;EACA,YAAY;GACV,aAAa;GACb,WAAW,GAAG,MAAM,QAAQ,eAAe,IAAI,qBAAqB,GAAG,MAAM,OAAO;EACtF;EACA,MAAM,EACJ,GAAG,kBAAkB,KAAK,EAC5B;EACA,kBAAkB;GAChB,+BAA6B;IAC3B,aAAa;IACb,WAAW,GAAG,MAAM,QAAQ,eAAe,IAAI,qBAAqB,GAAG,MAAM,OAAO;GACtF;GACA,+BAA6B;IAC3B,aAAa;IACb,WAAW,gGAAgG,MAAM,OAAO;GAC1H;EACF;EACA,WAAW,EACT,GAAG,kBAAkB,KAAK,EAC5B;EACA,uBAAuB,EACrB,GAAG,kBAAkB,KAAK,EAC5B;EACA,iCAAiC,EAC/B,GAAG,kBAAkB,KAAK,EAC5B;EACA,UAAU;GACR,aAAa;GACb,WAAW,GAAG,MAAM,QAAQ,YAAY,IAAI,qBAAqB,GAAG,MAAM,OAAO;EACnF;EACA,YAAY;GACV,aAAa;GACb,WAAW,gGAAgG,MAAM,OAAO;EAC1H;EACA,OAAO;GACL,aAAa;GACb,WAAW,gGAAgG,MAAM,OAAO;EAC1H;EACA,kCAAkC;GAChC,gBAAgB,MAAM,MAAM;GAC5B,YAAY,MAAM,MAAM;GACxB,cAAc,QAAQ,MAAM,MAAM,IAAI,KAAK,MAAM,MAAM,MAAM;GAC7D,aAAa,EACX,OAAO,QAAQ,MAAM,MAAM,MAAM,QACnC;EACF;CACF;AACF,EACF;AAEA,MAAM,cAA0B;CAE9B,cAAc;CACd,UAAU,CAAC;AACb;AAEA,MAAa,gBAAgB,QAA4B,YAAwB;CAC/E,QAAQ,OAAR;EACE,KAAK,UACH,OAAO;EAET,SACE,OAAO;CACX;AACF;AAEA,MAAa,YAAY"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { descriptors } from "../customizables/elementDescriptors.js";
|
|
2
|
-
import { Flex, Grid, SimpleButton, Spinner, Text } from "../customizables/index.js";
|
|
3
2
|
import { useCardState } from "../elements/contexts/index.js";
|
|
3
|
+
import { Flex, Grid, SimpleButton, Spinner, Text } from "../customizables/index.js";
|
|
4
4
|
import { Card } from "../elements/Card/index.js";
|
|
5
5
|
import { Header } from "../elements/Header.js";
|
|
6
6
|
import { useState } from "react";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { localizationKeys } from "../localization/localizationKeys.js";
|
|
1
2
|
import SvgArrowLeftRight from "../icons/arrow-left-right.js";
|
|
2
3
|
import SvgExclamationTriangle from "../icons/exclamation-triangle.js";
|
|
3
4
|
import SvgShieldCheck from "../icons/shield-check.js";
|
|
4
|
-
import { localizationKeys } from "../localization/localizationKeys.js";
|
|
5
5
|
import { animations } from "../styledSystem/animations.js";
|
|
6
6
|
import { descriptors } from "../customizables/elementDescriptors.js";
|
|
7
|
+
import { useCardState } from "../elements/contexts/index.js";
|
|
7
8
|
import { Flow } from "../customizables/Flow.js";
|
|
8
9
|
import { Col, Flex, Icon, Spinner, Text } from "../customizables/index.js";
|
|
9
|
-
import { useCardState } from "../elements/contexts/index.js";
|
|
10
10
|
import { Card } from "../elements/Card/index.js";
|
|
11
11
|
import { Header } from "../elements/Header.js";
|
|
12
12
|
import React from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { localizationKeys } from "../localization/localizationKeys.js";
|
|
2
|
-
import { useLocalizations } from "../localization/makeLocalizable.js";
|
|
3
2
|
import { formatToCompactNumber } from "../utils/intl.js";
|
|
4
3
|
import { usePrefersReducedMotion } from "../hooks/usePrefersReducedMotion.js";
|
|
4
|
+
import { useLocalizations } from "../localization/makeLocalizable.js";
|
|
5
5
|
import { animations } from "../styledSystem/animations.js";
|
|
6
6
|
import { Flex, NotificationBadge } from "../customizables/index.js";
|
|
7
7
|
import { jsx } from "@emotion/react/jsx-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { localizationKeys } from "../localization/localizationKeys.js";
|
|
2
|
-
import { Text } from "../customizables/index.js";
|
|
3
2
|
import { useCardState, withCardStateProvider } from "../elements/contexts/index.js";
|
|
3
|
+
import { Text } from "../customizables/index.js";
|
|
4
4
|
import { handleError } from "../utils/errorHandler.js";
|
|
5
5
|
import { Form } from "../elements/Form.js";
|
|
6
6
|
import { FormButtons } from "../elements/FormButtons.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useRouter } from "../router/RouteContext.js";
|
|
2
|
-
import { Flow } from "../customizables/Flow.js";
|
|
3
2
|
import { useCardState, withCardStateProvider } from "../elements/contexts/index.js";
|
|
3
|
+
import { Flow } from "../customizables/Flow.js";
|
|
4
4
|
import { Card } from "../elements/Card/index.js";
|
|
5
5
|
import { handleError } from "../utils/errorHandler.js";
|
|
6
6
|
import { CaptchaElement } from "../elements/CaptchaElement.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { useOptions } from "../contexts/OptionsContext.js";
|
|
1
2
|
import { useRouter } from "../router/RouteContext.js";
|
|
2
3
|
import { useEnvironment } from "../contexts/EnvironmentContext.js";
|
|
3
|
-
import { useOptions } from "../contexts/OptionsContext.js";
|
|
4
4
|
import { useSignInContext } from "../contexts/components/SignIn.js";
|
|
5
5
|
import { useSignUpContext } from "../contexts/components/SignUp.js";
|
|
6
6
|
import React from "react";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { useDebounce } from "../../hooks/useDebounce.js";
|
|
2
1
|
import { withCoreUserGuard } from "../../contexts/CoreUserContext.js";
|
|
3
2
|
import { useAPIKeysContext } from "../../contexts/components/APIKeys.js";
|
|
3
|
+
import { useDebounce } from "../../hooks/useDebounce.js";
|
|
4
|
+
import { localizationKeys } from "../../localization/localizationKeys.js";
|
|
4
5
|
import SvgMagnifyingGlass from "../../icons/magnifying-glass.js";
|
|
5
6
|
import { useProtect } from "../../common/Gate.js";
|
|
6
|
-
import { localizationKeys } from "../../localization/localizationKeys.js";
|
|
7
7
|
import { useLocalizations } from "../../localization/makeLocalizable.js";
|
|
8
8
|
import { mqu } from "../../styledSystem/breakpoints.js";
|
|
9
9
|
import { descriptors } from "../../customizables/elementDescriptors.js";
|
|
10
|
+
import { useCardState, withCardStateProvider } from "../../elements/contexts/index.js";
|
|
10
11
|
import { Flow } from "../../customizables/Flow.js";
|
|
11
12
|
import { Box, Button, Col, Flex, Icon } from "../../customizables/index.js";
|
|
12
|
-
import { useCardState, withCardStateProvider } from "../../elements/contexts/index.js";
|
|
13
13
|
import { handleError } from "../../utils/errorHandler.js";
|
|
14
14
|
import { Action } from "../../elements/Action/index.js";
|
|
15
|
-
import { Pagination } from "../../elements/Pagination.js";
|
|
16
15
|
import { InputWithIcon } from "../../elements/InputWithIcon.js";
|
|
16
|
+
import { Pagination } from "../../elements/Pagination.js";
|
|
17
17
|
import { APIKeysTable } from "./ApiKeysTable.js";
|
|
18
18
|
import { CreateAPIKeyForm } from "./CreateAPIKeyForm.js";
|
|
19
19
|
import { useAPIKeysPagination } from "./utils.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useClipboard } from "../../hooks/useClipboard.js";
|
|
2
|
+
import { localizationKeys } from "../../localization/localizationKeys.js";
|
|
2
3
|
import SvgCheckmark from "../../icons/checkmark.js";
|
|
3
4
|
import SvgClipboard from "../../icons/clipboard.js";
|
|
4
|
-
import { localizationKeys } from "../../localization/localizationKeys.js";
|
|
5
5
|
import { useFormControl } from "../../utils/useFormControl.js";
|
|
6
6
|
import { descriptors } from "../../customizables/elementDescriptors.js";
|
|
7
7
|
import { Card } from "../../elements/Card/index.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useAPIKeysContext } from "../../contexts/components/APIKeys.js";
|
|
2
|
-
import SvgChevronUpDown from "../../icons/chevron-up-down.js";
|
|
3
2
|
import { localizationKeys } from "../../localization/localizationKeys.js";
|
|
3
|
+
import SvgChevronUpDown from "../../icons/chevron-up-down.js";
|
|
4
4
|
import { useLocalizations } from "../../localization/makeLocalizable.js";
|
|
5
5
|
import { mqu } from "../../styledSystem/breakpoints.js";
|
|
6
6
|
import { useFormControl } from "../../utils/useFormControl.js";
|
|
7
7
|
import { descriptors } from "../../customizables/elementDescriptors.js";
|
|
8
|
-
import { Box, Col, FormLabel, Text } from "../../customizables/index.js";
|
|
9
8
|
import { useCardState } from "../../elements/contexts/index.js";
|
|
9
|
+
import { Box, Col, FormLabel, Text } from "../../customizables/index.js";
|
|
10
10
|
import { Select, SelectButton, SelectOptionList } from "../../elements/Select.js";
|
|
11
11
|
import { Form } from "../../elements/Form.js";
|
|
12
12
|
import { FormButtons } from "../../elements/FormButtons.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useRouter } from "../../router/RouteContext.js";
|
|
2
|
+
import { localizationKeys } from "../../localization/localizationKeys.js";
|
|
2
3
|
import { useSubscriberTypeLocalizationRoot } from "../../contexts/components/SubscriberType.js";
|
|
3
4
|
import { useCreditBalance } from "../../contexts/components/Plans.js";
|
|
4
|
-
import { localizationKeys } from "../../localization/localizationKeys.js";
|
|
5
5
|
import { useLocalizations } from "../../localization/makeLocalizable.js";
|
|
6
6
|
import { Text } from "../../customizables/index.js";
|
|
7
7
|
import { ProfileSection } from "../../elements/Section.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useRouter } from "../../router/RouteContext.js";
|
|
2
|
+
import { localizationKeys } from "../../localization/localizationKeys.js";
|
|
2
3
|
import { useSubscriberTypeLocalizationRoot } from "../../contexts/components/SubscriberType.js";
|
|
3
4
|
import { useCreditHistory } from "../../contexts/components/Plans.js";
|
|
4
|
-
import { localizationKeys } from "../../localization/localizationKeys.js";
|
|
5
5
|
import { useLocalizations } from "../../localization/makeLocalizable.js";
|
|
6
6
|
import { descriptors } from "../../customizables/elementDescriptors.js";
|
|
7
7
|
import { Box, Spinner, Table, Tbody, Td, Text, Th, Thead, Tr } from "../../customizables/index.js";
|