@ory/elements-react 1.0.0-pr.5494d7c2 → 1.0.0-pr.6c5e72b6

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.
@@ -48,7 +48,10 @@ import {
48
48
  import { useIntl as useIntl9 } from "react-intl";
49
49
 
50
50
  // src/components/card/two-step/state-select-method.tsx
51
- import { UiNodeGroupEnum as UiNodeGroupEnum15 } from "@ory/client-fetch";
51
+ import {
52
+ isUiNodeScriptAttributes as isUiNodeScriptAttributes6,
53
+ UiNodeGroupEnum as UiNodeGroupEnum15
54
+ } from "@ory/client-fetch";
52
55
 
53
56
  // src/context/component.tsx
54
57
  import {
@@ -101,6 +104,27 @@ import {
101
104
  } from "@ory/client-fetch";
102
105
  import { UiNodeGroupEnum as UiNodeGroupEnum2 } from "@ory/client-fetch";
103
106
  import { useMemo } from "react";
107
+ function triggerToFunction(trigger) {
108
+ if (typeof window === "undefined") {
109
+ console.debug(
110
+ "The Ory SDK is missing a required function: window is undefined."
111
+ );
112
+ return void 0;
113
+ }
114
+ const typedWindow = window;
115
+ if (!(trigger in typedWindow) || !typedWindow[trigger]) {
116
+ console.debug(`The Ory SDK is missing a required function: ${trigger}.`);
117
+ return void 0;
118
+ }
119
+ const triggerFn = typedWindow[trigger];
120
+ if (typeof triggerFn !== "function") {
121
+ console.debug(
122
+ `The Ory SDK is missing a required function: ${trigger}. It is not a function.`
123
+ );
124
+ return void 0;
125
+ }
126
+ return triggerFn;
127
+ }
104
128
  function nodesToAuthMethodGroups(nodes, excludeAuthMethods = []) {
105
129
  var _a;
106
130
  const groups = {};
@@ -281,15 +305,22 @@ import { useFormContext } from "react-hook-form";
281
305
  // src/util/onSubmitLogin.ts
282
306
  import {
283
307
  FlowType as FlowType3,
284
- handleFlowError,
285
308
  loginUrl
286
309
  } from "@ory/client-fetch";
287
310
 
311
+ // src/util/sdk-helpers/error.ts
312
+ import {
313
+ ResponseError,
314
+ FetchError
315
+ } from "@ory/client-fetch";
316
+
317
+ // src/util/sdk-helpers/utils.ts
318
+ import { FetchError as FetchError2, ResponseError as ResponseError2 } from "@ory/client-fetch";
319
+
288
320
  // src/util/onSubmitRecovery.ts
289
321
  import {
290
322
  FlowType as FlowType4,
291
323
  handleContinueWith,
292
- handleFlowError as handleFlowError2,
293
324
  instanceOfContinueWithRecoveryUi,
294
325
  recoveryUrl
295
326
  } from "@ory/client-fetch";
@@ -298,7 +329,6 @@ import {
298
329
  import {
299
330
  FlowType as FlowType5,
300
331
  handleContinueWith as handleContinueWith2,
301
- handleFlowError as handleFlowError3,
302
332
  registrationUrl
303
333
  } from "@ory/client-fetch";
304
334
 
@@ -306,8 +336,7 @@ import {
306
336
  import {
307
337
  FlowType as FlowType6,
308
338
  handleContinueWith as handleContinueWith3,
309
- handleFlowError as handleFlowError4,
310
- isResponseError,
339
+ isResponseError as isResponseError2,
311
340
  loginUrl as loginUrl2,
312
341
  settingsUrl
313
342
  } from "@ory/client-fetch";
@@ -315,8 +344,7 @@ import {
315
344
  // src/util/onSubmitVerification.ts
316
345
  import {
317
346
  FlowType as FlowType7,
318
- handleFlowError as handleFlowError5,
319
- verificationUrl
347
+ verificationUrl as verificationUrl2
320
348
  } from "@ory/client-fetch";
321
349
 
322
350
  // src/components/form/form-helpers.ts
@@ -702,6 +730,7 @@ var en_default = {
702
730
  "two-step.webauthn.description": "Use your security key to authenticate",
703
731
  "two-step.passkey.title": "Passkey (recommended)",
704
732
  "two-step.passkey.description": "Use your device's for fingerprint or face recognition",
733
+ "two-step.passkey.description.error": "Could not load the necessary libraries to use your Passkey. Please try again later.",
705
734
  "two-step.totp.title": "Use your Authenticator App (TOTP)",
706
735
  "two-step.totp.description": "Use a 6-digit one-time code from your authenticator app",
707
736
  "two-step.lookup_secret.title": "Backup recovery code",
@@ -927,12 +956,13 @@ var de_default = {
927
956
  "registration.title": "Konto registrieren",
928
957
  "verification.registration-button": "Registrieren",
929
958
  "verification.registration-label": "Sie haben noch kein Konto?",
930
- "verification.title": "Verifizieren Sie ihr Konto",
959
+ "verification.title": "Verifizieren Sie Ihr Konto",
931
960
  "verification.back-button": "Zur\xFCck",
932
961
  "two-step.code.description": "Ein Best\xE4tigungscode wird an Ihre E-Mail gesendet.",
933
962
  "two-step.code.title": "E-Mail-Code",
934
- "two-step.passkey.description": "Verwenden Sie die Fingerabdruck- oder Gesichtserkennung Ihres Ger\xE4ts",
935
963
  "two-step.passkey.title": "Passkey (empfohlen)",
964
+ "two-step.passkey.description": "Verwenden Sie die Fingerabdruck- oder Gesichtserkennung Ihres Ger\xE4ts",
965
+ "two-step.passkey.description.error": "Konnte die erforderlichen Bibliotheken f\xFCr Passkeys nicht laden. Bitte versuchen Sie es sp\xE4ter erneut.",
936
966
  "two-step.password.description": "Geben Sie Ihr Passwort ein, das mit Ihrem Konto verkn\xFCpft ist",
937
967
  "two-step.password.title": "Passwort",
938
968
  "two-step.webauthn.title": "Sicherheitsschl\xFCssel",
@@ -970,14 +1000,14 @@ var de_default = {
970
1000
  "card.header.parts.password.login": "Ihrer {identifierLabel} und Ihrem Passwort",
971
1001
  "card.header.parts.password.registration": "Ihrer {identifierLabel} und einem Passwort",
972
1002
  "card.header.parts.webauthn": "ein Sicherheitsschl\xFCssel",
973
- "card.header.parts.totp": "deine Authentifikator-App",
1003
+ "card.header.parts.totp": "Ihre Authentifikator-App",
974
1004
  "card.header.parts.lookup_secret": "ein Backup-Wiederherstellungscode",
975
1005
  "recovery.subtitle": "Geben Sie die mit Ihrem Konto verkn\xFCpfte E-Mail-Adresse ein, um einen einmaligen Zugangscode zu erhalten",
976
1006
  "verification.subtitle": "Geben Sie die mit Ihrem Konto verkn\xFCpfte E-Mail-Adresse ein, um es zu best\xE4tigen",
977
1007
  "card.header.description.login": "Melden Sie sich mit {identifierLabel} an",
978
1008
  "card.header.description.registration": "Registrieren Sie sich mit {identifierLabel}",
979
1009
  "login.subtitle": "Melden Sie sich mit {parts} an",
980
- "login.subtitle-refresh": "Best\xE4tigen Sie ihre Identit\xE4t mit {parts}",
1010
+ "login.subtitle-refresh": "Best\xE4tigen Sie Ihre Identit\xE4t mit {parts}",
981
1011
  "misc.or": "oder",
982
1012
  "registration.subtitle": "Registrieren Sie sich mit {parts}",
983
1013
  "forms.label.forgot-password": "Passwort vergessen?",
@@ -1230,6 +1260,7 @@ var es_default = {
1230
1260
  "two-step.code.title": "C\xF3digo de correo electr\xF3nico",
1231
1261
  "two-step.passkey.description": "Utiliza el reconocimiento de huellas dactilares o facial de tu dispositivo.",
1232
1262
  "two-step.passkey.title": "Clave de acceso (recomendada)",
1263
+ "two-step.passkey.description.error": "No se pudieron cargar las bibliotecas necesarias para usar su Passkey. Por favor, int\xE9ntelo de nuevo m\xE1s tarde",
1233
1264
  "two-step.password.description": "Ingrese la contrase\xF1a asociada con su cuenta",
1234
1265
  "two-step.password.title": "Contrase\xF1a",
1235
1266
  "two-step.webauthn.title": "Clave de Seguridad",
@@ -1518,6 +1549,7 @@ var fr_default = {
1518
1549
  "two-step.code.title": "Code de courrier \xE9lectronique",
1519
1550
  "two-step.passkey.description": "Utilisez l'appareil pour la reconnaissance d'empreintes digitales ou de visage",
1520
1551
  "two-step.passkey.title": "Cl\xE9 de passe (recommand\xE9e)",
1552
+ "two-step.passkey.description.error": "Impossible de charger les biblioth\xE8ques n\xE9cessaires pour utiliser votre Passkey. Veuillez r\xE9essayer plus tard.",
1521
1553
  "two-step.password.description": "Entrez votre mot de passe associ\xE9 \xE0 votre compte",
1522
1554
  "two-step.password.title": "Mot de passe",
1523
1555
  "two-step.webauthn.title": "Cl\xE9 de S\xE9curit\xE9",
@@ -1804,6 +1836,7 @@ var nl_default = {
1804
1836
  "two-step.code.description": "Een verificatiecode wordt naar uw e-mail gestuurd",
1805
1837
  "two-step.code.title": "E-mailcode",
1806
1838
  "two-step.passkey.description": "Gebruik de vingerafdruk- of gezichtsherkenning van uw apparaat",
1839
+ "two-step.passkey.description.error": "De benodigde bibliotheken om uw Passkey te gebruiken konden niet worden geladen. Probeer het later opnieuw.",
1807
1840
  "two-step.passkey.title": "Toegangscode (aanbevolen)",
1808
1841
  "two-step.password.description": "Voer uw wachtwoord in dat is gekoppeld aan uw account",
1809
1842
  "two-step.password.title": "Wachtwoord",
@@ -2091,6 +2124,7 @@ var pl_default = {
2091
2124
  "two-step.code.description": "Kod weryfikacyjny zostanie wys\u0142any na Tw\xF3j adres email.",
2092
2125
  "two-step.code.title": "Kod email",
2093
2126
  "two-step.passkey.description": "U\u017Cyj swojego urz\u0105dzenia lub funkcji rozpoznawania twarzy na swoim urz\u0105dzeniu.",
2127
+ "two-step.passkey.description.error": "Nie uda\u0142o si\u0119 za\u0142adowa\u0107 niezb\u0119dnych bibliotek do u\u017Cycia Passkey. Spr\xF3buj ponownie p\xF3\u017Aniej.",
2094
2128
  "two-step.passkey.title": "Klucz dost\u0119pu (zalecany)",
2095
2129
  "two-step.password.description": "Wprowad\u017A has\u0142o powi\u0105zane z twoim kontem",
2096
2130
  "two-step.password.title": "Has\u0142o",
@@ -2378,6 +2412,7 @@ var pt_default = {
2378
2412
  "two-step.code.description": "Um c\xF3digo de verifica\xE7\xE3o ser\xE1 enviado para o seu email",
2379
2413
  "two-step.code.title": "C\xF3digo de email",
2380
2414
  "two-step.passkey.description": "Use o seu dispositivo para reconhecimento de impress\xE3o digital ou facial.",
2415
+ "two-step.passkey.description.error": "N\xE3o foi poss\xEDvel carregar as bibliotecas necess\xE1rias para usar o seu Passkey. Por favor, tente novamente mais tarde.",
2381
2416
  "two-step.passkey.title": "Chave de acesso (recomendado)",
2382
2417
  "two-step.password.description": "Insira a sua senha associada \xE0 sua conta",
2383
2418
  "two-step.password.title": "Senha",
@@ -2684,6 +2719,7 @@ var sv_default = {
2684
2719
  "two-step.code.title": "E-postkod",
2685
2720
  "two-step.passkey.description": "Anv\xE4nd din enhets fingeravtryck eller ansiktsigenk\xE4nning",
2686
2721
  "two-step.passkey.title": "Passerkod (rekommenderad)",
2722
+ "two-step.passkey.description.error": "Det gick inte att ladda de n\xF6dv\xE4ndiga biblioteken f\xF6r att anv\xE4nda din Passkey. F\xF6rs\xF6k igen senare.",
2687
2723
  "two-step.password.description": "Ange ditt l\xF6senord kopplat till ditt konto",
2688
2724
  "two-step.password.title": "L\xF6senord",
2689
2725
  "two-step.webauthn.title": "S\xE4kerhetsnyckel",
@@ -4047,64 +4083,76 @@ function DefaultMessage({ message }) {
4047
4083
  }
4048
4084
 
4049
4085
  // src/theme/default/components/card/auth-method-list-item.tsx
4086
+ import { useOryFlow as useOryFlow8 } from "@ory/elements-react";
4087
+ import { useEffect as useEffect5, useState as useState5 } from "react";
4050
4088
  import { useIntl as useIntl13 } from "react-intl";
4089
+ import { useEventListener, useTimeout } from "usehooks-ts";
4051
4090
 
4052
- // src/theme/default/assets/icons/code.svg
4091
+ // src/theme/default/assets/icons/alert-triangle.svg
4053
4092
  import * as React17 from "react";
4054
4093
  import { jsx as jsx58 } from "react/jsx-runtime";
4055
- var SvgCode = (props) => {
4094
+ var SvgAlertTriangle = (props) => {
4056
4095
  var _a, _b;
4057
- return /* @__PURE__ */ jsx58("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 15 13", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx58("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M6.333 10.666h-4A1.333 1.333 0 0 1 1 9.333V2.666m0 0a1.333 1.333 0 0 1 1.333-1.333h9.334A1.333 1.333 0 0 1 13 2.666m-12 0 6 4 6-4m0 0v4M12.333 12l1.334-1.334-1.334-1.333m-2 0L9 10.666 10.333 12" }) });
4096
+ return /* @__PURE__ */ jsx58("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx58("path", { stroke: "#000", strokeLinecap: "round", strokeLinejoin: "round", d: "M12 9v4m0 4h.01M10.24 3.957l-8.422 14.06A1.99 1.99 0 0 0 3.518 21h16.845a1.99 1.99 0 0 0 1.7-2.983L13.64 3.957a1.988 1.988 0 0 0-3.4 0" }) });
4058
4097
  };
4059
- var code_default = SvgCode;
4098
+ var alert_triangle_default = SvgAlertTriangle;
4060
4099
 
4061
- // src/theme/default/assets/icons/passkey.svg
4100
+ // src/theme/default/assets/icons/code-asterix.svg
4062
4101
  import * as React18 from "react";
4063
4102
  import { jsx as jsx59 } from "react/jsx-runtime";
4064
- var SvgPasskey = (props) => {
4103
+ var SvgCodeAsterix = (props) => {
4065
4104
  var _a, _b;
4066
- return /* @__PURE__ */ jsx59("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 13 14", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx59("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M10.602 3.667c.603 1 .86 2.171.733 3.333v.667a4 4 0 0 0 .533 2M3.335 6.333a2.667 2.667 0 0 1 5.333 0V7c0 1.442.468 2.846 1.334 4m-4-4.667v1.334A9.33 9.33 0 0 0 7.668 13M3.335 9a12 12 0 0 0 1.2 4m-3.267-1.333A14.7 14.7 0 0 1 .668 7v-.667a5.333 5.333 0 0 1 8-4.633" }) });
4105
+ return /* @__PURE__ */ jsx59("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx59("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 19.325a2 2 0 0 1-2-2v-4l-1-1 1-1v-4a2 2 0 0 1 2-2m6 6.875 3-1.687M12 12.2v3.375m0-3.375-3-1.687m3 1.687 3 1.688M12 12.2V8.825m0 3.375-3 1.688m9 5.437a2 2 0 0 0 2-2v-4l1-1-1-1v-4a2 2 0 0 0-2-2" }) });
4067
4106
  };
4068
- var passkey_default = SvgPasskey;
4107
+ var code_asterix_default = SvgCodeAsterix;
4069
4108
 
4070
- // src/theme/default/assets/icons/password.svg
4109
+ // src/theme/default/assets/icons/code.svg
4071
4110
  import * as React19 from "react";
4072
4111
  import { jsx as jsx60 } from "react/jsx-runtime";
4073
- var SvgPassword = (props) => {
4112
+ var SvgCode = (props) => {
4074
4113
  var _a, _b;
4075
- return /* @__PURE__ */ jsx60("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 14 4", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx60("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M7 .667v2.667m-1.333-.667 2.666-1.333m-2.666 0 2.666 1.333m-6-2v2.667M1 2.667l2.667-1.333M1 1.334l2.667 1.333m8-2v2.667m-1.334-.667L13 1.334m-2.667 0L13 2.667" }) });
4114
+ return /* @__PURE__ */ jsx60("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 15 13", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx60("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M6.333 10.666h-4A1.333 1.333 0 0 1 1 9.333V2.666m0 0a1.333 1.333 0 0 1 1.333-1.333h9.334A1.333 1.333 0 0 1 13 2.666m-12 0 6 4 6-4m0 0v4M12.333 12l1.334-1.334-1.334-1.333m-2 0L9 10.666 10.333 12" }) });
4076
4115
  };
4077
- var password_default = SvgPassword;
4116
+ var code_default = SvgCode;
4078
4117
 
4079
- // src/theme/default/assets/icons/webauthn.svg
4118
+ // src/theme/default/assets/icons/passkey.svg
4080
4119
  import * as React20 from "react";
4081
4120
  import { jsx as jsx61 } from "react/jsx-runtime";
4082
- var SvgWebauthn = (props) => {
4121
+ var SvgPasskey = (props) => {
4083
4122
  var _a, _b;
4084
- return /* @__PURE__ */ jsx61("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 14 14", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx61("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9 5h.007m1.03-3.438 2.401 2.401a1.92 1.92 0 0 1 0 2.713l-1.762 1.762a1.92 1.92 0 0 1-2.713 0l-.2-.2-4.372 4.371a1.33 1.33 0 0 1-.826.386L2.448 13h-.781a.667.667 0 0 1-.662-.589L1 12.333v-.781c0-.313.11-.616.311-.856l.08-.087.276-.276H3V9h1.333V7.667l1.43-1.43-.201-.2a1.92 1.92 0 0 1 0-2.713l1.762-1.762a1.92 1.92 0 0 1 2.713 0" }) });
4123
+ return /* @__PURE__ */ jsx61("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 13 14", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx61("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M10.602 3.667c.603 1 .86 2.171.733 3.333v.667a4 4 0 0 0 .533 2M3.335 6.333a2.667 2.667 0 0 1 5.333 0V7c0 1.442.468 2.846 1.334 4m-4-4.667v1.334A9.33 9.33 0 0 0 7.668 13M3.335 9a12 12 0 0 0 1.2 4m-3.267-1.333A14.7 14.7 0 0 1 .668 7v-.667a5.333 5.333 0 0 1 8-4.633" }) });
4085
4124
  };
4086
- var webauthn_default = SvgWebauthn;
4125
+ var passkey_default = SvgPasskey;
4087
4126
 
4088
- // src/theme/default/assets/icons/totp.svg
4127
+ // src/theme/default/assets/icons/password.svg
4089
4128
  import * as React21 from "react";
4090
4129
  import { jsx as jsx62 } from "react/jsx-runtime";
4091
- var SvgTotp = (props) => {
4130
+ var SvgPassword = (props) => {
4092
4131
  var _a, _b;
4093
- return /* @__PURE__ */ jsx62("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx62("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9.333 22.667v.013m0-13.346v.013m13.333-.013v.013m0 9.32h-4v4m8-4v.013m-8 7.987h4m0-4h4v4m-21.333-20a1.333 1.333 0 0 1 1.333-1.333H12a1.333 1.333 0 0 1 1.333 1.333V12A1.334 1.334 0 0 1 12 13.334H6.666A1.334 1.334 0 0 1 5.333 12zm13.333 0A1.333 1.333 0 0 1 20 5.334h5.333a1.333 1.333 0 0 1 1.333 1.333V12a1.333 1.333 0 0 1-1.333 1.334H20A1.333 1.333 0 0 1 18.666 12zM5.333 20a1.333 1.333 0 0 1 1.333-1.333H12A1.333 1.333 0 0 1 13.333 20v5.334A1.333 1.333 0 0 1 12 26.667H6.666a1.333 1.333 0 0 1-1.333-1.334z" }) });
4132
+ return /* @__PURE__ */ jsx62("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 14 4", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx62("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M7 .667v2.667m-1.333-.667 2.666-1.333m-2.666 0 2.666 1.333m-6-2v2.667M1 2.667l2.667-1.333M1 1.334l2.667 1.333m8-2v2.667m-1.334-.667L13 1.334m-2.667 0L13 2.667" }) });
4094
4133
  };
4095
- var totp_default = SvgTotp;
4134
+ var password_default = SvgPassword;
4096
4135
 
4097
- // src/theme/default/assets/icons/code-asterix.svg
4136
+ // src/theme/default/assets/icons/totp.svg
4098
4137
  import * as React22 from "react";
4099
4138
  import { jsx as jsx63 } from "react/jsx-runtime";
4100
- var SvgCodeAsterix = (props) => {
4139
+ var SvgTotp = (props) => {
4101
4140
  var _a, _b;
4102
- return /* @__PURE__ */ jsx63("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx63("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 19.325a2 2 0 0 1-2-2v-4l-1-1 1-1v-4a2 2 0 0 1 2-2m6 6.875 3-1.687M12 12.2v3.375m0-3.375-3-1.687m3 1.687 3 1.688M12 12.2V8.825m0 3.375-3 1.688m9 5.437a2 2 0 0 0 2-2v-4l1-1-1-1v-4a2 2 0 0 0-2-2" }) });
4141
+ return /* @__PURE__ */ jsx63("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx63("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9.333 22.667v.013m0-13.346v.013m13.333-.013v.013m0 9.32h-4v4m8-4v.013m-8 7.987h4m0-4h4v4m-21.333-20a1.333 1.333 0 0 1 1.333-1.333H12a1.333 1.333 0 0 1 1.333 1.333V12A1.334 1.334 0 0 1 12 13.334H6.666A1.334 1.334 0 0 1 5.333 12zm13.333 0A1.333 1.333 0 0 1 20 5.334h5.333a1.333 1.333 0 0 1 1.333 1.333V12a1.333 1.333 0 0 1-1.333 1.334H20A1.333 1.333 0 0 1 18.666 12zM5.333 20a1.333 1.333 0 0 1 1.333-1.333H12A1.333 1.333 0 0 1 13.333 20v5.334A1.333 1.333 0 0 1 12 26.667H6.666a1.333 1.333 0 0 1-1.333-1.334z" }) });
4103
4142
  };
4104
- var code_asterix_default = SvgCodeAsterix;
4143
+ var totp_default = SvgTotp;
4144
+
4145
+ // src/theme/default/assets/icons/webauthn.svg
4146
+ import * as React23 from "react";
4147
+ import { jsx as jsx64 } from "react/jsx-runtime";
4148
+ var SvgWebauthn = (props) => {
4149
+ var _a, _b;
4150
+ return /* @__PURE__ */ jsx64("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 14 14", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx64("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9 5h.007m1.03-3.438 2.401 2.401a1.92 1.92 0 0 1 0 2.713l-1.762 1.762a1.92 1.92 0 0 1-2.713 0l-.2-.2-4.372 4.371a1.33 1.33 0 0 1-.826.386L2.448 13h-.781a.667.667 0 0 1-.662-.589L1 12.333v-.781c0-.313.11-.616.311-.856l.08-.087.276-.276H3V9h1.333V7.667l1.43-1.43-.201-.2a1.92 1.92 0 0 1 0-2.713l1.762-1.762a1.92 1.92 0 0 1 2.713 0" }) });
4151
+ };
4152
+ var webauthn_default = SvgWebauthn;
4105
4153
 
4106
4154
  // src/theme/default/components/card/list-item.tsx
4107
- import { jsx as jsx64, jsxs as jsxs30 } from "react/jsx-runtime";
4155
+ import { jsx as jsx65, jsxs as jsxs30 } from "react/jsx-runtime";
4108
4156
  function ListItem({
4109
4157
  icon: Icon,
4110
4158
  as,
@@ -4121,13 +4169,14 @@ function ListItem({
4121
4169
  ...props,
4122
4170
  className: cn(
4123
4171
  "flex cursor-pointer gap-3 text-left items-start w-full rounded-buttons p-2 hover:bg-interface-background-default-primary-hover",
4172
+ "disabled:hover:bg-ui-transparent disabled:cursor-default disabled:opacity-50",
4124
4173
  className
4125
4174
  ),
4126
4175
  children: [
4127
- /* @__PURE__ */ jsx64("span", { className: "mt-1", children: Icon && /* @__PURE__ */ jsx64(Icon, { size: 16, className: "text-interface-foreground-brand-primary" }) }),
4176
+ /* @__PURE__ */ jsx65("span", { className: "mt-1", children: Icon && /* @__PURE__ */ jsx65(Icon, { size: 16, className: "text-interface-foreground-brand-primary" }) }),
4128
4177
  /* @__PURE__ */ jsxs30("span", { className: "flex-1 leading-normal inline-flex flex-col max-w-full min-w-1", children: [
4129
- /* @__PURE__ */ jsx64("span", { className: "text-interface-foreground-default-primary break-words", children: title }),
4130
- /* @__PURE__ */ jsx64("span", { className: "text-interface-foreground-default-secondary", children: description })
4178
+ /* @__PURE__ */ jsx65("span", { className: "text-interface-foreground-default-primary break-words", children: title }),
4179
+ /* @__PURE__ */ jsx65("span", { className: "text-interface-foreground-default-secondary", children: description })
4131
4180
  ] }),
4132
4181
  children
4133
4182
  ]
@@ -4136,7 +4185,7 @@ function ListItem({
4136
4185
  }
4137
4186
 
4138
4187
  // src/theme/default/components/card/auth-method-list-item.tsx
4139
- import { jsx as jsx65 } from "react/jsx-runtime";
4188
+ import { jsx as jsx66 } from "react/jsx-runtime";
4140
4189
  var iconsMap = {
4141
4190
  code: code_default,
4142
4191
  passkey: passkey_default,
@@ -4155,7 +4204,16 @@ function DefaultAuthMethodListItem({
4155
4204
  var _a;
4156
4205
  const intl = useIntl13();
4157
4206
  const Icon = iconsMap[group] || null;
4158
- return /* @__PURE__ */ jsx65(
4207
+ const { flow } = useOryFlow8();
4208
+ if (group === "passkey") {
4209
+ const passkeyNode = findPasskeyNode(flow);
4210
+ if (!passkeyNode) {
4211
+ console.error("Passkey node not found");
4212
+ return null;
4213
+ }
4214
+ return /* @__PURE__ */ jsx66(PasskeyListItem, { passkeyNode, group, title });
4215
+ }
4216
+ return /* @__PURE__ */ jsx66(
4159
4217
  ListItem,
4160
4218
  {
4161
4219
  as: "button",
@@ -4173,6 +4231,91 @@ function DefaultAuthMethodListItem({
4173
4231
  }
4174
4232
  );
4175
4233
  }
4234
+ function findPasskeyNode(flow) {
4235
+ const passkeyTriggerNode = flow.ui.nodes.find(
4236
+ (node) => node.attributes.node_type === "input" && ["passkey_login_trigger", "passkey_register_trigger"].includes(
4237
+ node.attributes.name
4238
+ )
4239
+ );
4240
+ if (!passkeyTriggerNode) {
4241
+ return void 0;
4242
+ }
4243
+ return passkeyTriggerNode;
4244
+ }
4245
+ function PasskeyListItem({ group, title, passkeyNode }) {
4246
+ var _a, _b;
4247
+ const intl = useIntl13();
4248
+ const Icon = iconsMap[group] || null;
4249
+ const [init, setInit] = useState5(false);
4250
+ const [failedToLoad, setFailedToLoad] = useState5(false);
4251
+ const clickHandler = () => {
4252
+ if (!passkeyNode.attributes.onclickTrigger) {
4253
+ console.error("Passkey node not found");
4254
+ return;
4255
+ }
4256
+ const fn = triggerToFunction(passkeyNode.attributes.onclickTrigger);
4257
+ if (fn) {
4258
+ fn();
4259
+ } else {
4260
+ console.error("Passkey node trigger function not found");
4261
+ }
4262
+ };
4263
+ useEffect5(() => {
4264
+ if (!passkeyNode.attributes.onclickTrigger) {
4265
+ console.error("Passkey node not found");
4266
+ return;
4267
+ }
4268
+ const fn = triggerToFunction(passkeyNode.attributes.onclickTrigger);
4269
+ setInit(typeof fn === "function");
4270
+ }, [passkeyNode]);
4271
+ useEventListener("oryWebAuthnInitialized", () => {
4272
+ setInit(true);
4273
+ });
4274
+ useTimeout(() => {
4275
+ if (!init) {
4276
+ setFailedToLoad(true);
4277
+ }
4278
+ }, 5e3);
4279
+ if (failedToLoad) {
4280
+ return /* @__PURE__ */ jsx66(
4281
+ ListItem,
4282
+ {
4283
+ as: "button",
4284
+ icon: Icon,
4285
+ disabled: true,
4286
+ title: intl.formatMessage(
4287
+ { id: (_a = title == null ? void 0 : title.id) != null ? _a : `two-step.${group}.title` },
4288
+ title == null ? void 0 : title.values
4289
+ ),
4290
+ description: intl.formatMessage({
4291
+ id: "two-step.passkey.description.error"
4292
+ }),
4293
+ type: "button",
4294
+ "data-testid": `ory/form/auth-picker/${group}`,
4295
+ children: /* @__PURE__ */ jsx66(alert_triangle_default, {})
4296
+ }
4297
+ );
4298
+ }
4299
+ return /* @__PURE__ */ jsx66(
4300
+ ListItem,
4301
+ {
4302
+ as: "button",
4303
+ icon: Icon,
4304
+ disabled: !init,
4305
+ name: passkeyNode.attributes.name,
4306
+ title: intl.formatMessage(
4307
+ { id: (_b = title == null ? void 0 : title.id) != null ? _b : `two-step.${group}.title` },
4308
+ title == null ? void 0 : title.values
4309
+ ),
4310
+ description: intl.formatMessage({
4311
+ id: `two-step.${group}.description`
4312
+ }),
4313
+ onClick: clickHandler,
4314
+ type: "button",
4315
+ "data-testid": `ory/form/auth-picker/${group}`
4316
+ }
4317
+ );
4318
+ }
4176
4319
 
4177
4320
  // src/theme/default/components/form/button.tsx
4178
4321
  import { getNodeLabel } from "@ory/client-fetch";
@@ -4182,8 +4325,8 @@ import {
4182
4325
  import { cva } from "class-variance-authority";
4183
4326
  import { useFormContext as useFormContext14 } from "react-hook-form";
4184
4327
  import { useIntl as useIntl14 } from "react-intl";
4185
- import { useEffect as useEffect5, useState as useState5 } from "react";
4186
- import { jsx as jsx66, jsxs as jsxs31 } from "react/jsx-runtime";
4328
+ import { useEffect as useEffect6, useState as useState6 } from "react";
4329
+ import { jsx as jsx67, jsxs as jsxs31 } from "react/jsx-runtime";
4187
4330
  var buttonStyles = cva(
4188
4331
  [
4189
4332
  "relative flex justify-center gap-3 overflow-hidden rounded-buttons leading-none ring-1 ring-inset font-medium",
@@ -4223,14 +4366,14 @@ var DefaultButton = ({
4223
4366
  }) => {
4224
4367
  var _a;
4225
4368
  const { type, name, value, ...rest } = attributes;
4226
- const [clicked, setClicked] = useState5(false);
4369
+ const [clicked, setClicked] = useState6(false);
4227
4370
  const intl = useIntl14();
4228
4371
  const label = getNodeLabel(node);
4229
4372
  const {
4230
4373
  formState: { isSubmitting },
4231
4374
  setValue
4232
4375
  } = useFormContext14();
4233
- useEffect5(() => {
4376
+ useEffect6(() => {
4234
4377
  if (!isSubmitting) {
4235
4378
  setClicked(false);
4236
4379
  }
@@ -4256,8 +4399,8 @@ var DefaultButton = ({
4256
4399
  disabled: (_a = rest.disabled) != null ? _a : isSubmitting,
4257
4400
  "data-loading": clicked,
4258
4401
  children: [
4259
- clicked ? /* @__PURE__ */ jsx66(Spinner, {}) : null,
4260
- label ? /* @__PURE__ */ jsx66("span", { children: uiTextToFormattedMessage4(label, intl) }) : ""
4402
+ clicked ? /* @__PURE__ */ jsx67(Spinner, {}) : null,
4403
+ label ? /* @__PURE__ */ jsx67("span", { children: uiTextToFormattedMessage4(label, intl) }) : ""
4261
4404
  ]
4262
4405
  }
4263
4406
  );
@@ -4275,7 +4418,7 @@ import { useIntl as useIntl16 } from "react-intl";
4275
4418
 
4276
4419
  // src/theme/default/components/ui/checkbox-label.tsx
4277
4420
  import { useIntl as useIntl15 } from "react-intl";
4278
- import { Fragment as Fragment10, jsx as jsx67 } from "react/jsx-runtime";
4421
+ import { Fragment as Fragment10, jsx as jsx68 } from "react/jsx-runtime";
4279
4422
  var linkRegex = /\[([^\]]+)\]\(([^)]+)\)/g;
4280
4423
  function computeLabelElements(labelText) {
4281
4424
  const elements = [];
@@ -4291,7 +4434,7 @@ function computeLabelElements(labelText) {
4291
4434
  elements.push(labelText.slice(lastIndex, matchStart));
4292
4435
  }
4293
4436
  elements.push(
4294
- /* @__PURE__ */ jsx67(
4437
+ /* @__PURE__ */ jsx68(
4295
4438
  "a",
4296
4439
  {
4297
4440
  href: url,
@@ -4316,13 +4459,13 @@ function CheckboxLabel({ label }) {
4316
4459
  return null;
4317
4460
  }
4318
4461
  const labelText = uiTextToFormattedMessage(label, intl);
4319
- return /* @__PURE__ */ jsx67(Fragment10, { children: computeLabelElements(labelText) });
4462
+ return /* @__PURE__ */ jsx68(Fragment10, { children: computeLabelElements(labelText) });
4320
4463
  }
4321
4464
 
4322
4465
  // src/theme/default/components/form/checkbox.tsx
4323
- import { jsx as jsx68, jsxs as jsxs32 } from "react/jsx-runtime";
4466
+ import { jsx as jsx69, jsxs as jsxs32 } from "react/jsx-runtime";
4324
4467
  function CheckboxSVG() {
4325
- return /* @__PURE__ */ jsx68(
4468
+ return /* @__PURE__ */ jsx69(
4326
4469
  "svg",
4327
4470
  {
4328
4471
  className: "absolute hidden size-4 peer-checked:block fill-checkbox-foreground-checked",
@@ -4331,7 +4474,7 @@ function CheckboxSVG() {
4331
4474
  height: "16",
4332
4475
  viewBox: "0 0 16 16",
4333
4476
  fill: "none",
4334
- children: /* @__PURE__ */ jsx68(
4477
+ children: /* @__PURE__ */ jsx69(
4335
4478
  "path",
4336
4479
  {
4337
4480
  fillRule: "evenodd",
@@ -4353,7 +4496,7 @@ var DefaultCheckbox = ({
4353
4496
  const hasError = node.messages.some((m) => m.type === "error");
4354
4497
  return /* @__PURE__ */ jsxs32("label", { className: "flex items-start gap-3 self-stretch antialiased", children: [
4355
4498
  /* @__PURE__ */ jsxs32("span", { className: "flex h-5 items-center", children: [
4356
- /* @__PURE__ */ jsx68(
4499
+ /* @__PURE__ */ jsx69(
4357
4500
  "input",
4358
4501
  {
4359
4502
  ...omitInputAttributes(attributes),
@@ -4367,11 +4510,11 @@ var DefaultCheckbox = ({
4367
4510
  ...register(name)
4368
4511
  }
4369
4512
  ),
4370
- /* @__PURE__ */ jsx68(CheckboxSVG, {})
4513
+ /* @__PURE__ */ jsx69(CheckboxSVG, {})
4371
4514
  ] }),
4372
4515
  /* @__PURE__ */ jsxs32("span", { className: "flex flex-col", children: [
4373
- /* @__PURE__ */ jsx68("span", { className: "font-normal leading-tight text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx68(CheckboxLabel, { label }) }),
4374
- node.messages.map((message) => /* @__PURE__ */ jsx68(
4516
+ /* @__PURE__ */ jsx69("span", { className: "font-normal leading-tight text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx69(CheckboxLabel, { label }) }),
4517
+ node.messages.map((message) => /* @__PURE__ */ jsx69(
4375
4518
  "span",
4376
4519
  {
4377
4520
  className: cn(
@@ -4388,7 +4531,7 @@ var DefaultCheckbox = ({
4388
4531
  };
4389
4532
 
4390
4533
  // src/theme/default/components/form/group-container.tsx
4391
- import { useOryFlow as useOryFlow8 } from "@ory/elements-react";
4534
+ import { useOryFlow as useOryFlow9 } from "@ory/elements-react";
4392
4535
  import { FlowType as FlowType14 } from "@ory/client-fetch";
4393
4536
 
4394
4537
  // src/util/childCounter.ts
@@ -4403,14 +4546,14 @@ function countRenderableChildren(children) {
4403
4546
  }
4404
4547
 
4405
4548
  // src/theme/default/components/form/group-container.tsx
4406
- import { jsx as jsx69 } from "react/jsx-runtime";
4549
+ import { jsx as jsx70 } from "react/jsx-runtime";
4407
4550
  function DefaultGroupContainer({ children }) {
4408
- const { flowType } = useOryFlow8();
4551
+ const { flowType } = useOryFlow9();
4409
4552
  const count = countRenderableChildren(children);
4410
4553
  if (count === 0) {
4411
4554
  return null;
4412
4555
  }
4413
- return /* @__PURE__ */ jsx69(
4556
+ return /* @__PURE__ */ jsx70(
4414
4557
  "div",
4415
4558
  {
4416
4559
  className: cn(
@@ -4423,16 +4566,16 @@ function DefaultGroupContainer({ children }) {
4423
4566
  }
4424
4567
 
4425
4568
  // src/theme/default/components/form/horizontal-divider.tsx
4426
- import { jsx as jsx70 } from "react/jsx-runtime";
4569
+ import { jsx as jsx71 } from "react/jsx-runtime";
4427
4570
  function DefaultHorizontalDivider() {
4428
- return /* @__PURE__ */ jsx70("hr", { className: "border-interface-border-default-primary" });
4571
+ return /* @__PURE__ */ jsx71("hr", { className: "border-interface-border-default-primary" });
4429
4572
  }
4430
4573
 
4431
4574
  // src/theme/default/components/form/image.tsx
4432
- import { jsx as jsx71 } from "react/jsx-runtime";
4575
+ import { jsx as jsx72 } from "react/jsx-runtime";
4433
4576
  function DefaultImage({ attributes, node }) {
4434
4577
  var _a;
4435
- return /* @__PURE__ */ jsx71("figure", { children: /* @__PURE__ */ jsx71(
4578
+ return /* @__PURE__ */ jsx72("figure", { children: /* @__PURE__ */ jsx72(
4436
4579
  "img",
4437
4580
  {
4438
4581
  ...omitInputAttributes(attributes),
@@ -4445,35 +4588,35 @@ function DefaultImage({ attributes, node }) {
4445
4588
  import { FlowType as FlowType15, getNodeLabel as getNodeLabel3 } from "@ory/client-fetch";
4446
4589
  import {
4447
4590
  uiTextToFormattedMessage as uiTextToFormattedMessage6,
4448
- useOryFlow as useOryFlow9
4591
+ useOryFlow as useOryFlow10
4449
4592
  } from "@ory/elements-react";
4450
- import { useRef as useRef3, useState as useState6 } from "react";
4593
+ import { useRef as useRef3, useState as useState7 } from "react";
4451
4594
  import { useFormContext as useFormContext16 } from "react-hook-form";
4452
4595
  import { useIntl as useIntl17 } from "react-intl";
4453
4596
 
4454
4597
  // src/theme/default/assets/icons/eye-off.svg
4455
- import * as React23 from "react";
4456
- import { jsx as jsx72 } from "react/jsx-runtime";
4598
+ import * as React24 from "react";
4599
+ import { jsx as jsx73 } from "react/jsx-runtime";
4457
4600
  var SvgEyeOff = (props) => {
4458
4601
  var _a, _b;
4459
- return /* @__PURE__ */ jsx72("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx72("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M10.585 10.587a2 2 0 0 0 2.829 2.828m3.267 3.258A8.7 8.7 0 0 1 12 18q-5.4 0-9-6 1.908-3.18 4.32-4.674m2.86-1.146A9 9 0 0 1 12 6q5.4 0 9 6-1 1.665-2.138 2.87M3 3l18 18" }) });
4602
+ return /* @__PURE__ */ jsx73("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx73("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M10.585 10.587a2 2 0 0 0 2.829 2.828m3.267 3.258A8.7 8.7 0 0 1 12 18q-5.4 0-9-6 1.908-3.18 4.32-4.674m2.86-1.146A9 9 0 0 1 12 6q5.4 0 9 6-1 1.665-2.138 2.87M3 3l18 18" }) });
4460
4603
  };
4461
4604
  var eye_off_default = SvgEyeOff;
4462
4605
 
4463
4606
  // src/theme/default/assets/icons/eye.svg
4464
- import * as React24 from "react";
4465
- import { jsx as jsx73, jsxs as jsxs33 } from "react/jsx-runtime";
4607
+ import * as React25 from "react";
4608
+ import { jsx as jsx74, jsxs as jsxs33 } from "react/jsx-runtime";
4466
4609
  var SvgEye = (props) => {
4467
4610
  var _a, _b;
4468
- return /* @__PURE__ */ jsx73("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsxs33("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
4469
- /* @__PURE__ */ jsx73("path", { d: "M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }),
4470
- /* @__PURE__ */ jsx73("path", { d: "M21 12q-3.6 6-9 6t-9-6q3.6-6 9-6t9 6" })
4611
+ return /* @__PURE__ */ jsx74("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsxs33("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
4612
+ /* @__PURE__ */ jsx74("path", { d: "M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }),
4613
+ /* @__PURE__ */ jsx74("path", { d: "M21 12q-3.6 6-9 6t-9-6q3.6-6 9-6t9 6" })
4471
4614
  ] }) });
4472
4615
  };
4473
4616
  var eye_default = SvgEye;
4474
4617
 
4475
4618
  // src/theme/default/components/form/input.tsx
4476
- import { jsx as jsx74, jsxs as jsxs34 } from "react/jsx-runtime";
4619
+ import { jsx as jsx75, jsxs as jsxs34 } from "react/jsx-runtime";
4477
4620
  var defaultInputClassName = cn(
4478
4621
  "antialiased rounded-forms border leading-tight transition-colors placeholder:h-[20px] placeholder:text-input-foreground-tertiary focus-visible:outline-none focus:ring-0 w-full",
4479
4622
  "bg-input-background-default border-input-border-default text-input-foreground-primary",
@@ -4491,7 +4634,7 @@ var DefaultInput = ({
4491
4634
  const { register } = useFormContext16();
4492
4635
  const { value, autocomplete, name, maxlength, ...rest } = attributes;
4493
4636
  const intl = useIntl17();
4494
- const { flowType } = useOryFlow9();
4637
+ const { flowType } = useOryFlow10();
4495
4638
  const inputRef = useRef3(null);
4496
4639
  const formattedLabel = label ? intl.formatMessage(
4497
4640
  {
@@ -4503,7 +4646,7 @@ var DefaultInput = ({
4503
4646
  }
4504
4647
  ) : "";
4505
4648
  if (rest.type === "hidden") {
4506
- return /* @__PURE__ */ jsx74(
4649
+ return /* @__PURE__ */ jsx75(
4507
4650
  "input",
4508
4651
  {
4509
4652
  ...omitInputAttributes(rest),
@@ -4526,7 +4669,7 @@ var DefaultInput = ({
4526
4669
  flowType === FlowType15.Settings && "max-w-[488px]"
4527
4670
  ),
4528
4671
  children: [
4529
- /* @__PURE__ */ jsx74(
4672
+ /* @__PURE__ */ jsx75(
4530
4673
  "input",
4531
4674
  {
4532
4675
  ...omitInputAttributes(rest),
@@ -4543,7 +4686,7 @@ var DefaultInput = ({
4543
4686
  ...restRegister
4544
4687
  }
4545
4688
  ),
4546
- rest.type === "password" && /* @__PURE__ */ jsx74(PasswordToggle, { inputRef })
4689
+ rest.type === "password" && /* @__PURE__ */ jsx75(PasswordToggle, { inputRef })
4547
4690
  ]
4548
4691
  }
4549
4692
  );
@@ -4551,21 +4694,21 @@ var DefaultInput = ({
4551
4694
  function PasswordToggle({
4552
4695
  inputRef
4553
4696
  }) {
4554
- const [shown, setShown] = useState6(false);
4697
+ const [shown, setShown] = useState7(false);
4555
4698
  const handleClick = () => {
4556
4699
  setShown(!shown);
4557
4700
  if (inputRef.current) {
4558
4701
  inputRef.current.type = shown ? "password" : "text";
4559
4702
  }
4560
4703
  };
4561
- return /* @__PURE__ */ jsx74(
4704
+ return /* @__PURE__ */ jsx75(
4562
4705
  "button",
4563
4706
  {
4564
4707
  onClick: handleClick,
4565
4708
  className: "absolute right-0 h-full w-12 flex items-center justify-center",
4566
4709
  type: "button",
4567
4710
  "aria-label": "Toggle password visibility",
4568
- children: shown ? /* @__PURE__ */ jsx74(eye_off_default, {}) : /* @__PURE__ */ jsx74(eye_default, {})
4711
+ children: shown ? /* @__PURE__ */ jsx75(eye_off_default, {}) : /* @__PURE__ */ jsx75(eye_default, {})
4569
4712
  }
4570
4713
  );
4571
4714
  }
@@ -4581,11 +4724,11 @@ import {
4581
4724
  uiTextToFormattedMessage as uiTextToFormattedMessage7,
4582
4725
  useComponents as useComponents5,
4583
4726
  useOryConfiguration as useOryConfiguration5,
4584
- useOryFlow as useOryFlow10
4727
+ useOryFlow as useOryFlow11
4585
4728
  } from "@ory/elements-react";
4586
4729
  import { useFormContext as useFormContext17 } from "react-hook-form";
4587
4730
  import { useIntl as useIntl18 } from "react-intl";
4588
- import { jsx as jsx75, jsxs as jsxs35 } from "react/jsx-runtime";
4731
+ import { jsx as jsx76, jsxs as jsxs35 } from "react/jsx-runtime";
4589
4732
  function findResendNode(nodes) {
4590
4733
  return nodes.find(
4591
4734
  (n) => "name" in n.attributes && (n.attributes.name === "email" && n.attributes.type === "submit" || n.attributes.name === "resend")
@@ -4600,7 +4743,7 @@ function DefaultLabel({
4600
4743
  const intl = useIntl18();
4601
4744
  const label = getNodeLabel4(node);
4602
4745
  const { Message } = useComponents5();
4603
- const { flowType, flow } = useOryFlow10();
4746
+ const { flowType, flow } = useOryFlow11();
4604
4747
  const config = useOryConfiguration5();
4605
4748
  const { setValue, formState } = useFormContext17();
4606
4749
  const isPassword = attributes.type === "password";
@@ -4613,7 +4756,7 @@ function DefaultLabel({
4613
4756
  const fieldError = formState.errors[attributes.name];
4614
4757
  return /* @__PURE__ */ jsxs35("div", { className: "flex flex-col gap-1 antialiased", children: [
4615
4758
  label && /* @__PURE__ */ jsxs35("span", { className: "inline-flex justify-between", children: [
4616
- /* @__PURE__ */ jsx75(
4759
+ /* @__PURE__ */ jsx76(
4617
4760
  "label",
4618
4761
  {
4619
4762
  ...messageTestId4(label),
@@ -4625,7 +4768,7 @@ function DefaultLabel({
4625
4768
  }
4626
4769
  ),
4627
4770
  isPassword && config.project.recovery_enabled && flowType === FlowType16.Login && // TODO: make it possible to override with a custom component
4628
- /* @__PURE__ */ jsx75(
4771
+ /* @__PURE__ */ jsx76(
4629
4772
  "a",
4630
4773
  {
4631
4774
  href: initFlowUrl(config.sdk.url, "recovery", flow),
@@ -4636,7 +4779,7 @@ function DefaultLabel({
4636
4779
  })
4637
4780
  }
4638
4781
  ),
4639
- (resendNode == null ? void 0 : resendNode.attributes.node_type) === "input" && /* @__PURE__ */ jsx75(
4782
+ (resendNode == null ? void 0 : resendNode.attributes.node_type) === "input" && /* @__PURE__ */ jsx76(
4640
4783
  "button",
4641
4784
  {
4642
4785
  type: "submit",
@@ -4649,8 +4792,8 @@ function DefaultLabel({
4649
4792
  )
4650
4793
  ] }),
4651
4794
  children,
4652
- node.messages.map((message) => /* @__PURE__ */ jsx75(Message.Content, { message }, message.id)),
4653
- fieldError && instanceOfUiText(fieldError) && /* @__PURE__ */ jsx75(Message.Content, { message: fieldError })
4795
+ node.messages.map((message) => /* @__PURE__ */ jsx76(Message.Content, { message }, message.id)),
4796
+ fieldError && instanceOfUiText(fieldError) && /* @__PURE__ */ jsx76(Message.Content, { message: fieldError })
4654
4797
  ] });
4655
4798
  }
4656
4799
 
@@ -4661,11 +4804,11 @@ import {
4661
4804
  } from "@ory/elements-react";
4662
4805
  import { forwardRef } from "react";
4663
4806
  import { useIntl as useIntl19 } from "react-intl";
4664
- import { jsx as jsx76 } from "react/jsx-runtime";
4807
+ import { jsx as jsx77 } from "react/jsx-runtime";
4665
4808
  var DefaultLinkButton = forwardRef(({ attributes, node }, ref) => {
4666
4809
  const intl = useIntl19();
4667
4810
  const label = getNodeLabel5(node);
4668
- return /* @__PURE__ */ jsx76(
4811
+ return /* @__PURE__ */ jsx77(
4669
4812
  "a",
4670
4813
  {
4671
4814
  ...omitInputAttributes(attributes),
@@ -4686,9 +4829,9 @@ import { useFormContext as useFormContext18 } from "react-hook-form";
4686
4829
 
4687
4830
  // src/theme/default/components/form/shadcn/otp-input.tsx
4688
4831
  import { OTPInput, OTPInputContext } from "input-otp";
4689
- import * as React25 from "react";
4690
- import { jsx as jsx77, jsxs as jsxs36 } from "react/jsx-runtime";
4691
- var InputOTP = React25.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx77(
4832
+ import * as React26 from "react";
4833
+ import { jsx as jsx78, jsxs as jsxs36 } from "react/jsx-runtime";
4834
+ var InputOTP = React26.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx78(
4692
4835
  OTPInput,
4693
4836
  {
4694
4837
  ref,
@@ -4701,10 +4844,10 @@ var InputOTP = React25.forwardRef(({ className, containerClassName, ...props },
4701
4844
  }
4702
4845
  ));
4703
4846
  InputOTP.displayName = "InputOTP";
4704
- var InputOTPGroup = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx77("div", { ref, className: cn("flex items-center", className), ...props }));
4847
+ var InputOTPGroup = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx78("div", { ref, className: cn("flex items-center", className), ...props }));
4705
4848
  InputOTPGroup.displayName = "InputOTPGroup";
4706
- var InputOTPSlot = React25.forwardRef(({ index, className, ...props }, ref) => {
4707
- const inputOTPContext = React25.useContext(OTPInputContext);
4849
+ var InputOTPSlot = React26.forwardRef(({ index, className, ...props }, ref) => {
4850
+ const inputOTPContext = React26.useContext(OTPInputContext);
4708
4851
  const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
4709
4852
  return /* @__PURE__ */ jsxs36(
4710
4853
  "div",
@@ -4718,8 +4861,8 @@ var InputOTPSlot = React25.forwardRef(({ index, className, ...props }, ref) => {
4718
4861
  ),
4719
4862
  ...props,
4720
4863
  children: [
4721
- /* @__PURE__ */ jsx77("span", { className: "inline-block size-4", children: char }),
4722
- hasFakeCaret && /* @__PURE__ */ jsx77("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx77("div", { className: "h-4 w-px animate-caret-blink bg-interface-background-brand-primary duration-700" }) })
4864
+ /* @__PURE__ */ jsx78("span", { className: "inline-block size-4", children: char }),
4865
+ hasFakeCaret && /* @__PURE__ */ jsx78("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx78("div", { className: "h-4 w-px animate-caret-blink bg-interface-background-brand-primary duration-700" }) })
4723
4866
  ]
4724
4867
  }
4725
4868
  );
@@ -4727,26 +4870,26 @@ var InputOTPSlot = React25.forwardRef(({ index, className, ...props }, ref) => {
4727
4870
  InputOTPSlot.displayName = "InputOTPSlot";
4728
4871
 
4729
4872
  // src/theme/default/components/form/pin-code-input.tsx
4730
- import { useOryFlow as useOryFlow11 } from "@ory/elements-react";
4873
+ import { useOryFlow as useOryFlow12 } from "@ory/elements-react";
4731
4874
  import { FlowType as FlowType17 } from "@ory/client-fetch";
4732
- import { jsx as jsx78 } from "react/jsx-runtime";
4875
+ import { jsx as jsx79 } from "react/jsx-runtime";
4733
4876
  var DefaultPinCodeInput = ({ attributes }) => {
4734
4877
  const { setValue, watch } = useFormContext18();
4735
4878
  const { maxlength, name } = attributes;
4736
4879
  const elements = maxlength != null ? maxlength : 6;
4737
- const { flowType } = useOryFlow11();
4880
+ const { flowType } = useOryFlow12();
4738
4881
  const handleInputChange = (v) => {
4739
4882
  setValue(name, v);
4740
4883
  };
4741
4884
  const value = watch(name);
4742
- return /* @__PURE__ */ jsx78(
4885
+ return /* @__PURE__ */ jsx79(
4743
4886
  InputOTP,
4744
4887
  {
4745
4888
  maxLength: maxlength != null ? maxlength : 6,
4746
4889
  onChange: handleInputChange,
4747
4890
  name,
4748
4891
  value,
4749
- children: /* @__PURE__ */ jsx78(
4892
+ children: /* @__PURE__ */ jsx79(
4750
4893
  InputOTPGroup,
4751
4894
  {
4752
4895
  className: cn(
@@ -4754,7 +4897,7 @@ var DefaultPinCodeInput = ({ attributes }) => {
4754
4897
  // The settings flow input fields are supposed to be dense, so we don't need the extra padding we want on the user flows.
4755
4898
  flowType === FlowType17.Settings && "max-w-[488px]"
4756
4899
  ),
4757
- children: [...Array(elements)].map((_, index) => /* @__PURE__ */ jsx78(InputOTPSlot, { index }, index))
4900
+ children: [...Array(elements)].map((_, index) => /* @__PURE__ */ jsx79(InputOTPSlot, { index }, index))
4758
4901
  }
4759
4902
  )
4760
4903
  }
@@ -4762,13 +4905,13 @@ var DefaultPinCodeInput = ({ attributes }) => {
4762
4905
  };
4763
4906
 
4764
4907
  // src/theme/default/components/form/section.tsx
4765
- import { jsx as jsx79, jsxs as jsxs37 } from "react/jsx-runtime";
4908
+ import { jsx as jsx80, jsxs as jsxs37 } from "react/jsx-runtime";
4766
4909
  var DefaultFormSection = ({
4767
4910
  children,
4768
4911
  nodes: _nodes,
4769
4912
  ...rest
4770
4913
  }) => {
4771
- return /* @__PURE__ */ jsx79(
4914
+ return /* @__PURE__ */ jsx80(
4772
4915
  "form",
4773
4916
  {
4774
4917
  className: "flex w-full max-w-screen-sm flex-col md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px] px-4",
@@ -4784,8 +4927,8 @@ var DefaultFormSectionContent = ({
4784
4927
  }) => {
4785
4928
  return /* @__PURE__ */ jsxs37("div", { className: "flex flex-col gap-8 rounded-t-cards border border-b-0 border-interface-border-default-primary bg-interface-background-default-primary px-6 py-8", children: [
4786
4929
  /* @__PURE__ */ jsxs37("div", { className: "flex flex-col gap-2", children: [
4787
- /* @__PURE__ */ jsx79("h3", { className: "font-medium text-interface-foreground-default-primary", children: title }),
4788
- /* @__PURE__ */ jsx79("span", { className: "text-interface-foreground-default-secondary", children: description })
4930
+ /* @__PURE__ */ jsx80("h3", { className: "font-medium text-interface-foreground-default-primary", children: title }),
4931
+ /* @__PURE__ */ jsx80("span", { className: "text-interface-foreground-default-secondary", children: description })
4789
4932
  ] }),
4790
4933
  children
4791
4934
  ] });
@@ -4801,7 +4944,7 @@ var DefaultFormSectionFooter = ({
4801
4944
  "flex min-h-[72px] items-center justify-between gap-2 rounded-b-cards border border-interface-border-default-primary bg-interface-background-default-secondary px-6 py-4 text-interface-foreground-default-tertiary"
4802
4945
  ),
4803
4946
  children: [
4804
- /* @__PURE__ */ jsx79("span", { children: text }),
4947
+ /* @__PURE__ */ jsx80("span", { children: text }),
4805
4948
  children
4806
4949
  ]
4807
4950
  }
@@ -4811,31 +4954,31 @@ var DefaultFormSectionFooter = ({
4811
4954
  // src/theme/default/components/form/text.tsx
4812
4955
  import { uiTextToFormattedMessage as uiTextToFormattedMessage9 } from "@ory/elements-react";
4813
4956
  import { useIntl as useIntl20 } from "react-intl";
4814
- import { Fragment as Fragment11, jsx as jsx80, jsxs as jsxs38 } from "react/jsx-runtime";
4957
+ import { Fragment as Fragment11, jsx as jsx81, jsxs as jsxs38 } from "react/jsx-runtime";
4815
4958
  function DefaultText({ node, attributes }) {
4816
4959
  var _a;
4817
4960
  const intl = useIntl20();
4818
4961
  const lookup = (_a = attributes.text.context) == null ? void 0 : _a.secrets;
4819
4962
  if (lookup) {
4820
4963
  return /* @__PURE__ */ jsxs38(Fragment11, { children: [
4821
- /* @__PURE__ */ jsx80("p", { "data-testid": `ory/form/node/text/${attributes.id}/label`, children: node.meta.label ? uiTextToFormattedMessage9(node.meta.label, intl) : "" }),
4822
- lookup.map((text, index) => /* @__PURE__ */ jsx80(
4964
+ /* @__PURE__ */ jsx81("p", { "data-testid": `ory/form/node/text/${attributes.id}/label`, children: node.meta.label ? uiTextToFormattedMessage9(node.meta.label, intl) : "" }),
4965
+ lookup.map((text, index) => /* @__PURE__ */ jsx81(
4823
4966
  "pre",
4824
4967
  {
4825
4968
  "data-testid": `ory/form/node/text/lookup_secret_codes/text`,
4826
- children: /* @__PURE__ */ jsx80("code", { children: text ? uiTextToFormattedMessage9(text, intl) : "" })
4969
+ children: /* @__PURE__ */ jsx81("code", { children: text ? uiTextToFormattedMessage9(text, intl) : "" })
4827
4970
  },
4828
4971
  index
4829
4972
  ))
4830
4973
  ] });
4831
4974
  }
4832
- return /* @__PURE__ */ jsx80(Fragment11, { children: /* @__PURE__ */ jsxs38(
4975
+ return /* @__PURE__ */ jsx81(Fragment11, { children: /* @__PURE__ */ jsxs38(
4833
4976
  "p",
4834
4977
  {
4835
4978
  "data-testid": `ory/form/node/text/${attributes.id}/label`,
4836
4979
  id: attributes.id,
4837
4980
  children: [
4838
- node.meta.label ? /* @__PURE__ */ jsx80("label", { children: uiTextToFormattedMessage9(node.meta.label, intl) }) : null,
4981
+ node.meta.label ? /* @__PURE__ */ jsx81("label", { children: uiTextToFormattedMessage9(node.meta.label, intl) }) : null,
4839
4982
  attributes.text ? uiTextToFormattedMessage9(attributes.text, intl) : ""
4840
4983
  ]
4841
4984
  }
@@ -4846,7 +4989,7 @@ function DefaultText({ node, attributes }) {
4846
4989
  import {
4847
4990
  useComponents as useComponents6,
4848
4991
  useOryConfiguration as useOryConfiguration7,
4849
- useOryFlow as useOryFlow12
4992
+ useOryFlow as useOryFlow13
4850
4993
  } from "@ory/elements-react";
4851
4994
 
4852
4995
  // src/theme/default/components/ui/user-menu.tsx
@@ -4854,22 +4997,22 @@ import { useOryConfiguration as useOryConfiguration6 } from "@ory/elements-react
4854
4997
  import { DropdownMenuLabel as DropdownMenuLabel2 } from "@radix-ui/react-dropdown-menu";
4855
4998
 
4856
4999
  // src/theme/default/assets/icons/logout.svg
4857
- import * as React26 from "react";
4858
- import { jsx as jsx81 } from "react/jsx-runtime";
5000
+ import * as React27 from "react";
5001
+ import { jsx as jsx82 } from "react/jsx-runtime";
4859
5002
  var SvgLogout = (props) => {
4860
5003
  var _a, _b;
4861
- return /* @__PURE__ */ jsx81("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx81("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9.333 5.334V4A1.333 1.333 0 0 0 8 2.667H3.333A1.333 1.333 0 0 0 2 4v8a1.333 1.333 0 0 0 1.333 1.334H8A1.333 1.333 0 0 0 9.333 12v-1.333M4.667 8H14m0 0-2-2m2 2-2 2" }) });
5004
+ return /* @__PURE__ */ jsx82("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx82("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9.333 5.334V4A1.333 1.333 0 0 0 8 2.667H3.333A1.333 1.333 0 0 0 2 4v8a1.333 1.333 0 0 0 1.333 1.334H8A1.333 1.333 0 0 0 9.333 12v-1.333M4.667 8H14m0 0-2-2m2 2-2 2" }) });
4862
5005
  };
4863
5006
  var logout_default = SvgLogout;
4864
5007
 
4865
5008
  // src/theme/default/assets/icons/settings.svg
4866
- import * as React27 from "react";
4867
- import { jsx as jsx82, jsxs as jsxs39 } from "react/jsx-runtime";
5009
+ import * as React28 from "react";
5010
+ import { jsx as jsx83, jsxs as jsxs39 } from "react/jsx-runtime";
4868
5011
  var SvgSettings = (props) => {
4869
5012
  var _a, _b;
4870
- return /* @__PURE__ */ jsx82("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsxs39("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
4871
- /* @__PURE__ */ jsx82("path", { d: "M6.883 2.878c.284-1.17 1.95-1.17 2.234 0a1.15 1.15 0 0 0 1.715.71c1.029-.626 2.207.551 1.58 1.58a1.148 1.148 0 0 0 .71 1.715c1.17.284 1.17 1.95 0 2.234a1.15 1.15 0 0 0-.71 1.715c.626 1.029-.551 2.207-1.58 1.58a1.148 1.148 0 0 0-1.715.71c-.284 1.17-1.95 1.17-2.234 0a1.15 1.15 0 0 0-1.715-.71c-1.029.626-2.207-.551-1.58-1.58a1.15 1.15 0 0 0-.71-1.715c-1.17-.284-1.17-1.95 0-2.234a1.15 1.15 0 0 0 .71-1.715c-.626-1.029.551-2.207 1.58-1.58.667.405 1.531.047 1.715-.71" }),
4872
- /* @__PURE__ */ jsx82("path", { d: "M6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0" })
5013
+ return /* @__PURE__ */ jsx83("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsxs39("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
5014
+ /* @__PURE__ */ jsx83("path", { d: "M6.883 2.878c.284-1.17 1.95-1.17 2.234 0a1.15 1.15 0 0 0 1.715.71c1.029-.626 2.207.551 1.58 1.58a1.148 1.148 0 0 0 .71 1.715c1.17.284 1.17 1.95 0 2.234a1.15 1.15 0 0 0-.71 1.715c.626 1.029-.551 2.207-1.58 1.58a1.148 1.148 0 0 0-1.715.71c-.284 1.17-1.95 1.17-2.234 0a1.15 1.15 0 0 0-1.715-.71c-1.029.626-2.207-.551-1.58-1.58a1.15 1.15 0 0 0-.71-1.715c-1.17-.284-1.17-1.95 0-2.234a1.15 1.15 0 0 0 .71-1.715c-.626-1.029.551-2.207 1.58-1.58.667.405 1.531.047 1.715-.71" }),
5015
+ /* @__PURE__ */ jsx83("path", { d: "M6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0" })
4873
5016
  ] }) });
4874
5017
  };
4875
5018
  var settings_default = SvgSettings;
@@ -4916,10 +5059,10 @@ var getUserInitials = (session) => {
4916
5059
  // src/theme/default/components/ui/dropdown-menu.tsx
4917
5060
  import { forwardRef as forwardRef3 } from "react";
4918
5061
  import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
4919
- import { jsx as jsx83 } from "react/jsx-runtime";
5062
+ import { jsx as jsx84 } from "react/jsx-runtime";
4920
5063
  var DropdownMenu = DropdownMenuPrimitive.Root;
4921
5064
  var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
4922
- var DropdownMenuContent = forwardRef3(({ className, sideOffset = 16, ...props }, ref) => /* @__PURE__ */ jsx83(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx83(
5065
+ var DropdownMenuContent = forwardRef3(({ className, sideOffset = 16, ...props }, ref) => /* @__PURE__ */ jsx84(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx84(
4923
5066
  DropdownMenuPrimitive.Content,
4924
5067
  {
4925
5068
  ref,
@@ -4934,7 +5077,7 @@ var DropdownMenuContent = forwardRef3(({ className, sideOffset = 16, ...props },
4934
5077
  }
4935
5078
  ) }));
4936
5079
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
4937
- var DropdownMenuItem = forwardRef3(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx83(
5080
+ var DropdownMenuItem = forwardRef3(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx84(
4938
5081
  DropdownMenuPrimitive.Item,
4939
5082
  {
4940
5083
  ref,
@@ -4952,7 +5095,7 @@ var DropdownMenuItem = forwardRef3(({ className, inset, ...props }, ref) => /* @
4952
5095
  }
4953
5096
  ));
4954
5097
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
4955
- var DropdownMenuLabel = forwardRef3(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx83(
5098
+ var DropdownMenuLabel = forwardRef3(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx84(
4956
5099
  DropdownMenuPrimitive.Label,
4957
5100
  {
4958
5101
  ref,
@@ -4970,32 +5113,32 @@ DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
4970
5113
  import { forwardRef as forwardRef4 } from "react";
4971
5114
 
4972
5115
  // src/theme/default/assets/icons/user.svg
4973
- import * as React28 from "react";
4974
- import { jsx as jsx84 } from "react/jsx-runtime";
5116
+ import * as React29 from "react";
5117
+ import { jsx as jsx85 } from "react/jsx-runtime";
4975
5118
  var SvgUser = (props) => {
4976
5119
  var _a, _b;
4977
- return /* @__PURE__ */ jsx84("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx84("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2M8 7a4 4 0 1 0 8 0 4 4 0 0 0-8 0" }) });
5120
+ return /* @__PURE__ */ jsx85("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx85("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2M8 7a4 4 0 1 0 8 0 4 4 0 0 0-8 0" }) });
4978
5121
  };
4979
5122
  var user_default = SvgUser;
4980
5123
 
4981
5124
  // src/theme/default/components/ui/user-avater.tsx
4982
- import { jsx as jsx85 } from "react/jsx-runtime";
5125
+ import { jsx as jsx86 } from "react/jsx-runtime";
4983
5126
  var UserAvatar = forwardRef4(
4984
5127
  ({ initials, ...rest }, ref) => {
4985
- return /* @__PURE__ */ jsx85(
5128
+ return /* @__PURE__ */ jsx86(
4986
5129
  "button",
4987
5130
  {
4988
5131
  ref,
4989
5132
  className: "relative flex size-10 items-center justify-center overflow-hidden rounded-[999px] bg-button-primary-background-default hover:bg-button-primary-background-hover",
4990
5133
  ...rest,
4991
- children: /* @__PURE__ */ jsx85("div", { className: "relative flex size-full items-center justify-center", children: initials.avatar ? /* @__PURE__ */ jsx85(
5134
+ children: /* @__PURE__ */ jsx86("div", { className: "relative flex size-full items-center justify-center", children: initials.avatar ? /* @__PURE__ */ jsx86(
4992
5135
  "img",
4993
5136
  {
4994
5137
  src: initials.avatar,
4995
5138
  alt: initials.primary,
4996
5139
  className: "w-full object-contain"
4997
5140
  }
4998
- ) : /* @__PURE__ */ jsx85(
5141
+ ) : /* @__PURE__ */ jsx86(
4999
5142
  user_default,
5000
5143
  {
5001
5144
  size: 24,
@@ -5009,27 +5152,27 @@ var UserAvatar = forwardRef4(
5009
5152
  UserAvatar.displayName = "UserAvatar";
5010
5153
 
5011
5154
  // src/theme/default/components/ui/user-menu.tsx
5012
- import { jsx as jsx86, jsxs as jsxs40 } from "react/jsx-runtime";
5155
+ import { jsx as jsx87, jsxs as jsxs40 } from "react/jsx-runtime";
5013
5156
  var UserMenu = ({ session }) => {
5014
5157
  const config = useOryConfiguration6();
5015
5158
  const initials = getUserInitials(session);
5016
5159
  const { logoutFlow } = useClientLogout(config);
5017
5160
  return /* @__PURE__ */ jsxs40(DropdownMenu, { children: [
5018
- /* @__PURE__ */ jsx86(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx86(UserAvatar, { initials, title: "User Menu" }) }),
5161
+ /* @__PURE__ */ jsx87(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx87(UserAvatar, { initials, title: "User Menu" }) }),
5019
5162
  /* @__PURE__ */ jsxs40(DropdownMenuContent, { children: [
5020
5163
  /* @__PURE__ */ jsxs40(DropdownMenuLabel2, { className: "flex gap-3 px-5 py-4.5", children: [
5021
- /* @__PURE__ */ jsx86(UserAvatar, { disabled: true, initials }),
5164
+ /* @__PURE__ */ jsx87(UserAvatar, { disabled: true, initials }),
5022
5165
  /* @__PURE__ */ jsxs40("div", { className: "flex flex-col justify-center text-sm leading-tight", children: [
5023
- /* @__PURE__ */ jsx86("div", { className: "text-interface-foreground-default-primary leading-tight font-medium", children: initials.primary }),
5024
- initials.secondary && /* @__PURE__ */ jsx86("div", { className: "text-interface-foreground-default-tertiary leading-tight", children: initials.secondary })
5166
+ /* @__PURE__ */ jsx87("div", { className: "text-interface-foreground-default-primary leading-tight font-medium", children: initials.primary }),
5167
+ initials.secondary && /* @__PURE__ */ jsx87("div", { className: "text-interface-foreground-default-tertiary leading-tight", children: initials.secondary })
5025
5168
  ] })
5026
5169
  ] }),
5027
- /* @__PURE__ */ jsx86(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ jsxs40("a", { href: "/settings", children: [
5028
- /* @__PURE__ */ jsx86(settings_default, { size: 16 }),
5170
+ /* @__PURE__ */ jsx87(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ jsxs40("a", { href: "/settings", children: [
5171
+ /* @__PURE__ */ jsx87(settings_default, { size: 16 }),
5029
5172
  " User settings"
5030
5173
  ] }) }),
5031
- /* @__PURE__ */ jsx86(DropdownMenuItem, { asChild: true, disabled: !(logoutFlow == null ? void 0 : logoutFlow.logout_url), children: /* @__PURE__ */ jsxs40("a", { href: logoutFlow == null ? void 0 : logoutFlow.logout_url, children: [
5032
- /* @__PURE__ */ jsx86(logout_default, { size: 16 }),
5174
+ /* @__PURE__ */ jsx87(DropdownMenuItem, { asChild: true, disabled: !(logoutFlow == null ? void 0 : logoutFlow.logout_url), children: /* @__PURE__ */ jsxs40("a", { href: logoutFlow == null ? void 0 : logoutFlow.logout_url, children: [
5175
+ /* @__PURE__ */ jsx87(logout_default, { size: 16 }),
5033
5176
  " Logout"
5034
5177
  ] }) })
5035
5178
  ] })
@@ -5039,28 +5182,28 @@ var UserMenu = ({ session }) => {
5039
5182
  // src/theme/default/components/generic/page-header.tsx
5040
5183
  import { useSession } from "@ory/elements-react/client";
5041
5184
  import { useIntl as useIntl21 } from "react-intl";
5042
- import { jsx as jsx87, jsxs as jsxs41 } from "react/jsx-runtime";
5185
+ import { jsx as jsx88, jsxs as jsxs41 } from "react/jsx-runtime";
5043
5186
  var DefaultPageHeader = (_props) => {
5044
5187
  var _a;
5045
5188
  const { Card } = useComponents6();
5046
5189
  const { session } = useSession();
5047
5190
  const intl = useIntl21();
5048
- const { flow } = useOryFlow12();
5191
+ const { flow } = useOryFlow13();
5049
5192
  const config = useOryConfiguration7();
5050
5193
  const returnUrl = (_a = flow.return_to) != null ? _a : config.project.default_redirect_url;
5051
- return /* @__PURE__ */ jsx87("div", { className: "mt-16 flex max-w-screen-sm w-full md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px] flex-col gap-3 px-4", children: /* @__PURE__ */ jsxs41("div", { className: "flex flex-col gap-12", children: [
5194
+ return /* @__PURE__ */ jsx88("div", { className: "mt-16 flex max-w-screen-sm w-full md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px] flex-col gap-3 px-4", children: /* @__PURE__ */ jsxs41("div", { className: "flex flex-col gap-12", children: [
5052
5195
  /* @__PURE__ */ jsxs41("div", { className: "flex max-h-10 flex-1 justify-between gap-2 items-center", children: [
5053
- /* @__PURE__ */ jsx87(Card.Logo, {}),
5054
- /* @__PURE__ */ jsx87(UserMenu, { session })
5196
+ /* @__PURE__ */ jsx88(Card.Logo, {}),
5197
+ /* @__PURE__ */ jsx88(UserMenu, { session })
5055
5198
  ] }),
5056
- returnUrl && /* @__PURE__ */ jsx87("div", { children: /* @__PURE__ */ jsxs41(
5199
+ returnUrl && /* @__PURE__ */ jsx88("div", { children: /* @__PURE__ */ jsxs41(
5057
5200
  "a",
5058
5201
  {
5059
5202
  "data-testid": "ory/screen/settings/back-button",
5060
5203
  href: returnUrl,
5061
5204
  className: "inline-flex gap-2 items-center",
5062
5205
  children: [
5063
- /* @__PURE__ */ jsx87(arrow_left_default, {}),
5206
+ /* @__PURE__ */ jsx88(arrow_left_default, {}),
5064
5207
  " ",
5065
5208
  intl.formatMessage({
5066
5209
  id: "settings.navigation-back-button",
@@ -5073,21 +5216,21 @@ var DefaultPageHeader = (_props) => {
5073
5216
  };
5074
5217
 
5075
5218
  // src/theme/default/components/settings/settings-oidc.tsx
5076
- import { useEffect as useEffect6 } from "react";
5219
+ import { useEffect as useEffect7 } from "react";
5077
5220
  import { useFormContext as useFormContext19 } from "react-hook-form";
5078
5221
  import { useDebounceValue as useDebounceValue2 } from "usehooks-ts";
5079
5222
 
5080
5223
  // src/theme/default/assets/icons/trash.svg
5081
- import * as React29 from "react";
5082
- import { jsx as jsx88 } from "react/jsx-runtime";
5224
+ import * as React30 from "react";
5225
+ import { jsx as jsx89 } from "react/jsx-runtime";
5083
5226
  var SvgTrash = (props) => {
5084
5227
  var _a, _b;
5085
- return /* @__PURE__ */ jsx88("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx88("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 7h16m-10 4v6m4-6v6M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12M9 7V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3" }) });
5228
+ return /* @__PURE__ */ jsx89("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx89("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 7h16m-10 4v6m4-6v6M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12M9 7V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3" }) });
5086
5229
  };
5087
5230
  var trash_default = SvgTrash;
5088
5231
 
5089
5232
  // src/theme/default/components/settings/settings-oidc.tsx
5090
- import { jsx as jsx89, jsxs as jsxs42 } from "react/jsx-runtime";
5233
+ import { jsx as jsx90, jsxs as jsxs42 } from "react/jsx-runtime";
5091
5234
  function DefaultSettingsOidc({
5092
5235
  linkButtons,
5093
5236
  unlinkButtons
@@ -5095,9 +5238,9 @@ function DefaultSettingsOidc({
5095
5238
  const hasLinkButtons = linkButtons.length > 0;
5096
5239
  const hasUnlinkButtons = unlinkButtons.length > 0;
5097
5240
  return /* @__PURE__ */ jsxs42("div", { className: "flex flex-col gap-8", children: [
5098
- hasLinkButtons && /* @__PURE__ */ jsx89("div", { className: "grid items-start gap-3 grid-cols-1 sm:grid-cols-2 md:grid-cols-3", children: linkButtons.map((button) => {
5241
+ hasLinkButtons && /* @__PURE__ */ jsx90("div", { className: "grid items-start gap-3 grid-cols-1 sm:grid-cols-2 md:grid-cols-3", children: linkButtons.map((button) => {
5099
5242
  const attrs = button.attributes;
5100
- return /* @__PURE__ */ jsx89(
5243
+ return /* @__PURE__ */ jsx90(
5101
5244
  DefaultButtonSocial,
5102
5245
  {
5103
5246
  showLabel: true,
@@ -5108,12 +5251,12 @@ function DefaultSettingsOidc({
5108
5251
  attrs.value
5109
5252
  );
5110
5253
  }) }),
5111
- hasUnlinkButtons && hasLinkButtons ? /* @__PURE__ */ jsx89(DefaultHorizontalDivider, {}) : null,
5254
+ hasUnlinkButtons && hasLinkButtons ? /* @__PURE__ */ jsx90(DefaultHorizontalDivider, {}) : null,
5112
5255
  unlinkButtons.map((button) => {
5113
5256
  if (button.attributes.node_type !== "input") {
5114
5257
  return null;
5115
5258
  }
5116
- return /* @__PURE__ */ jsx89(UnlinkRow, { button }, button.attributes.value);
5259
+ return /* @__PURE__ */ jsx90(UnlinkRow, { button }, button.attributes.value);
5117
5260
  })
5118
5261
  ] });
5119
5262
  }
@@ -5130,7 +5273,7 @@ function UnlinkRow({ button }) {
5130
5273
  button.onClick();
5131
5274
  setClicked(true);
5132
5275
  };
5133
- useEffect6(() => {
5276
+ useEffect7(() => {
5134
5277
  if (!isSubmitting) {
5135
5278
  setClicked(false);
5136
5279
  }
@@ -5138,10 +5281,10 @@ function UnlinkRow({ button }) {
5138
5281
  console.log((_c = button.meta.label) == null ? void 0 : _c.context);
5139
5282
  return /* @__PURE__ */ jsxs42("div", { className: "flex justify-between", children: [
5140
5283
  /* @__PURE__ */ jsxs42("div", { className: "flex items-center gap-6", children: [
5141
- Logo ? /* @__PURE__ */ jsx89(Logo, { size: 32 }) : /* @__PURE__ */ jsx89(GenericLogo, { label: provider.slice(0, 1) }),
5142
- /* @__PURE__ */ jsx89("p", { className: "text-sm font-medium text-interface-foreground-default-secondary", children: provider })
5284
+ Logo ? /* @__PURE__ */ jsx90(Logo, { size: 32 }) : /* @__PURE__ */ jsx90(GenericLogo, { label: provider.slice(0, 1) }),
5285
+ /* @__PURE__ */ jsx90("p", { className: "text-sm font-medium text-interface-foreground-default-secondary", children: provider })
5143
5286
  ] }),
5144
- /* @__PURE__ */ jsx89(
5287
+ /* @__PURE__ */ jsx90(
5145
5288
  "button",
5146
5289
  {
5147
5290
  ...omitInputAttributes(attrs),
@@ -5150,7 +5293,7 @@ function UnlinkRow({ button }) {
5150
5293
  disabled: isSubmitting,
5151
5294
  className: "relative",
5152
5295
  title: `Unlink ${provider}`,
5153
- children: clicked ? /* @__PURE__ */ jsx89(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx89(
5296
+ children: clicked ? /* @__PURE__ */ jsx90(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx90(
5154
5297
  trash_default,
5155
5298
  {
5156
5299
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -5165,7 +5308,7 @@ function UnlinkRow({ button }) {
5165
5308
  // src/theme/default/components/settings/settings-passkey.tsx
5166
5309
  import { useComponents as useComponents7 } from "@ory/elements-react";
5167
5310
  import { useFormContext as useFormContext20 } from "react-hook-form";
5168
- import { jsx as jsx90, jsxs as jsxs43 } from "react/jsx-runtime";
5311
+ import { jsx as jsx91, jsxs as jsxs43 } from "react/jsx-runtime";
5169
5312
  function DefaultSettingsPasskey({
5170
5313
  triggerButton,
5171
5314
  removeButtons
@@ -5176,7 +5319,7 @@ function DefaultSettingsPasskey({
5176
5319
  const { Node: Node2 } = useComponents7();
5177
5320
  const hasRemoveButtons = removeButtons.length > 0;
5178
5321
  return /* @__PURE__ */ jsxs43("div", { className: "flex flex-col gap-8", children: [
5179
- /* @__PURE__ */ jsx90("div", { className: "flex max-w-[60%] items-end gap-3", children: triggerButton && /* @__PURE__ */ jsx90(
5322
+ /* @__PURE__ */ jsx91("div", { className: "flex max-w-[60%] items-end gap-3", children: triggerButton && /* @__PURE__ */ jsx91(
5180
5323
  Node2.Button,
5181
5324
  {
5182
5325
  node: triggerButton,
@@ -5185,8 +5328,8 @@ function DefaultSettingsPasskey({
5185
5328
  }
5186
5329
  ) }),
5187
5330
  hasRemoveButtons ? /* @__PURE__ */ jsxs43("div", { className: "flex flex-col gap-8", children: [
5188
- /* @__PURE__ */ jsx90(DefaultHorizontalDivider, {}),
5189
- /* @__PURE__ */ jsx90("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
5331
+ /* @__PURE__ */ jsx91(DefaultHorizontalDivider, {}),
5332
+ /* @__PURE__ */ jsx91("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
5190
5333
  var _a, _b;
5191
5334
  const context = (_b = (_a = node.meta.label) == null ? void 0 : _a.context) != null ? _b : {};
5192
5335
  const addedAt = "added_at" in context ? context.added_at : null;
@@ -5198,7 +5341,7 @@ function DefaultSettingsPasskey({
5198
5341
  className: "flex justify-between gap-6 md:items-center",
5199
5342
  children: [
5200
5343
  /* @__PURE__ */ jsxs43("div", { className: "flex gap-2 items-center flex-1 truncate", children: [
5201
- /* @__PURE__ */ jsx90(
5344
+ /* @__PURE__ */ jsx91(
5202
5345
  passkey_default,
5203
5346
  {
5204
5347
  size: 32,
@@ -5207,15 +5350,15 @@ function DefaultSettingsPasskey({
5207
5350
  ),
5208
5351
  /* @__PURE__ */ jsxs43("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4 truncate", children: [
5209
5352
  /* @__PURE__ */ jsxs43("div", { className: "flex-1 flex-col truncate", children: [
5210
- /* @__PURE__ */ jsx90("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
5211
- /* @__PURE__ */ jsx90("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
5353
+ /* @__PURE__ */ jsx91("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
5354
+ /* @__PURE__ */ jsx91("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
5212
5355
  ] }),
5213
- addedAt && /* @__PURE__ */ jsx90("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
5356
+ addedAt && /* @__PURE__ */ jsx91("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
5214
5357
  dateStyle: "long"
5215
5358
  }).format(new Date(addedAt)) })
5216
5359
  ] })
5217
5360
  ] }),
5218
- /* @__PURE__ */ jsx90(
5361
+ /* @__PURE__ */ jsx91(
5219
5362
  "button",
5220
5363
  {
5221
5364
  ...node.attributes,
@@ -5223,7 +5366,7 @@ function DefaultSettingsPasskey({
5223
5366
  onClick: node.onClick,
5224
5367
  disabled: isSubmitting,
5225
5368
  className: "relative",
5226
- children: isSubmitting ? /* @__PURE__ */ jsx90(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx90(
5369
+ children: isSubmitting ? /* @__PURE__ */ jsx91(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx91(
5227
5370
  trash_default,
5228
5371
  {
5229
5372
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -5242,26 +5385,26 @@ function DefaultSettingsPasskey({
5242
5385
  }
5243
5386
 
5244
5387
  // src/theme/default/assets/icons/download.svg
5245
- import * as React30 from "react";
5246
- import { jsx as jsx91 } from "react/jsx-runtime";
5388
+ import * as React31 from "react";
5389
+ import { jsx as jsx92 } from "react/jsx-runtime";
5247
5390
  var SvgDownload = (props) => {
5248
5391
  var _a, _b;
5249
- return /* @__PURE__ */ jsx91("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ jsx91("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5m0 0 5-5m-5 5V4" }) });
5392
+ return /* @__PURE__ */ jsx92("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ jsx92("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5m0 0 5-5m-5 5V4" }) });
5250
5393
  };
5251
5394
  var download_default = SvgDownload;
5252
5395
 
5253
5396
  // src/theme/default/assets/icons/refresh.svg
5254
- import * as React31 from "react";
5255
- import { jsx as jsx92 } from "react/jsx-runtime";
5397
+ import * as React32 from "react";
5398
+ import { jsx as jsx93 } from "react/jsx-runtime";
5256
5399
  var SvgRefresh = (props) => {
5257
5400
  var _a, _b;
5258
- return /* @__PURE__ */ jsx92("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ jsx92("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4m-4 4a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" }) });
5401
+ return /* @__PURE__ */ jsx93("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ jsx93("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4m-4 4a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" }) });
5259
5402
  };
5260
5403
  var refresh_default = SvgRefresh;
5261
5404
 
5262
5405
  // src/theme/default/components/settings/settings-recovery-codes.tsx
5263
5406
  import { useFormContext as useFormContext21 } from "react-hook-form";
5264
- import { Fragment as Fragment12, jsx as jsx93, jsxs as jsxs44 } from "react/jsx-runtime";
5407
+ import { Fragment as Fragment12, jsx as jsx94, jsxs as jsxs44 } from "react/jsx-runtime";
5265
5408
  function DefaultSettingsRecoveryCodes({
5266
5409
  codes,
5267
5410
  regnerateButton,
@@ -5284,11 +5427,11 @@ function DefaultSettingsRecoveryCodes({
5284
5427
  };
5285
5428
  const hasCodes = codes.length >= 1;
5286
5429
  return /* @__PURE__ */ jsxs44("div", { className: "flex flex-col gap-8", children: [
5287
- codes.length > 0 && /* @__PURE__ */ jsx93(DefaultHorizontalDivider, {}),
5430
+ codes.length > 0 && /* @__PURE__ */ jsx94(DefaultHorizontalDivider, {}),
5288
5431
  /* @__PURE__ */ jsxs44("div", { className: "flex gap-4 justify-between", children: [
5289
- /* @__PURE__ */ jsx93("span", { className: "text-interface-foreground-default-tertiary", children: revealButton && "Reveal recovery codes" }),
5432
+ /* @__PURE__ */ jsx94("span", { className: "text-interface-foreground-default-tertiary", children: revealButton && "Reveal recovery codes" }),
5290
5433
  /* @__PURE__ */ jsxs44("div", { className: "flex gap-2", children: [
5291
- regnerateButton && codes.length > 0 && /* @__PURE__ */ jsx93(
5434
+ regnerateButton && codes.length > 0 && /* @__PURE__ */ jsx94(
5292
5435
  "button",
5293
5436
  {
5294
5437
  ...regnerateButton.attributes,
@@ -5297,7 +5440,7 @@ function DefaultSettingsRecoveryCodes({
5297
5440
  onClick: onRegenerate,
5298
5441
  disabled: isSubmitting,
5299
5442
  "data-loading": isSubmitting,
5300
- children: /* @__PURE__ */ jsx93(
5443
+ children: /* @__PURE__ */ jsx94(
5301
5444
  refresh_default,
5302
5445
  {
5303
5446
  size: 24,
@@ -5306,7 +5449,7 @@ function DefaultSettingsRecoveryCodes({
5306
5449
  )
5307
5450
  }
5308
5451
  ),
5309
- revealButton && /* @__PURE__ */ jsx93(Fragment12, { children: /* @__PURE__ */ jsx93(
5452
+ revealButton && /* @__PURE__ */ jsx94(Fragment12, { children: /* @__PURE__ */ jsx94(
5310
5453
  "button",
5311
5454
  {
5312
5455
  ...revealButton.attributes,
@@ -5314,7 +5457,7 @@ function DefaultSettingsRecoveryCodes({
5314
5457
  className: "ml-auto",
5315
5458
  onClick: onReveal,
5316
5459
  title: "Reveal recovery codes",
5317
- children: /* @__PURE__ */ jsx93(
5460
+ children: /* @__PURE__ */ jsx94(
5318
5461
  eye_default,
5319
5462
  {
5320
5463
  size: 24,
@@ -5323,7 +5466,7 @@ function DefaultSettingsRecoveryCodes({
5323
5466
  )
5324
5467
  }
5325
5468
  ) }),
5326
- hasCodes && /* @__PURE__ */ jsx93(
5469
+ hasCodes && /* @__PURE__ */ jsx94(
5327
5470
  "button",
5328
5471
  {
5329
5472
  onClick: onDownload,
@@ -5331,7 +5474,7 @@ function DefaultSettingsRecoveryCodes({
5331
5474
  className: "ml-auto",
5332
5475
  "data-testid": "ory/screen/settings/group/recovery_code/download",
5333
5476
  title: "Download recovery codes",
5334
- children: /* @__PURE__ */ jsx93(
5477
+ children: /* @__PURE__ */ jsx94(
5335
5478
  download_default,
5336
5479
  {
5337
5480
  size: 24,
@@ -5342,12 +5485,12 @@ function DefaultSettingsRecoveryCodes({
5342
5485
  )
5343
5486
  ] })
5344
5487
  ] }),
5345
- hasCodes ? /* @__PURE__ */ jsx93("div", { className: "rounded-general p-6 bg-interface-background-default-secondary border-interface-border-default-primary", children: /* @__PURE__ */ jsx93(
5488
+ hasCodes ? /* @__PURE__ */ jsx94("div", { className: "rounded-general p-6 bg-interface-background-default-secondary border-interface-border-default-primary", children: /* @__PURE__ */ jsx94(
5346
5489
  "div",
5347
5490
  {
5348
5491
  className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 flex-wrap gap-4 text-sm text-interface-foreground-default-primary",
5349
5492
  "data-testid": "ory/screen/settings/group/recovery_code/codes",
5350
- children: codes.map((code) => /* @__PURE__ */ jsx93("p", { children: code }, code))
5493
+ children: codes.map((code) => /* @__PURE__ */ jsx94("p", { children: code }, code))
5351
5494
  }
5352
5495
  ) }) : null
5353
5496
  ] });
@@ -5357,17 +5500,17 @@ function DefaultSettingsRecoveryCodes({
5357
5500
  import { useComponents as useComponents8 } from "@ory/elements-react";
5358
5501
 
5359
5502
  // src/theme/default/assets/icons/qrcode.svg
5360
- import * as React32 from "react";
5361
- import { jsx as jsx94 } from "react/jsx-runtime";
5503
+ import * as React33 from "react";
5504
+ import { jsx as jsx95 } from "react/jsx-runtime";
5362
5505
  var SvgQrcode = (props) => {
5363
5506
  var _a, _b;
5364
- return /* @__PURE__ */ jsx94("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ jsx94("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9.333 22.667v.013m0-13.346v.013m13.333-.013v.013m0 9.32h-4v4m8-4v.013m-8 7.987h4m0-4h4v4m-21.333-20a1.333 1.333 0 0 1 1.333-1.333H12a1.333 1.333 0 0 1 1.333 1.333V12A1.334 1.334 0 0 1 12 13.334H6.666A1.334 1.334 0 0 1 5.333 12zm13.333 0A1.333 1.333 0 0 1 20 5.334h5.333a1.333 1.333 0 0 1 1.333 1.333V12a1.333 1.333 0 0 1-1.333 1.334H20A1.333 1.333 0 0 1 18.666 12zM5.333 20a1.333 1.333 0 0 1 1.333-1.333H12A1.333 1.333 0 0 1 13.333 20v5.334A1.333 1.333 0 0 1 12 26.667H6.666a1.333 1.333 0 0 1-1.333-1.334z" }) });
5507
+ return /* @__PURE__ */ jsx95("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ jsx95("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9.333 22.667v.013m0-13.346v.013m13.333-.013v.013m0 9.32h-4v4m8-4v.013m-8 7.987h4m0-4h4v4m-21.333-20a1.333 1.333 0 0 1 1.333-1.333H12a1.333 1.333 0 0 1 1.333 1.333V12A1.334 1.334 0 0 1 12 13.334H6.666A1.334 1.334 0 0 1 5.333 12zm13.333 0A1.333 1.333 0 0 1 20 5.334h5.333a1.333 1.333 0 0 1 1.333 1.333V12a1.333 1.333 0 0 1-1.333 1.334H20A1.333 1.333 0 0 1 18.666 12zM5.333 20a1.333 1.333 0 0 1 1.333-1.333H12A1.333 1.333 0 0 1 13.333 20v5.334A1.333 1.333 0 0 1 12 26.667H6.666a1.333 1.333 0 0 1-1.333-1.334z" }) });
5365
5508
  };
5366
5509
  var qrcode_default = SvgQrcode;
5367
5510
 
5368
5511
  // src/theme/default/components/settings/settings-totp.tsx
5369
5512
  import { useFormContext as useFormContext22 } from "react-hook-form";
5370
- import { jsx as jsx95, jsxs as jsxs45 } from "react/jsx-runtime";
5513
+ import { jsx as jsx96, jsxs as jsxs45 } from "react/jsx-runtime";
5371
5514
  function DefaultSettingsTotp({
5372
5515
  totpImage,
5373
5516
  totpInput,
@@ -5388,18 +5531,18 @@ function DefaultSettingsTotp({
5388
5531
  ...buttonAttrs
5389
5532
  } = totpUnlink.attributes;
5390
5533
  return /* @__PURE__ */ jsxs45("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
5391
- /* @__PURE__ */ jsx95("div", { className: "col-span-full", children: /* @__PURE__ */ jsx95(Card.Divider, {}) }),
5534
+ /* @__PURE__ */ jsx96("div", { className: "col-span-full", children: /* @__PURE__ */ jsx96(Card.Divider, {}) }),
5392
5535
  /* @__PURE__ */ jsxs45("div", { className: "col-span-full flex items-center gap-6", children: [
5393
- /* @__PURE__ */ jsx95("div", { className: "aspect-square size-8 ", children: /* @__PURE__ */ jsx95(qrcode_default, { size: 32 }) }),
5394
- /* @__PURE__ */ jsx95("div", { className: "mr-auto flex flex-col", children: /* @__PURE__ */ jsx95("p", { className: "text-sm font-medium text-interface-foreground-default-primary", children: "Authenticator app" }) }),
5395
- /* @__PURE__ */ jsx95(
5536
+ /* @__PURE__ */ jsx96("div", { className: "aspect-square size-8 ", children: /* @__PURE__ */ jsx96(qrcode_default, { size: 32 }) }),
5537
+ /* @__PURE__ */ jsx96("div", { className: "mr-auto flex flex-col", children: /* @__PURE__ */ jsx96("p", { className: "text-sm font-medium text-interface-foreground-default-primary", children: "Authenticator app" }) }),
5538
+ /* @__PURE__ */ jsx96(
5396
5539
  "button",
5397
5540
  {
5398
5541
  type: type === "button" ? "button" : "submit",
5399
5542
  ...buttonAttrs,
5400
5543
  onClick: onUnlink,
5401
5544
  disabled: isSubmitting,
5402
- children: isSubmitting ? /* @__PURE__ */ jsx95(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx95(
5545
+ children: isSubmitting ? /* @__PURE__ */ jsx96(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx96(
5403
5546
  trash_default,
5404
5547
  {
5405
5548
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -5413,8 +5556,8 @@ function DefaultSettingsTotp({
5413
5556
  }
5414
5557
  if (totpImage && totpSecret && totpInput) {
5415
5558
  return /* @__PURE__ */ jsxs45("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
5416
- /* @__PURE__ */ jsx95("div", { className: "col-span-full", children: /* @__PURE__ */ jsx95(DefaultHorizontalDivider, {}) }),
5417
- /* @__PURE__ */ jsx95("div", { className: "flex justify-center rounded-cards bg-interface-background-default-secondary p-8", children: /* @__PURE__ */ jsx95("div", { className: "aspect-square h-44 rounded bg-[white]", children: /* @__PURE__ */ jsx95("div", { className: "-m-3 antialiased mix-blend-multiply", children: /* @__PURE__ */ jsx95(
5559
+ /* @__PURE__ */ jsx96("div", { className: "col-span-full", children: /* @__PURE__ */ jsx96(DefaultHorizontalDivider, {}) }),
5560
+ /* @__PURE__ */ jsx96("div", { className: "flex justify-center rounded-cards bg-interface-background-default-secondary p-8", children: /* @__PURE__ */ jsx96("div", { className: "aspect-square h-44 rounded bg-[white]", children: /* @__PURE__ */ jsx96("div", { className: "-m-3 antialiased mix-blend-multiply", children: /* @__PURE__ */ jsx96(
5418
5561
  Node2.Image,
5419
5562
  {
5420
5563
  node: totpImage,
@@ -5424,12 +5567,12 @@ function DefaultSettingsTotp({
5424
5567
  }
5425
5568
  ) }) }) }),
5426
5569
  /* @__PURE__ */ jsxs45("div", { className: "flex flex-col gap-6", children: [
5427
- /* @__PURE__ */ jsx95(
5570
+ /* @__PURE__ */ jsx96(
5428
5571
  Node2.Label,
5429
5572
  {
5430
5573
  node: totpSecret,
5431
5574
  attributes: totpSecret.attributes,
5432
- children: /* @__PURE__ */ jsx95("div", { className: "relative flex justify-stretch max-w-[488px]", children: /* @__PURE__ */ jsx95(
5575
+ children: /* @__PURE__ */ jsx96("div", { className: "relative flex justify-stretch max-w-[488px]", children: /* @__PURE__ */ jsx96(
5433
5576
  "input",
5434
5577
  {
5435
5578
  disabled: true,
@@ -5442,12 +5585,12 @@ function DefaultSettingsTotp({
5442
5585
  ) })
5443
5586
  }
5444
5587
  ),
5445
- /* @__PURE__ */ jsx95(
5588
+ /* @__PURE__ */ jsx96(
5446
5589
  Node2.Label,
5447
5590
  {
5448
5591
  attributes: totpInput.attributes,
5449
5592
  node: totpInput,
5450
- children: /* @__PURE__ */ jsx95(
5593
+ children: /* @__PURE__ */ jsx96(
5451
5594
  Node2.CodeInput,
5452
5595
  {
5453
5596
  node: totpInput,
@@ -5465,17 +5608,17 @@ function DefaultSettingsTotp({
5465
5608
  import { useComponents as useComponents9 } from "@ory/elements-react";
5466
5609
 
5467
5610
  // src/theme/default/assets/icons/key.svg
5468
- import * as React33 from "react";
5469
- import { jsx as jsx96 } from "react/jsx-runtime";
5611
+ import * as React34 from "react";
5612
+ import { jsx as jsx97 } from "react/jsx-runtime";
5470
5613
  var SvgKey = (props) => {
5471
5614
  var _a, _b;
5472
- return /* @__PURE__ */ jsx96("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx96("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M20 12h.013m2.06-6.876 4.803 4.803a3.836 3.836 0 0 1 0 5.425l-3.524 3.524a3.835 3.835 0 0 1-5.425 0l-.402-.401-8.744 8.744a2.67 2.67 0 0 1-1.652.77L6.896 28H5.333a1.334 1.334 0 0 1-1.324-1.177L4 26.667v-1.563c0-.626.22-1.232.623-1.712l.158-.173.552-.552H8V20h2.667v-2.667l2.858-2.858-.401-.402a3.835 3.835 0 0 1 0-5.425l3.524-3.524a3.835 3.835 0 0 1 5.425 0" }) });
5615
+ return /* @__PURE__ */ jsx97("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx97("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M20 12h.013m2.06-6.876 4.803 4.803a3.836 3.836 0 0 1 0 5.425l-3.524 3.524a3.835 3.835 0 0 1-5.425 0l-.402-.401-8.744 8.744a2.67 2.67 0 0 1-1.652.77L6.896 28H5.333a1.334 1.334 0 0 1-1.324-1.177L4 26.667v-1.563c0-.626.22-1.232.623-1.712l.158-.173.552-.552H8V20h2.667v-2.667l2.858-2.858-.401-.402a3.835 3.835 0 0 1 0-5.425l3.524-3.524a3.835 3.835 0 0 1 5.425 0" }) });
5473
5616
  };
5474
5617
  var key_default = SvgKey;
5475
5618
 
5476
5619
  // src/theme/default/components/settings/settings-webauthn.tsx
5477
5620
  import { useFormContext as useFormContext23 } from "react-hook-form";
5478
- import { jsx as jsx97, jsxs as jsxs46 } from "react/jsx-runtime";
5621
+ import { jsx as jsx98, jsxs as jsxs46 } from "react/jsx-runtime";
5479
5622
  function DefaultSettingsWebauthn({
5480
5623
  nameInput,
5481
5624
  triggerButton,
@@ -5488,12 +5631,12 @@ function DefaultSettingsWebauthn({
5488
5631
  const hasRemoveButtons = removeButtons.length > 0;
5489
5632
  return /* @__PURE__ */ jsxs46("div", { className: "flex flex-col gap-8", children: [
5490
5633
  /* @__PURE__ */ jsxs46("div", { className: "flex md:max-w-96 sm:items-end gap-3 flex-col sm:flex-row", children: [
5491
- /* @__PURE__ */ jsx97("div", { className: "flex-1", children: /* @__PURE__ */ jsx97(
5634
+ /* @__PURE__ */ jsx98("div", { className: "flex-1", children: /* @__PURE__ */ jsx98(
5492
5635
  Node2.Label,
5493
5636
  {
5494
5637
  node: nameInput,
5495
5638
  attributes: nameInput.attributes,
5496
- children: /* @__PURE__ */ jsx97(
5639
+ children: /* @__PURE__ */ jsx98(
5497
5640
  Node2.Input,
5498
5641
  {
5499
5642
  node: nameInput,
@@ -5502,7 +5645,7 @@ function DefaultSettingsWebauthn({
5502
5645
  )
5503
5646
  }
5504
5647
  ) }),
5505
- triggerButton ? /* @__PURE__ */ jsx97(
5648
+ triggerButton ? /* @__PURE__ */ jsx98(
5506
5649
  Node2.Button,
5507
5650
  {
5508
5651
  node: triggerButton,
@@ -5512,8 +5655,8 @@ function DefaultSettingsWebauthn({
5512
5655
  ) : null
5513
5656
  ] }),
5514
5657
  hasRemoveButtons ? /* @__PURE__ */ jsxs46("div", { className: "flex flex-col gap-8", children: [
5515
- /* @__PURE__ */ jsx97(Card.Divider, {}),
5516
- /* @__PURE__ */ jsx97("div", { className: "flex flex-col gap-4", children: removeButtons.map((node, i) => {
5658
+ /* @__PURE__ */ jsx98(Card.Divider, {}),
5659
+ /* @__PURE__ */ jsx98("div", { className: "flex flex-col gap-4", children: removeButtons.map((node, i) => {
5517
5660
  var _a, _b;
5518
5661
  const context = (_b = (_a = node.meta.label) == null ? void 0 : _a.context) != null ? _b : {};
5519
5662
  const addedAt = "added_at" in context ? context.added_at : null;
@@ -5525,7 +5668,7 @@ function DefaultSettingsWebauthn({
5525
5668
  className: "flex justify-between gap-6 md:items-center",
5526
5669
  children: [
5527
5670
  /* @__PURE__ */ jsxs46("div", { className: "flex gap-2 items-center flex-1 truncate", children: [
5528
- /* @__PURE__ */ jsx97(
5671
+ /* @__PURE__ */ jsx98(
5529
5672
  key_default,
5530
5673
  {
5531
5674
  size: 32,
@@ -5534,15 +5677,15 @@ function DefaultSettingsWebauthn({
5534
5677
  ),
5535
5678
  /* @__PURE__ */ jsxs46("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4 truncate", children: [
5536
5679
  /* @__PURE__ */ jsxs46("div", { className: "flex-1 flex-col truncate", children: [
5537
- /* @__PURE__ */ jsx97("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
5538
- /* @__PURE__ */ jsx97("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
5680
+ /* @__PURE__ */ jsx98("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
5681
+ /* @__PURE__ */ jsx98("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
5539
5682
  ] }),
5540
- addedAt && /* @__PURE__ */ jsx97("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
5683
+ addedAt && /* @__PURE__ */ jsx98("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
5541
5684
  dateStyle: "long"
5542
5685
  }).format(new Date(addedAt)) })
5543
5686
  ] })
5544
5687
  ] }),
5545
- /* @__PURE__ */ jsx97(
5688
+ /* @__PURE__ */ jsx98(
5546
5689
  "button",
5547
5690
  {
5548
5691
  ...node.attributes,
@@ -5550,7 +5693,7 @@ function DefaultSettingsWebauthn({
5550
5693
  onClick: node.onClick,
5551
5694
  disabled: isSubmitting,
5552
5695
  className: "relative",
5553
- children: isSubmitting ? /* @__PURE__ */ jsx97(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx97(
5696
+ children: isSubmitting ? /* @__PURE__ */ jsx98(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx98(
5554
5697
  trash_default,
5555
5698
  {
5556
5699
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -5569,24 +5712,24 @@ function DefaultSettingsWebauthn({
5569
5712
  }
5570
5713
 
5571
5714
  // src/theme/default/components/card/auth-method-list-container.tsx
5572
- import { jsx as jsx98 } from "react/jsx-runtime";
5715
+ import { jsx as jsx99 } from "react/jsx-runtime";
5573
5716
  function DefaultAuthMethodListContainer({
5574
5717
  children
5575
5718
  }) {
5576
- return /* @__PURE__ */ jsx98("div", { className: "grid grid-cols-1 gap-2", children });
5719
+ return /* @__PURE__ */ jsx99("div", { className: "grid grid-cols-1 gap-2", children });
5577
5720
  }
5578
5721
 
5579
5722
  // src/theme/default/components/form/captcha.tsx
5580
5723
  import { isUiNodeInputAttributes as isUiNodeInputAttributes9 } from "@ory/client-fetch";
5581
5724
  import { Turnstile } from "@marsidev/react-turnstile";
5582
- import { useEffect as useEffect7, useRef as useRef4 } from "react";
5725
+ import { useEffect as useEffect8, useRef as useRef4 } from "react";
5583
5726
  import { useFormContext as useFormContext24 } from "react-hook-form";
5584
- import { jsx as jsx99 } from "react/jsx-runtime";
5727
+ import { jsx as jsx100 } from "react/jsx-runtime";
5585
5728
  var DefaultCaptcha = ({ node }) => {
5586
5729
  const { setValue, formState } = useFormContext24();
5587
5730
  const ref = useRef4();
5588
5731
  const prevSubmitCount = useRef4(formState.submitCount);
5589
- useEffect7(() => {
5732
+ useEffect8(() => {
5590
5733
  if (formState.submitCount > prevSubmitCount.current && formState.isSubmitSuccessful) {
5591
5734
  prevSubmitCount.current = formState.submitCount;
5592
5735
  setTimeout(() => {
@@ -5600,10 +5743,10 @@ var DefaultCaptcha = ({ node }) => {
5600
5743
  return null;
5601
5744
  }
5602
5745
  if (node.attributes.name === "transient_payload.captcha_turnstile_response") {
5603
- return /* @__PURE__ */ jsx99(DefaultInput, { node, attributes: node.attributes }, 1);
5746
+ return /* @__PURE__ */ jsx100(DefaultInput, { node, attributes: node.attributes }, 1);
5604
5747
  } else if (node.attributes.name === "captcha_turnstile_options") {
5605
5748
  const options = JSON.parse(node.attributes.value);
5606
- return /* @__PURE__ */ jsx99(
5749
+ return /* @__PURE__ */ jsx100(
5607
5750
  Turnstile,
5608
5751
  {
5609
5752
  ref,
@@ -5629,36 +5772,36 @@ var DefaultCaptcha = ({ node }) => {
5629
5772
  };
5630
5773
 
5631
5774
  // src/theme/default/assets/icons/personal.svg
5632
- import * as React34 from "react";
5633
- import { jsx as jsx100 } from "react/jsx-runtime";
5775
+ import * as React35 from "react";
5776
+ import { jsx as jsx101 } from "react/jsx-runtime";
5634
5777
  var SvgPersonal = (props) => {
5635
5778
  var _a, _b;
5636
- return /* @__PURE__ */ jsx100("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx100("path", { stroke: "#0F172A", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 14v-1.333A2.667 2.667 0 0 1 6.667 10h1m5.8 3.467 1.2 1.2m-9.334-10a2.667 2.667 0 1 0 5.334 0 2.667 2.667 0 0 0-5.334 0M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }) });
5779
+ return /* @__PURE__ */ jsx101("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx101("path", { stroke: "#0F172A", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 14v-1.333A2.667 2.667 0 0 1 6.667 10h1m5.8 3.467 1.2 1.2m-9.334-10a2.667 2.667 0 1 0 5.334 0 2.667 2.667 0 0 0-5.334 0M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }) });
5637
5780
  };
5638
5781
  var personal_default = SvgPersonal;
5639
5782
 
5640
5783
  // src/theme/default/assets/icons/message.svg
5641
- import * as React35 from "react";
5642
- import { jsx as jsx101 } from "react/jsx-runtime";
5784
+ import * as React36 from "react";
5785
+ import { jsx as jsx102 } from "react/jsx-runtime";
5643
5786
  var SvgMessage = (props) => {
5644
5787
  var _a, _b;
5645
- return /* @__PURE__ */ jsx101("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx101("path", { stroke: "#000", strokeLinecap: "round", strokeLinejoin: "round", d: "M3 7.325a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2m-18 0v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-10m-18 0 9 6 9-6" }) });
5788
+ return /* @__PURE__ */ jsx102("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx102("path", { stroke: "#000", strokeLinecap: "round", strokeLinejoin: "round", d: "M3 7.325a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2m-18 0v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-10m-18 0 9 6 9-6" }) });
5646
5789
  };
5647
5790
  var message_default = SvgMessage;
5648
5791
 
5649
5792
  // src/theme/default/assets/icons/phone.svg
5650
- import * as React36 from "react";
5651
- import { jsx as jsx102 } from "react/jsx-runtime";
5793
+ import * as React37 from "react";
5794
+ import { jsx as jsx103 } from "react/jsx-runtime";
5652
5795
  var SvgPhone = (props) => {
5653
5796
  var _a, _b;
5654
- return /* @__PURE__ */ jsx102("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx102("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M5 4.325h4l2 5-2.5 1.5a11 11 0 0 0 5 5l1.5-2.5 5 2v4a2 2 0 0 1-2 2 16 16 0 0 1-15-15 2 2 0 0 1 2-2" }) });
5797
+ return /* @__PURE__ */ jsx103("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx103("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M5 4.325h4l2 5-2.5 1.5a11 11 0 0 0 5 5l1.5-2.5 5 2v4a2 2 0 0 1-2 2 16 16 0 0 1-15-15 2 2 0 0 1 2-2" }) });
5655
5798
  };
5656
5799
  var phone_default = SvgPhone;
5657
5800
 
5658
5801
  // src/theme/default/components/form/consent-scope-checkbox.tsx
5659
5802
  import { useIntl as useIntl22 } from "react-intl";
5660
5803
  import * as Switch from "@radix-ui/react-switch";
5661
- import { jsx as jsx103 } from "react/jsx-runtime";
5804
+ import { jsx as jsx104 } from "react/jsx-runtime";
5662
5805
  var ScopeIcons = {
5663
5806
  openid: personal_default,
5664
5807
  offline_access: personal_default,
@@ -5673,7 +5816,7 @@ function DefaultConsentScopeCheckbox({
5673
5816
  var _a;
5674
5817
  const intl = useIntl22();
5675
5818
  const Icon = (_a = ScopeIcons[attributes.value]) != null ? _a : personal_default;
5676
- return /* @__PURE__ */ jsx103(
5819
+ return /* @__PURE__ */ jsx104(
5677
5820
  ListItem,
5678
5821
  {
5679
5822
  as: "label",
@@ -5688,7 +5831,7 @@ function DefaultConsentScopeCheckbox({
5688
5831
  }),
5689
5832
  className: "col-span-2",
5690
5833
  "data-testid": "ory/screen/consent/scope-checkbox-label",
5691
- children: /* @__PURE__ */ jsx103(
5834
+ children: /* @__PURE__ */ jsx104(
5692
5835
  Switch.Root,
5693
5836
  {
5694
5837
  className: "relative w-7 h-4 bg-toggle-background-default rounded-identifier border-toggle-border-default border p-[3px] data-[state=checked]:bg-toggle-background-checked transition-all data-[state=checked]:border-toggle-border-checked",
@@ -5696,7 +5839,7 @@ function DefaultConsentScopeCheckbox({
5696
5839
  value: attributes.value,
5697
5840
  onCheckedChange,
5698
5841
  defaultChecked: true,
5699
- children: /* @__PURE__ */ jsx103(Switch.Thumb, { className: "size-2 block bg-toggle-foreground-default rounded-identifier data-[state=checked]:bg-toggle-foreground-checked transition-all data-[state=checked]:translate-x-3" })
5842
+ children: /* @__PURE__ */ jsx104(Switch.Thumb, { className: "size-2 block bg-toggle-foreground-default rounded-identifier data-[state=checked]:bg-toggle-foreground-checked transition-all data-[state=checked]:translate-x-3" })
5700
5843
  }
5701
5844
  )
5702
5845
  }
@@ -5764,7 +5907,7 @@ import {
5764
5907
  } from "@ory/elements-react";
5765
5908
  import { useMemo as useMemo2 } from "react";
5766
5909
  import { FormattedMessage } from "react-intl";
5767
- import { jsx as jsx104, jsxs as jsxs47 } from "react/jsx-runtime";
5910
+ import { jsx as jsx105, jsxs as jsxs47 } from "react/jsx-runtime";
5768
5911
  function isOAuth2Error(error) {
5769
5912
  return !!error && typeof error === "object" && "error" in error && "error_description" in error;
5770
5913
  }
@@ -5817,47 +5960,47 @@ function Error2({
5817
5960
  const Divider = (_d = (_c = Components == null ? void 0 : Components.Card) == null ? void 0 : _c.Divider) != null ? _d : DefaultHorizontalDivider;
5818
5961
  const parsed = useStandardize(error);
5819
5962
  const description = errorDescriptions[Math.floor(parsed.code / 100)];
5820
- return /* @__PURE__ */ jsx104(OryConfigurationProvider2, { sdk: config.sdk, project: config.project, children: /* @__PURE__ */ jsx104(
5963
+ return /* @__PURE__ */ jsx105(OryConfigurationProvider2, { sdk: config.sdk, project: config.project, children: /* @__PURE__ */ jsx105(
5821
5964
  IntlProvider,
5822
5965
  {
5823
5966
  locale: (_f = (_e = config.intl) == null ? void 0 : _e.locale) != null ? _f : "en",
5824
5967
  customTranslations: (_g = config.intl) == null ? void 0 : _g.customTranslations,
5825
- children: /* @__PURE__ */ jsx104(Card, { children: /* @__PURE__ */ jsxs47(
5968
+ children: /* @__PURE__ */ jsx105(Card, { children: /* @__PURE__ */ jsxs47(
5826
5969
  "div",
5827
5970
  {
5828
5971
  className: "flex flex-col gap-6 antialiased",
5829
5972
  "data-testid": "ory/screen/error",
5830
5973
  children: [
5831
5974
  /* @__PURE__ */ jsxs47("header", { className: "flex flex-col gap-8 antialiased", children: [
5832
- /* @__PURE__ */ jsx104(ErrorLogo, {}),
5975
+ /* @__PURE__ */ jsx105(ErrorLogo, {}),
5833
5976
  /* @__PURE__ */ jsxs47("div", { className: "flex flex-col gap-2", children: [
5834
- /* @__PURE__ */ jsx104("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx104(FormattedMessage, { id: "error.title.what-happened" }) }),
5835
- /* @__PURE__ */ jsx104("p", { className: "leading-normal text-interface-foreground-default-secondary", children: (_h = parsed.message) != null ? _h : description }),
5836
- parsed.reason && /* @__PURE__ */ jsx104("p", { className: "leading-normal text-interface-foreground-default-secondary", children: parsed.reason })
5977
+ /* @__PURE__ */ jsx105("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx105(FormattedMessage, { id: "error.title.what-happened" }) }),
5978
+ /* @__PURE__ */ jsx105("p", { className: "leading-normal text-interface-foreground-default-secondary", children: (_h = parsed.message) != null ? _h : description }),
5979
+ parsed.reason && /* @__PURE__ */ jsx105("p", { className: "leading-normal text-interface-foreground-default-secondary", children: parsed.reason })
5837
5980
  ] })
5838
5981
  ] }),
5839
- /* @__PURE__ */ jsx104(Divider, {}),
5982
+ /* @__PURE__ */ jsx105(Divider, {}),
5840
5983
  /* @__PURE__ */ jsxs47("div", { className: "flex flex-col gap-2", children: [
5841
- /* @__PURE__ */ jsx104("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx104(FormattedMessage, { id: "error.title.what-can-i-do" }) }),
5842
- /* @__PURE__ */ jsx104("p", { className: "leading-normal text-interface-foreground-default-secondary", children: /* @__PURE__ */ jsx104(FormattedMessage, { id: "error.instructions" }) }),
5843
- /* @__PURE__ */ jsx104("div", { children: session ? /* @__PURE__ */ jsx104(LoggedInActions, {}) : /* @__PURE__ */ jsx104(GoBackButton, {}) })
5984
+ /* @__PURE__ */ jsx105("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx105(FormattedMessage, { id: "error.title.what-can-i-do" }) }),
5985
+ /* @__PURE__ */ jsx105("p", { className: "leading-normal text-interface-foreground-default-secondary", children: /* @__PURE__ */ jsx105(FormattedMessage, { id: "error.instructions" }) }),
5986
+ /* @__PURE__ */ jsx105("div", { children: session ? /* @__PURE__ */ jsx105(LoggedInActions, {}) : /* @__PURE__ */ jsx105(GoBackButton, {}) })
5844
5987
  ] }),
5845
- /* @__PURE__ */ jsx104(Divider, {}),
5988
+ /* @__PURE__ */ jsx105(Divider, {}),
5846
5989
  /* @__PURE__ */ jsxs47("div", { className: "font-normal leading-normal antialiased gap-2 flex flex-col", children: [
5847
- /* @__PURE__ */ jsx104("span", { className: "text-interface-foreground-default-primary text-sm", children: /* @__PURE__ */ jsx104(FormattedMessage, { id: "error.footer.text" }) }),
5990
+ /* @__PURE__ */ jsx105("span", { className: "text-interface-foreground-default-primary text-sm", children: /* @__PURE__ */ jsx105(FormattedMessage, { id: "error.footer.text" }) }),
5848
5991
  parsed.id && /* @__PURE__ */ jsxs47("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5849
5992
  "ID: ",
5850
- /* @__PURE__ */ jsx104("code", { children: parsed.id })
5993
+ /* @__PURE__ */ jsx105("code", { children: parsed.id })
5851
5994
  ] }),
5852
5995
  /* @__PURE__ */ jsxs47("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5853
5996
  "Time: ",
5854
- /* @__PURE__ */ jsx104("code", { children: (_i = parsed.timestamp) == null ? void 0 : _i.toUTCString() })
5997
+ /* @__PURE__ */ jsx105("code", { children: (_i = parsed.timestamp) == null ? void 0 : _i.toUTCString() })
5855
5998
  ] }),
5856
5999
  /* @__PURE__ */ jsxs47("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5857
6000
  "Message: ",
5858
- /* @__PURE__ */ jsx104("code", { children: parsed.reason })
6001
+ /* @__PURE__ */ jsx105("code", { children: parsed.reason })
5859
6002
  ] }),
5860
- /* @__PURE__ */ jsx104("div", { children: /* @__PURE__ */ jsx104(
6003
+ /* @__PURE__ */ jsx105("div", { children: /* @__PURE__ */ jsx105(
5861
6004
  "button",
5862
6005
  {
5863
6006
  className: "text-interface-foreground-default-primary underline",
@@ -5869,7 +6012,7 @@ ${parsed.reason ? `Message: ${parsed.reason}` : ""}
5869
6012
  `;
5870
6013
  void navigator.clipboard.writeText(text);
5871
6014
  },
5872
- children: /* @__PURE__ */ jsx104(FormattedMessage, { id: "error.footer.copy" })
6015
+ children: /* @__PURE__ */ jsx105(FormattedMessage, { id: "error.footer.copy" })
5873
6016
  }
5874
6017
  ) })
5875
6018
  ] })
@@ -5882,24 +6025,24 @@ ${parsed.reason ? `Message: ${parsed.reason}` : ""}
5882
6025
  function LoggedInActions() {
5883
6026
  const config = useOryConfiguration8();
5884
6027
  const { logoutFlow } = useClientLogout(config);
5885
- return /* @__PURE__ */ jsx104(
6028
+ return /* @__PURE__ */ jsx105(
5886
6029
  "a",
5887
6030
  {
5888
6031
  href: logoutFlow == null ? void 0 : logoutFlow.logout_url,
5889
6032
  className: "text-interface-foreground-default-primary underline",
5890
- children: /* @__PURE__ */ jsx104(FormattedMessage, { id: "login.logout-button" })
6033
+ children: /* @__PURE__ */ jsx105(FormattedMessage, { id: "login.logout-button" })
5891
6034
  }
5892
6035
  );
5893
6036
  }
5894
6037
  function GoBackButton() {
5895
6038
  const config = useOryConfiguration8();
5896
6039
  if ("default_redirect_url" in config.project) {
5897
- return /* @__PURE__ */ jsx104(
6040
+ return /* @__PURE__ */ jsx105(
5898
6041
  "a",
5899
6042
  {
5900
6043
  className: "text-interface-foreground-default-primary underline",
5901
6044
  href: config.project.default_redirect_url,
5902
- children: /* @__PURE__ */ jsx104(FormattedMessage, { id: "error.action.go-back" })
6045
+ children: /* @__PURE__ */ jsx105(FormattedMessage, { id: "error.action.go-back" })
5903
6046
  }
5904
6047
  );
5905
6048
  }
@@ -5908,9 +6051,9 @@ function GoBackButton() {
5908
6051
  function ErrorLogo() {
5909
6052
  const { project } = useOryConfiguration8();
5910
6053
  if (project.logo_light_url) {
5911
- return /* @__PURE__ */ jsx104("img", { src: project.logo_light_url, width: 100, height: 36, alt: "Logo" });
6054
+ return /* @__PURE__ */ jsx105("img", { src: project.logo_light_url, width: 100, height: 36, alt: "Logo" });
5912
6055
  }
5913
- return /* @__PURE__ */ jsx104("h1", { className: "text-xl font-semibold leading-normal text-interface-foreground-default-primary", children: project.name });
6056
+ return /* @__PURE__ */ jsx105("h1", { className: "text-xl font-semibold leading-normal text-interface-foreground-default-primary", children: project.name });
5914
6057
  }
5915
6058
 
5916
6059
  // src/theme/default/flows/login.tsx
@@ -5919,7 +6062,7 @@ import {
5919
6062
  OryProvider,
5920
6063
  OryTwoStepCard as OryTwoStepCard2
5921
6064
  } from "@ory/elements-react";
5922
- import { jsx as jsx105 } from "react/jsx-runtime";
6065
+ import { jsx as jsx106 } from "react/jsx-runtime";
5923
6066
  function Login({
5924
6067
  flow,
5925
6068
  config,
@@ -5927,14 +6070,14 @@ function Login({
5927
6070
  components: flowOverrideComponents
5928
6071
  }) {
5929
6072
  const components = getOryComponents(flowOverrideComponents);
5930
- return /* @__PURE__ */ jsx105(
6073
+ return /* @__PURE__ */ jsx106(
5931
6074
  OryProvider,
5932
6075
  {
5933
6076
  config,
5934
6077
  flow,
5935
6078
  flowType: FlowType18.Login,
5936
6079
  components,
5937
- children: children != null ? children : /* @__PURE__ */ jsx105(OryTwoStepCard2, {})
6080
+ children: children != null ? children : /* @__PURE__ */ jsx106(OryTwoStepCard2, {})
5938
6081
  }
5939
6082
  );
5940
6083
  }
@@ -5945,7 +6088,7 @@ import {
5945
6088
  OryProvider as OryProvider2,
5946
6089
  OryTwoStepCard as OryTwoStepCard3
5947
6090
  } from "@ory/elements-react";
5948
- import { jsx as jsx106 } from "react/jsx-runtime";
6091
+ import { jsx as jsx107 } from "react/jsx-runtime";
5949
6092
  function Recovery({
5950
6093
  flow,
5951
6094
  config,
@@ -5953,14 +6096,14 @@ function Recovery({
5953
6096
  components: flowOverrideComponents
5954
6097
  }) {
5955
6098
  const components = getOryComponents(flowOverrideComponents);
5956
- return /* @__PURE__ */ jsx106(
6099
+ return /* @__PURE__ */ jsx107(
5957
6100
  OryProvider2,
5958
6101
  {
5959
6102
  config,
5960
6103
  flow,
5961
6104
  flowType: FlowType19.Recovery,
5962
6105
  components,
5963
- children: children != null ? children : /* @__PURE__ */ jsx106(OryTwoStepCard3, {})
6106
+ children: children != null ? children : /* @__PURE__ */ jsx107(OryTwoStepCard3, {})
5964
6107
  }
5965
6108
  );
5966
6109
  }
@@ -5971,7 +6114,7 @@ import {
5971
6114
  OryProvider as OryProvider3,
5972
6115
  OryTwoStepCard as OryTwoStepCard4
5973
6116
  } from "@ory/elements-react";
5974
- import { jsx as jsx107 } from "react/jsx-runtime";
6117
+ import { jsx as jsx108 } from "react/jsx-runtime";
5975
6118
  function Registration({
5976
6119
  flow,
5977
6120
  children,
@@ -5979,14 +6122,14 @@ function Registration({
5979
6122
  config
5980
6123
  }) {
5981
6124
  const components = getOryComponents(flowOverrideComponents);
5982
- return /* @__PURE__ */ jsx107(
6125
+ return /* @__PURE__ */ jsx108(
5983
6126
  OryProvider3,
5984
6127
  {
5985
6128
  config,
5986
6129
  flow,
5987
6130
  flowType: FlowType20.Registration,
5988
6131
  components,
5989
- children: children != null ? children : /* @__PURE__ */ jsx107(OryTwoStepCard4, {})
6132
+ children: children != null ? children : /* @__PURE__ */ jsx108(OryTwoStepCard4, {})
5990
6133
  }
5991
6134
  );
5992
6135
  }
@@ -5998,7 +6141,7 @@ import {
5998
6141
  OryProvider as OryProvider4,
5999
6142
  OrySettingsCard
6000
6143
  } from "@ory/elements-react";
6001
- import { Fragment as Fragment13, jsx as jsx108, jsxs as jsxs48 } from "react/jsx-runtime";
6144
+ import { Fragment as Fragment13, jsx as jsx109, jsxs as jsxs48 } from "react/jsx-runtime";
6002
6145
  function Settings({
6003
6146
  flow,
6004
6147
  config,
@@ -6006,7 +6149,7 @@ function Settings({
6006
6149
  components: flowOverrideComponents
6007
6150
  }) {
6008
6151
  const components = getOryComponents(flowOverrideComponents);
6009
- return /* @__PURE__ */ jsx108(
6152
+ return /* @__PURE__ */ jsx109(
6010
6153
  OryProvider4,
6011
6154
  {
6012
6155
  config,
@@ -6014,8 +6157,8 @@ function Settings({
6014
6157
  flowType: FlowType21.Settings,
6015
6158
  components,
6016
6159
  children: children != null ? children : /* @__PURE__ */ jsxs48(Fragment13, { children: [
6017
- /* @__PURE__ */ jsx108(HeadlessPageHeader, {}),
6018
- /* @__PURE__ */ jsx108(OrySettingsCard, {})
6160
+ /* @__PURE__ */ jsx109(HeadlessPageHeader, {}),
6161
+ /* @__PURE__ */ jsx109(OrySettingsCard, {})
6019
6162
  ] })
6020
6163
  }
6021
6164
  );
@@ -6027,7 +6170,7 @@ import {
6027
6170
  OryProvider as OryProvider5,
6028
6171
  OryTwoStepCard as OryTwoStepCard5
6029
6172
  } from "@ory/elements-react";
6030
- import { jsx as jsx109 } from "react/jsx-runtime";
6173
+ import { jsx as jsx110 } from "react/jsx-runtime";
6031
6174
  function Verification({
6032
6175
  flow,
6033
6176
  config,
@@ -6035,14 +6178,14 @@ function Verification({
6035
6178
  components: flowOverrideComponents
6036
6179
  }) {
6037
6180
  const components = getOryComponents(flowOverrideComponents);
6038
- return /* @__PURE__ */ jsx109(
6181
+ return /* @__PURE__ */ jsx110(
6039
6182
  OryProvider5,
6040
6183
  {
6041
6184
  config,
6042
6185
  flow,
6043
6186
  flowType: FlowType22.Verification,
6044
6187
  components,
6045
- children: children != null ? children : /* @__PURE__ */ jsx109(OryTwoStepCard5, {})
6188
+ children: children != null ? children : /* @__PURE__ */ jsx110(OryTwoStepCard5, {})
6046
6189
  }
6047
6190
  );
6048
6191
  }
@@ -6195,7 +6338,7 @@ function challengeNode(challenge) {
6195
6338
  }
6196
6339
 
6197
6340
  // src/theme/default/flows/consent.tsx
6198
- import { jsx as jsx110 } from "react/jsx-runtime";
6341
+ import { jsx as jsx111 } from "react/jsx-runtime";
6199
6342
  function Consent({
6200
6343
  consentChallenge,
6201
6344
  session,
@@ -6212,14 +6355,14 @@ function Consent({
6212
6355
  formActionUrl,
6213
6356
  session
6214
6357
  );
6215
- return /* @__PURE__ */ jsx110(
6358
+ return /* @__PURE__ */ jsx111(
6216
6359
  OryProvider6,
6217
6360
  {
6218
6361
  config,
6219
6362
  flow,
6220
6363
  flowType: FlowType23.OAuth2Consent,
6221
6364
  components,
6222
- children: children != null ? children : /* @__PURE__ */ jsx110(OryConsentCard2, {})
6365
+ children: children != null ? children : /* @__PURE__ */ jsx111(OryConsentCard2, {})
6223
6366
  }
6224
6367
  );
6225
6368
  }