@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.
@@ -92,12 +92,12 @@ function DefaultCardContent({ children }) {
92
92
  }
93
93
 
94
94
  // src/theme/default/components/card/footer.tsx
95
- var import_client_fetch27 = require("@ory/client-fetch");
95
+ var import_client_fetch29 = require("@ory/client-fetch");
96
96
  var import_elements_react3 = require("@ory/elements-react");
97
97
  var import_react_intl10 = require("react-intl");
98
98
 
99
99
  // src/components/card/two-step/state-select-method.tsx
100
- var import_client_fetch26 = require("@ory/client-fetch");
100
+ var import_client_fetch28 = require("@ory/client-fetch");
101
101
 
102
102
  // src/context/component.tsx
103
103
  var import_client_fetch = require("@ory/client-fetch");
@@ -140,6 +140,27 @@ function isGroupImmediateSubmit(group) {
140
140
  var import_client_fetch2 = require("@ory/client-fetch");
141
141
  var import_client_fetch3 = require("@ory/client-fetch");
142
142
  var import_react2 = require("react");
143
+ function triggerToFunction(trigger) {
144
+ if (typeof window === "undefined") {
145
+ console.debug(
146
+ "The Ory SDK is missing a required function: window is undefined."
147
+ );
148
+ return void 0;
149
+ }
150
+ const typedWindow = window;
151
+ if (!(trigger in typedWindow) || !typedWindow[trigger]) {
152
+ console.debug(`The Ory SDK is missing a required function: ${trigger}.`);
153
+ return void 0;
154
+ }
155
+ const triggerFn = typedWindow[trigger];
156
+ if (typeof triggerFn !== "function") {
157
+ console.debug(
158
+ `The Ory SDK is missing a required function: ${trigger}. It is not a function.`
159
+ );
160
+ return void 0;
161
+ }
162
+ return triggerFn;
163
+ }
143
164
  function nodesToAuthMethodGroups(nodes, excludeAuthMethods = []) {
144
165
  var _a;
145
166
  const groups = {};
@@ -297,46 +318,52 @@ function getSDKUrl() {
297
318
  var import_react_intl8 = require("react-intl");
298
319
 
299
320
  // src/components/form/form.tsx
300
- var import_client_fetch14 = require("@ory/client-fetch");
321
+ var import_client_fetch16 = require("@ory/client-fetch");
301
322
  var import_react_hook_form2 = require("react-hook-form");
302
323
  var import_react_intl = require("react-intl");
303
324
 
304
325
  // src/components/form/useOryFormSubmit.ts
305
- var import_client_fetch13 = require("@ory/client-fetch");
326
+ var import_client_fetch15 = require("@ory/client-fetch");
306
327
  var import_react_hook_form = require("react-hook-form");
307
328
 
308
329
  // src/util/onSubmitLogin.ts
330
+ var import_client_fetch9 = require("@ory/client-fetch");
331
+
332
+ // src/util/sdk-helpers/error.ts
309
333
  var import_client_fetch7 = require("@ory/client-fetch");
310
334
 
311
- // src/util/onSubmitRecovery.ts
335
+ // src/util/sdk-helpers/utils.ts
312
336
  var import_client_fetch8 = require("@ory/client-fetch");
313
337
 
338
+ // src/util/onSubmitRecovery.ts
339
+ var import_client_fetch10 = require("@ory/client-fetch");
340
+
314
341
  // src/util/onSubmitRegistration.ts
315
- var import_client_fetch9 = require("@ory/client-fetch");
342
+ var import_client_fetch11 = require("@ory/client-fetch");
316
343
 
317
344
  // src/util/onSubmitSettings.ts
318
- var import_client_fetch10 = require("@ory/client-fetch");
345
+ var import_client_fetch12 = require("@ory/client-fetch");
319
346
 
320
347
  // src/util/onSubmitVerification.ts
321
- var import_client_fetch11 = require("@ory/client-fetch");
348
+ var import_client_fetch13 = require("@ory/client-fetch");
322
349
 
323
350
  // src/components/form/form-helpers.ts
324
- var import_client_fetch12 = require("@ory/client-fetch");
351
+ var import_client_fetch14 = require("@ory/client-fetch");
325
352
 
326
353
  // src/components/form/form.tsx
327
354
  var import_jsx_runtime7 = require("react/jsx-runtime");
328
355
 
329
356
  // src/components/form/groups.tsx
330
- var import_client_fetch17 = require("@ory/client-fetch");
357
+ var import_client_fetch19 = require("@ory/client-fetch");
331
358
 
332
359
  // src/components/form/nodes/input.tsx
333
- var import_client_fetch15 = require("@ory/client-fetch");
360
+ var import_client_fetch17 = require("@ory/client-fetch");
334
361
  var import_react6 = require("react");
335
362
  var import_react_hook_form3 = require("react-hook-form");
336
363
  var import_jsx_runtime8 = require("react/jsx-runtime");
337
364
 
338
365
  // src/components/form/nodes/node.tsx
339
- var import_client_fetch16 = require("@ory/client-fetch");
366
+ var import_client_fetch18 = require("@ory/client-fetch");
340
367
  var import_jsx_runtime9 = require("react/jsx-runtime");
341
368
 
342
369
  // src/components/form/groups.tsx
@@ -346,15 +373,15 @@ var import_jsx_runtime10 = require("react/jsx-runtime");
346
373
  var import_jsx_runtime11 = require("react/jsx-runtime");
347
374
 
348
375
  // src/components/form/social.tsx
349
- var import_client_fetch20 = require("@ory/client-fetch");
376
+ var import_client_fetch22 = require("@ory/client-fetch");
350
377
  var import_react_hook_form5 = require("react-hook-form");
351
378
 
352
379
  // src/components/form/form-provider.tsx
353
- var import_client_fetch19 = require("@ory/client-fetch");
380
+ var import_client_fetch21 = require("@ory/client-fetch");
354
381
  var import_react_hook_form4 = require("react-hook-form");
355
382
 
356
383
  // src/components/form/form-resolver.ts
357
- var import_client_fetch18 = require("@ory/client-fetch");
384
+ var import_client_fetch20 = require("@ory/client-fetch");
358
385
 
359
386
  // src/components/form/form-provider.tsx
360
387
  var import_jsx_runtime12 = require("react/jsx-runtime");
@@ -367,14 +394,14 @@ var import_react_hook_form6 = require("react-hook-form");
367
394
  var import_jsx_runtime14 = require("react/jsx-runtime");
368
395
 
369
396
  // src/components/generic/divider.tsx
370
- var import_client_fetch21 = require("@ory/client-fetch");
397
+ var import_client_fetch23 = require("@ory/client-fetch");
371
398
  var import_jsx_runtime15 = require("react/jsx-runtime");
372
399
 
373
400
  // src/components/generic/page-header.tsx
374
401
  var import_jsx_runtime16 = require("react/jsx-runtime");
375
402
 
376
403
  // src/components/settings/settings-card.tsx
377
- var import_client_fetch22 = require("@ory/client-fetch");
404
+ var import_client_fetch24 = require("@ory/client-fetch");
378
405
  var import_react_intl7 = require("react-intl");
379
406
 
380
407
  // src/components/settings/oidc-settings.tsx
@@ -686,6 +713,7 @@ var en_default = {
686
713
  "two-step.webauthn.description": "Use your security key to authenticate",
687
714
  "two-step.passkey.title": "Passkey (recommended)",
688
715
  "two-step.passkey.description": "Use your device's for fingerprint or face recognition",
716
+ "two-step.passkey.description.error": "Could not load the necessary libraries to use your Passkey. Please try again later.",
689
717
  "two-step.totp.title": "Use your Authenticator App (TOTP)",
690
718
  "two-step.totp.description": "Use a 6-digit one-time code from your authenticator app",
691
719
  "two-step.lookup_secret.title": "Backup recovery code",
@@ -911,12 +939,13 @@ var de_default = {
911
939
  "registration.title": "Konto registrieren",
912
940
  "verification.registration-button": "Registrieren",
913
941
  "verification.registration-label": "Sie haben noch kein Konto?",
914
- "verification.title": "Verifizieren Sie ihr Konto",
942
+ "verification.title": "Verifizieren Sie Ihr Konto",
915
943
  "verification.back-button": "Zur\xFCck",
916
944
  "two-step.code.description": "Ein Best\xE4tigungscode wird an Ihre E-Mail gesendet.",
917
945
  "two-step.code.title": "E-Mail-Code",
918
- "two-step.passkey.description": "Verwenden Sie die Fingerabdruck- oder Gesichtserkennung Ihres Ger\xE4ts",
919
946
  "two-step.passkey.title": "Passkey (empfohlen)",
947
+ "two-step.passkey.description": "Verwenden Sie die Fingerabdruck- oder Gesichtserkennung Ihres Ger\xE4ts",
948
+ "two-step.passkey.description.error": "Konnte die erforderlichen Bibliotheken f\xFCr Passkeys nicht laden. Bitte versuchen Sie es sp\xE4ter erneut.",
920
949
  "two-step.password.description": "Geben Sie Ihr Passwort ein, das mit Ihrem Konto verkn\xFCpft ist",
921
950
  "two-step.password.title": "Passwort",
922
951
  "two-step.webauthn.title": "Sicherheitsschl\xFCssel",
@@ -954,14 +983,14 @@ var de_default = {
954
983
  "card.header.parts.password.login": "Ihrer {identifierLabel} und Ihrem Passwort",
955
984
  "card.header.parts.password.registration": "Ihrer {identifierLabel} und einem Passwort",
956
985
  "card.header.parts.webauthn": "ein Sicherheitsschl\xFCssel",
957
- "card.header.parts.totp": "deine Authentifikator-App",
986
+ "card.header.parts.totp": "Ihre Authentifikator-App",
958
987
  "card.header.parts.lookup_secret": "ein Backup-Wiederherstellungscode",
959
988
  "recovery.subtitle": "Geben Sie die mit Ihrem Konto verkn\xFCpfte E-Mail-Adresse ein, um einen einmaligen Zugangscode zu erhalten",
960
989
  "verification.subtitle": "Geben Sie die mit Ihrem Konto verkn\xFCpfte E-Mail-Adresse ein, um es zu best\xE4tigen",
961
990
  "card.header.description.login": "Melden Sie sich mit {identifierLabel} an",
962
991
  "card.header.description.registration": "Registrieren Sie sich mit {identifierLabel}",
963
992
  "login.subtitle": "Melden Sie sich mit {parts} an",
964
- "login.subtitle-refresh": "Best\xE4tigen Sie ihre Identit\xE4t mit {parts}",
993
+ "login.subtitle-refresh": "Best\xE4tigen Sie Ihre Identit\xE4t mit {parts}",
965
994
  "misc.or": "oder",
966
995
  "registration.subtitle": "Registrieren Sie sich mit {parts}",
967
996
  "forms.label.forgot-password": "Passwort vergessen?",
@@ -1214,6 +1243,7 @@ var es_default = {
1214
1243
  "two-step.code.title": "C\xF3digo de correo electr\xF3nico",
1215
1244
  "two-step.passkey.description": "Utiliza el reconocimiento de huellas dactilares o facial de tu dispositivo.",
1216
1245
  "two-step.passkey.title": "Clave de acceso (recomendada)",
1246
+ "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",
1217
1247
  "two-step.password.description": "Ingrese la contrase\xF1a asociada con su cuenta",
1218
1248
  "two-step.password.title": "Contrase\xF1a",
1219
1249
  "two-step.webauthn.title": "Clave de Seguridad",
@@ -1502,6 +1532,7 @@ var fr_default = {
1502
1532
  "two-step.code.title": "Code de courrier \xE9lectronique",
1503
1533
  "two-step.passkey.description": "Utilisez l'appareil pour la reconnaissance d'empreintes digitales ou de visage",
1504
1534
  "two-step.passkey.title": "Cl\xE9 de passe (recommand\xE9e)",
1535
+ "two-step.passkey.description.error": "Impossible de charger les biblioth\xE8ques n\xE9cessaires pour utiliser votre Passkey. Veuillez r\xE9essayer plus tard.",
1505
1536
  "two-step.password.description": "Entrez votre mot de passe associ\xE9 \xE0 votre compte",
1506
1537
  "two-step.password.title": "Mot de passe",
1507
1538
  "two-step.webauthn.title": "Cl\xE9 de S\xE9curit\xE9",
@@ -1788,6 +1819,7 @@ var nl_default = {
1788
1819
  "two-step.code.description": "Een verificatiecode wordt naar uw e-mail gestuurd",
1789
1820
  "two-step.code.title": "E-mailcode",
1790
1821
  "two-step.passkey.description": "Gebruik de vingerafdruk- of gezichtsherkenning van uw apparaat",
1822
+ "two-step.passkey.description.error": "De benodigde bibliotheken om uw Passkey te gebruiken konden niet worden geladen. Probeer het later opnieuw.",
1791
1823
  "two-step.passkey.title": "Toegangscode (aanbevolen)",
1792
1824
  "two-step.password.description": "Voer uw wachtwoord in dat is gekoppeld aan uw account",
1793
1825
  "two-step.password.title": "Wachtwoord",
@@ -2075,6 +2107,7 @@ var pl_default = {
2075
2107
  "two-step.code.description": "Kod weryfikacyjny zostanie wys\u0142any na Tw\xF3j adres email.",
2076
2108
  "two-step.code.title": "Kod email",
2077
2109
  "two-step.passkey.description": "U\u017Cyj swojego urz\u0105dzenia lub funkcji rozpoznawania twarzy na swoim urz\u0105dzeniu.",
2110
+ "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.",
2078
2111
  "two-step.passkey.title": "Klucz dost\u0119pu (zalecany)",
2079
2112
  "two-step.password.description": "Wprowad\u017A has\u0142o powi\u0105zane z twoim kontem",
2080
2113
  "two-step.password.title": "Has\u0142o",
@@ -2362,6 +2395,7 @@ var pt_default = {
2362
2395
  "two-step.code.description": "Um c\xF3digo de verifica\xE7\xE3o ser\xE1 enviado para o seu email",
2363
2396
  "two-step.code.title": "C\xF3digo de email",
2364
2397
  "two-step.passkey.description": "Use o seu dispositivo para reconhecimento de impress\xE3o digital ou facial.",
2398
+ "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.",
2365
2399
  "two-step.passkey.title": "Chave de acesso (recomendado)",
2366
2400
  "two-step.password.description": "Insira a sua senha associada \xE0 sua conta",
2367
2401
  "two-step.password.title": "Senha",
@@ -2668,6 +2702,7 @@ var sv_default = {
2668
2702
  "two-step.code.title": "E-postkod",
2669
2703
  "two-step.passkey.description": "Anv\xE4nd din enhets fingeravtryck eller ansiktsigenk\xE4nning",
2670
2704
  "two-step.passkey.title": "Passerkod (rekommenderad)",
2705
+ "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.",
2671
2706
  "two-step.password.description": "Ange ditt l\xF6senord kopplat till ditt konto",
2672
2707
  "two-step.password.title": "L\xF6senord",
2673
2708
  "two-step.webauthn.title": "S\xE4kerhetsnyckel",
@@ -2814,11 +2849,11 @@ var import_jsx_runtime27 = require("react/jsx-runtime");
2814
2849
  var import_jsx_runtime28 = require("react/jsx-runtime");
2815
2850
 
2816
2851
  // src/components/card/two-step/state-method-active.tsx
2817
- var import_client_fetch23 = require("@ory/client-fetch");
2852
+ var import_client_fetch25 = require("@ory/client-fetch");
2818
2853
  var import_jsx_runtime29 = require("react/jsx-runtime");
2819
2854
 
2820
2855
  // src/components/card/two-step/state-provide-identifier.tsx
2821
- var import_client_fetch24 = require("@ory/client-fetch");
2856
+ var import_client_fetch26 = require("@ory/client-fetch");
2822
2857
  var import_jsx_runtime30 = require("react/jsx-runtime");
2823
2858
 
2824
2859
  // src/components/card/card-two-step.tsx
@@ -2826,7 +2861,7 @@ var import_elements_react = require("@ory/elements-react");
2826
2861
  var import_jsx_runtime31 = require("react/jsx-runtime");
2827
2862
 
2828
2863
  // src/components/card/card-consent.tsx
2829
- var import_client_fetch25 = require("@ory/client-fetch");
2864
+ var import_client_fetch27 = require("@ory/client-fetch");
2830
2865
  var import_jsx_runtime32 = require("react/jsx-runtime");
2831
2866
 
2832
2867
  // src/components/card/two-step/state-select-method.tsx
@@ -2841,17 +2876,17 @@ var import_jsx_runtime33 = require("react/jsx-runtime");
2841
2876
  var import_jsx_runtime34 = require("react/jsx-runtime");
2842
2877
  function toAuthMethodPickerOptions(visibleGroups) {
2843
2878
  return Object.fromEntries(
2844
- Object.values(import_client_fetch26.UiNodeGroupEnum).filter((group) => {
2879
+ Object.values(import_client_fetch28.UiNodeGroupEnum).filter((group) => {
2845
2880
  var _a;
2846
2881
  return (_a = visibleGroups[group]) == null ? void 0 : _a.length;
2847
2882
  }).filter(
2848
2883
  (group) => ![
2849
- import_client_fetch26.UiNodeGroupEnum.Oidc,
2850
- import_client_fetch26.UiNodeGroupEnum.Saml,
2851
- import_client_fetch26.UiNodeGroupEnum.Default,
2852
- import_client_fetch26.UiNodeGroupEnum.IdentifierFirst,
2853
- import_client_fetch26.UiNodeGroupEnum.Profile,
2854
- import_client_fetch26.UiNodeGroupEnum.Captcha
2884
+ import_client_fetch28.UiNodeGroupEnum.Oidc,
2885
+ import_client_fetch28.UiNodeGroupEnum.Saml,
2886
+ import_client_fetch28.UiNodeGroupEnum.Default,
2887
+ import_client_fetch28.UiNodeGroupEnum.IdentifierFirst,
2888
+ import_client_fetch28.UiNodeGroupEnum.Profile,
2889
+ import_client_fetch28.UiNodeGroupEnum.Captcha
2855
2890
  ].includes(group)
2856
2891
  ).map((g) => [g, {}])
2857
2892
  );
@@ -2926,15 +2961,15 @@ var import_jsx_runtime35 = require("react/jsx-runtime");
2926
2961
  function DefaultCardFooter() {
2927
2962
  const oryFlow = (0, import_elements_react3.useOryFlow)();
2928
2963
  switch (oryFlow.flowType) {
2929
- case import_client_fetch27.FlowType.Login:
2964
+ case import_client_fetch29.FlowType.Login:
2930
2965
  return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(LoginCardFooter, {});
2931
- case import_client_fetch27.FlowType.Registration:
2966
+ case import_client_fetch29.FlowType.Registration:
2932
2967
  return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(RegistrationCardFooter, {});
2933
- case import_client_fetch27.FlowType.Recovery:
2968
+ case import_client_fetch29.FlowType.Recovery:
2934
2969
  return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(RecoveryCardFooter, {});
2935
- case import_client_fetch27.FlowType.Verification:
2970
+ case import_client_fetch29.FlowType.Verification:
2936
2971
  return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(VerificationCardFooter, {});
2937
- case import_client_fetch27.FlowType.OAuth2Consent:
2972
+ case import_client_fetch29.FlowType.OAuth2Consent:
2938
2973
  return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(ConsentCardFooter, { flow: oryFlow.flow });
2939
2974
  default:
2940
2975
  return null;
@@ -2961,7 +2996,7 @@ function LoginCardFooter() {
2961
2996
  const { formState, flow, flowType, dispatchFormState } = (0, import_elements_react3.useOryFlow)();
2962
2997
  const config = (0, import_elements_react3.useOryConfiguration)();
2963
2998
  const intl = (0, import_react_intl10.useIntl)();
2964
- if (flowType !== import_client_fetch27.FlowType.Login) {
2999
+ if (flowType !== import_client_fetch29.FlowType.Login) {
2965
3000
  return null;
2966
3001
  }
2967
3002
  const authMethods = nodesToAuthMethodGroups(flow.ui.nodes);
@@ -3154,7 +3189,7 @@ function ConsentCardFooter({ flow }) {
3154
3189
  var import_elements_react5 = require("@ory/elements-react");
3155
3190
 
3156
3191
  // src/theme/default/utils/constructCardHeader.ts
3157
- var import_client_fetch28 = require("@ory/client-fetch");
3192
+ var import_client_fetch30 = require("@ory/client-fetch");
3158
3193
  var import_react_intl11 = require("react-intl");
3159
3194
  function joinWithCommaOr(list, orText = "or") {
3160
3195
  if (list.length === 0) {
@@ -3171,7 +3206,7 @@ function useCardHeaderText(container, opts) {
3171
3206
  const nodes = container.nodes;
3172
3207
  const intl = (0, import_react_intl11.useIntl)();
3173
3208
  switch (opts.flowType) {
3174
- case import_client_fetch28.FlowType.Recovery:
3209
+ case import_client_fetch30.FlowType.Recovery:
3175
3210
  if (nodes.find(
3176
3211
  (node) => "name" in node.attributes && node.attributes.name === "code"
3177
3212
  )) {
@@ -3193,7 +3228,7 @@ function useCardHeaderText(container, opts) {
3193
3228
  id: "recovery.subtitle"
3194
3229
  })
3195
3230
  };
3196
- case import_client_fetch28.FlowType.Settings:
3231
+ case import_client_fetch30.FlowType.Settings:
3197
3232
  return {
3198
3233
  title: intl.formatMessage({
3199
3234
  id: "settings.title"
@@ -3202,7 +3237,7 @@ function useCardHeaderText(container, opts) {
3202
3237
  id: "settings.subtitle"
3203
3238
  })
3204
3239
  };
3205
- case import_client_fetch28.FlowType.Verification:
3240
+ case import_client_fetch30.FlowType.Verification:
3206
3241
  if (nodes.find(
3207
3242
  (node) => "name" in node.attributes && node.attributes.name === "code"
3208
3243
  )) {
@@ -3224,7 +3259,7 @@ function useCardHeaderText(container, opts) {
3224
3259
  id: "verification.subtitle"
3225
3260
  })
3226
3261
  };
3227
- case import_client_fetch28.FlowType.Login: {
3262
+ case import_client_fetch30.FlowType.Login: {
3228
3263
  const accountLinkingMessage = (_a = container.messages) == null ? void 0 : _a.find(
3229
3264
  (m) => m.id === 1010016
3230
3265
  );
@@ -3247,7 +3282,7 @@ function useCardHeaderText(container, opts) {
3247
3282
  const parts = [];
3248
3283
  if (nodes.find((node) => node.group === "password")) {
3249
3284
  switch (opts.flowType) {
3250
- case import_client_fetch28.FlowType.Registration:
3285
+ case import_client_fetch30.FlowType.Registration:
3251
3286
  parts.push(
3252
3287
  intl.formatMessage(
3253
3288
  { id: "card.header.parts.password.registration" },
@@ -3290,7 +3325,7 @@ function useCardHeaderText(container, opts) {
3290
3325
  }
3291
3326
  if (nodes.find((node) => node.group === "identifier_first")) {
3292
3327
  const identifier = nodes.find(
3293
- (node) => (0, import_client_fetch28.isUiNodeInputAttributes)(node.attributes) && node.attributes.name.startsWith("identifier") && node.attributes.type !== "hidden"
3328
+ (node) => (0, import_client_fetch30.isUiNodeInputAttributes)(node.attributes) && node.attributes.name.startsWith("identifier") && node.attributes.type !== "hidden"
3294
3329
  );
3295
3330
  if (identifier) {
3296
3331
  parts.push(
@@ -3306,7 +3341,7 @@ function useCardHeaderText(container, opts) {
3306
3341
  }
3307
3342
  }
3308
3343
  switch (opts.flowType) {
3309
- case import_client_fetch28.FlowType.Login:
3344
+ case import_client_fetch30.FlowType.Login:
3310
3345
  if (opts.flow.refresh) {
3311
3346
  return {
3312
3347
  title: intl.formatMessage({
@@ -3347,7 +3382,7 @@ function useCardHeaderText(container, opts) {
3347
3382
  }
3348
3383
  ) : ""
3349
3384
  };
3350
- case import_client_fetch28.FlowType.Registration:
3385
+ case import_client_fetch30.FlowType.Registration:
3351
3386
  return {
3352
3387
  title: intl.formatMessage({
3353
3388
  id: "registration.title"
@@ -3364,7 +3399,7 @@ function useCardHeaderText(container, opts) {
3364
3399
  }
3365
3400
  ) : ""
3366
3401
  };
3367
- case import_client_fetch28.FlowType.OAuth2Consent:
3402
+ case import_client_fetch30.FlowType.OAuth2Consent:
3368
3403
  return {
3369
3404
  title: intl.formatMessage(
3370
3405
  {
@@ -3391,7 +3426,7 @@ function useCardHeaderText(container, opts) {
3391
3426
  }
3392
3427
 
3393
3428
  // src/theme/default/components/card/current-identifier-button.tsx
3394
- var import_client_fetch29 = require("@ory/client-fetch");
3429
+ var import_client_fetch31 = require("@ory/client-fetch");
3395
3430
  var import_elements_react4 = require("@ory/elements-react");
3396
3431
  var import_react8 = require("react");
3397
3432
  var import_react_hook_form13 = require("react-hook-form");
@@ -3448,7 +3483,7 @@ function DefaultCurrentIdentifierButton() {
3448
3483
  if (formState.current === "provide_identifier") {
3449
3484
  return null;
3450
3485
  }
3451
- if (flowType === import_client_fetch29.FlowType.Login && flow.requested_aal === "aal2") {
3486
+ if (flowType === import_client_fetch31.FlowType.Login && flow.requested_aal === "aal2") {
3452
3487
  return null;
3453
3488
  }
3454
3489
  const nodeBackButton = getBackButtonNodeAttributes(flowType, ui.nodes);
@@ -3463,7 +3498,7 @@ function DefaultCurrentIdentifierButton() {
3463
3498
  if (screenSelectionNode) {
3464
3499
  return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("form", { action: flow.ui.action, method: flow.ui.method, children: [
3465
3500
  flow.ui.nodes.filter((n) => {
3466
- if ((0, import_client_fetch29.isUiNodeInputAttributes)(n.attributes)) {
3501
+ if ((0, import_client_fetch31.isUiNodeInputAttributes)(n.attributes)) {
3467
3502
  return n.attributes.type === "hidden";
3468
3503
  }
3469
3504
  return false;
@@ -3541,18 +3576,18 @@ function getBackButtonNodeAttributes(flowType, nodes) {
3541
3576
  var _a, _b;
3542
3577
  let nodeBackButtonAttributes;
3543
3578
  switch (flowType) {
3544
- case import_client_fetch29.FlowType.Login:
3579
+ case import_client_fetch31.FlowType.Login:
3545
3580
  nodeBackButtonAttributes = (_a = nodes.find(
3546
- (node) => (0, import_client_fetch29.isUiNodeInputAttributes)(node.attributes) && node.attributes.name === "identifier" && ["default", "identifier_first"].includes(node.group)
3581
+ (node) => (0, import_client_fetch31.isUiNodeInputAttributes)(node.attributes) && node.attributes.name === "identifier" && ["default", "identifier_first"].includes(node.group)
3547
3582
  )) == null ? void 0 : _a.attributes;
3548
3583
  break;
3549
- case import_client_fetch29.FlowType.Registration:
3584
+ case import_client_fetch31.FlowType.Registration:
3550
3585
  nodeBackButtonAttributes = guessRegistrationBackButton(nodes);
3551
3586
  break;
3552
- case import_client_fetch29.FlowType.Recovery:
3553
- case import_client_fetch29.FlowType.Verification:
3587
+ case import_client_fetch31.FlowType.Recovery:
3588
+ case import_client_fetch31.FlowType.Verification:
3554
3589
  nodeBackButtonAttributes = (_b = nodes.find(
3555
- (n) => (0, import_client_fetch29.isUiNodeInputAttributes)(n.attributes) && n.attributes.name === "email"
3590
+ (n) => (0, import_client_fetch31.isUiNodeInputAttributes)(n.attributes) && n.attributes.name === "email"
3556
3591
  )) == null ? void 0 : _b.attributes;
3557
3592
  break;
3558
3593
  }
@@ -3569,7 +3604,7 @@ var backButtonCandiates = [
3569
3604
  function guessRegistrationBackButton(uiNodes) {
3570
3605
  var _a;
3571
3606
  return (_a = uiNodes.find(
3572
- (node) => (0, import_client_fetch29.isUiNodeInputAttributes)(node.attributes) && backButtonCandiates.includes(node.attributes.name) && node.group === "default"
3607
+ (node) => (0, import_client_fetch31.isUiNodeInputAttributes)(node.attributes) && backButtonCandiates.includes(node.attributes.name) && node.group === "default"
3573
3608
  )) == null ? void 0 : _a.attributes;
3574
3609
  }
3575
3610
 
@@ -3650,7 +3685,7 @@ function cn(...inputs) {
3650
3685
  // src/theme/default/components/form/index.tsx
3651
3686
  var import_react_intl13 = require("react-intl");
3652
3687
  var import_elements_react8 = require("@ory/elements-react");
3653
- var import_client_fetch31 = require("@ory/client-fetch");
3688
+ var import_client_fetch33 = require("@ory/client-fetch");
3654
3689
 
3655
3690
  // src/theme/default/components/form/social.tsx
3656
3691
  var import_elements_react7 = require("@ory/elements-react");
@@ -3873,7 +3908,7 @@ function Spinner({ className }) {
3873
3908
  }
3874
3909
 
3875
3910
  // src/theme/default/components/form/social.tsx
3876
- var import_client_fetch30 = require("@ory/client-fetch");
3911
+ var import_client_fetch32 = require("@ory/client-fetch");
3877
3912
  var import_jsx_runtime56 = require("react/jsx-runtime");
3878
3913
  function extractProvider(context) {
3879
3914
  if (context && typeof context === "object" && "provider" in context && typeof context.provider === "string") {
@@ -3900,7 +3935,7 @@ function DefaultButtonSocial({
3900
3935
  formState: { isSubmitting }
3901
3936
  } = (0, import_react_hook_form14.useFormContext)();
3902
3937
  const oidcNodeCount = (_a = ui.nodes.filter(
3903
- (node2) => node2.group === import_client_fetch30.UiNodeGroupEnum.Oidc || node2.group === import_client_fetch30.UiNodeGroupEnum.Saml
3938
+ (node2) => node2.group === import_client_fetch32.UiNodeGroupEnum.Oidc || node2.group === import_client_fetch32.UiNodeGroupEnum.Saml
3904
3939
  ).length) != null ? _a : 0;
3905
3940
  const Logo = logos2[attributes.value.split("-")[0]];
3906
3941
  const showLabel = _showLabel != null ? _showLabel : oidcNodeCount % 3 !== 0 && oidcNodeCount % 4 !== 0;
@@ -3991,7 +4026,7 @@ function DefaultMessageContainer({ children }) {
3991
4026
  "section",
3992
4027
  {
3993
4028
  className: cn(
3994
- flowType === import_client_fetch31.FlowType.Settings ? "text-center" : "text-left"
4029
+ flowType === import_client_fetch33.FlowType.Settings ? "text-center" : "text-left"
3995
4030
  ),
3996
4031
  children
3997
4032
  }
@@ -4015,64 +4050,76 @@ function DefaultMessage({ message }) {
4015
4050
  }
4016
4051
 
4017
4052
  // src/theme/default/components/card/auth-method-list-item.tsx
4053
+ var import_elements_react9 = require("@ory/elements-react");
4054
+ var import_react10 = require("react");
4018
4055
  var import_react_intl14 = require("react-intl");
4056
+ var import_usehooks_ts2 = require("usehooks-ts");
4019
4057
 
4020
- // src/theme/default/assets/icons/code.svg
4058
+ // src/theme/default/assets/icons/alert-triangle.svg
4021
4059
  var React17 = __toESM(require("react"));
4022
4060
  var import_jsx_runtime58 = require("react/jsx-runtime");
4023
- var SvgCode = (props) => {
4061
+ var SvgAlertTriangle = (props) => {
4024
4062
  var _a, _b;
4025
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("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__ */ (0, import_jsx_runtime58.jsx)("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" }) });
4063
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("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__ */ (0, import_jsx_runtime58.jsx)("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" }) });
4026
4064
  };
4027
- var code_default = SvgCode;
4065
+ var alert_triangle_default = SvgAlertTriangle;
4028
4066
 
4029
- // src/theme/default/assets/icons/passkey.svg
4067
+ // src/theme/default/assets/icons/code-asterix.svg
4030
4068
  var React18 = __toESM(require("react"));
4031
4069
  var import_jsx_runtime59 = require("react/jsx-runtime");
4032
- var SvgPasskey = (props) => {
4070
+ var SvgCodeAsterix = (props) => {
4033
4071
  var _a, _b;
4034
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("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__ */ (0, import_jsx_runtime59.jsx)("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" }) });
4072
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("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__ */ (0, import_jsx_runtime59.jsx)("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" }) });
4035
4073
  };
4036
- var passkey_default = SvgPasskey;
4074
+ var code_asterix_default = SvgCodeAsterix;
4037
4075
 
4038
- // src/theme/default/assets/icons/password.svg
4076
+ // src/theme/default/assets/icons/code.svg
4039
4077
  var React19 = __toESM(require("react"));
4040
4078
  var import_jsx_runtime60 = require("react/jsx-runtime");
4041
- var SvgPassword = (props) => {
4079
+ var SvgCode = (props) => {
4042
4080
  var _a, _b;
4043
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("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__ */ (0, import_jsx_runtime60.jsx)("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" }) });
4081
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("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__ */ (0, import_jsx_runtime60.jsx)("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" }) });
4044
4082
  };
4045
- var password_default = SvgPassword;
4083
+ var code_default = SvgCode;
4046
4084
 
4047
- // src/theme/default/assets/icons/webauthn.svg
4085
+ // src/theme/default/assets/icons/passkey.svg
4048
4086
  var React20 = __toESM(require("react"));
4049
4087
  var import_jsx_runtime61 = require("react/jsx-runtime");
4050
- var SvgWebauthn = (props) => {
4088
+ var SvgPasskey = (props) => {
4051
4089
  var _a, _b;
4052
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("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__ */ (0, import_jsx_runtime61.jsx)("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" }) });
4090
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("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__ */ (0, import_jsx_runtime61.jsx)("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" }) });
4053
4091
  };
4054
- var webauthn_default = SvgWebauthn;
4092
+ var passkey_default = SvgPasskey;
4055
4093
 
4056
- // src/theme/default/assets/icons/totp.svg
4094
+ // src/theme/default/assets/icons/password.svg
4057
4095
  var React21 = __toESM(require("react"));
4058
4096
  var import_jsx_runtime62 = require("react/jsx-runtime");
4059
- var SvgTotp = (props) => {
4097
+ var SvgPassword = (props) => {
4060
4098
  var _a, _b;
4061
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("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__ */ (0, import_jsx_runtime62.jsx)("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" }) });
4099
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("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__ */ (0, import_jsx_runtime62.jsx)("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" }) });
4062
4100
  };
4063
- var totp_default = SvgTotp;
4101
+ var password_default = SvgPassword;
4064
4102
 
4065
- // src/theme/default/assets/icons/code-asterix.svg
4103
+ // src/theme/default/assets/icons/totp.svg
4066
4104
  var React22 = __toESM(require("react"));
4067
4105
  var import_jsx_runtime63 = require("react/jsx-runtime");
4068
- var SvgCodeAsterix = (props) => {
4106
+ var SvgTotp = (props) => {
4069
4107
  var _a, _b;
4070
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("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__ */ (0, import_jsx_runtime63.jsx)("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" }) });
4108
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("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__ */ (0, import_jsx_runtime63.jsx)("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" }) });
4071
4109
  };
4072
- var code_asterix_default = SvgCodeAsterix;
4110
+ var totp_default = SvgTotp;
4073
4111
 
4074
- // src/theme/default/components/card/list-item.tsx
4112
+ // src/theme/default/assets/icons/webauthn.svg
4113
+ var React23 = __toESM(require("react"));
4075
4114
  var import_jsx_runtime64 = require("react/jsx-runtime");
4115
+ var SvgWebauthn = (props) => {
4116
+ var _a, _b;
4117
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("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__ */ (0, import_jsx_runtime64.jsx)("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" }) });
4118
+ };
4119
+ var webauthn_default = SvgWebauthn;
4120
+
4121
+ // src/theme/default/components/card/list-item.tsx
4122
+ var import_jsx_runtime65 = require("react/jsx-runtime");
4076
4123
  function ListItem({
4077
4124
  icon: Icon,
4078
4125
  as,
@@ -4083,19 +4130,20 @@ function ListItem({
4083
4130
  ...props
4084
4131
  }) {
4085
4132
  const Comp = as || "div";
4086
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
4133
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
4087
4134
  Comp,
4088
4135
  {
4089
4136
  ...props,
4090
4137
  className: cn(
4091
4138
  "flex cursor-pointer gap-3 text-left items-start w-full rounded-buttons p-2 hover:bg-interface-background-default-primary-hover",
4139
+ "disabled:hover:bg-ui-transparent disabled:cursor-default disabled:opacity-50",
4092
4140
  className
4093
4141
  ),
4094
4142
  children: [
4095
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "mt-1", children: Icon && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Icon, { size: 16, className: "text-interface-foreground-brand-primary" }) }),
4096
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("span", { className: "flex-1 leading-normal inline-flex flex-col max-w-full min-w-1", children: [
4097
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-interface-foreground-default-primary break-words", children: title }),
4098
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-interface-foreground-default-secondary", children: description })
4143
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "mt-1", children: Icon && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Icon, { size: 16, className: "text-interface-foreground-brand-primary" }) }),
4144
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("span", { className: "flex-1 leading-normal inline-flex flex-col max-w-full min-w-1", children: [
4145
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "text-interface-foreground-default-primary break-words", children: title }),
4146
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "text-interface-foreground-default-secondary", children: description })
4099
4147
  ] }),
4100
4148
  children
4101
4149
  ]
@@ -4104,7 +4152,7 @@ function ListItem({
4104
4152
  }
4105
4153
 
4106
4154
  // src/theme/default/components/card/auth-method-list-item.tsx
4107
- var import_jsx_runtime65 = require("react/jsx-runtime");
4155
+ var import_jsx_runtime66 = require("react/jsx-runtime");
4108
4156
  var iconsMap = {
4109
4157
  code: code_default,
4110
4158
  passkey: passkey_default,
@@ -4123,7 +4171,16 @@ function DefaultAuthMethodListItem({
4123
4171
  var _a;
4124
4172
  const intl = (0, import_react_intl14.useIntl)();
4125
4173
  const Icon = iconsMap[group] || null;
4126
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
4174
+ const { flow } = (0, import_elements_react9.useOryFlow)();
4175
+ if (group === "passkey") {
4176
+ const passkeyNode = findPasskeyNode(flow);
4177
+ if (!passkeyNode) {
4178
+ console.error("Passkey node not found");
4179
+ return null;
4180
+ }
4181
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(PasskeyListItem, { passkeyNode, group, title });
4182
+ }
4183
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
4127
4184
  ListItem,
4128
4185
  {
4129
4186
  as: "button",
@@ -4141,15 +4198,100 @@ function DefaultAuthMethodListItem({
4141
4198
  }
4142
4199
  );
4143
4200
  }
4201
+ function findPasskeyNode(flow) {
4202
+ const passkeyTriggerNode = flow.ui.nodes.find(
4203
+ (node) => node.attributes.node_type === "input" && ["passkey_login_trigger", "passkey_register_trigger"].includes(
4204
+ node.attributes.name
4205
+ )
4206
+ );
4207
+ if (!passkeyTriggerNode) {
4208
+ return void 0;
4209
+ }
4210
+ return passkeyTriggerNode;
4211
+ }
4212
+ function PasskeyListItem({ group, title, passkeyNode }) {
4213
+ var _a, _b;
4214
+ const intl = (0, import_react_intl14.useIntl)();
4215
+ const Icon = iconsMap[group] || null;
4216
+ const [init, setInit] = (0, import_react10.useState)(false);
4217
+ const [failedToLoad, setFailedToLoad] = (0, import_react10.useState)(false);
4218
+ const clickHandler = () => {
4219
+ if (!passkeyNode.attributes.onclickTrigger) {
4220
+ console.error("Passkey node not found");
4221
+ return;
4222
+ }
4223
+ const fn = triggerToFunction(passkeyNode.attributes.onclickTrigger);
4224
+ if (fn) {
4225
+ fn();
4226
+ } else {
4227
+ console.error("Passkey node trigger function not found");
4228
+ }
4229
+ };
4230
+ (0, import_react10.useEffect)(() => {
4231
+ if (!passkeyNode.attributes.onclickTrigger) {
4232
+ console.error("Passkey node not found");
4233
+ return;
4234
+ }
4235
+ const fn = triggerToFunction(passkeyNode.attributes.onclickTrigger);
4236
+ setInit(typeof fn === "function");
4237
+ }, [passkeyNode]);
4238
+ (0, import_usehooks_ts2.useEventListener)("oryWebAuthnInitialized", () => {
4239
+ setInit(true);
4240
+ });
4241
+ (0, import_usehooks_ts2.useTimeout)(() => {
4242
+ if (!init) {
4243
+ setFailedToLoad(true);
4244
+ }
4245
+ }, 5e3);
4246
+ if (failedToLoad) {
4247
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
4248
+ ListItem,
4249
+ {
4250
+ as: "button",
4251
+ icon: Icon,
4252
+ disabled: true,
4253
+ title: intl.formatMessage(
4254
+ { id: (_a = title == null ? void 0 : title.id) != null ? _a : `two-step.${group}.title` },
4255
+ title == null ? void 0 : title.values
4256
+ ),
4257
+ description: intl.formatMessage({
4258
+ id: "two-step.passkey.description.error"
4259
+ }),
4260
+ type: "button",
4261
+ "data-testid": `ory/form/auth-picker/${group}`,
4262
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(alert_triangle_default, {})
4263
+ }
4264
+ );
4265
+ }
4266
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
4267
+ ListItem,
4268
+ {
4269
+ as: "button",
4270
+ icon: Icon,
4271
+ disabled: !init,
4272
+ name: passkeyNode.attributes.name,
4273
+ title: intl.formatMessage(
4274
+ { id: (_b = title == null ? void 0 : title.id) != null ? _b : `two-step.${group}.title` },
4275
+ title == null ? void 0 : title.values
4276
+ ),
4277
+ description: intl.formatMessage({
4278
+ id: `two-step.${group}.description`
4279
+ }),
4280
+ onClick: clickHandler,
4281
+ type: "button",
4282
+ "data-testid": `ory/form/auth-picker/${group}`
4283
+ }
4284
+ );
4285
+ }
4144
4286
 
4145
4287
  // src/theme/default/components/form/button.tsx
4146
- var import_client_fetch32 = require("@ory/client-fetch");
4147
- var import_elements_react9 = require("@ory/elements-react");
4288
+ var import_client_fetch34 = require("@ory/client-fetch");
4289
+ var import_elements_react10 = require("@ory/elements-react");
4148
4290
  var import_class_variance_authority = require("class-variance-authority");
4149
4291
  var import_react_hook_form15 = require("react-hook-form");
4150
4292
  var import_react_intl15 = require("react-intl");
4151
- var import_react10 = require("react");
4152
- var import_jsx_runtime66 = require("react/jsx-runtime");
4293
+ var import_react11 = require("react");
4294
+ var import_jsx_runtime67 = require("react/jsx-runtime");
4153
4295
  var buttonStyles = (0, import_class_variance_authority.cva)(
4154
4296
  [
4155
4297
  "relative flex justify-center gap-3 overflow-hidden rounded-buttons leading-none ring-1 ring-inset font-medium",
@@ -4189,20 +4331,20 @@ var DefaultButton = ({
4189
4331
  }) => {
4190
4332
  var _a;
4191
4333
  const { type, name, value, ...rest } = attributes;
4192
- const [clicked, setClicked] = (0, import_react10.useState)(false);
4334
+ const [clicked, setClicked] = (0, import_react11.useState)(false);
4193
4335
  const intl = (0, import_react_intl15.useIntl)();
4194
- const label = (0, import_client_fetch32.getNodeLabel)(node);
4336
+ const label = (0, import_client_fetch34.getNodeLabel)(node);
4195
4337
  const {
4196
4338
  formState: { isSubmitting },
4197
4339
  setValue
4198
4340
  } = (0, import_react_hook_form15.useFormContext)();
4199
- (0, import_react10.useEffect)(() => {
4341
+ (0, import_react11.useEffect)(() => {
4200
4342
  if (!isSubmitting) {
4201
4343
  setClicked(false);
4202
4344
  }
4203
4345
  }, [isSubmitting]);
4204
4346
  const isPrimary = attributes.name === "method" || attributes.name.includes("passkey") || attributes.name.includes("webauthn") || attributes.name.includes("lookup_secret") || attributes.name.includes("action") && attributes.value === "accept";
4205
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
4347
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4206
4348
  "button",
4207
4349
  {
4208
4350
  ...omitInputAttributes(rest),
@@ -4222,8 +4364,8 @@ var DefaultButton = ({
4222
4364
  disabled: (_a = rest.disabled) != null ? _a : isSubmitting,
4223
4365
  "data-loading": clicked,
4224
4366
  children: [
4225
- clicked ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Spinner, {}) : null,
4226
- label ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { children: (0, import_elements_react9.uiTextToFormattedMessage)(label, intl) }) : ""
4367
+ clicked ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Spinner, {}) : null,
4368
+ label ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { children: (0, import_elements_react10.uiTextToFormattedMessage)(label, intl) }) : ""
4227
4369
  ]
4228
4370
  }
4229
4371
  );
@@ -4231,14 +4373,14 @@ var DefaultButton = ({
4231
4373
  DefaultButton.displayName = "DefaultButton";
4232
4374
 
4233
4375
  // src/theme/default/components/form/checkbox.tsx
4234
- var import_client_fetch33 = require("@ory/client-fetch");
4235
- var import_elements_react10 = require("@ory/elements-react");
4376
+ var import_client_fetch35 = require("@ory/client-fetch");
4377
+ var import_elements_react11 = require("@ory/elements-react");
4236
4378
  var import_react_hook_form16 = require("react-hook-form");
4237
4379
  var import_react_intl17 = require("react-intl");
4238
4380
 
4239
4381
  // src/theme/default/components/ui/checkbox-label.tsx
4240
4382
  var import_react_intl16 = require("react-intl");
4241
- var import_jsx_runtime67 = require("react/jsx-runtime");
4383
+ var import_jsx_runtime68 = require("react/jsx-runtime");
4242
4384
  var linkRegex = /\[([^\]]+)\]\(([^)]+)\)/g;
4243
4385
  function computeLabelElements(labelText) {
4244
4386
  const elements = [];
@@ -4254,7 +4396,7 @@ function computeLabelElements(labelText) {
4254
4396
  elements.push(labelText.slice(lastIndex, matchStart));
4255
4397
  }
4256
4398
  elements.push(
4257
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4399
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
4258
4400
  "a",
4259
4401
  {
4260
4402
  href: url,
@@ -4279,13 +4421,13 @@ function CheckboxLabel({ label }) {
4279
4421
  return null;
4280
4422
  }
4281
4423
  const labelText = uiTextToFormattedMessage(label, intl);
4282
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_jsx_runtime67.Fragment, { children: computeLabelElements(labelText) });
4424
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_jsx_runtime68.Fragment, { children: computeLabelElements(labelText) });
4283
4425
  }
4284
4426
 
4285
4427
  // src/theme/default/components/form/checkbox.tsx
4286
- var import_jsx_runtime68 = require("react/jsx-runtime");
4428
+ var import_jsx_runtime69 = require("react/jsx-runtime");
4287
4429
  function CheckboxSVG() {
4288
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
4430
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4289
4431
  "svg",
4290
4432
  {
4291
4433
  className: "absolute hidden size-4 peer-checked:block fill-checkbox-foreground-checked",
@@ -4294,7 +4436,7 @@ function CheckboxSVG() {
4294
4436
  height: "16",
4295
4437
  viewBox: "0 0 16 16",
4296
4438
  fill: "none",
4297
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
4439
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4298
4440
  "path",
4299
4441
  {
4300
4442
  fillRule: "evenodd",
@@ -4311,12 +4453,12 @@ var DefaultCheckbox = ({
4311
4453
  }) => {
4312
4454
  const { value, name, ...attributes } = initialAttributes;
4313
4455
  const intl = (0, import_react_intl17.useIntl)();
4314
- const label = (0, import_client_fetch33.getNodeLabel)(node);
4456
+ const label = (0, import_client_fetch35.getNodeLabel)(node);
4315
4457
  const { register } = (0, import_react_hook_form16.useFormContext)();
4316
4458
  const hasError = node.messages.some((m) => m.type === "error");
4317
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("label", { className: "flex items-start gap-3 self-stretch antialiased", children: [
4318
- /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("span", { className: "flex h-5 items-center", children: [
4319
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
4459
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("label", { className: "flex items-start gap-3 self-stretch antialiased", children: [
4460
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("span", { className: "flex h-5 items-center", children: [
4461
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4320
4462
  "input",
4321
4463
  {
4322
4464
  ...omitInputAttributes(attributes),
@@ -4330,19 +4472,19 @@ var DefaultCheckbox = ({
4330
4472
  ...register(name)
4331
4473
  }
4332
4474
  ),
4333
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(CheckboxSVG, {})
4475
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(CheckboxSVG, {})
4334
4476
  ] }),
4335
- /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("span", { className: "flex flex-col", children: [
4336
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "font-normal leading-tight text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(CheckboxLabel, { label }) }),
4337
- node.messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
4477
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("span", { className: "flex flex-col", children: [
4478
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "font-normal leading-tight text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(CheckboxLabel, { label }) }),
4479
+ node.messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4338
4480
  "span",
4339
4481
  {
4340
4482
  className: cn(
4341
4483
  "mt-1",
4342
4484
  message.type === "error" ? "text-interface-foreground-validation-danger" : "text-interface-foreground-default-secondary"
4343
4485
  ),
4344
- ...(0, import_elements_react10.messageTestId)(message),
4345
- children: (0, import_elements_react10.uiTextToFormattedMessage)(message, intl)
4486
+ ...(0, import_elements_react11.messageTestId)(message),
4487
+ children: (0, import_elements_react11.uiTextToFormattedMessage)(message, intl)
4346
4488
  },
4347
4489
  message.id
4348
4490
  ))
@@ -4351,14 +4493,14 @@ var DefaultCheckbox = ({
4351
4493
  };
4352
4494
 
4353
4495
  // src/theme/default/components/form/group-container.tsx
4354
- var import_elements_react11 = require("@ory/elements-react");
4355
- var import_client_fetch34 = require("@ory/client-fetch");
4496
+ var import_elements_react12 = require("@ory/elements-react");
4497
+ var import_client_fetch36 = require("@ory/client-fetch");
4356
4498
 
4357
4499
  // src/util/childCounter.ts
4358
- var import_react11 = require("react");
4500
+ var import_react12 = require("react");
4359
4501
  function countRenderableChildren(children) {
4360
- return import_react11.Children.toArray(children).filter((c) => {
4361
- if ((0, import_react11.isValidElement)(c)) {
4502
+ return import_react12.Children.toArray(children).filter((c) => {
4503
+ if ((0, import_react12.isValidElement)(c)) {
4362
4504
  return true;
4363
4505
  }
4364
4506
  return false;
@@ -4366,19 +4508,19 @@ function countRenderableChildren(children) {
4366
4508
  }
4367
4509
 
4368
4510
  // src/theme/default/components/form/group-container.tsx
4369
- var import_jsx_runtime69 = require("react/jsx-runtime");
4511
+ var import_jsx_runtime70 = require("react/jsx-runtime");
4370
4512
  function DefaultGroupContainer({ children }) {
4371
- const { flowType } = (0, import_elements_react11.useOryFlow)();
4513
+ const { flowType } = (0, import_elements_react12.useOryFlow)();
4372
4514
  const count = countRenderableChildren(children);
4373
4515
  if (count === 0) {
4374
4516
  return null;
4375
4517
  }
4376
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4518
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4377
4519
  "div",
4378
4520
  {
4379
4521
  className: cn(
4380
4522
  "grid",
4381
- flowType === import_client_fetch34.FlowType.OAuth2Consent ? "grid-cols-2 gap-2" : "grid-cols-1 gap-8"
4523
+ flowType === import_client_fetch36.FlowType.OAuth2Consent ? "grid-cols-2 gap-2" : "grid-cols-1 gap-8"
4382
4524
  ),
4383
4525
  children
4384
4526
  }
@@ -4386,16 +4528,16 @@ function DefaultGroupContainer({ children }) {
4386
4528
  }
4387
4529
 
4388
4530
  // src/theme/default/components/form/horizontal-divider.tsx
4389
- var import_jsx_runtime70 = require("react/jsx-runtime");
4531
+ var import_jsx_runtime71 = require("react/jsx-runtime");
4390
4532
  function DefaultHorizontalDivider() {
4391
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("hr", { className: "border-interface-border-default-primary" });
4533
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("hr", { className: "border-interface-border-default-primary" });
4392
4534
  }
4393
4535
 
4394
4536
  // src/theme/default/components/form/image.tsx
4395
- var import_jsx_runtime71 = require("react/jsx-runtime");
4537
+ var import_jsx_runtime72 = require("react/jsx-runtime");
4396
4538
  function DefaultImage({ attributes, node }) {
4397
4539
  var _a;
4398
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("figure", { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4540
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("figure", { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
4399
4541
  "img",
4400
4542
  {
4401
4543
  ...omitInputAttributes(attributes),
@@ -4405,35 +4547,35 @@ function DefaultImage({ attributes, node }) {
4405
4547
  }
4406
4548
 
4407
4549
  // src/theme/default/components/form/input.tsx
4408
- var import_client_fetch35 = require("@ory/client-fetch");
4409
- var import_elements_react12 = require("@ory/elements-react");
4410
- var import_react12 = require("react");
4550
+ var import_client_fetch37 = require("@ory/client-fetch");
4551
+ var import_elements_react13 = require("@ory/elements-react");
4552
+ var import_react13 = require("react");
4411
4553
  var import_react_hook_form17 = require("react-hook-form");
4412
4554
  var import_react_intl18 = require("react-intl");
4413
4555
 
4414
4556
  // src/theme/default/assets/icons/eye-off.svg
4415
- var React23 = __toESM(require("react"));
4416
- var import_jsx_runtime72 = require("react/jsx-runtime");
4557
+ var React24 = __toESM(require("react"));
4558
+ var import_jsx_runtime73 = require("react/jsx-runtime");
4417
4559
  var SvgEyeOff = (props) => {
4418
4560
  var _a, _b;
4419
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("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__ */ (0, import_jsx_runtime72.jsx)("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" }) });
4561
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("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__ */ (0, import_jsx_runtime73.jsx)("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" }) });
4420
4562
  };
4421
4563
  var eye_off_default = SvgEyeOff;
4422
4564
 
4423
4565
  // src/theme/default/assets/icons/eye.svg
4424
- var React24 = __toESM(require("react"));
4425
- var import_jsx_runtime73 = require("react/jsx-runtime");
4566
+ var React25 = __toESM(require("react"));
4567
+ var import_jsx_runtime74 = require("react/jsx-runtime");
4426
4568
  var SvgEye = (props) => {
4427
4569
  var _a, _b;
4428
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("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__ */ (0, import_jsx_runtime73.jsxs)("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
4429
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { d: "M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }),
4430
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { d: "M21 12q-3.6 6-9 6t-9-6q3.6-6 9-6t9 6" })
4570
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("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__ */ (0, import_jsx_runtime74.jsxs)("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
4571
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("path", { d: "M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }),
4572
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("path", { d: "M21 12q-3.6 6-9 6t-9-6q3.6-6 9-6t9 6" })
4431
4573
  ] }) });
4432
4574
  };
4433
4575
  var eye_default = SvgEye;
4434
4576
 
4435
4577
  // src/theme/default/components/form/input.tsx
4436
- var import_jsx_runtime74 = require("react/jsx-runtime");
4578
+ var import_jsx_runtime75 = require("react/jsx-runtime");
4437
4579
  var defaultInputClassName = cn(
4438
4580
  "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",
4439
4581
  "bg-input-background-default border-input-border-default text-input-foreground-primary",
@@ -4447,23 +4589,23 @@ var DefaultInput = ({
4447
4589
  attributes,
4448
4590
  onClick
4449
4591
  }) => {
4450
- const label = (0, import_client_fetch35.getNodeLabel)(node);
4592
+ const label = (0, import_client_fetch37.getNodeLabel)(node);
4451
4593
  const { register } = (0, import_react_hook_form17.useFormContext)();
4452
4594
  const { value, autocomplete, name, maxlength, ...rest } = attributes;
4453
4595
  const intl = (0, import_react_intl18.useIntl)();
4454
- const { flowType } = (0, import_elements_react12.useOryFlow)();
4455
- const inputRef = (0, import_react12.useRef)(null);
4596
+ const { flowType } = (0, import_elements_react13.useOryFlow)();
4597
+ const inputRef = (0, import_react13.useRef)(null);
4456
4598
  const formattedLabel = label ? intl.formatMessage(
4457
4599
  {
4458
4600
  id: "input.placeholder",
4459
4601
  defaultMessage: "Enter your {placeholder}"
4460
4602
  },
4461
4603
  {
4462
- placeholder: (0, import_elements_react12.uiTextToFormattedMessage)(label, intl)
4604
+ placeholder: (0, import_elements_react13.uiTextToFormattedMessage)(label, intl)
4463
4605
  }
4464
4606
  ) : "";
4465
4607
  if (rest.type === "hidden") {
4466
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4608
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4467
4609
  "input",
4468
4610
  {
4469
4611
  ...omitInputAttributes(rest),
@@ -4477,16 +4619,16 @@ var DefaultInput = ({
4477
4619
  );
4478
4620
  }
4479
4621
  const { ref, ...restRegister } = register(name, { value });
4480
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
4622
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
4481
4623
  "div",
4482
4624
  {
4483
4625
  className: cn(
4484
4626
  "relative flex justify-stretch",
4485
4627
  // The settings flow input fields are supposed to be dense, so we don't need the extra padding we want on the user flows.
4486
- flowType === import_client_fetch35.FlowType.Settings && "max-w-[488px]"
4628
+ flowType === import_client_fetch37.FlowType.Settings && "max-w-[488px]"
4487
4629
  ),
4488
4630
  children: [
4489
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4631
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4490
4632
  "input",
4491
4633
  {
4492
4634
  ...omitInputAttributes(rest),
@@ -4503,7 +4645,7 @@ var DefaultInput = ({
4503
4645
  ...restRegister
4504
4646
  }
4505
4647
  ),
4506
- rest.type === "password" && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(PasswordToggle, { inputRef })
4648
+ rest.type === "password" && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(PasswordToggle, { inputRef })
4507
4649
  ]
4508
4650
  }
4509
4651
  );
@@ -4511,31 +4653,31 @@ var DefaultInput = ({
4511
4653
  function PasswordToggle({
4512
4654
  inputRef
4513
4655
  }) {
4514
- const [shown, setShown] = (0, import_react12.useState)(false);
4656
+ const [shown, setShown] = (0, import_react13.useState)(false);
4515
4657
  const handleClick = () => {
4516
4658
  setShown(!shown);
4517
4659
  if (inputRef.current) {
4518
4660
  inputRef.current.type = shown ? "password" : "text";
4519
4661
  }
4520
4662
  };
4521
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4663
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4522
4664
  "button",
4523
4665
  {
4524
4666
  onClick: handleClick,
4525
4667
  className: "absolute right-0 h-full w-12 flex items-center justify-center",
4526
4668
  type: "button",
4527
4669
  "aria-label": "Toggle password visibility",
4528
- children: shown ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(eye_off_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(eye_default, {})
4670
+ children: shown ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(eye_off_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(eye_default, {})
4529
4671
  }
4530
4672
  );
4531
4673
  }
4532
4674
 
4533
4675
  // src/theme/default/components/form/label.tsx
4534
- var import_client_fetch36 = require("@ory/client-fetch");
4535
- var import_elements_react13 = require("@ory/elements-react");
4676
+ var import_client_fetch38 = require("@ory/client-fetch");
4677
+ var import_elements_react14 = require("@ory/elements-react");
4536
4678
  var import_react_hook_form18 = require("react-hook-form");
4537
4679
  var import_react_intl19 = require("react-intl");
4538
- var import_jsx_runtime75 = require("react/jsx-runtime");
4680
+ var import_jsx_runtime76 = require("react/jsx-runtime");
4539
4681
  function findResendNode(nodes) {
4540
4682
  return nodes.find(
4541
4683
  (n) => "name" in n.attributes && (n.attributes.name === "email" && n.attributes.type === "submit" || n.attributes.name === "resend")
@@ -4548,10 +4690,10 @@ function DefaultLabel({
4548
4690
  ...rest
4549
4691
  }) {
4550
4692
  const intl = (0, import_react_intl19.useIntl)();
4551
- const label = (0, import_client_fetch36.getNodeLabel)(node);
4552
- const { Message } = (0, import_elements_react13.useComponents)();
4553
- const { flowType, flow } = (0, import_elements_react13.useOryFlow)();
4554
- const config = (0, import_elements_react13.useOryConfiguration)();
4693
+ const label = (0, import_client_fetch38.getNodeLabel)(node);
4694
+ const { Message } = (0, import_elements_react14.useComponents)();
4695
+ const { flowType, flow } = (0, import_elements_react14.useOryFlow)();
4696
+ const config = (0, import_elements_react14.useOryConfiguration)();
4555
4697
  const { setValue, formState } = (0, import_react_hook_form18.useFormContext)();
4556
4698
  const isPassword = attributes.type === "password";
4557
4699
  const resendNode = findResendNode(flow.ui.nodes);
@@ -4561,21 +4703,21 @@ function DefaultLabel({
4561
4703
  }
4562
4704
  };
4563
4705
  const fieldError = formState.errors[attributes.name];
4564
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex flex-col gap-1 antialiased", children: [
4565
- label && /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("span", { className: "inline-flex justify-between", children: [
4566
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4706
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex flex-col gap-1 antialiased", children: [
4707
+ label && /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("span", { className: "inline-flex justify-between", children: [
4708
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4567
4709
  "label",
4568
4710
  {
4569
- ...(0, import_elements_react13.messageTestId)(label),
4711
+ ...(0, import_elements_react14.messageTestId)(label),
4570
4712
  className: "leading-normal text-input-foreground-primary",
4571
4713
  htmlFor: attributes.name,
4572
4714
  "data-testid": `ory/form/node/input/label/${attributes.name}`,
4573
4715
  ...rest,
4574
- children: (0, import_elements_react13.uiTextToFormattedMessage)(label, intl)
4716
+ children: (0, import_elements_react14.uiTextToFormattedMessage)(label, intl)
4575
4717
  }
4576
4718
  ),
4577
- isPassword && config.project.recovery_enabled && flowType === import_client_fetch36.FlowType.Login && // TODO: make it possible to override with a custom component
4578
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4719
+ isPassword && config.project.recovery_enabled && flowType === import_client_fetch38.FlowType.Login && // TODO: make it possible to override with a custom component
4720
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4579
4721
  "a",
4580
4722
  {
4581
4723
  href: initFlowUrl(config.sdk.url, "recovery", flow),
@@ -4586,7 +4728,7 @@ function DefaultLabel({
4586
4728
  })
4587
4729
  }
4588
4730
  ),
4589
- (resendNode == null ? void 0 : resendNode.attributes.node_type) === "input" && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4731
+ (resendNode == null ? void 0 : resendNode.attributes.node_type) === "input" && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4590
4732
  "button",
4591
4733
  {
4592
4734
  type: "submit",
@@ -4599,31 +4741,31 @@ function DefaultLabel({
4599
4741
  )
4600
4742
  ] }),
4601
4743
  children,
4602
- node.messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Message.Content, { message }, message.id)),
4603
- fieldError && (0, import_client_fetch36.instanceOfUiText)(fieldError) && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Message.Content, { message: fieldError })
4744
+ node.messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Message.Content, { message }, message.id)),
4745
+ fieldError && (0, import_client_fetch38.instanceOfUiText)(fieldError) && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Message.Content, { message: fieldError })
4604
4746
  ] });
4605
4747
  }
4606
4748
 
4607
4749
  // src/theme/default/components/form/link-button.tsx
4608
- var import_client_fetch37 = require("@ory/client-fetch");
4609
- var import_elements_react14 = require("@ory/elements-react");
4610
- var import_react13 = require("react");
4750
+ var import_client_fetch39 = require("@ory/client-fetch");
4751
+ var import_elements_react15 = require("@ory/elements-react");
4752
+ var import_react14 = require("react");
4611
4753
  var import_react_intl20 = require("react-intl");
4612
- var import_jsx_runtime76 = require("react/jsx-runtime");
4613
- var DefaultLinkButton = (0, import_react13.forwardRef)(({ attributes, node }, ref) => {
4754
+ var import_jsx_runtime77 = require("react/jsx-runtime");
4755
+ var DefaultLinkButton = (0, import_react14.forwardRef)(({ attributes, node }, ref) => {
4614
4756
  const intl = (0, import_react_intl20.useIntl)();
4615
- const label = (0, import_client_fetch37.getNodeLabel)(node);
4616
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4757
+ const label = (0, import_client_fetch39.getNodeLabel)(node);
4758
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4617
4759
  "a",
4618
4760
  {
4619
4761
  ...omitInputAttributes(attributes),
4620
4762
  ref,
4621
- title: label ? (0, import_elements_react14.uiTextToFormattedMessage)(label, intl) : "",
4763
+ title: label ? (0, import_elements_react15.uiTextToFormattedMessage)(label, intl) : "",
4622
4764
  "data-testid": `ory/form/node/link/${attributes.id}`,
4623
4765
  className: cn(
4624
4766
  "antialiased rounded cursor-pointer text-center border gap-3 leading-none bg-button-primary-background-default hover:bg-button-primary-background-hover transition-colors text-button-primary-foreground-default hover:text-button-primary-foreground-hover p-4 font-medium"
4625
4767
  ),
4626
- children: label ? (0, import_elements_react14.uiTextToFormattedMessage)(label, intl) : ""
4768
+ children: label ? (0, import_elements_react15.uiTextToFormattedMessage)(label, intl) : ""
4627
4769
  }
4628
4770
  );
4629
4771
  });
@@ -4634,9 +4776,9 @@ var import_react_hook_form19 = require("react-hook-form");
4634
4776
 
4635
4777
  // src/theme/default/components/form/shadcn/otp-input.tsx
4636
4778
  var import_input_otp = require("input-otp");
4637
- var React25 = __toESM(require("react"));
4638
- var import_jsx_runtime77 = require("react/jsx-runtime");
4639
- var InputOTP = React25.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4779
+ var React26 = __toESM(require("react"));
4780
+ var import_jsx_runtime78 = require("react/jsx-runtime");
4781
+ var InputOTP = React26.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
4640
4782
  import_input_otp.OTPInput,
4641
4783
  {
4642
4784
  ref,
@@ -4649,12 +4791,12 @@ var InputOTP = React25.forwardRef(({ className, containerClassName, ...props },
4649
4791
  }
4650
4792
  ));
4651
4793
  InputOTP.displayName = "InputOTP";
4652
- var InputOTPGroup = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { ref, className: cn("flex items-center", className), ...props }));
4794
+ var InputOTPGroup = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { ref, className: cn("flex items-center", className), ...props }));
4653
4795
  InputOTPGroup.displayName = "InputOTPGroup";
4654
- var InputOTPSlot = React25.forwardRef(({ index, className, ...props }, ref) => {
4655
- const inputOTPContext = React25.useContext(import_input_otp.OTPInputContext);
4796
+ var InputOTPSlot = React26.forwardRef(({ index, className, ...props }, ref) => {
4797
+ const inputOTPContext = React26.useContext(import_input_otp.OTPInputContext);
4656
4798
  const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
4657
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
4799
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
4658
4800
  "div",
4659
4801
  {
4660
4802
  ref,
@@ -4666,8 +4808,8 @@ var InputOTPSlot = React25.forwardRef(({ index, className, ...props }, ref) => {
4666
4808
  ),
4667
4809
  ...props,
4668
4810
  children: [
4669
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: "inline-block size-4", children: char }),
4670
- hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "h-4 w-px animate-caret-blink bg-interface-background-brand-primary duration-700" }) })
4811
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "inline-block size-4", children: char }),
4812
+ hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "h-4 w-px animate-caret-blink bg-interface-background-brand-primary duration-700" }) })
4671
4813
  ]
4672
4814
  }
4673
4815
  );
@@ -4675,34 +4817,34 @@ var InputOTPSlot = React25.forwardRef(({ index, className, ...props }, ref) => {
4675
4817
  InputOTPSlot.displayName = "InputOTPSlot";
4676
4818
 
4677
4819
  // src/theme/default/components/form/pin-code-input.tsx
4678
- var import_elements_react15 = require("@ory/elements-react");
4679
- var import_client_fetch38 = require("@ory/client-fetch");
4680
- var import_jsx_runtime78 = require("react/jsx-runtime");
4820
+ var import_elements_react16 = require("@ory/elements-react");
4821
+ var import_client_fetch40 = require("@ory/client-fetch");
4822
+ var import_jsx_runtime79 = require("react/jsx-runtime");
4681
4823
  var DefaultPinCodeInput = ({ attributes }) => {
4682
4824
  const { setValue, watch } = (0, import_react_hook_form19.useFormContext)();
4683
4825
  const { maxlength, name } = attributes;
4684
4826
  const elements = maxlength != null ? maxlength : 6;
4685
- const { flowType } = (0, import_elements_react15.useOryFlow)();
4827
+ const { flowType } = (0, import_elements_react16.useOryFlow)();
4686
4828
  const handleInputChange = (v) => {
4687
4829
  setValue(name, v);
4688
4830
  };
4689
4831
  const value = watch(name);
4690
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
4832
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
4691
4833
  InputOTP,
4692
4834
  {
4693
4835
  maxLength: maxlength != null ? maxlength : 6,
4694
4836
  onChange: handleInputChange,
4695
4837
  name,
4696
4838
  value,
4697
- children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
4839
+ children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
4698
4840
  InputOTPGroup,
4699
4841
  {
4700
4842
  className: cn(
4701
4843
  "w-full flex gap-2 justify-stretch",
4702
4844
  // The settings flow input fields are supposed to be dense, so we don't need the extra padding we want on the user flows.
4703
- flowType === import_client_fetch38.FlowType.Settings && "max-w-[488px]"
4845
+ flowType === import_client_fetch40.FlowType.Settings && "max-w-[488px]"
4704
4846
  ),
4705
- children: [...Array(elements)].map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(InputOTPSlot, { index }, index))
4847
+ children: [...Array(elements)].map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(InputOTPSlot, { index }, index))
4706
4848
  }
4707
4849
  )
4708
4850
  }
@@ -4710,13 +4852,13 @@ var DefaultPinCodeInput = ({ attributes }) => {
4710
4852
  };
4711
4853
 
4712
4854
  // src/theme/default/components/form/section.tsx
4713
- var import_jsx_runtime79 = require("react/jsx-runtime");
4855
+ var import_jsx_runtime80 = require("react/jsx-runtime");
4714
4856
  var DefaultFormSection = ({
4715
4857
  children,
4716
4858
  nodes: _nodes,
4717
4859
  ...rest
4718
4860
  }) => {
4719
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
4861
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
4720
4862
  "form",
4721
4863
  {
4722
4864
  className: "flex w-full max-w-screen-sm flex-col md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px] px-4",
@@ -4730,10 +4872,10 @@ var DefaultFormSectionContent = ({
4730
4872
  description,
4731
4873
  children
4732
4874
  }) => {
4733
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("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: [
4734
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex flex-col gap-2", children: [
4735
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("h3", { className: "font-medium text-interface-foreground-default-primary", children: title }),
4736
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "text-interface-foreground-default-secondary", children: description })
4875
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("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: [
4876
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex flex-col gap-2", children: [
4877
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("h3", { className: "font-medium text-interface-foreground-default-primary", children: title }),
4878
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "text-interface-foreground-default-secondary", children: description })
4737
4879
  ] }),
4738
4880
  children
4739
4881
  ] });
@@ -4742,14 +4884,14 @@ var DefaultFormSectionFooter = ({
4742
4884
  children,
4743
4885
  text
4744
4886
  }) => {
4745
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
4887
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
4746
4888
  "div",
4747
4889
  {
4748
4890
  className: cn(
4749
4891
  "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"
4750
4892
  ),
4751
4893
  children: [
4752
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { children: text }),
4894
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { children: text }),
4753
4895
  children
4754
4896
  ]
4755
4897
  }
@@ -4757,63 +4899,63 @@ var DefaultFormSectionFooter = ({
4757
4899
  };
4758
4900
 
4759
4901
  // src/theme/default/components/form/text.tsx
4760
- var import_elements_react16 = require("@ory/elements-react");
4902
+ var import_elements_react17 = require("@ory/elements-react");
4761
4903
  var import_react_intl21 = require("react-intl");
4762
- var import_jsx_runtime80 = require("react/jsx-runtime");
4904
+ var import_jsx_runtime81 = require("react/jsx-runtime");
4763
4905
  function DefaultText({ node, attributes }) {
4764
4906
  var _a;
4765
4907
  const intl = (0, import_react_intl21.useIntl)();
4766
4908
  const lookup = (_a = attributes.text.context) == null ? void 0 : _a.secrets;
4767
4909
  if (lookup) {
4768
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_jsx_runtime80.Fragment, { children: [
4769
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { "data-testid": `ory/form/node/text/${attributes.id}/label`, children: node.meta.label ? (0, import_elements_react16.uiTextToFormattedMessage)(node.meta.label, intl) : "" }),
4770
- lookup.map((text, index) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
4910
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_jsx_runtime81.Fragment, { children: [
4911
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("p", { "data-testid": `ory/form/node/text/${attributes.id}/label`, children: node.meta.label ? (0, import_elements_react17.uiTextToFormattedMessage)(node.meta.label, intl) : "" }),
4912
+ lookup.map((text, index) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
4771
4913
  "pre",
4772
4914
  {
4773
4915
  "data-testid": `ory/form/node/text/lookup_secret_codes/text`,
4774
- children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("code", { children: text ? (0, import_elements_react16.uiTextToFormattedMessage)(text, intl) : "" })
4916
+ children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("code", { children: text ? (0, import_elements_react17.uiTextToFormattedMessage)(text, intl) : "" })
4775
4917
  },
4776
4918
  index
4777
4919
  ))
4778
4920
  ] });
4779
4921
  }
4780
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_jsx_runtime80.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
4922
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_jsx_runtime81.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
4781
4923
  "p",
4782
4924
  {
4783
4925
  "data-testid": `ory/form/node/text/${attributes.id}/label`,
4784
4926
  id: attributes.id,
4785
4927
  children: [
4786
- node.meta.label ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("label", { children: (0, import_elements_react16.uiTextToFormattedMessage)(node.meta.label, intl) }) : null,
4787
- attributes.text ? (0, import_elements_react16.uiTextToFormattedMessage)(attributes.text, intl) : ""
4928
+ node.meta.label ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("label", { children: (0, import_elements_react17.uiTextToFormattedMessage)(node.meta.label, intl) }) : null,
4929
+ attributes.text ? (0, import_elements_react17.uiTextToFormattedMessage)(attributes.text, intl) : ""
4788
4930
  ]
4789
4931
  }
4790
4932
  ) });
4791
4933
  }
4792
4934
 
4793
4935
  // src/theme/default/components/generic/page-header.tsx
4794
- var import_elements_react18 = require("@ory/elements-react");
4936
+ var import_elements_react19 = require("@ory/elements-react");
4795
4937
 
4796
4938
  // src/theme/default/components/ui/user-menu.tsx
4797
- var import_elements_react17 = require("@ory/elements-react");
4939
+ var import_elements_react18 = require("@ory/elements-react");
4798
4940
  var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
4799
4941
 
4800
4942
  // src/theme/default/assets/icons/logout.svg
4801
- var React26 = __toESM(require("react"));
4802
- var import_jsx_runtime81 = require("react/jsx-runtime");
4943
+ var React27 = __toESM(require("react"));
4944
+ var import_jsx_runtime82 = require("react/jsx-runtime");
4803
4945
  var SvgLogout = (props) => {
4804
4946
  var _a, _b;
4805
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("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__ */ (0, import_jsx_runtime81.jsx)("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" }) });
4947
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("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__ */ (0, import_jsx_runtime82.jsx)("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" }) });
4806
4948
  };
4807
4949
  var logout_default = SvgLogout;
4808
4950
 
4809
4951
  // src/theme/default/assets/icons/settings.svg
4810
- var React27 = __toESM(require("react"));
4811
- var import_jsx_runtime82 = require("react/jsx-runtime");
4952
+ var React28 = __toESM(require("react"));
4953
+ var import_jsx_runtime83 = require("react/jsx-runtime");
4812
4954
  var SvgSettings = (props) => {
4813
4955
  var _a, _b;
4814
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("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__ */ (0, import_jsx_runtime82.jsxs)("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
4815
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("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" }),
4816
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("path", { d: "M6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0" })
4956
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("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__ */ (0, import_jsx_runtime83.jsxs)("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
4957
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("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" }),
4958
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { d: "M6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0" })
4817
4959
  ] }) });
4818
4960
  };
4819
4961
  var settings_default = SvgSettings;
@@ -4858,12 +5000,12 @@ var getUserInitials = (session) => {
4858
5000
  };
4859
5001
 
4860
5002
  // src/theme/default/components/ui/dropdown-menu.tsx
4861
- var import_react14 = require("react");
5003
+ var import_react15 = require("react");
4862
5004
  var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
4863
- var import_jsx_runtime83 = require("react/jsx-runtime");
5005
+ var import_jsx_runtime84 = require("react/jsx-runtime");
4864
5006
  var DropdownMenu = DropdownMenuPrimitive.Root;
4865
5007
  var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
4866
- var DropdownMenuContent = (0, import_react14.forwardRef)(({ className, sideOffset = 16, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
5008
+ var DropdownMenuContent = (0, import_react15.forwardRef)(({ className, sideOffset = 16, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
4867
5009
  DropdownMenuPrimitive.Content,
4868
5010
  {
4869
5011
  ref,
@@ -4878,7 +5020,7 @@ var DropdownMenuContent = (0, import_react14.forwardRef)(({ className, sideOffse
4878
5020
  }
4879
5021
  ) }));
4880
5022
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
4881
- var DropdownMenuItem = (0, import_react14.forwardRef)(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
5023
+ var DropdownMenuItem = (0, import_react15.forwardRef)(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
4882
5024
  DropdownMenuPrimitive.Item,
4883
5025
  {
4884
5026
  ref,
@@ -4896,7 +5038,7 @@ var DropdownMenuItem = (0, import_react14.forwardRef)(({ className, inset, ...pr
4896
5038
  }
4897
5039
  ));
4898
5040
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
4899
- var DropdownMenuLabel = (0, import_react14.forwardRef)(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
5041
+ var DropdownMenuLabel = (0, import_react15.forwardRef)(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
4900
5042
  DropdownMenuPrimitive.Label,
4901
5043
  {
4902
5044
  ref,
@@ -4911,35 +5053,35 @@ var DropdownMenuLabel = (0, import_react14.forwardRef)(({ className, inset, ...p
4911
5053
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
4912
5054
 
4913
5055
  // src/theme/default/components/ui/user-avater.tsx
4914
- var import_react15 = require("react");
5056
+ var import_react16 = require("react");
4915
5057
 
4916
5058
  // src/theme/default/assets/icons/user.svg
4917
- var React28 = __toESM(require("react"));
4918
- var import_jsx_runtime84 = require("react/jsx-runtime");
5059
+ var React29 = __toESM(require("react"));
5060
+ var import_jsx_runtime85 = require("react/jsx-runtime");
4919
5061
  var SvgUser = (props) => {
4920
5062
  var _a, _b;
4921
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("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__ */ (0, import_jsx_runtime84.jsx)("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" }) });
5063
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("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__ */ (0, import_jsx_runtime85.jsx)("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" }) });
4922
5064
  };
4923
5065
  var user_default = SvgUser;
4924
5066
 
4925
5067
  // src/theme/default/components/ui/user-avater.tsx
4926
- var import_jsx_runtime85 = require("react/jsx-runtime");
4927
- var UserAvatar = (0, import_react15.forwardRef)(
5068
+ var import_jsx_runtime86 = require("react/jsx-runtime");
5069
+ var UserAvatar = (0, import_react16.forwardRef)(
4928
5070
  ({ initials, ...rest }, ref) => {
4929
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
5071
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
4930
5072
  "button",
4931
5073
  {
4932
5074
  ref,
4933
5075
  className: "relative flex size-10 items-center justify-center overflow-hidden rounded-[999px] bg-button-primary-background-default hover:bg-button-primary-background-hover",
4934
5076
  ...rest,
4935
- children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "relative flex size-full items-center justify-center", children: initials.avatar ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
5077
+ children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "relative flex size-full items-center justify-center", children: initials.avatar ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
4936
5078
  "img",
4937
5079
  {
4938
5080
  src: initials.avatar,
4939
5081
  alt: initials.primary,
4940
5082
  className: "w-full object-contain"
4941
5083
  }
4942
- ) : /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
5084
+ ) : /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
4943
5085
  user_default,
4944
5086
  {
4945
5087
  size: 24,
@@ -4953,27 +5095,27 @@ var UserAvatar = (0, import_react15.forwardRef)(
4953
5095
  UserAvatar.displayName = "UserAvatar";
4954
5096
 
4955
5097
  // src/theme/default/components/ui/user-menu.tsx
4956
- var import_jsx_runtime86 = require("react/jsx-runtime");
5098
+ var import_jsx_runtime87 = require("react/jsx-runtime");
4957
5099
  var UserMenu = ({ session }) => {
4958
- const config = (0, import_elements_react17.useOryConfiguration)();
5100
+ const config = (0, import_elements_react18.useOryConfiguration)();
4959
5101
  const initials = getUserInitials(session);
4960
5102
  const { logoutFlow } = useClientLogout(config);
4961
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(DropdownMenu, { children: [
4962
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(UserAvatar, { initials, title: "User Menu" }) }),
4963
- /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(DropdownMenuContent, { children: [
4964
- /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_react_dropdown_menu.DropdownMenuLabel, { className: "flex gap-3 px-5 py-4.5", children: [
4965
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(UserAvatar, { disabled: true, initials }),
4966
- /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex flex-col justify-center text-sm leading-tight", children: [
4967
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "text-interface-foreground-default-primary leading-tight font-medium", children: initials.primary }),
4968
- initials.secondary && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "text-interface-foreground-default-tertiary leading-tight", children: initials.secondary })
5103
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(DropdownMenu, { children: [
5104
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(UserAvatar, { initials, title: "User Menu" }) }),
5105
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(DropdownMenuContent, { children: [
5106
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_react_dropdown_menu.DropdownMenuLabel, { className: "flex gap-3 px-5 py-4.5", children: [
5107
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(UserAvatar, { disabled: true, initials }),
5108
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex flex-col justify-center text-sm leading-tight", children: [
5109
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "text-interface-foreground-default-primary leading-tight font-medium", children: initials.primary }),
5110
+ initials.secondary && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "text-interface-foreground-default-tertiary leading-tight", children: initials.secondary })
4969
5111
  ] })
4970
5112
  ] }),
4971
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("a", { href: "/settings", children: [
4972
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(settings_default, { size: 16 }),
5113
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("a", { href: "/settings", children: [
5114
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(settings_default, { size: 16 }),
4973
5115
  " User settings"
4974
5116
  ] }) }),
4975
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(DropdownMenuItem, { asChild: true, disabled: !(logoutFlow == null ? void 0 : logoutFlow.logout_url), children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("a", { href: logoutFlow == null ? void 0 : logoutFlow.logout_url, children: [
4976
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(logout_default, { size: 16 }),
5117
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(DropdownMenuItem, { asChild: true, disabled: !(logoutFlow == null ? void 0 : logoutFlow.logout_url), children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("a", { href: logoutFlow == null ? void 0 : logoutFlow.logout_url, children: [
5118
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(logout_default, { size: 16 }),
4977
5119
  " Logout"
4978
5120
  ] }) })
4979
5121
  ] })
@@ -4983,28 +5125,28 @@ var UserMenu = ({ session }) => {
4983
5125
  // src/theme/default/components/generic/page-header.tsx
4984
5126
  var import_client4 = require("@ory/elements-react/client");
4985
5127
  var import_react_intl22 = require("react-intl");
4986
- var import_jsx_runtime87 = require("react/jsx-runtime");
5128
+ var import_jsx_runtime88 = require("react/jsx-runtime");
4987
5129
  var DefaultPageHeader = (_props) => {
4988
5130
  var _a;
4989
- const { Card } = (0, import_elements_react18.useComponents)();
5131
+ const { Card } = (0, import_elements_react19.useComponents)();
4990
5132
  const { session } = (0, import_client4.useSession)();
4991
5133
  const intl = (0, import_react_intl22.useIntl)();
4992
- const { flow } = (0, import_elements_react18.useOryFlow)();
4993
- const config = (0, import_elements_react18.useOryConfiguration)();
5134
+ const { flow } = (0, import_elements_react19.useOryFlow)();
5135
+ const config = (0, import_elements_react19.useOryConfiguration)();
4994
5136
  const returnUrl = (_a = flow.return_to) != null ? _a : config.project.default_redirect_url;
4995
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("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__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex flex-col gap-12", children: [
4996
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex max-h-10 flex-1 justify-between gap-2 items-center", children: [
4997
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Card.Logo, {}),
4998
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(UserMenu, { session })
5137
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("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__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "flex flex-col gap-12", children: [
5138
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "flex max-h-10 flex-1 justify-between gap-2 items-center", children: [
5139
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Card.Logo, {}),
5140
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(UserMenu, { session })
4999
5141
  ] }),
5000
- returnUrl && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
5142
+ returnUrl && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
5001
5143
  "a",
5002
5144
  {
5003
5145
  "data-testid": "ory/screen/settings/back-button",
5004
5146
  href: returnUrl,
5005
5147
  className: "inline-flex gap-2 items-center",
5006
5148
  children: [
5007
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(arrow_left_default, {}),
5149
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(arrow_left_default, {}),
5008
5150
  " ",
5009
5151
  intl.formatMessage({
5010
5152
  id: "settings.navigation-back-button",
@@ -5017,31 +5159,31 @@ var DefaultPageHeader = (_props) => {
5017
5159
  };
5018
5160
 
5019
5161
  // src/theme/default/components/settings/settings-oidc.tsx
5020
- var import_react16 = require("react");
5162
+ var import_react17 = require("react");
5021
5163
  var import_react_hook_form20 = require("react-hook-form");
5022
- var import_usehooks_ts2 = require("usehooks-ts");
5164
+ var import_usehooks_ts3 = require("usehooks-ts");
5023
5165
 
5024
5166
  // src/theme/default/assets/icons/trash.svg
5025
- var React29 = __toESM(require("react"));
5026
- var import_jsx_runtime88 = require("react/jsx-runtime");
5167
+ var React30 = __toESM(require("react"));
5168
+ var import_jsx_runtime89 = require("react/jsx-runtime");
5027
5169
  var SvgTrash = (props) => {
5028
5170
  var _a, _b;
5029
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("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__ */ (0, import_jsx_runtime88.jsx)("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" }) });
5171
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("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__ */ (0, import_jsx_runtime89.jsx)("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" }) });
5030
5172
  };
5031
5173
  var trash_default = SvgTrash;
5032
5174
 
5033
5175
  // src/theme/default/components/settings/settings-oidc.tsx
5034
- var import_jsx_runtime89 = require("react/jsx-runtime");
5176
+ var import_jsx_runtime90 = require("react/jsx-runtime");
5035
5177
  function DefaultSettingsOidc({
5036
5178
  linkButtons,
5037
5179
  unlinkButtons
5038
5180
  }) {
5039
5181
  const hasLinkButtons = linkButtons.length > 0;
5040
5182
  const hasUnlinkButtons = unlinkButtons.length > 0;
5041
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex flex-col gap-8", children: [
5042
- hasLinkButtons && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "grid items-start gap-3 grid-cols-1 sm:grid-cols-2 md:grid-cols-3", children: linkButtons.map((button) => {
5183
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-col gap-8", children: [
5184
+ hasLinkButtons && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "grid items-start gap-3 grid-cols-1 sm:grid-cols-2 md:grid-cols-3", children: linkButtons.map((button) => {
5043
5185
  const attrs = button.attributes;
5044
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
5186
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
5045
5187
  DefaultButtonSocial,
5046
5188
  {
5047
5189
  showLabel: true,
@@ -5052,18 +5194,18 @@ function DefaultSettingsOidc({
5052
5194
  attrs.value
5053
5195
  );
5054
5196
  }) }),
5055
- hasUnlinkButtons && hasLinkButtons ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(DefaultHorizontalDivider, {}) : null,
5197
+ hasUnlinkButtons && hasLinkButtons ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(DefaultHorizontalDivider, {}) : null,
5056
5198
  unlinkButtons.map((button) => {
5057
5199
  if (button.attributes.node_type !== "input") {
5058
5200
  return null;
5059
5201
  }
5060
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(UnlinkRow, { button }, button.attributes.value);
5202
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(UnlinkRow, { button }, button.attributes.value);
5061
5203
  })
5062
5204
  ] });
5063
5205
  }
5064
5206
  function UnlinkRow({ button }) {
5065
5207
  var _a, _b, _c;
5066
- const [clicked, setClicked] = (0, import_usehooks_ts2.useDebounceValue)(false, 100);
5208
+ const [clicked, setClicked] = (0, import_usehooks_ts3.useDebounceValue)(false, 100);
5067
5209
  const {
5068
5210
  formState: { isSubmitting }
5069
5211
  } = (0, import_react_hook_form20.useFormContext)();
@@ -5074,18 +5216,18 @@ function UnlinkRow({ button }) {
5074
5216
  button.onClick();
5075
5217
  setClicked(true);
5076
5218
  };
5077
- (0, import_react16.useEffect)(() => {
5219
+ (0, import_react17.useEffect)(() => {
5078
5220
  if (!isSubmitting) {
5079
5221
  setClicked(false);
5080
5222
  }
5081
5223
  }, [isSubmitting, setClicked]);
5082
5224
  console.log((_c = button.meta.label) == null ? void 0 : _c.context);
5083
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex justify-between", children: [
5084
- /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex items-center gap-6", children: [
5085
- Logo ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Logo, { size: 32 }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(GenericLogo, { label: provider.slice(0, 1) }),
5086
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary", children: provider })
5225
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex justify-between", children: [
5226
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex items-center gap-6", children: [
5227
+ Logo ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Logo, { size: 32 }) : /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(GenericLogo, { label: provider.slice(0, 1) }),
5228
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary", children: provider })
5087
5229
  ] }),
5088
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
5230
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
5089
5231
  "button",
5090
5232
  {
5091
5233
  ...omitInputAttributes(attrs),
@@ -5094,7 +5236,7 @@ function UnlinkRow({ button }) {
5094
5236
  disabled: isSubmitting,
5095
5237
  className: "relative",
5096
5238
  title: `Unlink ${provider}`,
5097
- children: clicked ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
5239
+ children: clicked ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
5098
5240
  trash_default,
5099
5241
  {
5100
5242
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -5107,9 +5249,9 @@ function UnlinkRow({ button }) {
5107
5249
  }
5108
5250
 
5109
5251
  // src/theme/default/components/settings/settings-passkey.tsx
5110
- var import_elements_react19 = require("@ory/elements-react");
5252
+ var import_elements_react20 = require("@ory/elements-react");
5111
5253
  var import_react_hook_form21 = require("react-hook-form");
5112
- var import_jsx_runtime90 = require("react/jsx-runtime");
5254
+ var import_jsx_runtime91 = require("react/jsx-runtime");
5113
5255
  function DefaultSettingsPasskey({
5114
5256
  triggerButton,
5115
5257
  removeButtons
@@ -5117,10 +5259,10 @@ function DefaultSettingsPasskey({
5117
5259
  const {
5118
5260
  formState: { isSubmitting }
5119
5261
  } = (0, import_react_hook_form21.useFormContext)();
5120
- const { Node: Node2 } = (0, import_elements_react19.useComponents)();
5262
+ const { Node: Node2 } = (0, import_elements_react20.useComponents)();
5121
5263
  const hasRemoveButtons = removeButtons.length > 0;
5122
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-col gap-8", children: [
5123
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "flex max-w-[60%] items-end gap-3", children: triggerButton && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
5264
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex flex-col gap-8", children: [
5265
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: "flex max-w-[60%] items-end gap-3", children: triggerButton && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
5124
5266
  Node2.Button,
5125
5267
  {
5126
5268
  node: triggerButton,
@@ -5128,38 +5270,38 @@ function DefaultSettingsPasskey({
5128
5270
  onClick: triggerButton.onClick
5129
5271
  }
5130
5272
  ) }),
5131
- hasRemoveButtons ? /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-col gap-8", children: [
5132
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(DefaultHorizontalDivider, {}),
5133
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
5273
+ hasRemoveButtons ? /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex flex-col gap-8", children: [
5274
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(DefaultHorizontalDivider, {}),
5275
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
5134
5276
  var _a, _b;
5135
5277
  const context = (_b = (_a = node.meta.label) == null ? void 0 : _a.context) != null ? _b : {};
5136
5278
  const addedAt = "added_at" in context ? context.added_at : null;
5137
5279
  const displayName = "display_name" in context ? context.display_name : null;
5138
5280
  const keyId = "value" in node.attributes ? node.attributes.value : null;
5139
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
5281
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
5140
5282
  "div",
5141
5283
  {
5142
5284
  className: "flex justify-between gap-6 md:items-center",
5143
5285
  children: [
5144
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex gap-2 items-center flex-1 truncate", children: [
5145
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
5286
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex gap-2 items-center flex-1 truncate", children: [
5287
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
5146
5288
  passkey_default,
5147
5289
  {
5148
5290
  size: 32,
5149
5291
  className: "text-interface-foreground-default-primary"
5150
5292
  }
5151
5293
  ),
5152
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4 truncate", children: [
5153
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex-1 flex-col truncate", children: [
5154
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
5155
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
5294
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4 truncate", children: [
5295
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex-1 flex-col truncate", children: [
5296
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
5297
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
5156
5298
  ] }),
5157
- addedAt && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
5299
+ addedAt && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
5158
5300
  dateStyle: "long"
5159
5301
  }).format(new Date(addedAt)) })
5160
5302
  ] })
5161
5303
  ] }),
5162
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
5304
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
5163
5305
  "button",
5164
5306
  {
5165
5307
  ...node.attributes,
@@ -5167,7 +5309,7 @@ function DefaultSettingsPasskey({
5167
5309
  onClick: node.onClick,
5168
5310
  disabled: isSubmitting,
5169
5311
  className: "relative",
5170
- children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
5312
+ children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
5171
5313
  trash_default,
5172
5314
  {
5173
5315
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -5186,26 +5328,26 @@ function DefaultSettingsPasskey({
5186
5328
  }
5187
5329
 
5188
5330
  // src/theme/default/assets/icons/download.svg
5189
- var React30 = __toESM(require("react"));
5190
- var import_jsx_runtime91 = require("react/jsx-runtime");
5331
+ var React31 = __toESM(require("react"));
5332
+ var import_jsx_runtime92 = require("react/jsx-runtime");
5191
5333
  var SvgDownload = (props) => {
5192
5334
  var _a, _b;
5193
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("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__ */ (0, import_jsx_runtime91.jsx)("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" }) });
5335
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("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__ */ (0, import_jsx_runtime92.jsx)("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" }) });
5194
5336
  };
5195
5337
  var download_default = SvgDownload;
5196
5338
 
5197
5339
  // src/theme/default/assets/icons/refresh.svg
5198
- var React31 = __toESM(require("react"));
5199
- var import_jsx_runtime92 = require("react/jsx-runtime");
5340
+ var React32 = __toESM(require("react"));
5341
+ var import_jsx_runtime93 = require("react/jsx-runtime");
5200
5342
  var SvgRefresh = (props) => {
5201
5343
  var _a, _b;
5202
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("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__ */ (0, import_jsx_runtime92.jsx)("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" }) });
5344
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("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__ */ (0, import_jsx_runtime93.jsx)("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" }) });
5203
5345
  };
5204
5346
  var refresh_default = SvgRefresh;
5205
5347
 
5206
5348
  // src/theme/default/components/settings/settings-recovery-codes.tsx
5207
5349
  var import_react_hook_form22 = require("react-hook-form");
5208
- var import_jsx_runtime93 = require("react/jsx-runtime");
5350
+ var import_jsx_runtime94 = require("react/jsx-runtime");
5209
5351
  function DefaultSettingsRecoveryCodes({
5210
5352
  codes,
5211
5353
  regnerateButton,
@@ -5227,12 +5369,12 @@ function DefaultSettingsRecoveryCodes({
5227
5369
  element.click();
5228
5370
  };
5229
5371
  const hasCodes = codes.length >= 1;
5230
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex flex-col gap-8", children: [
5231
- codes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(DefaultHorizontalDivider, {}),
5232
- /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex gap-4 justify-between", children: [
5233
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "text-interface-foreground-default-tertiary", children: revealButton && "Reveal recovery codes" }),
5234
- /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex gap-2", children: [
5235
- regnerateButton && codes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
5372
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex flex-col gap-8", children: [
5373
+ codes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(DefaultHorizontalDivider, {}),
5374
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex gap-4 justify-between", children: [
5375
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "text-interface-foreground-default-tertiary", children: revealButton && "Reveal recovery codes" }),
5376
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex gap-2", children: [
5377
+ regnerateButton && codes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5236
5378
  "button",
5237
5379
  {
5238
5380
  ...regnerateButton.attributes,
@@ -5241,7 +5383,7 @@ function DefaultSettingsRecoveryCodes({
5241
5383
  onClick: onRegenerate,
5242
5384
  disabled: isSubmitting,
5243
5385
  "data-loading": isSubmitting,
5244
- children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
5386
+ children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5245
5387
  refresh_default,
5246
5388
  {
5247
5389
  size: 24,
@@ -5250,7 +5392,7 @@ function DefaultSettingsRecoveryCodes({
5250
5392
  )
5251
5393
  }
5252
5394
  ),
5253
- revealButton && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_jsx_runtime93.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
5395
+ revealButton && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_jsx_runtime94.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5254
5396
  "button",
5255
5397
  {
5256
5398
  ...revealButton.attributes,
@@ -5258,7 +5400,7 @@ function DefaultSettingsRecoveryCodes({
5258
5400
  className: "ml-auto",
5259
5401
  onClick: onReveal,
5260
5402
  title: "Reveal recovery codes",
5261
- children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
5403
+ children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5262
5404
  eye_default,
5263
5405
  {
5264
5406
  size: 24,
@@ -5267,7 +5409,7 @@ function DefaultSettingsRecoveryCodes({
5267
5409
  )
5268
5410
  }
5269
5411
  ) }),
5270
- hasCodes && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
5412
+ hasCodes && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5271
5413
  "button",
5272
5414
  {
5273
5415
  onClick: onDownload,
@@ -5275,7 +5417,7 @@ function DefaultSettingsRecoveryCodes({
5275
5417
  className: "ml-auto",
5276
5418
  "data-testid": "ory/screen/settings/group/recovery_code/download",
5277
5419
  title: "Download recovery codes",
5278
- children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
5420
+ children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5279
5421
  download_default,
5280
5422
  {
5281
5423
  size: 24,
@@ -5286,32 +5428,32 @@ function DefaultSettingsRecoveryCodes({
5286
5428
  )
5287
5429
  ] })
5288
5430
  ] }),
5289
- hasCodes ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "rounded-general p-6 bg-interface-background-default-secondary border-interface-border-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
5431
+ hasCodes ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "rounded-general p-6 bg-interface-background-default-secondary border-interface-border-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5290
5432
  "div",
5291
5433
  {
5292
5434
  className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 flex-wrap gap-4 text-sm text-interface-foreground-default-primary",
5293
5435
  "data-testid": "ory/screen/settings/group/recovery_code/codes",
5294
- children: codes.map((code) => /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("p", { children: code }, code))
5436
+ children: codes.map((code) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("p", { children: code }, code))
5295
5437
  }
5296
5438
  ) }) : null
5297
5439
  ] });
5298
5440
  }
5299
5441
 
5300
5442
  // src/theme/default/components/settings/settings-totp.tsx
5301
- var import_elements_react20 = require("@ory/elements-react");
5443
+ var import_elements_react21 = require("@ory/elements-react");
5302
5444
 
5303
5445
  // src/theme/default/assets/icons/qrcode.svg
5304
- var React32 = __toESM(require("react"));
5305
- var import_jsx_runtime94 = require("react/jsx-runtime");
5446
+ var React33 = __toESM(require("react"));
5447
+ var import_jsx_runtime95 = require("react/jsx-runtime");
5306
5448
  var SvgQrcode = (props) => {
5307
5449
  var _a, _b;
5308
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("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__ */ (0, import_jsx_runtime94.jsx)("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" }) });
5450
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("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__ */ (0, import_jsx_runtime95.jsx)("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" }) });
5309
5451
  };
5310
5452
  var qrcode_default = SvgQrcode;
5311
5453
 
5312
5454
  // src/theme/default/components/settings/settings-totp.tsx
5313
5455
  var import_react_hook_form23 = require("react-hook-form");
5314
- var import_jsx_runtime95 = require("react/jsx-runtime");
5456
+ var import_jsx_runtime96 = require("react/jsx-runtime");
5315
5457
  function DefaultSettingsTotp({
5316
5458
  totpImage,
5317
5459
  totpInput,
@@ -5319,7 +5461,7 @@ function DefaultSettingsTotp({
5319
5461
  totpUnlink,
5320
5462
  onUnlink
5321
5463
  }) {
5322
- const { Node: Node2, Card } = (0, import_elements_react20.useComponents)();
5464
+ const { Node: Node2, Card } = (0, import_elements_react21.useComponents)();
5323
5465
  const {
5324
5466
  formState: { isSubmitting }
5325
5467
  } = (0, import_react_hook_form23.useFormContext)();
@@ -5331,19 +5473,19 @@ function DefaultSettingsTotp({
5331
5473
  node_type: _ignoredNodeType,
5332
5474
  ...buttonAttrs
5333
5475
  } = totpUnlink.attributes;
5334
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
5335
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "col-span-full", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Card.Divider, {}) }),
5336
- /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "col-span-full flex items-center gap-6", children: [
5337
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "aspect-square size-8 ", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(qrcode_default, { size: 32 }) }),
5338
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "mr-auto flex flex-col", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-primary", children: "Authenticator app" }) }),
5339
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5476
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
5477
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "col-span-full", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Card.Divider, {}) }),
5478
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "col-span-full flex items-center gap-6", children: [
5479
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "aspect-square size-8 ", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(qrcode_default, { size: 32 }) }),
5480
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "mr-auto flex flex-col", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-primary", children: "Authenticator app" }) }),
5481
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
5340
5482
  "button",
5341
5483
  {
5342
5484
  type: type === "button" ? "button" : "submit",
5343
5485
  ...buttonAttrs,
5344
5486
  onClick: onUnlink,
5345
5487
  disabled: isSubmitting,
5346
- children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5488
+ children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
5347
5489
  trash_default,
5348
5490
  {
5349
5491
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -5356,9 +5498,9 @@ function DefaultSettingsTotp({
5356
5498
  ] });
5357
5499
  }
5358
5500
  if (totpImage && totpSecret && totpInput) {
5359
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
5360
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "col-span-full", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(DefaultHorizontalDivider, {}) }),
5361
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "flex justify-center rounded-cards bg-interface-background-default-secondary p-8", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "aspect-square h-44 rounded bg-[white]", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "-m-3 antialiased mix-blend-multiply", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5501
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
5502
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "col-span-full", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(DefaultHorizontalDivider, {}) }),
5503
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "flex justify-center rounded-cards bg-interface-background-default-secondary p-8", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "aspect-square h-44 rounded bg-[white]", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "-m-3 antialiased mix-blend-multiply", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
5362
5504
  Node2.Image,
5363
5505
  {
5364
5506
  node: totpImage,
@@ -5367,13 +5509,13 @@ function DefaultSettingsTotp({
5367
5509
  }
5368
5510
  }
5369
5511
  ) }) }) }),
5370
- /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex flex-col gap-6", children: [
5371
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5512
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex flex-col gap-6", children: [
5513
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
5372
5514
  Node2.Label,
5373
5515
  {
5374
5516
  node: totpSecret,
5375
5517
  attributes: totpSecret.attributes,
5376
- children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "relative flex justify-stretch max-w-[488px]", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5518
+ children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "relative flex justify-stretch max-w-[488px]", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
5377
5519
  "input",
5378
5520
  {
5379
5521
  disabled: true,
@@ -5386,12 +5528,12 @@ function DefaultSettingsTotp({
5386
5528
  ) })
5387
5529
  }
5388
5530
  ),
5389
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5531
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
5390
5532
  Node2.Label,
5391
5533
  {
5392
5534
  attributes: totpInput.attributes,
5393
5535
  node: totpInput,
5394
- children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5536
+ children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
5395
5537
  Node2.CodeInput,
5396
5538
  {
5397
5539
  node: totpInput,
@@ -5406,20 +5548,20 @@ function DefaultSettingsTotp({
5406
5548
  }
5407
5549
 
5408
5550
  // src/theme/default/components/settings/settings-webauthn.tsx
5409
- var import_elements_react21 = require("@ory/elements-react");
5551
+ var import_elements_react22 = require("@ory/elements-react");
5410
5552
 
5411
5553
  // src/theme/default/assets/icons/key.svg
5412
- var React33 = __toESM(require("react"));
5413
- var import_jsx_runtime96 = require("react/jsx-runtime");
5554
+ var React34 = __toESM(require("react"));
5555
+ var import_jsx_runtime97 = require("react/jsx-runtime");
5414
5556
  var SvgKey = (props) => {
5415
5557
  var _a, _b;
5416
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("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__ */ (0, import_jsx_runtime96.jsx)("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" }) });
5558
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("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__ */ (0, import_jsx_runtime97.jsx)("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" }) });
5417
5559
  };
5418
5560
  var key_default = SvgKey;
5419
5561
 
5420
5562
  // src/theme/default/components/settings/settings-webauthn.tsx
5421
5563
  var import_react_hook_form24 = require("react-hook-form");
5422
- var import_jsx_runtime97 = require("react/jsx-runtime");
5564
+ var import_jsx_runtime98 = require("react/jsx-runtime");
5423
5565
  function DefaultSettingsWebauthn({
5424
5566
  nameInput,
5425
5567
  triggerButton,
@@ -5428,16 +5570,16 @@ function DefaultSettingsWebauthn({
5428
5570
  const {
5429
5571
  formState: { isSubmitting }
5430
5572
  } = (0, import_react_hook_form24.useFormContext)();
5431
- const { Node: Node2, Card } = (0, import_elements_react21.useComponents)();
5573
+ const { Node: Node2, Card } = (0, import_elements_react22.useComponents)();
5432
5574
  const hasRemoveButtons = removeButtons.length > 0;
5433
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col gap-8", children: [
5434
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex md:max-w-96 sm:items-end gap-3 flex-col sm:flex-row", children: [
5435
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
5575
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex flex-col gap-8", children: [
5576
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex md:max-w-96 sm:items-end gap-3 flex-col sm:flex-row", children: [
5577
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
5436
5578
  Node2.Label,
5437
5579
  {
5438
5580
  node: nameInput,
5439
5581
  attributes: nameInput.attributes,
5440
- children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
5582
+ children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
5441
5583
  Node2.Input,
5442
5584
  {
5443
5585
  node: nameInput,
@@ -5446,7 +5588,7 @@ function DefaultSettingsWebauthn({
5446
5588
  )
5447
5589
  }
5448
5590
  ) }),
5449
- triggerButton ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
5591
+ triggerButton ? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
5450
5592
  Node2.Button,
5451
5593
  {
5452
5594
  node: triggerButton,
@@ -5455,38 +5597,38 @@ function DefaultSettingsWebauthn({
5455
5597
  }
5456
5598
  ) : null
5457
5599
  ] }),
5458
- hasRemoveButtons ? /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col gap-8", children: [
5459
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Card.Divider, {}),
5460
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "flex flex-col gap-4", children: removeButtons.map((node, i) => {
5600
+ hasRemoveButtons ? /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex flex-col gap-8", children: [
5601
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Card.Divider, {}),
5602
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "flex flex-col gap-4", children: removeButtons.map((node, i) => {
5461
5603
  var _a, _b;
5462
5604
  const context = (_b = (_a = node.meta.label) == null ? void 0 : _a.context) != null ? _b : {};
5463
5605
  const addedAt = "added_at" in context ? context.added_at : null;
5464
5606
  const displayName = "display_name" in context ? context.display_name : null;
5465
5607
  const keyId = "value" in node.attributes ? node.attributes.value : null;
5466
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
5608
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
5467
5609
  "div",
5468
5610
  {
5469
5611
  className: "flex justify-between gap-6 md:items-center",
5470
5612
  children: [
5471
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex gap-2 items-center flex-1 truncate", children: [
5472
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
5613
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex gap-2 items-center flex-1 truncate", children: [
5614
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
5473
5615
  key_default,
5474
5616
  {
5475
5617
  size: 32,
5476
5618
  className: "text-interface-foreground-default-primary"
5477
5619
  }
5478
5620
  ),
5479
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4 truncate", children: [
5480
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex-1 flex-col truncate", children: [
5481
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
5482
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
5621
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4 truncate", children: [
5622
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex-1 flex-col truncate", children: [
5623
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
5624
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
5483
5625
  ] }),
5484
- addedAt && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
5626
+ addedAt && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
5485
5627
  dateStyle: "long"
5486
5628
  }).format(new Date(addedAt)) })
5487
5629
  ] })
5488
5630
  ] }),
5489
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
5631
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
5490
5632
  "button",
5491
5633
  {
5492
5634
  ...node.attributes,
@@ -5494,7 +5636,7 @@ function DefaultSettingsWebauthn({
5494
5636
  onClick: node.onClick,
5495
5637
  disabled: isSubmitting,
5496
5638
  className: "relative",
5497
- children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
5639
+ children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
5498
5640
  trash_default,
5499
5641
  {
5500
5642
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -5513,24 +5655,24 @@ function DefaultSettingsWebauthn({
5513
5655
  }
5514
5656
 
5515
5657
  // src/theme/default/components/card/auth-method-list-container.tsx
5516
- var import_jsx_runtime98 = require("react/jsx-runtime");
5658
+ var import_jsx_runtime99 = require("react/jsx-runtime");
5517
5659
  function DefaultAuthMethodListContainer({
5518
5660
  children
5519
5661
  }) {
5520
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "grid grid-cols-1 gap-2", children });
5662
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "grid grid-cols-1 gap-2", children });
5521
5663
  }
5522
5664
 
5523
5665
  // src/theme/default/components/form/captcha.tsx
5524
- var import_client_fetch39 = require("@ory/client-fetch");
5666
+ var import_client_fetch41 = require("@ory/client-fetch");
5525
5667
  var import_react_turnstile = require("@marsidev/react-turnstile");
5526
- var import_react17 = require("react");
5668
+ var import_react18 = require("react");
5527
5669
  var import_react_hook_form25 = require("react-hook-form");
5528
- var import_jsx_runtime99 = require("react/jsx-runtime");
5670
+ var import_jsx_runtime100 = require("react/jsx-runtime");
5529
5671
  var DefaultCaptcha = ({ node }) => {
5530
5672
  const { setValue, formState } = (0, import_react_hook_form25.useFormContext)();
5531
- const ref = (0, import_react17.useRef)();
5532
- const prevSubmitCount = (0, import_react17.useRef)(formState.submitCount);
5533
- (0, import_react17.useEffect)(() => {
5673
+ const ref = (0, import_react18.useRef)();
5674
+ const prevSubmitCount = (0, import_react18.useRef)(formState.submitCount);
5675
+ (0, import_react18.useEffect)(() => {
5534
5676
  if (formState.submitCount > prevSubmitCount.current && formState.isSubmitSuccessful) {
5535
5677
  prevSubmitCount.current = formState.submitCount;
5536
5678
  setTimeout(() => {
@@ -5540,14 +5682,14 @@ var DefaultCaptcha = ({ node }) => {
5540
5682
  }, 100);
5541
5683
  }
5542
5684
  }, [formState.submitCount, formState.isSubmitSuccessful]);
5543
- if (!(0, import_client_fetch39.isUiNodeInputAttributes)(node.attributes)) {
5685
+ if (!(0, import_client_fetch41.isUiNodeInputAttributes)(node.attributes)) {
5544
5686
  return null;
5545
5687
  }
5546
5688
  if (node.attributes.name === "transient_payload.captcha_turnstile_response") {
5547
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(DefaultInput, { node, attributes: node.attributes }, 1);
5689
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(DefaultInput, { node, attributes: node.attributes }, 1);
5548
5690
  } else if (node.attributes.name === "captcha_turnstile_options") {
5549
5691
  const options = JSON.parse(node.attributes.value);
5550
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
5692
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
5551
5693
  import_react_turnstile.Turnstile,
5552
5694
  {
5553
5695
  ref,
@@ -5573,36 +5715,36 @@ var DefaultCaptcha = ({ node }) => {
5573
5715
  };
5574
5716
 
5575
5717
  // src/theme/default/assets/icons/personal.svg
5576
- var React34 = __toESM(require("react"));
5577
- var import_jsx_runtime100 = require("react/jsx-runtime");
5718
+ var React35 = __toESM(require("react"));
5719
+ var import_jsx_runtime101 = require("react/jsx-runtime");
5578
5720
  var SvgPersonal = (props) => {
5579
5721
  var _a, _b;
5580
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("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__ */ (0, import_jsx_runtime100.jsx)("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" }) });
5722
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("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__ */ (0, import_jsx_runtime101.jsx)("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" }) });
5581
5723
  };
5582
5724
  var personal_default = SvgPersonal;
5583
5725
 
5584
5726
  // src/theme/default/assets/icons/message.svg
5585
- var React35 = __toESM(require("react"));
5586
- var import_jsx_runtime101 = require("react/jsx-runtime");
5727
+ var React36 = __toESM(require("react"));
5728
+ var import_jsx_runtime102 = require("react/jsx-runtime");
5587
5729
  var SvgMessage = (props) => {
5588
5730
  var _a, _b;
5589
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("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__ */ (0, import_jsx_runtime101.jsx)("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" }) });
5731
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("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__ */ (0, import_jsx_runtime102.jsx)("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" }) });
5590
5732
  };
5591
5733
  var message_default = SvgMessage;
5592
5734
 
5593
5735
  // src/theme/default/assets/icons/phone.svg
5594
- var React36 = __toESM(require("react"));
5595
- var import_jsx_runtime102 = require("react/jsx-runtime");
5736
+ var React37 = __toESM(require("react"));
5737
+ var import_jsx_runtime103 = require("react/jsx-runtime");
5596
5738
  var SvgPhone = (props) => {
5597
5739
  var _a, _b;
5598
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("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__ */ (0, import_jsx_runtime102.jsx)("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" }) });
5740
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("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__ */ (0, import_jsx_runtime103.jsx)("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" }) });
5599
5741
  };
5600
5742
  var phone_default = SvgPhone;
5601
5743
 
5602
5744
  // src/theme/default/components/form/consent-scope-checkbox.tsx
5603
5745
  var import_react_intl23 = require("react-intl");
5604
5746
  var Switch = __toESM(require("@radix-ui/react-switch"));
5605
- var import_jsx_runtime103 = require("react/jsx-runtime");
5747
+ var import_jsx_runtime104 = require("react/jsx-runtime");
5606
5748
  var ScopeIcons = {
5607
5749
  openid: personal_default,
5608
5750
  offline_access: personal_default,
@@ -5617,7 +5759,7 @@ function DefaultConsentScopeCheckbox({
5617
5759
  var _a;
5618
5760
  const intl = (0, import_react_intl23.useIntl)();
5619
5761
  const Icon = (_a = ScopeIcons[attributes.value]) != null ? _a : personal_default;
5620
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
5762
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
5621
5763
  ListItem,
5622
5764
  {
5623
5765
  as: "label",
@@ -5632,7 +5774,7 @@ function DefaultConsentScopeCheckbox({
5632
5774
  }),
5633
5775
  className: "col-span-2",
5634
5776
  "data-testid": "ory/screen/consent/scope-checkbox-label",
5635
- children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
5777
+ children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
5636
5778
  Switch.Root,
5637
5779
  {
5638
5780
  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",
@@ -5640,7 +5782,7 @@ function DefaultConsentScopeCheckbox({
5640
5782
  value: attributes.value,
5641
5783
  onCheckedChange,
5642
5784
  defaultChecked: true,
5643
- children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(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" })
5785
+ children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(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" })
5644
5786
  }
5645
5787
  )
5646
5788
  }
@@ -5698,11 +5840,11 @@ function getOryComponents(overrides) {
5698
5840
  }
5699
5841
 
5700
5842
  // src/theme/default/flows/error.tsx
5701
- var import_client_fetch40 = require("@ory/client-fetch");
5702
- var import_elements_react22 = require("@ory/elements-react");
5703
- var import_react18 = require("react");
5843
+ var import_client_fetch42 = require("@ory/client-fetch");
5844
+ var import_elements_react23 = require("@ory/elements-react");
5845
+ var import_react19 = require("react");
5704
5846
  var import_react_intl24 = require("react-intl");
5705
- var import_jsx_runtime104 = require("react/jsx-runtime");
5847
+ var import_jsx_runtime105 = require("react/jsx-runtime");
5706
5848
  function isOAuth2Error(error) {
5707
5849
  return !!error && typeof error === "object" && "error" in error && "error_description" in error;
5708
5850
  }
@@ -5711,7 +5853,7 @@ var errorDescriptions = {
5711
5853
  5: "The server encountered an error and could not complete your request"
5712
5854
  };
5713
5855
  function useStandardize(error) {
5714
- return (0, import_react18.useMemo)(() => {
5856
+ return (0, import_react19.useMemo)(() => {
5715
5857
  var _a;
5716
5858
  if (isOAuth2Error(error)) {
5717
5859
  return {
@@ -5721,14 +5863,14 @@ function useStandardize(error) {
5721
5863
  timestamp: /* @__PURE__ */ new Date()
5722
5864
  };
5723
5865
  }
5724
- if ((0, import_client_fetch40.instanceOfFlowError)(error)) {
5866
+ if ((0, import_client_fetch42.instanceOfFlowError)(error)) {
5725
5867
  const parsed = error.error;
5726
5868
  return {
5727
5869
  ...parsed,
5728
5870
  id: error.id,
5729
5871
  timestamp: error.created_at
5730
5872
  };
5731
- } else if (error.error && (0, import_client_fetch40.instanceOfGenericError)(error.error)) {
5873
+ } else if (error.error && (0, import_client_fetch42.instanceOfGenericError)(error.error)) {
5732
5874
  return {
5733
5875
  code: (_a = error.error.code) != null ? _a : 500,
5734
5876
  message: error.error.message,
@@ -5755,47 +5897,47 @@ function Error2({
5755
5897
  const Divider = (_d = (_c = Components == null ? void 0 : Components.Card) == null ? void 0 : _c.Divider) != null ? _d : DefaultHorizontalDivider;
5756
5898
  const parsed = useStandardize(error);
5757
5899
  const description = errorDescriptions[Math.floor(parsed.code / 100)];
5758
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_elements_react22.OryConfigurationProvider, { sdk: config.sdk, project: config.project, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
5900
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_elements_react23.OryConfigurationProvider, { sdk: config.sdk, project: config.project, children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
5759
5901
  IntlProvider,
5760
5902
  {
5761
5903
  locale: (_f = (_e = config.intl) == null ? void 0 : _e.locale) != null ? _f : "en",
5762
5904
  customTranslations: (_g = config.intl) == null ? void 0 : _g.customTranslations,
5763
- children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
5905
+ children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
5764
5906
  "div",
5765
5907
  {
5766
5908
  className: "flex flex-col gap-6 antialiased",
5767
5909
  "data-testid": "ory/screen/error",
5768
5910
  children: [
5769
- /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("header", { className: "flex flex-col gap-8 antialiased", children: [
5770
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(ErrorLogo, {}),
5771
- /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex flex-col gap-2", children: [
5772
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_intl24.FormattedMessage, { id: "error.title.what-happened" }) }),
5773
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: (_h = parsed.message) != null ? _h : description }),
5774
- parsed.reason && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: parsed.reason })
5911
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("header", { className: "flex flex-col gap-8 antialiased", children: [
5912
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(ErrorLogo, {}),
5913
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex flex-col gap-2", children: [
5914
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_react_intl24.FormattedMessage, { id: "error.title.what-happened" }) }),
5915
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: (_h = parsed.message) != null ? _h : description }),
5916
+ parsed.reason && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: parsed.reason })
5775
5917
  ] })
5776
5918
  ] }),
5777
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Divider, {}),
5778
- /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex flex-col gap-2", children: [
5779
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_intl24.FormattedMessage, { id: "error.title.what-can-i-do" }) }),
5780
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_intl24.FormattedMessage, { id: "error.instructions" }) }),
5781
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { children: session ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(LoggedInActions, {}) : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(GoBackButton, {}) })
5919
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Divider, {}),
5920
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex flex-col gap-2", children: [
5921
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_react_intl24.FormattedMessage, { id: "error.title.what-can-i-do" }) }),
5922
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_react_intl24.FormattedMessage, { id: "error.instructions" }) }),
5923
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { children: session ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(LoggedInActions, {}) : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(GoBackButton, {}) })
5782
5924
  ] }),
5783
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Divider, {}),
5784
- /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "font-normal leading-normal antialiased gap-2 flex flex-col", children: [
5785
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("span", { className: "text-interface-foreground-default-primary text-sm", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_intl24.FormattedMessage, { id: "error.footer.text" }) }),
5786
- parsed.id && /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5925
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Divider, {}),
5926
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "font-normal leading-normal antialiased gap-2 flex flex-col", children: [
5927
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("span", { className: "text-interface-foreground-default-primary text-sm", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_react_intl24.FormattedMessage, { id: "error.footer.text" }) }),
5928
+ parsed.id && /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5787
5929
  "ID: ",
5788
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("code", { children: parsed.id })
5930
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("code", { children: parsed.id })
5789
5931
  ] }),
5790
- /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5932
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5791
5933
  "Time: ",
5792
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("code", { children: (_i = parsed.timestamp) == null ? void 0 : _i.toUTCString() })
5934
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("code", { children: (_i = parsed.timestamp) == null ? void 0 : _i.toUTCString() })
5793
5935
  ] }),
5794
- /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5936
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5795
5937
  "Message: ",
5796
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("code", { children: parsed.reason })
5938
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("code", { children: parsed.reason })
5797
5939
  ] }),
5798
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
5940
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
5799
5941
  "button",
5800
5942
  {
5801
5943
  className: "text-interface-foreground-default-primary underline",
@@ -5807,7 +5949,7 @@ ${parsed.reason ? `Message: ${parsed.reason}` : ""}
5807
5949
  `;
5808
5950
  void navigator.clipboard.writeText(text);
5809
5951
  },
5810
- children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_intl24.FormattedMessage, { id: "error.footer.copy" })
5952
+ children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_react_intl24.FormattedMessage, { id: "error.footer.copy" })
5811
5953
  }
5812
5954
  ) })
5813
5955
  ] })
@@ -5818,43 +5960,43 @@ ${parsed.reason ? `Message: ${parsed.reason}` : ""}
5818
5960
  ) });
5819
5961
  }
5820
5962
  function LoggedInActions() {
5821
- const config = (0, import_elements_react22.useOryConfiguration)();
5963
+ const config = (0, import_elements_react23.useOryConfiguration)();
5822
5964
  const { logoutFlow } = useClientLogout(config);
5823
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
5965
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
5824
5966
  "a",
5825
5967
  {
5826
5968
  href: logoutFlow == null ? void 0 : logoutFlow.logout_url,
5827
5969
  className: "text-interface-foreground-default-primary underline",
5828
- children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_intl24.FormattedMessage, { id: "login.logout-button" })
5970
+ children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_react_intl24.FormattedMessage, { id: "login.logout-button" })
5829
5971
  }
5830
5972
  );
5831
5973
  }
5832
5974
  function GoBackButton() {
5833
- const config = (0, import_elements_react22.useOryConfiguration)();
5975
+ const config = (0, import_elements_react23.useOryConfiguration)();
5834
5976
  if ("default_redirect_url" in config.project) {
5835
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
5977
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
5836
5978
  "a",
5837
5979
  {
5838
5980
  className: "text-interface-foreground-default-primary underline",
5839
5981
  href: config.project.default_redirect_url,
5840
- children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_intl24.FormattedMessage, { id: "error.action.go-back" })
5982
+ children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_react_intl24.FormattedMessage, { id: "error.action.go-back" })
5841
5983
  }
5842
5984
  );
5843
5985
  }
5844
5986
  return null;
5845
5987
  }
5846
5988
  function ErrorLogo() {
5847
- const { project } = (0, import_elements_react22.useOryConfiguration)();
5989
+ const { project } = (0, import_elements_react23.useOryConfiguration)();
5848
5990
  if (project.logo_light_url) {
5849
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("img", { src: project.logo_light_url, width: 100, height: 36, alt: "Logo" });
5991
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("img", { src: project.logo_light_url, width: 100, height: 36, alt: "Logo" });
5850
5992
  }
5851
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("h1", { className: "text-xl font-semibold leading-normal text-interface-foreground-default-primary", children: project.name });
5993
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("h1", { className: "text-xl font-semibold leading-normal text-interface-foreground-default-primary", children: project.name });
5852
5994
  }
5853
5995
 
5854
5996
  // src/theme/default/flows/login.tsx
5855
- var import_client_fetch41 = require("@ory/client-fetch");
5856
- var import_elements_react23 = require("@ory/elements-react");
5857
- var import_jsx_runtime105 = require("react/jsx-runtime");
5997
+ var import_client_fetch43 = require("@ory/client-fetch");
5998
+ var import_elements_react24 = require("@ory/elements-react");
5999
+ var import_jsx_runtime106 = require("react/jsx-runtime");
5858
6000
  function Login({
5859
6001
  flow,
5860
6002
  config,
@@ -5862,22 +6004,22 @@ function Login({
5862
6004
  components: flowOverrideComponents
5863
6005
  }) {
5864
6006
  const components = getOryComponents(flowOverrideComponents);
5865
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
5866
- import_elements_react23.OryProvider,
6007
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
6008
+ import_elements_react24.OryProvider,
5867
6009
  {
5868
6010
  config,
5869
6011
  flow,
5870
- flowType: import_client_fetch41.FlowType.Login,
6012
+ flowType: import_client_fetch43.FlowType.Login,
5871
6013
  components,
5872
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_elements_react23.OryTwoStepCard, {})
6014
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_elements_react24.OryTwoStepCard, {})
5873
6015
  }
5874
6016
  );
5875
6017
  }
5876
6018
 
5877
6019
  // src/theme/default/flows/recovery.tsx
5878
- var import_client_fetch42 = require("@ory/client-fetch");
5879
- var import_elements_react24 = require("@ory/elements-react");
5880
- var import_jsx_runtime106 = require("react/jsx-runtime");
6020
+ var import_client_fetch44 = require("@ory/client-fetch");
6021
+ var import_elements_react25 = require("@ory/elements-react");
6022
+ var import_jsx_runtime107 = require("react/jsx-runtime");
5881
6023
  function Recovery({
5882
6024
  flow,
5883
6025
  config,
@@ -5885,22 +6027,22 @@ function Recovery({
5885
6027
  components: flowOverrideComponents
5886
6028
  }) {
5887
6029
  const components = getOryComponents(flowOverrideComponents);
5888
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
5889
- import_elements_react24.OryProvider,
6030
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
6031
+ import_elements_react25.OryProvider,
5890
6032
  {
5891
6033
  config,
5892
6034
  flow,
5893
- flowType: import_client_fetch42.FlowType.Recovery,
6035
+ flowType: import_client_fetch44.FlowType.Recovery,
5894
6036
  components,
5895
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_elements_react24.OryTwoStepCard, {})
6037
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_elements_react25.OryTwoStepCard, {})
5896
6038
  }
5897
6039
  );
5898
6040
  }
5899
6041
 
5900
6042
  // src/theme/default/flows/registration.tsx
5901
- var import_client_fetch43 = require("@ory/client-fetch");
5902
- var import_elements_react25 = require("@ory/elements-react");
5903
- var import_jsx_runtime107 = require("react/jsx-runtime");
6043
+ var import_client_fetch45 = require("@ory/client-fetch");
6044
+ var import_elements_react26 = require("@ory/elements-react");
6045
+ var import_jsx_runtime108 = require("react/jsx-runtime");
5904
6046
  function Registration({
5905
6047
  flow,
5906
6048
  children,
@@ -5908,22 +6050,22 @@ function Registration({
5908
6050
  config
5909
6051
  }) {
5910
6052
  const components = getOryComponents(flowOverrideComponents);
5911
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
5912
- import_elements_react25.OryProvider,
6053
+ return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
6054
+ import_elements_react26.OryProvider,
5913
6055
  {
5914
6056
  config,
5915
6057
  flow,
5916
- flowType: import_client_fetch43.FlowType.Registration,
6058
+ flowType: import_client_fetch45.FlowType.Registration,
5917
6059
  components,
5918
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_elements_react25.OryTwoStepCard, {})
6060
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_elements_react26.OryTwoStepCard, {})
5919
6061
  }
5920
6062
  );
5921
6063
  }
5922
6064
 
5923
6065
  // src/theme/default/flows/settings.tsx
5924
- var import_client_fetch44 = require("@ory/client-fetch");
5925
- var import_elements_react26 = require("@ory/elements-react");
5926
- var import_jsx_runtime108 = require("react/jsx-runtime");
6066
+ var import_client_fetch46 = require("@ory/client-fetch");
6067
+ var import_elements_react27 = require("@ory/elements-react");
6068
+ var import_jsx_runtime109 = require("react/jsx-runtime");
5927
6069
  function Settings({
5928
6070
  flow,
5929
6071
  config,
@@ -5931,25 +6073,25 @@ function Settings({
5931
6073
  components: flowOverrideComponents
5932
6074
  }) {
5933
6075
  const components = getOryComponents(flowOverrideComponents);
5934
- return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
5935
- import_elements_react26.OryProvider,
6076
+ return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
6077
+ import_elements_react27.OryProvider,
5936
6078
  {
5937
6079
  config,
5938
6080
  flow,
5939
- flowType: import_client_fetch44.FlowType.Settings,
6081
+ flowType: import_client_fetch46.FlowType.Settings,
5940
6082
  components,
5941
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(import_jsx_runtime108.Fragment, { children: [
5942
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_elements_react26.HeadlessPageHeader, {}),
5943
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_elements_react26.OrySettingsCard, {})
6083
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(import_jsx_runtime109.Fragment, { children: [
6084
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_elements_react27.HeadlessPageHeader, {}),
6085
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_elements_react27.OrySettingsCard, {})
5944
6086
  ] })
5945
6087
  }
5946
6088
  );
5947
6089
  }
5948
6090
 
5949
6091
  // src/theme/default/flows/verification.tsx
5950
- var import_client_fetch45 = require("@ory/client-fetch");
5951
- var import_elements_react27 = require("@ory/elements-react");
5952
- var import_jsx_runtime109 = require("react/jsx-runtime");
6092
+ var import_client_fetch47 = require("@ory/client-fetch");
6093
+ var import_elements_react28 = require("@ory/elements-react");
6094
+ var import_jsx_runtime110 = require("react/jsx-runtime");
5953
6095
  function Verification({
5954
6096
  flow,
5955
6097
  config,
@@ -5957,24 +6099,24 @@ function Verification({
5957
6099
  components: flowOverrideComponents
5958
6100
  }) {
5959
6101
  const components = getOryComponents(flowOverrideComponents);
5960
- return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
5961
- import_elements_react27.OryProvider,
6102
+ return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
6103
+ import_elements_react28.OryProvider,
5962
6104
  {
5963
6105
  config,
5964
6106
  flow,
5965
- flowType: import_client_fetch45.FlowType.Verification,
6107
+ flowType: import_client_fetch47.FlowType.Verification,
5966
6108
  components,
5967
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_elements_react27.OryTwoStepCard, {})
6109
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_elements_react28.OryTwoStepCard, {})
5968
6110
  }
5969
6111
  );
5970
6112
  }
5971
6113
 
5972
6114
  // src/theme/default/flows/consent.tsx
5973
- var import_client_fetch47 = require("@ory/client-fetch");
5974
- var import_elements_react28 = require("@ory/elements-react");
6115
+ var import_client_fetch49 = require("@ory/client-fetch");
6116
+ var import_elements_react29 = require("@ory/elements-react");
5975
6117
 
5976
6118
  // src/theme/default/utils/oauth2.ts
5977
- var import_client_fetch46 = require("@ory/client-fetch");
6119
+ var import_client_fetch48 = require("@ory/client-fetch");
5978
6120
  var rememberCheckbox = {
5979
6121
  type: "input",
5980
6122
  group: "oauth2_consent",
@@ -5982,7 +6124,7 @@ var rememberCheckbox = {
5982
6124
  label: {
5983
6125
  id: 9999111,
5984
6126
  text: "Remember my decision",
5985
- type: import_client_fetch46.UiTextTypeEnum.Info
6127
+ type: import_client_fetch48.UiTextTypeEnum.Info
5986
6128
  }
5987
6129
  },
5988
6130
  attributes: {
@@ -6001,7 +6143,7 @@ var acceptButton = {
6001
6143
  label: {
6002
6144
  id: 9999111,
6003
6145
  text: "Accept",
6004
- type: import_client_fetch46.UiTextTypeEnum.Info
6146
+ type: import_client_fetch48.UiTextTypeEnum.Info
6005
6147
  }
6006
6148
  },
6007
6149
  attributes: {
@@ -6020,7 +6162,7 @@ var rejectButton = {
6020
6162
  label: {
6021
6163
  id: 9999111,
6022
6164
  text: "Reject",
6023
- type: import_client_fetch46.UiTextTypeEnum.Info
6165
+ type: import_client_fetch48.UiTextTypeEnum.Info
6024
6166
  }
6025
6167
  },
6026
6168
  attributes: {
@@ -6067,7 +6209,7 @@ function scopesToUiNodes(scopes) {
6067
6209
  label: {
6068
6210
  id: 9999111,
6069
6211
  text: scope,
6070
- type: import_client_fetch46.UiTextTypeEnum.Info
6212
+ type: import_client_fetch48.UiTextTypeEnum.Info
6071
6213
  }
6072
6214
  },
6073
6215
  attributes: {
@@ -6112,7 +6254,7 @@ function challengeNode(challenge) {
6112
6254
  }
6113
6255
 
6114
6256
  // src/theme/default/flows/consent.tsx
6115
- var import_jsx_runtime110 = require("react/jsx-runtime");
6257
+ var import_jsx_runtime111 = require("react/jsx-runtime");
6116
6258
  function Consent({
6117
6259
  consentChallenge,
6118
6260
  session,
@@ -6129,14 +6271,14 @@ function Consent({
6129
6271
  formActionUrl,
6130
6272
  session
6131
6273
  );
6132
- return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
6133
- import_elements_react28.OryProvider,
6274
+ return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
6275
+ import_elements_react29.OryProvider,
6134
6276
  {
6135
6277
  config,
6136
6278
  flow,
6137
- flowType: import_client_fetch47.FlowType.OAuth2Consent,
6279
+ flowType: import_client_fetch49.FlowType.OAuth2Consent,
6138
6280
  components,
6139
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_elements_react28.OryConsentCard, {})
6281
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_elements_react29.OryConsentCard, {})
6140
6282
  }
6141
6283
  );
6142
6284
  }