@clerk/ui 1.6.5 → 1.6.6-canary.v20260423111025
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/ClerkUI.js +2 -2
- package/dist/foundations/defaultFoundations.d.ts +153 -153
- package/dist/index.js +1 -1
- package/dist/lazyModules/components.d.ts +20 -20
- package/dist/no-rhc/ClerkUI.js +2 -2
- package/dist/no-rhc/index.js +1 -1
- package/dist/server.js +1 -1
- package/dist/signin_ui_5487d8_1.6.6-canary.v20260423111025.js +1 -0
- package/dist/signin_ui_b823dd_1.6.6-canary.v20260423111025.js +1 -0
- package/dist/{ui-common_ui_537db9_1.6.5.js → ui-common_ui_5487d8_1.6.6-canary.v20260423111025.js} +3 -3
- package/dist/{ui-common_ui_970f47_1.6.5.js → ui-common_ui_8c313c_1.6.6-canary.v20260423111025.js} +1 -1
- package/dist/{ui-common_ui_3bbfd9_1.6.5.js → ui-common_ui_b823dd_1.6.6-canary.v20260423111025.js} +3 -3
- package/dist/ui.browser.js +3 -3
- package/dist/ui.legacy.browser.js +1 -1
- package/dist/ui.shared.browser.js +3 -3
- package/dist/userverification_ui_5487d8_1.6.6-canary.v20260423111025.js +1 -0
- package/dist/userverification_ui_b823dd_1.6.6-canary.v20260423111025.js +1 -0
- package/dist/{web3-solana-wallet-buttons_ui_537db9_1.6.5.js → web3-solana-wallet-buttons_ui_5487d8_1.6.6-canary.v20260423111025.js} +1 -1
- package/dist/{web3-solana-wallet-buttons_ui_3bbfd9_1.6.5.js → web3-solana-wallet-buttons_ui_b823dd_1.6.6-canary.v20260423111025.js} +1 -1
- package/package.json +3 -3
- package/dist/signin_ui_3bbfd9_1.6.5.js +0 -1
- package/dist/signin_ui_537db9_1.6.5.js +0 -1
- package/dist/userverification_ui_3bbfd9_1.6.5.js +0 -1
- package/dist/userverification_ui_537db9_1.6.5.js +0 -1
- /package/dist/{295_ui_537db9_1.6.5.js → 295_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{295_ui_970f47_1.6.5.js → 295_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{295_ui_3bbfd9_1.6.5.js → 295_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{37_ui_537db9_1.6.5.js → 37_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{37_ui_970f47_1.6.5.js → 37_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{37_ui_3bbfd9_1.6.5.js → 37_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{5_ui_537db9_1.6.5.js → 5_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{5_ui_970f47_1.6.5.js → 5_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{5_ui_3bbfd9_1.6.5.js → 5_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{606_ui_537db9_1.6.5.js → 606_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{606_ui_970f47_1.6.5.js → 606_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{606_ui_3bbfd9_1.6.5.js → 606_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{746_ui_537db9_1.6.5.js → 746_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{746_ui_970f47_1.6.5.js → 746_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{746_ui_3bbfd9_1.6.5.js → 746_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{76_ui_537db9_1.6.5.js → 76_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{76_ui_970f47_1.6.5.js → 76_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{76_ui_3bbfd9_1.6.5.js → 76_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{829_ui_537db9_1.6.5.js → 829_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{829_ui_970f47_1.6.5.js → 829_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{829_ui_3bbfd9_1.6.5.js → 829_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{apiKeys_ui_537db9_1.6.5.js → apiKeys_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{apiKeys_ui_970f47_1.6.5.js → apiKeys_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{apiKeys_ui_3bbfd9_1.6.5.js → apiKeys_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{blankcaptcha_ui_3bbfd9_1.6.5.js → blankcaptcha_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{blankcaptcha_ui_970f47_1.6.5.js → blankcaptcha_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{blankcaptcha_ui_537db9_1.6.5.js → blankcaptcha_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{checkout_ui_537db9_1.6.5.js → checkout_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{checkout_ui_970f47_1.6.5.js → checkout_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{checkout_ui_3bbfd9_1.6.5.js → checkout_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{copy-api-key-modal_ui_537db9_1.6.5.js → copy-api-key-modal_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{copy-api-key-modal_ui_970f47_1.6.5.js → copy-api-key-modal_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{copy-api-key-modal_ui_3bbfd9_1.6.5.js → copy-api-key-modal_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{createorganization_ui_537db9_1.6.5.js → createorganization_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{createorganization_ui_970f47_1.6.5.js → createorganization_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{createorganization_ui_3bbfd9_1.6.5.js → createorganization_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{enableOrganizationsPrompt_ui_537db9_1.6.5.js → enableOrganizationsPrompt_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{enableOrganizationsPrompt_ui_970f47_1.6.5.js → enableOrganizationsPrompt_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{enableOrganizationsPrompt_ui_3bbfd9_1.6.5.js → enableOrganizationsPrompt_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{framework_ui_537db9_1.6.5.js → framework_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{framework_ui_970f47_1.6.5.js → framework_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{impersonationfab_ui_537db9_1.6.5.js → impersonationfab_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{impersonationfab_ui_970f47_1.6.5.js → impersonationfab_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{impersonationfab_ui_3bbfd9_1.6.5.js → impersonationfab_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{keylessPrompt_ui_537db9_1.6.5.js → keylessPrompt_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{keylessPrompt_ui_970f47_1.6.5.js → keylessPrompt_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{keylessPrompt_ui_3bbfd9_1.6.5.js → keylessPrompt_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{oauthConsent_ui_537db9_1.6.5.js → oauthConsent_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{oauthConsent_ui_970f47_1.6.5.js → oauthConsent_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{oauthConsent_ui_3bbfd9_1.6.5.js → oauthConsent_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{onetap_ui_537db9_1.6.5.js → onetap_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{onetap_ui_970f47_1.6.5.js → onetap_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{onetap_ui_3bbfd9_1.6.5.js → onetap_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{op-api-keys-page_ui_3bbfd9_1.6.5.js → op-api-keys-page_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{op-api-keys-page_ui_970f47_1.6.5.js → op-api-keys-page_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{op-api-keys-page_ui_537db9_1.6.5.js → op-api-keys-page_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{op-billing-page_ui_3bbfd9_1.6.5.js → op-billing-page_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{op-billing-page_ui_970f47_1.6.5.js → op-billing-page_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{op-billing-page_ui_537db9_1.6.5.js → op-billing-page_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{op-plans-page_ui_3bbfd9_1.6.5.js → op-plans-page_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{op-plans-page_ui_970f47_1.6.5.js → op-plans-page_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{op-plans-page_ui_537db9_1.6.5.js → op-plans-page_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{organizationlist_ui_537db9_1.6.5.js → organizationlist_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{organizationlist_ui_970f47_1.6.5.js → organizationlist_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{organizationlist_ui_3bbfd9_1.6.5.js → organizationlist_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{organizationprofile_ui_537db9_1.6.5.js → organizationprofile_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{organizationprofile_ui_970f47_1.6.5.js → organizationprofile_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{organizationprofile_ui_3bbfd9_1.6.5.js → organizationprofile_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{organizationswitcher_ui_537db9_1.6.5.js → organizationswitcher_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{organizationswitcher_ui_970f47_1.6.5.js → organizationswitcher_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{organizationswitcher_ui_3bbfd9_1.6.5.js → organizationswitcher_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{payment-attempt-page_ui_3bbfd9_1.6.5.js → payment-attempt-page_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{payment-attempt-page_ui_970f47_1.6.5.js → payment-attempt-page_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{payment-attempt-page_ui_537db9_1.6.5.js → payment-attempt-page_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{planDetails_ui_537db9_1.6.5.js → planDetails_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{planDetails_ui_970f47_1.6.5.js → planDetails_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{planDetails_ui_3bbfd9_1.6.5.js → planDetails_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{prefetchorganizationlist_ui_3bbfd9_1.6.5.js → prefetchorganizationlist_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{prefetchorganizationlist_ui_970f47_1.6.5.js → prefetchorganizationlist_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{prefetchorganizationlist_ui_537db9_1.6.5.js → prefetchorganizationlist_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{pricingTable_ui_537db9_1.6.5.js → pricingTable_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{pricingTable_ui_970f47_1.6.5.js → pricingTable_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{pricingTable_ui_3bbfd9_1.6.5.js → pricingTable_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{revoke-api-key-modal_ui_537db9_1.6.5.js → revoke-api-key-modal_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{revoke-api-key-modal_ui_970f47_1.6.5.js → revoke-api-key-modal_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{revoke-api-key-modal_ui_3bbfd9_1.6.5.js → revoke-api-key-modal_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{sessionTasks_ui_537db9_1.6.5.js → sessionTasks_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{sessionTasks_ui_970f47_1.6.5.js → sessionTasks_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{sessionTasks_ui_3bbfd9_1.6.5.js → sessionTasks_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{signin_ui_970f47_1.6.5.js → signin_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{signup_ui_537db9_1.6.5.js → signup_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{signup_ui_970f47_1.6.5.js → signup_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{signup_ui_3bbfd9_1.6.5.js → signup_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{statement-page_ui_537db9_1.6.5.js → statement-page_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{statement-page_ui_970f47_1.6.5.js → statement-page_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{statement-page_ui_3bbfd9_1.6.5.js → statement-page_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{subscriptionDetails_ui_537db9_1.6.5.js → subscriptionDetails_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{subscriptionDetails_ui_970f47_1.6.5.js → subscriptionDetails_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{subscriptionDetails_ui_3bbfd9_1.6.5.js → subscriptionDetails_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{taskChooseOrganization_ui_537db9_1.6.5.js → taskChooseOrganization_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{taskChooseOrganization_ui_970f47_1.6.5.js → taskChooseOrganization_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{taskChooseOrganization_ui_3bbfd9_1.6.5.js → taskChooseOrganization_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{taskResetPassword_ui_537db9_1.6.5.js → taskResetPassword_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{taskResetPassword_ui_970f47_1.6.5.js → taskResetPassword_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{taskResetPassword_ui_3bbfd9_1.6.5.js → taskResetPassword_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{taskSetupMFA_ui_537db9_1.6.5.js → taskSetupMFA_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{taskSetupMFA_ui_970f47_1.6.5.js → taskSetupMFA_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{taskSetupMFA_ui_3bbfd9_1.6.5.js → taskSetupMFA_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{up-api-keys-page_ui_3bbfd9_1.6.5.js → up-api-keys-page_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{up-api-keys-page_ui_970f47_1.6.5.js → up-api-keys-page_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{up-api-keys-page_ui_537db9_1.6.5.js → up-api-keys-page_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{up-billing-page_ui_3bbfd9_1.6.5.js → up-billing-page_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{up-billing-page_ui_970f47_1.6.5.js → up-billing-page_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{up-billing-page_ui_537db9_1.6.5.js → up-billing-page_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{up-plans-page_ui_3bbfd9_1.6.5.js → up-plans-page_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{up-plans-page_ui_970f47_1.6.5.js → up-plans-page_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{up-plans-page_ui_537db9_1.6.5.js → up-plans-page_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{useravatar_ui_537db9_1.6.5.js → useravatar_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{useravatar_ui_970f47_1.6.5.js → useravatar_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{useravatar_ui_3bbfd9_1.6.5.js → useravatar_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{userbutton_ui_537db9_1.6.5.js → userbutton_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{userbutton_ui_970f47_1.6.5.js → userbutton_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{userbutton_ui_3bbfd9_1.6.5.js → userbutton_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{userprofile_ui_537db9_1.6.5.js → userprofile_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{userprofile_ui_970f47_1.6.5.js → userprofile_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{userprofile_ui_3bbfd9_1.6.5.js → userprofile_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{userverification_ui_970f47_1.6.5.js → userverification_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{vendors_ui_537db9_1.6.5.js → vendors_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{vendors_ui_970f47_1.6.5.js → vendors_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{vendors_ui_3bbfd9_1.6.5.js → vendors_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{waitlist_ui_537db9_1.6.5.js → waitlist_ui_5487d8_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{waitlist_ui_970f47_1.6.5.js → waitlist_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{waitlist_ui_3bbfd9_1.6.5.js → waitlist_ui_b823dd_1.6.6-canary.v20260423111025.js} +0 -0
- /package/dist/{web3-solana-wallet-buttons_ui_970f47_1.6.5.js → web3-solana-wallet-buttons_ui_8c313c_1.6.6-canary.v20260423111025.js} +0 -0
package/dist/ClerkUI.js
CHANGED
|
@@ -23,8 +23,8 @@ import { isVersionAtLeast, parseVersion } from "@clerk/shared/versionCheck";
|
|
|
23
23
|
* @public
|
|
24
24
|
*/
|
|
25
25
|
var ClerkUI = class ClerkUI {
|
|
26
|
-
static version = "1.6.
|
|
27
|
-
version = "1.6.
|
|
26
|
+
static version = "1.6.6-canary.v20260423111025";
|
|
27
|
+
version = "1.6.6-canary.v20260423111025";
|
|
28
28
|
#componentRenderer;
|
|
29
29
|
/**
|
|
30
30
|
* Creates a new `ClerkUI` instance and mounts the internal component renderer.
|
|
@@ -1,144 +1,144 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _clerk_shared_types303 from "@clerk/shared/types";
|
|
2
2
|
|
|
3
3
|
//#region src/foundations/defaultFoundations.d.ts
|
|
4
4
|
declare const defaultInternalThemeFoundations: Readonly<{
|
|
5
5
|
readonly colors: Readonly<{
|
|
6
|
-
readonly borderAlpha25:
|
|
7
|
-
readonly borderAlpha50:
|
|
8
|
-
readonly borderAlpha100:
|
|
9
|
-
readonly borderAlpha150:
|
|
10
|
-
readonly borderAlpha200:
|
|
11
|
-
readonly borderAlpha300:
|
|
12
|
-
readonly borderAlpha400:
|
|
13
|
-
readonly borderAlpha500:
|
|
14
|
-
readonly borderAlpha600:
|
|
15
|
-
readonly borderAlpha700:
|
|
16
|
-
readonly borderAlpha750:
|
|
17
|
-
readonly borderAlpha800:
|
|
18
|
-
readonly borderAlpha850:
|
|
19
|
-
readonly borderAlpha900:
|
|
20
|
-
readonly borderAlpha950:
|
|
21
|
-
readonly successAlpha25:
|
|
22
|
-
readonly successAlpha50:
|
|
23
|
-
readonly successAlpha100:
|
|
24
|
-
readonly successAlpha150:
|
|
25
|
-
readonly successAlpha200:
|
|
26
|
-
readonly successAlpha300:
|
|
27
|
-
readonly successAlpha400:
|
|
28
|
-
readonly successAlpha500:
|
|
29
|
-
readonly successAlpha600:
|
|
30
|
-
readonly successAlpha700:
|
|
31
|
-
readonly successAlpha750:
|
|
32
|
-
readonly successAlpha800:
|
|
33
|
-
readonly successAlpha850:
|
|
34
|
-
readonly successAlpha900:
|
|
35
|
-
readonly successAlpha950:
|
|
36
|
-
readonly success25:
|
|
37
|
-
readonly success50:
|
|
38
|
-
readonly success100:
|
|
39
|
-
readonly success150:
|
|
40
|
-
readonly success200:
|
|
41
|
-
readonly success300:
|
|
42
|
-
readonly success400:
|
|
43
|
-
readonly success500:
|
|
44
|
-
readonly success600:
|
|
45
|
-
readonly success700:
|
|
46
|
-
readonly success750:
|
|
47
|
-
readonly success800:
|
|
48
|
-
readonly success850:
|
|
49
|
-
readonly success900:
|
|
50
|
-
readonly success950:
|
|
51
|
-
readonly warningAlpha25:
|
|
52
|
-
readonly warningAlpha50:
|
|
53
|
-
readonly warningAlpha100:
|
|
54
|
-
readonly warningAlpha150:
|
|
55
|
-
readonly warningAlpha200:
|
|
56
|
-
readonly warningAlpha300:
|
|
57
|
-
readonly warningAlpha400:
|
|
58
|
-
readonly warningAlpha500:
|
|
59
|
-
readonly warningAlpha600:
|
|
60
|
-
readonly warningAlpha700:
|
|
61
|
-
readonly warningAlpha750:
|
|
62
|
-
readonly warningAlpha800:
|
|
63
|
-
readonly warningAlpha850:
|
|
64
|
-
readonly warningAlpha900:
|
|
65
|
-
readonly warningAlpha950:
|
|
66
|
-
readonly warning25:
|
|
67
|
-
readonly warning50:
|
|
68
|
-
readonly warning100:
|
|
69
|
-
readonly warning150:
|
|
70
|
-
readonly warning200:
|
|
71
|
-
readonly warning300:
|
|
72
|
-
readonly warning400:
|
|
73
|
-
readonly warning500:
|
|
74
|
-
readonly warning600:
|
|
75
|
-
readonly warning700:
|
|
76
|
-
readonly warning750:
|
|
77
|
-
readonly warning800:
|
|
78
|
-
readonly warning850:
|
|
79
|
-
readonly warning900:
|
|
80
|
-
readonly warning950:
|
|
81
|
-
readonly dangerAlpha25:
|
|
82
|
-
readonly dangerAlpha50:
|
|
83
|
-
readonly dangerAlpha100:
|
|
84
|
-
readonly dangerAlpha150:
|
|
85
|
-
readonly dangerAlpha200:
|
|
86
|
-
readonly dangerAlpha300:
|
|
87
|
-
readonly dangerAlpha400:
|
|
88
|
-
readonly dangerAlpha500:
|
|
89
|
-
readonly dangerAlpha600:
|
|
90
|
-
readonly dangerAlpha700:
|
|
91
|
-
readonly dangerAlpha750:
|
|
92
|
-
readonly dangerAlpha800:
|
|
93
|
-
readonly dangerAlpha850:
|
|
94
|
-
readonly dangerAlpha900:
|
|
95
|
-
readonly dangerAlpha950:
|
|
96
|
-
readonly danger25:
|
|
97
|
-
readonly danger50:
|
|
98
|
-
readonly danger100:
|
|
99
|
-
readonly danger150:
|
|
100
|
-
readonly danger200:
|
|
101
|
-
readonly danger300:
|
|
102
|
-
readonly danger400:
|
|
103
|
-
readonly danger500:
|
|
104
|
-
readonly danger600:
|
|
105
|
-
readonly danger700:
|
|
106
|
-
readonly danger750:
|
|
107
|
-
readonly danger800:
|
|
108
|
-
readonly danger850:
|
|
109
|
-
readonly danger900:
|
|
110
|
-
readonly danger950:
|
|
111
|
-
readonly primaryAlpha25:
|
|
112
|
-
readonly primaryAlpha50:
|
|
113
|
-
readonly primaryAlpha100:
|
|
114
|
-
readonly primaryAlpha150:
|
|
115
|
-
readonly primaryAlpha200:
|
|
116
|
-
readonly primaryAlpha300:
|
|
117
|
-
readonly primaryAlpha400:
|
|
118
|
-
readonly primaryAlpha500:
|
|
119
|
-
readonly primaryAlpha600:
|
|
120
|
-
readonly primaryAlpha700:
|
|
121
|
-
readonly primaryAlpha750:
|
|
122
|
-
readonly primaryAlpha800:
|
|
123
|
-
readonly primaryAlpha850:
|
|
124
|
-
readonly primaryAlpha900:
|
|
125
|
-
readonly primaryAlpha950:
|
|
6
|
+
readonly borderAlpha25: _clerk_shared_types303.HslaColorString;
|
|
7
|
+
readonly borderAlpha50: _clerk_shared_types303.HslaColorString;
|
|
8
|
+
readonly borderAlpha100: _clerk_shared_types303.HslaColorString;
|
|
9
|
+
readonly borderAlpha150: _clerk_shared_types303.HslaColorString;
|
|
10
|
+
readonly borderAlpha200: _clerk_shared_types303.HslaColorString;
|
|
11
|
+
readonly borderAlpha300: _clerk_shared_types303.HslaColorString;
|
|
12
|
+
readonly borderAlpha400: _clerk_shared_types303.HslaColorString;
|
|
13
|
+
readonly borderAlpha500: _clerk_shared_types303.HslaColorString;
|
|
14
|
+
readonly borderAlpha600: _clerk_shared_types303.HslaColorString;
|
|
15
|
+
readonly borderAlpha700: _clerk_shared_types303.HslaColorString;
|
|
16
|
+
readonly borderAlpha750: _clerk_shared_types303.HslaColorString;
|
|
17
|
+
readonly borderAlpha800: _clerk_shared_types303.HslaColorString;
|
|
18
|
+
readonly borderAlpha850: _clerk_shared_types303.HslaColorString;
|
|
19
|
+
readonly borderAlpha900: _clerk_shared_types303.HslaColorString;
|
|
20
|
+
readonly borderAlpha950: _clerk_shared_types303.HslaColorString;
|
|
21
|
+
readonly successAlpha25: _clerk_shared_types303.HslaColorString;
|
|
22
|
+
readonly successAlpha50: _clerk_shared_types303.HslaColorString;
|
|
23
|
+
readonly successAlpha100: _clerk_shared_types303.HslaColorString;
|
|
24
|
+
readonly successAlpha150: _clerk_shared_types303.HslaColorString;
|
|
25
|
+
readonly successAlpha200: _clerk_shared_types303.HslaColorString;
|
|
26
|
+
readonly successAlpha300: _clerk_shared_types303.HslaColorString;
|
|
27
|
+
readonly successAlpha400: _clerk_shared_types303.HslaColorString;
|
|
28
|
+
readonly successAlpha500: _clerk_shared_types303.HslaColorString;
|
|
29
|
+
readonly successAlpha600: _clerk_shared_types303.HslaColorString;
|
|
30
|
+
readonly successAlpha700: _clerk_shared_types303.HslaColorString;
|
|
31
|
+
readonly successAlpha750: _clerk_shared_types303.HslaColorString;
|
|
32
|
+
readonly successAlpha800: _clerk_shared_types303.HslaColorString;
|
|
33
|
+
readonly successAlpha850: _clerk_shared_types303.HslaColorString;
|
|
34
|
+
readonly successAlpha900: _clerk_shared_types303.HslaColorString;
|
|
35
|
+
readonly successAlpha950: _clerk_shared_types303.HslaColorString;
|
|
36
|
+
readonly success25: _clerk_shared_types303.HslaColorString;
|
|
37
|
+
readonly success50: _clerk_shared_types303.HslaColorString;
|
|
38
|
+
readonly success100: _clerk_shared_types303.HslaColorString;
|
|
39
|
+
readonly success150: _clerk_shared_types303.HslaColorString;
|
|
40
|
+
readonly success200: _clerk_shared_types303.HslaColorString;
|
|
41
|
+
readonly success300: _clerk_shared_types303.HslaColorString;
|
|
42
|
+
readonly success400: _clerk_shared_types303.HslaColorString;
|
|
43
|
+
readonly success500: _clerk_shared_types303.HslaColorString;
|
|
44
|
+
readonly success600: _clerk_shared_types303.HslaColorString;
|
|
45
|
+
readonly success700: _clerk_shared_types303.HslaColorString;
|
|
46
|
+
readonly success750: _clerk_shared_types303.HslaColorString;
|
|
47
|
+
readonly success800: _clerk_shared_types303.HslaColorString;
|
|
48
|
+
readonly success850: _clerk_shared_types303.HslaColorString;
|
|
49
|
+
readonly success900: _clerk_shared_types303.HslaColorString;
|
|
50
|
+
readonly success950: _clerk_shared_types303.HslaColorString;
|
|
51
|
+
readonly warningAlpha25: _clerk_shared_types303.HslaColorString;
|
|
52
|
+
readonly warningAlpha50: _clerk_shared_types303.HslaColorString;
|
|
53
|
+
readonly warningAlpha100: _clerk_shared_types303.HslaColorString;
|
|
54
|
+
readonly warningAlpha150: _clerk_shared_types303.HslaColorString;
|
|
55
|
+
readonly warningAlpha200: _clerk_shared_types303.HslaColorString;
|
|
56
|
+
readonly warningAlpha300: _clerk_shared_types303.HslaColorString;
|
|
57
|
+
readonly warningAlpha400: _clerk_shared_types303.HslaColorString;
|
|
58
|
+
readonly warningAlpha500: _clerk_shared_types303.HslaColorString;
|
|
59
|
+
readonly warningAlpha600: _clerk_shared_types303.HslaColorString;
|
|
60
|
+
readonly warningAlpha700: _clerk_shared_types303.HslaColorString;
|
|
61
|
+
readonly warningAlpha750: _clerk_shared_types303.HslaColorString;
|
|
62
|
+
readonly warningAlpha800: _clerk_shared_types303.HslaColorString;
|
|
63
|
+
readonly warningAlpha850: _clerk_shared_types303.HslaColorString;
|
|
64
|
+
readonly warningAlpha900: _clerk_shared_types303.HslaColorString;
|
|
65
|
+
readonly warningAlpha950: _clerk_shared_types303.HslaColorString;
|
|
66
|
+
readonly warning25: _clerk_shared_types303.HslaColorString;
|
|
67
|
+
readonly warning50: _clerk_shared_types303.HslaColorString;
|
|
68
|
+
readonly warning100: _clerk_shared_types303.HslaColorString;
|
|
69
|
+
readonly warning150: _clerk_shared_types303.HslaColorString;
|
|
70
|
+
readonly warning200: _clerk_shared_types303.HslaColorString;
|
|
71
|
+
readonly warning300: _clerk_shared_types303.HslaColorString;
|
|
72
|
+
readonly warning400: _clerk_shared_types303.HslaColorString;
|
|
73
|
+
readonly warning500: _clerk_shared_types303.HslaColorString;
|
|
74
|
+
readonly warning600: _clerk_shared_types303.HslaColorString;
|
|
75
|
+
readonly warning700: _clerk_shared_types303.HslaColorString;
|
|
76
|
+
readonly warning750: _clerk_shared_types303.HslaColorString;
|
|
77
|
+
readonly warning800: _clerk_shared_types303.HslaColorString;
|
|
78
|
+
readonly warning850: _clerk_shared_types303.HslaColorString;
|
|
79
|
+
readonly warning900: _clerk_shared_types303.HslaColorString;
|
|
80
|
+
readonly warning950: _clerk_shared_types303.HslaColorString;
|
|
81
|
+
readonly dangerAlpha25: _clerk_shared_types303.HslaColorString;
|
|
82
|
+
readonly dangerAlpha50: _clerk_shared_types303.HslaColorString;
|
|
83
|
+
readonly dangerAlpha100: _clerk_shared_types303.HslaColorString;
|
|
84
|
+
readonly dangerAlpha150: _clerk_shared_types303.HslaColorString;
|
|
85
|
+
readonly dangerAlpha200: _clerk_shared_types303.HslaColorString;
|
|
86
|
+
readonly dangerAlpha300: _clerk_shared_types303.HslaColorString;
|
|
87
|
+
readonly dangerAlpha400: _clerk_shared_types303.HslaColorString;
|
|
88
|
+
readonly dangerAlpha500: _clerk_shared_types303.HslaColorString;
|
|
89
|
+
readonly dangerAlpha600: _clerk_shared_types303.HslaColorString;
|
|
90
|
+
readonly dangerAlpha700: _clerk_shared_types303.HslaColorString;
|
|
91
|
+
readonly dangerAlpha750: _clerk_shared_types303.HslaColorString;
|
|
92
|
+
readonly dangerAlpha800: _clerk_shared_types303.HslaColorString;
|
|
93
|
+
readonly dangerAlpha850: _clerk_shared_types303.HslaColorString;
|
|
94
|
+
readonly dangerAlpha900: _clerk_shared_types303.HslaColorString;
|
|
95
|
+
readonly dangerAlpha950: _clerk_shared_types303.HslaColorString;
|
|
96
|
+
readonly danger25: _clerk_shared_types303.HslaColorString;
|
|
97
|
+
readonly danger50: _clerk_shared_types303.HslaColorString;
|
|
98
|
+
readonly danger100: _clerk_shared_types303.HslaColorString;
|
|
99
|
+
readonly danger150: _clerk_shared_types303.HslaColorString;
|
|
100
|
+
readonly danger200: _clerk_shared_types303.HslaColorString;
|
|
101
|
+
readonly danger300: _clerk_shared_types303.HslaColorString;
|
|
102
|
+
readonly danger400: _clerk_shared_types303.HslaColorString;
|
|
103
|
+
readonly danger500: _clerk_shared_types303.HslaColorString;
|
|
104
|
+
readonly danger600: _clerk_shared_types303.HslaColorString;
|
|
105
|
+
readonly danger700: _clerk_shared_types303.HslaColorString;
|
|
106
|
+
readonly danger750: _clerk_shared_types303.HslaColorString;
|
|
107
|
+
readonly danger800: _clerk_shared_types303.HslaColorString;
|
|
108
|
+
readonly danger850: _clerk_shared_types303.HslaColorString;
|
|
109
|
+
readonly danger900: _clerk_shared_types303.HslaColorString;
|
|
110
|
+
readonly danger950: _clerk_shared_types303.HslaColorString;
|
|
111
|
+
readonly primaryAlpha25: _clerk_shared_types303.HslaColorString;
|
|
112
|
+
readonly primaryAlpha50: _clerk_shared_types303.HslaColorString;
|
|
113
|
+
readonly primaryAlpha100: _clerk_shared_types303.HslaColorString;
|
|
114
|
+
readonly primaryAlpha150: _clerk_shared_types303.HslaColorString;
|
|
115
|
+
readonly primaryAlpha200: _clerk_shared_types303.HslaColorString;
|
|
116
|
+
readonly primaryAlpha300: _clerk_shared_types303.HslaColorString;
|
|
117
|
+
readonly primaryAlpha400: _clerk_shared_types303.HslaColorString;
|
|
118
|
+
readonly primaryAlpha500: _clerk_shared_types303.HslaColorString;
|
|
119
|
+
readonly primaryAlpha600: _clerk_shared_types303.HslaColorString;
|
|
120
|
+
readonly primaryAlpha700: _clerk_shared_types303.HslaColorString;
|
|
121
|
+
readonly primaryAlpha750: _clerk_shared_types303.HslaColorString;
|
|
122
|
+
readonly primaryAlpha800: _clerk_shared_types303.HslaColorString;
|
|
123
|
+
readonly primaryAlpha850: _clerk_shared_types303.HslaColorString;
|
|
124
|
+
readonly primaryAlpha900: _clerk_shared_types303.HslaColorString;
|
|
125
|
+
readonly primaryAlpha950: _clerk_shared_types303.HslaColorString;
|
|
126
126
|
readonly primaryHover: string | undefined;
|
|
127
|
-
readonly primary25:
|
|
128
|
-
readonly primary50:
|
|
129
|
-
readonly primary100:
|
|
130
|
-
readonly primary150:
|
|
131
|
-
readonly primary200:
|
|
132
|
-
readonly primary300:
|
|
133
|
-
readonly primary400:
|
|
134
|
-
readonly primary500:
|
|
135
|
-
readonly primary600:
|
|
136
|
-
readonly primary700:
|
|
137
|
-
readonly primary750:
|
|
138
|
-
readonly primary800:
|
|
139
|
-
readonly primary850:
|
|
140
|
-
readonly primary900:
|
|
141
|
-
readonly primary950:
|
|
127
|
+
readonly primary25: _clerk_shared_types303.HslaColorString;
|
|
128
|
+
readonly primary50: _clerk_shared_types303.HslaColorString;
|
|
129
|
+
readonly primary100: _clerk_shared_types303.HslaColorString;
|
|
130
|
+
readonly primary150: _clerk_shared_types303.HslaColorString;
|
|
131
|
+
readonly primary200: _clerk_shared_types303.HslaColorString;
|
|
132
|
+
readonly primary300: _clerk_shared_types303.HslaColorString;
|
|
133
|
+
readonly primary400: _clerk_shared_types303.HslaColorString;
|
|
134
|
+
readonly primary500: _clerk_shared_types303.HslaColorString;
|
|
135
|
+
readonly primary600: _clerk_shared_types303.HslaColorString;
|
|
136
|
+
readonly primary700: _clerk_shared_types303.HslaColorString;
|
|
137
|
+
readonly primary750: _clerk_shared_types303.HslaColorString;
|
|
138
|
+
readonly primary800: _clerk_shared_types303.HslaColorString;
|
|
139
|
+
readonly primary850: _clerk_shared_types303.HslaColorString;
|
|
140
|
+
readonly primary900: _clerk_shared_types303.HslaColorString;
|
|
141
|
+
readonly primary950: _clerk_shared_types303.HslaColorString;
|
|
142
142
|
readonly whiteAlpha25: "hsla(0, 0%, 100%, 0.02)";
|
|
143
143
|
readonly whiteAlpha50: "hsla(0, 0%, 100%, 0.03)";
|
|
144
144
|
readonly whiteAlpha100: "hsla(0, 0%, 100%, 0.07)";
|
|
@@ -154,23 +154,23 @@ declare const defaultInternalThemeFoundations: Readonly<{
|
|
|
154
154
|
readonly whiteAlpha850: "hsla(0, 0%, 100%, 0.84)";
|
|
155
155
|
readonly whiteAlpha900: "hsla(0, 0%, 100%, 0.87)";
|
|
156
156
|
readonly whiteAlpha950: "hsla(0, 0%, 100%, 0.92)";
|
|
157
|
-
readonly neutralAlpha25:
|
|
158
|
-
readonly neutralAlpha50:
|
|
159
|
-
readonly neutralAlpha100:
|
|
160
|
-
readonly neutralAlpha150:
|
|
161
|
-
readonly neutralAlpha200:
|
|
162
|
-
readonly neutralAlpha300:
|
|
163
|
-
readonly neutralAlpha400:
|
|
164
|
-
readonly neutralAlpha500:
|
|
165
|
-
readonly neutralAlpha600:
|
|
166
|
-
readonly neutralAlpha700:
|
|
167
|
-
readonly neutralAlpha750:
|
|
168
|
-
readonly neutralAlpha800:
|
|
169
|
-
readonly neutralAlpha850:
|
|
170
|
-
readonly neutralAlpha900:
|
|
171
|
-
readonly neutralAlpha950:
|
|
172
|
-
readonly avatarBorder:
|
|
173
|
-
readonly avatarBackground:
|
|
157
|
+
readonly neutralAlpha25: _clerk_shared_types303.HslaColorString;
|
|
158
|
+
readonly neutralAlpha50: _clerk_shared_types303.HslaColorString;
|
|
159
|
+
readonly neutralAlpha100: _clerk_shared_types303.HslaColorString;
|
|
160
|
+
readonly neutralAlpha150: _clerk_shared_types303.HslaColorString;
|
|
161
|
+
readonly neutralAlpha200: _clerk_shared_types303.HslaColorString;
|
|
162
|
+
readonly neutralAlpha300: _clerk_shared_types303.HslaColorString;
|
|
163
|
+
readonly neutralAlpha400: _clerk_shared_types303.HslaColorString;
|
|
164
|
+
readonly neutralAlpha500: _clerk_shared_types303.HslaColorString;
|
|
165
|
+
readonly neutralAlpha600: _clerk_shared_types303.HslaColorString;
|
|
166
|
+
readonly neutralAlpha700: _clerk_shared_types303.HslaColorString;
|
|
167
|
+
readonly neutralAlpha750: _clerk_shared_types303.HslaColorString;
|
|
168
|
+
readonly neutralAlpha800: _clerk_shared_types303.HslaColorString;
|
|
169
|
+
readonly neutralAlpha850: _clerk_shared_types303.HslaColorString;
|
|
170
|
+
readonly neutralAlpha900: _clerk_shared_types303.HslaColorString;
|
|
171
|
+
readonly neutralAlpha950: _clerk_shared_types303.HslaColorString;
|
|
172
|
+
readonly avatarBorder: _clerk_shared_types303.HslaColorString;
|
|
173
|
+
readonly avatarBackground: _clerk_shared_types303.HslaColorString;
|
|
174
174
|
readonly colorModalBackdrop: string;
|
|
175
175
|
readonly colorBackground: string;
|
|
176
176
|
readonly colorInput: string;
|
package/dist/index.js
CHANGED
|
@@ -3,38 +3,38 @@ import { AvailableComponentProps } from "../types.js";
|
|
|
3
3
|
import { WithInternalRouting } from "../internal/routing.js";
|
|
4
4
|
import * as react0 from "react";
|
|
5
5
|
import * as _emotion_react_jsx_runtime0 from "@emotion/react/jsx-runtime";
|
|
6
|
-
import * as
|
|
6
|
+
import * as _clerk_shared_types455 from "@clerk/shared/types";
|
|
7
7
|
|
|
8
8
|
//#region src/lazyModules/components.d.ts
|
|
9
9
|
|
|
10
10
|
declare const ClerkComponents: {
|
|
11
|
-
SignIn: react0.LazyExoticComponent<react0.ComponentType<
|
|
12
|
-
SignUp: react0.LazyExoticComponent<react0.ComponentType<
|
|
13
|
-
UserAvatar: react0.LazyExoticComponent<react0.ComponentType<
|
|
11
|
+
SignIn: react0.LazyExoticComponent<react0.ComponentType<_clerk_shared_types455.SignInProps>>;
|
|
12
|
+
SignUp: react0.LazyExoticComponent<react0.ComponentType<_clerk_shared_types455.SignUpProps>>;
|
|
13
|
+
UserAvatar: react0.LazyExoticComponent<react0.ComponentType<_clerk_shared_types455.UserAvatarProps>>;
|
|
14
14
|
UserButton: react0.LazyExoticComponent<react0.ComponentType<unknown>>;
|
|
15
|
-
UserProfile: react0.LazyExoticComponent<react0.ComponentType<
|
|
16
|
-
UserVerification: react0.LazyExoticComponent<react0.ComponentType<WithInternalRouting<
|
|
17
|
-
EnableOrganizationsPrompt: react0.LazyExoticComponent<(props:
|
|
15
|
+
UserProfile: react0.LazyExoticComponent<react0.ComponentType<_clerk_shared_types455.UserProfileProps>>;
|
|
16
|
+
UserVerification: react0.LazyExoticComponent<react0.ComponentType<WithInternalRouting<_clerk_shared_types455.__internal_UserVerificationProps>>>;
|
|
17
|
+
EnableOrganizationsPrompt: react0.LazyExoticComponent<(props: _clerk_shared_types455.__internal_EnableOrganizationsPromptProps) => JSX.Element>;
|
|
18
18
|
OrganizationSwitcher: react0.LazyExoticComponent<react0.ComponentType<unknown>>;
|
|
19
19
|
OrganizationList: react0.LazyExoticComponent<() => _emotion_react_jsx_runtime0.JSX.Element>;
|
|
20
|
-
OrganizationProfile: react0.LazyExoticComponent<react0.ComponentType<
|
|
20
|
+
OrganizationProfile: react0.LazyExoticComponent<react0.ComponentType<_clerk_shared_types455.OrganizationProfileProps>>;
|
|
21
21
|
CreateOrganization: react0.LazyExoticComponent<(props: unknown) => _emotion_react_jsx_runtime0.JSX.Element>;
|
|
22
|
-
SignInModal: react0.LazyExoticComponent<(props:
|
|
23
|
-
SignUpModal: react0.LazyExoticComponent<(props:
|
|
24
|
-
UserProfileModal: react0.LazyExoticComponent<(props:
|
|
25
|
-
OrganizationProfileModal: react0.LazyExoticComponent<(props:
|
|
26
|
-
CreateOrganizationModal: react0.LazyExoticComponent<(props:
|
|
27
|
-
UserVerificationModal: react0.LazyExoticComponent<(props:
|
|
28
|
-
GoogleOneTap: react0.LazyExoticComponent<react0.ComponentType<
|
|
22
|
+
SignInModal: react0.LazyExoticComponent<(props: _clerk_shared_types455.SignInModalProps) => JSX.Element>;
|
|
23
|
+
SignUpModal: react0.LazyExoticComponent<(props: _clerk_shared_types455.SignUpModalProps) => JSX.Element>;
|
|
24
|
+
UserProfileModal: react0.LazyExoticComponent<(props: _clerk_shared_types455.UserProfileModalProps) => JSX.Element>;
|
|
25
|
+
OrganizationProfileModal: react0.LazyExoticComponent<(props: _clerk_shared_types455.OrganizationProfileModalProps) => JSX.Element>;
|
|
26
|
+
CreateOrganizationModal: react0.LazyExoticComponent<(props: _clerk_shared_types455.CreateOrganizationModalProps) => JSX.Element>;
|
|
27
|
+
UserVerificationModal: react0.LazyExoticComponent<(props: _clerk_shared_types455.__internal_UserVerificationModalProps) => JSX.Element>;
|
|
28
|
+
GoogleOneTap: react0.LazyExoticComponent<react0.ComponentType<_clerk_shared_types455.GoogleOneTapProps>>;
|
|
29
29
|
Waitlist: react0.LazyExoticComponent<(props: unknown) => _emotion_react_jsx_runtime0.JSX.Element>;
|
|
30
|
-
WaitlistModal: react0.LazyExoticComponent<(props:
|
|
30
|
+
WaitlistModal: react0.LazyExoticComponent<(props: _clerk_shared_types455.WaitlistModalProps) => JSX.Element>;
|
|
31
31
|
BlankCaptchaModal: react0.LazyExoticComponent<typeof BlankCaptchaModal>;
|
|
32
|
-
PricingTable: react0.LazyExoticComponent<(props:
|
|
33
|
-
Checkout: react0.LazyExoticComponent<(props:
|
|
34
|
-
PlanDetails: react0.LazyExoticComponent<(props:
|
|
32
|
+
PricingTable: react0.LazyExoticComponent<(props: _clerk_shared_types455.PricingTableProps) => _emotion_react_jsx_runtime0.JSX.Element>;
|
|
33
|
+
Checkout: react0.LazyExoticComponent<(props: _clerk_shared_types455.__internal_CheckoutProps) => _emotion_react_jsx_runtime0.JSX.Element>;
|
|
34
|
+
PlanDetails: react0.LazyExoticComponent<(props: _clerk_shared_types455.__internal_PlanDetailsProps) => _emotion_react_jsx_runtime0.JSX.Element>;
|
|
35
35
|
APIKeys: react0.LazyExoticComponent<react0.ComponentType<unknown>>;
|
|
36
36
|
OAuthConsent: react0.LazyExoticComponent<() => _emotion_react_jsx_runtime0.JSX.Element>;
|
|
37
|
-
SubscriptionDetails: react0.LazyExoticComponent<(props:
|
|
37
|
+
SubscriptionDetails: react0.LazyExoticComponent<(props: _clerk_shared_types455.__internal_SubscriptionDetailsProps) => _emotion_react_jsx_runtime0.JSX.Element>;
|
|
38
38
|
TaskChooseOrganization: react0.LazyExoticComponent<react0.ComponentType<AvailableComponentProps>>;
|
|
39
39
|
TaskResetPassword: react0.LazyExoticComponent<react0.ComponentType<AvailableComponentProps>>;
|
|
40
40
|
TaskSetupMFA: react0.LazyExoticComponent<react0.ComponentType<AvailableComponentProps>>;
|
package/dist/no-rhc/ClerkUI.js
CHANGED
|
@@ -23,8 +23,8 @@ import { isVersionAtLeast, parseVersion } from "@clerk/shared/versionCheck";
|
|
|
23
23
|
* @public
|
|
24
24
|
*/
|
|
25
25
|
var ClerkUI = class ClerkUI {
|
|
26
|
-
static version = "1.6.
|
|
27
|
-
version = "1.6.
|
|
26
|
+
static version = "1.6.6-canary.v20260423111025";
|
|
27
|
+
version = "1.6.6-canary.v20260423111025";
|
|
28
28
|
#componentRenderer;
|
|
29
29
|
/**
|
|
30
30
|
* Creates a new `ClerkUI` instance and mounts the internal component renderer.
|
package/dist/no-rhc/index.js
CHANGED
package/dist/server.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_clerk_ui=globalThis.webpackChunk_clerk_ui||[]).push([["10"],{1631(e,t,r){r.d(t,{n:()=>o});var n=r(9763),i=r(3857),a=r(8342);let o=e=>{let{onBackLinkClick:t}=e;return(0,n.Y)(i.J,{cardTitle:(0,a.G)("signIn.alternativeMethods.getHelp.title"),cardSubtitle:(0,a.G)("signIn.alternativeMethods.getHelp.content"),onBackLinkClick:t})}},7494(e,t,r){let n,i;r.r(t),r.d(t,{SignIn:()=>tb,SignInModal:()=>tk});var a,o=r(9763),s=r(9529),l=r(9701),c=r(1170),d=r(6869),u=r(1971),h=r(4676),p=r(1522),f=r(6921),g=r(7700),m=r(1221),_=r(6661),I=r(9922),w=r(399),S=r(7585),v=r(8342),b=r(2597),Y=r(6447),k=r(6844),C=r(7904),A=r(7308),F=r(2824),y=r(3478),U=r(8029);let P=(0,l.lazy)(()=>Promise.all([r.e("545"),r.e("666"),r.e("188")]).then(r.bind(r,527)).then(e=>({default:e.Web3SolanaWalletButtons}))),E=(0,S.RL)((0,S.SY)((0,A.dm)(()=>{let e=(0,s.ho)(),t=(0,A.f0)(),r=(0,U.r)(),n=(0,d.r)();return(0,o.Y)(p.n.Part,{part:"chooseWallet",children:(0,o.FD)(C.Z.Root,{children:[(0,o.FD)(C.Z.Content,{children:[(0,o.FD)(F.Y.Root,{showLogo:!0,children:[(0,o.Y)(F.Y.Title,{localizationKey:(0,v.G)("signIn.web3Solana.title")}),(0,o.Y)(F.Y.Subtitle,{localizationKey:(0,v.G)("signIn.web3Solana.subtitle")})]}),(0,o.Y)(C.Z.Alert,{children:t.error}),(0,o.FD)(b.so,{direction:"col",gap:4,children:[(0,o.Y)(l.Suspense,{fallback:(0,o.Y)(b.so,{direction:"row",align:"center",justify:"center",sx:e=>({height:"100%",minHeight:e.sizes.$32}),children:(0,o.Y)(b.y$,{size:"lg",colorScheme:"primary",elementDescriptor:Y.$z.spinner})}),children:(0,o.Y)(P,{web3AuthCallback:({walletName:i})=>e.authenticateWithWeb3({customNavigate:r.navigate,redirectUrl:n.afterSignInUrl||"/",secondFactorUrl:"factor-two",signUpContinueUrl:n.isCombinedFlow?"create/continue":n.signUpContinueUrl,strategy:"web3_solana_signature",walletName:i}).catch(e=>(0,y.f)(e,t.setError))})}),(0,o.Y)(k.E,{boxElementDescriptor:Y.$z.backRow,linkElementDescriptor:Y.$z.backLink,onClick:()=>{r.navigate("../")}})]})]}),(0,o.Y)(C.Z.Footer,{})]})})})));var D=r(8008);let M=()=>Promise.all([r.e("26"),r.e("545"),r.e("666"),r.e("472")]).then(r.bind(r,6186)),L=(0,l.lazy)(()=>M().then(e=>({default:e.SignUpVerifyPhone}))),T=(0,l.lazy)(()=>M().then(e=>({default:e.SignUpVerifyEmail}))),G=(0,l.lazy)(()=>M().then(e=>({default:e.SignUpStart}))),R=(0,l.lazy)(()=>M().then(e=>({default:e.SignUpSSOCallback}))),B=(0,l.lazy)(()=>M().then(e=>({default:e.SignUpContinue})));var z=r(337),O=r(7447),N=r(869),$=r(5357),Z=r(1637),x=r(7591),K=r(1868),W=r(8627),V=r(4376),q=r(6853);let H=(0,A.dm)(()=>{let e=(0,x.n)(),t=(0,A.f0)(),{navigate:r}=(0,U.r)(),n=(0,q.p)(),{userSettings:{passwordSettings:i}}=(0,K.O)(),{t:a,locale:s}=(0,W._)(),c="needs_new_password"===e.status&&"reset_password_email_code"!==e.firstFactorVerification.strategy&&"reset_password_phone_code"!==e.firstFactorVerification.strategy;l.useEffect(()=>{c&&t.setError(a((0,v.G)("signIn.resetPassword.requiredMessage")))},[]);let d=(0,Z.tJ)("password","",{type:"password",label:(0,v.G)("formFieldLabel__newPassword"),isRequired:!0,validatePassword:!0,buildErrorMessage:e=>(0,$.C5)(e,{t:a,locale:s,passwordSettings:i})}),u=(0,Z.tJ)("confirmPassword","",{type:"password",label:(0,v.G)("formFieldLabel__confirmPassword"),isRequired:!0}),h=(0,Z.tJ)("signOutOfOtherSessions","",{type:"checkbox",label:(0,v.G)("formFieldLabel__signOutOfOtherSessions"),defaultChecked:!0}),{setConfirmPasswordFeedback:p,isPasswordMatch:f}=(0,V.Z)({passwordField:d,confirmPasswordField:u}),g=async()=>{if(f){d.clearFeedback(),u.clearFeedback();try{let{status:t,createdSessionId:i}=await e.resetPassword({password:d.value,signOutOfOtherSessions:h.checked});switch(t){case"complete":if(i){let e=new URLSearchParams;return e.set("createdSessionId",i),r(`../reset-password-success?${e.toString()}`)}return console.error((0,z.s)(t,n));case"needs_second_factor":return r("../factor-two");default:return console.error((0,z.s)(t,n))}}catch(e){return(0,N.H4)(e,[d,u],t.setError)}}};return(0,o.FD)(C.Z.Root,{children:[(0,o.FD)(C.Z.Content,{children:[(0,o.Y)(F.Y.Root,{showLogo:!0,children:(0,o.Y)(F.Y.Title,{localizationKey:(0,v.G)("signIn.resetPassword.title")})}),(0,o.Y)(C.Z.Alert,{children:t.error}),(0,o.Y)(b.fv,{elementDescriptor:Y.$z.main,gap:8,children:(0,o.FD)(O.l.Root,{onSubmit:g,onBlur:()=>{d.value&&p(u.value)},gap:8,children:[(0,o.FD)(b.fv,{gap:6,children:[(0,o.Y)("input",{readOnly:!0,"data-testid":"hidden-identifier",id:"identifier-field",name:"identifier",value:e.identifier||"",style:{display:"none"}}),(0,o.Y)(O.l.ControlRow,{elementId:d.id,children:(0,o.Y)(O.l.PasswordInput,{...d.props,isRequired:!0,autoFocus:!0,autoComplete:"new-password"})}),(0,o.Y)(O.l.ControlRow,{elementId:u.id,children:(0,o.Y)(O.l.PasswordInput,{...u.props,onChange:e=>(e.target.value&&p(e.target.value),u.props.onChange(e)),autoComplete:"new-password"})}),!c&&(0,o.Y)(O.l.ControlRow,{elementId:h.id,children:(0,o.Y)(O.l.Checkbox,{...h.props})})]}),(0,o.FD)(b.fv,{gap:3,children:[(0,o.Y)(O.l.SubmitButton,{isDisabled:!f,localizationKey:(0,v.G)("signIn.resetPassword.formButtonPrimary")}),(0,o.Y)(C.Z.Action,{elementId:"alternativeMethods",children:(0,o.Y)(C.Z.ActionLink,{elementDescriptor:Y.$z.backLink,localizationKey:(0,v.G)("backButton"),onClick:()=>r("../")})})]})]})})]}),(0,o.Y)(C.Z.Footer,{})]})});var j=r(470),J=r(4283);let X=(0,A.dm)(()=>{let e=(0,A.f0)();return(0,j.h)(),(0,o.FD)(C.Z.Root,{children:[(0,o.FD)(C.Z.Content,{children:[(0,o.Y)(F.Y.Root,{showLogo:!0,children:(0,o.Y)(F.Y.Title,{localizationKey:(0,v.G)("signIn.resetPassword.title")})}),(0,o.Y)(C.Z.Alert,{children:e.error}),(0,o.FD)(b.fv,{elementDescriptor:Y.$z.main,gap:8,children:[(0,o.Y)(b.EY,{localizationKey:(0,v.G)("signIn.resetPassword.successMessage")}),(0,o.Y)(J.s,{direction:"row",center:!0,children:(0,o.Y)(b.y$,{size:"xl",colorScheme:"primary",elementDescriptor:Y.$z.spinner})})]})]}),(0,o.Y)(C.Z.Footer,{})]})});var Q=r(7816),ee=r(9997),et=r(5682),er=r(9832),en=r(2495),ei=r(5047),ea=r(3623),eo=r(7847);let es=(0,S.SY)((0,A.dm)(()=>{let e=(0,A.f0)(),{userProfileUrl:t}=(0,K.O)().displayConfig,{afterSignInUrl:r,path:n,signInUrl:i,taskUrl:a}=(0,d.r)(),{navigateAfterSignOut:s}=(0,er.g)(),{handleSignOutAllClicked:l,handleSessionClicked:c,signedInSessions:u,handleAddAccountClicked:h}=(0,eo.u)({taskUrl:a,navigateAfterSignOut:s,afterSwitchSessionUrl:r,userProfileUrl:t,signInUrl:n??i,user:void 0});return(0,o.Y)(p.n.Part,{part:"accountSwitcher",children:(0,o.FD)(C.Z.Root,{children:[(0,o.FD)(C.Z.Content,{sx:e=>({padding:`${e.space.$8} ${e.space.$none} ${e.space.$none}`}),children:[(0,o.FD)(F.Y.Root,{children:[(0,o.Y)(F.Y.Title,{localizationKey:(0,v.G)("signIn.accountSwitcher.title")}),(0,o.Y)(F.Y.Subtitle,{localizationKey:(0,v.G)("signIn.accountSwitcher.subtitle")})]}),(0,o.Y)(C.Z.Alert,{children:e.error}),(0,o.Y)(b.fv,{elementDescriptor:Y.$z.main,gap:8,sx:e=>({borderTopWidth:e.borderWidths.$normal,borderTopStyle:e.borderStyles.$solid,borderTopColor:e.colors.$borderAlpha100}),children:(0,o.FD)(Q.En,{role:"menu",children:[u.map(e=>(0,o.Y)(ee.P,{onClick:c(e),sx:e=>({height:e.sizes.$16,justifyContent:"flex-start",borderRadius:0}),icon:en.A,children:(0,o.Y)(et.c,{user:e.user,sx:{width:"100%"}})},e.id)),(0,o.Y)(Q.rc,{elementDescriptor:Y.$z.accountSwitcherActionButton,elementId:Y.$z.accountSwitcherActionButton.setId("addAccount"),iconBoxElementDescriptor:Y.$z.accountSwitcherActionButtonIconBox,iconBoxElementId:Y.$z.accountSwitcherActionButtonIconBox.setId("addAccount"),iconElementDescriptor:Y.$z.accountSwitcherActionButtonIcon,iconElementId:Y.$z.accountSwitcherActionButtonIcon.setId("addAccount"),icon:ei.A,label:(0,v.G)("signIn.accountSwitcher.action__addAccount"),onClick:h,iconSx:e=>({width:e.sizes.$9,height:e.sizes.$6}),iconBoxSx:e=>({minHeight:e.sizes.$9,minWidth:e.sizes.$6,alignItems:"center"}),spinnerSize:"md"})]})})]}),(0,o.Y)(C.Z.Footer,{sx:e=>({">:first-of-type":{padding:`${e.space.$1}`,width:"100%"}}),children:(0,o.Y)(C.Z.Action,{sx:{width:"100%",">:first-of-type":{width:"100%",borderBottomWidth:0}},children:(0,o.Y)(ea.ww,{handleSignOutAllClicked:l,elementDescriptor:Y.$z.accountSwitcherActionButton,elementId:Y.$z.accountSwitcherActionButton.setId("signOutAll"),iconBoxElementDescriptor:Y.$z.accountSwitcherActionButtonIconBox,iconBoxElementId:Y.$z.accountSwitcherActionButtonIconBox.setId("signOutAll"),iconElementDescriptor:Y.$z.accountSwitcherActionButtonIcon,iconElementId:Y.$z.accountSwitcherActionButtonIcon.setId("signOutAll"),label:(0,v.G)("signIn.accountSwitcher.action__signOutAll"),actionSx:e=>({padding:`${e.space.$2} ${e.space.$2}`})})})})]})})}));var el=r(9095),ec=r(3015),ed=r(1906),eu=r(4970),eh=r(1631);let ep=e=>{let[t,r]=l.useState(!1),n=l.useCallback(()=>r(e=>!e),[r]);return t?(0,o.Y)(eh.n,{onBackLinkClick:n}):(0,o.Y)(ef,{onBackLinkClick:e.onBackLinkClick,onFactorSelected:e.onFactorSelected,onHavingTroubleClick:n})},ef=e=>{let{onHavingTroubleClick:t,onFactorSelected:r,onBackLinkClick:n}=e,i=(0,A.f0)(),{supportedSecondFactors:a}=(0,x.n)();return(0,o.Y)(p.n.Part,{part:"alternativeMethods",children:(0,o.FD)(C.Z.Root,{children:[(0,o.FD)(C.Z.Content,{children:[(0,o.FD)(F.Y.Root,{showLogo:!0,children:[(0,o.Y)(F.Y.Title,{localizationKey:(0,v.G)("signIn.alternativeMethods.title")}),(0,o.Y)(F.Y.Subtitle,{localizationKey:(0,v.G)("signIn.alternativeMethods.subtitle")})]}),(0,o.Y)(C.Z.Alert,{children:i.error}),(0,o.FD)(b.fv,{elementDescriptor:Y.$z.main,gap:3,children:[(0,o.Y)(b.fv,{gap:2,children:a&&a.sort(ed.Wy).map((e,t)=>(0,o.Y)(ec.X,{textLocalizationKey:function(e){switch(e.strategy){case"phone_code":return(0,v.G)("signIn.alternativeMethods.blockButton__phoneCode",{identifier:(0,eu.u)(e.safeIdentifier)||""});case"totp":return(0,v.G)("signIn.alternativeMethods.blockButton__totp");case"backup_code":return(0,v.G)("signIn.alternativeMethods.blockButton__backupCode");case"email_code":return(0,v.G)("signIn.alternativeMethods.blockButton__emailCode",{identifier:(0,eu.u)(e.safeIdentifier)||""});case"email_link":return(0,v.G)("signIn.alternativeMethods.blockButton__emailLink",{identifier:(0,eu.u)(e.safeIdentifier)||""});default:throw Error("Invalid sign in strategy")}}(e),elementDescriptor:Y.$z.alternativeMethodsBlockButton,textElementDescriptor:Y.$z.alternativeMethodsBlockButtonText,arrowElementDescriptor:Y.$z.alternativeMethodsBlockButtonArrow,isDisabled:i.isLoading,onClick:()=>r(e)},t))}),(0,o.Y)(C.Z.Action,{elementId:"alternativeMethods",children:n&&(0,o.Y)(C.Z.ActionLink,{localizationKey:(0,v.G)("backButton"),onClick:e.onBackLinkClick})})]})]}),(0,o.Y)(C.Z.Footer,{children:(0,o.FD)(C.Z.Action,{elementId:"havingTrouble",children:[(0,o.Y)(C.Z.ActionText,{localizationKey:(0,v.G)("signIn.alternativeMethods.actionText")}),(0,o.Y)(C.Z.ActionLink,{localizationKey:(0,v.G)("signIn.alternativeMethods.actionLink"),onClick:t})]})})]})})};var eg=r(1457),em=r(3489),e_=r(4348);let eI=e=>(0,e_.Kw)(e.firstFactorVerification?.strategy)&&e.firstFactorVerification?.status==="verified",ew=e=>{let t=(0,K.O)(),r=(0,x.n)(),n=(0,A.f0)(),{afterSignInUrl:i,navigateOnSetActive:a}=(0,d.r)(),{setActive:c}=(0,s.ho)(),{navigate:u}=(0,U.r)(),h=(0,q.p)(),p=(0,s.ho)(),f=(0,l.useMemo)(()=>{let e=Object.values(t.userSettings.attributes).some(e=>e.used_for_second_factor);return"new"===r.clientTrustState&&!e},[r.clientTrustState,t.userSettings.attributes]);l.useEffect(()=>{e.factorAlreadyPrepared||g?.()},[]);let g=e.prepare?()=>e.prepare?.().then(()=>e.onFactorPrepare()).catch(e=>{if((0,eg._d)(e))return p.__internal_navigateWithError("..",e.errors[0]);(0,N.H4)(e,[],n.setError)}):void 0;return(0,o.Y)(em.j,{cardTitle:e.cardTitle,cardSubtitle:eI(r)?(0,v.G)("signIn.forgotPassword.subtitle"):e.cardSubtitle,cardNotice:e.showClientTrustNotice||f?(0,v.G)("signIn.newDeviceVerificationNotice"):void 0,resendButton:e.resendButton,inputLabel:e.inputLabel,onCodeEntryFinishedAction:(t,n,o)=>{r.attemptSecondFactor({strategy:e.factor.strategy,code:t}).then(async e=>{if(await n(),"complete"!==e.status)return console.error((0,z.s)(e.status,h));if(eI(e)&&e.createdSessionId){let t=new URLSearchParams;return t.set("createdSessionId",e.createdSessionId),u(`../reset-password-success?${t.toString()}`)}return c({session:e.createdSessionId,navigate:async({session:e,decorateUrl:t})=>{await a({session:e,redirectUrl:i,decorateUrl:t})}})}).catch(e=>(0,eg._d)(e)?p.__internal_navigateWithError("..",e.errors[0]):o(e))},onResendCodeClicked:g,safeIdentifier:"safeIdentifier"in e.factor?e.factor.safeIdentifier:void 0,profileImageUrl:r.userData.imageUrl,onShowAlternativeMethodsClicked:e.onShowAlternativeMethodsClicked,children:eI(r)&&(0,o.Y)(b.EY,{localizationKey:(0,v.G)("signIn.resetPasswordMfa.detailsLabel"),colorScheme:"secondary"})})},eS=e=>{let t=(0,x.n)();return(0,o.Y)(p.n.Part,{part:"emailCode2Fa",children:(0,o.Y)(ew,{...e,cardTitle:(0,v.G)("signIn.emailCodeMfa.title"),cardSubtitle:(0,v.G)("signIn.emailCodeMfa.subtitle"),inputLabel:(0,v.G)("signIn.emailCodeMfa.formTitle"),resendButton:(0,v.G)("signIn.emailCodeMfa.resendButton"),prepare:()=>{let{emailAddressId:r,strategy:n}=e.factor;return t.prepareSecondFactor({emailAddressId:r,strategy:n})}})})};var ev=r(8414),eb=r(3050),eY=r(1902),ek=r(6537);let eC=e=>{let{t}=(0,W._)(),r=(0,A.f0)(),n=(0,x.n)(),i=(0,d.r)(),{signInUrl:a}=i,{afterSignInUrl:c}=(0,d.r)(),{setActive:u}=(0,s.ho)(),{startEmailLinkFlow:h,cancelEmailLinkFlow:f}=(0,ek.u)(n),[g,m]=l.useState(!1),_=(0,s.ho)();l.useEffect(()=>{I()},[]);let I=()=>{h({emailAddressId:e.factor.emailAddressId,redirectUrl:(0,eY.lA)({ctx:i,baseUrl:a,intent:"sign-in"})}).then(e=>w(e)).catch(e=>{if((0,eg._d)(e))return _.__internal_navigateWithError("..",e.errors[0]);(0,N.H4)(e,[],r.setError)})},w=async e=>{let n=e.secondFactorVerification;"expired"===n.status?r.setError(t((0,v.G)("formFieldError__verificationLinkExpired"))):n.verifiedFromTheSameClient()?m(!0):await u({session:e.createdSessionId,redirectUrl:c})};return g?(0,o.Y)(eb.$,{title:(0,v.G)("signIn.emailLink.verifiedSwitchTab.titleNewTab"),subtitle:(0,v.G)("signIn.emailLink.verifiedSwitchTab.subtitleNewTab"),status:"verified_switch_tab"}):(0,o.Y)(p.n.Part,{part:"emailLink",children:(0,o.Y)(ev._,{cardTitle:(0,v.G)("signIn.emailLinkMfa.title"),cardSubtitle:(0,v.G)("signIn.emailLinkMfa.subtitle"),cardNotice:e.showClientTrustNotice||"new"===n.clientTrustState?(0,v.G)("signIn.newDeviceVerificationNotice"):void 0,formSubtitle:(0,v.G)("signIn.emailLinkMfa.formSubtitle"),resendButton:(0,v.G)("signIn.emailLinkMfa.resendButton"),onResendCodeClicked:()=>{f(),I()},safeIdentifier:e.factor.safeIdentifier,profileImageUrl:n.userData.imageUrl,onShowAlternativeMethodsClicked:e.onShowAlternativeMethodsClicked})})},eA=e=>{let t=(0,x.n)();return(0,o.Y)(p.n.Part,{part:"phoneCode2Fa",children:(0,o.Y)(ew,{...e,cardTitle:(0,v.G)("signIn.phoneCodeMfa.title"),cardSubtitle:(0,v.G)("signIn.phoneCodeMfa.subtitle"),inputLabel:(0,v.G)("signIn.phoneCodeMfa.formTitle"),resendButton:(0,v.G)("signIn.phoneCodeMfa.resendButton"),prepare:()=>{let{phoneNumberId:r,strategy:n}=e.factor;return t.prepareSecondFactor({phoneNumberId:r,strategy:n})}})})};var eF=r(4843);let ey=(0,S.RL)((0,S.SY)((0,A.dm)(function(){let e=(0,x.n)(),{currentFactor:t,factorAlreadyPrepared:r,handleFactorPrepare:n,selectFactor:i,showAllStrategies:a,toggleAllStrategies:s}=(0,eF.j)(e.supportedSecondFactors);if(!t)return(0,o.Y)(el.B,{});if(a)return(0,o.Y)(ep,{onBackLinkClick:s,onFactorSelected:i});switch(t?.strategy){case"phone_code":return(0,o.Y)(eA,{showClientTrustNotice:!0,factorAlreadyPrepared:r,onFactorPrepare:n,factor:t,onShowAlternativeMethodsClicked:s});case"email_code":return(0,o.Y)(eS,{showClientTrustNotice:!0,factorAlreadyPrepared:r,onFactorPrepare:n,factor:t,onShowAlternativeMethodsClicked:s});case"email_link":return(0,o.Y)(eC,{showClientTrustNotice:!0,factorAlreadyPrepared:r,onFactorPrepare:n,factor:t,onShowAlternativeMethodsClicked:s});default:return(0,o.Y)(el.B,{})}})));var eU=r(3857),eP=r(3127),eE=r(8786),eD=r(9154),eM=r(1062),eL=r(4934),eT=r(6544),eG=r(3996),eR=r(3930),eB=r(9339),ez=r(2144),eO=r(4785);let eN=l.memo(e=>{let t=(0,s.ho)(),{navigate:r}=(0,U.r)(),n=(0,A.f0)(),i=(0,d.r)(),a=(0,x.n)(),l=i.ssoCallbackUrl,c=i.afterSignInUrl||"/",u="popup"===i.oauthFlow||"auto"===i.oauthFlow&&(0,ez.C)(),{onAlternativePhoneCodeProviderClick:h,...p}=e,f=e=>(0,eg.$R)(e)&&e.errors.find(e=>e.code===eB.l.SESSION_EXISTS)?t.setActive({session:t.client.lastActiveSessionId,navigate:async({session:e,decorateUrl:t})=>{await i.navigateOnSetActive({session:e,redirectUrl:i.afterSignInUrl,decorateUrl:t})}}):(0,N.H4)(e,[],n.setError);return(0,o.Y)(eO.V,{...p,showLastAuthenticationStrategy:!0,idleAfterDelay:!u,oauthCallback:e=>{if(u){let t=window.open("about:blank","","width=600,height=800"),r=setInterval(()=>{(!t||t.closed)&&(clearInterval(r),n.setIdle())},500);return a.authenticateWithPopup({strategy:e,redirectUrl:l,redirectUrlComplete:c,popup:t,oidcPrompt:i.oidcPrompt}).catch(e=>f(e))}return a.authenticateWithRedirect({strategy:e,redirectUrl:l,redirectUrlComplete:c,oidcPrompt:i.oidcPrompt}).catch(e=>f(e))},web3Callback:e=>"web3_solana_signature"===e?r(`choose-wallet?strategy=${e}`):t.authenticateWithWeb3({customNavigate:r,redirectUrl:c,signUpContinueUrl:i.isCombinedFlow?"create/continue":i.signUpContinueUrl,strategy:e,secondFactorUrl:"factor-two"}).catch(e=>(0,y.f)(e,n.setError)),alternativePhoneCodeCallback:e=>{h?.(e)}})});function e$(){let e=(0,x.n)();return e.supportedFirstFactors?.find(({strategy:e})=>(0,e_.Kw)(e))}let eZ=e=>((e,t)=>{let[r,n]=l.useState(!1),i=l.useCallback(()=>n(e=>!e),[n]);return r?(0,o.Y)(eh.n,{onBackLinkClick:i}):(0,o.Y)(e,{...t,onHavingTroubleClick:i})})(ex,{...e}),ex=e=>{let{onBackLinkClick:t,onHavingTroubleClick:r,onFactorSelected:n,mode:i="default"}=e,a=(0,A.f0)(),s=e$(),{supportedFirstFactors:l}=(0,x.n)(),{firstPartyFactors:c,hasAnyStrategy:d}=(0,eP.y)({filterOutFactor:e?.currentFactor,supportedFirstFactors:l}),u=function(e){switch(e){case"forgot":return"forgotPasswordMethods";case"pwned":return"passwordPwnedMethods";case"passwordCompromised":return"passwordCompromisedMethods";default:return"alternativeMethods"}}(i),h=function(e){switch(e){case"forgot":return(0,v.G)("signIn.forgotPasswordAlternativeMethods.title");case"pwned":return(0,v.G)("signIn.passwordPwned.title");case"passwordCompromised":return(0,v.G)("signIn.passwordCompromised.title");default:return(0,v.G)("signIn.alternativeMethods.title")}}(i),f=function(e){switch(e){case"forgot":case"pwned":return!0;default:return!1}}(i);return(0,o.Y)(p.n.Part,{part:u,children:(0,o.FD)(C.Z.Root,{children:[(0,o.FD)(C.Z.Content,{children:[(0,o.FD)(F.Y.Root,{showLogo:!0,children:[(0,o.Y)(F.Y.Title,{localizationKey:h}),!f&&"passwordCompromised"!==i&&(0,o.Y)(F.Y.Subtitle,{localizationKey:(0,v.G)("signIn.alternativeMethods.subtitle")})]}),(0,o.Y)(C.Z.Alert,{children:a.error}),(0,o.FD)(b.so,{direction:"col",elementDescriptor:Y.$z.main,gap:6,children:[f&&s&&(0,o.Y)(b.$n,{localizationKey:eK(s),elementDescriptor:Y.$z.alternativeMethodsBlockButton,isDisabled:a.isLoading,onClick:()=>{a.setError(void 0),n(s)}}),f&&d&&(0,o.Y)(eE.c,{dividerText:(0,v.G)("signIn.forgotPasswordAlternativeMethods.label__alternativeMethods")}),(0,o.FD)(b.fv,{gap:4,children:[d&&(0,o.FD)(b.so,{elementDescriptor:Y.$z.alternativeMethods,direction:"col",gap:2,children:[(0,o.Y)(eN,{enableWeb3Providers:!0,enableOAuthProviders:!0,enableAlternativePhoneCodeProviders:!1}),c&&c.map((e,t)=>{var r;return(0,o.Y)(ec.X,{leftIcon:(r=e,({email_link:eD.A,email_code:eM.A,phone_code:eL.A,reset_password_email_code:eT.A,reset_password_phone_code:eT.A,password:eG.A,passkey:eR.A})[r.strategy]),textLocalizationKey:eK(e),elementDescriptor:Y.$z.alternativeMethodsBlockButton,textElementDescriptor:Y.$z.alternativeMethodsBlockButtonText,arrowElementDescriptor:Y.$z.alternativeMethodsBlockButtonArrow,textVariant:"buttonLarge",isDisabled:a.isLoading,onClick:()=>{a.setError(void 0),n(e)}},t)})]}),t&&(0,o.Y)(k.E,{boxElementDescriptor:Y.$z.backRow,linkElementDescriptor:Y.$z.backLink,onClick:t})]})]})]}),(0,o.Y)(C.Z.Footer,{children:(0,o.FD)(C.Z.Action,{elementId:"havingTrouble",children:[(0,o.Y)(C.Z.ActionText,{localizationKey:(0,v.G)("signIn.alternativeMethods.actionText")}),(0,o.Y)(C.Z.ActionLink,{localizationKey:(0,v.G)("signIn.alternativeMethods.actionLink"),onClick:r})]})})]})})};function eK(e){switch(e.strategy){case"email_link":return(0,v.G)("signIn.alternativeMethods.blockButton__emailLink",{identifier:(0,eu.u)(e.safeIdentifier)||""});case"email_code":return(0,v.G)("signIn.alternativeMethods.blockButton__emailCode",{identifier:(0,eu.u)(e.safeIdentifier)||""});case"phone_code":return(0,v.G)("signIn.alternativeMethods.blockButton__phoneCode",{identifier:(0,eu.u)(e.safeIdentifier)||""});case"password":return(0,v.G)("signIn.alternativeMethods.blockButton__password");case"passkey":return(0,v.G)("signIn.alternativeMethods.blockButton__passkey");case"reset_password_email_code":case"reset_password_phone_code":return(0,v.G)("signIn.forgotPasswordAlternativeMethods.blockButton__resetPassword");default:throw Error(`Invalid sign in strategy: "${e.strategy}"`)}}var eW=r(2928);function eV(e){let t=(0,A.f0)(),{setActive:r,__internal_navigateWithError:n}=(0,s.ho)(),i=(0,q.p)(),{afterSignInUrl:a,navigateOnSetActive:o}=(0,d.r)(),{authenticateWithPasskey:c}=(0,x.n)();return(0,l.useEffect)(()=>()=>{eW.sv.abort()},[]),(0,l.useCallback)(async(...s)=>{try{let t=await c(...s);switch(t.status){case"complete":return r({session:t.createdSessionId,navigate:async({session:e,decorateUrl:t})=>{await o({session:e,redirectUrl:a,decorateUrl:t})}});case"needs_second_factor":return e();default:return console.error((0,z.s)(t.status,i))}}catch(r){let{flow:e}=s[0]||{};if((0,eg.Cm)(r)&&("passkey_operation_aborted"===r.code||"autofill"===e&&"passkey_retrieval_cancelled"===r.code))return;if((0,eg._d)(r))return n("..",r.errors[0]);(0,N.H4)(r,[],t.setError)}},[])}function eq(e){return!!e?.length&&e.filter(e=>"enterprise_sso"===e.strategy&&"enterpriseConnectionId"in e&&"enterpriseConnectionName"in e).length>1}var eH=r(9105);let ej=e=>{let t=(0,x.n)(),r=(0,A.f0)(),{navigate:n}=(0,U.r)(),{afterSignInUrl:i,navigateOnSetActive:a}=(0,d.r)(),{setActive:l}=(0,s.ho)(),c=(0,q.p)(),u=(0,s.ho)(),h=e.factor.channel,p="verified"===t.firstFactorVerification.status&&e.factorAlreadyPrepared;return(0,o.Y)(em.j,{cardTitle:e.cardTitle,cardSubtitle:e.cardSubtitle,inputLabel:e.inputLabel,resendButton:e.resendButton,onCodeEntryFinishedAction:(r,o,s)=>{t.attemptFirstFactor({strategy:e.factor.strategy,code:r}).then(async e=>{switch(await o(),e.status){case"complete":return l({session:e.createdSessionId,navigate:async({session:e,decorateUrl:t})=>{await a({session:e,redirectUrl:i,decorateUrl:t})}});case"needs_second_factor":return n("../factor-two");case"needs_new_password":return n("../reset-password");default:return console.error((0,z.s)(e.status,c))}}).catch(e=>(0,eg._d)(e)?u.__internal_navigateWithError("..",e.errors[0]):s(e))},onResendCodeClicked:()=>{p||t.prepareFirstFactor({...e.factor,channel:h}).then(()=>e.onFactorPrepare()).catch(e=>(0,N.H4)(e,[],r.setError))},safeIdentifier:e.factor.safeIdentifier,profileImageUrl:t.userData.imageUrl,alternativeMethodsLabel:(0,v.G)("footerActionLink__alternativePhoneCodeProvider"),onShowAlternativeMethodsClicked:()=>{r.setError(void 0),e.onChangePhoneCodeChannel({...e.factor,channel:void 0})},showAlternativeMethods:!0,onIdentityPreviewEditClicked:()=>n("../"),onBackLinkClicked:e.onBackLinkClicked})},eJ=e=>(0,o.Y)(p.n.Part,{part:"phoneCode",children:(0,o.Y)(ej,{...e,cardTitle:(0,v.G)("signIn.alternativePhoneCodeProvider.title",{provider:(0,eH.y)(e.factor.channel)?.name||""}),cardSubtitle:(0,v.G)("signIn.alternativePhoneCodeProvider.subtitle"),inputLabel:(0,v.G)("signIn.alternativePhoneCodeProvider.formTitle"),resendButton:(0,v.G)("signIn.alternativePhoneCodeProvider.resendButton")})}),eX=e=>{let t=(0,x.n)(),r=(0,A.f0)(),{navigate:n}=(0,U.r)(),{afterSignInUrl:i,navigateOnSetActive:a}=(0,d.r)(),{setActive:c}=(0,s.ho)(),u=(0,q.p)(),h=(0,s.ho)(),p="verified"===t.firstFactorVerification.status&&e.factorAlreadyPrepared,g=(0,l.useMemo)(()=>{let t=e.factor,r=t.strategy;return"emailAddressId"in t&&(r+=`_${t.emailAddressId}`),"phoneNumberId"in t&&(r+=`_${t.phoneNumberId}`),"channel"in t&&t.channel&&(r+=`_${t.channel}`),{name:"signIn.prepareFirstFactor",factorKey:r}},[e.factor.strategy,"emailAddressId"in e.factor?e.factor.emailAddressId:void 0,"phoneNumberId"in e.factor?e.factor.phoneNumberId:void 0,"channel"in e.factor?e.factor.channel:void 0]);return(0,f.s)(p?void 0:()=>t?.prepareFirstFactor(e.factor),g,{staleTime:100,onSuccess:()=>e.onFactorPrepare(),onError:e=>(0,N.H4)(e,[],r.setError)}),(0,o.Y)(em.j,{cardTitle:e.cardTitle,cardSubtitle:e.cardSubtitle,inputLabel:e.inputLabel,resendButton:e.resendButton,onCodeEntryFinishedAction:(r,o,s)=>{t.attemptFirstFactor({strategy:e.factor.strategy,code:r}).then(async e=>{switch(await o(),e.status){case"complete":return c({session:e.createdSessionId,navigate:async({session:e,decorateUrl:t})=>{await a({session:e,redirectUrl:i,decorateUrl:t})}});case"needs_second_factor":return n("../factor-two");case"needs_new_password":return n("../reset-password");default:return console.error((0,z.s)(e.status,u))}}).catch(e=>(0,eg._d)(e)?h.__internal_navigateWithError("..",e.errors[0]):s(e))},onResendCodeClicked:()=>{p||t.prepareFirstFactor(e.factor).then(()=>e.onFactorPrepare()).catch(e=>(0,N.H4)(e,[],r.setError))},safeIdentifier:e.factor.safeIdentifier,profileImageUrl:t.userData.imageUrl,onShowAlternativeMethodsClicked:e.onShowAlternativeMethodsClicked,showAlternativeMethods:e.showAlternativeMethods,onIdentityPreviewEditClicked:()=>n("../"),onBackLinkClicked:e.onBackLinkClicked})},eQ=e=>(0,o.Y)(p.n.Part,{part:"emailCode",children:(0,o.Y)(eX,{...e,cardTitle:(0,v.G)("signIn.emailCode.title"),cardSubtitle:(0,v.G)("signIn.emailCode.subtitle"),inputLabel:(0,v.G)("signIn.emailCode.formTitle"),resendButton:(0,v.G)("signIn.emailCode.resendButton")})}),e0=e=>{let{t}=(0,W._)(),r=(0,A.f0)(),n=(0,x.n)(),i=(0,d.r)(),{signInUrl:a}=i,{navigate:c}=(0,U.r)(),{afterSignInUrl:u}=(0,d.r)(),{setActive:h}=(0,s.ho)(),{startEmailLinkFlow:f,cancelEmailLinkFlow:g}=(0,ek.u)(n),[m,_]=l.useState(!1),I=(0,s.ho)();l.useEffect(()=>{w()},[]);let w=()=>{f({emailAddressId:e.factor.emailAddressId,redirectUrl:(0,eY.lA)({ctx:i,baseUrl:a,intent:"sign-in"})}).then(e=>S(e)).catch(e=>{if((0,eg._d)(e))return I.__internal_navigateWithError("..",e.errors[0]);(0,N.H4)(e,[],r.setError)})},S=async e=>{let n=e.firstFactorVerification;"expired"===n.status?r.setError(t((0,v.G)("formFieldError__verificationLinkExpired"))):n.verifiedFromTheSameClient()?_(!0):await b(e)},b=async e=>"complete"===e.status?h({session:e.createdSessionId,redirectUrl:u}):"needs_second_factor"===e.status?c("../factor-two"):void 0;return m?(0,o.Y)(eb.$,{title:(0,v.G)("signIn.emailLink.verifiedSwitchTab.titleNewTab"),subtitle:(0,v.G)("signIn.emailLink.verifiedSwitchTab.subtitleNewTab"),status:"verified_switch_tab"}):(0,o.Y)(p.n.Part,{part:"emailLink",children:(0,o.Y)(ev._,{cardTitle:(0,v.G)("signIn.emailLink.title"),cardSubtitle:(0,v.G)("signIn.emailLink.subtitle"),formTitle:(0,v.G)("signIn.emailLink.formTitle"),formSubtitle:(0,v.G)("signIn.emailLink.formSubtitle"),resendButton:(0,v.G)("signIn.emailLink.resendButton"),onResendCodeClicked:()=>{g(),w()},safeIdentifier:e.factor.safeIdentifier,profileImageUrl:n.userData.imageUrl,onShowAlternativeMethodsClicked:e.onShowAlternativeMethodsClicked})})};var e1=r(8013);let e4=(0,A.dm)((n=(a=()=>{let e=(0,d.r)(),t=(0,s.ho)().client.signIn;if(!eq(t.supportedFirstFactors))return null;let r=t.supportedFirstFactors.map(e=>({id:e.enterpriseConnectionId,name:e.enterpriseConnectionName}));return(0,o.Y)(p.n.Part,{part:"enterpriseConnections",children:(0,o.Y)(e1.l,{title:(0,v.G)("signIn.enterpriseConnections.title"),subtitle:(0,v.G)("signIn.enterpriseConnections.subtitle"),onClick:r=>{let n=e.ssoCallbackUrl,i=e.afterSignInUrl||"/";return t.authenticateWithRedirect({strategy:"enterprise_sso",redirectUrl:n,redirectUrlComplete:i,oidcPrompt:e.oidcPrompt,continueSignIn:!0,enterpriseConnectionId:r})},enterpriseConnections:r})})}).displayName||a.name||"Component",a.displayName=n,(i=e=>{let t=(0,x.n)(),r=(0,d.r)();return(0,S.RE)(a,()=>!eq(t.supportedFirstFactors),({clerk:e})=>r.signInUrl||e.buildSignInUrl(),"There are no enterprise connections available to sign-in. Clerk is redirecting to the `signInUrl` instead.")(e)}).displayName=`withEnterpriseConnectionsGuard(${n})`,i)),e3=e=>(0,o.Y)(p.n.Part,{part:"resetPassword",children:(0,o.Y)(eX,{...e,showAlternativeMethods:!1,cardTitle:(0,v.G)("signIn.forgotPassword.title"),inputLabel:(0,v.G)("signIn.forgotPassword.formTitle"),resendButton:(0,v.G)("signIn.forgotPassword.resendButton")})});var e9=r(357);let e6=e=>{let{onShowAlternativeMethodsClick:t}=e,r=(0,A.f0)(),n=(0,x.n)(),{navigate:i}=(0,U.r)(),[a,s]=l.useState(!1),c=l.useCallback(()=>s(e=>!e),[s]),d=eV(()=>i("../factor-two"));return a?(0,o.Y)(eh.n,{onBackLinkClick:c}):(0,o.Y)(p.n.Part,{part:"password",children:(0,o.FD)(C.Z.Root,{children:[(0,o.FD)(C.Z.Content,{children:[(0,o.FD)(F.Y.Root,{showLogo:!0,children:[(0,o.Y)(F.Y.Title,{localizationKey:(0,v.G)("signIn.passkey.title")}),(0,o.Y)(F.Y.Subtitle,{localizationKey:(0,v.G)("signIn.passkey.subtitle")}),(0,o.Y)(e9.$,{identifier:n.identifier,avatarUrl:n.userData.imageUrl,onClick:()=>i("../")})]}),(0,o.Y)(C.Z.Alert,{children:r.error}),(0,o.FD)(b.so,{direction:"col",elementDescriptor:Y.$z.main,gap:4,children:[(0,o.Y)(O.l.Root,{onSubmit:e=>(e.preventDefault(),d()),gap:8,children:(0,o.Y)(O.l.SubmitButton,{hasArrow:!0})}),(0,o.Y)(C.Z.Action,{elementId:t?"alternativeMethods":"havingTrouble",children:(0,o.Y)(C.Z.ActionLink,{localizationKey:(0,v.G)(t?"footerActionLink__useAnotherMethod":"signIn.alternativeMethods.actionLink"),onClick:t||c})})]})]}),(0,o.Y)(C.Z.Footer,{})]})})},e8=e=>{let{onShowAlternativeMethodsClick:t,onPasswordError:r}=e,n=l.useRef(null),i=(0,A.f0)(),{setActive:a}=(0,s.ho)(),c=(0,x.n)(),{afterSignInUrl:u,navigateOnSetActive:h}=(0,d.r)(),f=(0,q.p)(),g=(e=>{let{onForgotPasswordMethodClick:t,onShowAlternativeMethodsClick:r}=e,n=e$(),i=(0,Z.tJ)("password","",{type:"password",label:(0,v.G)("formFieldLabel__password"),placeholder:(0,v.G)("formFieldInputPlaceholder__password")});return{...i,props:{...i.props,actionLabel:n||r?(0,v.G)("formFieldAction__forgotPassword"):"",onActionClicked:t||r||(()=>null)}}})(e),{navigate:m}=(0,U.r)(),[_,I]=l.useState(!1),w=l.useCallback(()=>I(e=>!e),[I]),S=(0,s.ho)();return _?(0,o.Y)(eh.n,{onBackLinkClick:w}):(0,o.Y)(p.n.Part,{part:"password",children:(0,o.FD)(C.Z.Root,{children:[(0,o.FD)(C.Z.Content,{children:[(0,o.FD)(F.Y.Root,{showLogo:!0,children:[(0,o.Y)(F.Y.Title,{localizationKey:(0,v.G)("signIn.password.title")}),(0,o.Y)(F.Y.Subtitle,{localizationKey:(0,v.G)("signIn.password.subtitle")}),(0,o.Y)(e9.$,{identifier:c.identifier,avatarUrl:c.userData.imageUrl,onClick:()=>{m("../")}})]}),(0,o.Y)(C.Z.Alert,{children:i.error}),(0,o.FD)(b.so,{direction:"col",elementDescriptor:Y.$z.main,gap:4,children:[(0,o.FD)(O.l.Root,{onSubmit:e=>{e.preventDefault(),c.attemptFirstFactor({strategy:"password",password:g.value}).then(e=>{switch(e.status){case"complete":return a({session:e.createdSessionId,navigate:({session:e,decorateUrl:t})=>h({session:e,redirectUrl:u,decorateUrl:t})});case"needs_second_factor":return m("../factor-two");case"needs_client_trust":return m("../client-trust");default:return console.error((0,z.s)(e.status,f))}}).catch(e=>{if((0,eg._d)(e))return S.__internal_navigateWithError("..",e.errors[0]);if(r){if((0,eg.Au)(e)){i.setError({...e.errors[0],code:"form_password_pwned__sign_in"}),r("pwned");return}if((0,eg.qY)(e)){i.setError({...e.errors[0],code:"form_password_compromised__sign_in"}),r("compromised");return}}(0,N.H4)(e,[g],i.setError),setTimeout(()=>n.current?.focus(),0)})},gap:8,children:[(0,o.Y)("input",{readOnly:!0,id:"identifier-field",name:"identifier",value:c.identifier||"",style:{display:"none"}}),(0,o.Y)(O.l.ControlRow,{elementId:g.id,children:(0,o.Y)(O.l.PasswordInput,{...g.props,ref:n,autoFocus:!0})}),(0,o.Y)(O.l.SubmitButton,{hasArrow:!0})]}),(0,o.Y)(C.Z.Action,{elementId:t?"alternativeMethods":"havingTrouble",children:(0,o.Y)(C.Z.ActionLink,{localizationKey:(0,v.G)(t?"signIn.password.actionLink":"signIn.alternativeMethods.actionLink"),onClick:t||w})})]})]}),(0,o.Y)(C.Z.Footer,{})]})})},e7=e=>(0,o.Y)(p.n.Part,{part:"phoneCode",children:(0,o.Y)(eX,{...e,cardTitle:(0,v.G)("signIn.phoneCode.title"),cardSubtitle:(0,v.G)("signIn.phoneCode.subtitle"),inputLabel:(0,v.G)("signIn.phoneCode.formTitle"),resendButton:(0,v.G)("signIn.phoneCode.resendButton")})}),e2=e=>{if(!e)return"";let t=e.strategy;return"emailAddressId"in e&&(t+=e.emailAddressId),"phoneNumberId"in e&&(t+=e.phoneNumberId),"channel"in e&&(t+=e.channel),t},e5=(0,S.RL)((0,S.SY)((0,A.dm)(function(){let{__internal_setActiveInProgress:e}=(0,s.ho)(),t=(0,x.n)(),{preferredSignInStrategy:r}=(0,K.O)().displayConfig,n=t.supportedFirstFactors,i=(0,U.r)(),a=(0,A.f0)(),{supportedFirstFactors:c,firstFactorVerification:d}=(0,x.n)(),u=l.useRef(""),[{currentFactor:h},p]=l.useState(()=>{let e=(0,e_.xf)(n,t.identifier,r);return e?.strategy==="phone_code"&&d.channel&&"sms"!==d.channel&&(e.channel=d.channel),{currentFactor:e,prevCurrentFactor:void 0}}),{hasAnyStrategy:f}=(0,eP.y)({filterOutFactor:h,supportedFirstFactors:c}),[g,m]=l.useState(()=>!h||!(0,e_.Cm)(h)),_=e$(),[I,w]=l.useState(!1),[S,b]=l.useState(null);if(l.useEffect(()=>{e||("needs_identifier"===t.status||null===t.status)&&i.navigate("../")},[e]),!h)return t.status?(0,o.Y)(eU.J,{cardTitle:(0,v.G)("signIn.noAvailableMethods.title"),cardSubtitle:(0,v.G)("signIn.noAvailableMethods.subtitle"),message:(0,v.G)("signIn.noAvailableMethods.message")}):(0,o.Y)(el.B,{});let Y=f?()=>m(e=>!e):void 0,k=()=>w(e=>!e),C=()=>{u.current=e2(h)},F=e=>{p(t=>({currentFactor:e,prevCurrentFactor:t.currentFactor}))};if(eq(t.supportedFirstFactors))return(0,o.Y)(e4,{});if(g||I){let e=(0,e_.Cm)(h),t=g?Y:k;return(0,o.Y)(eZ,{mode:I?"pwned"===S?"pwned":"compromised"===S?"passwordCompromised":"forgot":"default",onBackLinkClick:e?()=>{a.setError(void 0),b(null),t?.()}:void 0,onFactorSelected:e=>{F(e),t?.()},currentFactor:h})}if(!h)return(0,o.Y)(el.B,{});switch(h?.strategy){case"passkey":return(0,o.Y)(e6,{onFactorPrepare:C,onShowAlternativeMethodsClick:Y});case"password":return(0,o.Y)(e8,{onForgotPasswordMethodClick:_?k:Y,onShowAlternativeMethodsClick:Y,onPasswordError:e=>{b(e),k()}});case"email_code":return(0,o.Y)(eQ,{factorAlreadyPrepared:u.current===e2(h),onFactorPrepare:C,factor:h,onShowAlternativeMethodsClicked:Y});case"phone_code":if(h.channel&&"sms"!==h.channel)return(0,o.Y)(eJ,{factorAlreadyPrepared:u.current===e2(h),onFactorPrepare:C,factor:h,onChangePhoneCodeChannel:F});return(0,o.Y)(e7,{factorAlreadyPrepared:u.current===e2(h),onFactorPrepare:C,factor:h,onShowAlternativeMethodsClicked:Y});case"email_link":return(0,o.Y)(e0,{factorAlreadyPrepared:u.current===e2(h),onFactorPrepare:C,factor:h,onShowAlternativeMethodsClicked:Y});case"reset_password_phone_code":return(0,o.Y)(e3,{factorAlreadyPrepared:u.current===e2(h),onFactorPrepare:C,factor:h,onShowAlternativeMethodsClicked:Y,onBackLinkClicked:()=>{p(e=>({currentFactor:e.prevCurrentFactor,prevCurrentFactor:e.currentFactor})),k()},cardSubtitle:(0,v.G)("signIn.forgotPassword.subtitle_phone")});case"reset_password_email_code":return(0,o.Y)(e3,{factorAlreadyPrepared:u.current===e2(h),onFactorPrepare:C,factor:h,onShowAlternativeMethodsClicked:Y,onBackLinkClicked:()=>{p(e=>({currentFactor:e.prevCurrentFactor,prevCurrentFactor:e.currentFactor})),k()},cardSubtitle:(0,v.G)("signIn.forgotPassword.subtitle_email")});default:return(0,o.Y)(el.B,{})}}))),te=e=>{let{onShowAlternativeMethodsClicked:t}=e,r=(0,x.n)(),{afterSignInUrl:n,navigateOnSetActive:i}=(0,d.r)(),{setActive:a}=(0,s.ho)(),{navigate:l}=(0,U.r)(),c=(0,q.p)(),u=(0,A.f0)(),h=(0,Z.tJ)("code","",{type:"text",label:(0,v.G)("formFieldLabel__backupCode"),isRequired:!0}),p=(0,s.ho)(),f=e=>(0,e_.Kw)(e.firstFactorVerification?.strategy)&&e.firstFactorVerification?.status==="verified";return(0,o.FD)(C.Z.Root,{children:[(0,o.FD)(C.Z.Content,{children:[(0,o.FD)(F.Y.Root,{showLogo:!0,children:[(0,o.Y)(F.Y.Title,{localizationKey:(0,v.G)("signIn.backupCodeMfa.title")}),(0,o.Y)(F.Y.Subtitle,{localizationKey:f(r)?(0,v.G)("signIn.forgotPassword.subtitle"):(0,v.G)("signIn.backupCodeMfa.subtitle")})]}),(0,o.Y)(C.Z.Alert,{children:u.error}),(0,o.Y)(b.fv,{elementDescriptor:Y.$z.main,gap:8,children:(0,o.FD)(O.l.Root,{onSubmit:e=>(e.preventDefault(),r.attemptSecondFactor({strategy:"backup_code",code:h.value}).then(e=>{if("complete"!==e.status)return console.error((0,z.s)(e.status,c));if(f(e)&&e.createdSessionId){let t=new URLSearchParams;return t.set("createdSessionId",e.createdSessionId),l(`../reset-password-success?${t.toString()}`)}return a({session:e.createdSessionId,navigate:async({session:e,decorateUrl:t})=>{await i({session:e,redirectUrl:n,decorateUrl:t})}})}).catch(e=>{if((0,eg._d)(e))return p.__internal_navigateWithError("..",e.errors[0]);(0,N.H4)(e,[h],u.setError)})),children:[(0,o.Y)(O.l.ControlRow,{elementId:h.id,children:(0,o.Y)(O.l.PlainInput,{...h.props,autoFocus:!0,onActionClicked:t})}),(0,o.FD)(b.fv,{gap:3,children:[(0,o.Y)(O.l.SubmitButton,{hasArrow:!0}),(0,o.Y)(C.Z.Action,{elementId:"alternativeMethods",children:t&&(0,o.Y)(C.Z.ActionLink,{localizationKey:(0,v.G)("footerActionLink__useAnotherMethod"),onClick:t})})]})]})})]}),(0,o.Y)(C.Z.Footer,{})]})},tt=e=>(0,o.Y)(p.n.Part,{part:"totp2Fa",children:(0,o.Y)(ew,{...e,cardTitle:(0,v.G)("signIn.totpMfa.title"),cardSubtitle:(0,v.G)("signIn.totpMfa.subtitle"),inputLabel:(0,v.G)("signIn.totpMfa.formTitle")})}),tr=(0,S.RL)((0,S.SY)((0,A.dm)(function(){let e=(0,s.ho)(),t=(0,x.n)(),r=(0,U.r)(),{afterSignInUrl:n}=(0,d.r)(),{currentFactor:i,factorAlreadyPrepared:a,handleFactorPrepare:c,selectFactor:u,showAllStrategies:h,toggleAllStrategies:p}=(0,eF.j)(t.supportedSecondFactors);if(l.useEffect(()=>{e.__internal_setActiveInProgress||(null===t.status||"needs_identifier"===t.status||"needs_first_factor"===t.status)&&(e.isSignedIn?r.navigate(n):r.navigate("../"))},[e.__internal_setActiveInProgress]),!i)return(0,o.Y)(el.B,{});if(h)return(0,o.Y)(ep,{onBackLinkClick:p,onFactorSelected:u});switch(i?.strategy){case"phone_code":return(0,o.Y)(eA,{factorAlreadyPrepared:a,onFactorPrepare:c,factor:i,onShowAlternativeMethodsClicked:p});case"totp":return(0,o.Y)(tt,{factorAlreadyPrepared:a,onFactorPrepare:c,factor:i,onShowAlternativeMethodsClicked:p});case"backup_code":return(0,o.Y)(te,{onShowAlternativeMethodsClicked:p});case"email_code":return(0,o.Y)(eS,{factorAlreadyPrepared:a,onFactorPrepare:c,factor:i,onShowAlternativeMethodsClicked:p});case"email_link":return(0,o.Y)(eC,{factorAlreadyPrepared:a,onFactorPrepare:c,factor:i,onShowAlternativeMethodsClicked:p});default:return(0,o.Y)(el.B,{})}})));var tn=r(1429);let ti=(0,S.RL)((0,S.SY)(tn.F));var ta=r(3711),to=r(5473),ts=r(5055),tl=r(791),tc=r(9954),td=r(9923),tu=r(7382),th=r(9436),tp=r(6499),tf=r(6668);let tg=e=>{let{handleSubmit:t,phoneNumberFormState:r,onUseAnotherMethod:n,phoneCodeProvider:i}=e,{providerToDisplayData:a,strategyToDisplayData:s}=(0,tf.k)(),l=i.name,c=i.channel,d=(0,A.f0)(),u=s[c];return(0,o.Y)(C.Z.Root,{children:(0,o.FD)(C.Z.Content,{children:[(0,o.FD)(F.Y.Root,{showLogo:!0,showDivider:!0,children:[(0,o.Y)(b.fv,{center:!0,children:a[c]&&(0,o.Y)(tp.r,{id:c,iconUrl:a[c].iconUrl,name:u?.name||c||l,alt:`${u?.name||c||l} logo`,size:"$7",sx:e=>({marginBottom:e.sizes.$6})})}),(0,o.Y)(F.Y.Title,{localizationKey:(0,v.G)("signIn.start.alternativePhoneCodeProvider.title",{provider:l})}),(0,o.Y)(F.Y.Subtitle,{localizationKey:(0,v.G)("signIn.start.alternativePhoneCodeProvider.subtitle",{provider:l})})]}),(0,o.Y)(C.Z.Alert,{children:d.error}),(0,o.Y)(b.so,{direction:"col",elementDescriptor:Y.$z.main,gap:6,children:(0,o.FD)(O.l.Root,{onSubmit:t,gap:8,children:[(0,o.Y)(b.fv,{gap:6,children:(0,o.Y)(O.l.ControlRow,{elementId:"phoneNumber",children:(0,o.Y)(O.l.PhoneInput,{...r.props,label:(0,v.G)("signIn.start.alternativePhoneCodeProvider.label",{provider:l}),isRequired:!0,isOptional:!1,actionLabel:void 0,onActionClicked:void 0})})}),(0,o.FD)(b.fv,{center:!0,children:[(0,o.Y)(td.j,{}),(0,o.Y)(b.fv,{gap:6,sx:{width:"100%"},children:(0,o.Y)(O.l.SubmitButton,{hasArrow:!0,localizationKey:(0,v.G)("formButtonPrimary")})})]}),(0,o.Y)(b.fv,{center:!0,children:(0,o.Y)(b.$n,{variant:"link",colorScheme:"neutral",onClick:n,localizationKey:(0,v.G)("signIn.start.alternativePhoneCodeProvider.actionLink")})})]})})]})})},tm=e=>!!e.supportedFirstFactors?.length&&e.supportedFirstFactors.every(e=>"enterprise_sso"===e.strategy),t_=({field:e})=>{let[t,r]=(0,l.useState)(!1),n=(0,l.useRef)(null),i=!!(t||e?.value);return((0,l.useLayoutEffect)(()=>{let e=setInterval(()=>{if(n?.current){let t="onAutoFillStart"===window.getComputedStyle(n.current,":autofill").animationName||!!n.current?.matches("*:-webkit-autofill");t&&(r(t),clearInterval(e))}},500);return()=>{clearInterval(e)}},[]),(0,l.useEffect)(()=>{e?.value&&""!==e.value&&r(!1)},[e?.value]),e)?(0,o.Y)(O.l.ControlRow,{elementId:e.id,sx:i?void 0:{position:"absolute",opacity:0,height:0,pointerEvents:"none",marginTop:"-1rem"},children:(0,o.Y)(O.l.PasswordInput,{...e.props,ref:n,tabIndex:i?void 0:-1})}):null},tI=(0,S.RL)((0,S.SY)((0,A.dm)(function(){let e=(0,A.f0)(),t=(0,s.ho)(),n=(0,tu.m)(),{userSettings:i,authConfig:a}=(0,K.O)(),c=(0,x.n)(),{navigate:u}=(0,U.r)(),h=(0,d.r)(),{afterSignInUrl:f,signUpUrl:g,waitlistUrl:m,isCombinedFlow:_,navigateOnSetActive:I}=h,w=(0,q.p)(),S=(0,th.F)(),k=(0,l.useMemo)(()=>(0,tc.E9)(i.enabledFirstFactorIdentifiers),[i.enabledFirstFactorIdentifiers]),y=i.alternativePhoneCodeChannels,{isWebAuthnAutofillSupported:P}=(()=>{let[e,t]=(0,l.useState)(!1),{navigate:r}=(0,U.r)(),n=eV(()=>r("factor-two")),{userSettings:i}=(0,K.O)(),{passkeySettings:a,attributes:o}=i;return(0,l.useEffect)(()=>{async function e(){let e=await (0,to.nn)();t(e),e&&await n({flow:"autofill"})}a.allow_autofill&&o.passkey?.enabled&&e()},[]),{isWebAuthnAutofillSupported:e}})(),E=eV(()=>u("factor-two")),D=(0,to.Bz)(),M=!!h.initialValues?.phoneNumber&&!(h.initialValues.emailAddress||h.initialValues.username)&&k.includes("phone_number"),[L,T]=(0,l.useState)(M?"phone_number":k[0]||""),[G,R]=(0,l.useState)(!1),B=(0,ta.n)("__clerk_ticket")||"",$=(0,ta.n)("__clerk_status")||"",W=i.enabledFirstFactorIdentifiers,V=i.web3FirstFactors,H=i.authenticatableSocialStrategies,j=i.instanceIsPasswordBased,{currentIdentifier:J,nextIdentifier:X}=(0,tc.ZN)(k,L),Q=(0,Z.tJ)("password","",{type:"password",label:(0,v.G)("formFieldLabel__password"),placeholder:(0,v.G)("formFieldInputPlaceholder__password")}),[ee,et]=(0,l.useState)(null),er=i.alternativePhoneCodeChannels.length>0,en=h.initialValues||{},ei=(0,l.useMemo)(()=>({email_address:en.emailAddress,email_address_username:en.emailAddress||en.username,username:en.username,phone_number:en.phoneNumber}),[h.initialValues]),ea=!!H.length||!!V.length||!!y.length,[eo,es]=(0,l.useState)(!(0,tl.X)()&&!ea),ec=(0,Z.tJ)("identifier",ei[L]||"",{...J,isRequired:!0,transformer:e=>e.trim()}),ed=(0,Z.tJ)("identifier",ei.phone_number||"",{...J,isRequired:!0}),eu="phone_number"===L?ed:ec;(0,l.useLayoutEffect)(()=>{if(eu.value.startsWith("+")&&k.includes("phone_number")&&"phone_number"!==L&&!G){var e;e=eu.value,ec.setValue(ei[L]||""),ed.setValue(e),T("phone_number"),es(!0),R(!0)}},[eu.value,k]),(0,l.useEffect)(()=>{if(B){if("sign_up"===$){let e=new URLSearchParams;B&&e.set("__clerk_ticket",B),u(_?"create":g,{searchParams:e});return}n.setLoading(),e.setLoading(),c.create({strategy:"ticket",ticket:B}).then(e=>{switch(e.status){case"needs_first_factor":if(!tm(e)||eq(e.supportedFirstFactors))return u("factor-one");return ep();case"needs_second_factor":return u("factor-two");case"needs_client_trust":return u("client-trust");case"complete":return(0,ta.r)("__clerk_ticket"),t.setActive({session:e.createdSessionId,navigate:async({session:e,decorateUrl:t})=>{await I({session:e,redirectUrl:f,decorateUrl:t})}});default:return void console.error((0,z.s)(e.status,w))}}).catch(e=>ef(e)).finally(()=>{tm(c)||(n.setIdle(),e.setIdle())})}},[]),(0,l.useEffect)(()=>{!async function(){let t=c?.firstFactorVerification?.error;if(t){switch(t.code){case eB.l.NOT_ALLOWED_TO_SIGN_UP:case eB.l.OAUTH_ACCESS_DENIED:case eB.l.NOT_ALLOWED_ACCESS:case eB.l.SAML_USER_ATTRIBUTE_MISSING:case eB.l.OAUTH_EMAIL_DOMAIN_RESERVED_BY_SAML:case eB.l.USER_LOCKED:case eB.l.EXTERNAL_ACCOUNT_NOT_FOUND:case eB.l.SIGN_UP_MODE_RESTRICTED:case eB.l.SIGN_UP_MODE_RESTRICTED_WAITLIST:case eB.l.ENTERPRISE_SSO_USER_ATTRIBUTE_MISSING:case eB.l.ENTERPRISE_SSO_EMAIL_ADDRESS_DOMAIN_MISMATCH:case eB.l.ENTERPRISE_SSO_HOSTED_DOMAIN_MISMATCH:case eB.l.SAML_EMAIL_ADDRESS_DOMAIN_MISMATCH:case eB.l.ORGANIZATION_MEMBERSHIP_QUOTA_EXCEEDED_FOR_SSO:case eB.l.CAPTCHA_INVALID:case eB.l.FRAUD_DEVICE_BLOCKED:case eB.l.FRAUD_ACTION_BLOCKED:case eB.l.SIGNUP_RATE_LIMIT_EXCEEDED:case eB.l.USER_BANNED:case eB.l.USER_DEACTIVATED:e.setError(t);break;default:e.setError("Unable to complete action at this time. If the problem persists please contact support.")}await c.create({})}}()},[]);let eh=async(...e)=>{let r=ee?.channel||(0,e_.oj)(e,a.preferredChannels,"identifier");if(r){let t=()=>{};e.push({id:"strategy",value:"phone_code",clearFeedback:t,setValue:t,onChange:t,setError:t}),e.push({id:"channel",value:r,clearFeedback:t,setValue:t,onChange:t,setError:t})}try{var n;let r,a,o=await (a=c.create(((!(r=(n=e).some(e=>"password"===e.name&&!!e.value))||i.enterpriseSSO.enabled)&&(n=n.filter(e=>"password"!==e.name)),{...(0,Z.mK)(n),...r&&!i.enterpriseSSO.enabled&&{strategy:"password"}})),a.then(t=>{if(!i.enterpriseSSO.enabled)return t;let r=e.find(e=>"password"===e.name)?.value;return!r||t.supportedFirstFactors?.some(e=>"enterprise_sso"===e.strategy)?t:t.attemptFirstFactor({strategy:"password",password:r})}));switch(o.status){case"needs_identifier":o.supportedFirstFactors?.some(e=>"enterprise_sso"===e.strategy)&&await ep();break;case"needs_first_factor":if(!tm(o)||eq(o.supportedFirstFactors))return u("factor-one");return ep();case"needs_second_factor":return u("factor-two");case"needs_client_trust":return u("client-trust");case"complete":return t.setActive({session:o.createdSessionId,navigate:async({session:e,decorateUrl:t})=>{await I({session:e,redirectUrl:f,decorateUrl:t})}});default:return void console.error((0,z.s)(o.status,w))}}catch(e){return ef(e)}},ep=async()=>{let e=h.ssoCallbackUrl,t=h.afterSignInUrl||"/";return c.authenticateWithRedirect({strategy:"enterprise_sso",redirectUrl:e,redirectUrlComplete:t,oidcPrompt:h.oidcPrompt,continueSignIn:!0})},ef=async n=>{if(!n.errors)return;let o=n.errors.find(e=>e.code===eB.l.INVALID_STRATEGY_FOR_USER||e.code===eB.l.FORM_PASSWORD_INCORRECT||e.code===eB.l.FORM_PASSWORD_PWNED),s=n.errors.find(e=>e.code===eB.l.SESSION_EXISTS),l=n.errors.find(e=>"identifier_already_signed_in"===e.code),c=n.errors.find(e=>e.code===eB.l.INVITATION_ACCOUNT_NOT_EXISTS||e.code===eB.l.FORM_IDENTIFIER_NOT_FOUND);if(o)await eh(eu);else if(s)await t.setActive({session:t.client.lastActiveSessionId,navigate:async({session:e,decorateUrl:t})=>{await I({session:e,redirectUrl:f,decorateUrl:t})}});else if(l){let e=l.meta.sessionId;await t.setActive({session:e,navigate:async({session:e,decorateUrl:t})=>{await I({session:e,redirectUrl:f,decorateUrl:t})}})}else if(_&&c){let n=(0,e_.UY)(eu);if(i.signUp.mode===eB.p.WAITLIST)return u(t.buildWaitlistUrl("emailAddress"===n?{initialValues:{[n]:eu.value}}:{}));t.client.signUp[n]=eu.value;let o=h.ssoCallbackUrl,s=h.afterSignUpUrl||"/";return function({identifierAttribute:e,identifierValue:t,signUpMode:n,navigate:i,organizationTicket:a,afterSignUpUrl:o,clerk:s,handleError:l,redirectUrl:c,redirectUrlComplete:d,passwordEnabled:u,navigateOnSetActive:h,alternativePhoneCodeChannel:p,unsafeMetadata:f}){var g,m;if(n===eB.p.WAITLIST)return i(s.buildWaitlistUrl("emailAddress"===e?{initialValues:{[e]:t}}:{}));s.client.signUp[e]=t;let _=new URLSearchParams;return(a&&_.set("__clerk_ticket",a),u||(g=s.client.signUp,m=e,g.optionalFields.filter(e=>!(e.startsWith("oauth_")||e.startsWith("web3_"))&&"enterprise_sso"!==e&&"password"!==e&&("phoneNumber"!==m||"phone_number"!==e)).length>0)||"emailAddress"!==e&&"phoneNumber"!==e)?i("create",{searchParams:_}):s.client.signUp.create({[e]:t,...p?{strategy:"phone_code",channel:p}:{},unsafeMetadata:f}).then(async e=>(await Promise.all([r.e("26"),r.e("545"),r.e("666"),r.e("472")]).then(r.bind(r,5283)).then(e=>e.completeSignUpFlow))({signUp:e,verifyEmailPath:"create/verify-email-address",verifyPhonePath:"create/verify-phone-number",handleComplete:()=>s.setActive({session:e.createdSessionId,navigate:async({session:e,decorateUrl:t})=>{await h({session:e,redirectUrl:o,decorateUrl:t})}}),navigate:i,redirectUrl:c,redirectUrlComplete:d})).catch(e=>l(e))}({afterSignUpUrl:h.afterSignUpUrl||"/",clerk:t,handleError:t=>(0,N.H4)(t,[eu,Q],e.setError),identifierAttribute:n,identifierValue:eu.value,navigate:u,organizationTicket:B,signUpMode:i.signUp.mode,redirectUrl:o,redirectUrlComplete:s,navigateOnSetActive:I,passwordEnabled:i.attributes.password?.required??!1,alternativePhoneCodeChannel:ee?.channel||(0,e_.iy)(a.preferredChannels,n,eu.value),unsafeMetadata:h.unsafeMetadata})}else(0,N.H4)(n,[eu,Q],e.setError)},eg=async e=>(e.preventDefault(),eh(eu,Q)),em=(0,l.useMemo)(()=>({tel:O.l.PhoneInput,password:O.l.PasswordInput,text:O.l.PlainInput,email:O.l.PlainInput})[eu.type],[eu.type]);if(n.isLoading||"sign_up"===$)return(0,o.Y)(el.B,{});let{action:eI,validLastAuthenticationStrategies:ew,...eS}=eu.props,ev=t.client?.lastAuthenticationStrategy,eb=!!ev&&S>1&&ew?.has(ev);return(0,o.Y)(p.n.Part,{part:"start",children:ee?(0,o.Y)(tg,{handleSubmit:eg,phoneNumberFormState:ed,onUseAnotherMethod:()=>{et(null)},phoneCodeProvider:ee}):(0,o.FD)(C.Z.Root,{children:[(0,o.FD)(C.Z.Content,{children:[(0,o.FD)(F.Y.Root,{showLogo:!0,children:[(0,o.Y)(F.Y.Title,{localizationKey:_?(0,v.G)("signIn.start.titleCombined"):(0,v.G)("signIn.start.title")}),(0,o.Y)(F.Y.Subtitle,{localizationKey:_?(0,v.G)("signIn.start.subtitleCombined"):(0,v.G)("signIn.start.subtitle"),sx:{"&:empty":{display:"none"}}})]}),(0,o.Y)(C.Z.Alert,{children:e.error}),(0,o.FD)(b.fv,{elementDescriptor:Y.$z.main,gap:6,children:[(0,o.FD)(ts.U,{children:[ea&&(0,o.Y)(eN,{enableWeb3Providers:!0,enableOAuthProviders:!0,enableAlternativePhoneCodeProviders:er,onAlternativePhoneCodeProviderClick:e=>{et((0,eH.y)(e)||null)}}),W.length?(0,o.FD)(O.l.Root,{onSubmit:eg,gap:8,children:[(0,o.FD)(b.fv,{gap:6,children:[(0,o.Y)(O.l.ControlRow,{elementId:eu.id,children:(0,o.Y)(em,{actionLabel:X?.action,onActionClicked:()=>{T(e=>k[(k.indexOf(e)+1)%k.length]),es(!0),R(!1)},...eS,autoFocus:eo,autoComplete:P?"webauthn":void 0,isLastAuthenticationStrategy:eb})}),(0,o.Y)(t_,{field:j?Q:void 0})]}),(0,o.FD)(b.fv,{center:!0,children:[(0,o.Y)(td.j,{}),(0,o.Y)(O.l.SubmitButton,{hasArrow:!0})]})]}):null]}),!W.length&&(0,o.Y)(td.j,{}),i.attributes.passkey?.enabled&&i.passkeySettings.show_sign_in_button&&D&&(0,o.Y)(C.Z.Action,{elementId:"usePasskey",children:(0,o.Y)(C.Z.ActionLink,{localizationKey:(0,v.G)("signIn.start.actionLink__use_passkey"),onClick:()=>E({flow:"discoverable"})})})]})]}),(0,o.FD)(C.Z.Footer,{children:[i.signUp.mode===eB.p.PUBLIC&&!_&&(0,o.FD)(C.Z.Action,{elementId:"signIn",children:[(0,o.Y)(C.Z.ActionText,{localizationKey:(0,v.G)("signIn.start.actionText")}),(0,o.Y)(C.Z.ActionLink,{localizationKey:(0,v.G)("signIn.start.actionLink"),to:t.buildUrlWithAuth(g)})]}),i.signUp.mode===eB.p.WAITLIST&&(0,o.FD)(C.Z.Action,{elementId:"signIn",children:[(0,o.Y)(C.Z.ActionText,{localizationKey:(0,v.G)("signIn.start.actionText__join_waitlist")}),(0,o.Y)(C.Z.ActionLink,{localizationKey:(0,v.G)("signIn.start.actionLink__join_waitlist"),to:t.buildUrlWithAuth(m)})]})]})]})})})));function tw(){let e=(0,s.ho)();return l.useEffect(()=>{e.redirectToSignIn()},[e]),null}function tS(){let e=(0,d.r)(),t=(0,u.X)();return(0,o.Y)(p.n.Root,{flow:"signIn",children:(0,o.FD)(_.d,{children:[(0,o.Y)(I.q,{path:"factor-one",children:(0,o.Y)(e5,{})}),(0,o.Y)(I.q,{path:"factor-two",children:(0,o.Y)(tr,{})}),(0,o.Y)(I.q,{path:"client-trust",children:(0,o.Y)(ey,{})}),(0,o.Y)(I.q,{path:"reset-password",children:(0,o.Y)(H,{})}),(0,o.Y)(I.q,{path:"reset-password-success",children:(0,o.Y)(X,{})}),(0,o.Y)(I.q,{path:"sso-callback",children:(0,o.Y)(ti,{signUpUrl:e.signUpUrl,signInUrl:e.signInUrl,signInForceRedirectUrl:e.afterSignInUrl,signUpForceRedirectUrl:e.afterSignUpUrl,continueSignUpUrl:e.signUpContinueUrl,transferable:e.transferable,firstFactorUrl:"../factor-one",secondFactorUrl:"../factor-two",resetPasswordUrl:"../reset-password",unsafeMetadata:e.unsafeMetadata})}),(0,o.Y)(I.q,{path:"choose",children:(0,o.Y)(es,{})}),(0,o.Y)(I.q,{path:"choose-wallet",children:(0,o.Y)(E,{})}),(0,o.Y)(I.q,{path:"verify",children:(0,o.Y)(c.Y,{redirectUrlComplete:e.afterSignInUrl,redirectUrl:"../factor-two"})}),e.isCombinedFlow&&(0,o.FD)(I.q,{path:"create",children:[(0,o.Y)(I.q,{path:"verify-email-address",canActivate:e=>!!e.client.signUp.emailAddress,children:(0,o.Y)(T,{})}),(0,o.Y)(I.q,{path:"verify-phone-number",canActivate:e=>!!e.client.signUp.phoneNumber,children:(0,o.Y)(L,{})}),(0,o.Y)(I.q,{path:"sso-callback",children:(0,o.Y)(R,{signUpUrl:t.signUpUrl,signInUrl:t.signInUrl,signUpForceRedirectUrl:t.afterSignUpUrl,signInForceRedirectUrl:t.afterSignInUrl,secondFactorUrl:t.secondFactorUrl,continueSignUpUrl:"../continue",verifyEmailAddressUrl:"../verify-email-address",verifyPhoneNumberUrl:"../verify-phone-number",unsafeMetadata:t.unsafeMetadata})}),(0,o.Y)(I.q,{path:"verify",children:(0,o.Y)(c.M,{redirectUrlComplete:t.afterSignUpUrl,verifyEmailPath:"../verify-email-address",verifyPhonePath:"../verify-phone-number",continuePath:"../continue"})}),(0,o.FD)(I.q,{path:"continue",children:[(0,o.Y)(I.q,{path:"verify-email-address",canActivate:e=>!!e.client.signUp.emailAddress,children:(0,o.Y)(T,{})}),(0,o.Y)(I.q,{path:"verify-phone-number",canActivate:e=>!!e.client.signUp.phoneNumber,children:(0,o.Y)(L,{})}),(0,o.Y)(I.q,{index:!0,children:(0,o.Y)(B,{})})]}),(0,o.Y)(I.q,{path:"tasks",children:(0,o.Y)(m.JJ,{redirectUrlComplete:e.afterSignUpUrl})}),(0,o.Y)(I.q,{index:!0,children:(0,o.Y)(G,{})})]}),(0,o.Y)(I.q,{path:"tasks",children:(0,o.Y)(m.JJ,{redirectUrlComplete:e.afterSignInUrl})}),(0,o.Y)(I.q,{index:!0,children:(0,o.Y)(tI,{})}),(0,o.Y)(I.q,{children:(0,o.Y)(tw,{})})]})})}function tv(){let e=(0,d.r)(),t={componentName:"SignUp",emailLinkRedirectUrl:e.emailLinkRedirectUrl,ssoCallbackUrl:e.ssoCallbackUrl,forceRedirectUrl:e.signUpForceRedirectUrl,fallbackRedirectUrl:e.signUpFallbackRedirectUrl,signInUrl:e.signInUrl,unsafeMetadata:e.unsafeMetadata,...(0,D.C)({routing:e?.routing,path:e?.path})};return((e=!1)=>(0,f.s)(e?M:void 0,"preloadComponent",{staleTime:1/0}))(e.isCombinedFlow),(0,g.Z)(),(0,o.Y)(u.g.Provider,{value:t,children:(0,o.Y)(tS,{})})}tS.displayName="SignIn";let tb=(0,h.Z)(tv),tY=(0,h.Z)(tv),tk=e=>{let t={signUpUrl:`/${w.I}/sign-up`,waitlistUrl:`/${w.I}/waitlist`,...e};return(0,o.Y)(I.q,{path:"sign-in",children:(0,o.Y)(d.Q.Provider,{value:{componentName:"SignIn",...t,routing:"virtual",mode:"modal"},children:(0,o.Y)("div",{children:(0,o.Y)(tY,{...t,routing:"virtual"})})})})}},4843(e,t,r){r.d(t,{j:()=>o});var n=r(9701),i=r(4348);let a=e=>{if(!e)return"";let t=e.strategy;return"phoneNumberId"in e&&(t+=e.phoneNumberId),t};function o(e){let t=n.useRef(""),[r,o]=n.useState(()=>(0,i.R5)(e)),[s,l]=n.useState(!r),c=t.current===a(r);return{currentFactor:r,factorAlreadyPrepared:c,handleFactorPrepare:()=>{t.current=a(r)},selectFactor:e=>{o(e),l(!1)},showAllStrategies:s,toggleAllStrategies:()=>l(e=>!e)}}},4348(e,t,r){r.d(t,{Cm:()=>u,Kw:()=>f,R5:()=>h,UY:()=>g,iy:()=>_,oj:()=>m,xf:()=>c}),r(4317);var n=r(5473),i=r(6370),a=r(9954),o=r(1906);let s=e=>t=>"safeIdentifier"in t&&t.safeIdentifier===e;function l(e){if((0,n.Bz)()){let t=e.find(({strategy:e})=>"passkey"===e);if(t)return t}return null}function c(e,t,r){return e&&0!==e.length?r===a._o.Password?function(e,t){let r=l(e);if(r)return r;let n=e.sort(o.Kn)[0];return"password"===n.strategy?n:e.find(s(t))||n||null}(e,t):function(e,t){let r=l(e);if(r)return r;let n=e.sort(o.Ih),i=n.find(s(t));if(i)return i;let a=n[0];return"email_link"===a.strategy?a:e.find(s(t))||a||null}(e,t):null}let d=["passkey","email_code","password","phone_code","email_link"];function u(e){return!!e&&d.includes(e.strategy)}function h(e){if(!e||0===e.length)return null;let t=e.find(e=>"totp"===e.strategy);if(t)return t;let r=e.find(e=>"phone_code"===e.strategy);return r||e[0]}let p=["reset_password_phone_code","reset_password_email_code"],f=e=>!!e&&p.includes(e);function g(e){let t;return"tel"===e.type?"phoneNumber":(t=e.value,/^\S+@\S+\.\S+$/.test(t))?"emailAddress":"username"}let m=(e,t,r)=>{if(!t)return null;let n=e.find(e=>"strategy"===e.id)?.value;if(n&&"phone_code"!==n)return null;let a=e.find(e=>e.id===r)?.value;if(!a||!a?.startsWith("+"))return null;let o=(0,i.TV)(a,t);return"sms"===o?null:o},_=(e,t,r)=>{if(!e||!t||"phoneNumber"!==t||!r||!r?.startsWith("+"))return null;let n=(0,i.TV)(r,e);return"sms"===n?null:n}},6869(e,t,r){r.d(t,{Q:()=>m,r:()=>_});var n=r(9339),i=r(6607),a=r(1097),o=r(2722),s=r(6054),l=r(9529),c=r(9151),d=r(9701),u=r(1902),h=r(1868),p=r(5135),f=r(8029),g=r(2974);let m=(0,d.createContext)(null),_=()=>{let e=(0,d.useContext)(m),{navigate:t,basePath:r,startPath:_}=(0,f.r)(),{displayConfig:I,userSettings:w}=(0,h.O)(),{queryParams:S,queryString:v}=(0,f.r)(),b=w.signUp.mode,Y=(0,p.II)(),k=(0,l.ho)();if(null===e||"SignIn"!==e.componentName)throw Error("Clerk: useSignInContext called outside of the mounted SignIn component.");let C="restricted"!==b&&!!(!Y.signUpUrl&&Y.signInUrl&&!(0,c.s)(Y.signInUrl))&&!1!==e.withSignUp||e.withSignUp||!1,{componentName:A,mode:F,...y}=e,U=(0,d.useMemo)(()=>(0,g.tf)(v,n.d),[]),P=new i.n(Y,{...y,signInFallbackRedirectUrl:y.signInFallbackRedirectUrl||y.fallbackRedirectUrl,signInForceRedirectUrl:y.signInForceRedirectUrl||y.forceRedirectUrl},S,F);delete y.fallbackRedirectUrl,delete y.forceRedirectUrl;let E=k.buildUrlWithAuth(P.getAfterSignInUrl()),D=k.buildUrlWithAuth(P.getAfterSignUpUrl()),M="path"===y.routing&&y.path||Y.signInUrl||I.signInUrl,L=C?"path"===y.routing&&y.path||Y.signUpUrl||I.signUpUrl:y.signUpUrl||Y.signUpUrl||I.signUpUrl,T=y.waitlistUrl||Y.waitlistUrl||I.waitlistUrl,G=P.getPreservedSearchParams();M=(0,o.kZ)({base:M,hashSearchParams:[S,G]},{stringify:!0}),L=(0,o.kZ)({base:L,hashSearchParams:[S,G]},{stringify:!0}),T=(0,o.kZ)({base:T,hashSearchParams:[S,G]},{stringify:!0});let R=P.toSearchParams().toString(),B=(0,u.aQ)({routing:y.routing,baseUrl:M,authQueryString:R,path:y.path,endpoint:C?"/create"+u.Vu:u.Vu}),z=(0,u.aQ)({routing:y.routing,baseUrl:M,authQueryString:R,path:y.path,endpoint:C?"/create"+u.aB:u.aB});C&&(L=(0,o.kZ)({base:M,hashPath:"/create",hashSearchParams:[S,G]},{stringify:!0}));let O=(0,o.kZ)({base:L,hashPath:"/continue"},{stringify:!0}),N=async({session:e,redirectUrl:n,decorateUrl:i})=>{let o=e.currentTask;if(!o){let e=i(n);return e!==n&&/^https?:\/\//.test(e)?void(0,s.y7)(e):t(n)}let l=(0,a.ru)(o);return t(`/${r+_+(C?"/create"+l:l)}`)},$=k.session?.currentTask?k.__internal_getOption("taskUrls")?.[k.session?.currentTask.key]??(0,u.aQ)({routing:y.routing,baseUrl:M,authQueryString:R,path:y.path,endpoint:C?"/create"+(0,a.ru)(k.session?.currentTask):(0,a.ru)(k.session?.currentTask)}):null;return{...y,transferable:y.transferable??!0,oauthFlow:y.oauthFlow||"auto",componentName:A,signUpUrl:L,signInUrl:M,waitlistUrl:T,afterSignInUrl:E,afterSignUpUrl:D,emailLinkRedirectUrl:B,ssoCallbackUrl:z,navigateAfterSignIn:()=>t(E),signUpContinueUrl:O,queryParams:S,initialValues:{...y.initialValues,...U},authQueryString:R,isCombinedFlow:C,navigateOnSetActive:N,taskUrl:$}}},9832(e,t,r){r.d(t,{g:()=>a});var n=r(9529),i=r(8029);let a=()=>{let{navigate:e}=(0,i.r)(),t=(0,n.ho)();return{navigateAfterSignOut:()=>e(t.buildAfterSignOutUrl()),navigateAfterMultiSessionSingleSignOutUrl:()=>e(t.buildAfterMultiSessionSingleSignOutUrl()),afterSignOutUrl:t.buildAfterSignOutUrl(),afterMultiSessionSingleSignOutUrl:t.buildAfterMultiSessionSingleSignOutUrl()}}}}]);
|